1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826
27827
27828
27829
27830
27831
27832
27833
27834
27835
27836
27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
27936
27937
27938
27939
27940
27941
27942
27943
27944
27945
27946
27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000
28001
28002
28003
28004
28005
28006
28007
28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151
28152
28153
28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
28263
28264
28265
28266
28267
28268
28269
28270
28271
28272
28273
28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392
28393
28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457
28458
28459
28460
28461
28462
28463
28464
28465
28466
28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
28503
28504
28505
28506
28507
28508
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
28611
28612
28613
28614
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
28672
28673
28674
28675
28676
28677
28678
28679
28680
28681
28682
28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
28802
28803
28804
28805
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
28900
28901
28902
28903
28904
28905
28906
28907
28908
28909
28910
28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
29068
29069
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144
29145
29146
29147
29148
29149
29150
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
29325
29326
29327
29328
29329
29330
29331
29332
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
29414
29415
29416
29417
29418
29419
29420
29421
29422
29423
29424
29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
29508
29509
29510
29511
29512
29513
29514
29515
29516
29517
29518
29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601
29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
29652
29653
29654
29655
29656
29657
29658
29659
29660
29661
29662
29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
30322
30323
30324
30325
30326
30327
30328
30329
30330
30331
30332
30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
30369
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623
30624
30625
30626
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679
30680
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
31420
31421
31422
31423
31424
31425
31426
31427
31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788
31789
31790
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341
32342
32343
32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437
32438
32439
32440
32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
32737
32738
32739
32740
32741
32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
32825
32826
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
32992
32993
32994
32995
32996
32997
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
33269
33270
33271
33272
33273
33274
33275
33276
33277
33278
33279
33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588
33589
33590
33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
33654
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960
33961
33962
33963
33964
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
34056
34057
34058
34059
34060
34061
34062
34063
34064
34065
34066
34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572
34573
34574
34575
34576
34577
34578
34579
34580
34581
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124
35125
35126
35127
35128
35129
35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
35515
35516
35517
35518
35519
35520
35521
35522
35523
35524
35525
35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
35643
35644
35645
35646
35647
35648
35649
35650
35651
35652
35653
35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
35692
35693
35694
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
36047
36048
36049
36050
36051
36052
36053
36054
36055
36056
36057
36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
36255
36256
36257
36258
36259
36260
36261
36262
36263
36264
36265
36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463
36464
36465
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
36562
36563
36564
36565
36566
36567
36568
36569
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645
36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
36706
36707
36708
36709
36710
36711
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877
36878
36879
36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
36918
36919
36920
36921
36922
36923
36924
36925
36926
36927
36928
36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
| /*!-----------------------------------------------------------------------------
| * Copyright (c) Microsoft Corporation. All rights reserved.
| * Version: 0.46.0(21007360cad28648bdf46282a2592cb47c3a7a6f)
| * Released under the MIT license
| * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
| *-----------------------------------------------------------------------------*/
| define("vs/language/typescript/tsWorker", ["require","require"],(require)=>{
| "use strict";var moduleExports=(()=>{var rae=Object.defineProperty;var hit=Object.getOwnPropertyDescriptor;var git=Object.getOwnPropertyNames;var yit=Object.prototype.hasOwnProperty;var hke=(zd,ti)=>{for(var gt in ti)rae(zd,gt,{get:ti[gt],enumerable:!0})},vit=(zd,ti,gt,hs)=>{if(ti&&typeof ti=="object"||typeof ti=="function")for(let Mo of git(ti))!yit.call(zd,Mo)&&Mo!==gt&&rae(zd,Mo,{get:()=>ti[Mo],enumerable:!(hs=hit(ti,Mo))||hs.enumerable});return zd};var bit=zd=>vit(rae({},"__esModule",{value:!0}),zd);var kit={};hke(kit,{TypeScriptWorker:()=>o8,create:()=>Lit});var oae={};hke(oae,{EndOfLineState:()=>Sit,IndentStyle:()=>Ait,ScriptKind:()=>uA,ScriptTarget:()=>Cit,TokenClass:()=>Iit,createClassifier:()=>Eit,createLanguageService:()=>iae,displayPartsToString:()=>Tit,flattenDiagnosticMessageText:()=>xit,typescript:()=>aae});var d0=void 0,IU={exports:{}};var f0=(()=>{var zd=Object.defineProperty,ti=Object.getOwnPropertyNames,gt=(e,t)=>function(){return e&&(t=(0,e[ti(e)[0]])(e=0)),t},hs=(e,t)=>function(){return t||(0,e[ti(e)[0]])((t={exports:{}}).exports,t),t.exports},Mo=(e,t)=>{for(var r in t)zd(e,r,{get:t[r],enumerable:!0})},Sg,Rf,LU,gke=gt({"src/compiler/corePublic.ts"(){"use strict";Sg="5.0",Rf="5.0.2",LU=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(LU||{})}});function Fn(e){return e?e.length:0}function mn(e,t){if(e)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i)return i}}function sae(e,t){if(e)for(let r=e.length-1;r>=0;r--){let i=t(e[r],r);if(i)return i}}function ks(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i!==void 0)return i}}function FD(e,t){for(let r of e){let i=t(r);if(i!==void 0)return i}}function yke(e,t,r){let i=r;if(e){let o=0;for(let s of e)i=t(i,s,o),o++}return i}function kU(e,t,r){let i=[];L.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function DU(e,t){if(e.length<=1)return e;let r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function Ji(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function wr(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){let o=e[i];if(t(o,i))return o}}function dA(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){let o=e[i];if(t(o,i))return o}}function Yc(e,t,r){if(e===void 0)return-1;for(let i=r??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function s8(e,t,r){if(e===void 0)return-1;for(let i=r??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function vke(e,t){for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i)return i}return L.fail()}function ya(e,t,r=Zv){if(e){for(let i of e)if(r(i,t))return!0}return!1}function GD(e,t,r=Zv){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function cae(e,t,r){for(let i=r||0;i<e.length;i++)if(ya(t,e.charCodeAt(i)))return i;return-1}function Oy(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){let o=e[i];t(o,i)&&r++}return r}function Pr(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;if(i<r){let o=e.slice(0,i);for(i++;i<r;){let s=e[i];t(s)&&o.push(s),i++}return o}}return e}function wU(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function Om(e){e.length=0}function on(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*RU(e,t){for(let r of e)yield t(r)}function Tl(e,t){if(e)for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r);if(i!==o){let s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function t_(e){let t=[];for(let r of e)r&&(ba(r)?si(t,r):t.push(r));return t}function Uo(e,t){let r;if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(ba(o)?r=si(r,o):r=Sn(r,o))}return r||Je}function BD(e,t){let r=[];if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(ba(o)?si(r,o):r.push(o))}return r}function*OU(e,t){for(let r of e){let i=t(r);i&&(yield*i)}}function lae(e,t){let r;if(e)for(let i=0;i<e.length;i++){let o=e[i],s=t(o,i);(r||o!==s||ba(s))&&(r||(r=e.slice(0,i)),ba(s)?si(r,s):r.push(s))}return r||e}function NU(e,t){let r=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function Zi(e,t){let r=[];if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*UD(e,t){for(let r of e){let i=t(r);i!==void 0&&(yield i)}}function bke(e,t){if(!e)return;let r=new Map;return e.forEach((i,o)=>{let s=t(o,i);if(s!==void 0){let[l,f]=s;l!==void 0&&f!==void 0&&r.set(l,f)}}),r}function VD(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function _0(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Eke(e){yield e}function c8(e,t,r){let i;if(e){i=[];let o=e.length,s,l,f=0,d=0;for(;f<o;){for(;d<o;){let g=e[d];if(l=t(g,d),d===0)s=l;else if(l!==s)break;d++}if(f<d){let g=r(e.slice(f,d),s,f,d);g&&i.push(g),f=d}s=l,d++}}return i}function uae(e,t){if(!e)return;let r=new Map;return e.forEach((i,o)=>{let[s,l]=t(o,i);r.set(s,l)}),r}function vt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function PU(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function Qi(e,t){return vt(t)?vt(e)?[...e,...t]:t:e}function Tke(e,t){return t}function jD(e){return e.map(Tke)}function Ske(e,t,r){let i=jD(e);_ae(e,i,r);let o=e[i[0]],s=[i[0]];for(let l=1;l<i.length;l++){let f=i[l],d=e[f];t(o,d)||(s.push(f),o=d)}return s.sort(),s.map(l=>e[l])}function xke(e,t){let r=[];for(let i of e)Of(r,i,t);return r}function fA(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?Ske(e,t,r):xke(e,t)}function Ake(e,t){if(e.length===0)return Je;let r=e[0],i=[r];for(let o=1;o<e.length;o++){let s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return L.fail("Array is unsorted.")}i.push(r=s)}return i}function MU(){return[]}function Ny(e,t,r,i){if(e.length===0)return e.push(t),!0;let o=Py(e,t,Ks,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function HD(e,t,r){return Ake(XC(e,t),r||t||su)}function dae(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function l8(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,f=e.length;l<f&&o!==0;l++){let d=t(e[l]);o&1&&r(s,d)>0&&(o&=-2),o&2&&i(s,d)>0&&(o&=-3),s=d}return o}function up(e,t,r=Zv){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function WD(e){let t;if(e)for(let r=0;r<e.length;r++){let i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function fae(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&L.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;o<e.length;o++)switch(o>l&&L.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function Sn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function _A(e,t){return e===void 0?t:t===void 0?e:ba(e)?ba(t)?Qi(e,t):Sn(e,t):ba(t)?Sn(t,e):[e,t]}function FU(e,t){return t<0?e.length+t:t}function si(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:FU(t,r),i=i===void 0?t.length:FU(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function Of(e,t,r){return ya(e,t,r)?!1:(e.push(t),!0)}function xg(e,t,r){return e?(Of(e,t,r),e):[t]}function _ae(e,t,r){t.sort((i,o)=>r(e[i],e[o])||Es(i,o))}function XC(e,t){return e.length===0?e:e.slice().sort(t)}function*Cke(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ag(e,t){let r=jD(e);return _ae(e,r,t),r.map(i=>e[i])}function GU(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Sl(e){return e===void 0||e.length===0?void 0:e[0]}function u8(e){if(e)for(let t of e)return t}function Vo(e){return L.assert(e.length!==0),e[0]}function pae(e){for(let t of e)return t;L.fail("iterator is empty")}function Os(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function To(e){return L.assert(e.length!==0),e[e.length-1]}function Wp(e){return e&&e.length===1?e[0]:void 0}function BU(e){return L.checkDefined(Wp(e))}function zp(e){return e&&e.length===1?e[0]:e}function UU(e,t,r){let i=e.slice(0);return i[t]=r,i}function Py(e,t,r,i,o){return j1(e,r(t),r,i,o)}function j1(e,t,r,i,o){if(!vt(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){let f=s+(l-s>>1),d=r(e[f],f);switch(i(d,t)){case-1:s=f+1;break;case 0:return f;case 1:l=f-1;break}}return~s}function ou(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,f=o===void 0||l+o>s-1?s-1:l+o,d;for(arguments.length<=2?(d=e[l],l++):d=r;l<=f;)d=t(d,e[l],l),l++;return d}}return r}function fs(e,t){return Lg.call(e,t)}function zD(e,t){return Lg.call(e,t)?e[t]:void 0}function bh(e){let t=[];for(let r in e)Lg.call(e,r)&&t.push(r);return t}function Ike(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)Of(t,i)}while(e=Object.getPrototypeOf(e));return t}function H1(e){let t=[];for(let r in e)Lg.call(e,r)&&t.push(e[r]);return t}function mae(e,t){let r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function lo(e,t){let r=[];for(let i of e)r.push(t?t(i):i);return r}function JD(e,...t){for(let r of t)if(r!==void 0)for(let i in r)fs(r,i)&&(e[i]=r[i]);return e}function hae(e,t,r=Zv){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(Lg.call(e,i)&&(!Lg.call(t,i)||!r(e[i],t[i])))return!1;for(let i in t)if(Lg.call(t,i)&&!Lg.call(e,i))return!1;return!0}function p0(e,t,r=Ks){let i=new Map;for(let o of e){let s=t(o);s!==void 0&&i.set(s,r(o))}return i}function gae(e,t,r=Ks){let i=[];for(let o of e)i[t(o)]=r(o);return i}function KD(e,t,r=Ks){let i=Nf();for(let o of e)i.add(t(o),r(o));return i}function YC(e,t,r=Ks){return lo(KD(e,t).values(),r)}function yae(e,t){var r;let i={};if(e)for(let o of e){let s=`${t(o)}`;((r=i[s])!=null?r:i[s]=[]).push(o)}return i}function VU(e){let t={};for(let r in e)Lg.call(e,r)&&(t[r]=e[r]);return t}function d8(e,t){let r={};for(let i in t)Lg.call(t,i)&&(r[i]=t[i]);for(let i in e)Lg.call(e,i)&&(r[i]=e[i]);return r}function jU(e,t){for(let r in t)Lg.call(t,r)&&(e[r]=t[r])}function ho(e,t){return t?t.bind(e):void 0}function Nf(){let e=new Map;return e.add=Lke,e.remove=kke,e}function Lke(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function kke(e,t){let r=this.get(e);r&&(YD(r,t),r.length||this.delete(e))}function vae(){return Nf()}function HU(e){let t=e?.slice()||[],r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");let l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let f=t.length-r;t.copyWithin(0,r),t.length=f,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function Dke(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())ba(l)?yield*l:yield l}let s={has(l){let f=e(l);if(!r.has(f))return!1;let d=r.get(f);if(!ba(d))return t(d,l);for(let g of d)if(t(g,l))return!0;return!1},add(l){let f=e(l);if(r.has(f)){let d=r.get(f);if(ba(d))ya(d,l,t)||(d.push(l),i++);else{let g=d;t(g,l)||(r.set(f,[g,l]),i++)}}else r.set(f,l),i++;return this},delete(l){let f=e(l);if(!r.has(f))return!1;let d=r.get(f);if(ba(d)){for(let g=0;g<d.length;g++)if(t(d[g],l))return d.length===1?r.delete(f):d.length===2?r.set(f,d[1-g]):zU(d,g),i--,!0}else if(t(d,l))return r.delete(f),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(let f of lo(r.values()))if(ba(f))for(let d of f)l(d,d,s);else{let d=f;l(d,d,s)}},keys(){return o()},values(){return o()},*entries(){for(let l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function ba(e){return Array.isArray(e)}function qD(e){return ba(e)?e:[e]}function Ta(e){return typeof e=="string"}function Cg(e){return typeof e=="number"}function zr(e,t){return e!==void 0&&t(e)?e:void 0}function Ga(e,t){return e!==void 0&&t(e)?e:L.fail(`Invalid cast. The supplied value ${e} did not pass the test '${L.getFunctionName(t)}'.`)}function Ba(e){}function m0(){return!1}function h0(){return!0}function Qv(){}function Ks(e){return e}function bae(e){return e.toLowerCase()}function n_(e){return YU.test(e)?e.replace(YU,bae):e}function Sa(){throw new Error("Not implemented")}function zu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Jp(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function wke(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function Eae(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function Rke(e,t,r,i,o){if(o){let s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>ou(s,(f,d)=>d(f),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Zv(e,t){return e===t}function W1(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function z1(e,t){return Zv(e,t)}function Tae(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Es(e,t){return Tae(e,t)}function f8(e,t){return Es(e?.start,t?.start)||Es(e?.length,t?.length)}function WU(e,t){return ou(e,(r,i)=>t(r,i)===-1?r:i)}function _8(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 Sae(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 su(e,t){return Tae(e,t)}function p8(e){return e?_8:su}function xae(){return T8}function Aae(e){T8!==e&&(T8=e,QU=void 0)}function XD(e,t){return(QU||(QU=Mae(T8)))(e,t)}function Cae(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function g0(e,t){return Es(e?1:0,t?1:0)}function $C(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let f=r(l);if(f!==void 0&&Math.abs(f.length-e.length)<=i){if(f===e||f.length<3&&f.toLowerCase()!==e.toLowerCase())continue;let d=Oke(e,f,o-.1);if(d===void 0)continue;L.assert(d<o),o=d,s=l}}return s}function Oke(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1),s=r+.01;for(let f=0;f<=t.length;f++)i[f]=f;for(let f=1;f<=e.length;f++){let d=e.charCodeAt(f-1),g=Math.ceil(f>r?f-r:1),m=Math.floor(t.length>r+f?r+f:t.length);o[0]=f;let v=f;for(let x=1;x<g;x++)o[x]=s;for(let x=g;x<=m;x++){let A=e[f-1].toLowerCase()===t[x-1].toLowerCase()?i[x-1]+.1:i[x-1]+2,w=d===t.charCodeAt(x-1)?i[x-1]:Math.min(i[x]+1,o[x-1]+1,A);o[x]=w,v=Math.min(v,w)}for(let x=m+1;x<=t.length;x++)o[x]=s;if(v>r)return;let S=i;i=o,o=S}let l=i[t.length];return l>r?void 0:l}function Oc(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function pA(e,t){return Oc(e,t)?e.slice(0,e.length-t.length):e}function Iae(e,t){return Oc(e,t)?e.slice(0,e.length-t.length):void 0}function jl(e,t){return e.indexOf(t)!==-1}function Lae(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function m8(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return y0(e,r),!0;return!1}function y0(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function zU(e,t){e[t]=e[e.length-1],e.pop()}function YD(e,t){return Nke(e,r=>r===t)}function Nke(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return zU(e,r),!0;return!1}function Dl(e){return e?Ks:n_}function kae({prefix:e,suffix:t}){return`${e}*${t}`}function Dae(e,t){return L.assert(h8(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function JU(e,t,r){let i,o=-1;for(let s of e){let l=t(s);h8(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function na(e,t){return e.lastIndexOf(t,0)===0}function QC(e,t){return na(e,t)?e.substr(t.length):e}function KU(e,t,r=Ks){return na(r(e),r(t))?e.substring(t.length):void 0}function h8({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&na(r,e)&&Oc(r,t)}function g8(e,t){return r=>e(r)&&t(r)}function Kp(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function y8(e){return(...t)=>!e(...t)}function Pke(e){}function aT(e){return e===void 0?void 0:[e]}function wae(e,t,r,i,o,s){s=s||Ba;let l=0,f=0,d=e.length,g=t.length,m=!1;for(;l<d&&f<g;){let v=e[l],S=t[f],x=r(v,S);x===-1?(i(v),l++,m=!0):x===1?(o(S),f++,m=!0):(s(S,v),l++,f++)}for(;l<d;)i(e[l++]),m=!0;for(;f<g;)o(t[f++]),m=!0;return m}function Rae(e){let t=[];return Oae(e,t,void 0,0),t}function Oae(e,t,r,i){for(let o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):Oae(e,t,s,i+1)}}function J1(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function Mke(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function v8(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function Nae(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function Fke(e){let t=e.length-1;for(;t>=0&&xh(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function qU(){return typeof process<"u"&&process.nextTick&&!process.browser&&typeof IU=="object"}var Je,b8,Pae,XU,Ig,Lg,E8,YU,$U,Mae,QU,T8,v0,$D,ZC,Gke=gt({"src/compiler/core.ts"(){"use strict";fa(),Je=[],b8=new Map,Pae=new Set,XU=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(XU||{}),Ig=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=FU(e,t),t<e.length))return e[t]},Lg=Object.prototype.hasOwnProperty,E8={push:Ba,length:0},YU=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g,$U=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))($U||{}),Mae=(()=>{let e,t,r=f();return d;function i(g,m,v){if(g===m)return 0;if(g===void 0)return-1;if(m===void 0)return 1;let S=v(g,m);return S<0?-1:S>0?1:0}function o(g){let m=new Intl.Collator(g,{usage:"sort",sensitivity:"variant"}).compare;return(v,S)=>i(v,S,m)}function s(g){if(g!==void 0)return l();return(v,S)=>i(v,S,m);function m(v,S){return v.localeCompare(S)}}function l(){return(v,S)=>i(v,S,g);function g(v,S){return m(v.toUpperCase(),S.toUpperCase())||m(v,S)}function m(v,S){return v<S?-1:v>S?1:0}}function f(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?o:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?s:l}function d(g){return g===void 0?e||(e=r(g)):g==="en-US"?t||(t=r(g)):r(g)}})(),v0=String.prototype.trim?e=>e.trim():e=>$D(ZC(e)),$D=String.prototype.trimEnd?e=>e.trimEnd():Fke,ZC=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),ZU,L,Bke=gt({"src/compiler/debug.ts"(){"use strict";fa(),fa(),ZU=(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))(ZU||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Dt){return e.currentLogLevel<=Dt}e.shouldLog=r;function i(Dt,pn){e.loggingHost&&r(Dt)&&e.loggingHost.log(Dt,pn)}function o(Dt){i(3,Dt)}e.log=o,(Dt=>{function pn(ri){i(1,ri)}Dt.error=pn;function An(ri){i(2,ri)}Dt.warn=An;function Kn(ri){i(3,ri)}Dt.log=Kn;function hi(ri){i(4,ri)}Dt.trace=hi})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function f(Dt){let pn=t;if(t=Dt,Dt>pn)for(let An of bh(s)){let Kn=s[An];Kn!==void 0&&e[An]!==Kn.assertion&&Dt>=Kn.level&&(e[An]=Kn,s[An]=void 0)}}e.setAssertionLevel=f;function d(Dt){return t>=Dt}e.shouldAssert=d;function g(Dt,pn){return d(Dt)?!0:(s[pn]={level:Dt,assertion:e[pn]},e[pn]=Ba,!1)}function m(Dt,pn){let An=new Error(Dt?`Debug Failure. ${Dt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(An,pn||m),An}e.fail=m;function v(Dt,pn,An){return m(`${pn||"Unexpected node."}\r
| Node ${Ve(Dt.kind)} was unexpected.`,An||v)}e.failBadSyntaxKind=v;function S(Dt,pn,An,Kn){Dt||(pn=pn?`False expression: ${pn}`:"False expression.",An&&(pn+=`\r
| Verbose Debug Information: `+(typeof An=="string"?An:An())),m(pn,Kn||S))}e.assert=S;function x(Dt,pn,An,Kn,hi){if(Dt!==pn){let ri=An?Kn?`${An} ${Kn}`:An:"";m(`Expected ${Dt} === ${pn}. ${ri}`,hi||x)}}e.assertEqual=x;function A(Dt,pn,An,Kn){Dt>=pn&&m(`Expected ${Dt} < ${pn}. ${An||""}`,Kn||A)}e.assertLessThan=A;function w(Dt,pn,An){Dt>pn&&m(`Expected ${Dt} <= ${pn}`,An||w)}e.assertLessThanOrEqual=w;function C(Dt,pn,An){Dt<pn&&m(`Expected ${Dt} >= ${pn}`,An||C)}e.assertGreaterThanOrEqual=C;function P(Dt,pn,An){Dt==null&&m(pn,An||P)}e.assertIsDefined=P;function F(Dt,pn,An){return P(Dt,pn,An||F),Dt}e.checkDefined=F;function B(Dt,pn,An){for(let Kn of Dt)P(Kn,pn,An||B)}e.assertEachIsDefined=B;function q(Dt,pn,An){return B(Dt,pn,An||q),Dt}e.checkEachDefined=q;function W(Dt,pn="Illegal value:",An){let Kn=typeof Dt=="object"&&fs(Dt,"kind")&&fs(Dt,"pos")?"SyntaxKind: "+Ve(Dt.kind):JSON.stringify(Dt);return m(`${pn} ${Kn}`,An||W)}e.assertNever=W;function Y(Dt,pn,An,Kn){g(1,"assertEachNode")&&S(pn===void 0||Ji(Dt,pn),An||"Unexpected node.",()=>`Node array did not pass test '${re(pn)}'.`,Kn||Y)}e.assertEachNode=Y;function R(Dt,pn,An,Kn){g(1,"assertNode")&&S(Dt!==void 0&&(pn===void 0||pn(Dt)),An||"Unexpected node.",()=>`Node ${Ve(Dt?.kind)} did not pass test '${re(pn)}'.`,Kn||R)}e.assertNode=R;function ie(Dt,pn,An,Kn){g(1,"assertNotNode")&&S(Dt===void 0||pn===void 0||!pn(Dt),An||"Unexpected node.",()=>`Node ${Ve(Dt.kind)} should not have passed test '${re(pn)}'.`,Kn||ie)}e.assertNotNode=ie;function $(Dt,pn,An,Kn){g(1,"assertOptionalNode")&&S(pn===void 0||Dt===void 0||pn(Dt),An||"Unexpected node.",()=>`Node ${Ve(Dt?.kind)} did not pass test '${re(pn)}'.`,Kn||$)}e.assertOptionalNode=$;function fe(Dt,pn,An,Kn){g(1,"assertOptionalToken")&&S(pn===void 0||Dt===void 0||Dt.kind===pn,An||"Unexpected node.",()=>`Node ${Ve(Dt?.kind)} was not a '${Ve(pn)}' token.`,Kn||fe)}e.assertOptionalToken=fe;function Z(Dt,pn,An){g(1,"assertMissingNode")&&S(Dt===void 0,pn||"Unexpected node.",()=>`Node ${Ve(Dt.kind)} was unexpected'.`,An||Z)}e.assertMissingNode=Z;function U(Dt){}e.type=U;function re(Dt){if(typeof Dt!="function")return"";if(fs(Dt,"name"))return Dt.name;{let pn=Function.prototype.toString.call(Dt),An=/^function\s+([\w\$]+)\s*\(/.exec(pn);return An?An[1]:""}}e.getFunctionName=re;function le(Dt){return`{ name: ${Gi(Dt.escapedName)}; flags: ${Be(Dt.flags)}; declarations: ${on(Dt.declarations,pn=>Ve(pn.kind))} }`}e.formatSymbol=le;function _e(Dt=0,pn,An){let Kn=X(pn);if(Dt===0)return Kn.length>0&&Kn[0][0]===0?Kn[0][1]:"0";if(An){let hi=[],ri=Dt;for(let[vn,Ht]of Kn){if(vn>Dt)break;vn!==0&&vn&Dt&&(hi.push(Ht),ri&=~vn)}if(ri===0)return hi.join("|")}else for(let[hi,ri]of Kn)if(hi===Dt)return ri;return Dt.toString()}e.formatEnum=_e;let ge=new Map;function X(Dt){let pn=ge.get(Dt);if(pn)return pn;let An=[];for(let hi in Dt){let ri=Dt[hi];typeof ri=="number"&&An.push([ri,hi])}let Kn=Ag(An,(hi,ri)=>Es(hi[0],ri[0]));return ge.set(Dt,Kn),Kn}function Ve(Dt){return _e(Dt,I8,!1)}e.formatSyntaxKind=Ve;function we(Dt){return _e(Dt,B8,!1)}e.formatSnippetKind=we;function ke(Dt){return _e(Dt,L8,!0)}e.formatNodeFlags=ke;function Pe(Dt){return _e(Dt,k8,!0)}e.formatModifierFlags=Pe;function Ce(Dt){return _e(Dt,G8,!0)}e.formatTransformFlags=Ce;function Ie(Dt){return _e(Dt,U8,!0)}e.formatEmitFlags=Ie;function Be(Dt){return _e(Dt,O8,!0)}e.formatSymbolFlags=Be;function Ne(Dt){return _e(Dt,N8,!0)}e.formatTypeFlags=Ne;function Le(Dt){return _e(Dt,M8,!0)}e.formatSignatureFlags=Le;function Ye(Dt){return _e(Dt,P8,!0)}e.formatObjectFlags=Ye;function _t(Dt){return _e(Dt,tw,!0)}e.formatFlowFlags=_t;function ct(Dt){return _e(Dt,D8,!0)}e.formatRelationComparisonResult=ct;function Rt(Dt){return _e(Dt,_F,!0)}e.formatCheckMode=Rt;function We(Dt){return _e(Dt,pF,!0)}e.formatSignatureCheckMode=We;function qe(Dt){return _e(Dt,dF,!0)}e.formatTypeFacts=qe;let zt=!1,Qt;function tn(Dt){"__debugFlowFlags"in Dt||Object.defineProperties(Dt,{__tsDebuggerDisplay:{value(){let pn=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",An=this.flags&-2048;return`${pn}${An?` (${_t(An)})`:""}`}},__debugFlowFlags:{get(){return _e(this.flags,tw,!0)}},__debugToString:{value(){return nn(this)}}})}function kn(Dt){zt&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Object.prototype),tn(Qt)),Object.setPrototypeOf(Dt,Qt)):tn(Dt))}e.attachFlowNodeDebugInfo=kn;let _n;function Gt(Dt){"__tsDebuggerDisplay"in Dt||Object.defineProperties(Dt,{__tsDebuggerDisplay:{value(pn){return pn=String(pn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${pn}`}}})}function $n(Dt){zt&&(typeof Object.setPrototypeOf=="function"?(_n||(_n=Object.create(Array.prototype),Gt(_n)),Object.setPrototypeOf(Dt,_n)):Gt(Dt))}e.attachNodeArrayDebugInfo=$n;function ui(){if(zt)return;let Dt=new WeakMap,pn=new WeakMap;Object.defineProperties(ml.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Kn=this.flags&33554432?"TransientSymbol":"Symbol",hi=this.flags&-33554433;return`${Kn} '${fc(this)}'${hi?` (${Be(hi)})`:""}`}},__debugFlags:{get(){return Be(this.flags)}}}),Object.defineProperties(ml.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Kn=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",hi=this.flags&524288?this.objectFlags&-1344:0;return`${Kn}${this.symbol?` '${fc(this.symbol)}'`:""}${hi?` (${Ye(hi)})`:""}`}},__debugFlags:{get(){return Ne(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ye(this.objectFlags):""}},__debugTypeToString:{value(){let Kn=Dt.get(this);return Kn===void 0&&(Kn=this.checker.typeToString(this),Dt.set(this,Kn)),Kn}}}),Object.defineProperties(ml.getSignatureConstructor().prototype,{__debugFlags:{get(){return Le(this.flags)}},__debugSignatureToString:{value(){var Kn;return(Kn=this.checker)==null?void 0:Kn.signatureToString(this)}}});let An=[ml.getNodeConstructor(),ml.getIdentifierConstructor(),ml.getTokenConstructor(),ml.getSourceFileConstructor()];for(let Kn of An)fs(Kn.prototype,"__debugKind")||Object.defineProperties(Kn.prototype,{__tsDebuggerDisplay:{value(){return`${tc(this)?"GeneratedIdentifier":Re(this)?`Identifier '${vr(this)}'`:pi(this)?`PrivateIdentifier '${vr(this)}'`:yo(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Vf(this)?`NumericLiteral ${this.text}`:a3(this)?`BigIntLiteral ${this.text}n`:_c(this)?"TypeParameterDeclaration":ha(this)?"ParameterDeclaration":Ec(this)?"ConstructorDeclaration":p_(this)?"GetAccessorDeclaration":Sf(this)?"SetAccessorDeclaration":_2(this)?"CallSignatureDeclaration":uO(this)?"ConstructSignatureDeclaration":kS(this)?"IndexSignatureDeclaration":l3(this)?"TypePredicateNode":m_(this)?"TypeReferenceNode":Jm(this)?"FunctionTypeNode":yL(this)?"ConstructorTypeNode":vL(this)?"TypeQueryNode":Rd(this)?"TypeLiteralNode":wz(this)?"ArrayTypeNode":p2(this)?"TupleTypeNode":Rz(this)?"OptionalTypeNode":Oz(this)?"RestTypeNode":DS(this)?"UnionTypeNode":dO(this)?"IntersectionTypeNode":m2(this)?"ConditionalTypeNode":h2(this)?"InferTypeNode":wS(this)?"ParenthesizedTypeNode":u3(this)?"ThisTypeNode":RS(this)?"TypeOperatorNode":OS(this)?"IndexedAccessTypeNode":EL(this)?"MappedTypeNode":mb(this)?"LiteralTypeNode":bL(this)?"NamedTupleMember":Mh(this)?"ImportTypeNode":Ve(this.kind)}${this.flags?` (${ke(this.flags)})`:""}`}},__debugKind:{get(){return Ve(this.kind)}},__debugNodeFlags:{get(){return ke(this.flags)}},__debugModifierFlags:{get(){return Pe(qce(this))}},__debugTransformFlags:{get(){return Ce(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dI(this)}},__debugEmitFlags:{get(){return Ie(Ya(this))}},__debugGetText:{value(hi){if(ws(this))return"";let ri=pn.get(this);if(ri===void 0){let vn=ea(this),Ht=vn&&Gn(vn);ri=Ht?k0(Ht,vn,hi):"",pn.set(this,ri)}return ri}}});zt=!0}e.enableDebugInfo=ui;function Ni(Dt){let pn=Dt&7,An=pn===0?"in out":pn===3?"[bivariant]":pn===2?"in":pn===1?"out":pn===4?"[independent]":"";return Dt&8?An+=" (unmeasurable)":Dt&16&&(An+=" (unreliable)"),An}e.formatVariance=Ni;class Pi{__debugToString(){var pn;switch(this.kind){case 3:return((pn=this.debugInfo)==null?void 0:pn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return kU(this.sources,this.targets||on(this.sources,()=>"any"),(An,Kn)=>`${An.__debugTypeToString()} -> ${typeof Kn=="string"?Kn:Kn.__debugTypeToString()}`).join(", ");case 2:return kU(this.sources,this.targets,(An,Kn)=>`${An.__debugTypeToString()} -> ${Kn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
| `).join(`
| `)}
| m2: ${this.mapper2.__debugToString().split(`
| `).join(`
| `)}`;default:return W(this)}}}e.DebugTypeMapper=Pi;function gr(Dt){return e.isDebugging?Object.setPrototypeOf(Dt,Pi.prototype):Dt}e.attachDebugPrototypeIfDebug=gr;function pt(Dt){return console.log(nn(Dt))}e.printControlFlowGraph=pt;function nn(Dt){let pn=-1;function An(pe){return pe.id||(pe.id=pn,pn--),pe.id}let Kn;(pe=>{pe.lr="\u2500",pe.ud="\u2502",pe.dr="\u256D",pe.dl="\u256E",pe.ul="\u256F",pe.ur="\u2570",pe.udr="\u251C",pe.udl="\u2524",pe.dlr="\u252C",pe.ulr="\u2534",pe.udlr="\u256B"})(Kn||(Kn={}));let hi;(pe=>{pe[pe.None=0]="None",pe[pe.Up=1]="Up",pe[pe.Down=2]="Down",pe[pe.Left=4]="Left",pe[pe.Right=8]="Right",pe[pe.UpDown=3]="UpDown",pe[pe.LeftRight=12]="LeftRight",pe[pe.UpLeft=5]="UpLeft",pe[pe.UpRight=9]="UpRight",pe[pe.DownLeft=6]="DownLeft",pe[pe.DownRight=10]="DownRight",pe[pe.UpDownLeft=7]="UpDownLeft",pe[pe.UpDownRight=11]="UpDownRight",pe[pe.UpLeftRight=13]="UpLeftRight",pe[pe.DownLeftRight=14]="DownLeftRight",pe[pe.UpDownLeftRight=15]="UpDownLeftRight",pe[pe.NoChildren=16]="NoChildren"})(hi||(hi={}));let ri=2032,vn=882,Ht=Object.create(null),En=[],dr=[],Cr=G(Dt,new Set);for(let pe of En)pe.text=ae(pe.flowNode,pe.circular),je(pe);let Se=Ge(Cr),at=kt(Se);return Kt(Cr,0),rt();function Tt(pe){return!!(pe.flags&128)}function ve(pe){return!!(pe.flags&12)&&!!pe.antecedents}function nt(pe){return!!(pe.flags&ri)}function ce(pe){return!!(pe.flags&vn)}function Q(pe){let z=[];for(let Te of pe.edges)Te.source===pe&&z.push(Te.target);return z}function ue(pe){let z=[];for(let Te of pe.edges)Te.target===pe&&z.push(Te.source);return z}function G(pe,z){let Te=An(pe),j=Ht[Te];if(j&&z.has(pe))return j.circular=!0,j={id:-1,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},En.push(j),j;if(z.add(pe),!j)if(Ht[Te]=j={id:Te,flowNode:pe,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},En.push(j),ve(pe))for(let yt of pe.antecedents)Oe(j,yt,z);else nt(pe)&&Oe(j,pe.antecedent,z);return z.delete(pe),j}function Oe(pe,z,Te){let j=G(z,Te),yt={source:pe,target:j};dr.push(yt),pe.edges.push(yt),j.edges.push(yt)}function je(pe){if(pe.level!==-1)return pe.level;let z=0;for(let Te of ue(pe))z=Math.max(z,je(Te)+1);return pe.level=z}function Ge(pe){let z=0;for(let Te of Q(pe))z=Math.max(z,Ge(Te));return z+1}function kt(pe){let z=Ke(Array(pe),0);for(let Te of En)z[Te.level]=Math.max(z[Te.level],Te.text.length);return z}function Kt(pe,z){if(pe.lane===-1){pe.lane=z,pe.endLane=z;let Te=Q(pe);for(let j=0;j<Te.length;j++){j>0&&z++;let yt=Te[j];Kt(yt,z),yt.endLane>pe.endLane&&(z=yt.endLane)}pe.endLane=z}}function ln(pe){if(pe&2)return"Start";if(pe&4)return"Branch";if(pe&8)return"Loop";if(pe&16)return"Assignment";if(pe&32)return"True";if(pe&64)return"False";if(pe&128)return"SwitchClause";if(pe&256)return"ArrayMutation";if(pe&512)return"Call";if(pe&1024)return"ReduceLabel";if(pe&1)return"Unreachable";throw new Error}function ir(pe){let z=Gn(pe);return k0(z,pe,!1)}function ae(pe,z){let Te=ln(pe.flags);if(z&&(Te=`${Te}#${An(pe)}`),ce(pe))pe.node&&(Te+=` (${ir(pe.node)})`);else if(Tt(pe)){let j=[];for(let yt=pe.clauseStart;yt<pe.clauseEnd;yt++){let lt=pe.switchStatement.caseBlock.clauses[yt];yO(lt)?j.push("default"):j.push(ir(lt.expression))}Te+=` (${j.join(", ")})`}return z==="circularity"?`Circular(${Te})`:Te}function rt(){let pe=at.length,z=En.reduce((Qe,Vt)=>Math.max(Qe,Vt.lane),0)+1,Te=Ke(Array(z),""),j=at.map(()=>Array(z)),yt=at.map(()=>Ke(Array(z),0));for(let Qe of En){j[Qe.level][Qe.lane]=Qe;let Vt=Q(Qe);for(let jr=0;jr<Vt.length;jr++){let ei=Vt[jr],Kr=8;ei.lane===Qe.lane&&(Kr|=4),jr>0&&(Kr|=1),jr<Vt.length-1&&(Kr|=2),yt[Qe.level][ei.lane]|=Kr}Vt.length===0&&(yt[Qe.level][Qe.lane]|=16);let Hn=ue(Qe);for(let jr=0;jr<Hn.length;jr++){let ei=Hn[jr],Kr=4;jr>0&&(Kr|=1),jr<Hn.length-1&&(Kr|=2),yt[Qe.level-1][ei.lane]|=Kr}}for(let Qe=0;Qe<pe;Qe++)for(let Vt=0;Vt<z;Vt++){let Hn=Qe>0?yt[Qe-1][Vt]:0,jr=Vt>0?yt[Qe][Vt-1]:0,ei=yt[Qe][Vt];ei||(Hn&8&&(ei|=12),jr&2&&(ei|=3),yt[Qe][Vt]=ei)}for(let Qe=0;Qe<pe;Qe++)for(let Vt=0;Vt<Te.length;Vt++){let Hn=yt[Qe][Vt],jr=Hn&4?"\u2500":" ",ei=j[Qe][Vt];ei?(lt(Vt,ei.text),Qe<pe-1&&(lt(Vt," "),lt(Vt,oe(jr,at[Qe]-ei.text.length)))):Qe<pe-1&<(Vt,oe(jr,at[Qe]+1)),lt(Vt,Ot(Hn)),lt(Vt,Hn&8&&Qe<pe-1&&!j[Qe+1][Vt]?"\u2500":" ")}return`
| ${Te.join(`
| `)}
| `;function lt(Qe,Vt){Te[Qe]+=Vt}}function Ot(pe){switch(pe){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 Ke(pe,z){if(pe.fill)pe.fill(z);else for(let Te=0;Te<pe.length;Te++)pe[Te]=z;return pe}function oe(pe,z){if(pe.repeat)return z>0?pe.repeat(z):"";let Te="";for(;Te.length<z;)Te+=pe;return Te}}e.formatControlFlowGraph=nn})(L||(L={}))}});function Fae(e){let t=Bae.exec(e);if(!t)return;let[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!Uae.test(s))&&!(l&&!jae.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function Uke(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let r=Math.min(e.length,t.length);for(let i=0;i<r;i++){let o=e[i],s=t[i];if(o===s)continue;let l=tV.test(o),f=tV.test(s);if(l||f){if(l!==f)return l?-1:1;let d=Es(+o,+s);if(d)return d}else{let d=su(o,s);if(d)return d}}return Es(e.length,t.length)}function Gae(e){let t=[];for(let r of v0(e).split(Wae)){if(!r)continue;let i=[];r=v0(r);let o=Kae.exec(r);if(o){if(!Vke(o[1],o[2],i))return}else for(let s of r.split(zae)){let l=qae.exec(v0(s));if(!l||!jke(l[1],l[2],i))return}t.push(i)}return t}function eV(e){let t=Jae.exec(e);if(!t)return;let[,r,i="*",o="*",s,l]=t;return{version:new r_(mf(r)?0:parseInt(r,10),mf(r)||mf(i)?0:parseInt(i,10),mf(r)||mf(i)||mf(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function Vke(e,t,r){let i=eV(e);if(!i)return!1;let o=eV(t);return o?(mf(i.major)||r.push(dp(">=",i.version)),mf(o.major)||r.push(mf(o.minor)?dp("<",o.version.increment("major")):mf(o.patch)?dp("<",o.version.increment("minor")):dp("<=",o.version)),!0):!1}function jke(e,t,r){let i=eV(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:f}=i;if(mf(s))(e==="<"||e===">")&&r.push(dp("<",r_.zero));else switch(e){case"~":r.push(dp(">=",o)),r.push(dp("<",o.increment(mf(l)?"major":"minor")));break;case"^":r.push(dp(">=",o)),r.push(dp("<",o.increment(o.major>0||mf(l)?"major":o.minor>0||mf(f)?"minor":"patch")));break;case"<":case">=":r.push(mf(l)||mf(f)?dp(e,o.with({prerelease:"0"})):dp(e,o));break;case"<=":case">":r.push(mf(l)?dp(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):mf(f)?dp(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):dp(e,o));break;case"=":case void 0:mf(l)||mf(f)?(r.push(dp(">=",o.with({prerelease:"0"}))),r.push(dp("<",o.increment(mf(l)?"major":"minor").with({prerelease:"0"})))):r.push(dp("=",o));break;default:return!1}return!0}function mf(e){return e==="*"||e==="x"||e==="X"}function dp(e,t){return{operator:e,operand:t}}function Hke(e,t){if(t.length===0)return!0;for(let r of t)if(Wke(e,r))return!0;return!1}function Wke(e,t){for(let r of t)if(!zke(e,r.operator,r.operand))return!1;return!0}function zke(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return L.assertNever(t)}}function Jke(e){return on(e,Kke).join(" || ")||"*"}function Kke(e){return on(e,qke).join(" ")}function qke(e){return`${e.operator}${e.operand}`}var Bae,Uae,Vae,jae,Hae,tV,K1,r_,mA,Wae,zae,Jae,Kae,qae,Xke=gt({"src/compiler/semver.ts"(){"use strict";fa(),Bae=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Uae=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Vae=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,jae=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Hae=/^[a-z0-9-]+$/i,tV=/^(0|[1-9]\d*)$/,K1=class{constructor(e,t=0,r=0,i="",o=""){typeof e=="string"&&({major:e,minor:t,patch:r,prerelease:i,build:o}=L.checkDefined(Fae(e),"Invalid version")),L.assert(e>=0,"Invalid argument: major"),L.assert(t>=0,"Invalid argument: minor"),L.assert(r>=0,"Invalid argument: patch");let s=i?ba(i)?i:i.split("."):Je,l=o?ba(o)?o:o.split("."):Je;L.assert(Ji(s,f=>Vae.test(f)),"Invalid argument: prerelease"),L.assert(Ji(l,f=>Hae.test(f)),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=r,this.prerelease=s,this.build=l}static tryParse(e){let t=Fae(e);if(!t)return;let{major:r,minor:i,patch:o,prerelease:s,build:l}=t;return new K1(r,i,o,s,l)}compareTo(e){return this===e?0:e===void 0?1:Es(this.major,e.major)||Es(this.minor,e.minor)||Es(this.patch,e.patch)||Uke(this.prerelease,e.prerelease)}increment(e){switch(e){case"major":return new K1(this.major+1,0,0);case"minor":return new K1(this.major,this.minor+1,0);case"patch":return new K1(this.major,this.minor,this.patch+1);default:return L.assertNever(e)}}with(e){let{major:t=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:s=this.build}=e;return new K1(t,r,i,o,s)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return vt(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),vt(this.build)&&(e+=`+${this.build.join(".")}`),e}},r_=K1,r_.zero=new K1(0,0,0,["0"]),mA=class{constructor(e){this._alternatives=e?L.checkDefined(Gae(e),"Invalid range spec."):Je}static tryParse(e){let t=Gae(e);if(t){let r=new mA("");return r._alternatives=t,r}}test(e){return typeof e=="string"&&(e=new r_(e)),Hke(e,this._alternatives)}toString(){return Jke(this._alternatives)}},Wae=/\|\|/g,zae=/\s+/g,Jae=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Kae=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,qae=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Xae(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 Yke(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Xae(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function $ke(){if(qU())try{let e,{performance:t,PerformanceObserver:r}=d0("perf_hooks");if(Xae(t,r)){e=t;let i=new r_(process.versions.node);return new mA("<12.16.3 || 13 <13.13").test(i)&&(e={get timeOrigin(){return t.timeOrigin},now(){return t.now()},mark(s){return t.mark(s)},measure(s,l="nodeStart",f){f===void 0&&(f="__performance.measure-fix__",t.mark(f)),t.measure(s,l,f),f==="__performance.measure-fix__"&&t.clearMarks("__performance.measure-fix__")},clearMarks(s){return t.clearMarks(s)},clearMeasures(s){return t.clearMeasures(s)}}),{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:r}}}catch{}}function Yae(){return S8}var S8,nV,Ms,Qke=gt({"src/compiler/performanceCore.ts"(){"use strict";fa(),S8=Yke()||$ke(),nV=S8?.performance,Ms=nV?()=>nV.now():Date.now?Date.now:()=>+new Date}}),$ae,QD,Qae,fp,Zke=gt({"src/compiler/perfLogger.ts"(){"use strict";fa(),$ae={logEvent:Ba,logErrEvent:Ba,logPerfEvent:Ba,logInfoEvent:Ba,logStartCommand:Ba,logStopCommand:Ba,logStartUpdateProgram:Ba,logStopUpdateProgram:Ba,logStartUpdateGraph:Ba,logStopUpdateGraph:Ba,logStartResolveModule:Ba,logStopResolveModule:Ba,logStartParseSourceFile:Ba,logStopParseSourceFile:Ba,logStartReadFile:Ba,logStopReadFile:Ba,logStartBindFile:Ba,logStopBindFile:Ba,logStartScheduledOperation:Ba,logStopScheduledOperation:Ba};try{let e=(Qae=process.env.TS_ETW_MODULE_PATH)!=null?Qae:"./node_modules/@microsoft/typescript-etw";QD=d0(e)}catch{QD=void 0}fp=QD?.logEvent?QD:$ae}});function Zae(e,t,r,i){return e?x8(t,r,i):A8}function x8(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Fs(t)}function s(){--i===0?(Fs(r),hf(e,t,r)):i<0&&L.fail("enter/exit count does not match.")}}function Fs(e){var t;if(q1){let r=(t=hA.get(e))!=null?t:0;hA.set(e,r+1),X1.set(e,Ms()),b0?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function hf(e,t,r){var i,o;if(q1){let s=(i=r!==void 0?X1.get(r):void 0)!=null?i:Ms(),l=(o=t!==void 0?X1.get(t):void 0)!=null?o:rV,f=Y1.get(e)||0;Y1.set(e,f+(s-l)),b0?.measure(e,t,r)}}function eDe(e){return hA.get(e)||0}function tDe(e){return Y1.get(e)||0}function nDe(e){Y1.forEach((t,r)=>e(r,t))}function rDe(e){X1.forEach((t,r)=>e(r))}function iDe(e){e!==void 0?Y1.delete(e):Y1.clear(),b0?.clearMeasures(e)}function aDe(e){e!==void 0?(hA.delete(e),X1.delete(e)):(hA.clear(),X1.clear()),b0?.clearMarks(e)}function oDe(){return q1}function sDe(e=xl){var t;return q1||(q1=!0,eI||(eI=Yae()),eI&&(rV=eI.performance.timeOrigin,(eI.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(b0=eI.performance))),!0}function cDe(){q1&&(X1.clear(),hA.clear(),Y1.clear(),b0=void 0,q1=!1)}var eI,b0,A8,q1,rV,X1,hA,Y1,lDe=gt({"src/compiler/performance.ts"(){"use strict";fa(),A8={enter:Ba,exit:Ba},q1=!1,rV=Ms(),X1=new Map,hA=new Map,Y1=new Map}}),ZD={};Mo(ZD,{clearMarks:()=>aDe,clearMeasures:()=>iDe,createTimer:()=>x8,createTimerIf:()=>Zae,disable:()=>cDe,enable:()=>sDe,forEachMark:()=>rDe,forEachMeasure:()=>nDe,getCount:()=>eDe,getDuration:()=>tDe,isEnabled:()=>oDe,mark:()=>Fs,measure:()=>hf,nullTimer:()=>A8});var E0=gt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";lDe()}}),ai,ew,eoe,toe,uDe=gt({"src/compiler/tracing.ts"(){"use strict";fa(),E0(),(e=>{let t,r=0,i=0,o,s=[],l,f=[];function d(R,ie,$){if(L.assert(!ai,"Tracing already started"),t===void 0)try{t=d0("fs")}catch(le){throw new Error(`tracing requires having fs
| (original error: ${le.message||le})`)}o=R,s.length=0,l===void 0&&(l=vi(ie,"legend.json")),t.existsSync(ie)||t.mkdirSync(ie,{recursive:!0});let fe=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",Z=vi(ie,`trace${fe}.json`),U=vi(ie,`types${fe}.json`);f.push({configFilePath:$,tracePath:Z,typesPath:U}),i=t.openSync(Z,"w"),ai=e;let re={cat:"__metadata",ph:"M",ts:1e3*Ms(),pid:1,tid:1};t.writeSync(i,`[
| `+[{name:"process_name",args:{name:"tsc"},...re},{name:"thread_name",args:{name:"Main"},...re},{name:"TracingStartedInBrowser",...re,cat:"disabled-by-default-devtools.timeline"}].map(le=>JSON.stringify(le)).join(`,
| `))}e.startTracing=d;function g(){L.assert(ai,"Tracing is not in progress"),L.assert(!!s.length==(o!=="server")),t.writeSync(i,`
| ]
| `),t.closeSync(i),ai=void 0,s.length?W(s):f[f.length-1].typesPath=void 0}e.stopTracing=g;function m(R){o!=="server"&&s.push(R)}e.recordType=m;let v;(R=>{R.Parse="parse",R.Program="program",R.Bind="bind",R.Check="check",R.CheckTypes="checkTypes",R.Emit="emit",R.Session="session"})(v=e.Phase||(e.Phase={}));function S(R,ie,$){B("I",R,ie,$,'"s":"g"')}e.instant=S;let x=[];function A(R,ie,$,fe=!1){fe&&B("B",R,ie,$),x.push({phase:R,name:ie,args:$,time:1e3*Ms(),separateBeginAndEnd:fe})}e.push=A;function w(R){L.assert(x.length>0),F(x.length-1,1e3*Ms(),R),x.length--}e.pop=w;function C(){let R=1e3*Ms();for(let ie=x.length-1;ie>=0;ie--)F(ie,R);x.length=0}e.popAll=C;let P=1e3*10;function F(R,ie,$){let{phase:fe,name:Z,args:U,time:re,separateBeginAndEnd:le}=x[R];le?(L.assert(!$,"`results` are not supported for events with `separateBeginAndEnd`"),B("E",fe,Z,U,void 0,ie)):P-re%P<=ie-re&&B("X",fe,Z,{...U,results:$},`"dur":${ie-re}`,re)}function B(R,ie,$,fe,Z,U=1e3*Ms()){o==="server"&&ie==="checkTypes"||(Fs("beginTracing"),t.writeSync(i,`,
| {"pid":1,"tid":1,"ph":"${R}","cat":"${ie}","ts":${U},"name":"${$}"`),Z&&t.writeSync(i,`,${Z}`),fe&&t.writeSync(i,`,"args":${JSON.stringify(fe)}`),t.writeSync(i,"}"),Fs("endTracing"),hf("Tracing","beginTracing","endTracing"))}function q(R){let ie=Gn(R);return ie?{path:ie.path,start:$(Gs(ie,R.pos)),end:$(Gs(ie,R.end))}:void 0;function $(fe){return{line:fe.line+1,character:fe.character+1}}}function W(R){var ie,$,fe,Z,U,re,le,_e,ge,X,Ve,we,ke,Pe,Ce,Ie,Be,Ne,Le,Ye,_t,ct;Fs("beginDumpTypes");let Rt=f[f.length-1].typesPath,We=t.openSync(Rt,"w"),qe=new Map;t.writeSync(We,"[");let zt=R.length;for(let Qt=0;Qt<zt;Qt++){let tn=R[Qt],kn=tn.objectFlags,_n=(ie=tn.aliasSymbol)!=null?ie:tn.symbol,Gt;if(kn&16|tn.flags&2944)try{Gt=($=tn.checker)==null?void 0:$.typeToString(tn)}catch{Gt=void 0}let $n={};if(tn.flags&8388608){let An=tn;$n={indexedAccessObjectType:(fe=An.objectType)==null?void 0:fe.id,indexedAccessIndexType:(Z=An.indexType)==null?void 0:Z.id}}let ui={};if(kn&4){let An=tn;ui={instantiatedType:(U=An.target)==null?void 0:U.id,typeArguments:(re=An.resolvedTypeArguments)==null?void 0:re.map(Kn=>Kn.id),referenceLocation:q(An.node)}}let Ni={};if(tn.flags&16777216){let An=tn;Ni={conditionalCheckType:(le=An.checkType)==null?void 0:le.id,conditionalExtendsType:(_e=An.extendsType)==null?void 0:_e.id,conditionalTrueType:(X=(ge=An.resolvedTrueType)==null?void 0:ge.id)!=null?X:-1,conditionalFalseType:(we=(Ve=An.resolvedFalseType)==null?void 0:Ve.id)!=null?we:-1}}let Pi={};if(tn.flags&33554432){let An=tn;Pi={substitutionBaseType:(ke=An.baseType)==null?void 0:ke.id,constraintType:(Pe=An.constraint)==null?void 0:Pe.id}}let gr={};if(kn&1024){let An=tn;gr={reverseMappedSourceType:(Ce=An.source)==null?void 0:Ce.id,reverseMappedMappedType:(Ie=An.mappedType)==null?void 0:Ie.id,reverseMappedConstraintType:(Be=An.constraintType)==null?void 0:Be.id}}let pt={};if(kn&256){let An=tn;pt={evolvingArrayElementType:An.elementType.id,evolvingArrayFinalType:(Ne=An.finalArrayType)==null?void 0:Ne.id}}let nn,Dt=tn.checker.getRecursionIdentity(tn);Dt&&(nn=qe.get(Dt),nn||(nn=qe.size,qe.set(Dt,nn)));let pn={id:tn.id,intrinsicName:tn.intrinsicName,symbolName:_n?.escapedName&&Gi(_n.escapedName),recursionId:nn,isTuple:kn&8?!0:void 0,unionTypes:tn.flags&1048576?(Le=tn.types)==null?void 0:Le.map(An=>An.id):void 0,intersectionTypes:tn.flags&2097152?tn.types.map(An=>An.id):void 0,aliasTypeArguments:(Ye=tn.aliasTypeArguments)==null?void 0:Ye.map(An=>An.id),keyofType:tn.flags&4194304?(_t=tn.type)==null?void 0:_t.id:void 0,...$n,...ui,...Ni,...Pi,...gr,...pt,destructuringPattern:q(tn.pattern),firstDeclaration:q((ct=_n?.declarations)==null?void 0:ct[0]),flags:L.formatTypeFlags(tn.flags).split("|"),display:Gt};t.writeSync(We,JSON.stringify(pn)),Qt<zt-1&&t.writeSync(We,`,
| `)}t.writeSync(We,`]
| `),t.closeSync(We),Fs("endDumpTypes"),hf("Dump types","beginDumpTypes","endDumpTypes")}function Y(){l&&t.writeFileSync(l,JSON.stringify(f))}e.dumpLegend=Y})(ew||(ew={})),eoe=ew.startTracing,toe=ew.dumpLegend}});function C8(e,t=!0){let r=nw[e.category];return t?r.toLowerCase():r}var I8,L8,k8,iV,D8,w8,aV,tw,oV,tI,R8,sV,cV,lV,uV,dV,fV,_V,pV,mV,hV,gV,yV,vV,bV,O8,EV,TV,SV,xV,N8,P8,AV,CV,IV,LV,kV,M8,DV,wV,RV,OV,NV,PV,nw,rw,MV,FV,GV,BV,F8,UV,VV,jV,HV,WV,zV,JV,KV,qV,G8,B8,U8,XV,YV,$V,QV,ZV,ej,tj,nj,iw,noe=gt({"src/compiler/types.ts"(){"use strict";I8=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.HashToken=62]="HashToken",e[e.EqualsToken=63]="EqualsToken",e[e.PlusEqualsToken=64]="PlusEqualsToken",e[e.MinusEqualsToken=65]="MinusEqualsToken",e[e.AsteriskEqualsToken=66]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=68]="SlashEqualsToken",e[e.PercentEqualsToken=69]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=73]="AmpersandEqualsToken",e[e.BarEqualsToken=74]="BarEqualsToken",e[e.BarBarEqualsToken=75]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=78]="CaretEqualsToken",e[e.Identifier=79]="Identifier",e[e.PrivateIdentifier=80]="PrivateIdentifier",e[e.BreakKeyword=81]="BreakKeyword",e[e.CaseKeyword=82]="CaseKeyword",e[e.CatchKeyword=83]="CatchKeyword",e[e.ClassKeyword=84]="ClassKeyword",e[e.ConstKeyword=85]="ConstKeyword",e[e.ContinueKeyword=86]="ContinueKeyword",e[e.DebuggerKeyword=87]="DebuggerKeyword",e[e.DefaultKeyword=88]="DefaultKeyword",e[e.DeleteKeyword=89]="DeleteKeyword",e[e.DoKeyword=90]="DoKeyword",e[e.ElseKeyword=91]="ElseKeyword",e[e.EnumKeyword=92]="EnumKeyword",e[e.ExportKeyword=93]="ExportKeyword",e[e.ExtendsKeyword=94]="ExtendsKeyword",e[e.FalseKeyword=95]="FalseKeyword",e[e.FinallyKeyword=96]="FinallyKeyword",e[e.ForKeyword=97]="ForKeyword",e[e.FunctionKeyword=98]="FunctionKeyword",e[e.IfKeyword=99]="IfKeyword",e[e.ImportKeyword=100]="ImportKeyword",e[e.InKeyword=101]="InKeyword",e[e.InstanceOfKeyword=102]="InstanceOfKeyword",e[e.NewKeyword=103]="NewKeyword",e[e.NullKeyword=104]="NullKeyword",e[e.ReturnKeyword=105]="ReturnKeyword",e[e.SuperKeyword=106]="SuperKeyword",e[e.SwitchKeyword=107]="SwitchKeyword",e[e.ThisKeyword=108]="ThisKeyword",e[e.ThrowKeyword=109]="ThrowKeyword",e[e.TrueKeyword=110]="TrueKeyword",e[e.TryKeyword=111]="TryKeyword",e[e.TypeOfKeyword=112]="TypeOfKeyword",e[e.VarKeyword=113]="VarKeyword",e[e.VoidKeyword=114]="VoidKeyword",e[e.WhileKeyword=115]="WhileKeyword",e[e.WithKeyword=116]="WithKeyword",e[e.ImplementsKeyword=117]="ImplementsKeyword",e[e.InterfaceKeyword=118]="InterfaceKeyword",e[e.LetKeyword=119]="LetKeyword",e[e.PackageKeyword=120]="PackageKeyword",e[e.PrivateKeyword=121]="PrivateKeyword",e[e.ProtectedKeyword=122]="ProtectedKeyword",e[e.PublicKeyword=123]="PublicKeyword",e[e.StaticKeyword=124]="StaticKeyword",e[e.YieldKeyword=125]="YieldKeyword",e[e.AbstractKeyword=126]="AbstractKeyword",e[e.AccessorKeyword=127]="AccessorKeyword",e[e.AsKeyword=128]="AsKeyword",e[e.AssertsKeyword=129]="AssertsKeyword",e[e.AssertKeyword=130]="AssertKeyword",e[e.AnyKeyword=131]="AnyKeyword",e[e.AsyncKeyword=132]="AsyncKeyword",e[e.AwaitKeyword=133]="AwaitKeyword",e[e.BooleanKeyword=134]="BooleanKeyword",e[e.ConstructorKeyword=135]="ConstructorKeyword",e[e.DeclareKeyword=136]="DeclareKeyword",e[e.GetKeyword=137]="GetKeyword",e[e.InferKeyword=138]="InferKeyword",e[e.IntrinsicKeyword=139]="IntrinsicKeyword",e[e.IsKeyword=140]="IsKeyword",e[e.KeyOfKeyword=141]="KeyOfKeyword",e[e.ModuleKeyword=142]="ModuleKeyword",e[e.NamespaceKeyword=143]="NamespaceKeyword",e[e.NeverKeyword=144]="NeverKeyword",e[e.OutKeyword=145]="OutKeyword",e[e.ReadonlyKeyword=146]="ReadonlyKeyword",e[e.RequireKeyword=147]="RequireKeyword",e[e.NumberKeyword=148]="NumberKeyword",e[e.ObjectKeyword=149]="ObjectKeyword",e[e.SatisfiesKeyword=150]="SatisfiesKeyword",e[e.SetKeyword=151]="SetKeyword",e[e.StringKeyword=152]="StringKeyword",e[e.SymbolKeyword=153]="SymbolKeyword",e[e.TypeKeyword=154]="TypeKeyword",e[e.UndefinedKeyword=155]="UndefinedKeyword",e[e.UniqueKeyword=156]="UniqueKeyword",e[e.UnknownKeyword=157]="UnknownKeyword",e[e.FromKeyword=158]="FromKeyword",e[e.GlobalKeyword=159]="GlobalKeyword",e[e.BigIntKeyword=160]="BigIntKeyword",e[e.OverrideKeyword=161]="OverrideKeyword",e[e.OfKeyword=162]="OfKeyword",e[e.QualifiedName=163]="QualifiedName",e[e.ComputedPropertyName=164]="ComputedPropertyName",e[e.TypeParameter=165]="TypeParameter",e[e.Parameter=166]="Parameter",e[e.Decorator=167]="Decorator",e[e.PropertySignature=168]="PropertySignature",e[e.PropertyDeclaration=169]="PropertyDeclaration",e[e.MethodSignature=170]="MethodSignature",e[e.MethodDeclaration=171]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",e[e.Constructor=173]="Constructor",e[e.GetAccessor=174]="GetAccessor",e[e.SetAccessor=175]="SetAccessor",e[e.CallSignature=176]="CallSignature",e[e.ConstructSignature=177]="ConstructSignature",e[e.IndexSignature=178]="IndexSignature",e[e.TypePredicate=179]="TypePredicate",e[e.TypeReference=180]="TypeReference",e[e.FunctionType=181]="FunctionType",e[e.ConstructorType=182]="ConstructorType",e[e.TypeQuery=183]="TypeQuery",e[e.TypeLiteral=184]="TypeLiteral",e[e.ArrayType=185]="ArrayType",e[e.TupleType=186]="TupleType",e[e.OptionalType=187]="OptionalType",e[e.RestType=188]="RestType",e[e.UnionType=189]="UnionType",e[e.IntersectionType=190]="IntersectionType",e[e.ConditionalType=191]="ConditionalType",e[e.InferType=192]="InferType",e[e.ParenthesizedType=193]="ParenthesizedType",e[e.ThisType=194]="ThisType",e[e.TypeOperator=195]="TypeOperator",e[e.IndexedAccessType=196]="IndexedAccessType",e[e.MappedType=197]="MappedType",e[e.LiteralType=198]="LiteralType",e[e.NamedTupleMember=199]="NamedTupleMember",e[e.TemplateLiteralType=200]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",e[e.ImportType=202]="ImportType",e[e.ObjectBindingPattern=203]="ObjectBindingPattern",e[e.ArrayBindingPattern=204]="ArrayBindingPattern",e[e.BindingElement=205]="BindingElement",e[e.ArrayLiteralExpression=206]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=207]="ObjectLiteralExpression",e[e.PropertyAccessExpression=208]="PropertyAccessExpression",e[e.ElementAccessExpression=209]="ElementAccessExpression",e[e.CallExpression=210]="CallExpression",e[e.NewExpression=211]="NewExpression",e[e.TaggedTemplateExpression=212]="TaggedTemplateExpression",e[e.TypeAssertionExpression=213]="TypeAssertionExpression",e[e.ParenthesizedExpression=214]="ParenthesizedExpression",e[e.FunctionExpression=215]="FunctionExpression",e[e.ArrowFunction=216]="ArrowFunction",e[e.DeleteExpression=217]="DeleteExpression",e[e.TypeOfExpression=218]="TypeOfExpression",e[e.VoidExpression=219]="VoidExpression",e[e.AwaitExpression=220]="AwaitExpression",e[e.PrefixUnaryExpression=221]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=222]="PostfixUnaryExpression",e[e.BinaryExpression=223]="BinaryExpression",e[e.ConditionalExpression=224]="ConditionalExpression",e[e.TemplateExpression=225]="TemplateExpression",e[e.YieldExpression=226]="YieldExpression",e[e.SpreadElement=227]="SpreadElement",e[e.ClassExpression=228]="ClassExpression",e[e.OmittedExpression=229]="OmittedExpression",e[e.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",e[e.AsExpression=231]="AsExpression",e[e.NonNullExpression=232]="NonNullExpression",e[e.MetaProperty=233]="MetaProperty",e[e.SyntheticExpression=234]="SyntheticExpression",e[e.SatisfiesExpression=235]="SatisfiesExpression",e[e.TemplateSpan=236]="TemplateSpan",e[e.SemicolonClassElement=237]="SemicolonClassElement",e[e.Block=238]="Block",e[e.EmptyStatement=239]="EmptyStatement",e[e.VariableStatement=240]="VariableStatement",e[e.ExpressionStatement=241]="ExpressionStatement",e[e.IfStatement=242]="IfStatement",e[e.DoStatement=243]="DoStatement",e[e.WhileStatement=244]="WhileStatement",e[e.ForStatement=245]="ForStatement",e[e.ForInStatement=246]="ForInStatement",e[e.ForOfStatement=247]="ForOfStatement",e[e.ContinueStatement=248]="ContinueStatement",e[e.BreakStatement=249]="BreakStatement",e[e.ReturnStatement=250]="ReturnStatement",e[e.WithStatement=251]="WithStatement",e[e.SwitchStatement=252]="SwitchStatement",e[e.LabeledStatement=253]="LabeledStatement",e[e.ThrowStatement=254]="ThrowStatement",e[e.TryStatement=255]="TryStatement",e[e.DebuggerStatement=256]="DebuggerStatement",e[e.VariableDeclaration=257]="VariableDeclaration",e[e.VariableDeclarationList=258]="VariableDeclarationList",e[e.FunctionDeclaration=259]="FunctionDeclaration",e[e.ClassDeclaration=260]="ClassDeclaration",e[e.InterfaceDeclaration=261]="InterfaceDeclaration",e[e.TypeAliasDeclaration=262]="TypeAliasDeclaration",e[e.EnumDeclaration=263]="EnumDeclaration",e[e.ModuleDeclaration=264]="ModuleDeclaration",e[e.ModuleBlock=265]="ModuleBlock",e[e.CaseBlock=266]="CaseBlock",e[e.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",e[e.ImportDeclaration=269]="ImportDeclaration",e[e.ImportClause=270]="ImportClause",e[e.NamespaceImport=271]="NamespaceImport",e[e.NamedImports=272]="NamedImports",e[e.ImportSpecifier=273]="ImportSpecifier",e[e.ExportAssignment=274]="ExportAssignment",e[e.ExportDeclaration=275]="ExportDeclaration",e[e.NamedExports=276]="NamedExports",e[e.NamespaceExport=277]="NamespaceExport",e[e.ExportSpecifier=278]="ExportSpecifier",e[e.MissingDeclaration=279]="MissingDeclaration",e[e.ExternalModuleReference=280]="ExternalModuleReference",e[e.JsxElement=281]="JsxElement",e[e.JsxSelfClosingElement=282]="JsxSelfClosingElement",e[e.JsxOpeningElement=283]="JsxOpeningElement",e[e.JsxClosingElement=284]="JsxClosingElement",e[e.JsxFragment=285]="JsxFragment",e[e.JsxOpeningFragment=286]="JsxOpeningFragment",e[e.JsxClosingFragment=287]="JsxClosingFragment",e[e.JsxAttribute=288]="JsxAttribute",e[e.JsxAttributes=289]="JsxAttributes",e[e.JsxSpreadAttribute=290]="JsxSpreadAttribute",e[e.JsxExpression=291]="JsxExpression",e[e.CaseClause=292]="CaseClause",e[e.DefaultClause=293]="DefaultClause",e[e.HeritageClause=294]="HeritageClause",e[e.CatchClause=295]="CatchClause",e[e.AssertClause=296]="AssertClause",e[e.AssertEntry=297]="AssertEntry",e[e.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",e[e.PropertyAssignment=299]="PropertyAssignment",e[e.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",e[e.SpreadAssignment=301]="SpreadAssignment",e[e.EnumMember=302]="EnumMember",e[e.UnparsedPrologue=303]="UnparsedPrologue",e[e.UnparsedPrepend=304]="UnparsedPrepend",e[e.UnparsedText=305]="UnparsedText",e[e.UnparsedInternalText=306]="UnparsedInternalText",e[e.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.UnparsedSource=310]="UnparsedSource",e[e.InputFiles=311]="InputFiles",e[e.JSDocTypeExpression=312]="JSDocTypeExpression",e[e.JSDocNameReference=313]="JSDocNameReference",e[e.JSDocMemberName=314]="JSDocMemberName",e[e.JSDocAllType=315]="JSDocAllType",e[e.JSDocUnknownType=316]="JSDocUnknownType",e[e.JSDocNullableType=317]="JSDocNullableType",e[e.JSDocNonNullableType=318]="JSDocNonNullableType",e[e.JSDocOptionalType=319]="JSDocOptionalType",e[e.JSDocFunctionType=320]="JSDocFunctionType",e[e.JSDocVariadicType=321]="JSDocVariadicType",e[e.JSDocNamepathType=322]="JSDocNamepathType",e[e.JSDoc=323]="JSDoc",e[e.JSDocComment=323]="JSDocComment",e[e.JSDocText=324]="JSDocText",e[e.JSDocTypeLiteral=325]="JSDocTypeLiteral",e[e.JSDocSignature=326]="JSDocSignature",e[e.JSDocLink=327]="JSDocLink",e[e.JSDocLinkCode=328]="JSDocLinkCode",e[e.JSDocLinkPlain=329]="JSDocLinkPlain",e[e.JSDocTag=330]="JSDocTag",e[e.JSDocAugmentsTag=331]="JSDocAugmentsTag",e[e.JSDocImplementsTag=332]="JSDocImplementsTag",e[e.JSDocAuthorTag=333]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",e[e.JSDocClassTag=335]="JSDocClassTag",e[e.JSDocPublicTag=336]="JSDocPublicTag",e[e.JSDocPrivateTag=337]="JSDocPrivateTag",e[e.JSDocProtectedTag=338]="JSDocProtectedTag",e[e.JSDocReadonlyTag=339]="JSDocReadonlyTag",e[e.JSDocOverrideTag=340]="JSDocOverrideTag",e[e.JSDocCallbackTag=341]="JSDocCallbackTag",e[e.JSDocOverloadTag=342]="JSDocOverloadTag",e[e.JSDocEnumTag=343]="JSDocEnumTag",e[e.JSDocParameterTag=344]="JSDocParameterTag",e[e.JSDocReturnTag=345]="JSDocReturnTag",e[e.JSDocThisTag=346]="JSDocThisTag",e[e.JSDocTypeTag=347]="JSDocTypeTag",e[e.JSDocTemplateTag=348]="JSDocTemplateTag",e[e.JSDocTypedefTag=349]="JSDocTypedefTag",e[e.JSDocSeeTag=350]="JSDocSeeTag",e[e.JSDocPropertyTag=351]="JSDocPropertyTag",e[e.JSDocThrowsTag=352]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=353]="JSDocSatisfiesTag",e[e.SyntaxList=354]="SyntaxList",e[e.NotEmittedStatement=355]="NotEmittedStatement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.MergeDeclarationMarker=358]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=359]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=360]="SyntheticReferenceExpression",e[e.Count=361]="Count",e[e.FirstAssignment=63]="FirstAssignment",e[e.LastAssignment=78]="LastAssignment",e[e.FirstCompoundAssignment=64]="FirstCompoundAssignment",e[e.LastCompoundAssignment=78]="LastCompoundAssignment",e[e.FirstReservedWord=81]="FirstReservedWord",e[e.LastReservedWord=116]="LastReservedWord",e[e.FirstKeyword=81]="FirstKeyword",e[e.LastKeyword=162]="LastKeyword",e[e.FirstFutureReservedWord=117]="FirstFutureReservedWord",e[e.LastFutureReservedWord=125]="LastFutureReservedWord",e[e.FirstTypeNode=179]="FirstTypeNode",e[e.LastTypeNode=202]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=78]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=162]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=78]="LastBinaryOperator",e[e.FirstStatement=240]="FirstStatement",e[e.LastStatement=256]="LastStatement",e[e.FirstNode=163]="FirstNode",e[e.FirstJSDocNode=312]="FirstJSDocNode",e[e.LastJSDocNode=353]="LastJSDocNode",e[e.FirstJSDocTagNode=330]="FirstJSDocTagNode",e[e.LastJSDocTagNode=353]="LastJSDocTagNode",e[e.FirstContextualKeyword=126]="FirstContextualKeyword",e[e.LastContextualKeyword=162]="LastContextualKeyword",e))(I8||{}),L8=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=131072]="ThisNodeHasError",e[e.JavaScriptFile=262144]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=1048576]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",e[e.JSDoc=8388608]="JSDoc",e[e.Ambient=16777216]="Ambient",e[e.InWithStatement=33554432]="InWithStatement",e[e.JsonFile=67108864]="JsonFile",e[e.TypeCached=134217728]="TypeCached",e[e.Deprecated=268435456]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=50720768]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=128]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=2048]="IdentifierIsInJSDocNamespace",e))(L8||{}),k8=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(k8||{}),iV=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(iV||{}),D8=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(D8||{}),w8=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(w8||{}),aV=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",e))(aV||{}),tw=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(tw||{}),oV=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(oV||{}),tI=class{},R8=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(R8||{}),sV=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(sV||{}),cV=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(cV||{}),lV=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(lV||{}),uV=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(uV||{}),dV=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(dV||{}),fV=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(fV||{}),_V=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(_V||{}),pV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(pV||{}),mV=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(mV||{}),hV=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(hV||{}),gV=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(gV||{}),yV=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(yV||{}),vV=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(vV||{}),bV=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(bV||{}),O8=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(O8||{}),EV=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(EV||{}),TV=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(TV||{}),SV=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(SV||{}),xV=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=65536]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=131072]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=262144]="NeedsLoopOutParameter",e[e.AssignmentsMarked=524288]="AssignmentsMarked",e[e.ClassWithConstructorReference=1048576]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=2097152]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=4194304]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=8388608]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=16777216]="InCheckIdentifier",e))(xV||{}),N8=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=134348796]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",e))(N8||{}),P8=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(P8||{}),AV=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(AV||{}),CV=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(CV||{}),IV=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(IV||{}),LV=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(LV||{}),kV=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(kV||{}),M8=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(M8||{}),DV=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(DV||{}),wV=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(wV||{}),RV=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(RV||{}),OV=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(OV||{}),NV=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(NV||{}),PV=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(PV||{}),nw=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(nw||{}),rw=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(rw||{}),MV=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(MV||{}),FV=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(FV||{}),GV=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(GV||{}),BV=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(BV||{}),F8=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(F8||{}),UV=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(UV||{}),VV=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(VV||{}),jV=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(jV||{}),HV=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(HV||{}),WV=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(WV||{}),zV=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(zV||{}),JV=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(JV||{}),KV=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(KV||{}),qV=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(qV||{}),G8=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(G8||{}),B8=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(B8||{}),U8=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.HasEndOfDeclarationMarker=8388608]="HasEndOfDeclarationMarker",e[e.Iterator=16777216]="Iterator",e[e.NoAsciiEscaping=33554432]="NoAsciiEscaping",e))(U8||{}),XV=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(XV||{}),YV=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(YV||{}),$V=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))($V||{}),QV=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(QV||{}),ZV=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ZV||{}),ej=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(ej||{}),tj=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(tj||{}),nj=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(nj||{}),iw={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function aw(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function dDe(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function $1(e,t){return e.getModifiedTime(t)||Eh}function rj(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function fDe(e){if(!e.getEnvironmentVariable)return;let t=o("TSC_WATCH_POLLINGINTERVAL",V8);cw=s("TSC_WATCH_POLLINGCHUNKSIZE",sw)||cw,lw=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",sw)||lw;function r(l,f){return e.getEnvironmentVariable(`${l}_${f.toUpperCase()}`)}function i(l){let f;return d("Low"),d("Medium"),d("High"),f;function d(g){let m=r(l,g);m&&((f||(f={}))[g]=Number(m))}}function o(l,f){let d=i(l);if(d)return g("Low"),g("Medium"),g("High"),!0;return!1;function g(m){f[m]=d[m]||f[m]}}function s(l,f){let d=i(l);return(t||d)&&rj(d?{...f,...d}:f)}}function roe(e,t,r,i,o){let s=r;for(let f=t.length;i&&f;l(),f--){let d=t[r];if(d){if(d.isClosed){t[r]=void 0;continue}}else continue;i--;let g=hDe(d,$1(e,d.fileName));if(d.isClosed){t[r]=void 0;continue}o?.(d,r,g),t[r]&&(s<r&&(t[s]=d,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function _De(e){let t=[],r=[],i=f(250),o=f(500),s=f(2e3);return l;function l(C,P,F){let B={fileName:C,callback:P,unchangedPolls:0,mtime:$1(e,C)};return t.push(B),S(B,F),{close:()=>{B.isClosed=!0,YD(t,B)}}}function f(C){let P=[];return P.pollingInterval=C,P.pollIndex=0,P.pollScheduled=!1,P}function d(C){C.pollIndex=m(C,C.pollingInterval,C.pollIndex,cw[C.pollingInterval]),C.length?w(C.pollingInterval):(L.assert(C.pollIndex===0),C.pollScheduled=!1)}function g(C){m(r,250,0,r.length),d(C),!C.pollScheduled&&r.length&&w(250)}function m(C,P,F,B){return roe(e,C,F,B,q);function q(W,Y,R){R?(W.unchangedPolls=0,C!==r&&(C[Y]=void 0,x(W))):W.unchangedPolls!==lw[P]?W.unchangedPolls++:C===r?(W.unchangedPolls=1,C[Y]=void 0,S(W,250)):P!==2e3&&(W.unchangedPolls++,C[Y]=void 0,S(W,P===250?500:2e3))}}function v(C){switch(C){case 250:return i;case 500:return o;case 2e3:return s}}function S(C,P){v(P).push(C),A(P)}function x(C){r.push(C),A(250)}function A(C){v(C).pollScheduled||w(C)}function w(C){v(C).pollScheduled=e.setTimeout(C===250?g:d,C,v(C))}}function pDe(e,t){let r=Nf(),i=new Map,o=Dl(t);return s;function s(f,d,g,m){let v=o(f);r.add(v,d);let S=ni(v)||".",x=i.get(S)||l(ni(f)||".",S,m);return x.referenceCount++,{close:()=>{x.referenceCount===1?(x.close(),i.delete(S)):x.referenceCount--,r.remove(v,d)}}}function l(f,d,g){let m=e(f,1,(v,S,x)=>{if(!Ta(S))return;let A=_a(S,f),w=A&&r.get(o(A));if(w)for(let C of w)C(A,1,x)},!1,500,g);return m.referenceCount=0,i.set(d,m),m}}function mDe(e){let t=[],r=0,i;return o;function o(f,d){let g={fileName:f,callback:d,mtime:$1(e,f)};return t.push(g),l(),{close:()=>{g.isClosed=!0,YD(t,g)}}}function s(){i=void 0,r=roe(e,t,r,cw[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3))}}function ioe(e,t,r,i,o){let l=Dl(t)(r),f=e.get(l);return f?f.callbacks.push(i):e.set(l,{watcher:o((d,g,m)=>{var v;return(v=e.get(l))==null?void 0:v.callbacks.slice().forEach(S=>S(d,g,m))}),callbacks:[i]}),{close:()=>{let d=e.get(l);d&&(!m8(d.callbacks,i)||d.callbacks.length||(e.delete(l),_m(d)))}}}function hDe(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,aoe(r,i),t),!0):!1}function aoe(e,t){return e===0?0:t===0?2:1}function ow(e){return aj(e)}function ooe(e){aj=e}function gDe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:f}){let d=new Map,g=Nf(),m=new Map,v,S=p8(!t),x=Dl(t);return(R,ie,$,fe)=>$?A(R,fe,ie):e(R,ie,$,fe);function A(R,ie,$){let fe=x(R),Z=d.get(fe);Z?Z.refCount++:(Z={watcher:e(R,re=>{W(re,ie)||(ie?.synchronousWatchDirectory?(w(fe,re),q(R,fe,ie)):C(R,fe,re,ie))},!1,ie),refCount:1,childWatches:Je},d.set(fe,Z),q(R,fe,ie));let U=$&&{dirName:R,callback:$};return U&&g.add(fe,U),{dirName:R,close:()=>{let re=L.checkDefined(d.get(fe));U&&g.remove(fe,U),re.refCount--,!re.refCount&&(d.delete(fe),_m(re),re.childWatches.forEach(am))}}}function w(R,ie,$){let fe,Z;Ta(ie)?fe=ie:Z=ie,g.forEach((U,re)=>{if(!(Z&&Z.get(re)===!0)&&(re===R||na(R,re)&&R[re.length]===_s))if(Z)if($){let le=Z.get(re);le?le.push(...$):Z.set(re,$.slice())}else Z.set(re,!0);else U.forEach(({callback:le})=>le(fe))})}function C(R,ie,$,fe){let Z=d.get(ie);if(Z&&o(R,1)){P(R,ie,$,fe);return}w(ie,$),B(Z)}function P(R,ie,$,fe){let Z=m.get(ie);Z?Z.fileNames.push($):m.set(ie,{dirName:R,options:fe,fileNames:[$]}),v&&(f(v),v=void 0),v=l(F,1e3)}function F(){v=void 0,ow(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let R=Ms(),ie=new Map;for(;!v&&m.size;){let fe=m.entries().next();L.assert(!fe.done);let{value:[Z,{dirName:U,options:re,fileNames:le}]}=fe;m.delete(Z);let _e=q(U,Z,re);w(Z,ie,_e?void 0:le)}ow(`sysLog:: invokingWatchers:: Elapsed:: ${Ms()-R}ms:: ${m.size}`),g.forEach((fe,Z)=>{let U=ie.get(Z);U&&fe.forEach(({callback:re,dirName:le})=>{ba(U)?U.forEach(re):re(le)})});let $=Ms()-R;ow(`sysLog:: Elapsed:: ${$}ms:: onTimerToUpdateChildWatches:: ${m.size} ${v}`)}function B(R){if(!R)return;let ie=R.childWatches;R.childWatches=Je;for(let $ of ie)$.close(),B(d.get(x($.dirName)))}function q(R,ie,$){let fe=d.get(ie);if(!fe)return!1;let Z,U=wae(o(R,1)?Zi(i(R),_e=>{let ge=_a(_e,R);return!W(ge,$)&&S(ge,So(s(ge)))===0?ge:void 0}):Je,fe.childWatches,(_e,ge)=>S(_e,ge.dirName),re,am,le);return fe.childWatches=Z||Je,U;function re(_e){let ge=A(_e,$);le(ge)}function le(_e){(Z||(Z=[])).push(_e)}}function W(R,ie){return vt(uw,$=>Y(R,$))||soe(R,ie,t,r)}function Y(R,ie){return jl(R,ie)?!0:t?!1:jl(x(R),ie)}}function yDe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function vDe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||Eh),t(e,s!==Eh?0:2,s)):t(e,1,s)}}function soe(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(G3(e,t?.excludeFiles,r,i())||G3(e,t?.excludeDirectories,r,i()))}function coe(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let f=l?So(vi(e,l)):e;(!l||!soe(f,r,i,o))&&t(f)}}}function loe({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:f,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:g,realpath:m,tscWatchFile:v,useNonPollingWatchers:S,tscWatchDirectory:x,inodeWatching:A,sysLog:w}){let C=new Map,P=new Map,F=new Map,B,q,W,Y,R=!1;return{watchFile:ie,watchDirectory:re};function ie(we,ke,Pe,Ce){Ce=Z(Ce,S);let Ie=L.checkDefined(Ce.watchFile);switch(Ie){case 0:return ge(we,ke,250,void 0);case 1:return ge(we,ke,Pe,void 0);case 2:return $()(we,ke,Pe,void 0);case 3:return fe()(we,ke,void 0,void 0);case 4:return X(we,0,vDe(we,ke,t),!1,Pe,_N(Ce));case 5:return W||(W=pDe(X,l)),W(we,ke,Pe,_N(Ce));default:L.assertNever(Ie)}}function $(){return B||(B=_De({getModifiedTime:t,setTimeout:r}))}function fe(){return q||(q=mDe({getModifiedTime:t,setTimeout:r}))}function Z(we,ke){if(we&&we.watchFile!==void 0)return we;switch(v){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return U(4,1,we);case"UseFsEventsWithFallbackDynamicPolling":return U(4,2,we);case"UseFsEventsOnParentDirectory":ke=!0;default:return ke?U(5,1,we):{watchFile:4}}}function U(we,ke,Pe){let Ce=Pe?.fallbackPolling;return{watchFile:we,fallbackPolling:Ce===void 0?ke:Ce}}function re(we,ke,Pe,Ce){return d?X(we,1,coe(we,ke,Ce,l,f),Pe,500,_N(Ce)):(Y||(Y=gDe({useCaseSensitiveFileNames:l,getCurrentDirectory:f,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:g,watchDirectory:le,realpath:m,setTimeout:r,clearTimeout:i})),Y(we,ke,Pe,Ce))}function le(we,ke,Pe,Ce){L.assert(!Pe);let Ie=_e(Ce),Be=L.checkDefined(Ie.watchDirectory);switch(Be){case 1:return ge(we,()=>ke(we),500,void 0);case 2:return $()(we,()=>ke(we),500,void 0);case 3:return fe()(we,()=>ke(we),void 0,void 0);case 0:return X(we,1,coe(we,ke,Ce,l,f),Pe,500,_N(Ie));default:L.assertNever(Be)}}function _e(we){if(we&&we.watchDirectory!==void 0)return we;switch(x){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let ke=we?.fallbackPolling;return{watchDirectory:0,fallbackPolling:ke!==void 0?ke:void 0}}}function ge(we,ke,Pe,Ce){return ioe(C,l,we,ke,Ie=>e(we,Ie,Pe,Ce))}function X(we,ke,Pe,Ce,Ie,Be){return ioe(Ce?F:P,l,we,Pe,Ne=>Ve(we,ke,Ne,Ce,Ie,Be))}function Ve(we,ke,Pe,Ce,Ie,Be){let Ne,Le;A&&(Ne=we.substring(we.lastIndexOf(_s)),Le=Ne.slice(_s.length));let Ye=s(we,ke)?ct():qe();return{close:()=>{Ye&&(Ye.close(),Ye=void 0)}};function _t(zt){Ye&&(w(`sysLog:: ${we}:: Changing watcher to ${zt===ct?"Present":"Missing"}FileSystemEntryWatcher`),Ye.close(),Ye=zt())}function ct(){if(R)return w(`sysLog:: ${we}:: Defaulting to watchFile`),We();try{let zt=o(we,Ce,A?Rt:Pe);return zt.on("error",()=>{Pe("rename",""),_t(qe)}),zt}catch(zt){return R||(R=zt.code==="ENOSPC"),w(`sysLog:: ${we}:: Changing to watchFile`),We()}}function Rt(zt,Qt){let tn;if(Qt&&Oc(Qt,"~")&&(tn=Qt,Qt=Qt.slice(0,Qt.length-1)),zt==="rename"&&(!Qt||Qt===Le||Oc(Qt,Ne))){let kn=t(we)||Eh;tn&&Pe(zt,tn,kn),Pe(zt,Qt,kn),A?_t(kn===Eh?qe:ct):kn===Eh&&_t(qe)}else tn&&Pe(zt,tn),Pe(zt,Qt)}function We(){return ie(we,yDe(Pe),Ie,Be)}function qe(){return ie(we,(zt,Qt,tn)=>{Qt===0&&(tn||(tn=t(we)||Eh),tn!==Eh&&(Pe("rename","",tn),_t(ct)))},Ie,Be)}}}function uoe(e){let t=e.writeFile;e.writeFile=(r,i,o)=>nW(r,i,!!o,(s,l,f)=>t.call(e,s,l,f),s=>e.createDirectory(s),s=>e.directoryExists(s))}function bDe(e){xl=e}var ij,V8,Eh,sw,cw,lw,uw,aj,oj,xl,EDe=gt({"src/compiler/sys.ts"(){"use strict";fa(),ij=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(ij||{}),V8=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(V8||{}),Eh=new Date(0),sw={Low:32,Medium:64,High:256},cw=rj(sw),lw=rj(sw),uw=["/node_modules/.","/.git","/.#"],aj=Ba,oj=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(oj||{}),xl=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=d0("fs"),s=d0("path"),l=d0("os"),f;try{f=d0("crypto")}catch{f=void 0}let d,g="./profile.cpuprofile",m=d0("buffer").Buffer,v=process.platform==="linux"||process.platform==="darwin",S=l.platform(),x=fe(),A=o.realpathSync.native?process.platform==="win32"?Ie:o.realpathSync.native:o.realpathSync,w=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,C=process.platform==="win32"||process.platform==="darwin",P=zu(()=>process.cwd()),{watchFile:F,watchDirectory:B}=loe({pollingWatchFileWorker:U,getModifiedTime:Ne,setTimeout,clearTimeout,fsWatchWorker:re,useCaseSensitiveFileNames:x,getCurrentDirectory:P,fileSystemEntryExists:we,fsSupportsRecursiveFsWatch:C,getAccessibleSortedChildDirectories:ct=>X(ct).directories,realpath:Be,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:v,sysLog:ow}),q={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:x,write(ct){process.stdout.write(ct)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:_e,writeFile:ge,watchFile:F,watchDirectory:B,resolvePath:ct=>s.resolve(ct),fileExists:ke,directoryExists:Pe,createDirectory(ct){if(!q.directoryExists(ct))try{o.mkdirSync(ct)}catch(Rt){if(Rt.code!=="EEXIST")throw Rt}},getExecutingFilePath(){return w},getCurrentDirectory:P,getDirectories:Ce,getEnvironmentVariable(ct){return process.env[ct]||""},readDirectory:Ve,getModifiedTime:Ne,setModifiedTime:Le,deleteFile:Ye,createHash:f?_t:aw,createSHA256Hash:f?_t:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(ct){try{let Rt=W(ct);if(Rt?.isFile())return Rt.size}catch{}return 0},exit(ct){ie(()=>process.exit(ct))},enableCPUProfiler:Y,disableCPUProfiler:ie,cpuProfilingEnabled:()=>!!d||ya(process.execArgv,"--cpu-prof")||ya(process.execArgv,"--prof"),realpath:Be,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||vt(process.execArgv,ct=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(ct)),tryEnableSourceMapsForHost(){try{d0("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:$,base64decode:ct=>$(ct,"base64").toString("utf8"),base64encode:ct=>$(ct).toString("base64"),require:(ct,Rt)=>{try{let We=jfe(Rt,ct,q);return{module:d0(We),modulePath:We,error:void 0}}catch(We){return{module:void 0,modulePath:void 0,error:We}}}};return q;function W(ct){return o.statSync(ct,{throwIfNoEntry:!1})}function Y(ct,Rt){if(d)return Rt(),!1;let We=d0("inspector");if(!We||!We.Session)return Rt(),!1;let qe=new We.Session;return qe.connect(),qe.post("Profiler.enable",()=>{qe.post("Profiler.start",()=>{d=qe,g=ct,Rt()})}),!0}function R(ct){let Rt=0,We=new Map,qe=Al(s.dirname(w)),zt=`file://${_p(qe)===1?"":"/"}${qe}`;for(let Qt of ct.nodes)if(Qt.callFrame.url){let tn=Al(Qt.callFrame.url);Gy(zt,tn,x)?Qt.callFrame.url=Q1(zt,tn,zt,Dl(x),!0):i.test(tn)||(Qt.callFrame.url=(We.has(tn)?We:We.set(tn,`external${Rt}.js`)).get(tn),Rt++)}return ct}function ie(ct){if(d&&d!=="stopping"){let Rt=d;return d.post("Profiler.stop",(We,{profile:qe})=>{var zt;if(!We){try{(zt=W(g))!=null&&zt.isDirectory()&&(g=s.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(g),{recursive:!0})}catch{}o.writeFileSync(g,JSON.stringify(R(qe)))}d=void 0,Rt.disconnect(),ct()}),d="stopping",!0}else return ct(),!1}function $(ct,Rt){return m.from&&m.from!==Int8Array.from?m.from(ct,Rt):new m(ct,Rt)}function fe(){return S==="win32"||S==="win64"?!1:!ke(Z(__filename))}function Z(ct){return ct.replace(/\w/g,Rt=>{let We=Rt.toUpperCase();return Rt===We?Rt.toLowerCase():We})}function U(ct,Rt,We){o.watchFile(ct,{persistent:!0,interval:We},zt);let qe;return{close:()=>o.unwatchFile(ct,zt)};function zt(Qt,tn){let kn=+tn.mtime==0||qe===2;if(+Qt.mtime==0){if(kn)return;qe=2}else if(kn)qe=0;else{if(+Qt.mtime==+tn.mtime)return;qe=1}Rt(ct,qe,Qt.mtime)}}function re(ct,Rt,We){return o.watch(ct,C?{persistent:!0,recursive:!!Rt}:{persistent:!0},We)}function le(ct,Rt){let We;try{We=o.readFileSync(ct)}catch{return}let qe=We.length;if(qe>=2&&We[0]===254&&We[1]===255){qe&=-2;for(let zt=0;zt<qe;zt+=2){let Qt=We[zt];We[zt]=We[zt+1],We[zt+1]=Qt}return We.toString("utf16le",2)}return qe>=2&&We[0]===255&&We[1]===254?We.toString("utf16le",2):qe>=3&&We[0]===239&&We[1]===187&&We[2]===191?We.toString("utf8",3):We.toString("utf8")}function _e(ct,Rt){fp.logStartReadFile(ct);let We=le(ct,Rt);return fp.logStopReadFile(),We}function ge(ct,Rt,We){fp.logEvent("WriteFile: "+ct),We&&(Rt=e+Rt);let qe;try{qe=o.openSync(ct,"w"),o.writeSync(qe,Rt,void 0,"utf8")}finally{qe!==void 0&&o.closeSync(qe)}}function X(ct){fp.logEvent("ReadDir: "+(ct||"."));try{let Rt=o.readdirSync(ct||".",{withFileTypes:!0}),We=[],qe=[];for(let zt of Rt){let Qt=typeof zt=="string"?zt:zt.name;if(Qt==="."||Qt==="..")continue;let tn;if(typeof zt=="string"||zt.isSymbolicLink()){let kn=vi(ct,Qt);try{if(tn=W(kn),!tn)continue}catch{continue}}else tn=zt;tn.isFile()?We.push(Qt):tn.isDirectory()&&qe.push(Qt)}return We.sort(),qe.sort(),{files:We,directories:qe}}catch{return D4}}function Ve(ct,Rt,We,qe,zt){return wW(ct,Rt,We,qe,x,process.cwd(),zt,X,Be)}function we(ct,Rt){let We=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let qe=W(ct);if(!qe)return!1;switch(Rt){case 0:return qe.isFile();case 1:return qe.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=We}}function ke(ct){return we(ct,0)}function Pe(ct){return we(ct,1)}function Ce(ct){return X(ct).directories.slice()}function Ie(ct){return ct.length<260?o.realpathSync.native(ct):o.realpathSync(ct)}function Be(ct){try{return A(ct)}catch{return ct}}function Ne(ct){var Rt;let We=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Rt=W(ct))==null?void 0:Rt.mtime}catch{return}finally{Error.stackTraceLimit=We}}function Le(ct,Rt){try{o.utimesSync(ct,Rt,Rt)}catch{return}}function Ye(ct){try{return o.unlinkSync(ct)}catch{return}}function _t(ct){let Rt=f.createHash("sha256");return Rt.update(ct),Rt.digest("hex")}}let r;return qU()&&(r=t()),r&&uoe(r),r})(),xl&&xl.getEnvironmentVariable&&(fDe(xl),L.setAssertionLevel(/^development$/i.test(xl.getEnvironmentVariable("NODE_ENV"))?1:0)),xl&&xl.debugMode&&(L.isDebugging=!0)}});function sj(e){return e===47||e===92}function doe(e){return dw(e)<0}function qp(e){return dw(e)>0}function TDe(e){let t=dw(e);return t>0&&t===e.length}function nI(e){return dw(e)!==0}function Jd(e){return/^\.\.?($|[\\/])/.test(e)}function cj(e){return!nI(e)&&!Jd(e)}function gA(e){return jl(Hl(e),".")}function Gc(e,t){return e.length>t.length&&Oc(e,t)}function $c(e,t){for(let r of t)if(Gc(e,r))return!0;return!1}function My(e){return e.length>0&&sj(e.charCodeAt(e.length-1))}function foe(e){return e>=97&&e<=122||e>=65&&e<=90}function SDe(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function dw(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?_s:pw,2);return i<0?e.length:i+1}if(foe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(pj);if(r!==-1){let i=r+pj.length,o=e.indexOf(_s,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&foe(e.charCodeAt(o+1))){let f=SDe(e,o+2);if(f!==-1){if(e.charCodeAt(f)===47)return~(f+1);if(f===e.length)return~f}}return~(o+1)}return~e.length}return 0}function _p(e){let t=dw(e);return t<0?~t:t}function ni(e){e=Al(e);let t=_p(e);return t===e.length?e:(e=sT(e),e.slice(0,Math.max(t,e.lastIndexOf(_s))))}function Hl(e,t,r){if(e=Al(e),_p(e)===e.length)return"";e=sT(e);let o=e.slice(Math.max(_p(e),e.lastIndexOf(_s)+1)),s=t!==void 0&&r!==void 0?j8(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function _oe(e,t,r){if(na(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function xDe(e,t,r){if(typeof t=="string")return _oe(e,t,r)||"";for(let i of t){let o=_oe(e,i,r);if(o)return o}return""}function j8(e,t,r){if(t)return xDe(sT(e),t,r?W1:z1);let i=Hl(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function ADe(e,t){let r=e.substring(0,t),i=e.substring(t).split(_s);return i.length&&!Os(i)&&i.pop(),[r,...i]}function Ou(e,t=""){return e=vi(t,e),ADe(e,_p(e))}function T0(e){return e.length===0?"":(e[0]&&cu(e[0]))+e.slice(1).join(_s)}function Al(e){return e.indexOf("\\")!==-1?e.replace(poe,_s):e}function oT(e){if(!vt(e))return[];let t=[e[0]];for(let r=1;r<e.length;r++){let i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function vi(e,...t){e&&(e=Al(e));for(let r of t)r&&(r=Al(r),!e||_p(r)!==0?e=r:e=cu(e)+r);return e}function Fy(e,...t){return So(vt(t)?vi(e,...t):Al(e))}function fw(e,t){return oT(Ou(e,t))}function _a(e,t){return T0(fw(e,t))}function So(e){if(e=Al(e),!mw.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!mw.test(e)))return e;let r=T0(oT(Ou(e)));return r&&My(e)?cu(r):r}function CDe(e){return e.length===0?"":e.slice(1).join(_s)}function lj(e,t){return CDe(fw(e,t))}function Ts(e,t,r){let i=qp(e)?So(e):_a(e,t);return r(i)}function sT(e){return My(e)?e.substr(0,e.length-1):e}function cu(e){return My(e)?e:e+_s}function S0(e){return!nI(e)&&!Jd(e)?"./"+e:e}function uj(e,t,r,i){let o=r!==void 0&&i!==void 0?j8(e,r,i):j8(e);return o?e.slice(0,e.length-o.length)+(na(t,".")?t:"."+t):e}function dj(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,_p(e)),o=t.substring(0,_p(t)),s=_8(i,o);if(s!==0)return s;let l=e.substring(i.length),f=t.substring(o.length);if(!mw.test(l)&&!mw.test(f))return r(l,f);let d=oT(Ou(e)),g=oT(Ou(t)),m=Math.min(d.length,g.length);for(let v=1;v<m;v++){let S=r(d[v],g[v]);if(S!==0)return S}return Es(d.length,g.length)}function IDe(e,t){return dj(e,t,su)}function LDe(e,t){return dj(e,t,_8)}function cT(e,t,r,i){return typeof r=="string"?(e=vi(r,e),t=vi(r,t)):typeof r=="boolean"&&(i=r),dj(e,t,p8(i))}function Gy(e,t,r,i){if(typeof r=="string"?(e=vi(r,e),t=vi(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;let o=oT(Ou(e)),s=oT(Ou(t));if(s.length<o.length)return!1;let l=i?W1:z1;for(let f=0;f<o.length;f++)if(!(f===0?W1:l)(o[f],s[f]))return!1;return!0}function fj(e,t,r){let i=r(e),o=r(t);return na(i,o+"/")||na(i,o+"\\")}function _j(e,t,r,i){let o=oT(Ou(e)),s=oT(Ou(t)),l;for(l=0;l<o.length&&l<s.length;l++){let g=i(o[l]),m=i(s[l]);if(!(l===0?W1:r)(g,m))break}if(l===0)return s;let f=s.slice(l),d=[];for(;l<o.length;l++)d.push("..");return["",...d,...f]}function Xp(e,t,r){L.assert(_p(e)>0==_p(t)>0,"Paths must either both be absolute or both be relative");let s=_j(e,t,(typeof r=="boolean"?r:!1)?W1:z1,typeof r=="function"?r:Ks);return T0(s)}function rI(e,t,r){return qp(e)?Q1(t,e,t,r,!1):e}function _w(e,t,r){return S0(Xp(ni(e),t,r))}function Q1(e,t,r,i,o){let s=_j(Fy(r,e),Fy(r,t),z1,i),l=s[0];if(o&&qp(l)){let f=l.charAt(0)===_s?"file://":"file:///";s[0]=f+l}return T0(s)}function Th(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=ni(e);if(i===e)return;e=i}}function H8(e){return Oc(e,"/node_modules")}var _s,pw,pj,poe,mw,kDe=gt({"src/compiler/path.ts"(){"use strict";fa(),_s="/",pw="\\",pj="://",poe=/\\/g,mw=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var _,DDe=gt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";noe(),_={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:b(1085,1,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:b(1121,1,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:b(1155,1,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:b(1156,1,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:b(1157,1,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:b(1373,3,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:b(1374,3,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:b(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:b(2346,1,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:b(2380,1,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:b(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:b(5084,1,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:b(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:b(6259,3,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:b(8017,1,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:b(8018,1,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:b(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string.")}}});function Su(e){return e>=79}function moe(e){return e===31||Su(e)}function iI(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function W8(e,t){return t>=2?iI(e,Aoe):t===1?iI(e,Soe):iI(e,Eoe)}function wDe(e,t){return t>=2?iI(e,Coe):t===1?iI(e,xoe):iI(e,Toe)}function RDe(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function Xa(e){return koe[e]}function lT(e){return vj.get(e)}function hw(e){let t=[],r=0,i=0;for(;r<e.length;){let o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&Wl(o)&&(t.push(i),i=r);break}}return t.push(i),t}function gw(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):mj(Sh(e),t,r,e.text,i)}function mj(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:L.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?GD(e,hw(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?L.assert(s<e[t+1]):i!==void 0&&L.assert(s<=i.length),s)}function Sh(e){return e.lineMap||(e.lineMap=hw(e.text))}function yw(e,t){let r=aI(e,t);return{line:r,character:t-e[r]}}function aI(e,t,r){let i=Py(e,t,Ks,Es,r);return i<0&&(i=~i-1,L.assert(i!==-1,"position cannot precede the beginning of the file")),i}function oI(e,t,r){if(t===r)return 0;let i=Sh(e),o=Math.min(t,r),s=o===r,l=s?t:r,f=aI(i,o),d=aI(i,l,f);return s?f-d:d-f}function Gs(e,t){return yw(Sh(e),t)}function xh(e){return Yp(e)||Wl(e)}function Yp(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Wl(e){return e===10||e===13||e===8232||e===8233}function sI(e){return e>=48&&e<=57}function z8(e){return sI(e)||e>=65&&e<=70||e>=97&&e<=102}function ODe(e){return e<=1114111}function hj(e){return e>=48&&e<=55}function hoe(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function xo(e,t,r,i,o){if(vp(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Wl(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(yA(e,t)){t=cI(e,t),s=!1;continue}break;case 35:if(t===0&&gj(e,t)){t=yj(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&xh(l)){t++;continue}break}return t}}function yA(e,t){if(L.assert(t>=0),t===0||Wl(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+Tw<e.length){for(let i=0;i<Tw;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+Tw)===32}}return!1}function cI(e,t,r){r&&r(_.Merge_conflict_marker_encountered,t,Tw);let i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!Wl(e.charCodeAt(t));)t++;else for(L.assert(i===124||i===61);t<o;){let s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&yA(e,t))break;t++}return t}function gj(e,t){return L.assert(t===0),q8.test(e)}function yj(e,t){let r=q8.exec(e)[0];return t=t+r.length,t}function J8(e,t,r,i,o,s,l){let f,d,g,m,v=!1,S=i,x=l;if(r===0){S=!0;let A=K8(t);A&&(r=A.length)}e:for(;r>=0&&r<t.length;){let A=t.charCodeAt(r);switch(A){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;S=!0,v&&(m=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let w=t.charCodeAt(r+1),C=!1;if(w===47||w===42){let P=w===47?2:3,F=r;if(r+=2,w===47)for(;r<t.length;){if(Wl(t.charCodeAt(r))){C=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(S){if(v&&(x=o(f,d,g,m,s,x),!e&&x))return x;f=F,d=r,g=P,m=C,v=!0}continue}break e;default:if(A>127&&xh(A)){v&&Wl(A)&&(m=!0),r++;continue}break e}}return v&&(x=o(f,d,g,m,s,x)),x}function vw(e,t,r,i){return J8(!1,e,t,!1,r,i)}function bw(e,t,r,i){return J8(!1,e,t,!0,r,i)}function goe(e,t,r,i,o){return J8(!0,e,t,!1,r,i,o)}function yoe(e,t,r,i,o){return J8(!0,e,t,!0,r,i,o)}function voe(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function Nm(e,t){return goe(e,t,voe,void 0,void 0)}function eb(e,t){return yoe(e,t,voe,void 0,void 0)}function K8(e){let t=q8.exec(e);if(t)return t[0]}function Pm(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&W8(e,t)}function tb(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&wDe(e,t)}function i_(e,t,r){let i=Dg(e,0);if(!Pm(i,t))return!1;for(let o=By(i);o<e.length;o+=By(i))if(!tb(i=Dg(e,o),t,r))return!1;return!0}function kg(e,t,r=0,i,o,s,l){var f=i,d,g,m,v,S,x,A,w,C=0;Dt(f,s,l);var P={getStartPos:()=>m,getTextPos:()=>d,getToken:()=>S,getTokenPos:()=>v,getTokenText:()=>f.substring(v,d),getTokenValue:()=>x,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>S===79||S>116,isReservedWord:()=>S>=81&&S<=116,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>w,getNumericLiteralFlags:()=>A&1008,getTokenFlags:()=>A,reScanGreaterToken:Be,reScanAsteriskEqualsToken:Ne,reScanSlashToken:Le,reScanTemplateToken:ct,reScanTemplateHeadOrNoSubstitutionTemplate:Rt,scanJsxIdentifier:kn,scanJsxAttributeValue:_n,reScanJsxAttributeValue:Gt,reScanJsxToken:We,reScanLessThanToken:qe,reScanHashToken:zt,reScanQuestionToken:Qt,reScanInvalidIdentifier:Ce,scanJsxToken:tn,scanJsDocToken:$n,scan:Pe,getText:pt,clearCommentDirectives:nn,setText:Dt,setScriptTarget:An,setLanguageVariant:Kn,setOnError:pn,setTextPos:hi,setInJSDocType:ri,tryScan:gr,lookAhead:Pi,scanRange:Ni};return L.isDebugging&&Object.defineProperty(P,"__debugShowCurrentPositionInText",{get:()=>{let vn=P.getText();return vn.slice(0,P.getStartPos())+"\u2551"+vn.slice(P.getStartPos())}}),P;function F(vn,Ht=d,En){if(o){let dr=d;d=Ht,o(vn,En||0),d=dr}}function B(){let vn=d,Ht=!1,En=!1,dr="";for(;;){let Cr=f.charCodeAt(d);if(Cr===95){A|=512,Ht?(Ht=!1,En=!0,dr+=f.substring(vn,d)):F(En?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++,vn=d;continue}if(sI(Cr)){Ht=!0,En=!1,d++;continue}break}return f.charCodeAt(d-1)===95&&F(_.Numeric_separators_are_not_allowed_here,d-1,1),dr+f.substring(vn,d)}function q(){let vn=d,Ht=B(),En,dr;f.charCodeAt(d)===46&&(d++,En=B());let Cr=d;if(f.charCodeAt(d)===69||f.charCodeAt(d)===101){d++,A|=16,(f.charCodeAt(d)===43||f.charCodeAt(d)===45)&&d++;let at=d,Tt=B();Tt?(dr=f.substring(Cr,at)+Tt,Cr=d):F(_.Digit_expected)}let Se;if(A&512?(Se=Ht,En&&(Se+="."+En),dr&&(Se+=dr)):Se=f.substring(vn,Cr),En!==void 0||A&16)return W(vn,En===void 0&&!!(A&16)),{type:8,value:""+ +Se};{x=Se;let at=ke();return W(vn),{type:at,value:x}}}function W(vn,Ht){if(!Pm(Dg(f,d),e))return;let En=d,{length:dr}=X();dr===1&&f[En]==="n"?F(Ht?_.A_bigint_literal_cannot_use_exponential_notation:_.A_bigint_literal_must_be_an_integer,vn,En-vn+1):(F(_.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,En,dr),d=En)}function Y(){let vn=d;for(;hj(f.charCodeAt(d));)d++;return+f.substring(vn,d)}function R(vn,Ht){let En=$(vn,!1,Ht);return En?parseInt(En,16):-1}function ie(vn,Ht){return $(vn,!0,Ht)}function $(vn,Ht,En){let dr=[],Cr=!1,Se=!1;for(;dr.length<vn||Ht;){let at=f.charCodeAt(d);if(En&&at===95){A|=512,Cr?(Cr=!1,Se=!0):F(Se?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(Cr=En,at>=65&&at<=70)at+=32;else if(!(at>=48&&at<=57||at>=97&&at<=102))break;dr.push(at),d++,Se=!1}return dr.length<vn&&(dr=[]),f.charCodeAt(d-1)===95&&F(_.Numeric_separators_are_not_allowed_here,d-1,1),String.fromCharCode(...dr)}function fe(vn=!1){let Ht=f.charCodeAt(d);d++;let En="",dr=d;for(;;){if(d>=g){En+=f.substring(dr,d),A|=4,F(_.Unterminated_string_literal);break}let Cr=f.charCodeAt(d);if(Cr===Ht){En+=f.substring(dr,d),d++;break}if(Cr===92&&!vn){En+=f.substring(dr,d),En+=U(),dr=d;continue}if(Wl(Cr)&&!vn){En+=f.substring(dr,d),A|=4,F(_.Unterminated_string_literal);break}d++}return En}function Z(vn){let Ht=f.charCodeAt(d)===96;d++;let En=d,dr="",Cr;for(;;){if(d>=g){dr+=f.substring(En,d),A|=4,F(_.Unterminated_template_literal),Cr=Ht?14:17;break}let Se=f.charCodeAt(d);if(Se===96){dr+=f.substring(En,d),d++,Cr=Ht?14:17;break}if(Se===36&&d+1<g&&f.charCodeAt(d+1)===123){dr+=f.substring(En,d),d+=2,Cr=Ht?15:16;break}if(Se===92){dr+=f.substring(En,d),dr+=U(vn),En=d;continue}if(Se===13){dr+=f.substring(En,d),d++,d<g&&f.charCodeAt(d)===10&&d++,dr+=`
| `,En=d;continue}d++}return L.assert(Cr!==void 0),x=dr,Cr}function U(vn){let Ht=d;if(d++,d>=g)return F(_.Unexpected_end_of_text),"";let En=f.charCodeAt(d);switch(d++,En){case 48:return vn&&d<g&&sI(f.charCodeAt(d))?(d++,A|=2048,f.substring(Ht,d)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
| `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(vn){for(let dr=d;dr<d+4;dr++)if(dr<g&&!z8(f.charCodeAt(dr))&&f.charCodeAt(dr)!==123)return d=dr,A|=2048,f.substring(Ht,d)}if(d<g&&f.charCodeAt(d)===123){if(d++,vn&&!z8(f.charCodeAt(d)))return A|=2048,f.substring(Ht,d);if(vn){let dr=d,Cr=ie(1,!1),Se=Cr?parseInt(Cr,16):-1;if(!ODe(Se)||f.charCodeAt(d)!==125)return A|=2048,f.substring(Ht,d);d=dr}return A|=8,le()}return A|=1024,re(4);case 120:if(vn)if(z8(f.charCodeAt(d))){if(!z8(f.charCodeAt(d+1)))return d++,A|=2048,f.substring(Ht,d)}else return A|=2048,f.substring(Ht,d);return re(2);case 13:d<g&&f.charCodeAt(d)===10&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(En)}}function re(vn){let Ht=R(vn,!1);return Ht>=0?String.fromCharCode(Ht):(F(_.Hexadecimal_digit_expected),"")}function le(){let vn=ie(1,!1),Ht=vn?parseInt(vn,16):-1,En=!1;return Ht<0?(F(_.Hexadecimal_digit_expected),En=!0):Ht>1114111&&(F(_.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),En=!0),d>=g?(F(_.Unexpected_end_of_text),En=!0):f.charCodeAt(d)===125?d++:(F(_.Unterminated_Unicode_escape_sequence),En=!0),En?"":lI(Ht)}function _e(){if(d+5<g&&f.charCodeAt(d+1)===117){let vn=d;d+=2;let Ht=R(4,!1);return d=vn,Ht}return-1}function ge(){if(Dg(f,d+1)===117&&Dg(f,d+2)===123){let vn=d;d+=3;let Ht=ie(1,!1),En=Ht?parseInt(Ht,16):-1;return d=vn,En}return-1}function X(){let vn="",Ht=d;for(;d<g;){let En=Dg(f,d);if(tb(En,e))d+=By(En);else if(En===92){if(En=ge(),En>=0&&tb(En,e)){d+=3,A|=8,vn+=le(),Ht=d;continue}if(En=_e(),!(En>=0&&tb(En,e)))break;A|=1024,vn+=f.substring(Ht,d),vn+=lI(En),d+=6,Ht=d}else break}return vn+=f.substring(Ht,d),vn}function Ve(){let vn=x.length;if(vn>=2&&vn<=12){let Ht=x.charCodeAt(0);if(Ht>=97&&Ht<=122){let En=boe.get(x);if(En!==void 0)return S=En}}return S=79}function we(vn){let Ht="",En=!1,dr=!1;for(;;){let Cr=f.charCodeAt(d);if(Cr===95){A|=512,En?(En=!1,dr=!0):F(dr?_.Multiple_consecutive_numeric_separators_are_not_permitted:_.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(En=!0,!sI(Cr)||Cr-48>=vn)break;Ht+=f[d],d++,dr=!1}return f.charCodeAt(d-1)===95&&F(_.Numeric_separators_are_not_allowed_here,d-1,1),Ht}function ke(){return f.charCodeAt(d)===110?(x+="n",A&384&&(x=iL(x)+"n"),d++,9):(x=""+(A&128?parseInt(x.slice(2),2):A&256?parseInt(x.slice(2),8):+x),8)}function Pe(){m=d,A=0;let vn=!1;for(;;){if(v=d,d>=g)return S=1;let Ht=Dg(f,d);if(Ht===35&&d===0&&gj(f,d)){if(d=yj(f,d),t)continue;return S=6}switch(Ht){case 10:case 13:if(A|=1,t){d++;continue}else return Ht===13&&d+1<g&&f.charCodeAt(d+1)===10?d+=2:d++,S=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){d++;continue}else{for(;d<g&&Yp(f.charCodeAt(d));)d++;return S=5}case 33:return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,S=37):(d+=2,S=35):(d++,S=53);case 34:case 39:return x=fe(),S=10;case 96:return S=Z(!1);case 37:return f.charCodeAt(d+1)===61?(d+=2,S=69):(d++,S=44);case 38:return f.charCodeAt(d+1)===38?f.charCodeAt(d+2)===61?(d+=3,S=76):(d+=2,S=55):f.charCodeAt(d+1)===61?(d+=2,S=73):(d++,S=50);case 40:return d++,S=20;case 41:return d++,S=21;case 42:if(f.charCodeAt(d+1)===61)return d+=2,S=66;if(f.charCodeAt(d+1)===42)return f.charCodeAt(d+2)===61?(d+=3,S=67):(d+=2,S=42);if(d++,C&&!vn&&A&1){vn=!0;continue}return S=41;case 43:return f.charCodeAt(d+1)===43?(d+=2,S=45):f.charCodeAt(d+1)===61?(d+=2,S=64):(d++,S=39);case 44:return d++,S=27;case 45:return f.charCodeAt(d+1)===45?(d+=2,S=46):f.charCodeAt(d+1)===61?(d+=2,S=65):(d++,S=40);case 46:return sI(f.charCodeAt(d+1))?(x=q().value,S=8):f.charCodeAt(d+1)===46&&f.charCodeAt(d+2)===46?(d+=3,S=25):(d++,S=24);case 47:if(f.charCodeAt(d+1)===47){for(d+=2;d<g&&!Wl(f.charCodeAt(d));)d++;if(w=Ye(w,f.slice(v,d),Ioe,v),t)continue;return S=2}if(f.charCodeAt(d+1)===42){d+=2,f.charCodeAt(d)===42&&f.charCodeAt(d+1)!==47&&(A|=2);let Tt=!1,ve=v;for(;d<g;){let nt=f.charCodeAt(d);if(nt===42&&f.charCodeAt(d+1)===47){d+=2,Tt=!0;break}d++,Wl(nt)&&(ve=d,A|=1)}if(w=Ye(w,f.slice(ve,d),Loe,ve),Tt||F(_.Asterisk_Slash_expected),t)continue;return Tt||(A|=4),S=3}return f.charCodeAt(d+1)===61?(d+=2,S=68):(d++,S=43);case 48:if(d+2<g&&(f.charCodeAt(d+1)===88||f.charCodeAt(d+1)===120))return d+=2,x=ie(1,!0),x||(F(_.Hexadecimal_digit_expected),x="0"),x="0x"+x,A|=64,S=ke();if(d+2<g&&(f.charCodeAt(d+1)===66||f.charCodeAt(d+1)===98))return d+=2,x=we(2),x||(F(_.Binary_digit_expected),x="0"),x="0b"+x,A|=128,S=ke();if(d+2<g&&(f.charCodeAt(d+1)===79||f.charCodeAt(d+1)===111))return d+=2,x=we(8),x||(F(_.Octal_digit_expected),x="0"),x="0o"+x,A|=256,S=ke();if(d+1<g&&hj(f.charCodeAt(d+1)))return x=""+Y(),A|=32,S=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return{type:S,value:x}=q(),S;case 58:return d++,S=58;case 59:return d++,S=26;case 60:if(yA(f,d)){if(d=cI(f,d,F),t)continue;return S=7}return f.charCodeAt(d+1)===60?f.charCodeAt(d+2)===61?(d+=3,S=70):(d+=2,S=47):f.charCodeAt(d+1)===61?(d+=2,S=32):r===1&&f.charCodeAt(d+1)===47&&f.charCodeAt(d+2)!==42?(d+=2,S=30):(d++,S=29);case 61:if(yA(f,d)){if(d=cI(f,d,F),t)continue;return S=7}return f.charCodeAt(d+1)===61?f.charCodeAt(d+2)===61?(d+=3,S=36):(d+=2,S=34):f.charCodeAt(d+1)===62?(d+=2,S=38):(d++,S=63);case 62:if(yA(f,d)){if(d=cI(f,d,F),t)continue;return S=7}return d++,S=31;case 63:return f.charCodeAt(d+1)===46&&!sI(f.charCodeAt(d+2))?(d+=2,S=28):f.charCodeAt(d+1)===63?f.charCodeAt(d+2)===61?(d+=3,S=77):(d+=2,S=60):(d++,S=57);case 91:return d++,S=22;case 93:return d++,S=23;case 94:return f.charCodeAt(d+1)===61?(d+=2,S=78):(d++,S=52);case 123:return d++,S=18;case 124:if(yA(f,d)){if(d=cI(f,d,F),t)continue;return S=7}return f.charCodeAt(d+1)===124?f.charCodeAt(d+2)===61?(d+=3,S=75):(d+=2,S=56):f.charCodeAt(d+1)===61?(d+=2,S=74):(d++,S=51);case 125:return d++,S=19;case 126:return d++,S=54;case 64:return d++,S=59;case 92:let En=ge();if(En>=0&&Pm(En,e))return d+=3,A|=8,x=le()+X(),S=Ve();let dr=_e();return dr>=0&&Pm(dr,e)?(d+=6,A|=1024,x=String.fromCharCode(dr)+X(),S=Ve()):(F(_.Invalid_character),d++,S=0);case 35:if(d!==0&&f[d+1]==="!")return F(_.can_only_be_used_at_the_start_of_a_file),d++,S=0;let Cr=Dg(f,d+1);if(Cr===92){d++;let Tt=ge();if(Tt>=0&&Pm(Tt,e))return d+=3,A|=8,x="#"+le()+X(),S=80;let ve=_e();if(ve>=0&&Pm(ve,e))return d+=6,A|=1024,x="#"+String.fromCharCode(ve)+X(),S=80;d--}return Pm(Cr,e)?(d++,Ie(Cr,e)):(x="#",F(_.Invalid_character,d++,By(Ht))),S=80;default:let Se=Ie(Ht,e);if(Se)return S=Se;if(Yp(Ht)){d+=By(Ht);continue}else if(Wl(Ht)){A|=1,d+=By(Ht);continue}let at=By(Ht);return F(_.Invalid_character,d,at),d+=at,S=0}}}function Ce(){L.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=v=m,A=0;let vn=Dg(f,d),Ht=Ie(vn,99);return Ht?S=Ht:(d+=By(vn),S)}function Ie(vn,Ht){let En=vn;if(Pm(En,Ht)){for(d+=By(En);d<g&&tb(En=Dg(f,d),Ht);)d+=By(En);return x=f.substring(v,d),En===92&&(x+=X()),Ve()}}function Be(){if(S===31){if(f.charCodeAt(d)===62)return f.charCodeAt(d+1)===62?f.charCodeAt(d+2)===61?(d+=3,S=72):(d+=2,S=49):f.charCodeAt(d+1)===61?(d+=2,S=71):(d++,S=48);if(f.charCodeAt(d)===61)return d++,S=33}return S}function Ne(){return L.assert(S===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),d=v+1,S=63}function Le(){if(S===43||S===68){let vn=v+1,Ht=!1,En=!1;for(;;){if(vn>=g){A|=4,F(_.Unterminated_regular_expression_literal);break}let dr=f.charCodeAt(vn);if(Wl(dr)){A|=4,F(_.Unterminated_regular_expression_literal);break}if(Ht)Ht=!1;else if(dr===47&&!En){vn++;break}else dr===91?En=!0:dr===92?Ht=!0:dr===93&&(En=!1);vn++}for(;vn<g&&tb(f.charCodeAt(vn),e);)vn++;d=vn,x=f.substring(v,d),S=13}return S}function Ye(vn,Ht,En,dr){let Cr=_t(ZC(Ht),En);return Cr===void 0?vn:Sn(vn,{range:{pos:dr,end:d},type:Cr})}function _t(vn,Ht){let En=Ht.exec(vn);if(En)switch(En[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function ct(vn){return L.assert(S===19,"'reScanTemplateToken' should only be called on a '}'"),d=v,S=Z(vn)}function Rt(){return d=v,S=Z(!0)}function We(vn=!0){return d=v=m,S=tn(vn)}function qe(){return S===47?(d=v+1,S=29):S}function zt(){return S===80?(d=v+1,S=62):S}function Qt(){return L.assert(S===60,"'reScanQuestionToken' should only be called on a '??'"),d=v+1,S=57}function tn(vn=!0){if(m=v=d,d>=g)return S=1;let Ht=f.charCodeAt(d);if(Ht===60)return f.charCodeAt(d+1)===47?(d+=2,S=30):(d++,S=29);if(Ht===123)return d++,S=18;let En=0;for(;d<g&&(Ht=f.charCodeAt(d),Ht!==123);){if(Ht===60){if(yA(f,d))return d=cI(f,d,F),S=7;break}if(Ht===62&&F(_.Unexpected_token_Did_you_mean_or_gt,d,1),Ht===125&&F(_.Unexpected_token_Did_you_mean_or_rbrace,d,1),Wl(Ht)&&En===0)En=-1;else{if(!vn&&Wl(Ht)&&En>0)break;xh(Ht)||(En=d)}d++}return x=f.substring(m,d),En===-1?12:11}function kn(){if(Su(S)){let vn=!1;for(;d<g;){let Ht=f.charCodeAt(d);if(Ht===45){x+="-",d++;continue}else if(Ht===58&&!vn){x+=":",d++,vn=!0,S=79;continue}let En=d;if(x+=X(),d===En)break}return x.slice(-1)===":"&&(x=x.slice(0,-1),d--),Ve()}return S}function _n(){switch(m=d,f.charCodeAt(d)){case 34:case 39:return x=fe(!0),S=10;default:return Pe()}}function Gt(){return d=v=m,_n()}function $n(){if(m=v=d,A=0,d>=g)return S=1;let vn=Dg(f,d);switch(d+=By(vn),vn){case 9:case 11:case 12:case 32:for(;d<g&&Yp(f.charCodeAt(d));)d++;return S=5;case 64:return S=59;case 13:f.charCodeAt(d)===10&&d++;case 10:return A|=1,S=4;case 42:return S=41;case 123:return S=18;case 125:return S=19;case 91:return S=22;case 93:return S=23;case 60:return S=29;case 62:return S=31;case 61:return S=63;case 44:return S=27;case 46:return S=24;case 96:return S=61;case 35:return S=62;case 92:d--;let Ht=ge();if(Ht>=0&&Pm(Ht,e))return d+=3,A|=8,x=le()+X(),S=Ve();let En=_e();return En>=0&&Pm(En,e)?(d+=6,A|=1024,x=String.fromCharCode(En)+X(),S=Ve()):(d++,S=0)}if(Pm(vn,e)){let Ht=vn;for(;d<g&&tb(Ht=Dg(f,d),e)||f.charCodeAt(d)===45;)d+=By(Ht);return x=f.substring(v,d),Ht===92&&(x+=X()),S=Ve()}else return S=0}function ui(vn,Ht){let En=d,dr=m,Cr=v,Se=S,at=x,Tt=A,ve=vn();return(!ve||Ht)&&(d=En,m=dr,v=Cr,S=Se,x=at,A=Tt),ve}function Ni(vn,Ht,En){let dr=g,Cr=d,Se=m,at=v,Tt=S,ve=x,nt=A,ce=w;Dt(f,vn,Ht);let Q=En();return g=dr,d=Cr,m=Se,v=at,S=Tt,x=ve,A=nt,w=ce,Q}function Pi(vn){return ui(vn,!0)}function gr(vn){return ui(vn,!1)}function pt(){return f}function nn(){w=void 0}function Dt(vn,Ht,En){f=vn||"",g=En===void 0?f.length:Ht+En,hi(Ht||0)}function pn(vn){o=vn}function An(vn){e=vn}function Kn(vn){r=vn}function hi(vn){L.assert(vn>=0),d=vn,m=vn,v=vn,S=0,x=void 0,A=0}function ri(vn){C+=vn?1:-1}}function By(e){return e>=65536?2:1}function NDe(e){if(L.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function lI(e){return Doe(e)}var Ew,boe,vj,Eoe,Toe,Soe,xoe,Aoe,Coe,Ioe,Loe,koe,Tw,q8,Dg,Doe,PDe=gt({"src/compiler/scanner.ts"(){"use strict";fa(),Ew={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85,constructor:135,debugger:87,declare:136,default:88,delete:89,do:90,else:91,enum:92,export:93,extends:94,false:95,finally:96,for:97,from:158,function:98,get:137,if:99,implements:117,import:100,in:101,infer:138,instanceof:102,interface:118,intrinsic:139,is:140,keyof:141,let:119,module:142,namespace:143,never:144,new:103,null:104,number:148,object:149,package:120,private:121,protected:122,public:123,override:161,out:145,readonly:146,require:147,global:159,return:105,satisfies:150,set:151,static:124,string:152,super:106,switch:107,symbol:153,this:108,throw:109,true:110,try:111,type:154,typeof:112,undefined:155,unique:156,unknown:157,var:113,void:114,while:115,with:116,yield:125,async:132,await:133,of:162},boe=new Map(Object.entries(Ew)),vj=new Map(Object.entries({...Ew,"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61})),Eoe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Toe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Soe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],xoe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Aoe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Coe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ioe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Loe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,koe=RDe(vj),Tw=7,q8=/^#!.*/,Dg=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(t,r){let i=t.length;if(r<0||r>=i)return;let o=t.charCodeAt(r);if(o>=55296&&o<=56319&&i>r+1){let s=t.charCodeAt(r+1);if(s>=56320&&s<=57343)return(o-55296)*1024+s-56320+65536}return o},Doe=String.fromCodePoint?e=>String.fromCodePoint(e):NDe}});function fl(e){return Jd(e)||qp(e)}function vA(e){return HD(e,ZI)}function X8(e){switch(Do(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function wl(e){return e.start+e.length}function woe(e){return e.length===0}function bj(e,t){return t>=e.start&&t<wl(e)}function Y8(e,t){return t>=e.pos&&t<=e.end}function Roe(e,t){return t.start>=e.start&&wl(t)<=wl(e)}function MDe(e,t){return Ooe(e,t)!==void 0}function Ooe(e,t){let r=Poe(e,t);return r&&r.length===0?void 0:r}function FDe(e,t){return Q8(e.start,e.length,t.start,t.length)}function $8(e,t,r){return Q8(e.start,e.length,t,r)}function Q8(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Noe(e,t){return t<=wl(e)&&t>=e.start}function Poe(e,t){let r=Math.max(e.start,t.start),i=Math.min(wl(e),wl(t));return r<=i?Wc(r,i):void 0}function il(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Wc(e,t){return il(e,t-e)}function uI(e){return il(e.span.start,e.newLength)}function Moe(e){return woe(e.span)&&e.newLength===0}function Sw(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function GDe(e){if(e.length===0)return $j;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=wl(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){let l=e[s],f=r,d=i,g=o,m=l.span.start,v=wl(l.span),S=m+l.newLength;r=Math.min(f,m),i=Math.max(d,d+(v-g)),o=Math.max(S,S+(g-v))}return Sw(Wc(r,i),o-r)}function BDe(e){if(e&&e.kind===165){for(let t=e;t;t=t.parent)if(Ia(t)||Yr(t)||t.kind===261)return t}}function Ad(e,t){return ha(e)&&Mr(e,16476)&&t.kind===173}function Foe(e){return La(e)?Ji(e.elements,Goe):!1}function Goe(e){return ol(e)?!0:Foe(e.name)}function bA(e){let t=e.parent;for(;Wo(t.parent);)t=t.parent.parent;return t.parent}function Ej(e,t){Wo(e)&&(e=bA(e));let r=t(e);return e.kind===257&&(e=e.parent),e&&e.kind===258&&(r|=t(e),e=e.parent),e&&e.kind===240&&(r|=t(e)),r}function wg(e){return Ej(e,uu)}function Tj(e){return Ej(e,Jce)}function G_(e){return Ej(e,t=>t.flags)}function UDe(e,t,r){let i=e.toLowerCase(),o=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(ps(_.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let s=o[1],l=o[3];ya(Qj,i)&&!f(s,l,r)&&f(s,void 0,r),Aae(e);function f(d,g,m){let v=So(t.getExecutingFilePath()),S=ni(v),x=vi(S,d);if(g&&(x=x+"-"+g),x=t.resolvePath(vi(x,"diagnosticMessages.generated.json")),!t.fileExists(x))return!1;let A="";try{A=t.readFile(x)}catch{return m&&m.push(ps(_.Unable_to_open_file_0,x)),!1}try{ple(JSON.parse(A))}catch{return m&&m.push(ps(_.Corrupted_locale_file_0,x)),!1}return!0}}function ec(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function jn(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function dI(e){return(e.flags&8)===0}function ea(e,t){if(e===void 0||dI(e))return e;for(e=e.original;e;){if(dI(e))return!t||t(e)?e:void 0;e=e.original}}function Bs(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Gi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function vr(e){return Gi(e.escapedText)}function nb(e){let t=lT(e.escapedText);return t?zr(t,Xu):void 0}function fc(e){return e.valueDeclaration&&xu(e.valueDeclaration)?vr(e.valueDeclaration.name):Gi(e.escapedName)}function Boe(e){let t=e.parent.parent;if(t){if(Kl(t))return Z8(t);switch(t.kind){case 240:if(t.declarationList&&t.declarationList.declarations[0])return Z8(t.declarationList.declarations[0]);break;case 241:let r=t.expression;switch(r.kind===223&&r.operatorToken.kind===63&&(r=r.left),r.kind){case 208:return r.name;case 209:let i=r.argumentExpression;if(Re(i))return i}break;case 214:return Z8(t.expression);case 253:{if(Kl(t.statement)||ot(t.statement))return Z8(t.statement);break}}}}function Z8(e){let t=sa(e);return t&&Re(t)?t:void 0}function xw(e,t){return!!(zl(e)&&Re(e.name)&&vr(e.name)===vr(t)||Bc(e)&&vt(e.declarationList.declarations,r=>xw(r,t)))}function Uoe(e){return e.name||Boe(e)}function zl(e){return!!e.name}function Sj(e){switch(e.kind){case 79:return e;case 351:case 344:{let{name:r}=e;if(r.kind===163)return r.right;break}case 210:case 223:{let r=e;switch(ic(r)){case 1:case 4:case 5:case 3:return W6(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 349:return Uoe(e);case 343:return Boe(e);case 274:{let{expression:r}=e;return Re(r)?r:void 0}case 209:let t=e;if(H6(t))return t.argumentExpression}return e.name}function sa(e){if(e!==void 0)return Sj(e)||(ms(e)||xs(e)||_u(e)?xj(e):void 0)}function xj(e){if(e.parent){if(yl(e.parent)||Wo(e.parent))return e.parent.name;if(ar(e.parent)&&e===e.parent.right){if(Re(e.parent.left))return e.parent.left;if(Us(e.parent.left))return W6(e.parent.left)}else if(wi(e.parent)&&Re(e.parent.name))return e.parent.name}else return}function Uy(e){if(bf(e))return Pr(e.modifiers,du)}function uT(e){if(Mr(e,126975))return Pr(e.modifiers,Ha)}function Voe(e,t){if(e.name)if(Re(e.name)){let r=e.name.escapedText;return _I(e.parent,t).filter(i=>xp(i)&&Re(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);L.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=_I(e.parent,t).filter(xp);if(r<i.length)return[i[r]]}return Je}function fI(e){return Voe(e,!1)}function joe(e){return Voe(e,!0)}function Hoe(e,t){let r=e.name.escapedText;return _I(e.parent,t).filter(i=>H_(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Woe(e){return Hoe(e,!1)}function zoe(e){return Hoe(e,!0)}function Joe(e){return!!gf(e,xp)}function Koe(e){return gf(e,x2)}function qoe(e){return kj(e,qz)}function Aj(e){return gf(e,Xue)}function VDe(e){return gf(e,jz)}function Xoe(e){return gf(e,jz,!0)}function jDe(e){return gf(e,Hz)}function Yoe(e){return gf(e,Hz,!0)}function HDe(e){return gf(e,Wz)}function $oe(e){return gf(e,Wz,!0)}function WDe(e){return gf(e,zz)}function Qoe(e){return gf(e,zz,!0)}function Zoe(e){return gf(e,g3,!0)}function Cj(e){return gf(e,Jz)}function ese(e){return gf(e,Jz,!0)}function Ij(e){return gf(e,vO)}function e6(e){return gf(e,Yue)}function tse(e){return gf(e,y3)}function zDe(e){return gf(e,H_)}function Lj(e){return gf(e,v3)}function x0(e){let t=gf(e,DL);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Vy(e){let t=gf(e,DL);return!t&&ha(e)&&(t=wr(fI(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function Aw(e){let t=tse(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=x0(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(Rd(i)){let o=wr(i.members,_2);return o&&o.type}if(Jm(i)||S2(i))return i.type}}function _I(e,t){var r,i;if(!lR(e))return Je;let o=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(o===void 0||t){let s=PH(e,t);L.assert(s.length<2||s[0]!==s[1]),o=Uo(s,l=>dm(l)?l.tags:l),t||((i=e.jsDoc)!=null||(e.jsDoc=[]),e.jsDoc.jsDocCache=o)}return o}function A0(e){return _I(e,!1)}function JDe(e){return _I(e,!0)}function gf(e,t,r){return wr(_I(e,r),t)}function kj(e,t){return A0(e).filter(t)}function KDe(e,t){return A0(e).filter(r=>r.kind===t)}function Cw(e){return typeof e=="string"?e:e?.map(t=>t.kind===324?t.text:qDe(t)).join("")}function qDe(e){let t=e.kind===327?"link":e.kind===328?"linkcode":"linkplain",r=e.name?qd(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function jy(e){if(X0(e)){if(kL(e.parent)){let t=OI(e.parent);if(t&&Fn(t.tags))return Uo(t.tags,r=>H_(r)?r.typeParameters:void 0)}return Je}if(Ff(e))return L.assert(e.parent.kind===323),Uo(e.parent.tags,t=>H_(t)?t.typeParameters:void 0);if(e.typeParameters||sde(e)&&e.typeParameters)return e.typeParameters;if(Yn(e)){let t=t4(e);if(t.length)return t;let r=Vy(e);if(r&&Jm(r)&&r.typeParameters)return r.typeParameters}return Je}function EA(e){return e.constraint?e.constraint:H_(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Ah(e){return e.kind===79||e.kind===80}function t6(e){return e.kind===175||e.kind===174}function n6(e){return br(e)&&!!(e.flags&32)}function Dj(e){return Vs(e)&&!!(e.flags&32)}function dT(e){return Pa(e)&&!!(e.flags&32)}function Jl(e){let t=e.kind;return!!(e.flags&32)&&(t===208||t===209||t===210||t===232)}function pI(e){return Jl(e)&&!PS(e)&&!!e.questionDotToken}function r6(e){return pI(e.parent)&&e.parent.expression===e}function mI(e){return!Jl(e.parent)||pI(e.parent)||e!==e.parent.expression}function wj(e){return e.kind===223&&e.operatorToken.kind===60}function Ch(e){return m_(e)&&Re(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function a_(e){return ql(e,8)}function i6(e){return PS(e)&&!!(e.flags&32)}function hI(e){return e.kind===249||e.kind===248}function Rj(e){return e.kind===277||e.kind===276}function nse(e){switch(e.kind){case 305:case 306:return!0;default:return!1}}function Oj(e){return nse(e)||e.kind===303||e.kind===307}function a6(e){return e.kind===351||e.kind===344}function XDe(e){return Iw(e.kind)}function Iw(e){return e>=163}function Nj(e){return e>=0&&e<=162}function Z1(e){return Nj(e.kind)}function C0(e){return fs(e,"pos")&&fs(e,"end")}function gI(e){return 8<=e&&e<=14}function fT(e){return gI(e.kind)}function Pj(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1}function Hy(e){return 14<=e&&e<=17}function rse(e){return Hy(e.kind)}function o6(e){let t=e.kind;return t===16||t===17}function eS(e){return $u(e)||Mu(e)}function Mj(e){switch(e.kind){case 273:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly}return!1}function ise(e){switch(e.kind){case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 275:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 277:return e.parent.isTypeOnly}return!1}function I0(e){return Mj(e)||ise(e)}function ase(e){return yo(e)||Re(e)}function Fj(e){return e.kind===10||Hy(e.kind)}function tc(e){var t;return Re(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function tS(e){var t;return pi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function xu(e){return(Na(e)||xA(e))&&pi(e.name)}function TA(e){return br(e)&&pi(e.name)}function Rg(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function yI(e){return!!(gS(e)&16476)}function Gj(e){return yI(e)||e===124||e===161||e===127}function Ha(e){return Rg(e.kind)}function Cd(e){let t=e.kind;return t===163||t===79}function Ys(e){let t=e.kind;return t===79||t===80||t===10||t===8||t===164}function Mm(e){let t=e.kind;return t===79||t===203||t===204}function Ia(e){return!!e&&nS(e.kind)}function SA(e){return!!e&&(nS(e.kind)||oc(e))}function Ds(e){return e&&sse(e.kind)}function ose(e){return e.kind===110||e.kind===95}function sse(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function nS(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return sse(e)}}function Bj(e){return Li(e)||Tp(e)||Va(e)&&Ia(e.parent)}function _l(e){let t=e.kind;return t===173||t===169||t===171||t===174||t===175||t===178||t===172||t===237}function Yr(e){return e&&(e.kind===260||e.kind===228)}function rb(e){return e&&(e.kind===174||e.kind===175)}function Id(e){return Na(e)&&rm(e)}function xA(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function cse(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}}function Ns(e){return Ha(e)||du(e)}function _T(e){let t=e.kind;return t===177||t===176||t===168||t===170||t===178||t===174||t===175}function s6(e){return _T(e)||_l(e)}function Og(e){let t=e.kind;return t===299||t===300||t===301||t===171||t===174||t===175}function bi(e){return vW(e.kind)}function lse(e){switch(e.kind){case 181:case 182:return!0}return!1}function La(e){if(e){let t=e.kind;return t===204||t===203}return!1}function vI(e){let t=e.kind;return t===206||t===207}function c6(e){let t=e.kind;return t===205||t===229}function Lw(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1}function use(e){return wi(e)||ha(e)||Dw(e)||ww(e)}function kw(e){return Uj(e)||Vj(e)}function Uj(e){switch(e.kind){case 203:case 207:return!0}return!1}function Dw(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1}function Vj(e){switch(e.kind){case 204:case 206:return!0}return!1}function ww(e){switch(e.kind){case 205:case 229:case 227:case 206:case 207:case 79:case 208:case 209:return!0}return Iu(e,!0)}function dse(e){let t=e.kind;return t===208||t===163||t===202}function fse(e){let t=e.kind;return t===208||t===163}function rS(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}}function Ih(e){return e.kind===210||e.kind===211}function AA(e){let t=e.kind;return t===225||t===14}function Ju(e){return _se(a_(e).kind)}function _se(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:case 279:return!0;default:return!1}}function jj(e){return pse(a_(e).kind)}function pse(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return _se(e)}}function mse(e){switch(e.kind){case 222:return!0;case 221:return e.operator===45||e.operator===46;default:return!1}}function hse(e){switch(e.kind){case 104:case 110:case 95:case 221:return!0;default:return fT(e)}}function ot(e){return YDe(a_(e).kind)}function YDe(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 357:case 356:case 235:return!0;default:return pse(e)}}function pT(e){let t=e.kind;return t===213||t===231}function $De(e){return Gz(e)||_3(e)}function Wy(e,t){switch(e.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return t&&Wy(e.statement,t)}return!1}function gse(e){return pc(e)||Il(e)}function yse(e){return vt(e,gse)}function l6(e){return!Uw(e)&&!pc(e)&&!Mr(e,1)&&!lu(e)}function Rw(e){return Uw(e)||pc(e)||Mr(e,1)}function CA(e){return e.kind===246||e.kind===247}function u6(e){return Va(e)||ot(e)}function Hj(e){return Va(e)}function pp(e){return pu(e)||ot(e)}function vse(e){let t=e.kind;return t===265||t===264||t===79}function QDe(e){let t=e.kind;return t===265||t===264}function ZDe(e){let t=e.kind;return t===79||t===264}function Wj(e){let t=e.kind;return t===272||t===271}function Ow(e){return e.kind===264||e.kind===263}function $p(e){switch(e.kind){case 216:case 223:case 205:case 210:case 176:case 260:case 228:case 172:case 173:case 182:case 177:case 209:case 263:case 302:case 274:case 275:case 278:case 259:case 215:case 181:case 174:case 79:case 270:case 268:case 273:case 178:case 261:case 341:case 343:case 320:case 344:case 351:case 326:case 349:case 325:case 288:case 289:case 290:case 197:case 171:case 170:case 264:case 199:case 277:case 267:case 271:case 211:case 14:case 8:case 207:case 166:case 208:case 299:case 169:case 168:case 175:case 300:case 308:case 301:case 10:case 262:case 184:case 165:case 257:return!0;default:return!1}}function Qp(e){switch(e.kind){case 216:case 238:case 176:case 266:case 295:case 172:case 191:case 173:case 182:case 177:case 245:case 246:case 247:case 259:case 215:case 181:case 174:case 178:case 341:case 343:case 320:case 326:case 349:case 197:case 171:case 170:case 264:case 175:case 308:case 262:return!0;default:return!1}}function ewe(e){return e===216||e===205||e===260||e===228||e===172||e===173||e===263||e===302||e===278||e===259||e===215||e===174||e===270||e===268||e===273||e===261||e===288||e===171||e===170||e===264||e===267||e===271||e===277||e===166||e===299||e===169||e===168||e===175||e===300||e===262||e===165||e===257||e===349||e===341||e===351}function zj(e){return e===259||e===279||e===260||e===261||e===262||e===263||e===264||e===269||e===268||e===275||e===274||e===267}function Jj(e){return e===249||e===248||e===256||e===243||e===241||e===239||e===246||e===247||e===245||e===242||e===253||e===250||e===252||e===254||e===255||e===240||e===244||e===251||e===355||e===359||e===358}function Kl(e){return e.kind===165?e.parent&&e.parent.kind!==348||Yn(e):ewe(e.kind)}function bse(e){return zj(e.kind)}function Nw(e){return Jj(e.kind)}function ca(e){let t=e.kind;return Jj(t)||zj(t)||twe(e)}function twe(e){return e.kind!==238||e.parent!==void 0&&(e.parent.kind===255||e.parent.kind===295)?!1:!bT(e)}function Ese(e){let t=e.kind;return Jj(t)||zj(t)||t===238}function Tse(e){let t=e.kind;return t===280||t===163||t===79}function bI(e){let t=e.kind;return t===108||t===79||t===208}function Pw(e){let t=e.kind;return t===281||t===291||t===282||t===11||t===285}function d6(e){let t=e.kind;return t===288||t===290}function Sse(e){let t=e.kind;return t===10||t===291}function Au(e){let t=e.kind;return t===283||t===282}function Kj(e){let t=e.kind;return t===292||t===293}function IA(e){return e.kind>=312&&e.kind<=353}function qj(e){return e.kind===323||e.kind===322||e.kind===324||iS(e)||EI(e)||LL(e)||X0(e)}function EI(e){return e.kind>=330&&e.kind<=353}function Ng(e){return e.kind===175}function zy(e){return e.kind===174}function Kd(e){if(!lR(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function f6(e){return!!e.type}function Jy(e){return!!e.initializer}function mT(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}}function Xj(e){return e.kind===288||e.kind===290||Og(e)}function _6(e){return e.kind===180||e.kind===230}function xse(e){let t=Zj;for(let r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&xh(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===Zj?void 0:t}function es(e){return e.kind===10||e.kind===14}function iS(e){return e.kind===327||e.kind===328||e.kind===329}function Yj(e){let t=Os(e.parameters);return!!t&&Fm(t)}function Fm(e){let t=xp(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===321}var $j,Qj,Zj,nwe=gt({"src/compiler/utilitiesPublic.ts"(){"use strict";fa(),$j=Sw(il(0,0),0),Qj=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],Zj=1073741823}});function nc(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function Ase(e,t){return Pr(e.declarations||Je,r=>r.kind===t)}function Ua(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function Zp(e){return(e.flags&33554432)!==0}function rwe(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&xh(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ba,decreaseIndent:Ba,clear:()=>e=""}}function eH(e,t){return e.configFilePath!==t.configFilePath||Cse(e,t)}function Cse(e,t){return LA(e,t,U3)}function Ise(e,t){return LA(e,t,GJ)}function LA(e,t,r){return e!==t&&r.some(i=>!GW(f4(e,i),f4(t,i)))}function Lse(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Li(e))return;e=e.parent}}function Ld(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function TI(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function Mw(e,t){e.forEach((r,i)=>{t.set(i,r)})}function SI(e){let t=uL.getText();try{return e(uL),uL.getText()}finally{uL.clear(),uL.writeKeyword(t)}}function Fw(e){return e.end-e.pos}function kA(e,t,r){var i,o;return(o=(i=e?.resolvedModules)==null?void 0:i.get(t,r))==null?void 0:o.resolvedModule}function kse(e,t,r,i){e.resolvedModules||(e.resolvedModules=WT()),e.resolvedModules.set(t,i,r)}function Dse(e,t,r,i){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=WT()),e.resolvedTypeReferenceDirectiveNames.set(t,i,r)}function iwe(e,t,r){var i,o;return(o=(i=e?.resolvedTypeReferenceDirectiveNames)==null?void 0:i.get(t,r))==null?void 0:o.resolvedTypeReferenceDirective}function tH(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function wse(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&awe(e.resolvedModule.packageId,t.resolvedModule.packageId)}function awe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function p6({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function hT(e){return`${p6(e)}@${e.version}`}function Rse(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function nH(e,t,r,i,o,s){L.assert(e.length===r.length);for(let l=0;l<e.length;l++){let f=r[l],d=e[l],g=s.getName(d),m=s.getMode(d,t),v=i&&i.get(g,m);if(v?!f||!o(v,f):f)return!0}return!1}function Gw(e){return owe(e),(e.flags&524288)!==0}function owe(e){e.flags&1048576||((e.flags&131072||pa(e,Gw))&&(e.flags|=524288),e.flags|=1048576)}function Gn(e){for(;e&&e.kind!==308;)e=e.parent;return e}function m6(e){return Gn(e.valueDeclaration||dH(e))}function h6(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function Ose(e){switch(e.kind){case 238:case 266:case 245:case 246:case 247:return!0}return!1}function Ky(e,t){return L.assert(e>=0),Sh(t)[e]}function swe(e){let t=Gn(e),r=Gs(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function Bw(e,t){L.assert(e>=0);let r=Sh(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(L.assert(Wl(o.charCodeAt(l)));s<=l&&Wl(o.charCodeAt(l));)l--;return l}}function g6(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function rc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Pf(e){return!rc(e)}function Nse(e,t){return _c(e)?t===e.expression:oc(e)?t===e.modifiers:$d(e)?t===e.initializer:Na(e)?t===e.questionToken&&Id(e):yl(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||xI(e.modifiers,t,Ns):xf(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||xI(e.modifiers,t,Ns):Nc(e)?t===e.exclamationToken:Ec(e)?t===e.typeParameters||t===e.type||xI(e.typeParameters,t,_c):p_(e)?t===e.typeParameters||xI(e.typeParameters,t,_c):Sf(e)?t===e.typeParameters||t===e.type||xI(e.typeParameters,t,_c):gO(e)?t===e.modifiers||xI(e.modifiers,t,Ns):!1}function xI(e,t,r){return!e||ba(t)||!r(t)?!1:ya(e,t)}function Pse(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function Mse(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function Fse(e){return B_(e)||!!(Ya(e)&2097152)}function em(e,t){return Pse(e,t,B_)}function rH(e,t){return Pse(e,t,Fse)}function cwe(e,t){return Mse(e,t,B_)}function L0(e,t){return Mse(e,t,Fse)}function iH(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){let i=e.substring(t,r);return!!(qW.test(i)||XW.test(i)||Wle.test(i)||zle.test(i))}return!1}function y6(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function Gse(e,t){let r=new Map(t.map(l=>[`${Gs(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return lo(r.entries()).filter(([l,f])=>f.type===0&&!i.get(l)).map(([l,f])=>f)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function gT(e,t,r){return rc(e)?e.pos:IA(e)||e.kind===11?xo((t||Gn(e)).text,e.pos,!1,!0):r&&Kd(e)?gT(e.jsDoc[0],t):e.kind===354&&e._children.length>0?gT(e._children[0],t,r):xo((t||Gn(e)).text,e.pos,!1,!1,qw(e))}function aH(e,t){let r=!rc(e)&&g_(e)?dA(e.modifiers,du):void 0;return r?xo((t||Gn(e)).text,r.end):gT(e,t)}function k0(e,t,r=!1){return AI(e.text,t,r)}function lwe(e){return!!jn(e,UT)}function v6(e){return!!(Il(e)&&e.exportClause&&qm(e.exportClause)&&e.exportClause.name.escapedText==="default")}function AI(e,t,r=!1){if(rc(t))return"";let i=e.substring(r?t.pos:xo(e,t.pos),t.end);return lwe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>ZC(o.replace(/^\s*\*/,""))).join(`
| `)),i}function Qc(e,t=!1){return k0(Gn(e),e,t)}function uwe(e){return e.pos}function DA(e,t){return Py(e,t,uwe,Es)}function Ya(e){let t=e.emitNode;return t&&t.flags||0}function o_(e){let t=e.emitNode;return t&&t.internalFlags||0}function oH(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Je})),AsyncIterator:new Map(Object.entries({es2015:Je})),Atomics:new Map(Object.entries({es2017:Je})),SharedArrayBuffer:new Map(Object.entries({es2017:Je})),AsyncIterable:new Map(Object.entries({es2018:Je})),AsyncIterableIterator:new Map(Object.entries({es2018:Je})),AsyncGenerator:new Map(Object.entries({es2018:Je})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Je})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Je,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Je})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Je,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Je,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function Bse(e,t,r){var i;if(t&&dwe(e,r))return k0(t,e);switch(e.kind){case 10:{let o=r&2?qH:r&1||Ya(e)&33554432?_S:ER;return e.singleQuote?"'"+o(e.text,39)+"'":'"'+o(e.text,34)+'"'}case 14:case 15:case 16:case 17:{let o=r&1||Ya(e)&33554432?_S:ER,s=(i=e.rawText)!=null?i:Rwe(o(e.text,96));switch(e.kind){case 14:return"`"+s+"`";case 15:return"`"+s+"${";case 16:return"}"+s+"${";case 17:return"}"+s+"`"}break}case 8:case 9:return e.text;case 13:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return L.fail(`Literal kind '${e.kind}' not accounted for.`)}function dwe(e,t){return ws(e)||!e.parent||t&4&&e.isUnterminated?!1:Vf(e)&&e.numericLiteralFlags&512?!!(t&8):!a3(e)}function Use(e){return Ta(e)?'"'+ER(e)+'"':""+e}function Vse(e){return Hl(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function sH(e){return(G_(e)&3)!==0||cH(e)}function cH(e){let t=nm(e);return t.kind===257&&t.parent.kind===295}function lu(e){return Tc(e)&&(e.name.kind===10||mp(e))}function b6(e){return Tc(e)&&e.name.kind===10}function lH(e){return Tc(e)&&yo(e.name)}function jse(e){return Tc(e)||Re(e)}function CI(e){return fwe(e.valueDeclaration)}function fwe(e){return!!e&&e.kind===264&&!e.body}function Hse(e){return e.kind===308||e.kind===264||SA(e)}function mp(e){return!!(e.flags&1024)}function D0(e){return lu(e)&&uH(e)}function uH(e){switch(e.parent.kind){case 308:return Lc(e.parent);case 265:return lu(e.parent.parent)&&Li(e.parent.parent.parent)&&!Lc(e.parent.parent.parent)}return!1}function dH(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!D0(r)&&!(Tc(r)&&mp(r)))}function _we(e){return e===1||e===100||e===199}function aS(e,t){return Lc(e)||d_(t)||_we(Rl(t))&&!!e.commonJsModuleIndicator}function fH(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:Uf(t,"alwaysStrict")||nde(e.statements)?!0:Lc(e)||d_(t)?Rl(t)>=5?!0:!t.noImplicitUseStrict:!1}function _H(e){return!!(e.flags&16777216)||Mr(e,2)}function pH(e,t){switch(e.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!SA(t)}return!1}function mH(e){switch(L.type(e),e.kind){case 341:case 349:case 326:return!0;default:return hH(e)}}function hH(e){switch(L.type(e),e.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 348:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function yT(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function Wse(e){return yT(e)||N0(e)}function E6(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}}function zse(e){return Uw(e)||Tc(e)||Mh(e)||Dd(e)}function Uw(e){return yT(e)||Il(e)}function tm(e){return jn(e.parent,t=>pH(t,t.parent))}function Jse(e,t){let r=tm(e);for(;r;)t(r),r=tm(r)}function os(e){return!e||Fw(e)===0?"(Missing)":Qc(e)}function Kse(e){return e.declaration?os(e.declaration.parameters[0].name):void 0}function Vw(e){return e.kind===164&&!yf(e.expression)}function T6(e){var t;switch(e.kind){case 79:case 80:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 10:case 8:case 14:return Bs(e.text);case 164:return yf(e.expression)?Bs(e.expression.text):void 0;default:return L.assertNever(e)}}function wA(e){return L.checkDefined(T6(e))}function qd(e){switch(e.kind){case 108:return"this";case 80:case 79:return Fw(e)===0?vr(e):Qc(e);case 163:return qd(e.left)+"."+qd(e.right);case 208:return Re(e.name)||pi(e.name)?qd(e.expression)+"."+qd(e.name):L.assertNever(e.name);case 314:return qd(e.left)+qd(e.right);default:return L.assertNever(e)}}function hr(e,t,r,i,o,s){let l=Gn(e);return Nu(l,e,t,r,i,o,s)}function RA(e,t,r,i,o,s,l){let f=xo(e.text,t.pos);return al(e,f,t.end-f,r,i,o,s,l)}function Nu(e,t,r,i,o,s,l){let f=w0(e,t);return al(e,f.start,f.length,r,i,o,s,l)}function Lh(e,t,r,i){let o=w0(e,t);return S6(e,o.start,o.length,r,i)}function jw(e,t,r,i){let o=xo(e.text,t.pos);return S6(e,o,t.end-o,r,i)}function gH(e,t,r){L.assertGreaterThanOrEqual(t,0),L.assertGreaterThanOrEqual(r,0),e&&(L.assertLessThanOrEqual(t,e.text.length),L.assertLessThanOrEqual(t+r,e.text.length))}function S6(e,t,r,i,o){return gH(e,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function yH(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function qse(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function vH(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function Pg(e,t){let r=kg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenPos();return Wc(i,r.getTextPos())}function Xse(e,t){let r=kg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function pwe(e,t){let r=xo(e.text,t.pos);if(t.body&&t.body.kind===238){let{line:i}=Gs(e,t.body.pos),{line:o}=Gs(e,t.body.end);if(i<o)return il(r,Bw(i,e)-r+1)}return Wc(r,t.end)}function w0(e,t){let r=t;switch(t.kind){case 308:let s=xo(e.text,0,!1);return s===e.text.length?il(0,0):Pg(e,s);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=t.name;break;case 216:return pwe(e,t);case 292:case 293:let l=xo(e.text,t.pos),f=t.statements.length>0?t.statements[0].pos:t.end;return Wc(l,f)}if(r===void 0)return Pg(e,t.pos);L.assert(!dm(r));let i=rc(r),o=i||CS(t)?r.pos:xo(e.text,r.pos);return i?(L.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),L.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(L.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),L.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Wc(o,r.end)}function kd(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Mf(e){return e.scriptKind===6}function R0(e){return!!(wg(e)&2048)}function x6(e){return!!(wg(e)&64&&!Ad(e,e.parent))}function kh(e){return!!(G_(e)&2)}function II(e){return!!(G_(e)&1)}function OA(e){return e.kind===210&&e.expression.kind===106}function Dd(e){return e.kind===210&&e.expression.kind===100}function NA(e){return TL(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function ib(e){return Mh(e)&&mb(e.argument)&&yo(e.argument.literal)}function B_(e){return e.kind===241&&e.expression.kind===10}function A6(e){return!!(Ya(e)&2097152)}function C6(e){return A6(e)&&Jc(e)}function mwe(e){return Re(e.name)&&!e.initializer}function I6(e){return A6(e)&&Bc(e)&&Ji(e.declarationList.declarations,mwe)}function bH(e,t){return e.kind!==11?Nm(t.text,e.pos):void 0}function EH(e,t){let r=e.kind===166||e.kind===165||e.kind===215||e.kind===216||e.kind===214||e.kind===257||e.kind===278?Qi(eb(t,e.pos),Nm(t,e.pos)):Nm(t,e.pos);return Pr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function Gm(e){if(179<=e.kind&&e.kind<=202)return!0;switch(e.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return e.parent.kind!==219;case 230:return dd(e.parent)&&!IR(e);case 165:return e.parent.kind===197||e.parent.kind===192;case 79:(e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e)&&(e=e.parent),L.assert(e.kind===79||e.kind===163||e.kind===208,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:{let{parent:t}=e;if(t.kind===183)return!1;if(t.kind===202)return!t.isTypeOf;if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 230:return dd(t.parent)&&!IR(t);case 165:return e===t.constraint;case 348:return e===t.constraint;case 169:case 168:case 166:case 257:return e===t.type;case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:return e===t.type;case 176:case 177:case 178:return e===t.type;case 213:return e===t.type;case 210:case 211:return ya(t.typeArguments,e);case 212:return!1}}}return!1}function TH(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function vT(e,t){return r(e);function r(i){switch(i.kind){case 250:return t(i);case 266:case 238:case 242:case 243:case 244:case 245:case 246:case 247:case 251:case 252:case 292:case 293:case 253:case 255:case 295:return pa(i,r)}}}function Yse(e,t){return r(e);function r(i){switch(i.kind){case 226:t(i);let o=i.expression;o&&r(o);return;case 263:case 261:case 264:case 262:return;default:if(Ia(i)){if(i.name&&i.name.kind===164){r(i.name.expression);return}}else Gm(i)||pa(i,r)}}}function SH(e){return e&&e.kind===185?e.elementType:e&&e.kind===180?Wp(e.typeArguments):void 0}function $se(e){switch(e.kind){case 261:case 260:case 228:case 184:return e.members;case 207:return e.properties}}function PA(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function Qse(e){return PA(e)||rb(e)}function L6(e){return e.parent.kind===258&&e.parent.parent.kind===240}function Zse(e){return Yn(e)?rs(e.parent)&&ar(e.parent.parent)&&ic(e.parent.parent)===2||k6(e.parent):!1}function k6(e){return Yn(e)?ar(e)&&ic(e)===1:!1}function ece(e){return(wi(e)?kh(e)&&Re(e.name)&&L6(e):Na(e)?jI(e)&&zc(e):$d(e)&&jI(e))||k6(e)}function tce(e){switch(e.kind){case 171:case 170:case 173:case 174:case 175:case 259:case 215:return!0}return!1}function xH(e,t){for(;;){if(t&&t(e),e.statement.kind!==253)return e.statement;e=e.statement}}function bT(e){return e&&e.kind===238&&Ia(e.parent)}function s_(e){return e&&e.kind===171&&e.parent.kind===207}function D6(e){return(e.kind===171||e.kind===174||e.kind===175)&&(e.parent.kind===207||e.parent.kind===228)}function nce(e){return e&&e.kind===1}function hwe(e){return e&&e.kind===0}function MA(e,t,r){return e.properties.filter(i=>{if(i.kind===299){let o=T6(i.name);return t===o||!!r&&r===o}return!1})}function rce(e,t,r){return ks(MA(e,t),i=>fu(i.initializer)?wr(i.initializer.elements,o=>yo(o)&&o.text===r):void 0)}function LI(e){if(e&&e.statements.length){let t=e.statements[0].expression;return zr(t,rs)}}function w6(e,t,r){return ks(Hw(e,t),i=>fu(i.initializer)?wr(i.initializer.elements,o=>yo(o)&&o.text===r):void 0)}function Hw(e,t){let r=LI(e);return r?MA(r,t):Je}function Xd(e){return jn(e.parent,Ia)}function ice(e){return jn(e.parent,Ds)}function Zc(e){return jn(e.parent,Yr)}function gwe(e){return jn(e.parent,t=>Yr(t)||Ia(t)?"quit":oc(t))}function R6(e){return jn(e.parent,SA)}function Ku(e,t,r){for(L.assert(e.kind!==308);;){if(e=e.parent,!e)return L.fail();switch(e.kind){case 164:if(r&&Yr(e.parent.parent))return e;e=e.parent.parent;break;case 167:e.parent.kind===166&&_l(e.parent.parent)?e=e.parent.parent:_l(e.parent)&&(e=e.parent);break;case 216:if(!t)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return e}}}function ace(e){switch(e.kind){case 216:case 259:case 215:case 169:return!0;case 238:switch(e.parent.kind){case 173:case 171:case 174:case 175:return!0;default:return!1}default:return!1}}function O6(e){Re(e)&&(sl(e.parent)||Jc(e.parent))&&e.parent.name===e&&(e=e.parent);let t=Ku(e,!0,!1);return Li(t)}function oce(e){let t=Ku(e,!1,!1);if(t)switch(t.kind){case 173:case 259:case 215:return t}}function Ww(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 164:e=e.parent;break;case 259:case 215:case 216:if(!t)continue;case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 172:return e;case 167:e.parent.kind===166&&_l(e.parent.parent)?e=e.parent.parent:_l(e.parent)&&(e=e.parent);break}}}function ET(e){if(e.kind===215||e.kind===216){let t=e,r=e.parent;for(;r.kind===214;)t=r,r=r.parent;if(r.kind===210&&r.expression===t)return r}}function ywe(e){return e.kind===106||Pu(e)}function Pu(e){let t=e.kind;return(t===208||t===209)&&e.expression.kind===106}function zw(e){let t=e.kind;return(t===208||t===209)&&e.expression.kind===108}function N6(e){var t;return!!e&&wi(e)&&((t=e.initializer)==null?void 0:t.kind)===108}function sce(e){return!!e&&(xf(e)||yl(e))&&ar(e.parent.parent)&&e.parent.parent.operatorToken.kind===63&&e.parent.parent.right.kind===108}function Jw(e){switch(e.kind){case 180:return e.typeName;case 230:return bc(e.expression)?e.expression:void 0;case 79:case 163:return e}}function P6(e){switch(e.kind){case 212:return e.tag;case 283:case 282:return e.tagName;default:return e.expression}}function M6(e,t,r,i){if(e&&zl(t)&&pi(t.name))return!1;switch(t.kind){case 260:return!0;case 228:return!e;case 169:return r!==void 0&&(e?sl(r):Yr(r)&&!B0(t)&&!aW(t));case 174:case 175:case 171:return t.body!==void 0&&r!==void 0&&(e?sl(r):Yr(r));case 166:return e?r!==void 0&&r.body!==void 0&&(r.kind===173||r.kind===171||r.kind===175)&&F0(r)!==t&&i!==void 0&&i.kind===260:!1}return!1}function FA(e,t,r,i){return bf(t)&&M6(e,t,r,i)}function Kw(e,t,r,i){return FA(e,t,r,i)||kI(e,t,r)}function kI(e,t,r){switch(t.kind){case 260:return vt(t.members,i=>Kw(e,i,t,r));case 228:return!e&&vt(t.members,i=>Kw(e,i,t,r));case 171:case 175:case 173:return vt(t.parameters,i=>FA(e,i,t,r));default:return!1}}function O0(e,t){if(FA(e,t))return!0;let r=Vm(t);return!!r&&kI(e,r,t)}function AH(e,t,r){let i;if(rb(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=kT(r.members,t),f=bf(o)?o:s&&bf(s)?s:void 0;if(!f||t!==f)return!1;i=l?.parameters}else Nc(t)&&(i=t.parameters);if(FA(e,t,r))return!0;if(i){for(let o of i)if(!G0(o)&&FA(e,o,t,r))return!0}return!1}function CH(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 10:return CH(e.textSourceNode);case 14:return e.text===""}return!1}return e.text===""}function DI(e){let{parent:t}=e;return t.kind===283||t.kind===282||t.kind===284?t.tagName===e:!1}function Dh(e){switch(e.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!dd(e.parent)&&!x2(e.parent);case 163:for(;e.parent.kind===163;)e=e.parent;return e.parent.kind===183||iS(e.parent)||IL(e.parent)||gb(e.parent)||DI(e);case 314:for(;gb(e.parent);)e=e.parent;return e.parent.kind===183||iS(e.parent)||IL(e.parent)||gb(e.parent)||DI(e);case 80:return ar(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===101;case 79:if(e.parent.kind===183||iS(e.parent)||IL(e.parent)||gb(e.parent)||DI(e))return!0;case 8:case 9:case 10:case 14:case 108:return F6(e);default:return!1}}function F6(e){let{parent:t}=e;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:let r=t;return r.initializer===e&&r.initializer.kind!==258||r.condition===e||r.incrementor===e;case 246:case 247:let i=t;return i.initializer===e&&i.initializer.kind!==258||i.expression===e;case 213:case 231:return e===t.expression;case 236:return e===t.expression;case 164:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!Gm(t);case 300:return t.objectAssignmentInitializer===e;case 235:return e===t.expression;default:return Dh(t)}}function G6(e){for(;e.kind===163||e.kind===79;)e=e.parent;return e.kind===183}function cce(e){return qm(e)&&!!e.parent.moduleSpecifier}function ab(e){return e.kind===268&&e.moduleReference.kind===280}function wI(e){return L.assert(ab(e)),e.moduleReference.expression}function IH(e){return N0(e)&&$I(e.initializer).arguments[0]}function GA(e){return e.kind===268&&e.moduleReference.kind!==280}function Cu(e){return Yn(e)}function vwe(e){return!Yn(e)}function Yn(e){return!!e&&!!(e.flags&262144)}function B6(e){return!!e&&!!(e.flags&67108864)}function LH(e){return!Mf(e)}function qw(e){return!!e&&!!(e.flags&8388608)}function U6(e){return m_(e)&&Re(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===152||e.typeArguments[0].kind===148)}function qu(e,t){if(e.kind!==210)return!1;let{expression:r,arguments:i}=e;if(r.kind!==79||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||es(o)}function kH(e){return uce(e,!1)}function N0(e){return uce(e,!0)}function lce(e){return Wo(e)&&N0(e.parent.parent)}function uce(e,t){return wi(e)&&!!e.initializer&&qu(t?$I(e.initializer):e.initializer,!0)}function DH(e){return Bc(e)&&e.declarationList.declarations.length>0&&Ji(e.declarationList.declarations,t=>kH(t))}function Xw(e){return e===39||e===34}function V6(e,t){return k0(t,e).charCodeAt(0)===34}function RI(e){return ar(e)||Us(e)||Re(e)||Pa(e)}function Yw(e){return Yn(e)&&e.initializer&&ar(e.initializer)&&(e.initializer.operatorToken.kind===56||e.initializer.operatorToken.kind===60)&&e.name&&bc(e.name)&&BA(e.name,e.initializer.left)?e.initializer.right:e.initializer}function $w(e){let t=Yw(e);return t&&ob(t,ub(e.name))}function bwe(e,t){return mn(e.properties,r=>yl(r)&&Re(r.name)&&r.name.escapedText==="value"&&r.initializer&&ob(r.initializer,t))}function oS(e){if(e&&e.parent&&ar(e.parent)&&e.parent.operatorToken.kind===63){let t=ub(e.parent.left);return ob(e.parent.right,t)||Ewe(e.parent.left,e.parent.right,t)}if(e&&Pa(e)&&sS(e)){let t=bwe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function ob(e,t){if(Pa(e)){let r=vs(e.expression);return r.kind===215||r.kind===216?e:void 0}if(e.kind===215||e.kind===228||e.kind===216||rs(e)&&(e.properties.length===0||t))return e}function Ewe(e,t,r){let i=ar(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===60)&&ob(t.right,r);if(i&&BA(e,t.left))return i}function dce(e){let t=wi(e.parent)?e.parent.name:ar(e.parent)&&e.parent.operatorToken.kind===63?e.parent.left:void 0;return t&&ob(e.right,ub(t))&&bc(t)&&BA(t,e.left)}function wH(e){if(ar(e.parent)){let t=(e.parent.operatorToken.kind===56||e.parent.operatorToken.kind===60)&&ar(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===63&&Re(t.left))return t.left}else if(wi(e.parent))return e.parent.name}function BA(e,t){return c_(e)&&c_(t)?l_(e)===l_(t):Ah(e)&&j6(t)&&(t.expression.kind===108||Re(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?BA(e,eR(t)):j6(e)&&j6(t)?wh(e)===wh(t)&&BA(e.expression,t.expression):!1}function Qw(e){for(;Iu(e,!0);)e=e.right;return e}function TT(e){return Re(e)&&e.escapedText==="exports"}function RH(e){return Re(e)&&e.escapedText==="module"}function Bm(e){return(br(e)||Zw(e))&&RH(e.expression)&&wh(e)==="exports"}function ic(e){let t=Twe(e);return t===5||Yn(e)?t:0}function sS(e){return Fn(e.arguments)===3&&br(e.expression)&&Re(e.expression.expression)&&vr(e.expression.expression)==="Object"&&vr(e.expression.name)==="defineProperty"&&yf(e.arguments[1])&&cS(e.arguments[0],!0)}function j6(e){return br(e)||Zw(e)}function Zw(e){return Vs(e)&&yf(e.argumentExpression)}function ST(e,t){return br(e)&&(!t&&e.expression.kind===108||Re(e.name)&&cS(e.expression,!0))||H6(e,t)}function H6(e,t){return Zw(e)&&(!t&&e.expression.kind===108||bc(e.expression)||ST(e.expression,!0))}function cS(e,t){return bc(e)||ST(e,t)}function eR(e){return br(e)?e.name:e.argumentExpression}function Twe(e){if(Pa(e)){if(!sS(e))return 0;let t=e.arguments[0];return TT(t)||Bm(t)?8:ST(t)&&wh(t)==="prototype"?9:7}return e.operatorToken.kind!==63||!Us(e.left)||Swe(Qw(e))?0:cS(e.left.expression,!0)&&wh(e.left)==="prototype"&&rs(OH(e))?6:tR(e.left)}function Swe(e){return NS(e)&&Vf(e.expression)&&e.expression.text==="0"}function W6(e){if(br(e))return e.name;let t=vs(e.argumentExpression);return Vf(t)||es(t)?t:e}function wh(e){let t=W6(e);if(t){if(Re(t))return t.escapedText;if(es(t)||Vf(t))return Bs(t.text)}}function tR(e){if(e.expression.kind===108)return 4;if(Bm(e))return 2;if(cS(e.expression,!0)){if(ub(e.expression))return 3;let t=e;for(;!Re(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&wh(t)==="exports")&&ST(e))return 1;if(cS(e,!0)||Vs(e)&&Y6(e))return 5}return 0}function OH(e){for(;ar(e.right);)e=e.right;return e.right}function nR(e){return ar(e)&&ic(e)===3}function fce(e){return Yn(e)&&e.parent&&e.parent.kind===241&&(!Vs(e)||Zw(e))&&!!x0(e.parent)}function rR(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&16777216&&!Yn(t)&&!(r.flags&16777216))&&RI(r)&&!RI(t)||r.kind!==t.kind&&jse(r))&&(e.valueDeclaration=t)}function _ce(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===259||wi(t)&&t.initializer&&Ia(t.initializer)}function iR(e){var t,r;switch(e.kind){case 257:case 205:return(t=jn(e.initializer,i=>qu(i,!0)))==null?void 0:t.arguments[0];case 269:return zr(e.moduleSpecifier,es);case 268:return zr((r=zr(e.moduleReference,um))==null?void 0:r.expression,es);case 270:case 277:return zr(e.parent.moduleSpecifier,es);case 271:case 278:return zr(e.parent.parent.moduleSpecifier,es);case 273:return zr(e.parent.parent.parent.moduleSpecifier,es);default:L.assertNever(e)}}function aR(e){return oR(e)||L.failBadSyntaxKind(e.parent)}function oR(e){switch(e.parent.kind){case 269:case 275:return e.parent;case 280:return e.parent.parent;case 210:return Dd(e.parent)||qu(e.parent,!1)?e.parent:void 0;case 198:return L.assert(yo(e)),zr(e.parent.parent,Mh);default:return}}function UA(e){switch(e.kind){case 269:case 275:return e.moduleSpecifier;case 268:return e.moduleReference.kind===280?e.moduleReference.expression:void 0;case 202:return ib(e)?e.argument.literal:void 0;case 210:return e.arguments[0];case 264:return e.name.kind===10?e.name:void 0;default:return L.assertNever(e)}}function VA(e){switch(e.kind){case 269:return e.importClause&&zr(e.importClause.namedBindings,nv);case 268:return e;case 275:return e.exportClause&&zr(e.exportClause,qm);default:return L.assertNever(e)}}function lS(e){return e.kind===269&&!!e.importClause&&!!e.importClause.name}function z6(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=nv(e.namedBindings)?t(e.namedBindings):mn(e.namedBindings.elements,t);if(r)return r}}function uS(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return e.questionToken!==void 0}return!1}function jA(e){let t=S2(e)?Sl(e.parameters):void 0,r=zr(t&&t.name,Re);return!!r&&r.escapedText==="new"}function Ff(e){return e.kind===349||e.kind===341||e.kind===343}function sR(e){return Ff(e)||Ep(e)}function xwe(e){return Ol(e)&&ar(e.expression)&&e.expression.operatorToken.kind===63?Qw(e.expression):void 0}function pce(e){return Ol(e)&&ar(e.expression)&&ic(e.expression)!==0&&ar(e.expression.right)&&(e.expression.right.operatorToken.kind===56||e.expression.right.operatorToken.kind===60)?e.expression.right.right:void 0}function NH(e){switch(e.kind){case 240:let t=HA(e);return t&&t.initializer;case 169:return e.initializer;case 299:return e.initializer}}function HA(e){return Bc(e)?Sl(e.declarationList.declarations):void 0}function mce(e){return Tc(e)&&e.body&&e.body.kind===264?e.body:void 0}function cR(e){if(e.kind>=240&&e.kind<=256)return!0;switch(e.kind){case 79:case 108:case 106:case 163:case 233:case 209:case 208:case 205:case 215:case 216:case 171:case 174:case 175:return!0;default:return!1}}function lR(e){switch(e.kind){case 216:case 223:case 238:case 249:case 176:case 292:case 260:case 228:case 172:case 173:case 182:case 177:case 248:case 256:case 243:case 209:case 239:case 1:case 263:case 302:case 274:case 275:case 278:case 241:case 246:case 247:case 245:case 259:case 215:case 181:case 174:case 79:case 242:case 269:case 268:case 178:case 261:case 320:case 326:case 253:case 171:case 170:case 264:case 199:case 267:case 207:case 166:case 214:case 208:case 299:case 169:case 168:case 250:case 175:case 300:case 301:case 252:case 254:case 255:case 262:case 165:case 257:case 240:case 244:case 251:return!0;default:return!1}}function PH(e,t){let r;PA(e)&&Jy(e)&&Kd(e.initializer)&&(r=si(r,hce(e,To(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Kd(i)&&(r=si(r,hce(e,To(i.jsDoc)))),i.kind===166){r=si(r,(t?joe:fI)(i));break}if(i.kind===165){r=si(r,(t?zoe:Woe)(i));break}i=MH(i)}return r||Je}function hce(e,t){if(dm(t)){let r=Pr(t.tags,i=>gce(e,i));return t.tags===r?[t]:r}return gce(e,t)?[t]:void 0}function gce(e,t){return!(DL(t)||v3(t))||!t.parent||!dm(t.parent)||!ud(t.parent.parent)||t.parent.parent===e}function MH(e){let t=e.parent;if(t.kind===299||t.kind===274||t.kind===169||t.kind===241&&e.kind===208||t.kind===250||mce(t)||ar(e)&&e.operatorToken.kind===63)return t;if(t.parent&&(HA(t.parent)===e||ar(t)&&t.operatorToken.kind===63))return t.parent;if(t.parent&&t.parent.parent&&(HA(t.parent.parent)||NH(t.parent.parent)===e||pce(t.parent.parent)))return t.parent.parent}function uR(e){if(e.symbol)return e.symbol;if(!Re(e.name))return;let t=e.name.escapedText,r=sb(e);if(!r)return;let i=wr(r.parameters,o=>o.name.kind===79&&o.name.escapedText===t);return i&&i.symbol}function J6(e){if(dm(e.parent)&&e.parent.tags){let t=wr(e.parent.tags,Ff);if(t)return t}return sb(e)}function sb(e){let t=WA(e);if(t)return $d(t)&&t.type&&Ia(t.type)?t.type:Ia(t)?t:void 0}function WA(e){let t=dS(e);if(t)return pce(t)||xwe(t)||NH(t)||HA(t)||mce(t)||t}function dS(e){let t=OI(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Os(r.jsDoc))return r}function OI(e){return jn(e.parent,dm)}function yce(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&wr(r,i=>i.name.escapedText===t)}function Awe(e){return!!e.typeArguments}function xT(e){let t=e.parent;for(;;){switch(t.kind){case 223:let r=t.operatorToken.kind;return Mg(r)&&t.left===e?r===63||HI(r)?1:2:0;case 221:case 222:let i=t.operator;return i===45||i===46?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Um(e){return xT(e)!==0}function vce(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1}function bce(e){return ms(e)||xs(e)||xA(e)||Jc(e)||Ec(e)}function Ece(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function dR(e){return Ece(e,193)}function qy(e){return Ece(e,214)}function Tce(e){let t;for(;e&&e.kind===193;)t=e,e=e.parent;return[t,e]}function FH(e){for(;wS(e);)e=e.type;return e}function vs(e,t){return ql(e,t?17:1)}function GH(e){return e.kind!==208&&e.kind!==209?!1:(e=qy(e.parent),e&&e.kind===217)}function AT(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Rh(e){return!Li(e)&&!La(e)&&Kl(e.parent)&&e.parent.name===e}function fR(e){let t=e.parent;switch(e.kind){case 10:case 14:case 8:if(ts(t))return t.parent;case 79:if(Kl(t))return t.name===e?t:void 0;if(Yu(t)){let r=t.parent;return xp(r)&&r.name===t?r:void 0}else{let r=t.parent;return ar(r)&&ic(r)!==0&&(r.left.symbol||r.symbol)&&sa(r)===e?r:void 0}case 80:return Kl(t)&&t.name===e?t:void 0;default:return}}function _R(e){return yf(e)&&e.parent.kind===164&&Kl(e.parent.parent)}function Sce(e){let t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1}function Cwe(e){return e.kind===268||e.kind===267||e.kind===270&&e.name||e.kind===271||e.kind===277||e.kind===273||e.kind===278||e.kind===274&&zA(e)?!0:Yn(e)&&(ar(e)&&ic(e)===2&&zA(e)||br(e)&&ar(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===63&&pR(e.parent.right))}function BH(e){switch(e.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return e.parent;case 163:do e=e.parent;while(e.parent.kind===163);return BH(e)}}function pR(e){return bc(e)||_u(e)}function zA(e){let t=UH(e);return pR(t)}function UH(e){return pc(e)?e.expression:e.right}function xce(e){return e.kind===300?e.name:e.kind===299?e.initializer:e.parent.right}function hp(e){let t=P0(e);if(t&&Yn(e)){let r=Koe(e);if(r)return r.class}return t}function P0(e){let t=mR(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function JA(e){if(Yn(e))return qoe(e).map(t=>t.class);{let t=mR(e.heritageClauses,117);return t?.types}}function NI(e){return ku(e)?PI(e)||Je:Yr(e)&&Qi(aT(hp(e)),JA(e))||Je}function PI(e){let t=mR(e.heritageClauses,94);return t?t.types:void 0}function mR(e,t){if(e){for(let r of e)if(r.token===t)return r}}function cb(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Xu(e){return 81<=e&&e<=162}function K6(e){return 126<=e&&e<=162}function Ace(e){return Xu(e)&&!K6(e)}function Iwe(e){return 117<=e&&e<=125}function fS(e){let t=lT(e);return t!==void 0&&Ace(t)}function Lwe(e){let t=lT(e);return t!==void 0&&Xu(t)}function q6(e){let t=nb(e);return!!t&&!K6(t)}function KA(e){return 2<=e&&e<=7}function pl(e){if(!e)return 4;let t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Mr(e,512)&&(t|=2);break}return e.body||(t|=4),t}function qA(e){switch(e.kind){case 259:case 215:case 216:case 171:return e.body!==void 0&&e.asteriskToken===void 0&&Mr(e,512)}return!1}function yf(e){return es(e)||Vf(e)}function X6(e){return tv(e)&&(e.operator===39||e.operator===40)&&Vf(e.operand)}function Xy(e){let t=sa(e);return!!t&&Y6(t)}function Y6(e){if(!(e.kind===164||e.kind===209))return!1;let t=Vs(e)?vs(e.argumentExpression):e.expression;return!yf(t)&&!X6(t)}function M0(e){switch(e.kind){case 79:case 80:return e.escapedText;case 10:case 8:return Bs(e.text);case 164:let t=e.expression;return yf(t)?Bs(t.text):X6(t)?t.operator===40?Xa(t.operator)+t.operand.text:t.operand.text:void 0;default:return L.assertNever(e)}}function c_(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function l_(e){return Ah(e)?vr(e):e.text}function MI(e){return Ah(e)?e.escapedText:Bs(e.text)}function kwe(e){return`__@${$a(e)}@${e.escapedName}`}function hR(e,t){return`__#${$a(e)}@${t}`}function gR(e){return na(e.escapedName,"__@")}function Cce(e){return na(e.escapedName,"__#")}function Dwe(e){return e.kind===79&&e.escapedText==="Symbol"}function Ice(e){return Re(e)?vr(e)==="__proto__":yo(e)&&e.text==="__proto__"}function FI(e,t){switch(e=ql(e),e.kind){case 228:case 215:if(e.name)return!1;break;case 216:break;default:return!1}return typeof t=="function"?t(e):!0}function VH(e){switch(e.kind){case 299:return!Ice(e.name);case 300:return!!e.objectAssignmentInitializer;case 257:return Re(e.name)&&!!e.initializer;case 166:return Re(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 205:return Re(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 169:return!!e.initializer;case 223:switch(e.operatorToken.kind){case 63:case 76:case 75:case 77:return Re(e.left)}break;case 274:return!0}return!1}function vf(e,t){if(!VH(e))return!1;switch(e.kind){case 299:return FI(e.initializer,t);case 300:return FI(e.objectAssignmentInitializer,t);case 257:case 166:case 205:case 169:return FI(e.initializer,t);case 223:return FI(e.right,t);case 274:return FI(e.expression,t)}}function jH(e){return e.escapedText==="push"||e.escapedText==="unshift"}function CT(e){return nm(e).kind===166}function nm(e){for(;e.kind===205;)e=e.parent.parent;return e}function HH(e){let t=e.kind;return t===173||t===215||t===259||t===216||t===171||t===174||t===175||t===264||t===308}function ws(e){return vp(e.pos)||vp(e.end)}function wwe(e){return ea(e,Li)||e}function WH(e){let t=JH(e),r=e.kind===211&&e.arguments!==void 0;return zH(e.kind,t,r)}function zH(e,t,r){switch(e){case 211:return r?0:1;case 221:case 218:case 219:case 217:case 220:case 224:case 226:return 1;case 223:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function $6(e){let t=JH(e),r=e.kind===211&&e.arguments!==void 0;return yR(e.kind,t,r)}function JH(e){return e.kind===223?e.operatorToken.kind:e.kind===221||e.kind===222?e.operator:e.kind}function yR(e,t,r){switch(e){case 357:return 0;case 227:return 1;case 226:return 2;case 224:return 4;case 223:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return vR(t)}case 213:case 232:case 221:case 218:case 219:case 217:case 220:return 16;case 222:return 17;case 210:return 18;case 211:return r?19:18;case 212:case 208:case 209:case 233:return 19;case 231:case 235:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 206:case 207:case 215:case 216:case 228:case 13:case 14:case 225:case 214:case 229:case 281:case 282:case 285:return 20;default:return-1}}function vR(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}function bR(e){return Pr(e,t=>{switch(t.kind){case 291:return!!t.expression;case 11:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function XA(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:f};function o(d){let g;if(d.file?g=r.get(d.file.fileName):g=e,!g)return;let m=Py(g,d,Ks,c4);if(m>=0)return g[m]}function s(d){let g;d.file?(g=r.get(d.file.fileName),g||(g=[],r.set(d.file.fileName,g),Ny(t,d.file.fileName,su))):(i&&(i=!1,e=e.slice()),g=e),Ny(g,d,c4)}function l(){return i=!0,e}function f(d){if(d)return r.get(d)||[];let g=BD(t,m=>r.get(m));return e.length&&g.unshift(...e),g}}function Rwe(e){return e.replace(Jle,"\\${")}function KH(e){return e&&!!(IS(e)?e.templateFlags:e.head.templateFlags||vt(e.templateSpans,t=>!!t.literal.templateFlags))}function Lce(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Owe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Yle.get(e)||Lce(e.charCodeAt(0))}function _S(e,t){let r=t===96?Xle:t===39?qle:Kle;return e.replace(r,Owe)}function ER(e,t){return e=_S(e,t),ez.test(e)?e.replace(ez,r=>Lce(r.charCodeAt(0))):e}function Nwe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Pwe(e){return e.charCodeAt(0)===0?"�":Zle.get(e)||Nwe(e.charCodeAt(0))}function qH(e,t){let r=t===39?Qle:$le;return e.replace(r,Pwe)}function u_(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Mwe(e.charCodeAt(0))?e.substring(1,t-1):e}function Mwe(e){return e===39||e===34||e===96}function GI(e){let t=e.charCodeAt(0);return t>=97&&t<=122||jl(e,"-")||jl(e,":")}function Q6(e){let t=s2[1];for(let r=s2.length;r<=e;r++)s2.push(s2[r-1]+t);return s2[e]}function YA(){return s2[1].length}function TR(){return jl(Rf,"-dev")||jl(Rf,"-insiders")}function SR(e){var t,r,i,o,s,l=!1;function f(C){let P=hw(C);P.length>1?(o=o+P.length-1,s=t.length-C.length+To(P),i=s-t.length===0):i=!1}function d(C){C&&C.length&&(i&&(C=Q6(r)+C,i=!1),t+=C,f(C))}function g(C){C&&(l=!1),d(C)}function m(C){C&&(l=!0),d(C)}function v(){t="",r=0,i=!0,o=0,s=0,l=!1}function S(C){C!==void 0&&(t+=C,f(C),l=!1)}function x(C){C&&C.length&&g(C)}function A(C){(!i||C)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function w(){return i?t.length:t.length+e.length}return v(),{write:g,rawWrite:S,writeLiteral:x,writeLine:A,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*YA():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&xh(t.charCodeAt(t.length-1)),clear:v,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(C,P)=>g(C),writeTrailingSemicolon:g,writeComment:m,getTextPosWithWriteLine:w}}function XH(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function xR(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function lb(e){return Dl(xR(e))}function Z6(e,t,r){return t.moduleName||YH(e,t.fileName,r&&r.fileName)}function kce(e,t){return e.getCanonicalFileName(_a(t,e.getCurrentDirectory()))}function Dce(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=UA(r);if(!(o&&es(o)&&!Jd(o.text)&&kce(e,i.path).indexOf(kce(e,cu(e.getCommonSourceDirectory())))===-1))return Z6(e,i)}function YH(e,t,r){let i=d=>e.getCanonicalFileName(d),o=Ts(r?ni(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=_a(t,e.getCurrentDirectory()),l=Q1(o,s,o,i,!1),f=ld(l);return r?S0(f):f}function wce(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=ld(e4(e,t,i.outDir)):o=ld(e),o+r}function Rce(e,t){return $H(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function $H(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?tW(e,s,r,i,o):e,f=QH(l);return ld(l)+f}function QH(e){return $c(e,[".mjs",".mts"])?".d.mts":$c(e,[".cjs",".cts"])?".d.cts":$c(e,[".json"])?".d.json.ts":".d.ts"}function Oce(e){return $c(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$c(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$c(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ss(e){return e.outFile||e.out}function ZH(e,t){var r,i;if(e.paths)return(i=e.baseUrl)!=null?i:L.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function eW(e,t,r){let i=e.getCompilerOptions();if(Ss(i)){let o=Rl(i),s=i.emitDeclarationOnly||o===2||o===4;return Pr(e.getSourceFiles(),l=>(s||!Lc(l))&&pS(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return Pr(o,s=>pS(s,e,r))}}function pS(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&Cu(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(Mf(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function e4(e,t,r){return tW(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function tW(e,t,r,i,o){let s=_a(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,vi(t,s)}function BI(e,t,r,i,o,s,l){e.writeFile(r,i,o,f=>{t.add(ps(_.Could_not_write_file_0_Colon_1,r,f))},s,l)}function Nce(e,t,r){if(e.length>_p(e)&&!r(e)){let i=ni(e);Nce(i,t,r),t(e)}}function nW(e,t,r,i,o,s){try{i(e,t,r)}catch{Nce(ni(So(e)),o,s),i(e,t,r)}}function UI(e,t){let r=Sh(e);return aI(r,t)}function IT(e,t){return aI(e,t)}function Vm(e){return wr(e.members,t=>Ec(t)&&Pf(t.body))}function VI(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&G0(e.parameters[0]);return e.parameters[t?1:0]}}function Pce(e){let t=VI(e);return t&&t.type}function F0(e){if(e.parameters.length&&!X0(e)){let t=e.parameters[0];if(G0(t))return t}}function G0(e){return LT(e.name)}function LT(e){return!!e&&e.kind===79&&rW(e)}function mS(e){if(!LT(e))return!1;for(;Yu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===183}function rW(e){return e.escapedText==="this"}function kT(e,t){let r,i,o,s;return Xy(t)?(r=t,t.kind===174?o=t:t.kind===175?s=t:L.fail("Accessor has wrong kind")):mn(e,l=>{if(rb(l)&&Ca(l)===Ca(t)){let f=M0(l.name),d=M0(t.name);f===d&&(r?i||(i=l):r=l,l.kind===174&&!o&&(o=l),l.kind===175&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Cl(e){if(!Yn(e)&&Jc(e))return;let t=e.type;return t||!Yn(e)?t:a6(e)?e.typeExpression&&e.typeExpression.type:Vy(e)}function Mce(e){return e.type}function U_(e){return X0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Yn(e)?Aw(e):void 0)}function t4(e){return Uo(A0(e),t=>Fwe(t)?t.typeParameters:void 0)}function Fwe(e){return H_(e)&&!(e.parent.kind===323&&(e.parent.tags.some(Ff)||e.parent.tags.some(kL)))}function Fce(e){let t=VI(e);return t&&Cl(t)}function Gce(e,t,r,i){Bce(e,t,r.pos,i)}function Bce(e,t,r,i){i&&i.length&&r!==i[0].pos&&IT(e,r)!==IT(e,i[0].pos)&&t.writeLine()}function Uce(e,t,r,i){r!==i&&IT(e,r)!==IT(e,i)&&t.writeLine()}function Vce(e,t,r,i,o,s,l,f){if(i&&i.length>0){o&&r.writeSpace(" ");let d=!1;for(let g of i)d&&(r.writeSpace(" "),d=!1),f(e,t,r,g.pos,g.end,l),g.hasTrailingNewLine?r.writeLine():d=!0;d&&s&&r.writeSpace(" ")}}function jce(e,t,r,i,o,s,l){let f,d;if(l?o.pos===0&&(f=Pr(Nm(e,o.pos),g)):f=Nm(e,o.pos),f){let m=[],v;for(let S of f){if(v){let x=IT(t,v.end);if(IT(t,S.pos)>=x+2)break}m.push(S),v=S}if(m.length){let S=IT(t,To(m).end);IT(t,xo(e,o.pos))>=S+2&&(Gce(t,r,o,f),Vce(e,t,r,m,!1,!0,s,i),d={nodePos:o.pos,detachedCommentEndPos:To(m).end})}}return d;function g(m){return y6(e,m.pos)}}function $A(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=yw(t,i),f=t.length,d;for(let g=i,m=l.line;g<o;m++){let v=m+1===f?e.length+1:t[m+1];if(g!==i){d===void 0&&(d=Hce(e,t[l.line],i));let x=r.getIndent()*YA()-d+Hce(e,g,v);if(x>0){let A=x%YA(),w=Q6((x-A)/YA());for(r.rawWrite(w);A;)r.rawWrite(" "),A--}else r.rawWrite("")}Gwe(e,o,r,s,g,v),g=v}}else r.writeComment(e.substring(i,o))}function Gwe(e,t,r,i,o,s){let l=Math.min(t,s-1),f=v0(e.substring(o,l));f?(r.writeComment(f),l!==t&&r.writeLine()):r.rawWrite(i)}function Hce(e,t,r){let i=0;for(;t<r&&Yp(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=YA()-i%YA():i++;return i}function n4(e){return uu(e)!==0}function Wce(e){return Yy(e)!==0}function cd(e,t){return!!hS(e,t)}function Mr(e,t){return!!zce(e,t)}function Ca(e){return _l(e)&&zc(e)||oc(e)}function zc(e){return Mr(e,32)}function iW(e){return cd(e,16384)}function B0(e){return Mr(e,256)}function aW(e){return Mr(e,2)}function rm(e){return Mr(e,128)}function jI(e){return cd(e,64)}function bf(e){return Mr(e,131072)}function hS(e,t){return uu(e)&t}function zce(e,t){return Yy(e)&t}function oW(e,t,r){return e.kind>=0&&e.kind<=162?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=sW(e)|536870912),t&&!(e.modifierFlagsCache&4096)&&(r||Yn(e))&&e.parent&&(e.modifierFlagsCache|=Kce(e)|4096),e.modifierFlagsCache&-536875009)}function uu(e){return oW(e,!0)}function Jce(e){return oW(e,!0,!0)}function Yy(e){return oW(e,!1)}function Kce(e){let t=0;return e.parent&&!ha(e)&&(Yn(e)&&(Xoe(e)&&(t|=4),Yoe(e)&&(t|=8),$oe(e)&&(t|=16),Qoe(e)&&(t|=64),Zoe(e)&&(t|=16384)),ese(e)&&(t|=8192)),t}function qce(e){return sW(e)|Kce(e)}function sW(e){let t=g_(e)?im(e.modifiers):0;return(e.flags&4||e.kind===79&&e.flags&2048)&&(t|=1),t}function im(e){let t=0;if(e)for(let r of e)t|=gS(r.kind);return t}function gS(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 256;case 127:return 128;case 93:return 1;case 136:return 2;case 85:return 2048;case 88:return 1024;case 132:return 512;case 146:return 64;case 161:return 16384;case 101:return 32768;case 145:return 65536;case 167:return 131072}return 0}function Xce(e){return e===56||e===55}function Yce(e){return Xce(e)||e===53}function HI(e){return e===75||e===76||e===77}function cW(e){return ar(e)&&HI(e.operatorToken.kind)}function AR(e){return Xce(e)||e===60}function CR(e){return ar(e)&&AR(e.operatorToken.kind)}function Mg(e){return e>=63&&e<=78}function lW(e){let t=uW(e);return t&&!t.isImplements?t.class:void 0}function uW(e){if(Vg(e)){if(dd(e.parent)&&Yr(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===117};if(x2(e.parent)){let t=WA(e.parent);if(t&&Yr(t))return{class:t,isImplements:!1}}}}function Iu(e,t){return ar(e)&&(t?e.operatorToken.kind===63:Mg(e.operatorToken.kind))&&Ju(e.left)}function Bwe(e){return Iu(e.parent)&&e.parent.left===e}function Fg(e){if(Iu(e,!0)){let t=e.left.kind;return t===207||t===206}return!1}function IR(e){return lW(e)!==void 0}function bc(e){return e.kind===79||LR(e)}function Yd(e){switch(e.kind){case 79:return e;case 163:do e=e.left;while(e.kind!==79);return e;case 208:do e=e.expression;while(e.kind!==79);return e}}function WI(e){return e.kind===79||e.kind===108||e.kind===106||e.kind===233||e.kind===208&&WI(e.expression)||e.kind===214&&WI(e.expression)}function LR(e){return br(e)&&Re(e.name)&&bc(e.expression)}function kR(e){if(br(e)){let t=kR(e.expression);if(t!==void 0)return t+"."+qd(e.name)}else if(Vs(e)){let t=kR(e.expression);if(t!==void 0&&Ys(e.argumentExpression))return t+"."+M0(e.argumentExpression)}else if(Re(e))return Gi(e.escapedText)}function ub(e){return ST(e)&&wh(e)==="prototype"}function zI(e){return e.parent.kind===163&&e.parent.right===e||e.parent.kind===208&&e.parent.name===e}function $ce(e){return br(e.parent)&&e.parent.name===e||Vs(e.parent)&&e.parent.argumentExpression===e}function Qce(e){return Yu(e.parent)&&e.parent.right===e||br(e.parent)&&e.parent.name===e||gb(e.parent)&&e.parent.right===e}function dW(e){return e.kind===207&&e.properties.length===0}function Zce(e){return e.kind===206&&e.elements.length===0}function QA(e){if(!(!Uwe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function Uwe(e){return e&&Fn(e.declarations)>0&&Mr(e.declarations[0],1024)}function r4(e){return wr(iue,t=>Gc(e,t))}function Vwe(e){let t=[],r=e.length;for(let i=0;i<r;i++){let o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):L.assert(!1,"Unexpected code point")}return t}function ele(e){let t="",r=Vwe(e),i=0,o=r.length,s,l,f,d;for(;i<o;)s=r[i]>>2,l=(r[i]&3)<<4|r[i+1]>>4,f=(r[i+1]&15)<<2|r[i+2]>>6,d=r[i+2]&63,i+1>=o?f=d=64:i+2>=o&&(d=64),t+=H0.charAt(s)+H0.charAt(l)+H0.charAt(f)+H0.charAt(d),i+=3;return t}function jwe(e){let t="",r=0,i=e.length;for(;r<i;){let o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function tle(e,t){return e&&e.base64encode?e.base64encode(t):ele(t)}function nle(e,t){if(e&&e.base64decode)return e.base64decode(t);let r=t.length,i=[],o=0;for(;o<r&&t.charCodeAt(o)!==H0.charCodeAt(64);){let s=H0.indexOf(t[o]),l=H0.indexOf(t[o+1]),f=H0.indexOf(t[o+2]),d=H0.indexOf(t[o+3]),g=(s&63)<<2|l>>4&3,m=(l&15)<<4|f>>2&15,v=(f&3)<<6|d&63;m===0&&f!==0?i.push(g):v===0&&d!==0?i.push(g,m):i.push(g,m,v),o+=4}return jwe(i)}function fW(e,t){let r=Ta(t)?t:t.readFile(e);if(!r)return;let i=vJ(e,r);return i.error?void 0:i.config}function JI(e,t){return fW(e,t)||{}}function gp(e,t){return!t.directoryExists||t.directoryExists(e)}function db(e){switch(e.newLine){case 0:return eue;case 1:case void 0:return tue}}function Gf(e,t=e){return L.assert(t>=e||t===-1),{pos:e,end:t}}function i4(e,t){return Gf(e.pos,t)}function fb(e,t){return Gf(t,e.end)}function $y(e){let t=g_(e)?dA(e.modifiers,du):void 0;return t&&!vp(t.end)?fb(e,t.end):e}function yp(e){if(Na(e)||Nc(e))return fb(e,e.name.pos);let t=g_(e)?Os(e.modifiers):void 0;return t&&!vp(t.end)?fb(e,t.end):$y(e)}function Hwe(e){return e.pos===e.end}function _W(e,t){return Gf(e,e+Xa(t).length)}function DT(e,t){return ile(e,e,t)}function a4(e,t,r){return Bf(KI(e,r,!1),KI(t,r,!1),r)}function rle(e,t,r){return Bf(e.end,t.end,r)}function ile(e,t,r){return Bf(KI(e,r,!1),t.end,r)}function DR(e,t,r){return Bf(e.end,KI(t,r,!1),r)}function pW(e,t,r,i){let o=KI(t,r,i);return oI(r,e.end,o)}function Wwe(e,t,r){return oI(r,e.end,t.end)}function ale(e,t){return!Bf(e.pos,e.end,t)}function Bf(e,t,r){return oI(r,e,t)===0}function KI(e,t,r){return vp(e.pos)?-1:xo(t.text,e.pos,!1,r)}function ole(e,t,r,i){let o=xo(r.text,e,!1,i),s=zwe(o,t,r);return oI(r,s??t,o)}function sle(e,t,r,i){let o=xo(r.text,e,!1,i);return oI(r,e,Math.min(t,o))}function zwe(e,t=0,r){for(;e-- >t;)if(!xh(r.text.charCodeAt(e)))return e}function wR(e){let t=ea(e);if(t)switch(t.parent.kind){case 263:case 264:return t===t.parent.name}return!1}function qI(e){return Pr(e.declarations,mW)}function mW(e){return wi(e)&&e.initializer!==void 0}function Jwe(e){return e.watch&&fs(e,"watch")}function am(e){e.close()}function ac(e){return e.flags&33554432?e.links.checkFlags:0}function Ef(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&wr(e.declarations,Sf)||e.flags&32768&&wr(e.declarations,p_)||e.valueDeclaration,i=wg(r);return e.parent&&e.parent.flags&32?i:i&-29}if(ac(e)&6){let r=e.links.checkFlags,i=r&1024?8:r&256?4:16,o=r&2048?32:0;return i|o}return e.flags&4194304?36:0}function wd(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function XI(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function hW(e){return ZA(e)===1}function YI(e){return ZA(e)!==0}function ZA(e){let{parent:t}=e;if(!t)return 0;switch(t.kind){case 214:return ZA(t);case 222:case 221:let{operator:i}=t;return i===45||i===46?r():0;case 223:let{left:o,operatorToken:s}=t;return o===e&&Mg(s.kind)?s.kind===63?1:r():0;case 208:return t.name!==e?0:ZA(t);case 299:{let l=ZA(t.parent);return e===t.name?Kwe(l):l}case 300:return e===t.objectAssignmentInitializer?0:ZA(t.parent);case 206:return ZA(t);default:return 0}function r(){return t.parent&&qy(t.parent).kind===241?1:2}}function Kwe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return L.assertNever(e)}}function gW(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!gW(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Tf(e,t){e.forEach(t),e.clear()}function Oh(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{let f=t.get(l);f===void 0?(e.delete(l),i(s,l)):o&&o(s,f,l)})}function e2(e,t,r){Oh(e,t,r);let{createNewValue:i}=r;t.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function cle(e){if(e.flags&32){let t=Nh(e);return!!t&&Mr(t,256)}return!1}function Nh(e){var t;return(t=e.declarations)==null?void 0:t.find(Yr)}function Ur(e){return e.flags&3899393?e.objectFlags:0}function qwe(e,t){return!!Th(e,r=>t(r)?!0:void 0)}function o4(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&gO(e.declarations[0])}function lle({moduleSpecifier:e}){return yo(e)?e.text:Qc(e)}function yW(e){let t;return pa(e,r=>{Pf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(Pf(r[i])){t=r[i];break}}),t}function V_(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function yS(e){return Yr(e)||ku(e)||Rd(e)}function vW(e){return e>=179&&e<=202||e===131||e===157||e===148||e===160||e===149||e===134||e===152||e===153||e===114||e===155||e===144||e===139||e===230||e===315||e===316||e===317||e===318||e===319||e===320||e===321}function Us(e){return e.kind===208||e.kind===209}function ule(e){return e.kind===208?e.name:(L.assert(e.kind===209),e.argumentExpression)}function dle(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function bW(e){return e.kind===272||e.kind===276}function $I(e){for(;Us(e);)e=e.expression;return e}function Xwe(e,t){if(Us(e.parent)&&$ce(e))return r(e.parent);function r(i){if(i.kind===208){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===209)if(Re(i.argumentExpression)||es(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(Us(i.expression))return r(i.expression);if(Re(i.expression))return t(i.expression)}}function QI(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 356:case 235:e=e.expression;continue}return e}}function Ywe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function $we(e,t){this.flags=t,(L.isDebugging||ai)&&(this.checker=e)}function Qwe(e,t){this.flags=t,L.isDebugging&&(this.checker=e)}function EW(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Zwe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function eRe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function tRe(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function fle(e){tz.push(e),e(ml)}function _le(e){Object.assign(ml,e),mn(tz,t=>t(ml))}function jm(e,t,r=0){return e.replace(/{(\d+)}/g,(i,o)=>""+L.checkDefined(t[+o+r]))}function ple(e){qR=e}function mle(e){!qR&&e&&(qR=e())}function uo(e){return qR&&qR[e.key]||e.message}function t2(e,t,r,i){gH(void 0,t,r);let o=uo(i);return arguments.length>4&&(o=jm(o,arguments,4)),{file:void 0,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function nRe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function hle(e,t){let r=t.fileName||"",i=t.text.length;L.assertEqual(e.fileName,r),L.assertLessThanOrEqual(e.start,i),L.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)nRe(s)&&s.fileName===r?(L.assertLessThanOrEqual(s.start,i),L.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(hle(s,t))):o.relatedInformation.push(s)}return o}function vS(e,t){let r=[];for(let i of e)r.push(hle(i,t));return r}function al(e,t,r,i){gH(e,t,r);let o=uo(i);return arguments.length>4&&(o=jm(o,arguments,4)),{file:e,start:t,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function TW(e,t){let r=uo(t);return arguments.length>2&&(r=jm(r,arguments,2)),r}function ps(e){let t=uo(e);return arguments.length>1&&(t=jm(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function s4(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function da(e,t){let r=uo(t);return arguments.length>2&&(r=jm(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function gle(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function yle(e){return e.file?e.file.path:void 0}function ZI(e,t){return c4(e,t)||rRe(e,t)||0}function c4(e,t){return su(yle(e),yle(t))||Es(e.start,t.start)||Es(e.length,t.length)||Es(e.code,t.code)||vle(e.messageText,t.messageText)||0}function rRe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Es(e.relatedInformation.length,t.relatedInformation.length)||mn(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return ZI(r,o)})||0:e.relatedInformation?-1:1}function vle(e,t){if(typeof e=="string"&&typeof t=="string")return su(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=su(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=vle(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function RR(e){return e===4||e===2||e===1||e===6?1:0}function ble(e){if(e.transformFlags&2)return Au(e)||BS(e)?e:pa(e,ble)}function iRe(e){return e.isDeclarationFile?void 0:ble(e)}function aRe(e){return(e.impliedNodeFormat===99||$c(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function OR(e){switch(Ele(e)){case 3:return o=>{o.externalModuleIndicator=LO(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=LO(o)};case 2:let t=[LO];(e.jsx===4||e.jsx===5)&&t.push(iRe),t.push(aRe);let r=Kp(...t);return o=>void(o.externalModuleIndicator=r(o))}}function Do(e){var t;return(t=e.target)!=null?t:e.module===100&&9||e.module===199&&99||1}function Rl(e){return typeof e.module=="number"?e.module:Do(e)>=2?5:1}function SW(e){return e>=5&&e<=99}function $s(e){let t=e.moduleResolution;if(t===void 0)switch(Rl(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function Ele(e){return e.moduleDetection||(Rl(e)===100||Rl(e)===199?3:2)}function l4(e){switch(Rl(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function d_(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function u4(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Tle(e){return e.allowUnreachableCode===!1}function Sle(e){return e.allowUnusedLabels===!1}function d4(e){return!!(__(e)&&e.declarationMap)}function f_(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Rl(e)){case 100:case 199:return!0}}function wT(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:f_(e)||Rl(e)===4||$s(e)===100}function bS(e){return e>=3&&e<=99||e===100}function xW(e){let t=$s(e);if(!bS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function oRe(e){let t=$s(e);if(!bS(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function RT(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:$s(e)===100}function __(e){return!!(e.declaration||e.composite)}function U0(e){return!!(e.preserveConstEnums||d_(e))}function NR(e){return!!(e.incremental||e.composite)}function Uf(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function PR(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function MR(e){return e.useDefineForClassFields===void 0?Do(e)>=9:e.useDefineForClassFields}function xle(e,t){return LA(t,e,PJ)}function Ale(e,t){return LA(t,e,MJ)}function Cle(e,t){return LA(t,e,FJ)}function f4(e,t){return t.strictFlag?Uf(e,t.name):e[t.name]}function AW(e){let t=e.jsx;return t===2||t===4||t===5}function _4(e,t){let r=t?.pragmas.get("jsximportsource"),i=ba(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function p4(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function CW(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function Ile(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(f,d)=>(o||(o=new Map)).set(f,d),setSymlinkedDirectory:(f,d)=>{let g=Ts(f,e,t);sL(g)||(g=cu(g),d!==!1&&!r?.has(g)&&(i||(i=Nf())).add(cu(d.realPath),f),(r||(r=new Map)).set(g,d))},setSymlinksFromResolutions(f,d){var g,m;L.assert(!s),s=!0;for(let v of f)(g=v.resolvedModules)==null||g.forEach(S=>l(this,S.resolvedModule)),(m=v.resolvedTypeReferenceDirectiveNames)==null||m.forEach(S=>l(this,S.resolvedTypeReferenceDirective));d.forEach(v=>l(this,v.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(f,d){if(!d||!d.originalPath||!d.resolvedFileName)return;let{resolvedFileName:g,originalPath:m}=d;f.setSymlinkedFile(Ts(m,e,t),g);let[v,S]=sRe(g,m,e,t)||Je;v&&S&&f.setSymlinkedDirectory(S,{real:v,realPath:Ts(v,e,t)})}}function sRe(e,t,r,i){let o=Ou(_a(e,r)),s=Ou(_a(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!Lle(o[o.length-2],i)&&!Lle(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[T0(o),T0(s)]:void 0}function Lle(e,t){return e!==void 0&&(t(e)==="node_modules"||na(e,"@"))}function cRe(e){return sj(e.charCodeAt(0))?e.slice(1):void 0}function IW(e,t,r){let i=KU(e,t,r);return i===void 0?void 0:cRe(i)}function lRe(e){return e.replace(A4,uRe)}function uRe(e){return"\\"+e}function eL(e,t,r){let i=m4(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function m4(e,t,r){if(!(e===void 0||e.length===0))return Uo(e,i=>i&&kle(i,t,r,oz[r]))}function LW(e){return!/[.*?]/.test(e)}function kW(e,t,r){let i=e&&kle(e,t,r,oz[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function kle(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}){let l="",f=!1,d=fw(e,t),g=To(d);if(r!=="exclude"&&g==="**")return;d[0]=sT(d[0]),LW(g)&&d.push("**","*");let m=0;for(let v of d){if(v==="**")l+=o;else if(r==="directories"&&(l+="(",m++),f&&(l+=_s),r!=="exclude"){let S="";v.charCodeAt(0)===42?(S+="([^./]"+i+")?",v=v.substr(1)):v.charCodeAt(0)===63&&(S+="[^./]",v=v.substr(1)),S+=v.replace(A4,s),S!==v&&(l+=C4),l+=S}else l+=v.replace(A4,s);f=!0}for(;m>0;)l+=")?",m--;return l}function DW(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function tL(e,t,r,i,o){e=So(e),o=So(o);let s=vi(o,e);return{includeFilePatterns:on(m4(r,s,"files"),l=>`^${l}$`),includeFilePattern:eL(r,s,"files"),includeDirectoryPattern:eL(r,s,"directories"),excludePattern:eL(t,s,"exclude"),basePaths:dRe(e,r,i)}}function Qy(e,t){return new RegExp(e,t?"":"i")}function wW(e,t,r,i,o,s,l,f,d){e=So(e),s=So(s);let g=tL(e,r,i,o,s),m=g.includeFilePatterns&&g.includeFilePatterns.map(P=>Qy(P,o)),v=g.includeDirectoryPattern&&Qy(g.includeDirectoryPattern,o),S=g.excludePattern&&Qy(g.excludePattern,o),x=m?m.map(()=>[]):[[]],A=new Map,w=Dl(o);for(let P of g.basePaths)C(P,vi(s,P),l);return t_(x);function C(P,F,B){let q=w(d(F));if(A.has(q))return;A.set(q,!0);let{files:W,directories:Y}=f(P);for(let R of XC(W,su)){let ie=vi(P,R),$=vi(F,R);if(!(t&&!$c(ie,t))&&!(S&&S.test($)))if(!m)x[0].push(ie);else{let fe=Yc(m,Z=>Z.test($));fe!==-1&&x[fe].push(ie)}}if(!(B!==void 0&&(B--,B===0)))for(let R of XC(Y,su)){let ie=vi(P,R),$=vi(F,R);(!v||v.test($))&&(!S||!S.test($))&&C(ie,$,B)}}}function dRe(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=qp(s)?s:So(vi(e,s));o.push(fRe(l))}o.sort(p8(!r));for(let s of o)Ji(i,l=>!Gy(l,s,e,!r))&&i.push(s)}return i}function fRe(e){let t=cae(e,nue);return t<0?gA(e)?sT(ni(e)):e:e.substring(0,e.lastIndexOf(_s,t))}function h4(e,t){return t||RW(e)||3}function RW(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function nL(e,t){let r=e&&PR(e);if(!t||t.length===0)return r?XR:c2;let i=r?XR:c2,o=t_(i);return[...i,...Zi(t,l=>l.scriptKind===7||r&&_Re(l.scriptKind)&&o.indexOf(l.extension)===-1?[l.extension]:void 0)]}function FR(e,t){return!e||!RT(e)?t:t===XR?aue:t===c2?rue:[...t,[".json"]]}function _Re(e){return e===1||e===2}function ES(e){return vt(dL,t=>Gc(e,t))}function GR(e){return vt(sz,t=>Gc(e,t))}function Dle({imports:e},t=Kp(ES,GR)){return ks(e,({text:r})=>Jd(r)?t(r):void 0)||!1}function OW(e,t,r,i){if(e==="js"||t===99)return VL(r)&&o()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!VL(r))return Dle(i)?2:0;return o();function o(){let s=!1,l=i.imports.length?i.imports.map(f=>f.text):Cu(i)?pRe(i).map(f=>f.arguments[0].text):Je;for(let f of l)if(Jd(f)){if(GR(f))return 3;ES(f)&&(s=!0)}return s?2:0}}function pRe(e){let t=0,r;for(let i of e.statements){if(t>3)break;DH(i)?r=Qi(r,i.declarationList.declarations.map(o=>o.initializer)):Ol(i)&&qu(i.expression,!0)?r=Sn(r,i.expression):t++}return r||Je}function wle(e,t,r){if(!e)return!1;let i=nL(t,r);for(let o of t_(FR(t,i)))if(Gc(e,o))return!0;return!1}function Rle(e){let t=e.match(/\//g);return t?t.length:0}function BR(e,t){return Es(Rle(e),Rle(t))}function ld(e){for(let t of k4){let r=Ole(e,t);if(r!==void 0)return r}return e}function Ole(e,t){return Gc(e,t)?UR(e,t):void 0}function UR(e,t){return e.substring(0,e.length-t.length)}function V0(e,t){return uj(e,t,k4,!1)}function n2(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function g4(e){return Zi(bh(e),t=>n2(t))}function vp(e){return!(e>=0)}function y4(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||na(e,".d.")&&Oc(e,".ts")}function VR(e){return y4(e)||e===".json"}function jR(e){let t=Hm(e);return t!==void 0?t:L.fail(`File ${e} has unknown extension.`)}function mRe(e){return Hm(e)!==void 0}function Hm(e){return wr(k4,t=>Gc(e,t))}function HR(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function NW(e,t){let r=[];for(let i of e){if(i===t)return t;Ta(i)||r.push(i)}return JU(r,i=>i,t)}function PW(e,t){let r=e.indexOf(t);return L.assert(r!==-1),e.slice(r)}function Ao(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),L.assert(e.relatedInformation!==Je,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Nle(e,t){L.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){let s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function MW(e){return{pos:gT(e),end:e.end}}function FW(e,t){let r=t.pos-1,i=Math.min(e.text.length,xo(e.text,t.end)+1);return{pos:r,end:i}}function rL(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function GW(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&hae(e,t,GW)}function iL(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let g=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,g)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let g=i-1,m=0;g>=r;g--,m+=t){let v=m>>>4,S=e.charCodeAt(g),A=(S<=57?S-48:10+S-(S<=70?65:97))<<(m&15);s[v]|=A;let w=A>>>16;w&&(s[v+1]|=w)}let l="",f=s.length-1,d=!0;for(;d;){let g=0;d=!1;for(let m=f;m>=0;m--){let v=g<<16|s[m],S=v/10|0;s[m]=S,g=v-S*10,S&&!d&&(f=m,d=!0)}l=g+l}return l}function j0({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Ple(e){if(v4(e,!1))return BW(e)}function BW(e){let t=e.startsWith("-"),r=iL(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function v4(e,t){if(e==="")return!1;let r=kg(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===40;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===9&&r.getTextPos()===e.length+1&&!(l&512)&&(!t||e===j0({negative:s,base10Value:iL(r.getTokenValue())}))}function TS(e){return!!(e.flags&16777216)||G6(e)||yRe(e)||gRe(e)||!(Dh(e)||hRe(e))}function hRe(e){return Re(e)&&xf(e.parent)&&e.parent.name===e}function gRe(e){for(;e.kind===79||e.kind===208;)e=e.parent;if(e.kind!==164)return!1;if(Mr(e.parent,256))return!0;let t=e.parent.parent.kind;return t===261||t===184}function yRe(e){if(e.kind!==79)return!1;let t=jn(e.parent,r=>{switch(r.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return t?.token===117||t?.parent.kind===261}function Mle(e){return m_(e)&&Re(e.typeName)}function Fle(e,t=Zv){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;i<o;i++){let s=e[i];if(!t(r,s))return!1}return!0}function aL(e,t){return e.pos=t,e}function r2(e,t){return e.end=t,e}function om(e,t,r){return r2(aL(e,t),r)}function oL(e,t,r){return om(e,t,t+r)}function Gle(e,t){return e&&(e.flags=t),e}function go(e,t){return e&&t&&(e.parent=t),e}function i2(e,t){if(e)for(let r of e)go(r,t);return e}function Zy(e,t){if(!e)return e;return kO(e,IA(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";go(s,l)}function i(s){if(Kd(s))for(let l of s.jsDoc)r(l,s),kO(l,r)}function o(s,l){return r(s,l)||i(s)}}function vRe(e){return!ol(e)}function UW(e){return fu(e)&&Ji(e.elements,vRe)}function Ble(e){for(L.assertIsDefined(e.parent);;){let t=e.parent;if(ud(t)){e=t;continue}if(Ol(t)||NS(t)||FT(t)&&(t.initializer===e||t.incrementor===e))return!0;if(SL(t)){if(e!==To(t.elements))return!0;e=t;continue}if(ar(t)&&t.operatorToken.kind===27){if(e===t.left)return!0;e=t;continue}return!1}}function sL(e){return vt(uw,t=>jl(e,t))}function Ule(e){if(!e.parent)return;switch(e.kind){case 165:let{parent:r}=e;return r.kind===192?void 0:r.typeParameters;case 166:return e.parent.parameters;case 201:return e.parent.templateSpans;case 236:return e.parent.templateSpans;case 167:{let{parent:i}=e;return HS(i)?i.modifiers:void 0}case 294:return e.parent.heritageClauses}let{parent:t}=e;if(EI(e))return LL(e.parent)?void 0:e.parent.tags;switch(t.kind){case 184:case 261:return _T(e)?t.members:void 0;case 189:case 190:return t.types;case 186:case 206:case 357:case 272:case 276:return t.elements;case 207:case 289:return t.properties;case 210:case 211:return bi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 281:case 285:return Pw(e)?t.children:void 0;case 283:case 282:return bi(e)?t.typeArguments:void 0;case 238:case 292:case 293:case 265:return t.statements;case 266:return t.clauses;case 260:case 228:return _l(e)?t.members:void 0;case 263:return q0(e)?t.members:void 0;case 308:return t.statements}}function b4(e){if(!e.typeParameters){if(vt(e.parameters,t=>!Cl(t)))return!0;if(e.kind!==216){let t=Sl(e.parameters);if(!(t&&G0(t)))return!0}}return!1}function cL(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Vle(e){return e.kind===257&&e.parent.kind===295}function VW(e){let t=e.valueDeclaration&&nm(e.valueDeclaration);return!!t&&(ha(t)||Vle(t))}function a2(e){return e.kind===215||e.kind===216}function OT(e){return e.replace(/\$/gm,()=>"\\$")}function Wm(e){return(+e).toString()===e}function E4(e,t,r,i){return i_(e,t)?D.createIdentifier(e):!i&&Wm(e)&&+e>=0?D.createNumericLiteral(+e):D.createStringLiteral(e,!!r)}function lL(e){return!!(e.flags&262144&&e.isThisType)}function jW(e){let t=0,r=0,i=0,o=0,s;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,f=0,d=0;for(;f>=0;)switch(l=f,f=e.indexOf("/",l+1),d){case 0:e.indexOf(Wg,l)===l&&(t=l,r=f,d=1);break;case 1:case 2:d===1&&e.charAt(l+1)==="@"?d=2:(i=f,d=3);break;case 3:e.indexOf(Wg,l)===l?d=1:d=3;break}return o=l,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function bRe(e){var t;return e.kind===344?(t=e.typeExpression)==null?void 0:t.type:e.type}function o2(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 349:case 341:case 343:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}function WR(e){return hb(e)||Bc(e)||Jc(e)||sl(e)||ku(e)||o2(e)||Tc(e)&&!D0(e)&&!mp(e)}function zR(e){if(!a6(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===319}function HW(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&Pm(e.charCodeAt(1),t):Pm(r,t)}function jle(e){var t;return((t=bz(e))==null?void 0:t.kind)===0}function JR(e){return Yn(e)&&(e.type&&e.type.kind===319||fI(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===319))}function WW(e){switch(e.kind){case 169:case 168:return!!e.questionToken;case 166:return!!e.questionToken||JR(e);case 351:case 344:return zR(e);default:return!1}}function Hle(e){let t=e.kind;return(t===208||t===209)&&PS(e.expression)}function zW(e){return Yn(e)&&ud(e)&&Kd(e)&&!!Lj(e)}function JW(e){return L.checkDefined(T4(e))}function T4(e){let t=Lj(e);return t&&t.typeExpression&&t.typeExpression.type}var S4,_b,KR,x4,uL,KW,qW,Wle,XW,zle,YW,$W,QW,ZW,Jle,Kle,qle,Xle,Yle,ez,$le,Qle,Zle,s2,H0,eue,tue,ml,tz,qR,A4,nue,nz,C4,rz,iz,az,oz,c2,sz,rue,iue,cz,dL,XR,aue,I4,L4,lz,k4,D4,ERe=gt({"src/compiler/utilities.ts"(){"use strict";fa(),S4=[],_b="tslib",KR=160,x4=1e6,uL=rwe(),KW=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(KW||{}),qW=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,Wle=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,XW=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,zle=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,YW=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(YW||{}),$W=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))($W||{}),QW=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(QW||{}),ZW=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(ZW||{}),Jle=/\$\{/g,Kle=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,qle=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Xle=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Yle=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),ez=/[^\u0000-\u007F]/g,$le=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Qle=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Zle=new Map(Object.entries({'"':""","'":"'"})),s2=[""," "],H0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",eue=`\r
| `,tue=`
| `,ml={getNodeConstructor:()=>EW,getTokenConstructor:()=>Zwe,getIdentifierConstructor:()=>eRe,getPrivateIdentifierConstructor:()=>EW,getSourceFileConstructor:()=>EW,getSymbolConstructor:()=>Ywe,getTypeConstructor:()=>$we,getSignatureConstructor:()=>Qwe,getSourceMapSourceConstructor:()=>tRe},tz=[],A4=/[^\w\s\/]/g,nue=[42,63],nz=["node_modules","bower_components","jspm_packages"],C4=`(?!(${nz.join("|")})(/|$))`,rz={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${C4}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>DW(e,rz.singleAsteriskRegexFragment)},iz={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${C4}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>DW(e,iz.singleAsteriskRegexFragment)},az={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>DW(e,az.singleAsteriskRegexFragment)},oz={files:rz,directories:iz,exclude:az},c2=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],sz=t_(c2),rue=[...c2,[".json"]],iue=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"],cz=[[".js",".jsx"],[".mjs"],[".cjs"]],dL=t_(cz),XR=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],aue=[...XR,[".json"]],I4=[".d.ts",".d.cts",".d.mts"],L4=[".ts",".cts",".mts",".tsx"],lz=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(lz||{}),k4=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],D4={files:Je,directories:Je}}});function oue(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:f,createBaseTokenNode:d,createBaseNode:g};function s(m){return new(o||(o=ml.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=ml.getIdentifierConstructor()))(m,-1,-1)}function f(m){return new(i||(i=ml.getPrivateIdentifierConstructor()))(m,-1,-1)}function d(m){return new(t||(t=ml.getTokenConstructor()))(m,-1,-1)}function g(m){return new(e||(e=ml.getNodeConstructor()))(m,-1,-1)}}var TRe=gt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";fa()}});function sue(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:v,parenthesizeConditionOfConditionalExpression:S,parenthesizeBranchOfConditionalExpression:x,parenthesizeExpressionOfExportDefault:A,parenthesizeExpressionOfNew:w,parenthesizeLeftSideOfAccess:C,parenthesizeOperandOfPostfixUnary:P,parenthesizeOperandOfPrefixUnary:F,parenthesizeExpressionsOfCommaDelimitedList:B,parenthesizeExpressionForDisallowedComma:q,parenthesizeExpressionOfExpressionStatement:W,parenthesizeConciseBodyOfArrowFunction:Y,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:ie,parenthesizeConstituentTypesOfUnionType:fe,parenthesizeConstituentTypeOfUnionType:$,parenthesizeConstituentTypesOfIntersectionType:U,parenthesizeConstituentTypeOfIntersectionType:Z,parenthesizeOperandOfTypeOperator:re,parenthesizeOperandOfReadonlyTypeOperator:le,parenthesizeNonArrayTypeOfPostfixType:_e,parenthesizeElementTypesOfTupleType:ge,parenthesizeElementTypeOfTupleType:X,parenthesizeTypeOfOptionalType:we,parenthesizeTypeArguments:Ce,parenthesizeLeadingTypeArgument:ke};function i(Ie){t||(t=new Map);let Be=t.get(Ie);return Be||(Be=Ne=>g(Ie,Ne),t.set(Ie,Be)),Be}function o(Ie){r||(r=new Map);let Be=r.get(Ie);return Be||(Be=Ne=>m(Ie,void 0,Ne),r.set(Ie,Be)),Be}function s(Ie,Be,Ne,Le){let Ye=yR(223,Ie),_t=zH(223,Ie),ct=a_(Be);if(!Ne&&Be.kind===216&&Ye>3)return!0;let Rt=$6(ct);switch(Es(Rt,Ye)){case-1:return!(!Ne&&_t===1&&Be.kind===226);case 1:return!1;case 0:if(Ne)return _t===1;if(ar(ct)&&ct.operatorToken.kind===Ie){if(l(Ie))return!1;if(Ie===39){let qe=Le?f(Le):0;if(gI(qe)&&qe===f(ct))return!1}}return WH(ct)===0}}function l(Ie){return Ie===41||Ie===51||Ie===50||Ie===52||Ie===27}function f(Ie){if(Ie=a_(Ie),gI(Ie.kind))return Ie.kind;if(Ie.kind===223&&Ie.operatorToken.kind===39){if(Ie.cachedLiteralKind!==void 0)return Ie.cachedLiteralKind;let Be=f(Ie.left),Ne=gI(Be)&&Be===f(Ie.right)?Be:0;return Ie.cachedLiteralKind=Ne,Ne}return 0}function d(Ie,Be,Ne,Le){return a_(Be).kind===214?Be:s(Ie,Be,Ne,Le)?e.createParenthesizedExpression(Be):Be}function g(Ie,Be){return d(Ie,Be,!0)}function m(Ie,Be,Ne){return d(Ie,Ne,!1,Be)}function v(Ie){return wL(Ie)?e.createParenthesizedExpression(Ie):Ie}function S(Ie){let Be=yR(224,57),Ne=a_(Ie),Le=$6(Ne);return Es(Le,Be)!==1?e.createParenthesizedExpression(Ie):Ie}function x(Ie){let Be=a_(Ie);return wL(Be)?e.createParenthesizedExpression(Ie):Ie}function A(Ie){let Be=a_(Ie),Ne=wL(Be);if(!Ne)switch(QI(Be,!1).kind){case 228:case 215:Ne=!0}return Ne?e.createParenthesizedExpression(Ie):Ie}function w(Ie){let Be=QI(Ie,!0);switch(Be.kind){case 210:return e.createParenthesizedExpression(Ie);case 211:return Be.arguments?Ie:e.createParenthesizedExpression(Ie)}return C(Ie)}function C(Ie,Be){let Ne=a_(Ie);return Ju(Ne)&&(Ne.kind!==211||Ne.arguments)&&(Be||!Jl(Ne))?Ie:it(e.createParenthesizedExpression(Ie),Ie)}function P(Ie){return Ju(Ie)?Ie:it(e.createParenthesizedExpression(Ie),Ie)}function F(Ie){return jj(Ie)?Ie:it(e.createParenthesizedExpression(Ie),Ie)}function B(Ie){let Be=Tl(Ie,q);return it(e.createNodeArray(Be,Ie.hasTrailingComma),Ie)}function q(Ie){let Be=a_(Ie),Ne=$6(Be),Le=yR(223,27);return Ne>Le?Ie:it(e.createParenthesizedExpression(Ie),Ie)}function W(Ie){let Be=a_(Ie);if(Pa(Be)){let Le=Be.expression,Ye=a_(Le).kind;if(Ye===215||Ye===216){let _t=e.updateCallExpression(Be,it(e.createParenthesizedExpression(Le),Le),Be.typeArguments,Be.arguments);return e.restoreOuterExpressions(Ie,_t,8)}}let Ne=QI(Be,!1).kind;return Ne===207||Ne===215?it(e.createParenthesizedExpression(Ie),Ie):Ie}function Y(Ie){return!Va(Ie)&&(wL(Ie)||QI(Ie,!1).kind===207)?it(e.createParenthesizedExpression(Ie),Ie):Ie}function R(Ie){switch(Ie.kind){case 181:case 182:case 191:return e.createParenthesizedType(Ie)}return Ie}function ie(Ie){switch(Ie.kind){case 191:return e.createParenthesizedType(Ie)}return Ie}function $(Ie){switch(Ie.kind){case 189:case 190:return e.createParenthesizedType(Ie)}return R(Ie)}function fe(Ie){return e.createNodeArray(Tl(Ie,$))}function Z(Ie){switch(Ie.kind){case 189:case 190:return e.createParenthesizedType(Ie)}return $(Ie)}function U(Ie){return e.createNodeArray(Tl(Ie,Z))}function re(Ie){switch(Ie.kind){case 190:return e.createParenthesizedType(Ie)}return Z(Ie)}function le(Ie){switch(Ie.kind){case 195:return e.createParenthesizedType(Ie)}return re(Ie)}function _e(Ie){switch(Ie.kind){case 192:case 195:case 183:return e.createParenthesizedType(Ie)}return re(Ie)}function ge(Ie){return e.createNodeArray(Tl(Ie,X))}function X(Ie){return Ve(Ie)?e.createParenthesizedType(Ie):Ie}function Ve(Ie){return T2(Ie)?Ie.postfix:bL(Ie)||Jm(Ie)||yL(Ie)||RS(Ie)?Ve(Ie.type):m2(Ie)?Ve(Ie.falseType):DS(Ie)||dO(Ie)?Ve(To(Ie.types)):h2(Ie)?!!Ie.typeParameter.constraint&&Ve(Ie.typeParameter.constraint):!1}function we(Ie){return Ve(Ie)?e.createParenthesizedType(Ie):_e(Ie)}function ke(Ie){return lse(Ie)&&Ie.typeParameters?e.createParenthesizedType(Ie):Ie}function Pe(Ie,Be){return Be===0?ke(Ie):Ie}function Ce(Ie){if(vt(Ie))return e.createNodeArray(Tl(Ie,Pe))}}var uz,SRe=gt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";fa(),uz={getParenthesizeLeftSideOfBinaryForOperator:e=>Ks,getParenthesizeRightSideOfBinaryForOperator:e=>Ks,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Ks,parenthesizeConditionOfConditionalExpression:Ks,parenthesizeBranchOfConditionalExpression:Ks,parenthesizeExpressionOfExportDefault:Ks,parenthesizeExpressionOfNew:e=>Ga(e,Ju),parenthesizeLeftSideOfAccess:e=>Ga(e,Ju),parenthesizeOperandOfPostfixUnary:e=>Ga(e,Ju),parenthesizeOperandOfPrefixUnary:e=>Ga(e,jj),parenthesizeExpressionsOfCommaDelimitedList:e=>Ga(e,C0),parenthesizeExpressionForDisallowedComma:Ks,parenthesizeExpressionOfExpressionStatement:Ks,parenthesizeConciseBodyOfArrowFunction:Ks,parenthesizeCheckTypeOfConditionalType:Ks,parenthesizeExtendsTypeOfConditionalType:Ks,parenthesizeConstituentTypesOfUnionType:e=>Ga(e,C0),parenthesizeConstituentTypeOfUnionType:Ks,parenthesizeConstituentTypesOfIntersectionType:e=>Ga(e,C0),parenthesizeConstituentTypeOfIntersectionType:Ks,parenthesizeOperandOfTypeOperator:Ks,parenthesizeOperandOfReadonlyTypeOperator:Ks,parenthesizeNonArrayTypeOfPostfixType:Ks,parenthesizeElementTypesOfTupleType:e=>Ga(e,C0),parenthesizeElementTypeOfTupleType:Ks,parenthesizeTypeOfOptionalType:Ks,parenthesizeTypeArguments:e=>e&&Ga(e,C0),parenthesizeLeadingTypeArgument:Ks}}});function cue(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:o,convertToAssignmentPattern:s,convertToObjectAssignmentPattern:l,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:d};function t(g,m){if(Va(g))return g;let v=e.createReturnStatement(g);it(v,g);let S=e.createBlock([v],m);return it(S,g),S}function r(g){if(!g.body)return L.fail("Cannot convert a FunctionDeclaration without a body");let m=e.createFunctionExpression(uT(g),g.asteriskToken,g.name,g.typeParameters,g.parameters,g.type,g.body);return Ir(m,g),it(m,g),tO(g)&&vz(m,!0),m}function i(g){if(Wo(g)){if(g.dotDotDotToken)return L.assertNode(g.name,Re),Ir(it(e.createSpreadElement(g.name),g),g);let m=d(g.name);return g.initializer?Ir(it(e.createAssignment(m,g.initializer),g),g):m}return Ga(g,ot)}function o(g){if(Wo(g)){if(g.dotDotDotToken)return L.assertNode(g.name,Re),Ir(it(e.createSpreadAssignment(g.name),g),g);if(g.propertyName){let m=d(g.name);return Ir(it(e.createPropertyAssignment(g.propertyName,g.initializer?e.createAssignment(m,g.initializer):m),g),g)}return L.assertNode(g.name,Re),Ir(it(e.createShorthandPropertyAssignment(g.name,g.initializer),g),g)}return Ga(g,Og)}function s(g){switch(g.kind){case 204:case 206:return f(g);case 203:case 207:return l(g)}}function l(g){return cm(g)?Ir(it(e.createObjectLiteralExpression(on(g.elements,o)),g),g):Ga(g,rs)}function f(g){return g2(g)?Ir(it(e.createArrayLiteralExpression(on(g.elements,i)),g),g):Ga(g,fu)}function d(g){return La(g)?s(g):Ga(g,ot)}}var dz,xRe=gt({"src/compiler/factory/nodeConverters.ts"(){"use strict";fa(),dz={convertToFunctionBlock:Sa,convertToFunctionExpression:Sa,convertToArrayAssignmentElement:Sa,convertToObjectAssignmentElement:Sa,convertToAssignmentPattern:Sa,convertToObjectAssignmentPattern:Sa,convertToArrayAssignmentPattern:Sa,convertToAssignmentElementTarget:Sa}}});function ARe(e){hz.push(e)}function YR(e,t){let r=e&8?CRe:IRe,i=zu(()=>e&1?uz:sue(P)),o=zu(()=>e&2?dz:cue(P)),s=Jp(y=>(I,N)=>M(I,y,N)),l=Jp(y=>I=>Jf(y,I)),f=Jp(y=>I=>E_(I,y)),d=Jp(y=>()=>vE(y)),g=Jp(y=>I=>ty(y,I)),m=Jp(y=>(I,N)=>cs(y,I,N)),v=Jp(y=>(I,N)=>A1(y,I,N)),S=Jp(y=>(I,N)=>bE(y,I,N)),x=Jp(y=>(I,N)=>ih(y,I,N)),A=Jp(y=>(I,N,te)=>Cv(y,I,N,te)),w=Jp(y=>(I,N,te)=>Iv(y,I,N,te)),C=Jp(y=>(I,N,te,Me)=>Gl(y,I,N,te,Me)),P={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:Y,createBigIntLiteral:R,createStringLiteral:$,createStringLiteralFromNode:fe,createRegularExpressionLiteral:Z,createLiteralLikeNode:U,createIdentifier:_e,createTempVariable:ge,createLoopVariable:X,createUniqueName:Ve,getGeneratedNameForNode:we,createPrivateIdentifier:Pe,createUniquePrivateName:Ie,getGeneratedPrivateNameForNode:Be,createToken:Le,createSuper:Ye,createThis:_t,createNull:ct,createTrue:Rt,createFalse:We,createModifier:qe,createModifiersFromModifierFlags:zt,createQualifiedName:Qt,updateQualifiedName:tn,createComputedPropertyName:kn,updateComputedPropertyName:_n,createTypeParameterDeclaration:Gt,updateTypeParameterDeclaration:$n,createParameterDeclaration:ui,updateParameterDeclaration:Ni,createDecorator:Pi,updateDecorator:gr,createPropertySignature:pt,updatePropertySignature:nn,createPropertyDeclaration:pn,updatePropertyDeclaration:An,createMethodSignature:Kn,updateMethodSignature:hi,createMethodDeclaration:ri,updateMethodDeclaration:vn,createConstructorDeclaration:Se,updateConstructorDeclaration:at,createGetAccessorDeclaration:ve,updateGetAccessorDeclaration:nt,createSetAccessorDeclaration:Q,updateSetAccessorDeclaration:ue,createCallSignature:Oe,updateCallSignature:je,createConstructSignature:Ge,updateConstructSignature:kt,createIndexSignature:Kt,updateIndexSignature:ln,createClassStaticBlockDeclaration:En,updateClassStaticBlockDeclaration:dr,createTemplateLiteralTypeSpan:ir,updateTemplateLiteralTypeSpan:ae,createKeywordTypeNode:rt,createTypePredicateNode:Ot,updateTypePredicateNode:Ke,createTypeReferenceNode:oe,updateTypeReferenceNode:pe,createFunctionTypeNode:z,updateFunctionTypeNode:Te,createConstructorTypeNode:yt,updateConstructorTypeNode:Vt,createTypeQueryNode:ei,updateTypeQueryNode:Kr,createTypeLiteralNode:Si,updateTypeLiteralNode:Ja,createArrayTypeNode:Za,updateArrayTypeNode:Fa,createTupleTypeNode:Hi,updateTupleTypeNode:xi,createNamedTupleMember:Nr,updateNamedTupleMember:Fo,createOptionalTypeNode:Qr,updateOptionalTypeNode:Wi,createRestTypeNode:gn,updateRestTypeNode:Ki,createUnionTypeNode:mc,updateUnionTypeNode:xc,createIntersectionTypeNode:hc,updateIntersectionTypeNode:ro,createConditionalTypeNode:aa,updateConditionalTypeNode:Co,createInferTypeNode:gc,updateInferTypeNode:Ll,createImportTypeNode:bl,updateImportTypeNode:ss,createParenthesizedType:qs,updateParenthesizedType:Rs,createThisTypeNode:As,createTypeOperatorNode:jt,updateTypeOperatorNode:yc,createIndexedAccessTypeNode:Ql,updateIndexedAccessTypeNode:yu,createMappedTypeNode:se,updateMappedTypeNode:ht,createLiteralTypeNode:wt,updateLiteralTypeNode:K,createTemplateLiteralType:md,updateTemplateLiteralType:Pc,createObjectBindingPattern:Xe,updateObjectBindingPattern:ft,createArrayBindingPattern:Yt,updateArrayBindingPattern:pr,createBindingElement:yr,updateBindingElement:ta,createArrayLiteralExpression:Go,updateArrayLiteralExpression:Ka,createObjectLiteralExpression:vo,updateObjectLiteralExpression:ka,createPropertyAccessExpression:e&4?(y,I)=>Jn(Uc(y,I),262144):Uc,updatePropertyAccessExpression:Gu,createPropertyAccessChain:e&4?(y,I,N)=>Jn($o(y,I,N),262144):$o,updatePropertyAccessChain:jo,createElementAccessExpression:hd,updateElementAccessExpression:vc,createElementAccessChain:nf,updateElementAccessChain:ye,createCallExpression:bn,updateCallExpression:Ri,createCallChain:io,updateCallChain:ee,createNewExpression:Ze,updateNewExpression:At,createTaggedTemplateExpression:xt,updateTaggedTemplateExpression:qt,createTypeAssertion:Ln,updateTypeAssertion:mr,createParenthesizedExpression:Vr,updateParenthesizedExpression:gi,createFunctionExpression:Ea,updateFunctionExpression:bo,createArrowFunction:Qo,updateArrowFunction:Cs,createDeleteExpression:Bu,updateDeleteExpression:Pd,createTypeOfExpression:Dc,updateTypeOfExpression:gd,createVoidExpression:Zl,updateVoidExpression:Md,createAwaitExpression:zf,updateAwaitExpression:Io,createPrefixUnaryExpression:Jf,updatePrefixUnaryExpression:Fd,createPostfixUnaryExpression:E_,updatePostfixUnaryExpression:Y_,createBinaryExpression:M,updateBinaryExpression:Nt,createConditionalExpression:Pn,updateConditionalExpression:la,createTemplateExpression:oa,updateTemplateExpression:be,createTemplateHead:sn,createTemplateMiddle:Dn,createTemplateTail:kr,createNoSubstitutionTemplateLiteral:ki,createTemplateLiteralLikeNode:rn,createYieldExpression:Vn,updateYieldExpression:$t,createSpreadElement:Xn,updateSpreadElement:ra,createClassExpression:Is,updateClassExpression:Mc,createOmittedExpression:mm,createExpressionWithTypeArguments:Hh,updateExpressionWithTypeArguments:T_,createAsExpression:Cb,updateAsExpression:mv,createNonNullExpression:gx,updateNonNullExpression:_1,createSatisfiesExpression:yx,updateSatisfiesExpression:Wh,createNonNullChain:S_,updateNonNullChain:hv,createMetaProperty:eh,updateMetaProperty:$_,createTemplateSpan:gv,updateTemplateSpan:lE,createSemicolonClassElement:Ib,createBlock:zh,updateBlock:p1,createVariableStatement:uE,updateVariableStatement:dE,createEmptyStatement:fE,createExpressionStatement:yv,updateExpressionStatement:vx,createIfStatement:_E,updateIfStatement:pE,createDoStatement:vv,updateDoStatement:Lb,createWhileStatement:bv,updateWhileStatement:m1,createForStatement:Jh,updateForStatement:Lo,createForInStatement:mE,updateForInStatement:sC,createForOfStatement:Zg,updateForOfStatement:Kh,createContinueStatement:hm,updateContinueStatement:x_,createBreakStatement:Zu,updateBreakStatement:ed,createReturnStatement:td,updateReturnStatement:kb,createWithStatement:Db,updateWithStatement:bx,createSwitchStatement:wb,updateSwitchStatement:qh,createLabeledStatement:Rb,updateLabeledStatement:h1,createThrowStatement:Ob,updateThrowStatement:cC,createTryStatement:Ex,updateTryStatement:Ev,createDebuggerStatement:hE,createVariableDeclaration:Fe,updateVariableDeclaration:ey,createVariableDeclarationList:Ip,updateVariableDeclarationList:Tv,createFunctionDeclaration:Nb,updateFunctionDeclaration:Sv,createClassDeclaration:g1,updateClassDeclaration:wo,createInterfaceDeclaration:A_,updateInterfaceDeclaration:gE,createTypeAliasDeclaration:Kc,updateTypeAliasDeclaration:th,createEnumDeclaration:Pb,updateEnumDeclaration:C_,createModuleDeclaration:Mb,updateModuleDeclaration:Ml,createModuleBlock:Yh,updateModuleBlock:ll,createCaseBlock:y1,updateCaseBlock:lC,createNamespaceExportDeclaration:Ai,updateNamespaceExportDeclaration:Rr,createImportEqualsDeclaration:yd,updateImportEqualsDeclaration:yE,createImportDeclaration:$h,updateImportDeclaration:nh,createImportClause:ym,updateImportClause:zs,createAssertClause:Fb,updateAssertClause:v1,createAssertEntry:Gb,updateAssertEntry:b1,createImportTypeAssertionContainer:Cf,updateImportTypeAssertionContainer:Tx,createNamespaceImport:Sx,updateNamespaceImport:xv,createNamespaceExport:E1,updateNamespaceExport:T1,createNamedImports:xx,updateNamedImports:Bb,createImportSpecifier:S1,updateImportSpecifier:rf,createExportAssignment:Qh,updateExportAssignment:Q_,createExportDeclaration:I_,updateExportDeclaration:Ax,createNamedExports:Lp,updateNamedExports:x1,createExportSpecifier:Uu,updateExportSpecifier:Zh,createMissingDeclaration:kp,createExternalModuleReference:Dp,updateExternalModuleReference:eg,get createJSDocAllType(){return d(315)},get createJSDocUnknownType(){return d(316)},get createJSDocNonNullableType(){return v(318)},get updateJSDocNonNullableType(){return S(318)},get createJSDocNullableType(){return v(317)},get updateJSDocNullableType(){return S(317)},get createJSDocOptionalType(){return g(319)},get updateJSDocOptionalType(){return m(319)},get createJSDocVariadicType(){return g(321)},get updateJSDocVariadicType(){return m(321)},get createJSDocNamepathType(){return g(322)},get updateJSDocNamepathType(){return m(322)},createJSDocFunctionType:ny,updateJSDocFunctionType:Cx,createJSDocTypeLiteral:Vb,updateJSDocTypeLiteral:jb,createJSDocTypeExpression:Ix,updateJSDocTypeExpression:uC,createJSDocSignature:Lx,updateJSDocSignature:Qn,createJSDocTemplateTag:Av,updateJSDocTemplateTag:vm,createJSDocTypedefTag:Wn,updateJSDocTypedefTag:kx,createJSDocParameterTag:ry,updateJSDocParameterTag:nl,createJSDocPropertyTag:Kf,updateJSDocPropertyTag:Z_,createJSDocCallbackTag:iy,updateJSDocCallbackTag:EE,createJSDocOverloadTag:L_,updateJSDocOverloadTag:ay,createJSDocAugmentsTag:Ac,updateJSDocAugmentsTag:wc,createJSDocImplementsTag:tg,updateJSDocImplementsTag:ng,createJSDocSeeTag:Fl,updateJSDocSeeTag:qf,createJSDocNameReference:bm,updateJSDocNameReference:nd,createJSDocMemberName:TE,updateJSDocMemberName:Hb,createJSDocLink:Wb,updateJSDocLink:ep,createJSDocLinkCode:rh,updateJSDocLinkCode:SE,createJSDocLinkPlain:oy,updateJSDocLinkPlain:uc,get createJSDocTypeTag(){return w(347)},get updateJSDocTypeTag(){return C(347)},get createJSDocReturnTag(){return w(345)},get updateJSDocReturnTag(){return C(345)},get createJSDocThisTag(){return w(346)},get updateJSDocThisTag(){return C(346)},get createJSDocAuthorTag(){return x(333)},get updateJSDocAuthorTag(){return A(333)},get createJSDocClassTag(){return x(335)},get updateJSDocClassTag(){return A(335)},get createJSDocPublicTag(){return x(336)},get updateJSDocPublicTag(){return A(336)},get createJSDocPrivateTag(){return x(337)},get updateJSDocPrivateTag(){return A(337)},get createJSDocProtectedTag(){return x(338)},get updateJSDocProtectedTag(){return A(338)},get createJSDocReadonlyTag(){return x(339)},get updateJSDocReadonlyTag(){return A(339)},get createJSDocOverrideTag(){return x(340)},get updateJSDocOverrideTag(){return A(340)},get createJSDocDeprecatedTag(){return x(334)},get updateJSDocDeprecatedTag(){return A(334)},get createJSDocThrowsTag(){return w(352)},get updateJSDocThrowsTag(){return C(352)},get createJSDocSatisfiesTag(){return w(353)},get updateJSDocSatisfiesTag(){return C(353)},createJSDocEnumTag:xE,updateJSDocEnumTag:oh,createJSDocUnknownTag:ah,updateJSDocUnknownTag:qc,createJSDocText:zb,updateJSDocText:Vu,createJSDocComment:Em,updateJSDocComment:Jb,createJsxElement:Lv,updateJsxElement:AE,createJsxSelfClosingElement:sy,updateJsxSelfClosingElement:C1,createJsxOpeningElement:kv,updateJsxOpeningElement:rg,createJsxClosingElement:of,updateJsxClosingElement:CE,createJsxFragment:Gd,createJsxText:Dv,updateJsxText:Dx,createJsxOpeningFragment:No,createJsxJsxClosingFragment:fr,updateJsxFragment:sh,createJsxAttribute:vd,updateJsxAttribute:ju,createJsxAttributes:I1,updateJsxAttributes:IE,createJsxSpreadAttribute:cy,updateJsxSpreadAttribute:wx,createJsxExpression:ly,updateJsxExpression:wp,createCaseClause:tp,updateCaseClause:ig,createDefaultClause:wv,updateDefaultClause:ch,createHeritageClause:Rp,updateHeritageClause:L1,createCatchClause:Cc,updateCatchClause:Bd,createPropertyAssignment:Tm,updatePropertyAssignment:rd,createShorthandPropertyAssignment:uy,updateShorthandPropertyAssignment:ag,createSpreadAssignment:sf,updateSpreadAssignment:ls,createEnumMember:kE,updateEnumMember:DE,createSourceFile:og,updateSourceFile:NE,createRedirectedSourceFile:Rv,createBundle:PE,updateBundle:dy,createUnparsedSource:bd,createUnparsedPrologue:dC,createUnparsedPrepend:sg,createUnparsedTextLike:Ox,createUnparsedSyntheticReference:Nx,createInputFiles:E,createSyntheticExpression:ne,createSyntaxList:Ee,createNotEmittedStatement:Wt,createPartiallyEmittedExpression:lr,updatePartiallyEmittedExpression:ci,createCommaListExpression:Ti,updateCommaListExpression:Wa,createEndOfDeclarationMarker:kl,createMergeDeclarationMarker:Ed,createSyntheticReferenceExpression:Ud,updateSyntheticReferenceExpression:fy,cloneNode:Xf,get createComma(){return s(27)},get createAssignment(){return s(63)},get createLogicalOr(){return s(56)},get createLogicalAnd(){return s(55)},get createBitwiseOr(){return s(51)},get createBitwiseXor(){return s(52)},get createBitwiseAnd(){return s(50)},get createStrictEquality(){return s(36)},get createStrictInequality(){return s(37)},get createEquality(){return s(34)},get createInequality(){return s(35)},get createLessThan(){return s(29)},get createLessThanEquals(){return s(32)},get createGreaterThan(){return s(31)},get createGreaterThanEquals(){return s(33)},get createLeftShift(){return s(47)},get createRightShift(){return s(48)},get createUnsignedRightShift(){return s(49)},get createAdd(){return s(39)},get createSubtract(){return s(40)},get createMultiply(){return s(41)},get createDivide(){return s(43)},get createModulo(){return s(44)},get createExponent(){return s(42)},get createPrefixPlus(){return l(39)},get createPrefixMinus(){return l(40)},get createPrefixIncrement(){return l(45)},get createPrefixDecrement(){return l(46)},get createBitwiseNot(){return l(54)},get createLogicalNot(){return l(53)},get createPostfixIncrement(){return f(45)},get createPostfixDecrement(){return f(46)},createImmediatelyInvokedFunctionExpression:ME,createImmediatelyInvokedArrowFunction:cf,createVoidZero:Sm,createExportDefault:py,createExternalModuleExport:If,createTypeCheck:FE,createMethodCall:Pv,createGlobalMethodCall:Ro,createFunctionBindCall:Vc,createFunctionCallCall:KP,createFunctionApplyCall:Zo,createArraySliceCall:Px,createArrayConcatCall:Mx,createObjectDefinePropertyCall:V,createObjectGetOwnPropertyDescriptorCall:me,createReflectGetCall:Ue,createReflectSetCall:ut,createPropertyDescriptor:dn,createCallBinding:is,createAssignmentTargetWrapper:ao,inlineExpressions:Oo,getInternalName:np,getLocalName:Op,getExportName:cg,getDeclarationName:Yf,getNamespaceMemberName:my,getExternalModuleOrNamespaceExportName:Fx,restoreOuterExpressions:li,restoreEnclosingLabel:di,createUseStrictPrologue:k_,copyPrologue:GE,copyStandardPrologue:Mv,copyCustomPrologue:_C,ensureUseStrict:lf,liftToBlock:Gx,mergeLexicalEnvironment:jk,updateModifiers:Hk};return mn(hz,y=>y(P)),P;function F(y,I){if(y===void 0||y===Je)y=[];else if(C0(y)){if(I===void 0||y.hasTrailingComma===I)return y.transformFlags===void 0&&lue(y),L.attachNodeArrayDebugInfo(y),y;let Me=y.slice();return Me.pos=y.pos,Me.end=y.end,Me.hasTrailingComma=I,Me.transformFlags=y.transformFlags,L.attachNodeArrayDebugInfo(Me),Me}let N=y.length,te=N>=1&&N<=4?y.slice():y;return te.pos=-1,te.end=-1,te.hasTrailingComma=!!I,te.transformFlags=0,lue(te),L.attachNodeArrayDebugInfo(te),te}function B(y){return t.createBaseNode(y)}function q(y){let I=B(y);return I.symbol=void 0,I.localSymbol=void 0,I}function W(y,I){return y!==I&&(y.typeArguments=I.typeArguments),r(y,I)}function Y(y,I=0){let N=q(8);return N.text=typeof y=="number"?y+"":y,N.numericLiteralFlags=I,I&384&&(N.transformFlags|=1024),N}function R(y){let I=Ne(9);return I.text=typeof y=="string"?y:j0(y)+"n",I.transformFlags|=4,I}function ie(y,I){let N=q(10);return N.text=y,N.singleQuote=I,N}function $(y,I,N){let te=ie(y,I);return te.hasExtendedUnicodeEscape=N,N&&(te.transformFlags|=1024),te}function fe(y){let I=ie(l_(y),void 0);return I.textSourceNode=y,I}function Z(y){let I=Ne(13);return I.text=y,I}function U(y,I){switch(y){case 8:return Y(I,0);case 9:return R(I);case 10:return $(I,void 0);case 11:return Dv(I,!1);case 12:return Dv(I,!0);case 13:return Z(I);case 14:return rn(y,I,void 0,0)}}function re(y){let I=t.createBaseIdentifierNode(79);return I.escapedText=y,I.jsDoc=void 0,I.flowNode=void 0,I.symbol=void 0,I}function le(y,I,N,te){let Me=re(Bs(y));return iO(Me,{flags:I,id:QR,prefix:N,suffix:te}),QR++,Me}function _e(y,I,N){I===void 0&&y&&(I=lT(y)),I===79&&(I=void 0);let te=re(Bs(y));return N&&(te.flags|=128),te.escapedText==="await"&&(te.transformFlags|=67108864),te.flags&128&&(te.transformFlags|=1024),te}function ge(y,I,N,te){let Me=1;I&&(Me|=8);let Pt=le("",Me,N,te);return y&&y(Pt),Pt}function X(y){let I=2;return y&&(I|=8),le("",I,void 0,void 0)}function Ve(y,I=0,N,te){return L.assert(!(I&7),"Argument out of range: flags"),L.assert((I&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),le(y,3|I,N,te)}function we(y,I=0,N,te){L.assert(!(I&7),"Argument out of range: flags");let Me=y?Ah(y)?jT(!1,N,y,te,vr):`generated@${zo(y)}`:"";(N||te)&&(I|=16);let Pt=le(Me,4|I,N,te);return Pt.original=y,Pt}function ke(y){let I=t.createBasePrivateIdentifierNode(80);return I.escapedText=y,I.transformFlags|=16777216,I}function Pe(y){return na(y,"#")||L.fail("First character of private identifier must be #: "+y),ke(Bs(y))}function Ce(y,I,N,te){let Me=ke(Bs(y));return iO(Me,{flags:I,id:QR,prefix:N,suffix:te}),QR++,Me}function Ie(y,I,N){y&&!na(y,"#")&&L.fail("First character of private identifier must be #: "+y);let te=8|(y?3:1);return Ce(y??"",te,I,N)}function Be(y,I,N){let te=Ah(y)?jT(!0,I,y,N,vr):`#generated@${zo(y)}`,Pt=Ce(te,4|(I||N?16:0),I,N);return Pt.original=y,Pt}function Ne(y){return t.createBaseTokenNode(y)}function Le(y){L.assert(y>=0&&y<=162,"Invalid token"),L.assert(y<=14||y>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),L.assert(y<=8||y>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),L.assert(y!==79,"Invalid token. Use 'createIdentifier' to create identifiers");let I=Ne(y),N=0;switch(y){case 132:N=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:N=1;break;case 106:N=134218752,I.flowNode=void 0;break;case 124:N=1024;break;case 127:N=16777216;break;case 108:N=16384,I.flowNode=void 0;break}return N&&(I.transformFlags|=N),I}function Ye(){return Le(106)}function _t(){return Le(108)}function ct(){return Le(104)}function Rt(){return Le(110)}function We(){return Le(95)}function qe(y){return Le(y)}function zt(y){let I=[];return y&1&&I.push(qe(93)),y&2&&I.push(qe(136)),y&1024&&I.push(qe(88)),y&2048&&I.push(qe(85)),y&4&&I.push(qe(123)),y&8&&I.push(qe(121)),y&16&&I.push(qe(122)),y&256&&I.push(qe(126)),y&32&&I.push(qe(124)),y&16384&&I.push(qe(161)),y&64&&I.push(qe(146)),y&128&&I.push(qe(127)),y&512&&I.push(qe(132)),y&32768&&I.push(qe(101)),y&65536&&I.push(qe(145)),I.length?I:void 0}function Qt(y,I){let N=B(163);return N.left=y,N.right=Zs(I),N.transformFlags|=tr(N.left)|fL(N.right),N.flowNode=void 0,N}function tn(y,I,N){return y.left!==I||y.right!==N?r(Qt(I,N),y):y}function kn(y){let I=B(164);return I.expression=i().parenthesizeExpressionOfComputedPropertyName(y),I.transformFlags|=tr(I.expression)|1024|131072,I}function _n(y,I){return y.expression!==I?r(kn(I),y):y}function Gt(y,I,N,te){let Me=q(165);return Me.modifiers=oo(y),Me.name=Zs(I),Me.constraint=N,Me.default=te,Me.transformFlags=1,Me.expression=void 0,Me.jsDoc=void 0,Me}function $n(y,I,N,te,Me){return y.modifiers!==I||y.name!==N||y.constraint!==te||y.default!==Me?r(Gt(I,N,te,Me),y):y}function ui(y,I,N,te,Me,Pt){var Tr,Fi;let Da=q(166);return Da.modifiers=oo(y),Da.dotDotDotToken=I,Da.name=Zs(N),Da.questionToken=te,Da.type=Me,Da.initializer=gy(Pt),LT(Da.name)?Da.transformFlags=1:Da.transformFlags=fo(Da.modifiers)|tr(Da.dotDotDotToken)|Gg(Da.name)|tr(Da.questionToken)|tr(Da.initializer)|(((Tr=Da.questionToken)!=null?Tr:Da.type)?1:0)|(((Fi=Da.dotDotDotToken)!=null?Fi:Da.initializer)?1024:0)|(im(Da.modifiers)&16476?8192:0),Da.jsDoc=void 0,Da}function Ni(y,I,N,te,Me,Pt,Tr){return y.modifiers!==I||y.dotDotDotToken!==N||y.name!==te||y.questionToken!==Me||y.type!==Pt||y.initializer!==Tr?r(ui(I,N,te,Me,Pt,Tr),y):y}function Pi(y){let I=B(167);return I.expression=i().parenthesizeLeftSideOfAccess(y,!1),I.transformFlags|=tr(I.expression)|1|8192|33554432,I}function gr(y,I){return y.expression!==I?r(Pi(I),y):y}function pt(y,I,N,te){let Me=q(168);return Me.modifiers=oo(y),Me.name=Zs(I),Me.type=te,Me.questionToken=N,Me.transformFlags=1,Me.initializer=void 0,Me.jsDoc=void 0,Me}function nn(y,I,N,te,Me){return y.modifiers!==I||y.name!==N||y.questionToken!==te||y.type!==Me?Dt(pt(I,N,te,Me),y):y}function Dt(y,I){return y!==I&&(y.initializer=I.initializer),r(y,I)}function pn(y,I,N,te,Me){let Pt=q(169);Pt.modifiers=oo(y),Pt.name=Zs(I),Pt.questionToken=N&&ev(N)?N:void 0,Pt.exclamationToken=N&&lO(N)?N:void 0,Pt.type=te,Pt.initializer=gy(Me);let Tr=Pt.flags&16777216||im(Pt.modifiers)&2;return Pt.transformFlags=fo(Pt.modifiers)|Gg(Pt.name)|tr(Pt.initializer)|(Tr||Pt.questionToken||Pt.exclamationToken||Pt.type?1:0)|(ts(Pt.name)||im(Pt.modifiers)&32&&Pt.initializer?8192:0)|16777216,Pt.jsDoc=void 0,Pt}function An(y,I,N,te,Me,Pt){return y.modifiers!==I||y.name!==N||y.questionToken!==(te!==void 0&&ev(te)?te:void 0)||y.exclamationToken!==(te!==void 0&&lO(te)?te:void 0)||y.type!==Me||y.initializer!==Pt?r(pn(I,N,te,Me,Pt),y):y}function Kn(y,I,N,te,Me,Pt){let Tr=q(170);return Tr.modifiers=oo(y),Tr.name=Zs(I),Tr.questionToken=N,Tr.typeParameters=oo(te),Tr.parameters=oo(Me),Tr.type=Pt,Tr.transformFlags=1,Tr.jsDoc=void 0,Tr.locals=void 0,Tr.nextContainer=void 0,Tr.typeArguments=void 0,Tr}function hi(y,I,N,te,Me,Pt,Tr){return y.modifiers!==I||y.name!==N||y.questionToken!==te||y.typeParameters!==Me||y.parameters!==Pt||y.type!==Tr?W(Kn(I,N,te,Me,Pt,Tr),y):y}function ri(y,I,N,te,Me,Pt,Tr,Fi){let Da=q(171);if(Da.modifiers=oo(y),Da.asteriskToken=I,Da.name=Zs(N),Da.questionToken=te,Da.exclamationToken=void 0,Da.typeParameters=oo(Me),Da.parameters=F(Pt),Da.type=Tr,Da.body=Fi,!Da.body)Da.transformFlags=1;else{let Vd=im(Da.modifiers)&512,lg=!!Da.asteriskToken,ug=Vd&≶Da.transformFlags=fo(Da.modifiers)|tr(Da.asteriskToken)|Gg(Da.name)|tr(Da.questionToken)|fo(Da.typeParameters)|fo(Da.parameters)|tr(Da.type)|tr(Da.body)&-67108865|(ug?128:Vd?256:lg?2048:0)|(Da.questionToken||Da.typeParameters||Da.type?1:0)|1024}return Da.typeArguments=void 0,Da.jsDoc=void 0,Da.locals=void 0,Da.nextContainer=void 0,Da.flowNode=void 0,Da.endFlowNode=void 0,Da.returnFlowNode=void 0,Da}function vn(y,I,N,te,Me,Pt,Tr,Fi,Da){return y.modifiers!==I||y.asteriskToken!==N||y.name!==te||y.questionToken!==Me||y.typeParameters!==Pt||y.parameters!==Tr||y.type!==Fi||y.body!==Da?Ht(ri(I,N,te,Me,Pt,Tr,Fi,Da),y):y}function Ht(y,I){return y!==I&&(y.exclamationToken=I.exclamationToken),r(y,I)}function En(y){let I=q(172);return I.body=y,I.transformFlags=tr(y)|16777216,I.modifiers=void 0,I.jsDoc=void 0,I.locals=void 0,I.nextContainer=void 0,I.endFlowNode=void 0,I.returnFlowNode=void 0,I}function dr(y,I){return y.body!==I?Cr(En(I),y):y}function Cr(y,I){return y!==I&&(y.modifiers=I.modifiers),r(y,I)}function Se(y,I,N){let te=q(173);return te.modifiers=oo(y),te.parameters=F(I),te.body=N,te.transformFlags=fo(te.modifiers)|fo(te.parameters)|tr(te.body)&-67108865|1024,te.typeParameters=void 0,te.type=void 0,te.typeArguments=void 0,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.endFlowNode=void 0,te.returnFlowNode=void 0,te}function at(y,I,N,te){return y.modifiers!==I||y.parameters!==N||y.body!==te?Tt(Se(I,N,te),y):y}function Tt(y,I){return y!==I&&(y.typeParameters=I.typeParameters,y.type=I.type),W(y,I)}function ve(y,I,N,te,Me){let Pt=q(174);return Pt.modifiers=oo(y),Pt.name=Zs(I),Pt.parameters=F(N),Pt.type=te,Pt.body=Me,Pt.body?Pt.transformFlags=fo(Pt.modifiers)|Gg(Pt.name)|fo(Pt.parameters)|tr(Pt.type)|tr(Pt.body)&-67108865|(Pt.type?1:0):Pt.transformFlags=1,Pt.typeArguments=void 0,Pt.typeParameters=void 0,Pt.jsDoc=void 0,Pt.locals=void 0,Pt.nextContainer=void 0,Pt.flowNode=void 0,Pt.endFlowNode=void 0,Pt.returnFlowNode=void 0,Pt}function nt(y,I,N,te,Me,Pt){return y.modifiers!==I||y.name!==N||y.parameters!==te||y.type!==Me||y.body!==Pt?ce(ve(I,N,te,Me,Pt),y):y}function ce(y,I){return y!==I&&(y.typeParameters=I.typeParameters),W(y,I)}function Q(y,I,N,te){let Me=q(175);return Me.modifiers=oo(y),Me.name=Zs(I),Me.parameters=F(N),Me.body=te,Me.body?Me.transformFlags=fo(Me.modifiers)|Gg(Me.name)|fo(Me.parameters)|tr(Me.body)&-67108865|(Me.type?1:0):Me.transformFlags=1,Me.typeArguments=void 0,Me.typeParameters=void 0,Me.type=void 0,Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me.flowNode=void 0,Me.endFlowNode=void 0,Me.returnFlowNode=void 0,Me}function ue(y,I,N,te,Me){return y.modifiers!==I||y.name!==N||y.parameters!==te||y.body!==Me?G(Q(I,N,te,Me),y):y}function G(y,I){return y!==I&&(y.typeParameters=I.typeParameters,y.type=I.type),W(y,I)}function Oe(y,I,N){let te=q(176);return te.typeParameters=oo(y),te.parameters=oo(I),te.type=N,te.transformFlags=1,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.typeArguments=void 0,te}function je(y,I,N,te){return y.typeParameters!==I||y.parameters!==N||y.type!==te?W(Oe(I,N,te),y):y}function Ge(y,I,N){let te=q(177);return te.typeParameters=oo(y),te.parameters=oo(I),te.type=N,te.transformFlags=1,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.typeArguments=void 0,te}function kt(y,I,N,te){return y.typeParameters!==I||y.parameters!==N||y.type!==te?W(Ge(I,N,te),y):y}function Kt(y,I,N){let te=q(178);return te.modifiers=oo(y),te.parameters=oo(I),te.type=N,te.transformFlags=1,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.typeArguments=void 0,te}function ln(y,I,N,te){return y.parameters!==N||y.type!==te||y.modifiers!==I?W(Kt(I,N,te),y):y}function ir(y,I){let N=B(201);return N.type=y,N.literal=I,N.transformFlags=1,N}function ae(y,I,N){return y.type!==I||y.literal!==N?r(ir(I,N),y):y}function rt(y){return Le(y)}function Ot(y,I,N){let te=B(179);return te.assertsModifier=y,te.parameterName=Zs(I),te.type=N,te.transformFlags=1,te}function Ke(y,I,N,te){return y.assertsModifier!==I||y.parameterName!==N||y.type!==te?r(Ot(I,N,te),y):y}function oe(y,I){let N=B(180);return N.typeName=Zs(y),N.typeArguments=I&&i().parenthesizeTypeArguments(F(I)),N.transformFlags=1,N}function pe(y,I,N){return y.typeName!==I||y.typeArguments!==N?r(oe(I,N),y):y}function z(y,I,N){let te=q(181);return te.typeParameters=oo(y),te.parameters=oo(I),te.type=N,te.transformFlags=1,te.modifiers=void 0,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.typeArguments=void 0,te}function Te(y,I,N,te){return y.typeParameters!==I||y.parameters!==N||y.type!==te?j(z(I,N,te),y):y}function j(y,I){return y!==I&&(y.modifiers=I.modifiers),W(y,I)}function yt(...y){return y.length===4?lt(...y):y.length===3?Qe(...y):L.fail("Incorrect number of arguments specified.")}function lt(y,I,N,te){let Me=q(182);return Me.modifiers=oo(y),Me.typeParameters=oo(I),Me.parameters=oo(N),Me.type=te,Me.transformFlags=1,Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me.typeArguments=void 0,Me}function Qe(y,I,N){return lt(void 0,y,I,N)}function Vt(...y){return y.length===5?Hn(...y):y.length===4?jr(...y):L.fail("Incorrect number of arguments specified.")}function Hn(y,I,N,te,Me){return y.modifiers!==I||y.typeParameters!==N||y.parameters!==te||y.type!==Me?W(yt(I,N,te,Me),y):y}function jr(y,I,N,te){return Hn(y,y.modifiers,I,N,te)}function ei(y,I){let N=B(183);return N.exprName=y,N.typeArguments=I&&i().parenthesizeTypeArguments(I),N.transformFlags=1,N}function Kr(y,I,N){return y.exprName!==I||y.typeArguments!==N?r(ei(I,N),y):y}function Si(y){let I=q(184);return I.members=F(y),I.transformFlags=1,I}function Ja(y,I){return y.members!==I?r(Si(I),y):y}function Za(y){let I=B(185);return I.elementType=i().parenthesizeNonArrayTypeOfPostfixType(y),I.transformFlags=1,I}function Fa(y,I){return y.elementType!==I?r(Za(I),y):y}function Hi(y){let I=B(186);return I.elements=F(i().parenthesizeElementTypesOfTupleType(y)),I.transformFlags=1,I}function xi(y,I){return y.elements!==I?r(Hi(I),y):y}function Nr(y,I,N,te){let Me=q(199);return Me.dotDotDotToken=y,Me.name=I,Me.questionToken=N,Me.type=te,Me.transformFlags=1,Me.jsDoc=void 0,Me}function Fo(y,I,N,te,Me){return y.dotDotDotToken!==I||y.name!==N||y.questionToken!==te||y.type!==Me?r(Nr(I,N,te,Me),y):y}function Qr(y){let I=B(187);return I.type=i().parenthesizeTypeOfOptionalType(y),I.transformFlags=1,I}function Wi(y,I){return y.type!==I?r(Qr(I),y):y}function gn(y){let I=B(188);return I.type=y,I.transformFlags=1,I}function Ki(y,I){return y.type!==I?r(gn(I),y):y}function kc(y,I,N){let te=B(y);return te.types=P.createNodeArray(N(I)),te.transformFlags=1,te}function Ps(y,I,N){return y.types!==I?r(kc(y.kind,I,N),y):y}function mc(y){return kc(189,y,i().parenthesizeConstituentTypesOfUnionType)}function xc(y,I){return Ps(y,I,i().parenthesizeConstituentTypesOfUnionType)}function hc(y){return kc(190,y,i().parenthesizeConstituentTypesOfIntersectionType)}function ro(y,I){return Ps(y,I,i().parenthesizeConstituentTypesOfIntersectionType)}function aa(y,I,N,te){let Me=B(191);return Me.checkType=i().parenthesizeCheckTypeOfConditionalType(y),Me.extendsType=i().parenthesizeExtendsTypeOfConditionalType(I),Me.trueType=N,Me.falseType=te,Me.transformFlags=1,Me.locals=void 0,Me.nextContainer=void 0,Me}function Co(y,I,N,te,Me){return y.checkType!==I||y.extendsType!==N||y.trueType!==te||y.falseType!==Me?r(aa(I,N,te,Me),y):y}function gc(y){let I=B(192);return I.typeParameter=y,I.transformFlags=1,I}function Ll(y,I){return y.typeParameter!==I?r(gc(I),y):y}function md(y,I){let N=B(200);return N.head=y,N.templateSpans=F(I),N.transformFlags=1,N}function Pc(y,I,N){return y.head!==I||y.templateSpans!==N?r(md(I,N),y):y}function bl(y,I,N,te,Me=!1){let Pt=B(202);return Pt.argument=y,Pt.assertions=I,Pt.qualifier=N,Pt.typeArguments=te&&i().parenthesizeTypeArguments(te),Pt.isTypeOf=Me,Pt.transformFlags=1,Pt}function ss(y,I,N,te,Me,Pt=y.isTypeOf){return y.argument!==I||y.assertions!==N||y.qualifier!==te||y.typeArguments!==Me||y.isTypeOf!==Pt?r(bl(I,N,te,Me,Pt),y):y}function qs(y){let I=B(193);return I.type=y,I.transformFlags=1,I}function Rs(y,I){return y.type!==I?r(qs(I),y):y}function As(){let y=B(194);return y.transformFlags=1,y}function jt(y,I){let N=B(195);return N.operator=y,N.type=y===146?i().parenthesizeOperandOfReadonlyTypeOperator(I):i().parenthesizeOperandOfTypeOperator(I),N.transformFlags=1,N}function yc(y,I){return y.type!==I?r(jt(y.operator,I),y):y}function Ql(y,I){let N=B(196);return N.objectType=i().parenthesizeNonArrayTypeOfPostfixType(y),N.indexType=I,N.transformFlags=1,N}function yu(y,I,N){return y.objectType!==I||y.indexType!==N?r(Ql(I,N),y):y}function se(y,I,N,te,Me,Pt){let Tr=q(197);return Tr.readonlyToken=y,Tr.typeParameter=I,Tr.nameType=N,Tr.questionToken=te,Tr.type=Me,Tr.members=Pt&&F(Pt),Tr.transformFlags=1,Tr.locals=void 0,Tr.nextContainer=void 0,Tr}function ht(y,I,N,te,Me,Pt,Tr){return y.readonlyToken!==I||y.typeParameter!==N||y.nameType!==te||y.questionToken!==Me||y.type!==Pt||y.members!==Tr?r(se(I,N,te,Me,Pt,Tr),y):y}function wt(y){let I=B(198);return I.literal=y,I.transformFlags=1,I}function K(y,I){return y.literal!==I?r(wt(I),y):y}function Xe(y){let I=B(203);return I.elements=F(y),I.transformFlags|=fo(I.elements)|1024|524288,I.transformFlags&32768&&(I.transformFlags|=65664),I}function ft(y,I){return y.elements!==I?r(Xe(I),y):y}function Yt(y){let I=B(204);return I.elements=F(y),I.transformFlags|=fo(I.elements)|1024|524288,I}function pr(y,I){return y.elements!==I?r(Yt(I),y):y}function yr(y,I,N,te){let Me=q(205);return Me.dotDotDotToken=y,Me.propertyName=Zs(I),Me.name=Zs(N),Me.initializer=gy(te),Me.transformFlags|=tr(Me.dotDotDotToken)|Gg(Me.propertyName)|Gg(Me.name)|tr(Me.initializer)|(Me.dotDotDotToken?32768:0)|1024,Me.flowNode=void 0,Me}function ta(y,I,N,te,Me){return y.propertyName!==N||y.dotDotDotToken!==I||y.name!==te||y.initializer!==Me?r(yr(I,N,te,Me),y):y}function Go(y,I){let N=B(206),te=y&&Os(y),Me=F(y,te&&ol(te)?!0:void 0);return N.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Me),N.multiLine=I,N.transformFlags|=fo(N.elements),N}function Ka(y,I){return y.elements!==I?r(Go(I,y.multiLine),y):y}function vo(y,I){let N=q(207);return N.properties=F(y),N.multiLine=I,N.transformFlags|=fo(N.properties),N.jsDoc=void 0,N}function ka(y,I){return y.properties!==I?r(vo(I,y.multiLine),y):y}function Hs(y,I,N){let te=q(208);return te.expression=y,te.questionDotToken=I,te.name=N,te.transformFlags=tr(te.expression)|tr(te.questionDotToken)|(Re(te.name)?fL(te.name):tr(te.name)|536870912),te.jsDoc=void 0,te.flowNode=void 0,te}function Uc(y,I){let N=Hs(i().parenthesizeLeftSideOfAccess(y,!1),void 0,Zs(I));return hL(y)&&(N.transformFlags|=384),N}function Gu(y,I,N){return n6(y)?jo(y,I,y.questionDotToken,Ga(N,Re)):y.expression!==I||y.name!==N?r(Uc(I,N),y):y}function $o(y,I,N){let te=Hs(i().parenthesizeLeftSideOfAccess(y,!0),I,Zs(N));return te.flags|=32,te.transformFlags|=32,te}function jo(y,I,N,te){return L.assert(!!(y.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),y.expression!==I||y.questionDotToken!==N||y.name!==te?r($o(I,N,te),y):y}function Ws(y,I,N){let te=q(209);return te.expression=y,te.questionDotToken=I,te.argumentExpression=N,te.transformFlags|=tr(te.expression)|tr(te.questionDotToken)|tr(te.argumentExpression),te.jsDoc=void 0,te.flowNode=void 0,te}function hd(y,I){let N=Ws(i().parenthesizeLeftSideOfAccess(y,!1),void 0,Fv(I));return hL(y)&&(N.transformFlags|=384),N}function vc(y,I,N){return Dj(y)?ye(y,I,y.questionDotToken,N):y.expression!==I||y.argumentExpression!==N?r(hd(I,N),y):y}function nf(y,I,N){let te=Ws(i().parenthesizeLeftSideOfAccess(y,!0),I,Fv(N));return te.flags|=32,te.transformFlags|=32,te}function ye(y,I,N,te){return L.assert(!!(y.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),y.expression!==I||y.questionDotToken!==N||y.argumentExpression!==te?r(nf(I,N,te),y):y}function Et(y,I,N,te){let Me=q(210);return Me.expression=y,Me.questionDotToken=I,Me.typeArguments=N,Me.arguments=te,Me.transformFlags|=tr(Me.expression)|tr(Me.questionDotToken)|fo(Me.typeArguments)|fo(Me.arguments),Me.typeArguments&&(Me.transformFlags|=1),Pu(Me.expression)&&(Me.transformFlags|=16384),Me}function bn(y,I,N){let te=Et(i().parenthesizeLeftSideOfAccess(y,!1),void 0,oo(I),i().parenthesizeExpressionsOfCommaDelimitedList(F(N)));return gL(te.expression)&&(te.transformFlags|=8388608),te}function Ri(y,I,N,te){return dT(y)?ee(y,I,y.questionDotToken,N,te):y.expression!==I||y.typeArguments!==N||y.arguments!==te?r(bn(I,N,te),y):y}function io(y,I,N,te){let Me=Et(i().parenthesizeLeftSideOfAccess(y,!0),I,oo(N),i().parenthesizeExpressionsOfCommaDelimitedList(F(te)));return Me.flags|=32,Me.transformFlags|=32,Me}function ee(y,I,N,te,Me){return L.assert(!!(y.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),y.expression!==I||y.questionDotToken!==N||y.typeArguments!==te||y.arguments!==Me?r(io(I,N,te,Me),y):y}function Ze(y,I,N){let te=q(211);return te.expression=i().parenthesizeExpressionOfNew(y),te.typeArguments=oo(I),te.arguments=N?i().parenthesizeExpressionsOfCommaDelimitedList(N):void 0,te.transformFlags|=tr(te.expression)|fo(te.typeArguments)|fo(te.arguments)|32,te.typeArguments&&(te.transformFlags|=1),te}function At(y,I,N,te){return y.expression!==I||y.typeArguments!==N||y.arguments!==te?r(Ze(I,N,te),y):y}function xt(y,I,N){let te=B(212);return te.tag=i().parenthesizeLeftSideOfAccess(y,!1),te.typeArguments=oo(I),te.template=N,te.transformFlags|=tr(te.tag)|fo(te.typeArguments)|tr(te.template)|1024,te.typeArguments&&(te.transformFlags|=1),KH(te.template)&&(te.transformFlags|=128),te}function qt(y,I,N,te){return y.tag!==I||y.typeArguments!==N||y.template!==te?r(xt(I,N,te),y):y}function Ln(y,I){let N=B(213);return N.expression=i().parenthesizeOperandOfPrefixUnary(I),N.type=y,N.transformFlags|=tr(N.expression)|tr(N.type)|1,N}function mr(y,I,N){return y.type!==I||y.expression!==N?r(Ln(I,N),y):y}function Vr(y){let I=B(214);return I.expression=y,I.transformFlags=tr(I.expression),I.jsDoc=void 0,I}function gi(y,I){return y.expression!==I?r(Vr(I),y):y}function Ea(y,I,N,te,Me,Pt,Tr){let Fi=q(215);Fi.modifiers=oo(y),Fi.asteriskToken=I,Fi.name=Zs(N),Fi.typeParameters=oo(te),Fi.parameters=F(Me),Fi.type=Pt,Fi.body=Tr;let Da=im(Fi.modifiers)&512,Vd=!!Fi.asteriskToken,lg=Da&&Vd;return Fi.transformFlags=fo(Fi.modifiers)|tr(Fi.asteriskToken)|Gg(Fi.name)|fo(Fi.typeParameters)|fo(Fi.parameters)|tr(Fi.type)|tr(Fi.body)&-67108865|(lg?128:Da?256:Vd?2048:0)|(Fi.typeParameters||Fi.type?1:0)|4194304,Fi.typeArguments=void 0,Fi.jsDoc=void 0,Fi.locals=void 0,Fi.nextContainer=void 0,Fi.flowNode=void 0,Fi.endFlowNode=void 0,Fi.returnFlowNode=void 0,Fi}function bo(y,I,N,te,Me,Pt,Tr,Fi){return y.name!==te||y.modifiers!==I||y.asteriskToken!==N||y.typeParameters!==Me||y.parameters!==Pt||y.type!==Tr||y.body!==Fi?W(Ea(I,N,te,Me,Pt,Tr,Fi),y):y}function Qo(y,I,N,te,Me,Pt){let Tr=q(216);Tr.modifiers=oo(y),Tr.typeParameters=oo(I),Tr.parameters=F(N),Tr.type=te,Tr.equalsGreaterThanToken=Me??Le(38),Tr.body=i().parenthesizeConciseBodyOfArrowFunction(Pt);let Fi=im(Tr.modifiers)&512;return Tr.transformFlags=fo(Tr.modifiers)|fo(Tr.typeParameters)|fo(Tr.parameters)|tr(Tr.type)|tr(Tr.equalsGreaterThanToken)|tr(Tr.body)&-67108865|(Tr.typeParameters||Tr.type?1:0)|(Fi?16640:0)|1024,Tr.typeArguments=void 0,Tr.jsDoc=void 0,Tr.locals=void 0,Tr.nextContainer=void 0,Tr.flowNode=void 0,Tr.endFlowNode=void 0,Tr.returnFlowNode=void 0,Tr}function Cs(y,I,N,te,Me,Pt,Tr){return y.modifiers!==I||y.typeParameters!==N||y.parameters!==te||y.type!==Me||y.equalsGreaterThanToken!==Pt||y.body!==Tr?W(Qo(I,N,te,Me,Pt,Tr),y):y}function Bu(y){let I=B(217);return I.expression=i().parenthesizeOperandOfPrefixUnary(y),I.transformFlags|=tr(I.expression),I}function Pd(y,I){return y.expression!==I?r(Bu(I),y):y}function Dc(y){let I=B(218);return I.expression=i().parenthesizeOperandOfPrefixUnary(y),I.transformFlags|=tr(I.expression),I}function gd(y,I){return y.expression!==I?r(Dc(I),y):y}function Zl(y){let I=B(219);return I.expression=i().parenthesizeOperandOfPrefixUnary(y),I.transformFlags|=tr(I.expression),I}function Md(y,I){return y.expression!==I?r(Zl(I),y):y}function zf(y){let I=B(220);return I.expression=i().parenthesizeOperandOfPrefixUnary(y),I.transformFlags|=tr(I.expression)|256|128|2097152,I}function Io(y,I){return y.expression!==I?r(zf(I),y):y}function Jf(y,I){let N=B(221);return N.operator=y,N.operand=i().parenthesizeOperandOfPrefixUnary(I),N.transformFlags|=tr(N.operand),(y===45||y===46)&&Re(N.operand)&&!tc(N.operand)&&!rv(N.operand)&&(N.transformFlags|=268435456),N}function Fd(y,I){return y.operand!==I?r(Jf(y.operator,I),y):y}function E_(y,I){let N=B(222);return N.operator=I,N.operand=i().parenthesizeOperandOfPostfixUnary(y),N.transformFlags|=tr(N.operand),Re(N.operand)&&!tc(N.operand)&&!rv(N.operand)&&(N.transformFlags|=268435456),N}function Y_(y,I){return y.operand!==I?r(E_(I,y.operator),y):y}function M(y,I,N){let te=q(223),Me=Wk(I),Pt=Me.kind;return te.left=i().parenthesizeLeftSideOfBinary(Pt,y),te.operatorToken=Me,te.right=i().parenthesizeRightSideOfBinary(Pt,te.left,N),te.transformFlags|=tr(te.left)|tr(te.operatorToken)|tr(te.right),Pt===60?te.transformFlags|=32:Pt===63?rs(te.left)?te.transformFlags|=5248|He(te.left):fu(te.left)&&(te.transformFlags|=5120|He(te.left)):Pt===42||Pt===67?te.transformFlags|=512:HI(Pt)&&(te.transformFlags|=16),Pt===101&&pi(te.left)&&(te.transformFlags|=536870912),te.jsDoc=void 0,te}function He(y){return IO(y)?65536:0}function Nt(y,I,N,te){return y.left!==I||y.operatorToken!==N||y.right!==te?r(M(I,N,te),y):y}function Pn(y,I,N,te,Me){let Pt=B(224);return Pt.condition=i().parenthesizeConditionOfConditionalExpression(y),Pt.questionToken=I??Le(57),Pt.whenTrue=i().parenthesizeBranchOfConditionalExpression(N),Pt.colonToken=te??Le(58),Pt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Me),Pt.transformFlags|=tr(Pt.condition)|tr(Pt.questionToken)|tr(Pt.whenTrue)|tr(Pt.colonToken)|tr(Pt.whenFalse),Pt}function la(y,I,N,te,Me,Pt){return y.condition!==I||y.questionToken!==N||y.whenTrue!==te||y.colonToken!==Me||y.whenFalse!==Pt?r(Pn(I,N,te,Me,Pt),y):y}function oa(y,I){let N=B(225);return N.head=y,N.templateSpans=F(I),N.transformFlags|=tr(N.head)|fo(N.templateSpans)|1024,N}function be(y,I,N){return y.head!==I||y.templateSpans!==N?r(oa(I,N),y):y}function De(y,I,N,te=0){L.assert(!(te&-2049),"Unsupported template flags.");let Me;if(N!==void 0&&N!==I&&(Me=LRe(y,N),typeof Me=="object"))return L.fail("Invalid raw text");if(I===void 0){if(Me===void 0)return L.fail("Arguments 'text' and 'rawText' may not both be undefined.");I=Me}else Me!==void 0&&L.assert(I===Me,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return I}function mt(y){let I=1024;return y&&(I|=128),I}function St(y,I,N,te){let Me=Ne(y);return Me.text=I,Me.rawText=N,Me.templateFlags=te&2048,Me.transformFlags=mt(Me.templateFlags),Me}function Zt(y,I,N,te){let Me=q(y);return Me.text=I,Me.rawText=N,Me.templateFlags=te&2048,Me.transformFlags=mt(Me.templateFlags),Me}function rn(y,I,N,te){return y===14?Zt(y,I,N,te):St(y,I,N,te)}function sn(y,I,N){return y=De(15,y,I,N),rn(15,y,I,N)}function Dn(y,I,N){return y=De(15,y,I,N),rn(16,y,I,N)}function kr(y,I,N){return y=De(15,y,I,N),rn(17,y,I,N)}function ki(y,I,N){return y=De(15,y,I,N),Zt(14,y,I,N)}function Vn(y,I){L.assert(!y||!!I,"A `YieldExpression` with an asteriskToken must have an expression.");let N=B(226);return N.expression=I&&i().parenthesizeExpressionForDisallowedComma(I),N.asteriskToken=y,N.transformFlags|=tr(N.expression)|tr(N.asteriskToken)|1024|128|1048576,N}function $t(y,I,N){return y.expression!==N||y.asteriskToken!==I?r(Vn(I,N),y):y}function Xn(y){let I=B(227);return I.expression=i().parenthesizeExpressionForDisallowedComma(y),I.transformFlags|=tr(I.expression)|1024|32768,I}function ra(y,I){return y.expression!==I?r(Xn(I),y):y}function Is(y,I,N,te,Me){let Pt=q(228);return Pt.modifiers=oo(y),Pt.name=Zs(I),Pt.typeParameters=oo(N),Pt.heritageClauses=oo(te),Pt.members=F(Me),Pt.transformFlags|=fo(Pt.modifiers)|Gg(Pt.name)|fo(Pt.typeParameters)|fo(Pt.heritageClauses)|fo(Pt.members)|(Pt.typeParameters?1:0)|1024,Pt.jsDoc=void 0,Pt}function Mc(y,I,N,te,Me,Pt){return y.modifiers!==I||y.name!==N||y.typeParameters!==te||y.heritageClauses!==Me||y.members!==Pt?r(Is(I,N,te,Me,Pt),y):y}function mm(){return B(229)}function Hh(y,I){let N=B(230);return N.expression=i().parenthesizeLeftSideOfAccess(y,!1),N.typeArguments=I&&i().parenthesizeTypeArguments(I),N.transformFlags|=tr(N.expression)|fo(N.typeArguments)|1024,N}function T_(y,I,N){return y.expression!==I||y.typeArguments!==N?r(Hh(I,N),y):y}function Cb(y,I){let N=B(231);return N.expression=y,N.type=I,N.transformFlags|=tr(N.expression)|tr(N.type)|1,N}function mv(y,I,N){return y.expression!==I||y.type!==N?r(Cb(I,N),y):y}function gx(y){let I=B(232);return I.expression=i().parenthesizeLeftSideOfAccess(y,!1),I.transformFlags|=tr(I.expression)|1,I}function _1(y,I){return i6(y)?hv(y,I):y.expression!==I?r(gx(I),y):y}function yx(y,I){let N=B(235);return N.expression=y,N.type=I,N.transformFlags|=tr(N.expression)|tr(N.type)|1,N}function Wh(y,I,N){return y.expression!==I||y.type!==N?r(yx(I,N),y):y}function S_(y){let I=B(232);return I.flags|=32,I.expression=i().parenthesizeLeftSideOfAccess(y,!0),I.transformFlags|=tr(I.expression)|1,I}function hv(y,I){return L.assert(!!(y.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),y.expression!==I?r(S_(I),y):y}function eh(y,I){let N=B(233);switch(N.keywordToken=y,N.name=I,N.transformFlags|=tr(N.name),y){case 103:N.transformFlags|=1024;break;case 100:N.transformFlags|=4;break;default:return L.assertNever(y)}return N.flowNode=void 0,N}function $_(y,I){return y.name!==I?r(eh(y.keywordToken,I),y):y}function gv(y,I){let N=B(236);return N.expression=y,N.literal=I,N.transformFlags|=tr(N.expression)|tr(N.literal)|1024,N}function lE(y,I,N){return y.expression!==I||y.literal!==N?r(gv(I,N),y):y}function Ib(){let y=B(237);return y.transformFlags|=1024,y}function zh(y,I){let N=B(238);return N.statements=F(y),N.multiLine=I,N.transformFlags|=fo(N.statements),N.jsDoc=void 0,N.locals=void 0,N.nextContainer=void 0,N}function p1(y,I){return y.statements!==I?r(zh(I,y.multiLine),y):y}function uE(y,I){let N=B(240);return N.modifiers=oo(y),N.declarationList=ba(I)?Ip(I):I,N.transformFlags|=fo(N.modifiers)|tr(N.declarationList),im(N.modifiers)&2&&(N.transformFlags=1),N.jsDoc=void 0,N.flowNode=void 0,N}function dE(y,I,N){return y.modifiers!==I||y.declarationList!==N?r(uE(I,N),y):y}function fE(){let y=B(239);return y.jsDoc=void 0,y}function yv(y){let I=B(241);return I.expression=i().parenthesizeExpressionOfExpressionStatement(y),I.transformFlags|=tr(I.expression),I.jsDoc=void 0,I.flowNode=void 0,I}function vx(y,I){return y.expression!==I?r(yv(I),y):y}function _E(y,I,N){let te=B(242);return te.expression=y,te.thenStatement=ad(I),te.elseStatement=ad(N),te.transformFlags|=tr(te.expression)|tr(te.thenStatement)|tr(te.elseStatement),te.jsDoc=void 0,te.flowNode=void 0,te}function pE(y,I,N,te){return y.expression!==I||y.thenStatement!==N||y.elseStatement!==te?r(_E(I,N,te),y):y}function vv(y,I){let N=B(243);return N.statement=ad(y),N.expression=I,N.transformFlags|=tr(N.statement)|tr(N.expression),N.jsDoc=void 0,N.flowNode=void 0,N}function Lb(y,I,N){return y.statement!==I||y.expression!==N?r(vv(I,N),y):y}function bv(y,I){let N=B(244);return N.expression=y,N.statement=ad(I),N.transformFlags|=tr(N.expression)|tr(N.statement),N.jsDoc=void 0,N.flowNode=void 0,N}function m1(y,I,N){return y.expression!==I||y.statement!==N?r(bv(I,N),y):y}function Jh(y,I,N,te){let Me=B(245);return Me.initializer=y,Me.condition=I,Me.incrementor=N,Me.statement=ad(te),Me.transformFlags|=tr(Me.initializer)|tr(Me.condition)|tr(Me.incrementor)|tr(Me.statement),Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me.flowNode=void 0,Me}function Lo(y,I,N,te,Me){return y.initializer!==I||y.condition!==N||y.incrementor!==te||y.statement!==Me?r(Jh(I,N,te,Me),y):y}function mE(y,I,N){let te=B(246);return te.initializer=y,te.expression=I,te.statement=ad(N),te.transformFlags|=tr(te.initializer)|tr(te.expression)|tr(te.statement),te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te.flowNode=void 0,te}function sC(y,I,N,te){return y.initializer!==I||y.expression!==N||y.statement!==te?r(mE(I,N,te),y):y}function Zg(y,I,N,te){let Me=B(247);return Me.awaitModifier=y,Me.initializer=I,Me.expression=i().parenthesizeExpressionForDisallowedComma(N),Me.statement=ad(te),Me.transformFlags|=tr(Me.awaitModifier)|tr(Me.initializer)|tr(Me.expression)|tr(Me.statement)|1024,y&&(Me.transformFlags|=128),Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me.flowNode=void 0,Me}function Kh(y,I,N,te,Me){return y.awaitModifier!==I||y.initializer!==N||y.expression!==te||y.statement!==Me?r(Zg(I,N,te,Me),y):y}function hm(y){let I=B(248);return I.label=Zs(y),I.transformFlags|=tr(I.label)|4194304,I.jsDoc=void 0,I.flowNode=void 0,I}function x_(y,I){return y.label!==I?r(hm(I),y):y}function Zu(y){let I=B(249);return I.label=Zs(y),I.transformFlags|=tr(I.label)|4194304,I.jsDoc=void 0,I.flowNode=void 0,I}function ed(y,I){return y.label!==I?r(Zu(I),y):y}function td(y){let I=B(250);return I.expression=y,I.transformFlags|=tr(I.expression)|128|4194304,I.jsDoc=void 0,I.flowNode=void 0,I}function kb(y,I){return y.expression!==I?r(td(I),y):y}function Db(y,I){let N=B(251);return N.expression=y,N.statement=ad(I),N.transformFlags|=tr(N.expression)|tr(N.statement),N.jsDoc=void 0,N.flowNode=void 0,N}function bx(y,I,N){return y.expression!==I||y.statement!==N?r(Db(I,N),y):y}function wb(y,I){let N=B(252);return N.expression=i().parenthesizeExpressionForDisallowedComma(y),N.caseBlock=I,N.transformFlags|=tr(N.expression)|tr(N.caseBlock),N.jsDoc=void 0,N.flowNode=void 0,N.possiblyExhaustive=!1,N}function qh(y,I,N){return y.expression!==I||y.caseBlock!==N?r(wb(I,N),y):y}function Rb(y,I){let N=B(253);return N.label=Zs(y),N.statement=ad(I),N.transformFlags|=tr(N.label)|tr(N.statement),N.jsDoc=void 0,N.flowNode=void 0,N}function h1(y,I,N){return y.label!==I||y.statement!==N?r(Rb(I,N),y):y}function Ob(y){let I=B(254);return I.expression=y,I.transformFlags|=tr(I.expression),I.jsDoc=void 0,I.flowNode=void 0,I}function cC(y,I){return y.expression!==I?r(Ob(I),y):y}function Ex(y,I,N){let te=B(255);return te.tryBlock=y,te.catchClause=I,te.finallyBlock=N,te.transformFlags|=tr(te.tryBlock)|tr(te.catchClause)|tr(te.finallyBlock),te.jsDoc=void 0,te.flowNode=void 0,te}function Ev(y,I,N,te){return y.tryBlock!==I||y.catchClause!==N||y.finallyBlock!==te?r(Ex(I,N,te),y):y}function hE(){let y=B(256);return y.jsDoc=void 0,y.flowNode=void 0,y}function Fe(y,I,N,te){var Me;let Pt=q(257);return Pt.name=Zs(y),Pt.exclamationToken=I,Pt.type=N,Pt.initializer=gy(te),Pt.transformFlags|=Gg(Pt.name)|tr(Pt.initializer)|(((Me=Pt.exclamationToken)!=null?Me:Pt.type)?1:0),Pt.jsDoc=void 0,Pt}function ey(y,I,N,te,Me){return y.name!==I||y.type!==te||y.exclamationToken!==N||y.initializer!==Me?r(Fe(I,N,te,Me),y):y}function Ip(y,I=0){let N=B(258);return N.flags|=I&3,N.declarations=F(y),N.transformFlags|=fo(N.declarations)|4194304,I&3&&(N.transformFlags|=263168),N}function Tv(y,I){return y.declarations!==I?r(Ip(I,y.flags),y):y}function Nb(y,I,N,te,Me,Pt,Tr){let Fi=q(259);if(Fi.modifiers=oo(y),Fi.asteriskToken=I,Fi.name=Zs(N),Fi.typeParameters=oo(te),Fi.parameters=F(Me),Fi.type=Pt,Fi.body=Tr,!Fi.body||im(Fi.modifiers)&2)Fi.transformFlags=1;else{let Da=im(Fi.modifiers)&512,Vd=!!Fi.asteriskToken,lg=Da&&Vd;Fi.transformFlags=fo(Fi.modifiers)|tr(Fi.asteriskToken)|Gg(Fi.name)|fo(Fi.typeParameters)|fo(Fi.parameters)|tr(Fi.type)|tr(Fi.body)&-67108865|(lg?128:Da?256:Vd?2048:0)|(Fi.typeParameters||Fi.type?1:0)|4194304}return Fi.typeArguments=void 0,Fi.jsDoc=void 0,Fi.locals=void 0,Fi.nextContainer=void 0,Fi.endFlowNode=void 0,Fi.returnFlowNode=void 0,Fi}function Sv(y,I,N,te,Me,Pt,Tr,Fi){return y.modifiers!==I||y.asteriskToken!==N||y.name!==te||y.typeParameters!==Me||y.parameters!==Pt||y.type!==Tr||y.body!==Fi?Xh(Nb(I,N,te,Me,Pt,Tr,Fi),y):y}function Xh(y,I){return y!==I&&y.modifiers===I.modifiers&&(y.modifiers=I.modifiers),W(y,I)}function g1(y,I,N,te,Me){let Pt=q(260);return Pt.modifiers=oo(y),Pt.name=Zs(I),Pt.typeParameters=oo(N),Pt.heritageClauses=oo(te),Pt.members=F(Me),im(Pt.modifiers)&2?Pt.transformFlags=1:(Pt.transformFlags|=fo(Pt.modifiers)|Gg(Pt.name)|fo(Pt.typeParameters)|fo(Pt.heritageClauses)|fo(Pt.members)|(Pt.typeParameters?1:0)|1024,Pt.transformFlags&8192&&(Pt.transformFlags|=1)),Pt.jsDoc=void 0,Pt}function wo(y,I,N,te,Me,Pt){return y.modifiers!==I||y.name!==N||y.typeParameters!==te||y.heritageClauses!==Me||y.members!==Pt?r(g1(I,N,te,Me,Pt),y):y}function A_(y,I,N,te,Me){let Pt=q(261);return Pt.modifiers=oo(y),Pt.name=Zs(I),Pt.typeParameters=oo(N),Pt.heritageClauses=oo(te),Pt.members=F(Me),Pt.transformFlags=1,Pt.jsDoc=void 0,Pt}function gE(y,I,N,te,Me,Pt){return y.modifiers!==I||y.name!==N||y.typeParameters!==te||y.heritageClauses!==Me||y.members!==Pt?r(A_(I,N,te,Me,Pt),y):y}function Kc(y,I,N,te){let Me=q(262);return Me.modifiers=oo(y),Me.name=Zs(I),Me.typeParameters=oo(N),Me.type=te,Me.transformFlags=1,Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me}function th(y,I,N,te,Me){return y.modifiers!==I||y.name!==N||y.typeParameters!==te||y.type!==Me?r(Kc(I,N,te,Me),y):y}function Pb(y,I,N){let te=q(263);return te.modifiers=oo(y),te.name=Zs(I),te.members=F(N),te.transformFlags|=fo(te.modifiers)|tr(te.name)|fo(te.members)|1,te.transformFlags&=-67108865,te.jsDoc=void 0,te}function C_(y,I,N,te){return y.modifiers!==I||y.name!==N||y.members!==te?r(Pb(I,N,te),y):y}function Mb(y,I,N,te=0){let Me=q(264);return Me.modifiers=oo(y),Me.flags|=te&1044,Me.name=I,Me.body=N,im(Me.modifiers)&2?Me.transformFlags=1:Me.transformFlags|=fo(Me.modifiers)|tr(Me.name)|tr(Me.body)|1,Me.transformFlags&=-67108865,Me.jsDoc=void 0,Me.locals=void 0,Me.nextContainer=void 0,Me}function Ml(y,I,N,te){return y.modifiers!==I||y.name!==N||y.body!==te?r(Mb(I,N,te,y.flags),y):y}function Yh(y){let I=B(265);return I.statements=F(y),I.transformFlags|=fo(I.statements),I.jsDoc=void 0,I}function ll(y,I){return y.statements!==I?r(Yh(I),y):y}function y1(y){let I=B(266);return I.clauses=F(y),I.transformFlags|=fo(I.clauses),I.locals=void 0,I.nextContainer=void 0,I}function lC(y,I){return y.clauses!==I?r(y1(I),y):y}function Ai(y){let I=q(267);return I.name=Zs(y),I.transformFlags|=fL(I.name)|1,I.modifiers=void 0,I.jsDoc=void 0,I}function Rr(y,I){return y.name!==I?gm(Ai(I),y):y}function gm(y,I){return y!==I&&(y.modifiers=I.modifiers),r(y,I)}function yd(y,I,N,te){let Me=q(268);return Me.modifiers=oo(y),Me.name=Zs(N),Me.isTypeOnly=I,Me.moduleReference=te,Me.transformFlags|=fo(Me.modifiers)|fL(Me.name)|tr(Me.moduleReference),um(Me.moduleReference)||(Me.transformFlags|=1),Me.transformFlags&=-67108865,Me.jsDoc=void 0,Me}function yE(y,I,N,te,Me){return y.modifiers!==I||y.isTypeOnly!==N||y.name!==te||y.moduleReference!==Me?r(yd(I,N,te,Me),y):y}function $h(y,I,N,te){let Me=B(269);return Me.modifiers=oo(y),Me.importClause=I,Me.moduleSpecifier=N,Me.assertClause=te,Me.transformFlags|=tr(Me.importClause)|tr(Me.moduleSpecifier),Me.transformFlags&=-67108865,Me.jsDoc=void 0,Me}function nh(y,I,N,te,Me){return y.modifiers!==I||y.importClause!==N||y.moduleSpecifier!==te||y.assertClause!==Me?r($h(I,N,te,Me),y):y}function ym(y,I,N){let te=q(270);return te.isTypeOnly=y,te.name=I,te.namedBindings=N,te.transformFlags|=tr(te.name)|tr(te.namedBindings),y&&(te.transformFlags|=1),te.transformFlags&=-67108865,te}function zs(y,I,N,te){return y.isTypeOnly!==I||y.name!==N||y.namedBindings!==te?r(ym(I,N,te),y):y}function Fb(y,I){let N=B(296);return N.elements=F(y),N.multiLine=I,N.transformFlags|=4,N}function v1(y,I,N){return y.elements!==I||y.multiLine!==N?r(Fb(I,N),y):y}function Gb(y,I){let N=B(297);return N.name=y,N.value=I,N.transformFlags|=4,N}function b1(y,I,N){return y.name!==I||y.value!==N?r(Gb(I,N),y):y}function Cf(y,I){let N=B(298);return N.assertClause=y,N.multiLine=I,N}function Tx(y,I,N){return y.assertClause!==I||y.multiLine!==N?r(Cf(I,N),y):y}function Sx(y){let I=q(271);return I.name=y,I.transformFlags|=tr(I.name),I.transformFlags&=-67108865,I}function xv(y,I){return y.name!==I?r(Sx(I),y):y}function E1(y){let I=q(277);return I.name=y,I.transformFlags|=tr(I.name)|4,I.transformFlags&=-67108865,I}function T1(y,I){return y.name!==I?r(E1(I),y):y}function xx(y){let I=B(272);return I.elements=F(y),I.transformFlags|=fo(I.elements),I.transformFlags&=-67108865,I}function Bb(y,I){return y.elements!==I?r(xx(I),y):y}function S1(y,I,N){let te=q(273);return te.isTypeOnly=y,te.propertyName=I,te.name=N,te.transformFlags|=tr(te.propertyName)|tr(te.name),te.transformFlags&=-67108865,te}function rf(y,I,N,te){return y.isTypeOnly!==I||y.propertyName!==N||y.name!==te?r(S1(I,N,te),y):y}function Qh(y,I,N){let te=q(274);return te.modifiers=oo(y),te.isExportEquals=I,te.expression=I?i().parenthesizeRightSideOfBinary(63,void 0,N):i().parenthesizeExpressionOfExportDefault(N),te.transformFlags|=fo(te.modifiers)|tr(te.expression),te.transformFlags&=-67108865,te.jsDoc=void 0,te}function Q_(y,I,N){return y.modifiers!==I||y.expression!==N?r(Qh(I,y.isExportEquals,N),y):y}function I_(y,I,N,te,Me){let Pt=q(275);return Pt.modifiers=oo(y),Pt.isTypeOnly=I,Pt.exportClause=N,Pt.moduleSpecifier=te,Pt.assertClause=Me,Pt.transformFlags|=fo(Pt.modifiers)|tr(Pt.exportClause)|tr(Pt.moduleSpecifier),Pt.transformFlags&=-67108865,Pt.jsDoc=void 0,Pt}function Ax(y,I,N,te,Me,Pt){return y.modifiers!==I||y.isTypeOnly!==N||y.exportClause!==te||y.moduleSpecifier!==Me||y.assertClause!==Pt?Ub(I_(I,N,te,Me,Pt),y):y}function Ub(y,I){return y!==I&&y.modifiers===I.modifiers&&(y.modifiers=I.modifiers),r(y,I)}function Lp(y){let I=B(276);return I.elements=F(y),I.transformFlags|=fo(I.elements),I.transformFlags&=-67108865,I}function x1(y,I){return y.elements!==I?r(Lp(I),y):y}function Uu(y,I,N){let te=B(278);return te.isTypeOnly=y,te.propertyName=Zs(I),te.name=Zs(N),te.transformFlags|=tr(te.propertyName)|tr(te.name),te.transformFlags&=-67108865,te.jsDoc=void 0,te}function Zh(y,I,N,te){return y.isTypeOnly!==I||y.propertyName!==N||y.name!==te?r(Uu(I,N,te),y):y}function kp(){let y=q(279);return y.jsDoc=void 0,y}function Dp(y){let I=B(280);return I.expression=y,I.transformFlags|=tr(I.expression),I.transformFlags&=-67108865,I}function eg(y,I){return y.expression!==I?r(Dp(I),y):y}function vE(y){return B(y)}function A1(y,I,N=!1){let te=ty(y,N?I&&i().parenthesizeNonArrayTypeOfPostfixType(I):I);return te.postfix=N,te}function ty(y,I){let N=B(y);return N.type=I,N}function bE(y,I,N){return I.type!==N?r(A1(y,N,I.postfix),I):I}function cs(y,I,N){return I.type!==N?r(ty(y,N),I):I}function ny(y,I){let N=q(320);return N.parameters=oo(y),N.type=I,N.transformFlags=fo(N.parameters)|(N.type?1:0),N.jsDoc=void 0,N.locals=void 0,N.nextContainer=void 0,N.typeArguments=void 0,N}function Cx(y,I,N){return y.parameters!==I||y.type!==N?r(ny(I,N),y):y}function Vb(y,I=!1){let N=q(325);return N.jsDocPropertyTags=oo(y),N.isArrayType=I,N}function jb(y,I,N){return y.jsDocPropertyTags!==I||y.isArrayType!==N?r(Vb(I,N),y):y}function Ix(y){let I=B(312);return I.type=y,I}function uC(y,I){return y.type!==I?r(Ix(I),y):y}function Lx(y,I,N){let te=q(326);return te.typeParameters=oo(y),te.parameters=F(I),te.type=N,te.jsDoc=void 0,te.locals=void 0,te.nextContainer=void 0,te}function Qn(y,I,N,te){return y.typeParameters!==I||y.parameters!==N||y.type!==te?r(Lx(I,N,te),y):y}function lc(y){let I=w4(y.kind);return y.tagName.escapedText===Bs(I)?y.tagName:_e(I)}function zi(y,I,N){let te=B(y);return te.tagName=I,te.comment=N,te}function af(y,I,N){let te=q(y);return te.tagName=I,te.comment=N,te}function Av(y,I,N,te){let Me=zi(348,y??_e("template"),te);return Me.constraint=I,Me.typeParameters=F(N),Me}function vm(y,I=lc(y),N,te,Me){return y.tagName!==I||y.constraint!==N||y.typeParameters!==te||y.comment!==Me?r(Av(I,N,te,Me),y):y}function Wn(y,I,N,te){let Me=af(349,y??_e("typedef"),te);return Me.typeExpression=I,Me.fullName=N,Me.name=iJ(N),Me.locals=void 0,Me.nextContainer=void 0,Me}function kx(y,I=lc(y),N,te,Me){return y.tagName!==I||y.typeExpression!==N||y.fullName!==te||y.comment!==Me?r(Wn(I,N,te,Me),y):y}function ry(y,I,N,te,Me,Pt){let Tr=af(344,y??_e("param"),Pt);return Tr.typeExpression=te,Tr.name=I,Tr.isNameFirst=!!Me,Tr.isBracketed=N,Tr}function nl(y,I=lc(y),N,te,Me,Pt,Tr){return y.tagName!==I||y.name!==N||y.isBracketed!==te||y.typeExpression!==Me||y.isNameFirst!==Pt||y.comment!==Tr?r(ry(I,N,te,Me,Pt,Tr),y):y}function Kf(y,I,N,te,Me,Pt){let Tr=af(351,y??_e("prop"),Pt);return Tr.typeExpression=te,Tr.name=I,Tr.isNameFirst=!!Me,Tr.isBracketed=N,Tr}function Z_(y,I=lc(y),N,te,Me,Pt,Tr){return y.tagName!==I||y.name!==N||y.isBracketed!==te||y.typeExpression!==Me||y.isNameFirst!==Pt||y.comment!==Tr?r(Kf(I,N,te,Me,Pt,Tr),y):y}function iy(y,I,N,te){let Me=af(341,y??_e("callback"),te);return Me.typeExpression=I,Me.fullName=N,Me.name=iJ(N),Me.locals=void 0,Me.nextContainer=void 0,Me}function EE(y,I=lc(y),N,te,Me){return y.tagName!==I||y.typeExpression!==N||y.fullName!==te||y.comment!==Me?r(iy(I,N,te,Me),y):y}function L_(y,I,N){let te=zi(342,y??_e("overload"),N);return te.typeExpression=I,te}function ay(y,I=lc(y),N,te){return y.tagName!==I||y.typeExpression!==N||y.comment!==te?r(L_(I,N,te),y):y}function Ac(y,I,N){let te=zi(331,y??_e("augments"),N);return te.class=I,te}function wc(y,I=lc(y),N,te){return y.tagName!==I||y.class!==N||y.comment!==te?r(Ac(I,N,te),y):y}function tg(y,I,N){let te=zi(332,y??_e("implements"),N);return te.class=I,te}function Fl(y,I,N){let te=zi(350,y??_e("see"),N);return te.name=I,te}function qf(y,I,N,te){return y.tagName!==I||y.name!==N||y.comment!==te?r(Fl(I,N,te),y):y}function bm(y){let I=B(313);return I.name=y,I}function nd(y,I){return y.name!==I?r(bm(I),y):y}function TE(y,I){let N=B(314);return N.left=y,N.right=I,N.transformFlags|=tr(N.left)|tr(N.right),N}function Hb(y,I,N){return y.left!==I||y.right!==N?r(TE(I,N),y):y}function Wb(y,I){let N=B(327);return N.name=y,N.text=I,N}function ep(y,I,N){return y.name!==I?r(Wb(I,N),y):y}function rh(y,I){let N=B(328);return N.name=y,N.text=I,N}function SE(y,I,N){return y.name!==I?r(rh(I,N),y):y}function oy(y,I){let N=B(329);return N.name=y,N.text=I,N}function uc(y,I,N){return y.name!==I?r(oy(I,N),y):y}function ng(y,I=lc(y),N,te){return y.tagName!==I||y.class!==N||y.comment!==te?r(tg(I,N,te),y):y}function ih(y,I,N){return zi(y,I??_e(w4(y)),N)}function Cv(y,I,N=lc(I),te){return I.tagName!==N||I.comment!==te?r(ih(y,N,te),I):I}function Iv(y,I,N,te){let Me=zi(y,I??_e(w4(y)),te);return Me.typeExpression=N,Me}function Gl(y,I,N=lc(I),te,Me){return I.tagName!==N||I.typeExpression!==te||I.comment!==Me?r(Iv(y,N,te,Me),I):I}function ah(y,I){return zi(330,y,I)}function qc(y,I,N){return y.tagName!==I||y.comment!==N?r(ah(I,N),y):y}function xE(y,I,N){let te=af(343,y??_e(w4(343)),N);return te.typeExpression=I,te.locals=void 0,te.nextContainer=void 0,te}function oh(y,I=lc(y),N,te){return y.tagName!==I||y.typeExpression!==N||y.comment!==te?r(xE(I,N,te),y):y}function zb(y){let I=B(324);return I.text=y,I}function Vu(y,I){return y.text!==I?r(zb(I),y):y}function Em(y,I){let N=B(323);return N.comment=y,N.tags=oo(I),N}function Jb(y,I,N){return y.comment!==I||y.tags!==N?r(Em(I,N),y):y}function Lv(y,I,N){let te=B(281);return te.openingElement=y,te.children=F(I),te.closingElement=N,te.transformFlags|=tr(te.openingElement)|fo(te.children)|tr(te.closingElement)|2,te}function AE(y,I,N,te){return y.openingElement!==I||y.children!==N||y.closingElement!==te?r(Lv(I,N,te),y):y}function sy(y,I,N){let te=B(282);return te.tagName=y,te.typeArguments=oo(I),te.attributes=N,te.transformFlags|=tr(te.tagName)|fo(te.typeArguments)|tr(te.attributes)|2,te.typeArguments&&(te.transformFlags|=1),te}function C1(y,I,N,te){return y.tagName!==I||y.typeArguments!==N||y.attributes!==te?r(sy(I,N,te),y):y}function kv(y,I,N){let te=B(283);return te.tagName=y,te.typeArguments=oo(I),te.attributes=N,te.transformFlags|=tr(te.tagName)|fo(te.typeArguments)|tr(te.attributes)|2,I&&(te.transformFlags|=1),te}function rg(y,I,N,te){return y.tagName!==I||y.typeArguments!==N||y.attributes!==te?r(kv(I,N,te),y):y}function of(y){let I=B(284);return I.tagName=y,I.transformFlags|=tr(I.tagName)|2,I}function CE(y,I){return y.tagName!==I?r(of(I),y):y}function Gd(y,I,N){let te=B(285);return te.openingFragment=y,te.children=F(I),te.closingFragment=N,te.transformFlags|=tr(te.openingFragment)|fo(te.children)|tr(te.closingFragment)|2,te}function sh(y,I,N,te){return y.openingFragment!==I||y.children!==N||y.closingFragment!==te?r(Gd(I,N,te),y):y}function Dv(y,I){let N=B(11);return N.text=y,N.containsOnlyTriviaWhiteSpaces=!!I,N.transformFlags|=2,N}function Dx(y,I,N){return y.text!==I||y.containsOnlyTriviaWhiteSpaces!==N?r(Dv(I,N),y):y}function No(){let y=B(286);return y.transformFlags|=2,y}function fr(){let y=B(287);return y.transformFlags|=2,y}function vd(y,I){let N=q(288);return N.name=y,N.initializer=I,N.transformFlags|=tr(N.name)|tr(N.initializer)|2,N}function ju(y,I,N){return y.name!==I||y.initializer!==N?r(vd(I,N),y):y}function I1(y){let I=q(289);return I.properties=F(y),I.transformFlags|=fo(I.properties)|2,I}function IE(y,I){return y.properties!==I?r(I1(I),y):y}function cy(y){let I=B(290);return I.expression=y,I.transformFlags|=tr(I.expression)|2,I}function wx(y,I){return y.expression!==I?r(cy(I),y):y}function ly(y,I){let N=B(291);return N.dotDotDotToken=y,N.expression=I,N.transformFlags|=tr(N.dotDotDotToken)|tr(N.expression)|2,N}function wp(y,I){return y.expression!==I?r(ly(y.dotDotDotToken,I),y):y}function tp(y,I){let N=B(292);return N.expression=i().parenthesizeExpressionForDisallowedComma(y),N.statements=F(I),N.transformFlags|=tr(N.expression)|fo(N.statements),N.jsDoc=void 0,N}function ig(y,I,N){return y.expression!==I||y.statements!==N?r(tp(I,N),y):y}function wv(y){let I=B(293);return I.statements=F(y),I.transformFlags=fo(I.statements),I}function ch(y,I){return y.statements!==I?r(wv(I),y):y}function Rp(y,I){let N=B(294);switch(N.token=y,N.types=F(I),N.transformFlags|=fo(N.types),y){case 94:N.transformFlags|=1024;break;case 117:N.transformFlags|=1;break;default:return L.assertNever(y)}return N}function L1(y,I){return y.types!==I?r(Rp(y.token,I),y):y}function Cc(y,I){let N=B(295);return N.variableDeclaration=zk(y),N.block=I,N.transformFlags|=tr(N.variableDeclaration)|tr(N.block)|(y?0:64),N.locals=void 0,N.nextContainer=void 0,N}function Bd(y,I,N){return y.variableDeclaration!==I||y.block!==N?r(Cc(I,N),y):y}function Tm(y,I){let N=q(299);return N.name=Zs(y),N.initializer=i().parenthesizeExpressionForDisallowedComma(I),N.transformFlags|=Gg(N.name)|tr(N.initializer),N.modifiers=void 0,N.questionToken=void 0,N.exclamationToken=void 0,N.jsDoc=void 0,N}function rd(y,I,N){return y.name!==I||y.initializer!==N?LE(Tm(I,N),y):y}function LE(y,I){return y!==I&&(y.modifiers=I.modifiers,y.questionToken=I.questionToken,y.exclamationToken=I.exclamationToken),r(y,I)}function uy(y,I){let N=q(300);return N.name=Zs(y),N.objectAssignmentInitializer=I&&i().parenthesizeExpressionForDisallowedComma(I),N.transformFlags|=fL(N.name)|tr(N.objectAssignmentInitializer)|1024,N.equalsToken=void 0,N.modifiers=void 0,N.questionToken=void 0,N.exclamationToken=void 0,N.jsDoc=void 0,N}function ag(y,I,N){return y.name!==I||y.objectAssignmentInitializer!==N?Rx(uy(I,N),y):y}function Rx(y,I){return y!==I&&(y.modifiers=I.modifiers,y.questionToken=I.questionToken,y.exclamationToken=I.exclamationToken,y.equalsToken=I.equalsToken),r(y,I)}function sf(y){let I=q(301);return I.expression=i().parenthesizeExpressionForDisallowedComma(y),I.transformFlags|=tr(I.expression)|128|65536,I.jsDoc=void 0,I}function ls(y,I){return y.expression!==I?r(sf(I),y):y}function kE(y,I){let N=q(302);return N.name=Zs(y),N.initializer=I&&i().parenthesizeExpressionForDisallowedComma(I),N.transformFlags|=tr(N.name)|tr(N.initializer)|1,N.jsDoc=void 0,N}function DE(y,I,N){return y.name!==I||y.initializer!==N?r(kE(I,N),y):y}function og(y,I,N){let te=t.createBaseSourceFileNode(308);return te.statements=F(y),te.endOfFileToken=I,te.flags|=N,te.text="",te.fileName="",te.path="",te.resolvedPath="",te.originalFileName="",te.languageVersion=0,te.languageVariant=0,te.scriptKind=0,te.isDeclarationFile=!1,te.hasNoDefaultLib=!1,te.transformFlags|=fo(te.statements)|tr(te.endOfFileToken),te.locals=void 0,te.nextContainer=void 0,te.endFlowNode=void 0,te.nodeCount=0,te.identifierCount=0,te.symbolCount=0,te.parseDiagnostics=void 0,te.bindDiagnostics=void 0,te.bindSuggestionDiagnostics=void 0,te.lineMap=void 0,te.externalModuleIndicator=void 0,te.setExternalModuleIndicator=void 0,te.pragmas=void 0,te.checkJsDirective=void 0,te.referencedFiles=void 0,te.typeReferenceDirectives=void 0,te.libReferenceDirectives=void 0,te.amdDependencies=void 0,te.commentDirectives=void 0,te.identifiers=void 0,te.packageJsonLocations=void 0,te.packageJsonScope=void 0,te.imports=void 0,te.moduleAugmentations=void 0,te.ambientModuleNames=void 0,te.resolvedModules=void 0,te.classifiableNames=void 0,te.impliedNodeFormat=void 0,te}function Rv(y){let I=Object.create(y.redirectTarget);return Object.defineProperties(I,{id:{get(){return this.redirectInfo.redirectTarget.id},set(N){this.redirectInfo.redirectTarget.id=N}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(N){this.redirectInfo.redirectTarget.symbol=N}}}),I.redirectInfo=y,I}function k1(y){let I=Rv(y.redirectInfo);return I.flags|=y.flags&-9,I.fileName=y.fileName,I.path=y.path,I.resolvedPath=y.resolvedPath,I.originalFileName=y.originalFileName,I.packageJsonLocations=y.packageJsonLocations,I.packageJsonScope=y.packageJsonScope,I.emitNode=void 0,I}function wE(y){let I=t.createBaseSourceFileNode(308);I.flags|=y.flags&-9;for(let N in y)if(!(fs(I,N)||!fs(y,N))){if(N==="emitNode"){I.emitNode=void 0;continue}I[N]=y[N]}return I}function RE(y){let I=y.redirectInfo?k1(y):wE(y);return Ir(I,y),I}function OE(y,I,N,te,Me,Pt,Tr){let Fi=RE(y);return Fi.statements=F(I),Fi.isDeclarationFile=N,Fi.referencedFiles=te,Fi.typeReferenceDirectives=Me,Fi.hasNoDefaultLib=Pt,Fi.libReferenceDirectives=Tr,Fi.transformFlags=fo(Fi.statements)|tr(Fi.endOfFileToken),Fi}function NE(y,I,N=y.isDeclarationFile,te=y.referencedFiles,Me=y.typeReferenceDirectives,Pt=y.hasNoDefaultLib,Tr=y.libReferenceDirectives){return y.statements!==I||y.isDeclarationFile!==N||y.referencedFiles!==te||y.typeReferenceDirectives!==Me||y.hasNoDefaultLib!==Pt||y.libReferenceDirectives!==Tr?r(OE(y,I,N,te,Me,Pt,Tr),y):y}function PE(y,I=Je){let N=B(309);return N.prepends=I,N.sourceFiles=y,N.syntheticFileReferences=void 0,N.syntheticTypeReferences=void 0,N.syntheticLibReferences=void 0,N.hasNoDefaultLib=void 0,N}function dy(y,I,N=Je){return y.sourceFiles!==I||y.prepends!==N?r(PE(I,N),y):y}function bd(y,I,N){let te=B(310);return te.prologues=y,te.syntheticReferences=I,te.texts=N,te.fileName="",te.text="",te.referencedFiles=Je,te.libReferenceDirectives=Je,te.getLineAndCharacterOfPosition=Me=>Gs(te,Me),te}function lh(y,I){let N=B(y);return N.data=I,N}function dC(y){return lh(303,y)}function sg(y,I){let N=lh(304,y);return N.texts=I,N}function Ox(y,I){return lh(I?306:305,y)}function Nx(y){let I=B(307);return I.data=y.data,I.section=y,I}function E(){let y=B(311);return y.javascriptText="",y.declarationText="",y}function ne(y,I=!1,N){let te=B(234);return te.type=y,te.isSpread=I,te.tupleNameSource=N,te}function Ee(y){let I=B(354);return I._children=y,I}function Wt(y){let I=B(355);return I.original=y,it(I,y),I}function lr(y,I){let N=B(356);return N.expression=y,N.original=I,N.transformFlags|=tr(N.expression)|1,it(N,I),N}function ci(y,I){return y.expression!==I?r(lr(I,y.original),y):y}function qr(y){if(ws(y)&&!dI(y)&&!y.original&&!y.emitNode&&!y.id){if(SL(y))return y.elements;if(ar(y)&&Cue(y.operatorToken))return[y.left,y.right]}return y}function Ti(y){let I=B(357);return I.elements=F(lae(y,qr)),I.transformFlags|=fo(I.elements),I}function Wa(y,I){return y.elements!==I?r(Ti(I),y):y}function kl(y){let I=B(359);return I.emitNode={},I.original=y,I}function Ed(y){let I=B(358);return I.emitNode={},I.original=y,I}function Ud(y,I){let N=B(360);return N.expression=y,N.thisArg=I,N.transformFlags|=tr(N.expression)|tr(N.thisArg),N}function fy(y,I,N){return y.expression!==I||y.thisArg!==N?r(Ud(I,N),y):y}function Td(y){let I=re(y.escapedText);return I.flags|=y.flags&-9,I.transformFlags=y.transformFlags,Ir(I,y),iO(I,{...y.emitNode.autoGenerate}),I}function Ov(y){let I=re(y.escapedText);I.flags|=y.flags&-9,I.jsDoc=y.jsDoc,I.flowNode=y.flowNode,I.symbol=y.symbol,I.transformFlags=y.transformFlags,Ir(I,y);let N=NT(y);return N&&Ug(I,N),I}function Nv(y){let I=ke(y.escapedText);return I.flags|=y.flags&-9,I.transformFlags=y.transformFlags,Ir(I,y),iO(I,{...y.emitNode.autoGenerate}),I}function _y(y){let I=ke(y.escapedText);return I.flags|=y.flags&-9,I.transformFlags=y.transformFlags,Ir(I,y),I}function Xf(y){if(y===void 0)return y;if(Li(y))return RE(y);if(tc(y))return Td(y);if(Re(y))return Ov(y);if(tS(y))return Nv(y);if(pi(y))return _y(y);let I=Iw(y.kind)?t.createBaseNode(y.kind):t.createBaseTokenNode(y.kind);I.flags|=y.flags&-9,I.transformFlags=y.transformFlags,Ir(I,y);for(let N in y)fs(I,N)||!fs(y,N)||(I[N]=y[N]);return I}function ME(y,I,N){return bn(Ea(void 0,void 0,void 0,void 0,I?[I]:[],void 0,zh(y,!0)),void 0,N?[N]:[])}function cf(y,I,N){return bn(Qo(void 0,void 0,I?[I]:[],void 0,void 0,zh(y,!0)),void 0,N?[N]:[])}function Sm(){return Zl(Y("0"))}function py(y){return Qh(void 0,!1,y)}function If(y){return I_(void 0,!1,Lp([Uu(!1,void 0,y)]))}function FE(y,I){return I==="undefined"?P.createStrictEquality(y,Sm()):P.createStrictEquality(Dc(y),$(I))}function Pv(y,I,N){return dT(y)?io($o(y,void 0,I),void 0,void 0,N):bn(Uc(y,I),void 0,N)}function Vc(y,I,N){return Pv(y,"bind",[I,...N])}function KP(y,I,N){return Pv(y,"call",[I,...N])}function Zo(y,I,N){return Pv(y,"apply",[I,N])}function Ro(y,I,N){return Pv(_e(y),I,N)}function Px(y,I){return Pv(y,"slice",I===void 0?[]:[Fv(I)])}function Mx(y,I){return Pv(y,"concat",I)}function V(y,I,N){return Ro("Object","defineProperty",[y,Fv(I),N])}function me(y,I){return Ro("Object","getOwnPropertyDescriptor",[y,Fv(I)])}function Ue(y,I,N){return Ro("Reflect","get",N?[y,I,N]:[y,I])}function ut(y,I,N,te){return Ro("Reflect","set",te?[y,I,N,te]:[y,I,N])}function Lt(y,I,N){return N?(y.push(Tm(I,N)),!0):!1}function dn(y,I){let N=[];Lt(N,"enumerable",Fv(y.enumerable)),Lt(N,"configurable",Fv(y.configurable));let te=Lt(N,"writable",Fv(y.writable));te=Lt(N,"value",y.value)||te;let Me=Lt(N,"get",y.get);return Me=Lt(N,"set",y.set)||Me,L.assert(!(te&&Me),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),vo(N,!I)}function Er(y,I){switch(y.kind){case 214:return gi(y,I);case 213:return mr(y,y.type,I);case 231:return mv(y,I,y.type);case 235:return Wh(y,I,y.type);case 232:return _1(y,I);case 356:return ci(y,I)}}function ii(y){return ud(y)&&ws(y)&&ws(pb(y))&&ws(sm(y))&&!vt(l2(y))&&!vt(rO(y))}function li(y,I,N=15){return y&&S3(y,N)&&!ii(y)?Er(y,li(y.expression,I)):I}function di(y,I,N){if(!I)return y;let te=h1(I,I.label,J0(I.statement)?di(y,I.statement):y);return N&&N(I),te}function ma(y,I){let N=vs(y);switch(N.kind){case 79:return I;case 108:case 8:case 9:case 10:return!1;case 206:return N.elements.length!==0;case 207:return N.properties.length>0;default:return!0}}function is(y,I,N,te=!1){let Me=ql(y,15),Pt,Tr;return Pu(Me)?(Pt=_t(),Tr=Me):hL(Me)?(Pt=_t(),Tr=N!==void 0&&N<2?it(_e("_super"),Me):Me):Ya(Me)&8192?(Pt=Sm(),Tr=i().parenthesizeLeftSideOfAccess(Me,!1)):br(Me)?ma(Me.expression,te)?(Pt=ge(I),Tr=Uc(it(P.createAssignment(Pt,Me.expression),Me.expression),Me.name),it(Tr,Me)):(Pt=Me.expression,Tr=Me):Vs(Me)?ma(Me.expression,te)?(Pt=ge(I),Tr=hd(it(P.createAssignment(Pt,Me.expression),Me.expression),Me.argumentExpression),it(Tr,Me)):(Pt=Me.expression,Tr=Me):(Pt=Sm(),Tr=i().parenthesizeLeftSideOfAccess(y,!1)),{target:Tr,thisArg:Pt}}function ao(y,I){return Uc(Vr(vo([Q(void 0,"value",[ui(void 0,void 0,y,void 0,void 0,void 0)],zh([yv(I)]))])),"value")}function Oo(y){return y.length>10?Ti(y):ou(y,P.createComma)}function id(y,I,N,te=0){let Me=sa(y);if(Me&&Re(Me)&&!tc(Me)){let Pt=go(it(Xf(Me),Me),Me.parent);return te|=Ya(Me),N||(te|=96),I||(te|=3072),te&&Jn(Pt,te),Pt}return we(y)}function np(y,I,N){return id(y,I,N,98304)}function Op(y,I,N){return id(y,I,N,32768)}function cg(y,I,N){return id(y,I,N,16384)}function Yf(y,I,N){return id(y,I,N)}function my(y,I,N,te){let Me=Uc(y,ws(I)?I:Xf(I));it(Me,I);let Pt=0;return te||(Pt|=96),N||(Pt|=3072),Pt&&Jn(Me,Pt),Me}function Fx(y,I,N,te){return y&&Mr(I,1)?my(y,id(I),N,te):cg(I,N,te)}function GE(y,I,N,te){let Me=Mv(y,I,0,N);return _C(y,I,Me,te)}function fC(y){return yo(y.expression)&&y.expression.text==="use strict"}function k_(){return mu(yv($("use strict")))}function Mv(y,I,N=0,te){L.assert(I.length===0,"Prologue directives should be at the first statement in the target statements array");let Me=!1,Pt=y.length;for(;N<Pt;){let Tr=y[N];if(B_(Tr))fC(Tr)&&(Me=!0),I.push(Tr);else break;N++}return te&&!Me&&I.push(k_()),N}function _C(y,I,N,te,Me=h0){let Pt=y.length;for(;N!==void 0&&N<Pt;){let Tr=y[N];if(Ya(Tr)&2097152&&Me(Tr))Sn(I,te?$e(Tr,te,ca):Tr);else break;N++}return N}function lf(y){return tJ(y)?y:it(F([k_(),...y]),y)}function Gx(y){return L.assert(Ji(y,Ese),"Cannot lift nodes to a Block."),Wp(y)||zh(y)}function hy(y,I,N){let te=N;for(;te<y.length&&I(y[te]);)te++;return te}function jk(y,I){if(!vt(I))return y;let N=hy(y,B_,0),te=hy(y,C6,N),Me=hy(y,I6,te),Pt=hy(I,B_,0),Tr=hy(I,C6,Pt),Fi=hy(I,I6,Tr),Da=hy(I,A6,Fi);L.assert(Da===I.length,"Expected declarations to be valid standard or custom prologues");let Vd=C0(y)?y.slice():y;if(Da>Fi&&Vd.splice(Me,0,...I.slice(Fi,Da)),Fi>Tr&&Vd.splice(te,0,...I.slice(Tr,Fi)),Tr>Pt&&Vd.splice(N,0,...I.slice(Pt,Tr)),Pt>0)if(N===0)Vd.splice(0,0,...I.slice(0,Pt));else{let lg=new Map;for(let ug=0;ug<N;ug++){let dg=y[ug];lg.set(dg.expression.text,!0)}for(let ug=Pt-1;ug>=0;ug--){let dg=I[ug];lg.has(dg.expression.text)||Vd.unshift(dg)}}return C0(y)?it(F(Vd,y.hasTrailingComma),y):y}function Hk(y,I){var N;let te;return typeof I=="number"?te=zt(I):te=I,_c(y)?$n(y,te,y.name,y.constraint,y.default):ha(y)?Ni(y,te,y.dotDotDotToken,y.name,y.questionToken,y.type,y.initializer):yL(y)?Hn(y,te,y.typeParameters,y.parameters,y.type):$d(y)?nn(y,te,y.name,y.questionToken,y.type):Na(y)?An(y,te,y.name,(N=y.questionToken)!=null?N:y.exclamationToken,y.type,y.initializer):zm(y)?hi(y,te,y.name,y.questionToken,y.typeParameters,y.parameters,y.type):Nc(y)?vn(y,te,y.asteriskToken,y.name,y.questionToken,y.typeParameters,y.parameters,y.type,y.body):Ec(y)?at(y,te,y.parameters,y.body):p_(y)?nt(y,te,y.name,y.parameters,y.type,y.body):Sf(y)?ue(y,te,y.name,y.parameters,y.body):kS(y)?ln(y,te,y.parameters,y.type):ms(y)?bo(y,te,y.asteriskToken,y.name,y.typeParameters,y.parameters,y.type,y.body):xs(y)?Cs(y,te,y.typeParameters,y.parameters,y.type,y.equalsGreaterThanToken,y.body):_u(y)?Mc(y,te,y.name,y.typeParameters,y.heritageClauses,y.members):Bc(y)?dE(y,te,y.declarationList):Jc(y)?Sv(y,te,y.asteriskToken,y.name,y.typeParameters,y.parameters,y.type,y.body):sl(y)?wo(y,te,y.name,y.typeParameters,y.heritageClauses,y.members):ku(y)?gE(y,te,y.name,y.typeParameters,y.heritageClauses,y.members):Ep(y)?th(y,te,y.name,y.typeParameters,y.type):hb(y)?C_(y,te,y.name,y.members):Tc(y)?Ml(y,te,y.name,y.body):Nl(y)?yE(y,te,y.isTypeOnly,y.name,y.moduleReference):gl(y)?nh(y,te,y.importClause,y.moduleSpecifier,y.assertClause):pc(y)?Q_(y,te,y.expression):Il(y)?Ax(y,te,y.isTypeOnly,y.exportClause,y.moduleSpecifier,y.assertClause):L.assertNever(y)}function oo(y){return y?F(y):void 0}function Zs(y){return typeof y=="string"?_e(y):y}function Fv(y){return typeof y=="string"?$(y):typeof y=="number"?Y(y):typeof y=="boolean"?y?Rt():We():y}function gy(y){return y&&i().parenthesizeExpressionForDisallowedComma(y)}function Wk(y){return typeof y=="number"?Le(y):y}function ad(y){return y&&Gz(y)?it(Ir(fE(),y),y):y}function zk(y){return typeof y=="string"||y&&!wi(y)?Fe(y,void 0,void 0,void 0):y}}function CRe(e,t){return e!==t&&it(e,t),e}function IRe(e,t){return e!==t&&(Ir(e,t),it(e,t)),e}function w4(e){switch(e){case 347:return"type";case 345:return"returns";case 346:return"this";case 343:return"enum";case 333:return"author";case 335:return"class";case 336:return"public";case 337:return"private";case 338:return"protected";case 339:return"readonly";case 340:return"override";case 348:return"template";case 349:return"typedef";case 344:return"param";case 351:return"prop";case 341:return"callback";case 342:return"overload";case 331:return"augments";case 332:return"implements";default:return L.fail(`Unsupported kind: ${L.formatSyntaxKind(e)}`)}}function LRe(e,t){switch(Ph||(Ph=kg(99,!1,0)),e){case 14:Ph.setText("`"+t+"`");break;case 15:Ph.setText("`"+t+"${");break;case 16:Ph.setText("}"+t+"${");break;case 17:Ph.setText("}"+t+"`");break}let r=Ph.scan();if(r===19&&(r=Ph.reScanTemplateToken(!1)),Ph.isUnterminated())return Ph.setText(void 0),gz;let i;switch(r){case 14:case 15:case 16:case 17:i=Ph.getTokenValue();break}return i===void 0||Ph.scan()!==1?(Ph.setText(void 0),gz):(Ph.setText(void 0),i)}function Gg(e){return e&&Re(e)?fL(e):tr(e)}function fL(e){return tr(e)&-67108865}function kRe(e,t){return t|e.transformFlags&134234112}function tr(e){if(!e)return 0;let t=e.transformFlags&~uue(e.kind);return zl(e)&&Ys(e.name)?kRe(e.name,t):t}function fo(e){return e?e.transformFlags:0}function lue(e){let t=0;for(let r of e)t|=tr(r);e.transformFlags=t}function uue(e){if(e>=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:return-2147450880;case 264:return-1941676032;case 166:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112;case 203:case 204:return-2147450880;case 213:case 235:case 231:case 356:case 214:case 106:return-2147483648;case 208:case 209:return-2147483648;default:return-2147483648}}function $R(e){return e.flags|=8,e}function fz(e,t,r){let i,o,s,l,f,d,g,m,v,S;Ta(e)?(s="",l=e,f=e.length,d=t,g=r):(L.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",d=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,v=()=>t==="js"?e.javascriptMapText:e.declarationMapText,f=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(L.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));let x=S?wRe(L.checkDefined(o)):DRe(o,i,f);return x.fileName=s,x.sourceMapPath=d,x.oldFileOfCurrentEmit=S,m&&v?(Object.defineProperty(x,"text",{get:m}),Object.defineProperty(x,"sourceMapText",{get:v})):(L.assert(!S),x.text=l??"",x.sourceMapText=g),x}function DRe(e,t,r){let i,o,s,l,f,d,g,m;for(let S of e?e.sections:Je)switch(S.kind){case"prologue":i=Sn(i,it(D.createUnparsedPrologue(S.data),S));break;case"emitHelpers":o=Sn(o,xz().get(S.data));break;case"no-default-lib":m=!0;break;case"reference":s=Sn(s,{pos:-1,end:-1,fileName:S.data});break;case"type":l=Sn(l,{pos:-1,end:-1,fileName:S.data});break;case"type-import":l=Sn(l,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":l=Sn(l,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":f=Sn(f,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let x;for(let A of S.texts)(!t||A.kind!=="internal")&&(x=Sn(x,it(D.createUnparsedTextLike(A.data,A.kind==="internal"),A)));d=si(d,x),g=Sn(g,D.createUnparsedPrepend(S.data,x??Je));break;case"internal":if(t){g||(g=[]);break}case"text":g=Sn(g,it(D.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:L.assertNever(S)}if(!g){let S=D.createUnparsedTextLike(void 0,!1);oL(S,0,typeof r=="function"?r():r),g=[S]}let v=fm.createUnparsedSource(i??Je,void 0,g);return i2(i,v),i2(g,v),i2(d,v),v.hasNoDefaultLib=m,v.helpers=o,v.referencedFiles=s||Je,v.typeReferenceDirectives=l,v.libReferenceDirectives=f||Je,v}function wRe(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=Sn(t,it(D.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=Sn(r,it(D.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:L.assertNever(o)}let i=D.createUnparsedSource(Je,r,t??Je);return i2(r,i),i2(t,i),i.helpers=on(e.sources&&e.sources.helpers,o=>xz().get(o)),i}function RRe(e,t,r,i,o,s){return Ta(e)?pz(void 0,e,r,i,void 0,t,o,s):_z(e,t,r,i,o,s)}function _z(e,t,r,i,o,s,l,f){let d=fm.createInputFiles();d.javascriptPath=t,d.javascriptMapPath=r,d.declarationPath=i,d.declarationMapPath=o,d.buildInfoPath=s;let g=new Map,m=A=>{if(A===void 0)return;let w=g.get(A);return w===void 0&&(w=e(A),g.set(A,w!==void 0?w:!1)),w!==!1?w:void 0},v=A=>{let w=m(A);return w!==void 0?w:`/* Input file ${A} was missing */\r
| `},S;return Object.defineProperties(d,{javascriptText:{get:()=>v(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>v(L.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{var A,w;if(S===void 0&&s)if(l?.getBuildInfo)S=(A=l.getBuildInfo(s,f.configFilePath))!=null?A:!1;else{let C=m(s);S=C!==void 0&&(w=IF(s,C))!=null?w:!1}return S||void 0}}}),d}function pz(e,t,r,i,o,s,l,f,d,g,m){let v=fm.createInputFiles();return v.javascriptPath=e,v.javascriptText=t,v.javascriptMapPath=r,v.javascriptMapText=i,v.declarationPath=o,v.declarationText=s,v.declarationMapPath=l,v.declarationMapText=f,v.buildInfoPath=d,v.buildInfo=g,v.oldFileOfCurrentEmit=m,v}function ORe(e,t,r){return new(fue||(fue=ml.getSourceMapSourceConstructor()))(e,t,r)}function Ir(e,t){if(e.original=t,t){let r=t.emitNode;r&&(e.emitNode=NRe(r,e.emitNode))}return e}function NRe(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:f,tokenSourceMapRanges:d,constantValue:g,helpers:m,startsOnNewLine:v,snippetElement:S}=e;if(t||(t={}),o&&(t.leadingComments=si(o.slice(),t.leadingComments)),s&&(t.trailingComments=si(s.slice(),t.trailingComments)),r&&(t.flags=r),i&&(t.internalFlags=i&-9),l&&(t.commentRange=l),f&&(t.sourceMapRange=f),d&&(t.tokenSourceMapRanges=PRe(d,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),m)for(let x of m)t.helpers=xg(t.helpers,x);return v!==void 0&&(t.startsOnNewLine=v),S!==void 0&&(t.snippetElement=S),t}function PRe(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var QR,mz,hz,Ph,gz,_L,due,D,fue,MRe=gt({"src/compiler/factory/nodeFactory.ts"(){"use strict";fa(),QR=0,mz=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(mz||{}),hz=[],gz={},_L=oue(),due={createBaseSourceFileNode:e=>$R(_L.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>$R(_L.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>$R(_L.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>$R(_L.createBaseTokenNode(e)),createBaseNode:e=>$R(_L.createBaseNode(e))},D=YR(4,due)}});function Lu(e){var t;if(e.emitNode)L.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(dI(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};let r=(t=Gn(ea(Gn(e))))!=null?t:L.fail("Could not determine parsed source file.");Lu(r).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function yz(e){var t,r;let i=(r=(t=Gn(ea(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function ZR(e){let t=Lu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Jn(e,t){return Lu(e).flags=t,e}function bp(e,t){let r=Lu(e);return r.flags=r.flags|t,e}function eO(e,t){return Lu(e).internalFlags=t,e}function SS(e,t){let r=Lu(e);return r.internalFlags=r.internalFlags|t,e}function pb(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.sourceMapRange)!=null?r:e}function Ho(e,t){return Lu(e).sourceMapRange=t,e}function FRe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function _ue(e,t,r){var i;let o=Lu(e),s=(i=o.tokenSourceMapRanges)!=null?i:o.tokenSourceMapRanges=[];return s[t]=r,e}function tO(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function vz(e,t){return Lu(e).startsOnNewLine=t,e}function sm(e){var t,r;return(r=(t=e.emitNode)==null?void 0:t.commentRange)!=null?r:e}function hl(e,t){return Lu(e).commentRange=t,e}function l2(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function W0(e,t){return Lu(e).leadingComments=t,e}function nO(e,t,r,i){return W0(e,Sn(l2(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function rO(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function u2(e,t){return Lu(e).trailingComments=t,e}function R4(e,t,r,i){return u2(e,Sn(rO(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function pue(e,t){W0(e,l2(t)),u2(e,rO(t));let r=Lu(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function mue(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function hue(e,t){let r=Lu(e);return r.constantValue=t,e}function xS(e,t){let r=Lu(e);return r.helpers=Sn(r.helpers,t),e}function Bg(e,t){if(vt(t)){let r=Lu(e);for(let i of t)r.helpers=xg(r.helpers,i)}return e}function GRe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?m8(i,t):!1}function O4(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function gue(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!vt(o))return;let s=Lu(t),l=0;for(let f=0;f<o.length;f++){let d=o[f];r(d)?(l++,s.helpers=xg(s.helpers,d)):l>0&&(o[f-l]=d)}l>0&&(o.length-=l)}function bz(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function Ez(e,t){let r=Lu(e);return r.snippetElement=t,e}function Tz(e){return Lu(e).internalFlags|=4,e}function yue(e,t){let r=Lu(e);return r.typeNode=t,e}function vue(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Ug(e,t){return Lu(e).identifierTypeArguments=t,e}function NT(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function iO(e,t){return Lu(e).autoGenerate=t,e}function BRe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function bue(e,t){return Lu(e).generatedImportReference=t,e}function Eue(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var URe=gt({"src/compiler/factory/emitNode.ts"(){"use strict";fa()}});function Tue(e){let t=e.factory,r=zu(()=>eO(t.createTrue(),8)),i=zu(()=>eO(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:f,createESDecorateHelper:w,createRunInitializersHelper:C,createAssignHelper:P,createAwaitHelper:F,createAsyncGeneratorHelper:B,createAsyncDelegatorHelper:q,createAsyncValuesHelper:W,createRestHelper:Y,createAwaiterHelper:R,createExtendsHelper:ie,createTemplateObjectHelper:$,createSpreadArrayHelper:fe,createPropKeyHelper:Z,createSetFunctionNameHelper:U,createValuesHelper:re,createReadHelper:le,createGeneratorHelper:_e,createCreateBindingHelper:ge,createImportStarHelper:X,createImportStarCallbackHelper:Ve,createImportDefaultHelper:we,createExportStarHelper:ke,createClassPrivateFieldGetHelper:Pe,createClassPrivateFieldSetHelper:Ce,createClassPrivateFieldInHelper:Ie};function o(Be){return Jn(t.createIdentifier(Be),8196)}function s(Be,Ne,Le,Ye){e.requestEmitHelper(N4);let _t=[];return _t.push(t.createArrayLiteralExpression(Be,!0)),_t.push(Ne),Le&&(_t.push(Le),Ye&&_t.push(Ye)),t.createCallExpression(o("__decorate"),void 0,_t)}function l(Be,Ne){return e.requestEmitHelper(P4),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(Be),Ne])}function f(Be,Ne,Le){return e.requestEmitHelper(M4),it(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Ne+""),Be]),Le)}function d(Be){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),Be.name)])}function g(Be){let Ne=Be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Be.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Ne))}function m(Be){let Ne=Be.computed?t.createElementAccessExpression(t.createIdentifier("obj"),Be.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),Be.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Ne,t.createIdentifier("value")))])))}function v(Be){let Ne=Be.computed?Be.name:Re(Be.name)?t.createStringLiteralFromNode(Be.name):Be.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Ne,101,t.createIdentifier("obj"))))}function S(Be,Ne){let Le=[];return Le.push(v(Be)),Ne.get&&Le.push(g(Be)),Ne.set&&Le.push(m(Be)),t.createObjectLiteralExpression(Le)}function x(Be){return t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(Be.kind)),t.createPropertyAssignment(t.createIdentifier("name"),Be.name.computed?Be.name.name:t.createStringLiteralFromNode(Be.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),Be.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),Be.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(Be.name,Be.access))])}function A(Be){return Be.kind==="class"?d(Be):x(Be)}function w(Be,Ne,Le,Ye,_t,ct){return e.requestEmitHelper(F4),t.createCallExpression(o("__esDecorate"),void 0,[Be??t.createNull(),Ne??t.createNull(),Le,A(Ye),_t,ct])}function C(Be,Ne,Le){return e.requestEmitHelper(G4),t.createCallExpression(o("__runInitializers"),void 0,Le?[Be,Ne,Le]:[Be,Ne])}function P(Be){return Do(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,Be):(e.requestEmitHelper(B4),t.createCallExpression(o("__assign"),void 0,Be))}function F(Be){return e.requestEmitHelper(AS),t.createCallExpression(o("__await"),void 0,[Be])}function B(Be,Ne){return e.requestEmitHelper(AS),e.requestEmitHelper(U4),(Be.emitNode||(Be.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Ne?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),Be])}function q(Be){return e.requestEmitHelper(AS),e.requestEmitHelper(V4),t.createCallExpression(o("__asyncDelegator"),void 0,[Be])}function W(Be){return e.requestEmitHelper(j4),t.createCallExpression(o("__asyncValues"),void 0,[Be])}function Y(Be,Ne,Le,Ye){e.requestEmitHelper(H4);let _t=[],ct=0;for(let Rt=0;Rt<Ne.length-1;Rt++){let We=rJ(Ne[Rt]);if(We)if(ts(We)){L.assertIsDefined(Le,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let qe=Le[ct];ct++,_t.push(t.createConditionalExpression(t.createTypeCheck(qe,"symbol"),void 0,qe,void 0,t.createAdd(qe,t.createStringLiteral(""))))}else _t.push(t.createStringLiteralFromNode(We))}return t.createCallExpression(o("__rest"),void 0,[Be,it(t.createArrayLiteralExpression(_t),Ye)])}function R(Be,Ne,Le,Ye){e.requestEmitHelper(W4);let _t=t.createFunctionExpression(void 0,t.createToken(41),void 0,void 0,[],void 0,Ye);return(_t.emitNode||(_t.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[Be?t.createThis():t.createVoidZero(),Ne?t.createIdentifier("arguments"):t.createVoidZero(),Le?EO(t,Le):t.createVoidZero(),_t])}function ie(Be){return e.requestEmitHelper(z4),t.createCallExpression(o("__extends"),void 0,[Be,t.createUniqueName("_super",48)])}function $(Be,Ne){return e.requestEmitHelper(J4),t.createCallExpression(o("__makeTemplateObject"),void 0,[Be,Ne])}function fe(Be,Ne,Le){return e.requestEmitHelper(q4),t.createCallExpression(o("__spreadArray"),void 0,[Be,Ne,Le?r():i()])}function Z(Be){return e.requestEmitHelper(X4),t.createCallExpression(o("__propKey"),void 0,[Be])}function U(Be,Ne,Le){return e.requestEmitHelper(Y4),e.factory.createCallExpression(o("__setFunctionName"),void 0,Le?[Be,Ne,e.factory.createStringLiteral(Le)]:[Be,Ne])}function re(Be){return e.requestEmitHelper($4),t.createCallExpression(o("__values"),void 0,[Be])}function le(Be,Ne){return e.requestEmitHelper(K4),t.createCallExpression(o("__read"),void 0,Ne!==void 0?[Be,t.createNumericLiteral(Ne+"")]:[Be])}function _e(Be){return e.requestEmitHelper(Q4),t.createCallExpression(o("__generator"),void 0,[t.createThis(),Be])}function ge(Be,Ne,Le){return e.requestEmitHelper(d2),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),Be,Ne,...Le?[Le]:[]])}function X(Be){return e.requestEmitHelper(aO),t.createCallExpression(o("__importStar"),void 0,[Be])}function Ve(){return e.requestEmitHelper(aO),o("__importStar")}function we(Be){return e.requestEmitHelper(e3),t.createCallExpression(o("__importDefault"),void 0,[Be])}function ke(Be,Ne=t.createIdentifier("exports")){return e.requestEmitHelper(t3),e.requestEmitHelper(d2),t.createCallExpression(o("__exportStar"),void 0,[Be,Ne])}function Pe(Be,Ne,Le,Ye){e.requestEmitHelper(n3);let _t;return Ye?_t=[Be,Ne,t.createStringLiteral(Le),Ye]:_t=[Be,Ne,t.createStringLiteral(Le)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,_t)}function Ce(Be,Ne,Le,Ye,_t){e.requestEmitHelper(r3);let ct;return _t?ct=[Be,Ne,Le,t.createStringLiteral(Ye),_t]:ct=[Be,Ne,Le,t.createStringLiteral(Ye)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,ct)}function Ie(Be,Ne){return e.requestEmitHelper(i3),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[Be,Ne])}}function Sue(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:Es(e.priority,t.priority)}function Sz(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function xz(){return xue||(xue=p0([N4,P4,M4,F4,G4,B4,AS,U4,V4,j4,H4,W4,z4,J4,q4,$4,K4,X4,Y4,Q4,aO,e3,t3,n3,r3,i3,d2,Z4],e=>e.name))}function pL(e,t){return Pa(e)&&Re(e.expression)&&(Ya(e.expression)&8192)!==0&&e.expression.escapedText===t}var Az,N4,P4,M4,F4,G4,B4,AS,U4,V4,j4,H4,W4,z4,J4,K4,q4,X4,Y4,$4,Q4,d2,Z4,aO,e3,t3,n3,r3,i3,xue,oO,sO,VRe=gt({"src/compiler/factory/emitHelpers.ts"(){"use strict";fa(),Az=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Az||{}),N4={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
| var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
| var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
| if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
| else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
| return c > 3 && r && Object.defineProperty(target, key, r), r;
| };`},P4={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
| var __metadata = (this && this.__metadata) || function (k, v) {
| if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
| };`},M4={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
| var __param = (this && this.__param) || function (paramIndex, decorator) {
| return function (target, key) { decorator(target, key, paramIndex); }
| };`},F4={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
| var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
| function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
| var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
| var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
| var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
| var _, done = false;
| for (var i = decorators.length - 1; i >= 0; i--) {
| var context = {};
| for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
| for (var p in contextIn.access) context.access[p] = contextIn.access[p];
| context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
| var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
| if (kind === "accessor") {
| if (result === void 0) continue;
| if (result === null || typeof result !== "object") throw new TypeError("Object expected");
| if (_ = accept(result.get)) descriptor.get = _;
| if (_ = accept(result.set)) descriptor.set = _;
| if (_ = accept(result.init)) initializers.push(_);
| }
| else if (_ = accept(result)) {
| if (kind === "field") initializers.push(_);
| else descriptor[key] = _;
| }
| }
| if (target) Object.defineProperty(target, contextIn.name, descriptor);
| done = true;
| };`},G4={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
| var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
| var useValue = arguments.length > 2;
| for (var i = 0; i < initializers.length; i++) {
| value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
| }
| return useValue ? value : void 0;
| };`},B4={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
| var __assign = (this && this.__assign) || function () {
| __assign = Object.assign || function(t) {
| for (var s, i = 1, n = arguments.length; i < n; i++) {
| s = arguments[i];
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
| t[p] = s[p];
| }
| return t;
| };
| return __assign.apply(this, arguments);
| };`},AS={name:"typescript:await",importName:"__await",scoped:!1,text:`
| var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},U4={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[AS],text:`
| var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
| if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
| var g = generator.apply(thisArg, _arguments || []), i, q = [];
| return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
| function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
| function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
| function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
| function fulfill(value) { resume("next", value); }
| function reject(value) { resume("throw", value); }
| function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
| };`},V4={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[AS],text:`
| var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
| var i, p;
| return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
| function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
| };`},j4={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
| var __asyncValues = (this && this.__asyncValues) || function (o) {
| if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
| var m = o[Symbol.asyncIterator], i;
| return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
| function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
| function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
| };`},H4={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
| var __rest = (this && this.__rest) || function (s, e) {
| var t = {};
| for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
| t[p] = s[p];
| if (s != null && typeof Object.getOwnPropertySymbols === "function")
| for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
| if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
| t[p[i]] = s[p[i]];
| }
| return t;
| };`},W4={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
| function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
| return new (P || (P = Promise))(function (resolve, reject) {
| function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
| function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
| function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
| step((generator = generator.apply(thisArg, _arguments || [])).next());
| });
| };`},z4={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
| var __extends = (this && this.__extends) || (function () {
| var extendStatics = function (d, b) {
| extendStatics = Object.setPrototypeOf ||
| ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
| function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
| return extendStatics(d, b);
| };
|
| return function (d, b) {
| if (typeof b !== "function" && b !== null)
| throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
| extendStatics(d, b);
| function __() { this.constructor = d; }
| d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
| };
| })();`},J4={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
| var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
| if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
| return cooked;
| };`},K4={name:"typescript:read",importName:"__read",scoped:!1,text:`
| var __read = (this && this.__read) || function (o, n) {
| var m = typeof Symbol === "function" && o[Symbol.iterator];
| if (!m) return o;
| var i = m.call(o), r, ar = [], e;
| try {
| while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
| }
| catch (error) { e = { error: error }; }
| finally {
| try {
| if (r && !r.done && (m = i["return"])) m.call(i);
| }
| finally { if (e) throw e.error; }
| }
| return ar;
| };`},q4={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
| var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
| if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
| if (ar || !(i in from)) {
| if (!ar) ar = Array.prototype.slice.call(from, 0, i);
| ar[i] = from[i];
| }
| }
| return to.concat(ar || Array.prototype.slice.call(from));
| };`},X4={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
| var __propKey = (this && this.__propKey) || function (x) {
| return typeof x === "symbol" ? x : "".concat(x);
| };`},Y4={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
| var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
| if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
| return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
| };`},$4={name:"typescript:values",importName:"__values",scoped:!1,text:`
| var __values = (this && this.__values) || function(o) {
| var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
| if (m) return m.call(o);
| if (o && typeof o.length === "number") return {
| next: function () {
| if (o && i >= o.length) o = void 0;
| return { value: o && o[i++], done: !o };
| }
| };
| throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
| };`},Q4={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
| var __generator = (this && this.__generator) || function (thisArg, body) {
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
| function verb(n) { return function (v) { return step([n, v]); }; }
| function step(op) {
| if (f) throw new TypeError("Generator is already executing.");
| while (g && (g = 0, op[0] && (_ = 0)), _) try {
| if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
| if (y = 0, t) op = [op[0] & 2, t.value];
| switch (op[0]) {
| case 0: case 1: t = op; break;
| case 4: _.label++; return { value: op[1], done: false };
| case 5: _.label++; y = op[1]; op = [0]; continue;
| case 7: op = _.ops.pop(); _.trys.pop(); continue;
| default:
| if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
| if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
| if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
| if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
| if (t[2]) _.ops.pop();
| _.trys.pop(); continue;
| }
| op = body.call(thisArg, _);
| } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
| if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
| }
| };`},d2={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
| var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
| if (k2 === undefined) k2 = k;
| var desc = Object.getOwnPropertyDescriptor(m, k);
| if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
| desc = { enumerable: true, get: function() { return m[k]; } };
| }
| Object.defineProperty(o, k2, desc);
| }) : (function(o, m, k, k2) {
| if (k2 === undefined) k2 = k;
| o[k2] = m[k];
| }));`},Z4={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
| var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
| Object.defineProperty(o, "default", { enumerable: true, value: v });
| }) : function(o, v) {
| o["default"] = v;
| });`},aO={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[d2,Z4],priority:2,text:`
| var __importStar = (this && this.__importStar) || function (mod) {
| if (mod && mod.__esModule) return mod;
| var result = {};
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
| __setModuleDefault(result, mod);
| return result;
| };`},e3={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
| var __importDefault = (this && this.__importDefault) || function (mod) {
| return (mod && mod.__esModule) ? mod : { "default": mod };
| };`},t3={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[d2],priority:2,text:`
| var __exportStar = (this && this.__exportStar) || function(m, exports) {
| for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
| };`},n3={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
| var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
| if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
| if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
| return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
| };`},r3={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
| var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
| if (kind === "m") throw new TypeError("Private method is not writable");
| if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
| if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
| return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
| };`},i3={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
| var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
| if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
| return typeof state === "function" ? receiver === state : state.has(receiver);
| };`},oO={name:"typescript:async-super",scoped:!0,text:Sz`
| const ${"_superIndex"} = name => super[name];`},sO={name:"typescript:advanced-async-super",scoped:!0,text:Sz`
| const ${"_superIndex"} = (function (geti, seti) {
| const cache = Object.create(null);
| return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
| })(name => super[name], (name, value) => super[name] = value);`}}});function Vf(e){return e.kind===8}function a3(e){return e.kind===9}function yo(e){return e.kind===10}function CS(e){return e.kind===11}function Cz(e){return e.kind===13}function IS(e){return e.kind===14}function f2(e){return e.kind===15}function Aue(e){return e.kind===16}function Iz(e){return e.kind===17}function o3(e){return e.kind===25}function Cue(e){return e.kind===27}function Lz(e){return e.kind===39}function kz(e){return e.kind===40}function cO(e){return e.kind===41}function lO(e){return e.kind===53}function ev(e){return e.kind===57}function Iue(e){return e.kind===58}function s3(e){return e.kind===28}function Lue(e){return e.kind===38}function Re(e){return e.kind===79}function pi(e){return e.kind===80}function c3(e){return e.kind===93}function kue(e){return e.kind===88}function mL(e){return e.kind===132}function Due(e){return e.kind===129}function Dz(e){return e.kind===133}function wue(e){return e.kind===146}function LS(e){return e.kind===124}function Rue(e){return e.kind===126}function Oue(e){return e.kind===161}function Nue(e){return e.kind===127}function hL(e){return e.kind===106}function gL(e){return e.kind===100}function Pue(e){return e.kind===82}function Yu(e){return e.kind===163}function ts(e){return e.kind===164}function _c(e){return e.kind===165}function ha(e){return e.kind===166}function du(e){return e.kind===167}function $d(e){return e.kind===168}function Na(e){return e.kind===169}function zm(e){return e.kind===170}function Nc(e){return e.kind===171}function oc(e){return e.kind===172}function Ec(e){return e.kind===173}function p_(e){return e.kind===174}function Sf(e){return e.kind===175}function _2(e){return e.kind===176}function uO(e){return e.kind===177}function kS(e){return e.kind===178}function l3(e){return e.kind===179}function m_(e){return e.kind===180}function Jm(e){return e.kind===181}function yL(e){return e.kind===182}function vL(e){return e.kind===183}function Rd(e){return e.kind===184}function wz(e){return e.kind===185}function p2(e){return e.kind===186}function bL(e){return e.kind===199}function Rz(e){return e.kind===187}function Oz(e){return e.kind===188}function DS(e){return e.kind===189}function dO(e){return e.kind===190}function m2(e){return e.kind===191}function h2(e){return e.kind===192}function wS(e){return e.kind===193}function u3(e){return e.kind===194}function RS(e){return e.kind===195}function OS(e){return e.kind===196}function EL(e){return e.kind===197}function mb(e){return e.kind===198}function Mh(e){return e.kind===202}function Mue(e){return e.kind===201}function jRe(e){return e.kind===200}function cm(e){return e.kind===203}function g2(e){return e.kind===204}function Wo(e){return e.kind===205}function fu(e){return e.kind===206}function rs(e){return e.kind===207}function br(e){return e.kind===208}function Vs(e){return e.kind===209}function Pa(e){return e.kind===210}function z0(e){return e.kind===211}function PT(e){return e.kind===212}function Fue(e){return e.kind===213}function ud(e){return e.kind===214}function ms(e){return e.kind===215}function xs(e){return e.kind===216}function Gue(e){return e.kind===217}function y2(e){return e.kind===218}function NS(e){return e.kind===219}function v2(e){return e.kind===220}function tv(e){return e.kind===221}function Nz(e){return e.kind===222}function ar(e){return e.kind===223}function b2(e){return e.kind===224}function d3(e){return e.kind===225}function f3(e){return e.kind===226}function Km(e){return e.kind===227}function _u(e){return e.kind===228}function ol(e){return e.kind===229}function Vg(e){return e.kind===230}function fO(e){return e.kind===231}function HRe(e){return e.kind===235}function PS(e){return e.kind===232}function TL(e){return e.kind===233}function WRe(e){return e.kind===234}function _3(e){return e.kind===356}function SL(e){return e.kind===357}function xL(e){return e.kind===236}function Bue(e){return e.kind===237}function Va(e){return e.kind===238}function Bc(e){return e.kind===240}function Pz(e){return e.kind===239}function Ol(e){return e.kind===241}function MT(e){return e.kind===242}function zRe(e){return e.kind===243}function JRe(e){return e.kind===244}function FT(e){return e.kind===245}function Mz(e){return e.kind===246}function _O(e){return e.kind===247}function KRe(e){return e.kind===248}function qRe(e){return e.kind===249}function j_(e){return e.kind===250}function Uue(e){return e.kind===251}function pO(e){return e.kind===252}function J0(e){return e.kind===253}function Fz(e){return e.kind===254}function mO(e){return e.kind===255}function XRe(e){return e.kind===256}function wi(e){return e.kind===257}function pu(e){return e.kind===258}function Jc(e){return e.kind===259}function sl(e){return e.kind===260}function ku(e){return e.kind===261}function Ep(e){return e.kind===262}function hb(e){return e.kind===263}function Tc(e){return e.kind===264}function Tp(e){return e.kind===265}function hO(e){return e.kind===266}function gO(e){return e.kind===267}function Nl(e){return e.kind===268}function gl(e){return e.kind===269}function lm(e){return e.kind===270}function Vue(e){return e.kind===298}function p3(e){return e.kind===296}function jue(e){return e.kind===297}function nv(e){return e.kind===271}function qm(e){return e.kind===277}function jg(e){return e.kind===272}function $u(e){return e.kind===273}function pc(e){return e.kind===274}function Il(e){return e.kind===275}function h_(e){return e.kind===276}function Mu(e){return e.kind===278}function YRe(e){return e.kind===279}function Gz(e){return e.kind===355}function MS(e){return e.kind===360}function $Re(e){return e.kind===358}function QRe(e){return e.kind===359}function um(e){return e.kind===280}function Hg(e){return e.kind===281}function FS(e){return e.kind===282}function Xm(e){return e.kind===283}function GS(e){return e.kind===284}function BS(e){return e.kind===285}function US(e){return e.kind===286}function Hue(e){return e.kind===287}function Sp(e){return e.kind===288}function K0(e){return e.kind===289}function GT(e){return e.kind===290}function AL(e){return e.kind===291}function CL(e){return e.kind===292}function yO(e){return e.kind===293}function dd(e){return e.kind===294}function E2(e){return e.kind===295}function yl(e){return e.kind===299}function xf(e){return e.kind===300}function VS(e){return e.kind===301}function q0(e){return e.kind===302}function Wue(e){return e.kind===304}function Li(e){return e.kind===308}function Bz(e){return e.kind===309}function BT(e){return e.kind===310}function UT(e){return e.kind===312}function IL(e){return e.kind===313}function gb(e){return e.kind===314}function zue(e){return e.kind===327}function Jue(e){return e.kind===328}function ZRe(e){return e.kind===329}function Kue(e){return e.kind===315}function que(e){return e.kind===316}function T2(e){return e.kind===317}function m3(e){return e.kind===318}function Uz(e){return e.kind===319}function S2(e){return e.kind===320}function h3(e){return e.kind===321}function eOe(e){return e.kind===322}function dm(e){return e.kind===323}function LL(e){return e.kind===325}function X0(e){return e.kind===326}function x2(e){return e.kind===331}function tOe(e){return e.kind===333}function Xue(e){return e.kind===335}function Vz(e){return e.kind===341}function jz(e){return e.kind===336}function Hz(e){return e.kind===337}function Wz(e){return e.kind===338}function zz(e){return e.kind===339}function g3(e){return e.kind===340}function kL(e){return e.kind===342}function Jz(e){return e.kind===334}function nOe(e){return e.kind===350}function vO(e){return e.kind===343}function xp(e){return e.kind===344}function y3(e){return e.kind===345}function Yue(e){return e.kind===346}function DL(e){return e.kind===347}function H_(e){return e.kind===348}function Kz(e){return e.kind===349}function rOe(e){return e.kind===330}function $ue(e){return e.kind===351}function qz(e){return e.kind===332}function v3(e){return e.kind===353}function iOe(e){return e.kind===352}function A2(e){return e.kind===354}var aOe=gt({"src/compiler/factory/nodeTests.ts"(){"use strict";fa()}});function bO(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function VT(e,t,r,i){if(ts(r))return it(e.createElementAccessExpression(t,r.expression),i);{let o=it(Ah(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return bp(o,128),o}}function Xz(e,t){let r=fm.createIdentifier(e||"React");return go(r,ea(t)),r}function Yz(e,t,r){if(Yu(t)){let i=Yz(e,t.left,r),o=e.createIdentifier(vr(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return Xz(vr(t),r)}function $z(e,t,r,i){return t?Yz(e,t,i):e.createPropertyAccessExpression(Xz(r,i),"createElement")}function oOe(e,t,r,i){return t?Yz(e,t,i):e.createPropertyAccessExpression(Xz(r,i),"Fragment")}function Que(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let f of o)mu(f),l.push(f);else l.push(o[0]);return it(e.createCallExpression(t,void 0,l),s)}function Zue(e,t,r,i,o,s,l){let d=[oOe(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let g of o)mu(g),d.push(g);else d.push(o[0]);return it(e.createCallExpression($z(e,t,i,s),void 0,d),l)}function Qz(e,t,r){if(pu(t)){let i=Vo(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return it(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=it(e.createAssignment(t,r),t);return it(e.createExpressionStatement(i),t)}}function sOe(e,t,r){return Va(t)?e.updateBlock(t,it(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function EO(e,t){if(Yu(t)){let r=EO(e,t.left),i=go(it(e.cloneNode(t.right),t.right),t.right.parent);return it(e.createPropertyAccessExpression(r,i),t)}else return go(it(e.cloneNode(t),t),t.parent)}function Zz(e,t){return Re(t)?e.createStringLiteralFromNode(t):ts(t)?go(it(e.cloneNode(t.expression),t.expression),t.expression.parent):go(it(e.cloneNode(t),t),t.parent)}function cOe(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:f}=kT(t,r);if(r===s)return it(e.createObjectDefinePropertyCall(i,Zz(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&it(Ir(e.createFunctionExpression(uT(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:f&&it(Ir(e.createFunctionExpression(uT(f),void 0,void 0,void 0,f.parameters,void 0,f.body),f),f)},!o)),s)}function lOe(e,t,r){return Ir(it(e.createAssignment(VT(e,r,t.name,t.name),t.initializer),t),t)}function uOe(e,t,r){return Ir(it(e.createAssignment(VT(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function dOe(e,t,r){return Ir(it(e.createAssignment(VT(e,r,t.name,t.name),Ir(it(e.createFunctionExpression(uT(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function ede(e,t,r,i){switch(r.name&&pi(r.name)&&L.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 174:case 175:return cOe(e,t.properties,r,i,!!t.multiLine);case 299:return lOe(e,r,i);case 300:return uOe(e,r,i);case 171:return dOe(e,r,i)}}function b3(e,t,r,i,o){let s=t.operator;L.assert(s===45||s===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),it(r,t.operand);let f=tv(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return it(f,t),o&&(f=e.createAssignment(o,f),it(f,t)),r=e.createComma(r,f),it(r,t),Nz(t)&&(r=e.createComma(r,l),it(r,t)),r}function eJ(e){return(Ya(e)&65536)!==0}function rv(e){return(Ya(e)&32768)!==0}function E3(e){return(Ya(e)&16384)!==0}function tde(e){return yo(e.expression)&&e.expression.text==="use strict"}function tJ(e){for(let t of e)if(B_(t)){if(tde(t))return t}else break}function nde(e){let t=Sl(e);return t!==void 0&&B_(t)&&tde(t)}function TO(e){return e.kind===223&&e.operatorToken.kind===27}function wL(e){return TO(e)||SL(e)}function RL(e){return ud(e)&&Yn(e)&&!!x0(e)}function T3(e){let t=Vy(e);return L.assertIsDefined(t),t}function S3(e,t=15){switch(e.kind){case 214:return t&16&&RL(e)?!1:(t&1)!==0;case 213:case 231:case 230:case 235:return(t&2)!==0;case 232:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function ql(e,t=15){for(;S3(e,t);)e=e.expression;return e}function rde(e,t=15){let r=e.parent;for(;S3(r,t);)r=r.parent,L.assert(r);return r}function fOe(e){return ql(e,6)}function mu(e){return vz(e,!0)}function SO(e){let t=ec(e,Li),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function ide(e){let t=ec(e,Li),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function nJ(e,t,r,i,o,s,l){if(i.importHelpers&&aS(r,i)){let f,d=Rl(i);if(d>=5&&d<=99||r.impliedNodeFormat===99){let g=O4(r);if(g){let m=[];for(let v of g)if(!v.scoped){let S=v.importName;S&&Of(m,S)}if(vt(m)){m.sort(su),f=e.createNamedImports(on(m,x=>g6(r,x)?e.createImportSpecifier(!1,void 0,e.createIdentifier(x)):e.createImportSpecifier(!1,e.createIdentifier(x),t.getUnscopedHelperName(x))));let v=ec(r,Li),S=Lu(v);S.externalHelpers=!0}}}else{let g=ade(e,r,i,o,s||l);g&&(f=e.createNamespaceImport(g))}if(f){let g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,f),e.createStringLiteral(_b),void 0);return SS(g,2),g}}}function ade(e,t,r,i,o){if(r.importHelpers&&aS(t,r)){let s=SO(t);if(s)return s;let l=Rl(r),f=(i||f_(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!f){let d=O4(t);if(d){for(let g of d)if(!g.scoped){f=!0;break}}}if(f){let d=ec(t,Li),g=Lu(d);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(_b))}}}function C2(e,t,r){let i=VA(t);if(i&&!lS(t)&&!v6(t)){let o=i.name;return tc(o)?o:e.createIdentifier(k0(r,o)||vr(o))}if(t.kind===269&&t.importClause||t.kind===275&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function jS(e,t,r,i,o,s){let l=UA(t);if(l&&yo(l))return pOe(t,i,e,o,s)||_Oe(e,l,r)||e.cloneNode(l)}function _Oe(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function xO(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&Ss(i))return e.createStringLiteral(YH(r,t.fileName))}}function pOe(e,t,r,i,o){return xO(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function AO(e){if(Lw(e))return e.initializer;if(yl(e)){let t=e.initializer;return Iu(t,!0)?t.right:void 0}if(xf(e))return e.objectAssignmentInitializer;if(Iu(e,!0))return e.right;if(Km(e))return AO(e.expression)}function iv(e){if(Lw(e))return e.name;if(Og(e)){switch(e.kind){case 299:return iv(e.initializer);case 300:return e.name;case 301:return iv(e.expression)}return}return Iu(e,!0)?iv(e.left):Km(e)?iv(e.expression):e}function x3(e){switch(e.kind){case 166:case 205:return e.dotDotDotToken;case 227:case 301:return e}}function rJ(e){let t=A3(e);return L.assert(!!t||VS(e),"Invalid property name for binding element."),t}function A3(e){switch(e.kind){case 205:if(e.propertyName){let r=e.propertyName;return pi(r)?L.failBadSyntaxKind(r):ts(r)&&ode(r.expression)?r.expression:r}break;case 299:if(e.name){let r=e.name;return pi(r)?L.failBadSyntaxKind(r):ts(r)&&ode(r.expression)?r.expression:r}break;case 301:return e.name&&pi(e.name)?L.failBadSyntaxKind(e.name):e.name}let t=iv(e);if(t&&Ys(t))return t}function ode(e){let t=e.kind;return t===10||t===8}function I2(e){switch(e.kind){case 203:case 204:case 206:return e.elements;case 207:return e.properties}}function iJ(e){if(e){let t=e;for(;;){if(Re(t)||!t.body)return Re(t)?t:t.name;t=t.body}}}function mOe(e){let t=e.kind;return t===173||t===175}function sde(e){let t=e.kind;return t===173||t===174||t===175}function aJ(e){let t=e.kind;return t===299||t===300||t===259||t===173||t===178||t===172||t===279||t===240||t===261||t===262||t===263||t===264||t===268||t===269||t===267||t===275||t===274}function cde(e){let t=e.kind;return t===172||t===299||t===300||t===279||t===267}function lde(e){return ev(e)||lO(e)}function ude(e){return Re(e)||u3(e)}function dde(e){return wue(e)||Lz(e)||kz(e)}function fde(e){return ev(e)||Lz(e)||kz(e)}function _de(e){return Re(e)||yo(e)}function hOe(e){let t=e.kind;return t===104||t===110||t===95||fT(e)||tv(e)}function gOe(e){return e===42}function yOe(e){return e===41||e===43||e===44}function vOe(e){return gOe(e)||yOe(e)}function bOe(e){return e===39||e===40}function EOe(e){return bOe(e)||vOe(e)}function TOe(e){return e===47||e===48||e===49}function SOe(e){return TOe(e)||EOe(e)}function xOe(e){return e===29||e===32||e===31||e===33||e===102||e===101}function AOe(e){return xOe(e)||SOe(e)}function COe(e){return e===34||e===36||e===35||e===37}function IOe(e){return COe(e)||AOe(e)}function LOe(e){return e===50||e===51||e===52}function kOe(e){return LOe(e)||IOe(e)}function DOe(e){return e===55||e===56}function wOe(e){return DOe(e)||kOe(e)}function ROe(e){return e===60||wOe(e)||Mg(e)}function OOe(e){return ROe(e)||e===27}function pde(e){return OOe(e.kind)}function C3(e,t,r,i,o,s){let l=new bde(e,t,r,i,o,s);return f;function f(d,g){let m={value:void 0},v=[k3.enter],S=[d],x=[void 0],A=0;for(;v[A]!==k3.done;)A=v[A](l,A,v,S,x,m,g);return L.assertEqual(A,0),m.value}}function mde(e){return e===93||e===88}function oJ(e){let t=e.kind;return mde(t)}function NOe(e){let t=e.kind;return Rg(t)&&!mde(t)}function hde(e,t){if(t!==void 0)return t.length===0?t:it(e.createNodeArray([],t.hasTrailingComma),t)}function I3(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(Ah(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function L2(e,t){return typeof e=="object"?jT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function POe(e,t){return typeof e=="string"?e:MOe(e,L.checkDefined(t))}function MOe(e,t){return tS(e)?t(e).slice(1):tc(e)?t(e):pi(e)?e.escapedText.slice(1):vr(e)}function jT(e,t,r,i,o){return t=L2(t,o),i=L2(i,o),r=POe(r,o),`${e?"#":""}${t}${r}${i}`}function sJ(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function gde(e,t,r,i){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function yde(e,t,r,i){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function L3(e){let t=e.expression;for(;;){if(t=ql(t),SL(t)){t=To(t.elements);continue}if(TO(t)){t=t.right;continue}if(Iu(t,!0)&&tc(t.left))return t;break}}function FOe(e){return ud(e)&&ws(e)&&!e.emitNode}function CO(e,t){if(FOe(e))CO(e.expression,t);else if(TO(e))CO(e.left,t),CO(e.right,t);else if(SL(e))for(let r of e.elements)CO(r,t);else t.push(e)}function vde(e){let t=[];return CO(e,t),t}function IO(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of I2(e)){let r=iv(t);if(r&&vI(r)&&(r.transformFlags&65536||r.transformFlags&128&&IO(r)))return!0}return!1}var k3,bde,GOe=gt({"src/compiler/factory/utilities.ts"(){"use strict";fa(),(e=>{function t(m,v,S,x,A,w,C){let P=v>0?A[v-1]:void 0;return L.assertEqual(S[v],t),A[v]=m.onEnter(x[v],P,C),S[v]=f(m,t),v}e.enter=t;function r(m,v,S,x,A,w,C){L.assertEqual(S[v],r),L.assertIsDefined(m.onLeft),S[v]=f(m,r);let P=m.onLeft(x[v].left,A[v],x[v]);return P?(g(v,x,P),d(v,S,x,A,P)):v}e.left=r;function i(m,v,S,x,A,w,C){return L.assertEqual(S[v],i),L.assertIsDefined(m.onOperator),S[v]=f(m,i),m.onOperator(x[v].operatorToken,A[v],x[v]),v}e.operator=i;function o(m,v,S,x,A,w,C){L.assertEqual(S[v],o),L.assertIsDefined(m.onRight),S[v]=f(m,o);let P=m.onRight(x[v].right,A[v],x[v]);return P?(g(v,x,P),d(v,S,x,A,P)):v}e.right=o;function s(m,v,S,x,A,w,C){L.assertEqual(S[v],s),S[v]=f(m,s);let P=m.onExit(x[v],A[v]);if(v>0){if(v--,m.foldState){let F=S[v]===s?"right":"left";A[v]=m.foldState(A[v],P,F)}}else w.value=P;return v}e.exit=s;function l(m,v,S,x,A,w,C){return L.assertEqual(S[v],l),v}e.done=l;function f(m,v){switch(v){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:L.fail("Invalid state")}}e.nextState=f;function d(m,v,S,x,A){return m++,v[m]=t,S[m]=A,x[m]=void 0,m}function g(m,v,S){if(L.shouldAssert(2))for(;m>=0;)L.assert(v[m]!==S,"Circular traversal detected."),m--}})(k3||(k3={})),bde=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function it(e,t){return t?om(e,t.pos,t.end):e}function g_(e){let t=e.kind;return t===165||t===166||t===168||t===169||t===170||t===171||t===173||t===174||t===175||t===178||t===182||t===215||t===216||t===228||t===240||t===259||t===260||t===261||t===262||t===263||t===264||t===268||t===269||t===274||t===275}function HS(e){let t=e.kind;return t===166||t===169||t===171||t===174||t===175||t===228||t===260}var BOe=gt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";fa()}});function Mt(e,t){return t&&e(t)}function fi(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function cJ(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function LO(e){return mn(e.statements,UOe)||VOe(e)}function UOe(e){return g_(e)&&jOe(e,93)||Nl(e)&&um(e.moduleReference)||gl(e)||pc(e)||Il(e)?e:void 0}function VOe(e){return e.flags&4194304?Ede(e):void 0}function Ede(e){return HOe(e)?e:pa(e,Ede)}function jOe(e,t){return vt(e.modifiers,r=>r.kind===t)}function HOe(e){return TL(e)&&e.keywordToken===100&&e.name.escapedText==="meta"}function Tde(e,t,r){return fi(t,r,e.typeParameters)||fi(t,r,e.parameters)||Mt(t,e.type)}function Sde(e,t,r){return fi(t,r,e.types)}function xde(e,t,r){return Mt(t,e.type)}function Ade(e,t,r){return fi(t,r,e.elements)}function Cde(e,t,r){return Mt(t,e.expression)||Mt(t,e.questionDotToken)||fi(t,r,e.typeArguments)||fi(t,r,e.arguments)}function Ide(e,t,r){return fi(t,r,e.statements)}function Lde(e,t,r){return Mt(t,e.label)}function kde(e,t,r){return fi(t,r,e.modifiers)||Mt(t,e.name)||fi(t,r,e.typeParameters)||fi(t,r,e.heritageClauses)||fi(t,r,e.members)}function Dde(e,t,r){return fi(t,r,e.elements)}function wde(e,t,r){return Mt(t,e.propertyName)||Mt(t,e.name)}function Rde(e,t,r){return Mt(t,e.tagName)||fi(t,r,e.typeArguments)||Mt(t,e.attributes)}function k2(e,t,r){return Mt(t,e.type)}function Ode(e,t,r){return Mt(t,e.tagName)||(e.isNameFirst?Mt(t,e.name)||Mt(t,e.typeExpression):Mt(t,e.typeExpression)||Mt(t,e.name))||(typeof e.comment=="string"?void 0:fi(t,r,e.comment))}function D2(e,t,r){return Mt(t,e.tagName)||Mt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:fi(t,r,e.comment))}function lJ(e,t,r){return Mt(t,e.name)}function WS(e,t,r){return Mt(t,e.tagName)||(typeof e.comment=="string"?void 0:fi(t,r,e.comment))}function WOe(e,t,r){return Mt(t,e.expression)}function pa(e,t,r){if(e===void 0||e.kind<=162)return;let i=Hde[e.kind];return i===void 0?void 0:i(e,t,r)}function kO(e,t,r){let i=Nde(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){let s=i.pop(),l=o.pop();if(ba(s)){if(r){let f=r(s,l);if(f){if(f==="skip")continue;return f}}for(let f=s.length-1;f>=0;--f)i.push(s[f]),o.push(l)}else{let f=t(s,l);if(f){if(f==="skip")continue;return f}if(s.kind>=163)for(let d of Nde(s))i.push(d),o.push(s)}}}function Nde(e){let t=[];return pa(e,r,r),t;function r(i){t.unshift(i)}}function Pde(e){e.externalModuleIndicator=LO(e)}function DO(e,t,r,i=!1,o){var s,l;(s=ai)==null||s.push(ai.Phase.Parse,"createSourceFile",{path:e},!0),Fs("beforeParse");let f;fp.logStartParseSourceFile(e);let{languageVersion:d,setExternalModuleIndicator:g,impliedNodeFormat:m}=typeof r=="object"?r:{languageVersion:r};if(d===100)f=av.parseSourceFile(e,t,d,void 0,i,6,Ba);else{let v=m===void 0?g:S=>(S.impliedNodeFormat=m,(g||Pde)(S));f=av.parseSourceFile(e,t,d,void 0,i,o,v)}return fp.logStopParseSourceFile(),Fs("afterParse"),hf("Parse","beforeParse","afterParse"),(l=ai)==null||l.pop(),f}function zS(e,t){return av.parseIsolatedEntityName(e,t)}function wO(e,t){return av.parseJsonText(e,t)}function Lc(e){return e.externalModuleIndicator!==void 0}function uJ(e,t,r,i=!1){let o=D3.updateSourceFile(e,t,r,i);return o.flags|=e.flags&6291456,o}function Mde(e,t,r){let i=av.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&av.fixupParentReferences(i.jsDoc),i}function zOe(e,t,r){return av.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Fu(e){return $c(e,I4)||Gc(e,".ts")&&jl(Hl(e),".d.")}function JOe(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,_.resolution_mode_should_be_either_require_or_import)}}function dJ(e,t){let r=[];for(let i of Nm(t,0)||Je){let o=t.substring(i.pos,i.end);qOe(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function fJ(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;mn(qD(r),f=>{let{types:d,lib:g,path:m,["resolution-mode"]:v}=f.arguments;if(f.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(d){let S=JOe(v,d.pos,d.end,t);s.push({pos:d.pos,end:d.end,fileName:d.value,...S?{resolutionMode:S}:{}})}else g?l.push({pos:g.pos,end:g.end,fileName:g.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(f.range.pos,f.range.end-f.range.pos,_.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=on(qD(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,_.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{mn(qD(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:L.fail("Unhandled pragma kind")}})}function KOe(e){if(w3.has(e))return w3.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return w3.set(e,t),t}function qOe(e,t,r){let i=t.kind===2&&Wde.exec(r);if(i){let s=i[1].toLowerCase(),l=iw[s];if(!l||!(l.kind&1))return;if(l.args){let f={};for(let d of l.args){let m=KOe(d.name).exec(r);if(!m&&!d.optional)return;if(m){let v=m[2]||m[3];if(d.captureSpan){let S=t.pos+m.index+m[1].length+1;f[d.name]={value:v,pos:S,end:S+v.length}}else f[d.name]=v}}e.push({name:s,args:{arguments:f,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&zde.exec(r);if(o)return Fde(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)Fde(e,t,4,l)}}function Fde(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=iw[o];if(!s||!(s.kind&r))return;let l=i[2],f=XOe(s,l);f!=="fail"&&e.push({name:o,args:{arguments:f,range:t}})}function XOe(e,t){if(!t)return{};if(!e.args)return{};let r=v0(t).split(/\s+/),i={};for(let o=0;o<e.args.length;o++){let s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return L.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function yb(e,t){return e.kind!==t.kind?!1:e.kind===79?e.escapedText===t.escapedText:e.kind===108?!0:e.name.escapedText===t.name.escapedText&&yb(e.expression,t.expression)}var Gde,Bde,Ude,Vde,jde,_J,fm,Hde,av,D3,w3,Wde,zde,YOe=gt({"src/compiler/parser.ts"(){"use strict";fa(),fa(),E0(),_J={createBaseSourceFileNode:e=>new(jde||(jde=ml.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Ude||(Ude=ml.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Vde||(Vde=ml.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Bde||(Bde=ml.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Gde||(Gde=ml.getNodeConstructor()))(e,-1,-1)},fm=YR(1,_J),Hde={163:function(t,r,i){return Mt(r,t.left)||Mt(r,t.right)},165:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.constraint)||Mt(r,t.default)||Mt(r,t.expression)},300:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.exclamationToken)||Mt(r,t.equalsToken)||Mt(r,t.objectAssignmentInitializer)},301:function(t,r,i){return Mt(r,t.expression)},166:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.dotDotDotToken)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.type)||Mt(r,t.initializer)},169:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.exclamationToken)||Mt(r,t.type)||Mt(r,t.initializer)},168:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.type)||Mt(r,t.initializer)},299:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.exclamationToken)||Mt(r,t.initializer)},257:function(t,r,i){return Mt(r,t.name)||Mt(r,t.exclamationToken)||Mt(r,t.type)||Mt(r,t.initializer)},205:function(t,r,i){return Mt(r,t.dotDotDotToken)||Mt(r,t.propertyName)||Mt(r,t.name)||Mt(r,t.initializer)},178:function(t,r,i){return fi(r,i,t.modifiers)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)},182:function(t,r,i){return fi(r,i,t.modifiers)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)},181:function(t,r,i){return fi(r,i,t.modifiers)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)},176:Tde,177:Tde,171:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.asteriskToken)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.exclamationToken)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},170:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.questionToken)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)},173:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},174:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},175:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},259:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.asteriskToken)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},215:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.asteriskToken)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.body)},216:function(t,r,i){return fi(r,i,t.modifiers)||fi(r,i,t.typeParameters)||fi(r,i,t.parameters)||Mt(r,t.type)||Mt(r,t.equalsGreaterThanToken)||Mt(r,t.body)},172:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.body)},180:function(t,r,i){return Mt(r,t.typeName)||fi(r,i,t.typeArguments)},179:function(t,r,i){return Mt(r,t.assertsModifier)||Mt(r,t.parameterName)||Mt(r,t.type)},183:function(t,r,i){return Mt(r,t.exprName)||fi(r,i,t.typeArguments)},184:function(t,r,i){return fi(r,i,t.members)},185:function(t,r,i){return Mt(r,t.elementType)},186:function(t,r,i){return fi(r,i,t.elements)},189:Sde,190:Sde,191:function(t,r,i){return Mt(r,t.checkType)||Mt(r,t.extendsType)||Mt(r,t.trueType)||Mt(r,t.falseType)},192:function(t,r,i){return Mt(r,t.typeParameter)},202:function(t,r,i){return Mt(r,t.argument)||Mt(r,t.assertions)||Mt(r,t.qualifier)||fi(r,i,t.typeArguments)},298:function(t,r,i){return Mt(r,t.assertClause)},193:xde,195:xde,196:function(t,r,i){return Mt(r,t.objectType)||Mt(r,t.indexType)},197:function(t,r,i){return Mt(r,t.readonlyToken)||Mt(r,t.typeParameter)||Mt(r,t.nameType)||Mt(r,t.questionToken)||Mt(r,t.type)||fi(r,i,t.members)},198:function(t,r,i){return Mt(r,t.literal)},199:function(t,r,i){return Mt(r,t.dotDotDotToken)||Mt(r,t.name)||Mt(r,t.questionToken)||Mt(r,t.type)},203:Ade,204:Ade,206:function(t,r,i){return fi(r,i,t.elements)},207:function(t,r,i){return fi(r,i,t.properties)},208:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.questionDotToken)||Mt(r,t.name)},209:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.questionDotToken)||Mt(r,t.argumentExpression)},210:Cde,211:Cde,212:function(t,r,i){return Mt(r,t.tag)||Mt(r,t.questionDotToken)||fi(r,i,t.typeArguments)||Mt(r,t.template)},213:function(t,r,i){return Mt(r,t.type)||Mt(r,t.expression)},214:function(t,r,i){return Mt(r,t.expression)},217:function(t,r,i){return Mt(r,t.expression)},218:function(t,r,i){return Mt(r,t.expression)},219:function(t,r,i){return Mt(r,t.expression)},221:function(t,r,i){return Mt(r,t.operand)},226:function(t,r,i){return Mt(r,t.asteriskToken)||Mt(r,t.expression)},220:function(t,r,i){return Mt(r,t.expression)},222:function(t,r,i){return Mt(r,t.operand)},223:function(t,r,i){return Mt(r,t.left)||Mt(r,t.operatorToken)||Mt(r,t.right)},231:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.type)},232:function(t,r,i){return Mt(r,t.expression)},235:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.type)},233:function(t,r,i){return Mt(r,t.name)},224:function(t,r,i){return Mt(r,t.condition)||Mt(r,t.questionToken)||Mt(r,t.whenTrue)||Mt(r,t.colonToken)||Mt(r,t.whenFalse)},227:function(t,r,i){return Mt(r,t.expression)},238:Ide,265:Ide,308:function(t,r,i){return fi(r,i,t.statements)||Mt(r,t.endOfFileToken)},240:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.declarationList)},258:function(t,r,i){return fi(r,i,t.declarations)},241:function(t,r,i){return Mt(r,t.expression)},242:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.thenStatement)||Mt(r,t.elseStatement)},243:function(t,r,i){return Mt(r,t.statement)||Mt(r,t.expression)},244:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.statement)},245:function(t,r,i){return Mt(r,t.initializer)||Mt(r,t.condition)||Mt(r,t.incrementor)||Mt(r,t.statement)},246:function(t,r,i){return Mt(r,t.initializer)||Mt(r,t.expression)||Mt(r,t.statement)},247:function(t,r,i){return Mt(r,t.awaitModifier)||Mt(r,t.initializer)||Mt(r,t.expression)||Mt(r,t.statement)},248:Lde,249:Lde,250:function(t,r,i){return Mt(r,t.expression)},251:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.statement)},252:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.caseBlock)},266:function(t,r,i){return fi(r,i,t.clauses)},292:function(t,r,i){return Mt(r,t.expression)||fi(r,i,t.statements)},293:function(t,r,i){return fi(r,i,t.statements)},253:function(t,r,i){return Mt(r,t.label)||Mt(r,t.statement)},254:function(t,r,i){return Mt(r,t.expression)},255:function(t,r,i){return Mt(r,t.tryBlock)||Mt(r,t.catchClause)||Mt(r,t.finallyBlock)},295:function(t,r,i){return Mt(r,t.variableDeclaration)||Mt(r,t.block)},167:function(t,r,i){return Mt(r,t.expression)},260:kde,228:kde,261:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.typeParameters)||fi(r,i,t.heritageClauses)||fi(r,i,t.members)},262:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.typeParameters)||Mt(r,t.type)},263:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||fi(r,i,t.members)},302:function(t,r,i){return Mt(r,t.name)||Mt(r,t.initializer)},264:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.body)},268:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)||Mt(r,t.moduleReference)},269:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.importClause)||Mt(r,t.moduleSpecifier)||Mt(r,t.assertClause)},270:function(t,r,i){return Mt(r,t.name)||Mt(r,t.namedBindings)},296:function(t,r,i){return fi(r,i,t.elements)},297:function(t,r,i){return Mt(r,t.name)||Mt(r,t.value)},267:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.name)},271:function(t,r,i){return Mt(r,t.name)},277:function(t,r,i){return Mt(r,t.name)},272:Dde,276:Dde,275:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.exportClause)||Mt(r,t.moduleSpecifier)||Mt(r,t.assertClause)},273:wde,278:wde,274:function(t,r,i){return fi(r,i,t.modifiers)||Mt(r,t.expression)},225:function(t,r,i){return Mt(r,t.head)||fi(r,i,t.templateSpans)},236:function(t,r,i){return Mt(r,t.expression)||Mt(r,t.literal)},200:function(t,r,i){return Mt(r,t.head)||fi(r,i,t.templateSpans)},201:function(t,r,i){return Mt(r,t.type)||Mt(r,t.literal)},164:function(t,r,i){return Mt(r,t.expression)},294:function(t,r,i){return fi(r,i,t.types)},230:function(t,r,i){return Mt(r,t.expression)||fi(r,i,t.typeArguments)},280:function(t,r,i){return Mt(r,t.expression)},279:function(t,r,i){return fi(r,i,t.modifiers)},357:function(t,r,i){return fi(r,i,t.elements)},281:function(t,r,i){return Mt(r,t.openingElement)||fi(r,i,t.children)||Mt(r,t.closingElement)},285:function(t,r,i){return Mt(r,t.openingFragment)||fi(r,i,t.children)||Mt(r,t.closingFragment)},282:Rde,283:Rde,289:function(t,r,i){return fi(r,i,t.properties)},288:function(t,r,i){return Mt(r,t.name)||Mt(r,t.initializer)},290:function(t,r,i){return Mt(r,t.expression)},291:function(t,r,i){return Mt(r,t.dotDotDotToken)||Mt(r,t.expression)},284:function(t,r,i){return Mt(r,t.tagName)},187:k2,188:k2,312:k2,318:k2,317:k2,319:k2,321:k2,320:function(t,r,i){return fi(r,i,t.parameters)||Mt(r,t.type)},323:function(t,r,i){return(typeof t.comment=="string"?void 0:fi(r,i,t.comment))||fi(r,i,t.tags)},350:function(t,r,i){return Mt(r,t.tagName)||Mt(r,t.name)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},313:function(t,r,i){return Mt(r,t.name)},314:function(t,r,i){return Mt(r,t.left)||Mt(r,t.right)},344:Ode,351:Ode,333:function(t,r,i){return Mt(r,t.tagName)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},332:function(t,r,i){return Mt(r,t.tagName)||Mt(r,t.class)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},331:function(t,r,i){return Mt(r,t.tagName)||Mt(r,t.class)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},348:function(t,r,i){return Mt(r,t.tagName)||Mt(r,t.constraint)||fi(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},349:function(t,r,i){return Mt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===312?Mt(r,t.typeExpression)||Mt(r,t.fullName)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment)):Mt(r,t.fullName)||Mt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment)))},341:function(t,r,i){return Mt(r,t.tagName)||Mt(r,t.fullName)||Mt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:fi(r,i,t.comment))},345:D2,347:D2,346:D2,343:D2,353:D2,352:D2,342:D2,326:function(t,r,i){return mn(t.typeParameters,r)||mn(t.parameters,r)||Mt(r,t.type)},327:lJ,328:lJ,329:lJ,325:function(t,r,i){return mn(t.jsDocPropertyTags,r)},330:WS,335:WS,336:WS,337:WS,338:WS,339:WS,334:WS,340:WS,356:WOe},(e=>{var t=kg(99,!0),r=20480,i,o,s,l,f;function d(V){return We++,V}var g={createBaseSourceFileNode:V=>d(new f(V,0,0)),createBaseIdentifierNode:V=>d(new s(V,0,0)),createBasePrivateIdentifierNode:V=>d(new l(V,0,0)),createBaseTokenNode:V=>d(new o(V,0,0)),createBaseNode:V=>d(new i(V,0,0))},m=YR(11,g),{createNodeArray:v,createNumericLiteral:S,createStringLiteral:x,createLiteralLikeNode:A,createIdentifier:w,createPrivateIdentifier:C,createToken:P,createArrayLiteralExpression:F,createObjectLiteralExpression:B,createPropertyAccessExpression:q,createPropertyAccessChain:W,createElementAccessExpression:Y,createElementAccessChain:R,createCallExpression:ie,createCallChain:$,createNewExpression:fe,createParenthesizedExpression:Z,createBlock:U,createVariableStatement:re,createExpressionStatement:le,createIfStatement:_e,createWhileStatement:ge,createForStatement:X,createForOfStatement:Ve,createVariableDeclaration:we,createVariableDeclarationList:ke}=m,Pe,Ce,Ie,Be,Ne,Le,Ye,_t,ct,Rt,We,qe,zt,Qt,tn,kn,_n=!0,Gt=!1;function $n(V,me,Ue,ut,Lt=!1,dn,Er){var ii;if(dn=h4(V,dn),dn===6){let di=Ni(V,me,Ue,ut,Lt);return PO(di,(ii=di.statements[0])==null?void 0:ii.expression,di.parseDiagnostics,!1,void 0,void 0),di.referencedFiles=Je,di.typeReferenceDirectives=Je,di.libReferenceDirectives=Je,di.amdDependencies=Je,di.hasNoDefaultLib=!1,di.pragmas=b8,di}Pi(V,me,Ue,ut,dn);let li=pt(Ue,Lt,dn,Er||Pde);return gr(),li}e.parseSourceFile=$n;function ui(V,me){Pi("",V,me,void 0,1),Qe();let Ue=Io(!0),ut=j()===1&&!Ye.length;return gr(),ut?Ue:void 0}e.parseIsolatedEntityName=ui;function Ni(V,me,Ue=2,ut,Lt=!1){Pi(V,me,Ue,ut,6),Ce=kn,Qe();let dn=z(),Er,ii;if(j()===1)Er=As([],dn,dn),ii=Pc();else{let ma;for(;j()!==1;){let Oo;switch(j()){case 22:Oo=ay();break;case 110:case 95:case 104:Oo=Pc();break;case 40:Nr(()=>Qe()===8&&Qe()!==58)?Oo=T1():Oo=wc();break;case 8:case 10:if(Nr(()=>Qe()!==58)){Oo=oa();break}default:Oo=wc();break}ma&&ba(ma)?ma.push(Oo):ma?ma=[ma,Oo]:(ma=Oo,j()!==1&&rt(_.Unexpected_token))}let is=ba(ma)?jt(F(ma),dn):L.checkDefined(ma),ao=le(is);jt(ao,dn),Er=As([ao],dn),ii=Ll(1,_.Unexpected_token)}let li=hi(V,2,6,!1,Er,ii,Ce,Ba);Lt&&Kn(li),li.nodeCount=We,li.identifierCount=zt,li.identifiers=qe,li.parseDiagnostics=vS(Ye,li),_t&&(li.jsDocDiagnostics=vS(_t,li));let di=li;return gr(),di}e.parseJsonText=Ni;function Pi(V,me,Ue,ut,Lt){switch(i=ml.getNodeConstructor(),o=ml.getTokenConstructor(),s=ml.getIdentifierConstructor(),l=ml.getPrivateIdentifierConstructor(),f=ml.getSourceFileConstructor(),Pe=So(V),Ie=me,Be=Ue,ct=ut,Ne=Lt,Le=RR(Lt),Ye=[],Qt=0,qe=new Map,zt=0,We=0,Ce=0,_n=!0,Ne){case 1:case 2:kn=262144;break;case 6:kn=67371008;break;default:kn=0;break}Gt=!1,t.setText(Ie),t.setOnError(pe),t.setScriptTarget(Be),t.setLanguageVariant(Le)}function gr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),Ie=void 0,Be=void 0,ct=void 0,Ne=void 0,Le=void 0,Ce=0,Ye=void 0,_t=void 0,Qt=0,qe=void 0,tn=void 0,_n=!0}function pt(V,me,Ue,ut){let Lt=Fu(Pe);Lt&&(kn|=16777216),Ce=kn,Qe();let dn=ee(0,of);L.assert(j()===1);let Er=pn(Pc()),ii=hi(Pe,V,Ue,Lt,dn,Er,Ce,ut);return dJ(ii,Ie),fJ(ii,li),ii.commentDirectives=t.getCommentDirectives(),ii.nodeCount=We,ii.identifierCount=zt,ii.identifiers=qe,ii.parseDiagnostics=vS(Ye,ii),_t&&(ii.jsDocDiagnostics=vS(_t,ii)),me&&Kn(ii),ii;function li(di,ma,is){Ye.push(t2(Pe,di,ma,is))}}function nn(V,me){return me?pn(V):V}let Dt=!1;function pn(V){L.assert(!V.jsDoc);let me=Zi(EH(V,Ie),Ue=>Mx.parseJSDocComment(V,Ue.pos,Ue.end-Ue.pos));return me.length&&(V.jsDoc=me),Dt&&(Dt=!1,V.flags|=268435456),V}function An(V){let me=ct,Ue=D3.createSyntaxCursor(V);ct={currentNode:ma};let ut=[],Lt=Ye;Ye=[];let dn=0,Er=li(V.statements,0);for(;Er!==-1;){let is=V.statements[dn],ao=V.statements[Er];si(ut,V.statements,dn,Er),dn=di(V.statements,Er);let Oo=Yc(Lt,np=>np.start>=is.pos),id=Oo>=0?Yc(Lt,np=>np.start>=ao.pos,Oo):-1;Oo>=0&&si(Ye,Lt,Oo,id>=0?id:void 0),xi(()=>{let np=kn;for(kn|=32768,t.setTextPos(ao.pos),Qe();j()!==1;){let Op=t.getStartPos(),cg=Ze(0,of);if(ut.push(cg),Op===t.getStartPos()&&Qe(),dn>=0){let Yf=V.statements[dn];if(cg.end===Yf.pos)break;cg.end>Yf.pos&&(dn=di(V.statements,dn+1))}}kn=np},2),Er=dn>=0?li(V.statements,dn):-1}if(dn>=0){let is=V.statements[dn];si(ut,V.statements,dn);let ao=Yc(Lt,Oo=>Oo.start>=is.pos);ao>=0&&si(Ye,Lt,ao)}return ct=me,m.updateSourceFile(V,it(v(ut),V.statements));function ii(is){return!(is.flags&32768)&&!!(is.transformFlags&67108864)}function li(is,ao){for(let Oo=ao;Oo<is.length;Oo++)if(ii(is[Oo]))return Oo;return-1}function di(is,ao){for(let Oo=ao;Oo<is.length;Oo++)if(!ii(is[Oo]))return Oo;return-1}function ma(is){let ao=Ue.currentNode(is);return _n&&ao&&ii(ao)&&(ao.intersectsChange=!0),ao}}function Kn(V){Zy(V,!0)}e.fixupParentReferences=Kn;function hi(V,me,Ue,ut,Lt,dn,Er,ii){let li=m.createSourceFile(Lt,dn,Er);return oL(li,0,Ie.length),di(li),!ut&&Lc(li)&&li.transformFlags&67108864&&(li=An(li),di(li)),li;function di(ma){ma.text=Ie,ma.bindDiagnostics=[],ma.bindSuggestionDiagnostics=void 0,ma.languageVersion=me,ma.fileName=V,ma.languageVariant=RR(Ue),ma.isDeclarationFile=ut,ma.scriptKind=Ue,ii(ma),ma.setExternalModuleIndicator=ii}}function ri(V,me){V?kn|=me:kn&=~me}function vn(V){ri(V,4096)}function Ht(V){ri(V,8192)}function En(V){ri(V,16384)}function dr(V){ri(V,32768)}function Cr(V,me){let Ue=V&kn;if(Ue){ri(!1,Ue);let ut=me();return ri(!0,Ue),ut}return me()}function Se(V,me){let Ue=V&~kn;if(Ue){ri(!0,Ue);let ut=me();return ri(!1,Ue),ut}return me()}function at(V){return Cr(4096,V)}function Tt(V){return Se(4096,V)}function ve(V){return Cr(65536,V)}function nt(V){return Se(65536,V)}function ce(V){return Se(8192,V)}function Q(V){return Se(16384,V)}function ue(V){return Se(32768,V)}function G(V){return Cr(32768,V)}function Oe(V){return Se(40960,V)}function je(V){return Cr(40960,V)}function Ge(V){return(kn&V)!==0}function kt(){return Ge(8192)}function Kt(){return Ge(4096)}function ln(){return Ge(65536)}function ir(){return Ge(16384)}function ae(){return Ge(32768)}function rt(V,me){return Ke(t.getTokenPos(),t.getTextPos(),V,me)}function Ot(V,me,Ue,ut){let Lt=Os(Ye),dn;return(!Lt||V!==Lt.start)&&(dn=t2(Pe,V,me,Ue,ut),Ye.push(dn)),Gt=!0,dn}function Ke(V,me,Ue,ut){return Ot(V,me-V,Ue,ut)}function oe(V,me,Ue){Ke(V.pos,V.end,me,Ue)}function pe(V,me){Ot(t.getTextPos(),me,V)}function z(){return t.getStartPos()}function Te(){return t.hasPrecedingJSDocComment()}function j(){return Rt}function yt(){return Rt=t.scan()}function lt(V){return Qe(),V()}function Qe(){return Xu(Rt)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ke(t.getTokenPos(),t.getTextPos(),_.Keywords_cannot_contain_escape_characters),yt()}function Vt(){return Rt=t.scanJsDocToken()}function Hn(){return Rt=t.reScanGreaterToken()}function jr(){return Rt=t.reScanSlashToken()}function ei(V){return Rt=t.reScanTemplateToken(V)}function Kr(){return Rt=t.reScanTemplateHeadOrNoSubstitutionTemplate()}function Si(){return Rt=t.reScanLessThanToken()}function Ja(){return Rt=t.reScanHashToken()}function Za(){return Rt=t.scanJsxIdentifier()}function Fa(){return Rt=t.scanJsxToken()}function Hi(){return Rt=t.scanJsxAttributeValue()}function xi(V,me){let Ue=Rt,ut=Ye.length,Lt=Gt,dn=kn,Er=me!==0?t.lookAhead(V):t.tryScan(V);return L.assert(dn===kn),(!Er||me!==0)&&(Rt=Ue,me!==2&&(Ye.length=ut),Gt=Lt),Er}function Nr(V){return xi(V,1)}function Fo(V){return xi(V,0)}function Qr(){return j()===79?!0:j()>116}function Wi(){return j()===79?!0:j()===125&&kt()||j()===133&&ae()?!1:j()>116}function gn(V,me,Ue=!0){return j()===V?(Ue&&Qe(),!0):(me?rt(me):rt(_._0_expected,Xa(V)),!1)}let Ki=Object.keys(Ew).filter(V=>V.length>2);function kc(V){var me;if(PT(V)){Ke(xo(Ie,V.template.pos),V.template.end,_.Module_declaration_names_may_only_use_or_quoted_strings);return}let Ue=Re(V)?vr(V):void 0;if(!Ue||!i_(Ue,Be)){rt(_._0_expected,Xa(26));return}let ut=xo(Ie,V.pos);switch(Ue){case"const":case"let":case"var":Ke(ut,V.end,_.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ps(_.Interface_name_cannot_be_0,_.Interface_must_be_given_a_name,18);return;case"is":Ke(ut,t.getTextPos(),_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ps(_.Namespace_name_cannot_be_0,_.Namespace_must_be_given_a_name,18);return;case"type":Ps(_.Type_alias_name_cannot_be_0,_.Type_alias_must_be_given_a_name,63);return}let Lt=(me=$C(Ue,Ki,dn=>dn))!=null?me:mc(Ue);if(Lt){Ke(ut,V.end,_.Unknown_keyword_or_identifier_Did_you_mean_0,Lt);return}j()!==0&&Ke(ut,V.end,_.Unexpected_keyword_or_identifier)}function Ps(V,me,Ue){j()===Ue?rt(me):rt(V,t.getTokenValue())}function mc(V){for(let me of Ki)if(V.length>me.length+2&&na(V,me))return`${me} ${V.slice(me.length)}`}function xc(V,me,Ue){if(j()===59&&!t.hasPrecedingLineBreak()){rt(_.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(j()===20){rt(_.Cannot_start_a_function_call_in_a_type_annotation),Qe();return}if(me&&!ss()){Ue?rt(_._0_expected,Xa(26)):rt(_.Expected_for_property_initializer);return}if(!qs()){if(Ue){rt(_._0_expected,Xa(26));return}kc(V)}}function hc(V){return j()===V?(Vt(),!0):(rt(_._0_expected,Xa(V)),!1)}function ro(V,me,Ue,ut){if(j()===me){Qe();return}let Lt=rt(_._0_expected,Xa(me));Ue&&Lt&&Ao(Lt,t2(Pe,ut,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Xa(V),Xa(me)))}function aa(V){return j()===V?(Qe(),!0):!1}function Co(V){if(j()===V)return Pc()}function gc(V){if(j()===V)return bl()}function Ll(V,me,Ue){return Co(V)||yc(V,!1,me||_._0_expected,Ue||Xa(V))}function md(V){return gc(V)||yc(V,!1,_._0_expected,Xa(V))}function Pc(){let V=z(),me=j();return Qe(),jt(P(me),V)}function bl(){let V=z(),me=j();return Vt(),jt(P(me),V)}function ss(){return j()===26?!0:j()===19||j()===1||t.hasPrecedingLineBreak()}function qs(){return ss()?(j()===26&&Qe(),!0):!1}function Rs(){return qs()||gn(26)}function As(V,me,Ue,ut){let Lt=v(V,ut);return om(Lt,me,Ue??t.getStartPos()),Lt}function jt(V,me,Ue){return om(V,me,Ue??t.getStartPos()),kn&&(V.flags|=kn),Gt&&(Gt=!1,V.flags|=131072),V}function yc(V,me,Ue,ut){me?Ot(t.getStartPos(),0,Ue,ut):Ue&&rt(Ue,ut);let Lt=z(),dn=V===79?w("",void 0):Hy(V)?m.createTemplateLiteralLikeNode(V,"","",void 0):V===8?S("",void 0):V===10?x("",void 0):V===279?m.createMissingDeclaration():P(V);return jt(dn,Lt)}function Ql(V){let me=qe.get(V);return me===void 0&&qe.set(V,me=V),me}function yu(V,me,Ue){if(V){zt++;let ii=z(),li=j(),di=Ql(t.getTokenValue()),ma=t.hasExtendedUnicodeEscape();return yt(),jt(w(di,li,ma),ii)}if(j()===80)return rt(Ue||_.Private_identifiers_are_not_allowed_outside_class_bodies),yu(!0);if(j()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===79))return yu(!0);zt++;let ut=j()===1,Lt=t.isReservedWord(),dn=t.getTokenText(),Er=Lt?_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_.Identifier_expected;return yc(79,ut,me||Er,dn)}function se(V){return yu(Qr(),void 0,V)}function ht(V,me){return yu(Wi(),V,me)}function wt(V){return yu(Su(j()),V)}function K(){return Su(j())||j()===10||j()===8}function Xe(){return Su(j())||j()===10}function ft(V){if(j()===10||j()===8){let me=oa();return me.text=Ql(me.text),me}return V&&j()===22?pr():j()===80?yr():wt()}function Yt(){return ft(!0)}function pr(){let V=z();gn(22);let me=at(Ml);return gn(23),jt(m.createComputedPropertyName(me),V)}function yr(){let V=z(),me=C(Ql(t.getTokenValue()));return Qe(),jt(me,V)}function ta(V){return j()===V&&Fo(Ka)}function Go(){return Qe(),t.hasPrecedingLineBreak()?!1:Uc()}function Ka(){switch(j()){case 85:return Qe()===92;case 93:return Qe(),j()===88?Nr(Gu):j()===154?Nr(ka):vo();case 88:return Gu();case 124:case 137:case 151:return Qe(),Uc();default:return Go()}}function vo(){return j()===59||j()!==41&&j()!==128&&j()!==18&&Uc()}function ka(){return Qe(),vo()}function Hs(){return Rg(j())&&Fo(Ka)}function Uc(){return j()===22||j()===18||j()===41||j()===25||K()}function Gu(){return Qe(),j()===84||j()===98||j()===118||j()===59||j()===126&&Nr(Em)||j()===132&&Nr(Jb)}function $o(V,me){if(At(V))return!0;switch(V){case 0:case 1:case 3:return!(j()===26&&me)&&C1();case 2:return j()===82||j()===88;case 4:return Nr(dE);case 5:return Nr(rd)||j()===26&&!me;case 6:return j()===22||K();case 12:switch(j()){case 22:case 41:case 25:case 24:return!0;default:return K()}case 18:return K();case 9:return j()===22||j()===25||K();case 24:return Xe();case 7:return j()===18?Nr(jo):me?Wi()&&!nf():Pb()&&!nf();case 8:return IE();case 10:return j()===27||j()===25||IE();case 19:return j()===101||j()===85||Wi();case 15:switch(j()){case 27:case 24:return!0}case 11:return j()===25||C_();case 16:return Cb(!1);case 17:return Cb(!0);case 20:case 21:return j()===27||qh();case 22:return lh();case 23:return Su(j());case 13:return Su(j())||j()===18;case 14:return!0}return L.fail("Non-exhaustive case in 'isListElement'.")}function jo(){if(L.assert(j()===18),Qe()===19){let V=Qe();return V===27||V===18||V===94||V===117}return!0}function Ws(){return Qe(),Wi()}function hd(){return Qe(),Su(j())}function vc(){return Qe(),moe(j())}function nf(){return j()===117||j()===94?Nr(ye):!1}function ye(){return Qe(),C_()}function Et(){return Qe(),qh()}function bn(V){if(j()===1)return!0;switch(V){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return j()===19;case 3:return j()===19||j()===82||j()===88;case 7:return j()===18||j()===94||j()===117;case 8:return Ri();case 19:return j()===31||j()===20||j()===18||j()===94||j()===117;case 11:return j()===21||j()===26;case 15:case 21:case 10:return j()===23;case 17:case 16:case 18:return j()===21||j()===23;case 20:return j()!==27;case 22:return j()===18||j()===19;case 13:return j()===31||j()===43;case 14:return j()===29&&Nr(Wa);default:return!1}}function Ri(){return!!(ss()||b1(j())||j()===38)}function io(){for(let V=0;V<25;V++)if(Qt&1<<V&&($o(V,!0)||bn(V)))return!0;return!1}function ee(V,me){let Ue=Qt;Qt|=1<<V;let ut=[],Lt=z();for(;!bn(V);){if($o(V,!1)){ut.push(Ze(V,me));continue}if(Bu(V))break}return Qt=Ue,As(ut,Lt)}function Ze(V,me){let Ue=At(V);return Ue?xt(Ue):me()}function At(V,me){var Ue;if(!ct||!qt(V)||Gt)return;let ut=ct.currentNode(me??t.getStartPos());if(!(rc(ut)||ut.intersectsChange||Gw(ut)||(ut.flags&50720768)!==kn)&&Ln(ut,V))return lR(ut)&&((Ue=ut.jsDoc)!=null&&Ue.jsDocCache)&&(ut.jsDoc.jsDocCache=void 0),ut}function xt(V){return t.setTextPos(V.end),Qe(),V}function qt(V){switch(V){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Ln(V,me){switch(me){case 5:return mr(V);case 2:return Vr(V);case 0:case 1:case 3:return gi(V);case 6:return Ea(V);case 4:return bo(V);case 8:return Qo(V);case 17:case 16:return Cs(V)}return!1}function mr(V){if(V)switch(V.kind){case 173:case 178:case 174:case 175:case 169:case 237:return!0;case 171:let me=V;return!(me.name.kind===79&&me.name.escapedText==="constructor")}return!1}function Vr(V){if(V)switch(V.kind){case 292:case 293:return!0}return!1}function gi(V){if(V)switch(V.kind){case 259:case 240:case 238:case 242:case 241:case 254:case 250:case 252:case 249:case 248:case 246:case 247:case 245:case 244:case 251:case 239:case 255:case 253:case 243:case 256:case 269:case 268:case 275:case 274:case 264:case 260:case 261:case 263:case 262:return!0}return!1}function Ea(V){return V.kind===302}function bo(V){if(V)switch(V.kind){case 177:case 170:case 178:case 168:case 176:return!0}return!1}function Qo(V){return V.kind!==257?!1:V.initializer===void 0}function Cs(V){return V.kind!==166?!1:V.initializer===void 0}function Bu(V){return Pd(V),io()?!0:(Qe(),!1)}function Pd(V){switch(V){case 0:return j()===88?rt(_._0_expected,Xa(93)):rt(_.Declaration_or_statement_expected);case 1:return rt(_.Declaration_or_statement_expected);case 2:return rt(_.case_or_default_expected);case 3:return rt(_.Statement_expected);case 18:case 4:return rt(_.Property_or_signature_expected);case 5:return rt(_.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return rt(_.Enum_member_expected);case 7:return rt(_.Expression_expected);case 8:return Xu(j())?rt(_._0_is_not_allowed_as_a_variable_declaration_name,Xa(j())):rt(_.Variable_declaration_expected);case 9:return rt(_.Property_destructuring_pattern_expected);case 10:return rt(_.Array_element_destructuring_pattern_expected);case 11:return rt(_.Argument_expression_expected);case 12:return rt(_.Property_assignment_expected);case 15:return rt(_.Expression_or_comma_expected);case 17:return rt(_.Parameter_declaration_expected);case 16:return Xu(j())?rt(_._0_is_not_allowed_as_a_parameter_name,Xa(j())):rt(_.Parameter_declaration_expected);case 19:return rt(_.Type_parameter_declaration_expected);case 20:return rt(_.Type_argument_expected);case 21:return rt(_.Type_expected);case 22:return rt(_.Unexpected_token_expected);case 23:return rt(_.Identifier_expected);case 13:return rt(_.Identifier_expected);case 14:return rt(_.Identifier_expected);case 24:return rt(_.Identifier_or_string_literal_expected);case 25:return L.fail("ParsingContext.Count used as a context");default:L.assertNever(V)}}function Dc(V,me,Ue){let ut=Qt;Qt|=1<<V;let Lt=[],dn=z(),Er=-1;for(;;){if($o(V,!1)){let ii=t.getStartPos(),li=Ze(V,me);if(!li){Qt=ut;return}if(Lt.push(li),Er=t.getTokenPos(),aa(27))continue;if(Er=-1,bn(V))break;gn(27,gd(V)),Ue&&j()===26&&!t.hasPrecedingLineBreak()&&Qe(),ii===t.getStartPos()&&Qe();continue}if(bn(V)||Bu(V))break}return Qt=ut,As(Lt,dn,void 0,Er>=0)}function gd(V){return V===6?_.An_enum_member_name_must_be_followed_by_a_or:void 0}function Zl(){let V=As([],z());return V.isMissingList=!0,V}function Md(V){return!!V.isMissingList}function zf(V,me,Ue,ut){if(gn(Ue)){let Lt=Dc(V,me);return gn(ut),Lt}return Zl()}function Io(V,me){let Ue=z(),ut=V?wt(me):ht(me);for(;aa(24)&&j()!==29;)ut=jt(m.createQualifiedName(ut,Fd(V,!1)),Ue);return ut}function Jf(V,me){return jt(m.createQualifiedName(V,me),V.pos)}function Fd(V,me){if(t.hasPrecedingLineBreak()&&Su(j())&&Nr(Vu))return yc(79,!0,_.Identifier_expected);if(j()===80){let Ue=yr();return me?Ue:yc(79,!0,_.Identifier_expected)}return V?wt():ht()}function E_(V){let me=z(),Ue=[],ut;do ut=la(V),Ue.push(ut);while(ut.literal.kind===16);return As(Ue,me)}function Y_(V){let me=z();return jt(m.createTemplateExpression(be(V),E_(V)),me)}function M(){let V=z();return jt(m.createTemplateLiteralType(be(!1),He()),V)}function He(){let V=z(),me=[],Ue;do Ue=Nt(),me.push(Ue);while(Ue.literal.kind===16);return As(me,V)}function Nt(){let V=z();return jt(m.createTemplateLiteralTypeSpan(Kc(),Pn(!1)),V)}function Pn(V){return j()===19?(ei(V),De()):Ll(17,_._0_expected,Xa(19))}function la(V){let me=z();return jt(m.createTemplateSpan(at(Ml),Pn(V)),me)}function oa(){return St(j())}function be(V){V&&Kr();let me=St(j());return L.assert(me.kind===15,"Template head has wrong token kind"),me}function De(){let V=St(j());return L.assert(V.kind===16||V.kind===17,"Template fragment has wrong token kind"),V}function mt(V){let me=V===14||V===17,Ue=t.getTokenText();return Ue.substring(1,Ue.length-(t.isUnterminated()?0:me?1:2))}function St(V){let me=z(),Ue=Hy(V)?m.createTemplateLiteralLikeNode(V,t.getTokenValue(),mt(V),t.getTokenFlags()&2048):V===8?S(t.getTokenValue(),t.getNumericLiteralFlags()):V===10?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):gI(V)?A(V,t.getTokenValue()):L.fail();return t.hasExtendedUnicodeEscape()&&(Ue.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ue.isUnterminated=!0),Qe(),jt(Ue,me)}function Zt(){return Io(!0,_.Type_expected)}function rn(){if(!t.hasPrecedingLineBreak()&&Si()===29)return zf(20,Kc,29,31)}function sn(){let V=z();return jt(m.createTypeReferenceNode(Zt(),rn()),V)}function Dn(V){switch(V.kind){case 180:return rc(V.typeName);case 181:case 182:{let{parameters:me,type:Ue}=V;return Md(me)||Dn(Ue)}case 193:return Dn(V.type);default:return!1}}function kr(V){return Qe(),jt(m.createTypePredicateNode(void 0,V,Kc()),V.pos)}function ki(){let V=z();return Qe(),jt(m.createThisTypeNode(),V)}function Vn(){let V=z();return Qe(),jt(m.createJSDocAllType(),V)}function $t(){let V=z();return Qe(),jt(m.createJSDocNonNullableType(wb(),!1),V)}function Xn(){let V=z();return Qe(),j()===27||j()===19||j()===21||j()===31||j()===63||j()===51?jt(m.createJSDocUnknownType(),V):jt(m.createJSDocNullableType(Kc(),!1),V)}function ra(){let V=z(),me=Te();if(Nr(qr)){Qe();let Ue=$_(36),ut=S_(58,!1);return nn(jt(m.createJSDocFunctionType(Ue,ut),V),me)}return jt(m.createTypeReferenceNode(wt(),void 0),V)}function Is(){let V=z(),me;return(j()===108||j()===103)&&(me=wt(),gn(58)),jt(m.createParameterDeclaration(void 0,void 0,me,void 0,Mc(),void 0),V)}function Mc(){t.setInJSDocType(!0);let V=z();if(aa(142)){let ut=m.createJSDocNamepathType(void 0);e:for(;;)switch(j()){case 19:case 1:case 27:case 5:break e;default:Vt()}return t.setInJSDocType(!1),jt(ut,V)}let me=aa(25),Ue=wo();return t.setInJSDocType(!1),me&&(Ue=jt(m.createJSDocVariadicType(Ue),V)),j()===63?(Qe(),jt(m.createJSDocOptionalType(Ue),V)):Ue}function mm(){let V=z();gn(112);let me=Io(!0),Ue=t.hasPrecedingLineBreak()?void 0:bd();return jt(m.createTypeQueryNode(me,Ue),V)}function Hh(){let V=z(),me=ls(!1,!0),Ue=ht(),ut,Lt;aa(94)&&(qh()||!C_()?ut=Kc():Lt=Q_());let dn=aa(63)?Kc():void 0,Er=m.createTypeParameterDeclaration(me,Ue,ut,dn);return Er.expression=Lt,jt(Er,V)}function T_(){if(j()===29)return zf(19,Hh,29,31)}function Cb(V){return j()===25||IE()||Rg(j())||j()===59||qh(!V)}function mv(V){let me=cy(_.Private_identifiers_cannot_be_used_as_parameters);return Fw(me)===0&&!vt(V)&&Rg(j())&&Qe(),me}function gx(){return Qr()||j()===22||j()===18}function _1(V){return Wh(V)}function yx(V){return Wh(V,!1)}function Wh(V,me=!0){let Ue=z(),ut=Te(),Lt=V?ue(()=>ls(!0)):G(()=>ls(!0));if(j()===108){let li=m.createParameterDeclaration(Lt,void 0,yu(!0),void 0,th(),void 0),di=Sl(Lt);return di&&oe(di,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),nn(jt(li,Ue),ut)}let dn=_n;_n=!1;let Er=Co(25);if(!me&&!gx())return;let ii=nn(jt(m.createParameterDeclaration(Lt,Er,mv(Lt),Co(57),th(),Yh()),Ue),ut);return _n=dn,ii}function S_(V,me){if(hv(V,me))return ve(wo)}function hv(V,me){return V===38?(gn(V),!0):aa(58)?!0:me&&j()===38?(rt(_._0_expected,Xa(58)),Qe(),!0):!1}function eh(V,me){let Ue=kt(),ut=ae();Ht(!!(V&1)),dr(!!(V&2));let Lt=V&32?Dc(17,Is):Dc(16,()=>me?_1(ut):yx(ut));return Ht(Ue),dr(ut),Lt}function $_(V){if(!gn(20))return Zl();let me=eh(V,!0);return gn(21),me}function gv(){aa(27)||Rs()}function lE(V){let me=z(),Ue=Te();V===177&&gn(103);let ut=T_(),Lt=$_(4),dn=S_(58,!0);gv();let Er=V===176?m.createCallSignature(ut,Lt,dn):m.createConstructSignature(ut,Lt,dn);return nn(jt(Er,me),Ue)}function Ib(){return j()===22&&Nr(zh)}function zh(){if(Qe(),j()===25||j()===23)return!0;if(Rg(j())){if(Qe(),Wi())return!0}else if(Wi())Qe();else return!1;return j()===58||j()===27?!0:j()!==57?!1:(Qe(),j()===58||j()===27||j()===23)}function p1(V,me,Ue){let ut=zf(16,()=>_1(!1),22,23),Lt=th();gv();let dn=m.createIndexSignature(Ue,ut,Lt);return nn(jt(dn,V),me)}function uE(V,me,Ue){let ut=Yt(),Lt=Co(57),dn;if(j()===20||j()===29){let Er=T_(),ii=$_(4),li=S_(58,!0);dn=m.createMethodSignature(Ue,ut,Lt,Er,ii,li)}else{let Er=th();dn=m.createPropertySignature(Ue,ut,Lt,Er),j()===63&&(dn.initializer=Yh())}return gv(),nn(jt(dn,V),me)}function dE(){if(j()===20||j()===29||j()===137||j()===151)return!0;let V=!1;for(;Rg(j());)V=!0,Qe();return j()===22?!0:(K()&&(V=!0,Qe()),V?j()===20||j()===29||j()===57||j()===58||j()===27||ss():!1)}function fE(){if(j()===20||j()===29)return lE(176);if(j()===103&&Nr(yv))return lE(177);let V=z(),me=Te(),Ue=ls(!1);return ta(137)?Tm(V,me,Ue,174,4):ta(151)?Tm(V,me,Ue,175,4):Ib()?p1(V,me,Ue):uE(V,me,Ue)}function yv(){return Qe(),j()===20||j()===29}function vx(){return Qe()===24}function _E(){switch(Qe()){case 20:case 29:case 24:return!0}return!1}function pE(){let V=z();return jt(m.createTypeLiteralNode(vv()),V)}function vv(){let V;return gn(18)?(V=ee(4,fE),gn(19)):V=Zl(),V}function Lb(){return Qe(),j()===39||j()===40?Qe()===146:(j()===146&&Qe(),j()===22&&Ws()&&Qe()===101)}function bv(){let V=z(),me=wt();gn(101);let Ue=Kc();return jt(m.createTypeParameterDeclaration(void 0,me,Ue,void 0),V)}function m1(){let V=z();gn(18);let me;(j()===146||j()===39||j()===40)&&(me=Pc(),me.kind!==146&&gn(146)),gn(22);let Ue=bv(),ut=aa(128)?Kc():void 0;gn(23);let Lt;(j()===57||j()===39||j()===40)&&(Lt=Pc(),Lt.kind!==57&&gn(57));let dn=th();Rs();let Er=ee(4,fE);return gn(19),jt(m.createMappedTypeNode(me,Ue,ut,Lt,dn,Er),V)}function Jh(){let V=z();if(aa(25))return jt(m.createRestTypeNode(Kc()),V);let me=Kc();if(T2(me)&&me.pos===me.type.pos){let Ue=m.createOptionalTypeNode(me.type);return it(Ue,me),Ue.flags=me.flags,Ue}return me}function Lo(){return Qe()===58||j()===57&&Qe()===58}function mE(){return j()===25?Su(Qe())&&Lo():Su(j())&&Lo()}function sC(){if(Nr(mE)){let V=z(),me=Te(),Ue=Co(25),ut=wt(),Lt=Co(57);gn(58);let dn=Jh(),Er=m.createNamedTupleMember(Ue,ut,Lt,dn);return nn(jt(Er,V),me)}return Jh()}function Zg(){let V=z();return jt(m.createTupleTypeNode(zf(21,sC,22,23)),V)}function Kh(){let V=z();gn(20);let me=Kc();return gn(21),jt(m.createParenthesizedType(me),V)}function hm(){let V;if(j()===126){let me=z();Qe();let Ue=jt(P(126),me);V=As([Ue],me)}return V}function x_(){let V=z(),me=Te(),Ue=hm(),ut=aa(103);L.assert(!Ue||ut,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Lt=T_(),dn=$_(4),Er=S_(38,!1),ii=ut?m.createConstructorTypeNode(Ue,Lt,dn,Er):m.createFunctionTypeNode(Lt,dn,Er);return nn(jt(ii,V),me)}function Zu(){let V=Pc();return j()===24?void 0:V}function ed(V){let me=z();V&&Qe();let Ue=j()===110||j()===95||j()===104?Pc():St(j());return V&&(Ue=jt(m.createPrefixUnaryExpression(40,Ue),me)),jt(m.createLiteralTypeNode(Ue),me)}function td(){return Qe(),j()===100}function kb(){let V=z(),me=t.getTokenPos();gn(18);let Ue=t.hasPrecedingLineBreak();gn(130),gn(58);let ut=fy(!0);if(!gn(19)){let Lt=Os(Ye);Lt&&Lt.code===_._0_expected.code&&Ao(Lt,t2(Pe,me,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return jt(m.createImportTypeAssertionContainer(ut,Ue),V)}function Db(){Ce|=2097152;let V=z(),me=aa(112);gn(100),gn(20);let Ue=Kc(),ut;aa(27)&&(ut=kb()),gn(21);let Lt=aa(24)?Zt():void 0,dn=rn();return jt(m.createImportTypeNode(Ue,ut,Lt,dn,me),V)}function bx(){return Qe(),j()===8||j()===9}function wb(){switch(j()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return Fo(Zu)||sn();case 66:t.reScanAsteriskEqualsToken();case 41:return Vn();case 60:t.reScanQuestionToken();case 57:return Xn();case 98:return ra();case 53:return $t();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return ed();case 40:return Nr(bx)?ed(!0):sn();case 114:return Pc();case 108:{let V=ki();return j()===140&&!t.hasPrecedingLineBreak()?kr(V):V}case 112:return Nr(td)?Db():mm();case 18:return Nr(Lb)?m1():pE();case 22:return Zg();case 20:return Kh();case 100:return Db();case 129:return Nr(Vu)?gE():sn();case 15:return M();default:return sn()}}function qh(V){switch(j()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!V;case 40:return!V&&Nr(bx);case 20:return!V&&Nr(Rb);default:return Wi()}}function Rb(){return Qe(),j()===21||Cb(!1)||qh()}function h1(){let V=z(),me=wb();for(;!t.hasPrecedingLineBreak();)switch(j()){case 53:Qe(),me=jt(m.createJSDocNonNullableType(me,!0),V);break;case 57:if(Nr(Et))return me;Qe(),me=jt(m.createJSDocNullableType(me,!0),V);break;case 22:if(gn(22),qh()){let Ue=Kc();gn(23),me=jt(m.createIndexedAccessTypeNode(me,Ue),V)}else gn(23),me=jt(m.createArrayTypeNode(me),V);break;default:return me}return me}function Ob(V){let me=z();return gn(V),jt(m.createTypeOperatorNode(V,hE()),me)}function cC(){if(aa(94)){let V=nt(Kc);if(ln()||j()!==57)return V}}function Ex(){let V=z(),me=ht(),Ue=Fo(cC),ut=m.createTypeParameterDeclaration(void 0,me,Ue);return jt(ut,V)}function Ev(){let V=z();return gn(138),jt(m.createInferTypeNode(Ex()),V)}function hE(){let V=j();switch(V){case 141:case 156:case 146:return Ob(V);case 138:return Ev()}return ve(h1)}function Fe(V){if(Sv()){let me=x_(),Ue;return Jm(me)?Ue=V?_.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ue=V?_.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,oe(me,Ue),me}}function ey(V,me,Ue){let ut=z(),Lt=V===51,dn=aa(V),Er=dn&&Fe(Lt)||me();if(j()===V||dn){let ii=[Er];for(;aa(V);)ii.push(Fe(Lt)||me());Er=jt(Ue(As(ii,ut)),ut)}return Er}function Ip(){return ey(50,hE,m.createIntersectionTypeNode)}function Tv(){return ey(51,Ip,m.createUnionTypeNode)}function Nb(){return Qe(),j()===103}function Sv(){return j()===29||j()===20&&Nr(g1)?!0:j()===103||j()===126&&Nr(Nb)}function Xh(){if(Rg(j())&&ls(!1),Wi()||j()===108)return Qe(),!0;if(j()===22||j()===18){let V=Ye.length;return cy(),V===Ye.length}return!1}function g1(){return Qe(),!!(j()===21||j()===25||Xh()&&(j()===58||j()===27||j()===57||j()===63||j()===21&&(Qe(),j()===38)))}function wo(){let V=z(),me=Wi()&&Fo(A_),Ue=Kc();return me?jt(m.createTypePredicateNode(void 0,me,Ue),V):Ue}function A_(){let V=ht();if(j()===140&&!t.hasPrecedingLineBreak())return Qe(),V}function gE(){let V=z(),me=Ll(129),Ue=j()===108?ki():ht(),ut=aa(140)?Kc():void 0;return jt(m.createTypePredicateNode(me,Ue,ut),V)}function Kc(){if(kn&40960)return Cr(40960,Kc);if(Sv())return x_();let V=z(),me=Tv();if(!ln()&&!t.hasPrecedingLineBreak()&&aa(94)){let Ue=nt(Kc);gn(57);let ut=ve(Kc);gn(58);let Lt=ve(Kc);return jt(m.createConditionalTypeNode(me,Ue,ut,Lt),V)}return me}function th(){return aa(58)?Kc():void 0}function Pb(){switch(j()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Nr(_E);default:return Wi()}}function C_(){if(Pb())return!0;switch(j()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:case 59:return!0;default:return Tx()?!0:Wi()}}function Mb(){return j()!==18&&j()!==98&&j()!==84&&j()!==59&&C_()}function Ml(){let V=ir();V&&En(!1);let me=z(),Ue=ll(!0),ut;for(;ut=Co(27);)Ue=xv(Ue,ut,ll(!0),me);return V&&En(!0),Ue}function Yh(){return aa(63)?ll(!0):void 0}function ll(V){if(y1())return Ai();let me=gm(V)||nh(V);if(me)return me;let Ue=z(),ut=Gb(0);return ut.kind===79&&j()===38?Rr(Ue,ut,V,void 0):Ju(ut)&&Mg(Hn())?xv(ut,Pc(),ll(V),Ue):v1(ut,Ue,V)}function y1(){return j()===125?kt()?!0:Nr(Lv):!1}function lC(){return Qe(),!t.hasPrecedingLineBreak()&&Wi()}function Ai(){let V=z();return Qe(),!t.hasPrecedingLineBreak()&&(j()===41||C_())?jt(m.createYieldExpression(Co(41),ll(!0)),V):jt(m.createYieldExpression(void 0,void 0),V)}function Rr(V,me,Ue,ut){L.assert(j()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Lt=m.createParameterDeclaration(void 0,void 0,me,void 0,void 0,void 0);jt(Lt,me.pos);let dn=As([Lt],Lt.pos,Lt.end),Er=Ll(38),ii=Fb(!!ut,Ue),li=m.createArrowFunction(ut,void 0,dn,void 0,Er,ii);return pn(jt(li,V))}function gm(V){let me=yd();if(me!==0)return me===1?zs(!0,!0):Fo(()=>$h(V))}function yd(){return j()===20||j()===29||j()===132?Nr(yE):j()===38?1:0}function yE(){if(j()===132&&(Qe(),t.hasPrecedingLineBreak()||j()!==20&&j()!==29))return 0;let V=j(),me=Qe();if(V===20){if(me===21)switch(Qe()){case 38:case 58:case 18:return 1;default:return 0}if(me===22||me===18)return 2;if(me===25)return 1;if(Rg(me)&&me!==132&&Nr(Ws))return Qe()===128?0:1;if(!Wi()&&me!==108)return 0;switch(Qe()){case 58:return 1;case 57:return Qe(),j()===58||j()===27||j()===63||j()===21?1:0;case 27:case 63:case 21:return 2}return 0}else return L.assert(V===29),!Wi()&&j()!==85?0:Le===1?Nr(()=>{aa(85);let ut=Qe();if(ut===94)switch(Qe()){case 63:case 31:case 43:return!1;default:return!0}else if(ut===27||ut===63)return!0;return!1})?1:0:2}function $h(V){let me=t.getTokenPos();if(tn?.has(me))return;let Ue=zs(!1,V);return Ue||(tn||(tn=new Set)).add(me),Ue}function nh(V){if(j()===132&&Nr(ym)===1){let me=z(),Ue=kE(),ut=Gb(0);return Rr(me,ut,V,Ue)}}function ym(){if(j()===132){if(Qe(),t.hasPrecedingLineBreak()||j()===38)return 0;let V=Gb(0);if(!t.hasPrecedingLineBreak()&&V.kind===79&&j()===38)return 1}return 0}function zs(V,me){let Ue=z(),ut=Te(),Lt=kE(),dn=vt(Lt,mL)?2:0,Er=T_(),ii;if(gn(20)){if(V)ii=eh(dn,V);else{let Op=eh(dn,V);if(!Op)return;ii=Op}if(!gn(21)&&!V)return}else{if(!V)return;ii=Zl()}let li=j()===58,di=S_(58,!1);if(di&&!V&&Dn(di))return;let ma=di;for(;ma?.kind===193;)ma=ma.type;let is=ma&&S2(ma);if(!V&&j()!==38&&(is||j()!==18))return;let ao=j(),Oo=Ll(38),id=ao===38||ao===18?Fb(vt(Lt,mL),me):ht();if(!me&&li&&j()!==58)return;let np=m.createArrowFunction(Lt,Er,ii,di,Oo,id);return nn(jt(np,Ue),ut)}function Fb(V,me){if(j()===18)return nd(V?2:0);if(j()!==26&&j()!==98&&j()!==84&&C1()&&!Mb())return nd(16|(V?2:0));let Ue=_n;_n=!1;let ut=V?ue(()=>ll(me)):G(()=>ll(me));return _n=Ue,ut}function v1(V,me,Ue){let ut=Co(57);if(!ut)return V;let Lt;return jt(m.createConditionalExpression(V,ut,Cr(r,()=>ll(!1)),Lt=Ll(58),Pf(Lt)?ll(Ue):yc(79,!1,_._0_expected,Xa(58))),me)}function Gb(V){let me=z(),Ue=Q_();return Cf(V,Ue,me)}function b1(V){return V===101||V===162}function Cf(V,me,Ue){for(;;){Hn();let ut=vR(j());if(!(j()===42?ut>=V:ut>V)||j()===101&&Kt())break;if(j()===128||j()===150){if(t.hasPrecedingLineBreak())break;{let dn=j();Qe(),me=dn===150?Sx(me,Kc()):E1(me,Kc())}}else me=xv(me,Pc(),Gb(ut),Ue)}return me}function Tx(){return Kt()&&j()===101?!1:vR(j())>0}function Sx(V,me){return jt(m.createSatisfiesExpression(V,me),V.pos)}function xv(V,me,Ue,ut){return jt(m.createBinaryExpression(V,me,Ue),ut)}function E1(V,me){return jt(m.createAsExpression(V,me),V.pos)}function T1(){let V=z();return jt(m.createPrefixUnaryExpression(j(),lt(I_)),V)}function xx(){let V=z();return jt(m.createDeleteExpression(lt(I_)),V)}function Bb(){let V=z();return jt(m.createTypeOfExpression(lt(I_)),V)}function S1(){let V=z();return jt(m.createVoidExpression(lt(I_)),V)}function rf(){return j()===133?ae()?!0:Nr(Lv):!1}function Qh(){let V=z();return jt(m.createAwaitExpression(lt(I_)),V)}function Q_(){if(Ax()){let Ue=z(),ut=Ub();return j()===42?Cf(vR(j()),ut,Ue):ut}let V=j(),me=I_();if(j()===42){let Ue=xo(Ie,me.pos),{end:ut}=me;me.kind===213?Ke(Ue,ut,_.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Ke(Ue,ut,_.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Xa(V))}return me}function I_(){switch(j()){case 39:case 40:case 54:case 53:return T1();case 89:return xx();case 112:return Bb();case 114:return S1();case 29:return Le===1?Zh(!0):Ix();case 133:if(rf())return Qh();default:return Ub()}}function Ax(){switch(j()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(Le!==1)return!1;default:return!0}}function Ub(){if(j()===45||j()===46){let me=z();return jt(m.createPrefixUnaryExpression(j(),lt(Lp)),me)}else if(Le===1&&j()===29&&Nr(vc))return Zh(!0);let V=Lp();if(L.assert(Ju(V)),(j()===45||j()===46)&&!t.hasPrecedingLineBreak()){let me=j();return Qe(),jt(m.createPostfixUnaryExpression(V,me),V.pos)}return V}function Lp(){let V=z(),me;return j()===100?Nr(yv)?(Ce|=2097152,me=Pc()):Nr(vx)?(Qe(),Qe(),me=jt(m.createMetaProperty(100,wt()),V),Ce|=4194304):me=x1():me=j()===106?Uu():x1(),Wn(V,me)}function x1(){let V=z(),me=Kf();return af(V,me,!0)}function Uu(){let V=z(),me=Pc();if(j()===29){let Ue=z(),ut=Fo(ry);ut!==void 0&&(Ke(Ue,z(),_.super_may_not_use_type_arguments),Av()||(me=m.createExpressionWithTypeArguments(me,ut)))}return j()===20||j()===24||j()===22?me:(Ll(24,_.super_must_be_followed_by_an_argument_list_or_member_access),jt(q(me,Fd(!0,!0)),V))}function Zh(V,me,Ue){let ut=z(),Lt=A1(V),dn;if(Lt.kind===283){let Er=eg(Lt),ii,li=Er[Er.length-1];if(li?.kind===281&&!yb(li.openingElement.tagName,li.closingElement.tagName)&&yb(Lt.tagName,li.closingElement.tagName)){let di=li.children.end,ma=jt(m.createJsxElement(li.openingElement,li.children,jt(m.createJsxClosingElement(jt(w(""),di,di)),di,di)),li.openingElement.pos,di);Er=As([...Er.slice(0,Er.length-1),ma],Er.pos,di),ii=li.closingElement}else ii=Vb(Lt,V),yb(Lt.tagName,ii.tagName)||(Ue&&Xm(Ue)&&yb(ii.tagName,Ue.tagName)?oe(Lt.tagName,_.JSX_element_0_has_no_corresponding_closing_tag,AI(Ie,Lt.tagName)):oe(ii.tagName,_.Expected_corresponding_JSX_closing_tag_for_0,AI(Ie,Lt.tagName)));dn=jt(m.createJsxElement(Lt,Er,ii),ut)}else Lt.kind===286?dn=jt(m.createJsxFragment(Lt,eg(Lt),jb(V)),ut):(L.assert(Lt.kind===282),dn=Lt);if(V&&j()===29){let Er=typeof me>"u"?dn.pos:me,ii=Fo(()=>Zh(!0,Er));if(ii){let li=yc(27,!1);return oL(li,ii.pos,0),Ke(xo(Ie,Er),ii.end,_.JSX_expressions_must_have_one_parent_element),jt(m.createBinaryExpression(dn,li,ii),ut)}}return dn}function kp(){let V=z(),me=m.createJsxText(t.getTokenValue(),Rt===12);return Rt=t.scanJsxToken(),jt(me,V)}function Dp(V,me){switch(me){case 1:if(US(V))oe(V,_.JSX_fragment_has_no_corresponding_closing_tag);else{let Ue=V.tagName,ut=xo(Ie,Ue.pos);Ke(ut,Ue.end,_.JSX_element_0_has_no_corresponding_closing_tag,AI(Ie,V.tagName))}return;case 30:case 7:return;case 11:case 12:return kp();case 18:return bE(!1);case 29:return Zh(!1,void 0,V);default:return L.assertNever(me)}}function eg(V){let me=[],Ue=z(),ut=Qt;for(Qt|=16384;;){let Lt=Dp(V,Rt=t.reScanJsxToken());if(!Lt||(me.push(Lt),Xm(V)&&Lt?.kind===281&&!yb(Lt.openingElement.tagName,Lt.closingElement.tagName)&&yb(V.tagName,Lt.closingElement.tagName)))break}return Qt=ut,As(me,Ue)}function vE(){let V=z();return jt(m.createJsxAttributes(ee(13,cs)),V)}function A1(V){let me=z();if(gn(29),j()===31)return Fa(),jt(m.createJsxOpeningFragment(),me);let Ue=ty(),ut=kn&262144?void 0:bd(),Lt=vE(),dn;return j()===31?(Fa(),dn=m.createJsxOpeningElement(Ue,ut,Lt)):(gn(43),gn(31,void 0,!1)&&(V?Qe():Fa()),dn=m.createJsxSelfClosingElement(Ue,ut,Lt)),jt(dn,me)}function ty(){let V=z();Za();let me=j()===108?Pc():wt();for(;aa(24);)me=jt(q(me,Fd(!0,!1)),V);return me}function bE(V){let me=z();if(!gn(18))return;let Ue,ut;return j()!==19&&(Ue=Co(25),ut=Ml()),V?gn(19):gn(19,void 0,!1)&&Fa(),jt(m.createJsxExpression(Ue,ut),me)}function cs(){if(j()===18)return Cx();Za();let V=z();return jt(m.createJsxAttribute(wt(),ny()),V)}function ny(){if(j()===63){if(Hi()===10)return oa();if(j()===18)return bE(!0);if(j()===29)return Zh(!0);rt(_.or_JSX_element_expected)}}function Cx(){let V=z();gn(18),gn(25);let me=Ml();return gn(19),jt(m.createJsxSpreadAttribute(me),V)}function Vb(V,me){let Ue=z();gn(30);let ut=ty();return gn(31,void 0,!1)&&(me||!yb(V.tagName,ut)?Qe():Fa()),jt(m.createJsxClosingElement(ut),Ue)}function jb(V){let me=z();return gn(30),gn(31,_.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(V?Qe():Fa()),jt(m.createJsxJsxClosingFragment(),me)}function Ix(){L.assert(Le!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let V=z();gn(29);let me=Kc();gn(31);let Ue=I_();return jt(m.createTypeAssertion(me,Ue),V)}function uC(){return Qe(),Su(j())||j()===22||Av()}function Lx(){return j()===28&&Nr(uC)}function Qn(V){if(V.flags&32)return!0;if(PS(V)){let me=V.expression;for(;PS(me)&&!(me.flags&32);)me=me.expression;if(me.flags&32){for(;PS(V);)V.flags|=32,V=V.expression;return!0}}return!1}function lc(V,me,Ue){let ut=Fd(!0,!0),Lt=Ue||Qn(me),dn=Lt?W(me,Ue,ut):q(me,ut);if(Lt&&pi(dn.name)&&oe(dn.name,_.An_optional_chain_cannot_contain_private_identifiers),Vg(me)&&me.typeArguments){let Er=me.typeArguments.pos-1,ii=xo(Ie,me.typeArguments.end)+1;Ke(Er,ii,_.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return jt(dn,V)}function zi(V,me,Ue){let ut;if(j()===23)ut=yc(79,!0,_.An_element_access_expression_should_take_an_argument);else{let dn=at(Ml);yf(dn)&&(dn.text=Ql(dn.text)),ut=dn}gn(23);let Lt=Ue||Qn(me)?R(me,Ue,ut):Y(me,ut);return jt(Lt,V)}function af(V,me,Ue){for(;;){let ut,Lt=!1;if(Ue&&Lx()?(ut=Ll(28),Lt=Su(j())):Lt=aa(24),Lt){me=lc(V,me,ut);continue}if((ut||!ir())&&aa(22)){me=zi(V,me,ut);continue}if(Av()){me=!ut&&me.kind===230?vm(V,me.expression,ut,me.typeArguments):vm(V,me,ut,void 0);continue}if(!ut){if(j()===53&&!t.hasPrecedingLineBreak()){Qe(),me=jt(m.createNonNullExpression(me),V);continue}let dn=Fo(ry);if(dn){me=jt(m.createExpressionWithTypeArguments(me,dn),V);continue}}return me}}function Av(){return j()===14||j()===15}function vm(V,me,Ue,ut){let Lt=m.createTaggedTemplateExpression(me,ut,j()===14?(Kr(),oa()):Y_(!0));return(Ue||me.flags&32)&&(Lt.flags|=32),Lt.questionDotToken=Ue,jt(Lt,V)}function Wn(V,me){for(;;){me=af(V,me,!0);let Ue,ut=Co(28);if(ut&&(Ue=Fo(ry),Av())){me=vm(V,me,ut,Ue);continue}if(Ue||j()===20){!ut&&me.kind===230&&(Ue=me.typeArguments,me=me.expression);let Lt=kx(),dn=ut||Qn(me)?$(me,ut,Ue,Lt):ie(me,Ue,Lt);me=jt(dn,V);continue}if(ut){let Lt=yc(79,!1,_.Identifier_expected);me=jt(W(me,ut,Lt),V)}break}return me}function kx(){gn(20);let V=Dc(11,L_);return gn(21),V}function ry(){if(kn&262144||Si()!==29)return;Qe();let V=Dc(20,Kc);if(Hn()===31)return Qe(),V&&nl()?V:void 0}function nl(){switch(j()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return t.hasPrecedingLineBreak()||Tx()||!C_()}function Kf(){switch(j()){case 8:case 9:case 10:case 14:return oa();case 108:case 106:case 104:case 110:case 95:return Pc();case 20:return Z_();case 22:return ay();case 18:return wc();case 132:if(!Nr(Jb))break;return tg();case 59:return og();case 84:return Rv();case 98:return tg();case 103:return qf();case 43:case 68:if(jr()===13)return oa();break;case 15:return Y_(!1);case 80:return yr()}return ht(_.Expression_expected)}function Z_(){let V=z(),me=Te();gn(20);let Ue=at(Ml);return gn(21),nn(jt(Z(Ue),V),me)}function iy(){let V=z();gn(25);let me=ll(!0);return jt(m.createSpreadElement(me),V)}function EE(){return j()===25?iy():j()===27?jt(m.createOmittedExpression(),z()):ll(!0)}function L_(){return Cr(r,EE)}function ay(){let V=z(),me=t.getTokenPos(),Ue=gn(22),ut=t.hasPrecedingLineBreak(),Lt=Dc(15,EE);return ro(22,23,Ue,me),jt(F(Lt,ut),V)}function Ac(){let V=z(),me=Te();if(Co(25)){let ma=ll(!0);return nn(jt(m.createSpreadAssignment(ma),V),me)}let Ue=ls(!0);if(ta(137))return Tm(V,me,Ue,174,0);if(ta(151))return Tm(V,me,Ue,175,0);let ut=Co(41),Lt=Wi(),dn=Yt(),Er=Co(57),ii=Co(53);if(ut||j()===20||j()===29)return L1(V,me,Ue,ut,dn,Er,ii);let li;if(Lt&&j()!==58){let ma=Co(63),is=ma?at(()=>ll(!0)):void 0;li=m.createShorthandPropertyAssignment(dn,is),li.equalsToken=ma}else{gn(58);let ma=at(()=>ll(!0));li=m.createPropertyAssignment(dn,ma)}return li.modifiers=Ue,li.questionToken=Er,li.exclamationToken=ii,nn(jt(li,V),me)}function wc(){let V=z(),me=t.getTokenPos(),Ue=gn(18),ut=t.hasPrecedingLineBreak(),Lt=Dc(12,Ac,!0);return ro(18,19,Ue,me),jt(B(Lt,ut),V)}function tg(){let V=ir();En(!1);let me=z(),Ue=Te(),ut=ls(!1);gn(98);let Lt=Co(41),dn=Lt?1:0,Er=vt(ut,mL)?2:0,ii=dn&&Er?Oe(Fl):dn?ce(Fl):Er?ue(Fl):Fl(),li=T_(),di=$_(dn|Er),ma=S_(58,!1),is=nd(dn|Er);En(V);let ao=m.createFunctionExpression(ut,Lt,ii,li,di,ma,is);return nn(jt(ao,me),Ue)}function Fl(){return Qr()?se():void 0}function qf(){let V=z();if(gn(103),aa(24)){let dn=wt();return jt(m.createMetaProperty(103,dn),V)}let me=z(),Ue=af(me,Kf(),!1),ut;Ue.kind===230&&(ut=Ue.typeArguments,Ue=Ue.expression),j()===28&&rt(_.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,AI(Ie,Ue));let Lt=j()===20?kx():void 0;return jt(fe(Ue,ut,Lt),V)}function bm(V,me){let Ue=z(),ut=Te(),Lt=t.getTokenPos(),dn=gn(18,me);if(dn||V){let Er=t.hasPrecedingLineBreak(),ii=ee(1,of);ro(18,19,dn,Lt);let li=nn(jt(U(ii,Er),Ue),ut);return j()===63&&(rt(_.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Qe()),li}else{let Er=Zl();return nn(jt(U(Er,void 0),Ue),ut)}}function nd(V,me){let Ue=kt();Ht(!!(V&1));let ut=ae();dr(!!(V&2));let Lt=_n;_n=!1;let dn=ir();dn&&En(!1);let Er=bm(!!(V&16),me);return dn&&En(!0),_n=Lt,Ht(Ue),dr(ut),Er}function TE(){let V=z(),me=Te();return gn(26),nn(jt(m.createEmptyStatement(),V),me)}function Hb(){let V=z(),me=Te();gn(99);let Ue=t.getTokenPos(),ut=gn(20),Lt=at(Ml);ro(20,21,ut,Ue);let dn=of(),Er=aa(91)?of():void 0;return nn(jt(_e(Lt,dn,Er),V),me)}function Wb(){let V=z(),me=Te();gn(90);let Ue=of();gn(115);let ut=t.getTokenPos(),Lt=gn(20),dn=at(Ml);return ro(20,21,Lt,ut),aa(26),nn(jt(m.createDoStatement(Ue,dn),V),me)}function ep(){let V=z(),me=Te();gn(115);let Ue=t.getTokenPos(),ut=gn(20),Lt=at(Ml);ro(20,21,ut,Ue);let dn=of();return nn(jt(ge(Lt,dn),V),me)}function rh(){let V=z(),me=Te();gn(97);let Ue=Co(133);gn(20);let ut;j()!==26&&(j()===113||j()===119||j()===85?ut=wp(!0):ut=Tt(Ml));let Lt;if(Ue?gn(162):aa(162)){let dn=at(()=>ll(!0));gn(21),Lt=Ve(Ue,ut,dn,of())}else if(aa(101)){let dn=at(Ml);gn(21),Lt=m.createForInStatement(ut,dn,of())}else{gn(26);let dn=j()!==26&&j()!==21?at(Ml):void 0;gn(26);let Er=j()!==21?at(Ml):void 0;gn(21),Lt=X(ut,dn,Er,of())}return nn(jt(Lt,V),me)}function SE(V){let me=z(),Ue=Te();gn(V===249?81:86);let ut=ss()?void 0:ht();Rs();let Lt=V===249?m.createBreakStatement(ut):m.createContinueStatement(ut);return nn(jt(Lt,me),Ue)}function oy(){let V=z(),me=Te();gn(105);let Ue=ss()?void 0:at(Ml);return Rs(),nn(jt(m.createReturnStatement(Ue),V),me)}function uc(){let V=z(),me=Te();gn(116);let Ue=t.getTokenPos(),ut=gn(20),Lt=at(Ml);ro(20,21,ut,Ue);let dn=Se(33554432,of);return nn(jt(m.createWithStatement(Lt,dn),V),me)}function ng(){let V=z(),me=Te();gn(82);let Ue=at(Ml);gn(58);let ut=ee(3,of);return nn(jt(m.createCaseClause(Ue,ut),V),me)}function ih(){let V=z();gn(88),gn(58);let me=ee(3,of);return jt(m.createDefaultClause(me),V)}function Cv(){return j()===82?ng():ih()}function Iv(){let V=z();gn(18);let me=ee(2,Cv);return gn(19),jt(m.createCaseBlock(me),V)}function Gl(){let V=z(),me=Te();gn(107),gn(20);let Ue=at(Ml);gn(21);let ut=Iv();return nn(jt(m.createSwitchStatement(Ue,ut),V),me)}function ah(){let V=z(),me=Te();gn(109);let Ue=t.hasPrecedingLineBreak()?void 0:at(Ml);return Ue===void 0&&(zt++,Ue=jt(w(""),z())),qs()||kc(Ue),nn(jt(m.createThrowStatement(Ue),V),me)}function qc(){let V=z(),me=Te();gn(111);let Ue=bm(!1),ut=j()===83?xE():void 0,Lt;return(!ut||j()===96)&&(gn(96,_.catch_or_finally_expected),Lt=bm(!1)),nn(jt(m.createTryStatement(Ue,ut,Lt),V),me)}function xE(){let V=z();gn(83);let me;aa(20)?(me=ly(),gn(21)):me=void 0;let Ue=bm(!1);return jt(m.createCatchClause(me,Ue),V)}function oh(){let V=z(),me=Te();return gn(87),Rs(),nn(jt(m.createDebuggerStatement(),V),me)}function zb(){let V=z(),me=Te(),Ue,ut=j()===20,Lt=at(Ml);return Re(Lt)&&aa(58)?Ue=m.createLabeledStatement(Lt,of()):(qs()||kc(Lt),Ue=le(Lt),ut&&(me=!1)),nn(jt(Ue,V),me)}function Vu(){return Qe(),Su(j())&&!t.hasPrecedingLineBreak()}function Em(){return Qe(),j()===84&&!t.hasPrecedingLineBreak()}function Jb(){return Qe(),j()===98&&!t.hasPrecedingLineBreak()}function Lv(){return Qe(),(Su(j())||j()===8||j()===9||j()===10)&&!t.hasPrecedingLineBreak()}function AE(){for(;;)switch(j()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return lC();case 142:case 143:return Dx();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(Qe(),t.hasPrecedingLineBreak())return!1;continue;case 159:return Qe(),j()===18||j()===79||j()===93;case 100:return Qe(),j()===10||j()===41||j()===18||Su(j());case 93:let V=Qe();if(V===154&&(V=Nr(Qe)),V===63||V===41||V===18||V===88||V===128||V===59)return!0;continue;case 124:Qe();continue;default:return!1}}function sy(){return Nr(AE)}function C1(){switch(j()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return sy()||Nr(_E);case 85:case 93:return sy();case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 127:case 123:case 121:case 122:case 124:case 146:return sy()||!Nr(Vu);default:return C_()}}function kv(){return Qe(),Qr()||j()===18||j()===22}function rg(){return Nr(kv)}function of(){switch(j()){case 26:return TE();case 18:return bm(!1);case 113:return ig(z(),Te(),void 0);case 119:if(rg())return ig(z(),Te(),void 0);break;case 98:return wv(z(),Te(),void 0);case 84:return k1(z(),Te(),void 0);case 99:return Hb();case 90:return Wb();case 115:return ep();case 97:return rh();case 86:return SE(248);case 81:return SE(249);case 105:return oy();case 116:return uc();case 107:return Gl();case 109:return ah();case 111:case 83:case 96:return qc();case 87:return oh();case 59:return Gd();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(sy())return Gd();break}return zb()}function CE(V){return V.kind===136}function Gd(){let V=z(),me=Te(),Ue=ls(!0);if(vt(Ue,CE)){let Lt=sh(V);if(Lt)return Lt;for(let dn of Ue)dn.flags|=16777216;return Se(16777216,()=>Dv(V,me,Ue))}else return Dv(V,me,Ue)}function sh(V){return Se(16777216,()=>{let me=At(Qt,V);if(me)return xt(me)})}function Dv(V,me,Ue){switch(j()){case 113:case 119:case 85:return ig(V,me,Ue);case 98:return wv(V,me,Ue);case 84:return k1(V,me,Ue);case 118:return sg(V,me,Ue);case 154:return Ox(V,me,Ue);case 92:return E(V,me,Ue);case 159:case 142:case 143:return lr(V,me,Ue);case 100:return Ed(V,me,Ue);case 93:switch(Qe(),j()){case 88:case 63:return Zo(V,me,Ue);case 128:return kl(V,me,Ue);default:return KP(V,me,Ue)}default:if(Ue){let ut=yc(279,!0,_.Declaration_expected);return aL(ut,V),ut.modifiers=Ue,ut}return}}function Dx(){return Qe(),!t.hasPrecedingLineBreak()&&(Wi()||j()===10)}function No(V,me){if(j()!==18){if(V&4){gv();return}if(ss()){Rs();return}}return nd(V,me)}function fr(){let V=z();if(j()===27)return jt(m.createOmittedExpression(),V);let me=Co(25),Ue=cy(),ut=Yh();return jt(m.createBindingElement(me,void 0,Ue,ut),V)}function vd(){let V=z(),me=Co(25),Ue=Qr(),ut=Yt(),Lt;Ue&&j()!==58?(Lt=ut,ut=void 0):(gn(58),Lt=cy());let dn=Yh();return jt(m.createBindingElement(me,ut,Lt,dn),V)}function ju(){let V=z();gn(18);let me=Dc(9,vd);return gn(19),jt(m.createObjectBindingPattern(me),V)}function I1(){let V=z();gn(22);let me=Dc(10,fr);return gn(23),jt(m.createArrayBindingPattern(me),V)}function IE(){return j()===18||j()===22||j()===80||Qr()}function cy(V){return j()===22?I1():j()===18?ju():se(V)}function wx(){return ly(!0)}function ly(V){let me=z(),Ue=Te(),ut=cy(_.Private_identifiers_are_not_allowed_in_variable_declarations),Lt;V&&ut.kind===79&&j()===53&&!t.hasPrecedingLineBreak()&&(Lt=Pc());let dn=th(),Er=b1(j())?void 0:Yh(),ii=we(ut,Lt,dn,Er);return nn(jt(ii,me),Ue)}function wp(V){let me=z(),Ue=0;switch(j()){case 113:break;case 119:Ue|=1;break;case 85:Ue|=2;break;default:L.fail()}Qe();let ut;if(j()===162&&Nr(tp))ut=Zl();else{let Lt=Kt();vn(V),ut=Dc(8,V?ly:wx),vn(Lt)}return jt(ke(ut,Ue),me)}function tp(){return Ws()&&Qe()===21}function ig(V,me,Ue){let ut=wp(!1);Rs();let Lt=re(Ue,ut);return nn(jt(Lt,V),me)}function wv(V,me,Ue){let ut=ae(),Lt=im(Ue);gn(98);let dn=Co(41),Er=Lt&1024?Fl():se(),ii=dn?1:0,li=Lt&512?2:0,di=T_();Lt&1&&dr(!0);let ma=$_(ii|li),is=S_(58,!1),ao=No(ii|li,_.or_expected);dr(ut);let Oo=m.createFunctionDeclaration(Ue,dn,Er,di,ma,is,ao);return nn(jt(Oo,V),me)}function ch(){if(j()===135)return gn(135);if(j()===10&&Nr(Qe)===20)return Fo(()=>{let V=oa();return V.text==="constructor"?V:void 0})}function Rp(V,me,Ue){return Fo(()=>{if(ch()){let ut=T_(),Lt=$_(0),dn=S_(58,!1),Er=No(0,_.or_expected),ii=m.createConstructorDeclaration(Ue,Lt,Er);return ii.typeParameters=ut,ii.type=dn,nn(jt(ii,V),me)}})}function L1(V,me,Ue,ut,Lt,dn,Er,ii){let li=ut?1:0,di=vt(Ue,mL)?2:0,ma=T_(),is=$_(li|di),ao=S_(58,!1),Oo=No(li|di,ii),id=m.createMethodDeclaration(Ue,ut,Lt,dn,ma,is,ao,Oo);return id.exclamationToken=Er,nn(jt(id,V),me)}function Cc(V,me,Ue,ut,Lt){let dn=!Lt&&!t.hasPrecedingLineBreak()?Co(53):void 0,Er=th(),ii=Cr(45056,Yh);xc(ut,Er,ii);let li=m.createPropertyDeclaration(Ue,ut,Lt||dn,Er,ii);return nn(jt(li,V),me)}function Bd(V,me,Ue){let ut=Co(41),Lt=Yt(),dn=Co(57);return ut||j()===20||j()===29?L1(V,me,Ue,ut,Lt,dn,void 0,_.or_expected):Cc(V,me,Ue,Lt,dn)}function Tm(V,me,Ue,ut,Lt){let dn=Yt(),Er=T_(),ii=$_(0),li=S_(58,!1),di=No(Lt),ma=ut===174?m.createGetAccessorDeclaration(Ue,dn,ii,li,di):m.createSetAccessorDeclaration(Ue,dn,ii,di);return ma.typeParameters=Er,Sf(ma)&&(ma.type=li),nn(jt(ma,V),me)}function rd(){let V;if(j()===59)return!0;for(;Rg(j());){if(V=j(),Gj(V))return!0;Qe()}if(j()===41||(K()&&(V=j(),Qe()),j()===22))return!0;if(V!==void 0){if(!Xu(V)||V===151||V===137)return!0;switch(j()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return ss()}}return!1}function LE(V,me,Ue){Ll(124);let ut=uy(),Lt=nn(jt(m.createClassStaticBlockDeclaration(ut),V),me);return Lt.modifiers=Ue,Lt}function uy(){let V=kt(),me=ae();Ht(!1),dr(!0);let Ue=bm(!1);return Ht(V),dr(me),Ue}function ag(){if(ae()&&j()===133){let V=z(),me=ht(_.Expression_expected);Qe();let Ue=af(V,me,!0);return Wn(V,Ue)}return Lp()}function Rx(){let V=z();if(!aa(59))return;let me=Q(ag);return jt(m.createDecorator(me),V)}function sf(V,me,Ue){let ut=z(),Lt=j();if(j()===85&&me){if(!Fo(Go))return}else{if(Ue&&j()===124&&Nr(Ti))return;if(V&&j()===124)return;if(!Hs())return}return jt(P(Lt),ut)}function ls(V,me,Ue){let ut=z(),Lt,dn,Er,ii=!1,li=!1,di=!1;if(V&&j()===59)for(;dn=Rx();)Lt=Sn(Lt,dn);for(;Er=sf(ii,me,Ue);)Er.kind===124&&(ii=!0),Lt=Sn(Lt,Er),li=!0;if(li&&V&&j()===59)for(;dn=Rx();)Lt=Sn(Lt,dn),di=!0;if(di)for(;Er=sf(ii,me,Ue);)Er.kind===124&&(ii=!0),Lt=Sn(Lt,Er);return Lt&&As(Lt,ut)}function kE(){let V;if(j()===132){let me=z();Qe();let Ue=jt(P(132),me);V=As([Ue],me)}return V}function DE(){let V=z();if(j()===26)return Qe(),jt(m.createSemicolonClassElement(),V);let me=Te(),Ue=ls(!0,!0,!0);if(j()===124&&Nr(Ti))return LE(V,me,Ue);if(ta(137))return Tm(V,me,Ue,174,0);if(ta(151))return Tm(V,me,Ue,175,0);if(j()===135||j()===10){let ut=Rp(V,me,Ue);if(ut)return ut}if(Ib())return p1(V,me,Ue);if(Su(j())||j()===10||j()===8||j()===41||j()===22)if(vt(Ue,CE)){for(let Lt of Ue)Lt.flags|=16777216;return Se(16777216,()=>Bd(V,me,Ue))}else return Bd(V,me,Ue);if(Ue){let ut=yc(79,!0,_.Declaration_expected);return Cc(V,me,Ue,ut,void 0)}return L.fail("Should not have attempted to parse class member declaration.")}function og(){let V=z(),me=Te(),Ue=ls(!0);if(j()===84)return wE(V,me,Ue,228);let ut=yc(279,!0,_.Expression_expected);return aL(ut,V),ut.modifiers=Ue,ut}function Rv(){return wE(z(),Te(),void 0,228)}function k1(V,me,Ue){return wE(V,me,Ue,260)}function wE(V,me,Ue,ut){let Lt=ae();gn(84);let dn=RE(),Er=T_();vt(Ue,c3)&&dr(!0);let ii=NE(),li;gn(18)?(li=dC(),gn(19)):li=Zl(),dr(Lt);let di=ut===260?m.createClassDeclaration(Ue,dn,Er,ii,li):m.createClassExpression(Ue,dn,Er,ii,li);return nn(jt(di,V),me)}function RE(){return Qr()&&!OE()?yu(Qr()):void 0}function OE(){return j()===117&&Nr(hd)}function NE(){if(lh())return ee(22,PE)}function PE(){let V=z(),me=j();L.assert(me===94||me===117),Qe();let Ue=Dc(7,dy);return jt(m.createHeritageClause(me,Ue),V)}function dy(){let V=z(),me=Lp();if(me.kind===230)return me;let Ue=bd();return jt(m.createExpressionWithTypeArguments(me,Ue),V)}function bd(){return j()===29?zf(20,Kc,29,31):void 0}function lh(){return j()===94||j()===117}function dC(){return ee(5,DE)}function sg(V,me,Ue){gn(118);let ut=ht(),Lt=T_(),dn=NE(),Er=vv(),ii=m.createInterfaceDeclaration(Ue,ut,Lt,dn,Er);return nn(jt(ii,V),me)}function Ox(V,me,Ue){gn(154);let ut=ht(),Lt=T_();gn(63);let dn=j()===139&&Fo(Zu)||Kc();Rs();let Er=m.createTypeAliasDeclaration(Ue,ut,Lt,dn);return nn(jt(Er,V),me)}function Nx(){let V=z(),me=Te(),Ue=Yt(),ut=at(Yh);return nn(jt(m.createEnumMember(Ue,ut),V),me)}function E(V,me,Ue){gn(92);let ut=ht(),Lt;gn(18)?(Lt=je(()=>Dc(6,Nx)),gn(19)):Lt=Zl();let dn=m.createEnumDeclaration(Ue,ut,Lt);return nn(jt(dn,V),me)}function ne(){let V=z(),me;return gn(18)?(me=ee(1,of),gn(19)):me=Zl(),jt(m.createModuleBlock(me),V)}function Ee(V,me,Ue,ut){let Lt=ut&16,dn=ht(),Er=aa(24)?Ee(z(),!1,void 0,4|Lt):ne(),ii=m.createModuleDeclaration(Ue,dn,Er,ut);return nn(jt(ii,V),me)}function Wt(V,me,Ue){let ut=0,Lt;j()===159?(Lt=ht(),ut|=1024):(Lt=oa(),Lt.text=Ql(Lt.text));let dn;j()===18?dn=ne():Rs();let Er=m.createModuleDeclaration(Ue,Lt,dn,ut);return nn(jt(Er,V),me)}function lr(V,me,Ue){let ut=0;if(j()===159)return Wt(V,me,Ue);if(aa(143))ut|=16;else if(gn(142),j()===10)return Wt(V,me,Ue);return Ee(V,me,Ue,ut)}function ci(){return j()===147&&Nr(qr)}function qr(){return Qe()===20}function Ti(){return Qe()===18}function Wa(){return Qe()===43}function kl(V,me,Ue){gn(128),gn(143);let ut=ht();Rs();let Lt=m.createNamespaceExportDeclaration(ut);return Lt.modifiers=Ue,nn(jt(Lt,V),me)}function Ed(V,me,Ue){gn(100);let ut=t.getStartPos(),Lt;Wi()&&(Lt=ht());let dn=!1;if(j()!==158&&Lt?.escapedText==="type"&&(Wi()||Td())&&(dn=!0,Lt=Wi()?ht():void 0),Lt&&!Ov())return Nv(V,me,Ue,Lt,dn);let Er;(Lt||j()===41||j()===18)&&(Er=_y(Lt,ut,dn),gn(158));let ii=cf(),li;j()===130&&!t.hasPrecedingLineBreak()&&(li=fy()),Rs();let di=m.createImportDeclaration(Ue,Er,ii,li);return nn(jt(di,V),me)}function Ud(){let V=z(),me=Su(j())?wt():St(10);gn(58);let Ue=ll(!0);return jt(m.createAssertEntry(me,Ue),V)}function fy(V){let me=z();V||gn(130);let Ue=t.getTokenPos();if(gn(18)){let ut=t.hasPrecedingLineBreak(),Lt=Dc(24,Ud,!0);if(!gn(19)){let dn=Os(Ye);dn&&dn.code===_._0_expected.code&&Ao(dn,t2(Pe,Ue,1,_.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return jt(m.createAssertClause(Lt,ut),me)}else{let ut=As([],z(),void 0,!1);return jt(m.createAssertClause(ut,!1),me)}}function Td(){return j()===41||j()===18}function Ov(){return j()===27||j()===158}function Nv(V,me,Ue,ut,Lt){gn(63);let dn=Xf();Rs();let Er=m.createImportEqualsDeclaration(Ue,Lt,ut,dn);return nn(jt(Er,V),me)}function _y(V,me,Ue){let ut;return(!V||aa(27))&&(ut=j()===41?Sm():py(272)),jt(m.createImportClause(Ue,V,ut),me)}function Xf(){return ci()?ME():Io(!1)}function ME(){let V=z();gn(147),gn(20);let me=cf();return gn(21),jt(m.createExternalModuleReference(me),V)}function cf(){if(j()===10){let V=oa();return V.text=Ql(V.text),V}else return Ml()}function Sm(){let V=z();gn(41),gn(128);let me=ht();return jt(m.createNamespaceImport(me),V)}function py(V){let me=z(),Ue=V===272?m.createNamedImports(zf(23,FE,18,19)):m.createNamedExports(zf(23,If,18,19));return jt(Ue,me)}function If(){let V=Te();return nn(Pv(278),V)}function FE(){return Pv(273)}function Pv(V){let me=z(),Ue=Xu(j())&&!Wi(),ut=t.getTokenPos(),Lt=t.getTextPos(),dn=!1,Er,ii=!0,li=wt();if(li.escapedText==="type")if(j()===128){let is=wt();if(j()===128){let ao=wt();Su(j())?(dn=!0,Er=is,li=ma(),ii=!1):(Er=li,li=ao,ii=!1)}else Su(j())?(Er=li,ii=!1,li=ma()):(dn=!0,li=is)}else Su(j())&&(dn=!0,li=ma());ii&&j()===128&&(Er=li,gn(128),li=ma()),V===273&&Ue&&Ke(ut,Lt,_.Identifier_expected);let di=V===273?m.createImportSpecifier(dn,Er,li):m.createExportSpecifier(dn,Er,li);return jt(di,me);function ma(){return Ue=Xu(j())&&!Wi(),ut=t.getTokenPos(),Lt=t.getTextPos(),wt()}}function Vc(V){return jt(m.createNamespaceExport(wt()),V)}function KP(V,me,Ue){let ut=ae();dr(!0);let Lt,dn,Er,ii=aa(154),li=z();aa(41)?(aa(128)&&(Lt=Vc(li)),gn(158),dn=cf()):(Lt=py(276),(j()===158||j()===10&&!t.hasPrecedingLineBreak())&&(gn(158),dn=cf())),dn&&j()===130&&!t.hasPrecedingLineBreak()&&(Er=fy()),Rs(),dr(ut);let di=m.createExportDeclaration(Ue,ii,Lt,dn,Er);return nn(jt(di,V),me)}function Zo(V,me,Ue){let ut=ae();dr(!0);let Lt;aa(63)?Lt=!0:gn(88);let dn=ll(!0);Rs(),dr(ut);let Er=m.createExportAssignment(Ue,Lt,dn);return nn(jt(Er,V),me)}let Ro;(V=>{V[V.SourceElements=0]="SourceElements",V[V.BlockStatements=1]="BlockStatements",V[V.SwitchClauses=2]="SwitchClauses",V[V.SwitchClauseStatements=3]="SwitchClauseStatements",V[V.TypeMembers=4]="TypeMembers",V[V.ClassMembers=5]="ClassMembers",V[V.EnumMembers=6]="EnumMembers",V[V.HeritageClauseElement=7]="HeritageClauseElement",V[V.VariableDeclarations=8]="VariableDeclarations",V[V.ObjectBindingElements=9]="ObjectBindingElements",V[V.ArrayBindingElements=10]="ArrayBindingElements",V[V.ArgumentExpressions=11]="ArgumentExpressions",V[V.ObjectLiteralMembers=12]="ObjectLiteralMembers",V[V.JsxAttributes=13]="JsxAttributes",V[V.JsxChildren=14]="JsxChildren",V[V.ArrayLiteralMembers=15]="ArrayLiteralMembers",V[V.Parameters=16]="Parameters",V[V.JSDocParameters=17]="JSDocParameters",V[V.RestProperties=18]="RestProperties",V[V.TypeParameters=19]="TypeParameters",V[V.TypeArguments=20]="TypeArguments",V[V.TupleElementTypes=21]="TupleElementTypes",V[V.HeritageClauses=22]="HeritageClauses",V[V.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",V[V.AssertEntries=24]="AssertEntries",V[V.Count=25]="Count"})(Ro||(Ro={}));let Px;(V=>{V[V.False=0]="False",V[V.True=1]="True",V[V.Unknown=2]="Unknown"})(Px||(Px={}));let Mx;(V=>{function me(di,ma,is){Pi("file.js",di,99,void 0,1),t.setText(di,ma,is),Rt=t.scan();let ao=Ue(),Oo=hi("file.js",99,1,!1,[],P(1),0,Ba),id=vS(Ye,Oo);return _t&&(Oo.jsDocDiagnostics=vS(_t,Oo)),gr(),ao?{jsDocTypeExpression:ao,diagnostics:id}:void 0}V.parseJSDocTypeExpressionForTests=me;function Ue(di){let ma=z(),is=(di?aa:gn)(18),ao=Se(8388608,Mc);(!di||is)&&hc(19);let Oo=m.createJSDocTypeExpression(ao);return Kn(Oo),jt(Oo,ma)}V.parseJSDocTypeExpression=Ue;function ut(){let di=z(),ma=aa(18),is=z(),ao=Io(!1);for(;j()===80;)Ja(),Vt(),ao=jt(m.createJSDocMemberName(ao,ht()),is);ma&&hc(19);let Oo=m.createJSDocNameReference(ao);return Kn(Oo),jt(Oo,di)}V.parseJSDocNameReference=ut;function Lt(di,ma,is){Pi("",di,99,void 0,1);let ao=Se(8388608,()=>li(ma,is)),id=vS(Ye,{languageVariant:0,text:di});return gr(),ao?{jsDoc:ao,diagnostics:id}:void 0}V.parseIsolatedJSDocComment=Lt;function dn(di,ma,is){let ao=Rt,Oo=Ye.length,id=Gt,np=Se(8388608,()=>li(ma,is));return go(np,di),kn&262144&&(_t||(_t=[]),_t.push(...Ye)),Rt=ao,Ye.length=Oo,Gt=id,np}V.parseJSDocComment=dn;let Er;(di=>{di[di.BeginningOfLine=0]="BeginningOfLine",di[di.SawAsterisk=1]="SawAsterisk",di[di.SavingComments=2]="SavingComments",di[di.SavingBackticks=3]="SavingBackticks"})(Er||(Er={}));let ii;(di=>{di[di.Property=1]="Property",di[di.Parameter=2]="Parameter",di[di.CallbackParameter=4]="CallbackParameter"})(ii||(ii={}));function li(di=0,ma){let is=Ie,ao=ma===void 0?is.length:di+ma;if(ma=ao-di,L.assert(di>=0),L.assert(di<=ao),L.assert(ao<=is.length),!cJ(is,di))return;let Oo,id,np,Op,cg,Yf=[],my=[];return t.scanRange(di+3,ma-5,()=>{let yn=1,Or,xr=di-(is.lastIndexOf(`
| `,di)+1)+4;function Wr(eo){Or||(Or=xr),Yf.push(eo),xr+=eo.length}for(Vt();D1(5););D1(4)&&(yn=0,xr=0);e:for(;;){switch(j()){case 59:yn===0||yn===1?(GE(Yf),cg||(cg=z()),Fv(_C(xr)),yn=0,Or=void 0):Wr(t.getTokenText());break;case 4:Yf.push(t.getTokenText()),yn=0,xr=0;break;case 41:let eo=t.getTokenText();yn===1||yn===2?(yn=2,Wr(eo)):(yn=1,xr+=eo.length);break;case 5:let _o=t.getTokenText();yn===2?Yf.push(_o):Or!==void 0&&xr+_o.length>Or&&Yf.push(_o.slice(Or-xr)),xr+=_o.length;break;case 1:break e;case 18:yn=2;let jd=t.getStartPos(),D_=t.getTextPos()-1,uh=jk(D_);if(uh){Op||Fx(Yf),my.push(jt(m.createJSDocText(Yf.join("")),Op??di,jd)),my.push(uh),Yf=[],Op=t.getTextPos();break}default:yn=2,Wr(t.getTokenText());break}Vt()}GE(Yf),my.length&&Yf.length&&my.push(jt(m.createJSDocText(Yf.join("")),Op??di,cg)),my.length&&Oo&&L.assertIsDefined(cg,"having parsed tags implies that the end of the comment span should be set");let Ci=Oo&&As(Oo,id,np);return jt(m.createJSDocComment(my.length?As(my,di,cg):Yf.length?Yf.join(""):void 0,Ci),di,ao)});function Fx(yn){for(;yn.length&&(yn[0]===`
| `||yn[0]==="\r");)yn.shift()}function GE(yn){for(;yn.length&&yn[yn.length-1].trim()==="";)yn.pop()}function fC(){for(;;){if(Vt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function k_(){if(!((j()===5||j()===4)&&Nr(fC)))for(;j()===5||j()===4;)Vt()}function Mv(){if((j()===5||j()===4)&&Nr(fC))return"";let yn=t.hasPrecedingLineBreak(),Or=!1,xr="";for(;yn&&j()===41||j()===5||j()===4;)xr+=t.getTokenText(),j()===4?(yn=!0,Or=!0,xr=""):j()===41&&(yn=!1),Vt();return Or?xr:""}function _C(yn){L.assert(j()===59);let Or=t.getTokenPos();Vt();let xr=Uv(void 0),Wr=Mv(),Ci;switch(xr.escapedText){case"author":Ci=Pt(Or,xr,yn,Wr);break;case"implements":Ci=Fi(Or,xr,yn,Wr);break;case"augments":case"extends":Ci=Da(Or,xr,yn,Wr);break;case"class":case"constructor":Ci=dg(Or,m.createJSDocClassTag,xr,yn,Wr);break;case"public":Ci=dg(Or,m.createJSDocPublicTag,xr,yn,Wr);break;case"private":Ci=dg(Or,m.createJSDocPrivateTag,xr,yn,Wr);break;case"protected":Ci=dg(Or,m.createJSDocProtectedTag,xr,yn,Wr);break;case"readonly":Ci=dg(Or,m.createJSDocReadonlyTag,xr,yn,Wr);break;case"override":Ci=dg(Or,m.createJSDocOverrideTag,xr,yn,Wr);break;case"deprecated":Dt=!0,Ci=dg(Or,m.createJSDocDeprecatedTag,xr,yn,Wr);break;case"this":Ci=wte(Or,xr,yn,Wr);break;case"enum":Ci=Rte(Or,xr,yn,Wr);break;case"arg":case"argument":case"param":return zk(Or,xr,2,yn);case"return":case"returns":Ci=I(Or,xr,yn,Wr);break;case"template":Ci=yy(Or,xr,yn,Wr);break;case"type":Ci=N(Or,xr,yn,Wr);break;case"typedef":Ci=pC(Or,xr,yn,Wr);break;case"callback":Ci=zn(Or,xr,yn,Wr);break;case"overload":Ci=Gv(Or,xr,yn,Wr);break;case"satisfies":Ci=Vd(Or,xr,yn,Wr);break;case"see":Ci=te(Or,xr,yn,Wr);break;case"exception":case"throws":Ci=Me(Or,xr,yn,Wr);break;default:Ci=Zs(Or,xr,yn,Wr);break}return Ci}function lf(yn,Or,xr,Wr){return Wr||(xr+=Or-yn),Gx(xr,Wr.slice(xr))}function Gx(yn,Or){let xr=z(),Wr=[],Ci=[],eo,_o=0,jd=!0,D_;function uh(dh){D_||(D_=yn),Wr.push(dh),yn+=dh.length}Or!==void 0&&(Or!==""&&uh(Or),_o=1);let xm=j();e:for(;;){switch(xm){case 4:_o=0,Wr.push(t.getTokenText()),yn=0;break;case 59:if(_o===3||_o===2&&(!jd||Nr(hy))){Wr.push(t.getTokenText());break}t.setTextPos(t.getTextPos()-1);case 1:break e;case 5:if(_o===2||_o===3)uh(t.getTokenText());else{let Kb=t.getTokenText();D_!==void 0&&yn+Kb.length>D_&&Wr.push(Kb.slice(D_-yn)),yn+=Kb.length}break;case 18:_o=2;let dh=t.getStartPos(),gC=t.getTextPos()-1,vu=jk(gC);vu?(Ci.push(jt(m.createJSDocText(Wr.join("")),eo??xr,dh)),Ci.push(vu),Wr=[],eo=t.getTextPos()):uh(t.getTokenText());break;case 61:_o===3?_o=2:_o=3,uh(t.getTokenText());break;case 41:if(_o===0){_o=1,yn+=1;break}default:_o!==3&&(_o=2),uh(t.getTokenText());break}jd=j()===5,xm=Vt()}if(Fx(Wr),GE(Wr),Ci.length)return Wr.length&&Ci.push(jt(m.createJSDocText(Wr.join("")),eo??xr)),As(Ci,xr,t.getTextPos());if(Wr.length)return Wr.join("")}function hy(){let yn=Vt();return yn===5||yn===4}function jk(yn){let Or=Fo(Hk);if(!Or)return;Vt(),k_();let xr=z(),Wr=Su(j())?Io(!0):void 0;if(Wr)for(;j()===80;)Ja(),Vt(),Wr=jt(m.createJSDocMemberName(Wr,ht()),xr);let Ci=[];for(;j()!==19&&j()!==4&&j()!==1;)Ci.push(t.getTokenText()),Vt();let eo=Or==="link"?m.createJSDocLink:Or==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return jt(eo(Wr,Ci.join("")),yn,t.getTextPos())}function Hk(){if(Mv(),j()===18&&Vt()===59&&Su(Vt())){let yn=t.getTokenValue();if(oo(yn))return yn}}function oo(yn){return yn==="link"||yn==="linkcode"||yn==="linkplain"}function Zs(yn,Or,xr,Wr){return jt(m.createJSDocUnknownTag(Or,lf(yn,z(),xr,Wr)),yn)}function Fv(yn){yn&&(Oo?Oo.push(yn):(Oo=[yn],id=yn.pos),np=yn.end)}function gy(){return Mv(),j()===18?Ue():void 0}function Wk(){let yn=D1(22);yn&&k_();let Or=D1(61),xr=XP();return Or&&md(61),yn&&(k_(),Co(63)&&Ml(),gn(23)),{name:xr,isBracketed:yn}}function ad(yn){switch(yn.kind){case 149:return!0;case 185:return ad(yn.elementType);default:return m_(yn)&&Re(yn.typeName)&&yn.typeName.escapedText==="Object"&&!yn.typeArguments}}function zk(yn,Or,xr,Wr){let Ci=gy(),eo=!Ci;Mv();let{name:_o,isBracketed:jd}=Wk(),D_=Mv();eo&&!Nr(Hk)&&(Ci=gy());let uh=lf(yn,z(),Wr,D_),xm=xr!==4&&y(Ci,_o,xr,Wr);xm&&(Ci=xm,eo=!0);let dh=xr===1?m.createJSDocPropertyTag(Or,_o,jd,Ci,eo,uh):m.createJSDocParameterTag(Or,_o,jd,Ci,eo,uh);return jt(dh,yn)}function y(yn,Or,xr,Wr){if(yn&&ad(yn.type)){let Ci=z(),eo,_o;for(;eo=Fo(()=>BE(xr,Wr,Or));)(eo.kind===344||eo.kind===351)&&(_o=Sn(_o,eo));if(_o){let jd=jt(m.createJSDocTypeLiteral(_o,yn.type.kind===185),Ci);return jt(m.createJSDocTypeExpression(jd),Ci)}}}function I(yn,Or,xr,Wr){vt(Oo,y3)&&Ke(Or.pos,t.getTokenPos(),_._0_tag_already_specified,Or.escapedText);let Ci=gy();return jt(m.createJSDocReturnTag(Or,Ci,lf(yn,z(),xr,Wr)),yn)}function N(yn,Or,xr,Wr){vt(Oo,DL)&&Ke(Or.pos,t.getTokenPos(),_._0_tag_already_specified,Or.escapedText);let Ci=Ue(!0),eo=xr!==void 0&&Wr!==void 0?lf(yn,z(),xr,Wr):void 0;return jt(m.createJSDocTypeTag(Or,Ci,eo),yn)}function te(yn,Or,xr,Wr){let eo=j()===22||Nr(()=>Vt()===59&&Su(Vt())&&oo(t.getTokenValue()))?void 0:ut(),_o=xr!==void 0&&Wr!==void 0?lf(yn,z(),xr,Wr):void 0;return jt(m.createJSDocSeeTag(Or,eo,_o),yn)}function Me(yn,Or,xr,Wr){let Ci=gy(),eo=lf(yn,z(),xr,Wr);return jt(m.createJSDocThrowsTag(Or,Ci,eo),yn)}function Pt(yn,Or,xr,Wr){let Ci=z(),eo=Tr(),_o=t.getStartPos(),jd=lf(yn,_o,xr,Wr);jd||(_o=t.getStartPos());let D_=typeof jd!="string"?As(Qi([jt(eo,Ci,_o)],jd),Ci):eo.text+jd;return jt(m.createJSDocAuthorTag(Or,D_),yn)}function Tr(){let yn=[],Or=!1,xr=t.getToken();for(;xr!==1&&xr!==4;){if(xr===29)Or=!0;else{if(xr===59&&!Or)break;if(xr===31&&Or){yn.push(t.getTokenText()),t.setTextPos(t.getTokenPos()+1);break}}yn.push(t.getTokenText()),xr=Vt()}return m.createJSDocText(yn.join(""))}function Fi(yn,Or,xr,Wr){let Ci=lg();return jt(m.createJSDocImplementsTag(Or,Ci,lf(yn,z(),xr,Wr)),yn)}function Da(yn,Or,xr,Wr){let Ci=lg();return jt(m.createJSDocAugmentsTag(Or,Ci,lf(yn,z(),xr,Wr)),yn)}function Vd(yn,Or,xr,Wr){let Ci=Ue(!1),eo=xr!==void 0&&Wr!==void 0?lf(yn,z(),xr,Wr):void 0;return jt(m.createJSDocSatisfiesTag(Or,Ci,eo),yn)}function lg(){let yn=aa(18),Or=z(),xr=ug(),Wr=bd(),Ci=m.createExpressionWithTypeArguments(xr,Wr),eo=jt(Ci,Or);return yn&&gn(19),eo}function ug(){let yn=z(),Or=Uv();for(;aa(24);){let xr=Uv();Or=jt(q(Or,xr),yn)}return Or}function dg(yn,Or,xr,Wr,Ci){return jt(Or(xr,lf(yn,z(),Wr,Ci)),yn)}function wte(yn,Or,xr,Wr){let Ci=Ue(!0);return k_(),jt(m.createJSDocThisTag(Or,Ci,lf(yn,z(),xr,Wr)),yn)}function Rte(yn,Or,xr,Wr){let Ci=Ue(!0);return k_(),jt(m.createJSDocEnumTag(Or,Ci,lf(yn,z(),xr,Wr)),yn)}function pC(yn,Or,xr,Wr){var Ci;let eo=gy();Mv();let _o=Jk();k_();let jd=Gx(xr),D_;if(!eo||ad(eo.type)){let xm,dh,gC,vu=!1;for(;xm=Fo(()=>Bx(xr));)if(vu=!0,xm.kind===347)if(dh){let Kb=rt(_.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Kb&&Ao(Kb,t2(Pe,0,0,_.The_tag_was_first_specified_here));break}else dh=xm;else gC=Sn(gC,xm);if(vu){let Kb=eo&&eo.type.kind===185,Kk=m.createJSDocTypeLiteral(gC,Kb);eo=dh&&dh.typeExpression&&!ad(dh.typeExpression.type)?dh.typeExpression:jt(Kk,yn),D_=eo.end}}D_=D_||jd!==void 0?z():((Ci=_o??eo)!=null?Ci:Or).end,jd||(jd=lf(yn,D_,xr,Wr));let uh=m.createJSDocTypedefTag(Or,eo,_o,jd);return jt(uh,yn,D_)}function Jk(yn){let Or=t.getTokenPos();if(!Su(j()))return;let xr=Uv();if(aa(24)){let Wr=Jk(!0),Ci=m.createModuleDeclaration(void 0,xr,Wr,yn?4:void 0);return jt(Ci,Or)}return yn&&(xr.flags|=2048),xr}function Ote(yn){let Or=z(),xr,Wr;for(;xr=Fo(()=>BE(4,yn));)Wr=Sn(Wr,xr);return As(Wr||[],Or)}function mC(yn,Or){let xr=Ote(Or),Wr=Fo(()=>{if(D1(59)){let Ci=_C(Or);if(Ci&&Ci.kind===345)return Ci}});return jt(m.createJSDocSignature(void 0,xr,Wr),yn)}function zn(yn,Or,xr,Wr){let Ci=Jk();k_();let eo=Gx(xr),_o=mC(yn,xr);eo||(eo=lf(yn,z(),xr,Wr));let jd=eo!==void 0?z():_o.end;return jt(m.createJSDocCallbackTag(Or,_o,Ci,eo),yn,jd)}function Gv(yn,Or,xr,Wr){k_();let Ci=Gx(xr),eo=mC(yn,xr);Ci||(Ci=lf(yn,z(),xr,Wr));let _o=Ci!==void 0?z():eo.end;return jt(m.createJSDocOverloadTag(Or,eo,Ci),yn,_o)}function Bv(yn,Or){for(;!Re(yn)||!Re(Or);)if(!Re(yn)&&!Re(Or)&&yn.right.escapedText===Or.right.escapedText)yn=yn.left,Or=Or.left;else return!1;return yn.escapedText===Or.escapedText}function Bx(yn){return BE(1,yn)}function BE(yn,Or,xr){let Wr=!0,Ci=!1;for(;;)switch(Vt()){case 59:if(Wr){let eo=qP(yn,Or);return eo&&(eo.kind===344||eo.kind===351)&&yn!==4&&xr&&(Re(eo.name)||!Bv(xr,eo.name.left))?!1:eo}Ci=!1;break;case 4:Wr=!0,Ci=!1;break;case 41:Ci&&(Wr=!1),Ci=!0;break;case 79:Wr=!1;break;case 1:return!1}}function qP(yn,Or){L.assert(j()===59);let xr=t.getStartPos();Vt();let Wr=Uv();k_();let Ci;switch(Wr.escapedText){case"type":return yn===1&&N(xr,Wr);case"prop":case"property":Ci=1;break;case"arg":case"argument":case"param":Ci=6;break;default:return!1}return yn&Ci?zk(xr,Wr,yn,Or):!1}function hC(){let yn=z(),Or=D1(22);Or&&k_();let xr=Uv(_.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Wr;if(Or&&(k_(),gn(63),Wr=Se(8388608,Mc),gn(23)),!rc(xr))return jt(m.createTypeParameterDeclaration(void 0,xr,void 0,Wr),yn)}function WG(){let yn=z(),Or=[];do{k_();let xr=hC();xr!==void 0&&Or.push(xr),Mv()}while(D1(27));return As(Or,yn)}function yy(yn,Or,xr,Wr){let Ci=j()===18?Ue():void 0,eo=WG();return jt(m.createJSDocTemplateTag(Or,Ci,eo,lf(yn,z(),xr,Wr)),yn)}function D1(yn){return j()===yn?(Vt(),!0):!1}function XP(){let yn=Uv();for(aa(22)&&gn(23);aa(24);){let Or=Uv();aa(22)&&gn(23),yn=Jf(yn,Or)}return yn}function Uv(yn){if(!Su(j()))return yc(79,!yn,yn||_.Identifier_expected);zt++;let Or=t.getTokenPos(),xr=t.getTextPos(),Wr=j(),Ci=Ql(t.getTokenValue()),eo=jt(w(Ci,Wr),Or,xr);return Vt(),eo}}})(Mx=e.JSDocParser||(e.JSDocParser={}))})(av||(av={})),(e=>{function t(x,A,w,C){if(C=C||L.shouldAssert(2),m(x,A,w,C),Moe(w))return x;if(x.statements.length===0)return av.parseSourceFile(x.fileName,A,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator);let P=x;L.assert(!P.hasBeenIncrementallyParsed),P.hasBeenIncrementallyParsed=!0,av.fixupParentReferences(P);let F=x.text,B=v(x),q=d(x,w);m(x,A,q,C),L.assert(q.span.start<=w.span.start),L.assert(wl(q.span)===wl(w.span)),L.assert(wl(uI(q))===wl(uI(w)));let W=uI(q).length-q.span.length;f(P,q.span.start,wl(q.span),wl(uI(q)),W,F,A,C);let Y=av.parseSourceFile(x.fileName,A,x.languageVersion,B,!0,x.scriptKind,x.setExternalModuleIndicator);return Y.commentDirectives=r(x.commentDirectives,Y.commentDirectives,q.span.start,wl(q.span),W,F,A,C),Y.impliedNodeFormat=x.impliedNodeFormat,Y}e.updateSourceFile=t;function r(x,A,w,C,P,F,B,q){if(!x)return A;let W,Y=!1;for(let ie of x){let{range:$,type:fe}=ie;if($.end<w)W=Sn(W,ie);else if($.pos>C){R();let Z={range:{pos:$.pos+P,end:$.end+P},type:fe};W=Sn(W,Z),q&&L.assert(F.substring($.pos,$.end)===B.substring(Z.range.pos,Z.range.end))}}return R(),W;function R(){Y||(Y=!0,W?A&&W.push(...A):W=A)}}function i(x,A,w,C,P,F){A?q(x):B(x);return;function B(W){let Y="";if(F&&o(W)&&(Y=C.substring(W.pos,W.end)),W._children&&(W._children=void 0),om(W,W.pos+w,W.end+w),F&&o(W)&&L.assert(Y===P.substring(W.pos,W.end)),pa(W,B,q),Kd(W))for(let R of W.jsDoc)B(R);l(W,F)}function q(W){W._children=void 0,om(W,W.pos+w,W.end+w);for(let Y of W)B(Y)}}function o(x){switch(x.kind){case 10:case 8:case 79:return!0}return!1}function s(x,A,w,C,P){L.assert(x.end>=A,"Adjusting an element that was entirely before the change range"),L.assert(x.pos<=w,"Adjusting an element that was entirely after the change range"),L.assert(x.pos<=x.end);let F=Math.min(x.pos,C),B=x.end>=w?x.end+P:Math.min(x.end,C);L.assert(F<=B),x.parent&&(L.assertGreaterThanOrEqual(F,x.parent.pos),L.assertLessThanOrEqual(B,x.parent.end)),om(x,F,B)}function l(x,A){if(A){let w=x.pos,C=P=>{L.assert(P.pos>=w),w=P.end};if(Kd(x))for(let P of x.jsDoc)C(P);pa(x,C),L.assert(w<=x.end)}}function f(x,A,w,C,P,F,B,q){W(x);return;function W(R){if(L.assert(R.pos<=R.end),R.pos>w){i(R,!1,P,F,B,q);return}let ie=R.end;if(ie>=A){if(R.intersectsChange=!0,R._children=void 0,s(R,A,w,C,P),pa(R,W,Y),Kd(R))for(let $ of R.jsDoc)W($);l(R,q);return}L.assert(ie<A)}function Y(R){if(L.assert(R.pos<=R.end),R.pos>w){i(R,!0,P,F,B,q);return}let ie=R.end;if(ie>=A){R.intersectsChange=!0,R._children=void 0,s(R,A,w,C,P);for(let $ of R)W($);return}L.assert(ie<A)}}function d(x,A){let C=A.span.start;for(let B=0;C>0&&B<=1;B++){let q=g(x,C);L.assert(q.pos<=C);let W=q.pos;C=Math.max(0,W-1)}let P=Wc(C,wl(A.span)),F=A.newLength+(A.span.start-C);return Sw(P,F)}function g(x,A){let w=x,C;if(pa(x,F),C){let B=P(C);B.pos>w.pos&&(w=B)}return w;function P(B){for(;;){let q=yW(B);if(q)B=q;else return B}}function F(B){if(!rc(B))if(B.pos<=A){if(B.pos>=w.pos&&(w=B),A<B.end)return pa(B,F),!0;L.assert(B.end<=A),C=B}else return L.assert(B.pos>A),!0}}function m(x,A,w,C){let P=x.text;if(w&&(L.assert(P.length-w.span.length+w.newLength===A.length),C||L.shouldAssert(3))){let F=P.substr(0,w.span.start),B=A.substr(0,w.span.start);L.assert(F===B);let q=P.substring(wl(w.span),P.length),W=A.substring(wl(uI(w)),A.length);L.assert(q===W)}}function v(x){let A=x.statements,w=0;L.assert(w<A.length);let C=A[w],P=-1;return{currentNode(B){return B!==P&&(C&&C.end===B&&w<A.length-1&&(w++,C=A[w]),(!C||C.pos!==B)&&F(B)),P=B,L.assert(!C||C.pos===B),C}};function F(B){A=void 0,w=-1,C=void 0,pa(x,q,W);return;function q(Y){return B>=Y.pos&&B<Y.end?(pa(Y,q,W),!0):!1}function W(Y){if(B>=Y.pos&&B<Y.end)for(let R=0;R<Y.length;R++){let ie=Y[R];if(ie){if(ie.pos===B)return A=Y,w=R,C=ie,!0;if(ie.pos<B&&B<ie.end)return pa(ie,q,W),!0}}return!1}}}e.createSyntaxCursor=v;let S;(x=>{x[x.Value=-1]="Value"})(S||(S={}))})(D3||(D3={})),w3=new Map,Wde=/^\/\/\/\s*<(\S+)\s.*?\/>/im,zde=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im}});function R3(e){let t=new Map,r=new Map;return mn(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function w2(){return Efe||(Efe=R3(Fh))}function pJ(e){return Jde(e,ps)}function Jde(e,t){let r=lo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(_.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function O3(e,t,r){return mfe(e,v0(t||""),r)}function Kde(e,t="",r){if(t=v0(t),na(t,"-"))return;if(e.type==="listOrElement"&&!jl(t,","))return HT(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Zi(i,o=>HT(e.element,parseInt(o),r));case"string":return Zi(i,o=>HT(e.element,o||"",r));case"boolean":case"object":return L.fail(`List of ${e.element.type} is not yet supported.`);default:return Zi(i,o=>O3(e.element,o,r))}}function qde(e){return e.name}function mJ(e,t,r,i){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return r(t.alternateMode.diagnostic,e);let s=$C(e,t.optionDeclarations,qde);return s?r(t.unknownDidYouMeanDiagnostic,i||e,s.name):r(t.unknownOptionDiagnostic,i||e)}function hJ(e,t,r){let i={},o,s=[],l=[];return f(t),{options:i,watchOptions:o,fileNames:s,errors:l};function f(g){let m=0;for(;m<g.length;){let v=g[m];if(m++,v.charCodeAt(0)===64)d(v.slice(1));else if(v.charCodeAt(0)===45){let S=v.slice(v.charCodeAt(1)===45?2:1),x=yJ(e.getOptionsNameMap,S,!0);if(x)m=Xde(g,m,e,x,i,l);else{let A=yJ(KO.getOptionsNameMap,S,!0);A?m=Xde(g,m,KO,A,o||(o={}),l):l.push(mJ(S,e,ps,v))}}else s.push(v)}}function d(g){let m=NO(g,r||(x=>xl.readFile(x)));if(!Ta(m)){l.push(m);return}let v=[],S=0;for(;;){for(;S<m.length&&m.charCodeAt(S)<=32;)S++;if(S>=m.length)break;let x=S;if(m.charCodeAt(x)===34){for(S++;S<m.length&&m.charCodeAt(S)!==34;)S++;S<m.length?(v.push(m.substring(x+1,S)),S++):l.push(ps(_.Unterminated_quoted_string_in_response_file_0,g))}else{for(;m.charCodeAt(S)>32;)S++;v.push(m.substring(x,S))}}f(v)}}function Xde(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=HT(i,!1,s),t++):(l==="true"&&t++,s.push(ps(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(ps(_.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!na(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(ps(r.optionTypeMismatchDiagnostic,i.name,OL(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=HT(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=HT(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=HT(i,e[t]||"",s),t++;break;case"list":let f=Kde(i,e[t],s);o[i.name]=f||[],f&&t++;break;case"listOrElement":L.fail("listOrElement not supported here");break;default:o[i.name]=O3(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function $Oe(e,t){return hJ(JO,e,t)}function gJ(e,t){return yJ(w2,e,t)}function yJ(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function Yde(){return Sfe||(Sfe=R3(j3))}function QOe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=hJ(Afe,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(ps(_.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(ps(_.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(ps(_.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(ps(_.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function ZOe(e,...t){return ps.apply(void 0,arguments).messageText}function RO(e,t,r,i,o,s){let l=NO(e,g=>r.readFile(g));if(!Ta(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let f=wO(e,l),d=r.getCurrentDirectory();return f.path=Ts(e,d,Dl(r.useCaseSensitiveFileNames)),f.resolvedPath=f.path,f.originalFileName=f.fileName,MO(f,r,_a(ni(e),d),t,_a(e,d),void 0,s,i,o)}function OO(e,t){let r=NO(e,t);return Ta(r)?vJ(e,r):{config:{},error:r}}function vJ(e,t){let r=wO(e,t);return{config:nfe(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function $de(e,t){let r=NO(e,t);return Ta(r)?wO(e,r):{fileName:e,parseDiagnostics:[r]}}function NO(e,t){let r;try{r=t(e)}catch(i){return ps(_.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?ps(_.Cannot_read_file_0,e):r}function N3(e){return p0(e,qde)}function Qde(){return Cfe||(Cfe=R3(HO))}function Zde(){return Ife||(Ife=N3(Fh))}function efe(){return Lfe||(Lfe=N3(HO))}function tfe(){return kfe||(kfe=N3(H3))}function eNe(){return jJ===void 0&&(jJ={name:void 0,type:"object",elementOptions:N3([{name:"compilerOptions",type:"object",elementOptions:Zde(),extraKeyDiagnostics:JO},{name:"watchOptions",type:"object",elementOptions:efe(),extraKeyDiagnostics:KO},{name:"typeAcquisition",type:"object",elementOptions:tfe(),extraKeyDiagnostics:VJ},qO,{name:"references",type:"list",element:{name:"references",type:"object"},category:_.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_.File_Management,defaultValueDescription:_.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_.File_Management,defaultValueDescription:_.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},UO])}),jJ}function nfe(e,t,r,i){var o;let s=(o=e.statements[0])==null?void 0:o.expression,l=r?eNe():void 0;if(s&&s.kind!==207){if(t.push(Nu(e,s,_.The_root_value_of_a_0_file_must_be_an_object,Hl(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),fu(s)){let f=wr(s.elements,rs);if(f)return PO(e,f,t,!0,l,i)}return{}}return PO(e,s,t,!0,l,i)}function rfe(e,t){var r;return PO(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0,void 0)}function PO(e,t,r,i,o,s){if(!t)return i?{}:void 0;return g(t,o);function l(v){return o&&o.elementOptions===v}function f(v,S,x,A){let w=i?{}:void 0;for(let C of v.properties){if(C.kind!==299){r.push(Nu(e,C,_.Property_assignment_expected));continue}C.questionToken&&r.push(Nu(e,C.questionToken,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),m(C.name)||r.push(Nu(e,C.name,_.String_literal_with_double_quotes_expected));let P=Vw(C.name)?void 0:wA(C.name),F=P&&Gi(P),B=F&&S?S.get(F):void 0;F&&x&&!B&&(S?r.push(mJ(F,x,(W,Y,R)=>Nu(e,C.name,W,Y,R))):r.push(Nu(e,C.name,x.unknownOptionDiagnostic,F)));let q=g(C.initializer,B);if(typeof F<"u"&&(i&&(w[F]=q),s&&(A||l(S)))){let W=P3(B,q);A?W&&s.onSetValidOptionKeyValueInParent(A,B,q):l(S)&&(W?s.onSetValidOptionKeyValueInRoot(F,C.name,q,C.initializer):B||s.onSetUnknownOptionKeyValueInRoot(F,C.name,q,C.initializer))}}return w}function d(v,S){if(!i){v.forEach(x=>g(x,S));return}return Pr(v.map(x=>g(x,S)),x=>x!==void 0)}function g(v,S){let x;switch(v.kind){case 110:return w(S&&S.type!=="boolean"&&(S.type!=="listOrElement"||S.element.type!=="boolean")),A(!0);case 95:return w(S&&S.type!=="boolean"&&(S.type!=="listOrElement"||S.element.type!=="boolean")),A(!1);case 104:return w(S&&S.name==="extends"),A(null);case 10:m(v)||r.push(Nu(e,v,_.String_literal_with_double_quotes_expected)),w(S&&Ta(S.type)&&S.type!=="string"&&(S.type!=="listOrElement"||Ta(S.element.type)&&S.element.type!=="string"));let C=v.text;if(S&&L.assert(S.type!=="listOrElement"||S.element.type==="string","Only string or array of string is handled for now"),S&&!Ta(S.type)){let F=S;F.type.has(C.toLowerCase())||(r.push(Jde(F,(B,q,W)=>Nu(e,v,B,q,W))),x=!0)}return A(C);case 8:return w(S&&S.type!=="number"&&(S.type!=="listOrElement"||S.element.type!=="number")),A(Number(v.text));case 221:if(v.operator!==40||v.operand.kind!==8)break;return w(S&&S.type!=="number"&&(S.type!=="listOrElement"||S.element.type!=="number")),A(-Number(v.operand.text));case 207:w(S&&S.type!=="object"&&(S.type!=="listOrElement"||S.element.type!=="object"));let P=v;if(S){let{elementOptions:F,extraKeyDiagnostics:B,name:q}=S;return A(f(P,F,B,q))}else return A(f(P,void 0,void 0,void 0));case 206:return w(S&&S.type!=="list"&&S.type!=="listOrElement"),A(d(v.elements,S&&S.element))}S?w(!0):r.push(Nu(e,v,_.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function A(C){var P;if(!x){let F=(P=S?.extraValidation)==null?void 0:P.call(S,C);if(F){r.push(Nu(e,v,...F));return}}return C}function w(C){C&&(r.push(Nu(e,v,_.Compiler_option_0_requires_a_value_of_type_1,S.name,OL(S))),x=!0)}}function m(v){return yo(v)&&V6(v,e)}}function OL(e){return e.type==="listOrElement"?`${OL(e.element)} or Array`:e.type==="list"?"Array":Ta(e.type)?e.type:"string"}function P3(e,t){if(e){if(R2(t))return!0;if(e.type==="list")return ba(t);if(e.type==="listOrElement")return ba(t)||P3(e.element,t);let r=Ta(e.type)?e.type:"string";return typeof t===r}return!1}function tNe(e,t,r){var i,o,s;let l=Dl(r.useCaseSensitiveFileNames),f=on(Pr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?rNe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):h0),v=>_w(_a(t,r.getCurrentDirectory()),_a(v,r.getCurrentDirectory()),l)),d=TJ(e.options,{configFilePath:_a(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),g=e.watchOptions&&iNe(e.watchOptions);return{compilerOptions:{...bJ(d),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:g&&bJ(g),references:on(e.projectReferences,v=>({...v,path:v.originalPath?v.originalPath:"",originalPath:void 0})),files:Fn(f)?f:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:nNe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function bJ(e){return{...lo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function nNe(e){if(Fn(e)){if(Fn(e)!==1)return e;if(e[0]!==z3)return e}}function rNe(e,t,r,i){if(!t)return h0;let o=tL(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&Qy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&Qy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?f=>!(l.test(f)&&!s.test(f)):f=>!l.test(f):s?f=>s.test(f):h0}function ife(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return ife(e.element);default:return e.type}}function EJ(e,t){return Ld(t,(r,i)=>{if(r===e)return i})}function TJ(e,t){return afe(e,w2(),t)}function iNe(e){return afe(e,Qde())}function afe(e,{optionsNameMap:t},r){let i=new Map,o=r&&Dl(r.useCaseSensitiveFileNames);for(let s in e)if(fs(e,s)){if(t.has(s)&&(t.get(s).category===_.Command_line_Options||t.get(s).category===_.Output_Formatting))continue;let l=e[s],f=t.get(s.toLowerCase());if(f){L.assert(f.type!=="listOrElement");let d=ife(f);d?f.type==="list"?i.set(s,l.map(g=>EJ(g,d))):i.set(s,EJ(l,d)):r&&f.isFilePath?i.set(s,_w(r.configFilePath,_a(l,ni(r.configFilePath)),o)):i.set(s,l)}}return i}function aNe(e,t){let r=ofe(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return B3.forEach(f=>{if(!r.has(f.name))return;let d=r.get(f.name),g=wJ(f);d!==g?s.push(`${l}${f.name}: ${d}`):fs(W3,f.name)&&s.push(`${l}${f.name}: ${g}`)}),s.join(t)+t}}function ofe(e){let t=d8(e,W3);return TJ(t)}function oNe(e,t,r){let i=ofe(e);return l();function o(f){return Array(f+1).join(" ")}function s({category:f,name:d,isCommandLineOnly:g}){let m=[_.Command_line_Options,_.Editor_Support,_.Compiler_Diagnostics,_.Backwards_Compatibility,_.Watch_and_Build_Modes,_.Output_Formatting];return!g&&f!==void 0&&(!m.includes(f)||i.has(d))}function l(){let f=new Map;f.set(_.Projects,[]),f.set(_.Language_and_Environment,[]),f.set(_.Modules,[]),f.set(_.JavaScript_Support,[]),f.set(_.Emit,[]),f.set(_.Interop_Constraints,[]),f.set(_.Type_Checking,[]),f.set(_.Completeness,[]);for(let x of Fh)if(s(x)){let A=f.get(x.category);A||f.set(x.category,A=[]),A.push(x)}let d=0,g=0,m=[];f.forEach((x,A)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${uo(A)} */`});for(let w of x){let C;i.has(w.name)?C=`"${w.name}": ${JSON.stringify(i.get(w.name))}${(g+=1)===i.size?"":","}`:C=`// "${w.name}": ${JSON.stringify(wJ(w))},`,m.push({value:C,description:`/* ${w.description&&uo(w.description)||w.name} */`}),d=Math.max(C.length,d)}});let v=o(2),S=[];S.push("{"),S.push(`${v}"compilerOptions": {`),S.push(`${v}${v}/* ${uo(_.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),S.push("");for(let x of m){let{value:A,description:w=""}=x;S.push(A&&`${v}${v}${A}${w&&o(d-A.length+2)+w}`)}if(t.length){S.push(`${v}},`),S.push(`${v}"files": [`);for(let x=0;x<t.length;x++)S.push(`${v}${v}${JSON.stringify(t[x])}${x===t.length-1?"":","}`);S.push(`${v}]`)}else S.push(`${v}}`);return S.push("}"),S.join(r)+r}}function SJ(e,t){let r={},i=w2().optionsNameMap;for(let o in e)fs(e,o)&&(r[o]=sNe(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function sNe(e,t,r){if(e&&!R2(t)){if(e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);L.assert(e.type!=="listOrElement")}return t}function cNe(e,t,r,i,o,s,l,f,d){return sfe(e,void 0,t,r,i,d,o,s,l,f)}function MO(e,t,r,i,o,s,l,f,d){var g,m;(g=ai)==null||g.push(ai.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let v=sfe(void 0,e,t,r,i,d,o,s,l,f);return(m=ai)==null||m.pop(),v}function xJ(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function R2(e){return e==null}function AJ(e,t){return ni(_a(e,t))}function sfe(e,t,r,i,o={},s,l,f=[],d=[],g){L.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=ufe(e,t,r,i,l,f,m,g),{raw:S}=v,x=d8(o,v.options||{}),A=s&&v.watchOptions?d8(s,v.watchOptions):v.watchOptions||s;x.configFilePath=l&&Al(l);let w=P();t&&(t.configFileSpecs=w),xJ(x,t);let C=So(l?AJ(l,i):i);return{options:x,watchOptions:A,fileNames:F(C),projectReferences:B(C),typeAcquisition:v.typeAcquisition||F3(),raw:S,errors:m,wildcardDirectories:yNe(w,C,r.useCaseSensitiveFileNames),compileOnSave:!!S.compileOnSave};function P(){let ie=Y("references",ge=>typeof ge=="object","object"),$=q(W("files"));if($){let ge=ie==="no-prop"||ba(ie)&&ie.length===0,X=fs(S,"extends");if($.length===0&&ge&&!X)if(t){let Ve=l||"tsconfig.json",we=_.The_files_list_in_config_file_0_is_empty,ke=ks(Hw(t,"files"),Ce=>Ce.initializer),Pe=ke?Nu(t,ke,we,Ve):ps(we,Ve);m.push(Pe)}else R(_.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let fe=q(W("include")),Z=W("exclude"),U=!1,re=q(Z);if(Z==="no-prop"&&S.compilerOptions){let ge=S.compilerOptions.outDir,X=S.compilerOptions.declarationDir;(ge||X)&&(re=[ge,X].filter(Ve=>!!Ve))}$===void 0&&fe===void 0&&(fe=[z3],U=!0);let le,_e;return fe&&(le=bfe(fe,m,!0,t,"include")),re&&(_e=bfe(re,m,!1,t,"exclude")),{filesSpecs:$,includeSpecs:fe,excludeSpecs:re,validatedFilesSpec:Pr($,Ta),validatedIncludeSpecs:le,validatedExcludeSpecs:_e,pathPatterns:void 0,isDefaultIncludeSpec:U}}function F(ie){let $=BO(w,ie,x,r,d);return lfe($,FO(S),f)&&m.push(cfe(w,l)),$}function B(ie){let $,fe=Y("references",Z=>typeof Z=="object","object");if(ba(fe))for(let Z of fe)typeof Z.path!="string"?R(_.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):($||($=[])).push({path:_a(Z.path,ie),originalPath:Z.path,prepend:Z.prepend,circular:Z.circular});return $}function q(ie){return ba(ie)?ie:void 0}function W(ie){return Y(ie,Ta,"string")}function Y(ie,$,fe){if(fs(S,ie)&&!R2(S[ie]))if(ba(S[ie])){let Z=S[ie];return!t&&!Ji(Z,$)&&m.push(ps(_.Compiler_option_0_requires_a_value_of_type_1,ie,fe)),Z}else return R(_.Compiler_option_0_requires_a_value_of_type_1,ie,"Array"),"not-array";return"no-prop"}function R(ie,$,fe){t||m.push(ps(ie,$,fe))}}function lNe(e){return e.code===_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function cfe({includeSpecs:e,excludeSpecs:t},r){return ps(_.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function lfe(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function FO(e){return!fs(e,"files")&&!fs(e,"references")}function CJ(e,t,r,i,o){let s=i.length;return lfe(e,o)?i.push(cfe(r,t)):wU(i,l=>!lNe(l)),s!==i.length}function uNe(e){return!!e.options}function ufe(e,t,r,i,o,s,l,f){var d;i=Al(i);let g=_a(o||"",i);if(s.indexOf(g)>=0)return l.push(ps(_.Circularity_detected_while_resolving_configuration_Colon_0,[...s,g].join(" -> "))),{raw:e||rfe(t,l)};let m=e?dNe(e,r,i,o,l):fNe(t,r,i,o,l);if((d=m.options)!=null&&d.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([g]);let S={options:{}};Ta(m.extendedConfigPath)?v(S,m.extendedConfigPath):m.extendedConfigPath.forEach(x=>v(S,x)),!m.raw.include&&S.include&&(m.raw.include=S.include),!m.raw.exclude&&S.exclude&&(m.raw.exclude=S.exclude),!m.raw.files&&S.files&&(m.raw.files=S.files),m.raw.compileOnSave===void 0&&S.compileOnSave&&(m.raw.compileOnSave=S.compileOnSave),t&&S.extendedSourceFiles&&(t.extendedSourceFiles=lo(S.extendedSourceFiles.keys())),m.options=JD(S.options,m.options),m.watchOptions=m.watchOptions&&S.watchOptions?JD(S.watchOptions,m.watchOptions):m.watchOptions||S.watchOptions}return m;function v(S,x){let A=_Ne(t,x,r,s,l,f,S);if(A&&uNe(A)){let w=A.raw,C,P=F=>{w[F]&&(S[F]=on(w[F],B=>qp(B)?B:vi(C||(C=rI(ni(x),i,Dl(r.useCaseSensitiveFileNames))),B)))};P("include"),P("exclude"),P("files"),w.compileOnSave!==void 0&&(S.compileOnSave=w.compileOnSave),JD(S.options,A.options),S.watchOptions=S.watchOptions&&A.watchOptions?JD({},S.watchOptions,A.watchOptions):S.watchOptions||A.watchOptions}}}function dNe(e,t,r,i,o){fs(e,"excludes")&&o.push(ps(_.Unknown_option_excludes_Did_you_mean_exclude));let s=ffe(e.compilerOptions,r,o,i),l=_fe(e.typeAcquisition,r,o,i),f=gNe(e.watchOptions,r,o);e.compileOnSave=pNe(e,r,o);let d;if(e.extends||e.extends==="")if(!P3(qO,e.extends))o.push(ps(_.Compiler_option_0_requires_a_value_of_type_1,"extends",OL(qO)));else{let g=i?AJ(i,r):r;if(Ta(e.extends))d=M3(e.extends,t,g,o,ps);else{d=[];for(let m of e.extends)Ta(m)?d=Sn(d,M3(m,t,g,o,ps)):o.push(ps(_.Compiler_option_0_requires_a_value_of_type_1,"extends",OL(qO.element)))}}return{raw:e,options:s,watchOptions:f,typeAcquisition:l,extendedConfigPath:d}}function fNe(e,t,r,i,o){let s=dfe(i),l,f,d,g,v=nfe(e,o,!0,{onSetValidOptionKeyValueInParent(S,x,A){let w;switch(S){case"compilerOptions":w=s;break;case"watchOptions":w=f||(f={});break;case"typeAcquisition":w=l||(l=F3(i));break;default:L.fail("Unknown option")}w[x.name]=LJ(x,r,A)},onSetValidOptionKeyValueInRoot(S,x,A,w){switch(S){case"extends":let C=i?AJ(i,r):r;if(Ta(A))d=M3(A,t,C,o,(P,F)=>Nu(e,w,P,F));else{d=[];for(let P=0;P<A.length;P++){let F=A[P];Ta(F)&&(d=Sn(d,M3(F,t,C,o,(B,q)=>Nu(e,w.elements[P],B,q))))}}return}},onSetUnknownOptionKeyValueInRoot(S,x,A,w){S==="excludes"&&o.push(Nu(e,x,_.Unknown_option_excludes_Did_you_mean_exclude)),wr(B3,C=>C.name===S)&&(g=Sn(g,x))}});return l||(l=F3(i)),g&&v&&v.compilerOptions===void 0&&o.push(Nu(e,g[0],_._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,wA(g[0]))),{raw:v,options:s,watchOptions:f,typeAcquisition:l,extendedConfigPath:d}}function M3(e,t,r,i,o){if(e=Al(e),qp(e)||na(e,"./")||na(e,"../")){let l=_a(e,r);if(!t.fileExists(l)&&!Oc(l,".json")&&(l=`${l}.json`,!t.fileExists(l))){i.push(o(_.File_0_not_found,e));return}return l}let s=Jfe(e,vi(r,"tsconfig.json"),t);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;e===""?i.push(o(_.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(o(_.File_0_not_found,e))}function _Ne(e,t,r,i,o,s,l){var f;let d=r.useCaseSensitiveFileNames?t:n_(t),g,m,v;if(s&&(g=s.get(d))?{extendedResult:m,extendedConfig:v}=g:(m=$de(t,S=>r.readFile(S)),m.parseDiagnostics.length||(v=ufe(void 0,m,r,ni(t),Hl(t),i,o,s)),s&&s.set(d,{extendedResult:m,extendedConfig:v})),e&&(((f=l.extendedSourceFiles)!=null?f:l.extendedSourceFiles=new Set).add(m.fileName),m.extendedSourceFiles))for(let S of m.extendedSourceFiles)l.extendedSourceFiles.add(S);if(m.parseDiagnostics.length){o.push(...m.parseDiagnostics);return}return v}function pNe(e,t,r){if(!fs(e,UO.name))return!1;let i=GO(UO,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function mNe(e,t,r){let i=[];return{options:ffe(e,t,i,r),errors:i}}function hNe(e,t,r){let i=[];return{options:_fe(e,t,i,r),errors:i}}function dfe(e){return e&&Hl(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ffe(e,t,r,i){let o=dfe(i);return IJ(Zde(),e,t,o,JO,r),i&&(o.configFilePath=Al(i)),o}function F3(e){return{enable:!!e&&Hl(e)==="jsconfig.json",include:[],exclude:[]}}function _fe(e,t,r,i){let o=F3(i);return IJ(tfe(),e,t,o,VJ,r),o}function gNe(e,t,r){return IJ(efe(),e,t,void 0,KO,r)}function IJ(e,t,r,i,o,s){if(t){for(let l in t){let f=e.get(l);f?(i||(i={}))[f.name]=GO(f,t[l],r,s):s.push(mJ(l,o,ps))}return i}}function GO(e,t,r,i){if(P3(e,t)){let o=e.type;if(o==="list"&&ba(t))return hfe(e,t,r,i);if(o==="listOrElement")return ba(t)?hfe(e,t,r,i):GO(e.element,t,r,i);if(!Ta(e.type))return mfe(e,t,i);let s=HT(e,t,i);return R2(s)?s:pfe(e,r,s)}else i.push(ps(_.Compiler_option_0_requires_a_value_of_type_1,e.name,OL(e)))}function LJ(e,t,r){if(!R2(r)){if(e.type==="listOrElement"&&!ba(r))return LJ(e.element,t,r);if(e.type==="list"||e.type==="listOrElement"){let i=e;return i.element.isFilePath||!Ta(i.element.type)?Pr(on(r,o=>LJ(i.element,t,o)),o=>i.listPreserveFalsyValues?!0:!!o):r}else if(!Ta(e.type))return e.type.get(Ta(r)?r.toLowerCase():r);return pfe(e,t,r)}}function pfe(e,t,r){return e.isFilePath&&(r=_a(r,t),r===""&&(r=".")),r}function HT(e,t,r){var i;if(R2(t))return;let o=(i=e.extraValidation)==null?void 0:i.call(e,t);if(!o)return t;r.push(ps(...o))}function mfe(e,t,r){if(R2(t))return;let i=t.toLowerCase(),o=e.type.get(i);if(o!==void 0)return HT(e,o,r);r.push(pJ(e))}function hfe(e,t,r,i){return Pr(on(t,o=>GO(e.element,o,r,i)),o=>e.listPreserveFalsyValues?!0:!!o)}function BO(e,t,r,i,o=Je){t=So(t);let s=Dl(i.useCaseSensitiveFileNames),l=new Map,f=new Map,d=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,S=nL(r,o),x=FR(r,S);if(g)for(let P of g){let F=_a(P,t);l.set(s(F),F)}let A;if(m&&m.length>0)for(let P of i.readDirectory(t,t_(x),v,m,void 0)){if(Gc(P,".json")){if(!A){let q=m.filter(Y=>Oc(Y,".json")),W=on(m4(q,t,"files"),Y=>`^${Y}$`);A=W?W.map(Y=>Qy(Y,i.useCaseSensitiveFileNames)):Je}if(Yc(A,q=>q.test(P))!==-1){let q=s(P);!l.has(q)&&!d.has(q)&&d.set(q,P)}continue}if(bNe(P,l,f,S,s))continue;ENe(P,f,S,s);let F=s(P);!l.has(F)&&!f.has(F)&&f.set(F,P)}let w=lo(l.values()),C=lo(f.values());return w.concat(C,lo(d.values()))}function gfe(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:f}=t;if(!Fn(l)||!Fn(f))return!1;r=So(r);let d=Dl(i);if(s){for(let g of s)if(d(_a(g,r))===e)return!1}return vfe(e,f,i,o,r)}function yfe(e){let t=na(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Oc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function G3(e,t,r,i){return vfe(e,Pr(t,o=>!yfe(o)),r,i)}function vfe(e,t,r,i,o){let s=eL(t,vi(So(i),o),"exclude"),l=s&&Qy(s,r);return l?l.test(e)?!0:!gA(e)&&l.test(cu(e)):!1}function bfe(e,t,r,i,o){return e.filter(l=>{if(!Ta(l))return!1;let f=kJ(l,r);return f!==void 0&&t.push(s(...f)),f===void 0});function s(l,f){let d=w6(i,o,f);return d?Nu(i,d,l,f):ps(l,f)}}function kJ(e,t){if(L.assert(typeof e=="string"),t&&Dfe.test(e))return[_.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(yfe(e))return[_.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function yNe({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=eL(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={};if(e!==void 0){let f=[];for(let d of e){let g=So(vi(r,d));if(s&&s.test(g))continue;let m=vNe(g,i);if(m){let{key:v,flags:S}=m,x=l[v];(x===void 0||x<S)&&(l[v]=S,S===1&&f.push(v))}}for(let d in l)if(fs(l,d))for(let g of f)d!==g&&Gy(g,d,r,!i)&&delete l[d]}return l}function vNe(e,t){let r=wfe.exec(e);if(r){let i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(_s);return{key:t?r[0]:n_(r[0]),flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(LW(e.substring(e.lastIndexOf(_s)+1)))return{key:sT(t?e:n_(e)),flags:1}}function bNe(e,t,r,i,o){let s=mn(i,l=>$c(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(Gc(e,l))return!1;let f=o(V0(e,l));if(t.has(f)||r.has(f)){if(l===".d.ts"&&(Gc(e,".js")||Gc(e,".jsx")))continue;return!0}}return!1}function ENe(e,t,r,i){let o=mn(r,s=>$c(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(Gc(e,l))return;let f=i(V0(e,l));t.delete(f)}}function TNe(e){let t={};for(let r in e)if(fs(e,r)){let i=gJ(r);i!==void 0&&(t[r]=DJ(e[r],i))}return t}function DJ(e,t){switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ba(e))return DJ(e,t.element);case"list":let r=t.element;return ba(e)?e.map(i=>DJ(i,r)):"";default:return Ld(t.type,(i,o)=>{if(i===e)return o})}}function wJ(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return wJ(e.element);case"object":return{};default:let r=u8(e.type.keys());return r!==void 0?r:L.fail("Expected 'option.type' to have entries.")}}var UO,RJ,NL,OJ,VO,jO,HO,WO,zO,NJ,B3,Fh,PJ,MJ,FJ,U3,V3,GJ,BJ,UJ,j3,H3,Efe,Tfe,W3,JO,Sfe,xfe,Afe,VJ,Cfe,KO,Ife,Lfe,kfe,qO,jJ,z3,Dfe,wfe,SNe=gt({"src/compiler/commandLineParser.ts"(){"use strict";fa(),UO={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},RJ=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),NL=new Map(RU(RJ.entries(),([e,t])=>[""+t,e])),OJ=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],VO=OJ.map(e=>e[0]),jO=new Map(OJ),HO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_.Watch_and_Build_Modes,description:_.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:_.Watch_and_Build_Modes,description:_.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:_.Watch_and_Build_Modes,description:_.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_.Watch_and_Build_Modes,description:_.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:kJ},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:kJ},category:_.Watch_and_Build_Modes,description:_.Remove_a_list_of_files_from_the_watch_mode_s_processing}],WO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_.Command_line_Options,description:_.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_.Output_Formatting,description:_.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_.Compiler_Diagnostics,description:_.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_.Output_Formatting,description:_.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_.Compiler_Diagnostics,description:_.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_.Compiler_Diagnostics,description:_.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_.FILE_OR_DIRECTORY,category:_.Compiler_Diagnostics,description:_.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:_.DIRECTORY,category:_.Compiler_Diagnostics,description:_.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_.Projects,description:_.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_.Emit,description:_.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Watch_and_Build_Modes,description:_.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_.Platform_specific}],zO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.VERSION,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},NJ={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_what_module_code_is_generated,defaultValueDescription:void 0},B3=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_.Command_line_Options,paramType:_.FILE_OR_DIRECTORY,description:_.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_.Command_line_Options,description:_.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_.Command_line_Options,isCommandLineOnly:!0,description:_.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},zO,NJ,{name:"lib",type:"list",element:{name:"lib",type:jO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:_.JavaScript_Support,description:_.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:RJ,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:_.KIND,showInSimplifiedHelpView:!0,category:_.Language_and_Environment,description:_.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.FILE,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,showInSimplifiedHelpView:!0,category:_.Emit,description:_.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.LOCATION,category:_.Modules,description:_.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_.FILE,category:_.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Emit,defaultValueDescription:!1,description:_.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_.Emit,description:_.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_.Interop_Constraints,description:_.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:_.Interop_Constraints,description:_.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Type_Checking,description:_.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_.Type_Checking,description:_.Ensure_use_strict_is_always_emitted,defaultValueDescription:_.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:_.Type_Checking,description:_.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:_.STRATEGY,category:_.Modules,description:_.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_.Modules,description:_.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:_.Modules,description:_.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:_.Modules,description:_.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_.Modules,description:_.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Interop_Constraints,description:_.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_.Interop_Constraints,description:_.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_.Interop_Constraints,description:_.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Modules,description:_.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_.Modules,description:_.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,category:_.Modules,description:_.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_.Modules,description:_.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_.LOCATION,category:_.Emit,description:_.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:_.Language_and_Environment,description:_.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:_.Language_and_Environment,description:_.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_.Modules,description:_.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:_.Backwards_Compatibility,paramType:_.FILE,transpileOptionValue:void 0,description:_.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_.Backwards_Compatibility,description:_.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:_.NEWLINE,category:_.Emit,description:_.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Output_Formatting,description:_.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_.Language_and_Environment,affectsProgramStructure:!0,description:_.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_.Modules,description:_.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_.Editor_Support,description:_.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_.Projects,description:_.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,transpileOptionValue:void 0,description:_.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_.DIRECTORY,category:_.Emit,transpileOptionValue:void 0,description:_.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_.Completeness,description:_.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Type_Checking,description:_.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_.Interop_Constraints,description:_.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_.JavaScript_Support,description:_.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_.Backwards_Compatibility,description:_.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_.Language_and_Environment,description:_.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_.Emit,description:_.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_.Backwards_Compatibility,description:_.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:_.Specify_a_list_of_language_service_plugins_to_include,category:_.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:_.Control_what_method_is_used_to_detect_module_format_JS_files,category:_.Language_and_Environment,defaultValueDescription:_.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Fh=[...WO,...B3],PJ=Fh.filter(e=>!!e.affectsSemanticDiagnostics),MJ=Fh.filter(e=>!!e.affectsEmit),FJ=Fh.filter(e=>!!e.affectsDeclarationPath),U3=Fh.filter(e=>!!e.affectsModuleResolution),V3=Fh.filter(e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics),GJ=Fh.filter(e=>!!e.affectsProgramStructure),BJ=Fh.filter(e=>fs(e,"transpileOptionValue")),UJ=[{name:"verbose",shortName:"v",category:_.Command_line_Options,description:_.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_.Command_line_Options,description:_.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_.Command_line_Options,description:_.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_.Command_line_Options,description:_.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],j3=[...WO,...UJ],H3=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],Tfe={diagnostic:_.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:Yde},W3={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},JO={alternateMode:Tfe,getOptionsNameMap:w2,optionDeclarations:Fh,unknownOptionDiagnostic:_.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Compiler_option_0_expects_an_argument},xfe={diagnostic:_.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:w2},Afe={alternateMode:xfe,getOptionsNameMap:Yde,optionDeclarations:j3,unknownOptionDiagnostic:_.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Build_option_0_requires_a_value_of_type_1},VJ={optionDeclarations:H3,unknownOptionDiagnostic:_.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_.Unknown_type_acquisition_option_0_Did_you_mean_1},KO={getOptionsNameMap:Qde,optionDeclarations:HO,unknownOptionDiagnostic:_.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_.Watch_option_0_requires_a_value_of_type_1},qO={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_.File_Management},z3="**/*",Dfe=/(^|\/)\*\*\/?$/,wfe=/^[^*?]*(?=\/[^/]*[*?])/}});function Xi(e){e.trace(TW.apply(void 0,arguments))}function ov(e,t){return!!e.traceResolution&&t.trace!==void 0}function O2(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+_s.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function J3(e){return O2(void 0,e)}function Rfe(e){if(e)return L.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Ofe(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function Nfe(e){if(e)return L.assert(y4(e.extension)),{fileName:e.path,packageId:e.packageId}}function Pfe(e,t,r,i,o,s,l,f){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!fl(e)){let{resolvedFileName:d,originalPath:g}=Gfe(t.path,l.host,l.traceEnabled);g&&(t={...t,path:d,originalPath:g})}return Mfe(t,r,i,o,s,l.resultFromCache,f)}function Mfe(e,t,r,i,o,s,l){return s?(s.failedLookupLocations=N2(s.failedLookupLocations,r),s.affectingLocations=N2(s.affectingLocations,i),s.resolutionDiagnostics=N2(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:PL(r),affectingLocations:PL(i),resolutionDiagnostics:PL(o),node10Result:l}}function PL(e){return e.length?e:void 0}function N2(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Ffe(e,t,r,i){if(!fs(e,t)){i.traceEnabled&&Xi(i.host,_.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&Xi(i.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function K3(e,t,r,i){let o=Ffe(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&Xi(i.host,_.package_json_had_a_falsy_0_field,t);return}let s=So(vi(r,o));return i.traceEnabled&&Xi(i.host,_.package_json_has_0_field_1_that_references_2,t,o,s),s}function xNe(e,t,r){return K3(e,"typings",t,r)||K3(e,"types",t,r)}function ANe(e,t,r){return K3(e,"tsconfig",t,r)}function CNe(e,t,r){return K3(e,"main",t,r)}function INe(e,t){let r=Ffe(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&Xi(t.host,_.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function LNe(e,t){let r=INe(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)fs(r,l)&&!mA.tryParse(l)&&Xi(t.host,_.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=q3(r);if(!i){t.traceEnabled&&Xi(t.host,_.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,Sg);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&Xi(t.host,_.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function q3(e){rK||(rK=new r_(Rf));for(let t in e){if(!fs(e,t))continue;let r=mA.tryParse(t);if(r!==void 0&&r.test(rK))return{version:t,paths:e[t]}}}function XO(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=ni(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return kNe(r,t)}function kNe(e,t){if(!t.directoryExists)return[vi(e,iK)];let r;return Th(So(e),i=>{let o=vi(i,iK);t.directoryExists(o)&&(r||(r=[])).push(o)}),r}function DNe(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return cT(e,t,!i)===0}function Gfe(e,t,r){let i=WNe(e,t,r),o=DNe(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function HJ(e,t,r,i,o,s,l){L.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let f=ov(r,i);o&&(r=o.commandLine.options);let d=t?ni(t):void 0,g=d?s?.getFromDirectoryCache(e,l,d,o):void 0;if(!g&&d&&!fl(e)&&(g=s?.getFromNonRelativeNameCache(e,l,d,o)),g)return f&&(Xi(i,_.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&Xi(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),Xi(i,_.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),q(g)),g;let m=XO(r,i);f&&(t===void 0?m===void 0?Xi(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Xi(i,_.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?Xi(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Xi(i,_.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&Xi(i,_.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],S=[],x=WJ(r);l===99&&($s(r)===3||$s(r)===99)&&(x|=32);let A=x&8?P2(r,!!(x&32)):[],w=[],C={compilerOptions:r,host:i,traceEnabled:f,failedLookupLocations:v,affectingLocations:S,packageJsonInfoCache:s,features:x,conditions:A,requestContainingDirectory:d,reportDiagnostic:R=>void w.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},P=W(),F=!0;P||(P=Y(),F=!1);let B;if(P){let{fileName:R,packageId:ie}=P,$=R,fe;r.preserveSymlinks||({resolvedFileName:$,originalPath:fe}=Gfe(R,i,f)),B={primary:F,resolvedFileName:$,originalPath:fe,packageId:ie,isExternalLibraryImport:JS(R)}}return g={resolvedTypeReferenceDirective:B,failedLookupLocations:PL(v),affectingLocations:PL(S),resolutionDiagnostics:PL(w)},d&&(s?.getOrCreateCacheForDirectory(d,o).set(e,l,g),fl(e)||s?.getOrCreateCacheForNonRelativeName(e,l,o).set(d,g)),f&&q(g),g;function q(R){var ie;(ie=R.resolvedTypeReferenceDirective)!=null&&ie.resolvedFileName?R.resolvedTypeReferenceDirective.packageId?Xi(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,R.resolvedTypeReferenceDirective.resolvedFileName,hT(R.resolvedTypeReferenceDirective.packageId),R.resolvedTypeReferenceDirective.primary):Xi(i,_.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,R.resolvedTypeReferenceDirective.resolvedFileName,R.resolvedTypeReferenceDirective.primary):Xi(i,_.Type_reference_directive_0_was_not_resolved,e)}function W(){if(m&&m.length)return f&&Xi(i,_.Resolving_with_primary_search_path_0,m.join(", ")),ks(m,R=>{let ie=vi(R,e),$=ni(ie),fe=gp($,i);return!fe&&f&&Xi(i,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),Nfe(Qfe(4,ie,!fe,C))});f&&Xi(i,_.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function Y(){let R=t&&ni(t);if(R!==void 0){f&&Xi(i,_.Looking_up_in_node_modules_folder_initial_location_0,R);let ie;if(fl(e)){let{path:$}=Kfe(R,e);ie=Q3(4,$,!1,C,!0)}else{let $=t_e(4,e,R,C,void 0,void 0);ie=$&&$.value}return Nfe(ie)}else f&&Xi(i,_.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function WJ(e){let t=0;switch($s(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function P2(e,t){let r=t||$s(e)===100?["import"]:["require"];return e.noDtsResolution||r.push("types"),$s(e)!==100&&r.push("node"),Qi(r,e.customConditions)}function wNe(e,t,r,i,o){let s=Z3(o?.getPackageJsonInfoCache(),i,r);return Th(t,l=>{if(Hl(l)!=="node_modules"){let f=vi(l,"node_modules"),d=vi(f,e);return KS(d,!1,s)}})}function X3(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=XO(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=So(s),f=vi(o,l,"package.json");if(!(t.fileExists(f)&&JI(f,t).typings===null)){let g=Hl(l);g.charCodeAt(0)!==46&&r.push(g)}}}}return r}function zJ(e){var t;if(e===null||typeof e!="object")return""+e;if(ba(e))return`[${(t=e.map(i=>zJ(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)fs(e,i)&&(r+=`${i}: ${zJ(e[i])}`);return r+"}"}function JJ(e,t){return t.map(r=>zJ(f4(e,r))).join("|")+(e.pathsBasePath?`|${e.pathsBasePath}`:void 0)}function KJ(e){let t=new Map,r=new Map,i=new Map,o=new Map;return e&&t.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:f,clear:g};function s(v){return v?d(v.commandLine.options,!1):o}function l(v){return v?d(v.commandLine.options,!0):o}function f(v){e!==v&&(e?o=d(v,!0):t.set(v,o),e=v)}function d(v,S){let x=t.get(v);if(x)return x;let A=m(v);if(x=i.get(A),!x){if(e){let w=m(e);w===A?x=o:i.has(w)||i.set(w,o)}S&&(x??(x=new Map)),x&&i.set(A,x)}return x&&t.set(v,x),x}function g(){let v=e&&r.get(e);o.clear(),t.clear(),r.clear(),i.clear(),e&&(v&&r.set(e,v),t.set(e,o))}function m(v){let S=r.get(v);return S||r.set(v,S=JJ(v,U3)),S}}function RNe(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,entries:l,getInternalMap:f};function i(d){return r?.get(Ts(d,e,t))}function o(d,g){(r||(r=new Map)).set(Ts(d,e,t),g)}function s(){r=void 0}function l(){let d=r?.entries();return d?lo(d):[]}function f(){return r}}function Bfe(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function ONe(e,t,r){let i=KJ(r);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:l,clear:o,update:s};function o(){i.clear()}function s(d){i.update(d)}function l(d,g){let m=Ts(d,e,t);return Bfe(i,g,m,()=>WT())}function f(d,g,m,v){var S,x;let A=Ts(m,e,t);return(x=(S=i.getMapOfCacheRedirects(v))==null?void 0:S.get(A))==null?void 0:x.get(d,g)}}function ML(e,t){return t===void 0?e:`${t}|${e}`}function WT(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[f,d]=t.get(l);return o(s,f,d)})},size(){return e.size}};return r;function i(o,s){let l=ML(o,s);return t.set(l,[o,s]),l}}function qJ(e,t,r,i){L.assert(t.length===r.length);let o=WT();for(let s=0;s<t.length;++s){let l=t[s];o.set(i.getName(l),i.getMode(l,e),r[s])}return o}function NNe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function PNe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function MNe(e,t,r,i){let o=KJ(r);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:d,clear:s,update:l};function s(){o.clear()}function l(m){o.update(m)}function f(m,v,S,x){var A,w;return L.assert(!fl(m)),(w=(A=o.getMapOfCacheRedirects(x))==null?void 0:A.get(ML(m,v)))==null?void 0:w.get(S)}function d(m,v,S){return L.assert(!fl(m)),Bfe(o,S,ML(m,v),g)}function g(){let m=new Map;return{get:v,set:S};function v(A){return m.get(Ts(A,e,t))}function S(A,w){let C=Ts(A,e,t);if(m.has(C))return;m.set(C,w);let P=i(w),F=P&&x(C,P),B=C;for(;B!==F;){let q=ni(B);if(q===B||m.has(q))break;m.set(q,w),B=q}}function x(A,w){let C=Ts(ni(w),e,t),P=0,F=Math.min(A.length,C.length);for(;P<F&&A.charCodeAt(P)===C.charCodeAt(P);)P++;if(P===A.length&&(C.length===P||C[P]===_s))return A;let B=_p(A);if(P<B)return;let q=A.lastIndexOf(_s,P-1);if(q!==-1)return A.substr(0,Math.max(q,B))}}}function Ufe(e,t,r,i,o){let s=ONe(e,t,r),l=MNe(e,t,r,o);return i??(i=RNe(e,t)),{...i,...s,...l,clear:f,update:g,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:d};function f(){d(),i.clear()}function d(){s.clear(),l.clear()}function g(m){s.update(m),l.update(m)}}function Y3(e,t,r){let i=Ufe(e,t,r,void 0,NNe);return i.getOrCreateCacheForModuleName=(o,s,l)=>i.getOrCreateCacheForNonRelativeName(o,s,l),i}function $3(e,t,r,i){return Ufe(e,t,r,i,PNe)}function FNe(e,t,r,i){let o=ni(t);return r.getFromDirectoryCache(e,i,o,void 0)}function FL(e,t,r,i,o,s,l){let f=ov(r,i);s&&(r=s.commandLine.options),f&&(Xi(i,_.Resolving_module_0_from_1,e,t),s&&Xi(i,_.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let d=ni(t),g=o?.getFromDirectoryCache(e,l,d,s);if(g)f&&Xi(i,_.Resolution_for_module_0_was_found_in_cache_from_location_1,e,d);else{let m=r.moduleResolution;if(m===void 0){switch(Rl(r)){case 1:m=2;break;case 100:m=3;break;case 199:m=99;break;default:m=1;break}f&&Xi(i,_.Module_resolution_kind_is_not_specified_using_0,rw[m])}else f&&Xi(i,_.Explicitly_specified_module_resolution_kind_Colon_0,rw[m]);switch(fp.logStartResolveModule(e),m){case 3:g=VNe(e,t,r,i,o,s,l);break;case 99:g=jNe(e,t,r,i,o,s,l);break;case 2:g=zfe(e,t,r,i,o,s);break;case 1:g=o_e(e,t,r,i,o,s);break;case 100:g=Wfe(e,t,r,i,o,s);break;default:return L.fail(`Unexpected moduleResolution: ${m}`)}g&&g.resolvedModule&&fp.logInfoEvent(`Module "${e}" resolved to "${g.resolvedModule.resolvedFileName}"`),fp.logStopResolveModule(g&&g.resolvedModule?""+g.resolvedModule.resolvedFileName:"null"),o?.getOrCreateCacheForDirectory(d,s).set(e,l,g),fl(e)||o?.getOrCreateCacheForNonRelativeName(e,l,s).set(d,g)}return f&&(g.resolvedModule?g.resolvedModule.packageId?Xi(i,_.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,g.resolvedModule.resolvedFileName,hT(g.resolvedModule.packageId)):Xi(i,_.Module_name_0_was_successfully_resolved_to_1,e,g.resolvedModule.resolvedFileName):Xi(i,_.Module_name_0_was_not_resolved,e)),g}function Vfe(e,t,r,i,o){let s=GNe(e,t,i,o);return s?s.value:fl(t)?BNe(e,t,r,i,o):UNe(e,t,i,o)}function GNe(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:f}=i.compilerOptions;if(l&&!Jd(t)){i.traceEnabled&&(s&&Xi(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),Xi(i.host,_.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let d=ZH(i.compilerOptions,i.host),g=f?.configFileSpecs?(o=f.configFileSpecs).pathPatterns||(o.pathPatterns=g4(l)):void 0;return nK(e,t,d,l,g,r,!1,i)}}function BNe(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&Xi(o.host,_.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=So(vi(r,t)),l,f;for(let d of o.compilerOptions.rootDirs){let g=So(d);Oc(g,_s)||(g+=_s);let m=na(s,g)&&(f===void 0||f.length<g.length);o.traceEnabled&&Xi(o.host,_.Checking_if_0_is_the_longest_matching_prefix_for_1_2,g,s,m),m&&(f=g,l=d)}if(f){o.traceEnabled&&Xi(o.host,_.Longest_matching_prefix_for_0_is_1,s,f);let d=s.substr(f.length);o.traceEnabled&&Xi(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,f,s);let g=i(e,s,!gp(r,o.host),o);if(g)return g;o.traceEnabled&&Xi(o.host,_.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=vi(So(m),d);o.traceEnabled&&Xi(o.host,_.Loading_0_from_the_root_dir_1_candidate_location_2,d,m,v);let S=ni(v),x=i(e,v,!gp(S,o.host),o);if(x)return x}o.traceEnabled&&Xi(o.host,_.Module_resolution_using_rootDirs_has_failed)}}function UNe(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&Xi(i.host,_.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=So(vi(o,t));return i.traceEnabled&&Xi(i.host,_.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gp(ni(s),i.host),i)}function jfe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=HNe(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(", ")}`);return i.resolvedFileName}function VNe(e,t,r,i,o,s,l){return Hfe(30,e,t,r,i,o,s,l)}function jNe(e,t,r,i,o,s,l){return Hfe(30,e,t,r,i,o,s,l)}function Hfe(e,t,r,i,o,s,l,f){let d=ni(r),g=f===99?32:0,m=i.noDtsResolution?3:7;return RT(i)&&(m|=8),GL(e|g,t,d,i,o,s,m,!1,l)}function HNe(e,t,r){return GL(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0)}function Wfe(e,t,r,i,o,s){let l=ni(t),f=r.noDtsResolution?3:7;return RT(r)&&(f|=8),GL(WJ(r),e,l,r,i,o,f,!1,s)}function zfe(e,t,r,i,o,s,l){let f;return l?f=8:r.noDtsResolution?(f=3,RT(r)&&(f|=8)):f=RT(r)?15:7,GL(0,e,ni(t),r,i,o,f,!!l,s)}function Jfe(e,t,r){return GL(8,e,ni(t),{moduleResolution:99},r,void 0,8,!0,void 0)}function GL(e,t,r,i,o,s,l,f,d){var g,m,v,S;let x=ov(i,o),A=[],w=[],C=P2(i,!!(e&32)),P=[],F={compilerOptions:i,host:o,traceEnabled:x,failedLookupLocations:A,affectingLocations:w,packageJsonInfoCache:s,features:e,conditions:C,requestContainingDirectory:r,reportDiagnostic:Y=>void P.push(Y),isConfigLookup:f,candidateIsFromPackageJsonField:!1};x&&bS($s(i))&&Xi(o,_.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",C.map(Y=>`'${Y}'`).join(", "));let B;if($s(i)===2){let Y=l&5,R=l&-6;B=Y&&W(Y,F)||R&&W(R,F)||void 0}else B=W(l,F);let q;if((g=B?.value)!=null&&g.isExternalLibraryImport&&!f&&l&5&&e&8&&!fl(t)&&!QJ(5,B.value.resolved.extension)&&C.indexOf("import")>-1){Y0(F,_.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let Y={...F,features:F.features&-9,failedLookupLocations:[],affectingLocations:[],reportDiagnostic:Ba},R=W(l&5,Y);(m=R?.value)!=null&&m.isExternalLibraryImport&&(q=R.value.resolved.path)}return Pfe(t,(v=B?.value)==null?void 0:v.resolved,(S=B?.value)==null?void 0:S.isExternalLibraryImport,A,w,P,F,q);function W(Y,R){let $=Vfe(Y,t,r,(fe,Z,U,re)=>Q3(fe,Z,U,re,!0),R);if($)return Af({resolved:$,isExternalLibraryImport:JS($.path)});if(fl(t)){let{path:fe,parts:Z}=Kfe(r,t),U=Q3(Y,fe,!1,R,!0);return U&&Af({resolved:U,isExternalLibraryImport:ya(Z,"node_modules")})}else{let fe;return e&2&&na(t,"#")&&(fe=YNe(Y,t,r,R,s,d)),!fe&&e&4&&(fe=XNe(Y,t,r,R,s,d)),fe||(x&&Xi(o,_.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Ofe(Y)),fe=t_e(Y,t,r,R,s,d)),fe&&{value:fe.value&&{resolved:fe.value,isExternalLibraryImport:!0}}}}}function Kfe(e,t){let r=vi(e,t),i=Ou(r),o=Os(i);return{path:o==="."||o===".."?cu(So(r)):So(r),parts:i}}function WNe(e,t,r){if(!t.realpath)return e;let i=So(t.realpath(e));return r&&Xi(t,_.Resolving_real_path_for_0_result_1,e,i),L.assert(t.fileExists(i),`${e} linked to nonexistent file ${i}`),i}function Q3(e,t,r,i,o){if(i.traceEnabled&&Xi(i.host,_.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Ofe(e)),!My(t)){if(!r){let l=ni(t);gp(l,i.host)||(i.traceEnabled&&Xi(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=BL(e,t,r,i);if(s){let l=o?XJ(s.path):void 0,f=l?KS(l,!1,i):void 0;return O2(f,s)}}if(r||gp(t,i.host)||(i.traceEnabled&&Xi(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return Qfe(e,t,r,i,o)}function JS(e){return jl(e,Wg)}function XJ(e){let t=So(e),r=t.lastIndexOf(Wg);if(r===-1)return;let i=r+Wg.length,o=qfe(t,i);return t.charCodeAt(i)===64&&(o=qfe(t,o)),t.slice(0,o)}function qfe(e,t){let r=e.indexOf(_s,t+1);return r===-1?t:r}function YJ(e,t,r,i){return J3(BL(e,t,r,i))}function BL(e,t,r,i){let o=Xfe(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=Yfe(t,e,"",r,i);if(s)return s}}function Xfe(e,t,r,i){if(Hl(t).indexOf(".")===-1)return;let s=ld(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&Xi(i.host,_.File_name_0_has_a_1_extension_stripping_it,t,l),Yfe(s,e,l,r,i)}function $J(e,t,r,i){return e&1&&$c(t,L4)||e&4&&$c(t,I4)?YO(t,r,i)!==void 0?{path:t,ext:r4(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Gc(t,".json")?YO(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:Xfe(e,t,r,i)}function Yfe(e,t,r,i,o){if(!i){let l=ni(e);l&&(i=!gp(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Fu(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,f){let d=YO(e+l,i,o);return d===void 0?void 0:{path:d,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&f}}}function YO(e,t,r){var i,o;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return $fe(e,t,r);let s=(o=Hm(e))!=null?o:"",l=s?UR(e,s):e;return mn(r.compilerOptions.moduleSuffixes,f=>$fe(l+f+s,t,r))}function $fe(e,t,r){if(!t){if(r.host.fileExists(e))return r.traceEnabled&&Xi(r.host,_.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&Xi(r.host,_.File_0_does_not_exist,e)}r.failedLookupLocations.push(e)}function Qfe(e,t,r,i,o=!0){let s=o?KS(t,r,i):void 0,l=s&&s.contents.packageJsonContent,f=s&&$O(s,i);return O2(s,tF(e,t,r,i,l,f))}function zNe(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),f=WJ(t),d=Z3(i?.getPackageJsonInfoCache(),r,t);d.conditions=P2(t),d.requestContainingDirectory=e.packageDirectory;let g=tF(l,e.packageDirectory,!1,d,e.contents.packageJsonContent,$O(e,d));if(s=Sn(s,g?.path),f&8&&e.contents.packageJsonContent.exports){let m=fA([P2(t,!0),P2(t,!1)],up);for(let v of m){let S={...d,failedLookupLocations:[],conditions:v},x=JNe(e,e.contents.packageJsonContent.exports,S,l);if(x)for(let A of x)s=xg(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function JNe(e,t,r,i){let o;if(ba(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&nF(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var f,d;if(typeof l=="string"&&na(l,"./")&&l.indexOf("*")===-1){let g=Ou(l).slice(2);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return!1;let m=vi(e.packageDirectory,l),v=_a(m,(d=(f=r.host).getCurrentDirectory)==null?void 0:d.call(f)),S=$J(i,v,!1,r);if(S)return o=xg(o,S,(x,A)=>x.path===A.path),!0}else if(Array.isArray(l)){for(let g of l)if(s(g))return!0}else if(typeof l=="object"&&l!==null)return mn(bh(l),g=>{if(g==="default"||ya(r.conditions,g)||QO(r.conditions,g))return s(l[g]),!0})}}function Z3(e,t,r){return{host:t,compilerOptions:r,traceEnabled:ov(r,t),failedLookupLocations:E8,affectingLocations:E8,packageJsonInfoCache:e,features:0,conditions:Je,requestContainingDirectory:void 0,reportDiagnostic:Ba,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function eF(e,t){let r=Ou(e);for(r.pop();r.length>0;){let i=KS(T0(r),!1,t);if(i)return i;r.pop()}}function $O(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=LNe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function KS(e,t,r){var i,o,s;let{host:l,traceEnabled:f}=r,d=vi(e,"package.json");if(t){r.failedLookupLocations.push(d);return}let g=(i=r.packageJsonInfoCache)==null?void 0:i.getPackageJsonInfo(d);if(g!==void 0){if(typeof g!="boolean")return f&&Xi(l,_.File_0_exists_according_to_earlier_cached_lookups,d),r.affectingLocations.push(d),g.packageDirectory===e?g:{packageDirectory:e,contents:g.contents};g&&f&&Xi(l,_.File_0_does_not_exist_according_to_earlier_cached_lookups,d),r.failedLookupLocations.push(d);return}let m=gp(e,l);if(m&&l.fileExists(d)){let v=JI(d,l);f&&Xi(l,_.Found_package_json_at_0,d);let S={packageDirectory:e,contents:{packageJsonContent:v,versionPaths:void 0,resolvedEntrypoints:void 0}};return(o=r.packageJsonInfoCache)==null||o.setPackageJsonInfo(d,S),r.affectingLocations.push(d),S}else m&&f&&Xi(l,_.File_0_does_not_exist,d),(s=r.packageJsonInfoCache)==null||s.setPackageJsonInfo(d,m),r.failedLookupLocations.push(d)}function tF(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=ANe(o,t,i):l=e&4&&xNe(o,t,i)||e&7&&CNe(o,t,i)||void 0);let f=(S,x,A,w)=>{let C=YO(x,A,w);if(C){let W=KNe(S,C);if(W)return J3(W);w.traceEnabled&&Xi(w.host,_.File_0_has_an_unsupported_extension_so_skipping_it,C)}let P=S===4?5:S,F=w.features,B=w.candidateIsFromPackageJsonField;w.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(w.features&=-33);let q=Q3(P,x,A,w,!1);return w.features=F,w.candidateIsFromPackageJsonField=B,q},d=l?!gp(ni(l),i.host):void 0,g=r||!gp(t,i.host),m=vi(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||Gy(t,l))){let S=Xp(t,l||m,!1);i.traceEnabled&&Xi(i.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,Rf,S);let x=nK(e,S,t,s.paths,void 0,f,d||g,i);if(x)return Rfe(x.value)}let v=l&&Rfe(f(e,l,d,i));if(v)return v;if(!(i.features&32))return BL(e,m,g,i)}function KNe(e,t,r){let i=Hm(t);return i!==void 0&&QJ(e,i)?{path:t,ext:i,resolvedUsingTsExtension:r}:void 0}function QJ(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function ZJ(e){let t=e.indexOf(_s);return e[0]==="@"&&(t=e.indexOf(_s,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function nF(e){return Ji(bh(e),t=>na(t,"."))}function qNe(e){return!vt(bh(e),t=>na(t,"."))}function XNe(e,t,r,i,o,s){var l,f;let d=_a(vi(r,"dummy"),(f=(l=i.host).getCurrentDirectory)==null?void 0:f.call(l)),g=eF(d,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let m=Ou(t),v=Ou(g.contents.packageJsonContent.name);if(!Ji(v,(C,P)=>m[P]===C))return;let S=m.slice(v.length),x=Fn(S)?`.${_s}${S.join(_s)}`:".",A=e&5,w=e&-6;return eK(g,A,x,i,o,s)||eK(g,w,x,i,o,s)}function eK(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&qNe(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:fs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return e_e(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(nF(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Xi(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Af(void 0);let l=Zfe(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&Xi(i.host,_.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),Af(void 0)}}function YNe(e,t,r,i,o,s){var l,f;if(t==="#"||na(t,"#/"))return i.traceEnabled&&Xi(i.host,_.Invalid_import_specifier_0_has_no_possible_resolutions,t),Af(void 0);let d=_a(vi(r,"dummy"),(f=(l=i.host).getCurrentDirectory)==null?void 0:f.call(l)),g=eF(d,i);if(!g)return i.traceEnabled&&Xi(i.host,_.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),Af(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Xi(i.host,_.package_json_scope_0_has_no_imports_defined,g.packageDirectory),Af(void 0);let m=Zfe(e,i,o,s,t,g.contents.packageJsonContent.imports,g,!0);return m||(i.traceEnabled&&Xi(i.host,_.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),Af(void 0))}function tK(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Zfe(e,t,r,i,o,s,l,f){let d=e_e(e,t,r,i,o,l,f);if(!Oc(o,_s)&&o.indexOf("*")===-1&&fs(s,o)){let v=s[o];return d(v,"",!1,o)}let g=XC(Pr(bh(s),v=>v.indexOf("*")!==-1||Oc(v,"/")),tK);for(let v of g)if(t.features&16&&m(v,o)){let S=s[v],x=v.indexOf("*"),A=o.substring(v.substring(0,x).length,o.length-(v.length-1-x));return d(S,A,!0,v)}else if(Oc(v,"*")&&na(o,v.substring(0,v.length-1))){let S=s[v],x=o.substring(v.length-1);return d(S,x,!0,v)}else if(na(o,v)){let S=s[v],x=o.substring(v.length);return d(S,x,!1,v)}function m(v,S){if(Oc(v,"*"))return!1;let x=v.indexOf("*");return x===-1?!1:na(S,v.substring(0,x))&&Oc(S,v.substring(x+1))}}function e_e(e,t,r,i,o,s,l){return f;function f(d,g,m,v){if(typeof d=="string"){if(!m&&g.length>0&&!Oc(d,"/"))return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0);if(!na(d,"./")){if(l&&!na(d,"../")&&!na(d,"/")&&!qp(d)){let Y=m?d.replace(/\*/g,g):d+g;Y0(t,_.Using_0_subpath_1_with_target_2,"imports",v,Y),Y0(t,_.Resolving_module_0_from_1,Y,s.packageDirectory+"/");let R=GL(t.features,Y,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i);return Af(R.resolvedModule?{path:R.resolvedModule.resolvedFileName,extension:R.resolvedModule.extension,packageId:R.resolvedModule.packageId,originalPath:R.resolvedModule.originalPath,resolvedUsingTsExtension:R.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0)}let P=(Jd(d)?Ou(d).slice(1):Ou(d)).slice(1);if(P.indexOf("..")>=0||P.indexOf(".")>=0||P.indexOf("node_modules")>=0)return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0);let F=vi(s.packageDirectory,d),B=Ou(g);if(B.indexOf("..")>=0||B.indexOf(".")>=0||B.indexOf("node_modules")>=0)return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0);t.traceEnabled&&Xi(t.host,_.Using_0_subpath_1_with_target_2,l?"imports":"exports",v,m?d.replace(/\*/g,g):d+g);let q=S(m?F.replace(/\*/g,g):F+g),W=w(q,g,vi(s.packageDirectory,"package.json"),l);return W||Af(O2(s,$J(e,q,!1,t)))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!Fn(d))return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0);for(let C of d){let P=f(C,g,m,v);if(P)return P}}else{Y0(t,_.Entering_conditional_exports);for(let C of bh(d))if(C==="default"||t.conditions.indexOf(C)>=0||QO(t.conditions,C)){Y0(t,_.Matched_0_condition_1,l?"imports":"exports",C);let P=d[C],F=f(P,g,m,v);if(F)return Y0(t,_.Resolved_under_condition_0,C),Y0(t,_.Exiting_conditional_exports),F;Y0(t,_.Failed_to_resolve_under_condition_0,C)}else Y0(t,_.Saw_non_matching_condition_0,C);Y0(t,_.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),Af(void 0);return t.traceEnabled&&Xi(t.host,_.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),Af(void 0);function S(C){var P,F;return C===void 0?C:_a(C,(F=(P=t.host).getCurrentDirectory)==null?void 0:F.call(P))}function x(C,P){return cu(vi(C,P))}function A(){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}function w(C,P,F,B){var q,W,Y,R;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&C.indexOf("/node_modules/")===-1&&(!t.compilerOptions.configFile||Gy(s.packageDirectory,S(t.compilerOptions.configFile.fileName),!A()))){let $=lb({useCaseSensitiveFileNames:A}),fe=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let Z=S(uN(t.compilerOptions,()=>[],((W=(q=t.host).getCurrentDirectory)==null?void 0:W.call(q))||"",$));fe.push(Z)}else if(t.requestContainingDirectory){let Z=S(vi(t.requestContainingDirectory,"index.ts")),U=S(uN(t.compilerOptions,()=>[Z,S(F)],((R=(Y=t.host).getCurrentDirectory)==null?void 0:R.call(Y))||"",$));fe.push(U);let re=cu(U);for(;re&&re.length>1;){let le=Ou(re);le.pop();let _e=T0(le);fe.unshift(_e),re=cu(_e)}}fe.length>1&&t.reportDiagnostic(ps(B?_.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:_.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,P===""?".":P,F));for(let Z of fe){let U=ie(Z);for(let re of U)if(Gy(re,C,!A())){let le=C.slice(re.length+1),_e=vi(Z,le),ge=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let X of ge)if(Gc(_e,X)){let Ve=Oce(_e);for(let we of Ve){if(!QJ(e,we))continue;let ke=uj(_e,we,X,!A());if(t.host.fileExists(ke))return Af(O2(s,$J(e,ke,!1,t)))}}}}}return;function ie($){var fe,Z;let U=t.compilerOptions.configFile?((Z=(fe=t.host).getCurrentDirectory)==null?void 0:Z.call(fe))||"":$,re=[];return t.compilerOptions.declarationDir&&re.push(S(x(U,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&re.push(S(x(U,t.compilerOptions.outDir))),re}}}}function QO(e,t){if(e.indexOf("types")===-1||!na(t,"types@"))return!1;let r=mA.tryParse(t.substring(6));return r?r.test(Rf):!1}function t_e(e,t,r,i,o,s){return n_e(e,t,r,i,!1,o,s)}function $Ne(e,t,r){return n_e(4,e,t,r,!0,void 0,void 0)}function n_e(e,t,r,i,o,s,l){let f=i.features===0?void 0:i.features&32?99:1,d=e&5,g=e&-6;if(d){let v=m(d);if(v)return v}if(g&&!o)return m(g);function m(v){return Th(Al(r),S=>{if(Hl(S)!=="node_modules"){let x=a_e(s,t,f,S,l,i);return x||Af(r_e(v,t,S,i,o,s,l))}})}}function r_e(e,t,r,i,o,s,l){let f=vi(r,"node_modules"),d=gp(f,i.host);if(!d&&i.traceEnabled&&Xi(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,f),!o){let g=i_e(e,t,f,d,i,s,l);if(g)return g}if(e&4){let g=vi(f,"@types"),m=d;return d&&!gp(g,i.host)&&(i.traceEnabled&&Xi(i.host,_.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),m=!1),i_e(4,QNe(t,i),g,m,i,s,l)}}function i_e(e,t,r,i,o,s,l){var f,d,g;let m=So(vi(r,t)),{packageName:v,rest:S}=ZJ(t),x=vi(r,v),A,w=KS(m,!i,o);if(S!==""&&w&&(!(o.features&8)||!fs((d=(f=A=KS(x,!i,o))==null?void 0:f.contents.packageJsonContent)!=null?d:Je,"exports"))){let F=BL(e,m,!i,o);if(F)return J3(F);let B=tF(e,m,!i,o,w.contents.packageJsonContent,$O(w,o));return O2(w,B)}let C=(F,B,q,W)=>{let Y=BL(F,B,q,W)||tF(F,B,q,W,w&&w.contents.packageJsonContent,w&&$O(w,W));return!Y&&w&&(w.contents.packageJsonContent.exports===void 0||w.contents.packageJsonContent.exports===null)&&W.features&32&&(Y=BL(F,vi(B,"index.js"),q,W)),O2(w,Y)};if(S!==""&&(w=A??KS(x,!i,o)),w&&w.contents.packageJsonContent.exports&&o.features&8)return(g=eK(w,e,vi(".",S),o,s,l))==null?void 0:g.value;let P=S!==""&&w?$O(w,o):void 0;if(P){o.traceEnabled&&Xi(o.host,_.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,Rf,S);let F=i&&gp(x,o.host),B=nK(e,S,x,P.paths,void 0,C,!F,o);if(B)return B.value}return C(e,m,!i,o)}function nK(e,t,r,i,o,s,l,f){o||(o=g4(i));let d=NW(o,t);if(d){let g=Ta(d)?void 0:Dae(d,t),m=Ta(d)?d:kae(d);return f.traceEnabled&&Xi(f.host,_.Module_name_0_matched_pattern_1,t,m),{value:mn(i[m],S=>{let x=g?S.replace("*",g):S,A=So(vi(r,x));f.traceEnabled&&Xi(f.host,_.Trying_substitution_0_candidate_module_location_Colon_1,S,x);let w=Hm(S);if(w!==void 0){let C=YO(A,l,f);if(C!==void 0)return J3({path:C,ext:w,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gp(ni(A),f.host),f)})}}}function QNe(e,t){let r=UL(e);return t.traceEnabled&&r!==e&&Xi(t.host,_.Scoped_package_detected_looking_in_0,r),r}function rF(e){return`@types/${UL(e)}`}function UL(e){if(na(e,"@")){let t=e.replace(_s,aF);if(t!==e)return t.slice(1)}return e}function ZO(e){let t=QC(e,"@types/");return t!==e?iF(t):e}function iF(e){return jl(e,aF)?"@"+e.replace(aF,_s):e}function a_e(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&Xi(s.host,_.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function o_e(e,t,r,i,o,s){let l=ov(r,i),f=[],d=[],g=ni(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},S=x(5)||x(2|(r.resolveJsonModule?8:0));return Pfe(e,S&&S.value,S?.value&&JS(S.value.path),f,d,m,v);function x(A){let w=Vfe(A,e,g,YJ,v);if(w)return{value:w};if(fl(e)){let C=So(vi(g,e));return Af(YJ(A,C,!1,v))}else{let C=Th(g,P=>{let F=a_e(o,e,void 0,P,s,v);if(F)return F;let B=So(vi(P,e));return Af(YJ(A,B,!1,v))});if(C)return C;if(A&5)return $Ne(e,g,v)}}}function VL(e,t){return!!e.allowImportingTsExtensions||t&&Fu(t)}function s_e(e,t,r,i,o,s){let l=ov(r,i);l&&Xi(i,_.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let f=[],d=[],g=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:f,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>void g.push(S),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},v=r_e(4,e,o,m,!1,void 0,void 0);return Mfe(v,!0,f,d,g,m.resultFromCache)}function Af(e){return e!==void 0?{value:e}:void 0}function Y0(e,t,...r){e.traceEnabled&&Xi(e.host,t,...r)}var rK,iK,aK,Wg,aF,ZNe=gt({"src/compiler/moduleNameResolver.ts"(){"use strict";fa(),iK=vi("node_modules","@types"),aK=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(aK||{}),Wg="/node_modules/",aF="__"}});function Gh(e,t){return e.body&&!e.body.parent&&(go(e.body,e),Zy(e.body,!1)),e.body?oK(e.body,t):1}function oK(e,t=new Map){let r=zo(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=ePe(e,t);return t.set(r,i),i}function ePe(e,t){switch(e.kind){case 261:case 262:return 0;case 263:if(R0(e))return 2;break;case 269:case 268:if(!Mr(e,1))return 0;break;case 275:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===276){let i=0;for(let o of r.exportClause.elements){let s=tPe(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 265:{let i=0;return pa(e,o=>{let s=oK(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:L.assertNever(s)}}),i}case 264:return Gh(e,t);case 79:if(e.flags&2048)return 0}return 1}function tPe(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Va(i)||Tp(i)||Li(i)){let o=i.statements,s;for(let l of o)if(xw(l,r)){l.parent||(go(l,i),Zy(l,!1));let f=oK(l,t);if((s===void 0||f>s)&&(s=f),s===1)return s}if(s!==void 0)return s}i=i.parent}return 1}function zT(e){return L.attachFlowNodeDebugInfo(e),e}function c_e(e,t){Fs("beforeBind"),fp.logStartBindFile(""+e.fileName),d_e(e,t),fp.logStopBindFile(),Fs("afterBind"),hf("Bind","beforeBind","afterBind")}function nPe(){var e,t,r,i,o,s,l,f,d,g,m,v,S,x,A,w,C,P,F,B,q,W,Y=!1,R=0,ie,$,fe={flags:1},Z={flags:1},U=Ot();return le;function re(M,He,Nt,Pn,la){return Nu(Gn(M)||e,M,He,Nt,Pn,la)}function le(M,He){var Nt,Pn;e=M,t=He,r=Do(t),W=_e(e,He),$=new Set,R=0,ie=ml.getSymbolConstructor(),L.attachFlowNodeDebugInfo(fe),L.attachFlowNodeDebugInfo(Z),e.locals||((Nt=ai)==null||Nt.push(ai.Phase.Bind,"bindSourceFile",{path:e.path},!0),ft(e),(Pn=ai)==null||Pn.pop(),e.symbolCount=R,e.classifiableNames=$,hc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,f=void 0,d=void 0,g=!1,m=void 0,v=void 0,S=void 0,x=void 0,A=void 0,w=void 0,C=void 0,F=void 0,B=!1,Y=!1,q=0}function _e(M,He){return Uf(He,"alwaysStrict")&&!M.isDeclarationFile?!0:!!M.externalModuleIndicator}function ge(M,He){return R++,new ie(M,He)}function X(M,He,Nt){M.flags|=Nt,He.symbol=M,M.declarations=xg(M.declarations,He),Nt&1955&&!M.exports&&(M.exports=Ua()),Nt&6240&&!M.members&&(M.members=Ua()),M.constEnumOnlyModule&&M.flags&304&&(M.constEnumOnlyModule=!1),Nt&111551&&rR(M,He)}function Ve(M){if(M.kind===274)return M.isExportEquals?"export=":"default";let He=sa(M);if(He){if(lu(M)){let Nt=l_(He);return mp(M)?"__global":`"${Nt}"`}if(He.kind===164){let Nt=He.expression;if(yf(Nt))return Bs(Nt.text);if(X6(Nt))return Xa(Nt.operator)+Nt.operand.text;L.fail("Only computed properties with literal names have declaration names")}if(pi(He)){let Nt=Zc(M);if(!Nt)return;let Pn=Nt.symbol;return hR(Pn,He.escapedText)}return c_(He)?MI(He):void 0}switch(M.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(ic(M)===2)return"export=";L.fail("Unknown binary declaration kind");break;case 320:return jA(M)?"__new":"__call";case 166:return L.assert(M.parent.kind===320,"Impossible parameter parent kind",()=>`parent is: ${L.formatSyntaxKind(M.parent.kind)}, expected JSDocFunctionType`),"arg"+M.parent.parameters.indexOf(M)}}function we(M){return zl(M)?os(M.name):Gi(L.checkDefined(Ve(M)))}function ke(M,He,Nt,Pn,la,oa,be){L.assert(be||!Xy(Nt));let De=Mr(Nt,1024)||Mu(Nt)&&Nt.name.escapedText==="default",mt=be?"__computed":De&&He?"default":Ve(Nt),St;if(mt===void 0)St=ge(0,"__missing");else if(St=M.get(mt),Pn&2885600&&$.add(mt),!St)M.set(mt,St=ge(0,mt)),oa&&(St.isReplaceableByMethod=!0);else{if(oa&&!St.isReplaceableByMethod)return St;if(St.flags&la){if(St.isReplaceableByMethod)M.set(mt,St=ge(0,mt));else if(!(Pn&3&&St.flags&67108864)){zl(Nt)&&go(Nt.name,Nt);let Zt=St.flags&2?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,rn=!0;(St.flags&384||Pn&384)&&(Zt=_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,rn=!1);let sn=!1;Fn(St.declarations)&&(De||St.declarations&&St.declarations.length&&Nt.kind===274&&!Nt.isExportEquals)&&(Zt=_.A_module_cannot_have_multiple_default_exports,rn=!1,sn=!0);let Dn=[];Ep(Nt)&&rc(Nt.type)&&Mr(Nt,1)&&St.flags&2887656&&Dn.push(re(Nt,_.Did_you_mean_0,`export type { ${Gi(Nt.name.escapedText)} }`));let kr=sa(Nt)||Nt;mn(St.declarations,(Vn,$t)=>{let Xn=sa(Vn)||Vn,ra=re(Xn,Zt,rn?we(Vn):void 0);e.bindDiagnostics.push(sn?Ao(ra,re(kr,$t===0?_.Another_export_default_is_here:_.and_here)):ra),sn&&Dn.push(re(Xn,_.The_first_export_default_is_here))});let ki=re(kr,Zt,rn?we(Nt):void 0);e.bindDiagnostics.push(Ao(ki,...Dn)),St=ge(0,mt)}}}return X(St,Nt,Pn),St.parent?L.assert(St.parent===He,"Existing symbol parent should match new one"):St.parent=He,St}function Pe(M,He,Nt){let Pn=!!(wg(M)&1)||Ce(M);if(He&2097152)return M.kind===278||M.kind===268&&Pn?ke(o.symbol.exports,o.symbol,M,He,Nt):(L.assertNode(o,Qp),ke(o.locals,void 0,M,He,Nt));if(Ff(M)&&L.assert(Yn(M)),!lu(M)&&(Pn||o.flags&64)){if(!Qp(o)||!o.locals||Mr(M,1024)&&!Ve(M))return ke(o.symbol.exports,o.symbol,M,He,Nt);let la=He&111551?1048576:0,oa=ke(o.locals,void 0,M,la,Nt);return oa.exportSymbol=ke(o.symbol.exports,o.symbol,M,He,Nt),M.localSymbol=oa,oa}else return L.assertNode(o,Qp),ke(o.locals,void 0,M,He,Nt)}function Ce(M){if(M.parent&&Tc(M)&&(M=M.parent),!Ff(M))return!1;if(!vO(M)&&M.fullName)return!0;let He=sa(M);return He?!!(LR(He.parent)&&Vr(He.parent)||Kl(He.parent)&&wg(He.parent)&1):!1}function Ie(M,He){let Nt=o,Pn=s,la=l;if(He&1?(M.kind!==216&&(s=o),o=l=M,He&32&&(o.locals=Ua(),Za(o))):He&2&&(l=M,He&32&&(l.locals=void 0)),He&4){let oa=m,be=v,De=S,mt=x,St=C,Zt=F,rn=B,sn=He&16&&!Mr(M,512)&&!M.asteriskToken&&!!ET(M)||M.kind===172;sn||(m=zT({flags:2}),He&144&&(m.node=M)),x=sn||M.kind===173||Yn(M)&&(M.kind===259||M.kind===215)?tn():void 0,C=void 0,v=void 0,S=void 0,F=void 0,B=!1,Ye(M),M.flags&=-2817,!(m.flags&1)&&He&8&&Pf(M.body)&&(M.flags|=256,B&&(M.flags|=512),M.endFlowNode=m),M.kind===308&&(M.flags|=q,M.endFlowNode=m),x&&($n(x,m),m=pt(x),(M.kind===173||M.kind===172||Yn(M)&&(M.kind===259||M.kind===215))&&(M.returnFlowNode=m)),sn||(m=oa),v=be,S=De,x=mt,C=St,F=Zt,B=rn}else He&64?(g=!1,Ye(M),L.assertNotNode(M,Re),M.flags=g?M.flags|128:M.flags&-129):Ye(M);o=Nt,s=Pn,l=la}function Be(M){Ne(M,He=>He.kind===259?ft(He):void 0),Ne(M,He=>He.kind!==259?ft(He):void 0)}function Ne(M,He=ft){M!==void 0&&mn(M,He)}function Le(M){pa(M,ft,Ne)}function Ye(M){let He=Y;if(Y=!1,Y_(M)){Le(M),Yt(M),Y=He;return}switch(M.kind>=240&&M.kind<=256&&!t.allowUnreachableCode&&(M.flowNode=m),M.kind){case 244:Ht(M);break;case 243:En(M);break;case 245:dr(M);break;case 246:case 247:Cr(M);break;case 242:Se(M);break;case 250:case 254:at(M);break;case 249:case 248:nt(M);break;case 255:ce(M);break;case 252:Q(M);break;case 266:ue(M);break;case 292:G(M);break;case 241:Oe(M);break;case 253:Ge(M);break;case 221:ir(M);break;case 222:ae(M);break;case 223:if(Fg(M)){Y=He,rt(M);return}U(M);break;case 217:Ke(M);break;case 224:oe(M);break;case 257:z(M);break;case 208:case 209:Si(M);break;case 210:Ja(M);break;case 232:Kr(M);break;case 349:case 341:case 343:lt(M);break;case 308:{Be(M.statements),ft(M.endOfFileToken);break}case 238:case 265:Be(M.statements);break;case 205:Te(M);break;case 166:j(M);break;case 207:case 206:case 299:case 227:Y=He;default:Le(M);break}Yt(M),Y=He}function _t(M){switch(M.kind){case 79:case 80:case 108:case 208:case 209:return Rt(M);case 210:return We(M);case 214:case 232:return _t(M.expression);case 223:return zt(M);case 221:return M.operator===53&&_t(M.operand);case 218:return _t(M.expression)}return!1}function ct(M){return WI(M)||(br(M)||PS(M)||ud(M))&&ct(M.expression)||ar(M)&&M.operatorToken.kind===27&&ct(M.right)||Vs(M)&&(yf(M.argumentExpression)||bc(M.argumentExpression))&&ct(M.expression)||Iu(M)&&ct(M.left)}function Rt(M){return ct(M)||Jl(M)&&Rt(M.expression)}function We(M){if(M.arguments){for(let He of M.arguments)if(Rt(He))return!0}return!!(M.expression.kind===208&&Rt(M.expression.expression))}function qe(M,He){return y2(M)&&Qt(M.expression)&&es(He)}function zt(M){switch(M.operatorToken.kind){case 63:case 75:case 76:case 77:return Rt(M.left);case 34:case 35:case 36:case 37:return Qt(M.left)||Qt(M.right)||qe(M.right,M.left)||qe(M.left,M.right);case 102:return Qt(M.left);case 101:return _t(M.right);case 27:return _t(M.right)}return!1}function Qt(M){switch(M.kind){case 214:return Qt(M.expression);case 223:switch(M.operatorToken.kind){case 63:return Qt(M.left);case 27:return Qt(M.right)}}return Rt(M)}function tn(){return zT({flags:4,antecedents:void 0})}function kn(){return zT({flags:8,antecedents:void 0})}function _n(M,He,Nt){return zT({flags:1024,target:M,antecedents:He,antecedent:Nt})}function Gt(M){M.flags|=M.flags&2048?4096:2048}function $n(M,He){!(He.flags&1)&&!ya(M.antecedents,He)&&((M.antecedents||(M.antecedents=[])).push(He),Gt(He))}function ui(M,He,Nt){return He.flags&1?He:Nt?(Nt.kind===110&&M&64||Nt.kind===95&&M&32)&&!r6(Nt)&&!wj(Nt.parent)?fe:_t(Nt)?(Gt(He),zT({flags:M,antecedent:He,node:Nt})):He:M&32?He:fe}function Ni(M,He,Nt,Pn){return Gt(M),zT({flags:128,antecedent:M,switchStatement:He,clauseStart:Nt,clauseEnd:Pn})}function Pi(M,He,Nt){Gt(He);let Pn=zT({flags:M,antecedent:He,node:Nt});return C&&$n(C,Pn),Pn}function gr(M,He){return Gt(M),zT({flags:512,antecedent:M,node:He})}function pt(M){let He=M.antecedents;return He?He.length===1?He[0]:M:fe}function nn(M){let He=M.parent;switch(He.kind){case 242:case 244:case 243:return He.expression===M;case 245:case 224:return He.condition===M}return!1}function Dt(M){for(;;)if(M.kind===214)M=M.expression;else if(M.kind===221&&M.operator===53)M=M.operand;else return CR(M)}function pn(M){return cW(vs(M))}function An(M){for(;ud(M.parent)||tv(M.parent)&&M.parent.operator===53;)M=M.parent;return!nn(M)&&!Dt(M.parent)&&!(Jl(M.parent)&&M.parent.expression===M)}function Kn(M,He,Nt,Pn){let la=A,oa=w;A=Nt,w=Pn,M(He),A=la,w=oa}function hi(M,He,Nt){Kn(ft,M,He,Nt),(!M||!pn(M)&&!Dt(M)&&!(Jl(M)&&mI(M)))&&($n(He,ui(32,m,M)),$n(Nt,ui(64,m,M)))}function ri(M,He,Nt){let Pn=v,la=S;v=He,S=Nt,ft(M),v=Pn,S=la}function vn(M,He){let Nt=F;for(;Nt&&M.parent.kind===253;)Nt.continueTarget=He,Nt=Nt.next,M=M.parent;return He}function Ht(M){let He=vn(M,kn()),Nt=tn(),Pn=tn();$n(He,m),m=He,hi(M.expression,Nt,Pn),m=pt(Nt),ri(M.statement,Pn,He),$n(He,m),m=pt(Pn)}function En(M){let He=kn(),Nt=vn(M,tn()),Pn=tn();$n(He,m),m=He,ri(M.statement,Pn,Nt),$n(Nt,m),m=pt(Nt),hi(M.expression,He,Pn),m=pt(Pn)}function dr(M){let He=vn(M,kn()),Nt=tn(),Pn=tn();ft(M.initializer),$n(He,m),m=He,hi(M.condition,Nt,Pn),m=pt(Nt),ri(M.statement,Pn,He),ft(M.incrementor),$n(He,m),m=pt(Pn)}function Cr(M){let He=vn(M,kn()),Nt=tn();ft(M.expression),$n(He,m),m=He,M.kind===247&&ft(M.awaitModifier),$n(Nt,m),ft(M.initializer),M.initializer.kind!==258&&Kt(M.initializer),ri(M.statement,Nt,He),$n(He,m),m=pt(Nt)}function Se(M){let He=tn(),Nt=tn(),Pn=tn();hi(M.expression,He,Nt),m=pt(He),ft(M.thenStatement),$n(Pn,m),m=pt(Nt),ft(M.elseStatement),$n(Pn,m),m=pt(Pn)}function at(M){ft(M.expression),M.kind===250&&(B=!0,x&&$n(x,m)),m=fe}function Tt(M){for(let He=F;He;He=He.next)if(He.name===M)return He}function ve(M,He,Nt){let Pn=M.kind===249?He:Nt;Pn&&($n(Pn,m),m=fe)}function nt(M){if(ft(M.label),M.label){let He=Tt(M.label.escapedText);He&&(He.referenced=!0,ve(M,He.breakTarget,He.continueTarget))}else ve(M,v,S)}function ce(M){let He=x,Nt=C,Pn=tn(),la=tn(),oa=tn();if(M.finallyBlock&&(x=la),$n(oa,m),C=oa,ft(M.tryBlock),$n(Pn,m),M.catchClause&&(m=pt(oa),oa=tn(),$n(oa,m),C=oa,ft(M.catchClause),$n(Pn,m)),x=He,C=Nt,M.finallyBlock){let be=tn();be.antecedents=Qi(Qi(Pn.antecedents,oa.antecedents),la.antecedents),m=be,ft(M.finallyBlock),m.flags&1?m=fe:(x&&la.antecedents&&$n(x,_n(be,la.antecedents,m)),C&&oa.antecedents&&$n(C,_n(be,oa.antecedents,m)),m=Pn.antecedents?_n(be,Pn.antecedents,m):fe)}else m=pt(Pn)}function Q(M){let He=tn();ft(M.expression);let Nt=v,Pn=P;v=He,P=m,ft(M.caseBlock),$n(He,m);let la=mn(M.caseBlock.clauses,oa=>oa.kind===293);M.possiblyExhaustive=!la&&!He.antecedents,la||$n(He,Ni(P,M,0,0)),v=Nt,P=Pn,m=pt(He)}function ue(M){let He=M.clauses,Nt=_t(M.parent.expression),Pn=fe;for(let la=0;la<He.length;la++){let oa=la;for(;!He[la].statements.length&&la+1<He.length;)ft(He[la]),la++;let be=tn();$n(be,Nt?Ni(P,M.parent,oa,la+1):P),$n(be,Pn),m=pt(be);let De=He[la];ft(De),Pn=m,!(m.flags&1)&&la!==He.length-1&&t.noFallthroughCasesInSwitch&&(De.fallthroughFlowNode=m)}}function G(M){let He=m;m=P,ft(M.expression),m=He,Ne(M.statements)}function Oe(M){ft(M.expression),je(M.expression)}function je(M){if(M.kind===210){let He=M;He.expression.kind!==106&&WI(He.expression)&&(m=gr(m,He))}}function Ge(M){let He=tn();F={next:F,name:M.label.escapedText,breakTarget:He,continueTarget:void 0,referenced:!1},ft(M.label),ft(M.statement),!F.referenced&&!t.allowUnusedLabels&&wt(Sle(t),M.label,_.Unused_label),F=F.next,$n(He,m),m=pt(He)}function kt(M){M.kind===223&&M.operatorToken.kind===63?Kt(M.left):Kt(M)}function Kt(M){if(ct(M))m=Pi(16,m,M);else if(M.kind===206)for(let He of M.elements)He.kind===227?Kt(He.expression):kt(He);else if(M.kind===207)for(let He of M.properties)He.kind===299?kt(He.initializer):He.kind===300?Kt(He.name):He.kind===301&&Kt(He.expression)}function ln(M,He,Nt){let Pn=tn();M.operatorToken.kind===55||M.operatorToken.kind===76?hi(M.left,Pn,Nt):hi(M.left,He,Pn),m=pt(Pn),ft(M.operatorToken),HI(M.operatorToken.kind)?(Kn(ft,M.right,He,Nt),Kt(M.left),$n(He,ui(32,m,M)),$n(Nt,ui(64,m,M))):hi(M.right,He,Nt)}function ir(M){if(M.operator===53){let He=A;A=w,w=He,Le(M),w=A,A=He}else Le(M),(M.operator===45||M.operator===46)&&Kt(M.operand)}function ae(M){Le(M),(M.operator===45||M.operator===46)&&Kt(M.operand)}function rt(M){Y?(Y=!1,ft(M.operatorToken),ft(M.right),Y=!0,ft(M.left)):(Y=!0,ft(M.left),Y=!1,ft(M.operatorToken),ft(M.right)),Kt(M.left)}function Ot(){return C3(M,He,Nt,Pn,la,void 0);function M(be,De){if(De){De.stackIndex++,go(be,i);let St=W;ta(be);let Zt=i;i=be,De.skip=!1,De.inStrictModeStack[De.stackIndex]=St,De.parentStack[De.stackIndex]=Zt}else De={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let mt=be.operatorToken.kind;if(AR(mt)||HI(mt)){if(An(be)){let St=tn();ln(be,St,St),m=pt(St)}else ln(be,A,w);De.skip=!0}return De}function He(be,De,mt){if(!De.skip){let St=oa(be);return mt.operatorToken.kind===27&&je(be),St}}function Nt(be,De,mt){De.skip||ft(be)}function Pn(be,De,mt){if(!De.skip){let St=oa(be);return mt.operatorToken.kind===27&&je(be),St}}function la(be,De){if(!De.skip){let Zt=be.operatorToken.kind;if(Mg(Zt)&&!Um(be)&&(Kt(be.left),Zt===63&&be.left.kind===209)){let rn=be.left;Qt(rn.expression)&&(m=Pi(256,m,be))}}let mt=De.inStrictModeStack[De.stackIndex],St=De.parentStack[De.stackIndex];mt!==void 0&&(W=mt),St!==void 0&&(i=St),De.skip=!1,De.stackIndex--}function oa(be){if(be&&ar(be)&&!Fg(be))return be;ft(be)}}function Ke(M){Le(M),M.expression.kind===208&&Kt(M.expression)}function oe(M){let He=tn(),Nt=tn(),Pn=tn();hi(M.condition,He,Nt),m=pt(He),ft(M.questionToken),ft(M.whenTrue),$n(Pn,m),m=pt(Nt),ft(M.colonToken),ft(M.whenFalse),$n(Pn,m),m=pt(Pn)}function pe(M){let He=ol(M)?void 0:M.name;if(La(He))for(let Nt of He.elements)pe(Nt);else m=Pi(16,m,M)}function z(M){Le(M),(M.initializer||CA(M.parent.parent))&&pe(M)}function Te(M){ft(M.dotDotDotToken),ft(M.propertyName),yt(M.initializer),ft(M.name)}function j(M){Ne(M.modifiers),ft(M.dotDotDotToken),ft(M.questionToken),ft(M.type),yt(M.initializer),ft(M.name)}function yt(M){if(!M)return;let He=m;if(ft(M),He===fe||He===m)return;let Nt=tn();$n(Nt,He),$n(Nt,m),m=pt(Nt)}function lt(M){ft(M.tagName),M.kind!==343&&M.fullName&&(go(M.fullName,M),Zy(M.fullName,!1)),typeof M.comment!="string"&&Ne(M.comment)}function Qe(M){Le(M);let He=sb(M);He&&He.kind!==171&&X(He.symbol,He,32)}function Vt(M,He,Nt){Kn(ft,M,He,Nt),(!Jl(M)||mI(M))&&($n(He,ui(32,m,M)),$n(Nt,ui(64,m,M)))}function Hn(M){switch(M.kind){case 208:ft(M.questionDotToken),ft(M.name);break;case 209:ft(M.questionDotToken),ft(M.argumentExpression);break;case 210:ft(M.questionDotToken),Ne(M.typeArguments),Ne(M.arguments);break}}function jr(M,He,Nt){let Pn=pI(M)?tn():void 0;Vt(M.expression,Pn||He,Nt),Pn&&(m=pt(Pn)),Kn(Hn,M,He,Nt),mI(M)&&($n(He,ui(32,m,M)),$n(Nt,ui(64,m,M)))}function ei(M){if(An(M)){let He=tn();jr(M,He,He),m=pt(He)}else jr(M,A,w)}function Kr(M){Jl(M)?ei(M):Le(M)}function Si(M){Jl(M)?ei(M):Le(M)}function Ja(M){if(Jl(M))ei(M);else{let He=vs(M.expression);He.kind===215||He.kind===216?(Ne(M.typeArguments),Ne(M.arguments),ft(M.expression)):(Le(M),M.expression.kind===106&&(m=gr(m,M)))}if(M.expression.kind===208){let He=M.expression;Re(He.name)&&Qt(He.expression)&&jH(He.name)&&(m=Pi(256,m,M))}}function Za(M){f&&(f.nextContainer=M),f=M}function Fa(M,He,Nt){switch(o.kind){case 264:return Pe(M,He,Nt);case 308:return xi(M,He,Nt);case 228:case 260:return Hi(M,He,Nt);case 263:return ke(o.symbol.exports,o.symbol,M,He,Nt);case 184:case 325:case 207:case 261:case 289:return ke(o.symbol.members,o.symbol,M,He,Nt);case 181:case 182:case 176:case 177:case 326:case 178:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 320:case 172:case 262:case 197:return o.locals&&L.assertNode(o,Qp),ke(o.locals,void 0,M,He,Nt)}}function Hi(M,He,Nt){return Ca(M)?ke(o.symbol.exports,o.symbol,M,He,Nt):ke(o.symbol.members,o.symbol,M,He,Nt)}function xi(M,He,Nt){return Lc(e)?Pe(M,He,Nt):ke(e.locals,void 0,M,He,Nt)}function Nr(M){let He=Li(M)?M:zr(M.body,Tp);return!!He&&He.statements.some(Nt=>Il(Nt)||pc(Nt))}function Fo(M){M.flags&16777216&&!Nr(M)?M.flags|=64:M.flags&=-65}function Qr(M){if(Fo(M),lu(M))if(Mr(M,1)&&ht(M,_.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),uH(M))Wi(M);else{let He;if(M.name.kind===10){let{text:Pn}=M.name;He=n2(Pn),He===void 0&&ht(M.name,_.Pattern_0_can_have_at_most_one_Asterisk_character,Pn)}let Nt=Fa(M,512,110735);e.patternAmbientModules=Sn(e.patternAmbientModules,He&&!Ta(He)?{pattern:He,symbol:Nt}:void 0)}else{let He=Wi(M);if(He!==0){let{symbol:Nt}=M;Nt.constEnumOnlyModule=!(Nt.flags&304)&&He===2&&Nt.constEnumOnlyModule!==!1}}}function Wi(M){let He=Gh(M),Nt=He!==0;return Fa(M,Nt?512:1024,Nt?110735:0),He}function gn(M){let He=ge(131072,Ve(M));X(He,M,131072);let Nt=ge(2048,"__type");X(Nt,M,2048),Nt.members=Ua(),Nt.members.set(He.escapedName,He)}function Ki(M){return mc(M,4096,"__object")}function kc(M){return mc(M,4096,"__jsxAttributes")}function Ps(M,He,Nt){return Fa(M,He,Nt)}function mc(M,He,Nt){let Pn=ge(He,Nt);return He&106508&&(Pn.parent=o.symbol),X(Pn,M,He),Pn}function xc(M,He,Nt){switch(l.kind){case 264:Pe(M,He,Nt);break;case 308:if(kd(o)){Pe(M,He,Nt);break}default:L.assertNode(l,Qp),l.locals||(l.locals=Ua(),Za(l)),ke(l.locals,void 0,M,He,Nt)}}function hc(){if(!d)return;let M=o,He=f,Nt=l,Pn=i,la=m;for(let oa of d){let be=oa.parent.parent;o=jn(be.parent,mt=>!!(u_e(mt)&1))||e,l=tm(be)||e,m=zT({flags:2}),i=oa,ft(oa.typeExpression);let De=sa(oa);if((vO(oa)||!oa.fullName)&&De&&LR(De.parent)){let mt=Vr(De.parent);if(mt){Ln(e.symbol,De.parent,mt,!!jn(De,Zt=>br(Zt)&&Zt.name.escapedText==="prototype"),!1);let St=o;switch(tR(De.parent)){case 1:case 2:kd(e)?o=e:o=void 0;break;case 4:o=De.parent.expression;break;case 3:o=De.parent.expression.name;break;case 5:o=$0(e,De.parent.expression)?e:br(De.parent.expression)?De.parent.expression.name:De.parent.expression;break;case 0:return L.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&Pe(oa,524288,788968),o=St}}else vO(oa)||!oa.fullName||oa.fullName.kind===79?(i=oa.parent,xc(oa,524288,788968)):ft(oa.fullName)}o=M,f=He,l=Nt,i=Pn,m=la}function ro(M){if(!e.parseDiagnostics.length&&!(M.flags&16777216)&&!(M.flags&8388608)&&!Sce(M)){let He=nb(M);if(He===void 0)return;W&&He>=117&&He<=125?e.bindDiagnostics.push(re(M,aa(M),os(M))):He===133?Lc(e)&&O6(M)?e.bindDiagnostics.push(re(M,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,os(M))):M.flags&32768&&e.bindDiagnostics.push(re(M,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,os(M))):He===125&&M.flags&8192&&e.bindDiagnostics.push(re(M,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,os(M)))}}function aa(M){return Zc(M)?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:_.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Co(M){M.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(re(M,_.constructor_is_a_reserved_word,os(M))))}function gc(M){W&&Ju(M.left)&&Mg(M.operatorToken.kind)&&bl(M,M.left)}function Ll(M){W&&M.variableDeclaration&&bl(M,M.variableDeclaration.name)}function md(M){if(W&&M.expression.kind===79){let He=w0(e,M.expression);e.bindDiagnostics.push(al(e,He.start,He.length,_.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Pc(M){return Re(M)&&(M.escapedText==="eval"||M.escapedText==="arguments")}function bl(M,He){if(He&&He.kind===79){let Nt=He;if(Pc(Nt)){let Pn=w0(e,He);e.bindDiagnostics.push(al(e,Pn.start,Pn.length,ss(M),vr(Nt)))}}}function ss(M){return Zc(M)?_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:_.Invalid_use_of_0_in_strict_mode}function qs(M){W&&bl(M,M.name)}function Rs(M){return Zc(M)?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:_.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function As(M){if(r<2&&l.kind!==308&&l.kind!==264&&!SA(l)){let He=w0(e,M);e.bindDiagnostics.push(al(e,He.start,He.length,Rs(M)))}}function jt(M){r<1&&W&&M.numericLiteralFlags&32&&e.bindDiagnostics.push(re(M,_.Octal_literals_are_not_allowed_in_strict_mode))}function yc(M){W&&bl(M,M.operand)}function Ql(M){W&&(M.operator===45||M.operator===46)&&bl(M,M.operand)}function yu(M){W&&ht(M,_.with_statements_are_not_allowed_in_strict_mode)}function se(M){W&&Do(t)>=2&&(bse(M.statement)||Bc(M.statement))&&ht(M.label,_.A_label_is_not_allowed_here)}function ht(M,He,Nt,Pn,la){let oa=Pg(e,M.pos);e.bindDiagnostics.push(al(e,oa.start,oa.length,He,Nt,Pn,la))}function wt(M,He,Nt){K(M,He,He,Nt)}function K(M,He,Nt,Pn){Xe(M,{pos:gT(He,e),end:Nt.end},Pn)}function Xe(M,He,Nt){let Pn=al(e,He.pos,He.end-He.pos,Nt);M?e.bindDiagnostics.push(Pn):e.bindSuggestionDiagnostics=Sn(e.bindSuggestionDiagnostics,{...Pn,category:2})}function ft(M){if(!M)return;go(M,i),ai&&(M.tracingPath=e.path);let He=W;if(ta(M),M.kind>162){let Nt=i;i=M;let Pn=u_e(M);Pn===0?Ye(M):Ie(M,Pn),i=Nt}else{let Nt=i;M.kind===1&&(i=M),Yt(M),i=Nt}W=He}function Yt(M){if(Kd(M))if(Yn(M))for(let He of M.jsDoc)ft(He);else for(let He of M.jsDoc)go(He,M),Zy(He,!1)}function pr(M){if(!W)for(let He of M){if(!B_(He))return;if(yr(He)){W=!0;return}}}function yr(M){let He=k0(e,M.expression);return He==='"use strict"'||He==="'use strict'"}function ta(M){switch(M.kind){case 79:if(M.flags&2048){let be=M.parent;for(;be&&!Ff(be);)be=be.parent;xc(be,524288,788968);break}case 108:return m&&(ot(M)||i.kind===300)&&(M.flowNode=m),ro(M);case 163:m&&G6(M)&&(M.flowNode=m);break;case 233:case 106:M.flowNode=m;break;case 80:return Co(M);case 208:case 209:let He=M;m&&ct(He)&&(He.flowNode=m),fce(He)&&Ri(He),Yn(He)&&e.commonJsModuleIndicator&&Bm(He)&&!eN(l,"module")&&ke(e.locals,void 0,He.expression,134217729,111550);break;case 223:switch(ic(M)){case 1:hd(M);break;case 2:vc(M);break;case 3:Ze(M.left,M);break;case 6:io(M);break;case 4:ye(M);break;case 5:let be=M.left.expression;if(Yn(M)&&Re(be)){let De=eN(l,be.escapedText);if(N6(De?.valueDeclaration)){ye(M);break}}xt(M);break;case 0:break;default:L.fail("Unknown binary expression special property assignment kind")}return gc(M);case 295:return Ll(M);case 217:return md(M);case 8:return jt(M);case 222:return yc(M);case 221:return Ql(M);case 251:return yu(M);case 253:return se(M);case 194:g=!0;return;case 179:break;case 165:return Fd(M);case 166:return Zl(M);case 257:return gd(M);case 205:return M.flowNode=m,gd(M);case 169:case 168:return Go(M);case 299:case 300:return Io(M,4,0);case 302:return Io(M,8,900095);case 176:case 177:case 178:return Fa(M,131072,0);case 171:case 170:return Io(M,8192|(M.questionToken?16777216:0),s_(M)?0:103359);case 259:return Md(M);case 173:return Fa(M,16384,0);case 174:return Io(M,32768,46015);case 175:return Io(M,65536,78783);case 181:case 320:case 326:case 182:return gn(M);case 184:case 325:case 197:return Ka(M);case 335:return Qe(M);case 207:return Ki(M);case 215:case 216:return zf(M);case 210:switch(ic(M)){case 7:return At(M);case 8:return Ws(M);case 9:return ee(M);case 0:break;default:return L.fail("Unknown call expression assignment declaration kind")}Yn(M)&&Bu(M);break;case 228:case 260:return W=!0,Pd(M);case 261:return xc(M,64,788872);case 262:return xc(M,524288,788968);case 263:return Dc(M);case 264:return Qr(M);case 289:return kc(M);case 288:return Ps(M,4,0);case 268:case 271:case 273:case 278:return Fa(M,2097152,2097152);case 267:return Uc(M);case 270:return $o(M);case 275:return Gu(M);case 274:return Hs(M);case 308:return pr(M.statements),vo();case 238:if(!SA(M.parent))return;case 265:return pr(M.statements);case 344:if(M.parent.kind===326)return Zl(M);if(M.parent.kind!==325)break;case 351:let la=M,oa=la.isBracketed||la.typeExpression&&la.typeExpression.type.kind===319?16777220:4;return Fa(la,oa,0);case 349:case 341:case 343:return(d||(d=[])).push(M);case 342:return ft(M.typeExpression)}}function Go(M){let He=Id(M),Nt=He?98304:4,Pn=He?13247:0;return Io(M,Nt|(M.questionToken?16777216:0),Pn)}function Ka(M){return mc(M,2048,"__type")}function vo(){if(Fo(e),Lc(e))ka();else if(Mf(e)){ka();let M=e.symbol;ke(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=M}}function ka(){mc(e,512,`"${ld(e.fileName)}"`)}function Hs(M){if(!o.symbol||!o.symbol.exports)mc(M,111551,Ve(M));else{let He=zA(M)?2097152:4,Nt=ke(o.symbol.exports,o.symbol,M,He,67108863);M.isExportEquals&&rR(Nt,M)}}function Uc(M){vt(M.modifiers)&&e.bindDiagnostics.push(re(M,_.Modifiers_cannot_appear_here));let He=Li(M.parent)?Lc(M.parent)?M.parent.isDeclarationFile?void 0:_.Global_module_exports_may_only_appear_in_declaration_files:_.Global_module_exports_may_only_appear_in_module_files:_.Global_module_exports_may_only_appear_at_top_level;He?e.bindDiagnostics.push(re(M,He)):(e.symbol.globalExports=e.symbol.globalExports||Ua(),ke(e.symbol.globalExports,e.symbol,M,2097152,2097152))}function Gu(M){!o.symbol||!o.symbol.exports?mc(M,8388608,Ve(M)):M.exportClause?qm(M.exportClause)&&(go(M.exportClause,M),ke(o.symbol.exports,o.symbol,M.exportClause,2097152,2097152)):ke(o.symbol.exports,o.symbol,M,8388608,0)}function $o(M){M.name&&Fa(M,2097152,2097152)}function jo(M){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=M,e.externalModuleIndicator||ka()),!0)}function Ws(M){if(!jo(M))return;let He=Cs(M.arguments[0],void 0,(Nt,Pn)=>(Pn&&X(Pn,Nt,67110400),Pn));He&&ke(He.exports,He,M,1048580,0)}function hd(M){if(!jo(M))return;let He=Cs(M.left.expression,void 0,(Nt,Pn)=>(Pn&&X(Pn,Nt,67110400),Pn));if(He){let Pn=pR(M.right)&&(TT(M.left.expression)||Bm(M.left.expression))?2097152:1048580;go(M.left,M),ke(He.exports,He,M.left,Pn,0)}}function vc(M){if(!jo(M))return;let He=Qw(M.right);if(dW(He)||o===e&&$0(e,He))return;if(rs(He)&&Ji(He.properties,xf)){mn(He.properties,nf);return}let Nt=zA(M)?2097152:1049092,Pn=ke(e.symbol.exports,e.symbol,M,Nt|67108864,0);rR(Pn,M)}function nf(M){ke(e.symbol.exports,e.symbol,M,69206016,0)}function ye(M){if(L.assert(Yn(M)),ar(M)&&br(M.left)&&pi(M.left.name)||br(M)&&pi(M.name))return;let Nt=Ku(M,!1,!1);switch(Nt.kind){case 259:case 215:let Pn=Nt.symbol;if(ar(Nt.parent)&&Nt.parent.operatorToken.kind===63){let be=Nt.parent.left;ST(be)&&ub(be.expression)&&(Pn=Qo(be.expression.expression,s))}Pn&&Pn.valueDeclaration&&(Pn.members=Pn.members||Ua(),Xy(M)?Et(M,Pn,Pn.members):ke(Pn.members,Pn,M,67108868,0),X(Pn,Pn.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:let la=Nt.parent,oa=Ca(Nt)?la.symbol.exports:la.symbol.members;Xy(M)?Et(M,la.symbol,oa):ke(oa,la.symbol,M,67108868,0,!0);break;case 308:if(Xy(M))break;Nt.commonJsModuleIndicator?ke(Nt.symbol.exports,Nt.symbol,M,1048580,0):Fa(M,1,111550);break;default:L.failBadSyntaxKind(Nt)}}function Et(M,He,Nt){ke(Nt,He,M,4,0,!0,!0),bn(M,He)}function bn(M,He){He&&(He.assignmentDeclarationMembers||(He.assignmentDeclarationMembers=new Map)).set(zo(M),M)}function Ri(M){M.expression.kind===108?ye(M):ST(M)&&M.parent.parent.kind===308&&(ub(M.expression)?Ze(M,M.parent):qt(M))}function io(M){go(M.left,M),go(M.right,M),gi(M.left.expression,M.left,!1,!0)}function ee(M){let He=Qo(M.arguments[0].expression);He&&He.valueDeclaration&&X(He,He.valueDeclaration,32),mr(M,He,!0)}function Ze(M,He){let Nt=M.expression,Pn=Nt.expression;go(Pn,Nt),go(Nt,M),go(M,He),gi(Pn,M,!0,!0)}function At(M){let He=Qo(M.arguments[0]),Nt=M.parent.parent.kind===308;He=Ln(He,M.arguments[0],Nt,!1,!1),mr(M,He,!1)}function xt(M){var He;let Nt=Qo(M.left.expression,o)||Qo(M.left.expression,l);if(!Yn(M)&&!_ce(Nt))return;let Pn=$I(M.left);if(!(Re(Pn)&&((He=eN(o,Pn.escapedText))==null?void 0:He.flags)&2097152))if(go(M.left,M),go(M.right,M),Re(M.left.expression)&&o===e&&$0(e,M.left.expression))hd(M);else if(Xy(M)){mc(M,67108868,"__computed");let la=Ln(Nt,M.left.expression,Vr(M.left),!1,!1);bn(M,la)}else qt(Ga(M.left,cS))}function qt(M){L.assert(!Re(M)),go(M.expression,M),gi(M.expression,M,!1,!1)}function Ln(M,He,Nt,Pn,la){return M?.flags&2097152||(Nt&&!Pn&&(M=Cs(He,M,(De,mt,St)=>{if(mt)return X(mt,De,67110400),mt;{let Zt=St?St.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Ua());return ke(Zt,St,De,67110400,110735)}})),la&&M&&M.valueDeclaration&&X(M,M.valueDeclaration,32)),M}function mr(M,He,Nt){if(!He||!Ea(He))return;let Pn=Nt?He.members||(He.members=Ua()):He.exports||(He.exports=Ua()),la=0,oa=0;Ds(oS(M))?(la=8192,oa=103359):Pa(M)&&sS(M)&&(vt(M.arguments[2].properties,be=>{let De=sa(be);return!!De&&Re(De)&&vr(De)==="set"})&&(la|=65540,oa|=78783),vt(M.arguments[2].properties,be=>{let De=sa(be);return!!De&&Re(De)&&vr(De)==="get"})&&(la|=32772,oa|=46015)),la===0&&(la=4,oa=0),ke(Pn,He,M,la|67108864,oa&-67108865)}function Vr(M){return ar(M.parent)?bo(M.parent).parent.kind===308:M.parent.parent.kind===308}function gi(M,He,Nt,Pn){let la=Qo(M,o)||Qo(M,l),oa=Vr(He);la=Ln(la,He.expression,oa,Nt,Pn),mr(He,la,Nt)}function Ea(M){if(M.flags&1072)return!0;let He=M.valueDeclaration;if(He&&Pa(He))return!!oS(He);let Nt=He?wi(He)?He.initializer:ar(He)?He.right:br(He)&&ar(He.parent)?He.parent.right:void 0:void 0;if(Nt=Nt&&Qw(Nt),Nt){let Pn=ub(wi(He)?He.name:ar(He)?He.left:He);return!!ob(ar(Nt)&&(Nt.operatorToken.kind===56||Nt.operatorToken.kind===60)?Nt.right:Nt,Pn)}return!1}function bo(M){for(;ar(M.parent);)M=M.parent;return M.parent}function Qo(M,He=o){if(Re(M))return eN(He,M.escapedText);{let Nt=Qo(M.expression);return Nt&&Nt.exports&&Nt.exports.get(wh(M))}}function Cs(M,He,Nt){if($0(e,M))return e.symbol;if(Re(M))return Nt(M,Qo(M),He);{let Pn=Cs(M.expression,He,Nt),la=eR(M);return pi(la)&&L.fail("unexpected PrivateIdentifier"),Nt(la,Pn&&Pn.exports&&Pn.exports.get(wh(M)),Pn)}}function Bu(M){!e.commonJsModuleIndicator&&qu(M,!1)&&jo(M)}function Pd(M){if(M.kind===260)xc(M,32,899503);else{let la=M.name?M.name.escapedText:"__class";mc(M,32,la),M.name&&$.add(M.name.escapedText)}let{symbol:He}=M,Nt=ge(4194308,"prototype"),Pn=He.exports.get(Nt.escapedName);Pn&&(M.name&&go(M.name,M),e.bindDiagnostics.push(re(Pn.declarations[0],_.Duplicate_identifier_0,fc(Nt)))),He.exports.set(Nt.escapedName,Nt),Nt.parent=He}function Dc(M){return R0(M)?xc(M,128,899967):xc(M,256,899327)}function gd(M){if(W&&bl(M,M.name),!La(M.name)){let He=M.kind===257?M:M.parent.parent;Yn(M)&&$s(t)!==100&&N0(He)&&!x0(M)&&!(wg(M)&1)?Fa(M,2097152,2097152):sH(M)?xc(M,2,111551):CT(M)?Fa(M,1,111551):Fa(M,1,111550)}}function Zl(M){if(!(M.kind===344&&o.kind!==326)&&(W&&!(M.flags&16777216)&&bl(M,M.name),La(M.name)?mc(M,1,"__"+M.parent.parameters.indexOf(M)):Fa(M,1,111551),Ad(M,M.parent))){let He=M.parent.parent;ke(He.symbol.members,He.symbol,M,4|(M.questionToken?16777216:0),0)}}function Md(M){!e.isDeclarationFile&&!(M.flags&16777216)&&qA(M)&&(q|=2048),qs(M),W?(As(M),xc(M,16,110991)):Fa(M,16,110991)}function zf(M){!e.isDeclarationFile&&!(M.flags&16777216)&&qA(M)&&(q|=2048),m&&(M.flowNode=m),qs(M);let He=M.name?M.name.escapedText:"__function";return mc(M,16,He)}function Io(M,He,Nt){return!e.isDeclarationFile&&!(M.flags&16777216)&&qA(M)&&(q|=2048),m&&D6(M)&&(M.flowNode=m),Xy(M)?mc(M,He,"__computed"):Fa(M,He,Nt)}function Jf(M){let He=jn(M,Nt=>Nt.parent&&m2(Nt.parent)&&Nt.parent.extendsType===Nt);return He&&He.parent}function Fd(M){var He,Nt;if(H_(M.parent)){let Pn=J6(M.parent);Pn?(L.assertNode(Pn,Qp),(He=Pn.locals)!=null||(Pn.locals=Ua()),ke(Pn.locals,void 0,M,262144,526824)):Fa(M,262144,526824)}else if(M.parent.kind===192){let Pn=Jf(M.parent);Pn?(L.assertNode(Pn,Qp),(Nt=Pn.locals)!=null||(Pn.locals=Ua()),ke(Pn.locals,void 0,M,262144,526824)):mc(M,262144,Ve(M))}else Fa(M,262144,526824)}function E_(M){let He=Gh(M);return He===1||He===2&&U0(t)}function Y_(M){if(!(m.flags&1))return!1;if(m===fe&&(Nw(M)&&M.kind!==239||M.kind===260||M.kind===264&&E_(M))&&(m=Z,!t.allowUnreachableCode)){let Nt=Tle(t)&&!(M.flags&16777216)&&(!Bc(M)||!!(G_(M.declarationList)&3)||M.declarationList.declarations.some(Pn=>!!Pn.initializer));rPe(M,(Pn,la)=>K(Nt,Pn,la,_.Unreachable_code_detected))}return!0}}function rPe(e,t){if(ca(e)&&l_e(e)&&Va(e.parent)){let{statements:r}=e.parent,i=PW(r,e);PU(i,l_e,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function l_e(e){return!Jc(e)&&!iPe(e)&&!hb(e)&&!(Bc(e)&&!(G_(e)&3)&&e.declarationList.declarations.some(t=>!t.initializer))}function iPe(e){switch(e.kind){case 261:case 262:return!0;case 264:return Gh(e)!==1;case 263:return Mr(e,2048);default:return!1}}function $0(e,t){let r=0,i=HU();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),TT(t)||Bm(t))return!0;if(Re(t)){let o=eN(e,t.escapedText);if(o&&o.valueDeclaration&&wi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),Iu(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function u_e(e){switch(e.kind){case 228:case 260:case 263:case 207:case 184:case 325:case 289:return 1;case 261:return 65;case 264:case 262:case 197:case 178:return 33;case 308:return 37;case 174:case 175:case 171:if(D6(e))return 173;case 173:case 259:case 170:case 176:case 326:case 320:case 181:case 177:case 182:case 172:return 45;case 215:case 216:return 61;case 265:return 4;case 169:return e.initializer?4:0;case 295:case 245:case 246:case 247:case 266:return 34;case 238:return Ia(e.parent)||oc(e.parent)?0:34}return 0}function eN(e,t){var r,i,o,s,l;let f=(i=(r=zr(e,Qp))==null?void 0:r.locals)==null?void 0:i.get(t);if(f)return(o=f.exportSymbol)!=null?o:f;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if($p(e))return(l=(s=e.symbol)==null?void 0:s.exports)==null?void 0:l.get(t)}var sK,d_e,aPe=gt({"src/compiler/binder.ts"(){"use strict";fa(),E0(),sK=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(sK||{}),d_e=nPe()}});function f_e(e,t,r,i,o,s,l,f,d,g){return m;function m(v=()=>!0){let S=[],x=[];return{walkType:$=>{try{return A($),{visitedTypes:H1(S),visitedSymbols:H1(x)}}finally{Om(S),Om(x)}},walkSymbol:$=>{try{return ie($),{visitedTypes:H1(S),visitedSymbols:H1(x)}}finally{Om(S),Om(x)}}};function A($){if(!(!$||S[$.id]||(S[$.id]=$,ie($.symbol)))){if($.flags&524288){let Z=$,U=Z.objectFlags;U&4&&w($),U&32&&q($),U&3&&Y($),U&24&&R(Z)}$.flags&262144&&C($),$.flags&3145728&&P($),$.flags&4194304&&F($),$.flags&8388608&&B($)}}function w($){A($.target),mn(g($),A)}function C($){A(f($))}function P($){mn($.types,A)}function F($){A($.type)}function B($){A($.objectType),A($.indexType),A($.constraint)}function q($){A($.typeParameter),A($.constraintType),A($.templateType),A($.modifiersType)}function W($){let fe=t($);fe&&A(fe.type),mn($.typeParameters,A);for(let Z of $.parameters)ie(Z);A(e($)),A(r($))}function Y($){R($),mn($.typeParameters,A),mn(i($),A),A($.thisType)}function R($){let fe=o($);for(let Z of fe.indexInfos)A(Z.keyType),A(Z.type);for(let Z of fe.callSignatures)W(Z);for(let Z of fe.constructSignatures)W(Z);for(let Z of fe.properties)ie(Z)}function ie($){if(!$)return!1;let fe=$a($);if(x[fe])return!1;if(x[fe]=$,!v($))return!0;let Z=s($);return A(Z),$.exports&&$.exports.forEach(ie),mn($.declarations,U=>{if(U.type&&U.type.kind===183){let re=U.type,le=l(d(re.exprName));ie(le)}}),!1}}}var oPe=gt({"src/compiler/symbolWalker.ts"(){"use strict";fa()}});function oF({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?fl(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:f=>{if((f??i.impliedNodeFormat)===99)return VL(r,i.fileName)?[3,2]:[2];if($s(r)===1)return[1,2];switch(s){case 2:return[2,0,1];case 3:return[3,0,2,1];case 1:return[1,0,2];case 0:return[0,1,2];default:L.assertNever(s)}}};function l(){if(o!==void 0){if(ES(o))return 2;if(Oc(o,"/index"))return 1}return OW(t,i.impliedNodeFormat,r,i)}}function sPe(e,t,r,i,o,s,l={}){let f=__e(e,t,r,i,o,oF({},e,t,s),{},l);if(f!==s)return f}function sF(e,t,r,i,o,s={}){return __e(e,t,r,i,o,oF({},e,t),{},s)}function cPe(e,t,r,i,o,s={}){let l=cK(t.path,i),f=E_e(t.path,r,i,o,s);return ks(f,d=>lK(d,l,t,i,e,o,!0,s.overrideImportMode))}function __e(e,t,r,i,o,s,l,f={}){let d=cK(r,o),g=E_e(r,i,o,l,f);return ks(g,m=>lK(m,d,t,o,e,l,void 0,f.overrideImportMode))||g_e(i,d,e,o,f.overrideImportMode||t.impliedNodeFormat,s)}function lPe(e,t,r,i,o={}){return p_e(e,t,r,i,o)[0]}function p_e(e,t,r,i,o={}){var s;let l=m6(e);if(!l)return Je;let f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),d=f?.get(t.path,l.path,i,o);return[d?.moduleSpecifiers,l,d?.modulePaths,f]}function m_e(e,t,r,i,o,s,l={}){return h_e(e,t,r,i,o,s,l).moduleSpecifiers}function h_e(e,t,r,i,o,s,l={}){let f=!1,d=dPe(e,t);if(d)return{moduleSpecifiers:[d],computedWithoutCache:f};let[g,m,v,S]=p_e(e,i,o,s,l);if(g)return{moduleSpecifiers:g,computedWithoutCache:f};if(!m)return{moduleSpecifiers:Je,computedWithoutCache:f};f=!0,v||(v=T_e(i.path,m.originalFileName,o));let x=uPe(v,r,i,o,s,l);return S?.set(i.path,m.path,s,l,v,x),{moduleSpecifiers:x,computedWithoutCache:f}}function uPe(e,t,r,i,o,s={}){let l=cK(r.path,i),f=oF(o,t,r),d=mn(e,A=>mn(i.getFileIncludeReasons().get(Ts(A.path,i.getCurrentDirectory(),l.getCanonicalFileName)),w=>{if(w.kind!==3||w.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==aq(r,w.index))return;let C=GF(r,w.index).text;return f.relativePreference!==1||!Jd(C)?C:void 0}));if(d)return[d];let g=vt(e,A=>A.isInNodeModules),m,v,S,x;for(let A of e){let w=A.isInNodeModules?lK(A,l,r,i,t,o,void 0,s.overrideImportMode):void 0;if(m=Sn(m,w),w&&A.isRedirect)return m;if(!w){let C=g_e(A.path,l,t,i,s.overrideImportMode||r.impliedNodeFormat,f,A.isRedirect);if(!C)continue;A.isRedirect?S=Sn(S,C):cj(C)?v=Sn(v,C):(!g||A.isInNodeModules)&&(x=Sn(x,C))}}return v?.length?v:S?.length?S:m?.length?m:L.checkDefined(x)}function cK(e,t){let r=Dl(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=ni(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i}}function g_e(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},f){let{baseUrl:d,paths:g,rootDirs:m}=r;if(f&&!g)return;let{sourceDirectory:v,getCanonicalFileName:S}=t,x=s(o),A=m&&fPe(m,e,v,S,x,r)||jL(S0(Xp(v,e,S)),x,r);if(!d&&!g||l===0)return f?void 0:A;let w=_a(ZH(r,i)||d,i.getCurrentDirectory()),C=C_e(e,w,S);if(!C)return f?void 0:A;let P=g&&S_e(C,g,x,i,r);if(f)return P;let F=P===void 0&&d!==void 0?jL(C,x,r):P;if(!F)return A;if(l===1&&!Jd(F))return F;if(l===3&&!Jd(F)){let B=r.configFilePath?Ts(ni(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),q=Ts(e,B,S),W=na(v,B),Y=na(q,B);if(W&&!Y||!W&&Y)return F;let R=v_e(i,ni(q));return v_e(i,v)!==R?F:A}return I_e(F)||tN(A)<tN(F)?A:F}function tN(e){let t=0;for(let r=na(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function y_e(e,t){return g0(t.isRedirect,e.isRedirect)||BR(e.path,t.path)}function v_e(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!Th(t,r=>e.fileExists(vi(r,"package.json"))?!0:void 0)}function b_e(e,t,r,i,o){var s;let l=lb(r),f=r.getCurrentDirectory(),d=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,g=Ts(t,f,l),m=r.redirectTargetsMap.get(g)||Je,S=[...d?[d]:Je,t,...m].map(P=>_a(P,f)),x=!Ji(S,sL);if(!i){let P=mn(S,F=>!(x&&sL(F))&&o(F,d===F));if(P)return P}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),w=_a(t,f);return A&&Th(ni(w),P=>{let F=A.get(cu(Ts(P,f,l)));if(F)return fj(e,P,l)?!1:mn(S,B=>{if(!fj(B,P,l))return;let q=Xp(P,B,l);for(let W of F){let Y=Fy(W,q),R=o(Y,B===d);if(x=!0,R)return R}})})||(i?mn(S,P=>x&&sL(P)?void 0:o(P,P===d)):void 0)}function E_e(e,t,r,i,o={}){var s;let l=Ts(t,r.getCurrentDirectory(),lb(r)),f=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(f){let g=f.get(e,l,i,o);if(g?.modulePaths)return g.modulePaths}let d=T_e(e,t,r);return f&&f.setModulePaths(e,l,i,o,d),d}function T_e(e,t,r){let i=lb(r),o=new Map,s=!1;b_e(e,t,r,!0,(f,d)=>{let g=JS(f);o.set(f,{path:i(f),isRedirect:d,isInNodeModules:g}),s=s||g});let l=[];for(let f=ni(e);o.size!==0;){let d=cu(f),g;o.forEach(({path:v,isRedirect:S,isInNodeModules:x},A)=>{na(v,d)&&((g||(g=[])).push({path:A,isRedirect:S,isInNodeModules:x}),o.delete(A))}),g&&(g.length>1&&g.sort(y_e),l.push(...g));let m=ni(f);if(m===f)break;f=m}if(o.size){let f=lo(o.values());f.length>1&&f.sort(y_e),l.push(...f)}return l}function dPe(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>lH(l)&&(!D0(l)||!fl(l_(l.name))));if(i)return i.name.text;let s=Zi(e.declarations,l=>{var f,d,g,m;if(!Tc(l))return;let v=w(l);if(!((f=v?.parent)!=null&&f.parent&&Tp(v.parent)&&lu(v.parent.parent)&&Li(v.parent.parent.parent)))return;let S=(m=(g=(d=v.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:m.expression;if(!S)return;let x=t.getSymbolAtLocation(S);if(!x)return;if((x?.flags&2097152?t.getAliasedSymbol(x):x)===l.symbol)return v.parent.parent;function w(C){for(;C.flags&4;)C=C.parent;return C}})[0];if(s)return s.name.text}function S_e(e,t,r,i,o){for(let l in t)for(let f of t[l]){let d=So(f),g=d.indexOf("*"),m=r.map(v=>({ending:v,value:jL(e,[v],o)}));if(Hm(d)&&m.push({ending:void 0,value:e}),g!==-1){let v=d.substring(0,g),S=d.substring(g+1);for(let{ending:x,value:A}of m)if(A.length>=v.length+S.length&&na(A,v)&&Oc(A,S)&&s({ending:x,value:A})){let w=A.substring(v.length,A.length-S.length);return l.replace("*",w)}}else if(vt(m,v=>v.ending!==0&&d===v.value)||vt(m,v=>v.ending===0&&d===v.value&&s(v)))return l}function s({ending:l,value:f}){return l!==0||f===jL(e,[l],o,i)}}function cF(e,t,r,i,o,s,l=0){if(typeof o=="string"){let f=_a(vi(r,o),void 0),d=GR(t)?ld(t)+lF(t,e):void 0;switch(l){case 0:if(cT(t,f)===0||d&&cT(d,f)===0)return{moduleFileToTry:i};break;case 1:if(Gy(f,t)){let S=Xp(f,t,!1);return{moduleFileToTry:_a(vi(vi(i,o),S),void 0)}}break;case 2:let g=f.indexOf("*"),m=f.slice(0,g),v=f.slice(g+1);if(na(t,m)&&Oc(t,v)){let S=t.slice(m.length,t.length-v.length);return{moduleFileToTry:i.replace("*",S)}}if(d&&na(d,m)&&Oc(d,v)){let S=d.slice(m.length,d.length-v.length);return{moduleFileToTry:i.replace("*",S)}}break}}else{if(Array.isArray(o))return mn(o,f=>cF(e,t,r,i,f,s));if(typeof o=="object"&&o!==null){if(nF(o))return mn(bh(o),f=>{let d=_a(vi(i,f),void 0),g=Oc(f,"/")?1:jl(f,"*")?2:0;return cF(e,t,r,d,o[f],s,g)});for(let f of bh(o))if(f==="default"||s.indexOf(f)>=0||QO(s,f)){let d=o[f],g=cF(e,t,r,i,d,s);if(g)return g}}}}function fPe(e,t,r,i,o,s){let l=x_e(t,e,i);if(l===void 0)return;let f=x_e(r,e,i),d=Uo(f,m=>on(l,v=>S0(Xp(m,v,i)))),g=WU(d,BR);if(g)return jL(g,o,s)}function lK({path:e,isRedirect:t},{getCanonicalFileName:r,sourceDirectory:i},o,s,l,f,d,g){if(!s.fileExists||!s.readFile)return;let m=jW(e);if(!m)return;let S=oF(f,l,o).getAllowedEndingsInPreferredOrder(),x=e,A=!1;if(!d){let q=m.packageRootIndex,W;for(;;){let{moduleFileToTry:Y,packageRootPath:R,blockedByExports:ie,verbatimFromExports:$}=B(q);if($s(l)!==1){if(ie)return;if($)return Y}if(R){x=R,A=!0;break}if(W||(W=Y),q=e.indexOf(_s,q+1),q===-1){x=jL(W,S,l,s);break}}}if(t&&!A)return;let w=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),C=r(x.substring(0,m.topLevelNodeModulesIndex));if(!(na(i,C)||w&&na(r(w),C)))return;let P=x.substring(m.topLevelPackageNameIndex+1),F=ZO(P);return $s(l)===1&&F===P?void 0:F;function B(q){var W,Y;let R=e.substring(0,q),ie=vi(R,"package.json"),$=e,fe=!1,Z=(Y=(W=s.getPackageJsonInfoCache)==null?void 0:W.call(s))==null?void 0:Y.getPackageJsonInfo(ie);if(typeof Z=="object"||Z===void 0&&s.fileExists(ie)){let U=Z?.contents.packageJsonContent||JSON.parse(s.readFile(ie)),re=g||o.impliedNodeFormat;if(xW(l)){let ge=R.substring(m.topLevelPackageNameIndex+1),X=ZO(ge),Ve=P2(l,re===99),we=U.exports?cF(l,e,R,X,U.exports,Ve):void 0;if(we)return{...GR(we.moduleFileToTry)?{moduleFileToTry:ld(we.moduleFileToTry)+lF(we.moduleFileToTry,l)}:we,verbatimFromExports:!0};if(U.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=U.typesVersions?q3(U.typesVersions):void 0;if(le){let ge=e.slice(R.length+1),X=S_e(ge,le.paths,S,s,l);X===void 0?fe=!0:$=vi(R,X)}let _e=U.typings||U.types||U.main||"index.js";if(Ta(_e)&&!(fe&&NW(g4(le.paths),_e))){let ge=Ts(_e,R,r);if(ld(ge)===ld(r($)))return{packageRootPath:R,moduleFileToTry:$}}}else{let U=r($.substring(m.packageRootIndex+1));if(U==="index.d.ts"||U==="index.js"||U==="index.ts"||U==="index.tsx")return{moduleFileToTry:$,packageRootPath:R}}return{moduleFileToTry:$}}}function _Pe(e,t){if(!e.fileExists)return;let r=t_(nL({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function x_e(e,t,r){return Zi(t,i=>{let o=C_e(e,i,r);return o!==void 0&&I_e(o)?void 0:o})}function jL(e,t,r,i){if($c(e,[".json",".mjs",".cjs"]))return e;let o=ld(e);if(e===o)return e;if($c(e,[".d.mts",".mts",".d.cts",".cts"]))return o+uK(e,r);if(!$c(e,[".d.ts"])&&$c(e,[".ts"])&&jl(e,".d."))return A_e(e);switch(t[0]){case 0:let s=pA(o,"/index");return i&&s!==o&&_Pe(i,s)?o:s;case 1:return o;case 2:return o+uK(e,r);case 3:if(Fu(e)){let l=t.findIndex(d=>d===0||d===1),f=t.indexOf(2);return l!==-1&&l<f?o:o+uK(e,r)}return e;default:return L.assertNever(t[0])}}function A_e(e){let t=Hl(e);if(!Oc(e,".ts")||!jl(t,".d.")||$c(t,[".d.ts"]))return;let r=UR(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function uK(e,t){var r;return(r=lF(e,t))!=null?r:L.fail(`Extension ${jR(e)} is unsupported:: FileName:: ${e}`)}function lF(e,t){let r=Hm(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function C_e(e,t,r){let i=Q1(t,e,t,r,!1);return qp(i)?void 0:i}function I_e(e){return na(e,"..")}var L_e=gt({"src/compiler/moduleSpecifiers.ts"(){"use strict";fa()}}),Q0={};Mo(Q0,{countPathComponents:()=>tN,forEachFileNameOfModule:()=>b_e,getModuleSpecifier:()=>sF,getModuleSpecifiers:()=>m_e,getModuleSpecifiersWithCacheInfo:()=>h_e,getNodeModulesPackageName:()=>cPe,tryGetJSExtensionForFile:()=>lF,tryGetModuleSpecifiersFromCache:()=>lPe,tryGetRealFileNameForNonJsDeclarationFileName:()=>A_e,updateModuleSpecifier:()=>sPe});var dK=gt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";L_e()}});function pPe(){this.flags=0}function zo(e){return e.id||(e.id=mK,mK++),e.id}function $a(e){return e.id||(e.id=pK,pK++),e.id}function fK(e,t){let r=Gh(e);return r===1||t&&r===2}function k_e(e){var t=zu(()=>{var n=new Map;return e.getSourceFiles().forEach(a=>{a.resolvedModules&&a.resolvedModules.forEach(({resolvedModule:c})=>{c?.packageId&&n.set(c.packageId.name,c.extension===".d.ts"||!!n.get(c.packageId.name))})}),n}),r=[],i=n=>{r.push(n)},o,s=new Set,l,f,d=ml.getSymbolConstructor(),g=ml.getTypeConstructor(),m=ml.getSignatureConstructor(),v=0,S=0,x=0,A=0,w=0,C=0,P,F,B=!1,q=Ua(),W=[1],Y=e.getCompilerOptions(),R=Do(Y),ie=Rl(Y),$=!!Y.experimentalDecorators,fe=MR(Y),Z=wT(Y),U=Uf(Y,"strictNullChecks"),re=Uf(Y,"strictFunctionTypes"),le=Uf(Y,"strictBindCallApply"),_e=Uf(Y,"strictPropertyInitialization"),ge=Uf(Y,"noImplicitAny"),X=Uf(Y,"noImplicitThis"),Ve=Uf(Y,"useUnknownInCatchVariables"),we=!!Y.keyofStringsOnly,ke=Y.suppressExcessPropertyErrors?0:8192,Pe=Y.exactOptionalPropertyTypes,Ce=FZe(),Ie=hrt(),Be=Wa(),Ne=Ua(),Le=wo(4,"undefined");Le.declarations=[];var Ye=wo(1536,"globalThis",8);Ye.exports=Ne,Ye.declarations=[],Ne.set(Ye.escapedName,Ye);var _t=wo(4,"arguments"),ct=wo(4,"require"),Rt=Y.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",We;let qe={getNodeCount:()=>ou(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>ou(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>ou(e.getSourceFiles(),(n,a)=>n+a.symbolCount,S),getTypeCount:()=>v,getInstantiationCount:()=>x,getRelationCacheSizes:()=>({assignable:Zu.size,identity:td.size,subtype:hm.size,strictSubtype:x_.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===_t,isUnknownSymbol:n=>n===Ht,getMergedSymbol:No,getDiagnostics:HLe,getGlobalDiagnostics:Nnt,getRecursionIdentity:AC,getUnmatchedProperties:lre,getTypeOfSymbolAtLocation:(n,a)=>{let c=ea(a);return c?RYe(n,c):ve},getTypeOfSymbol:zn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=ea(n,ha);return c===void 0?L.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(L.assert(Ad(c,c.parent)),yE(c,Bs(a)))},getDeclaredTypeOfSymbol:gs,getPropertiesOfType:Jo,getPropertyOfType:(n,a)=>ja(n,Bs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=ea(c);if(!u)return;let p=Bs(a),h=JB(p,u);return h?zre(n,h):void 0},getTypeOfPropertyOfType:(n,a)=>Vc(n,Bs(a)),getIndexInfoOfType:(n,a)=>Cm(n,a===0?ae:rt),getIndexInfosOfType:tu,getIndexInfosOfIndexSymbol:one,getSignaturesOfType:xa,getIndexTypeOfType:(n,a)=>fg(n,a===0?ae:rt),getIndexType:n=>Gp(n),getBaseTypes:_o,getBaseTypeOfLiteralType:ky,getWidenedType:Sd,getTypeFromTypeNode:n=>{let a=ea(n,bi);return a?$r(a):ve},getParameterType:P_,getParameterIdentifierNameAtPosition:ZQe,getPromisedTypeOfPromise:wD,getAwaitedType:n=>rT(n),getReturnTypeOfSignature:qo,isNullableType:zB,getNullableType:TB,getNonNullableType:yg,getNonOptionalType:ere,getTypeArguments:Ko,typeToTypeNode:Be.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Be.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Be.signatureToSignatureDeclaration,symbolToEntityName:Be.symbolToEntityName,symbolToExpression:Be.symbolToExpression,symbolToNode:Be.symbolToNode,symbolToTypeParameterDeclarations:Be.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Be.symbolToParameterDeclaration,typeParameterToDeclaration:Be.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=ea(n);return c?Pnt(c,a):[]},getSymbolAtLocation:n=>{let a=ea(n);return a?Zf(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=ea(n);return a?jnt(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=ea(n);return a?Hnt(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=ea(n,Mu);return a?Wnt(a):void 0},getExportSymbolOfSymbol(n){return No(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=ea(n);return a?G1(a):ve},getTypeOfAssignmentPattern:n=>{let a=ea(n,vI);return a&&bU(a)||ve},getPropertySymbolOfDestructuringAssignment:n=>{let a=ea(n,Re);return a?znt(a):void 0},signatureToString:(n,a,c,u)=>ne(n,ea(a),c,u),typeToString:(n,a,c)=>Ee(n,ea(a),c),symbolToString:(n,a,c,u)=>E(n,ea(a),c,u),typePredicateToString:(n,a,c)=>kl(n,ea(a),c),writeSignature:(n,a,c,u,p)=>ne(n,ea(a),c,u,p),writeType:(n,a,c,u)=>Ee(n,ea(a),c,u),writeSymbol:(n,a,c,u,p)=>E(n,ea(a),c,u,p),writeTypePredicate:(n,a,c,u)=>kl(n,ea(a),c,u),getAugmentedPropertiesOfType:Wie,getRootSymbols:YLe,getSymbolOfExpando:eU,getContextualType:(n,a)=>{let c=ea(n,ot);if(c)return a&4?Qt(c,()=>Ru(c,a)):Ru(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=ea(n,Og);return a?Rre(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=ea(n,rS);return c&&wre(c,a)},getContextualTypeForJsxAttribute:n=>{let a=ea(n,d6);return a&&_Ce(a,void 0)},isContextSensitive:$f,getTypeOfPropertyOfContextualType:eT,getFullyQualifiedName:rh,getResolvedSignature:(n,a,c)=>tn(n,a,c,0),getResolvedSignatureForStringLiteralCompletions:(n,a,c)=>Qt(a,()=>tn(n,c,void 0,32)),getResolvedSignatureForSignatureHelp:(n,a,c)=>zt(n,()=>tn(n,a,c,16)),getExpandedParameters:Txe,hasEffectiveRestParameter:jp,containsArgumentsReference:nne,getConstantValue:n=>{let a=ea(n,tke);return a?zie(a):void 0},isValidPropertyAccess:(n,a)=>{let c=ea(n,dse);return!!c&&dQe(c,Bs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=ea(n,br);return!!u&&HCe(u,a,c)},getSignatureFromDeclaration:n=>{let a=ea(n,Ia);return a?ip(a):void 0},isImplementationOfOverload:n=>{let a=ea(n,Ia);return a?ZLe(a):void 0},getImmediateAliasedSymbol:Mre,getAliasedSymbol:wc,getEmitResolver:cC,getExportsOfModule:sy,getExportsAndPropertiesOfModule:C1,forEachExportAndPropertyOfModule:kv,getSymbolWalker:f_e(tKe,Lf,qo,_o,R_,zn,Qf,eu,Yd,Ko),getAmbientModules:oit,getJsxIntrinsicTagNamesAt:W$e,isOptionalParameter:n=>{let a=ea(n,ha);return a?Qk(a):!1},tryGetMemberInModuleExports:(n,a)=>rg(Bs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>of(Bs(n),a),tryFindAmbientModule:n=>tne(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>tne(n,!1),getApparentType:Eu,getUnionType:Gr,isTypeAssignableTo:to,createAnonymousType:ls,createSignature:Am,createSymbol:wo,createIndexInfo:Fp,getAnyType:()=>Se,getStringType:()=>ae,getNumberType:()=>rt,createPromiseType:jM,createArrayType:nu,getElementTypeOfArrayType:Xne,getBooleanType:()=>Te,getFalseType:n=>n?Ke:oe,getTrueType:n=>n?pe:z,getVoidType:()=>yt,getUndefinedType:()=>Oe,getNullType:()=>ln,getESSymbolType:()=>j,getNeverType:()=>lt,getOptionalType:()=>Kt,getPromiseType:()=>oM(!1),getPromiseLikeType:()=>aAe(!1),getAsyncIterableType:()=>{let n=ZG(!1);if(n!==ro)return n},isSymbolAccessible:dy,isArrayType:_f,isTupleType:po,isArrayLikeType:Kv,isEmptyAnonymousObjectType:hh,isTypeInvalidDueToUnionDiscriminant:FJe,getExactOptionalProperties:cXe,getAllPossiblePropertiesOfTypes:GJe,getSuggestedSymbolForNonexistentProperty:qre,getSuggestionForNonexistentProperty:Xre,getSuggestedSymbolForNonexistentJSXAttribute:VCe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Yre(n,Bs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>sQe(n,Bs(a),c),getSuggestedSymbolForNonexistentModule:qB,getSuggestionForNonexistentExport:cQe,getSuggestedSymbolForNonexistentClassMember:UCe,getBaseConstraintOfType:bu,getDefaultFromTypeParameter:n=>n&&n.flags&262144?jE(n):void 0,resolveName(n,a,c,u){return zs(a,Bs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Gi(Rb(n)),getJsxFragmentFactory:n=>{let a=Kie(n);return a&&Gi(Yd(a).escapedText)},getAccessibleSymbolChain:Rv,getTypePredicateOfSignature:Lf,resolveExternalModuleName:n=>{let a=ea(n,ot);return a&&Gl(a,a,!0)},resolveExternalModuleSymbol:Vu,tryGetThisTypeAt:(n,a,c)=>{let u=ea(n);return u&&Cre(u,a,c)},getTypeArgumentConstraint:n=>{let a=ea(n,bi);return a&&get(a)},getSuggestionDiagnostics:(n,a)=>{let c=ea(n,Li)||L.fail("Could not determine parsed source file.");if(rL(c,Y,e))return Je;let u;try{return o=a,jie(c),L.assert(!!(Rr(c).flags&1)),u=si(u,mE.getDiagnostics(c.fileName)),rLe(jLe(c),(p,h,T)=>{!Gw(p)&&!VLe(h,!!(p.flags&16777216))&&(u||(u=[])).push({...T,category:2})}),u||Je}finally{o=void 0}},runWithCancellationToken:(n,a)=>{try{return o=n,a(qe)}finally{o=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:yy,isDeclarationVisible:Xf,isPropertyAccessible:Qre,getTypeOnlyAliasDeclaration:nd,getMemberOverrideModifierStatus:Xtt,isTypeParameterPossiblyReferenced:fM,typeHasCallOrConstructSignatures:EU};function zt(n,a){let c=jn(n,rS),u=c&&Rr(c).resolvedSignature;c&&(Rr(c).resolvedSignature=void 0);let p=a();return c&&(Rr(c).resolvedSignature=u),p}function Qt(n,a){let c=jn(n,rS);if(c){let p=n;do Rr(p).skipDirectInference=!0,p=p.parent;while(p&&p!==c)}B=!0;let u=zt(n,a);if(B=!1,c){let p=n;do Rr(p).skipDirectInference=void 0,p=p.parent;while(p&&p!==c)}return u}function tn(n,a,c,u){let p=ea(n,rS);We=c;let h=p?MC(p,a,u):void 0;return We=void 0,h}var kn=new Map,_n=new Map,Gt=new Map,$n=new Map,ui=new Map,Ni=new Map,Pi=new Map,gr=new Map,pt=new Map,nn=new Map,Dt=new Map,pn=new Map,An=new Map,Kn=new Map,hi=[],ri=new Map,vn=new Set,Ht=wo(4,"unknown"),En=wo(0,"__resolving__"),dr=new Map,Cr=new Map,Se=Cc(1,"any"),at=Cc(1,"any",262144),Tt=Cc(1,"any"),ve=Cc(1,"error"),nt=Cc(1,"unresolved"),ce=Cc(1,"any",65536),Q=Cc(1,"intrinsic"),ue=Cc(2,"unknown"),G=Cc(2,"unknown"),Oe=Cc(32768,"undefined"),je=U?Oe:Cc(32768,"undefined",65536),Ge=Cc(32768,"undefined"),kt=Pe?Ge:Oe,Kt=Cc(32768,"undefined"),ln=Cc(65536,"null"),ir=U?ln:Cc(65536,"null",65536),ae=Cc(4,"string"),rt=Cc(8,"number"),Ot=Cc(64,"bigint"),Ke=Cc(512,"false"),oe=Cc(512,"false"),pe=Cc(512,"true"),z=Cc(512,"true");pe.regularType=z,pe.freshType=pe,z.regularType=z,z.freshType=pe,Ke.regularType=oe,Ke.freshType=Ke,oe.regularType=oe,oe.freshType=Ke;var Te=Gr([oe,z]),j=Cc(4096,"symbol"),yt=Cc(16384,"void"),lt=Cc(131072,"never"),Qe=Cc(131072,"never",262144),Vt=Cc(131072,"never"),Hn=Cc(131072,"never"),jr=Cc(67108864,"object"),ei=Gr([ae,rt]),Kr=Gr([ae,rt,j]),Si=we?ae:Kr,Ja=Gr([rt,Ot]),Za=Gr([ae,rt,Te,Ot,ln,Oe]),Fa=WE(["",""],[rt]),Hi=dM(n=>n.flags&262144?Pqe(n):n,()=>"(restrictive mapper)"),xi=dM(n=>n.flags&262144?Tt:n,()=>"(permissive mapper)"),Nr=Cc(131072,"never"),Fo=dM(n=>n.flags&262144?Nr:n,()=>"(unique literal mapper)"),Qr,Wi=dM(n=>(Qr&&(n===md||n===Pc||n===bl)&&Qr(!0),n),()=>"(unmeasurable reporter)"),gn=dM(n=>(Qr&&(n===md||n===Pc||n===bl)&&Qr(!1),n),()=>"(unreliable reporter)"),Ki=ls(void 0,q,Je,Je,Je),kc=ls(void 0,q,Je,Je,Je);kc.objectFlags|=2048;var Ps=wo(2048,"__type");Ps.members=Ua();var mc=ls(Ps,q,Je,Je,Je),xc=ls(void 0,q,Je,Je,Je),hc=U?Gr([Oe,ln,xc]):ue,ro=ls(void 0,q,Je,Je,Je);ro.instantiations=new Map;var aa=ls(void 0,q,Je,Je,Je);aa.objectFlags|=262144;var Co=ls(void 0,q,Je,Je,Je),gc=ls(void 0,q,Je,Je,Je),Ll=ls(void 0,q,Je,Je,Je),md=rd(),Pc=rd();Pc.constraint=md;var bl=rd(),ss=rd(),qs=rd();qs.constraint=ss;var Rs=iM(1,"<<unresolved>>",0,Se),As=Am(void 0,void 0,void 0,Je,Se,void 0,0,0),jt=Am(void 0,void 0,void 0,Je,ve,void 0,0,0),yc=Am(void 0,void 0,void 0,Je,Se,void 0,0,0),Ql=Am(void 0,void 0,void 0,Je,Qe,void 0,0,0),yu=Fp(rt,ae,!0),se=new Map,ht={get yieldType(){return L.fail("Not supported")},get returnType(){return L.fail("Not supported")},get nextType(){return L.fail("Not supported")}},wt=Eg(Se,Se,Se),K=Eg(Se,Se,ue),Xe=Eg(lt,Se,Oe),ft={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:hKe,getGlobalIterableType:ZG,getGlobalIterableIteratorType:gKe,getGlobalGeneratorType:yKe,resolveIterationType:rT,mustHaveANextMethodDiagnostic:_.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Yt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:vKe,getGlobalIterableType:pne,getGlobalIterableIteratorType:bKe,getGlobalGeneratorType:EKe,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:_.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},pr,yr=new Map,ta=!1,Go,Ka,vo,ka,Hs,Uc,Gu,$o,jo,Ws,hd,vc,nf,ye,Et,bn,Ri,io,ee,Ze,At,xt,qt,Ln,mr,Vr,gi,Ea,bo,Qo,Cs,Bu,Pd,Dc,gd,Zl,Md,zf,Io,Jf,Fd,E_,Y_,M,He,Nt,Pn,la,oa,be,De,mt,St,Zt,rn=new Map,sn=0,Dn=0,kr=0,ki=!1,Vn=0,$t,Xn,ra,Is=[],Mc=[],mm=[],Hh=0,T_=[],Cb=[],mv=0,gx=ff(""),_1=op(0),yx=aB({negative:!1,base10Value:"0"}),Wh=[],S_=[],hv=[],eh=0,$_=10,gv=[],lE=[],Ib=[],zh=[],p1=[],uE=[],dE=[],fE=[],yv=[],vx=[],_E=[],pE=[],vv=[],Lb=[],bv=[],m1=[],Jh=[],Lo=XA(),mE=XA(),sC=Tm(),Zg,Kh,hm=new Map,x_=new Map,Zu=new Map,ed=new Map,td=new Map,kb=new Map,Db=Ua();Db.set(Le.escapedName,Le);var bx=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",Y.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return grt(),qe;function wb(n){return n?Kn.get(n):void 0}function qh(n,a){return n&&Kn.set(n,a),a}function Rb(n){if(n){let a=Gn(n);if(a)if(US(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let p=ba(c)?c[0]:c;if(a.localJsxFragmentFactory=zS(p.arguments.factory,R),$e(a.localJsxFragmentFactory,Ob,Cd),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=Yd(a.localJsxFragmentFactory).escapedText}let u=Kie(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=Yd(u).escapedText}else{let c=h1(a);if(c)return a.localJsxNamespace=c}}return Zg||(Zg="React",Y.jsxFactory?(Kh=zS(Y.jsxFactory,R),$e(Kh,Ob),Kh&&(Zg=Yd(Kh).escapedText)):Y.reactNamespace&&(Zg=Bs(Y.reactNamespace))),Kh||(Kh=D.createQualifiedName(D.createIdentifier(Gi(Zg)),"createElement")),Zg}function h1(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=ba(a)?a[0]:a;if(n.localJsxFactory=zS(c.arguments.factory,R),$e(n.localJsxFactory,Ob,Cd),n.localJsxFactory)return n.localJsxNamespace=Yd(n.localJsxFactory).escapedText}}function Ob(n){return om(n,-1,-1),xn(n,Ob,Bh)}function cC(n,a){return HLe(n,a),Ie}function Ex(n,a,c,u,p,h){let T=n?hr(n,a,c,u,p,h):ps(a,c,u,p,h),k=Lo.lookup(T);return k||(Lo.add(T),T)}function Ev(n,a,c,u,p,h,T){let k=Fe(a,c,u,p,h,T);return k.skippedOn=n,k}function hE(n,a,c,u,p,h){return n?hr(n,a,c,u,p,h):ps(a,c,u,p,h)}function Fe(n,a,c,u,p,h){let T=hE(n,a,c,u,p,h);return Lo.add(T),T}function ey(n,a){n?Lo.add(a):mE.add({...a,category:2})}function Ip(n,a,c,u,p,h,T){if(a.pos<0||a.end<0){if(!n)return;let k=Gn(a);ey(n,"message"in c?al(k,0,0,c,u,p,h,T):yH(k,c));return}ey(n,"message"in c?hr(a,c,u,p,h,T):Lh(Gn(a),a,c))}function Tv(n,a,c,u,p,h,T){let k=Fe(n,c,u,p,h,T);if(a){let O=hr(n,_.Did_you_forget_to_use_await);Ao(k,O)}return k}function Nb(n,a){let c=Array.isArray(n)?mn(n,Cj):Cj(n);return c&&Ao(a,hr(c,_.The_declaration_was_marked_as_deprecated_here)),mE.add(a),a}function Sv(n){if(Fn(n.declarations)>1){let a=ju(n);if(a&&a.flags&64)return vt(n.declarations,c=>!!(G_(c)&268435456))}return!!(WB(n)&268435456)}function Xh(n,a,c){let u=hr(n,_._0_is_deprecated,c);return Nb(a,u)}function g1(n,a,c,u){let p=c?hr(n,_.The_signature_0_of_1_is_deprecated,u,c):hr(n,_._0_is_deprecated,u);return Nb(a,p)}function wo(n,a,c){S++;let u=new d(n|33554432,a);return u.links=new yK,u.links.checkFlags=c||0,u}function A_(n,a){let c=wo(1,n);return c.links.type=a,c}function gE(n,a){let c=wo(4,n);return c.links.type=a,c}function Kc(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function th(n,a){a.mergeId||(a.mergeId=hK,hK++),gv[a.mergeId]=n}function Pb(n){let a=wo(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),th(a,n),a}function C_(n,a,c=!1){if(!(n.flags&Kc(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let p=Ac(n);if(p===Ht)return a;n=Pb(p)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&rR(n,a.valueDeclaration),si(n.declarations,a.declarations),a.members&&(n.members||(n.members=Ua()),ll(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Ua()),ll(n.exports,a.exports,c)),c||th(n,a)}else if(n.flags&1024)n!==Ye&&Fe(a.declarations&&sa(a.declarations[0]),_.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,E(n));else{let p=!!(n.flags&384||a.flags&384),h=!!(n.flags&2||a.flags&2),T=p?_.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0,k=a.declarations&&Gn(a.declarations[0]),O=n.declarations&&Gn(n.declarations[0]),H=h6(k,Y.checkJs),J=h6(O,Y.checkJs),de=E(a);if(k&&O&&pr&&!p&&k!==O){let Ae=cT(k.path,O.path)===-1?k:O,xe=Ae===k?O:k,tt=VD(pr,`${Ae.path}|${xe.path}`,()=>({firstFile:Ae,secondFile:xe,conflictingSymbols:new Map})),It=VD(tt.conflictingSymbols,de,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));H||u(It.firstFileLocations,a),J||u(It.secondFileLocations,n)}else H||Mb(a,T,de,n),J||Mb(n,T,de,a)}return n;function u(p,h){if(h.declarations)for(let T of h.declarations)Of(p,T)}}function Mb(n,a,c,u){mn(n.declarations,p=>{Ml(p,a,c,u.declarations)})}function Ml(n,a,c,u){let p=(ob(n,!1)?wH(n):sa(n))||n,h=Ex(p,a,c);for(let T of u||Je){let k=(ob(T,!1)?wH(T):sa(T))||T;if(k===p)continue;h.relatedInformation=h.relatedInformation||[];let O=hr(k,_._0_was_also_declared_here,c),H=hr(k,_.and_here);Fn(h.relatedInformation)>=5||vt(h.relatedInformation,J=>ZI(J,H)===0||ZI(J,O)===0)||Ao(h,Fn(h.relatedInformation)?H:O)}}function Yh(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Ua();return ll(c,n),ll(c,a),c}function ll(n,a,c=!1){a.forEach((u,p)=>{let h=n.get(p);n.set(p,h?C_(h,u,c):No(u))})}function y1(n){var a,c,u;let p=n.parent;if(((a=p.symbol.declarations)==null?void 0:a[0])!==p){L.assert(p.symbol.declarations.length>1);return}if(mp(p))ll(Ne,p.symbol.exports);else{let h=n.parent.parent.flags&16777216?void 0:_.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=ah(n,n,h,!0);if(!T)return;if(T=Vu(T),T.flags&1920)if(vt(Ka,k=>T===k.symbol)){let k=C_(p.symbol,T,!0);vo||(vo=new Map),vo.set(n.text,k)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=p.symbol.exports)!=null&&u.size)){let k=Mte(T,"resolvedExports");for(let[O,H]of lo(p.symbol.exports.entries()))k.has(O)&&!T.exports.has(O)&&C_(k.get(O),H)}C_(T,p.symbol)}else Fe(n,_.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function lC(n,a,c){a.forEach((p,h)=>{let T=n.get(h);T?mn(T.declarations,u(Gi(h),c)):n.set(h,p)});function u(p,h){return T=>Lo.add(hr(T,h,p))}}function Ai(n){var a;if(n.flags&33554432)return n.links;let c=$a(n);return(a=lE[c])!=null?a:lE[c]=new yK}function Rr(n){let a=zo(n);return Ib[a]||(Ib[a]=new pPe)}function gm(n){return n.kind===308&&!kd(n)}function yd(n,a,c){if(c){let u=No(n.get(a));if(u&&(L.assert((ac(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Fl(u)&c))return u}}function yE(n,a){let c=n.parent,u=n.parent.parent,p=yd(c.locals,a,111551),h=yd(vy(u.symbol),a,111551);return p&&h?[p,h]:L.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function $h(n,a){let c=Gn(n),u=Gn(a),p=tm(n);if(c!==u){if(ie&&(c.externalModuleIndicator||u.externalModuleIndicator)||!Ss(Y)||kC(a)||n.flags&16777216||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(n.pos<=a.pos&&!(Na(n)&&zw(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===205){let O=cb(a,205);return O?jn(O,Wo)!==jn(n,Wo)||n.pos<O.pos:$h(cb(n,257),a)}else{if(n.kind===257)return!h(n,a);if(sl(n))return!jn(a,O=>ts(O)&&O.parent.parent===n);if(Na(n))return!k(n,a,!1);if(Ad(n,n.parent))return!(Do(Y)===99&&fe&&Zc(n)===Zc(a)&&T(a,n))}return!0}if(a.parent.kind===278||a.parent.kind===274&&a.parent.isExportEquals||a.kind===274&&a.isExportEquals||a.flags&8388608||kC(a)||k2e(a))return!0;if(T(a,n))return Do(Y)===99&&fe&&Zc(n)&&(Na(n)||Ad(n,n.parent))?!k(n,a,!0):!0;return!1;function h(O,H){switch(O.parent.parent.kind){case 240:case 245:case 247:if(Lp(H,O,p))return!0;break}let J=O.parent.parent;return CA(J)&&Lp(H,J.expression,p)}function T(O,H){return!!jn(O,J=>{if(J===p)return"quit";if(Ia(J))return!0;if(oc(J))return H.pos<O.pos;let de=zr(J.parent,Na);if(de&&de.initializer===J){if(Ca(J.parent)){if(H.kind===171)return!0;if(Na(H)&&Zc(O)===Zc(H)){let xe=H.name;if(Re(xe)||pi(xe)){let tt=zn(fr(H)),It=Pr(H.parent.members,oc);if(tnt(xe,tt,It,H.parent.pos,J.pos))return!0}}}else if(!(H.kind===169&&!Ca(H))||Zc(O)!==Zc(H))return!0}return!1})}function k(O,H,J){return H.end>O.end?!1:jn(H,Ae=>{if(Ae===O)return"quit";switch(Ae.kind){case 216:return!0;case 169:return J&&(Na(O)&&Ae.parent===O.parent||Ad(O,O.parent)&&Ae.parent===O.parent.parent)?"quit":!0;case 238:switch(Ae.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})===void 0}}function nh(n,a,c){let u=Do(Y),p=a;if(ha(c)&&p.body&&n.valueDeclaration&&n.valueDeclaration.pos>=p.body.pos&&n.valueDeclaration.end<=p.body.end&&u>=2){let k=Rr(p);return k.declarationRequiresScopeChange===void 0&&(k.declarationRequiresScopeChange=mn(p.parameters,h)||!1),!k.declarationRequiresScopeChange}return!1;function h(k){return T(k.name)||!!k.initializer&&T(k.initializer)}function T(k){switch(k.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return T(k.name);case 169:return zc(k)?u<99||!fe:T(k.name);default:return wj(k)||Jl(k)?u<7:Wo(k)&&k.dotDotDotToken&&cm(k.parent)?u<4:bi(k)?!1:pa(k,T)||!1}}}function ym(n){return pT(n)&&Ch(n.type)||DL(n)&&Ch(n.typeExpression)}function zs(n,a,c,u,p,h,T=!1,k=!0){return Fb(n,a,c,u,p,h,T,k,yd)}function Fb(n,a,c,u,p,h,T,k,O){var H,J,de;let Ae=n,xe,tt,It,Tn,un,Nn=!1,en=n,cn,rr=!1;e:for(;n;){if(a==="const"&&ym(n))return;if(Qp(n)&&n.locals&&!gm(n)&&(xe=O(n.locals,a,c))){let Cn=!0;if(Ia(n)&&tt&&tt!==n.body?(c&xe.flags&788968&&tt.kind!==323&&(Cn=xe.flags&262144?tt===n.type||tt.kind===166||tt.kind===344||tt.kind===345||tt.kind===165:!1),c&xe.flags&3&&(nh(xe,n,tt)?Cn=!1:xe.flags&1&&(Cn=tt.kind===166||tt===n.type&&!!jn(xe.valueDeclaration,ha)))):n.kind===191&&(Cn=tt===n.trueType),Cn)break e;xe=void 0}switch(Nn=Nn||Gb(n,tt),n.kind){case 308:if(!kd(n))break;rr=!0;case 264:let Cn=((H=fr(n))==null?void 0:H.exports)||q;if(n.kind===308||Tc(n)&&n.flags&16777216&&!mp(n)){if(xe=Cn.get("default")){let Hr=QA(xe);if(Hr&&xe.flags&c&&Hr.escapedName===a)break e;xe=void 0}let Br=Cn.get(a);if(Br&&Br.flags===2097152&&(nc(Br,278)||nc(Br,277)))break}if(a!=="default"&&(xe=O(Cn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((J=xe.declarations)!=null&&J.some(Ff)))xe=void 0;else break e;break;case 263:if(xe=O(((de=fr(n))==null?void 0:de.exports)||q,a,c&8)){u&&d_(Y)&&!(n.flags&16777216)&&Gn(n)!==Gn(xe.valueDeclaration)&&Fe(en,_.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Gi(a),Rt,`${Gi(vd(n).escapedName)}.${Gi(a)}`);break e}break;case 169:if(!Ca(n)){let Br=wv(n.parent);Br&&Br.locals&&O(Br.locals,a,c&111551)&&(L.assertNode(n,Na),Tn=n)}break;case 260:case 228:case 261:if(xe=O(fr(n).members||q,a,c&788968)){if(!Tx(xe,n)){xe=void 0;break}if(tt&&Ca(tt)){u&&Fe(en,_.Static_members_cannot_reference_class_type_parameters);return}break e}if(_u(n)&&c&32){let Br=n.name;if(Br&&a===Br.escapedText){xe=n.symbol;break e}}break;case 230:if(tt===n.expression&&n.parent.token===94){let Br=n.parent.parent;if(Yr(Br)&&(xe=O(fr(Br).members,a,c&788968))){u&&Fe(en,_.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 164:if(cn=n.parent.parent,(Yr(cn)||cn.kind===261)&&(xe=O(fr(cn).members,a,c&788968))){u&&Fe(en,_.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 216:if(Do(Y)>=2)break;case 171:case 173:case 174:case 175:case 259:if(c&3&&a==="arguments"){xe=_t;break e}break;case 215:if(c&3&&a==="arguments"){xe=_t;break e}if(c&16){let Br=n.name;if(Br&&a===Br.escapedText){xe=n.symbol;break e}}break;case 167:n.parent&&n.parent.kind===166&&(n=n.parent),n.parent&&(_l(n.parent)||n.parent.kind===260)&&(n=n.parent);break;case 349:case 341:case 343:let Rn=OI(n);Rn&&(n=Rn.parent);break;case 166:tt&&(tt===n.initializer||tt===n.name&&La(tt))&&(un||(un=n));break;case 205:tt&&(tt===n.initializer||tt===n.name&&La(tt))&&CT(n)&&!un&&(un=n);break;case 192:if(c&262144){let Br=n.typeParameter.name;if(Br&&a===Br.escapedText){xe=n.typeParameter.symbol;break e}}break}b1(n)&&(It=n),tt=n,n=H_(n)?J6(n)||n.parent:(xp(n)||y3(n))&&sb(n)||n.parent}if(h&&xe&&(!It||xe!==It.symbol)&&(xe.isReferenced|=c),!xe){if(tt&&(L.assertNode(tt,Li),tt.commonJsModuleIndicator&&a==="exports"&&c&tt.symbol.flags))return tt.symbol;T||(xe=O(Ne,a,c))}if(!xe&&Ae&&Yn(Ae)&&Ae.parent&&qu(Ae.parent,!1))return ct;function Jt(){return Tn&&!(fe&&Do(Y)>=9)?(Fe(en,en&&Tn.type&&Y8(Tn.type,en.pos)?_.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,os(Tn.name),Cf(p)),!0):!1}if(xe){if(u&&Jt())return}else{u&&i(()=>{if(!en||!Sx(en,a,p)&&!Jt()&&!xv(en)&&!T1(en,a,c)&&!S1(en,a)&&!Ax(en,a,c)&&!rf(en,a,c)&&!xx(en,a,c)){let Cn,Rn;if(p&&(Rn=aQe(p),Rn&&Fe(en,u,Cf(p),Rn)),!Rn&&k&&eh<$_&&(Cn=Yre(Ae,a,c),Cn?.valueDeclaration&&lu(Cn.valueDeclaration)&&mp(Cn.valueDeclaration)&&(Cn=void 0),Cn)){let Hr=E(Cn),qi=Kre(Ae,Cn,!1),wa=c===1920||p&&typeof p!="string"&&ws(p)?_.Cannot_find_namespace_0_Did_you_mean_1:qi?_.Could_not_find_name_0_Did_you_mean_1:_.Cannot_find_name_0_Did_you_mean_1,Xc=hE(en,wa,Cf(p),Hr);ey(!qi,Xc),Cn.valueDeclaration&&Ao(Xc,hr(Cn.valueDeclaration,_._0_is_declared_here,Hr))}!Cn&&!Rn&&p&&Fe(en,u,Cf(p)),eh++}});return}return u&&i(()=>{if(en&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Cn=tp(xe);(Cn.flags&2||Cn.flags&32||Cn.flags&384)&&Ub(Cn,en)}if(xe&&rr&&(c&111551)===111551&&!(Ae.flags&8388608)){let Cn=No(xe);Fn(Cn.declarations)&&Ji(Cn.declarations,Rn=>gO(Rn)||Li(Rn)&&!!Rn.symbol.globalExports)&&Ip(!Y.allowUmdGlobalAccess,en,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Gi(a))}if(xe&&un&&!Nn&&(c&111551)===111551){let Cn=No(zG(xe)),Rn=nm(un);Cn===fr(un)?Fe(en,_.Parameter_0_cannot_reference_itself,os(un.name)):Cn.valueDeclaration&&Cn.valueDeclaration.pos>un.pos&&Rn.parent.locals&&O(Rn.parent.locals,Cn.escapedName,c)===Cn&&Fe(en,_.Parameter_0_cannot_reference_identifier_1_declared_after_it,os(un.name),os(en))}if(xe&&en&&c&111551&&xe.flags&2097152&&!(xe.flags&111551)&&!TS(en)){let Cn=nd(xe,111551);if(Cn){let Rn=Cn.kind===278||Cn.kind===275||Cn.kind===277?_._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Br=Gi(a);v1(Fe(en,Rn,Br),Cn,Br)}}}),xe}function v1(n,a,c){return a?Ao(n,hr(a,a.kind===278||a.kind===275||a.kind===277?_._0_was_exported_here:_._0_was_imported_here,c)):n}function Gb(n,a){return n.kind!==216&&n.kind!==215?vL(n)||(Ds(n)||n.kind===169&&!Ca(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Mr(n,512)?!0:!ET(n)}function b1(n){switch(n.kind){case 259:case 260:case 261:case 263:case 262:case 264:return!0;default:return!1}}function Cf(n){return Ta(n)?Gi(n):os(n)}function Tx(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===165&&(H_(c.parent)?dS(c.parent):c.parent)===a)return!(H_(c.parent)&&wr(c.parent.parent.tags,Ff))}return!1}function Sx(n,a,c){if(!Re(n)||n.escapedText!==a||WLe(n)||kC(n))return!1;let u=Ku(n,!1,!1),p=u;for(;p;){if(Yr(p.parent)){let h=fr(p.parent);if(!h)break;let T=zn(h);if(ja(T,a))return Fe(n,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Cf(c),E(h)),!0;if(p===u&&!Ca(p)){let k=gs(h).thisType;if(ja(k,a))return Fe(n,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Cf(c)),!0}}p=p.parent}return!1}function xv(n){let a=E1(n);return a&&uc(a,64,!0)?(Fe(n,_.Cannot_extend_an_interface_0_Did_you_mean_implements,Qc(a)),!0):!1}function E1(n){switch(n.kind){case 79:case 208:return n.parent?E1(n.parent):void 0;case 230:if(bc(n.expression))return n.expression;default:return}}function T1(n,a,c){let u=1920|(Yn(n)?111551:0);if(c===u){let p=Ac(zs(n,a,788968&~u,void 0,void 0,!1)),h=n.parent;if(p){if(Yu(h)){L.assert(h.left===n,"Should only be resolving left side of qualified name as a namespace");let T=h.right.escapedText;if(ja(gs(p),T))return Fe(h,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Gi(a),Gi(T)),!0}return Fe(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Gi(a)),!0}}return!1}function xx(n,a,c){if(c&788584){let u=Ac(zs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return Fe(n,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Gi(a)),!0}return!1}function Bb(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function S1(n,a){return Bb(a)&&n.parent.kind===278?(Fe(n,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function rf(n,a,c){if(c&111551){if(Bb(a))return Qh(n)?Fe(n,_.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Gi(a)):Fe(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Gi(a)),!0;let u=Ac(zs(n,a,788544,void 0,void 0,!1)),p=u&&Fl(u);if(u&&p!==void 0&&!(p&111551)){let h=Gi(a);return I_(a)?Fe(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,h):Q_(n,u)?Fe(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):Fe(n,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function Qh(n){let a=n.parent.parent,c=a.parent;if(a&&c){let u=dd(a)&&a.token===94,p=ku(c);return u&&p}return!1}function Q_(n,a){let c=jn(n.parent,u=>ts(u)||$d(u)?!1:Rd(u)||"quit");if(c&&c.members.length===1){let u=gs(a);return!!(u.flags&1048576)&&zM(u,384,!0)}return!1}function I_(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function Ax(n,a,c){if(c&111127){if(Ac(zs(n,a,1024,void 0,void 0,!1)))return Fe(n,_.Cannot_use_namespace_0_as_a_value,Gi(a)),!0}else if(c&788544&&Ac(zs(n,a,1536,void 0,void 0,!1)))return Fe(n,_.Cannot_use_namespace_0_as_a_type,Gi(a)),!0;return!1}function Ub(n,a){var c;if(L.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(p=>sH(p)||Yr(p)||p.kind===263);if(u===void 0)return L.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&16777216)&&!$h(u,a)){let p,h=os(sa(u));n.flags&2?p=Fe(a,_.Block_scoped_variable_0_used_before_its_declaration,h):n.flags&32?p=Fe(a,_.Class_0_used_before_its_declaration,h):n.flags&256?p=Fe(a,_.Enum_0_used_before_its_declaration,h):(L.assert(!!(n.flags&128)),U0(Y)&&(p=Fe(a,_.Enum_0_used_before_its_declaration,h))),p&&Ao(p,hr(u,_._0_is_declared_here,h))}}function Lp(n,a,c){return!!a&&!!jn(n,u=>u===a||(u===c||Ia(u)&&(!ET(u)||qA(u))?"quit":!1))}function x1(n){switch(n.kind){case 268:return n;case 270:return n.parent;case 271:return n.parent.parent;case 273:return n.parent.parent.parent;default:return}}function Uu(n){return n.declarations&&dA(n.declarations,Zh)}function Zh(n){return n.kind===268||n.kind===267||n.kind===270&&!!n.name||n.kind===271||n.kind===277||n.kind===273||n.kind===278||n.kind===274&&zA(n)||ar(n)&&ic(n)===2&&zA(n)||Us(n)&&ar(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63&&kp(n.parent.right)||n.kind===300||n.kind===299&&kp(n.initializer)||n.kind===257&&N0(n)||n.kind===205&&N0(n.parent.parent)}function kp(n){return pR(n)||ms(n)&&cp(n)}function Dp(n,a){let c=ry(n);if(c){let p=$I(c.expression).arguments[0];return Re(c.name)?Ac(ja(Fxe(p),c.name.escapedText)):void 0}if(wi(n)||n.moduleReference.kind===280){let p=Gl(n,IH(n)||wI(n)),h=Vu(p);return qf(n,p,h,!1),h}let u=ep(n.moduleReference,a);return eg(n,u),u}function eg(n,a){if(qf(n,void 0,a,!1)&&!n.isTypeOnly){let c=nd(fr(n)),u=c.kind===278||c.kind===275,p=u?_.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=u?_._0_was_exported_here:_._0_was_imported_here,T=c.kind===275?"*":Gi(c.name.escapedText);Ao(Fe(n.moduleReference,p),hr(c,h,T))}}function vE(n,a,c,u){let p=n.exports.get("export="),h=p?ja(zn(p),a,!0):n.exports.get(a),T=Ac(h,u);return qf(c,h,T,!1),T}function A1(n){return pc(n)&&!n.isExportEquals||Mr(n,1024)||Mu(n)}function ty(n){return es(n)?W_(Gn(n),n):void 0}function bE(n,a){return n===99&&a===1}function cs(n){return ty(n)===99&&Oc(n.text,".json")}function ny(n,a,c,u){let p=n&&ty(u);if(n&&p!==void 0){let h=bE(p,n.impliedNodeFormat);if(p===99||h)return h}if(!Z)return!1;if(!n||n.isDeclarationFile){let h=vE(a,"default",void 0,!0);return!(h&&vt(h.declarations,A1)||vE(a,Bs("__esModule"),void 0,c))}return Cu(n)?typeof n.externalModuleIndicator!="object"&&!vE(a,Bs("__esModule"),void 0,c):AE(a)}function Cx(n,a){let c=Gl(n,n.parent.moduleSpecifier);if(c)return Vb(c,n,a)}function Vb(n,a,c){var u;let p;CI(n)?p=n:p=vE(n,"default",a,c);let h=(u=n.declarations)==null?void 0:u.find(Li),T=jb(a);if(!T)return p;let k=cs(T),O=ny(h,n,c,T);if(!p&&!O&&!k)if(AE(n)&&!(wT(Y)||f_(Y))){let H=ie>=5?"allowSyntheticDefaultImports":"esModuleInterop",de=n.exports.get("export=").valueDeclaration,Ae=Fe(a.name,_.Module_0_can_only_be_default_imported_using_the_1_flag,E(n),H);de&&Ao(Ae,hr(de,_.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,H))}else lm(a)?Ix(n,a):Av(n,n,a,eS(a)&&a.propertyName||a.name);else if(O||k){let H=Vu(n,c)||Ac(n,c);return qf(a,n,H,!1),H}return qf(a,p,void 0,!1),p}function jb(n){switch(n.kind){case 270:return n.parent.moduleSpecifier;case 268:return um(n.moduleReference)?n.moduleReference.expression:void 0;case 271:return n.parent.parent.moduleSpecifier;case 273:return n.parent.parent.parent.moduleSpecifier;case 278:return n.parent.parent.moduleSpecifier;default:return L.assertNever(n)}}function Ix(n,a){var c,u,p;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))Fe(a.name,_.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,E(n),E(a.symbol));else{let h=Fe(a.name,_.Module_0_has_no_default_export,E(n)),T=(u=n.exports)==null?void 0:u.get("__export");if(T){let k=(p=T.declarations)==null?void 0:p.find(O=>{var H,J;return!!(Il(O)&&O.moduleSpecifier&&((J=(H=Gl(O,O.moduleSpecifier))==null?void 0:H.exports)!=null&&J.has("default")))});k&&Ao(h,hr(k,_.export_Asterisk_does_not_re_export_a_default))}}}function uC(n,a){let c=n.parent.parent.moduleSpecifier,u=Gl(n,c),p=Jb(u,c,a,!1);return qf(n,u,p,!1),p}function Lx(n,a){let c=n.parent.moduleSpecifier,u=c&&Gl(n,c),p=c&&Jb(u,c,a,!1);return qf(n,u,p,!1),p}function Qn(n,a){if(n===Ht&&a===Ht)return Ht;if(n.flags&790504)return n;let c=wo(n.flags|a.flags,n.escapedName);return L.assert(n.declarations||a.declarations),c.declarations=fA(Qi(n.declarations,a.declarations),Zv),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function lc(n,a,c,u){var p;if(n.flags&1536){let h=Gd(n).get(a.escapedText),T=Ac(h,u),k=(p=Ai(n).typeOnlyExportStarMap)==null?void 0:p.get(a.escapedText);return qf(c,h,T,!1,k,a.escapedText),T}}function zi(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return Ac(ja($r(c),a))}}function af(n,a,c=!1){var u;let p=IH(n)||n.moduleSpecifier,h=Gl(n,p),T=!br(a)&&a.propertyName||a.name;if(!Re(T))return;let k=T.escapedText==="default"&&!!(Y.allowSyntheticDefaultImports||f_(Y)),O=Jb(h,p,!1,k);if(O&&T.escapedText){if(CI(h))return h;let H;h&&h.exports&&h.exports.get("export=")?H=ja(zn(O),T.escapedText,!0):H=zi(O,T.escapedText),H=Ac(H,c);let J=lc(O,T,a,c);if(J===void 0&&T.escapedText==="default"){let Ae=(u=h.declarations)==null?void 0:u.find(Li);(cs(p)||ny(Ae,h,c,p))&&(J=Vu(h,c)||Ac(h,c))}let de=J&&H&&J!==H?Qn(H,J):J||H;return de||Av(h,O,n,T),de}}function Av(n,a,c,u){var p;let h=rh(n,c),T=os(u),k=qB(u,a);if(k!==void 0){let O=E(k),H=Fe(u,_._0_has_no_exported_member_named_1_Did_you_mean_2,h,T,O);k.valueDeclaration&&Ao(H,hr(k.valueDeclaration,_._0_is_declared_here,O))}else(p=n.exports)!=null&&p.has("default")?Fe(u,_.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,T):vm(c,u,T,n,h)}function vm(n,a,c,u,p){var h,T;let k=(T=(h=zr(u.valueDeclaration,Qp))==null?void 0:h.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(k){let H=O?.get("export=");if(H)wp(H,k)?Wn(n,a,c,p):Fe(a,_.Module_0_has_no_exported_member_1,p,c);else{let J=O?wr(ene(O),Ae=>!!wp(Ae,k)):void 0,de=J?Fe(a,_.Module_0_declares_1_locally_but_it_is_exported_as_2,p,c,E(J)):Fe(a,_.Module_0_declares_1_locally_but_it_is_not_exported,p,c);k.declarations&&Ao(de,...on(k.declarations,(Ae,xe)=>hr(Ae,xe===0?_._0_is_declared_here:_.and_here,c)))}}else Fe(a,_.Module_0_has_no_exported_member_1,p,c)}function Wn(n,a,c,u){if(ie>=5){let p=f_(Y)?_._0_can_only_be_imported_by_using_a_default_import:_._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(a,p,c)}else if(Yn(n)){let p=f_(Y)?_._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(a,p,c)}else{let p=f_(Y)?_._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Fe(a,p,c,c,u)}}function kx(n,a){if($u(n)&&vr(n.propertyName||n.name)==="default"){let T=jb(n),k=T&&Gl(n,T);if(k)return Vb(k,n,a)}let c=Wo(n)?nm(n):n.parent.parent.parent,u=ry(c),p=af(c,u||n,a),h=n.propertyName||n.name;return u&&p&&Re(h)?Ac(ja(zn(p),h.escapedText),a):(qf(n,void 0,p,!1),p)}function ry(n){if(wi(n)&&n.initializer&&br(n.initializer))return n.initializer}function nl(n,a){if($p(n.parent)){let c=Vu(n.parent.symbol,a);return qf(n,void 0,c,!1),c}}function Kf(n,a,c){if(vr(n.propertyName||n.name)==="default"){let p=jb(n),h=p&&Gl(n,p);if(h)return Vb(h,n,!!c)}let u=n.parent.parent.moduleSpecifier?af(n.parent.parent,n,c):uc(n.propertyName||n.name,a,!1,c);return qf(n,void 0,u,!1),u}function Z_(n,a){let c=pc(n)?n.expression:n.right,u=iy(c,a);return qf(n,void 0,u,!1),u}function iy(n,a){if(_u(n))return Ic(n).symbol;if(!Cd(n)&&!bc(n))return;let c=uc(n,901119,!0,a);return c||(Ic(n),Rr(n).resolvedSymbol)}function EE(n,a){if(ar(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===63)return iy(n.parent.right,a)}function L_(n,a=!1){switch(n.kind){case 268:case 257:return Dp(n,a);case 270:return Cx(n,a);case 271:return uC(n,a);case 277:return Lx(n,a);case 273:case 205:return kx(n,a);case 278:return Kf(n,901119,a);case 274:case 223:return Z_(n,a);case 267:return nl(n,a);case 300:return uc(n.name,901119,!0,a);case 299:return iy(n.initializer,a);case 209:case 208:return EE(n,a);default:return L.fail()}}function ay(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Ac(n,a){return!a&&ay(n)?wc(n):n}function wc(n){L.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Ai(n);if(a.aliasTarget)a.aliasTarget===En&&(a.aliasTarget=Ht);else{a.aliasTarget=En;let c=Uu(n);if(!c)return L.fail();let u=L_(c);a.aliasTarget===En?a.aliasTarget=u||Ht:Fe(c,_.Circular_definition_of_import_alias_0,E(n))}return a.aliasTarget}function tg(n){if(Ai(n).aliasTarget!==En)return wc(n)}function Fl(n){let a=n.flags,c;for(;n.flags&2097152;){let u=wc(n);if(u===Ht)return 67108863;if(u===n||c?.has(u))break;u.flags&2097152&&(c?c.add(u):c=new Set([n,u])),a|=u.flags,n=u}return a}function qf(n,a,c,u,p,h){if(!n||br(n))return!1;let T=fr(n);if(I0(n)){let O=Ai(T);return O.typeOnlyDeclaration=n,!0}if(p){let O=Ai(T);return O.typeOnlyDeclaration=p,T.escapedName!==h&&(O.typeOnlyExportStarName=h),!0}let k=Ai(T);return bm(k,a,u)||bm(k,c,u)}function bm(n,a,c){var u,p,h;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let T=(p=(u=a.exports)==null?void 0:u.get("export="))!=null?p:a,k=T.declarations&&wr(T.declarations,I0);n.typeOnlyDeclaration=(h=k??Ai(T).typeOnlyDeclaration)!=null?h:!1}return!!n.typeOnlyDeclaration}function nd(n,a){if(!(n.flags&2097152))return;let c=Ai(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===275?Ac(sh(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):wc(c.typeOnlyDeclaration.symbol);return Fl(u)&a?c.typeOnlyDeclaration:void 0}}function TE(n){if(Y.verbatimModuleSyntax)return;let a=fr(n),c=wc(a);c&&(c===Ht||Fl(c)&111551&&!MD(c)&&!nd(a,111551))&&Hb(a)}function Hb(n){L.assert(!Y.verbatimModuleSyntax);let a=Ai(n);if(!a.referenced){a.referenced=!0;let c=Uu(n);if(!c)return L.fail();GA(c)&&Fl(Ac(n))&111551&&Ic(c.moduleReference)}}function Wb(n){let a=Ai(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ep(n,a){return n.kind===79&&zI(n)&&(n=n.parent),n.kind===79||n.parent.kind===163?uc(n,1920,!1,a):(L.assert(n.parent.kind===268),uc(n,901119,!1,a))}function rh(n,a){return n.parent?rh(n.parent,a)+"."+E(n):E(n,a,void 0,36)}function SE(n){for(;Yu(n.parent);)n=n.parent;return n}function oy(n){let a=Yd(n),c=zs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;Yu(a.parent);){let u=zn(c);if(c=ja(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function uc(n,a,c,u,p){if(rc(n))return;let h=1920|(Yn(n)?a&111551:0),T;if(n.kind===79){let k=a===h||ws(n)?_.Cannot_find_namespace_0:L2e(Yd(n)),O=Yn(n)&&!ws(n)?ng(n,a):void 0;if(T=No(zs(p||n,n.escapedText,a,c||O?void 0:k,n,!0,!1)),!T)return No(O)}else if(n.kind===163||n.kind===208){let k=n.kind===163?n.left:n.expression,O=n.kind===163?n.right:n.name,H=uc(k,h,c,!1,p);if(!H||rc(O))return;if(H===Ht)return H;if(H.valueDeclaration&&Yn(H.valueDeclaration)&&$s(Y)!==100&&wi(H.valueDeclaration)&&H.valueDeclaration.initializer&&dIe(H.valueDeclaration.initializer)){let J=H.valueDeclaration.initializer.arguments[0],de=Gl(J,J);if(de){let Ae=Vu(de);Ae&&(H=Ae)}}if(T=No(yd(Gd(H),O.escapedText,a)),!T){if(!c){let J=rh(H),de=os(O),Ae=qB(O,H);if(Ae){Fe(O,_._0_has_no_exported_member_named_1_Did_you_mean_2,J,de,E(Ae));return}let xe=Yu(n)&&SE(n);if(ka&&a&788968&&xe&&!y2(xe.parent)&&oy(xe)){Fe(xe,_._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,qd(xe));return}if(a&1920&&Yu(n.parent)){let It=No(yd(Gd(H),O.escapedText,788968));if(It){Fe(n.parent.right,_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,E(It),Gi(n.parent.right.escapedText));return}}Fe(O,_.Namespace_0_has_no_exported_member_1,J,de)}return}}else throw L.assertNever(n,"Unknown entity name kind.");return L.assert((ac(T)&1)===0,"Should never get an instantiated symbol here."),!ws(n)&&Cd(n)&&(T.flags&2097152||n.parent.kind===274)&&qf(BH(n),T,void 0,!0),T.flags&a||u?T:wc(T)}function ng(n,a){if($G(n.parent)){let c=ih(n.parent);if(c)return zs(c,n.escapedText,a,void 0,n,!0)}}function ih(n){if(jn(n,p=>IA(p)||p.flags&8388608?Ff(p):"quit"))return;let c=dS(n);if(c&&Ol(c)&&nR(c.expression)){let p=fr(c.expression.left);if(p)return Cv(p)}if(c&&ms(c)&&nR(c.parent)&&Ol(c.parent.parent)){let p=fr(c.parent.left);if(p)return Cv(p)}if(c&&(s_(c)||yl(c))&&ar(c.parent.parent)&&ic(c.parent.parent)===6){let p=fr(c.parent.parent.left);if(p)return Cv(p)}let u=WA(n);if(u&&Ia(u)){let p=fr(u);return p&&p.valueDeclaration}}function Cv(n){let a=n.parent.valueDeclaration;return a?(RI(a)?oS(a):mT(a)?$w(a):void 0)||a:void 0}function Iv(n){let a=n.valueDeclaration;if(!a||!Yn(a)||n.flags&524288||ob(a,!1))return;let c=wi(a)?$w(a):oS(a);if(c){let u=vd(c);if(u)return oie(u,n)}}function Gl(n,a,c){let p=$s(Y)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations;return ah(n,a,c?void 0:p)}function ah(n,a,c,u=!1){return es(a)?qc(n,a.text,c,a,u):void 0}function qc(n,a,c,u,p=!1){var h,T,k,O,H,J,de,Ae,xe;if(na(a,"@types/")){let Cn=_.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Rn=QC(a,"@types/");Fe(u,Cn,Rn,a)}let tt=tne(a,!0);if(tt)return tt;let It=Gn(n),Tn=es(n)?n:((h=jn(n,Dd))==null?void 0:h.arguments[0])||((T=jn(n,gl))==null?void 0:T.moduleSpecifier)||((k=jn(n,ab))==null?void 0:k.moduleReference.expression)||((O=jn(n,Il))==null?void 0:O.moduleSpecifier)||((H=Tc(n)?n:n.parent&&Tc(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:H.name)||((J=ib(n)?n:void 0)==null?void 0:J.argument.literal),un=Tn&&es(Tn)?W_(It,Tn):It.impliedNodeFormat,Nn=$s(Y),en=kA(It,a,un),cn=en&&_q(Y,en,It),rr=en&&(!cn||cn===_.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(en.resolvedFileName);if(rr){if(cn&&Fe(u,cn,a,en.resolvedFileName),en.resolvedUsingTsExtension&&Fu(a)){let Cn=((de=jn(n,gl))==null?void 0:de.importClause)||jn(n,Kp(Nl,Il));(Cn&&!Cn.isTypeOnly||jn(n,Dd))&&Fe(u,_.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Jt(L.checkDefined(r4(a))))}else if(en.resolvedUsingTsExtension&&!VL(Y,It.fileName)){let Cn=L.checkDefined(r4(a));Fe(u,_.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Cn)}if(rr.symbol){if(en.isExternalLibraryImport&&!VR(en.extension)&&xE(!1,u,It,un,en,a),Nn===3||Nn===99){let Cn=It.impliedNodeFormat===1&&!jn(n,Dd)||!!jn(n,Nl),Rn=jn(n,Hr=>Mh(Hr)||Il(Hr)||gl(Hr)),Br=Rn&&Mh(Rn)?(Ae=Rn.assertions)==null?void 0:Ae.assertClause:Rn?.assertClause;if(Cn&&rr.impliedNodeFormat===99&&!qS(Br))if(jn(n,Nl))Fe(u,_.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let Hr,qi=Hm(It.fileName);if(qi===".ts"||qi===".js"||qi===".tsx"||qi===".jsx"){let wa=It.packageJsonScope,Xc=qi===".ts"?".mts":qi===".js"?".mjs":void 0;wa&&!wa.contents.packageJsonContent.type?Xc?Hr=da(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Xc,vi(wa.packageDirectory,"package.json")):Hr=da(void 0,_.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,vi(wa.packageDirectory,"package.json")):Xc?Hr=da(void 0,_.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Xc):Hr=da(void 0,_.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Lo.add(Lh(Gn(u),u,da(Hr,_.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return No(rr.symbol)}c&&Fe(u,_.File_0_is_not_a_module,rr.fileName);return}if(Ka){let Cn=JU(Ka,Rn=>Rn.pattern,a);if(Cn){let Rn=vo&&vo.get(a);return No(Rn||Cn.symbol)}}if(en&&!VR(en.extension)&&cn===void 0||cn===_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(p){let Cn=_.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Fe(u,Cn,a,en.resolvedFileName)}else xE(ge&&!!c,u,It,un,en,a);return}if(c){if(en){let Cn=e.getProjectReferenceRedirect(en.resolvedFileName);if(Cn){Fe(u,_.Output_file_0_has_not_been_built_from_source_file_1,Cn,en.resolvedFileName);return}}if(cn)Fe(u,cn,a,en.resolvedFileName);else{let Cn=Jd(a)&&!gA(a),Rn=Nn===3||Nn===99;if(!RT(Y)&&Gc(a,".json")&&Nn!==1&&l4(Y))Fe(u,_.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(un===99&&Rn&&Cn){let Br=_a(a,ni(It.path)),Hr=(xe=bx.find(([qi,wa])=>e.fileExists(Br+qi)))==null?void 0:xe[1];Hr?Fe(u,_.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Hr):Fe(u,_.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Fe(u,c,a)}}return;function Jt(Cn){let Rn=UR(a,Cn);if(SW(ie)||un===99){let Br=Fu(a)&&VL(Y);return Rn+(Cn===".mts"||Cn===".d.mts"?Br?".mts":".mjs":Cn===".cts"||Cn===".d.mts"?Br?".cts":".cjs":Br?".ts":".js")}return Rn}}function xE(n,a,c,u,{packageId:p,resolvedFileName:h},T){var k,O;let H;if(!fl(T)&&p){let J=(O=(k=c.resolvedModules)==null?void 0:k.get(T,u))==null?void 0:O.node10Result;H=J?da(void 0,_.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,J,J.indexOf(Wg+"@types/")>-1?`@types/${UL(p.name)}`:p.name):oh(p.name)?da(void 0,_.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,p.name,UL(p.name)):zb(p.name)?da(void 0,_.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,p.name,T):da(void 0,_.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,T,UL(p.name))}Ip(n,a,da(H,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,h))}function oh(n){return t().has(rF(n))}function zb(n){return!!t().get(n)}function Vu(n,a){if(n?.exports){let c=Ac(n.exports.get("export="),a),u=Em(No(c),No(n));return No(u)||n}}function Em(n,a){if(!n||n===Ht||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Ai(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:Pb(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Ua()),a.exports.forEach((p,h)=>{h!=="export="&&u.exports.set(h,u.exports.has(h)?C_(u.exports.get(h),p):p)}),Ai(u).cjsExportMerged=u,c.cjsExportMerged=u}function Jb(n,a,c,u){var p;let h=Vu(n,c);if(!c&&h){if(!u&&!(h.flags&1539)&&!nc(h,308)){let k=ie>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Fe(a,_.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,k),h}let T=a.parent;if(gl(T)&&VA(T)||Dd(T)){let k=Dd(T)?T.arguments[0]:T.moduleSpecifier,O=zn(h),H=lIe(O,h,n,k);if(H)return Lv(h,H,T);let J=(p=n?.declarations)==null?void 0:p.find(Li),de=J&&bE(ty(k),J.impliedNodeFormat);if(f_(Y)||de){let Ae=nM(O,0);if((!Ae||!Ae.length)&&(Ae=nM(O,1)),Ae&&Ae.length||ja(O,"default",!0)||de){let xe=uIe(O,h,n,k);return Lv(h,xe,T)}}}}return h}function Lv(n,a,c){let u=wo(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let p=R_(a);return u.links.type=ls(u,p.members,Je,Je,p.indexInfos),u}function AE(n){return n.exports.get("export=")!==void 0}function sy(n){return ene(sh(n))}function C1(n){let a=sy(n),c=Vu(n);if(c!==n){let u=zn(c);CE(u)&&si(a,Jo(u))}return a}function kv(n,a){sh(n).forEach((p,h)=>{LE(h)||a(p,h)});let u=Vu(n);if(u!==n){let p=zn(u);CE(p)&&MJe(p,(h,T)=>{a(h,T)})}}function rg(n,a){let c=sh(a);if(c)return c.get(n)}function of(n,a){let c=rg(n,a);if(c)return c;let u=Vu(a);if(u===a)return;let p=zn(u);return CE(p)?ja(p,n):void 0}function CE(n){return!(n.flags&134348796||Ur(n)&1||_f(n)||po(n))}function Gd(n){return n.flags&6256?Mte(n,"resolvedExports"):n.flags&1536?sh(n):n.exports||q}function sh(n){let a=Ai(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=Dx(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function Dv(n,a,c,u){a&&a.forEach((p,h)=>{if(h==="default")return;let T=n.get(h);if(!T)n.set(h,p),c&&u&&c.set(h,{specifierText:Qc(u.moduleSpecifier)});else if(c&&u&&T&&Ac(T)!==Ac(p)){let k=c.get(h);k.exportsWithDuplicate?k.exportsWithDuplicate.push(u):k.exportsWithDuplicate=[u]}})}function Dx(n){let a=[],c,u=new Set;n=Vu(n);let p=h(n)||q;return c&&u.forEach(T=>c.delete(T)),{exports:p,typeOnlyExportStarMap:c};function h(T,k,O){if(!O&&T?.exports&&T.exports.forEach((de,Ae)=>u.add(Ae)),!(T&&T.exports&&Of(a,T)))return;let H=new Map(T.exports),J=T.exports.get("__export");if(J){let de=Ua(),Ae=new Map;if(J.declarations)for(let xe of J.declarations){let tt=Gl(xe,xe.moduleSpecifier),It=h(tt,xe,O||xe.isTypeOnly);Dv(de,It,Ae,xe)}Ae.forEach(({exportsWithDuplicate:xe},tt)=>{if(!(tt==="export="||!(xe&&xe.length)||H.has(tt)))for(let It of xe)Lo.add(hr(It,_.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ae.get(tt).specifierText,Gi(tt)))}),Dv(H,de)}return k?.isTypeOnly&&(c??(c=new Map),H.forEach((de,Ae)=>c.set(Ae,k))),H}}function No(n){let a;return n&&n.mergeId&&(a=gv[n.mergeId])?a:n}function fr(n){return No(n.symbol&&zG(n.symbol))}function vd(n){return $p(n)?fr(n):void 0}function ju(n){return No(n.parent&&zG(n.parent))}function I1(n,a){let c=Gn(a),u=zo(c),p=Ai(n),h;if(p.extendedContainersByFile&&(h=p.extendedContainersByFile.get(u)))return h;if(c&&c.imports){for(let k of c.imports){if(ws(k))continue;let O=Gl(a,k,!0);!O||!ly(O,n)||(h=Sn(h,O))}if(Fn(h))return(p.extendedContainersByFile||(p.extendedContainersByFile=new Map)).set(u,h),h}if(p.extendedContainers)return p.extendedContainers;let T=e.getSourceFiles();for(let k of T){if(!Lc(k))continue;let O=fr(k);ly(O,n)&&(h=Sn(h,O))}return p.extendedContainers=h||Je}function IE(n,a,c){let u=ju(n);if(u&&!(n.flags&262144)){let T=Zi(u.declarations,h),k=a&&I1(n,a),O=cy(u,c);if(a&&u.flags&og(c)&&Rv(u,a,1920,!1))return Sn(Qi(Qi([u],T),k),O);let H=!(u.flags&og(c))&&u.flags&788968&&gs(u).flags&524288&&c===111551?DE(a,de=>Ld(de,Ae=>{if(Ae.flags&og(c)&&zn(Ae)===gs(u))return Ae})):void 0,J=H?[H,...T,u]:[...T,u];return J=Sn(J,O),J=si(J,k),J}let p=Zi(n.declarations,T=>{if(!lu(T)&&T.parent){if(sg(T.parent))return fr(T.parent);if(Tp(T.parent)&&T.parent.parent&&Vu(fr(T.parent.parent))===n)return fr(T.parent.parent)}if(_u(T)&&ar(T.parent)&&T.parent.operatorToken.kind===63&&Us(T.parent.left)&&bc(T.parent.left.expression))return Bm(T.parent.left)||TT(T.parent.left.expression)?fr(Gn(T)):(Ic(T.parent.left.expression),Rr(T.parent.left.expression).resolvedSymbol)});if(!Fn(p))return;return Zi(p,T=>ly(T,n)?T:void 0);function h(T){return u&&wx(T,u)}}function cy(n,a){let c=!!Fn(n.declarations)&&Vo(n.declarations);if(a&111551&&c&&c.parent&&wi(c.parent)&&(rs(c)&&c===c.parent.initializer||Rd(c)&&c===c.parent.type))return fr(c.parent)}function wx(n,a){let c=lh(n),u=c&&c.exports&&c.exports.get("export=");return u&&wp(u,a)?c:void 0}function ly(n,a){if(n===ju(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&wp(c,a))return n;let u=Gd(n),p=u.get(a.escapedName);return p&&wp(p,a)?p:Ld(u,h=>{if(wp(h,a))return h})}function wp(n,a){if(No(Ac(No(n)))===No(Ac(No(a))))return n}function tp(n){return No(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function ig(n,a){return!!(n.flags&111551||n.flags&2097152&&Fl(n)&111551&&(a||!nd(n)))}function wv(n){let a=n.members;for(let c of a)if(c.kind===173&&Pf(c.body))return c}function ch(n){var a;let c=new g(qe,n);return v++,c.id=v,(a=ai)==null||a.recordType(c),c}function Rp(n,a){let c=ch(n);return c.symbol=a,c}function L1(n){return new g(qe,n)}function Cc(n,a,c=0){let u=ch(n);return u.intrinsicName=a,u.objectFlags=c,u}function Bd(n,a){let c=Rp(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Tm(){return Gr(lo(fF.keys(),ff))}function rd(n){return Rp(262144,n)}function LE(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function uy(n){let a;return n.forEach((c,u)=>{ag(c,u)&&(a||(a=[])).push(c)}),a||Je}function ag(n,a){return!LE(a)&&ig(n)}function Rx(n){let a=uy(n),c=ane(n);return c?Qi(a,[c]):a}function sf(n,a,c,u,p){let h=n;return h.members=a,h.properties=Je,h.callSignatures=c,h.constructSignatures=u,h.indexInfos=p,a!==q&&(h.properties=uy(a)),h}function ls(n,a,c,u,p){return sf(Bd(16,n),a,c,u,p)}function kE(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Pr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=ls(n.symbol,n.members,n.callSignatures,vt(a)?a:Je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function DE(n,a){let c;for(let u=n;u;u=u.parent){if(Qp(u)&&u.locals&&!gm(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 308:if(!kd(u))break;case 264:let p=fr(u);if(c=a(p?.exports||q,void 0,!0,u))return c;break;case 260:case 228:case 261:let h;if((fr(u).members||q).forEach((T,k)=>{T.flags&788968&&(h||(h=Ua())).set(k,T)}),h&&(c=a(h,void 0,!1,u)))return c;break}}return a(Ne,void 0,!0)}function og(n){return n===111551?111551:1920}function Rv(n,a,c,u,p=new Map){if(!(n&&!wE(n)))return;let h=Ai(n),T=h.accessibleChainCache||(h.accessibleChainCache=new Map),k=DE(a,(un,Nn,en,cn)=>cn),O=`${u?0:1}|${k&&zo(k)}|${c}`;if(T.has(O))return T.get(O);let H=$a(n),J=p.get(H);J||p.set(H,J=[]);let de=DE(a,Ae);return T.set(O,de),de;function Ae(un,Nn,en){if(!Of(J,un))return;let cn=It(un,Nn,en);return J.pop(),cn}function xe(un,Nn){return!k1(un,a,Nn)||!!Rv(un.parent,a,og(Nn),u,p)}function tt(un,Nn,en){return(n===(Nn||un)||No(n)===No(Nn||un))&&!vt(un.declarations,sg)&&(en||xe(No(un),c))}function It(un,Nn,en){return tt(un.get(n.escapedName),void 0,Nn)?[n]:Ld(un,rr=>{if(rr.flags&2097152&&rr.escapedName!=="export="&&rr.escapedName!=="default"&&!(o4(rr)&&a&&Lc(Gn(a)))&&(!u||vt(rr.declarations,ab))&&(!en||!vt(rr.declarations,cce))&&(Nn||!nc(rr,278))){let Jt=wc(rr),Cn=Tn(rr,Jt,Nn);if(Cn)return Cn}if(rr.escapedName===n.escapedName&&rr.exportSymbol&&tt(No(rr.exportSymbol),void 0,Nn))return[n]})||(un===Ne?Tn(Ye,Ye,Nn):void 0)}function Tn(un,Nn,en){if(tt(un,Nn,en))return[un];let cn=Gd(Nn),rr=cn&&Ae(cn,!0);if(rr&&xe(un,og(c)))return[un].concat(rr)}}function k1(n,a,c){let u=!1;return DE(a,p=>{let h=No(p.get(n.escapedName));if(!h)return!1;if(h===n)return!0;let T=h.flags&2097152&&!nc(h,278);return h=T?wc(h):h,(T?Fl(h):h.flags)&c?(u=!0,!0):!1}),u}function wE(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 169:case 171:case 174:case 175:continue;default:return!1}return!0}return!1}function RE(n,a){return bd(n,a,788968,!1,!0).accessibility===0}function OE(n,a){return bd(n,a,111551,!1,!0).accessibility===0}function NE(n,a,c){return bd(n,a,c,!1,!1).accessibility===0}function PE(n,a,c,u,p,h){if(!Fn(n))return;let T,k=!1;for(let O of n){let H=Rv(O,a,u,!1);if(H){T=O;let Ae=Ox(H[0],p);if(Ae)return Ae}if(h&&vt(O.declarations,sg)){if(p){k=!0;continue}return{accessibility:0}}let J=IE(O,a,u),de=PE(J,a,c,c===O?og(u):u,p,h);if(de)return de}if(k)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:E(c,a,u),errorModuleName:T!==c?E(T,a,1920):void 0}}function dy(n,a,c,u){return bd(n,a,c,u,!0)}function bd(n,a,c,u,p){if(n&&a){let h=PE([n],a,n,c,u,p);if(h)return h;let T=mn(n.declarations,lh);if(T){let k=lh(a);if(T!==k)return{accessibility:2,errorSymbolName:E(n,a,c),errorModuleName:E(T),errorNode:Yn(a)?a:void 0}}return{accessibility:1,errorSymbolName:E(n,a,c)}}return{accessibility:0}}function lh(n){let a=jn(n,dC);return a&&fr(a)}function dC(n){return lu(n)||n.kind===308&&kd(n)}function sg(n){return b6(n)||n.kind===308&&kd(n)}function Ox(n,a){let c;if(!Ji(Pr(n.declarations,h=>h.kind!==79),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(h){var T,k;if(!Xf(h)){let O=x1(h);if(O&&!Mr(O,1)&&Xf(O.parent))return p(h,O);if(wi(h)&&Bc(h.parent.parent)&&!Mr(h.parent.parent,1)&&Xf(h.parent.parent.parent))return p(h,h.parent.parent);if(E6(h)&&!Mr(h,1)&&Xf(h.parent))return p(h,h);if(Wo(h)){if(n.flags&2097152&&Yn(h)&&((T=h.parent)!=null&&T.parent)&&wi(h.parent.parent)&&((k=h.parent.parent.parent)!=null&&k.parent)&&Bc(h.parent.parent.parent.parent)&&!Mr(h.parent.parent.parent.parent,1)&&h.parent.parent.parent.parent.parent&&Xf(h.parent.parent.parent.parent.parent))return p(h,h.parent.parent.parent.parent);if(n.flags&2){let H=jn(h,Bc);return Mr(H,1)?!0:Xf(H.parent)?p(h,H):!1}}return!1}return!0}function p(h,T){return a&&(Rr(h).isVisible=!0,c=xg(c,T)),!0}}function Nx(n,a){let c;n.parent.kind===183||n.parent.kind===230&&!Gm(n.parent)||n.parent.kind===164?c=1160127:n.kind===163||n.kind===208||n.parent.kind===268?c=1920:c=788968;let u=Yd(n),p=zs(a,u.escapedText,c,void 0,void 0,!1);return p&&p.flags&262144&&c&788968?{accessibility:0}:!p&<(u)&&dy(fr(Ku(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:p&&Ox(p,!0)||{accessibility:1,errorSymbolName:Qc(u),errorNode:u}}function E(n,a,c,u=4,p){let h=70221824;u&2&&(h|=128),u&1&&(h|=512),u&8&&(h|=16384),u&32&&(h|=134217728),u&16&&(h|=1073741824);let T=u&4?Be.symbolToNode:Be.symbolToEntityName;return p?k(p).getText():SI(k);function k(O){let H=T(n,c,a,h),J=a?.kind===308?XK():rE(),de=a&&Gn(a);return J.writeNode(4,H,de,O),O}}function ne(n,a,c=0,u,p){return p?h(p).getText():SI(h);function h(T){let k;c&262144?k=u===1?182:181:k=u===1?177:176;let O=Be.signatureToSignatureDeclaration(n,k,a,qr(c)|70221824|512),H=fN(),J=a&&Gn(a);return H.writeNode(4,O,J,XH(T)),T}}function Ee(n,a,c=1064960,u=SR("")){let p=Y.noErrorTruncation||c&1,h=Be.typeToTypeNode(n,a,qr(c)|70221824|(p?1:0));if(h===void 0)return L.fail("should always get typenode");let T=n!==nt?rE():qK(),k=a&&Gn(a);T.writeNode(4,h,k,u);let O=u.getText(),H=p?x4*2:KR*2;return H&&O&&O.length>=H?O.substr(0,H-3)+"...":O}function Wt(n,a){let c=ci(n.symbol)?Ee(n,n.symbol.valueDeclaration):Ee(n),u=ci(a.symbol)?Ee(a,a.symbol.valueDeclaration):Ee(a);return c===u&&(c=lr(n),u=lr(a)),[c,u]}function lr(n){return Ee(n,void 0,64)}function ci(n){return n&&!!n.valueDeclaration&&ot(n.valueDeclaration)&&!$f(n.valueDeclaration)}function qr(n=0){return n&848330091}function Ti(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===vu(n.symbol)||!!(n.flags&524288)&&!!(Ur(n)&16777216))}function Wa(){return{typeToTypeNode:(et,he,Bn,Mn)=>a(he,Bn,Mn,or=>u(et,or)),indexInfoToIndexSignatureDeclaration:(et,he,Bn,Mn)=>a(he,Bn,Mn,or=>J(et,or,void 0)),signatureToSignatureDeclaration:(et,he,Bn,Mn,or)=>a(Bn,Mn,or,_r=>de(et,he,_r)),symbolToEntityName:(et,he,Bn,Mn,or)=>a(Bn,Mn,or,_r=>qi(et,_r,he,!1)),symbolToExpression:(et,he,Bn,Mn,or)=>a(Bn,Mn,or,_r=>wa(et,_r,he)),symbolToTypeParameterDeclarations:(et,he,Bn,Mn)=>a(he,Bn,Mn,or=>en(et,or)),symbolToParameterDeclaration:(et,he,Bn,Mn)=>a(he,Bn,Mn,or=>It(et,or)),typeParameterToDeclaration:(et,he,Bn,Mn)=>a(he,Bn,Mn,or=>tt(et,or)),symbolTableToDeclarationStatements:(et,he,Bn,Mn,or)=>a(he,Bn,Mn,_r=>Tu(et,_r,or)),symbolToNode:(et,he,Bn,Mn,or)=>a(Bn,Mn,or,_r=>n(et,_r,he))};function n(et,he,Bn){if(he.flags&1073741824){if(et.valueDeclaration){let or=sa(et.valueDeclaration);if(or&&ts(or))return or}let Mn=Ai(et).nameType;if(Mn&&Mn.flags&9216)return he.enclosingDeclaration=Mn.symbol.valueDeclaration,D.createComputedPropertyName(wa(Mn.symbol,he,Bn))}return wa(et,he,Bn)}function a(et,he,Bn,Mn){L.assert(et===void 0||(et.flags&8)===0);let or=Bn?.trackSymbol?Bn.moduleResolverHost:he&134217728?hPe(e):void 0,_r={enclosingDeclaration:et,flags:he||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};_r.tracker=new iN(_r,Bn,or);let ua=Mn(_r);return _r.truncating&&_r.flags&1&&_r.tracker.reportTruncationError(),_r.encounteredError?void 0:ua}function c(et){return et.truncating?et.truncating:et.truncating=et.approximateLength>(et.flags&1?x4:KR)}function u(et,he){let Bn=he.flags,Mn=p(et,he);return he.flags=Bn,Mn}function p(et,he){var Bn,Mn;o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();let or=he.flags&8388608;if(he.flags&=-8388609,!et){if(!(he.flags&262144)){he.encounteredError=!0;return}return he.approximateLength+=3,D.createKeywordTypeNode(131)}if(he.flags&536870912||(et=O_(et)),et.flags&1)return et.aliasSymbol?D.createTypeReferenceNode(Cn(et.aliasSymbol),O(et.aliasTypeArguments,he)):et===nt?nO(D.createKeywordTypeNode(131),3,"unresolved"):(he.approximateLength+=3,D.createKeywordTypeNode(et===Q?139:131));if(et.flags&2)return D.createKeywordTypeNode(157);if(et.flags&4)return he.approximateLength+=6,D.createKeywordTypeNode(152);if(et.flags&8)return he.approximateLength+=6,D.createKeywordTypeNode(148);if(et.flags&64)return he.approximateLength+=6,D.createKeywordTypeNode(160);if(et.flags&16&&!et.aliasSymbol)return he.approximateLength+=7,D.createKeywordTypeNode(134);if(et.flags&1056){if(et.symbol.flags&8){let Xt=ju(et.symbol),er=Rn(Xt,he,788968);if(gs(Xt)===et)return er;let Sr=fc(et.symbol);return i_(Sr,0)?Un(er,D.createTypeReferenceNode(Sr,void 0)):Mh(er)?(er.isTypeOf=!0,D.createIndexedAccessTypeNode(er,D.createLiteralTypeNode(D.createStringLiteral(Sr)))):m_(er)?D.createIndexedAccessTypeNode(D.createTypeQueryNode(er.typeName),D.createLiteralTypeNode(D.createStringLiteral(Sr))):L.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return Rn(et.symbol,he,788968)}if(et.flags&128)return he.approximateLength+=et.value.length+2,D.createLiteralTypeNode(Jn(D.createStringLiteral(et.value,!!(he.flags&268435456)),33554432));if(et.flags&256){let Xt=et.value;return he.approximateLength+=(""+Xt).length,D.createLiteralTypeNode(Xt<0?D.createPrefixUnaryExpression(40,D.createNumericLiteral(-Xt)):D.createNumericLiteral(Xt))}if(et.flags&2048)return he.approximateLength+=j0(et.value).length+1,D.createLiteralTypeNode(D.createBigIntLiteral(et.value));if(et.flags&512)return he.approximateLength+=et.intrinsicName.length,D.createLiteralTypeNode(et.intrinsicName==="true"?D.createTrue():D.createFalse());if(et.flags&8192){if(!(he.flags&1048576)){if(OE(et.symbol,he.enclosingDeclaration))return he.approximateLength+=6,Rn(et.symbol,he,111551);he.tracker.reportInaccessibleUniqueSymbolError&&he.tracker.reportInaccessibleUniqueSymbolError()}return he.approximateLength+=13,D.createTypeOperatorNode(156,D.createKeywordTypeNode(153))}if(et.flags&16384)return he.approximateLength+=4,D.createKeywordTypeNode(114);if(et.flags&32768)return he.approximateLength+=9,D.createKeywordTypeNode(155);if(et.flags&65536)return he.approximateLength+=4,D.createLiteralTypeNode(D.createNull());if(et.flags&131072)return he.approximateLength+=5,D.createKeywordTypeNode(144);if(et.flags&4096)return he.approximateLength+=6,D.createKeywordTypeNode(153);if(et.flags&67108864)return he.approximateLength+=6,D.createKeywordTypeNode(149);if(lL(et))return he.flags&4194304&&(!he.encounteredError&&!(he.flags&32768)&&(he.encounteredError=!0),(Mn=(Bn=he.tracker).reportInaccessibleThisError)==null||Mn.call(Bn)),he.approximateLength+=4,D.createThisTypeNode();if(!or&&et.aliasSymbol&&(he.flags&16384||RE(et.aliasSymbol,he.enclosingDeclaration))){let Xt=O(et.aliasTypeArguments,he);return LE(et.aliasSymbol.escapedName)&&!(et.aliasSymbol.flags&32)?D.createTypeReferenceNode(D.createIdentifier(""),Xt):Fn(Xt)===1&&et.aliasSymbol===$o.symbol?D.createArrayTypeNode(Xt[0]):Rn(et.aliasSymbol,he,788968,Xt)}let _r=Ur(et);if(_r&4)return L.assert(!!(et.flags&524288)),et.node?Bt(et,hn):hn(et);if(et.flags&262144||_r&3){if(et.flags&262144&&ya(he.inferTypeParameters,et)){he.approximateLength+=fc(et.symbol).length+6;let er,Sr=eu(et);if(Sr){let Dr=jxe(et,!0);Dr&&ph(Sr,Dr)||(he.approximateLength+=9,er=Sr&&u(Sr,he))}return D.createInferTypeNode(xe(et,he,er))}if(he.flags&4&&et.flags&262144&&!RE(et.symbol,he.enclosingDeclaration)){let er=Hr(et,he);return he.approximateLength+=vr(er).length,D.createTypeReferenceNode(D.createIdentifier(vr(er)),void 0)}if(et.symbol)return Rn(et.symbol,he,788968);let Xt=(et===ss||et===qs)&&F&&F.symbol?(et===qs?"sub-":"super-")+fc(F.symbol):"?";return D.createTypeReferenceNode(D.createIdentifier(Xt),void 0)}if(et.flags&1048576&&et.origin&&(et=et.origin),et.flags&3145728){let Xt=et.flags&1048576?Ed(et.types):et.types;if(Fn(Xt)===1)return u(Xt[0],he);let er=O(Xt,he,!0);if(er&&er.length>0)return et.flags&1048576?D.createUnionTypeNode(er):D.createIntersectionTypeNode(er);!he.encounteredError&&!(he.flags&262144)&&(he.encounteredError=!0);return}if(_r&48)return L.assert(!!(et.flags&524288)),Ct(et);if(et.flags&4194304){let Xt=et.type;he.approximateLength+=6;let er=u(Xt,he);return D.createTypeOperatorNode(141,er)}if(et.flags&134217728){let Xt=et.texts,er=et.types,Sr=D.createTemplateHead(Xt[0]),Dr=D.createNodeArray(on(er,(Ii,Bo)=>D.createTemplateLiteralTypeSpan(u(Ii,he),(Bo<er.length-1?D.createTemplateMiddle:D.createTemplateTail)(Xt[Bo+1]))));return he.approximateLength+=2,D.createTemplateLiteralType(Sr,Dr)}if(et.flags&268435456){let Xt=u(et.type,he);return Rn(et.symbol,he,788968,[Xt])}if(et.flags&8388608){let Xt=u(et.objectType,he),er=u(et.indexType,he);return he.approximateLength+=2,D.createIndexedAccessTypeNode(Xt,er)}if(et.flags&16777216)return Bt(et,Xt=>ua(Xt));if(et.flags&33554432)return u(et.baseType,he);return L.fail("Should be unreachable.");function ua(Xt){let er=u(Xt.checkType,he);if(he.approximateLength+=15,he.flags&4&&Xt.root.isDistributive&&!(Xt.checkType.flags&262144)){let ys=rd(wo(262144,"T")),ds=Hr(ys,he),Bl=D.createTypeReferenceNode(ds);he.approximateLength+=37;let ze=O1(Xt.root.checkType,ys,Xt.mapper),dt=he.inferTypeParameters;he.inferTypeParameters=Xt.root.inferTypeParameters;let Ut=u(Oi(Xt.root.extendsType,ze),he);he.inferTypeParameters=dt;let wn=_i(Oi($r(Xt.root.node.trueType),ze)),Zn=_i(Oi($r(Xt.root.node.falseType),ze));return D.createConditionalTypeNode(er,D.createInferTypeNode(D.createTypeParameterDeclaration(void 0,D.cloneNode(Bl.typeName))),D.createConditionalTypeNode(D.createTypeReferenceNode(D.cloneNode(ds)),u(Xt.checkType,he),D.createConditionalTypeNode(Bl,Ut,wn,Zn),D.createKeywordTypeNode(144)),D.createKeywordTypeNode(144))}let Sr=he.inferTypeParameters;he.inferTypeParameters=Xt.root.inferTypeParameters;let Dr=u(Xt.extendsType,he);he.inferTypeParameters=Sr;let Ii=_i(Hv(Xt)),Bo=_i(Wv(Xt));return D.createConditionalTypeNode(er,Dr,Ii,Bo)}function _i(Xt){var er,Sr,Dr;return Xt.flags&1048576?(er=he.visitedTypes)!=null&&er.has(ru(Xt))?(he.flags&131072||(he.encounteredError=!0,(Dr=(Sr=he.tracker)==null?void 0:Sr.reportCyclicStructureError)==null||Dr.call(Sr)),h(he)):Bt(Xt,Ii=>u(Ii,he)):u(Xt,he)}function ur(Xt){return Yk(Xt)&&!(yC(Xt).flags&262144)}function st(Xt){L.assert(!!(Xt.flags&524288));let er=Xt.declaration.readonlyToken?D.createToken(Xt.declaration.readonlyToken.kind):void 0,Sr=Xt.declaration.questionToken?D.createToken(Xt.declaration.questionToken.kind):void 0,Dr,Ii;if(Yk(Xt)){if(ur(Xt)&&he.flags&4){let dt=rd(wo(262144,"T")),Ut=Hr(dt,he);Ii=D.createTypeReferenceNode(Ut)}Dr=D.createTypeOperatorNode(141,Ii||u(yC(Xt),he))}else Dr=u(rp(Xt),he);let Bo=xe(w_(Xt),he,Dr),ys=Xt.declaration.nameType?u(by(Xt),he):void 0,ds=u(KE(_h(Xt),!!(Pp(Xt)&4)),he),Bl=D.createMappedTypeNode(er,Bo,ys,Sr,ds,void 0);he.approximateLength+=10;let ze=Jn(Bl,1);if(ur(Xt)&&he.flags&4){let dt=Oi(eu($r(Xt.declaration.typeParameter.constraint.type))||ue,Xt.mapper);return D.createConditionalTypeNode(u(yC(Xt),he),D.createInferTypeNode(D.createTypeParameterDeclaration(void 0,D.cloneNode(Ii.typeName),dt.flags&2?void 0:u(dt,he))),ze,D.createKeywordTypeNode(144))}return ze}function Ct(Xt){var er,Sr;let Dr=Xt.id,Ii=Xt.symbol;if(Ii){let ys=Ti(Xt)?788968:111551;if(cp(Ii.valueDeclaration))return Rn(Ii,he,ys);if(Ii.flags&32&&!Da(Ii)&&!(Ii.valueDeclaration&&Yr(Ii.valueDeclaration)&&he.flags&2048&&(!sl(Ii.valueDeclaration)||dy(Ii,he.enclosingDeclaration,ys,!1).accessibility!==0))||Ii.flags&896||Bo())return Rn(Ii,he,ys);if((er=he.visitedTypes)!=null&&er.has(Dr)){let ds=fy(Xt);return ds?Rn(ds,he,788968):h(he)}else return Bt(Xt,Ft)}else{if(!!(Ur(Xt)&8388608)){let ds=Xt;if(vL(ds.node)){let Bl=no(he,ds.node);if(Bl)return Bl}return(Sr=he.visitedTypes)!=null&&Sr.has(Dr)?h(he):Bt(Xt,Ft)}return Ft(Xt)}function Bo(){var ys;let ds=!!(Ii.flags&8192)&&vt(Ii.declarations,ze=>Ca(ze)),Bl=!!(Ii.flags&16)&&(Ii.parent||mn(Ii.declarations,ze=>ze.parent.kind===308||ze.parent.kind===265));if(ds||Bl)return(!!(he.flags&4096)||((ys=he.visitedTypes)==null?void 0:ys.has(Dr)))&&(!(he.flags&8)||OE(Ii,he.enclosingDeclaration))}}function Bt(Xt,er){var Sr,Dr;let Ii=Xt.id,Bo=Ur(Xt)&16&&Xt.symbol&&Xt.symbol.flags&32,ys=Ur(Xt)&4&&Xt.node?"N"+zo(Xt.node):Xt.flags&16777216?"N"+zo(Xt.root.node):Xt.symbol?(Bo?"+":"")+$a(Xt.symbol):void 0;he.visitedTypes||(he.visitedTypes=new Set),ys&&!he.symbolDepth&&(he.symbolDepth=new Map);let ds=he.enclosingDeclaration&&Rr(he.enclosingDeclaration),Bl=`${ru(Xt)}|${he.flags}`;ds&&(ds.serializedTypes||(ds.serializedTypes=new Map));let ze=(Sr=ds?.serializedTypes)==null?void 0:Sr.get(Bl);if(ze)return ze.truncating&&(he.truncating=!0),he.approximateLength+=ze.addedLength,fn(ze.node);let dt;if(ys){if(dt=he.symbolDepth.get(ys)||0,dt>10)return h(he);he.symbolDepth.set(ys,dt+1)}he.visitedTypes.add(Ii);let Ut=he.approximateLength,wn=er(Xt),Zn=he.approximateLength-Ut;return!he.reportedDiagnostic&&!he.encounteredError&&((Dr=ds?.serializedTypes)==null||Dr.set(Bl,{node:wn,truncating:he.truncating,addedLength:Zn})),he.visitedTypes.delete(Ii),ys&&he.symbolDepth.set(ys,dt),wn;function fn(Ar){return!ws(Ar)&&ea(Ar)===Ar?Ar:it(D.cloneNode(xn(Ar,fn,Bh,sr)),Ar)}function sr(Ar,Ei,ia,Aa,Ra){return Ar&&Ar.length===0?it(D.createNodeArray(void 0,Ar.hasTrailingComma),Ar):On(Ar,Ei,ia,Aa,Ra)}}function Ft(Xt){if(df(Xt)||Xt.containsError)return st(Xt);let er=R_(Xt);if(!er.properties.length&&!er.indexInfos.length){if(!er.callSignatures.length&&!er.constructSignatures.length)return he.approximateLength+=2,Jn(D.createTypeLiteralNode(void 0),1);if(er.callSignatures.length===1&&!er.constructSignatures.length){let ys=er.callSignatures[0];return de(ys,181,he)}if(er.constructSignatures.length===1&&!er.callSignatures.length){let ys=er.constructSignatures[0];return de(ys,182,he)}}let Sr=Pr(er.constructSignatures,ys=>!!(ys.flags&4));if(vt(Sr)){let ys=on(Sr,HE);return er.callSignatures.length+(er.constructSignatures.length-Sr.length)+er.indexInfos.length+(he.flags&2048?Oy(er.properties,Bl=>!(Bl.flags&4194304)):Fn(er.properties))&&ys.push(kE(er)),u(so(ys),he)}let Dr=he.flags;he.flags|=4194304;let Ii=Di(er);he.flags=Dr;let Bo=D.createTypeLiteralNode(Ii);return he.approximateLength+=2,Jn(Bo,he.flags&1024?0:1),Bo}function hn(Xt){let er=Ko(Xt);if(Xt.target===$o||Xt.target===jo){if(he.flags&2){let Ii=u(er[0],he);return D.createTypeReferenceNode(Xt.target===$o?"Array":"ReadonlyArray",[Ii])}let Sr=u(er[0],he),Dr=D.createArrayTypeNode(Sr);return Xt.target===$o?Dr:D.createTypeOperatorNode(146,Dr)}else if(Xt.target.objectFlags&8){if(er=Tl(er,(Sr,Dr)=>KE(Sr,!!(Xt.target.elementFlags[Dr]&2))),er.length>0){let Sr=Vv(Xt),Dr=O(er.slice(0,Sr),he);if(Dr){if(Xt.target.labeledElementDeclarations)for(let Bo=0;Bo<Dr.length;Bo++){let ys=Xt.target.elementFlags[Bo];Dr[Bo]=D.createNamedTupleMember(ys&12?D.createToken(25):void 0,D.createIdentifier(Gi(nU(Xt.target.labeledElementDeclarations[Bo]))),ys&2?D.createToken(57):void 0,ys&4?D.createArrayTypeNode(Dr[Bo]):Dr[Bo])}else for(let Bo=0;Bo<Math.min(Sr,Dr.length);Bo++){let ys=Xt.target.elementFlags[Bo];Dr[Bo]=ys&12?D.createRestTypeNode(ys&4?D.createArrayTypeNode(Dr[Bo]):Dr[Bo]):ys&2?D.createOptionalTypeNode(Dr[Bo]):Dr[Bo]}let Ii=Jn(D.createTupleTypeNode(Dr),1);return Xt.target.readonly?D.createTypeOperatorNode(146,Ii):Ii}}if(he.encounteredError||he.flags&524288){let Sr=Jn(D.createTupleTypeNode([]),1);return Xt.target.readonly?D.createTypeOperatorNode(146,Sr):Sr}he.encounteredError=!0;return}else{if(he.flags&2048&&Xt.symbol.valueDeclaration&&Yr(Xt.symbol.valueDeclaration)&&!OE(Xt.symbol,he.enclosingDeclaration))return Ct(Xt);{let Sr=Xt.target.outerTypeParameters,Dr=0,Ii;if(Sr){let Bl=Sr.length;for(;Dr<Bl;){let ze=Dr,dt=Hxe(Sr[Dr]);do Dr++;while(Dr<Bl&&Hxe(Sr[Dr])===dt);if(!GU(Sr,er,ze,Dr)){let Ut=O(er.slice(ze,Dr),he),wn=he.flags;he.flags|=16;let Zn=Rn(dt,he,788968,Ut);he.flags=wn,Ii=Ii?Un(Ii,Zn):Zn}}}let Bo;if(er.length>0){let Bl=(Xt.target.typeParameters||Je).length;Bo=O(er.slice(Dr,Bl),he)}let ys=he.flags;he.flags|=16;let ds=Rn(Xt.symbol,he,788968,Bo);return he.flags=ys,Ii?Un(Ii,ds):ds}}}function Un(Xt,er){if(Mh(Xt)){let Sr=Xt.typeArguments,Dr=Xt.qualifier;Dr&&(Re(Dr)?Sr!==NT(Dr)&&(Dr=Ug(D.cloneNode(Dr),Sr)):Sr!==NT(Dr.right)&&(Dr=D.updateQualifiedName(Dr,Dr.left,Ug(D.cloneNode(Dr.right),Sr)))),Sr=er.typeArguments;let Ii=yi(er);for(let Bo of Ii)Dr=Dr?D.createQualifiedName(Dr,Bo):Bo;return D.updateImportTypeNode(Xt,Xt.argument,Xt.assertions,Dr,Sr,Xt.isTypeOf)}else{let Sr=Xt.typeArguments,Dr=Xt.typeName;Re(Dr)?Sr!==NT(Dr)&&(Dr=Ug(D.cloneNode(Dr),Sr)):Sr!==NT(Dr.right)&&(Dr=D.updateQualifiedName(Dr,Dr.left,Ug(D.cloneNode(Dr.right),Sr))),Sr=er.typeArguments;let Ii=yi(er);for(let Bo of Ii)Dr=D.createQualifiedName(Dr,Bo);return D.updateTypeReferenceNode(Xt,Dr,Sr)}}function yi(Xt){let er=Xt.typeName,Sr=[];for(;!Re(er);)Sr.unshift(er.right),er=er.left;return Sr.unshift(er),Sr}function Di(Xt){if(c(he))return[D.createPropertySignature(void 0,"...",void 0,void 0)];let er=[];for(let Ii of Xt.callSignatures)er.push(de(Ii,176,he));for(let Ii of Xt.constructSignatures)Ii.flags&4||er.push(de(Ii,177,he));for(let Ii of Xt.indexInfos)er.push(J(Ii,he,Xt.objectFlags&1024?h(he):void 0));let Sr=Xt.properties;if(!Sr)return er;let Dr=0;for(let Ii of Sr){if(Dr++,he.flags&2048){if(Ii.flags&4194304)continue;Ef(Ii)&24&&he.tracker.reportPrivateInBaseOfClassExpression&&he.tracker.reportPrivateInBaseOfClassExpression(Gi(Ii.escapedName))}if(c(he)&&Dr+2<Sr.length-1){er.push(D.createPropertySignature(void 0,`... ${Sr.length-Dr} more ...`,void 0,void 0)),k(Sr[Sr.length-1],he,er);break}k(Ii,he,er)}return er.length?er:void 0}}function h(et){return et.approximateLength+=3,et.flags&1?D.createKeywordTypeNode(131):D.createTypeReferenceNode(D.createIdentifier("..."),void 0)}function T(et,he){var Bn;return!!(ac(et)&8192)&&(ya(he.reverseMappedStack,et)||((Bn=he.reverseMappedStack)==null?void 0:Bn[0])&&!(Ur(To(he.reverseMappedStack).links.propertyType)&16))}function k(et,he,Bn){var Mn;let or=!!(ac(et)&8192),_r=T(et,he)?Se:Gv(et),ua=he.enclosingDeclaration;if(he.enclosingDeclaration=void 0,he.tracker.canTrackSymbol&&qk(et.escapedName))if(et.declarations){let Ct=Vo(et.declarations);if($P(Ct))if(ar(Ct)){let Bt=sa(Ct);Bt&&Vs(Bt)&&LR(Bt.argumentExpression)&&Tn(Bt.argumentExpression,ua,he)}else Tn(Ct.name.expression,ua,he)}else he.tracker.reportNonSerializableProperty(E(et));he.enclosingDeclaration=et.valueDeclaration||((Mn=et.declarations)==null?void 0:Mn[0])||ua;let _i=Hd(et,he);he.enclosingDeclaration=ua,he.approximateLength+=fc(et).length+1;let ur=et.flags&16777216?D.createToken(57):void 0;if(et.flags&8208&&!Ey(_r).length&&!M_(et)){let Ct=xa(jc(_r,Bt=>!(Bt.flags&32768)),0);for(let Bt of Ct){let Ft=de(Bt,170,he,{name:_i,questionToken:ur});Bn.push(st(Ft))}}else{let Ct;T(et,he)?Ct=h(he):(or&&(he.reverseMappedStack||(he.reverseMappedStack=[]),he.reverseMappedStack.push(et)),Ct=_r?Bi(he,_r,et,ua):D.createKeywordTypeNode(131),or&&he.reverseMappedStack.pop());let Bt=M_(et)?[D.createToken(146)]:void 0;Bt&&(he.approximateLength+=9);let Ft=D.createPropertySignature(Bt,_i,ur,Ct);Bn.push(st(Ft))}function st(Ct){var Bt;if(vt(et.declarations,Ft=>Ft.kind===351)){let Ft=(Bt=et.declarations)==null?void 0:Bt.find(Un=>Un.kind===351),hn=Cw(Ft.comment);hn&&W0(Ct,[{kind:3,text:`*
| * `+hn.replace(/\n/g,`
| * `)+`
| `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else et.valueDeclaration&&hl(Ct,et.valueDeclaration);return Ct}}function O(et,he,Bn){if(vt(et)){if(c(he))if(Bn){if(et.length>2)return[u(et[0],he),D.createTypeReferenceNode(`... ${et.length-2} more ...`,void 0),u(et[et.length-1],he)]}else return[D.createTypeReferenceNode("...",void 0)];let or=!(he.flags&64)?vae():void 0,_r=[],ua=0;for(let _i of et){if(ua++,c(he)&&ua+2<et.length-1){_r.push(D.createTypeReferenceNode(`... ${et.length-ua} more ...`,void 0));let st=u(et[et.length-1],he);st&&_r.push(st);break}he.approximateLength+=2;let ur=u(_i,he);ur&&(_r.push(ur),or&&Mle(ur)&&or.add(ur.typeName.escapedText,[_i,_r.length-1]))}if(or){let _i=he.flags;he.flags|=64,or.forEach(ur=>{if(!Fle(ur,([st],[Ct])=>H(st,Ct)))for(let[st,Ct]of ur)_r[Ct]=u(st,he)}),he.flags=_i}return _r}}function H(et,he){return et===he||!!et.symbol&&et.symbol===he.symbol||!!et.aliasSymbol&&et.aliasSymbol===he.aliasSymbol}function J(et,he,Bn){let Mn=Kse(et)||"x",or=u(et.keyType,he),_r=D.createParameterDeclaration(void 0,void 0,Mn,void 0,or,void 0);return Bn||(Bn=u(et.type||Se,he)),!et.type&&!(he.flags&2097152)&&(he.encounteredError=!0),he.approximateLength+=Mn.length+4,D.createIndexSignature(et.isReadonly?[D.createToken(146)]:void 0,[_r],Bn)}function de(et,he,Bn,Mn){var or,_r,ua,_i,ur;let st=Bn.flags&256;st&&(Bn.flags&=-257),Bn.approximateLength+=3;let Ct,Bt;Bn.flags&32&&et.target&&et.mapper&&et.target.typeParameters?Bt=et.target.typeParameters.map(Ii=>u(Oi(Ii,et.mapper),Bn)):Ct=et.typeParameters&&et.typeParameters.map(Ii=>tt(Ii,Bn));let Ft=Txe(et,!0)[0],hn;if(Bn.enclosingDeclaration&&et.declaration&&et.declaration!==Bn.enclosingDeclaration&&!Yn(et.declaration)&&vt(Ft)){let Ii=Rr(Bn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Bn.enclosingDeclaration:void 0;L.assertOptionalNode(Ii,Va);let Bo=(or=Ii?.locals)!=null?or:Ua(),ys;for(let ds of Ft)Bo.has(ds.escapedName)||(ys=Sn(ys,ds.escapedName),Bo.set(ds.escapedName,ds));if(ys){let ds=function(){mn(ys,Bl=>Bo.delete(Bl))};var Un=ds;if(Ii)hn=ds;else{let Bl=fm.createBlock(Je);Rr(Bl).fakeScopeForSignatureDeclaration=!0,Bl.locals=Bo;let ze=Bn.enclosingDeclaration;go(Bl,ze),Bn.enclosingDeclaration=Bl,hn=()=>{Bn.enclosingDeclaration=ze,ds()}}}}let yi=(vt(Ft,Ii=>Ii!==Ft[Ft.length-1]&&!!(ac(Ii)&32768))?et.parameters:Ft).map(Ii=>It(Ii,Bn,he===173,Mn?.privateSymbolVisitor,Mn?.bundledImports)),Di=Bn.flags&33554432?void 0:Ae(et,Bn);Di&&yi.unshift(Di);let Xt,er=Lf(et);if(er){let Ii=er.kind===2||er.kind===3?D.createToken(129):void 0,Bo=er.kind===1||er.kind===3?Jn(D.createIdentifier(er.parameterName),33554432):D.createThisTypeNode(),ys=er.type&&u(er.type,Bn);Xt=D.createTypePredicateNode(Ii,Bo,ys)}else{let Ii=qo(et);Ii&&!(st&&Zo(Ii))?Xt=us(Bn,Ii,et,Mn?.privateSymbolVisitor,Mn?.bundledImports):st||(Xt=D.createKeywordTypeNode(131))}let Sr=Mn?.modifiers;if(he===182&&et.flags&4){let Ii=im(Sr);Sr=D.createModifiersFromModifierFlags(Ii|256)}let Dr=he===176?D.createCallSignature(Ct,yi,Xt):he===177?D.createConstructSignature(Ct,yi,Xt):he===170?D.createMethodSignature(Sr,(_r=Mn?.name)!=null?_r:D.createIdentifier(""),Mn?.questionToken,Ct,yi,Xt):he===171?D.createMethodDeclaration(Sr,void 0,(ua=Mn?.name)!=null?ua:D.createIdentifier(""),void 0,Ct,yi,Xt,void 0):he===173?D.createConstructorDeclaration(Sr,yi,void 0):he===174?D.createGetAccessorDeclaration(Sr,(_i=Mn?.name)!=null?_i:D.createIdentifier(""),yi,Xt,void 0):he===175?D.createSetAccessorDeclaration(Sr,(ur=Mn?.name)!=null?ur:D.createIdentifier(""),yi,void 0):he===178?D.createIndexSignature(Sr,yi,Xt):he===320?D.createJSDocFunctionType(yi,Xt):he===181?D.createFunctionTypeNode(Ct,yi,Xt??D.createTypeReferenceNode(D.createIdentifier(""))):he===182?D.createConstructorTypeNode(Sr,Ct,yi,Xt??D.createTypeReferenceNode(D.createIdentifier(""))):he===259?D.createFunctionDeclaration(Sr,void 0,Mn?.name?Ga(Mn.name,Re):D.createIdentifier(""),Ct,yi,Xt,void 0):he===215?D.createFunctionExpression(Sr,void 0,Mn?.name?Ga(Mn.name,Re):D.createIdentifier(""),Ct,yi,Xt,D.createBlock([])):he===216?D.createArrowFunction(Sr,Ct,yi,Xt,void 0,D.createBlock([])):L.assertNever(he);return Bt&&(Dr.typeArguments=D.createNodeArray(Bt)),hn?.(),Dr}function Ae(et,he){if(et.thisParameter)return It(et.thisParameter,he);if(et.declaration&&Yn(et.declaration)){let Bn=e6(et.declaration);if(Bn&&Bn.typeExpression)return D.createParameterDeclaration(void 0,void 0,"this",void 0,u($r(Bn.typeExpression),he))}}function xe(et,he,Bn){let Mn=he.flags;he.flags&=-513;let or=D.createModifiersFromModifierFlags(Jne(et)),_r=Hr(et,he),ua=jE(et),_i=ua&&u(ua,he);return he.flags=Mn,D.createTypeParameterDeclaration(or,_r,Bn,_i)}function tt(et,he,Bn=eu(et)){let Mn=Bn&&u(Bn,he);return xe(et,he,Mn)}function It(et,he,Bn,Mn,or){let _r=nc(et,166);!_r&&!Zp(et)&&(_r=nc(et,344));let ua=zn(et);_r&&eke(_r)&&(ua=gg(ua));let _i=Bi(he,ua,et,he.enclosingDeclaration,Mn,or),ur=!(he.flags&8192)&&Bn&&_r&&g_(_r)?on(uT(_r),D.cloneNode):void 0,Ct=_r&&Fm(_r)||ac(et)&32768?D.createToken(25):void 0,Bt=_r&&_r.name?_r.name.kind===79?Jn(D.cloneNode(_r.name),33554432):_r.name.kind===163?Jn(D.cloneNode(_r.name.right),33554432):yi(_r.name):fc(et),hn=_r&&Qk(_r)||ac(et)&16384?D.createToken(57):void 0,Un=D.createParameterDeclaration(ur,Ct,Bt,hn,_i,void 0);return he.approximateLength+=fc(et).length+3,Un;function yi(Di){return Xt(Di);function Xt(er){he.tracker.canTrackSymbol&&ts(er)&&Pte(er)&&Tn(er.expression,he.enclosingDeclaration,he);let Sr=xn(er,Xt,Bh,void 0,Xt);return Wo(Sr)&&(Sr=D.updateBindingElement(Sr,Sr.dotDotDotToken,Sr.propertyName,Sr.name,void 0)),ws(Sr)||(Sr=D.cloneNode(Sr)),Jn(Sr,33554433)}}}function Tn(et,he,Bn){if(!Bn.tracker.canTrackSymbol)return;let Mn=Yd(et),or=zs(Mn,Mn.escapedText,1160127,void 0,void 0,!0);or&&Bn.tracker.trackSymbol(or,he,111551)}function un(et,he,Bn,Mn){return he.tracker.trackSymbol(et,he.enclosingDeclaration,Bn),Nn(et,he,Bn,Mn)}function Nn(et,he,Bn,Mn){let or;return!(et.flags&262144)&&(he.enclosingDeclaration||he.flags&64)&&!(he.flags&134217728)?(or=L.checkDefined(ua(et,Bn,!0)),L.assert(or&&or.length>0)):or=[et],or;function ua(_i,ur,st){let Ct=Rv(_i,he.enclosingDeclaration,ur,!!(he.flags&128)),Bt;if(!Ct||k1(Ct[0],he.enclosingDeclaration,Ct.length===1?ur:og(ur))){let hn=IE(Ct?Ct[0]:_i,he.enclosingDeclaration,ur);if(Fn(hn)){Bt=hn.map(Di=>vt(Di.declarations,sg)?Jt(Di,he):void 0);let Un=hn.map((Di,Xt)=>Xt);Un.sort(Ft);let yi=Un.map(Di=>hn[Di]);for(let Di of yi){let Xt=ua(Di,og(ur),!1);if(Xt){if(Di.exports&&Di.exports.get("export=")&&wp(Di.exports.get("export="),_i)){Ct=Xt;break}Ct=Xt.concat(Ct||[ly(Di,_i)||_i]);break}}}}if(Ct)return Ct;if(st||!(_i.flags&6144))return!st&&!Mn&&mn(_i.declarations,sg)?void 0:[_i];function Ft(hn,Un){let yi=Bt[hn],Di=Bt[Un];if(yi&&Di){let Xt=Jd(Di);return Jd(yi)===Xt?tN(yi)-tN(Di):Xt?-1:1}return 0}}}function en(et,he){let Bn;return oA(et).flags&524384&&(Bn=D.createNodeArray(on(yy(et),or=>tt(or,he)))),Bn}function cn(et,he,Bn){var Mn;L.assert(et&&0<=he&&he<et.length);let or=et[he],_r=$a(or);if((Mn=Bn.typeParameterSymbolList)!=null&&Mn.has(_r))return;(Bn.typeParameterSymbolList||(Bn.typeParameterSymbolList=new Set)).add(_r);let ua;if(Bn.flags&512&&he<et.length-1){let _i=or,ur=et[he+1];if(ac(ur)&1){let st=D1(_i.flags&2097152?wc(_i):_i);ua=O(on(st,Ct=>zv(Ct,ur.links.mapper)),Bn)}else ua=en(or,Bn)}return ua}function rr(et){return OS(et.objectType)?rr(et.objectType):et}function Jt(et,he,Bn){var Mn;let or=nc(et,308);if(!or){let Ct=ks(et.declarations,Bt=>wx(Bt,et));Ct&&(or=nc(Ct,308))}if(or&&or.moduleName!==void 0)return or.moduleName;if(!or){if(he.tracker.trackReferencedAmbientModule){let Ct=Pr(et.declarations,lu);if(Fn(Ct))for(let Bt of Ct)he.tracker.trackReferencedAmbientModule(Bt,et)}if(uF.test(et.escapedName))return et.escapedName.substring(1,et.escapedName.length-1)}if(!he.enclosingDeclaration||!he.tracker.moduleResolverHost)return uF.test(et.escapedName)?et.escapedName.substring(1,et.escapedName.length-1):Gn(dH(et)).fileName;let _r=Gn(ec(he.enclosingDeclaration)),ua=Bn||_r?.impliedNodeFormat,_i=ML(_r.path,ua),ur=Ai(et),st=ur.specifierCache&&ur.specifierCache.get(_i);if(!st){let Ct=!!Ss(Y),{moduleResolverHost:Bt}=he.tracker,Ft=Ct?{...Y,baseUrl:Bt.getCommonSourceDirectory()}:Y;st=Vo(m_e(et,qe,Ft,_r,Bt,{importModuleSpecifierPreference:Ct?"non-relative":"project-relative",importModuleSpecifierEnding:Ct?"minimal":ua===99?"js":void 0},{overrideImportMode:Bn})),(Mn=ur.specifierCache)!=null||(ur.specifierCache=new Map),ur.specifierCache.set(_i,st)}return st}function Cn(et){let he=D.createIdentifier(Gi(et.escapedName));return et.parent?D.createQualifiedName(Cn(et.parent),he):he}function Rn(et,he,Bn,Mn){var or,_r,ua,_i;let ur=un(et,he,Bn,!(he.flags&16384)),st=Bn===111551;if(vt(ur[0].declarations,sg)){let Ft=ur.length>1?Bt(ur,ur.length-1,1):void 0,hn=Mn||cn(ur,0,he),Un=Gn(ec(he.enclosingDeclaration)),yi=m6(ur[0]),Di,Xt;if(($s(Y)===3||$s(Y)===99)&&yi?.impliedNodeFormat===99&&yi.impliedNodeFormat!==Un?.impliedNodeFormat&&(Di=Jt(ur[0],he,99),Xt=D.createImportTypeAssertionContainer(D.createAssertClause(D.createNodeArray([D.createAssertEntry(D.createStringLiteral("resolution-mode"),D.createStringLiteral("import"))]))),(_r=(or=he.tracker).reportImportTypeNodeResolutionModeOverride)==null||_r.call(or)),Di||(Di=Jt(ur[0],he)),!(he.flags&67108864)&&$s(Y)!==1&&Di.indexOf("/node_modules/")>=0){let Sr=Di;if($s(Y)===3||$s(Y)===99){let Dr=Un?.impliedNodeFormat===99?1:99;Di=Jt(ur[0],he,Dr),Di.indexOf("/node_modules/")>=0?Di=Sr:(Xt=D.createImportTypeAssertionContainer(D.createAssertClause(D.createNodeArray([D.createAssertEntry(D.createStringLiteral("resolution-mode"),D.createStringLiteral(Dr===99?"import":"require"))]))),(_i=(ua=he.tracker).reportImportTypeNodeResolutionModeOverride)==null||_i.call(ua))}Xt||(he.encounteredError=!0,he.tracker.reportLikelyUnsafeImportRequiredError&&he.tracker.reportLikelyUnsafeImportRequiredError(Sr))}let er=D.createLiteralTypeNode(D.createStringLiteral(Di));if(he.tracker.trackExternalModuleSymbolOfImportTypeNode&&he.tracker.trackExternalModuleSymbolOfImportTypeNode(ur[0]),he.approximateLength+=Di.length+10,!Ft||Cd(Ft)){if(Ft){let Sr=Re(Ft)?Ft:Ft.right;Ug(Sr,void 0)}return D.createImportTypeNode(er,Xt,Ft,hn,st)}else{let Sr=rr(Ft),Dr=Sr.objectType.typeName;return D.createIndexedAccessTypeNode(D.createImportTypeNode(er,Xt,Dr,hn,st),Sr.indexType)}}let Ct=Bt(ur,ur.length-1,0);if(OS(Ct))return Ct;if(st)return D.createTypeQueryNode(Ct);{let Ft=Re(Ct)?Ct:Ct.right,hn=NT(Ft);return Ug(Ft,void 0),D.createTypeReferenceNode(Ct,hn)}function Bt(Ft,hn,Un){let yi=hn===Ft.length-1?Mn:cn(Ft,hn,he),Di=Ft[hn],Xt=Ft[hn-1],er;if(hn===0)he.flags|=16777216,er=_y(Di,he),he.approximateLength+=(er?er.length:0)+1,he.flags^=16777216;else if(Xt&&Gd(Xt)){let Dr=Gd(Xt);Ld(Dr,(Ii,Bo)=>{if(wp(Ii,Di)&&!qk(Bo)&&Bo!=="export=")return er=Gi(Bo),!0})}if(er===void 0){let Dr=ks(Di.declarations,sa);if(Dr&&ts(Dr)&&Cd(Dr.expression)){let Ii=Bt(Ft,hn-1,Un);return Cd(Ii)?D.createIndexedAccessTypeNode(D.createParenthesizedType(D.createTypeQueryNode(Ii)),D.createTypeQueryNode(Dr.expression)):Ii}er=_y(Di,he)}if(he.approximateLength+=er.length+1,!(he.flags&16)&&Xt&&vy(Xt)&&vy(Xt).get(Di.escapedName)&&wp(vy(Xt).get(Di.escapedName),Di)){let Dr=Bt(Ft,hn-1,Un);return OS(Dr)?D.createIndexedAccessTypeNode(Dr,D.createLiteralTypeNode(D.createStringLiteral(er))):D.createIndexedAccessTypeNode(D.createTypeReferenceNode(Dr,yi),D.createLiteralTypeNode(D.createStringLiteral(er)))}let Sr=Jn(D.createIdentifier(er),33554432);if(yi&&Ug(Sr,D.createNodeArray(yi)),Sr.symbol=Di,hn>Un){let Dr=Bt(Ft,hn-1,Un);return Cd(Dr)?D.createQualifiedName(Dr,Sr):L.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Sr}}function Br(et,he,Bn){let Mn=zs(he.enclosingDeclaration,et,788968,void 0,et,!1);return Mn?!(Mn.flags&262144&&Mn===Bn.symbol):!1}function Hr(et,he){var Bn,Mn;if(he.flags&4&&he.typeParameterNames){let _r=he.typeParameterNames.get(ru(et));if(_r)return _r}let or=qi(et.symbol,he,788968,!0);if(!(or.kind&79))return D.createIdentifier("(Missing type parameter)");if(he.flags&4){let _r=or.escapedText,ua=((Bn=he.typeParameterNamesByTextNextNameCount)==null?void 0:Bn.get(_r))||0,_i=_r;for(;(Mn=he.typeParameterNamesByText)!=null&&Mn.has(_i)||Br(_i,he,et);)ua++,_i=`${_r}_${ua}`;if(_i!==_r){let ur=NT(or);or=D.createIdentifier(_i),Ug(or,ur)}(he.typeParameterNamesByTextNextNameCount||(he.typeParameterNamesByTextNextNameCount=new Map)).set(_r,ua),(he.typeParameterNames||(he.typeParameterNames=new Map)).set(ru(et),or),(he.typeParameterNamesByText||(he.typeParameterNamesByText=new Set)).add(_r)}return or}function qi(et,he,Bn,Mn){let or=un(et,he,Bn);return Mn&&or.length!==1&&!he.encounteredError&&!(he.flags&65536)&&(he.encounteredError=!0),_r(or,or.length-1);function _r(ua,_i){let ur=cn(ua,_i,he),st=ua[_i];_i===0&&(he.flags|=16777216);let Ct=_y(st,he);_i===0&&(he.flags^=16777216);let Bt=Jn(D.createIdentifier(Ct),33554432);return ur&&Ug(Bt,D.createNodeArray(ur)),Bt.symbol=st,_i>0?D.createQualifiedName(_r(ua,_i-1),Bt):Bt}}function wa(et,he,Bn){let Mn=un(et,he,Bn);return or(Mn,Mn.length-1);function or(_r,ua){let _i=cn(_r,ua,he),ur=_r[ua];ua===0&&(he.flags|=16777216);let st=_y(ur,he);ua===0&&(he.flags^=16777216);let Ct=st.charCodeAt(0);if(Xw(Ct)&&vt(ur.declarations,sg))return D.createStringLiteral(Jt(ur,he));if(ua===0||HW(st,R)){let Bt=Jn(D.createIdentifier(st),33554432);return _i&&Ug(Bt,D.createNodeArray(_i)),Bt.symbol=ur,ua>0?D.createPropertyAccessExpression(or(_r,ua-1),Bt):Bt}else{Ct===91&&(st=st.substring(1,st.length-1),Ct=st.charCodeAt(0));let Bt;if(Xw(Ct)&&!(ur.flags&8)?Bt=D.createStringLiteral(u_(st).replace(/\\./g,Ft=>Ft.substring(1)),Ct===39):""+ +st===st&&(Bt=D.createNumericLiteral(+st)),!Bt){let Ft=Jn(D.createIdentifier(st),33554432);_i&&Ug(Ft,D.createNodeArray(_i)),Ft.symbol=ur,Bt=Ft}return D.createElementAccessExpression(or(_r,ua-1),Bt)}}}function Xc(et){let he=sa(et);return!!he&&yo(he)}function pf(et){let he=sa(et);return!!(he&&yo(he)&&(he.singleQuote||!ws(he)&&na(Qc(he,!1),"'")))}function Hd(et,he){let Bn=!!Fn(et.declarations)&&Ji(et.declarations,Xc),Mn=!!Fn(et.declarations)&&Ji(et.declarations,pf),or=ji(et,he,Mn,Bn);if(or)return or;let _r=Gi(et.escapedName);return E4(_r,Do(Y),Mn,Bn)}function ji(et,he,Bn,Mn){let or=Ai(et).nameType;if(or){if(or.flags&384){let _r=""+or.value;return!i_(_r,Do(Y))&&(Mn||!Wm(_r))?D.createStringLiteral(_r,!!Bn):Wm(_r)&&na(_r,"-")?D.createComputedPropertyName(D.createNumericLiteral(+_r)):E4(_r,Do(Y))}if(or.flags&8192)return D.createComputedPropertyName(wa(or.symbol,he,111551))}}function In(et){let he={...et};return he.typeParameterNames&&(he.typeParameterNames=new Map(he.typeParameterNames)),he.typeParameterNamesByText&&(he.typeParameterNamesByText=new Set(he.typeParameterNamesByText)),he.typeParameterSymbolList&&(he.typeParameterSymbolList=new Set(he.typeParameterSymbolList)),he.tracker=new iN(he,he.tracker.inner,he.tracker.moduleResolverHost),he}function qn(et,he){return et.declarations&&wr(et.declarations,Bn=>!!Cl(Bn)&&(!he||!!jn(Bn,Mn=>Mn===he)))}function Mi(et,he){return!(Ur(he)&4)||!m_(et)||Fn(et.typeArguments)>=Mp(he.target.typeParameters)}function ga(et){return Rr(et).fakeScopeForSignatureDeclaration?et.parent:et}function Bi(et,he,Bn,Mn,or,_r){if(!Ro(he)&&Mn){let ur=qn(Bn,ga(Mn));if(ur&&!Ds(ur)&&!p_(ur)){let st=Cl(ur);if(ko(st,ur,he)&&Mi(st,he)){let Ct=no(et,st,or,_r);if(Ct)return Ct}}}let ua=et.flags;he.flags&8192&&he.symbol===Bn&&(!et.enclosingDeclaration||vt(Bn.declarations,ur=>Gn(ur)===Gn(et.enclosingDeclaration)))&&(et.flags|=1048576);let _i=u(he,et);return et.flags=ua,_i}function ko(et,he,Bn){let Mn=$r(et);return Mn===Bn?!0:ha(he)&&he.questionToken?wf(Bn,524288)===Mn:!1}function us(et,he,Bn,Mn,or){if(!Ro(he)&&et.enclosingDeclaration){let _r=Bn.declaration&&U_(Bn.declaration),ua=ga(et.enclosingDeclaration);if(jn(_r,_i=>_i===ua)&&_r){let _i=$r(_r);if((_i.flags&262144&&_i.isThisType?Oi(_i,Bn.mapper):_i)===he&&Mi(_r,he)){let st=no(et,_r,Mn,or);if(st)return st}}}return u(he,et)}function Xs(et,he,Bn){let Mn=!1,or=Yd(et);if(Yn(et)&&(TT(or)||Bm(or.parent)||Yu(or.parent)&&RH(or.parent.left)&&TT(or.parent.right)))return Mn=!0,{introducesError:Mn,node:et};let _r=uc(or,67108863,!0,!0);if(_r&&(dy(_r,he.enclosingDeclaration,67108863,!1).accessibility!==0?Mn=!0:(he.tracker.trackSymbol(_r,he.enclosingDeclaration,67108863),Bn?.(_r)),Re(et))){let ua=gs(_r),_i=_r.flags&262144&&!RE(ua.symbol,he.enclosingDeclaration)?Hr(ua,he):D.cloneNode(et);return _i.symbol=_r,{introducesError:Mn,node:Jn(Ir(_i,et),33554432)}}return{introducesError:Mn,node:et}}function no(et,he,Bn,Mn){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();let or=!1,_r=Gn(he),ua=$e(he,_i,bi);if(or)return;return ua===he?it(D.cloneNode(he),he):ua;function _i(ur){if(Kue(ur)||ur.kind===322)return D.createKeywordTypeNode(131);if(que(ur))return D.createKeywordTypeNode(157);if(T2(ur))return D.createUnionTypeNode([$e(ur.type,_i,bi),D.createLiteralTypeNode(D.createNull())]);if(Uz(ur))return D.createUnionTypeNode([$e(ur.type,_i,bi),D.createKeywordTypeNode(155)]);if(m3(ur))return $e(ur.type,_i);if(h3(ur))return D.createArrayTypeNode($e(ur.type,_i,bi));if(LL(ur))return D.createTypeLiteralNode(on(ur.jsDocPropertyTags,Ft=>{let hn=Re(Ft.name)?Ft.name:Ft.name.right,Un=Vc($r(ur),hn.escapedText),yi=Un&&Ft.typeExpression&&$r(Ft.typeExpression.type)!==Un?u(Un,et):void 0;return D.createPropertySignature(void 0,hn,Ft.isBracketed||Ft.typeExpression&&Uz(Ft.typeExpression.type)?D.createToken(57):void 0,yi||Ft.typeExpression&&$e(Ft.typeExpression.type,_i,bi)||D.createKeywordTypeNode(131))}));if(m_(ur)&&Re(ur.typeName)&&ur.typeName.escapedText==="")return Ir(D.createKeywordTypeNode(131),ur);if((Vg(ur)||m_(ur))&&U6(ur))return D.createTypeLiteralNode([D.createIndexSignature(void 0,[D.createParameterDeclaration(void 0,void 0,"x",void 0,$e(ur.typeArguments[0],_i,bi))],$e(ur.typeArguments[1],_i,bi))]);if(S2(ur))if(jA(ur)){let Ft;return D.createConstructorTypeNode(void 0,On(ur.typeParameters,_i,_c),Zi(ur.parameters,(hn,Un)=>hn.name&&Re(hn.name)&&hn.name.escapedText==="new"?(Ft=hn.type,void 0):D.createParameterDeclaration(void 0,st(hn),Ct(hn,Un),hn.questionToken,$e(hn.type,_i,bi),void 0)),$e(Ft||ur.type,_i,bi)||D.createKeywordTypeNode(131))}else return D.createFunctionTypeNode(On(ur.typeParameters,_i,_c),on(ur.parameters,(Ft,hn)=>D.createParameterDeclaration(void 0,st(Ft),Ct(Ft,hn),Ft.questionToken,$e(Ft.type,_i,bi),void 0)),$e(ur.type,_i,bi)||D.createKeywordTypeNode(131));if(m_(ur)&&qw(ur)&&(!Mi(ur,$r(ur))||Yxe(ur)||Ht===Kx(ur,788968,!0)))return Ir(u($r(ur),et),ur);if(ib(ur)){let Ft=Rr(ur).resolvedSymbol;return qw(ur)&&Ft&&(!ur.isTypeOf&&!(Ft.flags&788968)||!(Fn(ur.typeArguments)>=Mp(yy(Ft))))?Ir(u($r(ur),et),ur):D.updateImportTypeNode(ur,D.updateLiteralTypeNode(ur.argument,Bt(ur,ur.argument.literal)),ur.assertions,ur.qualifier,On(ur.typeArguments,_i,bi),ur.isTypeOf)}if(Cd(ur)||bc(ur)){let{introducesError:Ft,node:hn}=Xs(ur,et,Bn);if(or=or||Ft,hn!==ur)return hn}return _r&&p2(ur)&&Gs(_r,ur.pos).line===Gs(_r,ur.end).line&&Jn(ur,1),xn(ur,_i,Bh);function st(Ft){return Ft.dotDotDotToken||(Ft.type&&h3(Ft.type)?D.createToken(25):void 0)}function Ct(Ft,hn){return Ft.name&&Re(Ft.name)&&Ft.name.escapedText==="this"?"this":st(Ft)?"args":`arg${hn}`}function Bt(Ft,hn){if(Mn){if(et.tracker&&et.tracker.moduleResolverHost){let Un=qie(Ft);if(Un){let Di={getCanonicalFileName:Dl(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>et.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>et.tracker.moduleResolverHost.getCommonSourceDirectory()},Xt=Z6(Di,Un);return D.createStringLiteral(Xt)}}}else if(et.tracker&&et.tracker.trackExternalModuleSymbolOfImportTypeNode){let Un=ah(hn,hn,void 0);Un&&et.tracker.trackExternalModuleSymbolOfImportTypeNode(Un)}return hn}}}function Tu(et,he,Bn){let Mn=F_(D.createPropertyDeclaration,171,!0),or=F_((bt,cr,oi,Jr)=>D.createPropertySignature(bt,cr,oi,Jr),170,!1),_r=he.enclosingDeclaration,ua=[],_i=new Set,ur=[],st=he;he={...st,usedSymbolNames:new Set(st.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};let Ct={...st.tracker.inner,trackSymbol:(bt,cr,oi)=>{var Jr;if(dy(bt,cr,oi,!1).accessibility===0){let Po=Nn(bt,he,oi);bt.flags&4||ds(Po[0])}else if((Jr=st.tracker.inner)!=null&&Jr.trackSymbol)return st.tracker.inner.trackSymbol(bt,cr,oi);return!1}};he.tracker=new iN(he,Ct,st.tracker.moduleResolverHost),Ld(et,(bt,cr)=>{let oi=Gi(cr);sd(bt,oi)});let Bt=!Bn,Ft=et.get("export=");return Ft&&et.size>1&&Ft.flags&2097152&&(et=Ua(),et.set("export=",Ft)),Ii(et),er(ua);function hn(bt){return!!bt&&bt.kind===79}function Un(bt){return Bc(bt)?Pr(on(bt.declarationList.declarations,sa),hn):Pr([sa(bt)],hn)}function yi(bt){let cr=wr(bt,pc),oi=Yc(bt,Tc),Jr=oi!==-1?bt[oi]:void 0;if(Jr&&cr&&cr.isExportEquals&&Re(cr.expression)&&Re(Jr.name)&&vr(Jr.name)===vr(cr.expression)&&Jr.body&&Tp(Jr.body)){let Xr=Pr(bt,Ui=>!!(uu(Ui)&1)),Po=Jr.name,va=Jr.body;if(Fn(Xr)&&(Jr=D.updateModuleDeclaration(Jr,Jr.modifiers,Jr.name,va=D.updateModuleBlock(va,D.createNodeArray([...Jr.body.statements,D.createExportDeclaration(void 0,!1,D.createNamedExports(on(Uo(Xr,Ui=>Un(Ui)),Ui=>D.createExportSpecifier(!1,void 0,Ui))),void 0)]))),bt=[...bt.slice(0,oi),Jr,...bt.slice(oi+1)]),!wr(bt,Ui=>Ui!==Jr&&xw(Ui,Po))){ua=[];let Ui=!vt(va.statements,Eo=>Mr(Eo,1)||pc(Eo)||Il(Eo));mn(va.statements,Eo=>{ze(Eo,Ui?1:0)}),bt=[...Pr(bt,Eo=>Eo!==Jr&&Eo!==cr),...ua]}}return bt}function Di(bt){let cr=Pr(bt,Jr=>Il(Jr)&&!Jr.moduleSpecifier&&!!Jr.exportClause&&h_(Jr.exportClause));Fn(cr)>1&&(bt=[...Pr(bt,Xr=>!Il(Xr)||!!Xr.moduleSpecifier||!Xr.exportClause),D.createExportDeclaration(void 0,!1,D.createNamedExports(Uo(cr,Xr=>Ga(Xr.exportClause,h_).elements)),void 0)]);let oi=Pr(bt,Jr=>Il(Jr)&&!!Jr.moduleSpecifier&&!!Jr.exportClause&&h_(Jr.exportClause));if(Fn(oi)>1){let Jr=YC(oi,Xr=>yo(Xr.moduleSpecifier)?">"+Xr.moduleSpecifier.text:">");if(Jr.length!==oi.length)for(let Xr of Jr)Xr.length>1&&(bt=[...Pr(bt,Po=>Xr.indexOf(Po)===-1),D.createExportDeclaration(void 0,!1,D.createNamedExports(Uo(Xr,Po=>Ga(Po.exportClause,h_).elements)),Xr[0].moduleSpecifier)])}return bt}function Xt(bt){let cr=Yc(bt,oi=>Il(oi)&&!oi.moduleSpecifier&&!oi.assertClause&&!!oi.exportClause&&h_(oi.exportClause));if(cr>=0){let oi=bt[cr],Jr=Zi(oi.exportClause.elements,Xr=>{if(!Xr.propertyName){let Po=jD(bt),va=Pr(Po,Ui=>xw(bt[Ui],Xr.name));if(Fn(va)&&Ji(va,Ui=>WR(bt[Ui]))){for(let Ui of va)bt[Ui]=Sr(bt[Ui]);return}}return Xr});Fn(Jr)?bt[cr]=D.updateExportDeclaration(oi,oi.modifiers,oi.isTypeOnly,D.updateNamedExports(oi.exportClause,Jr),oi.moduleSpecifier,oi.assertClause):y0(bt,cr)}return bt}function er(bt){return bt=yi(bt),bt=Di(bt),bt=Xt(bt),_r&&(Li(_r)&&kd(_r)||Tc(_r))&&(!vt(bt,Rw)||!yse(bt)&&vt(bt,l6))&&bt.push(bO(D)),bt}function Sr(bt){let cr=(uu(bt)|1)&-3;return D.updateModifiers(bt,cr)}function Dr(bt){let cr=uu(bt)&-2;return D.updateModifiers(bt,cr)}function Ii(bt,cr,oi){cr||ur.push(new Map),bt.forEach(Jr=>{Bo(Jr,!1,!!oi)}),cr||(ur[ur.length-1].forEach(Jr=>{Bo(Jr,!0,!!oi)}),ur.pop())}function Bo(bt,cr,oi){let Jr=No(bt);if(_i.has($a(Jr)))return;if(_i.add($a(Jr)),!cr||Fn(bt.declarations)&&vt(bt.declarations,Po=>!!jn(Po,va=>va===_r))){let Po=he;he=In(he),ys(bt,cr,oi),he.reportedDiagnostic&&(st.reportedDiagnostic=he.reportedDiagnostic),he=Po}}function ys(bt,cr,oi){var Jr,Xr,Po,va;let Ui=Gi(bt.escapedName),Eo=bt.escapedName==="default";if(cr&&!(he.flags&131072)&&fS(Ui)&&!Eo){he.encounteredError=!0;return}let Xo=Eo&&!!(bt.flags&-113||bt.flags&16&&Fn(Jo(zn(bt))))&&!(bt.flags&2097152),Rc=!Xo&&!cr&&fS(Ui)&&!Eo;(Xo||Rc)&&(cr=!0);let rl=(cr?0:1)|(Eo&&!Xo?1024:0),Wd=bt.flags&1536&&bt.flags&7&&bt.escapedName!=="export=",Vl=Wd&&Ul(zn(bt),bt);if((bt.flags&8208||Vl)&&Ar(zn(bt),bt,sd(bt,Ui),rl),bt.flags&524288&&dt(bt,Ui,rl),bt.flags&7&&bt.escapedName!=="export="&&!(bt.flags&4194304)&&!(bt.flags&32)&&!(bt.flags&8192)&&!Vl)if(oi)as(bt)&&(Rc=!1,Xo=!1);else{let bs=zn(bt),dc=sd(bt,Ui);if(!(bt.flags&16)&&Ul(bs,bt))Ar(bs,bt,dc,rl);else{let Tg=bt.flags&2?wC(bt)?2:1:(Jr=bt.parent)!=null&&Jr.valueDeclaration&&Li((Xr=bt.parent)==null?void 0:Xr.valueDeclaration)?2:void 0,wm=Xo||!(bt.flags&4)?dc:lA(dc,bt),Rm=bt.declarations&&wr(bt.declarations,Ry=>wi(Ry));Rm&&pu(Rm.parent)&&Rm.parent.declarations.length===1&&(Rm=Rm.parent.parent);let V1=(Po=bt.declarations)==null?void 0:Po.find(br);if(V1&&ar(V1.parent)&&Re(V1.parent.right)&&((va=bs.symbol)!=null&&va.valueDeclaration)&&Li(bs.symbol.valueDeclaration)){let Ry=dc===V1.parent.right.escapedText?void 0:V1.parent.right;ze(D.createExportDeclaration(void 0,!1,D.createNamedExports([D.createExportSpecifier(!1,Ry,dc)])),0),he.tracker.trackSymbol(bs.symbol,he.enclosingDeclaration,111551)}else{let Ry=it(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(wm,void 0,Bi(he,bs,bt,_r,ds,Bn))],Tg)),Rm);ze(Ry,wm!==dc?rl&-2:rl),wm!==dc&&!cr&&(ze(D.createExportDeclaration(void 0,!1,D.createNamedExports([D.createExportSpecifier(!1,wm,dc)])),0),Rc=!1,Xo=!1)}}}if(bt.flags&384&&sr(bt,Ui,rl),bt.flags&32&&(bt.flags&4&&bt.valueDeclaration&&ar(bt.valueDeclaration.parent)&&_u(bt.valueDeclaration.parent.right)?mo(bt,sd(bt,Ui),rl):Zr(bt,sd(bt,Ui),rl)),(bt.flags&1536&&(!Wd||Zn(bt))||Vl)&&fn(bt,Ui,rl),bt.flags&64&&!(bt.flags&32)&&Ut(bt,Ui,rl),bt.flags&2097152&&mo(bt,sd(bt,Ui),rl),bt.flags&4&&bt.escapedName==="export="&&as(bt),bt.flags&8388608&&bt.declarations)for(let bs of bt.declarations){let dc=Gl(bs,bs.moduleSpecifier);dc&&ze(D.createExportDeclaration(void 0,bs.isTypeOnly,void 0,D.createStringLiteral(Jt(dc,he))),0)}Xo?ze(D.createExportAssignment(void 0,!1,D.createIdentifier(sd(bt,Ui))),0):Rc&&ze(D.createExportDeclaration(void 0,!1,D.createNamedExports([D.createExportSpecifier(!1,sd(bt,Ui),Ui)])),0)}function ds(bt){if(vt(bt.declarations,CT))return;L.assertIsDefined(ur[ur.length-1]),lA(Gi(bt.escapedName),bt);let cr=!!(bt.flags&2097152)&&!vt(bt.declarations,oi=>!!jn(oi,Il)||qm(oi)||Nl(oi)&&!um(oi.moduleReference));ur[cr?0:ur.length-1].set($a(bt),bt)}function Bl(bt){return Li(bt)&&(kd(bt)||Mf(bt))||lu(bt)&&!mp(bt)}function ze(bt,cr){if(g_(bt)){let oi=0,Jr=he.enclosingDeclaration&&(Ff(he.enclosingDeclaration)?Gn(he.enclosingDeclaration):he.enclosingDeclaration);cr&1&&Jr&&(Bl(Jr)||Tc(Jr))&&WR(bt)&&(oi|=1),Bt&&!(oi&1)&&(!Jr||!(Jr.flags&16777216))&&(hb(bt)||Bc(bt)||Jc(bt)||sl(bt)||Tc(bt))&&(oi|=2),cr&1024&&(sl(bt)||ku(bt)||Jc(bt))&&(oi|=1024),oi&&(bt=D.updateModifiers(bt,oi|uu(bt)))}ua.push(bt)}function dt(bt,cr,oi){var Jr;let Xr=Kb(bt),Po=Ai(bt).typeParameters,va=on(Po,Wd=>tt(Wd,he)),Ui=(Jr=bt.declarations)==null?void 0:Jr.find(Ff),Eo=Cw(Ui?Ui.comment||Ui.parent.comment:void 0),Xo=he.flags;he.flags|=8388608;let Rc=he.enclosingDeclaration;he.enclosingDeclaration=Ui;let rl=Ui&&Ui.typeExpression&&UT(Ui.typeExpression)&&no(he,Ui.typeExpression.type,ds,Bn)||u(Xr,he);ze(W0(D.createTypeAliasDeclaration(void 0,sd(bt,cr),va,rl),Eo?[{kind:3,text:`*
| * `+Eo.replace(/\n/g,`
| * `)+`
| `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),oi),he.flags=Xo,he.enclosingDeclaration=Rc}function Ut(bt,cr,oi){let Jr=vu(bt),Xr=yy(bt),Po=on(Xr,Vl=>tt(Vl,he)),va=_o(Jr),Ui=Fn(va)?so(va):void 0,Eo=Uo(Jo(Jr),Vl=>Dm(Vl,Ui)),Xo=$v(0,Jr,Ui,176),Rc=$v(1,Jr,Ui,177),rl=U1(Jr,Ui),Wd=Fn(va)?[D.createHeritageClause(94,Zi(va,Vl=>Hp(Vl,111551)))]:void 0;ze(D.createInterfaceDeclaration(void 0,sd(bt,cr),Po,Wd,[...rl,...Rc,...Xo,...Eo]),oi)}function wn(bt){return bt.exports?Pr(lo(bt.exports.values()),Aa):[]}function Zn(bt){return Ji(wn(bt),cr=>!(Fl(Ac(cr))&111551))}function fn(bt,cr,oi){let Jr=wn(bt),Xr=KD(Jr,Ui=>Ui.parent&&Ui.parent===bt?"real":"merged"),Po=Xr.get("real")||Je,va=Xr.get("merged")||Je;if(Fn(Po)){let Ui=sd(bt,cr);ia(Po,Ui,oi,!!(bt.flags&67108880))}if(Fn(va)){let Ui=Gn(he.enclosingDeclaration),Eo=sd(bt,cr),Xo=D.createModuleBlock([D.createExportDeclaration(void 0,!1,D.createNamedExports(Zi(Pr(va,Rc=>Rc.escapedName!=="export="),Rc=>{var rl,Wd;let Vl=Gi(Rc.escapedName),bs=sd(Rc,Vl),dc=Rc.declarations&&Uu(Rc);if(Ui&&(dc?Ui!==Gn(dc):!vt(Rc.declarations,Rm=>Gn(Rm)===Ui))){(Wd=(rl=he.tracker)==null?void 0:rl.reportNonlocalAugmentation)==null||Wd.call(rl,Ui,bt,Rc);return}let Tg=dc&&L_(dc,!0);ds(Tg||Rc);let wm=Tg?sd(Tg,Gi(Tg.escapedName)):bs;return D.createExportSpecifier(!1,Vl===wm?void 0:wm,Vl)})))]);ze(D.createModuleDeclaration(void 0,D.createIdentifier(Eo),Xo,16),0)}}function sr(bt,cr,oi){ze(D.createEnumDeclaration(D.createModifiersFromModifierFlags(gie(bt)?2048:0),sd(bt,cr),on(Pr(Jo(zn(bt)),Jr=>!!(Jr.flags&8)),Jr=>{let Xr=Jr.declarations&&Jr.declarations[0]&&q0(Jr.declarations[0])?zie(Jr.declarations[0]):void 0;return D.createEnumMember(Gi(Jr.escapedName),Xr===void 0?void 0:typeof Xr=="string"?D.createStringLiteral(Xr):D.createNumericLiteral(Xr))})),oi)}function Ar(bt,cr,oi,Jr){let Xr=xa(bt,0);for(let Po of Xr){let va=de(Po,259,he,{name:D.createIdentifier(oi),privateSymbolVisitor:ds,bundledImports:Bn});ze(it(va,Ei(Po)),Jr)}if(!(cr.flags&1536&&cr.exports&&cr.exports.size)){let Po=Pr(Jo(bt),Aa);ia(Po,oi,Jr,!0)}}function Ei(bt){if(bt.declaration&&bt.declaration.parent){if(ar(bt.declaration.parent)&&ic(bt.declaration.parent)===5)return bt.declaration.parent;if(wi(bt.declaration.parent)&&bt.declaration.parent.parent)return bt.declaration.parent.parent}return bt.declaration}function ia(bt,cr,oi,Jr){if(Fn(bt)){let Po=KD(bt,bs=>!Fn(bs.declarations)||vt(bs.declarations,dc=>Gn(dc)===Gn(he.enclosingDeclaration))?"local":"remote").get("local")||Je,va=fm.createModuleDeclaration(void 0,D.createIdentifier(cr),D.createModuleBlock([]),16);go(va,_r),va.locals=Ua(bt),va.symbol=bt[0].parent;let Ui=ua;ua=[];let Eo=Bt;Bt=!1;let Xo={...he,enclosingDeclaration:va},Rc=he;he=Xo,Ii(Ua(Po),Jr,!0),he=Rc,Bt=Eo;let rl=ua;ua=Ui;let Wd=on(rl,bs=>pc(bs)&&!bs.isExportEquals&&Re(bs.expression)?D.createExportDeclaration(void 0,!1,D.createNamedExports([D.createExportSpecifier(!1,bs.expression,D.createIdentifier("default"))])):bs),Vl=Ji(Wd,bs=>Mr(bs,1))?on(Wd,Dr):Wd;va=D.updateModuleDeclaration(va,va.modifiers,va.name,D.createModuleBlock(Vl)),ze(va,oi)}}function Aa(bt){return!!(bt.flags&2887656)||!(bt.flags&4194304||bt.escapedName==="prototype"||bt.valueDeclaration&&Ca(bt.valueDeclaration)&&Yr(bt.valueDeclaration.parent))}function Ra(bt){let cr=Zi(bt,oi=>{let Jr=he.enclosingDeclaration;he.enclosingDeclaration=oi;let Xr=oi.expression;if(bc(Xr)){if(Re(Xr)&&vr(Xr)==="")return Po(void 0);let va;if({introducesError:va,node:Xr}=Xs(Xr,he,ds),va)return Po(void 0)}return Po(D.createExpressionWithTypeArguments(Xr,on(oi.typeArguments,va=>no(he,va,ds,Bn)||u($r(va),he))));function Po(va){return he.enclosingDeclaration=Jr,va}});if(cr.length===bt.length)return cr}function Zr(bt,cr,oi){var Jr,Xr;let Po=(Jr=bt.declarations)==null?void 0:Jr.find(Yr),va=he.enclosingDeclaration;he.enclosingDeclaration=Po||va;let Ui=yy(bt),Eo=on(Ui,lp=>tt(lp,he)),Xo=vu(bt),Rc=_o(Xo),rl=Po&&JA(Po),Wd=rl&&Ra(rl)||Zi(Ci(Xo),cA),Vl=zn(bt),bs=!!((Xr=Vl.symbol)!=null&&Xr.valueDeclaration)&&Yr(Vl.symbol.valueDeclaration),dc=bs?Wr(Vl):Se,Tg=[...Fn(Rc)?[D.createHeritageClause(94,on(Rc,lp=>KC(lp,dc,cr)))]:[],...Fn(Wd)?[D.createHeritageClause(117,Wd)]:[]],wm=Qtt(Xo,Rc,Jo(Xo)),Rm=Pr(wm,lp=>{let qC=lp.valueDeclaration;return!!qC&&!(zl(qC)&&pi(qC.name))}),Ry=vt(wm,lp=>{let qC=lp.valueDeclaration;return!!qC&&zl(qC)&&pi(qC.name)})?[D.createPropertyDeclaration(void 0,D.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Je,tae=Uo(Rm,lp=>Mn(lp,!1,Rc[0])),nae=Uo(Pr(Jo(Vl),lp=>!(lp.flags&4194304)&&lp.escapedName!=="prototype"&&!Aa(lp)),lp=>Mn(lp,!0,dc)),pit=!bs&&!!bt.valueDeclaration&&Yn(bt.valueDeclaration)&&!vt(xa(Vl,1))?[D.createConstructorDeclaration(D.createModifiersFromModifierFlags(8),[],void 0)]:$v(1,Vl,dc,173),mit=U1(Xo,Rc[0]);he.enclosingDeclaration=va,ze(it(D.createClassDeclaration(void 0,cr,Eo,Tg,[...mit,...nae,...pit,...tae,...Ry]),bt.declarations&&Pr(bt.declarations,lp=>sl(lp)||_u(lp))[0]),oi)}function Oa(bt){return ks(bt,cr=>{if($u(cr)||Mu(cr))return vr(cr.propertyName||cr.name);if(ar(cr)||pc(cr)){let oi=pc(cr)?cr.expression:cr.right;if(br(oi))return vr(oi.name)}if(Zh(cr)){let oi=sa(cr);if(oi&&Re(oi))return vr(oi)}})}function mo(bt,cr,oi){var Jr,Xr,Po,va,Ui;let Eo=Uu(bt);if(!Eo)return L.fail();let Xo=No(L_(Eo,!0));if(!Xo)return;let Rc=CI(Xo)&&Oa(bt.declarations)||Gi(Xo.escapedName);Rc==="export="&&(f_(Y)||Y.allowSyntheticDefaultImports)&&(Rc="default");let rl=sd(Xo,Rc);switch(ds(Xo),Eo.kind){case 205:if(((Xr=(Jr=Eo.parent)==null?void 0:Jr.parent)==null?void 0:Xr.kind)===257){let bs=Jt(Xo.parent||Xo,he),{propertyName:dc}=Eo;ze(D.createImportDeclaration(void 0,D.createImportClause(!1,void 0,D.createNamedImports([D.createImportSpecifier(!1,dc&&Re(dc)?D.createIdentifier(vr(dc)):void 0,D.createIdentifier(cr))])),D.createStringLiteral(bs),void 0),0);break}L.failBadSyntaxKind(((Po=Eo.parent)==null?void 0:Po.parent)||Eo,"Unhandled binding element grandparent kind in declaration serialization");break;case 300:((Ui=(va=Eo.parent)==null?void 0:va.parent)==null?void 0:Ui.kind)===223&&co(Gi(bt.escapedName),rl);break;case 257:if(br(Eo.initializer)){let bs=Eo.initializer,dc=D.createUniqueName(cr),Tg=Jt(Xo.parent||Xo,he);ze(D.createImportEqualsDeclaration(void 0,!1,dc,D.createExternalModuleReference(D.createStringLiteral(Tg))),0),ze(D.createImportEqualsDeclaration(void 0,!1,D.createIdentifier(cr),D.createQualifiedName(dc,bs.name)),oi);break}case 268:if(Xo.escapedName==="export="&&vt(Xo.declarations,bs=>Li(bs)&&Mf(bs))){as(bt);break}let Wd=!(Xo.flags&512)&&!wi(Eo);ze(D.createImportEqualsDeclaration(void 0,!1,D.createIdentifier(cr),Wd?qi(Xo,he,67108863,!1):D.createExternalModuleReference(D.createStringLiteral(Jt(Xo,he)))),Wd?oi:0);break;case 267:ze(D.createNamespaceExportDeclaration(vr(Eo.name)),0);break;case 270:{let bs=Jt(Xo.parent||Xo,he),dc=Bn?D.createStringLiteral(bs):Eo.parent.moduleSpecifier;ze(D.createImportDeclaration(void 0,D.createImportClause(!1,D.createIdentifier(cr),void 0),dc,Eo.parent.assertClause),0);break}case 271:{let bs=Jt(Xo.parent||Xo,he),dc=Bn?D.createStringLiteral(bs):Eo.parent.parent.moduleSpecifier;ze(D.createImportDeclaration(void 0,D.createImportClause(!1,void 0,D.createNamespaceImport(D.createIdentifier(cr))),dc,Eo.parent.parent.assertClause),0);break}case 277:ze(D.createExportDeclaration(void 0,!1,D.createNamespaceExport(D.createIdentifier(cr)),D.createStringLiteral(Jt(Xo,he))),0);break;case 273:{let bs=Jt(Xo.parent||Xo,he),dc=Bn?D.createStringLiteral(bs):Eo.parent.parent.parent.moduleSpecifier;ze(D.createImportDeclaration(void 0,D.createImportClause(!1,void 0,D.createNamedImports([D.createImportSpecifier(!1,cr!==Rc?D.createIdentifier(Rc):void 0,D.createIdentifier(cr))])),dc,Eo.parent.parent.parent.assertClause),0);break}case 278:let Vl=Eo.parent.parent.moduleSpecifier;co(Gi(bt.escapedName),Vl?Rc:rl,Vl&&es(Vl)?D.createStringLiteral(Vl.text):void 0);break;case 274:as(bt);break;case 223:case 208:case 209:bt.escapedName==="default"||bt.escapedName==="export="?as(bt):co(cr,rl);break;default:return L.failBadSyntaxKind(Eo,"Unhandled alias declaration kind in symbol serializer!")}}function co(bt,cr,oi){ze(D.createExportDeclaration(void 0,!1,D.createNamedExports([D.createExportSpecifier(!1,bt!==cr?cr:void 0,bt)]),oi),0)}function as(bt){if(bt.flags&4194304)return!1;let cr=Gi(bt.escapedName),oi=cr==="export=",Xr=oi||cr==="default",Po=bt.declarations&&Uu(bt),va=Po&&L_(Po,!0);if(va&&Fn(va.declarations)&&vt(va.declarations,Ui=>Gn(Ui)===Gn(_r))){let Ui=Po&&(pc(Po)||ar(Po)?UH(Po):xce(Po)),Eo=Ui&&bc(Ui)?_nt(Ui):void 0,Xo=Eo&&uc(Eo,67108863,!0,!0,_r);(Xo||va)&&ds(Xo||va);let Rc=he.tracker.disableTrackSymbol;if(he.tracker.disableTrackSymbol=!0,Xr)ua.push(D.createExportAssignment(void 0,oi,wa(va,he,67108863)));else if(Eo===Ui&&Eo)co(cr,vr(Eo));else if(Ui&&_u(Ui))co(cr,sd(va,fc(va)));else{let rl=lA(cr,bt);ze(D.createImportEqualsDeclaration(void 0,!1,D.createIdentifier(rl),qi(va,he,67108863,!1)),0),co(cr,rl)}return he.tracker.disableTrackSymbol=Rc,!0}else{let Ui=lA(cr,bt),Eo=Sd(zn(No(bt)));if(Ul(Eo,bt))Ar(Eo,bt,Ui,Xr?0:1);else{let Xo=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(Ui,void 0,Bi(he,Eo,bt,_r,ds,Bn))],2));ze(Xo,va&&va.flags&4&&va.escapedName==="export="?2:cr===Ui?1:0)}return Xr?(ua.push(D.createExportAssignment(void 0,oi,D.createIdentifier(Ui))),!0):cr!==Ui?(co(cr,Ui),!0):!1}}function Ul(bt,cr){let oi=Gn(he.enclosingDeclaration);return Ur(bt)&48&&!Fn(tu(bt))&&!Ti(bt)&&!!(Fn(Pr(Jo(bt),Aa))||Fn(xa(bt,0)))&&!Fn(xa(bt,1))&&!qn(cr,_r)&&!(bt.symbol&&vt(bt.symbol.declarations,Jr=>Gn(Jr)!==oi))&&!vt(Jo(bt),Jr=>qk(Jr.escapedName))&&!vt(Jo(bt),Jr=>vt(Jr.declarations,Xr=>Gn(Xr)!==oi))&&Ji(Jo(bt),Jr=>i_(fc(Jr),R))}function F_(bt,cr,oi){return function(Xr,Po,va){var Ui,Eo,Xo,Rc,rl;let Wd=Ef(Xr),Vl=!!(Wd&8);if(Po&&Xr.flags&2887656)return[];if(Xr.flags&4194304||va&&ja(va,Xr.escapedName)&&M_(ja(va,Xr.escapedName))===M_(Xr)&&(Xr.flags&16777216)===(ja(va,Xr.escapedName).flags&16777216)&&ph(zn(Xr),Vc(va,Xr.escapedName)))return[];let bs=Wd&-513|(Po?32:0),dc=Hd(Xr,he),Tg=(Ui=Xr.declarations)==null?void 0:Ui.find(Kp(Na,rb,wi,$d,ar,br));if(Xr.flags&98304&&oi){let wm=[];if(Xr.flags&65536&&wm.push(it(D.createSetAccessorDeclaration(D.createModifiersFromModifierFlags(bs),dc,[D.createParameterDeclaration(void 0,void 0,"arg",void 0,Vl?void 0:Bi(he,zn(Xr),Xr,_r,ds,Bn))],void 0),((Eo=Xr.declarations)==null?void 0:Eo.find(Ng))||Tg)),Xr.flags&32768){let Rm=Wd&8;wm.push(it(D.createGetAccessorDeclaration(D.createModifiersFromModifierFlags(bs),dc,[],Rm?void 0:Bi(he,zn(Xr),Xr,_r,ds,Bn),void 0),((Xo=Xr.declarations)==null?void 0:Xo.find(zy))||Tg))}return wm}else if(Xr.flags&98311)return it(bt(D.createModifiersFromModifierFlags((M_(Xr)?64:0)|bs),dc,Xr.flags&16777216?D.createToken(57):void 0,Vl?void 0:Bi(he,mC(Xr),Xr,_r,ds,Bn),void 0),((Rc=Xr.declarations)==null?void 0:Rc.find(Kp(Na,wi)))||Tg);if(Xr.flags&8208){let wm=zn(Xr),Rm=xa(wm,0);if(bs&8)return it(bt(D.createModifiersFromModifierFlags((M_(Xr)?64:0)|bs),dc,Xr.flags&16777216?D.createToken(57):void 0,void 0,void 0),((rl=Xr.declarations)==null?void 0:rl.find(Ds))||Rm[0]&&Rm[0].declaration||Xr.declarations&&Xr.declarations[0]);let V1=[];for(let Ry of Rm){let tae=de(Ry,cr,he,{name:dc,questionToken:Xr.flags&16777216?D.createToken(57):void 0,modifiers:bs?D.createModifiersFromModifierFlags(bs):void 0}),nae=Ry.declaration&&nR(Ry.declaration.parent)?Ry.declaration.parent:Ry.declaration;V1.push(it(tae,nae))}return V1}return L.fail(`Unhandled class member kind! ${Xr.__debugFlags||Xr.flags}`)}}function Dm(bt,cr){return or(bt,!1,cr)}function $v(bt,cr,oi,Jr){let Xr=xa(cr,bt);if(bt===1){if(!oi&&Ji(Xr,Ui=>Fn(Ui.parameters)===0))return[];if(oi){let Ui=xa(oi,1);if(!Fn(Ui)&&Ji(Xr,Eo=>Fn(Eo.parameters)===0))return[];if(Ui.length===Xr.length){let Eo=!1;for(let Xo=0;Xo<Ui.length;Xo++)if(!vM(Xr[Xo],Ui[Xo],!1,!1,!0,sD)){Eo=!0;break}if(!Eo)return[]}}let va=0;for(let Ui of Xr)Ui.declaration&&(va|=hS(Ui.declaration,24));if(va)return[it(D.createConstructorDeclaration(D.createModifiersFromModifierFlags(va),[],void 0),Xr[0].declaration)]}let Po=[];for(let va of Xr){let Ui=de(va,Jr,he);Po.push(it(Ui,va.declaration))}return Po}function U1(bt,cr){let oi=[];for(let Jr of tu(bt)){if(cr){let Xr=Cm(cr,Jr.keyType);if(Xr&&ph(Jr.type,Xr.type))continue}oi.push(J(Jr,he,void 0))}return oi}function KC(bt,cr,oi){let Jr=Hp(bt,111551);if(Jr)return Jr;let Xr=lA(`${oi}_base`),Po=D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(Xr,void 0,u(cr,he))],2));return ze(Po,0),D.createExpressionWithTypeArguments(D.createIdentifier(Xr),void 0)}function Hp(bt,cr){let oi,Jr;if(bt.target&&NE(bt.target.symbol,_r,cr)?(oi=on(Ko(bt),Xr=>u(Xr,he)),Jr=wa(bt.target.symbol,he,788968)):bt.symbol&&NE(bt.symbol,_r,cr)&&(Jr=wa(bt.symbol,he,788968)),Jr)return D.createExpressionWithTypeArguments(Jr,oi)}function cA(bt){let cr=Hp(bt,788968);if(cr)return cr;if(bt.symbol)return D.createExpressionWithTypeArguments(wa(bt.symbol,he,788968),void 0)}function lA(bt,cr){var oi,Jr;let Xr=cr?$a(cr):void 0;if(Xr&&he.remappedSymbolNames.has(Xr))return he.remappedSymbolNames.get(Xr);cr&&(bt=iT(cr,bt));let Po=0,va=bt;for(;(oi=he.usedSymbolNames)!=null&&oi.has(bt);)Po++,bt=`${va}_${Po}`;return(Jr=he.usedSymbolNames)==null||Jr.add(bt),Xr&&he.remappedSymbolNames.set(Xr,bt),bt}function iT(bt,cr){if(cr==="default"||cr==="__class"||cr==="__function"){let oi=he.flags;he.flags|=16777216;let Jr=_y(bt,he);he.flags=oi,cr=Jr.length>0&&Xw(Jr.charCodeAt(0))?u_(Jr):Jr}return cr==="default"?cr="_default":cr==="export="&&(cr="_exports"),cr=i_(cr,R)&&!fS(cr)?cr:"_"+cr.replace(/[^a-zA-Z0-9]/g,"_"),cr}function sd(bt,cr){let oi=$a(bt);return he.remappedSymbolNames.has(oi)?he.remappedSymbolNames.get(oi):(cr=iT(bt,cr),he.remappedSymbolNames.set(oi,cr),cr)}}}function kl(n,a,c=16384,u){return u?p(u).getText():SI(p);function p(h){let T=D.createTypePredicateNode(n.kind===2||n.kind===3?D.createToken(129):void 0,n.kind===1||n.kind===3?D.createIdentifier(n.parameterName):D.createThisTypeNode(),n.type&&Be.typeToTypeNode(n.type,a,qr(c)|70221824|512)),k=rE(),O=a&&Gn(a);return k.writeNode(4,T,O,h),h}}function Ed(n){let a=[],c=0;for(let u=0;u<n.length;u++){let p=n[u];if(c|=p.flags,!(p.flags&98304)){if(p.flags&1568){let h=p.flags&512?Te:Kk(p);if(h.flags&1048576){let T=h.types.length;if(u+T<=n.length&&Hu(n[u+T-1])===Hu(h.types[T-1])){a.push(h),u+=T-1;continue}}}a.push(p)}}return c&65536&&a.push(ln),c&32768&&a.push(Oe),a||n}function Ud(n){return n===8?"private":n===16?"protected":"public"}function fy(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){let a=dR(n.symbol.declarations[0].parent);if(Ep(a))return fr(a)}}function Td(n){return n&&n.parent&&n.parent.kind===265&&D0(n.parent.parent)}function Ov(n){return n.kind===308||lu(n)}function Nv(n,a){let c=Ai(n).nameType;if(c){if(c.flags&384){let u=""+c.value;return!i_(u,Do(Y))&&!Wm(u)?`"${_S(u,34)}"`:Wm(u)&&na(u,"-")?`[${u}]`:u}if(c.flags&8192)return`[${_y(c.symbol,a)}]`}}function _y(n,a){if(a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&jn(n.declarations[0],Ov)!==jn(a.enclosingDeclaration,Ov)))return"default";if(n.declarations&&n.declarations.length){let u=ks(n.declarations,h=>sa(h)?h:void 0),p=u&&sa(u);if(u&&p){if(Pa(u)&&sS(u))return fc(n);if(ts(p)&&!(ac(n)&4096)){let h=Ai(n).nameType;if(h&&h.flags&384){let T=Nv(n,a);if(T!==void 0)return T}}return os(p)}if(u||(u=n.declarations[0]),u.parent&&u.parent.kind===257)return os(u.parent.name);switch(u.kind){case 228:case 215:case 216:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),u.kind===228?"(Anonymous class)":"(Anonymous function)"}}let c=Nv(n,a);return c!==void 0?c:fc(n)}function Xf(n){if(n){let c=Rr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 341:case 349:case 343:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Li(n.parent.parent.parent));case 205:return Xf(n.parent.parent);case 257:if(La(n.name)&&!n.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(D0(n))return!0;let c=FE(n);return!(wg(n)&1)&&!(n.kind!==268&&c.kind!==308&&c.flags&16777216)?gm(c):Xf(c);case 169:case 168:case 174:case 175:case 171:case 170:if(cd(n,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return Xf(n.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;case 274:return!1;default:return!1}}}function ME(n,a){let c;n.parent&&n.parent.kind===274?c=zs(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===278&&(c=Kf(n.parent,2998271));let u,p;return c&&(p=new Set,p.add($a(c)),h(c.declarations)),u;function h(T){mn(T,k=>{let O=x1(k)||k;if(a?Rr(k).isVisible=!0:(u=u||[],Of(u,O)),GA(k)){let H=k.moduleReference,J=Yd(H),de=zs(k,J.escapedText,901119,void 0,void 0,!1);de&&p&&_0(p,$a(de))&&h(de.declarations)}})}}function cf(n,a){let c=Sm(n,a);if(c>=0){let{length:u}=Wh;for(let p=c;p<u;p++)S_[p]=!1;return!1}return Wh.push(n),S_.push(!0),hv.push(a),!0}function Sm(n,a){for(let c=Wh.length-1;c>=0;c--){if(py(Wh[c],hv[c]))return-1;if(Wh[c]===n&&hv[c]===a)return c}return-1}function py(n,a){switch(a){case 0:return!!Ai(n).type;case 5:return!!Rr(n).resolvedEnumType;case 2:return!!Ai(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Ai(n).writeType;case 9:return Rr(n).parameterInitializerContainsUndefined!==void 0}return L.assertNever(a)}function If(){return Wh.pop(),hv.pop(),S_.pop()}function FE(n){return jn(nm(n),a=>{switch(a.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function Pv(n){let a=gs(ju(n));return a.typeParameters?_g(a,on(a.typeParameters,c=>Se)):a}function Vc(n,a){let c=ja(n,a);return c?zn(c):void 0}function KP(n,a){var c;return Vc(n,a)||((c=jx(n,a))==null?void 0:c.type)||ue}function Zo(n){return n&&(n.flags&1)!==0}function Ro(n){return n===ve||!!(n.flags&1&&n.aliasSymbol)}function Px(n,a){if(a!==0)return Oo(n,!1,a);let c=fr(n);return c&&Ai(c).type||Oo(n,!1,a)}function Mx(n,a,c){if(n=jc(n,O=>!(O.flags&98304)),n.flags&131072)return Ki;if(n.flags&1048576)return Ls(n,O=>Mx(O,a,c));let u=Gr(on(a,pg)),p=[],h=[];for(let O of Jo(n)){let H=TC(O,8576);!to(H,u)&&!(Ef(O)&24)&&iB(O)?p.push(O):h.push(H)}if(Zb(n)||jv(u)){if(h.length&&(u=Gr([u,...h])),u.flags&131072)return n;let O=AKe();return O?Jx(O,[n,u]):ve}let T=Ua();for(let O of p)T.set(O.escapedName,Dne(O,!1));let k=ls(c,T,Je,Je,tu(n));return k.objectFlags|=4194304,k}function V(n){return!!(n.flags&465829888)&&Js(bu(n)||ue,32768)}function me(n){let a=yh(n,V)?Ls(n,c=>c.flags&465829888?Ty(c):c):n;return wf(a,524288)}function Ue(n,a){let c=ut(n);return c?Yv(c,a):a}function ut(n){let a=Lt(n);if(a&&cR(a)&&a.flowNode){let c=dn(n);if(c){let u=it(fm.createStringLiteral(c),n),p=Ju(a)?a:fm.createParenthesizedExpression(a),h=it(fm.createElementAccessExpression(p,u),n);return go(u,h),go(h,n),p!==a&&go(p,h),h.flowNode=a.flowNode,h}}}function Lt(n){let a=n.parent.parent;switch(a.kind){case 205:case 299:return ut(a);case 206:return ut(n.parent);case 257:return a.initializer;case 223:return a.right}}function dn(n){let a=n.parent;return n.kind===205&&a.kind===203?Er(n.propertyName||n.name):n.kind===299||n.kind===300?Er(n.name):""+a.elements.indexOf(n)}function Er(n){let a=pg(n);return a.flags&384?""+a.value:void 0}function ii(n){let a=n.dotDotDotToken?64:0,c=Px(n.parent.parent,a);return c&&li(n,c)}function li(n,a){if(Zo(a))return a;let c=n.parent;U&&n.flags&16777216&&CT(n)?a=yg(a):U&&c.parent.initializer&&!(iu(V2e(c.parent.initializer))&65536)&&(a=wf(a,524288));let u;if(c.kind===203)if(n.dotDotDotToken){if(a=O_(a),a.flags&2||!RM(a))return Fe(n,_.Rest_types_may_only_be_created_from_object_types),ve;let p=[];for(let h of c.elements)h.dotDotDotToken||p.push(h.propertyName||h.name);u=Mx(a,p,n.symbol)}else{let p=n.propertyName||n.name,h=pg(p),T=od(a,h,32,p);u=Ue(n,T)}else{let p=wy(65|(n.dotDotDotToken?0:128),a,Oe,c),h=c.elements.indexOf(n);if(n.dotDotDotToken){let T=Ty(a);u=Im(T,po)?Ls(T,k=>EC(k,h)):nu(p)}else if(Kv(a)){let T=op(h),k=32|(RC(n)?16:0),O=Ay(a,T,k,n.name)||ve;u=Ue(n,O)}else u=p}return n.initializer?Cl(bA(n))?U&&!(iu(ID(n,0))&16777216)?me(u):u:vie(n,Gr([me(u),ID(n,0)],2)):u}function di(n){let a=Vy(n);if(a)return $r(a)}function ma(n){let a=vs(n,!0);return a.kind===104||a.kind===79&&Qf(a)===Le}function is(n){let a=vs(n,!0);return a.kind===206&&a.elements.length===0}function ao(n,a=!1,c=!0){return U&&c?gg(n,a):n}function Oo(n,a,c){if(wi(n)&&n.parent.parent.kind===246){let T=Gp(Wre(Yi(n.parent.parent.expression,c)));return T.flags&4456448?AAe(T):ae}if(wi(n)&&n.parent.parent.kind===247){let T=n.parent.parent;return e8(T)||Se}if(La(n.parent))return ii(n);let u=Na(n)&&!rm(n)||$d(n)||$ue(n),p=a&&WW(n),h=ad(n);if(cH(n))return h?Zo(h)||h===ue?h:ve:Ve?ue:Se;if(h)return ao(h,u,p);if((ge||Yn(n))&&wi(n)&&!La(n.name)&&!(wg(n)&1)&&!(n.flags&16777216)){if(!(G_(n)&2)&&(!n.initializer||ma(n.initializer)))return at;if(n.initializer&&is(n.initializer))return bn}if(ha(n)){let T=n.parent;if(T.kind===175&&Ux(T)){let H=nc(fr(n.parent),174);if(H){let J=ip(H),de=Qie(T);return de&&n===de?(L.assert(!de.type),zn(J.thisParameter)):qo(J)}}let k=QJe(T,n);if(k)return k;let O=n.symbol.escapedName==="this"?oCe(T):sCe(n);if(O)return ao(O,!1,p)}if(mT(n)&&n.initializer){if(Yn(n)&&!ha(n)){let k=fC(n,fr(n),$w(n));if(k)return k}let T=vie(n,ID(n,c));return ao(T,u,p)}if(Na(n)&&(ge||Yn(n)))if(zc(n)){let T=Pr(n.parent.members,oc),k=T.length?Yf(n.symbol,T):uu(n)&2?yB(n.symbol):void 0;return k&&ao(k,!0,p)}else{let T=wv(n.parent),k=T?my(n.symbol,T):uu(n)&2?yB(n.symbol):void 0;return k&&ao(k,!0,p)}if(Sp(n))return pe;if(La(n.name))return oo(n.name,!1,!0)}function id(n){if(n.valueDeclaration&&ar(n.valueDeclaration)){let a=Ai(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!Op(n)&&Ji(n.declarations,c=>ar(c)&&GB(c)&&(c.left.kind!==209||yf(c.left.argumentExpression))&&!k_(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function np(n){let a=n.valueDeclaration;return a&&Na(a)&&!Cl(a)&&!a.initializer&&(ge||Yn(a))}function Op(n){if(n.declarations)for(let a of n.declarations){let c=Ku(a,!1,!1);if(c&&(c.kind===173||cp(c)))return c}}function cg(n){let a=Gn(n.declarations[0]),c=Gi(n.escapedName),u=n.declarations.every(h=>Yn(h)&&Us(h)&&Bm(h.expression)),p=u?D.createPropertyAccessExpression(D.createPropertyAccessExpression(D.createIdentifier("module"),D.createIdentifier("exports")),c):D.createPropertyAccessExpression(D.createIdentifier("exports"),c);return u&&go(p.expression.expression,p.expression),go(p.expression,p),go(p,a),p.flowNode=a.endFlowNode,Yv(p,at,Oe)}function Yf(n,a){let c=na(n.escapedName,"__#")?D.createPrivateIdentifier(n.escapedName.split("@")[1]):Gi(n.escapedName);for(let u of a){let p=D.createPropertyAccessExpression(D.createThis(),c);go(p.expression,p),go(p,u),p.flowNode=u.returnFlowNode;let h=Fx(p,n);if(ge&&(h===at||h===bn)&&Fe(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,E(n),Ee(h)),!Im(h,zB))return PD(h)}}function my(n,a){let c=na(n.escapedName,"__#")?D.createPrivateIdentifier(n.escapedName.split("@")[1]):Gi(n.escapedName),u=D.createPropertyAccessExpression(D.createThis(),c);go(u.expression,u),go(u,a),u.flowNode=a.returnFlowNode;let p=Fx(u,n);return ge&&(p===at||p===bn)&&Fe(n.valueDeclaration,_.Member_0_implicitly_has_an_1_type,E(n),Ee(p)),Im(p,zB)?void 0:PD(p)}function Fx(n,a){let c=a?.valueDeclaration&&(!np(a)||uu(a.valueDeclaration)&2)&&yB(a)||Oe;return Yv(n,at,c)}function GE(n,a){let c=oS(n.valueDeclaration);if(c){let k=Yn(c)?x0(c):void 0;return k&&k.typeExpression?$r(k.typeExpression):n.valueDeclaration&&fC(n.valueDeclaration,n,c)||i0(Ic(c))}let u,p=!1,h=!1;if(id(n)&&(u=my(n,Op(n))),!u){let k;if(n.declarations){let O;for(let H of n.declarations){let J=ar(H)||Pa(H)?H:Us(H)?ar(H.parent)?H.parent:H:void 0;if(!J)continue;let de=Us(J)?tR(J):ic(J);(de===4||ar(J)&&GB(J,de))&&(lf(J)?p=!0:h=!0),Pa(J)||(O=k_(O,J,n,H)),O||(k||(k=[])).push(ar(J)||Pa(J)?Mv(n,a,J,de):lt)}u=O}if(!u){if(!Fn(k))return ve;let O=p&&n.declarations?Gx(k,n.declarations):void 0;if(h){let J=yB(n);J&&((O||(O=[])).push(J),p=!0)}let H=vt(O,J=>!!(J.flags&-98305))?O:k;u=Gr(H)}}let T=Sd(ao(u,!1,h&&!p));return n.valueDeclaration&&jc(T,k=>!!(k.flags&-98305))===lt?(qv(n.valueDeclaration,Se),Se):T}function fC(n,a,c){var u,p;if(!Yn(n)||!c||!rs(c)||c.properties.length)return;let h=Ua();for(;ar(n)||br(n);){let O=vd(n);(u=O?.exports)!=null&&u.size&&ll(h,O.exports),n=ar(n)?n.parent:n.parent.parent}let T=vd(n);(p=T?.exports)!=null&&p.size&&ll(h,T.exports);let k=ls(a,h,Je,Je,Je);return k.objectFlags|=4096,k}function k_(n,a,c,u){var p;let h=Cl(a.parent);if(h){let T=Sd($r(h));if(n)!Ro(n)&&!Ro(T)&&!ph(n,T)&&cLe(void 0,n,u,T);else return T}if((p=c.parent)!=null&&p.valueDeclaration){let T=Cl(c.parent.valueDeclaration);if(T){let k=ja($r(T),c.escapedName);if(k)return Gv(k)}}return n}function Mv(n,a,c,u){if(Pa(c)){if(a)return zn(a);let T=Ic(c.arguments[2]),k=Vc(T,"value");if(k)return k;let O=Vc(T,"get");if(O){let J=F1(O);if(J)return qo(J)}let H=Vc(T,"set");if(H){let J=F1(H);if(J)return uie(J)}return Se}if(_C(c.left,c.right))return Se;let p=u===1&&(br(c.left)||Vs(c.left))&&(Bm(c.left.expression)||Re(c.left.expression)&&TT(c.left.expression)),h=a?zn(a):p?Hu(Ic(c.right)):i0(Ic(c.right));if(h.flags&524288&&u===2&&n.escapedName==="export="){let T=R_(h),k=Ua();Mw(T.members,k);let O=k.size;a&&!a.exports&&(a.exports=Ua()),(a||n).exports.forEach((J,de)=>{var Ae;let xe=k.get(de);if(xe&&xe!==J&&!(J.flags&2097152))if(J.flags&111551&&xe.flags&111551){if(J.valueDeclaration&&xe.valueDeclaration&&Gn(J.valueDeclaration)!==Gn(xe.valueDeclaration)){let It=Gi(J.escapedName),Tn=((Ae=zr(xe.valueDeclaration,zl))==null?void 0:Ae.name)||xe.valueDeclaration;Ao(Fe(J.valueDeclaration,_.Duplicate_identifier_0,It),hr(Tn,_._0_was_also_declared_here,It)),Ao(Fe(Tn,_.Duplicate_identifier_0,It),hr(J.valueDeclaration,_._0_was_also_declared_here,It))}let tt=wo(J.flags|xe.flags,de);tt.links.type=Gr([zn(J),zn(xe)]),tt.valueDeclaration=xe.valueDeclaration,tt.declarations=Qi(xe.declarations,J.declarations),k.set(de,tt)}else k.set(de,C_(J,xe));else k.set(de,J)});let H=ls(O!==k.size?void 0:T.symbol,k,T.callSignatures,T.constructSignatures,T.indexInfos);if(O===k.size&&(h.aliasSymbol&&(H.aliasSymbol=h.aliasSymbol,H.aliasTypeArguments=h.aliasTypeArguments),Ur(h)&4)){H.aliasSymbol=h.symbol;let J=Ko(h);H.aliasTypeArguments=Fn(J)?J:void 0}return H.objectFlags|=Ur(h)&4096,H.symbol&&H.symbol.flags&32&&h===vu(H.symbol)&&(H.objectFlags|=16777216),H}return bB(h)?(qv(c,Et),Et):h}function _C(n,a){return br(n)&&n.expression.kind===108&&kO(a,c=>El(n,c))}function lf(n){let a=Ku(n,!1,!1);return a.kind===173||a.kind===259||a.kind===215&&!nR(a.parent)}function Gx(n,a){return L.assert(n.length===a.length),n.filter((c,u)=>{let p=a[u],h=ar(p)?p:ar(p.parent)?p.parent:void 0;return h&&lf(h)})}function hy(n,a,c){if(n.initializer){let u=La(n.name)?oo(n.name,!0,!1):ue;return ao(vie(n,ID(n,0,u)))}return La(n.name)?oo(n.name,a,c):(c&&!Wk(n)&&qv(n,Se),a?ce:Se)}function jk(n,a,c){let u=Ua(),p,h=131200;mn(n.elements,k=>{let O=k.propertyName||k.name;if(k.dotDotDotToken){p=Fp(ae,Se,!1);return}let H=pg(O);if(!fh(H)){h|=512;return}let J=Np(H),de=4|(k.initializer?16777216:0),Ae=wo(de,J);Ae.links.type=hy(k,a,c),Ae.links.bindingElement=k,u.set(Ae.escapedName,Ae)});let T=ls(void 0,u,Je,Je,p?[p]:Je);return T.objectFlags|=h,a&&(T.pattern=n,T.objectFlags|=131072),T}function Hk(n,a,c){let u=n.elements,p=Os(u),h=p&&p.kind===205&&p.dotDotDotToken?p:void 0;if(u.length===0||u.length===1&&h)return R>=2?cAe(Se):Et;let T=on(u,J=>ol(J)?Se:hy(J,a,c)),k=s8(u,J=>!(J===h||ol(J)||RC(J)),u.length-1)+1,O=on(u,(J,de)=>J===h?4:de>=k?2:1),H=ap(T,O);return a&&(H=Wxe(H),H.pattern=n,H.objectFlags|=131072),H}function oo(n,a=!1,c=!1){return n.kind===203?jk(n,a,c):Hk(n,a,c)}function Zs(n,a){return gy(Oo(n,!0,0),n,a)}function Fv(n){let a=vd(n),c=pKe(!1);return c&&a&&a===c}function gy(n,a,c){return n?(n.flags&4096&&Fv(a.parent)&&(n=wne(a)),c&&CB(a,n),n.flags&8192&&(Wo(a)||!a.type)&&n.symbol!==fr(a)&&(n=j),Sd(n)):(n=ha(a)&&a.dotDotDotToken?Et:Se,c&&(Wk(a)||qv(a,n)),n)}function Wk(n){let a=nm(n),c=a.kind===166?a.parent:a;return qM(c)}function ad(n){let a=Cl(n);if(a)return $r(a)}function zk(n){let a=n.valueDeclaration;return a?(Wo(a)&&(a=bA(a)),ha(a)?fB(a.parent):!1):!1}function y(n){let a=Ai(n);if(!a.type){let c=I(n);return!a.type&&!zk(n)&&(a.type=c),c}return a.type}function I(n){if(n.flags&4194304)return Pv(n);if(n===ct)return Se;if(n.flags&134217728&&n.valueDeclaration){let u=fr(Gn(n.valueDeclaration)),p=wo(u.flags,"exports");p.declarations=u.declarations?u.declarations.slice():[],p.parent=n,p.links.target=u,u.valueDeclaration&&(p.valueDeclaration=u.valueDeclaration),u.members&&(p.members=new Map(u.members)),u.exports&&(p.exports=new Map(u.exports));let h=Ua();return h.set("exports",p),ls(n,h,Je,Je,Je)}L.assertIsDefined(n.valueDeclaration);let a=n.valueDeclaration;if(Li(a)&&Mf(a))return a.statements.length?Sd(i0(Yi(a.statements[0].expression))):Ki;if(rb(a))return Tr(n);if(!cf(n,0))return n.flags&512&&!(n.flags&67108864)?Vd(n):pC(n);let c;if(a.kind===274)c=gy(ad(a)||Ic(a.expression),a);else if(ar(a)||Yn(a)&&(Pa(a)||(br(a)||H6(a))&&ar(a.parent)))c=GE(n);else if(br(a)||Vs(a)||Re(a)||es(a)||Vf(a)||sl(a)||Jc(a)||Nc(a)&&!s_(a)||zm(a)||Li(a)){if(n.flags&9136)return Vd(n);c=ar(a.parent)?GE(n):ad(a)||Se}else if(yl(a))c=ad(a)||NIe(a);else if(Sp(a))c=ad(a)||bCe(a);else if(xf(a))c=ad(a)||BC(a.name,0);else if(s_(a))c=ad(a)||PIe(a,0);else if(ha(a)||Na(a)||$d(a)||wi(a)||Wo(a)||a6(a))c=Zs(a,!0);else if(hb(a))c=Vd(n);else if(q0(a))c=ug(n);else return L.fail("Unhandled declaration kind! "+L.formatSyntaxKind(a.kind)+" for "+L.formatSymbol(n));return If()?c:n.flags&512&&!(n.flags&67108864)?Vd(n):pC(n)}function N(n){if(n)switch(n.kind){case 174:return U_(n);case 175:return Fce(n);case 169:return L.assert(rm(n)),Cl(n)}}function te(n){let a=N(n);return a&&$r(a)}function Me(n){let a=Qie(n);return a&&a.symbol}function Pt(n){return Yb(ip(n))}function Tr(n){let a=Ai(n);if(!a.type){if(!cf(n,0))return ve;let c=nc(n,174),u=nc(n,175),p=zr(nc(n,169),Id),h=c&&Yn(c)&&di(c)||te(c)||te(u)||te(p)||c&&c.body&&rU(c)||p&&p.initializer&&Zs(p,!0);h||(u&&!qM(u)?Ip(ge,u,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,E(n)):c&&!qM(c)?Ip(ge,c,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,E(n)):p&&!qM(p)&&Ip(ge,p,_.Member_0_implicitly_has_an_1_type,E(n),"any"),h=Se),If()||(N(c)?Fe(c,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,E(n)):N(u)||N(p)?Fe(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,E(n)):c&&ge&&Fe(c,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,E(n)),h=Se),a.type=h}return a.type}function Fi(n){var a;let c=Ai(n);if(!c.writeType){if(!cf(n,8))return ve;let u=(a=nc(n,175))!=null?a:zr(nc(n,169),Id),p=te(u);If()||(N(u)&&Fe(u,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,E(n)),p=Se),c.writeType=p||Tr(n)}return c.writeType}function Da(n){let a=Wr(vu(n));return a.flags&8650752?a:a.flags&2097152?wr(a.types,c=>!!(c.flags&8650752)):void 0}function Vd(n){let a=Ai(n),c=a;if(!a.type){let u=n.valueDeclaration&&eU(n.valueDeclaration,!1);if(u){let p=oie(n,u);p&&(n=p,a=p.links)}c.type=a.type=lg(n)}return a.type}function lg(n){let a=n.valueDeclaration;if(n.flags&1536&&CI(n))return Se;if(a&&(a.kind===223||Us(a)&&a.parent.kind===223))return GE(n);if(n.flags&512&&a&&Li(a)&&a.commonJsModuleIndicator){let u=Vu(n);if(u!==n){if(!cf(n,0))return ve;let p=No(n.exports.get("export=")),h=GE(p,p===u?void 0:u);return If()?h:pC(n)}}let c=Bd(16,n);if(n.flags&32){let u=Da(n);return u?so([c,u]):c}else return U&&n.flags&16777216?gg(c):c}function ug(n){let a=Ai(n);return a.type||(a.type=_xe(n))}function dg(n){let a=Ai(n);if(!a.type){let c=wc(n),u=n.declarations&&L_(Uu(n),!0),p=ks(u?.declarations,h=>pc(h)?ad(h):void 0);a.type=u?.declarations&&yU(u.declarations)&&n.declarations.length?cg(u):yU(n.declarations)?at:p||(Fl(c)&111551?zn(c):ve)}return a.type}function wte(n){let a=Ai(n);return a.type||(a.type=Oi(zn(a.target),a.mapper))}function Rte(n){let a=Ai(n);return a.writeType||(a.writeType=Oi(mC(a.target),a.mapper))}function pC(n){let a=n.valueDeclaration;return Cl(a)?(Fe(n.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,E(n)),ve):(ge&&(a.kind!==166||a.initializer)&&Fe(n.valueDeclaration,_._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,E(n)),Se)}function Jk(n){let a=Ai(n);return a.type||(L.assertIsDefined(a.deferralParent),L.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Gr(a.deferralConstituents):so(a.deferralConstituents)),a.type}function Ote(n){let a=Ai(n);return!a.writeType&&a.deferralWriteConstituents&&(L.assertIsDefined(a.deferralParent),L.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Gr(a.deferralWriteConstituents):so(a.deferralWriteConstituents)),a.writeType}function mC(n){let a=ac(n);return n.flags&4?a&2?a&65536?Ote(n)||Jk(n):n.links.writeType||n.links.type:zn(n):n.flags&98304?a&1?Rte(n):Fi(n):zn(n)}function zn(n){let a=ac(n);return a&65536?Jk(n):a&1?wte(n):a&262144?NJe(n):a&8192?JXe(n):n.flags&7?y(n):n.flags&9136?Vd(n):n.flags&8?ug(n):n.flags&98304?Tr(n):n.flags&2097152?dg(n):ve}function Gv(n){return KE(zn(n),!!(n.flags&16777216))}function Bv(n,a){return n!==void 0&&a!==void 0&&(Ur(n)&4)!==0&&n.target===a}function Bx(n){return Ur(n)&4?n.target:n}function BE(n,a){return c(n);function c(u){if(Ur(u)&7){let p=Bx(u);return p===a||vt(_o(p),c)}else if(u.flags&2097152)return vt(u.types,c);return!1}}function qP(n,a){for(let c of a)n=xg(n,UE(fr(c)));return n}function hC(n,a){for(;;){if(n=n.parent,n&&ar(n)){let c=ic(n);if(c===6||c===3){let u=fr(n.left);u&&u.parent&&!jn(u.parent.valueDeclaration,p=>n===p)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 260:case 228:case 261:case 176:case 177:case 170:case 181:case 182:case 320:case 259:case 171:case 215:case 216:case 262:case 348:case 349:case 343:case 341:case 197:case 191:{let u=hC(n,a);if(n.kind===197)return Sn(u,UE(fr(n.typeParameter)));if(n.kind===191)return Qi(u,PAe(n));let p=qP(u,jy(n)),h=a&&(n.kind===260||n.kind===228||n.kind===261||cp(n))&&vu(fr(n)).thisType;return h?Sn(p,h):p}case 344:let c=uR(n);c&&(n=c.valueDeclaration);break;case 323:{let u=hC(n,a);return n.tags?qP(u,Uo(n.tags,p=>H_(p)?p.typeParameters:void 0)):u}}}}function WG(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===261)return!0;if(u.kind!==257)return!1;let p=u.initializer;return!!p&&(p.kind===215||p.kind===216)});return L.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),hC(c)}function yy(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===261||c.kind===260||c.kind===228||cp(c)||sR(c))&&(a=qP(a,jy(c)));return a}function D1(n){return Qi(WG(n),yy(n))}function XP(n){let a=xa(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Xl(c)){let u=UM(c.parameters[0]);return Zo(u)||Xne(u)===Se}}return!1}function Uv(n){if(xa(n,1).length>0)return!0;if(n.flags&8650752){let a=bu(n);return!!a&&XP(a)}return!1}function yn(n){let a=Nh(n.symbol);return a&&hp(a)}function Or(n,a,c){let u=Fn(a),p=Yn(c);return Pr(xa(n,1),h=>(p||u>=Mp(h.typeParameters))&&u<=Fn(h.typeParameters))}function xr(n,a,c){let u=Or(n,a,c),p=on(a,$r);return Tl(u,h=>vt(h.typeParameters)?eD(h,p,Yn(c)):h)}function Wr(n){if(!n.resolvedBaseConstructorType){let a=Nh(n.symbol),c=a&&hp(a),u=yn(n);if(!u)return n.resolvedBaseConstructorType=Oe;if(!cf(n,1))return ve;let p=Yi(u.expression);if(c&&u!==c&&(L.assert(!c.typeArguments),Yi(c.expression)),p.flags&2621440&&R_(p),!If())return Fe(n.symbol.valueDeclaration,_._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,E(n.symbol)),n.resolvedBaseConstructorType=ve;if(!(p.flags&1)&&p!==ir&&!Uv(p)){let h=Fe(u.expression,_.Type_0_is_not_a_constructor_function_type,Ee(p));if(p.flags&262144){let T=bC(p),k=ue;if(T){let O=xa(T,1);O[0]&&(k=qo(O[0]))}p.symbol.declarations&&Ao(h,hr(p.symbol.declarations[0],_.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,E(p.symbol),Ee(k)))}return n.resolvedBaseConstructorType=ve}n.resolvedBaseConstructorType=p}return n.resolvedBaseConstructorType}function Ci(n){let a=Je;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=JA(c);if(u)for(let p of u){let h=$r(p);Ro(h)||(a===Je?a=[h]:a.push(h))}}return a}function eo(n,a){Fe(n,_.Type_0_recursively_references_itself_as_a_base_type,Ee(a,void 0,2))}function _o(n){if(!n.baseTypesResolved){if(cf(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[jd(n)]:n.symbol.flags&96?(n.symbol.flags&32&&D_(n),n.symbol.flags&64&&dh(n)):L.fail("type must be class or interface"),!If()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===260||a.kind===261)&&eo(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function jd(n){let a=Tl(n.typeParameters,(c,u)=>n.elementFlags[u]&8?od(c,rt):c);return nu(Gr(a||Je),n.readonly)}function D_(n){n.resolvedBaseTypes=S4;let a=Eu(Wr(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=Je;let c=yn(n),u,p=a.symbol?gs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&uh(p))u=zxe(c,a.symbol);else if(a.flags&1)u=a;else{let T=xr(a,c.typeArguments,c);if(!T.length)return Fe(c.expression,_.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=Je;u=qo(T[0])}if(Ro(u))return n.resolvedBaseTypes=Je;let h=O_(u);if(!xm(h)){let T=Xte(void 0,u),k=da(T,_.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ee(h));return Lo.add(Lh(Gn(c.expression),c.expression,k)),n.resolvedBaseTypes=Je}return n===h||BE(h,n)?(Fe(n.symbol.valueDeclaration,_.Type_0_recursively_references_itself_as_a_base_type,Ee(n,void 0,2)),n.resolvedBaseTypes=Je):(n.resolvedBaseTypes===S4&&(n.members=void 0),n.resolvedBaseTypes=[h])}function uh(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Ko(n);return a[c].symbol!==u[c].symbol}return!0}function xm(n){if(n.flags&262144){let a=bu(n);if(a)return xm(a)}return!!(n.flags&67633153&&!df(n)||n.flags&2097152&&Ji(n.types,xm))}function dh(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||Je,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===261&&PI(a))for(let c of PI(a)){let u=O_($r(c));Ro(u)||(xm(u)?n!==u&&!BE(u,n)?n.resolvedBaseTypes===Je?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):eo(a,n):Fe(c,_.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function gC(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===261){if(a.flags&128)return!1;let c=PI(a);if(c){for(let u of c)if(bc(u.expression)){let p=uc(u.expression,788968,!0);if(!p||!(p.flags&64)||vu(p).thisType)return!1}}}return!0}function vu(n){let a=Ai(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,p=oie(n,n.valueDeclaration&&jQe(n.valueDeclaration));p&&(n=p,a=p.links);let h=c.declaredType=a.declaredType=Bd(u,n),T=WG(n),k=yy(n);(T||k||u===1||!gC(n))&&(h.objectFlags|=4,h.typeParameters=Qi(T,k),h.outerTypeParameters=T,h.localTypeParameters=k,h.instantiations=new Map,h.instantiations.set(kf(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=rd(n),h.thisType.isThisType=!0,h.thisType.constraint=h)}return a.declaredType}function Kb(n){var a;let c=Ai(n);if(!c.declaredType){if(!cf(n,2))return ve;let u=L.checkDefined((a=n.declarations)==null?void 0:a.find(sR),"Type alias symbol with no valid declaration found"),p=Ff(u)?u.typeExpression:u.type,h=p?$r(p):ve;if(If()){let T=yy(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(kf(T),h))}else h=ve,u.kind===343?Fe(u.typeExpression.type,_.Type_alias_0_circularly_references_itself,E(n)):Fe(zl(u)&&u.name||u,_.Type_alias_0_circularly_references_itself,E(n));c.declaredType=h}return c.declaredType}function Kk(n){return n.flags&1056&&n.symbol.flags&8?gs(ju(n.symbol)):n}function dxe(n){let a=Ai(n);if(!a.declaredType){let c=[];if(n.declarations){for(let p of n.declarations)if(p.kind===263){for(let h of p.members)if(Ux(h)){let T=fr(h),k=xU(h),O=Yx(k!==void 0?Iqe(k,$a(n),T):fxe(T));Ai(T).declaredType=O,c.push(Hu(O))}}}let u=c.length?Gr(c,1,n,void 0):fxe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function fxe(n){let a=Rp(32,n),c=Rp(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function _xe(n){let a=Ai(n);if(!a.declaredType){let c=dxe(ju(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function UE(n){let a=Ai(n);return a.declaredType||(a.declaredType=rd(n))}function fJe(n){let a=Ai(n);return a.declaredType||(a.declaredType=gs(wc(n)))}function gs(n){return pxe(n)||ve}function pxe(n){if(n.flags&96)return vu(n);if(n.flags&524288)return Kb(n);if(n.flags&262144)return UE(n);if(n.flags&384)return dxe(n);if(n.flags&8)return _xe(n);if(n.flags&2097152)return fJe(n)}function YP(n){switch(n.kind){case 131:case 157:case 152:case 148:case 160:case 134:case 153:case 149:case 114:case 155:case 144:case 198:return!0;case 185:return YP(n.elementType);case 180:return!n.typeArguments||n.typeArguments.every(YP)}return!1}function _Je(n){let a=EA(n);return!a||YP(a)}function mxe(n){let a=Cl(n);return a?YP(a):!Jy(n)}function pJe(n){let a=U_(n),c=jy(n);return(n.kind===173||!!a&&YP(a))&&n.parameters.every(mxe)&&c.every(_Je)}function mJe(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 169:case 168:return mxe(a);case 171:case 170:case 173:case 174:case 175:return pJe(a)}}return!1}function hxe(n,a,c){let u=Ua();for(let p of n)u.set(p.escapedName,c&&mJe(p)?p:One(p,a));return u}function gxe(n,a){for(let c of a)!n.has(c.escapedName)&&!yxe(c)&&n.set(c.escapedName,c)}function yxe(n){return!!n.valueDeclaration&&xu(n.valueDeclaration)&&Ca(n.valueDeclaration)}function Nte(n){if(!n.declaredProperties){let a=n.symbol,c=vy(a);n.declaredProperties=uy(c),n.declaredCallSignatures=Je,n.declaredConstructSignatures=Je,n.declaredIndexInfos=Je,n.declaredCallSignatures=Xb(c.get("__call")),n.declaredConstructSignatures=Xb(c.get("__new")),n.declaredIndexInfos=Vxe(a)}return n}function fh(n){return!!(n.flags&8576)}function Pte(n){if(!ts(n)&&!Vs(n))return!1;let a=ts(n)?n.expression:n.argumentExpression;return bc(a)&&fh(ts(n)?vg(n):Ic(a))}function qk(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function $P(n){let a=sa(n);return!!a&&Pte(a)}function Ux(n){return!Xy(n)||$P(n)}function hJe(n){return Y6(n)&&!Pte(n)}function Np(n){return n.flags&8192?n.escapedName:n.flags&384?Bs(""+n.value):L.fail()}function gJe(n,a,c){L.assert(!!(ac(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Ai(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function vxe(n,a,c,u){L.assert(!!u.symbol,"The member is expected to have a symbol.");let p=Rr(u);if(!p.resolvedSymbol){p.resolvedSymbol=u.symbol;let h=ar(u)?u.left:u.name,T=Vs(h)?Ic(h.argumentExpression):vg(h);if(fh(T)){let k=Np(T),O=u.symbol.flags,H=c.get(k);H||c.set(k,H=wo(0,k,4096));let J=a&&a.get(k);if(H.flags&Kc(O)||J){let de=J?Qi(J.declarations,H.declarations):H.declarations,Ae=!(T.flags&8192)&&Gi(k)||os(h);mn(de,xe=>Fe(sa(xe)||xe,_.Property_0_was_also_declared_here,Ae)),Fe(h||u,_.Duplicate_property_0,Ae),H=wo(0,k,4096)}return H.links.nameType=T,gJe(H,u,O),H.parent?L.assert(H.parent===n,"Existing symbol parent should match new one"):H.parent=n,p.resolvedSymbol=H}}return p.resolvedSymbol}function Mte(n,a){let c=Ai(n);if(!c[a]){let u=a==="resolvedExports",p=u?n.flags&1536?Dx(n).exports:n.exports:n.members;c[a]=p||q;let h=Ua();for(let k of n.declarations||Je){let O=$se(k);if(O)for(let H of O)u===zc(H)&&$P(H)&&vxe(n,p,h,H)}let T=n.assignmentDeclarationMembers;if(T){let k=lo(T.values());for(let O of k){let H=ic(O),J=H===3||ar(O)&&GB(O,H)||H===9||H===6;u===!J&&$P(O)&&vxe(n,p,h,O)}}c[a]=Yh(p,h)||q}return c[a]}function vy(n){return n.flags&6256?Mte(n,"resolvedMembers"):n.members||q}function zG(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=Ai(n);if(!a.lateSymbol&&vt(n.declarations,$P)){let c=No(n.parent);vt(n.declarations,zc)?Gd(c):vy(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function uf(n,a,c){if(Ur(n)&4){let u=n.target,p=Ko(n);if(Fn(u.typeParameters)===Fn(p)){let h=_g(u,Qi(p,[a||u.thisType]));return c?Eu(h):h}}else if(n.flags&2097152){let u=Tl(n.types,p=>uf(p,a,c));return u!==n.types?so(u):n}return c?Eu(n):n}function bxe(n,a,c,u){let p,h,T,k,O;GU(c,u,0,c.length)?(h=a.symbol?vy(a.symbol):Ua(a.declaredProperties),T=a.declaredCallSignatures,k=a.declaredConstructSignatures,O=a.declaredIndexInfos):(p=Wu(c,u),h=hxe(a.declaredProperties,p,c.length===1),T=cB(a.declaredCallSignatures,p),k=cB(a.declaredConstructSignatures,p),O=VAe(a.declaredIndexInfos,p));let H=_o(a);if(H.length){a.symbol&&h===vy(a.symbol)&&(h=Ua(a.declaredProperties)),sf(n,h,T,k,O);let J=Os(u);for(let de of H){let Ae=J?uf(Oi(de,p),J):de;gxe(h,Jo(Ae)),T=Qi(T,xa(Ae,0)),k=Qi(k,xa(Ae,1));let xe=Ae!==Se?tu(Ae):[Fp(ae,Se,!1)];O=Qi(O,Pr(xe,tt=>!Yte(O,tt.keyType)))}}sf(n,h,T,k,O)}function yJe(n){bxe(n,Nte(n),Je,Je)}function vJe(n){let a=Nte(n.target),c=Qi(a.typeParameters,[a.thisType]),u=Ko(n),p=u.length===c.length?u:Qi(u,[n]);bxe(n,a,c,p)}function Am(n,a,c,u,p,h,T,k){let O=new m(qe,k);return O.declaration=n,O.typeParameters=a,O.parameters=u,O.thisParameter=c,O.resolvedReturnType=p,O.resolvedTypePredicate=h,O.minArgumentCount=T,O.resolvedMinArgumentCount=void 0,O.target=void 0,O.mapper=void 0,O.compositeSignatures=void 0,O.compositeKind=void 0,O}function Xk(n){let a=Am(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&39);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function Exe(n,a){let c=Xk(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function bJe(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=EJe(n,a))}function EJe(n,a){L.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=Xk(n);return c.flags|=a,c}function Txe(n,a){if(Xl(n)){let u=n.parameters.length-1,p=zn(n.parameters[u]);if(po(p))return[c(p,u)];if(!a&&p.flags&1048576&&Ji(p.types,po))return on(p.types,h=>c(h,u))}return[n.parameters];function c(u,p){let h=Ko(u),T=u.target.labeledElementDeclarations,k=on(h,(O,H)=>{let de=!!T&&nU(T[H])||FC(n,p+H,u),Ae=u.target.elementFlags[H],xe=Ae&12?32768:Ae&2?16384:0,tt=wo(1,de,xe);return tt.links.type=Ae&4?nu(O):O,tt});return Qi(n.parameters.slice(0,p),k)}}function TJe(n){let a=Wr(n),c=xa(a,1),u=Nh(n.symbol),p=!!u&&Mr(u,256);if(c.length===0)return[Am(void 0,n.localTypeParameters,void 0,Je,n,void 0,0,p?4:0)];let h=yn(n),T=Yn(h),k=aM(h),O=Fn(k),H=[];for(let J of c){let de=Mp(J.typeParameters),Ae=Fn(J.typeParameters);if(T||O>=de&&O<=Ae){let xe=Ae?JG(J,Sy(k,J.typeParameters,de,T)):Xk(J);xe.typeParameters=n.localTypeParameters,xe.resolvedReturnType=n,xe.flags=p?xe.flags|4:xe.flags&-5,H.push(xe)}}return H}function Fte(n,a,c,u,p){for(let h of n)if(vM(h,a,c,u,p,c?Kqe:sD))return h}function SJe(n,a,c){if(a.typeParameters){if(c>0)return;for(let p=1;p<n.length;p++)if(!Fte(n[p],a,!1,!1,!1))return;return[a]}let u;for(let p=0;p<n.length;p++){let h=p===c?a:Fte(n[p],a,!0,!1,!0);if(!h)return;u=xg(u,h)}return u}function Gte(n){let a,c;for(let u=0;u<n.length;u++){if(n[u].length===0)return Je;n[u].length>1&&(c=c===void 0?u:-1);for(let p of n[u])if(!a||!Fte(a,p,!1,!1,!0)){let h=SJe(n,p,u);if(h){let T=p;if(h.length>1){let k=p.thisParameter,O=mn(h,H=>H.thisParameter);if(O){let H=so(Zi(h,J=>J.thisParameter&&zn(J.thisParameter)));k=qE(O,H)}T=Exe(p,h),T.thisParameter=k}(a||(a=[])).push(T)}}}if(!Fn(a)&&c!==-1){let u=n[c!==void 0?c:0],p=u.slice();for(let h of n)if(h!==u){let T=h[0];if(L.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),p=T.typeParameters&&vt(p,k=>!!k.typeParameters&&!Sxe(T.typeParameters,k.typeParameters))?void 0:on(p,k=>CJe(k,T)),!p)break}a=p}return a||Je}function Sxe(n,a){if(Fn(n)!==Fn(a))return!1;if(!n||!a)return!0;let c=Wu(a,n);for(let u=0;u<n.length;u++){let p=n[u],h=a[u];if(p!==h&&!ph(bC(p)||ue,Oi(bC(h)||ue,c)))return!1}return!0}function xJe(n,a,c){if(!n||!a)return n||a;let u=so([zn(n),Oi(zn(a),c)]);return qE(n,u)}function AJe(n,a,c){let u=xd(n),p=xd(a),h=u>=p?n:a,T=h===n?a:n,k=h===n?u:p,O=jp(n)||jp(a),H=O&&!jp(h),J=new Array(k+(H?1:0));for(let de=0;de<k;de++){let Ae=tT(h,de);h===a&&(Ae=Oi(Ae,c));let xe=tT(T,de)||ue;T===a&&(xe=Oi(xe,c));let tt=so([Ae,xe]),It=O&&!H&&de===k-1,Tn=de>=Vp(h)&&de>=Vp(T),un=de>=u?void 0:FC(n,de),Nn=de>=p?void 0:FC(a,de),en=un===Nn?un:un?Nn?void 0:un:Nn,cn=wo(1|(Tn&&!It?16777216:0),en||`arg${de}`);cn.links.type=It?nu(tt):tt,J[de]=cn}if(H){let de=wo(1,"args");de.links.type=nu(P_(T,k)),T===a&&(de.links.type=Oi(de.links.type,c)),J[k]=de}return J}function CJe(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Wu(a.typeParameters,n.typeParameters));let p=n.declaration,h=AJe(n,a,u),T=xJe(n.thisParameter,a.thisParameter,u),k=Math.max(n.minArgumentCount,a.minArgumentCount),O=Am(p,c,T,h,void 0,void 0,k,(n.flags|a.flags)&39);return O.compositeKind=1048576,O.compositeSignatures=Qi(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u&&(O.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Jv(n.mapper,u):u),O}function xxe(n){let a=tu(n[0]);if(a){let c=[];for(let u of a){let p=u.keyType;Ji(n,h=>!!Cm(h,p))&&c.push(Fp(p,Gr(on(n,h=>fg(h,p))),vt(n,h=>Cm(h,p).isReadonly)))}return c}return Je}function IJe(n){let a=Gte(on(n.types,p=>p===Hs?[jt]:xa(p,0))),c=Gte(on(n.types,p=>xa(p,1))),u=xxe(n.types);sf(n,q,a,c,u)}function QP(n,a){return n?a?so([n,a]):n:a}function Axe(n){let a=Oy(n,u=>xa(u,1).length>0),c=on(n,XP);if(a>0&&a===Oy(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function LJe(n,a,c,u){let p=[];for(let h=0;h<a.length;h++)h===u?p.push(n):c[h]&&p.push(qo(xa(a[h],1)[0]));return so(p)}function kJe(n){let a,c,u,p=n.types,h=Axe(p),T=Oy(h,k=>k);for(let k=0;k<p.length;k++){let O=n.types[k];if(!h[k]){let H=xa(O,1);H.length&&T>0&&(H=on(H,J=>{let de=Xk(J);return de.resolvedReturnType=LJe(qo(J),p,h,k),de})),c=Cxe(c,H)}a=Cxe(a,xa(O,0)),u=ou(tu(O),(H,J)=>Ixe(H,J,!1),u)}sf(n,q,a||Je,c||Je,u||Je)}function Cxe(n,a){for(let c of a)(!n||Ji(n,u=>!vM(u,c,!1,!1,!1,sD)))&&(n=Sn(n,c));return n}function Ixe(n,a,c){if(n)for(let u=0;u<n.length;u++){let p=n[u];if(p.keyType===a.keyType)return n[u]=Fp(p.keyType,c?Gr([p.type,a.type]):so([p.type,a.type]),c?p.isReadonly||a.isReadonly:p.isReadonly&&a.isReadonly),n}return Sn(n,a)}function DJe(n){if(n.target){sf(n,q,Je,Je,Je);let T=hxe(Ey(n.target),n.mapper,!1),k=cB(xa(n.target,0),n.mapper),O=cB(xa(n.target,1),n.mapper),H=VAe(tu(n.target),n.mapper);sf(n,T,k,O,H);return}let a=No(n.symbol);if(a.flags&2048){sf(n,q,Je,Je,Je);let T=vy(a),k=Xb(T.get("__call")),O=Xb(T.get("__new")),H=Vxe(a);sf(n,T,k,O,H);return}let c=q,u;if(a.exports&&(c=Gd(a),a===Ye)){let T=new Map;c.forEach(k=>{var O;!(k.flags&418)&&!(k.flags&512&&((O=k.declarations)!=null&&O.length)&&Ji(k.declarations,lu))&&T.set(k.escapedName,k)}),c=T}let p;if(sf(n,c,Je,Je,Je),a.flags&32){let T=vu(a),k=Wr(T);k.flags&11272192?(c=Ua(Rx(c)),gxe(c,Jo(k))):k===Se&&(p=Fp(ae,Se,!1))}let h=ane(c);if(h?u=one(h):(p&&(u=Sn(u,p)),a.flags&384&&(gs(a).flags&32||vt(n.properties,T=>!!(zn(T).flags&296)))&&(u=Sn(u,yu))),sf(n,c,Je,Je,u||Je),a.flags&8208&&(n.callSignatures=Xb(a)),a.flags&32){let T=vu(a),k=a.members?Xb(a.members.get("__constructor")):Je;a.flags&16&&(k=si(k.slice(),Zi(n.callSignatures,O=>cp(O.declaration)?Am(O.declaration,O.typeParameters,O.thisParameter,O.parameters,T,void 0,O.minArgumentCount,O.flags&39):void 0))),k.length||(k=TJe(T)),n.constructSignatures=k}}function wJe(n,a,c){return Oi(n,Wu([a.indexType,a.objectType],[op(0),ap([c])]))}function RJe(n){let a=Cm(n.source,ae),c=Pp(n.mappedType),u=!(c&1),p=c&4?0:16777216,h=a?[Fp(ae,LB(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:Je,T=Ua();for(let k of Jo(n.source)){let O=8192|(u&&M_(k)?8:0),H=wo(4|k.flags&p,k.escapedName,O);if(H.declarations=k.declarations,H.links.nameType=Ai(k).nameType,H.links.propertyType=zn(k),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let J=n.constraintType.type.objectType,de=wJe(n.mappedType,n.constraintType.type,J);H.links.mappedType=de,H.links.constraintType=Gp(J)}else H.links.mappedType=n.mappedType,H.links.constraintType=n.constraintType;T.set(k.escapedName,H)}sf(n,T,Je,Je,h)}function ZP(n){if(n.flags&4194304){let a=Eu(n.type);return Qx(a)?_Ae(a):Gp(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=ZP(a);if(c!==a)return Fne(n,O1(n.root.checkType,c,n.mapper))}return n}if(n.flags&1048576)return Ls(n,ZP,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===mc?n:so(Tl(n.types,ZP))}return n}function Bte(n){return ac(n)&4096}function Ute(n,a,c,u){for(let p of Jo(n))u(TC(p,a));if(n.flags&1)u(ae);else for(let p of tu(n))(!c||p.keyType.flags&134217732)&&u(p.keyType)}function OJe(n){let a=Ua(),c;sf(n,q,Je,Je,Je);let u=w_(n),p=rp(n),h=by(n.target||n),T=h&&to(h,u),k=_h(n.target||n),O=Eu(yC(n)),H=Pp(n),J=we?128:8576;Yk(n)?Ute(O,J,we,de):QE(ZP(p),de),sf(n,a,Je,Je,c||Je);function de(xe){let tt=h?Oi(h,oD(n.mapper,u,xe)):xe;QE(tt,It=>Ae(xe,It))}function Ae(xe,tt){if(fh(tt)){let It=Np(tt),Tn=a.get(It);if(Tn)Tn.links.nameType=Gr([Tn.links.nameType,tt]),Tn.links.keyType=Gr([Tn.links.keyType,xe]);else{let un=fh(xe)?ja(O,Np(xe)):void 0,Nn=!!(H&4||!(H&8)&&un&&un.flags&16777216),en=!!(H&1||!(H&2)&&un&&M_(un)),cn=U&&!Nn&&un&&un.flags&16777216,rr=un?Bte(un):0,Jt=wo(4|(Nn?16777216:0),It,rr|262144|(en?8:0)|(cn?524288:0));Jt.links.mappedType=n,Jt.links.nameType=tt,Jt.links.keyType=xe,un&&(Jt.links.syntheticOrigin=un,Jt.declarations=!h||T?un.declarations:void 0),a.set(It,Jt)}}else if(KG(tt)||tt.flags&33){let It=tt.flags&5?ae:tt.flags&40?rt:tt,Tn=Oi(k,oD(n.mapper,u,xe)),un=Fp(It,Tn,!!(H&1));c=Ixe(c,un,!0)}}}function NJe(n){if(!n.links.type){let a=n.links.mappedType;if(!cf(n,0))return a.containsError=!0,ve;let c=_h(a.target||a),u=oD(a.mapper,w_(a),n.links.keyType),p=Oi(c,u),h=U&&n.flags&16777216&&!Js(p,49152)?gg(p,!0):n.links.checkFlags&524288?tre(p):p;If()||(Fe(P,_.Type_of_property_0_circularly_references_itself_in_mapped_type_1,E(n),Ee(a)),h=ve),n.links.type=h}return n.links.type}function w_(n){return n.typeParameter||(n.typeParameter=UE(fr(n.declaration.typeParameter)))}function rp(n){return n.constraintType||(n.constraintType=eu(w_(n))||ve)}function by(n){return n.declaration.nameType?n.nameType||(n.nameType=Oi($r(n.declaration.nameType),n.mapper)):void 0}function _h(n){return n.templateType||(n.templateType=n.declaration.type?Oi(ao($r(n.declaration.type),!0,!!(Pp(n)&4)),n.mapper):ve)}function Lxe(n){return EA(n.declaration.typeParameter)}function Yk(n){let a=Lxe(n);return a.kind===195&&a.operator===141}function yC(n){if(!n.modifiersType)if(Yk(n))n.modifiersType=Oi($r(Lxe(n).type),n.mapper);else{let a=Cne(n.declaration),c=rp(a),u=c&&c.flags&262144?eu(c):c;n.modifiersType=u&&u.flags&4194304?Oi(u.type,n.mapper):ue}return n.modifiersType}function Pp(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===40?2:1:0)|(a.questionToken?a.questionToken.kind===40?8:4:0)}function kxe(n){let a=Pp(n);return a&8?-1:a&4?1:0}function Vte(n){let a=kxe(n),c=yC(n);return a||(df(c)?kxe(c):0)}function PJe(n){return!!(Ur(n)&32&&Pp(n)&4)}function df(n){if(Ur(n)&32){let a=rp(n);if(jv(a))return!0;let c=by(n);if(c&&jv(Oi(c,n0(w_(n),a))))return!0}return!1}function R_(n){return n.members||(n.flags&524288?n.objectFlags&4?vJe(n):n.objectFlags&3?yJe(n):n.objectFlags&1024?RJe(n):n.objectFlags&16?DJe(n):n.objectFlags&32?OJe(n):L.fail("Unhandled object type "+L.formatObjectFlags(n.objectFlags)):n.flags&1048576?IJe(n):n.flags&2097152?kJe(n):L.fail("Unhandled type "+L.formatTypeFlags(n.flags))),n}function Ey(n){return n.flags&524288?R_(n).properties:Je}function qb(n,a){if(n.flags&524288){let u=R_(n).members.get(a);if(u&&ig(u))return u}}function eM(n){if(!n.resolvedProperties){let a=Ua();for(let c of n.types){for(let u of Jo(c))if(!a.has(u.escapedName)){let p=qte(n,u.escapedName);p&&a.set(u.escapedName,p)}if(n.flags&1048576&&tu(c).length===0)break}n.resolvedProperties=uy(a)}return n.resolvedProperties}function Jo(n){return n=vC(n),n.flags&3145728?eM(n):Ey(n)}function MJe(n,a){n=vC(n),n.flags&3670016&&R_(n).members.forEach((c,u)=>{ag(c,u)&&a(c,u)})}function FJe(n,a){return a.properties.some(u=>{let p=u.name&&pg(u.name),h=p&&fh(p)?Np(p):void 0,T=h===void 0?void 0:Vc(n,h);return!!T&&uD(T)&&!to(G1(u),T)})}function GJe(n){let a=Gr(n);if(!(a.flags&1048576))return Wie(a);let c=Ua();for(let u of n)for(let{escapedName:p}of Wie(u))if(!c.has(p)){let h=Oxe(a,p);h&&c.set(p,h)}return lo(c.values())}function VE(n){return n.flags&262144?eu(n):n.flags&8388608?BJe(n):n.flags&16777216?VJe(n):bu(n)}function eu(n){return $k(n)?bC(n):void 0}function tM(n){var a;return!!(n.flags&262144&&vt((a=n.symbol)==null?void 0:a.declarations,c=>Mr(c,2048))||Qx(n)&&Yc(Ko(n),(c,u)=>!!(n.target.elementFlags[u]&8)&&tM(c))>=0||n.flags&8388608&&tM(n.objectType))}function BJe(n){return $k(n)?UJe(n):void 0}function jte(n){let a=mg(n,!1);return a!==n?a:VE(n)}function UJe(n){if(Jte(n))return nB(n.objectType,n.indexType);let a=jte(n.indexType);if(a&&a!==n.indexType){let u=Ay(n.objectType,a,n.accessFlags);if(u)return u}let c=jte(n.objectType);if(c&&c!==n.objectType)return Ay(c,n.indexType,n.accessFlags)}function Hte(n){if(!n.resolvedDefaultConstraint){let a=Eqe(n),c=Wv(n);n.resolvedDefaultConstraint=Zo(a)?c:Zo(c)?a:Gr([a,c])}return n.resolvedDefaultConstraint}function Dxe(n){if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=mg(n.checkType,!1),c=a===n.checkType?VE(a):a;if(c&&c!==n.checkType){let u=Fne(n,O1(n.root.checkType,c,n.mapper));if(!(u.flags&131072))return u}}}function wxe(n){return Dxe(n)||Hte(n)}function VJe(n){return $k(n)?wxe(n):void 0}function jJe(n,a){let c,u=!1;for(let p of n)if(p.flags&465829888){let h=VE(p);for(;h&&h.flags&21233664;)h=VE(h);h&&(c=Sn(c,h),a&&(c=Sn(c,p)))}else(p.flags&469892092||hh(p))&&(u=!0);if(c&&(a||u)){if(u)for(let p of n)(p.flags&469892092||hh(p))&&(c=Sn(c,p));return mM(so(c),!1)}}function bu(n){if(n.flags&464781312){let a=Wte(n);return a!==Co&&a!==gc?a:void 0}return n.flags&4194304?Si:void 0}function Ty(n){return bu(n)||n}function $k(n){return Wte(n)!==gc}function Wte(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=uf(c(n),n);function c(h){if(!h.immediateBaseConstraint){if(!cf(h,4))return gc;let T,k=AC(h);if((a.length<10||a.length<50&&!ya(a,k))&&(a.push(k),T=p(mg(h,!1)),a.pop()),!If()){if(h.flags&262144){let O=sne(h);if(O){let H=Fe(O,_.Type_parameter_0_has_a_circular_constraint,Ee(h));P&&!AT(O,P)&&!AT(P,O)&&Ao(H,hr(P,_.Circularity_originates_in_type_at_this_location))}}T=gc}h.immediateBaseConstraint=T||Co}return h.immediateBaseConstraint}function u(h){let T=c(h);return T!==Co&&T!==gc?T:void 0}function p(h){if(h.flags&262144){let T=bC(h);return h.isThisType||!T?T:u(T)}if(h.flags&3145728){let T=h.types,k=[],O=!1;for(let H of T){let J=u(H);J?(J!==H&&(O=!0),k.push(J)):O=!0}return O?h.flags&1048576&&k.length===T.length?Gr(k):h.flags&2097152&&k.length?so(k):void 0:h}if(h.flags&4194304)return Si;if(h.flags&134217728){let T=h.types,k=Zi(T,u);return k.length===T.length?WE(h.texts,k):ae}if(h.flags&268435456){let T=u(h.type);return T&&T!==h.type?w1(h.symbol,T):ae}if(h.flags&8388608){if(Jte(h))return u(nB(h.objectType,h.indexType));let T=u(h.objectType),k=u(h.indexType),O=T&&k&&Ay(T,k,h.accessFlags);return O&&u(O)}if(h.flags&16777216){let T=wxe(h);return T&&u(T)}return h.flags&33554432?u(une(h)):h}}function HJe(n){return n.resolvedApparentType||(n.resolvedApparentType=uf(n,n,!0))}function zte(n){if(n.default)n.default===Ll&&(n.default=gc);else if(n.target){let a=zte(n.target);n.default=a?Oi(a,n.mapper):Co}else{n.default=Ll;let a=n.symbol&&mn(n.symbol.declarations,u=>_c(u)&&u.default),c=a?$r(a):Co;n.default===Ll&&(n.default=c)}return n.default}function jE(n){let a=zte(n);return a!==Co&&a!==gc?a:void 0}function WJe(n){return zte(n)!==gc}function Rxe(n){return!!(n.symbol&&mn(n.symbol.declarations,a=>_c(a)&&a.default))}function zJe(n){return n.resolvedApparentType||(n.resolvedApparentType=JJe(n))}function JJe(n){let a=Nne(n);if(a&&!n.declaration.nameType){let c=eu(a);if(c&&JE(c))return Oi(n,O1(a,c,n.mapper))}return n}function Jte(n){let a;return!!(n.flags&8388608&&Ur(a=n.objectType)&32&&!df(a)&&jv(n.indexType)&&!(Pp(a)&8)&&!a.declaration.nameType)}function Eu(n){let a=n.flags&465829888?bu(n)||ue:n;return Ur(a)&32?zJe(a):a.flags&2097152?HJe(a):a.flags&402653316?Ws:a.flags&296?hd:a.flags&2112?CKe():a.flags&528?vc:a.flags&12288?iAe():a.flags&67108864?Ki:a.flags&4194304?Si:a.flags&2&&!U?Ki:a}function vC(n){return O_(Eu(O_(n)))}function Oxe(n,a,c){var u,p,h;let T,k,O,H=n.flags&1048576,J,de=4,Ae=H?0:8,xe=!1;for(let Cn of n.types){let Rn=Eu(Cn);if(!(Ro(Rn)||Rn.flags&131072)){let Br=ja(Rn,a,c),Hr=Br?Ef(Br):0;if(Br){if(Br.flags&106500&&(J??(J=H?0:16777216),H?J|=Br.flags&16777216:J&=Br.flags),!T)T=Br;else if(Br!==T)if((oA(Br)||Br)===(oA(T)||T)&&qne(T,Br,(wa,Xc)=>wa===Xc?-1:0)===-1)xe=!!T.parent&&!!Fn(yy(T.parent));else{k||(k=new Map,k.set($a(T),T));let wa=$a(Br);k.has(wa)||k.set(wa,Br)}H&&M_(Br)?Ae|=8:!H&&!M_(Br)&&(Ae&=-9),Ae|=(Hr&24?0:256)|(Hr&16?512:0)|(Hr&8?1024:0)|(Hr&32?2048:0),jre(Br)||(de=2)}else if(H){let qi=!qk(a)&&jx(Rn,a);qi?(Ae|=32|(qi.isReadonly?8:0),O=Sn(O,po(Rn)?bM(Rn)||Oe:qi.type)):Xv(Rn)&&!(Ur(Rn)&2097152)?(Ae|=32,O=Sn(O,Oe)):Ae|=16}}}if(!T||H&&(k||Ae&48)&&Ae&1536&&!(k&&KJe(k.values())))return;if(!k&&!(Ae&16)&&!O)if(xe){let Cn=(u=zr(T,Zp))==null?void 0:u.links,Rn=qE(T,Cn?.type);return Rn.parent=(h=(p=T.valueDeclaration)==null?void 0:p.symbol)==null?void 0:h.parent,Rn.links.containingType=n,Rn.links.mapper=Cn?.mapper,Rn}else return T;let tt=k?lo(k.values()):[T],It,Tn,un,Nn=[],en,cn,rr=!1;for(let Cn of tt){cn?Cn.valueDeclaration&&Cn.valueDeclaration!==cn&&(rr=!0):cn=Cn.valueDeclaration,It=si(It,Cn.declarations);let Rn=zn(Cn);Tn||(Tn=Rn,un=Ai(Cn).nameType);let Br=mC(Cn);en||Br!==Rn?en=Sn(en||Nn.slice(),Br):Rn!==Tn&&(Ae|=64),(uD(Rn)||qx(Rn)||Rn===Nr)&&(Ae|=128),Rn.flags&131072&&Rn!==Nr&&(Ae|=131072),Nn.push(Rn)}si(Nn,O);let Jt=wo(4|(J??0),a,de|Ae);return Jt.links.containingType=n,!rr&&cn&&(Jt.valueDeclaration=cn,cn.symbol.parent&&(Jt.parent=cn.symbol.parent)),Jt.declarations=It,Jt.links.nameType=un,Nn.length>2?(Jt.links.checkFlags|=65536,Jt.links.deferralParent=n,Jt.links.deferralConstituents=Nn,Jt.links.deferralWriteConstituents=en):(Jt.links.type=H?Gr(Nn):so(Nn),en&&(Jt.links.writeType=H?Gr(en):so(en))),Jt}function Kte(n,a,c){var u,p;let h=(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&u.get(a)||!c?(p=n.propertyCache)==null?void 0:p.get(a):void 0;return h||(h=Oxe(n,a,c),h&&(c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=Ua()):n.propertyCache||(n.propertyCache=Ua())).set(a,h)),h}function KJe(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{ya(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function qte(n,a,c){let u=Kte(n,a,c);return u&&!(ac(u)&16)?u:void 0}function O_(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=qJe(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(vt(eM(n),XJe)?33554432:0)),n.objectFlags&33554432?lt:n):n}function qJe(n){let a=Tl(n.types,O_);if(a===n.types)return n;let c=Gr(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function XJe(n){return Nxe(n)||Pxe(n)}function Nxe(n){return!(n.flags&16777216)&&(ac(n)&131264)===192&&!!(zn(n).flags&131072)}function Pxe(n){return!n.valueDeclaration&&!!(ac(n)&1024)}function Xte(n,a){if(a.flags&2097152&&Ur(a)&33554432){let c=wr(eM(a),Nxe);if(c)return da(n,_.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ee(a,void 0,536870912),E(c));let u=wr(eM(a),Pxe);if(u)return da(n,_.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ee(a,void 0,536870912),E(u))}return n}function ja(n,a,c,u){if(n=vC(n),n.flags&524288){let p=R_(n),h=p.members.get(a);if(h&&ig(h,u))return h;if(c)return;let T=p===aa?Hs:p.callSignatures.length?Uc:p.constructSignatures.length?Gu:void 0;if(T){let k=qb(T,a);if(k)return k}return qb(ka,a)}if(n.flags&3145728)return qte(n,a,c)}function nM(n,a){if(n.flags&3670016){let c=R_(n);return a===0?c.callSignatures:c.constructSignatures}return Je}function xa(n,a){return nM(vC(n),a)}function Yte(n,a){return wr(n,c=>c.keyType===a)}function $te(n,a){let c,u,p;for(let h of n)h.keyType===ae?c=h:Vx(a,h.keyType)&&(u?(p||(p=[u])).push(h):u=h);return p?Fp(ue,so(on(p,h=>h.type)),ou(p,(h,T)=>h&&T.isReadonly,!0)):u||(c&&Vx(a,ae)?c:void 0)}function Vx(n,a){return to(n,a)||a===ae&&to(n,rt)||a===rt&&(n===Fa||!!(n.flags&128)&&Wm(n.value))}function Qte(n){return n.flags&3670016?R_(n).indexInfos:Je}function tu(n){return Qte(vC(n))}function Cm(n,a){return Yte(tu(n),a)}function fg(n,a){var c;return(c=Cm(n,a))==null?void 0:c.type}function Zte(n,a){return tu(n).filter(c=>Vx(a,c.keyType))}function rM(n,a){return $te(tu(n),a)}function jx(n,a){return rM(n,qk(a)?j:ff(Gi(a)))}function Mxe(n){var a;let c;for(let u of jy(n))c=xg(c,UE(u.symbol));return c?.length?c:Jc(n)?(a=Zk(n))==null?void 0:a.typeParameters:void 0}function ene(n){let a=[];return n.forEach((c,u)=>{LE(u)||a.push(c)}),a}function tne(n,a){if(fl(n))return;let c=yd(Ne,'"'+n+'"',512);return c&&a?No(c):c}function Qk(n){if(uS(n)||zR(n)||JR(n))return!0;if(n.initializer){let c=ip(n.parent),u=n.parent.parameters.indexOf(n);return L.assert(u>=0),u>=Vp(c,3)}let a=ET(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length:!1}function YJe(n){return Na(n)&&!rm(n)&&n.questionToken}function iM(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function Mp(n){let a=0;if(n)for(let c=0;c<n.length;c++)Rxe(n[c])||(a=c+1);return a}function Sy(n,a,c,u){let p=Fn(a);if(!p)return[];let h=Fn(n);if(u||h>=c&&h<=p){let T=n?n.slice():[];for(let O=h;O<p;O++)T[O]=ve;let k=hre(u);for(let O=h;O<p;O++){let H=jE(a[O]);u&&H&&(ph(H,ue)||ph(H,Ki))&&(H=Se),T[O]=H?Oi(H,Wu(a,T)):k}return T.length=a.length,T}return n&&n.slice()}function ip(n){let a=Rr(n);if(!a.resolvedSignature){let c=[],u=0,p=0,h,T=!1,k=ET(n),O=jA(n);!k&&Yn(n)&&bce(n)&&!Joe(n)&&!Vy(n)&&(u|=32);for(let Ae=O?1:0;Ae<n.parameters.length;Ae++){let xe=n.parameters[Ae],tt=xe.symbol,It=xp(xe)?xe.typeExpression&&xe.typeExpression.type:xe.type;tt&&tt.flags&4&&!La(xe.name)&&(tt=zs(xe,tt.escapedName,111551,void 0,void 0,!1)),Ae===0&&tt.escapedName==="this"?(T=!0,h=xe.symbol):c.push(tt),It&&It.kind===198&&(u|=2),zR(xe)||xe.initializer||xe.questionToken||Fm(xe)||k&&c.length>k.arguments.length&&!It||JR(xe)||(p=c.length)}if((n.kind===174||n.kind===175)&&Ux(n)&&(!T||!h)){let Ae=n.kind===174?175:174,xe=nc(fr(n),Ae);xe&&(h=Me(xe))}if(Yn(n)){let Ae=e6(n);Ae&&Ae.typeExpression&&(h=qE(wo(1,"this"),$r(Ae.typeExpression)))}let J=n.kind===173?vu(No(n.parent.symbol)):void 0,de=J?J.localTypeParameters:Mxe(n);(Yj(n)||Yn(n)&&$Je(n,c))&&(u|=1),(yL(n)&&Mr(n,256)||Ec(n)&&Mr(n.parent,256))&&(u|=4),a.resolvedSignature=Am(n,de,h,c,void 0,void 0,p,u)}return a.resolvedSignature}function $Je(n,a){if(X0(n)||!nne(n))return!1;let c=Os(n.parameters),u=c?fI(c):A0(n).filter(xp),p=ks(u,T=>T.typeExpression&&h3(T.typeExpression.type)?T.typeExpression.type:void 0),h=wo(3,"args",32768);return p?h.links.type=nu($r(p.type)):(h.links.checkFlags|=65536,h.links.deferralParent=lt,h.links.deferralConstituents=[Et],h.links.deferralWriteConstituents=[Et]),p&&a.pop(),a.push(h),!0}function Zk(n){if(!(Yn(n)&&Ds(n)))return;let a=x0(n);return a?.typeExpression&&F1($r(a.typeExpression))}function QJe(n,a){let c=Zk(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?SD(c,u):P_(c,u)}function ZJe(n){let a=Zk(n);return a&&qo(a)}function nne(n){let a=Rr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 79:return u.escapedText===_t.escapedName&&i8(u)===_t;case 169:case 171:case 174:case 175:return u.name.kind===164&&c(u.name);case 208:case 209:return c(u.expression);case 299:return c(u.initializer);default:return!HH(u)&&!Gm(u)&&!!pa(u,c)}}}function Xb(n){if(!n||!n.declarations)return Je;let a=[];for(let c=0;c<n.declarations.length;c++){let u=n.declarations[c];if(Ia(u)){if(c>0&&u.body){let p=n.declarations[c-1];if(u.parent===p.parent&&u.kind===p.kind&&u.pos===p.end)continue}if(Yn(u)&&u.jsDoc){let p=!1;for(let h of u.jsDoc)if(h.tags){for(let T of h.tags)if(kL(T)){let k=T.typeExpression;k.type===void 0&&!Ec(u)&&qv(k,Se),a.push(ip(k)),p=!0}}if(p)continue}a.push(!a2(u)&&!s_(u)&&Zk(u)||ip(u))}}return a}function Fxe(n){let a=Gl(n,n);if(a){let c=Vu(a);if(c)return zn(c)}return Se}function Yb(n){if(n.thisParameter)return zn(n.thisParameter)}function Lf(n){if(!n.resolvedTypePredicate){if(n.target){let a=Lf(n.target);n.resolvedTypePredicate=a?Mqe(a,n.mapper):Rs}else if(n.compositeSignatures)n.resolvedTypePredicate=qKe(n.compositeSignatures,n.compositeKind)||Rs;else{let a=n.declaration&&U_(n.declaration),c;if(!a){let u=Zk(n.declaration);u&&n!==u&&(c=Lf(u))}n.resolvedTypePredicate=a&&l3(a)?eKe(a,n):c||Rs}L.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===Rs?void 0:n.resolvedTypePredicate}function eKe(n,a){let c=n.parameterName,u=n.type&&$r(n.type);return c.kind===194?iM(n.assertsModifier?2:0,void 0,void 0,u):iM(n.assertsModifier?3:1,c.escapedText,Yc(a.parameters,p=>p.escapedName===c.escapedText),u)}function Gxe(n,a,c){return a!==2097152?Gr(n,c):so(n)}function qo(n){if(!n.resolvedReturnType){if(!cf(n,3))return ve;let a=n.target?Oi(qo(n.target),n.mapper):n.compositeSignatures?Oi(Gxe(on(n.compositeSignatures,qo),n.compositeKind,2),n.mapper):Hx(n.declaration)||(rc(n.declaration.body)?Se:rU(n.declaration));if(n.flags&8?a=h2e(a):n.flags&16&&(a=gg(a)),!If()){if(n.declaration){let c=U_(n.declaration);if(c)Fe(c,_.Return_type_annotation_circularly_references_itself);else if(ge){let u=n.declaration,p=sa(u);p?Fe(p,_._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,os(p)):Fe(u,_.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=Se}n.resolvedReturnType=a}return n.resolvedReturnType}function Hx(n){if(n.kind===173)return vu(No(n.parent.symbol));if(X0(n)){let c=OI(n);if(c&&Ec(c.parent))return vu(No(c.parent.parent.symbol))}if(jA(n))return $r(n.parameters[0].type);let a=U_(n);if(a)return $r(a);if(n.kind===174&&Ux(n)){let c=Yn(n)&&di(n);if(c)return c;let u=nc(fr(n),175),p=te(u);if(p)return p}return ZJe(n)}function rne(n){return!n.resolvedReturnType&&Sm(n,3)>=0}function tKe(n){return Bxe(n)||Se}function Bxe(n){if(Xl(n)){let a=zn(n.parameters[n.parameters.length-1]),c=po(a)?bM(a):a;return c&&fg(c,rt)}}function eD(n,a,c,u){let p=ine(n,Sy(a,n.typeParameters,Mp(n.typeParameters),c));if(u){let h=KCe(qo(p));if(h){let T=Xk(h);T.typeParameters=u;let k=Xk(p);return k.resolvedReturnType=HE(T),k}}return p}function ine(n,a){let c=n.instantiations||(n.instantiations=new Map),u=kf(a),p=c.get(u);return p||c.set(u,p=JG(n,a)),p}function JG(n,a){return $x(n,nKe(n,a),!0)}function nKe(n,a){return Wu(n.typeParameters,a)}function tD(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=rKe(n)):n}function rKe(n){return $x(n,jAe(n.typeParameters),!0)}function iKe(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=aKe(n)):n}function aKe(n){return eD(n,on(n.typeParameters,a=>a.target&&!eu(a.target)?a.target:a),Yn(n.declaration))}function oKe(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=jAe(a),u=Wu(a,on(a,h=>eu(h)||ue)),p=on(a,h=>Oi(h,u)||ue);for(let h=0;h<a.length-1;h++)p=hg(p,u);return p=hg(p,c),n.baseSignatureCache=$x(n,Wu(a,p),!0)}return n}function HE(n){var a;if(!n.isolatedSignatureType){let c=(a=n.declaration)==null?void 0:a.kind,u=c===void 0||c===173||c===177||c===182,p=Bd(16);p.members=q,p.properties=Je,p.callSignatures=u?Je:[n],p.constructSignatures=u?[n]:Je,p.indexInfos=Je,n.isolatedSignatureType=p}return n.isolatedSignatureType}function Uxe(n){return n.members?ane(n.members):void 0}function ane(n){return n.get("__index")}function Fp(n,a,c,u){return{keyType:n,type:a,isReadonly:c,declaration:u}}function Vxe(n){let a=Uxe(n);return a?one(a):Je}function one(n){if(n.declarations){let a=[];for(let c of n.declarations)if(c.parameters.length===1){let u=c.parameters[0];u.type&&QE($r(u.type),p=>{KG(p)&&!Yte(a,p)&&a.push(Fp(p,c.type?$r(c.type):Se,cd(c,64),c))})}return a}return Je}function KG(n){return!!(n.flags&4108)||qx(n)||!!(n.flags&2097152)&&!SC(n)&&vt(n.types,KG)}function sne(n){return Zi(Pr(n.symbol&&n.symbol.declarations,_c),EA)[0]}function jxe(n,a){var c;let u;if((c=n.symbol)!=null&&c.declarations){for(let p of n.symbol.declarations)if(p.parent.kind===192){let[h=p.parent,T]=Tce(p.parent.parent);if(T.kind===180&&!a){let k=T,O=xie(k);if(O){let H=k.typeArguments.indexOf(h);if(H<O.length){let J=eu(O[H]);if(J){let de=Rne(O,O.map((xe,tt)=>()=>met(k,O,tt))),Ae=Oi(J,de);Ae!==n&&(u=Sn(u,Ae))}}}}else if(T.kind===166&&T.dotDotDotToken||T.kind===188||T.kind===199&&T.dotDotDotToken)u=Sn(u,nu(ue));else if(T.kind===201)u=Sn(u,ae);else if(T.kind===165&&T.parent.kind===197)u=Sn(u,Si);else if(T.kind===197&&T.type&&vs(T.type)===p.parent&&T.parent.kind===191&&T.parent.extendsType===T&&T.parent.checkType.kind===197&&T.parent.checkType.type){let k=T.parent.checkType,O=$r(k.type);u=Sn(u,Oi(O,n0(UE(fr(k.typeParameter)),k.typeParameter.constraint?$r(k.typeParameter.constraint):Si)))}}}return u&&so(u)}function bC(n){if(!n.constraint)if(n.target){let a=eu(n.target);n.constraint=a?Oi(a,n.mapper):Co}else{let a=sne(n);if(!a)n.constraint=jxe(n)||Co;else{let c=$r(a);c.flags&1&&!Ro(c)&&(c=a.parent.parent.kind===197?Si:ue),n.constraint=c}}return n.constraint===Co?void 0:n.constraint}function Hxe(n){let a=nc(n.symbol,165),c=H_(a.parent)?J6(a.parent):a.parent;return c&&vd(c)}function kf(n){let a="";if(n){let c=n.length,u=0;for(;u<c;){let p=n[u].id,h=1;for(;u+h<c&&n[u+h].id===p+h;)h++;a.length&&(a+=","),a+=p,h>1&&(a+=":"+h),u+=h}}return a}function Wx(n,a){return n?`@${$a(n)}`+(a?`:${kf(a)}`:""):""}function qG(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=Ur(u));return c&458752}function zx(n,a){return vt(a)&&n===ro?ue:_g(n,a)}function _g(n,a){let c=kf(a),u=n.instantiations.get(c);return u||(u=Bd(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?qG(a):0,u.target=n,u.resolvedTypeArguments=a),u}function Wxe(n){let a=Rp(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function cne(n,a,c,u,p){if(!u){u=R1(a);let T=Xx(u);p=c?hg(T,c):T}let h=Bd(4,n.symbol);return h.target=n,h.node=a,h.mapper=c,h.aliasSymbol=u,h.aliasTypeArguments=p,h}function Ko(n){var a,c;if(!n.resolvedTypeArguments){if(!cf(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>ve))||Je;let u=n.node,p=u?u.kind===180?Qi(n.target.outerTypeParameters,oU(u,n.target.localTypeParameters)):u.kind===185?[$r(u.elementType)]:on(u.elements,$r):Je;If()?n.resolvedTypeArguments=n.mapper?hg(p,n.mapper):p:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>ve))||Je,Fe(n.node||P,n.target.symbol?_.Type_arguments_for_0_circularly_reference_themselves:_.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&E(n.target.symbol)))}return n.resolvedTypeArguments}function Vv(n){return Fn(n.target.typeParameters)}function zxe(n,a){let c=gs(No(a)),u=c.localTypeParameters;if(u){let p=Fn(n.typeArguments),h=Mp(u),T=Yn(n);if(!(!ge&&T)&&(p<h||p>u.length)){let H=T&&Vg(n)&&!x2(n.parent),J=h===u.length?H?_.Expected_0_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_1_type_argument_s:H?_.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_.Generic_type_0_requires_between_1_and_2_type_arguments,de=Ee(c,void 0,2);if(Fe(n,J,de,h,u.length),!T)return ve}if(n.kind===180&&uAe(n,Fn(n.typeArguments)!==u.length))return cne(c,n,void 0);let O=Qi(c.outerTypeParameters,Sy(aM(n),u,h,T));return _g(c,O)}return $b(n,a)?c:ve}function Jx(n,a,c,u){let p=gs(n);if(p===Q&&rN.has(n.escapedName)&&a&&a.length===1)return w1(n,a[0]);let h=Ai(n),T=h.typeParameters,k=kf(a)+Wx(c,u),O=h.instantiations.get(k);return O||h.instantiations.set(k,O=zAe(p,Wu(T,Sy(a,T,Mp(T),Yn(n.valueDeclaration))),c,u)),O}function sKe(n,a){if(ac(a)&1048576){let p=aM(n),h=Wx(a,p),T=Cr.get(h);return T||(T=Cc(1,"error"),T.aliasSymbol=a,T.aliasTypeArguments=p,Cr.set(h,T)),T}let c=gs(a),u=Ai(a).typeParameters;if(u){let p=Fn(n.typeArguments),h=Mp(u);if(p<h||p>u.length)return Fe(n,h===u.length?_.Generic_type_0_requires_1_type_argument_s:_.Generic_type_0_requires_between_1_and_2_type_arguments,E(a),h,u.length),ve;let T=R1(n),k=T&&(Jxe(a)||!Jxe(T))?T:void 0,O;if(k)O=Xx(k);else if(_6(n)){let H=Kx(n,2097152,!0);if(H&&H!==Ht){let J=wc(H);J&&J.flags&524288&&(k=J,O=aM(n)||(u?[]:void 0))}}return Jx(a,aM(n),k,O)}return $b(n,a)?c:ve}function Jxe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(sR);return!!(c&&Xd(c))}function cKe(n){switch(n.kind){case 180:return n.typeName;case 230:let a=n.expression;if(bc(a))return a}}function Kxe(n){return n.parent?`${Kxe(n.parent)}.${n.escapedName}`:n.escapedName}function XG(n){let c=(n.kind===163?n.right:n.kind===208?n.name:n).escapedText;if(c){let u=n.kind===163?XG(n.left):n.kind===208?XG(n.expression):void 0,p=u?`${Kxe(u)}.${c}`:c,h=dr.get(p);return h||(dr.set(p,h=wo(524288,c,1048576)),h.parent=u,h.links.declaredType=nt),h}return Ht}function Kx(n,a,c){let u=cKe(n);if(!u)return Ht;let p=uc(u,a,c);return p&&p!==Ht?p:c?Ht:XG(u)}function YG(n,a){if(a===Ht)return ve;if(a=Iv(a)||a,a.flags&96)return zxe(n,a);if(a.flags&524288)return sKe(n,a);let c=pxe(a);if(c)return $b(n,a)?Hu(c):ve;if(a.flags&111551&&$G(n)){let u=lKe(n,a);return u||(Kx(n,788968),zn(a))}return ve}function lKe(n,a){let c=Rr(n);if(!c.resolvedJSDocType){let u=zn(a),p=u;if(a.valueDeclaration){let h=n.kind===202&&n.qualifier;u.symbol&&u.symbol!==a&&h&&(p=YG(n,u.symbol))}c.resolvedJSDocType=p}return c.resolvedJSDocType}function lne(n,a){if(a.flags&3||a===n||n.flags&1)return n;let c=`${ru(n)}>${ru(a)}`,u=Dt.get(c);if(u)return u;let p=ch(33554432);return p.baseType=n,p.constraint=a,Dt.set(c,p),p}function une(n){return so([n.constraint,n.baseType])}function qxe(n){return n.kind===186&&n.elements.length===1}function Xxe(n,a,c){return qxe(a)&&qxe(c)?Xxe(n,a.elements[0],c.elements[0]):Cy($r(a))===Cy(n)?$r(c):void 0}function uKe(n,a){let c,u=!0;for(;a&&!ca(a)&&a.kind!==323;){let p=a.parent;if(p.kind===166&&(u=!u),(u||n.flags&8650752)&&p.kind===191&&a===p.trueType){let h=Xxe(n,p.checkType,p.extendsType);h&&(c=Sn(c,h))}else if(n.flags&262144&&p.kind===197&&a===p.type){let h=$r(p);if(w_(h)===Cy(n)){let T=Nne(h);if(T){let k=eu(T);k&&Im(k,JE)&&(c=Sn(c,Gr([rt,Fa])))}}}a=p}return c?lne(n,so(c)):n}function $G(n){return!!(n.flags&8388608)&&(n.kind===180||n.kind===202)}function $b(n,a){return n.typeArguments?(Fe(n,_.Type_0_is_not_generic,a?E(a):n.typeName?os(n.typeName):nN),!1):!0}function Yxe(n){if(Re(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return $b(n),ae;case"Number":return $b(n),rt;case"Boolean":return $b(n),Te;case"Void":return $b(n),yt;case"Undefined":return $b(n),Oe;case"Null":return $b(n),ln;case"Function":case"function":return $b(n),Hs;case"array":return(!a||!a.length)&&!ge?Et:void 0;case"promise":return(!a||!a.length)&&!ge?jM(Se):void 0;case"Object":if(a&&a.length===2){if(U6(n)){let c=$r(a[0]),u=$r(a[1]),p=c===ae||c===rt?[Fp(c,u,!1)]:Je;return ls(void 0,q,Je,Je,p)}return Se}return $b(n),ge?void 0:Se}}}function dKe(n){let a=$r(n.type);return U?TB(a,65536):a}function dne(n){let a=Rr(n);if(!a.resolvedType){if(Ch(n)&&pT(n.parent))return a.resolvedSymbol=Ht,a.resolvedType=Ic(n.parent.expression);let c,u,p=788968;$G(n)&&(u=Yxe(n),u||(c=Kx(n,p,!0),c===Ht?c=Kx(n,p|111551):Kx(n,p),u=YG(n,c))),u||(c=Kx(n,p),u=YG(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function aM(n){return on(n.typeArguments,$r)}function $xe(n){let a=Rr(n);if(!a.resolvedType){let c=_Ie(n);a.resolvedType=Hu(Sd(c))}return a.resolvedType}function Qxe(n,a){function c(p){let h=p.declarations;if(h)for(let T of h)switch(T.kind){case 260:case 261:case 263:return T}}if(!n)return a?ro:Ki;let u=gs(n);return u.flags&524288?Fn(u.typeParameters)!==a?(Fe(c(n),_.Global_type_0_must_have_1_type_parameter_s,fc(n),a),a?ro:Ki):u:(Fe(c(n),_.Global_type_0_must_be_a_class_or_interface_type,fc(n)),a?ro:Ki)}function fne(n,a){return nD(n,111551,a?_.Cannot_find_global_value_0:void 0)}function Zxe(n,a){return nD(n,788968,a?_.Cannot_find_global_type_0:void 0)}function QG(n,a,c){let u=nD(n,788968,c?_.Cannot_find_global_type_0:void 0);if(u&&(gs(u),Fn(Ai(u).typeParameters)!==a)){let p=u.declarations&&wr(u.declarations,Ep);Fe(p,_.Global_type_0_must_have_1_type_parameter_s,fc(u),a);return}return u}function nD(n,a,c){return zs(void 0,n,a,c,n,!1,!1,!1)}function Fc(n,a,c){let u=Zxe(n,c);return u||c?Qxe(u,a):void 0}function fKe(){return xt||(xt=Fc("TypedPropertyDescriptor",1,!0)||ro)}function _Ke(){return Md||(Md=Fc("TemplateStringsArray",0,!0)||Ki)}function eAe(){return zf||(zf=Fc("ImportMeta",0,!0)||Ki)}function tAe(){if(!Io){let n=wo(0,"ImportMetaExpression"),a=eAe(),c=wo(4,"meta",8);c.parent=n,c.links.type=a;let u=Ua([c]);n.members=u,Io=ls(n,u,Je,Je,Je)}return Io}function nAe(n){return Jf||(Jf=Fc("ImportCallOptions",0,n))||Ki}function rAe(n){return ee||(ee=fne("Symbol",n))}function pKe(n){return Ze||(Ze=Zxe("SymbolConstructor",n))}function iAe(){return At||(At=Fc("Symbol",0,!1))||Ki}function oM(n){return qt||(qt=Fc("Promise",1,n))||ro}function aAe(n){return Ln||(Ln=Fc("PromiseLike",1,n))||ro}function _ne(n){return mr||(mr=fne("Promise",n))}function mKe(n){return Vr||(Vr=Fc("PromiseConstructorLike",0,n))||Ki}function ZG(n){return Pd||(Pd=Fc("AsyncIterable",1,n))||ro}function hKe(n){return Dc||(Dc=Fc("AsyncIterator",3,n))||ro}function gKe(n){return gd||(gd=Fc("AsyncIterableIterator",1,n))||ro}function yKe(n){return Zl||(Zl=Fc("AsyncGenerator",3,n))||ro}function pne(n){return gi||(gi=Fc("Iterable",1,n))||ro}function vKe(n){return Ea||(Ea=Fc("Iterator",3,n))||ro}function bKe(n){return bo||(bo=Fc("IterableIterator",1,n))||ro}function EKe(n){return Qo||(Qo=Fc("Generator",3,n))||ro}function TKe(n){return Cs||(Cs=Fc("IteratorYieldResult",1,n))||ro}function SKe(n){return Bu||(Bu=Fc("IteratorReturnResult",1,n))||ro}function oAe(n,a=0){let c=nD(n,788968,void 0);return c&&Qxe(c,a)}function xKe(){return Fd||(Fd=QG("Extract",2,!0)||Ht),Fd===Ht?void 0:Fd}function AKe(){return E_||(E_=QG("Omit",2,!0)||Ht),E_===Ht?void 0:E_}function mne(n){return Y_||(Y_=QG("Awaited",1,n)||(n?Ht:void 0)),Y_===Ht?void 0:Y_}function CKe(){return M||(M=Fc("BigInt",0,!1))||Ki}function IKe(n){var a;return(a=Pn??(Pn=Fc("ClassDecoratorContext",1,n)))!=null?a:ro}function LKe(n){var a;return(a=la??(la=Fc("ClassMethodDecoratorContext",2,n)))!=null?a:ro}function kKe(n){var a;return(a=oa??(oa=Fc("ClassGetterDecoratorContext",2,n)))!=null?a:ro}function DKe(n){var a;return(a=be??(be=Fc("ClassSetterDecoratorContext",2,n)))!=null?a:ro}function wKe(n){var a;return(a=De??(De=Fc("ClassAccessorDecoratorContext",2,n)))!=null?a:ro}function RKe(n){var a;return(a=mt??(mt=Fc("ClassAccessorDecoratorTarget",2,n)))!=null?a:ro}function OKe(n){var a;return(a=St??(St=Fc("ClassAccessorDecoratorResult",2,n)))!=null?a:ro}function NKe(n){var a;return(a=Zt??(Zt=Fc("ClassFieldDecoratorContext",2,n)))!=null?a:ro}function PKe(){return He||(He=fne("NaN",!1))}function MKe(){return Nt||(Nt=QG("Record",2,!0)||Ht),Nt===Ht?void 0:Nt}function rD(n,a){return n!==ro?_g(n,a):Ki}function sAe(n){return rD(fKe(),[n])}function cAe(n){return rD(pne(!0),[n])}function nu(n,a){return rD(a?jo:$o,[n])}function hne(n){switch(n.kind){case 187:return 2;case 188:return lAe(n);case 199:return n.questionToken?2:n.dotDotDotToken?lAe(n):1;default:return 1}}function lAe(n){return uM(n.type)?4:8}function FKe(n){let a=BKe(n.parent);if(uM(n))return a?jo:$o;let u=on(n.elements,hne),p=vt(n.elements,h=>h.kind!==199);return gne(u,a,p?void 0:n.elements)}function uAe(n,a){return!!R1(n)||dAe(n)&&(n.kind===185?xy(n.elementType):n.kind===186?vt(n.elements,xy):a||vt(n.typeArguments,xy))}function dAe(n){let a=n.parent;switch(a.kind){case 193:case 199:case 180:case 189:case 190:case 196:case 191:case 195:case 185:case 186:return dAe(a);case 262:return!0}return!1}function xy(n){switch(n.kind){case 180:return $G(n)||!!(Kx(n,788968).flags&524288);case 183:return!0;case 195:return n.operator!==156&&xy(n.type);case 193:case 187:case 199:case 319:case 317:case 318:case 312:return xy(n.type);case 188:return n.type.kind!==185||xy(n.type.elementType);case 189:case 190:return vt(n.types,xy);case 196:return xy(n.objectType)||xy(n.indexType);case 191:return xy(n.checkType)||xy(n.extendsType)||xy(n.trueType)||xy(n.falseType)}return!1}function GKe(n){let a=Rr(n);if(!a.resolvedType){let c=FKe(n);if(c===ro)a.resolvedType=Ki;else if(!(n.kind===186&&vt(n.elements,u=>!!(hne(u)&8)))&&uAe(n))a.resolvedType=n.kind===186&&n.elements.length===0?c:cne(c,n,void 0);else{let u=n.kind===185?[$r(n.elementType)]:on(n.elements,$r);a.resolvedType=yne(c,u)}}return a.resolvedType}function BKe(n){return RS(n)&&n.operator===146}function ap(n,a,c=!1,u){let p=gne(a||on(n,h=>1),c,u);return p===ro?Ki:n.length?yne(p,n):p}function gne(n,a,c){if(n.length===1&&n[0]&4)return a?jo:$o;let u=on(n,h=>h&1?"#":h&2?"?":h&4?".":"*").join()+(a?"R":"")+(c&&c.length?","+on(c,zo).join(","):""),p=kn.get(u);return p||kn.set(u,p=UKe(n,a,c)),p}function UKe(n,a,c){let u=n.length,p=Oy(n,de=>!!(de&9)),h,T=[],k=0;if(u){h=new Array(u);for(let de=0;de<u;de++){let Ae=h[de]=rd(),xe=n[de];if(k|=xe,!(k&12)){let tt=wo(4|(xe&2?16777216:0),""+de,a?8:0);tt.links.tupleLabelDeclaration=c?.[de],tt.links.type=Ae,T.push(tt)}}}let O=T.length,H=wo(4,"length",a?8:0);if(k&12)H.links.type=rt;else{let de=[];for(let Ae=p;Ae<=u;Ae++)de.push(op(Ae));H.links.type=Gr(de)}T.push(H);let J=Bd(12);return J.typeParameters=h,J.outerTypeParameters=void 0,J.localTypeParameters=h,J.instantiations=new Map,J.instantiations.set(kf(J.typeParameters),J),J.target=J,J.resolvedTypeArguments=J.typeParameters,J.thisType=rd(),J.thisType.isThisType=!0,J.thisType.constraint=J,J.declaredProperties=T,J.declaredCallSignatures=Je,J.declaredConstructSignatures=Je,J.declaredIndexInfos=Je,J.elementFlags=n,J.minLength=p,J.fixedLength=O,J.hasRestElement=!!(k&12),J.combinedFlags=k,J.readonly=a,J.labeledElementDeclarations=c,J}function yne(n,a){return n.objectFlags&8?fAe(n,a):_g(n,a)}function fAe(n,a){var c,u,p;if(!(n.combinedFlags&14))return _g(n,a);if(n.combinedFlags&8){let xe=Yc(a,(tt,It)=>!!(n.elementFlags[It]&8&&tt.flags&1179648));if(xe>=0)return cM(on(a,(tt,It)=>n.elementFlags[It]&8?tt:ue))?Ls(a[xe],tt=>fAe(n,UU(a,xe,tt))):ve}let h=[],T=[],k=[],O=-1,H=-1,J=-1;for(let xe=0;xe<a.length;xe++){let tt=a[xe],It=n.elementFlags[xe];if(It&8)if(tt.flags&58982400||df(tt))Ae(tt,8,(c=n.labeledElementDeclarations)==null?void 0:c[xe]);else if(po(tt)){let Tn=Ko(tt);if(Tn.length+h.length>=1e4)return Fe(P,Gm(P)?_.Type_produces_a_tuple_type_that_is_too_large_to_represent:_.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ve;mn(Tn,(un,Nn)=>{var en;return Ae(un,tt.target.elementFlags[Nn],(en=tt.target.labeledElementDeclarations)==null?void 0:en[Nn])})}else Ae(Kv(tt)&&fg(tt,rt)||ve,4,(u=n.labeledElementDeclarations)==null?void 0:u[xe]);else Ae(tt,It,(p=n.labeledElementDeclarations)==null?void 0:p[xe])}for(let xe=0;xe<O;xe++)T[xe]&2&&(T[xe]=1);H>=0&&H<J&&(h[H]=Gr(Tl(h.slice(H,J+1),(xe,tt)=>T[H+tt]&8?od(xe,rt):xe)),h.splice(H+1,J-H),T.splice(H+1,J-H),k?.splice(H+1,J-H));let de=gne(T,n.readonly,k);return de===ro?Ki:T.length?_g(de,h):de;function Ae(xe,tt,It){tt&1&&(O=T.length),tt&4&&H<0&&(H=T.length),tt&6&&(J=T.length),h.push(tt&2?ao(xe,!0):xe),T.push(tt),k&&It?k.push(It):k=void 0}}function EC(n,a,c=0){let u=n.target,p=Vv(n)-c;return a>u.fixedLength?IXe(n)||ap(Je):ap(Ko(n).slice(a,p),u.elementFlags.slice(a,p),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,p))}function _Ae(n){return Gr(Sn(mae(n.target.fixedLength,a=>ff(""+a)),Gp(n.target.readonly?jo:$o)))}function VKe(n,a){let c=Yc(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function sM(n,a){return n.elementFlags.length-s8(n.elementFlags,c=>!(c&a))-1}function jKe(n){return ao($r(n.type),!0)}function ru(n){return n.id}function Qb(n,a){return Py(n,a,ru,Es)>=0}function vne(n,a){let c=Py(n,a,ru,Es);return c<0?(n.splice(~c,0,a),!0):!1}function HKe(n,a,c){let u=c.flags;if(u&1048576)return pAe(n,a|(KKe(c)?1048576:0),c.types);if(!(u&131072))if(a|=u&205258751,u&465829888&&(a|=33554432),c===Tt&&(a|=8388608),!U&&u&98304)Ur(c)&65536||(a|=4194304);else{let p=n.length,h=p&&c.id>n[p-1].id?~p:Py(n,c,ru,Es);h<0&&n.splice(~h,0,c)}return a}function pAe(n,a,c){for(let u of c)a=HKe(n,a,u);return a}function WKe(n,a){var c;if(n.length<2)return n;let u=kf(n),p=pn.get(u);if(p)return p;let h=a&&vt(n,H=>!!(H.flags&524288)&&!df(H)&&Vne(R_(H))),T=n.length,k=T,O=0;for(;k>0;){k--;let H=n[k];if(h||H.flags&469499904){let J=H.flags&61603840?wr(Jo(H),Ae=>N_(zn(Ae))):void 0,de=J&&Hu(zn(J));for(let Ae of n)if(H!==Ae){if(O===1e5&&O/(T-k)*T>1e6){(c=ai)==null||c.instant(ai.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(tt=>tt.id)}),Fe(P,_.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(O++,J&&Ae.flags&61603840){let xe=Vc(Ae,J.escapedName);if(xe&&N_(xe)&&Hu(xe)!==de)continue}if(Bp(H,Ae,x_)&&(!(Ur(Bx(H))&1)||!(Ur(Bx(Ae))&1)||r0(H,Ae))){y0(n,k);break}}}}return pn.set(u,n),n}function zKe(n,a,c){let u=n.length;for(;u>0;){u--;let p=n[u],h=p.flags;(h&402653312&&a&4||h&256&&a&8||h&2048&&a&64||h&8192&&a&4096||c&&h&32768&&a&16384||t0(p)&&Qb(n,p.regularType))&&y0(n,u)}}function JKe(n){let a=Pr(n,c=>!!(c.flags&134217728)&&qx(c));if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&&vt(a,p=>_re(u,p))&&y0(n,c)}}}function KKe(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function mAe(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?Of(n,c):u&&u.flags&1048576&&mAe(n,u.types)}}function bne(n,a){let c=L1(n);return c.types=a,c}function Gr(n,a=1,c,u,p){if(n.length===0)return lt;if(n.length===1)return n[0];let h=[],T=pAe(h,0,n);if(a!==0){if(T&3)return T&1?T&8388608?Tt:Se:T&65536||Qb(h,ue)?ue:G;if(T&32768&&h.length>=2&&h[0]===Oe&&h[1]===Ge&&y0(h,1),(T&402664352||T&16384&&T&32768)&&zKe(h,T,!!(a&2)),T&128&&T&134217728&&JKe(h),a===2&&(h=WKe(h,!!(T&524288)),!h))return ve;if(h.length===0)return T&65536?T&4194304?ln:ir:T&32768?T&4194304?Oe:je:lt}if(!p&&T&1048576){let O=[];mAe(O,n);let H=[];for(let de of h)vt(O,Ae=>Qb(Ae.types,de))||H.push(de);if(!c&&O.length===1&&H.length===0)return O[0];if(ou(O,(de,Ae)=>de+Ae.types.length,0)+H.length===h.length){for(let de of O)vne(H,de);p=bne(1048576,H)}}let k=(T&36323363?0:32768)|(T&2097152?16777216:0);return Tne(h,k,c,u,p)}function qKe(n,a){let c,u=[];for(let h of n){let T=Lf(h);if(!T||T.kind===2||T.kind===3){if(a!==2097152)continue;return}if(c){if(!Ene(c,T))return}else c=T;u.push(T.type)}if(!c)return;let p=Gxe(u,a);return iM(c.kind,c.parameterName,c.parameterIndex,p)}function Ene(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function Tne(n,a,c,u,p){if(n.length===0)return lt;if(n.length===1)return n[0];let T=(p?p.flags&1048576?`|${kf(p.types)}`:p.flags&2097152?`&${kf(p.types)}`:`#${p.type.id}|${kf(n)}`:kf(n))+Wx(c,u),k=_n.get(T);return k||(k=ch(1048576),k.objectFlags=a|qG(n,98304),k.types=n,k.origin=p,k.aliasSymbol=c,k.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(k.flags|=16,k.intrinsicName="boolean"),_n.set(T,k)),k}function XKe(n){let a=Rr(n);if(!a.resolvedType){let c=R1(n);a.resolvedType=Gr(on(n.types,$r),1,c,Xx(c))}return a.resolvedType}function YKe(n,a,c){let u=c.flags;return u&2097152?hAe(n,a,c.types):(hh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(u&3?c===Tt&&(a|=8388608):(U||!(u&98304))&&(c===Ge&&(a|=262144,c=Oe),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&205258751),a)}function hAe(n,a,c){for(let u of c)a=YKe(n,a,Hu(u));return a}function $Ke(n,a){let c=n.length;for(;c>0;){c--;let u=n[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||hh(u)&&a&470302716)&&y0(n,c)}}function QKe(n,a){for(let c of n)if(!Qb(c.types,a)){let u=a.flags&128?ae:a.flags&256?rt:a.flags&2048?Ot:a.flags&8192?j:void 0;if(!u||!Qb(c.types,u))return!1}return!0}function ZKe(n){let a=n.length,c=Pr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&134217728){for(let p of c)if(Iy(p,u)){y0(n,a);break}else if(qx(u))return!0}}return!1}function gAe(n,a){return Ji(n,c=>!!(c.flags&1048576)&&vt(c.types,u=>!!(u.flags&a)))}function yAe(n,a){for(let c=0;c<n.length;c++)n[c]=jc(n[c],u=>!(u.flags&a))}function eqe(n){let a,c=Yc(n,T=>!!(Ur(T)&32768));if(c<0)return!1;let u=c+1;for(;u<n.length;){let T=n[u];Ur(T)&32768?((a||(a=[n[c]])).push(T),y0(n,u)):u++}if(!a)return!1;let p=[],h=[];for(let T of a)for(let k of T.types)vne(p,k)&&QKe(a,k)&&vne(h,k);return n[c]=Tne(h,32768),!0}function tqe(n,a,c){let u=ch(2097152);return u.objectFlags=qG(n,98304),u.types=n,u.aliasSymbol=a,u.aliasTypeArguments=c,u}function so(n,a,c,u){let p=new Map,h=hAe(p,0,n),T=lo(p.values());if(h&131072)return ya(T,Qe)?Qe:lt;if(U&&h&98304&&h&84410368||h&67108864&&h&402783228||h&402653316&&h&67238776||h&296&&h&469891796||h&2112&&h&469889980||h&12288&&h&469879804||h&49152&&h&469842940||h&134217728&&h&128&&ZKe(T))return lt;if(h&1)return h&8388608?Tt:Se;if(!U&&h&98304)return h&16777216?lt:h&32768?Oe:ln;if((h&4&&h&402653312||h&8&&h&256||h&64&&h&2048||h&4096&&h&8192||h&16384&&h&32768||h&16777216&&h&470302716)&&(u||$Ke(T,h)),h&262144&&(T[T.indexOf(Oe)]=Ge),T.length===0)return ue;if(T.length===1)return T[0];let k=kf(T)+Wx(a,c),O=Gt.get(k);if(!O){if(h&1048576)if(eqe(T))O=so(T,a,c);else if(gAe(T,32768)){let H=vt(T,fD)?Ge:Oe;yAe(T,32768),O=Gr([so(T),H],1,a,c)}else if(gAe(T,65536))yAe(T,65536),O=Gr([so(T),ln],1,a,c);else{if(!cM(T))return ve;let H=nqe(T),J=vt(H,de=>!!(de.flags&2097152))&&Sne(H)>Sne(T)?bne(2097152,T):void 0;O=Gr(H,1,a,c,J)}else O=tqe(T,a,c);Gt.set(k,O)}return O}function vAe(n){return ou(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function cM(n){var a;let c=vAe(n);return c>=1e5?((a=ai)==null||a.instant(ai.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:c}),Fe(P,_.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function nqe(n){let a=vAe(n),c=[];for(let u=0;u<a;u++){let p=n.slice(),h=u;for(let k=n.length-1;k>=0;k--)if(n[k].flags&1048576){let O=n[k].types,H=O.length;p[k]=O[h%H],h=Math.floor(h/H)}let T=so(p);T.flags&131072||c.push(T)}return c}function bAe(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?bAe(n.origin):Sne(n.types)}function Sne(n){return ou(n,(a,c)=>a+bAe(c),0)}function rqe(n){let a=Rr(n);if(!a.resolvedType){let c=R1(n),u=on(n.types,$r),p=u.length===2&&!!(u[0].flags&76)&&u[1]===mc;a.resolvedType=so(u,c,Xx(c),p)}return a.resolvedType}function EAe(n,a){let c=ch(4194304);return c.type=n,c.stringsOnly=a,c}function iqe(n){let a=L1(4194304);return a.type=n,a}function TAe(n,a){return a?n.resolvedStringIndexType||(n.resolvedStringIndexType=EAe(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=EAe(n,!1))}function aqe(n,a,c){let u=w_(n),p=rp(n),h=by(n.target||n);if(!h&&!c)return p;let T=[];if(Yk(n)){if(jv(p))return TAe(n,a);{let H=Eu(yC(n));Ute(H,8576,a,O)}}else QE(ZP(p),O);jv(p)&&QE(p,O);let k=c?jc(Gr(T),H=>!(H.flags&5)):Gr(T);if(k.flags&1048576&&p.flags&1048576&&kf(k.types)===kf(p.types))return p;return k;function O(H){let J=h?Oi(h,oD(n.mapper,u,H)):H;T.push(J===ae?ei:J)}}function oqe(n){let a=w_(n);return c(by(n)||a);function c(u){return u.flags&202375167?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?Ji(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function pg(n){return pi(n)?lt:Re(n)?ff(Gi(n.escapedText)):Hu(ts(n)?vg(n):Yi(n))}function TC(n,a,c){if(c||!(Ef(n)&24)){let u=Ai(zG(n)).nameType;if(!u){let p=sa(n.valueDeclaration);u=n.escapedName==="default"?ff("default"):p&&pg(p)||(gR(n)?void 0:ff(fc(n)))}if(u&&u.flags&a)return u}return lt}function SAe(n,a){return!!(n.flags&a||n.flags&2097152&&vt(n.types,c=>SAe(c,a)))}function sqe(n,a,c){let u=c&&(Ur(n)&7||n.aliasSymbol)?iqe(n):void 0,p=on(Jo(n),T=>TC(T,a)),h=on(tu(n),T=>T!==yu&&SAe(T.keyType,a)?T.keyType===ae&&a&8?ei:T.keyType:lt);return Gr(Qi(p,h),1,void 0,void 0,u)}function cqe(n){let a=Wqe(n);return O_(a)!==a}function xAe(n){return!!(n.flags&58982400||Qx(n)||df(n)&&!oqe(n)||n.flags&1048576&&vt(n.types,cqe)||n.flags&2097152&&Js(n,465829888)&&vt(n.types,hh))}function Gp(n,a=we,c){return n=O_(n),xAe(n)?TAe(n,a):n.flags&1048576?so(on(n.types,u=>Gp(u,a,c))):n.flags&2097152?Gr(on(n.types,u=>Gp(u,a,c))):Ur(n)&32?aqe(n,a,c):n===Tt?Tt:n.flags&2?lt:n.flags&131073?Si:sqe(n,(c?128:402653316)|(a?0:12584),a===we&&!c)}function AAe(n){if(we)return n;let a=xKe();return a?Jx(a,[n,ae]):ae}function lqe(n){let a=AAe(Gp(n));return a.flags&131072?ae:a}function uqe(n){let a=Rr(n);if(!a.resolvedType)switch(n.operator){case 141:a.resolvedType=Gp($r(n.type));break;case 156:a.resolvedType=n.type.kind===153?wne(dR(n.parent)):ve;break;case 146:a.resolvedType=$r(n.type);break;default:throw L.assertNever(n.operator)}return a.resolvedType}function dqe(n){let a=Rr(n);return a.resolvedType||(a.resolvedType=WE([n.head.text,...on(n.templateSpans,c=>c.literal.text)],on(n.templateSpans,c=>$r(c.type)))),a.resolvedType}function WE(n,a){let c=Yc(a,H=>!!(H.flags&1179648));if(c>=0)return cM(a)?Ls(a[c],H=>WE(n,UU(a,c,H))):ve;if(ya(a,Tt))return Tt;let u=[],p=[],h=n[0];if(!O(n,a))return ae;if(u.length===0)return ff(h);if(p.push(h),Ji(p,H=>H==="")){if(Ji(u,H=>!!(H.flags&4)))return ae;if(u.length===1&&qx(u[0]))return u[0]}let T=`${kf(u)}|${on(p,H=>H.length).join(",")}|${p.join("")}`,k=pt.get(T);return k||pt.set(T,k=_qe(p,u)),k;function O(H,J){let de=ba(H);for(let Ae=0;Ae<J.length;Ae++){let xe=J[Ae],tt=de?H[Ae+1]:H;if(xe.flags&101248){if(h+=fqe(xe)||"",h+=tt,!de)return!0}else if(xe.flags&134217728){if(h+=xe.texts[0],!O(xe.texts,xe.types))return!1;if(h+=tt,!de)return!0}else if(jv(xe)||tB(xe))u.push(xe),p.push(h),h=tt;else if(xe.flags&2097152){if(!O(H[Ae+1],xe.types))return!1}else if(de)return!1}return!0}}function fqe(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?j0(n.value):n.flags&98816?n.intrinsicName:void 0}function _qe(n,a){let c=ch(134217728);return c.texts=n,c.types=a,c}function w1(n,a){return a.flags&1179648?Ls(a,c=>w1(n,c)):a.flags&128?ff(CAe(n,a.value)):a.flags&134217728?WE(...pqe(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||jv(a)?IAe(n,a):tB(a)?IAe(n,WE(["",""],[a])):a}function CAe(n,a){switch(rN.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function pqe(n,a,c){switch(rN.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>w1(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>w1(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[w1(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[w1(n,c[0]),...c.slice(1)]:c]}return[a,c]}function IAe(n,a){let c=`${$a(n)},${ru(a)}`,u=nn.get(c);return u||nn.set(c,u=mqe(n,a)),u}function mqe(n,a){let c=Rp(268435456,n);return c.type=a,c}function hqe(n,a,c,u,p){let h=ch(8388608);return h.objectType=n,h.indexType=a,h.accessFlags=c,h.aliasSymbol=u,h.aliasTypeArguments=p,h}function iD(n){if(ge)return!1;if(Ur(n)&4096)return!0;if(n.flags&1048576)return Ji(n.types,iD);if(n.flags&2097152)return vt(n.types,iD);if(n.flags&465829888){let a=Wte(n);return a!==n&&iD(a)}return!1}function eB(n,a){return fh(n)?Np(n):a&&Ys(a)?M0(a):void 0}function xne(n,a){if(a.flags&8208){let c=jn(n.parent,u=>!Us(u))||n.parent;return rS(c)?Ih(c)&&Re(n)&&P2e(c,n):Ji(a.declarations,u=>!Ia(u)||!!(G_(u)&268435456))}return!0}function LAe(n,a,c,u,p,h){var T;let k=p&&p.kind===209?p:void 0,O=p&&pi(p)?void 0:eB(c,p);if(O!==void 0){if(h&256)return eT(a,O)||Se;let J=ja(a,O);if(J){if(h&64&&p&&J.declarations&&Sv(J)&&xne(p,J)){let Ae=(T=k?.argumentExpression)!=null?T:OS(p)?p.indexType:p;Xh(Ae,J.declarations,O)}if(k){if(MM(J,k,jCe(k.expression,a.symbol)),LIe(k,J,xT(k))){Fe(k.argumentExpression,_.Cannot_assign_to_0_because_it_is_a_read_only_property,E(J));return}if(h&8&&(Rr(p).resolvedSymbol=J),PCe(k,J))return at}let de=zn(J);return k&&xT(k)!==1?Yv(k,de):p&&OS(p)&&fD(de)?Gr([de,Oe]):de}if(Im(a,po)&&Wm(O)){let de=+O;if(p&&Im(a,Ae=>!Ae.target.hasRestElement)&&!(h&16)){let Ae=Ane(p);if(po(a)){if(de<0)return Fe(Ae,_.A_tuple_type_cannot_be_indexed_with_a_negative_value),Oe;Fe(Ae,_.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ee(a),Vv(a),Gi(O))}else Fe(Ae,_.Property_0_does_not_exist_on_type_1,Gi(O),Ee(a))}if(de>=0)return H(Cm(a,rt)),Ls(a,Ae=>{let xe=bM(Ae)||Oe;return h&1?Gr([xe,Ge]):xe})}}if(!(c.flags&98304)&&ul(c,402665900)){if(a.flags&131073)return a;let J=rM(a,c)||Cm(a,ae);if(J){if(h&2&&J.keyType!==rt){k&&Fe(k,_.Type_0_cannot_be_used_to_index_type_1,Ee(c),Ee(n));return}if(p&&J.keyType===ae&&!ul(c,12)){let de=Ane(p);return Fe(de,_.Type_0_cannot_be_used_as_an_index_type,Ee(c)),h&1?Gr([J.type,Ge]):J.type}return H(J),h&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&ju(c.symbol)===a.symbol)?Gr([J.type,Ge]):J.type}if(c.flags&131072)return lt;if(iD(a))return Se;if(k&&!hie(a)){if(Xv(a)){if(ge&&c.flags&384)return Lo.add(hr(k,_.Property_0_does_not_exist_on_type_1,c.value,Ee(a))),Oe;if(c.flags&12){let de=on(a.properties,Ae=>zn(Ae));return Gr(Sn(de,Oe))}}if(a.symbol===Ye&&O!==void 0&&Ye.exports.has(O)&&Ye.exports.get(O).flags&418)Fe(k,_.Property_0_does_not_exist_on_type_1,Gi(O),Ee(a));else if(ge&&!Y.suppressImplicitAnyIndexErrors&&!(h&128))if(O!==void 0&&BCe(O,a)){let de=Ee(a);Fe(k,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,O,de,de+"["+Qc(k.argumentExpression)+"]")}else if(fg(a,rt))Fe(k.argumentExpression,_.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let de;if(O!==void 0&&(de=Xre(O,a)))de!==void 0&&Fe(k.argumentExpression,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,O,Ee(a),de);else{let Ae=lQe(a,k,c);if(Ae!==void 0)Fe(k,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ee(a),Ae);else{let xe;if(c.flags&1024)xe=da(void 0,_.Property_0_does_not_exist_on_type_1,"["+Ee(c)+"]",Ee(a));else if(c.flags&8192){let tt=rh(c.symbol,k);xe=da(void 0,_.Property_0_does_not_exist_on_type_1,"["+tt+"]",Ee(a))}else c.flags&128||c.flags&256?xe=da(void 0,_.Property_0_does_not_exist_on_type_1,c.value,Ee(a)):c.flags&12&&(xe=da(void 0,_.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ee(c),Ee(a)));xe=da(xe,_.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ee(u),Ee(a)),Lo.add(Lh(Gn(k),k,xe))}}}return}}if(iD(a))return Se;if(p){let J=Ane(p);c.flags&384?Fe(J,_.Property_0_does_not_exist_on_type_1,""+c.value,Ee(a)):c.flags&12?Fe(J,_.Type_0_has_no_matching_index_signature_for_type_1,Ee(a),Ee(c)):Fe(J,_.Type_0_cannot_be_used_as_an_index_type,Ee(c))}if(Zo(c))return c;return;function H(J){J&&J.isReadonly&&k&&(Um(k)||GH(k))&&Fe(k,_.Index_signature_in_type_0_only_permits_reading,Ee(a))}}function Ane(n){return n.kind===209?n.argumentExpression:n.kind===196?n.indexType:n.kind===164?n.expression:n}function tB(n){return!!(n.flags&77)||qx(n)}function qx(n){return!!(n.flags&134217728)&&Ji(n.types,tB)||!!(n.flags&268435456)&&tB(n.type)}function SC(n){return!!aD(n)}function Zb(n){return!!(aD(n)&4194304)}function jv(n){return!!(aD(n)&8388608)}function aD(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|ou(n.types,(a,c)=>a|aD(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|aD(n.baseType)|aD(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||df(n)||Qx(n)?4194304:0)|(n.flags&465829888&&!qx(n)?8388608:0)}function mg(n,a){return n.flags&8388608?yqe(n,a):n.flags&16777216?vqe(n,a):n}function kAe(n,a,c){if(n.flags&1048576||n.flags&2097152&&!xAe(n)){let u=on(n.types,p=>mg(od(p,a),c));return n.flags&2097152||c?so(u):Gr(u)}}function gqe(n,a,c){if(a.flags&1048576){let u=on(a.types,p=>mg(od(n,p),c));return c?so(u):Gr(u)}}function yqe(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===gc?n:n[c];n[c]=gc;let u=mg(n.objectType,a),p=mg(n.indexType,a),h=gqe(u,p,a);if(h)return n[c]=h;if(!(p.flags&465829888)){let T=kAe(u,p,a);if(T)return n[c]=T}if(Qx(u)&&p.flags&296){let T=LC(u,p.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}if(df(u)){let T=by(u);if(!T||to(T,w_(u)))return n[c]=Ls(nB(u,n.indexType),k=>mg(k,a))}return n[c]=n}function vqe(n,a){let c=n.checkType,u=n.extendsType,p=Hv(n),h=Wv(n);if(h.flags&131072&&Cy(p)===Cy(c)){if(c.flags&1||to(zE(c),zE(u)))return mg(p,a);if(DAe(c,u))return lt}else if(p.flags&131072&&Cy(h)===Cy(c)){if(!(c.flags&1)&&to(zE(c),zE(u)))return lt;if(c.flags&1||DAe(c,u))return mg(h,a)}return n}function DAe(n,a){return!!(Gr([QP(n,a),lt]).flags&131072)}function nB(n,a){let c=Wu([w_(n)],[a]),u=Jv(n.mapper,c);return Oi(_h(n.target||n),u)}function od(n,a,c=0,u,p,h){return Ay(n,a,c,u,p,h)||(u?ve:ue)}function wAe(n,a){return Im(n,c=>{if(c.flags&384){let u=Np(c);if(Wm(u)){let p=+u;return p>=0&&p<a}}return!1})}function Ay(n,a,c=0,u,p,h){if(n===Tt||a===Tt)return Tt;if(t2e(n)&&!(a.flags&98304)&&ul(a,12)&&(a=ae),Y.noUncheckedIndexedAccess&&c&32&&(c|=1),jv(a)||(u&&u.kind!==196?Qx(n)&&!wAe(a,n.target.fixedLength):Zb(n)&&!(po(n)&&wAe(a,n.target.fixedLength)))){if(n.flags&3)return n;let k=c&1,O=n.id+","+a.id+","+k+Wx(p,h),H=gr.get(O);return H||gr.set(O,H=hqe(n,a,k,p,h)),H}let T=vC(n);if(a.flags&1048576&&!(a.flags&16)){let k=[],O=!1;for(let H of a.types){let J=LAe(n,T,H,a,u,c|(O?128:0));if(J)k.push(J);else if(u)O=!0;else return}return O?void 0:c&4?so(k,p,h):Gr(k,1,p,h)}return LAe(n,T,a,a,u,c|8|64)}function RAe(n){let a=Rr(n);if(!a.resolvedType){let c=$r(n.objectType),u=$r(n.indexType),p=R1(n);a.resolvedType=od(c,u,0,n,p,Xx(p))}return a.resolvedType}function Cne(n){let a=Rr(n);if(!a.resolvedType){let c=Bd(32,n.symbol);c.declaration=n,c.aliasSymbol=R1(n),c.aliasTypeArguments=Xx(c.aliasSymbol),a.resolvedType=c,rp(c)}return a.resolvedType}function Cy(n){return n.flags&33554432?Cy(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?od(Cy(n.objectType),Cy(n.indexType)):n}function bqe(n){let a=eu(n);return a&&(Zb(a)||jv(a))?uB(n):n}function OAe(n){return p2(n)&&Fn(n.elements)>0&&!vt(n.elements,a=>Rz(a)||Oz(a)||bL(a)&&!!(a.questionToken||a.dotDotDotToken))}function NAe(n,a){return SC(n)||a&&po(n)&&vt(Ko(n),SC)}function Ine(n,a,c,u){let p,h,T=0;for(;;){if(T===1e3){Fe(P,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),p=ve;break}let O=OAe(n.node.checkType)&&OAe(n.node.extendsType)&&Fn(n.node.checkType.elements)===Fn(n.node.extendsType.elements),H=Oi(Cy(n.checkType),a),J=NAe(H,O),de=Oi(n.extendsType,a);if(H===Tt||de===Tt)return Tt;let Ae;if(n.inferTypeParameters){let tt=Tl(n.inferTypeParameters,bqe),It=tt!==n.inferTypeParameters?Wu(n.inferTypeParameters,tt):void 0,Tn=_D(tt,void 0,0);if(It){let Nn=Jv(a,It);for(let en of tt)n.inferTypeParameters.indexOf(en)===-1&&(en.mapper=Nn)}J||gh(Tn.inferences,H,Oi(de,It),1536);let un=Jv(It,Tn.mapper);Ae=a?Jv(un,a):un}let xe=Ae?Oi(n.extendsType,Ae):de;if(!J&&!NAe(xe,O)){if(!(xe.flags&3)&&(H.flags&1||!to(dB(H),dB(xe)))){H.flags&1&&(h||(h=[])).push(Oi($r(n.node.trueType),Ae||a));let tt=$r(n.node.falseType);if(tt.flags&16777216){let It=tt.root;if(It.node.parent===n.node&&(!It.isDistributive||It.checkType===n.checkType)){n=It;continue}if(k(tt,a))continue}p=Oi(tt,a);break}if(xe.flags&3||to(zE(H),zE(xe))){let tt=$r(n.node.trueType),It=Ae||a;if(k(tt,It))continue;p=Oi(tt,It);break}}p=ch(16777216),p.root=n,p.checkType=Oi(n.checkType,a),p.extendsType=Oi(n.extendsType,a),p.mapper=a,p.combinedMapper=Ae,p.aliasSymbol=c||n.aliasSymbol,p.aliasTypeArguments=c?u:hg(n.aliasTypeArguments,a);break}return h?Gr(Sn(h,p)):p;function k(O,H){if(O.flags&16777216&&H){let J=O.root;if(J.outerTypeParameters){let de=Jv(O.mapper,H),Ae=on(J.outerTypeParameters,It=>zv(It,de)),xe=Wu(J.outerTypeParameters,Ae),tt=J.isDistributive?zv(J.checkType,xe):void 0;if(!tt||tt===J.checkType||!(tt.flags&1179648))return n=J,a=xe,c=void 0,u=void 0,J.aliasSymbol&&T++,!0}}return!1}}function Hv(n){return n.resolvedTrueType||(n.resolvedTrueType=Oi($r(n.root.node.trueType),n.mapper))}function Wv(n){return n.resolvedFalseType||(n.resolvedFalseType=Oi($r(n.root.node.falseType),n.mapper))}function Eqe(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Oi($r(n.root.node.trueType),n.combinedMapper):Hv(n))}function PAe(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=Sn(a,gs(c)))}),a}function Tqe(n){return n.isDistributive&&(fM(n.checkType,n.node.trueType)||fM(n.checkType,n.node.falseType))}function Sqe(n){let a=Rr(n);if(!a.resolvedType){let c=$r(n.checkType),u=R1(n),p=Xx(u),h=hC(n,!0),T=p?h:Pr(h,O=>fM(O,n)),k={node:n,checkType:c,extendsType:$r(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:PAe(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:p};a.resolvedType=Ine(k,void 0),T&&(k.instantiations=new Map,k.instantiations.set(kf(T),a.resolvedType))}return a.resolvedType}function xqe(n){let a=Rr(n);return a.resolvedType||(a.resolvedType=UE(fr(n.typeParameter))),a.resolvedType}function MAe(n){return Re(n)?[n]:Sn(MAe(n.left),n.right)}function Aqe(n){var a;let c=Rr(n);if(!c.resolvedType){if(!ib(n))return Fe(n.argument,_.String_literal_expected),c.resolvedSymbol=Ht,c.resolvedType=ve;let u=n.isTypeOf?111551:n.flags&8388608?900095:788968,p=Gl(n,n.argument.literal);if(!p)return c.resolvedSymbol=Ht,c.resolvedType=ve;let h=!!((a=p.exports)!=null&&a.get("export=")),T=Vu(p,!1);if(rc(n.qualifier))if(T.flags&u)c.resolvedType=FAe(n,c,T,u);else{let k=u===111551?_.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Fe(n,k,n.argument.literal.text),c.resolvedSymbol=Ht,c.resolvedType=ve}else{let k=MAe(n.qualifier),O=T,H;for(;H=k.shift();){let J=k.length?1920:u,de=No(Ac(O)),Ae=n.isTypeOf||Yn(n)&&h?ja(zn(de),H.escapedText,!1,!0):void 0,xe=n.isTypeOf?void 0:yd(Gd(de),H.escapedText,J),tt=xe??Ae;if(!tt)return Fe(H,_.Namespace_0_has_no_exported_member_1,rh(O),os(H)),c.resolvedType=ve;Rr(H).resolvedSymbol=tt,Rr(H.parent).resolvedSymbol=tt,O=tt}c.resolvedType=FAe(n,c,O,u)}}return c.resolvedType}function FAe(n,a,c,u){let p=Ac(c);return a.resolvedSymbol=p,u===111551?pIe(zn(c),n):YG(n,p)}function GAe(n){let a=Rr(n);if(!a.resolvedType){let c=R1(n);if(vy(n.symbol).size===0&&!c)a.resolvedType=mc;else{let u=Bd(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=Xx(c),LL(n)&&n.isArrayType&&(u=nu(u)),a.resolvedType=u}}return a.resolvedType}function R1(n){let a=n.parent;for(;wS(a)||UT(a)||RS(a)&&a.operator===146;)a=a.parent;return sR(a)?fr(a):void 0}function Xx(n){return n?yy(n):void 0}function rB(n){return!!(n.flags&524288)&&!df(n)}function Lne(n){return mh(n)||!!(n.flags&474058748)}function kne(n,a){if(!(n.flags&1048576))return n;if(Ji(n.types,Lne))return wr(n.types,mh)||Ki;let c=wr(n.types,h=>!Lne(h));if(!c||wr(n.types,h=>h!==c&&!Lne(h)))return n;return p(c);function p(h){let T=Ua();for(let O of Jo(h))if(!(Ef(O)&24)){if(iB(O)){let H=O.flags&65536&&!(O.flags&32768),de=wo(16777220,O.escapedName,Bte(O)|(a?8:0));de.links.type=H?Oe:ao(zn(O),!0),de.declarations=O.declarations,de.links.nameType=Ai(O).nameType,de.links.syntheticOrigin=O,T.set(O.escapedName,de)}}let k=ls(h.symbol,T,Je,Je,tu(h));return k.objectFlags|=131200,k}}function e0(n,a,c,u,p){if(n.flags&1||a.flags&1)return Se;if(n.flags&2||a.flags&2)return ue;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=kne(n,p),n.flags&1048576)return cM([n,a])?Ls(n,H=>e0(H,a,c,u,p)):ve;if(a=kne(a,p),a.flags&1048576)return cM([n,a])?Ls(a,H=>e0(n,H,c,u,p)):ve;if(a.flags&473960444)return n;if(Zb(n)||Zb(a)){if(mh(n))return a;if(n.flags&2097152){let H=n.types,J=H[H.length-1];if(rB(J)&&rB(a))return so(Qi(H.slice(0,H.length-1),[e0(J,a,c,u,p)]))}return so([n,a])}let h=Ua(),T=new Set,k=n===Ki?tu(a):xxe([n,a]);for(let H of Jo(a))Ef(H)&24?T.add(H.escapedName):iB(H)&&h.set(H.escapedName,Dne(H,p));for(let H of Jo(n))if(!(T.has(H.escapedName)||!iB(H)))if(h.has(H.escapedName)){let J=h.get(H.escapedName),de=zn(J);if(J.flags&16777216){let Ae=Qi(H.declarations,J.declarations),xe=4|H.flags&16777216,tt=wo(xe,H.escapedName);tt.links.type=Gr([zn(H),tre(de)],2),tt.links.leftSpread=H,tt.links.rightSpread=J,tt.declarations=Ae,tt.links.nameType=Ai(H).nameType,h.set(H.escapedName,tt)}}else h.set(H.escapedName,Dne(H,p));let O=ls(c,h,Je,Je,Tl(k,H=>Cqe(H,p)));return O.objectFlags|=2228352|u,O}function iB(n){var a;return!vt(n.declarations,xu)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>Yr(c.parent))))}function Dne(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===M_(n))return n;let u=4|n.flags&16777216,p=wo(u,n.escapedName,Bte(n)|(a?8:0));return p.links.type=c?Oe:zn(n),p.declarations=n.declarations,p.links.nameType=Ai(n).nameType,p.links.syntheticOrigin=n,p}function Cqe(n,a){return n.isReadonly!==a?Fp(n.keyType,n.type,a,n.declaration):n}function lM(n,a,c,u){let p=Rp(n,c);return p.value=a,p.regularType=u||p,p}function Yx(n){if(n.flags&2976){if(!n.freshType){let a=lM(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function Hu(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Ls(n,Hu)):n}function t0(n){return!!(n.flags&2976)&&n.freshType===n}function ff(n){let a;return $n.get(n)||($n.set(n,a=lM(128,n)),a)}function op(n){let a;return ui.get(n)||(ui.set(n,a=lM(256,n)),a)}function aB(n){let a,c=j0(n);return Ni.get(c)||(Ni.set(c,a=lM(2048,n)),a)}function Iqe(n,a,c){let u,p=`${a}${typeof n=="string"?"@":"#"}${n}`,h=1024|(typeof n=="string"?128:256);return Pi.get(p)||(Pi.set(p,u=lM(h,n,c)),u)}function Lqe(n){if(n.literal.kind===104)return ln;let a=Rr(n);return a.resolvedType||(a.resolvedType=Hu(Yi(n.literal))),a.resolvedType}function kqe(n){let a=Rp(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${$a(a.symbol)}`,a}function wne(n){if(ece(n)){let a=k6(n)?vd(n.left):vd(n);if(a){let c=Ai(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=kqe(a))}}return j}function Dqe(n){let a=Ku(n,!1,!1),c=a&&a.parent;if(c&&(Yr(c)||c.kind===261)&&!Ca(a)&&(!Ec(a)||AT(n,a.body)))return vu(fr(c)).thisType;if(c&&rs(c)&&ar(c.parent)&&ic(c.parent)===6)return vu(vd(c.parent.left).parent).thisType;let u=n.flags&8388608?sb(n):void 0;return u&&ms(u)&&ar(u.parent)&&ic(u.parent)===3?vu(vd(u.parent.left).parent).thisType:cp(a)&&AT(n,a.body)?vu(fr(a)).thisType:(Fe(n,_.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ve)}function oB(n){let a=Rr(n);return a.resolvedType||(a.resolvedType=Dqe(n)),a.resolvedType}function BAe(n){return $r(uM(n.type)||n.type)}function uM(n){switch(n.kind){case 193:return uM(n.type);case 186:if(n.elements.length===1&&(n=n.elements[0],n.kind===188||n.kind===199&&n.dotDotDotToken))return uM(n.type);break;case 185:return n.elementType}}function wqe(n){let a=Rr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?BAe(n):ao($r(n.type),!0,!!n.questionToken))}function $r(n){return uKe(UAe(n),n)}function UAe(n){switch(n.kind){case 131:case 315:case 316:return Se;case 157:return ue;case 152:return ae;case 148:return rt;case 160:return Ot;case 134:return Te;case 153:return j;case 114:return yt;case 155:return Oe;case 104:return ln;case 144:return lt;case 149:return n.flags&262144&&!ge?Se:jr;case 139:return Q;case 194:case 108:return oB(n);case 198:return Lqe(n);case 180:return dne(n);case 179:return n.assertsModifier?yt:Te;case 230:return dne(n);case 183:return $xe(n);case 185:case 186:return GKe(n);case 187:return jKe(n);case 189:return XKe(n);case 190:return rqe(n);case 317:return dKe(n);case 319:return ao($r(n.type));case 199:return wqe(n);case 193:case 318:case 312:return $r(n.type);case 188:return BAe(n);case 321:return Lnt(n);case 181:case 182:case 184:case 325:case 320:case 326:return GAe(n);case 195:return uqe(n);case 196:return RAe(n);case 197:return Cne(n);case 191:return Sqe(n);case 192:return xqe(n);case 200:return dqe(n);case 202:return Aqe(n);case 79:case 163:case 208:let a=Zf(n);return a?gs(a):ve;default:return ve}}function sB(n,a,c){if(n&&n.length)for(let u=0;u<n.length;u++){let p=n[u],h=c(p,a);if(p!==h){let T=u===0?[]:n.slice(0,u);for(T.push(h),u++;u<n.length;u++)T.push(c(n[u],a));return T}}return n}function hg(n,a){return sB(n,a,Oi)}function cB(n,a){return sB(n,a,$x)}function VAe(n,a){return sB(n,a,zqe)}function Wu(n,a){return n.length===1?n0(n[0],a?a[0]:Se):Rqe(n,a)}function zv(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{let u=a.sources,p=a.targets;for(let h=0;h<u.length;h++)if(n===u[h])return p?p[h]:Se;return n}case 2:{let u=a.sources,p=a.targets;for(let h=0;h<u.length;h++)if(n===u[h])return p[h]();return n}case 3:return a.func(n);case 4:case 5:let c=zv(n,a.mapper1);return c!==n&&a.kind===4?Oi(c,a.mapper2):zv(c,a.mapper2)}}function n0(n,a){return L.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function Rqe(n,a){return L.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function dM(n,a){return L.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:L.isDebugging?a:void 0})}function Rne(n,a){return L.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function lB(n,a,c){return L.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function jAe(n){return Wu(n,void 0)}function Oqe(n,a){let c=n.inferences.slice(a);return Wu(on(c,u=>u.typeParameter),on(c,()=>ue))}function Jv(n,a){return n?lB(4,n,a):a}function Nqe(n,a){return n?lB(5,n,a):a}function O1(n,a,c){return c?lB(5,n0(n,a),c):n0(n,a)}function oD(n,a,c){return n?lB(5,n,n0(a,c)):n0(a,c)}function Pqe(n){return!n.constraint&&!sne(n)||n.constraint===Co?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=rd(n.symbol),n.restrictiveInstantiation.constraint=Co,n.restrictiveInstantiation)}function uB(n){let a=rd(n.symbol);return a.target=n,a}function Mqe(n,a){return iM(n.kind,n.parameterName,n.parameterIndex,Oi(n.type,a))}function $x(n,a,c){let u;if(n.typeParameters&&!c){u=on(n.typeParameters,uB),a=Jv(Wu(n.typeParameters,u),a);for(let h of u)h.mapper=a}let p=Am(n.declaration,u,n.thisParameter&&One(n.thisParameter,a),sB(n.parameters,a,One),void 0,void 0,n.minArgumentCount,n.flags&39);return p.target=n,p.mapper=a,p}function One(n,a){let c=Ai(n);if(c.type&&!XE(c.type))return n;ac(n)&1&&(n=c.target,a=Jv(c.mapper,a));let u=wo(n.flags,n.escapedName,1|ac(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function Fqe(n,a,c,u){let p=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],h=Rr(p),T=n.objectFlags&4?h.resolvedType:n.objectFlags&64?n.target:n,k=h.outerTypeParameters;if(!k){let O=hC(p,!0);if(cp(p)){let J=Mxe(p);O=si(O,J)}k=O||Je;let H=n.objectFlags&8388612?[p]:n.symbol.declarations;k=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?Pr(k,J=>vt(H,de=>fM(J,de))):k,h.outerTypeParameters=k}if(k.length){let O=Jv(n.mapper,a),H=on(k,tt=>zv(tt,O)),J=c||n.aliasSymbol,de=c?u:hg(n.aliasTypeArguments,a),Ae=kf(H)+Wx(J,de);T.instantiations||(T.instantiations=new Map,T.instantiations.set(kf(k)+Wx(T.aliasSymbol,T.aliasTypeArguments),T));let xe=T.instantiations.get(Ae);if(!xe){let tt=Wu(k,H);xe=T.objectFlags&4?cne(n.target,n.node,tt,J,de):T.objectFlags&32?HAe(T,tt,J,de):Mne(T,tt,J,de),T.instantiations.set(Ae,xe)}return xe}return n}function Gqe(n){return!(n.parent.kind===180&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===202&&n.parent.typeArguments&&n===n.parent.qualifier)}function fM(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let u=n.symbol.declarations[0].parent;for(let p=a;p!==u;p=p.parent)if(!p||p.kind===238||p.kind===191&&pa(p.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 194:return!!n.isThisType;case 79:return!n.isThisType&&Gm(u)&&Gqe(u)&&UAe(u)===n;case 183:let p=u.exprName,h=Yd(p),T=Qf(h),k=n.symbol.declarations[0],O;if(k.kind===165)O=k.parent;else if(n.isThisType)O=k;else return!0;return T.declarations?vt(T.declarations,H=>AT(H,O))||vt(u.typeArguments,c):!0;case 171:case 170:return!u.type&&!!u.body||vt(u.typeParameters,c)||vt(u.parameters,c)||!!u.type&&c(u.type)}return!!pa(u,c)}}function Nne(n){let a=rp(n);if(a.flags&4194304){let c=Cy(a.type);if(c.flags&262144)return c}}function HAe(n,a,c,u){let p=Nne(n);if(p){let h=Oi(p,a);if(p!==h)return z2e(O_(h),T=>{if(T.flags&61603843&&T!==Tt&&!Ro(T)){if(!n.declaration.nameType){let k;if(_f(T)||T.flags&1&&Sm(p,4)<0&&(k=eu(p))&&Im(k,JE))return Uqe(T,n,O1(p,T,a));if(Qx(T))return Bqe(T,n,p,a);if(po(T))return Vqe(T,n,O1(p,T,a))}return Mne(n,O1(p,T,a))}return T},c,u)}return Oi(rp(n),a)===Tt?Tt:Mne(n,a,c,u)}function Pne(n,a){return a&1?!0:a&2?!1:n}function Bqe(n,a,c,u){let p=n.target.elementFlags,h=on(Ko(n),(k,O)=>{let H=p[O]&8?k:p[O]&4?nu(k):ap([k],[p[O]]);return HAe(a,O1(c,H,u))}),T=Pne(n.target.readonly,Pp(a));return ap(h,on(h,k=>8),T)}function Uqe(n,a,c){let u=WAe(a,rt,!0,c);return Ro(u)?ve:nu(u,Pne(CC(n),Pp(a)))}function Vqe(n,a,c){let u=n.target.elementFlags,p=on(Ko(n),(O,H)=>WAe(a,ff(""+H),!!(u[H]&2),c)),h=Pp(a),T=h&4?on(u,O=>O&1?2:O):h&8?on(u,O=>O&2?1:O):u,k=Pne(n.target.readonly,h);return ya(p,ve)?ve:ap(p,T,k,n.target.labeledElementDeclarations)}function WAe(n,a,c,u){let p=oD(u,w_(n),a),h=Oi(_h(n.target||n),p),T=Pp(n);return U&&T&4&&!Js(h,49152)?gg(h,!0):U&&T&8&&c?wf(h,524288):h}function Mne(n,a,c,u){let p=Bd(n.objectFlags|64,n.symbol);if(n.objectFlags&32){p.declaration=n.declaration;let h=w_(n),T=uB(h);p.typeParameter=T,a=Jv(n0(h,T),a),T.mapper=a}return n.objectFlags&8388608&&(p.node=n.node),p.target=n,p.mapper=a,p.aliasSymbol=c||n.aliasSymbol,p.aliasTypeArguments=c?u:hg(n.aliasTypeArguments,a),p.objectFlags|=p.aliasTypeArguments?qG(p.aliasTypeArguments):0,p}function Fne(n,a,c,u){let p=n.root;if(p.outerTypeParameters){let h=on(p.outerTypeParameters,O=>zv(O,a)),T=kf(h)+Wx(c,u),k=p.instantiations.get(T);if(!k){let O=Wu(p.outerTypeParameters,h),H=p.checkType,J=p.isDistributive?zv(H,O):void 0;k=J&&H!==J&&J.flags&1179648?z2e(O_(J),de=>Ine(p,O1(H,de,O)),c,u):Ine(p,O,c,u),p.instantiations.set(T,k)}return k}return n}function Oi(n,a){return n&&a?zAe(n,a,void 0,void 0):n}function zAe(n,a,c,u){var p;if(!XE(n))return n;if(w===100||A>=5e6)return(p=ai)==null||p.instant(ai.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:w,instantiationCount:A}),Fe(P,_.Type_instantiation_is_excessively_deep_and_possibly_infinite),ve;x++,A++,w++;let h=jqe(n,a,c,u);return w--,h}function jqe(n,a,c,u){let p=n.flags;if(p&262144)return zv(n,a);if(p&524288){let h=n.objectFlags;if(h&52){if(h&4&&!n.node){let T=n.resolvedTypeArguments,k=hg(T,a);return k!==T?yne(n.target,k):n}return h&1024?Hqe(n,a):Fqe(n,a,c,u)}return n}if(p&3145728){let h=n.flags&1048576?n.origin:void 0,T=h&&h.flags&3145728?h.types:n.types,k=hg(T,a);if(k===T&&c===n.aliasSymbol)return n;let O=c||n.aliasSymbol,H=c?u:hg(n.aliasTypeArguments,a);return p&2097152||h&&h.flags&2097152?so(k,O,H):Gr(k,1,O,H)}if(p&4194304)return Gp(Oi(n.type,a));if(p&134217728)return WE(n.texts,hg(n.types,a));if(p&268435456)return w1(n.symbol,Oi(n.type,a));if(p&8388608){let h=c||n.aliasSymbol,T=c?u:hg(n.aliasTypeArguments,a);return od(Oi(n.objectType,a),Oi(n.indexType,a),n.accessFlags,void 0,h,T)}if(p&16777216)return Fne(n,Jv(n.mapper,a),c,u);if(p&33554432){let h=Oi(n.baseType,a),T=Oi(n.constraint,a);return h.flags&8650752&&SC(T)?lne(h,T):T.flags&3||to(zE(h),zE(T))?h:h.flags&8650752?lne(h,T):so([T,h])}return n}function Hqe(n,a){let c=Oi(n.mappedType,a);if(!(Ur(c)&32))return n;let u=Oi(n.constraintType,a);if(!(u.flags&4194304))return n;let p=T2e(Oi(n.source,a),c,u);return p||n}function Wqe(n){return n.flags&134479871?n:n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Oi(n,Fo))}function dB(n){return n.flags&134479871?n:n.permissiveInstantiation||(n.permissiveInstantiation=Oi(n,xi))}function zE(n){return n.flags&134479871?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Oi(n,Hi),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function zqe(n,a){return Fp(n.keyType,Oi(n.type,a),n.isReadonly,n.declaration)}function $f(n){switch(L.assert(n.kind!==171||s_(n)),n.kind){case 215:case 216:case 171:case 259:return JAe(n);case 207:return vt(n.properties,$f);case 206:return vt(n.elements,$f);case 224:return $f(n.whenTrue)||$f(n.whenFalse);case 223:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&($f(n.left)||$f(n.right));case 299:return $f(n.initializer);case 214:return $f(n.expression);case 289:return vt(n.properties,$f)||Xm(n.parent)&&vt(n.parent.parent.children,$f);case 288:{let{initializer:a}=n;return!!a&&$f(a)}case 291:{let{expression:a}=n;return!!a&&$f(a)}}return!1}function JAe(n){return b4(n)||Jqe(n)}function Jqe(n){return!n.typeParameters&&!U_(n)&&!!n.body&&n.body.kind!==238&&$f(n.body)}function fB(n){return(a2(n)||s_(n))&&JAe(n)}function KAe(n){if(n.flags&524288){let a=R_(n);if(a.constructSignatures.length||a.callSignatures.length){let c=Bd(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=Je,c.constructSignatures=Je,c.indexInfos=Je,c}}else if(n.flags&2097152)return so(on(n.types,KAe));return n}function ph(n,a){return Bp(n,a,td)}function sD(n,a){return Bp(n,a,td)?-1:0}function Gne(n,a){return Bp(n,a,Zu)?-1:0}function Kqe(n,a){return Bp(n,a,hm)?-1:0}function Iy(n,a){return Bp(n,a,hm)}function qAe(n,a){return Bp(n,a,x_)}function to(n,a){return Bp(n,a,Zu)}function r0(n,a){return n.flags&1048576?Ji(n.types,c=>r0(c,a)):a.flags&1048576?vt(a.types,c=>r0(n,c)):n.flags&2097152?vt(n.types,c=>r0(c,a)):n.flags&58982400?r0(bu(n)||ue,a):hh(a)?!!(n.flags&67633152):a===ka?!!(n.flags&67633152)&&!hh(n):a===Hs?!!(n.flags&524288)&&vre(n):BE(n,Bx(a))||_f(a)&&!CC(a)&&r0(n,jo)}function _B(n,a){return Bp(n,a,ed)}function _M(n,a){return _B(n,a)||_B(a,n)}function wu(n,a,c,u,p,h){return Df(n,a,Zu,c,u,p,h)}function Ly(n,a,c,u,p,h){return Bne(n,a,Zu,c,u,p,h,void 0)}function Bne(n,a,c,u,p,h,T,k){return Bp(n,a,c)?!0:!u||!cD(p,n,a,c,h,T,k)?Df(n,a,c,u,h,T,k):!1}function XAe(n){return!!(n.flags&16777216||n.flags&2097152&&vt(n.types,XAe))}function cD(n,a,c,u,p,h,T){if(!n||XAe(c))return!1;if(!Df(a,c,u,void 0)&&qqe(n,a,c,u,p,h,T))return!0;switch(n.kind){case 291:case 214:return cD(n.expression,a,c,u,p,h,T);case 223:switch(n.operatorToken.kind){case 63:case 27:return cD(n.right,a,c,u,p,h,T)}break;case 207:return nXe(n,a,c,u,h,T);case 206:return eXe(n,a,c,u,h,T);case 289:return Zqe(n,a,c,u,h,T);case 216:return Xqe(n,a,c,u,h,T)}return!1}function qqe(n,a,c,u,p,h,T){let k=xa(a,0),O=xa(a,1);for(let H of[O,k])if(vt(H,J=>{let de=qo(J);return!(de.flags&131073)&&Df(de,c,u,void 0)})){let J=T||{};wu(a,c,n,p,h,J);let de=J.errors[J.errors.length-1];return Ao(de,hr(n,H===O?_.Did_you_mean_to_use_new_with_this_expression:_.Did_you_mean_to_call_this_expression)),!0}return!1}function Xqe(n,a,c,u,p,h){if(Va(n.body)||vt(n.parameters,f6))return!1;let T=F1(a);if(!T)return!1;let k=xa(c,0);if(!Fn(k))return!1;let O=n.body,H=qo(T),J=Gr(on(k,qo));if(!Df(H,J,u,void 0)){let de=O&&cD(O,H,J,u,void 0,p,h);if(de)return de;let Ae=h||{};if(Df(H,J,u,O,void 0,p,Ae),Ae.errors)return c.symbol&&Fn(c.symbol.declarations)&&Ao(Ae.errors[Ae.errors.length-1],hr(c.symbol.declarations[0],_.The_expected_type_comes_from_the_return_type_of_this_signature)),!(pl(n)&2)&&!Vc(H,"then")&&Df(jM(H),J,u,void 0)&&Ao(Ae.errors[Ae.errors.length-1],hr(n,_.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function YAe(n,a,c){let u=Ay(a,c);if(u)return u;if(a.flags&1048576){let p=i2e(n,a);if(p)return Ay(p,c)}}function $Ae(n,a){wM(n,a,!1);let c=BC(n,1);return vD(),c}function pM(n,a,c,u,p,h){let T=!1;for(let k of n){let{errorNode:O,innerExpression:H,nameType:J,errorMessage:de}=k,Ae=YAe(a,c,J);if(!Ae||Ae.flags&8388608)continue;let xe=Ay(a,J);if(!xe)continue;let tt=eB(J,void 0);if(!Df(xe,Ae,u,void 0)){let It=H&&cD(H,xe,Ae,u,void 0,p,h);if(T=!0,!It){let Tn=h||{},un=H?$Ae(H,xe):xe;if(Pe&&mB(un,Ae)){let Nn=hr(O,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ee(un),Ee(Ae));Lo.add(Nn),Tn.errors=[Nn]}else{let Nn=!!(tt&&(ja(c,tt)||Ht).flags&16777216),en=!!(tt&&(ja(a,tt)||Ht).flags&16777216);Ae=KE(Ae,Nn),xe=KE(xe,Nn&&en),Df(un,Ae,u,O,de,p,Tn)&&un!==xe&&Df(xe,Ae,u,O,de,p,Tn)}if(Tn.errors){let Nn=Tn.errors[Tn.errors.length-1],en=fh(J)?Np(J):void 0,cn=en!==void 0?ja(c,en):void 0,rr=!1;if(!cn){let Jt=rM(c,J);Jt&&Jt.declaration&&!Gn(Jt.declaration).hasNoDefaultLib&&(rr=!0,Ao(Nn,hr(Jt.declaration,_.The_expected_type_comes_from_this_index_signature)))}if(!rr&&(cn&&Fn(cn.declarations)||c.symbol&&Fn(c.symbol.declarations))){let Jt=cn&&Fn(cn.declarations)?cn.declarations[0]:c.symbol.declarations[0];Gn(Jt).hasNoDefaultLib||Ao(Nn,hr(Jt,_.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,en&&!(J.flags&8192)?Gi(en):Ee(J),Ee(c)))}}}}}return T}function Yqe(n,a,c,u,p,h){let T=jc(c,EB),k=jc(c,J=>!EB(J)),O=k!==lt?Oie(13,0,k,void 0):void 0,H=!1;for(let J=n.next();!J.done;J=n.next()){let{errorNode:de,innerExpression:Ae,nameType:xe,errorMessage:tt}=J.value,It=O,Tn=T!==lt?YAe(a,T,xe):void 0;if(Tn&&!(Tn.flags&8388608)&&(It=O?Gr([O,Tn]):Tn),!It)continue;let un=Ay(a,xe);if(!un)continue;let Nn=eB(xe,void 0);if(!Df(un,It,u,void 0)){let en=Ae&&cD(Ae,un,It,u,void 0,p,h);if(H=!0,!en){let cn=h||{},rr=Ae?$Ae(Ae,un):un;if(Pe&&mB(rr,It)){let Jt=hr(de,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ee(rr),Ee(It));Lo.add(Jt),cn.errors=[Jt]}else{let Jt=!!(Nn&&(ja(T,Nn)||Ht).flags&16777216),Cn=!!(Nn&&(ja(a,Nn)||Ht).flags&16777216);It=KE(It,Jt),un=KE(un,Jt&&Cn),Df(rr,It,u,de,tt,p,cn)&&rr!==un&&Df(un,It,u,de,tt,p,cn)}}}}return H}function*$qe(n){if(Fn(n.properties))for(let a of n.properties)GT(a)||Fre(vr(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:ff(vr(a.name))})}function*Qqe(n,a){if(!Fn(n.children))return;let c=0;for(let u=0;u<n.children.length;u++){let p=n.children[u],h=op(u-c),T=QAe(p,h,a);T?yield T:c++}}function QAe(n,a,c){switch(n.kind){case 291:return{errorNode:n,innerExpression:n.expression,nameType:a};case 11:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 281:case 282:case 285:return{errorNode:n,innerExpression:n,nameType:a};default:return L.assertNever(n,"Found invalid jsx child")}}function Zqe(n,a,c,u,p,h){let T=pM($qe(n),a,c,u,p,h),k;if(Xm(n.parent)&&Hg(n.parent.parent)){let H=n.parent.parent,J=HB(tA(n)),de=J===void 0?"children":Gi(J),Ae=ff(de),xe=od(c,Ae),tt=bR(H.children);if(!Fn(tt))return T;let It=Fn(tt)>1,Tn,un;if(pne(!1)!==ro){let en=cAe(Se);Tn=jc(xe,cn=>to(cn,en)),un=jc(xe,cn=>!to(cn,en))}else Tn=jc(xe,EB),un=jc(xe,en=>!EB(en));if(It){if(Tn!==lt){let en=ap(jB(H,0)),cn=Qqe(H,O);T=Yqe(cn,en,Tn,u,p,h)||T}else if(!Bp(od(a,Ae),xe,u)){T=!0;let en=Fe(H.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,de,Ee(xe));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(en)}}else if(un!==lt){let en=tt[0],cn=QAe(en,Ae,O);cn&&(T=pM(function*(){yield cn}(),a,c,u,p,h)||T)}else if(!Bp(od(a,Ae),xe,u)){T=!0;let en=Fe(H.openingElement.tagName,_.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,de,Ee(xe));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(en)}}return T;function O(){if(!k){let H=Qc(n.parent.tagName),J=HB(tA(n)),de=J===void 0?"children":Gi(J),Ae=od(c,ff(de)),xe=_._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;k={...xe,key:"!!ALREADY FORMATTED!!",message:TW(void 0,xe,H,de,Ee(Ae))}}return k}}function*ZAe(n,a){let c=Fn(n.elements);if(c)for(let u=0;u<c;u++){if(IC(a)&&!ja(a,""+u))continue;let p=n.elements[u];if(ol(p))continue;let h=op(u);yield{errorNode:p,innerExpression:p,nameType:h}}}function eXe(n,a,c,u,p,h){if(c.flags&134479868)return!1;if(IC(a))return pM(ZAe(n,c),a,c,u,p,h);wM(n,c,!1);let T=gCe(n,1,!0);return vD(),IC(T)?pM(ZAe(n,c),T,c,u,p,h):!1}function*tXe(n){if(Fn(n.properties))for(let a of n.properties){if(VS(a))continue;let c=TC(fr(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 175:case 174:case 171:case 300:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 299:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:Vw(a.name)?_.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:L.assertNever(a)}}}function nXe(n,a,c,u,p,h){return c.flags&134479868?!1:pM(tXe(n),a,c,u,p,h)}function e2e(n,a,c,u,p){return Df(n,a,ed,c,u,p)}function rXe(n,a,c){return Une(n,a,c?4:0,!1,void 0,void 0,Gne,void 0)!==0}function pB(n){if(!n.typeParameters&&(!n.thisParameter||Zo(UM(n.thisParameter)))&&n.parameters.length===1&&Xl(n)){let a=UM(n.parameters[0]);return!!((_f(a)?Ko(a)[0]:a).flags&131073&&qo(n).flags&3)}return!1}function Une(n,a,c,u,p,h,T,k){if(n===a||!(c&16&&pB(n))&&pB(a))return-1;if(c&16&&pB(n)&&!pB(a))return 0;let O=xd(a);if(!jp(a)&&(c&8?jp(n)||xd(n)>O:Vp(n)>O))return 0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=iKe(a),n=qCe(n,a,void 0,T));let J=xd(n),de=AD(n),Ae=AD(a);(de||Ae)&&Oi(de||Ae,k);let xe=a.declaration?a.declaration.kind:0,tt=!(c&3)&&re&&xe!==171&&xe!==170&&xe!==173,It=-1,Tn=Yb(n);if(Tn&&Tn!==yt){let en=Yb(a);if(en){let cn=!tt&&T(Tn,en,!1)||T(en,Tn,u);if(!cn)return u&&p(_.The_this_types_of_each_signature_are_incompatible),0;It&=cn}}let un=de||Ae?Math.min(J,O):Math.max(J,O),Nn=de||Ae?un-1:-1;for(let en=0;en<un;en++){let cn=en===Nn?SD(n,en):tT(n,en),rr=en===Nn?SD(a,en):tT(a,en);if(cn&&rr){let Jt=c&3?void 0:F1(yg(cn)),Cn=c&3?void 0:F1(yg(rr)),Br=Jt&&Cn&&!Lf(Jt)&&!Lf(Cn)&&(iu(cn)&50331648)===(iu(rr)&50331648)?Une(Cn,Jt,c&8|(tt?2:1),u,p,h,T,k):!(c&3)&&!tt&&T(cn,rr,!1)||T(rr,cn,u);if(Br&&c&8&&en>=Vp(n)&&en<Vp(a)&&T(cn,rr,!1)&&(Br=0),!Br)return u&&p(_.Types_of_parameters_0_and_1_are_incompatible,Gi(FC(n,en)),Gi(FC(a,en))),0;It&=Br}}if(!(c&4)){let en=rne(a)?Se:a.declaration&&cp(a.declaration)?vu(No(a.declaration.symbol)):qo(a);if(en===yt||en===Se)return It;let cn=rne(n)?Se:n.declaration&&cp(n.declaration)?vu(No(n.declaration.symbol)):qo(n),rr=Lf(a);if(rr){let Jt=Lf(n);if(Jt)It&=iXe(Jt,rr,u,p,T);else if(nce(rr))return u&&p(_.Signature_0_must_be_a_type_predicate,ne(n)),0}else It&=c&1&&T(en,cn,!1)||T(cn,en,u),!It&&u&&h&&h(cn,en)}return It}function iXe(n,a,c,u,p){if(n.kind!==a.kind)return c&&(u(_.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(_.Type_predicate_0_is_not_assignable_to_1,kl(n),kl(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(u(_.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(_.Type_predicate_0_is_not_assignable_to_1,kl(n),kl(a))),0;let h=n.type===a.type?-1:n.type&&a.type?p(n.type,a.type,c):0;return h===0&&c&&u(_.Type_predicate_0_is_not_assignable_to_1,kl(n),kl(a)),h}function aXe(n,a){let c=tD(n),u=tD(a),p=qo(c),h=qo(u);return h===yt||Bp(h,p,Zu)||Bp(p,h,Zu)?rXe(c,u,!0):!1}function Vne(n){return n!==aa&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function mh(n){return n.flags&524288?!df(n)&&Vne(R_(n)):n.flags&67108864?!0:n.flags&1048576?vt(n.types,mh):n.flags&2097152?Ji(n.types,mh):!1}function hh(n){return!!(Ur(n)&16&&(n.members&&Vne(n)||n.symbol&&n.symbol.flags&2048&&vy(n.symbol).size===0))}function oXe(n){if(U&&n.flags&1048576){if(!(n.objectFlags&33554432)){let a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&vt(a,hh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function xC(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function t2e(n){return n.flags&524288&&!df(n)&&Jo(n).length===0&&tu(n).length===1&&!!Cm(n,ae)||n.flags&3145728&&Ji(n.types,t2e)||!1}function jne(n,a,c){let u=n.flags&8?ju(n):n,p=a.flags&8?ju(a):a;if(u===p)return!0;if(u.escapedName!==p.escapedName||!(u.flags&256)||!(p.flags&256))return!1;let h=$a(u)+","+$a(p),T=kb.get(h);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let k=zn(p);for(let O of Jo(zn(u)))if(O.flags&8){let H=ja(k,O.escapedName);if(!H||!(H.flags&8))return c?(c(_.Property_0_is_missing_in_type_1,fc(O),Ee(gs(p),void 0,64)),kb.set(h,6)):kb.set(h,2),!1}return kb.set(h,1),!0}function lD(n,a,c,u){let p=n.flags,h=a.flags;return h&1||p&131072||n===Tt||h&2&&!(c===x_&&p&1)?!0:h&131072?!1:!!(p&402653316&&h&4||p&128&&p&1024&&h&128&&!(h&1024)&&n.value===a.value||p&296&&h&8||p&256&&p&1024&&h&256&&!(h&1024)&&n.value===a.value||p&2112&&h&64||p&528&&h&16||p&12288&&h&4096||p&32&&h&32&&n.symbol.escapedName===a.symbol.escapedName&&jne(n.symbol,a.symbol,u)||p&1024&&h&1024&&(p&1048576&&h&1048576&&jne(n.symbol,a.symbol,u)||p&2944&&h&2944&&n.value===a.value&&jne(n.symbol,a.symbol,u))||p&32768&&(!U&&!(h&3145728)||h&49152)||p&65536&&(!U&&!(h&3145728)||h&65536)||p&524288&&h&67108864&&!(c===x_&&hh(n)&&!(Ur(n)&8192))||(c===Zu||c===ed)&&(p&1||p&8&&(h&32||h&256&&h&1024)||p&256&&!(p&1024)&&(h&32||h&256&&h&1024&&n.value===a.value)||oXe(a)))}function Bp(n,a,c){if(t0(n)&&(n=n.regularType),t0(a)&&(a=a.regularType),n===a)return!0;if(c!==td){if(c===ed&&!(a.flags&131072)&&lD(a,n,c)||lD(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let u=c.get(Kne(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?Df(n,a,c,void 0):!1}function n2e(n,a){return Ur(n)&2048&&Fre(a.escapedName)}function mM(n,a){for(;;){let c=t0(n)?n.regularType:Ur(n)&4?n.node?_g(n.target,Ko(n)):Yne(n)||n:n.flags&3145728?sXe(n,a):n.flags&33554432?a?n.baseType:une(n):n.flags&25165824?mg(n,a):n;if(c===n)return c;n=c}}function sXe(n,a){let c=O_(n);if(c!==n)return c;if(n.flags&2097152&&vt(n.types,hh)){let u=Tl(n.types,p=>mM(p,a));if(u!==n.types)return so(u)}return n}function Df(n,a,c,u,p,h,T){var k;let O,H,J,de,Ae,xe=0,tt=0,It=0,Tn=0,un=!1,Nn=0,en,cn;L.assert(c!==td||!u,"no error reporting in identity checking");let rr=ji(n,a,3,!!u,p);if(cn&&Br(),un){(k=ai)==null||k.instant(ai.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:tt,targetDepth:It});let ze=Fe(u||P,_.Excessive_stack_depth_comparing_types_0_and_1,Ee(n),Ee(a));T&&(T.errors||(T.errors=[])).push(ze)}else if(O){if(h){let Ut=h();Ut&&(gle(Ut,O),O=Ut)}let ze;if(p&&u&&!rr&&n.symbol){let Ut=Ai(n.symbol);if(Ut.originatingImport&&!Dd(Ut.originatingImport)&&Df(zn(Ut.target),a,c,void 0)){let Zn=hr(Ut.originatingImport,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);ze=Sn(ze,Zn)}}let dt=Lh(Gn(u),u,O,ze);H&&Ao(dt,...H),T&&(T.errors||(T.errors=[])).push(dt),(!T||!T.skipLogging)&&Lo.add(dt)}return u&&T&&T.skipLogging&&rr===0&&L.assert(!!T.errors,"missed opportunity to interact with error."),rr!==0;function Jt(ze){O=ze.errorInfo,en=ze.lastSkippedInfo,cn=ze.incompatibleStack,Nn=ze.overrideNextErrorInfo,H=ze.relatedInfo}function Cn(){return{errorInfo:O,lastSkippedInfo:en,incompatibleStack:cn?.slice(),overrideNextErrorInfo:Nn,relatedInfo:H?.slice()}}function Rn(ze,dt,Ut,wn,Zn){Nn++,en=void 0,(cn||(cn=[])).push([ze,dt,Ut,wn,Zn])}function Br(){let ze=cn||[];cn=void 0;let dt=en;if(en=void 0,ze.length===1){Hr(...ze[0]),dt&&wa(void 0,...dt);return}let Ut="",wn=[];for(;ze.length;){let[Zn,...fn]=ze.pop();switch(Zn.code){case _.Types_of_property_0_are_incompatible.code:{Ut.indexOf("new ")===0&&(Ut=`(${Ut})`);let sr=""+fn[0];Ut.length===0?Ut=`${sr}`:i_(sr,Do(Y))?Ut=`${Ut}.${sr}`:sr[0]==="["&&sr[sr.length-1]==="]"?Ut=`${Ut}${sr}`:Ut=`${Ut}[${sr}]`;break}case _.Call_signature_return_types_0_and_1_are_incompatible.code:case _.Construct_signature_return_types_0_and_1_are_incompatible.code:case _.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Ut.length===0){let sr=Zn;Zn.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?sr=_.Call_signature_return_types_0_and_1_are_incompatible:Zn.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(sr=_.Construct_signature_return_types_0_and_1_are_incompatible),wn.unshift([sr,fn[0],fn[1]])}else{let sr=Zn.code===_.Construct_signature_return_types_0_and_1_are_incompatible.code||Zn.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Ar=Zn.code===_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Zn.code===_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Ut=`${sr}${Ut}(${Ar})`}break}case _.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{wn.unshift([_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,fn[0],fn[1]]);break}case _.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{wn.unshift([_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,fn[0],fn[1],fn[2]]);break}default:return L.fail(`Unhandled Diagnostic: ${Zn.code}`)}}Ut?Hr(Ut[Ut.length-1]===")"?_.The_types_returned_by_0_are_incompatible_between_these_types:_.The_types_of_0_are_incompatible_between_these_types,Ut):wn.shift();for(let[Zn,...fn]of wn){let sr=Zn.elidedInCompatabilityPyramid;Zn.elidedInCompatabilityPyramid=!1,Hr(Zn,...fn),Zn.elidedInCompatabilityPyramid=sr}dt&&wa(void 0,...dt)}function Hr(ze,dt,Ut,wn,Zn){L.assert(!!u),cn&&Br(),!ze.elidedInCompatabilityPyramid&&(O=da(O,ze,dt,Ut,wn,Zn))}function qi(ze){L.assert(!!O),H?H.push(ze):H=[ze]}function wa(ze,dt,Ut){cn&&Br();let[wn,Zn]=Wt(dt,Ut),fn=dt,sr=wn;if(uD(dt)&&!Hne(Ut)&&(fn=ky(dt),L.assert(!to(fn,Ut),"generalized source shouldn't be assignable"),sr=lr(fn)),(Ut.flags&8388608&&!(dt.flags&8388608)?Ut.objectType.flags:Ut.flags)&262144&&Ut!==ss&&Ut!==qs){let Ei=bu(Ut),ia;Ei&&(to(fn,Ei)||(ia=to(dt,Ei)))?Hr(_._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ia?wn:sr,Zn,Ee(Ei)):(O=void 0,Hr(_._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Zn,sr))}if(ze)ze===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Pe&&r2e(dt,Ut).length&&(ze=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===ed)ze=_.Type_0_is_not_comparable_to_type_1;else if(wn===Zn)ze=_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Pe&&r2e(dt,Ut).length)ze=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(dt.flags&128&&Ut.flags&1048576){let Ei=uQe(dt,Ut);if(Ei){Hr(_.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,sr,Zn,Ee(Ei));return}}ze=_.Type_0_is_not_assignable_to_type_1}Hr(ze,sr,Zn)}function Xc(ze,dt){let Ut=ci(ze.symbol)?Ee(ze,ze.symbol.valueDeclaration):Ee(ze),wn=ci(dt.symbol)?Ee(dt,dt.symbol.valueDeclaration):Ee(dt);(Ws===ze&&ae===dt||hd===ze&&rt===dt||vc===ze&&Te===dt||iAe()===ze&&j===dt)&&Hr(_._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,wn,Ut)}function pf(ze,dt,Ut){return po(ze)?ze.target.readonly&&vB(dt)?(Ut&&Hr(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ee(ze),Ee(dt)),!1):JE(dt):CC(ze)&&vB(dt)?(Ut&&Hr(_.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ee(ze),Ee(dt)),!1):po(dt)?_f(ze):!0}function Hd(ze,dt,Ut){return ji(ze,dt,3,Ut)}function ji(ze,dt,Ut=3,wn=!1,Zn,fn=0){if(ze.flags&524288&&dt.flags&134348796)return c===ed&&!(dt.flags&131072)&&lD(dt,ze,c)||lD(ze,dt,c,wn?Hr:void 0)?-1:(wn&&In(ze,dt,ze,dt,Zn),0);let sr=mM(ze,!1),Ar=mM(dt,!0);if(sr===Ar)return-1;if(c===td)return sr.flags!==Ar.flags?0:sr.flags&67358815?-1:(qn(sr,Ar),Mn(sr,Ar,!1,0,Ut));if(sr.flags&262144&&VE(sr)===Ar)return-1;if(sr.flags&470302716&&Ar.flags&1048576){let Ei=Ar.types,ia=Ei.length===2&&Ei[0].flags&98304?Ei[1]:Ei.length===3&&Ei[0].flags&98304&&Ei[1].flags&98304?Ei[2]:void 0;if(ia&&!(ia.flags&98304)&&(Ar=mM(ia,!0),sr===Ar))return-1}if(c===ed&&!(Ar.flags&131072)&&lD(Ar,sr,c)||lD(sr,Ar,c,wn?Hr:void 0))return-1;if(sr.flags&469499904||Ar.flags&469499904){if(!(fn&2)&&Xv(sr)&&Ur(sr)&8192&&ga(sr,Ar,wn))return wn&&wa(Zn,sr,dt.aliasSymbol?dt:Ar),0;let ia=(c!==ed||N_(sr))&&!(fn&2)&&sr.flags&136970236&&sr!==ka&&Ar.flags&2621440&&a2e(Ar)&&(Jo(sr).length>0||EU(sr)),Aa=!!(Ur(sr)&2048);if(ia&&!lXe(sr,Ar,Aa)){if(wn){let Oa=Ee(ze.aliasSymbol?ze:sr),mo=Ee(dt.aliasSymbol?dt:Ar),co=xa(sr,0),as=xa(sr,1);co.length>0&&ji(qo(co[0]),Ar,1,!1)||as.length>0&&ji(qo(as[0]),Ar,1,!1)?Hr(_.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Oa,mo):Hr(_.Type_0_has_no_properties_in_common_with_type_1,Oa,mo)}return 0}qn(sr,Ar);let Zr=sr.flags&1048576&&sr.types.length<4&&!(Ar.flags&1048576)||Ar.flags&1048576&&Ar.types.length<4&&!(sr.flags&469499904)?ko(sr,Ar,wn,fn):Mn(sr,Ar,wn,fn,Ut);if(Zr)return Zr}return wn&&In(ze,dt,sr,Ar,Zn),0}function In(ze,dt,Ut,wn,Zn){var fn,sr;let Ar=!!Yne(ze),Ei=!!Yne(dt);Ut=ze.aliasSymbol||Ar?ze:Ut,wn=dt.aliasSymbol||Ei?dt:wn;let ia=Nn>0;if(ia&&Nn--,Ut.flags&524288&&wn.flags&524288){let Aa=O;pf(Ut,wn,!0),O!==Aa&&(ia=!!O)}if(Ut.flags&524288&&wn.flags&134348796)Xc(Ut,wn);else if(Ut.symbol&&Ut.flags&524288&&ka===Ut)Hr(_.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Ur(Ut)&2048&&wn.flags&2097152){let Aa=wn.types,Ra=s0(Qd.IntrinsicAttributes,u),Zr=s0(Qd.IntrinsicClassAttributes,u);if(!Ro(Ra)&&!Ro(Zr)&&(ya(Aa,Ra)||ya(Aa,Zr)))return}else O=Xte(O,dt);if(!Zn&&ia){en=[Ut,wn];return}if(wa(Zn,Ut,wn),Ut.flags&262144&&((sr=(fn=Ut.symbol)==null?void 0:fn.declarations)!=null&&sr[0])&&!VE(Ut)){let Aa=uB(Ut);if(Aa.constraint=Oi(wn,n0(Ut,Aa)),$k(Aa)){let Ra=Ee(wn,Ut.symbol.declarations[0]);qi(hr(Ut.symbol.declarations[0],_.This_type_parameter_might_need_an_extends_0_constraint,Ra))}}}function qn(ze,dt){if(ai&&ze.flags&3145728&&dt.flags&3145728){let Ut=ze,wn=dt;if(Ut.objectFlags&wn.objectFlags&32768)return;let Zn=Ut.types.length,fn=wn.types.length;Zn*fn>1e6&&ai.instant(ai.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:ze.id,sourceSize:Zn,targetId:dt.id,targetSize:fn,pos:u?.pos,end:u?.end})}}function Mi(ze,dt){return Gr(ou(ze,(wn,Zn)=>{var fn;Zn=Eu(Zn);let sr=Zn.flags&3145728?qte(Zn,dt):qb(Zn,dt),Ar=sr&&zn(sr)||((fn=jx(Zn,dt))==null?void 0:fn.type)||Oe;return Sn(wn,Ar)},void 0)||Je)}function ga(ze,dt,Ut){var wn;if(!NM(dt)||!ge&&Ur(dt)&4096)return!1;let Zn=!!(Ur(ze)&2048);if((c===Zu||c===ed)&&(gD(ka,dt)||!Zn&&mh(dt)))return!1;let fn=dt,sr;dt.flags&1048576&&(fn=mke(ze,dt,ji)||_it(dt),sr=fn.flags&1048576?fn.types:[fn]);for(let Ar of Jo(ze))if(Bi(Ar,ze.symbol)&&!n2e(ze,Ar)){if(!Vre(fn,Ar.escapedName,Zn)){if(Ut){let Ei=jc(fn,NM);if(!u)return L.fail();if(K0(u)||Au(u)||Au(u.parent)){Ar.valueDeclaration&&Sp(Ar.valueDeclaration)&&Gn(u)===Gn(Ar.valueDeclaration.name)&&(u=Ar.valueDeclaration.name);let ia=E(Ar),Aa=VCe(ia,Ei),Ra=Aa?E(Aa):void 0;Ra?Hr(_.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ia,Ee(Ei),Ra):Hr(_.Property_0_does_not_exist_on_type_1,ia,Ee(Ei))}else{let ia=((wn=ze.symbol)==null?void 0:wn.declarations)&&Sl(ze.symbol.declarations),Aa;if(Ar.valueDeclaration&&jn(Ar.valueDeclaration,Ra=>Ra===ia)&&Gn(ia)===Gn(u)){let Ra=Ar.valueDeclaration;L.assertNode(Ra,Og),u=Ra;let Zr=Ra.name;Re(Zr)&&(Aa=Xre(Zr,Ei))}Aa!==void 0?Hr(_.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,E(Ar),Ee(Ei),Aa):Hr(_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,E(Ar),Ee(Ei))}}return!0}if(sr&&!ji(zn(Ar),Mi(sr,Ar.escapedName),3,Ut))return Ut&&Rn(_.Types_of_property_0_are_incompatible,E(Ar)),!0}return!1}function Bi(ze,dt){return ze.valueDeclaration&&dt.valueDeclaration&&ze.valueDeclaration.parent===dt.valueDeclaration}function ko(ze,dt,Ut,wn){if(ze.flags&1048576)return c===ed?Tu(ze,dt,Ut&&!(ze.flags&134348796),wn):he(ze,dt,Ut&&!(ze.flags&134348796),wn);if(dt.flags&1048576)return Xs(EM(ze),dt,Ut&&!(ze.flags&134348796)&&!(dt.flags&134348796));if(dt.flags&2097152)return no(ze,dt,Ut,2);if(c===ed&&dt.flags&134348796){let Zn=Tl(ze.types,fn=>fn.flags&465829888?bu(fn)||ue:fn);if(Zn!==ze.types){if(ze=so(Zn),ze.flags&131072)return 0;if(!(ze.flags&2097152))return ji(ze,dt,1,!1)||ji(dt,ze,1,!1)}}return Tu(ze,dt,!1,1)}function us(ze,dt){let Ut=-1,wn=ze.types;for(let Zn of wn){let fn=Xs(Zn,dt,!1);if(!fn)return 0;Ut&=fn}return Ut}function Xs(ze,dt,Ut){let wn=dt.types;if(dt.flags&1048576){if(Qb(wn,ze))return-1;let Zn=O2e(dt,ze);if(Zn){let fn=ji(ze,Zn,2,!1);if(fn)return fn}}for(let Zn of wn){let fn=ji(ze,Zn,2,!1);if(fn)return fn}if(Ut){let Zn=i2e(ze,dt,ji);Zn&&ji(ze,Zn,2,!0)}return 0}function no(ze,dt,Ut,wn){let Zn=-1,fn=dt.types;for(let sr of fn){let Ar=ji(ze,sr,2,Ut,void 0,wn);if(!Ar)return 0;Zn&=Ar}return Zn}function Tu(ze,dt,Ut,wn){let Zn=ze.types;if(ze.flags&1048576&&Qb(Zn,dt))return-1;let fn=Zn.length;for(let sr=0;sr<fn;sr++){let Ar=ji(Zn[sr],dt,1,Ut&&sr===fn-1,void 0,wn);if(Ar)return Ar}return 0}function et(ze,dt){return ze.flags&1048576&&dt.flags&1048576&&!(ze.types[0].flags&32768)&&dt.types[0].flags&32768?DC(dt,-32769):dt}function he(ze,dt,Ut,wn){let Zn=-1,fn=ze.types,sr=et(ze,dt);for(let Ar=0;Ar<fn.length;Ar++){let Ei=fn[Ar];if(sr.flags&1048576&&fn.length>=sr.types.length&&fn.length%sr.types.length===0){let Aa=ji(Ei,sr.types[Ar%sr.types.length],3,!1,void 0,wn);if(Aa){Zn&=Aa;continue}}let ia=ji(Ei,dt,1,Ut,void 0,wn);if(!ia)return 0;Zn&=ia}return Zn}function Bn(ze=Je,dt=Je,Ut=Je,wn,Zn){if(ze.length!==dt.length&&c===td)return 0;let fn=ze.length<=dt.length?ze.length:dt.length,sr=-1;for(let Ar=0;Ar<fn;Ar++){let Ei=Ar<Ut.length?Ut[Ar]:1,ia=Ei&7;if(ia!==4){let Aa=ze[Ar],Ra=dt[Ar],Zr=-1;if(Ei&8?Zr=c===td?ji(Aa,Ra,3,!1):sD(Aa,Ra):ia===1?Zr=ji(Aa,Ra,3,wn,void 0,Zn):ia===2?Zr=ji(Ra,Aa,3,wn,void 0,Zn):ia===3?(Zr=ji(Ra,Aa,3,!1),Zr||(Zr=ji(Aa,Ra,3,wn,void 0,Zn))):(Zr=ji(Aa,Ra,3,wn,void 0,Zn),Zr&&(Zr&=ji(Ra,Aa,3,wn,void 0,Zn))),!Zr)return 0;sr&=Zr}}return sr}function Mn(ze,dt,Ut,wn,Zn){var fn,sr,Ar;if(un)return 0;let Ei=Kne(ze,dt,wn,c,!1),ia=c.get(Ei);if(ia!==void 0&&!(Ut&&ia&2&&!(ia&4))){if(Qr){let co=ia&24;co&8&&Oi(ze,gn),co&16&&Oi(ze,Wi)}return ia&1?-1:0}if(!J)J=[],de=[],Ae=[];else{let co=Ei.startsWith("*")?Kne(ze,dt,wn,c,!0):void 0;for(let as=0;as<xe;as++)if(Ei===J[as]||co&&co===J[as])return 3;if(tt===100||It===100)return un=!0,0}let Aa=xe;J[xe]=Ei,xe++;let Ra=Tn;Zn&1&&(de[tt]=ze,tt++,!(Tn&1)&&yM(ze,de,tt)&&(Tn|=1)),Zn&2&&(Ae[It]=dt,It++,!(Tn&2)&&yM(dt,Ae,It)&&(Tn|=2));let Zr,Oa=0;Qr&&(Zr=Qr,Qr=co=>(Oa|=co?16:8,Zr(co)));let mo;if(Tn===3?((fn=ai)==null||fn.instant(ai.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:ze.id,sourceIdStack:de.map(co=>co.id),targetId:dt.id,targetIdStack:Ae.map(co=>co.id),depth:tt,targetDepth:It}),mo=3):((sr=ai)==null||sr.push(ai.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:ze.id,targetId:dt.id}),mo=or(ze,dt,Ut,wn),(Ar=ai)==null||Ar.pop()),Qr&&(Qr=Zr),Zn&1&&tt--,Zn&2&&It--,Tn=Ra,mo){if(mo===-1||tt===0&&It===0){if(mo===-1||mo===3)for(let co=Aa;co<xe;co++)c.set(J[co],1|Oa);xe=Aa}}else c.set(Ei,(Ut?4:0)|2|Oa),xe=Aa;return mo}function or(ze,dt,Ut,wn){let Zn=Cn(),fn=_r(ze,dt,Ut,wn,Zn);if(c!==td){if(!fn&&(ze.flags&2097152||ze.flags&262144&&dt.flags&1048576)){let sr=jJe(ze.flags&2097152?ze.types:[ze],!!(dt.flags&1048576));sr&&Im(sr,Ar=>Ar!==ze)&&(fn=ji(sr,dt,1,!1,void 0,wn))}fn&&!(wn&2)&&dt.flags&2097152&&!Zb(dt)&&ze.flags&2621440?(fn&=Ft(ze,dt,Ut,void 0,!1,0),fn&&Xv(ze)&&Ur(ze)&8192&&(fn&=Bo(ze,dt,!1,Ut,0))):fn&&rB(dt)&&!JE(dt)&&ze.flags&2097152&&Eu(ze).flags&3670016&&!vt(ze.types,sr=>sr===dt||!!(Ur(sr)&262144))&&(fn&=Ft(ze,dt,Ut,void 0,!0,wn))}return fn&&Jt(Zn),fn}function _r(ze,dt,Ut,wn,Zn){let fn,sr,Ar=!1,Ei=ze.flags,ia=dt.flags;if(c===td){if(Ei&3145728){let Zr=us(ze,dt);return Zr&&(Zr&=us(dt,ze)),Zr}if(Ei&4194304)return ji(ze.type,dt.type,3,!1);if(Ei&8388608&&(fn=ji(ze.objectType,dt.objectType,3,!1))&&(fn&=ji(ze.indexType,dt.indexType,3,!1))||Ei&16777216&&ze.root.isDistributive===dt.root.isDistributive&&(fn=ji(ze.checkType,dt.checkType,3,!1))&&(fn&=ji(ze.extendsType,dt.extendsType,3,!1))&&(fn&=ji(Hv(ze),Hv(dt),3,!1))&&(fn&=ji(Wv(ze),Wv(dt),3,!1))||Ei&33554432&&(fn=ji(ze.baseType,dt.baseType,3,!1))&&(fn&=ji(ze.constraint,dt.constraint,3,!1)))return fn;if(!(Ei&524288))return 0}else if(Ei&3145728||ia&3145728){if(fn=ko(ze,dt,Ut,wn))return fn;if(!(Ei&465829888||Ei&524288&&ia&1048576||Ei&2097152&&ia&467402752))return 0}if(Ei&17301504&&ze.aliasSymbol&&ze.aliasTypeArguments&&ze.aliasSymbol===dt.aliasSymbol&&!(hB(ze)||hB(dt))){let Zr=o2e(ze.aliasSymbol);if(Zr===Je)return 1;let Oa=Ai(ze.aliasSymbol).typeParameters,mo=Mp(Oa),co=Sy(ze.aliasTypeArguments,Oa,mo,Yn(ze.aliasSymbol.valueDeclaration)),as=Sy(dt.aliasTypeArguments,Oa,mo,Yn(ze.aliasSymbol.valueDeclaration)),Ul=Ra(co,as,Zr,wn);if(Ul!==void 0)return Ul}if(_2e(ze)&&!ze.target.readonly&&(fn=ji(Ko(ze)[0],dt,1))||_2e(dt)&&(dt.target.readonly||vB(bu(ze)||ze))&&(fn=ji(ze,Ko(dt)[0],2)))return fn;if(ia&262144){if(Ur(ze)&32&&!ze.declaration.nameType&&ji(Gp(dt),rp(ze),3)&&!(Pp(ze)&4)){let Zr=_h(ze),Oa=od(dt,w_(ze));if(fn=ji(Zr,Oa,3,Ut))return fn}if(c===ed&&Ei&262144){let Zr=eu(ze);if(Zr&&$k(ze))for(;Zr&&yh(Zr,Oa=>!!(Oa.flags&262144));){if(fn=ji(Zr,dt,1,!1))return fn;Zr=eu(Zr)}return 0}}else if(ia&4194304){let Zr=dt.type;if(Ei&4194304&&(fn=ji(Zr,ze.type,3,!1)))return fn;if(po(Zr)){if(fn=ji(ze,_Ae(Zr),2,Ut))return fn}else{let Oa=jte(Zr);if(Oa){if(ji(ze,Gp(Oa,dt.stringsOnly),2,Ut)===-1)return-1}else if(df(Zr)){let mo=by(Zr),co=rp(Zr),as;if(mo&&Yk(Zr)){let Ul=Eu(yC(Zr)),F_=[];Ute(Ul,8576,!1,Dm=>void F_.push(Oi(mo,oD(Zr.mapper,w_(Zr),Dm)))),as=Gr([...F_,mo])}else as=mo||co;if(ji(ze,as,2,Ut)===-1)return-1}}}else if(ia&8388608){if(Ei&8388608){if((fn=ji(ze.objectType,dt.objectType,3,Ut))&&(fn&=ji(ze.indexType,dt.indexType,3,Ut)),fn)return fn;Ut&&(sr=O)}if(c===Zu||c===ed){let Zr=dt.objectType,Oa=dt.indexType,mo=bu(Zr)||Zr,co=bu(Oa)||Oa;if(!Zb(mo)&&!jv(co)){let as=4|(mo!==Zr?2:0),Ul=Ay(mo,co,as);if(Ul){if(Ut&&sr&&Jt(Zn),fn=ji(ze,Ul,2,Ut,void 0,wn))return fn;Ut&&sr&&O&&(O=Aa([sr])<=Aa([O])?sr:O)}}}Ut&&(sr=void 0)}else if(df(dt)&&c!==td){let Zr=!!dt.declaration.nameType,Oa=_h(dt),mo=Pp(dt);if(!(mo&8)){if(!Zr&&Oa.flags&8388608&&Oa.objectType===ze&&Oa.indexType===w_(dt))return-1;if(!df(ze)){let co=Zr?by(dt):rp(dt),as=Gp(ze,void 0,!0),Ul=mo&4,F_=Ul?QP(co,as):void 0;if(Ul?!(F_.flags&131072):ji(co,as,3)){let Dm=_h(dt),$v=w_(dt),U1=DC(Dm,-98305);if(!Zr&&U1.flags&8388608&&U1.indexType===$v){if(fn=ji(ze,U1.objectType,2,Ut))return fn}else{let KC=Zr?F_||co:F_?so([F_,$v]):$v,Hp=od(ze,KC);if(fn=ji(Hp,Dm,3,Ut))return fn}}sr=O,Jt(Zn)}}}else if(ia&16777216){if(yM(dt,Ae,It,10))return 3;let Zr=dt;if(!Zr.root.inferTypeParameters&&!Tqe(Zr.root)){let Oa=!to(dB(Zr.checkType),dB(Zr.extendsType)),mo=!Oa&&to(zE(Zr.checkType),zE(Zr.extendsType));if((fn=Oa?-1:ji(ze,Hv(Zr),2,!1,void 0,wn))&&(fn&=mo?-1:ji(ze,Wv(Zr),2,!1,void 0,wn),fn))return fn}}else if(ia&134217728){if(Ei&134217728){if(c===ed)return XXe(ze,dt)?0:-1;Oi(ze,Wi)}if(_re(ze,dt))return-1}else if(dt.flags&268435456&&!(ze.flags&268435456)&&fre(ze,dt))return-1;if(Ei&8650752){if(!(Ei&8388608&&ia&8388608)){let Zr=VE(ze)||ue;if(fn=ji(Zr,dt,1,!1,void 0,wn))return fn;if(fn=ji(uf(Zr,ze),dt,1,Ut&&Zr!==ue&&!(ia&Ei&262144),void 0,wn))return fn;if(Jte(ze)){let Oa=VE(ze.indexType);if(Oa&&(fn=ji(od(ze.objectType,Oa),dt,1,Ut)))return fn}}}else if(Ei&4194304){if(fn=ji(Si,dt,1,Ut))return fn}else if(Ei&134217728&&!(ia&524288)){if(!(ia&134217728)){let Zr=bu(ze);if(Zr&&Zr!==ze&&(fn=ji(Zr,dt,1,Ut)))return fn}}else if(Ei&268435456)if(ia&268435456){if(ze.symbol!==dt.symbol)return 0;if(fn=ji(ze.type,dt.type,3,Ut))return fn}else{let Zr=bu(ze);if(Zr&&(fn=ji(Zr,dt,1,Ut)))return fn}else if(Ei&16777216){if(yM(ze,de,tt,10))return 3;if(ia&16777216){let Oa=ze.root.inferTypeParameters,mo=ze.extendsType,co;if(Oa){let as=_D(Oa,void 0,0,Hd);gh(as.inferences,dt.extendsType,mo,1536),mo=Oi(mo,as.mapper),co=as.mapper}if(ph(mo,dt.extendsType)&&(ji(ze.checkType,dt.checkType,3)||ji(dt.checkType,ze.checkType,3))&&((fn=ji(Oi(Hv(ze),co),Hv(dt),3,Ut))&&(fn&=ji(Wv(ze),Wv(dt),3,Ut)),fn))return fn}else{let Oa=$k(ze)?Dxe(ze):void 0;if(Oa&&(fn=ji(Oa,dt,1,Ut)))return fn}let Zr=Hte(ze);if(Zr&&(fn=ji(Zr,dt,1,Ut)))return fn}else{if(c!==hm&&c!==x_&&PJe(dt)&&mh(ze))return-1;if(df(dt))return df(ze)&&(fn=ua(ze,dt,Ut))?fn:0;let Zr=!!(Ei&134348796);if(c!==td)ze=Eu(ze),Ei=ze.flags;else if(df(ze))return 0;if(Ur(ze)&4&&Ur(dt)&4&&ze.target===dt.target&&!po(ze)&&!(hB(ze)||hB(dt))){if(bB(ze))return-1;let Oa=zne(ze.target);if(Oa===Je)return 1;let mo=Ra(Ko(ze),Ko(dt),Oa,wn);if(mo!==void 0)return mo}else{if(CC(dt)?JE(ze):_f(dt)&&po(ze)&&!ze.target.readonly)return c!==td?ji(fg(ze,rt)||Se,fg(dt,rt)||Se,3,Ut):0;if((c===hm||c===x_)&&mh(dt)&&Ur(dt)&8192&&!mh(ze))return 0}if(Ei&2621440&&ia&524288){let Oa=Ut&&O===Zn.errorInfo&&!Zr;if(fn=Ft(ze,dt,Oa,void 0,!1,wn),fn&&(fn&=Un(ze,dt,0,Oa,wn),fn&&(fn&=Un(ze,dt,1,Oa,wn),fn&&(fn&=Bo(ze,dt,Zr,Oa,wn)))),Ar&&fn)O=sr||O||Zn.errorInfo;else if(fn)return fn}if(Ei&2621440&&ia&1048576){let Oa=DC(dt,36175872);if(Oa.flags&1048576){let mo=_i(ze,Oa);if(mo)return mo}}}return 0;function Aa(Zr){return Zr?ou(Zr,(Oa,mo)=>Oa+1+Aa(mo.next),0):0}function Ra(Zr,Oa,mo,co){if(fn=Bn(Zr,Oa,mo,Ut,co))return fn;if(vt(mo,Ul=>!!(Ul&24))){sr=void 0,Jt(Zn);return}let as=Oa&&uXe(Oa,mo);if(Ar=!as,mo!==Je&&!as){if(Ar&&!(Ut&&vt(mo,Ul=>(Ul&7)===0)))return 0;sr=O,Jt(Zn)}}}function ua(ze,dt,Ut){if(c===ed||(c===td?Pp(ze)===Pp(dt):Vte(ze)<=Vte(dt))){let Zn,fn=rp(dt),sr=Oi(rp(ze),Vte(ze)<0?gn:Wi);if(Zn=ji(fn,sr,3,Ut)){let Ar=Wu([w_(ze)],[w_(dt)]);if(Oi(by(ze),Ar)===Oi(by(dt),Ar))return Zn&ji(Oi(_h(ze),Ar),_h(dt),3,Ut)}}return 0}function _i(ze,dt){var Ut;let wn=Jo(ze),Zn=R2e(wn,dt);if(!Zn)return 0;let fn=1;for(let Ra of Zn)if(fn*=SYe(Gv(Ra)),fn>25)return(Ut=ai)==null||Ut.instant(ai.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:ze.id,targetId:dt.id,numCombinations:fn}),0;let sr=new Array(Zn.length),Ar=new Set;for(let Ra=0;Ra<Zn.length;Ra++){let Zr=Zn[Ra],Oa=Gv(Zr);sr[Ra]=Oa.flags&1048576?Oa.types:[Oa],Ar.add(Zr.escapedName)}let Ei=Rae(sr),ia=[];for(let Ra of Ei){let Zr=!1;e:for(let Oa of dt.types){for(let mo=0;mo<Zn.length;mo++){let co=Zn[mo],as=ja(Oa,co.escapedName);if(!as)continue e;if(co===as)continue;if(!Ct(ze,dt,co,as,F_=>Ra[mo],!1,0,U||c===ed))continue e}Of(ia,Oa,Zv),Zr=!0}if(!Zr)return 0}let Aa=-1;for(let Ra of ia)if(Aa&=Ft(ze,Ra,!1,Ar,!1,0),Aa&&(Aa&=Un(ze,Ra,0,!1,0),Aa&&(Aa&=Un(ze,Ra,1,!1,0),Aa&&!(po(ze)&&po(Ra))&&(Aa&=Bo(ze,Ra,!1,!1,0)))),!Aa)return Aa;return Aa}function ur(ze,dt){if(!dt||ze.length===0)return ze;let Ut;for(let wn=0;wn<ze.length;wn++)dt.has(ze[wn].escapedName)?Ut||(Ut=ze.slice(0,wn)):Ut&&Ut.push(ze[wn]);return Ut||ze}function st(ze,dt,Ut,wn,Zn){let fn=U&&!!(ac(dt)&48),sr=ao(Gv(dt),!1,fn),Ar=Ut(ze);return ji(Ar,sr,3,wn,void 0,Zn)}function Ct(ze,dt,Ut,wn,Zn,fn,sr,Ar){let Ei=Ef(Ut),ia=Ef(wn);if(Ei&8||ia&8){if(Ut.valueDeclaration!==wn.valueDeclaration)return fn&&(Ei&8&&ia&8?Hr(_.Types_have_separate_declarations_of_a_private_property_0,E(wn)):Hr(_.Property_0_is_private_in_type_1_but_not_in_type_2,E(wn),Ee(Ei&8?ze:dt),Ee(Ei&8?dt:ze))),0}else if(ia&16){if(!mXe(Ut,wn))return fn&&Hr(_.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,E(wn),Ee(N1(Ut)||ze),Ee(N1(wn)||dt)),0}else if(Ei&16)return fn&&Hr(_.Property_0_is_protected_in_type_1_but_public_in_type_2,E(wn),Ee(ze),Ee(dt)),0;if(c===x_&&M_(Ut)&&!M_(wn))return 0;let Aa=st(Ut,wn,Zn,fn,sr);return Aa?!Ar&&Ut.flags&16777216&&wn.flags&106500&&!(wn.flags&16777216)?(fn&&Hr(_.Property_0_is_optional_in_type_1_but_required_in_type_2,E(wn),Ee(ze),Ee(dt)),0):Aa:(fn&&Rn(_.Types_of_property_0_are_incompatible,E(wn)),0)}function Bt(ze,dt,Ut,wn){let Zn=!1;if(Ut.valueDeclaration&&zl(Ut.valueDeclaration)&&pi(Ut.valueDeclaration.name)&&ze.symbol&&ze.symbol.flags&32){let sr=Ut.valueDeclaration.name.escapedText,Ar=hR(ze.symbol,sr);if(Ar&&ja(ze,Ar)){let Ei=D.getDeclarationName(ze.symbol.valueDeclaration),ia=D.getDeclarationName(dt.symbol.valueDeclaration);Hr(_.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Cf(sr),Cf(Ei.escapedText===""?nN:Ei),Cf(ia.escapedText===""?nN:ia));return}}let fn=lo(lre(ze,dt,wn,!1));if((!p||p.code!==_.Class_0_incorrectly_implements_interface_1.code&&p.code!==_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(Zn=!0),fn.length===1){let sr=E(Ut,void 0,0,20);Hr(_.Property_0_is_missing_in_type_1_but_required_in_type_2,sr,...Wt(ze,dt)),Fn(Ut.declarations)&&qi(hr(Ut.declarations[0],_._0_is_declared_here,sr)),Zn&&O&&Nn++}else pf(ze,dt,!1)&&(fn.length>5?Hr(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ee(ze),Ee(dt),on(fn.slice(0,4),sr=>E(sr)).join(", "),fn.length-4):Hr(_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ee(ze),Ee(dt),on(fn,sr=>E(sr)).join(", ")),Zn&&O&&Nn++)}function Ft(ze,dt,Ut,wn,Zn,fn){if(c===td)return hn(ze,dt,wn);let sr=-1;if(po(dt)){if(JE(ze)){if(!dt.target.readonly&&(CC(ze)||po(ze)&&ze.target.readonly))return 0;let Ra=Vv(ze),Zr=Vv(dt),Oa=po(ze)?ze.target.combinedFlags&4:4,mo=dt.target.combinedFlags&4,co=po(ze)?ze.target.minLength:0,as=dt.target.minLength;if(!Oa&&Ra<as)return Ut&&Hr(_.Source_has_0_element_s_but_target_requires_1,Ra,as),0;if(!mo&&Zr<co)return Ut&&Hr(_.Source_has_0_element_s_but_target_allows_only_1,co,Zr),0;if(!mo&&(Oa||Zr<Ra))return Ut&&(co<as?Hr(_.Target_requires_0_element_s_but_source_may_have_fewer,as):Hr(_.Target_allows_only_0_element_s_but_source_may_have_more,Zr)),0;let Ul=Ko(ze),F_=Ko(dt),Dm=VKe(dt.target,11),$v=sM(dt.target,11),U1=dt.target.hasRestElement,KC=!!wn;for(let Hp=0;Hp<Ra;Hp++){let cA=po(ze)?ze.target.elementFlags[Hp]:4,lA=Ra-1-Hp,iT=U1&&Hp>=Dm?Zr-1-Math.min(lA,$v):Hp,sd=dt.target.elementFlags[iT];if(sd&8&&!(cA&8))return Ut&&Hr(_.Source_provides_no_match_for_variadic_element_at_position_0_in_target,iT),0;if(cA&8&&!(sd&12))return Ut&&Hr(_.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Hp,iT),0;if(sd&1&&!(cA&1))return Ut&&Hr(_.Source_provides_no_match_for_required_element_at_position_0_in_target,iT),0;if(KC&&((cA&12||sd&12)&&(KC=!1),KC&&wn?.has(""+Hp)))continue;let bt=KE(Ul[Hp],!!(cA&sd&2)),cr=F_[iT],oi=cA&8&&sd&4?nu(cr):KE(cr,!!(sd&2)),Jr=ji(bt,oi,3,Ut,void 0,fn);if(!Jr)return Ut&&(Zr>1||Ra>1)&&(U1&&Hp>=Dm&&lA>=$v&&Dm!==Ra-$v-1?Rn(_.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Dm,Ra-$v-1,iT):Rn(_.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Hp,iT)),0;sr&=Jr}return sr}if(dt.target.combinedFlags&12)return 0}let Ar=(c===hm||c===x_)&&!Xv(ze)&&!bB(ze)&&!po(ze),Ei=ure(ze,dt,Ar,!1);if(Ei)return Ut&&yi(ze,dt)&&Bt(ze,dt,Ei,Ar),0;if(Xv(dt)){for(let Ra of ur(Jo(ze),wn))if(!qb(dt,Ra.escapedName)&&!(zn(Ra).flags&32768))return Ut&&Hr(_.Property_0_does_not_exist_on_type_1,E(Ra),Ee(dt)),0}let ia=Jo(dt),Aa=po(ze)&&po(dt);for(let Ra of ur(ia,wn)){let Zr=Ra.escapedName;if(!(Ra.flags&4194304)&&(!Aa||Wm(Zr)||Zr==="length")&&(!Zn||Ra.flags&16777216)){let Oa=ja(ze,Zr);if(Oa&&Oa!==Ra){let mo=Ct(ze,dt,Oa,Ra,Gv,Ut,fn,c===ed);if(!mo)return 0;sr&=mo}}}return sr}function hn(ze,dt,Ut){if(!(ze.flags&524288&&dt.flags&524288))return 0;let wn=ur(Ey(ze),Ut),Zn=ur(Ey(dt),Ut);if(wn.length!==Zn.length)return 0;let fn=-1;for(let sr of wn){let Ar=qb(dt,sr.escapedName);if(!Ar)return 0;let Ei=qne(sr,Ar,ji);if(!Ei)return 0;fn&=Ei}return fn}function Un(ze,dt,Ut,wn,Zn){var fn,sr;if(c===td)return Sr(ze,dt,Ut);if(dt===aa||ze===aa)return-1;let Ar=ze.symbol&&cp(ze.symbol.valueDeclaration),Ei=dt.symbol&&cp(dt.symbol.valueDeclaration),ia=xa(ze,Ar&&Ut===1?0:Ut),Aa=xa(dt,Ei&&Ut===1?0:Ut);if(Ut===1&&ia.length&&Aa.length){let co=!!(ia[0].flags&4),as=!!(Aa[0].flags&4);if(co&&!as)return wn&&Hr(_.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Bl(ia[0],Aa[0],wn))return 0}let Ra=-1,Zr=Ut===1?Xt:Di,Oa=Ur(ze),mo=Ur(dt);if(Oa&64&&mo&64&&ze.symbol===dt.symbol||Oa&4&&mo&4&&ze.target===dt.target)for(let co=0;co<Aa.length;co++){let as=er(ia[co],Aa[co],!0,wn,Zn,Zr(ia[co],Aa[co]));if(!as)return 0;Ra&=as}else if(ia.length===1&&Aa.length===1){let co=c===ed||!!Y.noStrictGenericChecks,as=Vo(ia),Ul=Vo(Aa);if(Ra=er(as,Ul,co,wn,Zn,Zr(as,Ul)),!Ra&&wn&&Ut===1&&Oa&mo&&(((fn=Ul.declaration)==null?void 0:fn.kind)===173||((sr=as.declaration)==null?void 0:sr.kind)===173)){let F_=Dm=>ne(Dm,void 0,262144,Ut);return Hr(_.Type_0_is_not_assignable_to_type_1,F_(as),F_(Ul)),Hr(_.Types_of_construct_signatures_are_incompatible),Ra}}else e:for(let co of Aa){let as=Cn(),Ul=wn;for(let F_ of ia){let Dm=er(F_,co,!0,Ul,Zn,Zr(F_,co));if(Dm){Ra&=Dm,Jt(as);continue e}Ul=!1}return Ul&&Hr(_.Type_0_provides_no_match_for_the_signature_1,Ee(ze),ne(co,void 0,void 0,Ut)),0}return Ra}function yi(ze,dt){let Ut=nM(ze,0),wn=nM(ze,1),Zn=Ey(ze);return(Ut.length||wn.length)&&!Zn.length?!!(xa(dt,0).length&&Ut.length||xa(dt,1).length&&wn.length):!0}function Di(ze,dt){return ze.parameters.length===0&&dt.parameters.length===0?(Ut,wn)=>Rn(_.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ee(Ut),Ee(wn)):(Ut,wn)=>Rn(_.Call_signature_return_types_0_and_1_are_incompatible,Ee(Ut),Ee(wn))}function Xt(ze,dt){return ze.parameters.length===0&&dt.parameters.length===0?(Ut,wn)=>Rn(_.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ee(Ut),Ee(wn)):(Ut,wn)=>Rn(_.Construct_signature_return_types_0_and_1_are_incompatible,Ee(Ut),Ee(wn))}function er(ze,dt,Ut,wn,Zn,fn){let sr=c===hm?16:c===x_?24:0;return Une(Ut?tD(ze):ze,Ut?tD(dt):dt,sr,wn,Hr,fn,Ar,Wi);function Ar(Ei,ia,Aa){return ji(Ei,ia,3,Aa,void 0,Zn)}}function Sr(ze,dt,Ut){let wn=xa(ze,Ut),Zn=xa(dt,Ut);if(wn.length!==Zn.length)return 0;let fn=-1;for(let sr=0;sr<wn.length;sr++){let Ar=vM(wn[sr],Zn[sr],!1,!1,!1,ji);if(!Ar)return 0;fn&=Ar}return fn}function Dr(ze,dt,Ut,wn){let Zn=-1,fn=dt.keyType,sr=ze.flags&2097152?eM(ze):Ey(ze);for(let Ar of sr)if(!n2e(ze,Ar)&&Vx(TC(Ar,8576),fn)){let Ei=Gv(Ar),ia=Pe||Ei.flags&32768||fn===rt||!(Ar.flags&16777216)?Ei:wf(Ei,524288),Aa=ji(ia,dt.type,3,Ut,void 0,wn);if(!Aa)return Ut&&Hr(_.Property_0_is_incompatible_with_index_signature,E(Ar)),0;Zn&=Aa}for(let Ar of tu(ze))if(Vx(Ar.keyType,fn)){let Ei=Ii(Ar,dt,Ut,wn);if(!Ei)return 0;Zn&=Ei}return Zn}function Ii(ze,dt,Ut,wn){let Zn=ji(ze.type,dt.type,3,Ut,void 0,wn);return!Zn&&Ut&&(ze.keyType===dt.keyType?Hr(_._0_index_signatures_are_incompatible,Ee(ze.keyType)):Hr(_._0_and_1_index_signatures_are_incompatible,Ee(ze.keyType),Ee(dt.keyType))),Zn}function Bo(ze,dt,Ut,wn,Zn){if(c===td)return ds(ze,dt);let fn=tu(dt),sr=vt(fn,Ei=>Ei.keyType===ae),Ar=-1;for(let Ei of fn){let ia=!Ut&&sr&&Ei.type.flags&1?-1:df(ze)&&sr?ji(_h(ze),Ei.type,3,wn):ys(ze,Ei,wn,Zn);if(!ia)return 0;Ar&=ia}return Ar}function ys(ze,dt,Ut,wn){let Zn=rM(ze,dt.keyType);return Zn?Ii(Zn,dt,Ut,wn):!(wn&1)&&(c!==x_||Ur(ze)&8192)&&xB(ze)?Dr(ze,dt,Ut,wn):(Ut&&Hr(_.Index_signature_for_type_0_is_missing_in_type_1,Ee(dt.keyType),Ee(ze)),0)}function ds(ze,dt){let Ut=tu(ze),wn=tu(dt);if(Ut.length!==wn.length)return 0;for(let Zn of wn){let fn=Cm(ze,Zn.keyType);if(!(fn&&ji(fn.type,Zn.type,3)&&fn.isReadonly===Zn.isReadonly))return 0}return-1}function Bl(ze,dt,Ut){if(!ze.declaration||!dt.declaration)return!0;let wn=hS(ze.declaration,24),Zn=hS(dt.declaration,24);return Zn===8||Zn===16&&wn!==8||Zn!==16&&!wn?!0:(Ut&&Hr(_.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Ud(wn),Ud(Zn)),!1)}}function Hne(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!mn(n.types,Hne);if(n.flags&465829888){let a=VE(n);if(a&&a!==n)return Hne(a)}return N_(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function r2e(n,a){return po(n)&&po(a)?Je:Jo(a).filter(c=>mB(Vc(n,c.escapedName),zn(c)))}function mB(n,a){return!!n&&!!a&&Js(n,32768)&&!!fD(a)}function cXe(n){return Jo(n).filter(a=>fD(zn(a)))}function i2e(n,a,c=Gne){return mke(n,a,c,!0)||lit(n,a)||uit(n,a)||dit(n,a)||fit(n,a)}function Wne(n,a,c,u,p){let h=n.types.map(O=>{});for(let[O,H]of a){let J=Kte(n,H);if(p&&J&&ac(J)&16)continue;let de=0;for(let Ae of n.types){let xe=Vc(Ae,H);xe&&c(O(),xe)?h[de]=h[de]===void 0?!0:h[de]:h[de]=!1,de++}}let T=h.indexOf(!0);if(T===-1)return u;let k=h.indexOf(!0,T+1);for(;k!==-1;){if(!ph(n.types[T],n.types[k]))return u;k=h.indexOf(!0,k+1)}return n.types[T]}function a2e(n){if(n.flags&524288){let a=R_(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Ji(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?Ji(n.types,a2e):!1}function lXe(n,a,c){for(let u of Jo(n))if(Vre(a,u.escapedName,c))return!0;return!1}function zne(n){return n===$o||n===jo||n.objectFlags&8?W:s2e(n.symbol,n.typeParameters)}function o2e(n){return s2e(n,Ai(n).typeParameters)}function s2e(n,a=Je){var c,u;let p=Ai(n);if(!p.variances){(c=ai)==null||c.push(ai.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:ru(gs(n))}),p.variances=Je;let h=[];for(let T of a){let k=Jne(T),O=k&65536?k&32768?0:1:k&32768?2:void 0;if(O===void 0){let H=!1,J=!1,de=Qr;Qr=tt=>tt?J=!0:H=!0;let Ae=hM(n,T,md),xe=hM(n,T,Pc);O=(to(xe,Ae)?1:0)|(to(Ae,xe)?2:0),O===3&&to(hM(n,T,bl),Ae)&&(O=4),Qr=de,(H||J)&&(H&&(O|=8),J&&(O|=16))}h.push(O)}p.variances=h,(u=ai)==null||u.pop({variances:h.map(L.formatVariance)})}return p.variances}function hM(n,a,c){let u=n0(a,c),p=gs(n);if(Ro(p))return p;let h=n.flags&524288?Jx(n,hg(Ai(n).typeParameters,u)):_g(p,hg(p.typeParameters,u));return vn.add(ru(h)),h}function hB(n){return vn.has(ru(n))}function Jne(n){var a;return ou((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|uu(u),0)&100352}function uXe(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function dXe(n){return n.flags&262144&&!eu(n)}function fXe(n){return!!(Ur(n)&4)&&!n.node}function gB(n){return fXe(n)&&vt(Ko(n),a=>!!(a.flags&262144)||gB(a))}function _Xe(n,a,c,u){let p=[],h="",T=O(n,0),k=O(a,0);return`${h}${T},${k}${c}`;function O(H,J=0){let de=""+H.target.id;for(let Ae of Ko(H)){if(Ae.flags&262144){if(u||dXe(Ae)){let xe=p.indexOf(Ae);xe<0&&(xe=p.length,p.push(Ae)),de+="="+xe;continue}h="*"}else if(J<4&&gB(Ae)){de+="<"+O(Ae,J+1)+">";continue}de+="-"+Ae.id}return de}}function Kne(n,a,c,u,p){if(u===td&&n.id>a.id){let T=n;n=a,a=T}let h=c?":"+c:"";return gB(n)&&gB(a)?_Xe(n,a,h,p):`${n.id},${a.id}${h}`}function gM(n,a){if(ac(n)&6){for(let c of n.links.containingType.types){let u=ja(c,n.escapedName),p=u&&gM(u,a);if(p)return p}return}return a(n)}function N1(n){return n.parent&&n.parent.flags&32?gs(ju(n)):void 0}function yB(n){let a=N1(n),c=a&&_o(a)[0];return c&&Vc(c,n.escapedName)}function pXe(n,a){return gM(n,c=>{let u=N1(c);return u?BE(u,a):!1})}function mXe(n,a){return!gM(a,c=>Ef(c)&16?!pXe(n,N1(c)):!1)}function c2e(n,a,c){return gM(a,u=>Ef(u,c)&16?!BE(n,N1(u)):!1)?void 0:n}function yM(n,a,c,u=3){if(c>=u){if(n.flags&2097152)return vt(n.types,k=>yM(k,a,c,u));let p=AC(n),h=0,T=0;for(let k=0;k<c;k++){let O=a[k];if(O.flags&2097152?vt(O.types,H=>AC(H)===p):AC(O)===p){if(O.id>=T&&(h++,h>=u))return!0;T=O.id}}}return!1}function AC(n){if(n.flags&524288&&!pre(n)){if(Ur(n)&&n.node)return n.node;if(n.symbol&&!(Ur(n)&16&&n.symbol.flags&32))return n.symbol;if(po(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function hXe(n,a){return qne(n,a,sD)!==0}function qne(n,a,c){if(n===a)return-1;let u=Ef(n)&24,p=Ef(a)&24;if(u!==p)return 0;if(u){if(oA(n)!==oA(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return M_(n)!==M_(a)?0:c(zn(n),zn(a))}function gXe(n,a,c){let u=xd(n),p=xd(a),h=Vp(n),T=Vp(a),k=jp(n),O=jp(a);return!!(u===p&&h===T&&k===O||c&&h<=T)}function vM(n,a,c,u,p,h){if(n===a)return-1;if(!gXe(n,a,c)||Fn(n.typeParameters)!==Fn(a.typeParameters))return 0;if(a.typeParameters){let O=Wu(n.typeParameters,a.typeParameters);for(let H=0;H<a.typeParameters.length;H++){let J=n.typeParameters[H],de=a.typeParameters[H];if(!(J===de||h(Oi(bC(J),O)||ue,bC(de)||ue)&&h(Oi(jE(J),O)||ue,jE(de)||ue)))return 0}n=$x(n,O,!0)}let T=-1;if(!u){let O=Yb(n);if(O){let H=Yb(a);if(H){let J=h(O,H);if(!J)return 0;T&=J}}}let k=xd(a);for(let O=0;O<k;O++){let H=P_(n,O),J=P_(a,O),de=h(J,H);if(!de)return 0;T&=de}if(!p){let O=Lf(n),H=Lf(a);T&=O||H?yXe(O,H,h):h(qo(n),qo(a))}return T}function yXe(n,a,c){return n&&a&&Ene(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function vXe(n){let a;for(let c of n)if(!(c.flags&131072)){let u=ky(c);if(a??(a=u),u===c||u!==a)return!1}return!0}function l2e(n){return ou(n,(a,c)=>a|(c.flags&1048576?l2e(c.types):c.flags),0)}function bXe(n){if(n.length===1)return n[0];let a=U?Tl(n,u=>jc(u,p=>!(p.flags&98304))):n,c=vXe(a)?Gr(a):ou(a,(u,p)=>Iy(u,p)?p:u);return a===n?c:TB(c,l2e(n)&98304)}function EXe(n){return ou(n,(a,c)=>Iy(c,a)?c:a)}function _f(n){return!!(Ur(n)&4)&&(n.target===$o||n.target===jo)}function CC(n){return!!(Ur(n)&4)&&n.target===jo}function JE(n){return _f(n)||po(n)}function vB(n){return _f(n)&&!CC(n)||po(n)&&!n.target.readonly}function Xne(n){return _f(n)?Ko(n)[0]:void 0}function Kv(n){return _f(n)||!(n.flags&98304)&&to(n,Ri)}function Yne(n){if(!(Ur(n)&4)||!(Ur(n.target)&3))return;if(Ur(n)&33554432)return Ur(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(Ur(a)&1){let p=yn(a);if(p&&p.expression.kind!==79&&p.expression.kind!==208)return}let c=_o(a);if(c.length!==1||vy(n.symbol).size)return;let u=Fn(a.typeParameters)?Oi(c[0],Wu(a.typeParameters,Ko(n).slice(0,a.typeParameters.length))):c[0];return Fn(Ko(n))>Fn(a.typeParameters)&&(u=uf(u,To(Ko(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function u2e(n){return U?n===Vt:n===je}function bB(n){let a=Xne(n);return!!a&&u2e(a)}function IC(n){return po(n)||!!ja(n,"0")}function EB(n){return Kv(n)||IC(n)}function TXe(n,a){let c=Vc(n,""+a);if(c)return c;if(Im(n,po))return Ls(n,u=>{let p=u,h=bM(p);return h?Y.noUncheckedIndexedAccess&&a>=p.target.fixedLength+sM(p.target,3)?Gr([h,Oe]):h:Oe})}function SXe(n){return!(n.flags&240544)}function N_(n){return!!(n.flags&109472)}function d2e(n){let a=Ty(n);return a.flags&2097152?vt(a.types,N_):N_(a)}function xXe(n){return n.flags&2097152&&wr(n.types,N_)||n}function uD(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:Ji(n.types,N_):N_(n)}function ky(n){return n.flags&1056?Kk(n):n.flags&402653312?ae:n.flags&256?rt:n.flags&2048?Ot:n.flags&512?Te:n.flags&1048576?AXe(n):n}function AXe(n){var a;let c=`B${ru(n)}`;return(a=wb(c))!=null?a:qh(c,Ls(n,ky))}function $ne(n){return n.flags&402653312?ae:n.flags&288?rt:n.flags&2048?Ot:n.flags&512?Te:n.flags&1048576?Ls(n,$ne):n}function i0(n){return n.flags&1056&&t0(n)?Kk(n):n.flags&128&&t0(n)?ae:n.flags&256&&t0(n)?rt:n.flags&2048&&t0(n)?Ot:n.flags&512&&t0(n)?Te:n.flags&1048576?Ls(n,i0):n}function f2e(n){return n.flags&8192?j:n.flags&1048576?Ls(n,f2e):n}function Qne(n,a){return aU(n,a)||(n=f2e(i0(n))),Hu(n)}function CXe(n,a,c){if(n&&N_(n)){let u=a?c?wD(a):a:void 0;n=Qne(n,u)}return n}function Zne(n,a,c,u){if(n&&N_(n)){let p=a?c0(c,a,u):void 0;n=Qne(n,p)}return n}function po(n){return!!(Ur(n)&4&&n.target.objectFlags&8)}function Qx(n){return po(n)&&!!(n.target.combinedFlags&8)}function _2e(n){return Qx(n)&&n.target.elementFlags.length===1}function bM(n){return LC(n,n.target.fixedLength)}function IXe(n){let a=bM(n);return a&&nu(a)}function LC(n,a,c=0,u=!1,p=!1){let h=Vv(n)-c;if(a<h){let T=Ko(n),k=[];for(let O=a;O<h;O++){let H=T[O];k.push(n.target.elementFlags[O]&8?od(H,rt):H)}return u?so(k):Gr(k,p?0:1)}}function LXe(n,a){return Vv(n)===Vv(a)&&Ji(n.target.elementFlags,(c,u)=>(c&12)===(a.target.elementFlags[u]&12))}function p2e({value:n}){return n.base10Value==="0"}function m2e(n){return jc(n,a=>!!(iu(a)&4194304))}function kXe(n){return Ls(n,DXe)}function DXe(n){return n.flags&4?gx:n.flags&8?_1:n.flags&64?yx:n===oe||n===Ke||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&p2e(n)?n:lt}function TB(n,a){let c=a&~n.flags&98304;return c===0?n:Gr(c===32768?[n,Oe]:c===65536?[n,ln]:[n,Oe,ln])}function gg(n,a=!1){L.assert(U);let c=a?kt:Oe;return n===c||n.flags&1048576&&n.types[0]===c?n:Gr([n,c])}function wXe(n){return io||(io=nD("NonNullable",524288,void 0)||Ht),io!==Ht?Jx(io,[n]):so([n,Ki])}function yg(n){return U?$E(n,2097152):n}function h2e(n){return U?Gr([n,Kt]):n}function ere(n){return U?wB(n,Kt):n}function SB(n,a,c){return c?mI(a)?gg(n):h2e(n):n}function dD(n,a){return r6(a)?yg(n):Jl(a)?ere(n):n}function KE(n,a){return Pe&&a?wB(n,Ge):n}function fD(n){return n===Ge||!!(n.flags&1048576)&&n.types[0]===Ge}function tre(n){return Pe?wB(n,Ge):wf(n,524288)}function RXe(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function xB(n){let a=Ur(n);return n.flags&2097152?Ji(n.types,xB):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!EU(n))||!!(a&4194304)||!!(a&1024&&xB(n.source))}function qE(n,a){let c=wo(n.flags,n.escapedName,ac(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let u=Ai(n).nameType;return u&&(c.links.nameType=u),c}function OXe(n,a){let c=Ua();for(let u of Ey(n)){let p=zn(u),h=a(p);c.set(u.escapedName,h===p?u:qE(u,h))}return c}function EM(n){if(!(Xv(n)&&Ur(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=OXe(n,EM),p=ls(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return p.flags=c.flags,p.objectFlags|=c.objectFlags&-8193,n.regularType=p,p}function g2e(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function y2e(n){if(!n.siblings){let a=[];for(let c of y2e(n.parent))if(Xv(c)){let u=qb(c,n.propertyName);u&&QE(zn(u),p=>{a.push(p)})}n.siblings=a}return n.siblings}function NXe(n){if(!n.resolvedProperties){let a=new Map;for(let c of y2e(n))if(Xv(c)&&!(Ur(c)&2097152))for(let u of Jo(c))a.set(u.escapedName,u);n.resolvedProperties=lo(a.values())}return n.resolvedProperties}function PXe(n,a){if(!(n.flags&4))return n;let c=zn(n),u=a&&g2e(a,n.escapedName,void 0),p=nre(c,u);return p===c?n:qE(n,p)}function MXe(n){let a=ri.get(n.escapedName);if(a)return a;let c=qE(n,kt);return c.flags|=16777216,ri.set(n.escapedName,c),c}function FXe(n,a){let c=Ua();for(let p of Ey(n))c.set(p.escapedName,PXe(p,a));if(a)for(let p of NXe(a))c.has(p.escapedName)||c.set(p.escapedName,MXe(p));let u=ls(n.symbol,c,Je,Je,Tl(tu(n),p=>Fp(p.keyType,Sd(p.type),p.isReadonly)));return u.objectFlags|=Ur(n)&266240,u}function Sd(n){return nre(n,void 0)}function nre(n,a){if(Ur(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=Se;else if(Xv(n))c=FXe(n,a);else if(n.flags&1048576){let u=a||g2e(void 0,void 0,n.types),p=Tl(n.types,h=>h.flags&98304?h:nre(h,u));c=Gr(p,vt(p,mh)?2:1)}else n.flags&2097152?c=so(Tl(n.types,Sd)):JE(n)&&(c=_g(n.target,Tl(Ko(n),Sd)));return c&&a===void 0&&(n.widened=c),c||n}return n}function AB(n){let a=!1;if(Ur(n)&65536){if(n.flags&1048576)if(vt(n.types,mh))a=!0;else for(let c of n.types)AB(c)&&(a=!0);if(JE(n))for(let c of Ko(n))AB(c)&&(a=!0);if(Xv(n))for(let c of Ey(n)){let u=zn(c);Ur(u)&65536&&(AB(u)||Fe(c.valueDeclaration,_.Object_literal_s_property_0_implicitly_has_an_1_type,E(c),Ee(Sd(u))),a=!0)}}return a}function qv(n,a,c){let u=Ee(Sd(a));if(Yn(n)&&!HR(Gn(n),Y))return;let p;switch(n.kind){case 223:case 169:case 168:p=ge?_.Member_0_implicitly_has_an_1_type:_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 166:let h=n;if(Re(h.name)){let T=nb(h.name);if((_2(h.parent)||zm(h.parent)||Jm(h.parent))&&h.parent.parameters.indexOf(h)>-1&&(zs(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||T&&vW(T))){let k="arg"+h.parent.parameters.indexOf(h),O=os(h.name)+(h.dotDotDotToken?"[]":"");Ip(ge,n,_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,k,O);return}}p=n.dotDotDotToken?ge?_.Rest_parameter_0_implicitly_has_an_any_type:_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ge?_.Parameter_0_implicitly_has_an_1_type:_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(p=_.Binding_element_0_implicitly_has_an_1_type,!ge)return;break;case 320:Fe(n,_.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 326:ge&&kL(n.parent)&&Fe(n.parent.tagName,_.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(ge&&!n.name){c===3?Fe(n,_.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):Fe(n,_.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}p=ge?c===3?_._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:ge&&Fe(n,_.Mapped_object_type_implicitly_has_an_any_template_type);return;default:p=ge?_.Variable_0_implicitly_has_an_1_type:_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Ip(ge,n,p,os(sa(n)),u)}function CB(n,a,c){i(()=>{ge&&Ur(a)&65536&&(!c||!Nre(n))&&(AB(a)||qv(n,a,c))})}function rre(n,a,c){let u=xd(n),p=xd(a),h=xD(n),T=xD(a),k=T?p-1:p,O=h?k:Math.min(u,k),H=Yb(n);if(H){let J=Yb(a);J&&c(H,J)}for(let J=0;J<O;J++)c(P_(n,J),P_(a,J));T&&c(SD(n,O),T)}function ire(n,a,c){let u=Lf(n),p=Lf(a);u&&p&&Ene(u,p)&&u.type&&p.type?c(u.type,p.type):c(qo(n),qo(a))}function _D(n,a,c,u){return are(n.map(ore),a,c,u||Gne)}function GXe(n,a=0){return n&&are(on(n.inferences,b2e),n.signature,n.flags|a,n.compareTypes)}function are(n,a,c,u){let p={inferences:n,signature:a,flags:c,compareTypes:u,mapper:gn,nonFixingMapper:gn};return p.mapper=BXe(p),p.nonFixingMapper=UXe(p),p}function BXe(n){return Rne(on(n.inferences,a=>a.typeParameter),on(n.inferences,(a,c)=>()=>(a.isFixed||(VXe(n),IB(n.inferences),a.isFixed=!0),mre(n,c))))}function UXe(n){return Rne(on(n.inferences,a=>a.typeParameter),on(n.inferences,(a,c)=>()=>mre(n,c)))}function IB(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function v2e(n,a,c){var u;((u=n.intraExpressionInferenceSites)!=null?u:n.intraExpressionInferenceSites=[]).push({node:a,type:c})}function VXe(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===171?dCe(a,2):Ru(a,2);u&&gh(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function ore(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function b2e(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function jXe(n){let a=Pr(n.inferences,iA);return a.length?are(on(a,b2e),n.signature,n.flags,n.compareTypes):void 0}function sre(n){return n&&n.mapper}function XE(n){let a=Ur(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!E2e(n)&&(a&4&&(n.node||mn(Ko(n),XE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!E2e(n)&&vt(n.types,XE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function E2e(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=nc(n.aliasSymbol,262);return!!(a&&jn(a.parent,c=>c.kind===308?!0:c.kind===264?!1:"quit"))}return!1}function pD(n,a,c=0){return!!(n===a||n.flags&3145728&&vt(n.types,u=>pD(u,a,c))||c<3&&n.flags&16777216&&(pD(Hv(n),a,c+1)||pD(Wv(n),a,c+1)))}function HXe(n,a){let c=Lf(n);return c?!!c.type&&pD(c.type,a):pD(qo(n),a)}function WXe(n){let a=Ua();QE(n,u=>{if(!(u.flags&128))return;let p=Bs(u.value),h=wo(4,p);h.links.type=Se,u.symbol&&(h.declarations=u.symbol.declarations,h.valueDeclaration=u.symbol.valueDeclaration),a.set(p,h)});let c=n.flags&4?[Fp(ae,Ki,!1)]:Je;return ls(void 0,a,Je,Je,c)}function T2e(n,a,c){if(ta)return;let u=n.id+","+a.id+","+c.id;if(yr.has(u))return yr.get(u);ta=!0;let p=zXe(n,a,c);return ta=!1,yr.set(u,p),p}function cre(n){return!(Ur(n)&262144)||Xv(n)&&vt(Jo(n),a=>cre(zn(a)))||po(n)&&vt(Ko(n),cre)}function zXe(n,a,c){if(!(Cm(n,ae)||Jo(n).length!==0&&cre(n)))return;if(_f(n))return nu(LB(Ko(n)[0],a,c),CC(n));if(po(n)){let p=on(Ko(n),T=>LB(T,a,c)),h=Pp(a)&4?Tl(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return ap(p,h,n.target.readonly,n.target.labeledElementDeclarations)}let u=Bd(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function JXe(n){let a=Ai(n);return a.type||(a.type=LB(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function LB(n,a,c){let u=od(c.type,w_(a)),p=_h(a),h=ore(u);return gh([h],n,p),S2e(h)||ue}function*lre(n,a,c,u){let p=Jo(a);for(let h of p)if(!yxe(h)&&(c||!(h.flags&16777216||ac(h)&48))){let T=ja(n,h.escapedName);if(!T)yield h;else if(u){let k=zn(h);if(k.flags&109472){let O=zn(T);O.flags&1||Hu(O)===Hu(k)||(yield h)}}}}function ure(n,a,c,u){return u8(lre(n,a,c,u))}function KXe(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function qXe(n,a){return po(n)&&po(a)?KXe(n,a):!!ure(n,a,!1,!0)&&!!ure(a,n,!1,!1)}function S2e(n){return n.candidates?Gr(n.candidates,2):n.contraCandidates?so(n.contraCandidates):void 0}function dre(n){return!!Rr(n).skipDirectInference}function x2e(n){return!!(n.symbol&&vt(n.symbol.declarations,dre))}function XXe(n,a){let c=n.texts[0],u=a.texts[0],p=n.texts[n.texts.length-1],h=a.texts[a.texts.length-1],T=Math.min(c.length,u.length),k=Math.min(p.length,h.length);return c.slice(0,T)!==u.slice(0,T)||p.slice(p.length-k)!==h.slice(h.length-k)}function A2e(n,a){if(n==="")return!1;let c=+n;return isFinite(c)&&(!a||""+c===n)}function YXe(n){return aB(BW(n))}function fre(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return to(n,a);if(a.flags&268435456){let c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return ou(c,(p,h)=>w1(h,p),n)===n&&fre(n,a)}return!1}function $Xe(n,a){if(n===a||a.flags&5)return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&A2e(c,!1)||a.flags&64&&v4(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&fre(ff(c),a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&to(n.types[0],a)}return to(n,a)}function C2e(n,a){return n.flags&128?I2e([n.value],Je,a):n.flags&134217728?GD(n.texts,a.texts)?on(n.types,QXe):I2e(n.texts,n.types,a):void 0}function _re(n,a){let c=C2e(n,a);return!!c&&Ji(c,(u,p)=>$Xe(u,a.types[p]))}function QXe(n){return n.flags&402653317?n:WE(["",""],[n])}function I2e(n,a,c){let u=n.length-1,p=n[0],h=n[u],T=c.texts,k=T.length-1,O=T[0],H=T[k];if(u===0&&p.length<O.length+H.length||!p.startsWith(O)||!h.endsWith(H))return;let J=h.slice(0,h.length-H.length),de=[],Ae=0,xe=O.length;for(let Tn=1;Tn<k;Tn++){let un=T[Tn];if(un.length>0){let Nn=Ae,en=xe;for(;en=tt(Nn).indexOf(un,en),!(en>=0);){if(Nn++,Nn===n.length)return;en=0}It(Nn,en),xe+=un.length}else if(xe<tt(Ae).length)It(Ae,xe+1);else if(Ae<u)It(Ae+1,0);else return}return It(u,tt(u).length),de;function tt(Tn){return Tn<u?n[Tn]:J}function It(Tn,un){let Nn=Tn===Ae?ff(tt(Tn).slice(xe,un)):WE([n[Ae].slice(xe),...n.slice(Ae+1,Tn),tt(Tn).slice(0,un)],a.slice(Ae,Tn));de.push(Nn),Ae=Tn,xe=un}}function gh(n,a,c,u=0,p=!1){let h=!1,T,k=2048,O=!0,H,J,de,Ae=0;xe(a,c);function xe(In,qn){if(XE(qn)){if(In===Tt){let Mi=T;T=In,xe(qn,qn),T=Mi;return}if(In.aliasSymbol&&In.aliasSymbol===qn.aliasSymbol){if(In.aliasTypeArguments){let Mi=Ai(In.aliasSymbol).typeParameters,ga=Mp(Mi),Bi=Sy(In.aliasTypeArguments,Mi,ga,Yn(In.aliasSymbol.valueDeclaration)),ko=Sy(qn.aliasTypeArguments,Mi,ga,Yn(In.aliasSymbol.valueDeclaration));en(Bi,ko,o2e(In.aliasSymbol))}return}if(In===qn&&In.flags&3145728){for(let Mi of In.types)xe(Mi,Mi);return}if(qn.flags&1048576){let[Mi,ga]=Nn(In.flags&1048576?In.types:[In],qn.types,ZXe),[Bi,ko]=Nn(Mi,ga,eYe);if(ko.length===0)return;if(qn=Gr(ko),Bi.length===0){tt(In,qn,1);return}In=Gr(Bi)}else if(qn.flags&2097152&&!Ji(qn.types,rB)){if(!(In.flags&1048576)){let[Mi,ga]=Nn(In.flags&2097152?In.types:[In],qn.types,ph);if(Mi.length===0||ga.length===0)return;In=so(Mi),qn=so(ga)}}else qn.flags&41943040&&(qn=Cy(qn));if(qn.flags&8650752){if(x2e(In))return;let Mi=Jt(qn);if(Mi){if(Ur(In)&262144||In===ce)return;if(!Mi.isFixed){if((Mi.priority===void 0||u<Mi.priority)&&(Mi.candidates=void 0,Mi.contraCandidates=void 0,Mi.topLevel=!0,Mi.priority=u),u===Mi.priority){let Bi=T||In;p&&!h?ya(Mi.contraCandidates,Bi)||(Mi.contraCandidates=Sn(Mi.contraCandidates,Bi),IB(n)):ya(Mi.candidates,Bi)||(Mi.candidates=Sn(Mi.candidates,Bi),IB(n))}!(u&128)&&qn.flags&262144&&Mi.topLevel&&!pD(c,qn)&&(Mi.topLevel=!1,IB(n))}k=Math.min(k,u);return}let ga=mg(qn,!1);if(ga!==qn)xe(In,ga);else if(qn.flags&8388608){let Bi=mg(qn.indexType,!1);if(Bi.flags&465829888){let ko=kAe(mg(qn.objectType,!1),Bi,!1);ko&&ko!==qn&&xe(In,ko)}}}if(Ur(In)&4&&Ur(qn)&4&&(In.target===qn.target||_f(In)&&_f(qn))&&!(In.node&&qn.node))en(Ko(In),Ko(qn),zne(In.target));else if(In.flags&4194304&&qn.flags&4194304)cn(In.type,qn.type);else if((uD(In)||In.flags&4)&&qn.flags&4194304){let Mi=WXe(In);It(Mi,qn.type,256)}else if(In.flags&8388608&&qn.flags&8388608)xe(In.objectType,qn.objectType),xe(In.indexType,qn.indexType);else if(In.flags&268435456&&qn.flags&268435456)In.symbol===qn.symbol&&xe(In.type,qn.type);else if(In.flags&33554432)xe(In.baseType,qn),tt(une(In),qn,4);else if(qn.flags&16777216)un(In,qn,Hr);else if(qn.flags&3145728)Rn(In,qn.types,qn.flags);else if(In.flags&1048576){let Mi=In.types;for(let ga of Mi)xe(ga,qn)}else if(qn.flags&134217728)qi(In,qn);else{if(In=O_(In),!(u&512&&In.flags&467927040)){let Mi=Eu(In);if(Mi!==In&&O&&!(Mi.flags&2621440))return O=!1,xe(Mi,qn);In=Mi}In.flags&2621440&&un(In,qn,wa)}}}function tt(In,qn,Mi){let ga=u;u|=Mi,xe(In,qn),u=ga}function It(In,qn,Mi){let ga=u;u|=Mi,cn(In,qn),u=ga}function Tn(In,qn,Mi,ga){let Bi=u;u|=ga,Rn(In,qn,Mi),u=Bi}function un(In,qn,Mi){let ga=In.id+","+qn.id,Bi=H&&H.get(ga);if(Bi!==void 0){k=Math.min(k,Bi);return}(H||(H=new Map)).set(ga,-1);let ko=k;k=2048;let us=Ae,Xs=AC(In),no=AC(qn);ya(J,Xs)&&(Ae|=1),ya(de,no)&&(Ae|=2),Ae!==3?((J||(J=[])).push(Xs),(de||(de=[])).push(no),Mi(In,qn),de.pop(),J.pop()):k=-1,Ae=us,H.set(ga,k),k=Math.min(k,ko)}function Nn(In,qn,Mi){let ga,Bi;for(let ko of qn)for(let us of In)Mi(us,ko)&&(xe(us,ko),ga=xg(ga,us),Bi=xg(Bi,ko));return[ga?Pr(In,ko=>!ya(ga,ko)):In,Bi?Pr(qn,ko=>!ya(Bi,ko)):qn]}function en(In,qn,Mi){let ga=In.length<qn.length?In.length:qn.length;for(let Bi=0;Bi<ga;Bi++)Bi<Mi.length&&(Mi[Bi]&7)===2?cn(In[Bi],qn[Bi]):xe(In[Bi],qn[Bi])}function cn(In,qn){p=!p,xe(In,qn),p=!p}function rr(In,qn){re||u&1024?cn(In,qn):xe(In,qn)}function Jt(In){if(In.flags&8650752){for(let qn of n)if(In===qn.typeParameter)return qn}}function Cn(In){let qn;for(let Mi of In){let ga=Mi.flags&2097152&&wr(Mi.types,Bi=>!!Jt(Bi));if(!ga||qn&&ga!==qn)return;qn=ga}return qn}function Rn(In,qn,Mi){let ga=0;if(Mi&1048576){let Bi,ko=In.flags&1048576?In.types:[In],us=new Array(ko.length),Xs=!1;for(let no of qn)if(Jt(no))Bi=no,ga++;else for(let Tu=0;Tu<ko.length;Tu++){let et=k;k=2048,xe(ko[Tu],no),k===u&&(us[Tu]=!0),Xs=Xs||k===-1,k=Math.min(k,et)}if(ga===0){let no=Cn(qn);no&&tt(In,no,1);return}if(ga===1&&!Xs){let no=Uo(ko,(Tu,et)=>us[et]?void 0:Tu);if(no.length){xe(Gr(no),Bi);return}}}else for(let Bi of qn)Jt(Bi)?ga++:xe(In,Bi);if(Mi&2097152?ga===1:ga>0)for(let Bi of qn)Jt(Bi)&&tt(In,Bi,1)}function Br(In,qn,Mi){if(Mi.flags&1048576){let ga=!1;for(let Bi of Mi.types)ga=Br(In,qn,Bi)||ga;return ga}if(Mi.flags&4194304){let ga=Jt(Mi.type);if(ga&&!ga.isFixed&&!x2e(In)){let Bi=T2e(In,qn,Mi);Bi&&tt(Bi,ga.typeParameter,Ur(In)&262144?16:8)}return!0}if(Mi.flags&262144){tt(Gp(In),Mi,32);let ga=VE(Mi);if(ga&&Br(In,qn,ga))return!0;let Bi=on(Jo(In),zn),ko=on(tu(In),us=>us!==yu?us.type:lt);return xe(Gr(Qi(Bi,ko)),_h(qn)),!0}return!1}function Hr(In,qn){if(In.flags&16777216)xe(In.checkType,qn.checkType),xe(In.extendsType,qn.extendsType),xe(Hv(In),Hv(qn)),xe(Wv(In),Wv(qn));else{let Mi=[Hv(qn),Wv(qn)];Tn(In,Mi,qn.flags,p?64:0)}}function qi(In,qn){let Mi=C2e(In,qn),ga=qn.types;if(Mi||Ji(qn.texts,Bi=>Bi.length===0))for(let Bi=0;Bi<ga.length;Bi++){let ko=Mi?Mi[Bi]:lt,us=ga[Bi];if(ko.flags&128&&us.flags&8650752){let Xs=Jt(us),no=Xs?bu(Xs.typeParameter):void 0;if(no&&!Zo(no)){let Tu=no.flags&1048576?no.types:[no],et=ou(Tu,(he,Bn)=>he|Bn.flags,0);if(!(et&4)){let he=ko.value;et&296&&!A2e(he,!0)&&(et&=-297),et&2112&&!v4(he,!0)&&(et&=-2113);let Bn=ou(Tu,(Mn,or)=>or.flags&et?Mn.flags&4?Mn:or.flags&4?ko:Mn.flags&134217728?Mn:or.flags&134217728&&_re(ko,or)?ko:Mn.flags&268435456?Mn:or.flags&268435456&&he===CAe(or.symbol,he)?ko:Mn.flags&128?Mn:or.flags&128&&or.value===he?or:Mn.flags&8?Mn:or.flags&8?op(+he):Mn.flags&32?Mn:or.flags&32?op(+he):Mn.flags&256?Mn:or.flags&256&&or.value===+he?or:Mn.flags&64?Mn:or.flags&64?YXe(he):Mn.flags&2048?Mn:or.flags&2048&&j0(or.value)===he?or:Mn.flags&16?Mn:or.flags&16?he==="true"?pe:he==="false"?Ke:Te:Mn.flags&512?Mn:or.flags&512&&or.intrinsicName===he?or:Mn.flags&32768?Mn:or.flags&32768&&or.intrinsicName===he?or:Mn.flags&65536?Mn:or.flags&65536&&or.intrinsicName===he?or:Mn:Mn,lt);if(!(Bn.flags&131072)){xe(Bn,us);continue}}}}xe(ko,us)}}function wa(In,qn){var Mi,ga;if(Ur(In)&4&&Ur(qn)&4&&(In.target===qn.target||_f(In)&&_f(qn))){en(Ko(In),Ko(qn),zne(In.target));return}if(df(In)&&df(qn)){xe(rp(In),rp(qn)),xe(_h(In),_h(qn));let Bi=by(In),ko=by(qn);Bi&&ko&&xe(Bi,ko)}if(Ur(qn)&32&&!qn.declaration.nameType){let Bi=rp(qn);if(Br(In,qn,Bi))return}if(!qXe(In,qn)){if(JE(In)){if(po(qn)){let Bi=Vv(In),ko=Vv(qn),us=Ko(qn),Xs=qn.target.elementFlags;if(po(In)&&LXe(In,qn)){for(let et=0;et<ko;et++)xe(Ko(In)[et],us[et]);return}let no=po(In)?Math.min(In.target.fixedLength,qn.target.fixedLength):0,Tu=Math.min(po(In)?sM(In.target,3):0,qn.target.hasRestElement?sM(qn.target,3):0);for(let et=0;et<no;et++)xe(Ko(In)[et],us[et]);if(!po(In)||Bi-no-Tu===1&&In.target.elementFlags[no]&4){let et=Ko(In)[no];for(let he=no;he<ko-Tu;he++)xe(Xs[he]&8?nu(et):et,us[he])}else{let et=ko-no-Tu;if(et===2){if(Xs[no]&Xs[no+1]&8){let he=Jt(us[no]);he&&he.impliedArity!==void 0&&(xe(EC(In,no,Tu+Bi-he.impliedArity),us[no]),xe(EC(In,no+he.impliedArity,Tu),us[no+1]))}else if(Xs[no]&8&&Xs[no+1]&4){let he=(Mi=Jt(us[no]))==null?void 0:Mi.typeParameter,Bn=he&&bu(he);if(Bn&&po(Bn)&&!Bn.target.hasRestElement){let Mn=Bn.target.fixedLength;xe(EC(In,no,Bi-(no+Mn)),us[no]),xe(LC(In,no+Mn,Tu),us[no+1])}}else if(Xs[no]&4&&Xs[no+1]&8){let he=(ga=Jt(us[no+1]))==null?void 0:ga.typeParameter,Bn=he&&bu(he);if(Bn&&po(Bn)&&!Bn.target.hasRestElement){let Mn=Bn.target.fixedLength,or=Bi-sM(qn.target,3),_r=or-Mn,ua=ap(Ko(In).slice(_r,or),In.target.elementFlags.slice(_r,or),!1,In.target.labeledElementDeclarations&&In.target.labeledElementDeclarations.slice(_r,or));xe(LC(In,no,Tu+Mn),us[no]),xe(ua,us[no+1])}}}else if(et===1&&Xs[no]&8){let he=qn.target.elementFlags[ko-1]&2,Bn=EC(In,no,Tu);tt(Bn,us[no],he?2:0)}else if(et===1&&Xs[no]&4){let he=LC(In,no,Tu);he&&xe(he,us[no])}}for(let et=0;et<Tu;et++)xe(Ko(In)[Bi-et-1],us[ko-et-1]);return}if(_f(qn)){ji(In,qn);return}}Xc(In,qn),pf(In,qn,0),pf(In,qn,1),ji(In,qn)}}function Xc(In,qn){let Mi=Ey(qn);for(let ga of Mi){let Bi=ja(In,ga.escapedName);Bi&&!vt(Bi.declarations,dre)&&xe(zn(Bi),zn(ga))}}function pf(In,qn,Mi){let ga=xa(In,Mi),Bi=xa(qn,Mi),ko=ga.length,us=Bi.length,Xs=ko<us?ko:us;for(let no=0;no<Xs;no++)Hd(oKe(ga[ko-Xs+no]),tD(Bi[us-Xs+no]))}function Hd(In,qn){let Mi=h,ga=qn.declaration?qn.declaration.kind:0;h=h||ga===171||ga===170||ga===173,rre(In,qn,rr),h=Mi,ire(In,qn,xe)}function ji(In,qn){let Mi=Ur(In)&Ur(qn)&32?8:0,ga=tu(qn);if(xB(In))for(let Bi of ga){let ko=[];for(let us of Jo(In))if(Vx(TC(us,8576),Bi.keyType)){let Xs=zn(us);ko.push(us.flags&16777216?tre(Xs):Xs)}for(let us of tu(In))Vx(us.keyType,Bi.keyType)&&ko.push(us.type);ko.length&&tt(Gr(ko),Bi.type,Mi)}for(let Bi of ga){let ko=rM(In,Bi.keyType);ko&&tt(ko.type,Bi.type,Mi)}}}function ZXe(n,a){return a===Ge?n===a:ph(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function eYe(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function tYe(n){let a=eu(n);return!!a&&Js(a.flags&16777216?Hte(a):a,406978556)}function Xv(n){return!!(Ur(n)&128)}function pre(n){return!!(Ur(n)&16512)}function nYe(n){if(n.length>1){let a=Pr(n,pre);if(a.length){let c=Gr(a,2);return Qi(Pr(n,u=>!pre(u)),[c])}}return n}function rYe(n){return n.priority&416?so(n.contraCandidates):EXe(n.contraCandidates)}function iYe(n,a){let c=nYe(n.candidates),u=tYe(n.typeParameter)||tM(n.typeParameter),p=!u&&n.topLevel&&(n.isFixed||!HXe(a,n.typeParameter)),h=u?Tl(c,Hu):p?Tl(c,i0):c,T=n.priority&416?Gr(h,2):bXe(h);return Sd(T)}function mre(n,a){let c=n.inferences[a];if(!c.inferredType){let u,p=n.signature;if(p){let T=c.candidates?iYe(c,p):void 0;if(c.contraCandidates)u=T&&!(T.flags&131072)&&vt(c.contraCandidates,O=>Iy(T,O))&&Ji(n.inferences,O=>O!==c&&eu(O.typeParameter)!==c.typeParameter||Ji(O.candidates,H=>Iy(H,T)))?T:rYe(c);else if(T)u=T;else if(n.flags&1)u=Qe;else{let k=jE(c.typeParameter);k&&(u=Oi(k,Nqe(Oqe(n,a),n.nonFixingMapper)))}}else u=S2e(c);c.inferredType=u||hre(!!(n.flags&2));let h=eu(c.typeParameter);if(h){let T=Oi(h,n.nonFixingMapper);(!u||!n.compareTypes(u,uf(T,u)))&&(c.inferredType=u=T)}}return c.inferredType}function hre(n){return n?Se:ue}function gre(n){let a=[];for(let c=0;c<n.inferences.length;c++)a.push(mre(n,c));return a}function L2e(n){switch(n.escapedText){case"document":case"console":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Y.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return Y.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return Y.types?_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:_.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return _.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(Pa(n.parent))return _.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===300?_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_.Cannot_find_name_0}}function Qf(n){let a=Rr(n);return a.resolvedSymbol||(a.resolvedSymbol=!rc(n)&&zs(n,n.escapedText,1160127,L2e(n),n,!hW(n),!1)||Ht),a.resolvedSymbol}function kC(n){return!!jn(n,a=>a.kind===183?!0:a.kind===79||a.kind===163?!1:"quit")}function k2e(n){return!!(n.flags&16777216||jn(n,a=>ku(a)||Rd(a)))}function kB(n,a,c,u){switch(n.kind){case 79:if(!mS(n)){let T=Qf(n);return T!==Ht?`${u?zo(u):"-1"}|${ru(a)}|${ru(c)}|${$a(T)}`:void 0}case 108:return`0|${u?zo(u):"-1"}|${ru(a)}|${ru(c)}`;case 232:case 214:return kB(n.expression,a,c,u);case 163:let p=kB(n.left,a,c,u);return p&&p+"."+n.right.escapedText;case 208:case 209:let h=YE(n);if(h!==void 0){let T=kB(n.expression,a,c,u);return T&&T+"."+h}break;case 203:case 204:case 259:case 215:case 216:case 171:return`${zo(n)}#${ru(a)}`}}function El(n,a){switch(a.kind){case 214:case 232:return El(n,a.expression);case 223:return Iu(a)&&El(n,a.left)||ar(a)&&a.operatorToken.kind===27&&El(n,a.right)}switch(n.kind){case 233:return a.kind===233&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 79:case 80:return mS(n)?a.kind===108:a.kind===79&&Qf(n)===Qf(a)||(wi(a)||Wo(a))&&tp(Qf(n))===fr(a);case 108:return a.kind===108;case 106:return a.kind===106;case 232:case 214:return El(n.expression,a);case 208:case 209:let c=YE(n),u=Us(a)?YE(a):void 0;return c!==void 0&&u!==void 0&&u===c&&El(n.expression,a.expression);case 163:return Us(a)&&n.right.escapedText===YE(a)&&El(n.left,a.expression);case 223:return ar(n)&&n.operatorToken.kind===27&&El(n.right,a)}return!1}function YE(n){if(br(n))return n.name.escapedText;if(Vs(n))return aYe(n);if(Wo(n)){let a=dn(n);return a?Bs(a):void 0}if(ha(n))return""+n.parent.parameters.indexOf(n)}function D2e(n){return n.flags&8192?n.escapedName:n.flags&384?Bs(""+n.value):void 0}function aYe(n){if(yf(n.argumentExpression))return Bs(n.argumentExpression.text);if(bc(n.argumentExpression)){let a=uc(n.argumentExpression,111551,!0);if(!a||!(wC(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=ad(c);if(u){let p=D2e(u);if(p!==void 0)return p}if(mT(c)&&$h(c,n.argumentExpression)){let p=Yw(c);if(p)return D2e(au(p));if(q0(c))return wA(c.name)}}}function w2e(n,a){for(;Us(n);)if(n=n.expression,El(n,a))return!0;return!1}function P1(n,a){for(;Jl(n);)if(n=n.expression,El(n,a))return!0;return!1}function mD(n,a){if(n&&n.flags&1048576){let c=Kte(n,a);if(c&&ac(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!SC(zn(c))),!!c.links.isDiscriminantProperty}return!1}function R2e(n,a){let c;for(let u of n)if(mD(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function oYe(n,a){let c=new Map,u=0;for(let p of n)if(p.flags&61603840){let h=Vc(p,a);if(h){if(!uD(h))return;let T=!1;QE(h,k=>{let O=ru(Hu(k)),H=c.get(O);H?H!==ue&&(c.set(O,ue),T=!0):c.set(O,p)}),T||u++}}return u>=10&&u*2>=n.length?c:void 0}function TM(n){let a=n.types;if(!(a.length<10||Ur(n)&32768||Oy(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=mn(a,p=>p.flags&59506688?mn(Jo(p),h=>N_(zn(h))?h.escapedName:void 0):void 0),u=c&&oYe(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function SM(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(ru(Hu(a)));return u!==ue?u:void 0}function O2e(n,a){let c=TM(n),u=c&&Vc(a,c);return u&&SM(n,u)}function sYe(n,a){let c=TM(n),u=c&&wr(a.properties,h=>h.symbol&&h.kind===299&&h.symbol.escapedName===c&&DM(h.initializer)),p=u&&KM(u.initializer);return p&&SM(n,p)}function N2e(n,a){return El(n,a)||w2e(n,a)}function P2e(n,a){if(n.arguments){for(let c of n.arguments)if(N2e(a,c))return!0}return!!(n.expression.kind===208&&N2e(a,n.expression.expression))}function yre(n){return(!n.id||n.id<0)&&(n.id=gK,gK++),n.id}function cYe(n,a){if(!(n.flags&1048576))return to(n,a);for(let c of n.types)if(to(c,a))return!0;return!1}function lYe(n,a){var c;if(n===a)return n;if(a.flags&131072)return a;let u=`A${ru(n)},${ru(a)}`;return(c=wb(u))!=null?c:qh(u,uYe(n,a))}function uYe(n,a){let c=jc(n,p=>cYe(a,p)),u=a.flags&512&&t0(a)?Ls(c,Yx):c;return to(a,u)?u:n}function vre(n){let a=R_(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Iy(n,Hs))}function iu(n){n.flags&467927040&&(n=bu(n)||ue);let a=n.flags;if(a&268435460)return U?16317953:16776705;if(a&134217856){let c=a&128&&n.value==="";return U?c?12123649:7929345:c?12582401:16776705}if(a&40)return U?16317698:16776450;if(a&256){let c=n.value===0;return U?c?12123394:7929090:c?12582146:16776450}if(a&64)return U?16317188:16775940;if(a&2048){let c=p2e(n);return U?c?12122884:7928580:c?12581636:16775940}return a&16?U?16316168:16774920:a&528?U?n===Ke||n===oe?12121864:7927560:n===Ke||n===oe?12580616:16774920:a&524288?Ur(n)&16&&mh(n)?U?83427327:83886079:vre(n)?U?7880640:16728e3:U?7888800:16736160:a&16384?9830144:a&32768?26607360:a&65536?42917664:a&12288?U?7925520:16772880:a&67108864?U?7888800:16736160:a&131072?0:a&1048576?ou(n.types,(c,u)=>c|iu(u),0):a&2097152?dYe(n):83886079}function dYe(n){let a=Js(n,134348796),c=0,u=134217727;for(let p of n.types)if(!(a&&p.flags&524288)){let h=iu(p);c|=h,u&=h}return c&8256|u&134209471}function wf(n,a){return jc(n,c=>(iu(c)&a)!==0)}function $E(n,a){let c=M2e(wf(U&&n.flags&2?hc:n,a));if(U)switch(a){case 524288:return Ls(c,u=>iu(u)&65536?so([u,iu(u)&131072&&!Js(c,65536)?Gr([Ki,ln]):Ki]):u);case 1048576:return Ls(c,u=>iu(u)&131072?so([u,iu(u)&65536&&!Js(c,32768)?Gr([Ki,Oe]):Ki]):u);case 2097152:case 4194304:return Ls(c,u=>iu(u)&262144?wXe(u):u)}return c}function M2e(n){return n===hc?ue:n}function bre(n,a){return a?Gr([me(n),au(a)]):n}function F2e(n,a){var c;let u=pg(a);if(!fh(u))return ve;let p=Np(u);return Vc(n,p)||hD((c=jx(n,p))==null?void 0:c.type)||ve}function G2e(n,a){return Im(n,IC)&&TXe(n,a)||hD(wy(65,n,Oe,void 0))||ve}function hD(n){return n&&(Y.noUncheckedIndexedAccess?Gr([n,Ge]):n)}function B2e(n){return nu(wy(65,n,Oe,void 0)||ve)}function fYe(n){return n.parent.kind===206&&Ere(n.parent)||n.parent.kind===299&&Ere(n.parent.parent)?bre(xM(n),n.right):au(n.right)}function Ere(n){return n.parent.kind===223&&n.parent.left===n||n.parent.kind===247&&n.parent.initializer===n}function _Ye(n,a){return G2e(xM(n),n.elements.indexOf(a))}function pYe(n){return B2e(xM(n.parent))}function U2e(n){return F2e(xM(n.parent),n.name)}function mYe(n){return bre(U2e(n),n.objectAssignmentInitializer)}function xM(n){let{parent:a}=n;switch(a.kind){case 246:return ae;case 247:return e8(a)||ve;case 223:return fYe(a);case 217:return Oe;case 206:return _Ye(a,n);case 227:return pYe(a);case 299:return U2e(a);case 300:return mYe(a)}return ve}function hYe(n){let a=n.parent,c=j2e(a.parent),u=a.kind===203?F2e(c,n.propertyName||n.name):n.dotDotDotToken?B2e(c):G2e(c,a.elements.indexOf(n));return bre(u,n.initializer)}function V2e(n){return Rr(n).resolvedType||au(n)}function gYe(n){return n.initializer?V2e(n.initializer):n.parent.parent.kind===246?ae:n.parent.parent.kind===247&&e8(n.parent.parent)||ve}function j2e(n){return n.kind===257?gYe(n):hYe(n)}function yYe(n){return n.kind===257&&n.initializer&&is(n.initializer)||n.kind!==205&&n.parent.kind===223&&is(n.parent.right)}function a0(n){switch(n.kind){case 214:return a0(n.expression);case 223:switch(n.operatorToken.kind){case 63:case 75:case 76:case 77:return a0(n.left);case 27:return a0(n.right)}}return n}function H2e(n){let{parent:a}=n;return a.kind===214||a.kind===223&&a.operatorToken.kind===63&&a.left===n||a.kind===223&&a.operatorToken.kind===27&&a.right===n?H2e(a):n}function vYe(n){return n.kind===292?Hu(au(n.expression)):lt}function DB(n){let a=Rr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(vYe(c))}return a.switchTypes}function W2e(n){if(vt(n.caseBlock.clauses,c=>c.kind===292&&!es(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let u=c.kind===292?c.expression.text:void 0;a.push(u&&!ya(a,u)?u:void 0)}return a}function bYe(n,a){return n.flags&1048576?!mn(n.types,c=>!ya(a,c)):ya(a,n)}function gD(n,a){return n===a||a.flags&1048576&&EYe(n,a)}function EYe(n,a){if(n.flags&1048576){for(let c of n.types)if(!Qb(a.types,c))return!1;return!0}return n.flags&1056&&Kk(n)===a?!0:Qb(a.types,n)}function QE(n,a){return n.flags&1048576?mn(n.types,a):a(n)}function yh(n,a){return n.flags&1048576?vt(n.types,a):a(n)}function Im(n,a){return n.flags&1048576?Ji(n.types,a):a(n)}function TYe(n,a){return n.flags&3145728?Ji(n.types,a):a(n)}function jc(n,a){if(n.flags&1048576){let c=n.types,u=Pr(c,a);if(u===c)return n;let p=n.origin,h;if(p&&p.flags&1048576){let T=p.types,k=Pr(T,O=>!!(O.flags&1048576)||a(O));if(T.length-k.length===c.length-u.length){if(k.length===1)return k[0];h=bne(1048576,k)}}return Tne(u,n.objectFlags&16809984,void 0,void 0,h)}return n.flags&131072||a(n)?n:lt}function wB(n,a){return jc(n,c=>c!==a)}function SYe(n){return n.flags&1048576?n.types.length:1}function Ls(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let u=n.origin,p=u&&u.flags&1048576?u.types:n.types,h,T=!1;for(let k of p){let O=k.flags&1048576?Ls(k,a,c):a(k);T||(T=k!==O),O&&(h?h.push(O):h=[O])}return T?h&&Gr(h,c?0:1):n}function z2e(n,a,c,u){return n.flags&1048576&&c?Gr(on(n.types,a),1,c,u):Ls(n,a)}function DC(n,a){return jc(n,c=>(c.flags&a)!==0)}function J2e(n,a){return Js(n,134217804)&&Js(a,402655616)?Ls(n,c=>c.flags&4?DC(a,402653316):qx(c)&&!Js(a,402653188)?DC(a,128):c.flags&8?DC(a,264):c.flags&64?DC(a,2112):c):n}function Zx(n){return n.flags===0}function ZE(n){return n.flags===0?n.type:n}function eA(n,a){return a?{flags:0,type:n.flags&131072?Qe:n}:n}function xYe(n){let a=Bd(256);return a.elementType=n,a}function Tre(n){return hi[n.id]||(hi[n.id]=xYe(n))}function K2e(n,a){let c=EM(ky(KM(a)));return gD(c,n.elementType)?n:Tre(Gr([n.elementType,c]))}function AYe(n){return n.flags&131072?bn:nu(n.flags&1048576?Gr(n.types,2):n)}function CYe(n){return n.finalArrayType||(n.finalArrayType=AYe(n.elementType))}function AM(n){return Ur(n)&256?CYe(n):n}function IYe(n){return Ur(n)&256?n.elementType:lt}function LYe(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(Ur(c)&256))return!1;a=!0}return a}function q2e(n){let a=H2e(n),c=a.parent,u=br(c)&&(c.name.escapedText==="length"||c.parent.kind===210&&Re(c.name)&&jH(c.name)),p=c.kind===209&&c.expression===a&&c.parent.kind===223&&c.parent.operatorToken.kind===63&&c.parent.left===c&&!Um(c.parent)&&ul(au(c.argumentExpression),296);return u||p}function kYe(n){return(wi(n)||Na(n)||$d(n)||ha(n))&&!!(Cl(n)||Yn(n)&&Jy(n)&&n.initializer&&a2(n.initializer)&&U_(n.initializer))}function RB(n,a){if(n=Ac(n),n.flags&8752)return zn(n);if(n.flags&7){if(ac(n)&262144){let u=n.links.syntheticOrigin;if(u&&RB(u))return zn(n)}let c=n.valueDeclaration;if(c){if(kYe(c))return zn(n);if(wi(c)&&c.parent.parent.kind===247){let u=c.parent.parent,p=CM(u.expression,void 0);if(p){let h=u.awaitModifier?15:13;return wy(h,p,Oe,void 0)}}a&&Ao(a,hr(c,_._0_needs_an_explicit_type_annotation,E(n)))}}}function CM(n,a){if(!(n.flags&33554432))switch(n.kind){case 79:let c=tp(Qf(n));return RB(c,a);case 108:return qYe(n);case 106:return Ire(n);case 208:{let u=CM(n.expression,a);if(u){let p=n.name,h;if(pi(p)){if(!u.symbol)return;h=ja(u,hR(u.symbol,p.escapedText))}else h=ja(u,p.escapedText);return h&&RB(h,a)}return}case 214:return CM(n.expression,a)}}function OB(n){let a=Rr(n),c=a.effectsSignature;if(c===void 0){let u;n.parent.kind===241?u=CM(n.expression,void 0):n.expression.kind!==106&&(Jl(n)?u=sp(dD(Yi(n.expression),n.expression),n.expression):u=NC(n.expression));let p=xa(u&&Eu(u)||ue,0),h=p.length===1&&!p[0].typeParameters?p[0]:vt(p,X2e)?MC(n):void 0;c=a.effectsSignature=h&&X2e(h)?h:jt}return c===jt?void 0:c}function X2e(n){return!!(Lf(n)||n.declaration&&(Hx(n.declaration)||ue).flags&131072)}function DYe(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=vs(a.expression);return Us(c)?vs(c.expression):void 0}function wYe(n){let a=jn(n,Bj),c=Gn(n),u=Pg(c,a.statements.pos);Lo.add(al(c,u.start,u.length,_.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function IM(n){let a=NB(n,!1);return $t=n,Xn=a,a}function LM(n){let a=vs(n,!0);return a.kind===95||a.kind===223&&(a.operatorToken.kind===55&&(LM(a.left)||LM(a.right))||a.operatorToken.kind===56&&LM(a.left)&&LM(a.right))}function NB(n,a){for(;;){if(n===$t)return Xn;let c=n.flags;if(c&4096){if(!a){let u=yre(n),p=vx[u];return p!==void 0?p:vx[u]=NB(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=OB(n.node);if(u){let p=Lf(u);if(p&&p.kind===3&&!p.type){let h=n.node.arguments[p.parameterIndex];if(h&&LM(h))return!1}if(qo(u).flags&131072)return!1}n=n.antecedent}else{if(c&4)return vt(n.antecedents,u=>NB(u,!1));if(c&8){let u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&xIe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){$t=void 0;let u=n.target,p=u.antecedents;u.antecedents=n.antecedents;let h=NB(n.antecedent,!1);return u.antecedents=p,h}else return!(c&1)}}}function PB(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=yre(n),p=_E[u];return p!==void 0?p:_E[u]=PB(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===106)return!0;n=n.antecedent}else{if(c&4)return Ji(n.antecedents,u=>PB(u,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let u=n.target,p=u.antecedents;u.antecedents=n.antecedents;let h=PB(n.antecedent,!1);return u.antecedents=p,h}else return!!(c&1)}}}function Y2e(n){switch(n.kind){case 79:if(!mS(n)){let a=Qf(n);return wC(a)||VW(a)&&!MB(a)}break;case 208:case 209:return Y2e(n.expression)&&M_(Rr(n).resolvedSymbol||Ht)}return!1}function Yv(n,a,c=a,u,p=(h=>(h=zr(n,cR))==null?void 0:h.flowNode)()){let h,T=!1,k=0;if(ki)return ve;if(!p)return a;Vn++;let O=kr,H=ZE(Ae(p));kr=O;let J=Ur(H)&256&&q2e(n)?bn:AM(H);if(J===Hn||n.parent&&n.parent.kind===232&&!(J.flags&131072)&&wf(J,2097152).flags&131072)return a;return J===G?ue:J;function de(){return T?h:(T=!0,h=kB(n,a,c,u))}function Ae(st){var Ct;if(k===2e3)return(Ct=ai)==null||Ct.instant(ai.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:st.id}),ki=!0,wYe(n),ve;k++;let Bt;for(;;){let Ft=st.flags;if(Ft&4096){for(let Un=O;Un<kr;Un++)if(fE[Un]===st)return k--,yv[Un];Bt=st}let hn;if(Ft&16){if(hn=tt(st),!hn){st=st.antecedent;continue}}else if(Ft&512){if(hn=Tn(st),!hn){st=st.antecedent;continue}}else if(Ft&96)hn=Nn(st);else if(Ft&128)hn=en(st);else if(Ft&12){if(st.antecedents.length===1){st=st.antecedents[0];continue}hn=Ft&4?cn(st):rr(st)}else if(Ft&256){if(hn=un(st),!hn){st=st.antecedent;continue}}else if(Ft&1024){let Un=st.target,yi=Un.antecedents;Un.antecedents=st.antecedents,hn=Ae(st.antecedent),Un.antecedents=yi}else if(Ft&2){let Un=st.node;if(Un&&Un!==u&&n.kind!==208&&n.kind!==209&&n.kind!==108){st=Un.flowNode;continue}hn=c}else hn=PD(a);return Bt&&(fE[kr]=Bt,yv[kr]=hn,kr++),k--,hn}}function xe(st){let Ct=st.node;return Sre(Ct.kind===257||Ct.kind===205?j2e(Ct):xM(Ct),n)}function tt(st){let Ct=st.node;if(El(n,Ct)){if(!IM(st))return Hn;if(xT(Ct)===2){let Bt=Ae(st.antecedent);return eA(ky(ZE(Bt)),Zx(Bt))}if(a===at||a===bn){if(yYe(Ct))return Tre(lt);let Bt=i0(xe(st));return to(Bt,a)?Bt:Et}return a.flags&1048576?lYe(a,xe(st)):a}if(w2e(n,Ct)){if(!IM(st))return Hn;if(wi(Ct)&&(Yn(Ct)||kh(Ct))){let Bt=$w(Ct);if(Bt&&(Bt.kind===215||Bt.kind===216))return Ae(st.antecedent)}return a}if(wi(Ct)&&Ct.parent.parent.kind===246&&(El(n,Ct.parent.parent.expression)||P1(Ct.parent.parent.expression,n)))return Wre(AM(ZE(Ae(st.antecedent))))}function It(st,Ct){let Bt=vs(Ct,!0);if(Bt.kind===95)return Hn;if(Bt.kind===223){if(Bt.operatorToken.kind===55)return It(It(st,Bt.left),Bt.right);if(Bt.operatorToken.kind===56)return Gr([It(st,Bt.left),It(st,Bt.right)])}return _i(st,Bt,!0)}function Tn(st){let Ct=OB(st.node);if(Ct){let Bt=Lf(Ct);if(Bt&&(Bt.kind===2||Bt.kind===3)){let Ft=Ae(st.antecedent),hn=AM(ZE(Ft)),Un=Bt.type?ua(hn,Bt,st.node,!0):Bt.kind===3&&Bt.parameterIndex>=0&&Bt.parameterIndex<st.node.arguments.length?It(hn,st.node.arguments[Bt.parameterIndex]):hn;return Un===hn?Ft:eA(Un,Zx(Ft))}if(qo(Ct).flags&131072)return Hn}}function un(st){if(a===at||a===bn){let Ct=st.node,Bt=Ct.kind===210?Ct.expression.expression:Ct.left.expression;if(El(n,a0(Bt))){let Ft=Ae(st.antecedent),hn=ZE(Ft);if(Ur(hn)&256){let Un=hn;if(Ct.kind===210)for(let yi of Ct.arguments)Un=K2e(Un,yi);else{let yi=KM(Ct.left.argumentExpression);ul(yi,296)&&(Un=K2e(Un,Ct.right))}return Un===hn?Ft:eA(Un,Zx(Ft))}return Ft}}}function Nn(st){let Ct=Ae(st.antecedent),Bt=ZE(Ct);if(Bt.flags&131072)return Ct;let Ft=(st.flags&32)!==0,hn=AM(Bt),Un=_i(hn,st.node,Ft);return Un===hn?Ct:eA(Un,Zx(Ct))}function en(st){let Ct=st.switchStatement.expression,Bt=Ae(st.antecedent),Ft=ZE(Bt);if(El(n,Ct))Ft=ko(Ft,st.switchStatement,st.clauseStart,st.clauseEnd);else if(Ct.kind===218&&El(n,Ct.expression))Ft=no(Ft,st.switchStatement,st.clauseStart,st.clauseEnd);else{U&&(P1(Ct,n)?Ft=Bi(Ft,st.switchStatement,st.clauseStart,st.clauseEnd,Un=>!(Un.flags&163840)):Ct.kind===218&&P1(Ct.expression,n)&&(Ft=Bi(Ft,st.switchStatement,st.clauseStart,st.clauseEnd,Un=>!(Un.flags&131072||Un.flags&128&&Un.value==="undefined"))));let hn=Rn(Ct,Ft);hn&&(Ft=qi(Ft,hn,st.switchStatement,st.clauseStart,st.clauseEnd))}return eA(Ft,Zx(Bt))}function cn(st){let Ct=[],Bt=!1,Ft=!1,hn;for(let Un of st.antecedents){if(!hn&&Un.flags&128&&Un.clauseStart===Un.clauseEnd){hn=Un;continue}let yi=Ae(Un),Di=ZE(yi);if(Di===a&&a===c)return Di;Of(Ct,Di),gD(Di,a)||(Bt=!0),Zx(yi)&&(Ft=!0)}if(hn){let Un=Ae(hn),yi=ZE(Un);if(!(yi.flags&131072)&&!ya(Ct,yi)&&!xIe(hn.switchStatement)){if(yi===a&&a===c)return yi;Ct.push(yi),gD(yi,a)||(Bt=!0),Zx(Un)&&(Ft=!0)}}return eA(Jt(Ct,Bt?2:1),Ft)}function rr(st){let Ct=yre(st),Bt=zh[Ct]||(zh[Ct]=new Map),Ft=de();if(!Ft)return a;let hn=Bt.get(Ft);if(hn)return hn;for(let er=sn;er<Dn;er++)if(p1[er]===st&&uE[er]===Ft&&dE[er].length)return eA(Jt(dE[er],1),!0);let Un=[],yi=!1,Di;for(let er of st.antecedents){let Sr;if(!Di)Sr=Di=Ae(er);else{p1[Dn]=st,uE[Dn]=Ft,dE[Dn]=Un,Dn++;let Ii=ra;ra=void 0,Sr=Ae(er),ra=Ii,Dn--;let Bo=Bt.get(Ft);if(Bo)return Bo}let Dr=ZE(Sr);if(Of(Un,Dr),gD(Dr,a)||(yi=!0),Dr===a)break}let Xt=Jt(Un,yi?2:1);return Zx(Di)?eA(Xt,!0):(Bt.set(Ft,Xt),Xt)}function Jt(st,Ct){if(LYe(st))return Tre(Gr(on(st,IYe)));let Bt=M2e(Gr(Tl(st,AM),Ct));return Bt!==a&&Bt.flags&a.flags&1048576&&GD(Bt.types,a.types)?a:Bt}function Cn(st){if(La(n)||a2(n)||s_(n)){if(Re(st)){let Bt=Qf(st).valueDeclaration;if(Bt&&(Wo(Bt)||ha(Bt))&&n===Bt.parent&&!Bt.initializer&&!Bt.dotDotDotToken)return Bt}}else if(Us(st)){if(El(n,st.expression))return st}else if(Re(st)){let Ct=Qf(st);if(wC(Ct)){let Bt=Ct.valueDeclaration;if(wi(Bt)&&!Bt.type&&Bt.initializer&&Us(Bt.initializer)&&El(n,Bt.initializer.expression))return Bt.initializer;if(Wo(Bt)&&!Bt.initializer){let Ft=Bt.parent.parent;if(wi(Ft)&&!Ft.type&&Ft.initializer&&(Re(Ft.initializer)||Us(Ft.initializer))&&El(n,Ft.initializer))return Bt}}}}function Rn(st,Ct){let Bt=a.flags&1048576?a:Ct;if(Bt.flags&1048576){let Ft=Cn(st);if(Ft){let hn=YE(Ft);if(hn&&mD(Bt,hn))return Ft}}}function Br(st,Ct,Bt){let Ft=YE(Ct);if(Ft===void 0)return st;let hn=Jl(Ct),Un=U&&(hn||Hle(Ct))&&Js(st,98304),yi=Vc(Un?wf(st,2097152):st,Ft);if(!yi)return st;yi=Un&&hn?gg(yi):yi;let Di=Bt(yi);return jc(st,Xt=>{let er=KP(Xt,Ft);return!(er.flags&131072)&&!(Di.flags&131072)&&_M(Di,er)})}function Hr(st,Ct,Bt,Ft,hn){if((Bt===36||Bt===37)&&st.flags&1048576){let Un=TM(st);if(Un&&Un===YE(Ct)){let yi=SM(st,au(Ft));if(yi)return Bt===(hn?36:37)?yi:N_(Vc(yi,Un)||ue)?wB(st,yi):st}}return Br(st,Ct,Un=>qn(Un,Bt,Ft,hn))}function qi(st,Ct,Bt,Ft,hn){if(Ft<hn&&st.flags&1048576&&TM(st)===YE(Ct)){let Un=DB(Bt).slice(Ft,hn),yi=Gr(on(Un,Di=>SM(st,Di)||ue));if(yi!==ue)return yi}return Br(st,Ct,Un=>ko(Un,Bt,Ft,hn))}function wa(st,Ct,Bt){if(El(n,Ct))return $E(st,Bt?4194304:8388608);U&&Bt&&P1(Ct,n)&&(st=$E(st,2097152));let Ft=Rn(Ct,st);return Ft?Br(st,Ft,hn=>wf(hn,Bt?4194304:8388608)):st}function Xc(st,Ct,Bt){let Ft=ja(st,Ct);return Ft?!!(Ft.flags&16777216)||Bt:!!jx(st,Ct)||!Bt}function pf(st,Ct,Bt){let Ft=Np(Ct);if(yh(st,Un=>Xc(Un,Ft,!0)))return jc(st,Un=>Xc(Un,Ft,Bt));if(Bt){let Un=MKe();if(Un)return so([st,Jx(Un,[Ct,ue])])}return st}function Hd(st,Ct,Bt){switch(Ct.operatorToken.kind){case 63:case 75:case 76:case 77:return wa(_i(st,Ct.right,Bt),Ct.left,Bt);case 34:case 35:case 36:case 37:let Ft=Ct.operatorToken.kind,hn=a0(Ct.left),Un=a0(Ct.right);if(hn.kind===218&&es(Un))return Mi(st,hn,Ft,Un,Bt);if(Un.kind===218&&es(hn))return Mi(st,Un,Ft,hn,Bt);if(El(n,hn))return qn(st,Ft,Un,Bt);if(El(n,Un))return qn(st,Ft,hn,Bt);U&&(P1(hn,n)?st=In(st,Ft,Un,Bt):P1(Un,n)&&(st=In(st,Ft,hn,Bt)));let yi=Rn(hn,st);if(yi)return Hr(st,yi,Ft,Un,Bt);let Di=Rn(Un,st);if(Di)return Hr(st,Di,Ft,hn,Bt);if(Tu(hn))return et(st,Ft,Un,Bt);if(Tu(Un))return et(st,Ft,hn,Bt);break;case 102:return he(st,Ct,Bt);case 101:if(pi(Ct.left))return ji(st,Ct,Bt);let Xt=a0(Ct.right),er=au(Ct.left);if(er.flags&8576){if(fD(st)&&Us(n)&&El(n.expression,Xt)&&YE(n)===Np(er))return wf(st,Bt?524288:65536);if(El(n,Xt))return pf(st,er,Bt)}break;case 27:return _i(st,Ct.right,Bt);case 55:return Bt?_i(_i(st,Ct.left,!0),Ct.right,!0):Gr([_i(st,Ct.left,!1),_i(st,Ct.right,!1)]);case 56:return Bt?Gr([_i(st,Ct.left,!0),_i(st,Ct.right,!0)]):_i(_i(st,Ct.left,!1),Ct.right,!1)}return st}function ji(st,Ct,Bt){let Ft=a0(Ct.right);if(!El(n,Ft))return st;L.assertNode(Ct.left,pi);let hn=KB(Ct.left);if(hn===void 0)return st;let Un=hn.parent,yi=zc(L.checkDefined(hn.valueDeclaration,"should always have a declaration"))?zn(Un):gs(Un);return Mn(st,yi,Bt,!0)}function In(st,Ct,Bt,Ft){let hn=Ct===34||Ct===36,Un=Ct===34||Ct===35?98304:32768,yi=au(Bt);return hn!==Ft&&Im(yi,Xt=>!!(Xt.flags&Un))||hn===Ft&&Im(yi,Xt=>!(Xt.flags&(3|Un)))?$E(st,2097152):st}function qn(st,Ct,Bt,Ft){if(st.flags&1)return st;(Ct===35||Ct===37)&&(Ft=!Ft);let hn=au(Bt),Un=Ct===34||Ct===35;if(hn.flags&98304){if(!U)return st;let yi=Un?Ft?262144:2097152:hn.flags&65536?Ft?131072:1048576:Ft?65536:524288;return $E(st,yi)}if(Ft){if(!Un&&(st.flags&2||yh(st,hh))){if(hn.flags&201457660||hh(hn))return hn;if(hn.flags&524288)return jr}let yi=jc(st,Di=>_M(Di,hn)||Un&&RXe(Di,hn));return J2e(yi,hn)}return N_(hn)?jc(st,yi=>!(d2e(yi)&&_M(yi,hn))):st}function Mi(st,Ct,Bt,Ft,hn){(Bt===35||Bt===37)&&(hn=!hn);let Un=a0(Ct.expression);if(!El(n,Un)){U&&P1(Un,n)&&hn===(Ft.text!=="undefined")&&(st=$E(st,2097152));let yi=Rn(Un,st);return yi?Br(st,yi,Di=>ga(Di,Ft,hn)):st}return ga(st,Ft,hn)}function ga(st,Ct,Bt){return Bt?us(st,Ct.text):$E(st,fF.get(Ct.text)||32768)}function Bi(st,Ct,Bt,Ft,hn){return Bt!==Ft&&Ji(DB(Ct).slice(Bt,Ft),hn)?wf(st,2097152):st}function ko(st,Ct,Bt,Ft){let hn=DB(Ct);if(!hn.length)return st;let Un=hn.slice(Bt,Ft),yi=Bt===Ft||ya(Un,lt);if(st.flags&2&&!yi){let Sr;for(let Dr=0;Dr<Un.length;Dr+=1){let Ii=Un[Dr];if(Ii.flags&201457660)Sr!==void 0&&Sr.push(Ii);else if(Ii.flags&524288)Sr===void 0&&(Sr=Un.slice(0,Dr)),Sr.push(jr);else return st}return Gr(Sr===void 0?Un:Sr)}let Di=Gr(Un),Xt=Di.flags&131072?lt:J2e(jc(st,Sr=>_M(Di,Sr)),Di);if(!yi)return Xt;let er=jc(st,Sr=>!(d2e(Sr)&&ya(hn,Hu(xXe(Sr)))));return Xt.flags&131072?er:Gr([Xt,er])}function us(st,Ct){switch(Ct){case"string":return Xs(st,ae,1);case"number":return Xs(st,rt,2);case"bigint":return Xs(st,Ot,4);case"boolean":return Xs(st,Te,8);case"symbol":return Xs(st,j,16);case"object":return st.flags&1?st:Gr([Xs(st,jr,32),Xs(st,ln,131072)]);case"function":return st.flags&1?st:Xs(st,Hs,64);case"undefined":return Xs(st,Oe,65536)}return Xs(st,jr,128)}function Xs(st,Ct,Bt){return Ls(st,Ft=>Bp(Ft,Ct,x_)?iu(Ft)&Bt?Ft:lt:Iy(Ct,Ft)?Ct:iu(Ft)&Bt?so([Ft,Ct]):lt)}function no(st,Ct,Bt,Ft){let hn=W2e(Ct);if(!hn)return st;let Un=Yc(Ct.caseBlock.clauses,Xt=>Xt.kind===293);if(Bt===Ft||Un>=Bt&&Un<Ft){let Xt=SIe(Bt,Ft,hn);return jc(st,er=>(iu(er)&Xt)===Xt)}let Di=hn.slice(Bt,Ft);return Gr(on(Di,Xt=>Xt?us(st,Xt):lt))}function Tu(st){return(br(st)&&vr(st.name)==="constructor"||Vs(st)&&es(st.argumentExpression)&&st.argumentExpression.text==="constructor")&&El(n,st.expression)}function et(st,Ct,Bt,Ft){if(Ft?Ct!==34&&Ct!==36:Ct!==35&&Ct!==37)return st;let hn=au(Bt);if(!Jie(hn)&&!Uv(hn))return st;let Un=ja(hn,"prototype");if(!Un)return st;let yi=zn(Un),Di=Zo(yi)?void 0:yi;if(!Di||Di===ka||Di===Hs)return st;if(Zo(st))return Di;return jc(st,er=>Xt(er,Di));function Xt(er,Sr){return er.flags&524288&&Ur(er)&1||Sr.flags&524288&&Ur(Sr)&1?er.symbol===Sr.symbol:Iy(er,Sr)}}function he(st,Ct,Bt){let Ft=a0(Ct.left);if(!El(n,Ft))return Bt&&U&&P1(Ft,n)?$E(st,2097152):st;let hn=au(Ct.right);if(!r0(hn,Hs))return st;let Un=Ls(hn,Bn);return Zo(st)&&(Un===ka||Un===Hs)||!Bt&&!(Un.flags&524288&&!hh(Un))?st:Mn(st,Un,Bt,!0)}function Bn(st){let Ct=Vc(st,"prototype");if(Ct&&!Zo(Ct))return Ct;let Bt=xa(st,1);return Bt.length?Gr(on(Bt,Ft=>qo(tD(Ft)))):Ki}function Mn(st,Ct,Bt,Ft){var hn;let Un=st.flags&1048576?`N${ru(st)},${ru(Ct)},${(Bt?1:0)|(Ft?2:0)}`:void 0;return(hn=wb(Un))!=null?hn:qh(Un,or(st,Ct,Bt,Ft))}function or(st,Ct,Bt,Ft){if(!Bt){if(Ft)return jc(st,Xt=>!r0(Xt,Ct));let Di=Mn(st,Ct,!0,!1);return jc(st,Xt=>!gD(Xt,Di))}if(st.flags&3)return Ct;let hn=Ft?r0:Iy,Un=st.flags&1048576?TM(st):void 0,yi=Ls(Ct,Di=>{let Xt=Un&&Vc(Di,Un),er=Xt&&SM(st,Xt),Sr=Ls(er||st,Ft?Dr=>r0(Dr,Di)?Dr:r0(Di,Dr)?Di:lt:Dr=>qAe(Dr,Di)?Dr:qAe(Di,Dr)?Di:Iy(Dr,Di)?Dr:Iy(Di,Dr)?Di:lt);return Sr.flags&131072?Ls(st,Dr=>Js(Dr,465829888)&&hn(Di,bu(Dr)||ue)?so([Dr,Di]):lt):Sr});return yi.flags&131072?Iy(Ct,st)?Ct:to(st,Ct)?st:to(Ct,st)?Ct:so([st,Ct]):yi}function _r(st,Ct,Bt){if(P2e(Ct,n)){let Ft=Bt||!dT(Ct)?OB(Ct):void 0,hn=Ft&&Lf(Ft);if(hn&&(hn.kind===0||hn.kind===1))return ua(st,hn,Ct,Bt)}if(fD(st)&&Us(n)&&br(Ct.expression)){let Ft=Ct.expression;if(El(n.expression,a0(Ft.expression))&&Re(Ft.name)&&Ft.name.escapedText==="hasOwnProperty"&&Ct.arguments.length===1){let hn=Ct.arguments[0];if(es(hn)&&YE(n)===Bs(hn.text))return wf(st,Bt?524288:65536)}}return st}function ua(st,Ct,Bt,Ft){if(Ct.type&&!(Zo(st)&&(Ct.type===ka||Ct.type===Hs))){let hn=DYe(Ct,Bt);if(hn){if(El(n,hn))return Mn(st,Ct.type,Ft,!1);U&&Ft&&P1(hn,n)&&!(iu(Ct.type)&65536)&&(st=$E(st,2097152));let Un=Rn(hn,st);if(Un)return Br(st,Un,yi=>Mn(yi,Ct.type,Ft,!1))}}return st}function _i(st,Ct,Bt){if(r6(Ct)||ar(Ct.parent)&&(Ct.parent.operatorToken.kind===60||Ct.parent.operatorToken.kind===77)&&Ct.parent.left===Ct)return ur(st,Ct,Bt);switch(Ct.kind){case 79:if(!El(n,Ct)&&C<5){let Ft=Qf(Ct);if(wC(Ft)){let hn=Ft.valueDeclaration;if(hn&&wi(hn)&&!hn.type&&hn.initializer&&Y2e(n)){C++;let Un=_i(st,hn.initializer,Bt);return C--,Un}}}case 108:case 106:case 208:case 209:return wa(st,Ct,Bt);case 210:return _r(st,Ct,Bt);case 214:case 232:return _i(st,Ct.expression,Bt);case 223:return Hd(st,Ct,Bt);case 221:if(Ct.operator===53)return _i(st,Ct.operand,!Bt);break}return st}function ur(st,Ct,Bt){if(El(n,Ct))return $E(st,Bt?2097152:262144);let Ft=Rn(Ct,st);return Ft?Br(st,Ft,hn=>wf(hn,Bt?2097152:262144)):st}}function RYe(n,a){if(n=tp(n),(a.kind===79||a.kind===80)&&(zI(a)&&(a=a.parent),Dh(a)&&(!Um(a)||YI(a)))){let c=au(a);if(tp(Rr(a).resolvedSymbol)===n)return c}return Rh(a)&&Ng(a.parent)&&N(a.parent)?Fi(a.parent.symbol):Gv(n)}function yD(n){return jn(n.parent,a=>Ia(a)&&!ET(a)||a.kind===265||a.kind===308||a.kind===169)}function MB(n){if(!n.valueDeclaration)return!1;let a=nm(n.valueDeclaration).parent,c=Rr(a);return c.flags&524288||(c.flags|=524288,OYe(a)||$2e(a)),n.isAssigned||!1}function OYe(n){return!!jn(n.parent,a=>(Ia(a)||E2(a))&&!!(Rr(a).flags&524288))}function $2e(n){if(n.kind===79){if(Um(n)){let a=Qf(n);VW(a)&&(a.isAssigned=!0)}}else pa(n,$2e)}function wC(n){return n.flags&3&&(WB(n)&2)!==0}function NYe(n){let a=Rr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!cf(n,9))return pC(n.symbol),!0;let c=!!(iu(ID(n,0))&16777216);if(!If())return pC(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function PYe(n,a){return U&&a.kind===166&&a.initializer&&iu(n)&16777216&&!NYe(a)?wf(n,524288):n}function MYe(n,a){let c=a.parent;return c.kind===208||c.kind===163||c.kind===210&&c.expression===a||c.kind===209&&c.expression===a&&!(yh(n,Z2e)&&jv(au(c.argumentExpression)))}function Q2e(n){return n.flags&2097152?vt(n.types,Q2e):!!(n.flags&465829888&&Ty(n).flags&1146880)}function Z2e(n){return n.flags&2097152?vt(n.types,Z2e):!!(n.flags&465829888&&!Js(Ty(n),98304))}function FYe(n,a){let c=(Re(n)||br(n)||Vs(n))&&!((Xm(n.parent)||FS(n.parent))&&n.parent.tagName===n)&&(a&&a&64?Ru(n,8):Ru(n,void 0));return c&&!SC(c)}function Sre(n,a,c){return!(c&&c&2)&&yh(n,Q2e)&&(MYe(n,a)||FYe(a,c))?Ls(n,Ty):n}function eCe(n){return!!jn(n,a=>{let c=a.parent;return c===void 0?"quit":pc(c)?c.expression===a&&bc(a):Mu(c)?c.name===a||c.propertyName===a:!1})}function FB(n,a){if(!Y.verbatimModuleSyntax&&ay(n,111551)&&!kC(a)&&!nd(n,111551)){let c=wc(n);Fl(c)&1160127&&(d_(Y)||U0(Y)&&eCe(a)||!MD(tp(c))?Hb(n):Wb(n))}}function GYe(n,a){var c;let u=zn(n),p=n.valueDeclaration;if(p){if(Wo(p)&&!p.initializer&&!p.dotDotDotToken&&p.parent.elements.length>=2){let h=p.parent.parent;if(h.kind===257&&G_(p)&2||h.kind===166){let T=Rr(h);if(!(T.flags&16777216)){T.flags|=16777216;let k=Px(h,0),O=k&&Ls(k,Ty);if(T.flags&=-16777217,O&&O.flags&1048576&&!(h.kind===166&&MB(n))){let H=p.parent,J=Yv(H,O,O,void 0,a.flowNode);return J.flags&131072?lt:li(p,J)}}}}if(ha(p)&&!p.type&&!p.initializer&&!p.dotDotDotToken){let h=p.parent;if(h.parameters.length>=2&&fB(h)){let T=bD(h);if(T&&T.parameters.length===1&&Xl(T)){let k=vC(Oi(zn(T.parameters[0]),(c=M1(h))==null?void 0:c.nonFixingMapper));if(k.flags&1048576&&Im(k,po)&&!MB(n)){let O=Yv(h,k,k,void 0,a.flowNode),H=h.parameters.indexOf(p)-(F0(h)?1:0);return od(O,op(H))}}}}}return u}function BYe(n,a){if(mS(n))return kM(n);let c=Qf(n);if(c===Ht)return ve;if(c===_t){if(FCe(n))return Fe(n,_.arguments_cannot_be_referenced_in_property_initializers),ve;let Nn=Xd(n);return R<2&&(Nn.kind===216?Fe(n,_.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Mr(Nn,512)&&Fe(n,_.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Rr(Nn).flags|=512,zn(c)}VYe(n)&&FB(c,n);let u=tp(c),p=MLe(u,n);Sv(p)&&xne(n,p)&&p.declarations&&Xh(n,p.declarations,n.escapedText);let h=u.valueDeclaration;if(h&&u.flags&32){if(h.kind===260&&FA($,h)){let Nn=Zc(n);for(;Nn!==void 0;){if(Nn===h&&Nn.name!==n){Rr(h).flags|=1048576,Rr(n).flags|=2097152;break}Nn=Zc(Nn)}}else if(h.kind===228){let Nn=Ku(n,!1,!1);for(;Nn.kind!==308;){if(Nn.parent===h){(Na(Nn)&&Ca(Nn)||oc(Nn))&&(Rr(h).flags|=1048576,Rr(n).flags|=2097152);break}Nn=Ku(Nn,!1,!1)}}}WYe(n,c);let T=GYe(u,n),k=xT(n);if(k){if(!(u.flags&3)&&!(Yn(n)&&u.flags&512)){let Nn=u.flags&384?_.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?_.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?_.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?_.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?_.Cannot_assign_to_0_because_it_is_an_import:_.Cannot_assign_to_0_because_it_is_not_a_variable;return Fe(n,Nn,E(c)),ve}if(M_(u))return u.flags&3?Fe(n,_.Cannot_assign_to_0_because_it_is_a_constant,E(c)):Fe(n,_.Cannot_assign_to_0_because_it_is_a_read_only_property,E(c)),ve}let O=u.flags&2097152;if(u.flags&3){if(k===1)return T}else if(O)h=Uu(c);else return T;if(!h)return T;T=Sre(T,n,a);let H=nm(h).kind===166,J=yD(h),de=yD(n),Ae=de!==J,xe=n.parent&&n.parent.parent&&VS(n.parent)&&Ere(n.parent.parent),tt=c.flags&134217728;for(;de!==J&&(de.kind===215||de.kind===216||D6(de))&&(wC(u)&&T!==bn||H&&!MB(u));)de=yD(de);let It=H||O||Ae||xe||tt||UYe(n,h)||T!==at&&T!==bn&&(!U||(T.flags&16387)!==0||kC(n)||k2e(n)||n.parent.kind===278)||n.parent.kind===232||h.kind===257&&h.exclamationToken||h.flags&16777216,Tn=It?H?PYe(T,h):T:T===at||T===bn?Oe:gg(T),un=Yv(n,T,Tn,de);if(!q2e(n)&&(T===at||T===bn)){if(un===at||un===bn)return ge&&(Fe(sa(h),_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,E(c),Ee(un)),Fe(n,_.Variable_0_implicitly_has_an_1_type,E(c),Ee(un))),PD(un)}else if(!It&&!xC(T)&&xC(un))return Fe(n,_.Variable_0_is_used_before_being_assigned,E(c)),T;return k?ky(un):un}function UYe(n,a){if(Wo(a)){let c=jn(n,Wo);return c&&nm(c)===nm(a)}}function VYe(n){var a;let c=n.parent;if(c){if(br(c)&&c.expression===n||Mu(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&Il(u)&&u.isTypeOnly)return!1}return!0}function jYe(n,a){return!!jn(n,c=>c===a?"quit":Ia(c)||c.parent&&Na(c.parent)&&!zc(c.parent)&&c.parent.initializer===c)}function HYe(n,a){return jn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function xre(n){return jn(n,a=>!a||HH(a)?"quit":Wy(a,!1))}function WYe(n,a){if(R>=2||!(a.flags&34)||!a.valueDeclaration||Li(a.valueDeclaration)||a.valueDeclaration.parent.kind===295)return;let c=tm(a.valueDeclaration),u=jYe(n,c),p=xre(c);if(p){if(u){let h=!0;if(FT(c)){let T=cb(a.valueDeclaration,258);if(T&&T.parent===c){let k=HYe(n.parent,c);if(k){let O=Rr(k);O.flags|=8192;let H=O.capturedBlockScopeBindings||(O.capturedBlockScopeBindings=[]);Of(H,a),k===c.initializer&&(h=!1)}}}h&&(Rr(p).flags|=4096)}if(FT(c)){let h=cb(a.valueDeclaration,258);h&&h.parent===c&&JYe(n,c)&&(Rr(a.valueDeclaration).flags|=262144)}Rr(a.valueDeclaration).flags|=32768}u&&(Rr(a.valueDeclaration).flags|=16384)}function zYe(n,a){let c=Rr(n);return!!c&&ya(c.capturedBlockScopeBindings,fr(a))}function JYe(n,a){let c=n;for(;c.parent.kind===214;)c=c.parent;let u=!1;if(Um(c))u=!0;else if(c.parent.kind===221||c.parent.kind===222){let p=c.parent;u=p.operator===45||p.operator===46}return u?!!jn(c,p=>p===a?"quit":p===a.statement):!1}function Are(n,a){if(Rr(n).flags|=2,a.kind===169||a.kind===173){let c=a.parent;Rr(c).flags|=4}else Rr(a).flags|=4}function tCe(n){return OA(n)?n:Ia(n)?void 0:pa(n,tCe)}function nCe(n){let a=fr(n),c=gs(a);return Wr(c)===ir}function rCe(n,a,c){let u=a.parent;P0(u)&&!nCe(u)&&cR(n)&&n.flowNode&&!PB(n.flowNode,!1)&&Fe(n,c)}function KYe(n,a){Na(a)&&zc(a)&&$&&a.initializer&&Y8(a.initializer,n.pos)&&bf(a.parent)&&Fe(n,_.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function kM(n){let a=kC(n),c=Ku(n,!0,!0),u=!1,p=!1;for(c.kind===173&&rCe(n,c,_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===216&&(c=Ku(c,!1,!p),u=!0),c.kind===164){c=Ku(c,!u,!1),p=!0;continue}break}if(KYe(n,c),p)Fe(n,_.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 264:Fe(n,_.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 263:Fe(n,_.this_cannot_be_referenced_in_current_location);break;case 173:iCe(n,c)&&Fe(n,_.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&R<2&&Are(n,c);let h=Cre(n,!0,c);if(X){let T=zn(Ye);if(h===T&&u)Fe(n,_.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){let k=Fe(n,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Li(c)){let O=Cre(c);O&&O!==T&&Ao(k,hr(c,_.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||Se}function Cre(n,a=!0,c=Ku(n,!1,!1)){let u=Yn(n);if(Ia(c)&&(!kre(n)||F0(c))){let p=Pt(c)||u&&YYe(c);if(!p){let h=XYe(c);if(u&&h){let T=Yi(h).symbol;T&&T.members&&T.flags&16&&(p=gs(T).thisType)}else cp(c)&&(p=gs(No(c.symbol)).thisType);p||(p=oCe(c))}if(p)return Yv(n,p)}if(Yr(c.parent)){let p=fr(c.parent),h=Ca(c)?zn(p):gs(p).thisType;return Yv(n,h)}if(Li(c))if(c.commonJsModuleIndicator){let p=fr(c);return p&&zn(p)}else{if(c.externalModuleIndicator)return Oe;if(a)return zn(Ye)}}function qYe(n){let a=Ku(n,!1,!1);if(Ia(a)){let c=ip(a);if(c.thisParameter)return RB(c.thisParameter)}if(Yr(a.parent)){let c=fr(a.parent);return Ca(a)?zn(c):gs(c).thisType}}function XYe(n){if(n.kind===215&&ar(n.parent)&&ic(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===171&&n.parent.kind===207&&ar(n.parent.parent)&&ic(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===215&&n.parent.kind===299&&n.parent.parent.kind===207&&ar(n.parent.parent.parent)&&ic(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===215&&yl(n.parent)&&Re(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&rs(n.parent.parent)&&Pa(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&ic(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(Nc(n)&&Re(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&rs(n.parent)&&Pa(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&ic(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function YYe(n){let a=Vy(n);if(a&&a.kind===320){let u=a;if(u.parameters.length>0&&u.parameters[0].name&&u.parameters[0].name.escapedText==="this")return $r(u.parameters[0].type)}let c=e6(n);if(c&&c.typeExpression)return $r(c.typeExpression)}function iCe(n,a){return!!jn(n,c=>Ds(c)?"quit":c.kind===166&&c.parent===a)}function Ire(n){let a=n.parent.kind===210&&n.parent.expression===n,c=Ww(n,!0),u=c,p=!1,h=!1;if(!a){for(;u&&u.kind===216;)Mr(u,512)&&(h=!0),u=Ww(u,!0),p=R<2;u&&Mr(u,512)&&(h=!0)}let T=0;if(!u||!J(u)){let de=jn(n,Ae=>Ae===u?"quit":Ae.kind===164);return de&&de.kind===164?Fe(n,_.super_cannot_be_referenced_in_a_computed_property_name):a?Fe(n,_.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(Yr(u.parent)||u.parent.kind===207)?Fe(n,_.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Fe(n,_.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ve}if(!a&&c.kind===173&&rCe(n,u,_.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ca(u)||a?(T=32,!a&&R>=2&&R<=8&&(Na(u)||oc(u))&&Jse(n.parent,de=>{(!Li(de)||kd(de))&&(Rr(de).flags|=8388608)})):T=16,Rr(n).flags|=T,u.kind===171&&h&&(Pu(n.parent)&&Um(n.parent)?Rr(u).flags|=256:Rr(u).flags|=128),p&&Are(n.parent,u),u.parent.kind===207)return R<2?(Fe(n,_.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ve):Se;let k=u.parent;if(!P0(k))return Fe(n,_.super_can_only_be_referenced_in_a_derived_class),ve;let O=gs(fr(k)),H=O&&_o(O)[0];if(!H)return ve;if(u.kind===173&&iCe(n,u))return Fe(n,_.super_cannot_be_referenced_in_constructor_arguments),ve;return T===32?Wr(O):uf(H,O.thisType);function J(de){return a?de.kind===173:Yr(de.parent)||de.parent.kind===207?Ca(de)?de.kind===171||de.kind===170||de.kind===174||de.kind===175||de.kind===169||de.kind===172:de.kind===171||de.kind===170||de.kind===174||de.kind===175||de.kind===169||de.kind===168||de.kind===173:!1}}function $Ye(n){return(n.kind===171||n.kind===174||n.kind===175)&&n.parent.kind===207?n.parent:n.kind===215&&n.parent.kind===299?n.parent.parent:void 0}function aCe(n){return Ur(n)&4&&n.target===ye?Ko(n)[0]:void 0}function QYe(n){return Ls(n,a=>a.flags&2097152?mn(a.types,aCe):aCe(a))}function oCe(n){if(n.kind===216)return;if(fB(n)){let c=bD(n);if(c){let u=c.thisParameter;if(u)return zn(u)}}let a=Yn(n);if(X||a){let c=$Ye(n);if(c){let p=o0(c,void 0),h=c,T=p;for(;T;){let k=QYe(T);if(k)return Oi(k,sre(M1(c)));if(h.parent.kind!==299)break;h=h.parent.parent,T=o0(h,void 0)}return Sd(p?yg(p):Ic(c))}let u=qy(n.parent);if(u.kind===223&&u.operatorToken.kind===63){let p=u.left;if(Us(p)){let{expression:h}=p;if(a&&Re(h)){let T=Gn(u);if(T.commonJsModuleIndicator&&Qf(h)===T.symbol)return}return Sd(Ic(h))}}}}function sCe(n){let a=n.parent;if(!fB(a))return;let c=ET(a);if(c&&c.arguments){let p=rie(c),h=a.parameters.indexOf(n);if(n.dotDotDotToken)return tie(p,h,p.length,Se,void 0,0);let T=Rr(c),k=T.resolvedSignature;T.resolvedSignature=As;let O=h<p.length?i0(Yi(p[h])):n.initializer?void 0:je;return T.resolvedSignature=k,O}let u=bD(a);if(u){let p=a.parameters.indexOf(n)-(F0(a)?1:0);return n.dotDotDotToken&&Os(a.parameters)===n?SD(u,p):tT(u,p)}}function Lre(n,a){let c=Cl(n)||(Yn(n)?T4(n):void 0);if(c)return $r(c);switch(n.kind){case 166:return sCe(n);case 205:return ZYe(n,a);case 169:if(Ca(n))return e$e(n,a)}}function ZYe(n,a){let c=n.parent.parent,u=n.propertyName||n.name,p=Lre(c,a)||c.kind!==205&&c.initializer&&ID(c,n.dotDotDotToken?64:0);if(!p||La(u)||Vw(u))return;if(c.name.kind===204){let T=DA(n.parent.elements,n);return T<0?void 0:fCe(p,T)}let h=pg(u);if(fh(h)){let T=Np(h);return Vc(p,T)}}function e$e(n,a){let c=ot(n.parent)&&Ru(n.parent,a);if(c)return eT(c,fr(n).escapedName)}function t$e(n,a){let c=n.parent;if(Jy(c)&&n===c.initializer){let u=Lre(c,a);if(u)return u;if(!(a&8)&&La(c.name)&&c.name.elements.length>0)return oo(c.name,!0,!1)}}function n$e(n,a){let c=Xd(n);if(c){let u=Dre(c,a);if(u){let p=pl(c);if(p&1){let h=(p&2)!==0;u.flags&1048576&&(u=jc(u,k=>!!c0(1,k,h)));let T=c0(1,u,(p&2)!==0);if(!T)return;u=T}if(p&2){let h=Ls(u,bg);return h&&Gr([h,bIe(h)])}return u}}}function r$e(n,a){let c=Ru(n,a);if(c){let u=bg(c);return u&&Gr([u,bIe(u)])}}function i$e(n,a){let c=Xd(n);if(c){let u=pl(c),p=Dre(c,a);if(p){let h=(u&2)!==0;return!n.asteriskToken&&p.flags&1048576&&(p=jc(p,T=>!!c0(1,T,h))),n.asteriskToken?p:c0(0,p,h)}}}function kre(n){let a=!1;for(;n.parent&&!Ia(n.parent);){if(ha(n.parent)&&(a||n.parent.initializer===n))return!0;Wo(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function cCe(n,a){let c=!!(pl(a)&2),u=Dre(a,void 0);if(u)return c0(n,u,c)||void 0}function Dre(n,a){let c=Hx(n);if(c)return c;let u=Nre(n);if(u&&!rne(u))return qo(u);let p=ET(n);if(p)return Ru(p,a)}function lCe(n,a){let u=rie(n).indexOf(a);return u===-1?void 0:wre(n,u)}function wre(n,a){if(Dd(n))return a===0?ae:a===1?nAe(!1):Se;let c=Rr(n).resolvedSignature===yc?yc:MC(n);if(Au(n)&&a===0)return VB(c,n);let u=c.parameters.length-1;return Xl(c)&&a>=u?od(zn(c.parameters[u]),op(a-u),256):P_(c,a)}function a$e(n){let a=_ie(n);return a?HE(a):void 0}function o$e(n,a){if(n.parent.kind===212)return lCe(n.parent,a)}function s$e(n,a){let c=n.parent,{left:u,operatorToken:p,right:h}=c;switch(p.kind){case 63:case 76:case 75:case 77:return n===h?l$e(c):void 0;case 56:case 60:let T=Ru(c,a);return n===h&&(T&&T.pattern||!T&&!dce(c))?au(u):T;case 55:case 27:return n===h?Ru(c,a):void 0;default:return}}function c$e(n){if($p(n)&&n.symbol)return n.symbol;if(Re(n))return Qf(n);if(br(n)){let c=au(n.expression);return pi(n.name)?a(c,n.name):ja(c,n.name.escapedText)}if(Vs(n)){let c=Ic(n.argumentExpression);if(!fh(c))return;let u=au(n.expression);return ja(u,Np(c))}return;function a(c,u){let p=JB(u.escapedText,u);return p&&zre(c,p)}}function l$e(n){var a,c;let u=ic(n);switch(u){case 0:case 4:let p=c$e(n.left),h=p&&p.valueDeclaration;if(h&&(Na(h)||$d(h))){let O=Cl(h);return O&&Oi($r(O),Ai(p).mapper)||(Na(h)?h.initializer&&au(n.left):void 0)}return u===0?au(n.left):uCe(n);case 5:if(GB(n,u))return uCe(n);if(!$p(n.left)||!n.left.symbol)return au(n.left);{let O=n.left.symbol.valueDeclaration;if(!O)return;let H=Ga(n.left,Us),J=Cl(O);if(J)return $r(J);if(Re(H.expression)){let de=H.expression,Ae=zs(de,de.escapedText,111551,void 0,de.escapedText,!0);if(Ae){let xe=Ae.valueDeclaration&&Cl(Ae.valueDeclaration);if(xe){let tt=wh(H);if(tt!==void 0)return eT($r(xe),tt)}return}}return Yn(O)?void 0:au(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=$p(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);let k=T&&Cl(T);return k?$r(k):void 0;case 7:case 8:case 9:return L.fail("Does not apply");default:return L.assertNever(u)}}function GB(n,a=ic(n)){if(a===4)return!0;if(!Yn(n)||a!==5||!Re(n.left.expression))return!1;let c=n.left.expression.escapedText,u=zs(n.left,c,111551,void 0,void 0,!0,!0);return N6(u?.valueDeclaration)}function uCe(n){if(!n.symbol)return au(n.left);if(n.symbol.valueDeclaration){let p=Cl(n.symbol.valueDeclaration);if(p){let h=$r(p);if(h)return h}}let a=Ga(n.left,Us);if(!s_(Ku(a.expression,!1,!1)))return;let c=kM(a.expression),u=wh(a);return u!==void 0&&eT(c,u)||void 0}function u$e(n){return!!(ac(n)&262144&&!n.links.type&&Sm(n,0)>=0)}function eT(n,a,c){return Ls(n,u=>{var p;if(df(u)&&!u.declaration.nameType){let h=rp(u),T=bu(h)||h,k=c||ff(Gi(a));if(to(k,T))return nB(u,k)}else if(u.flags&3670016){let h=ja(u,a);if(h)return u$e(h)?void 0:zn(h);if(po(u)&&Wm(a)&&+a>=0){let T=LC(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(p=$te(Qte(u),c||ff(Gi(a))))==null?void 0:p.type}},!0)}function dCe(n,a){if(L.assert(s_(n)),!(n.flags&33554432))return Rre(n,a)}function Rre(n,a){let c=n.parent,u=yl(n)&&Lre(n,a);if(u)return u;let p=o0(c,a);if(p){if(Ux(n)){let h=fr(n);return eT(p,h.escapedName,Ai(h).nameType)}if(n.name){let h=pg(n.name);return Ls(p,T=>{var k;return(k=$te(Qte(T),h))==null?void 0:k.type},!0)}}}function fCe(n,a){return n&&(a>=0&&eT(n,""+a)||Ls(n,c=>po(c)?LC(c,0,0,!1,!0):Rie(1,c,Oe,void 0,!1),!0))}function d$e(n,a){let c=n.parent;return n===c.whenTrue||n===c.whenFalse?Ru(c,a):void 0}function f$e(n,a,c){let u=o0(n.openingElement.tagName,c),p=HB(tA(n));if(!(u&&!Zo(u)&&p&&p!==""))return;let h=bR(n.children),T=h.indexOf(a),k=eT(u,p);return k&&(h.length===1?k:Ls(k,O=>Kv(O)?od(O,op(T)):O,!0))}function _$e(n,a){let c=n.parent;return d6(c)?Ru(n,a):Hg(c)?f$e(c,n,a):void 0}function _Ce(n,a){if(Sp(n)){let c=o0(n.parent,a);return!c||Zo(c)?void 0:eT(c,n.name.escapedText)}else return Ru(n.parent,a)}function DM(n){switch(n.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return DM(n.expression);case 291:return!n.expression||DM(n.expression)}return!1}function p$e(n,a){return sYe(a,n)||Wne(a,Qi(on(Pr(n.properties,c=>!!c.symbol&&c.kind===299&&DM(c.initializer)&&mD(a,c.symbol.escapedName)),c=>[()=>KM(c.initializer),c.symbol.escapedName]),on(Pr(Jo(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&mD(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),to,a)}function m$e(n,a){return Wne(a,Qi(on(Pr(n.properties,c=>!!c.symbol&&c.kind===288&&mD(a,c.symbol.escapedName)&&(!c.initializer||DM(c.initializer))),c=>[c.initializer?()=>KM(c.initializer):()=>pe,c.symbol.escapedName]),on(Pr(Jo(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&mD(a,c.escapedName)}),c=>[()=>Oe,c.escapedName])),to,a)}function o0(n,a){let c=s_(n)?dCe(n,a):Ru(n,a),u=BB(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let p=Ls(u,Eu,!0);return p.flags&1048576&&rs(n)?p$e(n,p):p.flags&1048576&&K0(n)?m$e(n,p):p}}function BB(n,a,c){if(n&&Js(n,465829888)){let u=M1(a);if(u&&c&1&&vt(u.inferences,qZe))return UB(n,u.nonFixingMapper);if(u?.returnMapper){let p=UB(n,u.returnMapper);return p.flags&1048576&&Qb(p.types,oe)&&Qb(p.types,z)?jc(p,h=>h!==oe&&h!==z):p}}return n}function UB(n,a){return n.flags&465829888?Oi(n,a):n.flags&1048576?Gr(on(n.types,c=>UB(c,a)),0):n.flags&2097152?so(on(n.types,c=>UB(c,a))):n}function Ru(n,a){var c,u;if(n.flags&33554432)return;let p=mCe(n,!a);if(p>=0)return Mc[p];let{parent:h}=n;switch(h.kind){case 257:case 166:case 169:case 168:case 205:return t$e(n,a);case 216:case 250:return n$e(n,a);case 226:return i$e(h,a);case 220:return r$e(h,a);case 210:case 211:return lCe(h,n);case 167:return a$e(h);case 213:case 231:return Ch(h.type)?Ru(h,a):$r(h.type);case 223:return s$e(n,a);case 299:case 300:return Rre(h,a);case 301:return Ru(h.parent,a);case 206:{let T=h,k=o0(T,a),O=(u=(c=Rr(T)).firstSpreadIndex)!=null?u:c.firstSpreadIndex=Yc(T.elements,Km),H=DA(T.elements,n);return fCe(k,O<0||H<O?H:-1)}case 224:return d$e(n,a);case 236:return L.assert(h.parent.kind===225),o$e(h.parent,n);case 214:{if(Yn(h)){if(zW(h))return $r(JW(h));let T=x0(h);if(T&&!Ch(T.typeExpression.type))return $r(T.typeExpression.type)}return Ru(h,a)}case 232:return Ru(h,a);case 235:return $r(h.type);case 274:return ad(h);case 291:return _$e(h,a);case 288:case 290:return _Ce(h,a);case 283:case 282:return y$e(h,a)}}function pCe(n){wM(n,Ru(n,void 0),!0)}function wM(n,a,c){Is[Hh]=n,Mc[Hh]=a,mm[Hh]=c,Hh++}function vD(){Hh--}function mCe(n,a){for(let c=Hh-1;c>=0;c--)if(n===Is[c]&&(a||!mm[c]))return c;return-1}function h$e(n,a){T_[mv]=n,Cb[mv]=a,mv++}function g$e(){mv--}function M1(n){for(let a=mv-1;a>=0;a--)if(AT(n,T_[a]))return Cb[a]}function y$e(n,a){if(Xm(n)&&a!==4){let c=mCe(n.parent,!a);if(c>=0)return Mc[c]}return wre(n,0)}function VB(n,a){return $Ce(a)!==0?v$e(n,a):T$e(n,a)}function v$e(n,a){let c=die(n,ue);c=hCe(a,tA(a),c);let u=s0(Qd.IntrinsicAttributes,a);return Ro(u)||(c=QP(u,c)),c}function b$e(n,a){if(n.compositeSignatures){let u=[];for(let p of n.compositeSignatures){let h=qo(p);if(Zo(h))return h;let T=Vc(h,a);if(!T)return;u.push(T)}return so(u)}let c=qo(n);return Zo(c)?c:Vc(c,a)}function E$e(n){if(OC(n.tagName)){let c=ACe(n),u=ZB(n,c);return HE(u)}let a=Ic(n.tagName);if(a.flags&128){let c=xCe(a,n);if(!c)return ve;let u=ZB(n,c);return HE(u)}return a}function hCe(n,a,c){let u=V$e(a);if(u){let p=gs(u),h=E$e(n);if(u.flags&524288){let T=Ai(u).typeParameters;if(Fn(T)>=2){let k=Sy([h,c],T,2,Yn(n));return Jx(u,k)}}if(Fn(p.typeParameters)>=2){let T=Sy([h,c],p.typeParameters,2,Yn(n));return _g(p,T)}}return c}function T$e(n,a){let c=tA(a),u=j$e(c),p=u===void 0?die(n,ue):u===""?qo(n):b$e(n,u);if(!p)return u&&Fn(a.attributes.properties)&&Fe(a,_.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Gi(u)),ue;if(p=hCe(a,c,p),Zo(p))return p;{let h=p,T=s0(Qd.IntrinsicClassAttributes,a);if(!Ro(T)){let O=yy(T.symbol),H=qo(n),J;if(O){let de=Sy([H],O,Mp(O),Yn(a));J=Oi(T,Wu(O,de))}else J=T;h=QP(J,h)}let k=s0(Qd.IntrinsicAttributes,a);return Ro(k)||(h=QP(k,h)),h}}function S$e(n){return Uf(Y,"noImplicitAny")?ou(n,(a,c)=>a===c||!a?a:Sxe(a.typeParameters,c.typeParameters)?C$e(a,c):void 0):void 0}function x$e(n,a,c){if(!n||!a)return n||a;let u=Gr([zn(n),Oi(zn(a),c)]);return qE(n,u)}function A$e(n,a,c){let u=xd(n),p=xd(a),h=u>=p?n:a,T=h===n?a:n,k=h===n?u:p,O=jp(n)||jp(a),H=O&&!jp(h),J=new Array(k+(H?1:0));for(let de=0;de<k;de++){let Ae=tT(h,de);h===a&&(Ae=Oi(Ae,c));let xe=tT(T,de)||ue;T===a&&(xe=Oi(xe,c));let tt=Gr([Ae,xe]),It=O&&!H&&de===k-1,Tn=de>=Vp(h)&&de>=Vp(T),un=de>=u?void 0:FC(n,de),Nn=de>=p?void 0:FC(a,de),en=un===Nn?un:un?Nn?void 0:un:Nn,cn=wo(1|(Tn&&!It?16777216:0),en||`arg${de}`);cn.links.type=It?nu(tt):tt,J[de]=cn}if(H){let de=wo(1,"args");de.links.type=nu(P_(T,k)),T===a&&(de.links.type=Oi(de.links.type,c)),J[k]=de}return J}function C$e(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=Wu(a.typeParameters,n.typeParameters));let p=n.declaration,h=A$e(n,a,u),T=x$e(n.thisParameter,a.thisParameter,u),k=Math.max(n.minArgumentCount,a.minArgumentCount),O=Am(p,c,T,h,void 0,void 0,k,(n.flags|a.flags)&39);return O.compositeKind=2097152,O.compositeSignatures=Qi(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(O.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Jv(n.mapper,u):u),O}function Ore(n,a){let c=xa(n,0),u=Pr(c,p=>!I$e(p,a));return u.length===1?u[0]:S$e(u)}function I$e(n,a){let c=0;for(;c<a.parameters.length;c++){let u=a.parameters[c];if(u.initializer||u.questionToken||u.dotDotDotToken||JR(u))break}return a.parameters.length&&G0(a.parameters[0])&&c--,!jp(n)&&xd(n)<c}function Nre(n){return a2(n)||s_(n)?bD(n):void 0}function bD(n){L.assert(n.kind!==171||s_(n));let a=Zk(n);if(a)return a;let c=o0(n,1);if(!c)return;if(!(c.flags&1048576))return Ore(c,n);let u,p=c.types;for(let h of p){let T=Ore(h,n);if(T)if(!u)u=[T];else if(vM(u[0],T,!1,!0,!0,sD))u.push(T);else return}if(u)return u.length===1?u[0]:Exe(u[0],u)}function L$e(n,a){R<2&&Hc(n,Y.downlevelIteration?1536:1024);let c=Yi(n.expression,a);return wy(33,c,Oe,n.expression)}function k$e(n){return n.isSpread?od(n.type,rt):n.type}function RC(n){return n.kind===205&&!!n.initializer||n.kind===223&&n.operatorToken.kind===63}function gCe(n,a,c){let u=n.elements,p=u.length,h=[],T=[];pCe(n);let k=Um(n),O=GC(n),H=o0(n,void 0),J=!!H&&yh(H,IC),de=!1;for(let Ae=0;Ae<p;Ae++){let xe=u[Ae];if(xe.kind===227){R<2&&Hc(xe,Y.downlevelIteration?1536:1024);let tt=Yi(xe.expression,a,c);if(Kv(tt))h.push(tt),T.push(8);else if(k){let It=fg(tt,rt)||Rie(65,tt,Oe,void 0,!1)||ue;h.push(It),T.push(4)}else h.push(wy(33,tt,Oe,xe.expression)),T.push(4)}else if(Pe&&xe.kind===229)de=!0,h.push(kt),T.push(2);else{let tt=BC(xe,a,c);if(h.push(ao(tt,!0,de)),T.push(de?2:1),J&&a&&a&2&&!(a&4)&&$f(xe)){let It=M1(n);L.assert(It),v2e(It,xe,tt)}}}return vD(),k?ap(h,T):yCe(c||O||J?ap(h,T,O):nu(h.length?Gr(Tl(h,(Ae,xe)=>T[xe]&8?Ay(Ae,rt)||Se:Ae),2):U?Vt:je,O))}function yCe(n){if(!(Ur(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=Wxe(n),a.objectFlags|=147456),a}function D$e(n){switch(n.kind){case 164:return w$e(n);case 79:return Wm(n.escapedText);case 8:case 10:return Wm(n.text);default:return!1}}function w$e(n){return ul(vg(n),296)}function vg(n){let a=Rr(n.expression);if(!a.resolvedType){if((Rd(n.parent.parent)||Yr(n.parent.parent)||ku(n.parent.parent))&&ar(n.expression)&&n.expression.operatorToken.kind===101&&n.parent.kind!==174&&n.parent.kind!==175)return a.resolvedType=ve;if(a.resolvedType=Yi(n.expression),Na(n.parent)&&!zc(n.parent)&&_u(n.parent.parent)){let c=tm(n.parent.parent),u=xre(c);u&&(Rr(u).flags|=4096,Rr(n).flags|=32768,Rr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!ul(a.resolvedType,402665900)&&!to(a.resolvedType,Kr))&&Fe(n,_.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function R$e(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return Wm(n.escapedName)||c&&zl(c)&&D$e(c.name)}function vCe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return gR(n)||c&&zl(c)&&ts(c.name)&&ul(vg(c.name),4096)}function Pre(n,a,c,u){let p=[];for(let T=a;T<c.length;T++){let k=c[T];(u===ae&&!vCe(k)||u===rt&&R$e(k)||u===j&&vCe(k))&&p.push(zn(c[T]))}let h=p.length?Gr(p,2):Oe;return Fp(u,h,GC(n))}function Mre(n){L.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Ai(n);if(!a.immediateTarget){let c=Uu(n);if(!c)return L.fail();a.immediateTarget=L_(c,!0)}return a.immediateTarget}function O$e(n,a){var c;let u=Um(n);Mrt(n,u);let p=U?Ua():void 0,h=Ua(),T=[],k=Ki;pCe(n);let O=o0(n,void 0),H=O&&O.pattern&&(O.pattern.kind===203||O.pattern.kind===207),J=GC(n),de=J?8:0,Ae=Yn(n)&&!B6(n),xe=Ij(n),tt=!O&&Ae&&!xe,It=ke,Tn=!1,un=!1,Nn=!1,en=!1;for(let Jt of n.properties)Jt.name&&ts(Jt.name)&&vg(Jt.name);let cn=0;for(let Jt of n.properties){let Cn=fr(Jt),Rn=Jt.name&&Jt.name.kind===164?vg(Jt.name):void 0;if(Jt.kind===299||Jt.kind===300||s_(Jt)){let Br=Jt.kind===299?NIe(Jt,a):Jt.kind===300?BC(!u&&Jt.objectAssignmentInitializer?Jt.objectAssignmentInitializer:Jt.name,a):PIe(Jt,a);if(Ae){let wa=di(Jt);wa?(wu(Br,wa,Jt),Br=wa):xe&&xe.typeExpression&&wu(Br,$r(xe.typeExpression),Jt)}It|=Ur(Br)&458752;let Hr=Rn&&fh(Rn)?Rn:void 0,qi=Hr?wo(4|Cn.flags,Np(Hr),de|4096):wo(4|Cn.flags,Cn.escapedName,de);if(Hr&&(qi.links.nameType=Hr),u)(Jt.kind===299&&RC(Jt.initializer)||Jt.kind===300&&Jt.objectAssignmentInitializer)&&(qi.flags|=16777216);else if(H&&!(Ur(O)&512)){let wa=ja(O,Cn.escapedName);wa?qi.flags|=wa.flags&16777216:!Y.suppressExcessPropertyErrors&&!Cm(O,ae)&&Fe(Jt.name,_.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,E(Cn),Ee(O))}if(qi.declarations=Cn.declarations,qi.parent=Cn.parent,Cn.valueDeclaration&&(qi.valueDeclaration=Cn.valueDeclaration),qi.links.type=Br,qi.links.target=Cn,Cn=qi,p?.set(qi.escapedName,qi),O&&a&&a&2&&!(a&4)&&(Jt.kind===299||Jt.kind===171)&&$f(Jt)){let wa=M1(n);L.assert(wa);let Xc=Jt.kind===299?Jt.initializer:Jt;v2e(wa,Xc,Br)}}else if(Jt.kind===301){R<2&&Hc(Jt,2),T.length>0&&(k=e0(k,rr(),n.symbol,It,J),T=[],h=Ua(),un=!1,Nn=!1,en=!1);let Br=O_(Yi(Jt.expression));if(RM(Br)){let Hr=kne(Br,J);if(p&&ECe(Hr,p,Jt),cn=T.length,Ro(k))continue;k=e0(k,Hr,n.symbol,It,J)}else Fe(Jt,_.Spread_types_may_only_be_created_from_object_types),k=ve;continue}else L.assert(Jt.kind===174||Jt.kind===175),zC(Jt);Rn&&!(Rn.flags&8576)?to(Rn,Kr)&&(to(Rn,rt)?Nn=!0:to(Rn,j)?en=!0:un=!0,u&&(Tn=!0)):h.set(Cn.escapedName,Cn),T.push(Cn)}if(vD(),H){let Jt=jn(O.pattern.parent,Rn=>Rn.kind===257||Rn.kind===223||Rn.kind===166);if(jn(n,Rn=>Rn===Jt||Rn.kind===301).kind!==301)for(let Rn of Jo(O))!h.get(Rn.escapedName)&&!ja(k,Rn.escapedName)&&(Rn.flags&16777216||Fe(Rn.valueDeclaration||((c=zr(Rn,Zp))==null?void 0:c.links.bindingElement),_.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(Rn.escapedName,Rn),T.push(Rn))}if(Ro(k))return ve;if(k!==Ki)return T.length>0&&(k=e0(k,rr(),n.symbol,It,J),T=[],h=Ua(),un=!1,Nn=!1),Ls(k,Jt=>Jt===Ki?rr():Jt);return rr();function rr(){let Jt=[];un&&Jt.push(Pre(n,cn,T,ae)),Nn&&Jt.push(Pre(n,cn,T,rt)),en&&Jt.push(Pre(n,cn,T,j));let Cn=ls(n.symbol,h,Je,Je,Jt);return Cn.objectFlags|=It|128|131072,tt&&(Cn.objectFlags|=4096),Tn&&(Cn.objectFlags|=512),u&&(Cn.pattern=n),Cn}}function RM(n){let a=m2e(Ls(n,Ty));return!!(a.flags&126615553||a.flags&3145728&&Ji(a.types,RM))}function N$e(n){Ure(n)}function P$e(n,a){return zC(n),OM(n)||Se}function M$e(n){Ure(n.openingElement),OC(n.closingElement.tagName)?Gre(n.closingElement):Yi(n.closingElement.tagName),jB(n)}function F$e(n,a){return zC(n),OM(n)||Se}function G$e(n){Ure(n.openingFragment);let a=Gn(n);return AW(Y)&&(Y.jsxFactory||a.pragmas.has("jsx"))&&!Y.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Fe(n,Y.jsxFactory?_.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),jB(n),OM(n)||Se}function Fre(n){return jl(n,"-")}function OC(n){return n.kind===79&&GI(n.escapedText)}function bCe(n,a){return n.initializer?BC(n.initializer,a):pe}function B$e(n,a){let c=n.attributes,u=Ru(c,0),p=U?Ua():void 0,h=Ua(),T=kc,k=!1,O,H=!1,J=2048,de=HB(tA(n));for(let tt of c.properties){let It=tt.symbol;if(Sp(tt)){let Tn=bCe(tt,a);J|=Ur(Tn)&458752;let un=wo(4|It.flags,It.escapedName);if(un.declarations=It.declarations,un.parent=It.parent,It.valueDeclaration&&(un.valueDeclaration=It.valueDeclaration),un.links.type=Tn,un.links.target=It,h.set(un.escapedName,un),p?.set(un.escapedName,un),tt.name.escapedText===de&&(H=!0),u){let Nn=ja(u,It.escapedName);Nn&&Nn.declarations&&Sv(Nn)&&Xh(tt.name,Nn.declarations,tt.name.escapedText)}}else{L.assert(tt.kind===290),h.size>0&&(T=e0(T,xe(),c.symbol,J,!1),h=Ua());let Tn=O_(Ic(tt.expression,a));Zo(Tn)&&(k=!0),RM(Tn)?(T=e0(T,Tn,c.symbol,J,!1),p&&ECe(Tn,p,tt)):(Fe(tt.expression,_.Spread_types_may_only_be_created_from_object_types),O=O?so([O,Tn]):Tn)}}k||h.size>0&&(T=e0(T,xe(),c.symbol,J,!1));let Ae=n.parent.kind===281?n.parent:void 0;if(Ae&&Ae.openingElement===n&&Ae.children.length>0){let tt=jB(Ae,a);if(!k&&de&&de!==""){H&&Fe(c,_._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Gi(de));let It=o0(n.attributes,void 0),Tn=It&&eT(It,de),un=wo(4,de);un.links.type=tt.length===1?tt[0]:Tn&&yh(Tn,IC)?ap(tt):nu(Gr(tt)),un.valueDeclaration=D.createPropertySignature(void 0,Gi(de),void 0,void 0),go(un.valueDeclaration,c),un.valueDeclaration.symbol=un;let Nn=Ua();Nn.set(de,un),T=e0(T,ls(c.symbol,Nn,Je,Je,Je),c.symbol,J,!1)}}if(k)return Se;if(O&&T!==kc)return so([O,T]);return O||(T===kc?xe():T);function xe(){J|=ke;let tt=ls(c.symbol,h,Je,Je,Je);return tt.objectFlags|=J|128|131072,tt}}function jB(n,a){let c=[];for(let u of n.children)if(u.kind===11)u.containsOnlyTriviaWhiteSpaces||c.push(ae);else{if(u.kind===291&&!u.expression)continue;c.push(BC(u,a))}return c}function ECe(n,a,c){for(let u of Jo(n))if(!(u.flags&16777216)){let p=a.get(u.escapedName);if(p){let h=Fe(p.valueDeclaration,_._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Gi(p.escapedName));Ao(h,hr(c,_.This_spread_always_overwrites_this_property))}}}function U$e(n,a){return B$e(n.parent,a)}function s0(n,a){let c=tA(a),u=c&&Gd(c),p=u&&yd(u,n,788968);return p?gs(p):ve}function Gre(n){let a=Rr(n);if(!a.resolvedSymbol){let c=s0(Qd.IntrinsicElements,n);if(Ro(c))return ge&&Fe(n,_.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Gi(Qd.IntrinsicElements)),a.resolvedSymbol=Ht;{if(!Re(n.tagName))return L.fail();let u=ja(c,n.tagName.escapedText);return u?(a.jsxFlags|=1,a.resolvedSymbol=u):fg(c,ae)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(Fe(n,_.Property_0_does_not_exist_on_type_1,vr(n.tagName),"JSX."+Qd.IntrinsicElements),a.resolvedSymbol=Ht)}}return a.resolvedSymbol}function Bre(n){let a=n&&Gn(n),c=a&&Rr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let u=p4(_4(Y,a),Y);if(!u)return;let h=$s(Y)===1?_.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_.Cannot_find_module_0_or_its_corresponding_type_declarations,T=qc(n,u,h,n),k=T&&T!==Ht?No(Ac(T)):void 0;return c&&(c.jsxImplicitImportContainer=k||!1),k}function tA(n){let a=n&&Rr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Bre(n);if(!u||u===Ht){let p=Rb(n);u=zs(n,p,1920,void 0,p,!1)}if(u){let p=Ac(yd(Gd(Ac(u)),Qd.JSX,1920));if(p&&p!==Ht)return a&&(a.jsxNamespace=p),p}a&&(a.jsxNamespace=!1)}let c=Ac(nD(Qd.JSX,1920,void 0));if(c!==Ht)return c}function TCe(n,a){let c=a&&yd(a.exports,n,788968),u=c&&gs(c),p=u&&Jo(u);if(p){if(p.length===0)return"";if(p.length===1)return p[0].escapedName;p.length>1&&c.declarations&&Fe(c.declarations[0],_.The_global_type_JSX_0_may_not_have_more_than_one_property,Gi(n))}}function V$e(n){return n&&yd(n.exports,Qd.LibraryManagedAttributes,788968)}function j$e(n){return TCe(Qd.ElementAttributesPropertyNameContainer,n)}function HB(n){return TCe(Qd.ElementChildrenAttributeNameContainer,n)}function SCe(n,a){if(n.flags&4)return[As];if(n.flags&128){let p=xCe(n,a);return p?[ZB(a,p)]:(Fe(a,_.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Qd.IntrinsicElements),Je)}let c=Eu(n),u=xa(c,1);return u.length===0&&(u=xa(c,0)),u.length===0&&c.flags&1048576&&(u=Gte(on(c.types,p=>SCe(p,a)))),u}function xCe(n,a){let c=s0(Qd.IntrinsicElements,a);if(!Ro(c)){let u=n.value,p=ja(c,Bs(u));if(p)return zn(p);let h=fg(c,ae);return h||void 0}return Se}function H$e(n,a,c){if(n===1){let p=ICe(c);p&&Df(a,p,Zu,c.tagName,_.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let p=CCe(c);p&&Df(a,p,Zu,c.tagName,_.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let p=ICe(c),h=CCe(c);if(!p||!h)return;let T=Gr([p,h]);Df(a,T,Zu,c.tagName,_.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let p=Qc(c.tagName);return da(void 0,_._0_cannot_be_used_as_a_JSX_component,p)}}function ACe(n){L.assert(OC(n.tagName));let a=Rr(n);if(!a.resolvedJsxElementAttributesType){let c=Gre(n);return a.jsxFlags&1?a.resolvedJsxElementAttributesType=zn(c)||ve:a.jsxFlags&2?a.resolvedJsxElementAttributesType=fg(s0(Qd.IntrinsicElements,n),ae)||ve:a.resolvedJsxElementAttributesType=ve}return a.resolvedJsxElementAttributesType}function CCe(n){let a=s0(Qd.ElementClass,n);if(!Ro(a))return a}function OM(n){return s0(Qd.Element,n)}function ICe(n){let a=OM(n);if(a)return Gr([a,ln])}function W$e(n){let a=s0(Qd.IntrinsicElements,n);return a?Jo(a):Je}function z$e(n){(Y.jsx||0)===0&&Fe(n,_.Cannot_use_JSX_unless_the_jsx_flag_is_provided),OM(n)===void 0&&ge&&Fe(n,_.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Ure(n){let a=Au(n);if(a&&Frt(n),z$e(n),!Bre(n)){let c=Lo&&Y.jsx===2?_.Cannot_find_name_0:void 0,u=Rb(n),p=a?n.tagName:n,h;if(US(n)&&u==="null"||(h=zs(p,u,111551,c,u,!0)),h&&(h.isReferenced=67108863,!Y.verbatimModuleSyntax&&h.flags&2097152&&!nd(h)&&Hb(h)),US(n)){let T=Gn(n),k=h1(T);k&&zs(p,k,111551,c,k,!0)}}if(a){let c=n,u=MC(c);tU(u,n),H$e($Ce(c),qo(u),c)}}function Vre(n,a,c){if(n.flags&524288){if(qb(n,a)||jx(n,a)||qk(a)&&Cm(n,ae)||c&&Fre(a))return!0}else if(n.flags&3145728&&NM(n)){for(let u of n.types)if(Vre(u,a,c))return!0}return!1}function NM(n){return!!(n.flags&524288&&!(Ur(n)&512)||n.flags&67108864||n.flags&1048576&&vt(n.types,NM)||n.flags&2097152&&Ji(n.types,NM))}function J$e(n,a){if(Brt(n),n.expression){let c=Yi(n.expression,a);return n.dotDotDotToken&&c!==Se&&!_f(c)&&Fe(n,_.JSX_spread_child_must_be_an_array_type),c}else return ve}function WB(n){return n.valueDeclaration?G_(n.valueDeclaration):0}function jre(n){if(n.flags&8192||ac(n)&4)return!0;if(Yn(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&ar(a)&&ic(a)===3}}function Hre(n,a,c,u,p,h=!0){let T=h?n.kind===163?n.right:n.kind===202?n:n.kind===205&&n.propertyName?n.propertyName:n.name:void 0;return LCe(n,a,c,u,p,T)}function LCe(n,a,c,u,p,h){let T=Ef(p,c);if(a){if(R<2&&kCe(p))return h&&Fe(h,_.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(T&256)return h&&Fe(h,_.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,E(p),Ee(N1(p))),!1}if(T&256&&kCe(p)&&(zw(n)||sce(n)||cm(n.parent)&&N6(n.parent.parent))){let O=Nh(ju(p));if(O&&Gnt(n))return h&&Fe(h,_.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,E(p),l_(O.name)),!1}if(!(T&24))return!0;if(T&8){let O=Nh(ju(p));return Hie(n,O)?!0:(h&&Fe(h,_.Property_0_is_private_and_only_accessible_within_class_1,E(p),Ee(N1(p))),!1)}if(a)return!0;let k=zLe(n,O=>{let H=gs(fr(O));return c2e(H,p,c)});return!k&&(k=K$e(n),k=k&&c2e(k,p,c),T&32||!k)?(h&&Fe(h,_.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,E(p),Ee(N1(p)||u)),!1):T&32?!0:(u.flags&262144&&(u=u.isThisType?eu(u):bu(u)),!u||!BE(u,k)?(h&&Fe(h,_.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,E(p),Ee(k),Ee(u)),!1):!0)}function K$e(n){let a=q$e(n),c=a?.type&&$r(a.type);if(c&&c.flags&262144&&(c=eu(c)),c&&Ur(c)&7)return Bx(c)}function q$e(n){let a=Ku(n,!1,!1);return a&&Ia(a)?F0(a):void 0}function kCe(n){return!!gM(n,a=>!(a.flags&8192))}function NC(n){return sp(Yi(n),n)}function zB(n){return!!(iu(n)&50331648)}function Wre(n){return zB(n)?yg(n):n}function X$e(n,a){let c=bc(n)?qd(n):void 0;if(n.kind===104){Fe(n,_.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Re(n)&&c==="undefined"){Fe(n,_.The_value_0_cannot_be_used_here,"undefined");return}Fe(n,a&16777216?a&33554432?_._0_is_possibly_null_or_undefined:_._0_is_possibly_undefined:_._0_is_possibly_null,c)}else Fe(n,a&16777216?a&33554432?_.Object_is_possibly_null_or_undefined:_.Object_is_possibly_undefined:_.Object_is_possibly_null)}function Y$e(n,a){Fe(n,a&16777216?a&33554432?_.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_.Cannot_invoke_an_object_which_is_possibly_undefined:_.Cannot_invoke_an_object_which_is_possibly_null)}function DCe(n,a,c){if(U&&n.flags&2){if(bc(a)){let p=qd(a);if(p.length<100)return Fe(a,_._0_is_of_type_unknown,p),ve}return Fe(a,_.Object_is_of_type_unknown),ve}let u=iu(n);if(u&50331648){c(a,u);let p=yg(n);return p.flags&229376?ve:p}return n}function sp(n,a){return DCe(n,a,X$e)}function wCe(n,a){let c=sp(n,a);if(c.flags&16384){if(bc(a)){let u=qd(a);if(Re(a)&&u==="undefined")return Fe(a,_.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return Fe(a,_._0_is_possibly_undefined,u),c}Fe(a,_.Object_is_possibly_undefined)}return c}function RCe(n,a){return n.flags&32?$$e(n,a):Jre(n,n.expression,NC(n.expression),n.name,a)}function $$e(n,a){let c=Yi(n.expression),u=dD(c,n.expression);return SB(Jre(n,n.expression,sp(u,n.expression),n.name,a),n,u!==c)}function OCe(n,a){let c=G6(n)&<(n.left)?sp(kM(n.left),n.left):NC(n.left);return Jre(n,n.left,c,n.right,a)}function NCe(n){for(;n.parent.kind===214;)n=n.parent;return Ih(n.parent)&&n.parent.expression===n}function JB(n,a){for(let c=Zc(a);c;c=Zc(c)){let{symbol:u}=c,p=hR(u,n),h=u.members&&u.members.get(p)||u.exports&&u.exports.get(p);if(h)return h}}function Q$e(n){if(!Zc(n))return an(n,_.Private_identifiers_are_not_allowed_outside_class_bodies);if(!Mz(n.parent)){if(!Dh(n))return an(n,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=ar(n.parent)&&n.parent.operatorToken.kind===101;if(!KB(n)&&!a)return an(n,_.Cannot_find_name_0,vr(n))}return!1}function Z$e(n){Q$e(n);let a=KB(n);return a&&MM(a,void 0,!1),Se}function KB(n){if(!Dh(n))return;let a=Rr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=JB(n.escapedText,n)),a.resolvedSymbol}function zre(n,a){return ja(n,a.escapedName)}function eQe(n,a,c){let u,p=Jo(n);p&&mn(p,T=>{let k=T.valueDeclaration;if(k&&zl(k)&&pi(k.name)&&k.name.escapedText===a.escapedText)return u=T,!0});let h=Cf(a);if(u){let T=L.checkDefined(u.valueDeclaration),k=L.checkDefined(Zc(T));if(c?.valueDeclaration){let O=c.valueDeclaration,H=Zc(O);if(L.assert(!!H),jn(H,J=>k===J)){let J=Fe(a,_.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,Ee(n));return Ao(J,hr(O,_.The_shadowing_declaration_of_0_is_defined_here,h),hr(T,_.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return Fe(a,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,Cf(k.name||nN)),!0}return!1}function PCe(n,a){return(id(a)||zw(n)&&np(a))&&Ku(n,!0,!1)===Op(a)}function Jre(n,a,c,u,p){let h=Rr(a).resolvedSymbol,T=xT(n),k=Eu(T!==0||NCe(n)?Sd(c):c),O=Zo(k)||k===Qe,H;if(pi(u)){R<99&&(T!==0&&Hc(n,1048576),T!==1&&Hc(n,524288));let de=JB(u.escapedText,u);if(T&&de&&de.valueDeclaration&&Nc(de.valueDeclaration)&&an(u,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,vr(u)),O){if(de)return Ro(k)?ve:k;if(!Zc(u))return an(u,_.Private_identifiers_are_not_allowed_outside_class_bodies),Se}if(H=de?zre(c,de):void 0,!H&&eQe(c,u,de))return ve;H&&H.flags&65536&&!(H.flags&32768)&&T!==1&&Fe(n,_.Private_accessor_was_defined_without_a_getter)}else{if(O)return Re(a)&&h&&FB(h,n),Ro(k)?ve:k;H=ja(k,u.escapedText,!1,n.kind===163)}Re(a)&&h&&(d_(Y)||!(H&&(MD(H)||H.flags&8&&n.parent.kind===302))||U0(Y)&&eCe(n))&&FB(h,n);let J;if(H){Sv(H)&&xne(n,H)&&H.declarations&&Xh(u,H.declarations,u.escapedText),tQe(H,n,u),MM(H,n,jCe(a,h)),Rr(n).resolvedSymbol=H;let de=YI(n);if(Hre(n,a.kind===106,de,k,H),LIe(n,H,T))return Fe(u,_.Cannot_assign_to_0_because_it_is_a_read_only_property,vr(u)),ve;J=PCe(n,H)?at:de?mC(H):zn(H)}else{let de=!pi(u)&&(T===0||!Zb(c)||lL(c))?jx(k,u.escapedText):void 0;if(!(de&&de.type)){let Ae=Kre(n,c.symbol,!0);return!Ae&&iD(c)?Se:c.symbol===Ye?(Ye.exports.has(u.escapedText)&&Ye.exports.get(u.escapedText).flags&418?Fe(u,_.Property_0_does_not_exist_on_type_1,Gi(u.escapedText),Ee(c)):ge&&Fe(u,_.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ee(c)),Se):(u.escapedText&&!xv(n)&&GCe(u,lL(c)?k:c,Ae),ve)}de.isReadonly&&(Um(n)||GH(n))&&Fe(n,_.Index_signature_in_type_0_only_permits_reading,Ee(k)),J=Y.noUncheckedIndexedAccess&&!Um(n)?Gr([de.type,Ge]):de.type,Y.noPropertyAccessFromIndexSignature&&br(n)&&Fe(u,_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Gi(u.escapedText)),de.declaration&&G_(de.declaration)&268435456&&Xh(u,[de.declaration],u.escapedText)}return MCe(n,H,J,u,p)}function Kre(n,a,c){let u=Gn(n);if(u&&Y.checkJs===void 0&&u.checkJsDirective===void 0&&(u.scriptKind===1||u.scriptKind===2)){let p=mn(a?.declarations,Gn);return!(u!==p&&p&&gm(p))&&!(c&&a&&a.flags&32)&&!(n&&c&&br(n)&&n.expression.kind===108)}return!1}function MCe(n,a,c,u,p){let h=xT(n);if(h===1)return KE(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!yU(a.declarations))return c;if(c===at)return Fx(n,a);c=Sre(c,n,p);let T=!1;if(U&&_e&&Us(n)&&n.expression.kind===108){let O=a&&a.valueDeclaration;if(O&&wLe(O)&&!Ca(O)){let H=yD(n);H.kind===173&&H.parent===O.parent&&!(O.flags&16777216)&&(T=!0)}}else U&&a&&a.valueDeclaration&&br(a.valueDeclaration)&&tR(a.valueDeclaration)&&yD(n)===yD(a.valueDeclaration)&&(T=!0);let k=Yv(n,c,T?gg(c):c);return T&&!xC(c)&&xC(k)?(Fe(u,_.Property_0_is_used_before_being_assigned,E(a)),c):h?ky(k):k}function tQe(n,a,c){let{valueDeclaration:u}=n;if(!u||Gn(a).isDeclarationFile)return;let p,h=vr(c);FCe(a)&&!YJe(u)&&!(Us(a)&&Us(a.expression))&&!$h(u,c)&&!(Nc(u)&&wg(u)&32)&&(Y.useDefineForClassFields||!nQe(n))?p=Fe(c,_.Property_0_is_used_before_its_initialization,h):u.kind===260&&a.parent.kind!==180&&!(u.flags&16777216)&&!$h(u,c)&&(p=Fe(c,_.Class_0_used_before_its_declaration,h)),p&&Ao(p,hr(u,_._0_is_declared_here,h))}function FCe(n){return!!jn(n,a=>{switch(a.kind){case 169:return!0;case 299:case 171:case 174:case 175:case 301:case 164:case 236:case 291:case 288:case 289:case 290:case 283:case 230:case 294:return!1;case 216:case 241:return Va(a.parent)&&oc(a.parent.parent)?!0:"quit";default:return Dh(a)?!1:"quit"}})}function nQe(n){if(!(n.parent.flags&32))return!1;let a=zn(n.parent);for(;;){if(a=a.symbol&&rQe(a),!a)return!1;let c=ja(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function rQe(n){let a=_o(n);if(a.length!==0)return so(a)}function GCe(n,a,c){let u,p;if(!pi(n)&&a.flags&1048576&&!(a.flags&134348796)){for(let T of a.types)if(!ja(T,n.escapedText)&&!jx(T,n.escapedText)){u=da(u,_.Property_0_does_not_exist_on_type_1,os(n),Ee(T));break}}if(BCe(n.escapedText,a)){let T=os(n),k=Ee(a);u=da(u,_.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,k,k+"."+T)}else{let T=wD(a);if(T&&ja(T,n.escapedText))u=da(u,_.Property_0_does_not_exist_on_type_1,os(n),Ee(a)),p=hr(n,_.Did_you_forget_to_use_await);else{let k=os(n),O=Ee(a),H=oQe(k,a);if(H!==void 0)u=da(u,_.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,k,O,H);else{let J=qre(n,a);if(J!==void 0){let de=fc(J),Ae=c?_.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=da(u,Ae,k,O,de),p=J.valueDeclaration&&hr(J.valueDeclaration,_._0_is_declared_here,de)}else{let de=iQe(a)?_.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_.Property_0_does_not_exist_on_type_1;u=da(Xte(u,a),de,k,O)}}}}let h=Lh(Gn(n),n,u);p&&Ao(h,p),ey(!c||u.code!==_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function iQe(n){return Y.lib&&!Y.lib.includes("dom")&&TYe(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Gi(a.symbol.escapedName)))&&mh(n)}function BCe(n,a){let c=a.symbol&&ja(zn(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&Ca(c.valueDeclaration)}function aQe(n){let a=Cf(n),u=oH().get(a);return u&&pae(u.keys())}function oQe(n,a){let c=Eu(a).symbol;if(!c)return;let u=fc(c),h=oH().get(u);if(h){for(let[T,k]of h)if(ya(k,n))return T}}function UCe(n,a){return PM(n,Jo(a),106500)}function qre(n,a){let c=Jo(a);if(typeof n!="string"){let u=n.parent;br(u)&&(c=Pr(c,p=>HCe(u,a,p))),n=vr(n)}return PM(n,c,111551)}function VCe(n,a){let c=Ta(n)?n:vr(n),u=Jo(a),p=c==="for"?wr(u,h=>fc(h)==="htmlFor"):c==="class"?wr(u,h=>fc(h)==="className"):void 0;return p??PM(c,u,111551)}function Xre(n,a){let c=qre(n,a);return c&&fc(c)}function Yre(n,a,c){return L.assert(a!==void 0,"outername should always be defined"),Fb(n,a,c,void 0,a,!1,!1,!0,(p,h,T)=>{L.assertEqual(a,h,"name should equal outerName");let k=yd(p,h,T);if(k)return k;let O;return p===Ne?O=Zi(["string","number","boolean","object","bigint","symbol"],J=>p.has(J.charAt(0).toUpperCase()+J.slice(1))?wo(524288,J):void 0).concat(lo(p.values())):O=lo(p.values()),PM(Gi(h),O,T)})}function sQe(n,a,c){let u=Yre(n,a,c);return u&&fc(u)}function qB(n,a){return a.exports&&PM(vr(n),sy(a),2623475)}function cQe(n,a){let c=qB(n,a);return c&&fc(c)}function lQe(n,a,c){function u(T){let k=qb(n,T);if(k){let O=F1(zn(k));return!!O&&Vp(O)>=1&&to(c,P_(O,0))}return!1}let p=Um(a)?"set":"get";if(!u(p))return;let h=kR(a.expression);return h===void 0?h=p:h+="."+p,h}function uQe(n,a){let c=a.types.filter(u=>!!(u.flags&128));return $C(n.value,c,u=>u.value)}function PM(n,a,c){return $C(n,a,u);function u(p){let h=fc(p);if(!na(h,'"')){if(p.flags&c)return h;if(p.flags&2097152){let T=tg(p);if(T&&T.flags&c)return h}}}}function MM(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let p=cd(u,8),h=n.valueDeclaration&&zl(n.valueDeclaration)&&pi(n.valueDeclaration.name);if(!(!p&&!h)&&!(a&&hW(a)&&!(n.flags&65536))){if(c){let T=jn(a,Ds);if(T&&T.symbol===n)return}(ac(n)&1?Ai(n).target:n).isReferenced=67108863}}function jCe(n,a){return n.kind===108||!!a&&bc(n)&&a===Qf(Yd(n))}function dQe(n,a){switch(n.kind){case 208:return $re(n,n.expression.kind===106,a,Sd(Yi(n.expression)));case 163:return $re(n,!1,a,Sd(Yi(n.left)));case 202:return $re(n,!1,a,$r(n))}}function HCe(n,a,c){return Qre(n,n.kind===208&&n.expression.kind===106,!1,a,c)}function $re(n,a,c,u){if(Zo(u))return!0;let p=ja(u,c);return!!p&&Qre(n,a,!1,u,p)}function Qre(n,a,c,u,p){if(Zo(u))return!0;if(p.valueDeclaration&&xu(p.valueDeclaration)){let h=Zc(p.valueDeclaration);return!Jl(n)&&!!jn(n,T=>T===h)}return LCe(n,a,c,u,p)}function fQe(n){let a=n.initializer;if(a.kind===258){let c=a.declarations[0];if(c&&!La(c.name))return fr(c)}else if(a.kind===79)return Qf(a)}function _Qe(n){return tu(n).length===1&&!!Cm(n,rt)}function pQe(n){let a=vs(n);if(a.kind===79){let c=Qf(a);if(c.flags&3){let u=n,p=n.parent;for(;p;){if(p.kind===246&&u===p.statement&&fQe(p)===c&&_Qe(au(p.expression)))return!0;u=p,p=p.parent}}}return!1}function mQe(n,a){return n.flags&32?hQe(n,a):WCe(n,NC(n.expression),a)}function hQe(n,a){let c=Yi(n.expression),u=dD(c,n.expression);return SB(WCe(n,sp(u,n.expression),a),n,u!==c)}function WCe(n,a,c){let u=xT(n)!==0||NCe(n)?Sd(a):a,p=n.argumentExpression,h=Yi(p);if(Ro(u)||u===Qe)return u;if(hie(u)&&!es(p))return Fe(p,_.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ve;let T=pQe(p)?rt:h,k=Um(n)?4|(Zb(u)&&!lL(u)?2:0):32,O=Ay(u,T,k,n)||ve;return qIe(MCe(n,Rr(n).resolvedSymbol,O,p,c),n)}function zCe(n){return Ih(n)||PT(n)||Au(n)}function nA(n){return zCe(n)&&mn(n.typeArguments,qa),n.kind===212?Yi(n.template):Au(n)?Yi(n.attributes):n.kind!==167&&mn(n.arguments,a=>{Yi(a)}),As}function Up(n){return nA(n),jt}function gQe(n,a,c){let u,p,h=0,T,k=-1,O;L.assert(!a.length);for(let H of n){let J=H.declaration&&fr(H.declaration),de=H.declaration&&H.declaration.parent;!p||J===p?u&&de===u?T=T+1:(u=de,T=h):(T=h=a.length,u=de),p=J,_K(H)?(k++,O=k,h++):O=T,a.splice(O,0,c?bJe(H,c):H)}}function XB(n){return!!n&&(n.kind===227||n.kind===234&&n.isSpread)}function YB(n){return Yc(n,XB)}function JCe(n){return!!(n.flags&16384)}function yQe(n){return!!(n.flags&49155)}function $B(n,a,c,u=!1){let p,h=!1,T=xd(c),k=Vp(c);if(n.kind===212)if(p=a.length,n.template.kind===225){let O=To(n.template.templateSpans);h=rc(O.literal)||!!O.literal.isUnterminated}else{let O=n.template;L.assert(O.kind===14),h=!!O.isUnterminated}else if(n.kind===167)p=ZCe(n,c);else if(Au(n)){if(h=n.attributes.end===n.end,h)return!0;p=k===0?a.length:1,T=a.length===0?T:1,k=Math.min(k,1)}else if(n.arguments){p=u?a.length+1:a.length,h=n.arguments.end===n.end;let O=YB(a);if(O>=0)return O>=Vp(c)&&(jp(c)||O<xd(c))}else return L.assert(n.kind===211),Vp(c)===0;if(!jp(c)&&p>T)return!1;if(h||p>=k)return!0;for(let O=p;O<k;O++){let H=P_(c,O);if(jc(H,Yn(n)&&!U?yQe:JCe).flags&131072)return!1}return!0}function Zre(n,a){let c=Fn(n.typeParameters),u=Mp(n.typeParameters);return!vt(a)||a.length>=u&&a.length<=c}function F1(n){return ED(n,0,!1)}function KCe(n){return ED(n,0,!1)||ED(n,1,!1)}function ED(n,a,c){if(n.flags&524288){let u=R_(n);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function qCe(n,a,c,u){let p=_D(n.typeParameters,n,0,u),h=xD(a),T=c&&(h&&h.flags&262144?c.nonFixingMapper:c.mapper),k=T?$x(a,T):a;return rre(k,n,(O,H)=>{gh(p.inferences,O,H)}),c||ire(a,n,(O,H)=>{gh(p.inferences,O,H,128)}),eD(n,gre(p),Yn(a.declaration))}function vQe(n,a,c,u){let p=VB(a,n),h=rA(n.attributes,p,u,c);return gh(u.inferences,h,p),gre(u)}function XCe(n){if(!n)return yt;let a=Yi(n);return pI(n.parent)?yg(a):Jl(n.parent)?ere(a):a}function eie(n,a,c,u,p){if(Au(n))return vQe(n,a,u,p);if(n.kind!==167){let O=Ji(a.typeParameters,J=>!!jE(J)),H=Ru(n,O?8:0);if(H){let J=qo(a);if(XE(J)){let de=M1(n);if(!(!O&&Ru(n,8)!==H)){let It=sre(GXe(de,1)),Tn=Oi(H,It),un=F1(Tn),Nn=un&&un.typeParameters?HE(ine(un,un.typeParameters)):Tn;gh(p.inferences,Nn,J,128)}let xe=_D(a.typeParameters,a,p.flags),tt=Oi(H,de&&de.returnMapper);gh(xe.inferences,tt,J),p.returnMapper=vt(xe.inferences,iA)?sre(jXe(xe)):void 0}}}let h=AD(a),T=h?Math.min(xd(a)-1,c.length):c.length;if(h&&h.flags&262144){let O=wr(p.inferences,H=>H.typeParameter===h);O&&(O.impliedArity=Yc(c,XB,T)<0?c.length-T:void 0)}let k=Yb(a);if(k&&XE(k)){let O=QCe(n);gh(p.inferences,XCe(O),k)}for(let O=0;O<T;O++){let H=c[O];if(H.kind!==229&&!(u&32&&dre(H))){let J=P_(a,O);if(XE(J)){let de=rA(H,J,p,u);gh(p.inferences,de,J)}}}if(h&&XE(h)){let O=tie(c,T,c.length,h,p,u);gh(p.inferences,O,h)}return gre(p)}function YCe(n){return n.flags&1048576?Ls(n,YCe):n.flags&1||vB(bu(n)||n)?n:po(n)?ap(Ko(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):ap([n],[8])}function tie(n,a,c,u,p,h){if(a>=c-1){let J=n[c-1];if(XB(J))return YCe(J.kind===234?J.type:rA(J.expression,u,p,h))}let T=[],k=[],O=[],H=tM(u);for(let J=a;J<c;J++){let de=n[J];if(XB(de)){let Ae=de.kind===234?de.type:Yi(de.expression);Kv(Ae)?(T.push(Ae),k.push(8)):(T.push(wy(33,Ae,Oe,de.kind===227?de.expression:de)),k.push(4))}else{let Ae=od(u,op(J-a),256),xe=rA(de,Ae,p,h),tt=H||Js(Ae,406978556);T.push(tt?Hu(xe):i0(xe)),k.push(1)}de.kind===234&&de.tupleNameSource&&O.push(de.tupleNameSource)}return ap(T,k,H,Fn(O)===Fn(T)?O:void 0)}function nie(n,a,c,u){let p=Yn(n.declaration),h=n.typeParameters,T=Sy(on(a,$r),h,Mp(h),p),k;for(let O=0;O<a.length;O++){L.assert(h[O]!==void 0,"Should not call checkTypeArguments with too many type arguments");let H=eu(h[O]);if(H){let J=c&&u?()=>da(void 0,_.Type_0_does_not_satisfy_the_constraint_1):void 0,de=u||_.Type_0_does_not_satisfy_the_constraint_1;k||(k=Wu(h,T));let Ae=T[O];if(!wu(Ae,uf(Oi(H,k),Ae),c?a[O]:void 0,de,J))return}}return T}function $Ce(n){if(OC(n.tagName))return 2;let a=Eu(Yi(n.tagName));return Fn(xa(a,1))?0:Fn(xa(a,0))?1:2}function bQe(n,a,c,u,p,h,T){let k=VB(a,n),O=rA(n.attributes,k,void 0,u);return H()&&Bne(O,k,c,p?n.tagName:void 0,n.attributes,void 0,h,T);function H(){var J;if(Bre(n))return!0;let de=Xm(n)||FS(n)&&!OC(n.tagName)?Yi(n.tagName):void 0;if(!de)return!0;let Ae=xa(de,0);if(!Fn(Ae))return!0;let xe=nke(n);if(!xe)return!0;let tt=uc(xe,111551,!0,!1,n);if(!tt)return!0;let It=zn(tt),Tn=xa(It,0);if(!Fn(Tn))return!0;let un=!1,Nn=0;for(let cn of Tn){let rr=P_(cn,0),Jt=xa(rr,0);if(Fn(Jt))for(let Cn of Jt){if(un=!0,jp(Cn))return!0;let Rn=xd(Cn);Rn>Nn&&(Nn=Rn)}}if(!un)return!0;let en=1/0;for(let cn of Ae){let rr=Vp(cn);rr<en&&(en=rr)}if(en<=Nn)return!0;if(p){let cn=hr(n.tagName,_.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,qd(n.tagName),en,qd(xe),Nn),rr=(J=Zf(n.tagName))==null?void 0:J.valueDeclaration;rr&&Ao(cn,hr(rr,_._0_is_declared_here,qd(n.tagName))),T&&T.skipLogging&&(T.errors||(T.errors=[])).push(cn),T.skipLogging||Lo.add(cn)}return!1}}function FM(n,a,c,u,p,h,T){let k={errors:void 0,skipLogging:!0};if(Au(n))return bQe(n,c,u,p,h,T,k)?void 0:(L.assert(!h||!!k.errors,"jsx should have errors when reporting errors"),k.errors||Je);let O=Yb(c);if(O&&O!==yt&&!(z0(n)||Pa(n)&&Pu(n.expression))){let xe=QCe(n),tt=XCe(xe),It=h?xe||n:void 0,Tn=_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Df(tt,O,u,It,Tn,T,k))return L.assert(!h||!!k.errors,"this parameter should have errors when reporting errors"),k.errors||Je}let H=_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,J=AD(c),de=J?Math.min(xd(c)-1,a.length):a.length;for(let xe=0;xe<de;xe++){let tt=a[xe];if(tt.kind!==229){let It=P_(c,xe),Tn=rA(tt,It,void 0,p),un=p&4?EM(Tn):Tn;if(!Bne(un,It,u,h?tt:void 0,tt,H,T,k))return L.assert(!h||!!k.errors,"parameter should have errors when reporting errors"),Ae(tt,un,It),k.errors||Je}}if(J){let xe=tie(a,de,a.length,J,void 0,p),tt=a.length-de,It=h?tt===0?n:tt===1?a[de]:om(GM(n,xe),a[de].pos,a[a.length-1].end):void 0;if(!Df(xe,J,u,It,H,void 0,k))return L.assert(!h||!!k.errors,"rest parameter should have errors when reporting errors"),Ae(It,xe,J),k.errors||Je}return;function Ae(xe,tt,It){if(xe&&h&&k.errors&&k.errors.length){if(DD(It))return;let Tn=DD(tt);Tn&&Bp(Tn,It,u)&&Ao(k.errors[0],hr(xe,_.Did_you_forget_to_use_await))}}}function QCe(n){let a=n.kind===210?n.expression:n.kind===212?n.tag:void 0;if(a){let c=ql(a);if(Us(c))return c.expression}}function GM(n,a,c,u){let p=fm.createSyntheticExpression(a,c,u);return it(p,n),go(p,n),p}function rie(n){if(n.kind===212){let u=n.template,p=[GM(u,_Ke())];return u.kind===225&&mn(u.templateSpans,h=>{p.push(h.expression)}),p}if(n.kind===167)return EQe(n);if(Au(n))return n.attributes.properties.length>0||Xm(n)&&n.parent.children.length>0?[n.attributes]:Je;let a=n.arguments||Je,c=YB(a);if(c>=0){let u=a.slice(0,c);for(let p=c;p<a.length;p++){let h=a[p],T=h.kind===227&&(Dn?Yi(h.expression):Ic(h.expression));T&&po(T)?mn(Ko(T),(k,O)=>{var H;let J=T.target.elementFlags[O],de=GM(h,J&4?nu(k):k,!!(J&12),(H=T.target.labeledElementDeclarations)==null?void 0:H[O]);u.push(de)}):u.push(h)}return u}return a}function EQe(n){let a=n.expression,c=_ie(n);if(c){let u=[];for(let p of c.parameters){let h=zn(p);u.push(GM(a,h))}return u}return L.fail()}function ZCe(n,a){return Y.experimentalDecorators?TQe(n,a):2}function TQe(n,a){switch(n.parent.kind){case 260:case 228:return 1;case 169:return rm(n.parent)?3:2;case 171:case 174:case 175:return R===0||a.parameters.length<=2?2:3;case 166:return 3;default:return L.fail()}}function eIe(n,a){let c,u,p=Gn(n);if(br(n.expression)){let h=w0(p,n.expression.name);c=h.start,u=a?h.length:n.end-c}else{let h=w0(p,n.expression);c=h.start,u=a?h.length:n.end-c}return{start:c,length:u,sourceFile:p}}function TD(n,a,c,u,p,h){if(Pa(n)){let{sourceFile:T,start:k,length:O}=eIe(n);return"message"in a?al(T,k,O,a,c,u,p,h):yH(T,a)}else return"message"in a?hr(n,a,c,u,p,h):Lh(Gn(n),n,a)}function SQe(n){if(!Pa(n)||!Re(n.expression))return!1;let a=zs(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!ha(c)||!a2(c.parent)||!z0(c.parent.parent)||!Re(c.parent.parent.expression))return!1;let u=_ne(!1);return u?Zf(c.parent.parent.expression,!0)===u:!1}function tIe(n,a,c,u){var p;let h=YB(c);if(h>-1)return hr(c[h],_.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,O=Number.NEGATIVE_INFINITY,H=Number.POSITIVE_INFINITY,J;for(let It of a){let Tn=Vp(It),un=xd(It);Tn<T&&(T=Tn,J=It),k=Math.max(k,un),Tn<c.length&&Tn>O&&(O=Tn),c.length<un&&un<H&&(H=un)}let de=vt(a,jp),Ae=de?T:T<k?T+"-"+k:T,xe=!de&&Ae===1&&c.length===0&&SQe(n);if(xe&&Yn(n))return TD(n,_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let tt=du(n)?de?_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:de?_.Expected_at_least_0_arguments_but_got_1:xe?_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_.Expected_0_arguments_but_got_1;if(T<c.length&&c.length<k){if(u){let It=da(void 0,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,O,H);return It=da(It,u),TD(n,It)}return TD(n,_.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,O,H)}else if(c.length<T){let It;if(u){let un=da(void 0,tt,Ae,c.length);un=da(un,u),It=TD(n,un)}else It=TD(n,tt,Ae,c.length);let Tn=(p=J?.declaration)==null?void 0:p.parameters[J.thisParameter?c.length+1:c.length];if(Tn){let un=hr(Tn,La(Tn.name)?_.An_argument_matching_this_binding_pattern_was_not_provided:Fm(Tn)?_.Arguments_for_the_rest_parameter_0_were_not_provided:_.An_argument_for_0_was_not_provided,Tn.name?La(Tn.name)?void 0:vr(Yd(Tn.name)):c.length);return Ao(It,un)}return It}else{let It=D.createNodeArray(c.slice(k)),Tn=Vo(It).pos,un=To(It).end;if(un===Tn&&un++,om(It,Tn,un),u){let Nn=da(void 0,tt,Ae,c.length);return Nn=da(Nn,u),jw(Gn(n),It,Nn)}return RA(Gn(n),It,tt,Ae,c.length)}}function xQe(n,a,c,u){let p=c.length;if(a.length===1){let k=a[0],O=Mp(k.typeParameters),H=Fn(k.typeParameters);if(u){let J=da(void 0,_.Expected_0_type_arguments_but_got_1,O<H?O+"-"+H:O,p);return J=da(J,u),jw(Gn(n),c,J)}return RA(Gn(n),c,_.Expected_0_type_arguments_but_got_1,O<H?O+"-"+H:O,p)}let h=-1/0,T=1/0;for(let k of a){let O=Mp(k.typeParameters),H=Fn(k.typeParameters);O>p?T=Math.min(T,O):H<p&&(h=Math.max(h,H))}if(h!==-1/0&&T!==1/0){if(u){let k=da(void 0,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,h,T);return k=da(k,u),jw(Gn(n),c,k)}return RA(Gn(n),c,_.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,p,h,T)}if(u){let k=da(void 0,_.Expected_0_type_arguments_but_got_1,h===-1/0?T:h,p);return k=da(k,u),jw(Gn(n),c,k)}return RA(Gn(n),c,_.Expected_0_type_arguments_but_got_1,h===-1/0?T:h,p)}function PC(n,a,c,u,p,h){let T=n.kind===212,k=n.kind===167,O=Au(n),H=!B&&!c,J;!k&&!OA(n)&&(J=n.typeArguments,(T||O||n.expression.kind!==106)&&mn(J,qa));let de=c||[];if(gQe(a,de,p),!de.length)return H&&Lo.add(TD(n,_.Call_target_does_not_contain_any_signatures)),Up(n);let Ae=rie(n),xe=de.length===1&&!de[0].typeParameters,tt=!k&&!xe&&vt(Ae,$f)?4:0;tt|=u&32;let It,Tn,un,Nn,en=!!(u&16)&&n.kind===210&&n.arguments.hasTrailingComma;if(de.length>1&&(Nn=rr(de,hm,xe,en)),Nn||(Nn=rr(de,Zu,xe,en)),Nn)return Nn;if(Nn=AQe(n,de,Ae,!!c,u),Rr(n).resolvedSignature=Nn,H)if(It)if(It.length===1||It.length>3){let Jt=It[It.length-1],Cn;It.length>3&&(Cn=da(Cn,_.The_last_overload_gave_the_following_error),Cn=da(Cn,_.No_overload_matches_this_call)),h&&(Cn=da(Cn,h));let Rn=FM(n,Ae,Jt,Zu,0,!0,()=>Cn);if(Rn)for(let Br of Rn)Jt.declaration&&It.length>3&&Ao(Br,hr(Jt.declaration,_.The_last_overload_is_declared_here)),cn(Jt,Br),Lo.add(Br);else L.fail("No error for last overload signature")}else{let Jt=[],Cn=0,Rn=Number.MAX_VALUE,Br=0,Hr=0;for(let Hd of It){let In=FM(n,Ae,Hd,Zu,0,!0,()=>da(void 0,_.Overload_0_of_1_2_gave_the_following_error,Hr+1,de.length,ne(Hd)));In?(In.length<=Rn&&(Rn=In.length,Br=Hr),Cn=Math.max(Cn,In.length),Jt.push(In)):L.fail("No error for 3 or fewer overload signatures"),Hr++}let qi=Cn>1?Jt[Br]:t_(Jt);L.assert(qi.length>0,"No errors reported for 3 or fewer overload signatures");let wa=da(on(qi,qse),_.No_overload_matches_this_call);h&&(wa=da(wa,h));let Xc=[...Uo(qi,Hd=>Hd.relatedInformation)],pf;if(Ji(qi,Hd=>Hd.start===qi[0].start&&Hd.length===qi[0].length&&Hd.file===qi[0].file)){let{file:Hd,start:ji,length:In}=qi[0];pf={file:Hd,start:ji,length:In,code:wa.code,category:wa.category,messageText:wa,relatedInformation:Xc}}else pf=Lh(Gn(n),n,wa,Xc);cn(It[0],pf),Lo.add(pf)}else if(Tn)Lo.add(tIe(n,[Tn],Ae,h));else if(un)nie(un,n.typeArguments,!0,h);else{let Jt=Pr(a,Cn=>Zre(Cn,J));Jt.length===0?Lo.add(xQe(n,a,J,h)):Lo.add(tIe(n,Jt,Ae,h))}return Nn;function cn(Jt,Cn){var Rn,Br;let Hr=It,qi=Tn,wa=un,Xc=((Br=(Rn=Jt.declaration)==null?void 0:Rn.symbol)==null?void 0:Br.declarations)||Je,Hd=Xc.length>1?wr(Xc,ji=>Ds(ji)&&Pf(ji.body)):void 0;if(Hd){let ji=ip(Hd),In=!ji.typeParameters;rr([ji],Zu,In)&&Ao(Cn,hr(Hd,_.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}It=Hr,Tn=qi,un=wa}function rr(Jt,Cn,Rn,Br=!1){if(It=void 0,Tn=void 0,un=void 0,Rn){let Hr=Jt[0];if(vt(J)||!$B(n,Ae,Hr,Br))return;if(FM(n,Ae,Hr,Cn,0,!1,void 0)){It=[Hr];return}return Hr}for(let Hr=0;Hr<Jt.length;Hr++){let qi=Jt[Hr];if(!Zre(qi,J)||!$B(n,Ae,qi,Br))continue;let wa,Xc;if(qi.typeParameters){let pf;if(vt(J)){if(pf=nie(qi,J,!1),!pf){un=qi;continue}}else Xc=_D(qi.typeParameters,qi,Yn(n)?2:0),pf=eie(n,qi,Ae,tt|8,Xc),tt|=Xc.flags&4?8:0;if(wa=eD(qi,pf,Yn(qi.declaration),Xc&&Xc.inferredTypeParameters),AD(qi)&&!$B(n,Ae,wa,Br)){Tn=wa;continue}}else wa=qi;if(FM(n,Ae,wa,Cn,tt,!1,void 0)){(It||(It=[])).push(wa);continue}if(tt){if(tt=u&32,Xc){let pf=eie(n,qi,Ae,tt,Xc);if(wa=eD(qi,pf,Yn(qi.declaration),Xc.inferredTypeParameters),AD(qi)&&!$B(n,Ae,wa,Br)){Tn=wa;continue}}if(FM(n,Ae,wa,Cn,tt,!1,void 0)){(It||(It=[])).push(wa);continue}}return Jt[Hr]=wa,wa}}}function AQe(n,a,c,u,p){return L.assert(a.length>0),zC(n),u||a.length===1||a.some(h=>!!h.typeParameters)?LQe(n,a,c,p):CQe(a)}function CQe(n){let a=Zi(n,O=>O.thisParameter),c;a.length&&(c=nIe(a,a.map(UM)));let{min:u,max:p}=Nle(n,IQe),h=[];for(let O=0;O<p;O++){let H=Zi(n,J=>Xl(J)?O<J.parameters.length-1?J.parameters[O]:To(J.parameters):O<J.parameters.length?J.parameters[O]:void 0);L.assert(H.length!==0),h.push(nIe(H,Zi(n,J=>tT(J,O))))}let T=Zi(n,O=>Xl(O)?To(O.parameters):void 0),k=0;if(T.length!==0){let O=nu(Gr(Zi(n,Bxe),2));h.push(rIe(T,O)),k|=1}return n.some(_K)&&(k|=2),Am(n[0].declaration,void 0,c,h,so(n.map(qo)),void 0,u,k)}function IQe(n){let a=n.parameters.length;return Xl(n)?a-1:a}function nIe(n,a){return rIe(n,Gr(a,2))}function rIe(n,a){return qE(Vo(n),a)}function LQe(n,a,c,u){let p=wQe(a,We===void 0?c.length:We),h=a[p],{typeParameters:T}=h;if(!T)return h;let k=zCe(n)?n.typeArguments:void 0,O=k?JG(h,kQe(k,T,Yn(n))):DQe(n,T,h,c,u);return a[p]=O,O}function kQe(n,a,c){let u=n.map(G1);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(jE(a[u.length])||eu(a[u.length])||hre(c));return u}function DQe(n,a,c,u,p){let h=_D(a,c,Yn(n)?2:0),T=eie(n,c,u,p|4|8,h);return JG(c,T)}function wQe(n,a){let c=-1,u=-1;for(let p=0;p<n.length;p++){let h=n[p],T=xd(h);if(jp(h)||T>=a)return p;T>u&&(u=T,c=p)}return c}function RQe(n,a,c){if(n.expression.kind===106){let O=Ire(n.expression);if(Zo(O)){for(let H of n.arguments)Yi(H);return As}if(!Ro(O)){let H=hp(Zc(n));if(H){let J=xr(O,H.typeArguments,H);return PC(n,J,a,c,0)}}return nA(n)}let u,p=Yi(n.expression);if(dT(n)){let O=dD(p,n.expression);u=O===p?0:mI(n)?16:8,p=O}else u=0;if(p=DCe(p,n.expression,Y$e),p===Qe)return Ql;let h=Eu(p);if(Ro(h))return Up(n);let T=xa(h,0),k=xa(h,1).length;if(QB(p,h,T.length,k))return!Ro(p)&&n.typeArguments&&Fe(n,_.Untyped_function_calls_may_not_accept_type_arguments),nA(n);if(!T.length){if(k)Fe(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ee(p));else{let O;if(n.arguments.length===1){let H=Gn(n).text;Wl(H.charCodeAt(xo(H,n.expression.end,!0)-1))&&(O=hr(n.expression,_.Are_you_missing_a_semicolon))}aie(n.expression,h,0,O)}return Up(n)}return c&8&&!n.typeArguments&&T.some(OQe)?(FIe(n,c),yc):T.some(O=>Yn(O.declaration)&&!!Aj(O.declaration))?(Fe(n,_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ee(p)),Up(n)):PC(n,T,a,c,u)}function OQe(n){return!!(n.typeParameters&&Jie(qo(n)))}function QB(n,a,c,u){return Zo(n)||Zo(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(O_(a).flags&131072)&&to(n,Hs)}function NQe(n,a,c){if(n.arguments&&R<1){let T=YB(n.arguments);T>=0&&Fe(n.arguments[T],_.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=NC(n.expression);if(u===Qe)return Ql;if(u=Eu(u),Ro(u))return Up(n);if(Zo(u))return n.typeArguments&&Fe(n,_.Untyped_function_calls_may_not_accept_type_arguments),nA(n);let p=xa(u,1);if(p.length){if(!PQe(n,p[0]))return Up(n);if(iIe(p,k=>!!(k.flags&4)))return Fe(n,_.Cannot_create_an_instance_of_an_abstract_class),Up(n);let T=u.symbol&&Nh(u.symbol);return T&&Mr(T,256)?(Fe(n,_.Cannot_create_an_instance_of_an_abstract_class),Up(n)):PC(n,p,a,c,0)}let h=xa(u,0);if(h.length){let T=PC(n,h,a,c,0);return ge||(T.declaration&&!cp(T.declaration)&&qo(T)!==yt&&Fe(n,_.Only_a_void_function_can_be_called_with_the_new_keyword),Yb(T)===yt&&Fe(n,_.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return aie(n.expression,u,1),Up(n)}function iIe(n,a){return ba(n)?vt(n,c=>iIe(c,a)):n.compositeKind===1048576?vt(n.compositeSignatures,a):a(n)}function iie(n,a){let c=_o(a);if(!Fn(c))return!1;let u=c[0];if(u.flags&2097152){let p=u.types,h=Axe(p),T=0;for(let k of u.types){if(!h[T]&&Ur(k)&3&&(k.symbol===n||iie(n,k)))return!0;T++}return!1}return u.symbol===n?!0:iie(n,u)}function PQe(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=hS(c,24);if(!u||c.kind!==173)return!0;let p=Nh(c.parent.symbol),h=gs(c.parent.symbol);if(!Hie(n,p)){let T=Zc(n);if(T&&u&16){let k=G1(T);if(iie(c.parent.symbol,k))return!0}return u&8&&Fe(n,_.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ee(h)),u&16&&Fe(n,_.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ee(h)),!1}return!0}function aIe(n,a,c){let u,p=c===0,h=rT(a),T=h&&xa(h,c).length>0;if(a.flags&1048576){let O=a.types,H=!1;for(let J of O)if(xa(J,c).length!==0){if(H=!0,u)break}else if(u||(u=da(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,Ee(J)),u=da(u,p?_.Not_all_constituents_of_type_0_are_callable:_.Not_all_constituents_of_type_0_are_constructable,Ee(a))),H)break;H||(u=da(void 0,p?_.No_constituent_of_type_0_is_callable:_.No_constituent_of_type_0_is_constructable,Ee(a))),u||(u=da(u,p?_.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ee(a)))}else u=da(u,p?_.Type_0_has_no_call_signatures:_.Type_0_has_no_construct_signatures,Ee(a));let k=p?_.This_expression_is_not_callable:_.This_expression_is_not_constructable;if(Pa(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:O}=Rr(n);O&&O.flags&32768&&(k=_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:da(u,k),relatedMessage:T?_.Did_you_forget_to_use_await:void 0}}function aie(n,a,c,u){let{messageChain:p,relatedMessage:h}=aIe(n,a,c),T=Lh(Gn(n),n,p);if(h&&Ao(T,hr(n,h)),Pa(n.parent)){let{start:k,length:O}=eIe(n.parent,!0);T.start=k,T.length=O}Lo.add(T),oIe(a,c,u?Ao(T,u):T)}function oIe(n,a,c){if(!n.symbol)return;let u=Ai(n.symbol).originatingImport;if(u&&!Dd(u)){let p=xa(zn(Ai(n.symbol).target),a);if(!p||!p.length)return;Ao(c,hr(u,_.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function MQe(n,a,c){let u=Yi(n.tag),p=Eu(u);if(Ro(p))return Up(n);let h=xa(p,0),T=xa(p,1).length;if(QB(u,p,h.length,T))return nA(n);if(!h.length){if(fu(n.parent)){let k=hr(n.tag,_.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Lo.add(k),Up(n)}return aie(n.tag,p,0),Up(n)}return PC(n,h,a,c,0)}function FQe(n){switch(n.parent.kind){case 260:case 228:return _.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 166:return _.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 169:return _.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 171:case 174:case 175:return _.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return L.fail()}}function GQe(n,a,c){let u=Yi(n.expression),p=Eu(u);if(Ro(p))return Up(n);let h=xa(p,0),T=xa(p,1).length;if(QB(u,p,h.length,T))return nA(n);if(UQe(n,h)&&!ud(n.expression)){let O=Qc(n.expression,!1);return Fe(n,_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,O),Up(n)}let k=FQe(n);if(!h.length){let O=aIe(n.expression,p,0),H=da(O.messageChain,k),J=Lh(Gn(n.expression),n.expression,H);return O.relatedMessage&&Ao(J,hr(n.expression,O.relatedMessage)),Lo.add(J),oIe(p,0,J),Up(n)}return PC(n,h,a,c,0,k)}function ZB(n,a){let c=tA(n),u=c&&Gd(c),p=u&&yd(u,Qd.Element,788968),h=p&&Be.symbolToEntityName(p,788968,n),T=D.createFunctionTypeNode(void 0,[D.createParameterDeclaration(void 0,void 0,"props",void 0,Be.typeToTypeNode(a,n))],h?D.createTypeReferenceNode(h,void 0):D.createKeywordTypeNode(131)),k=wo(1,"props");return k.links.type=a,Am(T,void 0,void 0,[k],p?gs(p):ve,void 0,1,0)}function BQe(n,a,c){if(OC(n.tagName)){let T=ACe(n),k=ZB(n,T);return Ly(rA(n.attributes,VB(k,n),void 0,0),T,n.tagName,n.attributes),Fn(n.typeArguments)&&(mn(n.typeArguments,qa),Lo.add(RA(Gn(n),n.typeArguments,_.Expected_0_type_arguments_but_got_1,0,Fn(n.typeArguments)))),k}let u=Yi(n.tagName),p=Eu(u);if(Ro(p))return Up(n);let h=SCe(u,n);return QB(u,p,h.length,0)?nA(n):h.length===0?(Fe(n.tagName,_.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Qc(n.tagName)),Up(n)):PC(n,h,a,c,0)}function UQe(n,a){return a.length&&Ji(a,c=>c.minArgumentCount===0&&!Xl(c)&&c.parameters.length<ZCe(n,c))}function VQe(n,a,c){switch(n.kind){case 210:return RQe(n,a,c);case 211:return NQe(n,a,c);case 212:return MQe(n,a,c);case 167:return GQe(n,a,c);case 283:case 282:return BQe(n,a,c)}throw L.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function MC(n,a,c){let u=Rr(n),p=u.resolvedSignature;if(p&&p!==yc&&!a)return p;u.resolvedSignature=yc;let h=VQe(n,a,c||0);return h!==yc&&(u.resolvedSignature=sn===Dn?h:p),h}function cp(n){var a;if(!n||!Yn(n))return!1;let c=Jc(n)||ms(n)?n:(wi(n)||yl(n))&&n.initializer&&ms(n.initializer)?n.initializer:void 0;if(c){if(Aj(n))return!0;if(yl(qy(c.parent)))return!1;let u=fr(c);return!!((a=u?.members)!=null&&a.size)}return!1}function oie(n,a){var c,u;if(a){let p=Ai(a);if(!p.inferredClassSymbol||!p.inferredClassSymbol.has($a(n))){let h=Zp(n)?n:Pb(n);return h.exports=h.exports||Ua(),h.members=h.members||Ua(),h.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&ll(h.exports,a.exports),(u=a.members)!=null&&u.size&&ll(h.members,a.members),(p.inferredClassSymbol||(p.inferredClassSymbol=new Map)).set($a(h),h),h}return p.inferredClassSymbol.get($a(n))}}function jQe(n){var a;let c=n&&eU(n,!0),u=(a=c?.exports)==null?void 0:a.get("prototype"),p=u?.valueDeclaration&&HQe(u.valueDeclaration);return p?fr(p):void 0}function eU(n,a){if(!n.parent)return;let c,u;if(wi(n.parent)&&n.parent.initializer===n){if(!Yn(n)&&!(kh(n.parent)&&Ds(n)))return;c=n.parent.name,u=n.parent}else if(ar(n.parent)){let p=n.parent,h=n.parent.operatorToken.kind;if(h===63&&(a||p.right===n))c=p.left,u=c;else if((h===56||h===60)&&(wi(p.parent)&&p.parent.initializer===p?(c=p.parent.name,u=p.parent):ar(p.parent)&&p.parent.operatorToken.kind===63&&(a||p.parent.right===p)&&(c=p.parent.left,u=c),!c||!cS(c)||!BA(c,p.left)))return}else a&&Jc(n)&&(c=n.name,u=n);if(!(!u||!c||!a&&!ob(n,ub(c))))return vd(u)}function HQe(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===208;)a=a.parent;if(a&&ar(a)&&ub(a.left)&&a.operatorToken.kind===63){let c=OH(a);return rs(c)&&c}}function WQe(n,a){var c,u,p;a8(n,n.typeArguments);let h=MC(n,void 0,a);if(h===yc)return Qe;if(tU(h,n),n.expression.kind===106)return yt;if(n.kind===211){let k=h.declaration;if(k&&k.kind!==173&&k.kind!==177&&k.kind!==182&&!(X0(k)&&((u=(c=OI(k))==null?void 0:c.parent)==null?void 0:u.kind)===173)&&!jA(k)&&!cp(k))return ge&&Fe(n,_.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Se}if(Yn(n)&&$s(Y)!==100&&dIe(n))return Fxe(n.arguments[0]);let T=qo(h);if(T.flags&12288&&sIe(n))return wne(qy(n.parent));if(n.kind===210&&!n.questionDotToken&&n.parent.kind===241&&T.flags&16384&&Lf(h)){if(!WI(n.expression))Fe(n.expression,_.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!OB(n)){let k=Fe(n.expression,_.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);CM(n.expression,k)}}if(Yn(n)){let k=eU(n,!1);if((p=k?.exports)!=null&&p.size){let O=ls(k,k.exports,Je,Je,Je);return O.objectFlags|=4096,so([T,O])}}return T}function tU(n,a){if(n.declaration&&n.declaration.flags&268435456){let c=BM(a),u=kR(P6(a));g1(c,n.declaration,u,ne(n))}}function BM(n){switch(n=vs(n),n.kind){case 210:case 167:case 211:return BM(n.expression);case 212:return BM(n.tag);case 283:case 282:return BM(n.tagName);case 209:return n.argumentExpression;case 208:return n.name;case 180:let a=n;return Yu(a.typeName)?a.typeName.right:a;default:return n}}function sIe(n){if(!Pa(n))return!1;let a=n.expression;if(br(a)&&a.name.escapedText==="for"&&(a=a.expression),!Re(a)||a.escapedText!=="Symbol")return!1;let c=rAe(!1);return c?c===zs(a,"Symbol",111551,void 0,void 0,!1):!1}function zQe(n){if(cit(n),n.arguments.length===0)return HM(n,Se);let a=n.arguments[0],c=Ic(a),u=n.arguments.length>1?Ic(n.arguments[1]):void 0;for(let h=2;h<n.arguments.length;++h)Ic(n.arguments[h]);if((c.flags&32768||c.flags&65536||!to(c,ae))&&Fe(a,_.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Ee(c)),u){let h=nAe(!0);h!==Ki&&wu(u,TB(h,32768),n.arguments[1])}let p=Gl(n,a);if(p){let h=Jb(p,a,!0,!1);if(h)return HM(n,lIe(zn(h),h,p,a)||uIe(zn(h),h,p,a))}return HM(n,Se)}function cIe(n,a,c){let u=Ua(),p=wo(2097152,"default");return p.parent=a,p.links.nameType=ff("default"),p.links.aliasTarget=Ac(n),u.set("default",p),ls(c,u,Je,Je,Je)}function lIe(n,a,c,u){if(cs(u)&&n&&!Ro(n)){let h=n;if(!h.defaultOnlyType){let T=cIe(a,c);h.defaultOnlyType=T}return h.defaultOnlyType}}function uIe(n,a,c,u){var p;if(Z&&n&&!Ro(n)){let h=n;if(!h.syntheticType){let T=(p=c.declarations)==null?void 0:p.find(Li);if(ny(T,c,!1,u)){let O=wo(2048,"__type"),H=cIe(a,c,O);O.links.type=H,h.syntheticType=RM(n)?e0(n,H,O,0,!1):H}else h.syntheticType=n}return h.syntheticType}return n}function dIe(n){if(!qu(n,!0))return!1;if(!Re(n.expression))return L.fail();let a=zs(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===ct)return!0;if(a.flags&2097152)return!1;let c=a.flags&16?259:a.flags&3?257:0;if(c!==0){let u=nc(a,c);return!!u&&!!(u.flags&16777216)}return!1}function JQe(n){Ort(n)||a8(n,n.typeArguments),R<2&&Hc(n,262144);let a=MC(n);return tU(a,n),qo(a)}function KQe(n){if(n.kind===213){let a=Gn(n);a&&$c(a.fileName,[".cts",".mts"])&&an(n,_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return fIe(n,n.type,n.expression)}function sie(n){switch(n.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 206:case 207:case 225:return!0;case 214:return sie(n.expression);case 221:let a=n.operator,c=n.operand;return a===40&&(c.kind===8||c.kind===9)||a===39&&c.kind===8;case 208:case 209:let u=vs(n.expression),p=bc(u)?uc(u,111551,!0):void 0;return!!(p&&p.flags&384)}return!1}function fIe(n,a,c,u){let p=Yi(c,u);if(Ch(a))return sie(c)||Fe(c,_.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Hu(p);qa(a),p=EM(ky(p));let h=$r(a);return Ro(h)||i(()=>{let T=Sd(p);_B(h,T)||e2e(p,h,n,_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}),h}function qQe(n){let a=Yi(n.expression),c=dD(a,n.expression);return SB(yg(c),n,c!==a)}function XQe(n){return n.flags&32?qQe(n):yg(Yi(n.expression))}function _Ie(n){ake(n),mn(n.typeArguments,qa);let a=n.kind===230?Yi(n.expression):LT(n.exprName)?kM(n.exprName):Yi(n.exprName);return pIe(a,n)}function pIe(n,a){let c=a.typeArguments;if(n===Qe||Ro(n)||!vt(c))return n;let u=!1,p,h=k(n),T=u?p:n;return T&&Lo.add(RA(Gn(a),c,_.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Ee(T))),h;function k(H){let J=!1,de=!1,Ae=xe(H);return u||(u=de),J&&!de&&(p??(p=H)),Ae;function xe(tt){if(tt.flags&524288){let It=R_(tt),Tn=O(It.callSignatures),un=O(It.constructSignatures);if(J||(J=It.callSignatures.length!==0||It.constructSignatures.length!==0),de||(de=Tn.length!==0||un.length!==0),Tn!==It.callSignatures||un!==It.constructSignatures){let Nn=ls(void 0,It.members,Tn,un,It.indexInfos);return Nn.objectFlags|=8388608,Nn.node=a,Nn}}else if(tt.flags&58982400){let It=bu(tt);if(It){let Tn=xe(It);if(Tn!==It)return Tn}}else{if(tt.flags&1048576)return Ls(tt,k);if(tt.flags&2097152)return so(Tl(tt.types,xe))}return tt}}function O(H){let J=Pr(H,de=>!!de.typeParameters&&Zre(de,c));return Tl(J,de=>{let Ae=nie(de,c,!0);return Ae?eD(de,Ae,Yn(de.declaration)):de})}}function YQe(n){return qa(n.type),cie(n.expression,n.type)}function cie(n,a,c){let u=Yi(n,c),p=$r(a);return Ro(p)?p:(Ly(u,p,a,n,_.Type_0_does_not_satisfy_the_expected_type_1),u)}function $Qe(n){return Xrt(n),n.keywordToken===103?lie(n):n.keywordToken===100?QQe(n):L.assertNever(n.keywordToken)}function mIe(n){switch(n.keywordToken){case 100:return tAe();case 103:let a=lie(n);return Ro(a)?ve:hZe(a);default:L.assertNever(n.keywordToken)}}function lie(n){let a=oce(n);if(a)if(a.kind===173){let c=fr(a.parent);return zn(c)}else{let c=fr(a);return zn(c)}else return Fe(n,_.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ve}function QQe(n){ie===100||ie===199?Gn(n).impliedNodeFormat!==99&&Fe(n,_.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ie<6&&ie!==4&&Fe(n,_.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Gn(n);return L.assert(!!(a.flags&4194304),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?eAe():ve}function UM(n){let a=zn(n);if(U){let c=n.valueDeclaration;if(c&&Jy(c))return gg(a)}return a}function nU(n){return L.assert(Re(n.name)),n.name.escapedText}function FC(n,a,c){let u=n.parameters.length-(Xl(n)?1:0);if(a<u)return n.parameters[a].escapedName;let p=n.parameters[u]||Ht,h=c||zn(p);if(po(h)){let T=h.target.labeledElementDeclarations,k=a-u;return T&&nU(T[k])||p.escapedName+"_"+k}return p.escapedName}function ZQe(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===320)return;let u=n.parameters.length-(Xl(n)?1:0);if(a<u){let T=n.parameters[a];return hIe(T)?[T.escapedName,!1]:void 0}let p=n.parameters[u]||Ht;if(!hIe(p))return;let h=zn(p);if(po(h)){let T=h.target.labeledElementDeclarations,k=a-u,O=T?.[k],H=!!O?.dotDotDotToken;return O?[nU(O),H]:void 0}if(a===u)return[p.escapedName,!0]}function hIe(n){return n.valueDeclaration&&ha(n.valueDeclaration)&&Re(n.valueDeclaration.name)}function gIe(n){return n.kind===199||ha(n)&&n.name&&Re(n.name)}function eZe(n,a){let c=n.parameters.length-(Xl(n)?1:0);if(a<c){let h=n.parameters[a].valueDeclaration;return h&&gIe(h)?h:void 0}let u=n.parameters[c]||Ht,p=zn(u);if(po(p)){let h=p.target.labeledElementDeclarations,T=a-c;return h&&h[T]}return u.valueDeclaration&&gIe(u.valueDeclaration)?u.valueDeclaration:void 0}function P_(n,a){return tT(n,a)||Se}function tT(n,a){let c=n.parameters.length-(Xl(n)?1:0);if(a<c)return UM(n.parameters[a]);if(Xl(n)){let u=zn(n.parameters[c]),p=a-c;if(!po(u)||u.target.hasRestElement||p<u.target.fixedLength)return od(u,op(p))}}function SD(n,a){let c=xd(n),u=Vp(n),p=xD(n);if(p&&a>=c-1)return a===c-1?p:nu(od(p,rt));let h=[],T=[],k=[];for(let O=a;O<c;O++){!p||O<c-1?(h.push(P_(n,O)),T.push(O<u?1:2)):(h.push(p),T.push(8));let H=eZe(n,O);H&&k.push(H)}return ap(h,T,!1,Fn(k)===Fn(h)?k:void 0)}function xd(n){let a=n.parameters.length;if(Xl(n)){let c=zn(n.parameters[a-1]);if(po(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function Vp(n,a){let c=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let p;if(Xl(n)){let h=zn(n.parameters[n.parameters.length-1]);if(po(h)){let T=Yc(h.target.elementFlags,O=>!(O&1)),k=T<0?h.target.fixedLength:T;k>0&&(p=n.parameters.length-1+k)}}if(p===void 0){if(!c&&n.flags&32)return 0;p=n.minArgumentCount}if(u)return p;for(let h=p-1;h>=0;h--){let T=P_(n,h);if(jc(T,JCe).flags&131072)break;p=h}n.resolvedMinArgumentCount=p}return n.resolvedMinArgumentCount}function jp(n){if(Xl(n)){let a=zn(n.parameters[n.parameters.length-1]);return!po(a)||a.target.hasRestElement}return!1}function xD(n){if(Xl(n)){let a=zn(n.parameters[n.parameters.length-1]);if(!po(a))return a;if(a.target.hasRestElement)return EC(a,a.target.fixedLength)}}function AD(n){let a=xD(n);return a&&!_f(a)&&!Zo(a)&&!(O_(a).flags&131072)?a:void 0}function uie(n){return die(n,lt)}function die(n,a){return n.parameters.length>0?P_(n,0):a}function tZe(n,a,c){let u=n.parameters.length-(Xl(n)?1:0);for(let p=0;p<u;p++){let h=n.parameters[p].valueDeclaration;if(h.type){let T=Cl(h);T&&gh(c.inferences,$r(T),P_(a,p))}}}function nZe(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){let u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=qE(a.thisParameter,void 0)),VM(n.thisParameter,zn(a.thisParameter)))}let c=n.parameters.length-(Xl(n)?1:0);for(let u=0;u<c;u++){let p=n.parameters[u];if(!Cl(p.valueDeclaration)){let h=tT(a,u);VM(p,h)}}if(Xl(n)){let u=To(n.parameters);if(u.valueDeclaration?!Cl(u.valueDeclaration):ac(u)&65536){let p=SD(a,c);VM(u,p)}}}function rZe(n){n.thisParameter&&VM(n.thisParameter);for(let a of n.parameters)VM(a)}function VM(n,a){let c=Ai(n);if(c.type)a&&L.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{let u=n.valueDeclaration;c.type=a||(u?Zs(u,!0):zn(n)),u&&u.name.kind!==79&&(c.type===ue&&(c.type=oo(u.name)),yIe(u.name,c.type))}}function yIe(n,a){for(let c of n.elements)if(!ol(c)){let u=li(c,a);c.name.kind===79?Ai(fr(c)).type=u:yIe(c.name,u)}}function iZe(n){return zx(IKe(!0),[n])}function aZe(n,a){return zx(LKe(!0),[n,a])}function oZe(n,a){return zx(kKe(!0),[n,a])}function sZe(n,a){return zx(DKe(!0),[n,a])}function cZe(n,a){return zx(wKe(!0),[n,a])}function lZe(n,a){return zx(NKe(!0),[n,a])}function uZe(n,a,c){let u=`${a?"p":"P"}${c?"s":"S"}${n.id}`,p=An.get(u);if(!p){let h=Ua();h.set("name",gE("name",n)),h.set("private",gE("private",a?pe:Ke)),h.set("static",gE("static",c?pe:Ke)),p=ls(void 0,h,Je,Je,Je),An.set(u,p)}return p}function vIe(n,a,c){let u=zc(n),p=pi(n.name),h=p?ff(vr(n.name)):pg(n.name),T=Nc(n)?aZe(a,c):p_(n)?oZe(a,c):Sf(n)?sZe(a,c):Id(n)?cZe(a,c):Na(n)?lZe(a,c):L.failBadSyntaxKind(n),k=uZe(h,p,u);return so([T,k])}function dZe(n,a){return zx(RKe(!0),[n,a])}function fZe(n,a){return zx(OKe(!0),[n,a])}function _Ze(n,a){let c=A_("this",n),u=A_("value",a);return Cie(void 0,c,[u],a,void 0,1)}function fie(n,a,c){let u=A_("target",n),p=A_("context",a),h=Gr([c,yt]);return OD(void 0,void 0,[u,p],h)}function pZe(n){let{parent:a}=n,c=Rr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=As,a.kind){case 260:case 228:{let p=zn(fr(a)),h=iZe(p);c.decoratorSignature=fie(p,h,p);break}case 171:case 174:case 175:{let u=a;if(!Yr(u.parent))break;let p=Nc(u)?HE(ip(u)):G1(u),h=zc(u)?zn(fr(u.parent)):vu(fr(u.parent)),T=p_(u)?$Ie(p):Sf(u)?QIe(p):p,k=vIe(u,h,p),O=p_(u)?$Ie(p):Sf(u)?QIe(p):p;c.decoratorSignature=fie(T,k,O);break}case 169:{let u=a;if(!Yr(u.parent))break;let p=G1(u),h=zc(u)?zn(fr(u.parent)):vu(fr(u.parent)),T=rm(u)?dZe(h,p):Oe,k=vIe(u,h,p),O=rm(u)?fZe(h,p):_Ze(h,p);c.decoratorSignature=fie(T,k,O);break}}return c.decoratorSignature===As?void 0:c.decoratorSignature}function mZe(n){let{parent:a}=n,c=Rr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=As,a.kind){case 260:case 228:{let p=zn(fr(a)),h=A_("target",p);c.decoratorSignature=OD(void 0,void 0,[h],Gr([p,yt]));break}case 166:{let u=a;if(!Ec(u.parent)&&!(Nc(u.parent)||Sf(u.parent)&&Yr(u.parent.parent))||F0(u.parent)===u)break;let p=F0(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);L.assert(p>=0);let h=Ec(u.parent)?zn(fr(u.parent.parent)):qLe(u.parent),T=Ec(u.parent)?Oe:XLe(u.parent),k=op(p),O=A_("target",h),H=A_("propertyKey",T),J=A_("parameterIndex",k);c.decoratorSignature=OD(void 0,void 0,[O,H,J],yt);break}case 171:case 174:case 175:case 169:{let u=a;if(!Yr(u.parent))break;let p=qLe(u),h=A_("target",p),T=XLe(u),k=A_("propertyKey",T),O=Na(u)?yt:sAe(G1(u));if(R!==0&&(!Na(a)||rm(a))){let J=sAe(G1(u)),de=A_("descriptor",J);c.decoratorSignature=OD(void 0,void 0,[h,k,de],Gr([O,yt]))}else c.decoratorSignature=OD(void 0,void 0,[h,k],Gr([O,yt]));break}}return c.decoratorSignature===As?void 0:c.decoratorSignature}function _ie(n){return $?mZe(n):pZe(n)}function jM(n){let a=oM(!0);return a!==ro?(n=bg(UC(n))||ue,_g(a,[n])):ue}function bIe(n){let a=aAe(!0);return a!==ro?(n=bg(UC(n))||ue,_g(a,[n])):ue}function HM(n,a){let c=jM(a);return c===ue?(Fe(n,Dd(n)?_.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ve):(_ne(!0)||Fe(n,Dd(n)?_.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function hZe(n){let a=wo(0,"NewTargetExpression"),c=wo(4,"target",8);c.parent=a,c.links.type=n;let u=Ua([c]);return a.members=u,ls(a,u,Je,Je,Je)}function rU(n,a){if(!n.body)return ve;let c=pl(n),u=(c&2)!==0,p=(c&1)!==0,h,T,k,O=yt;if(n.body.kind!==238)h=Ic(n.body,a&&a&-9),u&&(h=UC(RD(h,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(p){let H=CIe(n,a);H?H.length>0&&(h=Gr(H,2)):O=lt;let{yieldTypes:J,nextTypes:de}=gZe(n,a);T=vt(J)?Gr(J,2):void 0,k=vt(de)?so(de):void 0}else{let H=CIe(n,a);if(!H)return c&2?HM(n,lt):lt;if(H.length===0)return c&2?HM(n,yt):yt;h=Gr(H,2)}if(h||T||k){if(T&&CB(n,T,3),h&&CB(n,h,1),k&&CB(n,k,2),h&&N_(h)||T&&N_(T)||k&&N_(k)){let H=Nre(n),J=H?H===ip(n)?p?void 0:h:BB(qo(H),n,void 0):void 0;p?(T=Zne(T,J,0,u),h=Zne(h,J,1,u),k=Zne(k,J,2,u)):h=CXe(h,J,u)}T&&(T=Sd(T)),h&&(h=Sd(h)),k&&(k=Sd(k))}return p?EIe(T||lt,h||O,k||cCe(2,n)||ue,u):u?jM(h||O):h||O}function EIe(n,a,c,u){let p=u?ft:Yt,h=p.getGlobalGeneratorType(!1);if(n=p.resolveIterationType(n,void 0)||ue,a=p.resolveIterationType(a,void 0)||ue,c=p.resolveIterationType(c,void 0)||ue,h===ro){let T=p.getGlobalIterableIteratorType(!1),k=T!==ro?pLe(T,p):void 0,O=k?k.returnType:Se,H=k?k.nextType:Oe;return to(a,O)&&to(H,c)?T!==ro?rD(T,[n]):(p.getGlobalIterableIteratorType(!0),Ki):(p.getGlobalGeneratorType(!0),Ki)}return rD(h,[n,a,c])}function gZe(n,a){let c=[],u=[],p=(pl(n)&2)!==0;return Yse(n.body,h=>{let T=h.expression?Yi(h.expression,a):je;Of(c,TIe(h,T,Se,p));let k;if(h.asteriskToken){let O=_U(T,p?19:17,h.expression);k=O&&O.nextType}else k=Ru(h,void 0);k&&Of(u,k)}),{yieldTypes:c,nextTypes:u}}function TIe(n,a,c,u){let p=n.expression||n,h=n.asteriskToken?wy(u?19:17,a,c,p):a;return u?rT(h,p,n.asteriskToken?_.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function SIe(n,a,c){let u=0;for(let p=0;p<c.length;p++){let h=p<n||p>=a?c[p]:void 0;u|=h!==void 0?fF.get(h)||32768:0}return u}function xIe(n){let a=Rr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=yZe(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function yZe(n){if(n.expression.kind===218){let u=W2e(n);if(!u)return!1;let p=Ty(Ic(n.expression.expression)),h=SIe(0,0,u);return p.flags&3?(556800&h)===556800:!yh(p,T=>(iu(T)&h)===h)}let a=Ic(n.expression);if(!uD(a))return!1;let c=DB(n);return!c.length||vt(c,SXe)?!1:bYe(Ls(a,Hu),c)}function AIe(n){return n.endFlowNode&&IM(n.endFlowNode)}function CIe(n,a){let c=pl(n),u=[],p=AIe(n),h=!1;if(vT(n.body,T=>{let k=T.expression;if(k){let O=Ic(k,a&&a&-9);c&2&&(O=UC(RD(O,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),O.flags&131072&&(h=!0),Of(u,O)}else p=!0}),!(u.length===0&&!p&&(h||vZe(n))))return U&&u.length&&p&&!(cp(n)&&u.some(T=>T.symbol===n.symbol))&&Of(u,Oe),u}function vZe(n){switch(n.kind){case 215:case 216:return!0;case 171:return n.parent.kind===207;default:return!1}}function pie(n,a){i(c);return;function c(){let u=pl(n),p=a&&pU(a,u);if(p&&Js(p,16385)||n.kind===170||rc(n.body)||n.body.kind!==238||!AIe(n))return;let h=n.flags&512,T=U_(n)||n;if(p&&p.flags&131072)Fe(T,_.A_function_returning_never_cannot_have_a_reachable_end_point);else if(p&&!h)Fe(T,_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(p&&U&&!to(Oe,p))Fe(T,_.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(Y.noImplicitReturns){if(!p){if(!h)return;let k=qo(ip(n));if(ELe(n,k))return}Fe(T,_.Not_all_code_paths_return_a_value)}}}function IIe(n,a){if(L.assert(n.kind!==171||s_(n)),zC(n),ms(n)&&jC(n,n.name),a&&a&4&&$f(n)){if(!U_(n)&&!b4(n)){let u=bD(n);if(u&&XE(qo(u))){let p=Rr(n);if(p.contextFreeType)return p.contextFreeType;let h=rU(n,a),T=Am(void 0,void 0,void 0,Je,h,void 0,0,0),k=ls(n.symbol,q,[T],Je,Je);return k.objectFlags|=262144,p.contextFreeType=k}}return aa}return!AU(n)&&n.kind===215&&Yie(n),bZe(n,a),zn(fr(n))}function bZe(n,a){let c=Rr(n);if(!(c.flags&64)){let u=bD(n);if(!(c.flags&64)){c.flags|=64;let p=Sl(xa(zn(fr(n)),0));if(!p)return;if($f(n))if(u){let h=M1(n),T;if(a&&a&2){tZe(p,u,h);let k=xD(u);k&&k.flags&262144&&(T=$x(u,h.nonFixingMapper))}T||(T=h?$x(u,h.mapper):u),nZe(p,T)}else rZe(p);if(u&&!Hx(n)&&!p.resolvedReturnType){let h=rU(n,a);p.resolvedReturnType||(p.resolvedReturnType=h)}LD(n)}}}function EZe(n){L.assert(n.kind!==171||s_(n));let a=pl(n),c=Hx(n);if(pie(n,c),n.body)if(U_(n)||qo(ip(n)),n.body.kind===238)qa(n.body);else{let u=Yi(n.body),p=c&&pU(c,a);if(p)if((a&3)===2){let h=RD(u,!1,n.body,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Ly(h,p,n.body,n.body)}else Ly(u,p,n.body,n.body)}}function iU(n,a,c,u=!1){if(!to(a,Ja)){let p=u&&DD(a);return Tv(n,!!p&&to(p,Ja),c),!1}return!0}function TZe(n){if(!Pa(n)||!sS(n))return!1;let a=Ic(n.arguments[2]);if(Vc(a,"value")){let p=ja(a,"writable"),h=p&&zn(p);if(!h||h===Ke||h===oe)return!0;if(p&&p.valueDeclaration&&yl(p.valueDeclaration)){let T=p.valueDeclaration.initializer,k=Yi(T);if(k===Ke||k===oe)return!0}return!1}return!ja(a,"set")}function M_(n){return!!(ac(n)&8||n.flags&4&&Ef(n)&64||n.flags&3&&WB(n)&2||n.flags&98304&&!(n.flags&65536)||n.flags&8||vt(n.declarations,TZe))}function LIe(n,a,c){var u,p;if(c===0)return!1;if(M_(a)){if(a.flags&4&&Us(n)&&n.expression.kind===108){let h=Xd(n);if(!(h&&(h.kind===173||cp(h))))return!0;if(a.valueDeclaration){let T=ar(a.valueDeclaration),k=h.parent===a.valueDeclaration.parent,O=h===a.valueDeclaration.parent,H=T&&((u=a.parent)==null?void 0:u.valueDeclaration)===h.parent,J=T&&((p=a.parent)==null?void 0:p.valueDeclaration)===h;return!(k||O||H||J)}}return!0}if(Us(n)){let h=vs(n.expression);if(h.kind===79){let T=Rr(h).resolvedSymbol;if(T.flags&2097152){let k=Uu(T);return!!k&&k.kind===271}}}return!1}function CD(n,a,c){let u=ql(n,7);return u.kind!==79&&!Us(u)?(Fe(n,a),!1):u.flags&32?(Fe(n,c),!1):!0}function SZe(n){Yi(n.expression);let a=vs(n.expression);if(!Us(a))return Fe(a,_.The_operand_of_a_delete_operator_must_be_a_property_reference),Te;br(a)&&pi(a.name)&&Fe(a,_.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Rr(a),u=tp(c.resolvedSymbol);return u&&(M_(u)&&Fe(a,_.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),xZe(a,u)),Te}function xZe(n,a){let c=zn(a);U&&!(c.flags&131075)&&!(Pe?a.flags&16777216:iu(c)&16777216)&&Fe(n,_.The_operand_of_a_delete_operator_must_be_optional)}function AZe(n){return Yi(n.expression),sC}function CZe(n){return Yi(n.expression),je}function IZe(n){let a=R6(n);if(a&&oc(a))Fe(n,_.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(n.flags&32768))if(O6(n)){let c=Gn(n);if(!l0(c)){let u;if(!aS(c,Y)){u??(u=Pg(c,n.pos));let p=al(c,u.start,u.length,_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Lo.add(p)}switch(ie){case 100:case 199:if(c.impliedNodeFormat===1){u??(u=Pg(c,n.pos)),Lo.add(al(c,u.start,u.length,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(R>=4)break;default:u??(u=Pg(c,n.pos)),Lo.add(al(c,u.start,u.length,_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}}else{let c=Gn(n);if(!l0(c)){let u=Pg(c,n.pos),p=al(c,u.start,u.length,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(a&&a.kind!==173&&!(pl(a)&2)){let h=hr(a,_.Did_you_mean_to_mark_this_function_as_async);Ao(p,h)}Lo.add(p)}}kre(n)&&Fe(n,_.await_expressions_cannot_be_used_in_a_parameter_initializer)}function LZe(n){i(()=>IZe(n));let a=Yi(n.expression),c=RD(a,!0,n,_.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Ro(c)&&!(a.flags&3)&&ey(!1,hr(n,_.await_has_no_effect_on_the_type_of_this_expression)),c}function kZe(n){let a=Yi(n.operand);if(a===Qe)return Qe;switch(n.operand.kind){case 8:switch(n.operator){case 40:return Yx(op(-n.operand.text));case 39:return Yx(op(+n.operand.text))}break;case 9:if(n.operator===40)return Yx(aB({negative:!0,base10Value:iL(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return sp(a,n.operand),WM(a,12288)&&Fe(n.operand,_.The_0_operator_cannot_be_applied_to_type_symbol,Xa(n.operator)),n.operator===39?(WM(a,2112)&&Fe(n.operand,_.Operator_0_cannot_be_applied_to_type_1,Xa(n.operator),Ee(ky(a))),rt):mie(a);case 53:aA(n.operand);let c=iu(a)&12582912;return c===4194304?Ke:c===8388608?pe:Te;case 45:case 46:return iU(n.operand,sp(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&CD(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mie(a)}return ve}function DZe(n){let a=Yi(n.operand);return a===Qe?Qe:(iU(n.operand,sp(a,n.operand),_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&CD(n.operand,_.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mie(a))}function mie(n){return Js(n,2112)?ul(n,3)||Js(n,296)?Ja:Ot:rt}function WM(n,a){if(Js(n,a))return!0;let c=Ty(n);return!!c&&Js(c,a)}function Js(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(Js(u,a))return!0}return!1}function ul(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&to(n,rt)||!!(a&2112)&&to(n,Ot)||!!(a&402653316)&&to(n,ae)||!!(a&528)&&to(n,Te)||!!(a&16384)&&to(n,yt)||!!(a&131072)&&to(n,lt)||!!(a&65536)&&to(n,ln)||!!(a&32768)&&to(n,Oe)||!!(a&4096)&&to(n,j)||!!(a&67108864)&&to(n,jr)}function zM(n,a,c){return n.flags&1048576?Ji(n.types,u=>zM(u,a,c)):ul(n,a,c)}function hie(n){return!!(Ur(n)&16)&&!!n.symbol&&gie(n.symbol)}function gie(n){return(n.flags&128)!==0}function wZe(n,a,c,u){return c===Qe||u===Qe?Qe:(!Zo(c)&&zM(c,134348796)&&Fe(n,_.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Zo(u)||EU(u)||Iy(u,Hs)||Fe(a,_.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Te)}function RZe(n){return yh(n,a=>a===xc||!!(a.flags&2097152)&&hh(Ty(a)))}function OZe(n,a,c,u){if(c===Qe||u===Qe)return Qe;if(pi(n)){if(R<99&&Hc(n,2097152),!Rr(n).resolvedSymbol&&Zc(n)){let p=Kre(n,u.symbol,!0);GCe(n,u,p)}}else wu(sp(c,n),Kr,n);return wu(sp(u,a),jr,a)&&RZe(u)&&Fe(a,_.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Ee(u)),Te}function NZe(n,a,c){let u=n.properties;if(U&&u.length===0)return sp(a,n);for(let p=0;p<u.length;p++)kIe(n,a,p,u,c);return a}function kIe(n,a,c,u,p=!1){let h=n.properties,T=h[c];if(T.kind===299||T.kind===300){let k=T.name,O=pg(k);if(fh(O)){let de=Np(O),Ae=ja(a,de);Ae&&(MM(Ae,T,p),Hre(T,!1,!0,a,Ae))}let H=od(a,O,32,k),J=Ue(T,H);return nT(T.kind===300?T:T.initializer,J)}else if(T.kind===301)if(c<h.length-1)Fe(T,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{R<99&&Hc(T,4);let k=[];if(u)for(let H of u)VS(H)||k.push(H.name);let O=Mx(a,k,a.symbol);return B1(u,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),nT(T.expression,O)}else Fe(T,_.Property_assignment_expected)}function PZe(n,a,c){let u=n.elements;R<2&&Y.downlevelIteration&&Hc(n,512);let p=wy(193,a,Oe,n)||ve,h=Y.noUncheckedIndexedAccess?void 0:p;for(let T=0;T<u.length;T++){let k=p;n.elements[T].kind===227&&(k=h=h??(wy(65,a,Oe,n)||ve)),DIe(n,a,T,k,c)}return a}function DIe(n,a,c,u,p){let h=n.elements,T=h[c];if(T.kind!==229){if(T.kind!==227){let k=op(c);if(Kv(a)){let O=32|(RC(T)?16:0),H=Ay(a,k,O,GM(T,k))||ve,J=RC(T)?wf(H,524288):H,de=Ue(T,J);return nT(T,de,p)}return nT(T,u,p)}if(c<h.length-1)Fe(T,_.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let k=T.expression;if(k.kind===223&&k.operatorToken.kind===63)Fe(k.operatorToken,_.A_rest_element_cannot_have_an_initializer);else{B1(n.elements,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let O=Im(a,po)?Ls(a,H=>EC(H,c)):nu(u);return nT(k,O,p)}}}}function nT(n,a,c,u){let p;if(n.kind===300){let h=n;h.objectAssignmentInitializer&&(U&&!(iu(Yi(h.objectAssignmentInitializer))&16777216)&&(a=wf(a,524288)),BZe(h.name,h.equalsToken,h.objectAssignmentInitializer,c)),p=n.name}else p=n;return p.kind===223&&p.operatorToken.kind===63&&(Ce(p,c),p=p.left,U&&(a=wf(a,524288))),p.kind===207?NZe(p,a,u):p.kind===206?PZe(p,a,c):MZe(p,a,c)}function MZe(n,a,c){let u=Yi(n,c),p=n.parent.kind===301?_.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=n.parent.kind===301?_.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return CD(n,p,h)&&Ly(a,u,n,n),TA(n)&&Hc(n.parent,1048576),a}function JM(n){switch(n=vs(n),n.kind){case 79:case 10:case 13:case 212:case 225:case 14:case 8:case 9:case 110:case 95:case 104:case 155:case 215:case 228:case 216:case 206:case 207:case 218:case 232:case 282:case 281:return!0;case 224:return JM(n.whenTrue)&&JM(n.whenFalse);case 223:return Mg(n.operatorToken.kind)?!1:JM(n.left)&&JM(n.right);case 221:case 222:switch(n.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 219:case 213:case 231:default:return!1}}function yie(n,a){return(a.flags&98304)!==0||_B(n,a)}function FZe(){let n=C3(a,c,u,p,h,T);return(Ae,xe)=>{let tt=n(Ae,xe);return L.assertIsDefined(tt),tt};function a(Ae,xe,tt){return xe?(xe.stackIndex++,xe.skip=!1,H(xe,void 0),de(xe,void 0)):xe={checkMode:tt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Yn(Ae)&&oS(Ae)?(xe.skip=!0,de(xe,Yi(Ae.right,tt)),xe):(GZe(Ae),Ae.operatorToken.kind===63&&(Ae.left.kind===207||Ae.left.kind===206)&&(xe.skip=!0,de(xe,nT(Ae.left,Yi(Ae.right,tt),tt,Ae.right.kind===108))),xe)}function c(Ae,xe,tt){if(!xe.skip)return k(xe,Ae)}function u(Ae,xe,tt){if(!xe.skip){let It=J(xe);L.assertIsDefined(It),H(xe,It),de(xe,void 0);let Tn=Ae.kind;if(AR(Tn)){let un=tt.parent;for(;un.kind===214||CR(un);)un=un.parent;(Tn===55||MT(un))&&wie(tt.left,It,MT(un)?un.thenStatement:void 0),uLe(It,tt.left)}}}function p(Ae,xe,tt){if(!xe.skip)return k(xe,Ae)}function h(Ae,xe){let tt;if(xe.skip)tt=J(xe);else{let It=O(xe);L.assertIsDefined(It);let Tn=J(xe);L.assertIsDefined(Tn),tt=wIe(Ae.left,Ae.operatorToken,Ae.right,It,Tn,Ae)}return xe.skip=!1,H(xe,void 0),de(xe,void 0),xe.stackIndex--,tt}function T(Ae,xe,tt){return de(Ae,xe),Ae}function k(Ae,xe){if(ar(xe))return xe;de(Ae,Yi(xe,Ae.checkMode))}function O(Ae){return Ae.typeStack[Ae.stackIndex]}function H(Ae,xe){Ae.typeStack[Ae.stackIndex]=xe}function J(Ae){return Ae.typeStack[Ae.stackIndex+1]}function de(Ae,xe){Ae.typeStack[Ae.stackIndex+1]=xe}}function GZe(n){let{left:a,operatorToken:c,right:u}=n;c.kind===60&&(ar(a)&&(a.operatorToken.kind===56||a.operatorToken.kind===55)&&an(a,_._0_and_1_operations_cannot_be_mixed_without_parentheses,Xa(a.operatorToken.kind),Xa(c.kind)),ar(u)&&(u.operatorToken.kind===56||u.operatorToken.kind===55)&&an(u,_._0_and_1_operations_cannot_be_mixed_without_parentheses,Xa(u.operatorToken.kind),Xa(c.kind)))}function BZe(n,a,c,u,p){let h=a.kind;if(h===63&&(n.kind===207||n.kind===206))return nT(n,Yi(c,u),u,c.kind===108);let T;AR(h)?T=aA(n,u):T=Yi(n,u);let k=Yi(c,u);return wIe(n,a,c,T,k,p)}function wIe(n,a,c,u,p,h){let T=a.kind;switch(T){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(u===Qe||p===Qe)return Qe;u=sp(u,n),p=sp(p,c);let en;if(u.flags&528&&p.flags&528&&(en=de(a.kind))!==void 0)return Fe(h||a,_.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Xa(a.kind),Xa(en)),rt;{let Jt=iU(n,u,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Cn=iU(c,p,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Rn;if(ul(u,3)&&ul(p,3)||!(Js(u,2112)||Js(p,2112)))Rn=rt;else if(k(u,p)){switch(T){case 49:case 72:It();break;case 42:case 67:R<3&&Fe(h,_.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Rn=Ot}else It(k),Rn=ve;return Jt&&Cn&&Ae(Rn),Rn}case 39:case 64:if(u===Qe||p===Qe)return Qe;!ul(u,402653316)&&!ul(p,402653316)&&(u=sp(u,n),p=sp(p,c));let cn;return ul(u,296,!0)&&ul(p,296,!0)?cn=rt:ul(u,2112,!0)&&ul(p,2112,!0)?cn=Ot:ul(u,402653316,!0)||ul(p,402653316,!0)?cn=ae:(Zo(u)||Zo(p))&&(cn=Ro(u)||Ro(p)?ve:Se),cn&&!J(T)?cn:cn?(T===64&&Ae(cn),cn):(It((Cn,Rn)=>ul(Cn,402655727)&&ul(Rn,402655727)),Se);case 29:case 31:case 32:case 33:return J(T)&&(u=$ne(sp(u,n)),p=$ne(sp(p,c)),tt((Jt,Cn)=>{if(Zo(Jt)||Zo(Cn))return!0;let Rn=to(Jt,Ja),Br=to(Cn,Ja);return Rn&&Br||!Rn&&!Br&&_M(Jt,Cn)})),Te;case 34:case 35:case 36:case 37:if(Pj(n)||Pj(c)){let Jt=T===34||T===36;Fe(h,_.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Jt?"false":"true")}return un(h,T,n,c),tt((Jt,Cn)=>yie(Jt,Cn)||yie(Cn,Jt)),Te;case 102:return wZe(n,c,u,p);case 101:return OZe(n,c,u,p);case 55:case 76:{let Jt=iu(u)&4194304?Gr([kXe(U?u:ky(p)),p]):u;return T===76&&Ae(p),Jt}case 56:case 75:{let Jt=iu(u)&8388608?Gr([yg(m2e(u)),p],2):u;return T===75&&Ae(p),Jt}case 60:case 77:{let Jt=iu(u)&262144?Gr([yg(u),p],2):u;return T===77&&Ae(p),Jt}case 63:let rr=ar(n.parent)?ic(n.parent):0;return O(rr,p),xe(rr)?((!(p.flags&524288)||rr!==2&&rr!==6&&!mh(p)&&!vre(p)&&!(Ur(p)&1))&&Ae(p),u):(Ae(p),p);case 27:if(!Y.allowUnreachableCode&&JM(n)&&!H(n.parent)){let Jt=Gn(n),Cn=Jt.text,Rn=xo(Cn,n.pos);Jt.parseDiagnostics.some(Hr=>Hr.code!==_.JSX_expressions_must_have_one_parent_element.code?!1:bj(Hr,Rn))||Fe(n,_.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return p;default:return L.fail()}function k(en,cn){return ul(en,2112)&&ul(cn,2112)}function O(en,cn){if(en===2)for(let rr of Ey(cn)){let Jt=zn(rr);if(Jt.symbol&&Jt.symbol.flags&32){let Cn=rr.escapedName,Rn=zs(rr.valueDeclaration,Cn,788968,void 0,Cn,!1);Rn?.declarations&&Rn.declarations.some(Kz)&&(Mb(Rn,_.Duplicate_identifier_0,Gi(Cn),rr),Mb(rr,_.Duplicate_identifier_0,Gi(Cn),Rn))}}}function H(en){return en.parent.kind===214&&Vf(en.left)&&en.left.text==="0"&&(Pa(en.parent.parent)&&en.parent.parent.expression===en.parent||en.parent.parent.kind===212)&&(Us(en.right)||Re(en.right)&&en.right.escapedText==="eval")}function J(en){let cn=WM(u,12288)?n:WM(p,12288)?c:void 0;return cn?(Fe(cn,_.The_0_operator_cannot_be_applied_to_type_symbol,Xa(en)),!1):!0}function de(en){switch(en){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function Ae(en){Mg(T)&&i(cn);function cn(){if(CD(n,_.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let rr;if(Pe&&br(n)&&Js(en,32768)){let Jt=Vc(au(n.expression),n.name.escapedText);mB(en,Jt)&&(rr=_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Ly(en,u,n,c,rr)}}}function xe(en){var cn;switch(en){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let rr=vd(n),Jt=oS(c);return!!Jt&&rs(Jt)&&!!((cn=rr?.exports)!=null&&cn.size);default:return!1}}function tt(en){return en(u,p)?!1:(It(en),!0)}function It(en){let cn=!1,rr=h||a;if(en){let Hr=bg(u),qi=bg(p);cn=!(Hr===u&&qi===p)&&!!(Hr&&qi)&&en(Hr,qi)}let Jt=u,Cn=p;!cn&&en&&([Jt,Cn]=UZe(u,p,en));let[Rn,Br]=Wt(Jt,Cn);Tn(rr,cn,Rn,Br)||Tv(rr,cn,_.Operator_0_cannot_be_applied_to_types_1_and_2,Xa(a.kind),Rn,Br)}function Tn(en,cn,rr,Jt){switch(a.kind){case 36:case 34:case 37:case 35:return Tv(en,cn,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,rr,Jt);default:return}}function un(en,cn,rr,Jt){let Cn=Nn(vs(rr)),Rn=Nn(vs(Jt));if(Cn||Rn){let Br=Fe(en,_.This_condition_will_always_return_0,Xa(cn===36||cn===34?95:110));if(Cn&&Rn)return;let Hr=cn===37||cn===35?Xa(53):"",qi=Cn?Jt:rr,wa=vs(qi);Ao(Br,hr(qi,_.Did_you_mean_0,`${Hr}Number.isNaN(${bc(wa)?qd(wa):"..."})`))}}function Nn(en){if(Re(en)&&en.escapedText==="NaN"){let cn=PKe();return!!cn&&cn===Qf(en)}return!1}}function UZe(n,a,c){let u=n,p=a,h=ky(n),T=ky(a);return c(h,T)||(u=h,p=T),[u,p]}function VZe(n){i(Ae);let a=Xd(n);if(!a)return Se;let c=pl(a);if(!(c&1))return Se;let u=(c&2)!==0;n.asteriskToken&&(u&&R<99&&Hc(n,26624),!u&&R<2&&Y.downlevelIteration&&Hc(n,256));let p=Hx(a),h=p&&bLe(p,u),T=h&&h.yieldType||Se,k=h&&h.nextType||Se,O=u?rT(k)||Se:k,H=n.expression?Yi(n.expression):je,J=TIe(n,H,O,u);if(p&&J&&Ly(J,T,n.expression||n,n.expression),n.asteriskToken)return Oie(u?19:17,1,H,n.expression)||Se;if(p)return c0(2,p,u)||Se;let de=cCe(2,a);return de||(de=Se,i(()=>{if(ge&&!Ble(n)){let xe=Ru(n,void 0);(!xe||Zo(xe))&&Fe(n,_.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),de;function Ae(){n.flags&8192||dl(n,_.A_yield_expression_is_only_allowed_in_a_generator_body),kre(n)&&Fe(n,_.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function jZe(n,a){let c=aA(n.condition);wie(n.condition,c,n.whenTrue);let u=Yi(n.whenTrue,a),p=Yi(n.whenFalse,a);return Gr([u,p],2)}function RIe(n){let a=n.parent;return ud(a)&&RIe(a)||Vs(a)&&a.argumentExpression===n}function HZe(n){let a=[n.head.text],c=[];for(let u of n.templateSpans){let p=Yi(u.expression);WM(p,12288)&&Fe(u.expression,_.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(u.literal.text),c.push(to(p,Za)?p:ae)}return GC(n)||RIe(n)||yh(Ru(n,void 0)||ue,WZe)?WE(a,c):ae}function WZe(n){return!!(n.flags&134217856||n.flags&58982400&&Js(bu(n)||ue,402653316))}function zZe(n){return K0(n)&&!FS(n.parent)?n.parent.parent:n}function rA(n,a,c,u){let p=zZe(n);wM(p,a,!1),h$e(p,c);let h=Yi(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=Js(h,2944)&&aU(h,BB(a,n,void 0))?Hu(h):h;return g$e(),vD(),T}function Ic(n,a){if(a)return Yi(n,a);let c=Rr(n);if(!c.resolvedType){let u=sn,p=ra;sn=Dn,ra=void 0,c.resolvedType=Yi(n,a),ra=p,sn=u}return c.resolvedType}function OIe(n){return n=vs(n,!0),n.kind===213||n.kind===231||RL(n)}function ID(n,a,c){let u=Yw(n);if(Yn(n)){let h=T4(n);if(h)return cie(u,h,a)}let p=Eie(u)||(c?rA(u,c,void 0,a||0):Ic(u,a));return ha(n)&&n.name.kind===204&&po(p)&&!p.target.hasRestElement&&Vv(p)<n.name.elements.length?JZe(p,n.name):p}function JZe(n,a){let c=a.elements,u=Ko(n).slice(),p=n.target.elementFlags.slice();for(let h=Vv(n);h<c.length;h++){let T=c[h];(h<c.length-1||!(T.kind===205&&T.dotDotDotToken))&&(u.push(!ol(T)&&RC(T)?hy(T,!1,!1):Se),p.push(2),!ol(T)&&!RC(T)&&qv(T,Se))}return ap(u,p,n.target.readonly)}function vie(n,a){let c=G_(n)&2||x6(n)?a:i0(a);if(Yn(n)){if(u2e(c))return qv(n,Se),Se;if(bB(c))return qv(n,Et),Et}return c}function aU(n,a){if(a){if(a.flags&3145728){let c=a.types;return vt(c,u=>aU(n,u))}if(a.flags&58982400){let c=bu(a)||ue;return Js(c,4)&&Js(n,128)||Js(c,8)&&Js(n,256)||Js(c,64)&&Js(n,2048)||Js(c,4096)&&Js(n,8192)||aU(n,c)}return!!(a.flags&406847616&&Js(n,128)||a.flags&256&&Js(n,256)||a.flags&2048&&Js(n,2048)||a.flags&512&&Js(n,512)||a.flags&8192&&Js(n,8192))}return!1}function GC(n){let a=n.parent;return pT(a)&&Ch(a.type)||RL(a)&&Ch(T3(a))||sie(n)&&KZe(n)||(ud(a)||fu(a)||Km(a))&&GC(a)||(yl(a)||xf(a)||xL(a))&&GC(a.parent)}function KZe(n){let a=Ru(n,0);return!!a&&yh(a,tM)}function BC(n,a,c){let u=Yi(n,a,c);return GC(n)||Zse(n)?Hu(u):OIe(n)?u:Qne(u,BB(Ru(n,void 0),n,void 0))}function NIe(n,a){return n.name.kind===164&&vg(n.name),BC(n.initializer,a)}function PIe(n,a){cke(n),n.name.kind===164&&vg(n.name);let c=IIe(n,a);return MIe(n,c,a)}function MIe(n,a,c){if(c&&c&10){let u=ED(a,0,!0),p=ED(a,1,!0),h=u||p;if(h&&h.typeParameters){let T=o0(n,2);if(T){let k=ED(yg(T),u?0:1,!1);if(k&&!k.typeParameters){if(c&8)return FIe(n,c),aa;let O=M1(n),H=O.signature&&qo(O.signature),J=H&&KCe(H);if(J&&!J.typeParameters&&!Ji(O.inferences,iA)){let de=$Ze(O,h.typeParameters),Ae=ine(h,de),xe=on(O.inferences,tt=>ore(tt.typeParameter));if(rre(Ae,k,(tt,It)=>{gh(xe,tt,It,0,!0)}),vt(xe,iA)&&(ire(Ae,k,(tt,It)=>{gh(xe,tt,It)}),!XZe(O.inferences,xe)))return YZe(O.inferences,xe),O.inferredTypeParameters=Qi(O.inferredTypeParameters,de),HE(Ae)}return HE(qCe(h,k,O))}}}}return a}function FIe(n,a){if(a&2){let c=M1(n);c.flags|=4}}function iA(n){return!!(n.candidates||n.contraCandidates)}function qZe(n){return!!(n.candidates||n.contraCandidates||Rxe(n.typeParameter))}function XZe(n,a){for(let c=0;c<n.length;c++)if(iA(n[c])&&iA(a[c]))return!0;return!1}function YZe(n,a){for(let c=0;c<n.length;c++)!iA(n[c])&&iA(a[c])&&(n[c]=a[c])}function $Ze(n,a){let c=[],u,p;for(let h of a){let T=h.symbol.escapedName;if(bie(n.inferredTypeParameters,T)||bie(c,T)){let k=QZe(Qi(n.inferredTypeParameters,c),T),O=wo(262144,k),H=rd(O);H.target=h,u=Sn(u,h),p=Sn(p,H),c.push(H)}else c.push(h)}if(p){let h=Wu(u,p);for(let T of p)T.mapper=h}return c}function bie(n,a){return vt(n,c=>c.symbol.escapedName===a)}function QZe(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let u=a.slice(0,c);for(let p=1;;p++){let h=u+p;if(!bie(n,h))return h}}function GIe(n){let a=F1(n);if(a&&!a.typeParameters)return qo(a)}function ZZe(n){let a=Yi(n.expression),c=dD(a,n.expression),u=GIe(a);return u&&SB(u,n,c!==a)}function au(n){let a=Eie(n);if(a)return a;if(n.flags&134217728&&ra){let p=ra[zo(n)];if(p)return p}let c=Vn,u=Yi(n);if(Vn!==c){let p=ra||(ra=[]);p[zo(n)]=u,Gle(n,n.flags|134217728)}return u}function Eie(n){let a=vs(n,!0);if(RL(a)){let c=T3(a);if(!Ch(c))return $r(c)}if(a=vs(n),v2(a)){let c=Eie(a.expression);return c?rT(c):void 0}if(Pa(a)&&a.expression.kind!==106&&!qu(a,!0)&&!sIe(a))return dT(a)?ZZe(a):GIe(NC(a.expression));if(pT(a)&&!Ch(a.type))return $r(a.type);if(fT(n)||ose(n))return Yi(n)}function KM(n){let a=Rr(n);if(a.contextFreeType)return a.contextFreeType;wM(n,Se,!1);let c=a.contextFreeType=Yi(n,4);return vD(),c}function Yi(n,a,c){var u,p;(u=ai)==null||u.push(ai.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let h=P;P=n,A=0;let T=net(n,a,c),k=MIe(n,T,a);return hie(k)&&eet(n,k),P=h,(p=ai)==null||p.pop(),k}function eet(n,a){n.parent.kind===208&&n.parent.expression===n||n.parent.kind===209&&n.parent.expression===n||(n.kind===79||n.kind===163)&&vU(n)||n.parent.kind===183&&n.parent.exprName===n||n.parent.kind===278||Fe(n,_.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),d_(Y)&&(L.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&16777216&&Fe(n,_.Cannot_access_ambient_const_enums_when_0_is_enabled,Rt))}function tet(n,a){if(Kd(n)){if(zW(n))return cie(n.expression,JW(n),a);if(RL(n)){let c=T3(n);return fIe(c,c,n.expression,a)}}return Yi(n.expression,a)}function net(n,a,c){let u=n.kind;if(o)switch(u){case 228:case 215:case 216:o.throwIfCancellationRequested()}switch(u){case 79:return BYe(n,a);case 80:return Z$e(n);case 108:return kM(n);case 106:return Ire(n);case 104:return ir;case 14:case 10:return Yx(ff(n.text));case 8:return eae(n),Yx(op(+n.text));case 9:return iit(n),Yx(aB({negative:!1,base10Value:iL(n.text)}));case 110:return pe;case 95:return Ke;case 225:return HZe(n);case 13:return nf;case 206:return gCe(n,a,c);case 207:return O$e(n,a);case 208:return RCe(n,a);case 163:return OCe(n,a);case 209:return mQe(n,a);case 210:if(n.expression.kind===100)return zQe(n);case 211:return WQe(n,a);case 212:return JQe(n);case 214:return tet(n,a);case 228:return Wtt(n);case 215:case 216:return IIe(n,a);case 218:return AZe(n);case 213:case 231:return KQe(n);case 232:return XQe(n);case 230:return _Ie(n);case 235:return YQe(n);case 233:return $Qe(n);case 217:return SZe(n);case 219:return CZe(n);case 220:return LZe(n);case 221:return kZe(n);case 222:return DZe(n);case 223:return Ce(n,a);case 224:return jZe(n,a);case 227:return L$e(n,a);case 229:return je;case 226:return VZe(n);case 234:return k$e(n);case 291:return J$e(n,a);case 281:return F$e(n,a);case 282:return P$e(n,a);case 285:return G$e(n);case 289:return U$e(n,a);case 283:L.fail("Shouldn't ever directly check a JsxOpeningElement")}return ve}function BIe(n){km(n),n.expression&&dl(n.expression,_.Type_expected),qa(n.constraint),qa(n.default);let a=UE(fr(n));bu(a),WJe(a)||Fe(n.default,_.Type_parameter_0_has_a_circular_default,Ee(a));let c=eu(a),u=jE(a);c&&u&&wu(u,uf(Oi(c,n0(a,u)),u),n.default,_.Type_0_does_not_satisfy_the_constraint_1),zC(n),i(()=>HC(n.name,_.Type_parameter_name_cannot_be_0))}function ret(n){var a,c;if(ku(n.parent)||Yr(n.parent)||Ep(n.parent)){let u=UE(fr(n)),p=Jne(u)&98304;if(p){let h=fr(n.parent);if(Ep(n.parent)&&!(Ur(gs(h))&48))Fe(n,_.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(p===32768||p===65536){(a=ai)==null||a.push(ai.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:ru(gs(h)),id:ru(u)});let T=hM(h,u,p===65536?qs:ss),k=hM(h,u,p===65536?ss:qs),O=u;F=u,wu(T,k,n,_.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),F=O,(c=ai)==null||c.pop()}}}}function UIe(n){km(n),ZM(n);let a=Xd(n);Mr(n,16476)&&(a.kind===173&&Pf(a.body)||Fe(n,_.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===173&&Re(n.name)&&n.name.escapedText==="constructor"&&Fe(n.name,_.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&WW(n)&&La(n.name)&&a.body&&Fe(n,_.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Re(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&Fe(n,_.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===173||a.kind===177||a.kind===182)&&Fe(n,_.A_constructor_cannot_have_a_this_parameter),a.kind===216&&Fe(n,_.An_arrow_function_cannot_have_a_this_parameter),(a.kind===174||a.kind===175)&&Fe(n,_.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!La(n.name)&&!to(O_(zn(n.symbol)),Ri)&&Fe(n,_.A_rest_parameter_must_be_of_an_array_type)}function iet(n){let a=aet(n);if(!a){Fe(n,_.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=ip(a),u=Lf(c);if(!u)return;qa(n.type);let{parameterName:p}=n;if(u.kind===0||u.kind===2)oB(p);else if(u.parameterIndex>=0){if(Xl(c)&&u.parameterIndex===c.parameters.length-1)Fe(p,_.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let h=()=>da(void 0,_.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);wu(u.type,zn(c.parameters[u.parameterIndex]),n.type,void 0,h)}}else if(p){let h=!1;for(let{name:T}of a.parameters)if(La(T)&&VIe(T,p,u.parameterName)){h=!0;break}h||Fe(n.parameterName,_.Cannot_find_parameter_0,u.parameterName)}}function aet(n){switch(n.parent.kind){case 216:case 176:case 259:case 215:case 181:case 171:case 170:let a=n.parent;if(n===a.type)return a}}function VIe(n,a,c){for(let u of n.elements){if(ol(u))continue;let p=u.name;if(p.kind===79&&p.escapedText===c)return Fe(a,_.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((p.kind===204||p.kind===203)&&VIe(p,a,c))return!0}}function LD(n){n.kind===178?wrt(n):(n.kind===181||n.kind===259||n.kind===182||n.kind===176||n.kind===173||n.kind===177)&&AU(n);let a=pl(n);a&4||((a&3)===3&&R<99&&Hc(n,6144),(a&3)===2&&R<4&&Hc(n,64),a&3&&R<2&&Hc(n,128)),t8(jy(n)),Vtt(n),mn(n.parameters,UIe),n.type&&qa(n.type),i(c);function c(){itt(n);let u=U_(n);if(ge&&!u)switch(n.kind){case 177:Fe(n,_.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Fe(n,_.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u){let p=pl(n);if((p&5)===1){let h=$r(u);if(h===yt)Fe(u,_.A_generator_cannot_have_a_void_type_annotation);else{let T=c0(0,h,(p&2)!==0)||Se,k=c0(1,h,(p&2)!==0)||T,O=c0(2,h,(p&2)!==0)||ue,H=EIe(T,k,O,!!(p&2));wu(H,h,u)}}else(p&3)===2&&Get(n,u)}n.kind!==178&&n.kind!==320&&Dy(n)}}function oet(n){let a=new Map,c=new Map,u=new Map;for(let h of n.members)if(h.kind===173)for(let T of h.parameters)Ad(T,h)&&!La(T.name)&&p(a,T.name,T.name.escapedText,3);else{let T=Ca(h),k=h.name;if(!k)continue;let O=pi(k),H=O&&T?16:0,J=O?u:T?c:a,de=k&&M0(k);if(de)switch(h.kind){case 174:p(J,k,de,1|H);break;case 175:p(J,k,de,2|H);break;case 169:p(J,k,de,3|H);break;case 171:p(J,k,de,8|H);break}}function p(h,T,k,O){let H=h.get(k);if(H)if((H&16)!==(O&16))Fe(T,_.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Qc(T));else{let J=!!(H&8),de=!!(O&8);J||de?J!==de&&Fe(T,_.Duplicate_identifier_0,Qc(T)):H&O&-17?Fe(T,_.Duplicate_identifier_0,Qc(T)):h.set(k,H|O)}else h.set(k,O)}}function set(n){for(let a of n.members){let c=a.name;if(Ca(a)&&c){let p=M0(c);switch(p){case"name":case"length":case"caller":case"arguments":case"prototype":let h=_.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=_y(fr(n));Fe(c,h,p,T);break}}}}function jIe(n){let a=new Map;for(let c of n.members)if(c.kind===168){let u,p=c.name;switch(p.kind){case 10:case 8:u=p.text;break;case 79:u=vr(p);break;default:continue}a.get(u)?(Fe(sa(c.symbol.valueDeclaration),_.Duplicate_identifier_0,u),Fe(c.name,_.Duplicate_identifier_0,u)):a.set(u,!0)}}function Tie(n){if(n.kind===261){let c=fr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=Uxe(fr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&QE($r(u.parameters[0].type),p=>{let h=c.get(ru(p));h?h.declarations.push(u):c.set(ru(p),{type:p,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let p of u.declarations)Fe(p,_.Duplicate_index_signature_for_type_0,Ee(u.type))})}}function HIe(n){!km(n)&&!Zrt(n)&&CU(n.name),ZM(n),Sie(n),Mr(n,256)&&n.kind===169&&n.initializer&&Fe(n,_.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,os(n.name))}function cet(n){return pi(n.name)&&Fe(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),HIe(n)}function uet(n){cke(n)||CU(n.name),Nc(n)&&n.asteriskToken&&Re(n.name)&&vr(n.name)==="constructor"&&Fe(n.name,_.Class_constructor_may_not_be_a_generator),nLe(n),Mr(n,256)&&n.kind===171&&n.body&&Fe(n,_.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,os(n.name)),pi(n.name)&&!Zc(n)&&Fe(n,_.Private_identifiers_are_not_allowed_outside_class_bodies),Sie(n)}function Sie(n){if(pi(n.name)&&R<99){for(let a=tm(n);a;a=tm(a))Rr(a).flags|=4194304;if(_u(n.parent)){let a=xre(n.parent);a&&(Rr(n.name).flags|=32768,Rr(a).flags|=4096)}}}function det(n){km(n),pa(n,qa)}function fet(n){LD(n),$rt(n)||Qrt(n),qa(n.body);let a=fr(n),c=nc(a,n.kind);if(n===c&&cU(a),rc(n.body))return;i(p);return;function u(h){return xu(h)?!0:h.kind===169&&!Ca(h)&&!!h.initializer}function p(){let h=n.parent;if(P0(h)){Are(n.parent,h);let T=nCe(h),k=tCe(n.body);if(k){if(T&&Fe(k,_.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(Do(Y)!==99||!fe)&&(vt(n.parent.members,u)||vt(n.parameters,H=>Mr(H,16476))))if(!_et(k,n.body))Fe(k,_.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let H;for(let J of n.body.statements){if(Ol(J)&&OA(ql(J.expression))){H=J;break}if(WIe(J))break}H===void 0&&Fe(n,_.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else T||Fe(n,_.Constructors_for_derived_classes_must_contain_a_super_call)}}}function _et(n,a){let c=qy(n.parent);return Ol(c)&&c.parent===a}function WIe(n){return n.kind===106||n.kind===108?!0:ace(n)?!1:!!pa(n,WIe)}function zIe(n){Re(n.name)&&vr(n.name)==="constructor"&&Fe(n.name,_.Class_constructor_may_not_be_an_accessor),i(a),qa(n.body),Sie(n);function a(){if(!AU(n)&&!Urt(n)&&CU(n.name),XM(n),LD(n),n.kind===174&&!(n.flags&16777216)&&Pf(n.body)&&n.flags&256&&(n.flags&512||Fe(n.name,_.A_get_accessor_must_return_a_value)),n.name.kind===164&&vg(n.name),Ux(n)){let u=fr(n),p=nc(u,174),h=nc(u,175);if(p&&h&&!(sA(p)&1)){Rr(p).flags|=1;let T=uu(p),k=uu(h);(T&256)!==(k&256)&&(Fe(p.name,_.Accessors_must_both_be_abstract_or_non_abstract),Fe(h.name,_.Accessors_must_both_be_abstract_or_non_abstract)),(T&16&&!(k&24)||T&8&&!(k&8))&&(Fe(p.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Fe(h.name,_.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));let O=te(p),H=te(h);O&&H&&wu(O,H,p,_.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}let c=Tr(fr(n));n.kind===174&&pie(n,c)}}function pet(n){XM(n)}function met(n,a,c){return n.typeArguments&&c<n.typeArguments.length?$r(n.typeArguments[c]):oU(n,a)[c]}function oU(n,a){return Sy(on(n.typeArguments,$r),a,Mp(a),Yn(n))}function JIe(n,a){let c,u,p=!0;for(let h=0;h<a.length;h++){let T=eu(a[h]);T&&(c||(c=oU(n,a),u=Wu(a,c)),p=p&&wu(c[h],Oi(T,u),n.typeArguments[h],_.Type_0_does_not_satisfy_the_constraint_1))}return p}function het(n,a){if(!Ro(n))return a.flags&524288&&Ai(a).typeParameters||(Ur(n)&4?n.target.localTypeParameters:void 0)}function xie(n){let a=$r(n);if(!Ro(a)){let c=Rr(n).resolvedSymbol;if(c)return het(a,c)}}function Aie(n){if(a8(n,n.typeArguments),n.kind===180&&!Yn(n)&&!qw(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){let a=Gn(n);Xse(a,n.typeName.end)===24&&u0(n,xo(a.text,n.typeName.end),1,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}mn(n.typeArguments,qa),KIe(n)}function KIe(n){let a=$r(n);if(!Ro(a)){n.typeArguments&&i(()=>{let u=xie(n);u&&JIe(n,u)});let c=Rr(n).resolvedSymbol;c&&vt(c.declarations,u=>o2(u)&&!!(u.flags&268435456))&&Xh(BM(n),c.declarations,c.escapedName)}}function get(n){let a=zr(n.parent,_6);if(!a)return;let c=xie(a);if(!c)return;let u=eu(c[a.typeArguments.indexOf(n)]);return u&&Oi(u,Wu(c,oU(a,c)))}function yet(n){$xe(n)}function vet(n){mn(n.members,qa),i(a);function a(){let c=GAe(n);mU(c,c.symbol),Tie(n),jIe(n)}}function bet(n){qa(n.elementType)}function Eet(n){let a=n.elements,c=!1,u=!1,p=vt(a,bL);for(let h of a){if(h.kind!==199&&p){an(h,_.Tuple_members_must_all_have_names_or_all_not_have_names);break}let T=hne(h);if(T&8){let k=$r(h.type);if(!Kv(k)){Fe(h,_.A_rest_element_type_must_be_an_array_type);break}(_f(k)||po(k)&&k.target.combinedFlags&4)&&(u=!0)}else if(T&4){if(u){an(h,_.A_rest_element_cannot_follow_another_rest_element);break}u=!0}else if(T&2){if(u){an(h,_.An_optional_element_cannot_follow_a_rest_element);break}c=!0}else if(c){an(h,_.A_required_element_cannot_follow_an_optional_element);break}}mn(n.elements,qa),$r(n)}function Tet(n){mn(n.types,qa),$r(n)}function qIe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType;if(to(u,Gp(c,!1)))return a.kind===209&&Um(a)&&Ur(c)&32&&Pp(c)&1&&Fe(a,_.Index_signature_in_type_0_only_permits_reading,Ee(c)),n;let p=Eu(c);if(Cm(p,rt)&&ul(u,296))return n;if(Zb(c)){let h=eB(u,a);if(h){let T=QE(p,k=>ja(k,h));if(T&&Ef(T)&24)return Fe(a,_.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Gi(h)),ve}}return Fe(a,_.Type_0_cannot_be_used_to_index_type_1,Ee(u),Ee(c)),ve}function xet(n){qa(n.objectType),qa(n.indexType),qIe(RAe(n),n)}function Aet(n){Cet(n),qa(n.typeParameter),qa(n.nameType),qa(n.type),n.type||qv(n,Se);let a=Cne(n),c=by(a);if(c)wu(c,Si,n.nameType);else{let u=rp(a);wu(u,Si,EA(n.typeParameter))}}function Cet(n){var a;if((a=n.members)!=null&&a.length)return an(n.members[0],_.A_mapped_type_may_not_declare_properties_or_methods)}function Iet(n){oB(n)}function Let(n){jrt(n),qa(n.type)}function ket(n){pa(n,qa)}function Det(n){jn(n,c=>c.parent&&c.parent.kind===191&&c.parent.extendsType===c)||an(n,_.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),qa(n.typeParameter);let a=fr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=Ai(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=UE(a),p=Ase(a,165);if(!xLe(p,[u],h=>[h])){let h=E(a);for(let T of p)Fe(T.name,_.All_declarations_of_0_must_have_identical_constraints,h)}}}Dy(n)}function wet(n){for(let a of n.templateSpans){qa(a.type);let c=$r(a.type);wu(c,Za,a.type)}$r(n)}function Ret(n){qa(n.argument),n.assertions&&qS(n.assertions.assertClause,an)&&(TR()||an(n.assertions.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),$s(Y)!==3&&$s(Y)!==99&&an(n.assertions.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),KIe(n)}function Oet(n){n.dotDotDotToken&&n.questionToken&&an(n,_.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===187&&an(n.type,_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===188&&an(n.type,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),qa(n.type),$r(n)}function qM(n){return(cd(n,8)||xu(n))&&!!(n.flags&16777216)}function sU(n,a){let c=wg(n);return n.parent.kind!==261&&n.parent.kind!==260&&n.parent.kind!==228&&n.flags&16777216&&(!(c&2)&&!(Tp(n.parent)&&Tc(n.parent.parent)&&mp(n.parent.parent))&&(c|=1),c|=2),c&a}function cU(n){i(()=>Net(n))}function Net(n){function a(cn,rr){return rr!==void 0&&rr.parent===cn[0].parent?rr:cn[0]}function c(cn,rr,Jt,Cn,Rn){if((Cn^Rn)!==0){let Hr=sU(a(cn,rr),Jt);mn(cn,qi=>{let wa=sU(qi,Jt)^Hr;wa&1?Fe(sa(qi),_.Overload_signatures_must_all_be_exported_or_non_exported):wa&2?Fe(sa(qi),_.Overload_signatures_must_all_be_ambient_or_non_ambient):wa&24?Fe(sa(qi)||qi,_.Overload_signatures_must_all_be_public_private_or_protected):wa&256&&Fe(sa(qi),_.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(cn,rr,Jt,Cn){if(Jt!==Cn){let Rn=uS(a(cn,rr));mn(cn,Br=>{uS(Br)!==Rn&&Fe(sa(Br),_.Overload_signatures_must_all_be_optional_or_required)})}}let p=283,h=0,T=p,k=!1,O=!0,H=!1,J,de,Ae,xe=n.declarations,tt=(n.flags&16384)!==0;function It(cn){if(cn.name&&rc(cn.name))return;let rr=!1,Jt=pa(cn.parent,Rn=>{if(rr)return Rn;rr=Rn===cn});if(Jt&&Jt.pos===cn.end&&Jt.kind===cn.kind){let Rn=Jt.name||Jt,Br=Jt.name;if(cn.name&&Br&&(pi(cn.name)&&pi(Br)&&cn.name.escapedText===Br.escapedText||ts(cn.name)&&ts(Br)||c_(cn.name)&&c_(Br)&&MI(cn.name)===MI(Br))){if((cn.kind===171||cn.kind===170)&&Ca(cn)!==Ca(Jt)){let qi=Ca(cn)?_.Function_overload_must_be_static:_.Function_overload_must_not_be_static;Fe(Rn,qi)}return}if(Pf(Jt.body)){Fe(Rn,_.Function_implementation_name_must_be_0,os(cn.name));return}}let Cn=cn.name||cn;tt?Fe(Cn,_.Constructor_implementation_is_missing):Mr(cn,256)?Fe(Cn,_.All_declarations_of_an_abstract_method_must_be_consecutive):Fe(Cn,_.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Tn=!1,un=!1,Nn=!1,en=[];if(xe)for(let cn of xe){let rr=cn,Jt=rr.flags&16777216,Cn=rr.parent&&(rr.parent.kind===261||rr.parent.kind===184)||Jt;if(Cn&&(Ae=void 0),(rr.kind===260||rr.kind===228)&&!Jt&&(Nn=!0),rr.kind===259||rr.kind===171||rr.kind===170||rr.kind===173){en.push(rr);let Rn=sU(rr,p);h|=Rn,T&=Rn,k=k||uS(rr),O=O&&uS(rr);let Br=Pf(rr.body);Br&&J?tt?un=!0:Tn=!0:Ae?.parent===rr.parent&&Ae.end!==rr.pos&&It(Ae),Br?J||(J=rr):H=!0,Ae=rr,Cn||(de=rr)}if(Yn(cn)&&Ia(cn)&&cn.jsDoc){for(let Rn of cn.jsDoc)if(Rn.tags)for(let Br of Rn.tags)kL(Br)&&(H=!0)}}if(un&&mn(en,cn=>{Fe(cn,_.Multiple_constructor_implementations_are_not_allowed)}),Tn&&mn(en,cn=>{Fe(sa(cn)||cn,_.Duplicate_function_implementation)}),Nn&&!tt&&n.flags&16&&xe){let cn=Pr(xe,rr=>rr.kind===260).map(rr=>hr(rr,_.Consider_adding_a_declare_modifier_to_this_class));mn(xe,rr=>{let Jt=rr.kind===260?_.Class_declaration_cannot_implement_overload_list_for_0:rr.kind===259?_.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Jt&&Ao(Fe(sa(rr)||rr,Jt,fc(n)),...cn)})}if(de&&!de.body&&!Mr(de,256)&&!de.questionToken&&It(de),H&&(xe&&(c(xe,J,p,h,T),u(xe,J,k,O)),J)){let cn=Xb(n),rr=ip(J);for(let Jt of cn)if(!aXe(rr,Jt)){let Cn=Jt.declaration&&X0(Jt.declaration)?Jt.declaration.parent.tagName:Jt.declaration;Ao(Fe(Cn,_.This_overload_signature_is_not_compatible_with_its_implementation_signature),hr(J,_.The_implementation_signature_is_declared_here));break}}}function kD(n){i(()=>Pet(n))}function Pet(n){let a=n.localSymbol;if(!a&&(a=fr(n),!a.exportSymbol)||nc(a,n.kind)!==n)return;let c=0,u=0,p=0;for(let H of a.declarations){let J=O(H),de=sU(H,1025);de&1?de&1024?p|=J:c|=J:u|=J}let h=c|u,T=c&u,k=p&h;if(T||k)for(let H of a.declarations){let J=O(H),de=sa(H);J&k?Fe(de,_.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,os(de)):J&T&&Fe(de,_.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,os(de))}function O(H){let J=H;switch(J.kind){case 261:case 262:case 349:case 341:case 343:return 2;case 264:return lu(J)||Gh(J)!==0?5:4;case 260:case 263:case 302:return 3;case 308:return 7;case 274:case 223:let de=J,Ae=pc(de)?de.expression:de.right;if(!bc(Ae))return 1;J=Ae;case 268:case 271:case 270:let xe=0,tt=wc(fr(J));return mn(tt.declarations,It=>{xe|=O(It)}),xe;case 257:case 205:case 259:case 273:case 79:return 1;case 170:case 168:return 2;default:return L.failBadSyntaxKind(J)}}}function DD(n,a,c,u){let p=wD(n,a);return p&&rT(p,a,c,u)}function wD(n,a,c){if(Zo(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Bv(n,oM(!1)))return u.promisedTypeOfPromise=Ko(n)[0];if(zM(Ty(n),134479868))return;let p=Vc(n,"then");if(Zo(p))return;let h=p?xa(p,0):Je;if(h.length===0){a&&Fe(a,_.A_promise_must_have_a_then_method);return}let T,k;for(let J of h){let de=Yb(J);de&&de!==yt&&!Bp(n,de,hm)?T=de:k=Sn(k,J)}if(!k){L.assertIsDefined(T),c&&(c.value=T),a&&Fe(a,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ee(n),Ee(T));return}let O=wf(Gr(on(k,uie)),2097152);if(Zo(O))return;let H=xa(O,0);if(H.length===0){a&&Fe(a,_.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=Gr(on(H,uie),2)}function RD(n,a,c,u,p){return(a?rT(n,c,u,p):bg(n,c,u,p))||ve}function XIe(n){if(zM(Ty(n),134479868))return!1;let a=Vc(n,"then");return!!a&&xa(wf(a,2097152),0).length>0}function lU(n){var a;if(n.flags&16777216){let c=mne(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function UC(n){return n.flags&1048576?Ls(n,UC):lU(n)?n.aliasTypeArguments[0]:n}function YIe(n){if(Zo(n)||lU(n))return!1;if(Zb(n)){let a=bu(n);if(a?a.flags&3||mh(a)||yh(a,XIe):Js(n,8650752))return!0}return!1}function Met(n){let a=mne(!0);if(a)return Jx(a,[UC(n)])}function Fet(n){if(YIe(n)){let a=Met(n);if(a)return a}return L.assert(lU(n)||wD(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function rT(n,a,c,u){let p=bg(n,a,c,u);return p&&Fet(p)}function bg(n,a,c,u){if(Zo(n)||lU(n))return n;let p=n;if(p.awaitedTypeOfType)return p.awaitedTypeOfType;if(n.flags&1048576){if(Jh.lastIndexOf(n.id)>=0){a&&Fe(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let k=a?H=>bg(H,a,c,u):bg;Jh.push(n.id);let O=Ls(n,k);return Jh.pop(),p.awaitedTypeOfType=O}if(YIe(n))return p.awaitedTypeOfType=n;let h={value:void 0},T=wD(n,void 0,h);if(T){if(n.id===T.id||Jh.lastIndexOf(T.id)>=0){a&&Fe(a,_.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Jh.push(n.id);let k=bg(T,a,c,u);return Jh.pop(),k?p.awaitedTypeOfType=k:void 0}if(XIe(n)){if(a){L.assertIsDefined(c);let k;h.value&&(k=da(k,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ee(n),Ee(h.value))),k=da(k,c,u),Lo.add(Lh(Gn(a),a,k))}return}return p.awaitedTypeOfType=n}function Get(n,a){let c=$r(a);if(R>=2){if(Ro(c))return;let u=oM(!0);if(u!==ro&&!Bv(c,u)){Fe(a,_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Ee(bg(c)||yt));return}}else{if(Uet(a),Ro(c))return;let u=Jw(a);if(u===void 0){Fe(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Ee(c));return}let p=uc(u,111551,!0),h=p?zn(p):ve;if(Ro(h)){u.kind===79&&u.escapedText==="Promise"&&Bx(c)===oM(!1)?Fe(a,_.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Fe(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,qd(u));return}let T=mKe(!0);if(T===Ki){Fe(a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,qd(u));return}if(!wu(h,T,a,_.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;let k=u&&Yd(u),O=yd(n.locals,k.escapedText,111551);if(O){Fe(O.valueDeclaration,_.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,vr(k),qd(u));return}}RD(c,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Bet(n){let a=MC(n);tU(a,n);let c=qo(a);if(c.flags&1)return;let u=_ie(n);if(!u?.resolvedReturnType)return;let p,h=u.resolvedReturnType;switch(n.parent.kind){case 260:case 228:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 169:if(!$){p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 166:p=_.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 171:case 174:case 175:p=_.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return L.failBadSyntaxKind(n.parent)}wu(c,h,n.expression,p)}function OD(n,a,c,u,p,h=c.length,T=0){let k=D.createFunctionTypeNode(void 0,Je,D.createKeywordTypeNode(131));return Am(k,n,a,c,u,p,h,T)}function Cie(n,a,c,u,p,h,T){let k=OD(n,a,c,u,p,h,T);return HE(k)}function $Ie(n){return Cie(void 0,void 0,Je,n)}function QIe(n){let a=A_("value",n);return Cie(void 0,void 0,[a],yt)}function Uet(n){ZIe(n&&Jw(n),!1)}function ZIe(n,a){if(!n)return;let c=Yd(n),u=(n.kind===79?788968:1920)|2097152,p=zs(c,c.escapedText,u,void 0,void 0,!0);if(p&&p.flags&2097152){if(!Y.verbatimModuleSyntax&&ig(p)&&!MD(wc(p))&&!nd(p))Hb(p);else if(a&&d_(Y)&&Rl(Y)>=5&&!ig(p)&&!vt(p.declarations,I0)){let h=Fe(n,_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=wr(p.declarations||Je,Zh);T&&Ao(h,hr(T,_._0_was_imported_here,vr(c)))}}}function VC(n){let a=Iie(n);a&&Cd(a)&&ZIe(a,!0)}function Iie(n){if(n)switch(n.kind){case 190:case 189:return eLe(n.types);case 191:return eLe([n.trueType,n.falseType]);case 193:case 199:return Iie(n.type);case 180:return n.typeName}}function eLe(n){let a;for(let c of n){for(;c.kind===193||c.kind===199;)c=c.type;if(c.kind===144||!U&&(c.kind===198&&c.literal.kind===104||c.kind===155))continue;let u=Iie(c);if(!u)return;if(a){if(!Re(a)||!Re(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function uU(n){let a=Cl(n);return Fm(n)?SH(a):a}function XM(n){if(!HS(n)||!bf(n)||!n.modifiers||!M6($,n,n.parent,n.parent.parent))return;let a=wr(n.modifiers,du);if(a){if($?(Hc(a,8),n.kind===166&&Hc(a,32)):R<99&&(Hc(a,8),sl(n)?n.name?ALe(n)&&Hc(a,8388608):Hc(a,8388608):_u(n)||(pi(n.name)&&(Nc(n)||rb(n)||Id(n))&&Hc(a,8388608),ts(n.name)&&Hc(a,16777216))),Y.emitDecoratorMetadata)switch(Hc(a,16),n.kind){case 260:let c=Vm(n);if(c)for(let T of c.parameters)VC(uU(T));break;case 174:case 175:let u=n.kind===174?175:174,p=nc(fr(n),u);VC(N(n)||p&&N(p));break;case 171:for(let T of n.parameters)VC(uU(T));VC(U_(n));break;case 169:VC(Cl(n));break;case 166:VC(uU(n));let h=n.parent;for(let T of h.parameters)VC(uU(T));break}for(let c of n.modifiers)du(c)&&Bet(c)}}function Vet(n){i(a);function a(){nLe(n),Yie(n),jC(n,n.name)}}function jet(n){n.typeExpression||Fe(n.name,_.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&HC(n.name,_.Type_alias_name_cannot_be_0),qa(n.typeExpression),t8(jy(n))}function Het(n){qa(n.constraint);for(let a of n.typeParameters)qa(a)}function Wet(n){qa(n.typeExpression)}function zet(n){qa(n.typeExpression);let a=WA(n);if(a){let c=kj(a,v3);if(Fn(c)>1)for(let u=1;u<Fn(c);u++){let p=c[u].tagName;Fe(p,_._0_tag_already_specified,vr(p))}}}function Jet(n){n.name&&r8(n.name,!0)}function Ket(n){qa(n.typeExpression)}function qet(n){qa(n.typeExpression)}function Xet(n){i(a),LD(n);function a(){!n.type&&!jA(n)&&qv(n,Se)}}function Yet(n){let a=WA(n);(!a||!sl(a)&&!_u(a))&&Fe(a,_.JSDoc_0_is_not_attached_to_a_class,vr(n.tagName))}function $et(n){let a=WA(n);if(!a||!sl(a)&&!_u(a)){Fe(a,_.JSDoc_0_is_not_attached_to_a_class,vr(n.tagName));return}let c=A0(a).filter(x2);L.assert(c.length>0),c.length>1&&Fe(c[1],_.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let u=tLe(n.class.expression),p=P0(a);if(p){let h=tLe(p.expression);h&&u.escapedText!==h.escapedText&&Fe(u,_.JSDoc_0_1_does_not_match_the_extends_2_clause,vr(n.tagName),vr(u),vr(h))}}function Qet(n){let a=dS(n);a&&xu(a)&&Fe(n,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function tLe(n){switch(n.kind){case 79:return n;case 208:return n.name;default:return}}function nLe(n){var a;XM(n),LD(n);let c=pl(n);if(n.name&&n.name.kind===164&&vg(n.name),Ux(n)){let h=fr(n),T=n.localSymbol||h,k=(a=T.declarations)==null?void 0:a.find(O=>O.kind===n.kind&&!(O.flags&262144));n===k&&cU(T),h.parent&&cU(h)}let u=n.kind===170?void 0:n.body;if(qa(u),pie(n,Hx(n)),i(p),Yn(n)){let h=x0(n);h&&h.typeExpression&&!Ore($r(h.typeExpression),n)&&Fe(h.typeExpression.type,_.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function p(){U_(n)||(rc(u)&&!qM(n)&&qv(n,Se),c&1&&Pf(u)&&qo(ip(n)))}}function Dy(n){i(a);function a(){let c=Gn(n),u=rn.get(c.path);u||(u=[],rn.set(c.path,u)),u.push(n)}}function rLe(n,a){for(let c of n)switch(c.kind){case 260:case 228:Zet(c,a),Lie(c,a);break;case 308:case 264:case 238:case 266:case 245:case 246:case 247:oLe(c,a);break;case 173:case 215:case 259:case 216:case 171:case 174:case 175:c.body&&oLe(c,a),Lie(c,a);break;case 170:case 176:case 177:case 181:case 182:case 262:case 261:Lie(c,a);break;case 192:ett(c,a);break;default:L.assertNever(c,"Node should not have been registered for unused identifiers check")}}function iLe(n,a,c){let u=sa(n)||n,p=o2(n)?_._0_is_declared_but_never_used:_._0_is_declared_but_its_value_is_never_read;c(n,0,hr(u,p,a))}function YM(n){return Re(n)&&vr(n).charCodeAt(0)===95}function Zet(n,a){for(let c of n.members)switch(c.kind){case 171:case 169:case 174:case 175:if(c.kind===175&&c.symbol.flags&32768)break;let u=fr(c);!u.isReferenced&&(cd(c,8)||zl(c)&&pi(c.name))&&!(c.flags&16777216)&&a(c,0,hr(c.name,_._0_is_declared_but_its_value_is_never_read,E(u)));break;case 173:for(let p of c.parameters)!p.symbol.isReferenced&&Mr(p,8)&&a(p,0,hr(p.name,_.Property_0_is_declared_but_its_value_is_never_read,fc(p.symbol)));break;case 178:case 237:case 172:break;default:L.fail("Unexpected class member")}}function ett(n,a){let{typeParameter:c}=n;kie(c)&&a(n,1,hr(n,_._0_is_declared_but_its_value_is_never_read,vr(c.name)))}function Lie(n,a){let c=fr(n).declarations;if(!c||To(c)!==n)return;let u=jy(n),p=new Set;for(let h of u){if(!kie(h))continue;let T=vr(h.name),{parent:k}=h;if(k.kind!==192&&k.typeParameters.every(kie)){if(_0(p,k)){let O=Gn(k),H=H_(k)?MW(k):FW(O,k.typeParameters),J=k.typeParameters.length===1,de=J?_._0_is_declared_but_its_value_is_never_read:_.All_type_parameters_are_unused,Ae=J?T:void 0;a(h,1,al(O,H.pos,H.end-H.pos,de,Ae))}}else a(h,1,hr(h,_._0_is_declared_but_its_value_is_never_read,T))}}function kie(n){return!(No(n.symbol).isReferenced&262144)&&!YM(n.name)}function $M(n,a,c,u){let p=String(u(a)),h=n.get(p);h?h[1].push(c):n.set(p,[a,[c]])}function aLe(n){return zr(nm(n),ha)}function ttt(n){return Wo(n)?cm(n.parent)?!!(n.propertyName&&YM(n.name)):YM(n.name):lu(n)||(wi(n)&&CA(n.parent.parent)||sLe(n))&&YM(n.name)}function oLe(n,a){let c=new Map,u=new Map,p=new Map;n.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(let T of h.declarations)if(!ttt(T))if(sLe(T))$M(c,rtt(T),T,zo);else if(Wo(T)&&cm(T.parent)){let k=To(T.parent.elements);(T===k||!To(T.parent.elements).dotDotDotToken)&&$M(u,T.parent,T,zo)}else if(wi(T))$M(p,T.parent,T,zo);else{let k=h.valueDeclaration&&aLe(h.valueDeclaration),O=h.valueDeclaration&&sa(h.valueDeclaration);k&&O?!Ad(k,k.parent)&&!G0(k)&&!YM(O)&&(Wo(T)&&g2(T.parent)?$M(u,T.parent,T,zo):a(k,1,hr(O,_._0_is_declared_but_its_value_is_never_read,fc(h)))):iLe(T,fc(h),a)}}}),c.forEach(([h,T])=>{let k=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===271?1:h.namedBindings.elements.length:0)===T.length)a(k,0,T.length===1?hr(k,_._0_is_declared_but_its_value_is_never_read,vr(Vo(T).name)):hr(k,_.All_imports_in_import_declaration_are_unused));else for(let H of T)iLe(H,vr(H.name),a)}),u.forEach(([h,T])=>{let k=aLe(h.parent)?1:0;if(h.elements.length===T.length)T.length===1&&h.parent.kind===257&&h.parent.parent.kind===258?$M(p,h.parent.parent,h.parent,zo):a(h,k,T.length===1?hr(h,_._0_is_declared_but_its_value_is_never_read,QM(Vo(T).name)):hr(h,_.All_destructured_elements_are_unused));else for(let O of T)a(O,k,hr(O,_._0_is_declared_but_its_value_is_never_read,QM(O.name)))}),p.forEach(([h,T])=>{if(h.declarations.length===T.length)a(h,0,T.length===1?hr(Vo(T).name,_._0_is_declared_but_its_value_is_never_read,QM(Vo(T).name)):hr(h.parent.kind===240?h.parent:h,_.All_variables_are_unused));else for(let k of T)a(k,0,hr(k,_._0_is_declared_but_its_value_is_never_read,QM(k.name)))})}function ntt(){var n;for(let a of m1)if(!((n=fr(a))!=null&&n.isReferenced)){let c=bA(a);L.assert(CT(c),"Only parameter declaration should be checked here");let u=hr(a.name,_._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,os(a.name),os(a.propertyName));c.type||Ao(u,al(Gn(c),c.end,1,_.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,os(a.propertyName))),Lo.add(u)}}function QM(n){switch(n.kind){case 79:return vr(n);case 204:case 203:return QM(Ga(Vo(n.elements),Wo).name);default:return L.assertNever(n)}}function sLe(n){return n.kind===270||n.kind===273||n.kind===271}function rtt(n){return n.kind===270?n:n.kind===271?n.parent:n.parent.parent}function dU(n){if(n.kind===238&&vh(n),Bj(n)){let a=ki;mn(n.statements,qa),ki=a}else mn(n.statements,qa);n.locals&&Dy(n)}function itt(n){R>=2||!Yj(n)||n.flags&16777216||rc(n.body)||mn(n.parameters,a=>{a.name&&!La(a.name)&&a.name.escapedText===_t.escapedName&&Ev("noEmit",a,_.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function ND(n,a,c){if(a?.escapedText!==c||n.kind===169||n.kind===168||n.kind===171||n.kind===170||n.kind===174||n.kind===175||n.kind===299||n.flags&16777216||(lm(n)||Nl(n)||$u(n))&&I0(n))return!1;let u=nm(n);return!(ha(u)&&rc(u.parent.body))}function att(n){jn(n,a=>sA(a)&4?(n.kind!==79?Fe(sa(n),_.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Fe(n,_.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function ott(n){jn(n,a=>sA(a)&8?(n.kind!==79?Fe(sa(n),_.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Fe(n,_.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function stt(n,a){if(ie>=5&&!(ie>=100&&Gn(n).impliedNodeFormat===1)||!a||!ND(n,a,"require")&&!ND(n,a,"exports")||Tc(n)&&Gh(n)!==1)return;let c=FE(n);c.kind===308&&kd(c)&&Ev("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,os(a),os(a))}function ctt(n,a){if(!a||R>=4||!ND(n,a,"Promise")||Tc(n)&&Gh(n)!==1)return;let c=FE(n);c.kind===308&&kd(c)&&c.flags&2048&&Ev("noEmit",a,_.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,os(a),os(a))}function ltt(n,a){R<=8&&(ND(n,a,"WeakMap")||ND(n,a,"WeakSet"))&&Lb.push(n)}function utt(n){let a=tm(n);sA(a)&4194304&&(L.assert(zl(n)&&Re(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Ev("noEmit",n,_.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function dtt(n,a){a&&R>=2&&R<=8&&ND(n,a,"Reflect")&&bv.push(n)}function ftt(n){let a=!1;if(_u(n)){for(let c of n.members)if(sA(c)&8388608){a=!0;break}}else if(ms(n))sA(n)&8388608&&(a=!0);else{let c=tm(n);c&&sA(c)&8388608&&(a=!0)}a&&(L.assert(zl(n)&&Re(n.name),"The target of a Reflect collision check should be an identifier"),Ev("noEmit",n,_.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,os(n.name),"Reflect"))}function jC(n,a){a&&(stt(n,a),ctt(n,a),ltt(n,a),dtt(n,a),Yr(n)?(HC(a,_.Class_name_cannot_be_0),n.flags&16777216||Utt(a)):hb(n)&&HC(a,_.Enum_name_cannot_be_0))}function _tt(n){if(G_(n)&3||CT(n)||n.kind===257&&!n.initializer)return;let a=fr(n);if(a.flags&1){if(!Re(n.name))return L.fail();let c=zs(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&WB(c)&3){let u=cb(c.valueDeclaration,258),p=u.parent.kind===240&&u.parent.parent?u.parent.parent:void 0;if(!(p&&(p.kind===238&&Ia(p.parent)||p.kind===265||p.kind===264||p.kind===308))){let T=E(c);Fe(n,_.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function PD(n){return n===at?Se:n===bn?Et:n}function ZM(n){var a;if(XM(n),Wo(n)||qa(n.type),!n.name)return;if(n.name.kind===164&&(vg(n.name),mT(n)&&n.initializer&&Ic(n.initializer)),Wo(n)){if(n.propertyName&&Re(n.name)&&CT(n)&&rc(Xd(n).body)){m1.push(n);return}cm(n.parent)&&n.dotDotDotToken&&R<5&&Hc(n,4),n.propertyName&&n.propertyName.kind===164&&vg(n.propertyName);let p=n.parent.parent,h=n.dotDotDotToken?64:0,T=Px(p,h),k=n.propertyName||n.name;if(T&&!La(k)){let O=pg(k);if(fh(O)){let H=Np(O),J=ja(T,H);J&&(MM(J,void 0,!1),Hre(n,!!p.initializer&&p.initializer.kind===106,!1,T,J))}}}if(La(n.name)&&(n.name.kind===204&&R<2&&Y.downlevelIteration&&Hc(n,512),mn(n.name.elements,qa)),ha(n)&&n.initializer&&rc(Xd(n).body)){Fe(n,_.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(La(n.name)){let p=mT(n)&&n.initializer&&n.parent.parent.kind!==246,h=!vt(n.name.elements,y8(ol));if(p||h){let T=Zs(n);if(p){let k=Ic(n.initializer);U&&h?wCe(k,n):Ly(k,Zs(n),n,n.initializer)}h&&(g2(n.name)?wy(65,T,Oe,n):U&&wCe(T,n))}return}let c=fr(n);if(c.flags&2097152&&(N0(n)||lce(n))){hU(n);return}let u=PD(zn(c));if(n===c.valueDeclaration){let p=mT(n)&&Yw(n);p&&!(Yn(n)&&rs(p)&&(p.properties.length===0||ub(n.name))&&((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==246&&Ly(Ic(p),u,n,p,void 0),c.declarations&&c.declarations.length>1&&vt(c.declarations,h=>h!==n&&PA(h)&&!lLe(h,n))&&Fe(n.name,_.All_declarations_of_0_must_have_identical_modifiers,os(n.name))}else{let p=PD(Zs(n));!Ro(u)&&!Ro(p)&&!ph(u,p)&&!(c.flags&67108864)&&cLe(c.valueDeclaration,u,n,p),mT(n)&&n.initializer&&Ly(Ic(n.initializer),p,n,n.initializer,void 0),c.valueDeclaration&&!lLe(n,c.valueDeclaration)&&Fe(n.name,_.All_declarations_of_0_must_have_identical_modifiers,os(n.name))}n.kind!==169&&n.kind!==168&&(kD(n),(n.kind===257||n.kind===205)&&_tt(n),jC(n,n.name))}function cLe(n,a,c,u){let p=sa(c),h=c.kind===169||c.kind===168?_.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=os(p),k=Fe(p,h,T,Ee(a),Ee(u));n&&Ao(k,hr(n,_._0_was_also_declared_here,T))}function lLe(n,a){if(n.kind===166&&a.kind===257||n.kind===257&&a.kind===166)return!0;if(uS(n)!==uS(a))return!1;let c=888;return hS(n,c)===hS(a,c)}function Die(n){var a,c;(a=ai)==null||a.push(ai.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Krt(n),ZM(n),(c=ai)==null||c.pop()}function ptt(n){return Wrt(n),ZM(n)}function mtt(n){!km(n)&&!Zie(n.declarationList)&&qrt(n),mn(n.declarationList.declarations,qa)}function htt(n){vh(n),Yi(n.expression)}function gtt(n){vh(n);let a=aA(n.expression);wie(n.expression,a,n.thenStatement),qa(n.thenStatement),n.thenStatement.kind===239&&Fe(n.thenStatement,_.The_body_of_an_if_statement_cannot_be_the_empty_statement),qa(n.elseStatement)}function wie(n,a,c){if(!U)return;u(n,c);function u(h,T){for(h=vs(h),p(h,T);ar(h)&&(h.operatorToken.kind===56||h.operatorToken.kind===60);)h=vs(h.left),p(h,T)}function p(h,T){let k=CR(h)?vs(h.right):h;if(Bm(k))return;if(CR(k)){u(k,T);return}let O=k===h?a:aA(k),H=br(k)&&OIe(k.expression);if(!(iu(O)&4194304)||H)return;let J=xa(O,0),de=!!DD(O);if(J.length===0&&!de)return;let Ae=Re(k)?k:br(k)?k.name:void 0,xe=Ae&&Zf(Ae);if(!xe&&!de)return;xe&&ar(h.parent)&&vtt(h.parent,xe)||xe&&T&&ytt(h,T,Ae,xe)||(de?Tv(k,!0,_.This_condition_will_always_return_true_since_this_0_is_always_defined,lr(O)):Fe(k,_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function ytt(n,a,c,u){return!!pa(a,function p(h){if(Re(h)){let T=Zf(h);if(T&&T===u){if(Re(n)||Re(c)&&ar(c.parent))return!0;let k=c.parent,O=h.parent;for(;k&&O;){if(Re(k)&&Re(O)||k.kind===108&&O.kind===108)return Zf(k)===Zf(O);if(br(k)&&br(O)){if(Zf(k.name)!==Zf(O.name))return!1;O=O.expression,k=k.expression}else if(Pa(k)&&Pa(O))O=O.expression,k=k.expression;else return!1}}}return pa(h,p)})}function vtt(n,a){for(;ar(n)&&n.operatorToken.kind===55;){if(pa(n.right,function u(p){if(Re(p)){let h=Zf(p);if(h&&h===a)return!0}return pa(p,u)}))return!0;n=n.parent}return!1}function btt(n){vh(n),qa(n.statement),aA(n.expression)}function Ett(n){vh(n),aA(n.expression),qa(n.statement)}function uLe(n,a){return n.flags&16384&&Fe(a,_.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function aA(n,a){return uLe(Yi(n,a),n)}function Ttt(n){vh(n)||n.initializer&&n.initializer.kind===258&&Zie(n.initializer),n.initializer&&(n.initializer.kind===258?mn(n.initializer.declarations,Die):Yi(n.initializer)),n.condition&&aA(n.condition),n.incrementor&&Yi(n.incrementor),qa(n.statement),n.locals&&Dy(n)}function Stt(n){ske(n);let a=R6(n);if(n.awaitModifier?a&&oc(a)?an(n.awaitModifier,_.For_await_loops_cannot_be_used_inside_a_class_static_block):(pl(a)&6)===2&&R<99&&Hc(n,16384):Y.downlevelIteration&&R<2&&Hc(n,256),n.initializer.kind===258)dLe(n);else{let c=n.initializer,u=e8(n);if(c.kind===206||c.kind===207)nT(c,u||ve);else{let p=Yi(c);CD(c,_.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&Ly(u,p,c,n.expression)}}qa(n.statement),n.locals&&Dy(n)}function xtt(n){ske(n);let a=Wre(Yi(n.expression));if(n.initializer.kind===258){let c=n.initializer.declarations[0];c&&La(c.name)&&Fe(c.name,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),dLe(n)}else{let c=n.initializer,u=Yi(c);c.kind===206||c.kind===207?Fe(c,_.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):to(lqe(a),u)?CD(c,_.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,_.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Fe(c,_.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===lt||!ul(a,126091264))&&Fe(n.expression,_.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Ee(a)),qa(n.statement),n.locals&&Dy(n)}function dLe(n){let a=n.initializer;if(a.declarations.length>=1){let c=a.declarations[0];Die(c)}}function e8(n){let a=n.awaitModifier?15:13;return wy(a,NC(n.expression),Oe,n.expression)}function wy(n,a,c,u){return Zo(a)?a:Rie(n,a,c,u,!0)||Se}function Rie(n,a,c,u,p){let h=(n&2)!==0;if(a===lt){Fie(u,a,h);return}let T=R>=2,k=!T&&Y.downlevelIteration,O=Y.noUncheckedIndexedAccess&&!!(n&128);if(T||k||h){let tt=_U(a,n,T?u:void 0);if(p&&tt){let It=n&8?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?_.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?_.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;It&&wu(c,tt.nextType,u,It)}if(tt||T)return O?hD(tt&&tt.yieldType):tt&&tt.yieldType}let H=a,J=!1,de=!1;if(n&4){if(H.flags&1048576){let tt=a.types,It=Pr(tt,Tn=>!(Tn.flags&402653316));It!==tt&&(H=Gr(It,2))}else H.flags&402653316&&(H=lt);if(de=H!==a,de&&(R<1&&u&&(Fe(u,_.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),J=!0),H.flags&131072))return O?hD(ae):ae}if(!Kv(H)){if(u&&!J){let tt=!!(n&4)&&!de,[It,Tn]=xe(tt,k);Tv(u,Tn&&!!DD(H),It,Ee(H))}return de?O?hD(ae):ae:void 0}let Ae=fg(H,rt);if(de&&Ae)return Ae.flags&402653316&&!Y.noUncheckedIndexedAccess?ae:Gr(O?[Ae,ae,Oe]:[Ae,ae],2);return n&128?hD(Ae):Ae;function xe(tt,It){var Tn;return It?tt?[_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Oie(n,0,a,void 0)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Att((Tn=a.symbol)==null?void 0:Tn.escapedName)?[_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:tt?[_.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_.Type_0_is_not_an_array_type,!0]}}function Att(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Oie(n,a,c,u){if(Zo(c))return;let p=_U(c,n,u);return p&&p[R_e(a)]}function Eg(n=lt,a=lt,c=ue){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=kf([n,a,c]),p=se.get(u);return p||(p={yieldType:n,returnType:a,nextType:c},se.set(u,p)),p}return{yieldType:n,returnType:a,nextType:c}}function fLe(n){let a,c,u;for(let p of n)if(!(p===void 0||p===ht)){if(p===wt)return wt;a=Sn(a,p.yieldType),c=Sn(c,p.returnType),u=Sn(u,p.nextType)}return a||c||u?Eg(a&&Gr(a),c&&Gr(c),u&&so(u)):ht}function fU(n,a){return n[a]}function Lm(n,a,c){return n[a]=c}function _U(n,a,c){var u,p;if(Zo(n))return wt;if(!(n.flags&1048576)){let H=c?{errors:void 0}:void 0,J=_Le(n,a,c,H);if(J===ht){if(c){let de=Fie(c,n,!!(a&2));H?.errors&&Ao(de,...H.errors)}return}else if((u=H?.errors)!=null&&u.length)for(let de of H.errors)Lo.add(de);return J}let h=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=fU(n,h);if(T)return T===ht?void 0:T;let k;for(let H of n.types){let J=c?{errors:void 0}:void 0,de=_Le(H,a,c,J);if(de===ht){if(c){let Ae=Fie(c,n,!!(a&2));J?.errors&&Ao(Ae,...J.errors)}Lm(n,h,ht);return}else if((p=J?.errors)!=null&&p.length)for(let Ae of J.errors)Lo.add(Ae);k=Sn(k,de)}let O=k?fLe(k):ht;return Lm(n,h,O),O===ht?void 0:O}function Nie(n,a){if(n===ht)return ht;if(n===wt)return wt;let{yieldType:c,returnType:u,nextType:p}=n;return a&&mne(!0),Eg(rT(c,a)||Se,rT(u,a)||Se,p)}function _Le(n,a,c,u){if(Zo(n))return wt;let p=!1;if(a&2){let h=Pie(n,ft)||mLe(n,ft);if(h)if(h===ht&&c)p=!0;else return a&8?Nie(h,c):h}if(a&1){let h=Pie(n,Yt)||mLe(n,Yt);if(h)if(h===ht&&c)p=!0;else if(a&2){if(h!==ht)return h=Nie(h,c),p?h:Lm(n,"iterationTypesOfAsyncIterable",h)}else return h}if(a&2){let h=Mie(n,ft,c,u,p);if(h!==ht)return h}if(a&1){let h=Mie(n,Yt,c,u,p);if(h!==ht)return a&2?(h=Nie(h,c),p?h:Lm(n,"iterationTypesOfAsyncIterable",h)):h}return ht}function Pie(n,a){return fU(n,a.iterableCacheKey)}function pLe(n,a){let c=Pie(n,a)||Mie(n,a,void 0,void 0,!1);return c===ht?Xe:c}function mLe(n,a){let c;if(Bv(n,c=a.getGlobalIterableType(!1))||Bv(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Ko(n),{returnType:p,nextType:h}=pLe(c,a);return Lm(n,a.iterableCacheKey,Eg(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,h))}if(Bv(n,a.getGlobalGeneratorType(!1))){let[u,p,h]=Ko(n);return Lm(n,a.iterableCacheKey,Eg(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(p,void 0)||p,h))}}function Ctt(n){let a=rAe(!1),c=a&&Vc(zn(a),Bs(n));return c&&fh(c)?Np(c):`__@${n}`}function Mie(n,a,c,u,p){var h;let T=ja(n,Ctt(a.iteratorSymbolName)),k=T&&!(T.flags&16777216)?zn(T):void 0;if(Zo(k))return p?wt:Lm(n,a.iterableCacheKey,wt);let O=k?xa(k,0):void 0;if(!vt(O))return p?ht:Lm(n,a.iterableCacheKey,ht);let H=so(on(O,qo)),J=(h=hLe(H,a,c,u,p))!=null?h:ht;return p?J:Lm(n,a.iterableCacheKey,J)}function Fie(n,a,c){let u=c?_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,p=!!DD(a)||!c&&_O(n.parent)&&n.parent.expression===n&&ZG(!1)!==ro&&to(a,ZG(!1));return Tv(n,p,u,Ee(a))}function Itt(n,a,c,u){return hLe(n,a,c,u,!1)}function hLe(n,a,c,u,p){if(Zo(n))return wt;let h=gLe(n,a)||Ltt(n,a);return h===ht&&c&&(h=void 0,p=!0),h??(h=vLe(n,a,c,u,p)),h===ht?void 0:h}function gLe(n,a){return fU(n,a.iteratorCacheKey)}function Ltt(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Bv(n,c)){let[u]=Ko(n),p=gLe(c,a)||vLe(c,a,void 0,void 0,!1),{returnType:h,nextType:T}=p===ht?Xe:p;return Lm(n,a.iteratorCacheKey,Eg(u,h,T))}if(Bv(n,a.getGlobalIteratorType(!1))||Bv(n,a.getGlobalGeneratorType(!1))){let[u,p,h]=Ko(n);return Lm(n,a.iteratorCacheKey,Eg(u,p,h))}}function yLe(n,a){let c=Vc(n,"done")||Ke;return to(a===0?Ke:pe,c)}function ktt(n){return yLe(n,0)}function Dtt(n){return yLe(n,1)}function wtt(n){if(Zo(n))return wt;let a=fU(n,"iterationTypesOfIteratorResult");if(a)return a;if(Bv(n,TKe(!1))){let T=Ko(n)[0];return Lm(n,"iterationTypesOfIteratorResult",Eg(T,void 0,void 0))}if(Bv(n,SKe(!1))){let T=Ko(n)[0];return Lm(n,"iterationTypesOfIteratorResult",Eg(void 0,T,void 0))}let c=jc(n,ktt),u=c!==lt?Vc(c,"value"):void 0,p=jc(n,Dtt),h=p!==lt?Vc(p,"value"):void 0;return!u&&!h?Lm(n,"iterationTypesOfIteratorResult",ht):Lm(n,"iterationTypesOfIteratorResult",Eg(u,h||yt,void 0))}function Gie(n,a,c,u,p){var h,T,k,O,H,J;let de=ja(n,c);if(!de&&c!=="next")return;let Ae=de&&!(c==="next"&&de.flags&16777216)?c==="next"?zn(de):wf(zn(de),2097152):void 0;if(Zo(Ae))return c==="next"?wt:K;let xe=Ae?xa(Ae,0):Je;if(xe.length===0){if(u){let Jt=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;p?((h=p.errors)!=null||(p.errors=[]),p.errors.push(hr(u,Jt,c))):Fe(u,Jt,c)}return c==="next"?ht:void 0}if(Ae?.symbol&&xe.length===1){let Jt=a.getGlobalGeneratorType(!1),Cn=a.getGlobalIteratorType(!1),Rn=((k=(T=Jt.symbol)==null?void 0:T.members)==null?void 0:k.get(c))===Ae.symbol,Br=!Rn&&((H=(O=Cn.symbol)==null?void 0:O.members)==null?void 0:H.get(c))===Ae.symbol;if(Rn||Br){let Hr=Rn?Jt:Cn,{mapper:qi}=Ae;return Eg(zv(Hr.typeParameters[0],qi),zv(Hr.typeParameters[1],qi),c==="next"?zv(Hr.typeParameters[2],qi):void 0)}}let tt,It;for(let Jt of xe)c!=="throw"&&vt(Jt.parameters)&&(tt=Sn(tt,P_(Jt,0))),It=Sn(It,qo(Jt));let Tn,un;if(c!=="throw"){let Jt=tt?Gr(tt):ue;if(c==="next")un=Jt;else if(c==="return"){let Cn=a.resolveIterationType(Jt,u)||Se;Tn=Sn(Tn,Cn)}}let Nn,en=It?so(It):lt,cn=a.resolveIterationType(en,u)||Se,rr=wtt(cn);return rr===ht?(u&&(p?((J=p.errors)!=null||(p.errors=[]),p.errors.push(hr(u,a.mustHaveAValueDiagnostic,c))):Fe(u,a.mustHaveAValueDiagnostic,c)),Nn=Se,Tn=Sn(Tn,Se)):(Nn=rr.yieldType,Tn=Sn(Tn,rr.returnType)),Eg(Nn,Gr(Tn),un)}function vLe(n,a,c,u,p){let h=fLe([Gie(n,a,"next",c,u),Gie(n,a,"return",c,u),Gie(n,a,"throw",c,u)]);return p?h:Lm(n,a.iteratorCacheKey,h)}function c0(n,a,c){if(Zo(a))return;let u=bLe(a,c);return u&&u[R_e(n)]}function bLe(n,a){if(Zo(n))return wt;let c=a?2:1,u=a?ft:Yt;return _U(n,c,void 0)||Itt(n,u,void 0,void 0)}function Rtt(n){vh(n)||Hrt(n)}function pU(n,a){let c=!!(a&1),u=!!(a&2);if(c){let p=c0(1,n,u);return p?u?bg(UC(p)):p:ve}return u?bg(n)||ve:n}function ELe(n,a){let c=pU(a,pl(n));return!!c&&Js(c,16387)}function Ott(n){var a;if(vh(n))return;let c=R6(n);if(c&&oc(c)){dl(n,_.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!c){dl(n,_.A_return_statement_can_only_be_used_within_a_function_body);return}let u=ip(c),p=qo(u),h=pl(c);if(U||n.expression||p.flags&131072){let T=n.expression?Ic(n.expression):Oe;if(c.kind===175)n.expression&&Fe(n,_.Setters_cannot_return_a_value);else if(c.kind===173)n.expression&&!Ly(T,p,n,n.expression)&&Fe(n,_.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Hx(c)){let k=(a=pU(p,h))!=null?a:p,O=h&2?RD(T,!1,n,_.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):T;k&&Ly(O,k,n,n.expression)}}else c.kind!==173&&Y.noImplicitReturns&&!ELe(c,p)&&Fe(n,_.Not_all_code_paths_return_a_value)}function Ntt(n){vh(n)||n.flags&32768&&dl(n,_.with_statements_are_not_allowed_in_an_async_function_block),Yi(n.expression);let a=Gn(n);if(!l0(a)){let c=Pg(a,n.pos).start,u=n.statement.pos;u0(a,c,u-c,_.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Ptt(n){vh(n);let a,c=!1,u=Yi(n.expression);mn(n.caseBlock.clauses,p=>{p.kind===293&&!c&&(a===void 0?a=p:(an(p,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),p.kind===292&&i(h(p)),mn(p.statements,qa),Y.noFallthroughCasesInSwitch&&p.fallthroughFlowNode&&IM(p.fallthroughFlowNode)&&Fe(p,_.Fallthrough_case_in_switch);function h(T){return()=>{let k=Yi(T.expression);yie(u,k)||e2e(k,u,T.expression,void 0)}}}),n.caseBlock.locals&&Dy(n.caseBlock)}function Mtt(n){vh(n)||jn(n.parent,a=>Ia(a)?"quit":a.kind===253&&a.label.escapedText===n.label.escapedText?(an(n.label,_.Duplicate_label_0,Qc(n.label)),!0):!1),qa(n.statement)}function Ftt(n){vh(n)||Re(n.expression)&&!n.expression.escapedText&&ait(n,_.Line_break_not_permitted_here),n.expression&&Yi(n.expression)}function Gtt(n){vh(n),dU(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;ZM(c);let u=Cl(c);if(u){let p=$r(u);p&&!(p.flags&3)&&dl(u,_.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)dl(c.initializer,_.Catch_clause_variable_cannot_have_an_initializer);else{let p=a.block.locals;p&&TI(a.locals,h=>{let T=p.get(h);T?.valueDeclaration&&T.flags&2&&an(T.valueDeclaration,_.Cannot_redeclare_identifier_0_in_catch_clause,h)})}}dU(a.block)}n.finallyBlock&&dU(n.finallyBlock)}function mU(n,a,c){let u=tu(n);if(u.length===0)return;for(let h of Ey(n))c&&h.flags&4194304||TLe(n,h,TC(h,8576,!0),Gv(h));let p=a.valueDeclaration;if(p&&Yr(p)){for(let h of p.members)if(!Ca(h)&&!Ux(h)){let T=fr(h);TLe(n,T,au(h.name.expression),Gv(T))}}if(u.length>1)for(let h of u)Btt(n,h)}function TLe(n,a,c,u){let p=a.valueDeclaration,h=sa(p);if(h&&pi(h))return;let T=Zte(n,c),k=Ur(n)&2?nc(n.symbol,261):void 0,O=p&&p.kind===223||h&&h.kind===164?p:void 0,H=ju(a)===n.symbol?p:void 0;for(let J of T){let de=J.declaration&&ju(fr(J.declaration))===n.symbol?J.declaration:void 0,Ae=H||de||(k&&!vt(_o(n),xe=>!!qb(xe,a.escapedName)&&!!fg(xe,J.keyType))?k:void 0);if(Ae&&!to(u,J.type)){let xe=hE(Ae,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,E(a),Ee(u),Ee(J.keyType),Ee(J.type));O&&Ae!==O&&Ao(xe,hr(O,_._0_is_declared_here,E(a))),Lo.add(xe)}}}function Btt(n,a){let c=a.declaration,u=Zte(n,a.keyType),p=Ur(n)&2?nc(n.symbol,261):void 0,h=c&&ju(fr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let k=T.declaration&&ju(fr(T.declaration))===n.symbol?T.declaration:void 0,O=h||k||(p&&!vt(_o(n),H=>!!Cm(H,a.keyType)&&!!fg(H,T.keyType))?p:void 0);O&&!to(a.type,T.type)&&Fe(O,_._0_index_type_1_is_not_assignable_to_2_index_type_3,Ee(a.keyType),Ee(a.type),Ee(T.keyType),Ee(T.type))}}function HC(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Fe(n,a,n.escapedText)}}function Utt(n){R>=1&&n.escapedText==="Object"&&(ie<5||Gn(n).impliedNodeFormat===1)&&Fe(n,_.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,F8[ie])}function Vtt(n){let a=Pr(A0(n),xp);if(!Fn(a))return;let c=Yn(n),u=new Set,p=new Set;if(mn(n.parameters,({name:T},k)=>{Re(T)&&u.add(T.escapedText),La(T)&&p.add(k)}),nne(n)){let T=a.length-1,k=a[T];c&&k&&Re(k.name)&&k.typeExpression&&k.typeExpression.type&&!u.has(k.name.escapedText)&&!p.has(T)&&!_f($r(k.typeExpression.type))&&Fe(k.name,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,vr(k.name))}else mn(a,({name:T,isNameFirst:k},O)=>{p.has(O)||Re(T)&&u.has(T.escapedText)||(Yu(T)?c&&Fe(T,_.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,qd(T),qd(T.left)):k||Ip(c,T,_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,vr(T)))})}function t8(n){let a=!1;if(n)for(let u=0;u<n.length;u++){let p=n[u];BIe(p),i(c(p,u))}function c(u,p){return()=>{u.default?(a=!0,jtt(u.default,n,p)):a&&Fe(u,_.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h<p;h++)n[h].symbol===u.symbol&&Fe(u.name,_.Duplicate_identifier_0,os(u.name))}}}function jtt(n,a,c){u(n);function u(p){if(p.kind===180){let h=dne(p);if(h.flags&262144)for(let T=c;T<a.length;T++)h.symbol===fr(a[T])&&Fe(p,_.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}pa(p,u)}}function SLe(n){if(n.declarations&&n.declarations.length===1)return;let a=Ai(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;let c=Ytt(n);if(!c||c.length<=1)return;let u=gs(n);if(!xLe(c,u.localTypeParameters,jy)){let p=E(n);for(let h of c)Fe(h.name,_.All_declarations_of_0_must_have_identical_type_parameters,p)}}}function xLe(n,a,c){let u=Fn(a),p=Mp(a);for(let h of n){let T=c(h),k=T.length;if(k<p||k>u)return!1;for(let O=0;O<k;O++){let H=T[O],J=a[O];if(H.name.escapedText!==J.symbol.escapedName)return!1;let de=EA(H),Ae=de&&$r(de),xe=eu(J);if(Ae&&xe&&!ph(Ae,xe))return!1;let tt=H.default&&$r(H.default),It=jE(J);if(tt&&It&&!ph(tt,It))return!1}}return!0}function ALe(n){var a;let c=!$&&R<99&&O0(!1,n),u=R<=9,p=!fe||R<9;if(c||u)for(let h of n.members){if(c&&AH(!1,h,n))return(a=Sl(Uy(n)))!=null?a:n;if(u){if(oc(h))return h;if(Ca(h)&&(xu(h)||p&&sN(h)))return h}}}function Htt(n){var a;if(n.name)return;let c=rde(n);if(!VH(c))return;let u=!$&&R<99,p;u&&O0(!1,n)?p=(a=Sl(Uy(n)))!=null?a:n:p=ALe(n),p&&(Hc(p,8388608),(yl(c)||Na(c)||Wo(c))&&ts(c.name)&&Hc(p,16777216))}function Wtt(n){return CLe(n),zC(n),Htt(n),zn(fr(n))}function ztt(n){mn(n.members,qa),Dy(n)}function Jtt(n){let a=wr(n.modifiers,du);$&&a&&vt(n.members,c=>zc(c)&&xu(c))&&an(a,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Mr(n,1024)&&dl(n,_.A_class_declaration_without_the_default_modifier_must_have_a_name),CLe(n),mn(n.members,qa),Dy(n)}function CLe(n){Lrt(n),XM(n),jC(n,n.name),t8(jy(n)),kD(n);let a=fr(n),c=gs(a),u=uf(c),p=zn(a);SLe(a),cU(a),oet(n),!!(n.flags&16777216)||set(n);let T=hp(n);if(T){mn(T.typeArguments,qa),R<2&&Hc(T.parent,1);let H=P0(n);H&&H!==T&&Yi(H.expression);let J=_o(c);J.length&&i(()=>{let de=J[0],Ae=Wr(c),xe=Eu(Ae);if(qtt(xe,T),qa(T.expression),vt(T.typeArguments)){mn(T.typeArguments,qa);for(let It of Or(xe,T.typeArguments,T))if(!JIe(T,It.typeParameters))break}let tt=uf(de,c.thisType);if(wu(u,tt,void 0)?wu(p,KAe(xe),n.name||n,_.Class_static_side_0_incorrectly_extends_base_class_static_side_1):kLe(n,u,tt,_.Class_0_incorrectly_extends_base_class_1),Ae.flags&8650752&&(XP(p)?xa(Ae,1).some(Tn=>Tn.flags&4)&&!Mr(n,256)&&Fe(n.name||n,_.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Fe(n.name||n,_.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(xe.symbol&&xe.symbol.flags&32)&&!(Ae.flags&8650752)){let It=xr(xe,T.typeArguments,T);mn(It,Tn=>!cp(Tn.declaration)&&!ph(qo(Tn),de))&&Fe(T.expression,_.Base_constructors_must_all_have_the_same_return_type)}$tt(c,de)})}Ktt(n,c,u,p);let k=JA(n);if(k)for(let H of k)(!bc(H.expression)||Jl(H.expression))&&Fe(H.expression,_.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Aie(H),i(O(H));i(()=>{mU(c,a),mU(p,a,!0),Tie(n),ent(n)});function O(H){return()=>{let J=O_($r(H));if(!Ro(J))if(xm(J)){let de=J.symbol&&J.symbol.flags&32?_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_.Class_0_incorrectly_implements_interface_1,Ae=uf(J,c.thisType);wu(u,Ae,void 0)||kLe(n,u,Ae,de)}else Fe(H,_.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Ktt(n,a,c,u){let h=hp(n)&&_o(a),T=h?.length?uf(Vo(h),a.thisType):void 0,k=Wr(a);for(let O of n.members)aW(O)||(Ec(O)&&mn(O.parameters,H=>{Ad(H,O)&&ILe(n,u,k,T,a,c,H,!0)}),ILe(n,u,k,T,a,c,O,!1))}function ILe(n,a,c,u,p,h,T,k,O=!0){let H=T.name&&Zf(T.name)||Zf(T);return H?LLe(n,a,c,u,p,h,iW(T),B0(T),Ca(T),k,fc(H),O?T:void 0):0}function LLe(n,a,c,u,p,h,T,k,O,H,J,de){let Ae=Yn(n),xe=!!(n.flags&16777216);if(u&&(T||Y.noImplicitOverride)){let tt=Bs(J),It=O?a:h,Tn=O?c:u,un=ja(It,tt),Nn=ja(Tn,tt),en=Ee(u);if(un&&!Nn&&T){if(de){let cn=UCe(J,Tn);cn?Fe(de,Ae?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,en,E(cn)):Fe(de,Ae?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,en)}return 2}else if(un&&Nn?.declarations&&Y.noImplicitOverride&&!xe){let cn=vt(Nn.declarations,B0);if(T)return 0;if(cn){if(k&&cn)return de&&Fe(de,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,en),1}else{if(de){let rr=H?Ae?_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ae?_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Fe(de,rr,en)}return 1}}}else if(T){if(de){let tt=Ee(p);Fe(de,Ae?_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,tt)}return 2}return 0}function kLe(n,a,c,u){let p=!1;for(let h of n.members){if(Ca(h))continue;let T=h.name&&Zf(h.name)||Zf(h);if(T){let k=ja(a,T.escapedName),O=ja(c,T.escapedName);if(k&&O){let H=()=>da(void 0,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,E(T),Ee(a),Ee(c));wu(zn(k),zn(O),h.name||h,void 0,H)||(p=!0)}}}p||wu(a,c,n.name||n,u)}function qtt(n,a){let c=xa(n,1);if(c.length){let u=c[0].declaration;if(u&&cd(u,8)){let p=Nh(n.symbol);Hie(a,p)||Fe(a,_.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,rh(n.symbol))}}}function Xtt(n,a,c){if(!a.name)return 0;let u=fr(n),p=gs(u),h=uf(p),T=zn(u),O=hp(n)&&_o(p),H=O?.length?uf(Vo(O),p.thisType):void 0,J=Wr(p),de=a.parent?iW(a):Mr(a,16384);return LLe(n,T,J,H,p,h,de,B0(a),Ca(a),!1,fc(c))}function oA(n){return ac(n)&1?n.links.target:n}function Ytt(n){return Pr(n.declarations,a=>a.kind===260||a.kind===261)}function $tt(n,a){var c,u,p,h;let T=Jo(a);e:for(let k of T){let O=oA(k);if(O.flags&4194304)continue;let H=qb(n,O.escapedName);if(!H)continue;let J=oA(H),de=Ef(O);if(L.assert(!!J,"derived should point to something, even if it is the base class' declaration."),J===O){let Ae=Nh(n.symbol);if(de&256&&(!Ae||!Mr(Ae,256))){for(let xe of _o(n)){if(xe===a)continue;let tt=qb(xe,O.escapedName),It=tt&&oA(tt);if(It&&It!==O)continue e}Ae.kind===228?Fe(Ae,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,E(k),Ee(a)):Fe(Ae,_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ee(n),E(k),Ee(a))}}else{let Ae=Ef(J);if(de&8||Ae&8)continue;let xe,tt=O.flags&98308,It=J.flags&98308;if(tt&&It){if((ac(O)&6?(c=O.declarations)!=null&&c.some(Nn=>DLe(Nn,de)):(u=O.declarations)!=null&&u.every(Nn=>DLe(Nn,de)))||ac(O)&262144||J.valueDeclaration&&ar(J.valueDeclaration))continue;let Tn=tt!==4&&It===4;if(Tn||tt===4&&It!==4){let Nn=Tn?_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Fe(sa(J.valueDeclaration)||J.valueDeclaration,Nn,E(O),Ee(a),Ee(n))}else if(fe){let Nn=(p=J.declarations)==null?void 0:p.find(en=>en.kind===169&&!en.initializer);if(Nn&&!(J.flags&33554432)&&!(de&256)&&!(Ae&256)&&!((h=J.declarations)!=null&&h.some(en=>!!(en.flags&16777216)))){let en=wv(Nh(n.symbol)),cn=Nn.name;if(Nn.exclamationToken||!en||!Re(cn)||!U||!RLe(cn,n,en)){let rr=_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Fe(sa(J.valueDeclaration)||J.valueDeclaration,rr,E(O),Ee(a))}}}continue}else if(jre(O)){if(jre(J)||J.flags&4)continue;L.assert(!!(J.flags&98304)),xe=_.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else O.flags&98304?xe=_.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:xe=_.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Fe(sa(J.valueDeclaration)||J.valueDeclaration,xe,Ee(a),E(O),Ee(n))}}}function DLe(n,a){return a&256&&(!Na(n)||!n.initializer)||ku(n.parent)}function Qtt(n,a,c){if(!Fn(a))return c;let u=new Map;mn(c,p=>{u.set(p.escapedName,p)});for(let p of a){let h=Jo(uf(p,n.thisType));for(let T of h){let k=u.get(T.escapedName);k&&T.parent===k.parent&&u.delete(T.escapedName)}}return lo(u.values())}function Ztt(n,a){let c=_o(n);if(c.length<2)return!0;let u=new Map;mn(Nte(n).declaredProperties,h=>{u.set(h.escapedName,{prop:h,containingType:n})});let p=!0;for(let h of c){let T=Jo(uf(h,n.thisType));for(let k of T){let O=u.get(k.escapedName);if(!O)u.set(k.escapedName,{prop:k,containingType:h});else if(O.containingType!==n&&!hXe(O.prop,k)){p=!1;let J=Ee(O.containingType),de=Ee(h),Ae=da(void 0,_.Named_property_0_of_types_1_and_2_are_not_identical,E(k),J,de);Ae=da(Ae,_.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ee(n),J,de),Lo.add(Lh(Gn(a),a,Ae))}}}return p}function ent(n){if(!U||!_e||n.flags&16777216)return;let a=wv(n);for(let c of n.members)if(!(uu(c)&2)&&!Ca(c)&&wLe(c)){let u=c.name;if(Re(u)||pi(u)||ts(u)){let p=zn(fr(c));p.flags&3||xC(p)||(!a||!RLe(u,p,a))&&Fe(c.name,_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,os(u))}}}function wLe(n){return n.kind===169&&!B0(n)&&!n.exclamationToken&&!n.initializer}function tnt(n,a,c,u,p){for(let h of c)if(h.pos>=u&&h.pos<=p){let T=D.createPropertyAccessExpression(D.createThis(),n);go(T.expression,T),go(T,h),T.flowNode=h.returnFlowNode;let k=Yv(T,a,gg(a));if(!xC(k))return!0}return!1}function RLe(n,a,c){let u=ts(n)?D.createElementAccessExpression(D.createThis(),n.expression):D.createPropertyAccessExpression(D.createThis(),n);go(u.expression,u),go(u,c),u.flowNode=c.returnFlowNode;let p=Yv(u,a,gg(a));return!xC(p)}function nnt(n){km(n)||Prt(n),t8(n.typeParameters),i(()=>{HC(n.name,_.Interface_name_cannot_be_0),kD(n);let a=fr(n);SLe(a);let c=nc(a,261);if(n===c){let u=gs(a),p=uf(u);if(Ztt(u,n.name)){for(let h of _o(u))wu(p,uf(h,u.thisType),n.name,_.Interface_0_incorrectly_extends_interface_1);mU(u,a)}}jIe(n)}),mn(PI(n),a=>{(!bc(a.expression)||Jl(a.expression))&&Fe(a.expression,_.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Aie(a)}),mn(n.members,qa),i(()=>{Tie(n),Dy(n)})}function rnt(n){km(n),HC(n.name,_.Type_alias_name_cannot_be_0),kD(n),t8(n.typeParameters),n.type.kind===139?(!rN.has(n.name.escapedText)||Fn(n.typeParameters)!==1)&&Fe(n.type,_.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(qa(n.type),Dy(n))}function OLe(n){let a=Rr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let p=int(u,c);Rr(u).enumMemberValue=p,c=typeof p=="number"?p+1:void 0}}}function int(n,a){if(Vw(n.name))Fe(n.name,_.Computed_property_names_are_not_allowed_in_enums);else{let c=wA(n.name);Wm(c)&&!cL(c)&&Fe(n.name,_.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return ant(n);if(!(n.parent.flags&16777216&&!R0(n.parent))){if(a!==void 0)return a;Fe(n.name,_.Enum_member_must_have_initializer)}}function ant(n){let a=R0(n.parent),c=n.initializer,u=WC(c,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&Fe(c,isNaN(u)?_.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Fe(c,_.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&16777216?Fe(c,_.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):wu(Yi(c),rt,c,_.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function WC(n,a){switch(n.kind){case 221:let c=WC(n.operand,a);if(typeof c=="number")switch(n.operator){case 39:return c;case 40:return-c;case 54:return~c}break;case 223:let u=WC(n.left,a),p=WC(n.right,a);if(typeof u=="number"&&typeof p=="number")switch(n.operatorToken.kind){case 51:return u|p;case 50:return u&p;case 48:return u>>p;case 49:return u>>>p;case 47:return u<<p;case 52:return u^p;case 41:return u*p;case 43:return u/p;case 39:return u+p;case 40:return u-p;case 44:return u%p;case 42:return u**p}else if((typeof u=="string"||typeof u=="number")&&(typeof p=="string"||typeof p=="number")&&n.operatorToken.kind===39)return""+u+p;break;case 10:case 14:return n.text;case 225:return ont(n,a);case 8:return eae(n),+n.text;case 214:return WC(n.expression,a);case 79:if(cL(n.escapedText))return+n.escapedText;case 208:if(bc(n)){let T=uc(n,111551,!0);if(T){if(T.flags&8)return NLe(n,T,a);if(wC(T)){let k=T.valueDeclaration;if(k&&!k.type&&k.initializer&&k!==a&&$h(k,a))return WC(k.initializer,k)}}}break;case 209:let h=n.expression;if(bc(h)&&es(n.argumentExpression)){let T=uc(h,111551,!0);if(T&&T.flags&384){let k=Bs(n.argumentExpression.text),O=T.exports.get(k);if(O)return NLe(n,O,a)}}break}}function NLe(n,a,c){let u=a.valueDeclaration;if(!u||u===c){Fe(n,_.Property_0_is_used_before_being_assigned,E(a));return}return $h(u,c)?xU(u):(Fe(n,_.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function ont(n,a){let c=n.head.text;for(let u of n.templateSpans){let p=WC(u.expression,a);if(p===void 0)return;c+=p,c+=u.literal.text}return c}function snt(n){i(()=>cnt(n))}function cnt(n){km(n),jC(n,n.name),kD(n),n.members.forEach(lnt),OLe(n);let a=fr(n),c=nc(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let p=R0(n);mn(a.declarations,h=>{hb(h)&&R0(h)!==p&&Fe(sa(h),_.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;mn(a.declarations,p=>{if(p.kind!==263)return!1;let h=p;if(!h.members.length)return!1;let T=h.members[0];T.initializer||(u?Fe(T.name,_.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function lnt(n){pi(n.name)&&Fe(n,_.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Yi(n.initializer)}function unt(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===260||c.kind===259&&Pf(c.body))&&!(c.flags&16777216))return c}}function dnt(n,a){let c=tm(n),u=tm(a);return gm(c)?gm(u):gm(u)?!1:c===u}function fnt(n){n.body&&(qa(n.body),mp(n)||Dy(n)),i(a);function a(){var c,u;let p=mp(n),h=n.flags&16777216;p&&!h&&Fe(n.name,_.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=lu(n),k=T?_.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(n8(n,k))return;km(n)||!h&&n.name.kind===10&&an(n.name,_.Only_ambient_modules_can_use_quoted_names),Re(n.name)&&jC(n,n.name),kD(n);let O=fr(n);if(O.flags&512&&!h&&fK(n,U0(Y))){if(d_(Y)&&!Gn(n).externalModuleIndicator&&Fe(n.name,_.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Rt),((c=O.declarations)==null?void 0:c.length)>1){let H=unt(O);H&&(Gn(n)!==Gn(H)?Fe(n.name,_.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<H.pos&&Fe(n.name,_.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));let J=nc(O,260);J&&dnt(n,J)&&(Rr(n).flags|=2048)}if(Y.verbatimModuleSyntax&&n.parent.kind===308&&(ie===1||n.parent.impliedNodeFormat===1)){let H=(u=n.modifiers)==null?void 0:u.find(J=>J.kind===93);H&&Fe(H,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(D0(n)){if((p||fr(n).flags&33554432)&&n.body)for(let J of n.body.statements)Bie(J,p)}else gm(n.parent)?p?Fe(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):fl(l_(n.name))&&Fe(n.name,_.Ambient_module_declaration_cannot_specify_relative_module_name):p?Fe(n.name,_.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Fe(n.name,_.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Bie(n,a){switch(n.kind){case 240:for(let u of n.declarationList.declarations)Bie(u,a);break;case 274:case 275:dl(n,_.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 268:case 269:dl(n,_.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 205:case 257:let c=n.name;if(La(c)){for(let u of c.elements)Bie(u,a);break}case 260:case 263:case 259:case 261:case 264:case 262:if(a)return;break}}function _nt(n){switch(n.kind){case 79:return n;case 163:do n=n.left;while(n.kind!==79);return n;case 208:do{if(Bm(n.expression)&&!pi(n.name))return n.name;n=n.expression}while(n.kind!==79);return n}}function Uie(n){let a=UA(n);if(!a||rc(a))return!1;if(!yo(a))return Fe(a,_.String_literal_expected),!1;let c=n.parent.kind===265&&lu(n.parent.parent);if(n.parent.kind!==308&&!c)return Fe(a,n.kind===275?_.Export_declarations_are_not_permitted_in_a_namespace:_.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&fl(a.text)&&!Td(n))return Fe(n,_.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Nl(n)&&n.assertClause){let u=!1;for(let p of n.assertClause.elements)yo(p.value)||(u=!0,Fe(p.value,_.Import_assertion_values_must_be_string_literal_expressions));return!u}return!0}function hU(n){var a,c,u,p,h;let T=fr(n),k=wc(T);if(k!==Ht){if(T=No(T.exportSymbol||T),Yn(n)&&!(k.flags&111551)&&!I0(n)){let J=eS(n)?n.propertyName||n.name:zl(n)?n.name:n;if(L.assert(n.kind!==277),n.kind===278){let de=Fe(J,_.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Ae=(c=(a=Gn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(Ae===k){let xe=(u=Ae.declarations)==null?void 0:u.find(IA);xe&&Ao(de,hr(xe,_._0_is_automatically_exported_here,Gi(Ae.escapedName)))}}else{L.assert(n.kind!==257);let de=jn(n,Kp(gl,Nl)),Ae=(h=de&&((p=iR(de))==null?void 0:p.text))!=null?h:"...",xe=Gi(Re(J)?J.escapedText:T.escapedName);Fe(J,_._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,xe,`import("${Ae}").${xe}`)}return}let O=Fl(k),H=(T.flags&1160127?111551:0)|(T.flags&788968?788968:0)|(T.flags&1920?1920:0);if(O&H){let J=n.kind===278?_.Export_declaration_conflicts_with_exported_declaration_of_0:_.Import_declaration_conflicts_with_local_declaration_of_0;Fe(n,J,E(T))}if(d_(Y)&&!I0(n)&&!(n.flags&16777216)){let J=nd(T),de=!(O&111551);if(de||J)switch(n.kind){case 270:case 273:case 268:{if(Y.preserveValueImports||Y.verbatimModuleSyntax){L.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let Ae=Y.verbatimModuleSyntax&&GA(n)?_.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:de?Y.verbatimModuleSyntax?_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Y.verbatimModuleSyntax?_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,xe=vr(n.kind===273&&n.propertyName||n.name);v1(Fe(n,Ae,xe),de?void 0:J,xe)}de&&n.kind===268&&cd(n,1)&&Fe(n,_.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Rt);break}case 278:if(Y.verbatimModuleSyntax||Gn(J)!==Gn(n)){let Ae=vr(n.propertyName||n.name),xe=de?Fe(n,_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Rt):Fe(n,_._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Ae,Rt);v1(xe,de?void 0:J,Ae);break}}Y.verbatimModuleSyntax&&n.kind!==268&&!Yn(n)&&(ie===1||Gn(n).impliedNodeFormat===1)&&Fe(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if($u(n)){let J=MLe(T,n);PLe(J)&&J.declarations&&Xh(n,J.declarations,J.escapedName)}}}function PLe(n){return!!n.declarations&&Ji(n.declarations,a=>!!(G_(a)&268435456))}function MLe(n,a){if(!(n.flags&2097152))return n;let c=wc(n);if(c===Ht)return c;for(;n.flags&2097152;){let u=Mre(n);if(u){if(u===c)break;if(u.declarations&&Fn(u.declarations))if(PLe(u)){Xh(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function gU(n){jC(n,n.name),hU(n),n.kind===273&&vr(n.propertyName||n.name)==="default"&&f_(Y)&&ie!==4&&(ie<5||Gn(n).impliedNodeFormat===1)&&Hc(n,131072)}function FLe(n){var a;if(n.assertClause){let c=oq(n),u=qS(n.assertClause,c?an:void 0);if(c&&u)return TR()||an(n.assertClause,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),$s(Y)!==3&&$s(Y)!==99?an(n.assertClause,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((ie===199&&n.moduleSpecifier&&ty(n.moduleSpecifier))!==99&&ie!==99)return an(n.assertClause,ie===199?_.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:_.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(gl(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return an(n.assertClause,_.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(u)return an(n.assertClause,_.resolution_mode_can_only_be_set_for_type_only_imports)}}function pnt(n){if(!n8(n,Yn(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!km(n)&&n4(n)&&dl(n,_.An_import_declaration_cannot_have_modifiers),Uie(n)){let a=n.importClause;a&&!sit(a)&&(a.name&&gU(a),a.namedBindings&&(a.namedBindings.kind===271?(gU(a.namedBindings),ie!==4&&(ie<5||Gn(n).impliedNodeFormat===1)&&f_(Y)&&Hc(n,65536)):Gl(n,n.moduleSpecifier)&&mn(a.namedBindings.elements,gU)))}FLe(n)}}function mnt(n){if(!n8(n,Yn(n)?_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(km(n),GA(n)||Uie(n)))if(gU(n),Mr(n,1)&&TE(n),n.moduleReference.kind!==280){let a=wc(fr(n));if(a!==Ht){let c=Fl(a);if(c&111551){let u=Yd(n.moduleReference);uc(u,112575).flags&1920||Fe(u,_.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,os(u))}c&788968&&HC(n.name,_.Import_name_cannot_be_0)}n.isTypeOnly&&an(n,_.An_import_alias_cannot_use_import_type)}else ie>=5&&Gn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&16777216)&&an(n,_.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function hnt(n){if(!n8(n,Yn(n)?_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!km(n)&&Wce(n)&&dl(n,_.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&h_(n.exportClause)&&Fn(n.exportClause.elements)&&R===0&&Hc(n,4194304),gnt(n),!n.moduleSpecifier||Uie(n))if(n.exportClause&&!qm(n.exportClause)){mn(n.exportClause.elements,Snt);let a=n.parent.kind===265&&lu(n.parent.parent),c=!a&&n.parent.kind===265&&!n.moduleSpecifier&&n.flags&16777216;n.parent.kind!==308&&!a&&!c&&Fe(n,_.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=Gl(n,n.moduleSpecifier);a&&AE(a)?Fe(n.moduleSpecifier,_.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,E(a)):n.exportClause&&hU(n.exportClause),ie!==4&&(ie<5||Gn(n).impliedNodeFormat===1)&&(n.exportClause?f_(Y)&&Hc(n,65536):Hc(n,32768))}FLe(n)}}function gnt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===276?pke(n.exportClause):!1}function n8(n,a){let c=n.parent.kind===308||n.parent.kind===265||n.parent.kind===264;return c||dl(n,a),!c}function ynt(n){return z6(n,a=>!!fr(a).isReferenced)}function vnt(n){return z6(n,a=>!!Ai(fr(a)).constEnumReferenced)}function bnt(n){return gl(n)&&n.importClause&&!n.importClause.isTypeOnly&&ynt(n.importClause)&&!SU(n.importClause,!0)&&!vnt(n.importClause)}function Ent(n){return Nl(n)&&um(n.moduleReference)&&!n.isTypeOnly&&fr(n).isReferenced&&!SU(n,!1)&&!Ai(fr(n)).constEnumReferenced}function Tnt(n){for(let a of n.statements)(bnt(a)||Ent(a))&&Fe(a,_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Snt(n){if(hU(n),__(Y)&&ME(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)f_(Y)&&ie!==4&&(ie<5||Gn(n).impliedNodeFormat===1)&&vr(n.propertyName||n.name)==="default"&&Hc(n,131072);else{let a=n.propertyName||n.name,c=zs(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Le||c===Ye||c.declarations&&gm(FE(c.declarations[0]))))Fe(a,_.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,vr(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&TE(n);let u=c&&(c.flags&2097152?wc(c):c);(!u||Fl(u)&111551)&&Ic(n.propertyName||n.name)}}}function xnt(n){let a=n.isExportEquals?_.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(n8(n,a))return;let c=n.parent.kind===308?n.parent:n.parent.parent;if(c.kind===264&&!lu(c)){n.isExportEquals?Fe(n,_.An_export_assignment_cannot_be_used_in_a_namespace):Fe(n,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!km(n)&&n4(n)&&dl(n,_.An_export_assignment_cannot_have_modifiers);let u=Cl(n);u&&wu(Ic(n.expression),$r(u),n.expression);let p=!n.isExportEquals&&!(n.flags&16777216)&&Y.verbatimModuleSyntax&&(ie===1||Gn(n).impliedNodeFormat===1);if(n.expression.kind===79){let h=n.expression,T=tp(uc(h,67108863,!0,!0,n));T?(FB(T,h),Fl(T)&111551?(Ic(h),!p&&Y.verbatimModuleSyntax&&nd(T,111551)&&Fe(h,n.isExportEquals?_.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,vr(h))):!p&&Y.verbatimModuleSyntax&&Fe(h,n.isExportEquals?_.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,vr(h))):Ic(h),__(Y)&&ME(h,!0)}else Ic(n.expression);p&&Fe(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),GLe(c),n.flags&16777216&&!bc(n.expression)&&an(n.expression,_.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(ie>=5&&(n.flags&16777216&&Gn(n).impliedNodeFormat===99||!(n.flags&16777216)&&Gn(n).impliedNodeFormat!==1)?an(n,_.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ie===4&&!(n.flags&16777216)&&an(n,_.Export_assignment_is_not_supported_when_module_flag_is_system))}function Ant(n){return Ld(n.exports,(a,c)=>c!=="export=")}function GLe(n){let a=fr(n),c=Ai(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&Ant(a)){let h=Uu(u)||u.valueDeclaration;h&&!Td(h)&&!Yn(h)&&Fe(h,_.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let p=sh(a);p&&p.forEach(({declarations:h,flags:T},k)=>{if(k==="__export"||T&1920)return;let O=Oy(h,g8(O_e,y8(ku)));if(!(T&524288&&O<=2)&&O>1&&!yU(h))for(let H of h)D_e(H)&&Lo.add(hr(H,_.Cannot_redeclare_exported_variable_0,Gi(k)))}),c.exportsChecked=!0}}function yU(n){return n&&n.length>1&&n.every(a=>Yn(a)&&Us(a)&&(TT(a.expression)||Bm(a.expression)))}function qa(n){if(n){let a=P;P=n,A=0,Cnt(n),P=a}}function Cnt(n){lR(n)&&mn(n.jsDoc,({comment:c,tags:u})=>{BLe(c),mn(u,p=>{BLe(p.comment),Yn(n)&&qa(p)})});let a=n.kind;if(o)switch(a){case 264:case 260:case 261:case 259:o.throwIfCancellationRequested()}switch(a>=240&&a<=256&&cR(n)&&n.flowNode&&!IM(n.flowNode)&&Ip(Y.allowUnreachableCode===!1,n,_.Unreachable_code_detected),a){case 165:return BIe(n);case 166:return UIe(n);case 169:return HIe(n);case 168:return cet(n);case 182:case 181:case 176:case 177:case 178:return LD(n);case 171:case 170:return uet(n);case 172:return det(n);case 173:return fet(n);case 174:case 175:return zIe(n);case 180:return Aie(n);case 179:return iet(n);case 183:return yet(n);case 184:return vet(n);case 185:return bet(n);case 186:return Eet(n);case 189:case 190:return Tet(n);case 193:case 187:case 188:return qa(n.type);case 194:return Iet(n);case 195:return Let(n);case 191:return ket(n);case 192:return Det(n);case 200:return wet(n);case 202:return Ret(n);case 199:return Oet(n);case 331:return $et(n);case 332:return Yet(n);case 349:case 341:case 343:return jet(n);case 348:return Het(n);case 347:return Wet(n);case 327:case 328:case 329:return Jet(n);case 344:return Ket(n);case 351:return qet(n);case 320:Xet(n);case 318:case 317:case 315:case 316:case 325:ULe(n),pa(n,qa);return;case 321:Int(n);return;case 312:return qa(n.type);case 336:case 338:case 337:return Qet(n);case 353:return zet(n);case 196:return xet(n);case 197:return Aet(n);case 259:return Vet(n);case 238:case 265:return dU(n);case 240:return mtt(n);case 241:return htt(n);case 242:return gtt(n);case 243:return btt(n);case 244:return Ett(n);case 245:return Ttt(n);case 246:return xtt(n);case 247:return Stt(n);case 248:case 249:return Rtt(n);case 250:return Ott(n);case 251:return Ntt(n);case 252:return Ptt(n);case 253:return Mtt(n);case 254:return Ftt(n);case 255:return Gtt(n);case 257:return Die(n);case 205:return ptt(n);case 260:return Jtt(n);case 261:return nnt(n);case 262:return rnt(n);case 263:return snt(n);case 264:return fnt(n);case 269:return pnt(n);case 268:return mnt(n);case 275:return hnt(n);case 274:return xnt(n);case 239:case 256:vh(n);return;case 279:return pet(n)}}function BLe(n){ba(n)&&mn(n,a=>{iS(a)&&qa(a)})}function ULe(n){if(!Yn(n))if(m3(n)||T2(n)){let a=Xa(m3(n)?53:57),c=n.postfix?_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,p=$r(u);an(n,c,a,Ee(T2(n)&&!(p===lt||p===yt)?Gr(Sn([p,Oe],n.postfix?void 0:ln)):p))}else an(n,_.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Int(n){ULe(n),qa(n.type);let{parent:a}=n;if(ha(a)&&S2(a.parent)){To(a.parent.parameters)!==a&&Fe(n,_.A_rest_parameter_must_be_last_in_a_parameter_list);return}UT(a)||Fe(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!xp(c)){Fe(n,_.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=uR(c);if(!u)return;let p=sb(c);(!p||To(p.parameters).symbol!==u)&&Fe(n,_.A_rest_parameter_must_be_last_in_a_parameter_list)}function Lnt(n){let a=$r(n.type),{parent:c}=n,u=n.parent.parent;if(UT(n.parent)&&xp(u)){let p=sb(u),h=Vz(u.parent.parent);if(p||h){let T=Os(h?u.parent.parent.typeExpression.parameters:p.parameters),k=uR(u);if(!T||k&&T.symbol===k&&Fm(T))return nu(a)}}return ha(c)&&S2(c.parent)?nu(a):ao(a)}function zC(n){let a=Gn(n),c=Rr(a);c.flags&1?L.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function knt(n){let a=Rr(n);a.deferredNodes&&a.deferredNodes.forEach(Dnt),a.deferredNodes=void 0}function Dnt(n){var a,c;(a=ai)==null||a.push(ai.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let u=P;switch(P=n,A=0,n.kind){case 210:case 211:case 212:case 167:case 283:nA(n);break;case 215:case 216:case 171:case 170:EZe(n);break;case 174:case 175:zIe(n);break;case 228:ztt(n);break;case 165:ret(n);break;case 282:N$e(n);break;case 281:M$e(n);break}P=u,(c=ai)==null||c.pop()}function wnt(n){var a,c;(a=ai)==null||a.push(ai.Phase.Check,"checkSourceFile",{path:n.path},!0),Fs("beforeCheck"),Rnt(n),Fs("afterCheck"),hf("Check","beforeCheck","afterCheck"),(c=ai)==null||c.pop()}function VLe(n,a){if(a)return!1;switch(n){case 0:return!!Y.noUnusedLocals;case 1:return!!Y.noUnusedParameters;default:return L.assertNever(n)}}function jLe(n){return rn.get(n.path)||Je}function Rnt(n){let a=Rr(n);if(!(a.flags&1)){if(rL(n,Y,e))return;nit(n),Om(pE),Om(vv),Om(Lb),Om(bv),Om(m1),mn(n.statements,qa),qa(n.endOfFileToken),knt(n),kd(n)&&Dy(n),i(()=>{!n.isDeclarationFile&&(Y.noUnusedLocals||Y.noUnusedParameters)&&rLe(jLe(n),(c,u,p)=>{!Gw(c)&&VLe(u,!!(c.flags&16777216))&&Lo.add(p)}),n.isDeclarationFile||ntt()}),Y.importsNotUsedAsValues===2&&!n.isDeclarationFile&&Lc(n)&&Tnt(n),kd(n)&&GLe(n),pE.length&&(mn(pE,att),Om(pE)),vv.length&&(mn(vv,ott),Om(vv)),Lb.length&&(mn(Lb,utt),Om(Lb)),bv.length&&(mn(bv,ftt),Om(bv)),a.flags|=1}}function HLe(n,a){try{return o=a,Ont(n)}finally{o=void 0}}function Vie(){for(let n of r)n();r=[]}function jie(n){Vie();let a=i;i=c=>c(),wnt(n),i=a}function Ont(n){if(n){Vie();let a=Lo.getGlobalDiagnostics(),c=a.length;jie(n);let u=Lo.getDiagnostics(n.fileName),p=Lo.getGlobalDiagnostics();if(p!==a){let h=fae(a,p,ZI);return Qi(h,u)}else if(c===0&&p.length>0)return Qi(p,u);return u}return mn(e.getSourceFiles(),jie),Lo.getDiagnostics()}function Nnt(){return Vie(),Lo.getGlobalDiagnostics()}function Pnt(n,a){if(n.flags&33554432)return[];let c=Ua(),u=!1;return p(),c.delete("this"),ene(c);function p(){for(;n;){switch(Qp(n)&&n.locals&&!gm(n)&&T(n.locals,a),n.kind){case 308:if(!Lc(n))break;case 264:k(fr(n).exports,a&2623475);break;case 263:T(fr(n).exports,a&8);break;case 228:n.name&&h(n.symbol,a);case 260:case 261:u||T(vy(fr(n)),a&788968);break;case 215:n.name&&h(n.symbol,a);break}tce(n)&&h(_t,a),u=Ca(n),n=n.parent}T(Ne,a)}function h(O,H){if(XI(O)&H){let J=O.escapedName;c.has(J)||c.set(J,O)}}function T(O,H){H&&O.forEach(J=>{h(J,H)})}function k(O,H){H&&O.forEach(J=>{!nc(J,278)&&!nc(J,277)&&h(J,H)})}}function Mnt(n){return n.kind===79&&o2(n.parent)&&sa(n.parent)===n}function WLe(n){for(;n.parent.kind===163;)n=n.parent;return n.parent.kind===180}function Fnt(n){for(;n.parent.kind===208;)n=n.parent;return n.parent.kind===230}function zLe(n,a){let c,u=Zc(n);for(;u&&!(c=a(u));)u=Zc(u);return c}function Gnt(n){return!!jn(n,a=>Ec(a)&&Pf(a.body)||Na(a)?!0:Yr(a)||Ds(a)?"quit":!1)}function Hie(n,a){return!!zLe(n,c=>c===a)}function Bnt(n){for(;n.parent.kind===163;)n=n.parent;if(n.parent.kind===268)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===274)return n.parent.expression===n?n.parent:void 0}function vU(n){return Bnt(n)!==void 0}function Unt(n){switch(ic(n.parent.parent)){case 1:case 3:return vd(n.parent);case 4:case 2:case 5:return fr(n.parent.parent)}}function Vnt(n){let a=n.parent;for(;Yu(a);)n=a,a=a.parent;if(a&&a.kind===202&&a.qualifier===n)return a}function JLe(n){if(Rh(n))return vd(n.parent);if(Yn(n)&&n.parent.kind===208&&n.parent===n.parent.parent.left&&!pi(n)&&!gb(n)){let a=Unt(n);if(a)return a}if(n.parent.kind===274&&bc(n)){let a=uc(n,2998271,!0);if(a&&a!==Ht)return a}else if(Cd(n)&&vU(n)){let a=cb(n,268);return L.assert(a!==void 0),ep(n,!0)}if(Cd(n)){let a=Vnt(n);if(a){$r(a);let c=Rr(n).resolvedSymbol;return c===Ht?void 0:c}}for(;Qce(n);)n=n.parent;if(Fnt(n)){let a=0;n.parent.kind===230?(a=Gm(n)?788968:111551,IR(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=bc(n)?uc(n,a):void 0;if(c)return c}if(n.parent.kind===344)return uR(n.parent);if(n.parent.kind===165&&n.parent.parent.kind===348){L.assert(!Yn(n));let a=yce(n.parent);return a&&a.symbol}if(Dh(n)){if(rc(n))return;let a=jn(n,Kp(iS,IL,gb)),c=a?901119:111551;if(n.kind===79){if(DI(n)&&OC(n)){let p=Gre(n.parent);return p===Ht?void 0:p}let u=uc(n,c,!1,!0,sb(n));if(!u&&a){let p=jn(n,Kp(Yr,ku));if(p)return r8(n,!1,fr(p))}if(u&&a){let p=dS(n);if(p&&q0(p)&&p===u.valueDeclaration)return uc(n,c,!0,!0,Gn(p))||u}return u}else{if(pi(n))return KB(n);if(n.kind===208||n.kind===163){let u=Rr(n);if(u.resolvedSymbol)return u.resolvedSymbol;if(n.kind===208){if(RCe(n,0),!u.resolvedSymbol){let p=Ic(n.expression),h=Zte(p,pg(n.name));if(h.length&&p.members){let k=R_(p).members.get("__index");if(h===tu(p))u.resolvedSymbol=k;else if(k){let O=Ai(k),H=Zi(h,de=>de.declaration),J=on(H,zo).join(",");if(O.filteredIndexSymbolCache||(O.filteredIndexSymbolCache=new Map),O.filteredIndexSymbolCache.has(J))u.resolvedSymbol=O.filteredIndexSymbolCache.get(J);else{let de=wo(131072,"__index");de.declarations=Zi(h,Ae=>Ae.declaration),de.parent=p.aliasSymbol?p.aliasSymbol:p.symbol?p.symbol:Zf(de.declarations[0].parent),O.filteredIndexSymbolCache.set(J,de),u.resolvedSymbol=O.filteredIndexSymbolCache.get(J)}}}}}else OCe(n,0);return!u.resolvedSymbol&&a&&Yu(n)?r8(n):u.resolvedSymbol}else if(gb(n))return r8(n)}}else if(WLe(n)){let a=n.parent.kind===180?788968:1920,c=uc(n,a,!1,!0);return c&&c!==Ht?c:XG(n)}if(n.parent.kind===179)return uc(n,1)}function r8(n,a,c){if(Cd(n)){let T=uc(n,901119,a,!0,sb(n));if(!T&&Re(n)&&c&&(T=No(yd(Gd(c),n.escapedText,901119))),T)return T}let u=Re(n)?c:r8(n.left,a,c),p=Re(n)?n.escapedText:n.right.escapedText;if(u){let h=u.flags&111551&&ja(zn(u),"prototype"),T=h?zn(h):gs(u);return ja(T,p)}}function Zf(n,a){if(Li(n))return Lc(n)?No(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&33554432)){if(w_e(n)){let p=fr(c);return eS(n.parent)&&n.parent.propertyName===n?Mre(p):p}else if(_R(n))return fr(c.parent);if(n.kind===79){if(vU(n))return JLe(n);if(c.kind===205&&u.kind===203&&n===c.propertyName){let p=G1(u),h=ja(p,n.escapedText);if(h)return h}else if(TL(c)&&c.name===n)return c.keywordToken===103&&vr(n)==="target"?lie(c).symbol:c.keywordToken===100&&vr(n)==="meta"?tAe().members.get("meta"):void 0}switch(n.kind){case 79:case 80:case 208:case 163:if(!mS(n))return JLe(n);case 108:let p=Ku(n,!1,!1);if(Ia(p)){let k=ip(p);if(k.thisParameter)return k.thisParameter}if(F6(n))return Yi(n).symbol;case 194:return oB(n).symbol;case 106:return Yi(n).symbol;case 135:let h=n.parent;return h&&h.kind===173?h.parent.symbol:void 0;case 10:case 14:if(ab(n.parent.parent)&&wI(n.parent.parent)===n||(n.parent.kind===269||n.parent.kind===275)&&n.parent.moduleSpecifier===n||Yn(n)&&$s(Y)!==100&&qu(n.parent,!1)||Dd(n.parent)||mb(n.parent)&&ib(n.parent.parent)&&n.parent.parent.argument===n.parent)return Gl(n,n,a);if(Pa(c)&&sS(c)&&c.arguments[1]===n)return fr(c);case 8:let T=Vs(c)?c.argumentExpression===n?au(c.expression):void 0:mb(c)&&OS(u)?$r(u.objectType):void 0;return T&&ja(T,Bs(n.text));case 88:case 98:case 38:case 84:return vd(n.parent);case 202:return ib(n)?Zf(n.argument.literal,a):void 0;case 93:return pc(n.parent)?L.checkDefined(n.parent.symbol):void 0;case 100:case 103:return TL(n.parent)?mIe(n.parent).symbol:void 0;case 233:return Yi(n).symbol;default:return}}}function jnt(n){if(Re(n)&&br(n.parent)&&n.parent.name===n){let a=pg(n),c=au(n.parent.expression),u=c.flags&1048576?c.types:[c];return Uo(u,p=>Pr(tu(p),h=>Vx(a,h.keyType)))}}function Hnt(n){if(n&&n.kind===300)return uc(n.name,2208703)}function Wnt(n){return Mu(n)?n.parent.parent.moduleSpecifier?af(n.parent.parent,n):uc(n.propertyName||n.name,2998271):uc(n,2998271)}function G1(n){if(Li(n)&&!Lc(n)||n.flags&33554432)return ve;let a=uW(n),c=a&&vu(fr(a.class));if(Gm(n)){let u=$r(n);return c?uf(u,c.thisType):u}if(Dh(n))return KLe(n);if(c&&!a.isImplements){let u=Sl(_o(c));return u?uf(u,c.thisType):ve}if(o2(n)){let u=fr(n);return gs(u)}if(Mnt(n)){let u=Zf(n);return u?gs(u):ve}if(Kl(n)){let u=fr(n);return u?zn(u):ve}if(w_e(n)){let u=Zf(n);return u?zn(u):ve}if(La(n))return Oo(n.parent,!0,0)||ve;if(vU(n)){let u=Zf(n);if(u){let p=gs(u);return Ro(p)?zn(u):p}}return TL(n.parent)&&n.parent.keywordToken===n.kind?mIe(n.parent):ve}function bU(n){if(L.assert(n.kind===207||n.kind===206),n.parent.kind===247){let p=e8(n.parent);return nT(n,p||ve)}if(n.parent.kind===223){let p=au(n.parent.right);return nT(n,p||ve)}if(n.parent.kind===299){let p=Ga(n.parent.parent,rs),h=bU(p)||ve,T=DA(p.properties,n.parent);return kIe(p,h,T)}let a=Ga(n.parent,fu),c=bU(a)||ve,u=wy(65,c,Oe,n.parent)||ve;return DIe(a,c,a.elements.indexOf(n),u)}function znt(n){let a=bU(Ga(n.parent.parent,vI));return a&&ja(a,n.escapedText)}function KLe(n){return zI(n)&&(n=n.parent),Hu(au(n))}function qLe(n){let a=vd(n.parent);return Ca(n)?zn(a):gs(a)}function XLe(n){let a=n.name;switch(a.kind){case 79:return ff(vr(a));case 8:case 10:return ff(a.text);case 164:let c=vg(a);return ul(c,12288)?c:ae;default:return L.fail("Unsupported property name.")}}function Wie(n){n=Eu(n);let a=Ua(Jo(n)),c=xa(n,0).length?Uc:xa(n,1).length?Gu:void 0;return c&&mn(Jo(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),uy(a)}function EU(n){return xa(n,0).length!==0||xa(n,1).length!==0}function YLe(n){let a=Jnt(n);return a?Uo(a,YLe):[n]}function Jnt(n){if(ac(n)&6)return Zi(Ai(n).containingType.types,a=>ja(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:aT(Knt(n))}}function Knt(n){let a,c=n;for(;c=Ai(c).target;)a=c;return a}function qnt(n){if(tc(n))return!1;let a=ea(n,Re);if(!a)return!1;let c=a.parent;return c?!((br(c)||yl(c))&&c.name===a)&&i8(a)===_t:!1}function Xnt(n){let a=Gl(n.parent,n);if(!a||CI(a))return!0;let c=AE(a);a=Vu(a);let u=Ai(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):Ld(sh(a),p)),u.exportsSomeValue;function p(h){return h=Ac(h),h&&!!(Fl(h)&111551)}}function Ynt(n){return Ow(n.parent)&&n===n.parent.name}function $nt(n,a){var c;let u=ea(n,Re);if(u){let p=i8(u,Ynt(u));if(p){if(p.flags&1048576){let T=No(p.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;p=T}let h=ju(p);if(h){if(h.flags&512&&((c=h.valueDeclaration)==null?void 0:c.kind)===308){let T=h.valueDeclaration,k=Gn(u);return T!==k?void 0:T}return jn(u.parent,T=>Ow(T)&&fr(T)===h)}}}}function Qnt(n){let a=Eue(n);if(a)return a;let c=ea(n,Re);if(c){let u=drt(c);if(ay(u,111551)&&!nd(u,111551))return Uu(u)}}function Znt(n){return n.valueDeclaration&&Wo(n.valueDeclaration)&&bA(n.valueDeclaration).parent.kind===295}function $Le(n){if(n.flags&418&&n.valueDeclaration&&!Li(n.valueDeclaration)){let a=Ai(n);if(a.isDeclarationWithCollidingName===void 0){let c=tm(n.valueDeclaration);if(Ose(c)||Znt(n)){let u=Rr(n.valueDeclaration);if(zs(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let p=u.flags&32768,h=Wy(c,!1),T=c.kind===238&&Wy(c.parent,!1);a.isDeclarationWithCollidingName=!Hse(c)&&(!p||!h&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function ert(n){if(!tc(n)){let a=ea(n,Re);if(a){let c=i8(a);if(c&&$Le(c))return c.valueDeclaration}}}function trt(n){let a=ea(n,Kl);if(a){let c=fr(a);if(c)return $Le(c)}return!1}function QLe(n){switch(L.assert(!Y.verbatimModuleSyntax),n.kind){case 268:return TU(fr(n));case 270:case 271:case 273:case 278:let a=fr(n);return!!a&&TU(a)&&!nd(a,111551);case 275:let c=n.exportClause;return!!c&&(qm(c)||vt(c.elements,QLe));case 274:return n.expression&&n.expression.kind===79?TU(fr(n)):!0}return!1}function nrt(n){let a=ea(n,Nl);return a===void 0||a.parent.kind!==308||!GA(a)?!1:TU(fr(a))&&a.moduleReference&&!rc(a.moduleReference)}function TU(n){var a;if(!n)return!1;let c=tp(wc(n));return c===Ht?!0:!!(((a=Fl(c))!=null?a:-1)&111551)&&(U0(Y)||!MD(c))}function MD(n){return gie(n)||!!n.constEnumOnlyModule}function SU(n,a){if(L.assert(!Y.verbatimModuleSyntax),Zh(n)){let c=fr(n),u=c&&Ai(c);if(u?.referenced)return!0;let p=Ai(c).aliasTarget;if(p&&uu(n)&1&&Fl(p)&111551&&(U0(Y)||!MD(p)))return!0}return a?!!pa(n,c=>SU(c,a)):!1}function ZLe(n){if(Pf(n.body)){if(zy(n)||Ng(n))return!1;let a=fr(n),c=Xb(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function eke(n){return!!U&&!Qk(n)&&!xp(n)&&!!n.initializer&&!Mr(n,16476)}function rrt(n){return U&&Qk(n)&&!n.initializer&&Mr(n,16476)}function irt(n){let a=ea(n,Jc);if(!a)return!1;let c=fr(a);return!c||!(c.flags&16)?!1:!!Ld(Gd(c),u=>u.flags&111551&&u.valueDeclaration&&br(u.valueDeclaration))}function art(n){let a=ea(n,Jc);if(!a)return Je;let c=fr(a);return c&&Jo(zn(c))||Je}function sA(n){var a;let c=n.id||0;return c<0||c>=Ib.length?0:((a=Ib[c])==null?void 0:a.flags)||0}function xU(n){return OLe(n.parent),Rr(n).enumMemberValue}function tke(n){switch(n.kind){case 302:case 208:case 209:return!0}return!1}function zie(n){if(n.kind===302)return xU(n);let a=Rr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(R0(c.parent))return xU(c)}}function Jie(n){return!!(n.flags&524288)&&xa(n,0).length>0}function ort(n,a){var c;let u=ea(n,Cd);if(!u||a&&(a=ea(a),!a))return 0;let p=!1;if(Yu(u)){let H=uc(Yd(u),111551,!0,!0,a);p=!!((c=H?.declarations)!=null&&c.every(I0))}let h=uc(u,111551,!0,!0,a),T=h&&h.flags&2097152?wc(h):h;p||(p=!!(h&&nd(h,111551)));let k=uc(u,788968,!0,!1,a);if(T&&T===k){let H=_ne(!1);if(H&&T===H)return 9;let J=zn(T);if(J&&Uv(J))return p?10:1}if(!k)return p?11:0;let O=gs(k);return Ro(O)?p?11:0:O.flags&3?11:ul(O,245760)?2:ul(O,528)?6:ul(O,296)?3:ul(O,2112)?4:ul(O,402653316)?5:po(O)?7:ul(O,12288)?8:Jie(O)?10:_f(O)?7:11}function srt(n,a,c,u,p){let h=ea(n,Qse);if(!h)return D.createToken(131);let T=fr(h),k=T&&!(T.flags&133120)?i0(zn(T)):ve;return k.flags&8192&&k.symbol===T&&(c|=1048576),p&&(k=gg(k)),Be.typeToTypeNode(k,a,c|1024,u)}function crt(n,a,c,u){let p=ea(n,Ia);if(!p)return D.createToken(131);let h=ip(p);return Be.typeToTypeNode(qo(h),a,c|1024,u)}function lrt(n,a,c,u){let p=ea(n,ot);if(!p)return D.createToken(131);let h=Sd(KLe(p));return Be.typeToTypeNode(h,a,c|1024,u)}function urt(n){return Ne.has(Bs(n))}function i8(n,a){let c=Rr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let p=n.parent;Kl(p)&&n===p.name&&(u=FE(p))}return zs(u,n.escapedText,3257279,void 0,void 0,!0)}function drt(n){let a=Rr(n).resolvedSymbol;return a&&a!==Ht?a:zs(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function frt(n){if(!tc(n)){let a=ea(n,Re);if(a){let c=i8(a);if(c)return tp(c).valueDeclaration}}}function _rt(n){return x6(n)||wi(n)&&kh(n)?t0(zn(fr(n))):!1}function prt(n,a,c){let u=n.flags&1056?Be.symbolToExpression(n.symbol,111551,a,void 0,c):n===pe?D.createTrue():n===Ke&&D.createFalse();if(u)return u;let p=n.value;return typeof p=="object"?D.createBigIntLiteral(p):typeof p=="number"?D.createNumericLiteral(p):D.createStringLiteral(p)}function mrt(n,a){let c=zn(fr(n));return prt(c,n,a)}function nke(n){return n?(Rb(n),Gn(n).localJsxFactory||Kh):Kh}function Kie(n){if(n){let a=Gn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=ba(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=zS(u.arguments.factory,R),a.localJsxFragmentFactory}}if(Y.jsxFragmentFactory)return zS(Y.jsxFragmentFactory,R)}function hrt(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:O},H,J)=>{if(!O?.resolvedFileName)return;let de=e.getSourceFile(O.resolvedFileName);de&&k(de,H,J)})),{getReferencedExportContainer:$nt,getReferencedImportDeclaration:Qnt,getReferencedDeclarationWithCollidingName:ert,isDeclarationWithCollidingName:trt,isValueAliasDeclaration:O=>{let H=ea(O);return H?QLe(H):!0},hasGlobalName:urt,isReferencedAliasDeclaration:(O,H)=>{let J=ea(O);return J?SU(J,H):!0},getNodeCheckFlags:O=>{let H=ea(O);return H?sA(H):0},isTopLevelValueImportEqualsWithEntityName:nrt,isDeclarationVisible:Xf,isImplementationOfOverload:ZLe,isRequiredInitializedParameter:eke,isOptionalUninitializedParameterProperty:rrt,isExpandoFunctionDeclaration:irt,getPropertiesOfContainerFunction:art,createTypeOfDeclaration:srt,createReturnTypeOfSignatureDeclaration:crt,createTypeOfExpression:lrt,createLiteralConstValue:mrt,isSymbolAccessible:dy,isEntityNameVisible:Nx,getConstantValue:O=>{let H=ea(O,tke);return H?zie(H):void 0},collectLinkedAliases:ME,getReferencedValueDeclaration:frt,getTypeReferenceSerializationKind:ort,isOptionalParameter:Qk,moduleExportsSomeValue:Xnt,isArgumentsLocalBinding:qnt,getExternalModuleFileFromDeclaration:O=>{let H=ea(O,zse);return H&&qie(H)},getTypeReferenceDirectivesForEntityName:p,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:_rt,isLateBound:O=>{let H=ea(O,Kl),J=H&&fr(H);return!!(J&&ac(J)&4096)},getJsxFactoryEntity:nke,getJsxFragmentFactoryEntity:Kie,getAllAccessorDeclarations(O){O=ea(O,t6);let H=O.kind===175?174:175,J=nc(fr(O),H),de=J&&J.pos<O.pos?J:O,Ae=J&&J.pos<O.pos?O:J,xe=O.kind===175?O:J,tt=O.kind===174?O:J;return{firstAccessor:de,secondAccessor:Ae,setAccessor:xe,getAccessor:tt}},getSymbolOfExternalModuleSpecifier:O=>ah(O,O,void 0),isBindingCapturedByNode:(O,H)=>{let J=ea(O),de=ea(H);return!!J&&!!de&&(wi(de)||Wo(de))&&zYe(J,de)},getDeclarationStatementsForSourceFile:(O,H,J,de)=>{let Ae=ea(O);L.assert(Ae&&Ae.kind===308,"Non-sourcefile node passed into getDeclarationsForSourceFile");let xe=fr(O);return xe?xe.exports?Be.symbolTableToDeclarationStatements(xe.exports,O,H,J,de):[]:O.locals?Be.symbolTableToDeclarationStatements(O.locals,O,H,J,de):[]},isImportRequiredByAugmentation:c};function c(O){let H=Gn(O);if(!H.symbol)return!1;let J=qie(O);if(!J||J===H)return!1;let de=sh(H.symbol);for(let Ae of lo(de.values()))if(Ae.mergeId){let xe=No(Ae);if(xe.declarations){for(let tt of xe.declarations)if(Gn(tt)===J)return!0}}return!1}function u(O){return O.parent&&O.parent.kind===230&&O.parent.parent&&O.parent.parent.kind===294}function p(O){if(!a)return;let H;O.parent.kind===164?H=1160127:(H=790504,(O.kind===79&&kC(O)||O.kind===208&&!u(O))&&(H=1160127));let J=uc(O,H,!0);return J&&J!==Ht?h(J,H):void 0}function h(O,H){if(!a||!T(O))return;let J;for(let de of O.declarations)if(de.symbol&&de.symbol.flags&H){let Ae=Gn(de),xe=a.get(Ae.path);if(xe)(J||(J=[])).push(xe);else return}return J}function T(O){if(!O.declarations)return!1;let H=O;for(;;){let J=ju(H);if(J)H=J;else break}if(H.valueDeclaration&&H.valueDeclaration.kind===308&&H.flags&512)return!1;for(let J of O.declarations){let de=Gn(J);if(a.has(de.path))return!0}return!1}function k(O,H,J){if(!a.has(O.path)){a.set(O.path,[H,J]);for(let{fileName:de,resolutionMode:Ae}of O.referencedFiles){let xe=wF(de,O.fileName),tt=e.getSourceFile(xe);tt&&k(tt,H,Ae||O.impliedNodeFormat)}}}}function qie(n){let a=n.kind===264?zr(n.name,yo):UA(n),c=ah(a,a,void 0);if(c)return nc(c,308)}function grt(){for(let a of e.getSourceFiles())c_e(a,Y);pr=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!kd(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)Lo.add(hr(u,_.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));ll(Ne,a.locals)}a.jsGlobalAugmentations&&ll(Ne,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Ka=Qi(Ka,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,p)=>{Ne.has(p)||Ne.set(p,u)})}if(n)for(let a of n)for(let c of a)mp(c.parent)&&y1(c);if(lC(Ne,Db,_.Declaration_name_conflicts_with_built_in_global_identifier_0),Ai(Le).type=je,Ai(_t).type=Fc("IArguments",0,!0),Ai(Ht).type=ve,Ai(Ye).type=Bd(16,Ye),$o=Fc("Array",1,!0),ka=Fc("Object",0,!0),Hs=Fc("Function",0,!0),Uc=le&&Fc("CallableFunction",0,!0)||Hs,Gu=le&&Fc("NewableFunction",0,!0)||Hs,Ws=Fc("String",0,!0),hd=Fc("Number",0,!0),vc=Fc("Boolean",0,!0),nf=Fc("RegExp",0,!0),Et=nu(Se),bn=nu(at),bn===Ki&&(bn=ls(void 0,q,Je,Je,Je)),jo=oAe("ReadonlyArray",1)||$o,Ri=jo?rD(jo,[Se]):Et,ye=oAe("ThisType",1),n)for(let a of n)for(let c of a)mp(c.parent)||y1(c);pr.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:p,firstFileLocations:h,secondFileLocations:T},k)=>{let O=p?_.Cannot_redeclare_block_scoped_variable_0:_.Duplicate_identifier_0;for(let H of h)Ml(H,O,k,T);for(let H of T)Ml(H,O,k,h)});else{let p=lo(u.keys()).join(", ");Lo.add(Ao(hr(a,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),hr(c,_.Conflicts_are_in_this_file))),Lo.add(Ao(hr(c,_.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,p),hr(a,_.Conflicts_are_in_this_file)))}}),pr=void 0}function Hc(n,a){if((l&a)!==a&&Y.importHelpers){let c=Gn(n);if(aS(c,Y)&&!(n.flags&16777216)){let u=vrt(c,n);if(u!==Ht){let p=a&~l;for(let h=1;h<=16777216;h<<=1)if(p&h)for(let T of yrt(h)){if(s.has(T))continue;s.add(T);let k=yd(u.exports,Bs(T),111551);k?h&524288?vt(Xb(k),O=>xd(O)>3)||Fe(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,T,4):h&1048576?vt(Xb(k),O=>xd(O)>4)||Fe(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,T,5):h&1024&&(vt(Xb(k),O=>xd(O)>2)||Fe(n,_.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,_b,T,3)):Fe(n,_.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_b,T)}}l|=a}}}function yrt(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return $?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];default:return L.fail("Unrecognized helper")}}function vrt(n,a){return f||(f=qc(n,_b,_.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||Ht),f}function km(n){let a=Trt(n)||brt(n);if(a!==void 0)return a;if(ha(n)&&G0(n))return dl(n,_.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let c,u,p,h,T,k=0,O=!1,H=!1;for(let J of n.modifiers)if(du(J)){if(M6($,n,n.parent,n.parent.parent)){if($&&(n.kind===174||n.kind===175)){let de=kT(n.parent.members,n);if(bf(de.firstAccessor)&&n===de.secondAccessor)return dl(n,_.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===171&&!Pf(n.body)?dl(n,_.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):dl(n,_.Decorators_are_not_valid_here);if(k&-132098)return an(J,_.Decorators_are_not_valid_here);if(H&&k&126975){L.assertIsDefined(T);let de=Gn(J);return l0(de)?!1:(Ao(Fe(J,_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),hr(T,_.Decorator_used_before_export_here)),!0)}k|=131072,k&126975?k&1&&(O=!0):H=!0,T??(T=J)}else{if(J.kind!==146){if(n.kind===168||n.kind===170)return an(J,_._0_modifier_cannot_appear_on_a_type_member,Xa(J.kind));if(n.kind===178&&(J.kind!==124||!Yr(n.parent)))return an(J,_._0_modifier_cannot_appear_on_an_index_signature,Xa(J.kind))}if(J.kind!==101&&J.kind!==145&&J.kind!==85&&n.kind===165)return an(J,_._0_modifier_cannot_appear_on_a_type_parameter,Xa(J.kind));switch(J.kind){case 85:if(n.kind!==263&&n.kind!==165)return an(n,_.A_class_member_cannot_have_the_0_keyword,Xa(85));let de=n.parent;if(n.kind===165&&!(Ds(de)||Yr(de)||Jm(de)||yL(de)||_2(de)||uO(de)||zm(de)))return an(J,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Xa(J.kind));break;case 161:if(k&16384)return an(J,_._0_modifier_already_seen,"override");if(k&2)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(k&64)return an(J,_._0_modifier_must_precede_1_modifier,"override","readonly");if(k&128)return an(J,_._0_modifier_must_precede_1_modifier,"override","accessor");if(k&512)return an(J,_._0_modifier_must_precede_1_modifier,"override","async");k|=16384,h=J;break;case 123:case 122:case 121:let Ae=Ud(gS(J.kind));if(k&28)return an(J,_.Accessibility_modifier_already_seen);if(k&16384)return an(J,_._0_modifier_must_precede_1_modifier,Ae,"override");if(k&32)return an(J,_._0_modifier_must_precede_1_modifier,Ae,"static");if(k&128)return an(J,_._0_modifier_must_precede_1_modifier,Ae,"accessor");if(k&64)return an(J,_._0_modifier_must_precede_1_modifier,Ae,"readonly");if(k&512)return an(J,_._0_modifier_must_precede_1_modifier,Ae,"async");if(n.parent.kind===265||n.parent.kind===308)return an(J,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ae);if(k&256)return J.kind===121?an(J,_._0_modifier_cannot_be_used_with_1_modifier,Ae,"abstract"):an(J,_._0_modifier_must_precede_1_modifier,Ae,"abstract");if(xu(n))return an(J,_.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);k|=gS(J.kind);break;case 124:if(k&32)return an(J,_._0_modifier_already_seen,"static");if(k&64)return an(J,_._0_modifier_must_precede_1_modifier,"static","readonly");if(k&512)return an(J,_._0_modifier_must_precede_1_modifier,"static","async");if(k&128)return an(J,_._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===265||n.parent.kind===308)return an(J,_._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===166)return an(J,_._0_modifier_cannot_appear_on_a_parameter,"static");if(k&256)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(k&16384)return an(J,_._0_modifier_must_precede_1_modifier,"static","override");k|=32,c=J;break;case 127:if(k&128)return an(J,_._0_modifier_already_seen,"accessor");if(k&64)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(k&2)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==169)return an(J,_.accessor_modifier_can_only_appear_on_a_property_declaration);k|=128;break;case 146:if(k&64)return an(J,_._0_modifier_already_seen,"readonly");if(n.kind!==169&&n.kind!==168&&n.kind!==178&&n.kind!==166)return an(J,_.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(k&128)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");k|=64;break;case 93:if(Y.verbatimModuleSyntax&&!(n.flags&16777216)&&n.kind!==262&&n.kind!==261&&n.kind!==264&&n.parent.kind===308&&(ie===1||Gn(n).impliedNodeFormat===1))return an(J,_.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(k&1)return an(J,_._0_modifier_already_seen,"export");if(k&2)return an(J,_._0_modifier_must_precede_1_modifier,"export","declare");if(k&256)return an(J,_._0_modifier_must_precede_1_modifier,"export","abstract");if(k&512)return an(J,_._0_modifier_must_precede_1_modifier,"export","async");if(Yr(n.parent))return an(J,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===166)return an(J,_._0_modifier_cannot_appear_on_a_parameter,"export");k|=1;break;case 88:let xe=n.parent.kind===308?n.parent:n.parent.parent;if(xe.kind===264&&!lu(xe))return an(J,_.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(k&1){if(O)return an(T,_.Decorators_are_not_valid_here)}else return an(J,_._0_modifier_must_precede_1_modifier,"export","default");k|=1024;break;case 136:if(k&2)return an(J,_._0_modifier_already_seen,"declare");if(k&512)return an(J,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(k&16384)return an(J,_._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Yr(n.parent)&&!Na(n))return an(J,_._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===166)return an(J,_._0_modifier_cannot_appear_on_a_parameter,"declare");if(n.parent.flags&16777216&&n.parent.kind===265)return an(J,_.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(xu(n))return an(J,_._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(k&128)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");k|=2,u=J;break;case 126:if(k&256)return an(J,_._0_modifier_already_seen,"abstract");if(n.kind!==260&&n.kind!==182){if(n.kind!==171&&n.kind!==169&&n.kind!==174&&n.kind!==175)return an(J,_.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===260&&Mr(n.parent,256)))return an(J,_.Abstract_methods_can_only_appear_within_an_abstract_class);if(k&32)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(k&8)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(k&512&&p)return an(p,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(k&16384)return an(J,_._0_modifier_must_precede_1_modifier,"abstract","override");if(k&128)return an(J,_._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(zl(n)&&n.name.kind===80)return an(J,_._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");k|=256;break;case 132:if(k&512)return an(J,_._0_modifier_already_seen,"async");if(k&2||n.parent.flags&16777216)return an(J,_._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===166)return an(J,_._0_modifier_cannot_appear_on_a_parameter,"async");if(k&256)return an(J,_._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");k|=512,p=J;break;case 101:case 145:let tt=J.kind===101?32768:65536,It=J.kind===101?"in":"out";if(n.kind!==165||!(ku(n.parent)||Yr(n.parent)||Ep(n.parent)))return an(J,_._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,It);if(k&tt)return an(J,_._0_modifier_already_seen,It);if(tt&32768&&k&65536)return an(J,_._0_modifier_must_precede_1_modifier,"in","out");k|=tt;break}}return n.kind===173?k&32?an(c,_._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):k&16384?an(h,_._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):k&512?an(p,_._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===269||n.kind===268)&&k&2?an(u,_.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===166&&k&16476&&La(n.name)?an(n,_.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===166&&k&16476&&n.dotDotDotToken?an(n,_.A_parameter_property_cannot_be_declared_using_a_rest_parameter):k&512?xrt(n,p):!1}function brt(n){if(!n.modifiers)return!1;let a=Ert(n);return a&&dl(a,_.Modifiers_cannot_appear_here)}function Xie(n,a){let c=wr(n.modifiers,Ha);return c&&c.kind!==a?c:void 0}function Ert(n){switch(n.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return;case 172:case 299:case 300:case 267:case 279:return wr(n.modifiers,Ha);default:if(n.parent.kind===265||n.parent.kind===308)return;switch(n.kind){case 259:return Xie(n,132);case 260:case 182:return Xie(n,126);case 228:case 261:case 240:case 262:return wr(n.modifiers,Ha);case 263:return Xie(n,85);default:L.assertNever(n)}}}function Trt(n){let a=Srt(n);return a&&dl(a,_.Decorators_are_not_valid_here)}function Srt(n){return aJ(n)?wr(n.modifiers,du):void 0}function xrt(n,a){switch(n.kind){case 171:case 259:case 215:case 216:return!1}return an(a,_._0_modifier_cannot_be_used_here,"async")}function B1(n,a=_.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?u0(n[0],n.end-1,1,a):!1}function rke(n,a){if(n&&n.length===0){let c=n.pos-1,u=xo(a.text,n.end)+1;return u0(a,c,u-c,_.Type_parameter_list_cannot_be_empty)}return!1}function Art(n){let a=!1,c=n.length;for(let u=0;u<c;u++){let p=n[u];if(p.dotDotDotToken){if(u!==c-1)return an(p.dotDotDotToken,_.A_rest_parameter_must_be_last_in_a_parameter_list);if(p.flags&16777216||B1(n,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),p.questionToken)return an(p.questionToken,_.A_rest_parameter_cannot_be_optional);if(p.initializer)return an(p.name,_.A_rest_parameter_cannot_have_an_initializer)}else if(Qk(p)){if(a=!0,p.questionToken&&p.initializer)return an(p.name,_.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!p.initializer)return an(p.name,_.A_required_parameter_cannot_follow_an_optional_parameter)}}function Crt(n){return Pr(n,a=>!!a.initializer||La(a.name)||Fm(a))}function Irt(n){if(R>=3){let a=n.body&&Va(n.body)&&tJ(n.body.statements);if(a){let c=Crt(n.parameters);if(Fn(c)){mn(c,p=>{Ao(Fe(p,_.This_parameter_is_not_allowed_with_use_strict_directive),hr(a,_.use_strict_directive_used_here))});let u=c.map((p,h)=>h===0?hr(p,_.Non_simple_parameter_declared_here):hr(p,_.and_here));return Ao(Fe(a,_.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function AU(n){let a=Gn(n);return km(n)||rke(n.typeParameters,a)||Art(n.parameters)||krt(n,a)||Ds(n)&&Irt(n)}function Lrt(n){let a=Gn(n);return Nrt(n)||rke(n.typeParameters,a)}function krt(n,a){if(!xs(n))return!1;n.typeParameters&&!(Fn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&$c(a.fileName,[".mts",".cts"])&&an(n.typeParameters[0],_.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,u=Gs(a,c.pos).line,p=Gs(a,c.end).line;return u!==p&&an(c,_.Line_terminator_not_permitted_before_arrow)}function Drt(n){let a=n.parameters[0];if(n.parameters.length!==1)return an(a?a.name:n,_.An_index_signature_must_have_exactly_one_parameter);if(B1(n.parameters,_.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return an(a.dotDotDotToken,_.An_index_signature_cannot_have_a_rest_parameter);if(n4(a))return an(a.name,_.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return an(a.questionToken,_.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return an(a.name,_.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return an(a.name,_.An_index_signature_parameter_must_have_a_type_annotation);let c=$r(a.type);return yh(c,u=>!!(u.flags&8576))||SC(c)?an(a.name,_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Im(c,KG)?n.type?!1:an(n,_.An_index_signature_must_have_a_type_annotation):an(a.name,_.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function wrt(n){return km(n)||Drt(n)}function Rrt(n,a){if(a&&a.length===0){let c=Gn(n),u=a.pos-1,p=xo(c.text,a.end)+1;return u0(c,u,p-u,_.Type_argument_list_cannot_be_empty)}return!1}function a8(n,a){return B1(a)||Rrt(n,a)}function Ort(n){return n.questionDotToken||n.flags&32?an(n.template,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function ike(n){let a=n.types;if(B1(a))return!0;if(a&&a.length===0){let c=Xa(n.token);return u0(n,a.pos,0,_._0_list_cannot_be_empty,c)}return vt(a,ake)}function ake(n){return Vg(n)&&gL(n.expression)&&n.typeArguments?an(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):a8(n,n.typeArguments)}function Nrt(n){let a=!1,c=!1;if(!km(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===94){if(a)return dl(u,_.extends_clause_already_seen);if(c)return dl(u,_.extends_clause_must_precede_implements_clause);if(u.types.length>1)return dl(u.types[1],_.Classes_can_only_extend_a_single_class);a=!0}else{if(L.assert(u.token===117),c)return dl(u,_.implements_clause_already_seen);c=!0}ike(u)}}function Prt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===94){if(a)return dl(c,_.extends_clause_already_seen);a=!0}else return L.assert(c.token===117),dl(c,_.Interface_declaration_cannot_have_implements_clause);ike(c)}return!1}function CU(n){if(n.kind!==164)return!1;let a=n;return a.expression.kind===223&&a.expression.operatorToken.kind===27?an(a.expression,_.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Yie(n){if(n.asteriskToken){if(L.assert(n.kind===259||n.kind===215||n.kind===171),n.flags&16777216)return an(n.asteriskToken,_.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return an(n.asteriskToken,_.An_overload_signature_cannot_be_declared_as_a_generator)}}function $ie(n,a){return!!n&&an(n,a)}function oke(n,a){return!!n&&an(n,a)}function Mrt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===301){if(a){let T=vs(u.expression);if(fu(T)||rs(T))return an(u.expression,_.A_rest_element_cannot_contain_a_binding_pattern)}continue}let p=u.name;if(p.kind===164&&CU(p),u.kind===300&&!a&&u.objectAssignmentInitializer&&an(u.equalsToken,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),p.kind===80&&an(p,_.Private_identifiers_are_not_allowed_outside_class_bodies),g_(u)&&u.modifiers)for(let T of u.modifiers)Ha(T)&&(T.kind!==132||u.kind!==171)&&an(T,_._0_modifier_cannot_be_used_here,Qc(T));else if(cde(u)&&u.modifiers)for(let T of u.modifiers)Ha(T)&&an(T,_._0_modifier_cannot_be_used_here,Qc(T));let h;switch(u.kind){case 300:case 299:oke(u.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context),$ie(u.questionToken,_.An_object_member_cannot_be_declared_optional),p.kind===8&&eae(p),h=4;break;case 171:h=8;break;case 174:h=1;break;case 175:h=2;break;default:throw L.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=M0(p);if(T===void 0)continue;let k=c.get(T);if(!k)c.set(T,h);else if(h&8&&k&8)an(p,_.Duplicate_identifier_0,Qc(p));else if(h&4&&k&4)an(p,_.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Qc(p));else if(h&3&&k&3)if(k!==3&&h!==k)c.set(T,h|k);else return an(p,_.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return an(p,_.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Frt(n){Grt(n.tagName),a8(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===290)continue;let{name:u,initializer:p}=c;if(!a.get(u.escapedText))a.set(u.escapedText,!0);else return an(u,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(p&&p.kind===291&&!p.expression)return an(p,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Grt(n){if(br(n)){let c=n;do{let p=a(c.name);if(p)return p;c=c.expression}while(br(c));let u=a(c);if(u)return u}function a(c){if(Re(c)&&vr(c).indexOf(":")!==-1)return an(c,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function Brt(n){if(n.expression&&wL(n.expression))return an(n.expression,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function ske(n){if(vh(n))return!0;if(n.kind===247&&n.awaitModifier&&!(n.flags&32768)){let a=Gn(n);if(O6(n)){if(!l0(a))switch(aS(a,Y)||Lo.add(hr(n.awaitModifier,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),ie){case 100:case 199:if(a.impliedNodeFormat===1){Lo.add(hr(n.awaitModifier,_.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(R>=4)break;default:Lo.add(hr(n.awaitModifier,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!l0(a)){let c=hr(n.awaitModifier,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=Xd(n);if(u&&u.kind!==173){L.assert((pl(u)&2)===0,"Enclosing function should never be an async function.");let p=hr(u,_.Did_you_mean_to_mark_this_function_as_async);Ao(c,p)}return Lo.add(c),!0}return!1}if(_O(n)&&!(n.flags&32768)&&Re(n.initializer)&&n.initializer.escapedText==="async")return an(n.initializer,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===258){let a=n.initializer;if(!Zie(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let p=n.kind===246?_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return dl(a.declarations[1],p)}let u=c[0];if(u.initializer){let p=n.kind===246?_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return an(u.name,p)}if(u.type){let p=n.kind===246?_.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return an(u,p)}}}return!1}function Urt(n){if(!(n.flags&16777216)&&n.parent.kind!==184&&n.parent.kind!==261){if(R<1)return an(n.name,_.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(R<2&&pi(n.name))return an(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Mr(n,256))return u0(n,n.end-1,1,_._0_expected,"{")}if(n.body){if(Mr(n,256))return an(n,_.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===184||n.parent.kind===261)return an(n.body,_.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return an(n.name,_.An_accessor_cannot_have_type_parameters);if(!Vrt(n))return an(n.name,n.kind===174?_.A_get_accessor_cannot_have_parameters:_.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===175){if(n.type)return an(n.name,_.A_set_accessor_cannot_have_a_return_type_annotation);let a=L.checkDefined(VI(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return an(a.dotDotDotToken,_.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return an(a.questionToken,_.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return an(n.name,_.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Vrt(n){return Qie(n)||n.parameters.length===(n.kind===174?0:1)}function Qie(n){if(n.parameters.length===(n.kind===174?1:2))return F0(n)}function jrt(n){if(n.operator===156){if(n.type.kind!==153)return an(n.type,_._0_expected,Xa(153));let a=dR(n.parent);if(Yn(a)&&UT(a)){let c=dS(a);c&&(a=HA(c)||c)}switch(a.kind){case 257:let c=a;if(c.name.kind!==79)return an(n,_.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!L6(c))return an(n,_.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return an(a.name,_.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 169:if(!Ca(a)||!jI(a))return an(a.name,_.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 168:if(!Mr(a,64))return an(a.name,_.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return an(n,_.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===146&&n.type.kind!==185&&n.type.kind!==186)return dl(n,_.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Xa(153))}function JC(n,a){if(hJe(n))return an(n,a)}function cke(n){if(AU(n))return!0;if(n.kind===171){if(n.parent.kind===207){if(n.modifiers&&!(n.modifiers.length===1&&Vo(n.modifiers).kind===132))return dl(n,_.Modifiers_cannot_appear_here);if($ie(n.questionToken,_.An_object_member_cannot_be_declared_optional))return!0;if(oke(n.exclamationToken,_.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return u0(n,n.end-1,1,_._0_expected,"{")}if(Yie(n))return!0}if(Yr(n.parent)){if(R<2&&pi(n.name))return an(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&16777216)return JC(n.name,_.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===171&&!n.body)return JC(n.name,_.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===261)return JC(n.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===184)return JC(n.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Hrt(n){let a=n;for(;a;){if(SA(a))return an(n,_.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 253:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===248&&!Wy(a.statement,!0)?an(n,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 252:if(n.kind===249&&!n.label)return!1;break;default:if(Wy(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===249?_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return an(n,c)}else{let c=n.kind===249?_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return an(n,c)}}function Wrt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==To(a))return an(n,_.A_rest_element_must_be_last_in_a_destructuring_pattern);if(B1(a,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return an(n.name,_.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return u0(n,n.initializer.pos-1,1,_.A_rest_element_cannot_have_an_initializer)}function lke(n){return yf(n)||n.kind===221&&n.operator===40&&n.operand.kind===8}function zrt(n){return n.kind===9||n.kind===221&&n.operator===40&&n.operand.kind===9}function Jrt(n){if((br(n)||Vs(n)&&lke(n.argumentExpression))&&bc(n.expression))return!!(Ic(n).flags&1056)}function uke(n){let a=n.initializer;if(a){let c=!(lke(a)||Jrt(a)||a.kind===110||a.kind===95||zrt(a));if((x6(n)||wi(n)&&kh(n))&&!n.type){if(c)return an(a,_.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return an(a,_.Initializers_are_not_allowed_in_ambient_contexts)}}function Krt(n){if(n.parent.parent.kind!==246&&n.parent.parent.kind!==247){if(n.flags&16777216)uke(n);else if(!n.initializer){if(La(n.name)&&!La(n.parent))return an(n,_.A_destructuring_declaration_must_have_an_initializer);if(kh(n))return an(n,_.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==240||!n.type||n.initializer||n.flags&16777216)){let c=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return an(n.exclamationToken,c)}return(ie<5||Gn(n).impliedNodeFormat===1)&&ie!==4&&!(n.parent.parent.flags&16777216)&&Mr(n.parent.parent,1)&&dke(n.name),(II(n)||kh(n))&&fke(n.name)}function dke(n){if(n.kind===79){if(vr(n)==="__esModule")return Yrt("noEmit",n,_.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!ol(c))return dke(c.name)}return!1}function fke(n){if(n.kind===79){if(n.escapedText==="let")return an(n,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)ol(c)||fke(c.name)}return!1}function Zie(n){let a=n.declarations;return B1(n.declarations)?!0:n.declarations.length?!1:u0(n,a.pos,a.end-a.pos,_.Variable_declaration_list_cannot_be_empty)}function _ke(n){switch(n.kind){case 242:case 243:case 244:case 251:case 245:case 246:case 247:return!1;case 253:return _ke(n.parent)}return!0}function qrt(n){if(!_ke(n.parent)){if(II(n.declarationList))return an(n,_.let_declarations_can_only_be_declared_inside_a_block);if(kh(n.declarationList))return an(n,_.const_declarations_can_only_be_declared_inside_a_block)}}function Xrt(n){let a=n.name.escapedText;switch(n.keywordToken){case 103:if(a!=="target")return an(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,Xa(n.keywordToken),"target");break;case 100:if(a!=="meta")return an(n.name,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,n.name.escapedText,Xa(n.keywordToken),"meta");break}}function l0(n){return n.parseDiagnostics.length>0}function dl(n,a,c,u,p){let h=Gn(n);if(!l0(h)){let T=Pg(h,n.pos);return Lo.add(al(h,T.start,T.length,a,c,u,p)),!0}return!1}function u0(n,a,c,u,p,h,T){let k=Gn(n);return l0(k)?!1:(Lo.add(al(k,a,c,u,p,h,T)),!0)}function Yrt(n,a,c,u,p,h){let T=Gn(a);return l0(T)?!1:(Ev(n,a,c,u,p,h),!0)}function an(n,a,c,u,p){let h=Gn(n);return l0(h)?!1:(Lo.add(hr(n,a,c,u,p)),!0)}function $rt(n){let a=Yn(n)?t4(n):void 0,c=n.typeParameters||a&&Sl(a);if(c){let u=c.pos===c.end?c.pos:xo(Gn(n).text,c.pos);return u0(n,u,c.end-u,_.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Qrt(n){let a=n.type||U_(n);if(a)return an(a,_.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Zrt(n){if(ts(n.name)&&ar(n.name.expression)&&n.name.expression.operatorToken.kind===101)return an(n.parent.members[0],_.A_mapped_type_may_not_declare_properties_or_methods);if(Yr(n.parent)){if(yo(n.name)&&n.name.text==="constructor")return an(n.name,_.Classes_may_not_have_a_field_named_constructor);if(JC(n.name,_.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(R<2&&pi(n.name))return an(n.name,_.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(R<2&&Id(n))return an(n.name,_.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Id(n)&&$ie(n.questionToken,_.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===261){if(JC(n.name,_.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(L.assertNode(n,$d),n.initializer)return an(n.initializer,_.An_interface_property_cannot_have_an_initializer)}else if(Rd(n.parent)){if(JC(n.name,_.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(L.assertNode(n,$d),n.initializer)return an(n.initializer,_.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&16777216&&uke(n),Na(n)&&n.exclamationToken&&(!Yr(n.parent)||!n.type||n.initializer||n.flags&16777216||Ca(n)||B0(n))){let a=n.initializer?_.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?_.A_definite_assignment_assertion_is_not_permitted_in_this_context:_.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return an(n.exclamationToken,a)}}function eit(n){return n.kind===261||n.kind===262||n.kind===269||n.kind===268||n.kind===275||n.kind===274||n.kind===267||Mr(n,1027)?!1:dl(n,_.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function tit(n){for(let a of n.statements)if((Kl(a)||a.kind===240)&&eit(a))return!0;return!1}function nit(n){return!!(n.flags&16777216)&&tit(n)}function vh(n){if(n.flags&16777216){if(!Rr(n).hasReportedStatementInAmbientContext&&(Ia(n.parent)||rb(n.parent)))return Rr(n).hasReportedStatementInAmbientContext=dl(n,_.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===238||n.parent.kind===265||n.parent.kind===308){let c=Rr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=dl(n,_.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function eae(n){if(n.numericLiteralFlags&32){let a;if(R>=1?a=_.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:TH(n,198)?a=_.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:TH(n,302)&&(a=_.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),a){let c=tv(n.parent)&&n.parent.operator===40,u=(c?"-":"")+"0o"+n.text;return an(c?n.parent:n,a,u)}}return rit(n),!1}function rit(n){let a=Qc(n).indexOf(".")!==-1,c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||ey(!1,hr(n,_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function iit(n){return!!(!(mb(n.parent)||tv(n.parent)&&mb(n.parent.parent))&&R<7&&an(n,_.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function ait(n,a,c,u,p){let h=Gn(n);if(!l0(h)){let T=Pg(h,n.pos);return Lo.add(al(h,wl(T),0,a,c,u,p)),!0}return!1}function oit(){return Go||(Go=[],Ne.forEach((n,a)=>{uF.test(a)&&Go.push(n)})),Go}function sit(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?an(n,_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===272?pke(n.namedBindings):!1}function pke(n){return!!mn(n.elements,a=>{if(a.isTypeOnly)return dl(a,a.kind===273?_.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function cit(n){if(Y.verbatimModuleSyntax&&ie===1)return an(n,_.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ie===5)return an(n,_.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return an(n,_.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(ie!==99&&ie!==199&&ie!==100&&(B1(a),a.length>1)){let u=a[1];return an(u,_.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return an(n,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);let c=wr(a,Km);return c?an(c,_.Argument_of_dynamic_import_cannot_be_spread_element):!1}function lit(n,a){let c=Ur(n);if(c&20&&a.flags&1048576)return wr(a.types,u=>{if(u.flags&524288){let p=c&Ur(u);if(p&4)return n.target===u.target;if(p&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function uit(n,a){if(Ur(n)&128&&yh(a,Kv))return wr(a.types,c=>!Kv(c))}function dit(n,a){let c=0;if(xa(n,c).length>0||(c=1,xa(n,c).length>0))return wr(a.types,p=>xa(p,c).length>0)}function fit(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let p of a.types)if(!(p.flags&406978556)){let h=so([Gp(n),Gp(p)]);if(h.flags&4194304)return p;if(N_(h)||h.flags&1048576){let T=h.flags&1048576?Oy(h.types,N_):1;T>=u&&(c=p,u=T)}}}return c}function _it(n){if(Js(n,67108864)){let a=jc(n,c=>!(c.flags&134348796));if(!(a.flags&131072))return a}return n}function mke(n,a,c,u){if(a.flags&1048576&&n.flags&2621440){let p=O2e(a,n);if(p)return p;let h=Jo(n);if(h){let T=R2e(h,a);if(T)return Wne(a,on(T,k=>[()=>zn(k),k.escapedName]),c,void 0,u)}}}}function mPe(e){return!rb(e)}function D_e(e){return e.kind!==259&&e.kind!==171||!!e.body}function w_e(e){switch(e.parent.kind){case 273:case 278:return Re(e);default:return Rh(e)}}function R_e(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Xl(e){return!!(e.flags&1)}function _K(e){return!!(e.flags&2)}function hPe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ho(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:ho(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var uF,nN,pK,mK,hK,gK,dF,fF,_F,pF,O_e,rN,yK,Qd,iN,gPe=gt({"src/compiler/checker.ts"(){"use strict";fa(),dK(),E0(),uF=/^".+"$/,nN="(anonymous)",pK=1,mK=1,hK=1,gK=1,dF=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(dF||{}),fF=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),_F=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e))(_F||{}),pF=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(pF||{}),O_e=g8(D_e,mPe),rN=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),yK=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Qd||(Qd={})),iN=class{constructor(e,t,r){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var i;t instanceof iN;)t=t.inner;this.inner=t,this.moduleResolverHost=r,this.context=e,this.canTrackSymbol=!!((i=this.inner)!=null&&i.trackSymbol)}trackSymbol(e,t,r){var i;return(i=this.inner)!=null&&i.trackSymbol&&!this.disableTrackSymbol&&this.inner.trackSymbol(e,t,r)?(this.onDiagnosticReported(),!0):!1}reportInaccessibleThisError(){var e;(e=this.inner)!=null&&e.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(t=this.inner)!=null&&t.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(e=this.inner)!=null&&e.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(e=this.inner)!=null&&e.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(t=this.inner)!=null&&t.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(e=this.inner)!=null&&e.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var r;(r=this.inner)!=null&&r.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(t=this.inner)!=null&&t.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,r){var i;(i=this.inner)!=null&&i.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,r))}reportNonSerializableProperty(e){var t;(t=this.inner)!=null&&t.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(e=this.inner)!=null&&e.reportImportTypeNodeResolutionModeOverride&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function $e(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return ba(o)?s=(i||TPe)(o):s=o,L.assertNode(s,r),s}function On(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,f=-1,d=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(f=e.pos,d=e.end,l=e.hasTrailingComma);let g=N_e(e,t,r,i,o);if(g!==e){let m=D.createNodeArray(g,l);return om(m,f,d),m}return e}function vK(e,t,r,i,o){if(e===void 0)return e;let s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),N_e(e,t,r,i,o)}function N_e(e,t,r,i,o){let s,l=e.length;(i>0||o<l)&&(s=[]);for(let f=0;f<o;f++){let d=e[f+i],g=d!==void 0?t?t(d):d:void 0;if((s!==void 0||g===void 0||g!==d)&&(s===void 0&&(s=e.slice(0,f),L.assertEachNode(s,r)),g))if(ba(g))for(let m of g)L.assertNode(m,r),s.push(m);else L.assertNode(g,r),s.push(g)}return s||(L.assertEachNode(e,r),e)}function mF(e,t,r,i,o,s=On){return r.startLexicalEnvironment(),e=s(e,t,ca,i),o&&(e=r.factory.ensureUseStrict(e)),D.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function Sc(e,t,r,i=On){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,ha),r.getLexicalEnvironmentFlags()&2&&Do(r.getCompilerOptions())>=2&&(o=yPe(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function yPe(e,t){let r;for(let i=0;i<e.length;i++){let o=e[i],s=vPe(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?it(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function vPe(e,t){return e.dotDotDotToken?e:La(e.name)?bPe(e,t):e.initializer?EPe(e,e.name,e.initializer,t):e}function bPe(e,t){let{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function EPe(e,t,r,i){let o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),Jn(it(o.createBlock([o.createExpressionStatement(Jn(it(o.createAssignment(Jn(o.cloneNode(t),96),Jn(r,96|Ya(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Zd(e,t,r,i=$e){r.resumeLexicalEnvironment();let o=i(e,t,u6),s=r.endLexicalEnvironment();if(vt(s)){if(!o)return r.factory.createBlock(s);let l=r.factory.converters.convertToFunctionBlock(o),f=D.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,f)}return o}function jf(e,t,r,i=$e){r.startBlockScope();let o=i(e,t,ca,r.factory.liftToBlock);L.assert(o);let s=r.endBlockScope();return vt(s)?Va(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function aN(e,t,r=t){if(r===t||e.length<=1)return On(e,t,ot);let i=0,o=e.length;return On(e,s=>{let l=i<o-1;return i++,l?r(s):t(s)},ot)}function xn(e,t,r,i=On,o,s=$e){if(e===void 0)return;let l=P_e[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function TPe(e){return L.assert(e.length<=1,"Too many nodes written to output."),Wp(e)}var P_e,SPe=gt({"src/compiler/visitorPublic.ts"(){"use strict";fa(),P_e={163:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,L.checkDefined(s(t.left,r,Cd)),L.checkDefined(s(t.right,r,Re)))},164:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,L.checkDefined(s(t.expression,r,ot)))},165:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,Ha),L.checkDefined(s(t.name,r,Re)),s(t.constraint,r,bi),s(t.default,r,bi))},166:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,Ns),l?s(t.dotDotDotToken,l,o3):t.dotDotDotToken,L.checkDefined(s(t.name,r,Mm)),l?s(t.questionToken,l,ev):t.questionToken,s(t.type,r,bi),s(t.initializer,r,ot))},167:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,L.checkDefined(s(t.expression,r,ot)))},168:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,Ha),L.checkDefined(s(t.name,r,Ys)),l?s(t.questionToken,l,ev):t.questionToken,s(t.type,r,bi))},169:function(t,r,i,o,s,l){var f,d;return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Ys)),l?s((f=t.questionToken)!=null?f:t.exclamationToken,l,lde):(d=t.questionToken)!=null?d:t.exclamationToken,s(t.type,r,bi),s(t.initializer,r,ot))},170:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,Ha),L.checkDefined(s(t.name,r,Ys)),l?s(t.questionToken,l,ev):t.questionToken,o(t.typeParameters,r,_c),o(t.parameters,r,ha),s(t.type,r,bi))},171:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,Ns),l?s(t.asteriskToken,l,cO):t.asteriskToken,L.checkDefined(s(t.name,r,Ys)),l?s(t.questionToken,l,ev):t.questionToken,o(t.typeParameters,r,_c),Sc(t.parameters,r,i,o),s(t.type,r,bi),Zd(t.body,r,i,s))},173:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,Ns),Sc(t.parameters,r,i,o),Zd(t.body,r,i,s))},174:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Ys)),Sc(t.parameters,r,i,o),s(t.type,r,bi),Zd(t.body,r,i,s))},175:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Ys)),Sc(t.parameters,r,i,o),Zd(t.body,r,i,s))},172:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Zd(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,_c),o(t.parameters,r,ha),s(t.type,r,bi))},177:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,_c),o(t.parameters,r,ha),s(t.type,r,bi))},178:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,Ns),o(t.parameters,r,ha),L.checkDefined(s(t.type,r,bi)))},179:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,Due),L.checkDefined(s(t.parameterName,r,ude)),s(t.type,r,bi))},180:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,L.checkDefined(s(t.typeName,r,Cd)),o(t.typeArguments,r,bi))},181:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,_c),o(t.parameters,r,ha),L.checkDefined(s(t.type,r,bi)))},182:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,Ha),o(t.typeParameters,r,_c),o(t.parameters,r,ha),L.checkDefined(s(t.type,r,bi)))},183:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,L.checkDefined(s(t.exprName,r,Cd)),o(t.typeArguments,r,bi))},184:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,_T))},185:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,L.checkDefined(s(t.elementType,r,bi)))},186:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,bi))},187:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,L.checkDefined(s(t.type,r,bi)))},188:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,L.checkDefined(s(t.type,r,bi)))},189:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,bi))},190:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,bi))},191:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,L.checkDefined(s(t.checkType,r,bi)),L.checkDefined(s(t.extendsType,r,bi)),L.checkDefined(s(t.trueType,r,bi)),L.checkDefined(s(t.falseType,r,bi)))},192:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,L.checkDefined(s(t.typeParameter,r,_c)))},202:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,L.checkDefined(s(t.argument,r,bi)),s(t.assertions,r,Vue),s(t.qualifier,r,Cd),o(t.typeArguments,r,bi),t.isTypeOf)},298:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,L.checkDefined(s(t.assertClause,r,p3)),t.multiLine)},199:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,o3):t.dotDotDotToken,L.checkDefined(s(t.name,r,Re)),l?s(t.questionToken,l,ev):t.questionToken,L.checkDefined(s(t.type,r,bi)))},193:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,L.checkDefined(s(t.type,r,bi)))},195:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,L.checkDefined(s(t.type,r,bi)))},196:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,L.checkDefined(s(t.objectType,r,bi)),L.checkDefined(s(t.indexType,r,bi)))},197:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,dde):t.readonlyToken,L.checkDefined(s(t.typeParameter,r,_c)),s(t.nameType,r,bi),l?s(t.questionToken,l,fde):t.questionToken,s(t.type,r,bi),o(t.members,r,_T))},198:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,L.checkDefined(s(t.literal,r,hse)))},200:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,L.checkDefined(s(t.head,r,f2)),o(t.templateSpans,r,Mue))},201:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,L.checkDefined(s(t.type,r,bi)),L.checkDefined(s(t.literal,r,o6)))},203:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,Wo))},204:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,c6))},205:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,o3):t.dotDotDotToken,s(t.propertyName,r,Ys),L.checkDefined(s(t.name,r,Mm)),s(t.initializer,r,ot))},206:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,ot))},207:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Og))},208:function(t,r,i,o,s,l){return n6(t)?i.factory.updatePropertyAccessChain(t,L.checkDefined(s(t.expression,r,ot)),l?s(t.questionDotToken,l,s3):t.questionDotToken,L.checkDefined(s(t.name,r,Ah))):i.factory.updatePropertyAccessExpression(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.name,r,Ah)))},209:function(t,r,i,o,s,l){return Dj(t)?i.factory.updateElementAccessChain(t,L.checkDefined(s(t.expression,r,ot)),l?s(t.questionDotToken,l,s3):t.questionDotToken,L.checkDefined(s(t.argumentExpression,r,ot))):i.factory.updateElementAccessExpression(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.argumentExpression,r,ot)))},210:function(t,r,i,o,s,l){return dT(t)?i.factory.updateCallChain(t,L.checkDefined(s(t.expression,r,ot)),l?s(t.questionDotToken,l,s3):t.questionDotToken,o(t.typeArguments,r,bi),o(t.arguments,r,ot)):i.factory.updateCallExpression(t,L.checkDefined(s(t.expression,r,ot)),o(t.typeArguments,r,bi),o(t.arguments,r,ot))},211:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,L.checkDefined(s(t.expression,r,ot)),o(t.typeArguments,r,bi),o(t.arguments,r,ot))},212:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,L.checkDefined(s(t.tag,r,ot)),o(t.typeArguments,r,bi),L.checkDefined(s(t.template,r,AA)))},213:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,L.checkDefined(s(t.type,r,bi)),L.checkDefined(s(t.expression,r,ot)))},214:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,L.checkDefined(s(t.expression,r,ot)))},215:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,Ha),l?s(t.asteriskToken,l,cO):t.asteriskToken,s(t.name,r,Re),o(t.typeParameters,r,_c),Sc(t.parameters,r,i,o),s(t.type,r,bi),Zd(t.body,r,i,s))},216:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,Ha),o(t.typeParameters,r,_c),Sc(t.parameters,r,i,o),s(t.type,r,bi),l?L.checkDefined(s(t.equalsGreaterThanToken,l,Lue)):t.equalsGreaterThanToken,Zd(t.body,r,i,s))},217:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,L.checkDefined(s(t.expression,r,ot)))},218:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,L.checkDefined(s(t.expression,r,ot)))},219:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,L.checkDefined(s(t.expression,r,ot)))},220:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,L.checkDefined(s(t.expression,r,ot)))},221:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,L.checkDefined(s(t.operand,r,ot)))},222:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,L.checkDefined(s(t.operand,r,ot)))},223:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,L.checkDefined(s(t.left,r,ot)),l?L.checkDefined(s(t.operatorToken,l,pde)):t.operatorToken,L.checkDefined(s(t.right,r,ot)))},224:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,L.checkDefined(s(t.condition,r,ot)),l?L.checkDefined(s(t.questionToken,l,ev)):t.questionToken,L.checkDefined(s(t.whenTrue,r,ot)),l?L.checkDefined(s(t.colonToken,l,Iue)):t.colonToken,L.checkDefined(s(t.whenFalse,r,ot)))},225:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,L.checkDefined(s(t.head,r,f2)),o(t.templateSpans,r,xL))},226:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,cO):t.asteriskToken,s(t.expression,r,ot))},227:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,L.checkDefined(s(t.expression,r,ot)))},228:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,Ns),s(t.name,r,Re),o(t.typeParameters,r,_c),o(t.heritageClauses,r,dd),o(t.members,r,_l))},230:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,L.checkDefined(s(t.expression,r,ot)),o(t.typeArguments,r,bi))},231:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.type,r,bi)))},235:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.type,r,bi)))},232:function(t,r,i,o,s,l){return Jl(t)?i.factory.updateNonNullChain(t,L.checkDefined(s(t.expression,r,ot))):i.factory.updateNonNullExpression(t,L.checkDefined(s(t.expression,r,ot)))},233:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,L.checkDefined(s(t.name,r,Re)))},236:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.literal,r,o6)))},238:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,ca))},240:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.declarationList,r,pu)))},241:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,L.checkDefined(s(t.expression,r,ot)))},242:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.thenStatement,r,ca,i.factory.liftToBlock)),s(t.elseStatement,r,ca,i.factory.liftToBlock))},243:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,jf(t.statement,r,i,s),L.checkDefined(s(t.expression,r,ot)))},244:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,L.checkDefined(s(t.expression,r,ot)),jf(t.statement,r,i,s))},245:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,pp),s(t.condition,r,ot),s(t.incrementor,r,ot),jf(t.statement,r,i,s))},246:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,L.checkDefined(s(t.initializer,r,pp)),L.checkDefined(s(t.expression,r,ot)),jf(t.statement,r,i,s))},247:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,Dz):t.awaitModifier,L.checkDefined(s(t.initializer,r,pp)),L.checkDefined(s(t.expression,r,ot)),jf(t.statement,r,i,s))},248:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,Re))},249:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,Re))},250:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,ot))},251:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.statement,r,ca,i.factory.liftToBlock)))},252:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,L.checkDefined(s(t.expression,r,ot)),L.checkDefined(s(t.caseBlock,r,hO)))},253:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,L.checkDefined(s(t.label,r,Re)),L.checkDefined(s(t.statement,r,ca,i.factory.liftToBlock)))},254:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,L.checkDefined(s(t.expression,r,ot)))},255:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,L.checkDefined(s(t.tryBlock,r,Va)),s(t.catchClause,r,E2),s(t.finallyBlock,r,Va))},257:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,L.checkDefined(s(t.name,r,Mm)),l?s(t.exclamationToken,l,lO):t.exclamationToken,s(t.type,r,bi),s(t.initializer,r,ot))},258:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,wi))},259:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,Ha),l?s(t.asteriskToken,l,cO):t.asteriskToken,s(t.name,r,Re),o(t.typeParameters,r,_c),Sc(t.parameters,r,i,o),s(t.type,r,bi),Zd(t.body,r,i,s))},260:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,Ns),s(t.name,r,Re),o(t.typeParameters,r,_c),o(t.heritageClauses,r,dd),o(t.members,r,_l))},261:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Re)),o(t.typeParameters,r,_c),o(t.heritageClauses,r,dd),o(t.members,r,_T))},262:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Re)),o(t.typeParameters,r,_c),L.checkDefined(s(t.type,r,bi)))},263:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,Re)),o(t.members,r,q0))},264:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.name,r,_de)),s(t.body,r,vse))},265:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,ca))},266:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,Kj))},267:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,L.checkDefined(s(t.name,r,Re)))},268:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,Ns),t.isTypeOnly,L.checkDefined(s(t.name,r,Re)),L.checkDefined(s(t.moduleReference,r,Tse)))},269:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,Ns),s(t.importClause,r,lm),L.checkDefined(s(t.moduleSpecifier,r,ot)),s(t.assertClause,r,p3))},296:function(t,r,i,o,s,l){return i.factory.updateAssertClause(t,o(t.elements,r,jue),t.multiLine)},297:function(t,r,i,o,s,l){return i.factory.updateAssertEntry(t,L.checkDefined(s(t.name,r,ase)),L.checkDefined(s(t.value,r,ot)))},270:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,Re),s(t.namedBindings,r,Wj))},271:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,L.checkDefined(s(t.name,r,Re)))},277:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,L.checkDefined(s(t.name,r,Re)))},272:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,$u))},273:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Re),L.checkDefined(s(t.name,r,Re)))},274:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,Ns),L.checkDefined(s(t.expression,r,ot)))},275:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,Ns),t.isTypeOnly,s(t.exportClause,r,Rj),s(t.moduleSpecifier,r,ot),s(t.assertClause,r,p3))},276:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,Mu))},278:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Re),L.checkDefined(s(t.name,r,Re)))},280:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,L.checkDefined(s(t.expression,r,ot)))},281:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,L.checkDefined(s(t.openingElement,r,Xm)),o(t.children,r,Pw),L.checkDefined(s(t.closingElement,r,GS)))},282:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,L.checkDefined(s(t.tagName,r,bI)),o(t.typeArguments,r,bi),L.checkDefined(s(t.attributes,r,K0)))},283:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,L.checkDefined(s(t.tagName,r,bI)),o(t.typeArguments,r,bi),L.checkDefined(s(t.attributes,r,K0)))},284:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,L.checkDefined(s(t.tagName,r,bI)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,L.checkDefined(s(t.openingFragment,r,US)),o(t.children,r,Pw),L.checkDefined(s(t.closingFragment,r,Hue)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,L.checkDefined(s(t.name,r,Re)),s(t.initializer,r,Sse))},289:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,d6))},290:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,L.checkDefined(s(t.expression,r,ot)))},291:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,ot))},292:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,L.checkDefined(s(t.expression,r,ot)),o(t.statements,r,ca))},293:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,ca))},294:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,Vg))},295:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,wi),L.checkDefined(s(t.block,r,Va)))},299:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,L.checkDefined(s(t.name,r,Ys)),L.checkDefined(s(t.initializer,r,ot)))},300:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,L.checkDefined(s(t.name,r,Re)),s(t.objectAssignmentInitializer,r,ot))},301:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,L.checkDefined(s(t.expression,r,ot)))},302:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,L.checkDefined(s(t.name,r,Ys)),s(t.initializer,r,ot))},308:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,mF(t.statements,r,i))},356:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,L.checkDefined(s(t.expression,r,ot)))},357:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,ot))}}}});function M_e(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?x8("Source Map","beforeSourcemap","afterSourcemap"):A8,f=[],d=[],g=new Map,m,v=[],S,x=[],A="",w=0,C=0,P=0,F=0,B=0,q=0,W=!1,Y=0,R=0,ie=0,$=0,fe=0,Z=0,U=!1,re=!1,le=!1;return{getSources:()=>f,addSource:_e,setSourceContent:ge,addName:X,addMapping:ke,appendSourceMap:Pe,toJSON:Le,toString:()=>JSON.stringify(Le())};function _e(_t){s();let ct=Q1(i,_t,e.getCurrentDirectory(),e.getCanonicalFileName,!0),Rt=g.get(ct);return Rt===void 0&&(Rt=d.length,d.push(ct),f.push(_t),g.set(ct,Rt)),l(),Rt}function ge(_t,ct){if(s(),ct!==null){for(m||(m=[]);m.length<_t;)m.push(null);m[_t]=ct}l()}function X(_t){s(),S||(S=new Map);let ct=S.get(_t);return ct===void 0&&(ct=v.length,v.push(_t),S.set(_t,ct)),l(),ct}function Ve(_t,ct){return!U||Y!==_t||R!==ct}function we(_t,ct,Rt){return _t!==void 0&&ct!==void 0&&Rt!==void 0&&ie===_t&&($>ct||$===ct&&fe>Rt)}function ke(_t,ct,Rt,We,qe,zt){L.assert(_t>=Y,"generatedLine cannot backtrack"),L.assert(ct>=0,"generatedCharacter cannot be negative"),L.assert(Rt===void 0||Rt>=0,"sourceIndex cannot be negative"),L.assert(We===void 0||We>=0,"sourceLine cannot be negative"),L.assert(qe===void 0||qe>=0,"sourceCharacter cannot be negative"),s(),(Ve(_t,ct)||we(Rt,We,qe))&&(Be(),Y=_t,R=ct,re=!1,le=!1,U=!0),Rt!==void 0&&We!==void 0&&qe!==void 0&&(ie=Rt,$=We,fe=qe,re=!0,zt!==void 0&&(Z=zt,le=!0)),l()}function Pe(_t,ct,Rt,We,qe,zt){L.assert(_t>=Y,"generatedLine cannot backtrack"),L.assert(ct>=0,"generatedCharacter cannot be negative"),s();let Qt=[],tn,kn=EK(Rt.mappings);for(let _n of kn){if(zt&&(_n.generatedLine>zt.line||_n.generatedLine===zt.line&&_n.generatedCharacter>zt.character))break;if(qe&&(_n.generatedLine<qe.line||qe.line===_n.generatedLine&&_n.generatedCharacter<qe.character))continue;let Gt,$n,ui,Ni;if(_n.sourceIndex!==void 0){if(Gt=Qt[_n.sourceIndex],Gt===void 0){let Dt=Rt.sources[_n.sourceIndex],pn=Rt.sourceRoot?vi(Rt.sourceRoot,Dt):Dt,An=vi(ni(We),pn);Qt[_n.sourceIndex]=Gt=_e(An),Rt.sourcesContent&&typeof Rt.sourcesContent[_n.sourceIndex]=="string"&&ge(Gt,Rt.sourcesContent[_n.sourceIndex])}$n=_n.sourceLine,ui=_n.sourceCharacter,Rt.names&&_n.nameIndex!==void 0&&(tn||(tn=[]),Ni=tn[_n.nameIndex],Ni===void 0&&(tn[_n.nameIndex]=Ni=X(Rt.names[_n.nameIndex])))}let Pi=_n.generatedLine-(qe?qe.line:0),gr=Pi+_t,pt=qe&&qe.line===_n.generatedLine?_n.generatedCharacter-qe.character:_n.generatedCharacter,nn=Pi===0?pt+ct:pt;ke(gr,nn,Gt,$n,ui,Ni)}l()}function Ce(){return!W||w!==Y||C!==R||P!==ie||F!==$||B!==fe||q!==Z}function Ie(_t){x.push(_t),x.length>=1024&&Ne()}function Be(){if(!(!U||!Ce())){if(s(),w<Y){do Ie(59),w++;while(w<Y);C=0}else L.assertEqual(w,Y,"generatedLine cannot backtrack"),W&&Ie(44);Ye(R-C),C=R,re&&(Ye(ie-P),P=ie,Ye($-F),F=$,Ye(fe-B),B=fe,le&&(Ye(Z-q),q=Z)),W=!0,l()}}function Ne(){x.length>0&&(A+=String.fromCharCode.apply(void 0,x),x.length=0)}function Le(){return Be(),Ne(),{version:3,file:t,sourceRoot:r,sources:d,names:v,mappings:A,sourcesContent:m}}function Ye(_t){_t<0?_t=(-_t<<1)+1:_t=_t<<1;do{let ct=_t&31;_t=_t>>5,_t>0&&(ct=ct|32),Ie(CPe(ct))}while(_t>0)}}function F_e(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function G_e(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=hF.exec(r);if(i)return $D(i[1]);if(!r.match(gF))break}}function xPe(e){return typeof e=="string"||e===null}function B_e(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ba(e.sources)&&Ji(e.sources,Ta)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ba(e.sourcesContent)&&Ji(e.sourcesContent,xPe))&&(e.names===void 0||e.names===null||ba(e.names)&&Ji(e.names,Ta))}function bK(e){try{let t=JSON.parse(e);if(B_e(t))return t}catch{}}function EK(e){let t=!1,r=0,i=0,o=0,s=0,l=0,f=0,d=0,g;return{get pos(){return r},get error(){return g},get state(){return m(!0,!0)},next(){for(;!t&&r<e.length;){let P=e.charCodeAt(r);if(P===59){i++,o=0,r++;continue}if(P===44){r++;continue}let F=!1,B=!1;if(o+=C(),A())return v();if(o<0)return x("Invalid generatedCharacter found");if(!w()){if(F=!0,s+=C(),A())return v();if(s<0)return x("Invalid sourceIndex found");if(w())return x("Unsupported Format: No entries after sourceIndex");if(l+=C(),A())return v();if(l<0)return x("Invalid sourceLine found");if(w())return x("Unsupported Format: No entries after sourceLine");if(f+=C(),A())return v();if(f<0)return x("Invalid sourceCharacter found");if(!w()){if(B=!0,d+=C(),A())return v();if(d<0)return x("Invalid nameIndex found");if(!w())return x("Unsupported Error Format: Entries after nameIndex")}}return{value:m(F,B),done:t}}return v()},[Symbol.iterator](){return this}};function m(P,F){return{generatedLine:i,generatedCharacter:o,sourceIndex:P?s:void 0,sourceLine:P?l:void 0,sourceCharacter:P?f:void 0,nameIndex:F?d:void 0}}function v(){return t=!0,{value:void 0,done:!0}}function S(P){g===void 0&&(g=P)}function x(P){return S(P),v()}function A(){return g!==void 0}function w(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function C(){let P=!0,F=0,B=0;for(;P;r++){if(r>=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let q=IPe(e.charCodeAt(r));if(q===-1)return S("Invalid character in VLQ"),-1;P=(q&32)!==0,B=B|(q&31)<<F,F+=5}return B&1?(B=B>>1,B=-B):B=B>>1,B}}function APe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function U_e(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function CPe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:L.fail(`${e}: not a base64 value`)}function IPe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function V_e(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function j_e(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function LPe(e,t){return L.assert(e.sourceIndex===t.sourceIndex),Es(e.sourcePosition,t.sourcePosition)}function kPe(e,t){return Es(e.generatedPosition,t.generatedPosition)}function DPe(e){return e.sourcePosition}function wPe(e){return e.generatedPosition}function H_e(e,t,r){let i=ni(r),o=t.sourceRoot?_a(t.sourceRoot,i):i,s=_a(t.file,i),l=e.getSourceFileLike(s),f=t.sources.map(F=>_a(F,o)),d=new Map(f.map((F,B)=>[e.getCanonicalFileName(F),B])),g,m,v;return{getSourcePosition:P,getGeneratedPosition:C};function S(F){let B=l!==void 0?gw(l,F.generatedLine,F.generatedCharacter,!0):-1,q,W;if(U_e(F)){let Y=e.getSourceFileLike(f[F.sourceIndex]);q=t.sources[F.sourceIndex],W=Y!==void 0?gw(Y,F.sourceLine,F.sourceCharacter,!0):-1}return{generatedPosition:B,source:q,sourceIndex:F.sourceIndex,sourcePosition:W,nameIndex:F.nameIndex}}function x(){if(g===void 0){let F=EK(t.mappings),B=lo(F,S);F.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${F.error}`),g=Je):g=B}return g}function A(F){if(v===void 0){let B=[];for(let q of x()){if(!V_e(q))continue;let W=B[q.sourceIndex];W||(B[q.sourceIndex]=W=[]),W.push(q)}v=B.map(q=>HD(q,LPe,j_e))}return v[F]}function w(){if(m===void 0){let F=[];for(let B of x())F.push(B);m=HD(F,kPe,j_e)}return m}function C(F){let B=d.get(e.getCanonicalFileName(F.fileName));if(B===void 0)return F;let q=A(B);if(!vt(q))return F;let W=j1(q,F.pos,DPe,Es);W<0&&(W=~W);let Y=q[W];return Y===void 0||Y.sourceIndex!==B?F:{fileName:s,pos:Y.generatedPosition}}function P(F){let B=w();if(!vt(B))return F;let q=j1(B,F.pos,wPe,Es);q<0&&(q=~q);let W=B[q];return W===void 0||!V_e(W)?F:{fileName:f[W.sourceIndex],pos:W.sourcePosition}}}var TK,hF,gF,yF,RPe=gt({"src/compiler/sourcemap.ts"(){"use strict";fa(),E0(),TK=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,hF=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,gF=/^\s*(\/\/[@#] .*)?$/,yF={getSourcePosition:Ks,getGeneratedPosition:Ks}}});function sc(e){return e=ec(e),e?zo(e):0}function OPe(e){return!e||!jg(e)?!1:vt(e.elements,W_e)}function W_e(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function y_(e,t){return r;function r(o){return o.kind===308?t(o):i(o)}function i(o){return e.factory.createBundle(on(o.sourceFiles,t),o.prepends)}}function z_e(e){return!!VA(e)}function vF(e){if(VA(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!jg(t))return!1;let r=0;for(let i of t.elements)W_e(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&lS(e)}function SK(e){return!vF(e)&&(lS(e)||!!e.importClause&&jg(e.importClause.namedBindings)&&OPe(e.importClause.namedBindings))}function xK(e,t,r,i){let o=[],s=Nf(),l=[],f=new Map,d,g=!1,m,v=!1,S=!1,x=!1;for(let C of t.statements)switch(C.kind){case 269:o.push(C),!S&&vF(C)&&(S=!0),!x&&SK(C)&&(x=!0);break;case 268:C.moduleReference.kind===280&&o.push(C);break;case 275:if(C.moduleSpecifier)if(!C.exportClause)o.push(C),v=!0;else if(o.push(C),h_(C.exportClause))w(C);else{let P=C.exportClause.name;f.get(vr(P))||(HL(l,sc(C),P),f.set(vr(P),!0),d=Sn(d,P)),S=!0}else w(C);break;case 274:C.isExportEquals&&!m&&(m=C);break;case 240:if(Mr(C,1))for(let P of C.declarationList.declarations)d=J_e(P,f,d);break;case 259:if(Mr(C,1))if(Mr(C,1024))g||(HL(l,sc(C),e.factory.getDeclarationName(C)),g=!0);else{let P=C.name;f.get(vr(P))||(HL(l,sc(C),P),f.set(vr(P),!0),d=Sn(d,P))}break;case 260:if(Mr(C,1))if(Mr(C,1024))g||(HL(l,sc(C),e.factory.getDeclarationName(C)),g=!0);else{let P=C.name;P&&!f.get(vr(P))&&(HL(l,sc(C),P),f.set(vr(P),!0),d=Sn(d,P))}break}let A=nJ(e.factory,e.getEmitHelperFactory(),t,i,v,S,x);return A&&o.unshift(A),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:v,exportedBindings:l,exportedNames:d,externalHelpersImportDeclaration:A};function w(C){for(let P of Ga(C.exportClause,h_).elements)if(!f.get(vr(P.name))){let F=P.propertyName||P.name;C.moduleSpecifier||s.add(vr(F),P);let B=r.getReferencedImportDeclaration(F)||r.getReferencedValueDeclaration(F);B&&HL(l,sc(B),P.name),f.set(vr(P.name),!0),d=Sn(d,P.name)}}}function J_e(e,t,r){if(La(e.name))for(let i of e.name.elements)ol(i)||(r=J_e(i,t,r));else if(!tc(e.name)){let i=vr(e.name);t.get(i)||(t.set(i,!0),r=Sn(r,e.name))}return r}function HL(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function Z0(e){return es(e)||e.kind===8||Xu(e.kind)||Re(e)}function Ap(e){return!Re(e)&&Z0(e)}function oN(e){return e>=64&&e<=78}function WL(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}function AK(e){if(!Ol(e))return;let t=vs(e.expression);return OA(t)?t:void 0}function bF(e,t){for(let r=t;r<e.length;r+=1){let i=e[r];if(AK(i))return r}return-1}function CK(e,t,r){return Pr(e.members,i=>PPe(i,t,r))}function NPe(e){return MPe(e)||oc(e)}function EF(e){return Pr(e.members,NPe)}function PPe(e,t,r){return Na(e)&&(!!e.initializer||!t)&&zc(e)===r}function MPe(e){return Na(e)&&zc(e)}function sN(e){return e.kind===169&&e.initializer!==void 0}function K_e(e){return!Ca(e)&&(xA(e)||Id(e))&&pi(e.name)}function IK(e){let t;if(e){let r=e.parameters,i=r.length>0&&G0(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){let f=r[l+o];(t||bf(f))&&(t||(t=new Array(s)),t[l]=Uy(f))}}return t}function LK(e){let t=Uy(e),r=IK(Vm(e));if(!(!vt(t)&&!vt(r)))return{decorators:t,parameters:r}}function TF(e,t,r){switch(e.kind){case 174:case 175:return r?FPe(e,t):q_e(e);case 171:return q_e(e);case 169:return GPe(e);default:return}}function FPe(e,t){if(!e.body)return;let{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=kT(t.members,e),l=bf(r)?r:i&&bf(i)?i:void 0;if(!l||e!==l)return;let f=Uy(l),d=IK(s);if(!(!vt(f)&&!vt(d)))return{decorators:f,parameters:d,getDecorators:o&&Uy(o),setDecorators:s&&Uy(s)}}function q_e(e){if(!e.body)return;let t=Uy(e),r=IK(e);if(!(!vt(t)&&!vt(r)))return{decorators:t,parameters:r}}function GPe(e){let t=Uy(e);if(vt(t))return{decorators:t}}function X_e(e,t){for(;e;){let r=t(e);if(r!==void 0)return r;e=e.previous}}function Y_e(e){return{data:e}}function kK(e,t){var r,i;return tS(t)?(r=e?.generatedIdentifiers)==null?void 0:r.get(I3(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function JT(e,t,r){var i,o;tS(t)?((i=e.generatedIdentifiers)!=null||(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(I3(t),r)):((o=e.identifiers)!=null||(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function $_e(e,t){return X_e(e,r=>kK(r.privateEnv,t))}var BPe=gt({"src/compiler/transformers/utilities.ts"(){"use strict";fa()}});function KT(e,t,r,i,o,s){let l=e,f;if(Fg(e))for(f=e.right;Zce(e.left)||dW(e.left);)if(Fg(f))l=e=f,f=e.right;else return L.checkDefined($e(f,t,ot));let d,g={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:S=>KPe(r.factory,S),createObjectBindingOrAssignmentPattern:S=>XPe(r.factory,S),createArrayBindingOrAssignmentElement:$Pe,visitor:t};if(f&&(f=$e(f,t,ot),L.assert(f),Re(f)&&DK(e,f.escapedText)||wK(e)?f=qT(g,f,!1,l):o?f=qT(g,f,!0,l):ws(e)&&(l=f)),M2(g,e,f,l,Fg(e)),f&&o){if(!vt(d))return f;d.push(f)}return r.factory.inlineExpressions(d)||r.factory.createOmittedExpression();function m(S){d=Sn(d,S)}function v(S,x,A,w){L.assertNode(S,s?Re:ot);let C=s?s(S,x,A):it(r.factory.createAssignment(L.checkDefined($e(S,t,ot)),x),A);C.original=w,m(C)}}function DK(e,t){let r=iv(e);return kw(r)?UPe(r,t):Re(r)?r.escapedText===t:!1}function UPe(e,t){let r=I2(e);for(let i of r)if(DK(i,t))return!0;return!1}function wK(e){let t=A3(e);if(t&&ts(t)&&!fT(t.expression))return!0;let r=iv(e);return!!r&&kw(r)&&VPe(r)}function VPe(e){return!!mn(I2(e),wK)}function eE(e,t,r,i,o,s=!1,l){let f,d=[],g=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:v,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:x=>JPe(r.factory,x),createObjectBindingOrAssignmentPattern:x=>qPe(r.factory,x),createArrayBindingOrAssignmentElement:x=>YPe(r.factory,x),visitor:t};if(wi(e)){let x=AO(e);x&&(Re(x)&&DK(e,x.escapedText)||wK(e))&&(x=qT(m,L.checkDefined($e(x,m.visitor,ot)),!1,x),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,x))}if(M2(m,e,o,e,l),f){let x=r.factory.createTempVariable(void 0);if(s){let A=r.factory.inlineExpressions(f);f=void 0,S(x,A,void 0,void 0)}else{r.hoistVariableDeclaration(x);let A=To(d);A.pendingExpressions=Sn(A.pendingExpressions,r.factory.createAssignment(x,A.value)),si(A.pendingExpressions,f),A.value=x}}for(let{pendingExpressions:x,name:A,value:w,location:C,original:P}of d){let F=r.factory.createVariableDeclaration(A,void 0,void 0,x?r.factory.inlineExpressions(Sn(x,w)):w);F.original=P,it(F,C),g.push(F)}return g;function v(x){f=Sn(f,x)}function S(x,A,w,C){L.assertNode(x,Mm),f&&(A=r.factory.inlineExpressions(Sn(f,A)),f=void 0),d.push({pendingExpressions:f,name:x,value:A,location:w,original:C})}}function M2(e,t,r,i,o){let s=iv(t);if(!o){let l=$e(AO(t),e.visitor,ot);l?r?(r=WPe(e,r,l,i),!Ap(l)&&kw(s)&&(r=qT(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}Uj(s)?jPe(e,t,s,r,i):Vj(s)?HPe(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function jPe(e,t,r,i,o){let s=I2(r),l=s.length;if(l!==1){let g=!Lw(t)||l!==0;i=qT(e,i,g,o)}let f,d;for(let g=0;g<l;g++){let m=s[g];if(x3(m)){if(g===l-1){f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);let v=e.context.getEmitHelperFactory().createRestHelper(i,s,d,r);M2(e,m,v,m)}}else{let v=rJ(m);if(e.level>=1&&!(m.transformFlags&98304)&&!(iv(m).transformFlags&98304)&&!ts(v))f=Sn(f,$e(m,e.visitor,use));else{f&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r),f=void 0);let S=zPe(e,i,v);ts(v)&&(d=Sn(d,S.argumentExpression)),M2(e,m,S,m)}}}f&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(f),i,o,r)}function HPe(e,t,r,i,o){let s=I2(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=qT(e,it(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&x3(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||Ji(s,ol)){let g=!Lw(t)||l!==0;i=qT(e,i,g,o)}let f,d;for(let g=0;g<l;g++){let m=s[g];if(e.level>=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!Q_e(m)){e.hasTransformedPriorElement=!0;let v=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(v),d=Sn(d,[v,m]),f=Sn(f,e.createArrayBindingOrAssignmentElement(v))}else f=Sn(f,m);else{if(ol(m))continue;if(x3(m)){if(g===l-1){let v=e.context.factory.createArraySliceCall(i,g);M2(e,m,v,m)}}else{let v=e.context.factory.createElementAccessExpression(i,g);M2(e,m,v,m)}}}if(f&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(f),i,o,r),d)for(let[g,m]of d)M2(e,m,g,m)}function Q_e(e){let t=iv(e);if(!t||ol(t))return!0;let r=A3(e);if(r&&!c_(r))return!1;let i=AO(e);return i&&!Ap(i)?!1:kw(t)?Ji(I2(t),Q_e):Re(t)}function WPe(e,t,r,i){return t=qT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function zPe(e,t,r){if(ts(r)){let i=qT(e,L.checkDefined($e(r.expression,e.visitor,ot)),!1,r);return e.context.factory.createElementAccessExpression(t,i)}else if(yf(r)){let i=D.cloneNode(r);return e.context.factory.createElementAccessExpression(t,i)}else{let i=e.context.factory.createIdentifier(vr(r));return e.context.factory.createPropertyAccessExpression(t,i)}}function qT(e,t,r,i){if(Re(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(it(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function JPe(e,t){return L.assertEachNode(t,c6),e.createArrayBindingPattern(t)}function KPe(e,t){return L.assertEachNode(t,ww),e.createArrayLiteralExpression(on(t,e.converters.convertToArrayAssignmentElement))}function qPe(e,t){return L.assertEachNode(t,Wo),e.createObjectBindingPattern(t)}function XPe(e,t){return L.assertEachNode(t,Dw),e.createObjectLiteralExpression(on(t,e.converters.convertToObjectAssignmentElement))}function YPe(e,t){return e.createBindingElement(void 0,void 0,t)}function $Pe(e){return e}var RK,QPe=gt({"src/compiler/transformers/destructuring.ts"(){"use strict";fa(),RK=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(RK||{})}});function OK(e,t,r,i,o,s){let l=$e(t.tag,r,ot);L.assert(l);let f=[void 0],d=[],g=[],m=t.template;if(s===0&&!KH(m))return xn(t,r,e);if(IS(m))d.push(NK(m)),g.push(PK(m,i));else{d.push(NK(m.head)),g.push(PK(m.head,i));for(let S of m.templateSpans)d.push(NK(S.literal)),g.push(PK(S.literal,i)),f.push(L.checkDefined($e(S.expression,r,ot)))}let v=e.getEmitHelperFactory().createTemplateObjectHelper(D.createArrayLiteralExpression(d),D.createArrayLiteralExpression(g));if(Lc(i)){let S=D.createUniqueName("templateObject");o(S),f[0]=D.createLogicalOr(S,D.createAssignment(S,v))}else f[0]=v;return D.createCallExpression(l,void 0,f)}function NK(e){return e.templateFlags?D.createVoidZero():D.createStringLiteral(e.text)}function PK(e,t){let r=e.rawText;if(r===void 0){L.assertIsDefined(t,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=k0(t,e);let i=e.kind===14||e.kind===17;r=r.substring(1,r.length-(i?1:2))}return r=r.replace(/\r\n?/g,`
| `),it(D.createStringLiteral(r),e)}var MK,ZPe=gt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";fa(),MK=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(MK||{})}});function Z_e(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,f=e.getEmitResolver(),d=e.getCompilerOptions(),g=Do(d),m=Rl(d),v=!!d.experimentalDecorators,S=d.emitDecoratorMetadata?npe(e):void 0,x=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=bl,e.onSubstituteNode=ss,e.enableSubstitution(208),e.enableSubstitution(209);let w,C,P,F,B,q,W,Y;return R;function R(K){return K.kind===309?ie(K):$(K)}function ie(K){return t.createBundle(K.sourceFiles.map($),Zi(K.prepends,Xe=>Xe.kind===311?fz(Xe,"js"):Xe))}function $(K){if(K.isDeclarationFile)return K;w=K;let Xe=fe(K,Ye);return Bg(Xe,e.readEmitHelpers()),w=void 0,Xe}function fe(K,Xe){let ft=F,Yt=B,pr=q;Z(K);let yr=Xe(K);return F!==ft&&(B=Yt),F=ft,q=pr,yr}function Z(K){switch(K.kind){case 308:case 266:case 265:case 238:F=K,B=void 0;break;case 260:case 259:if(Mr(K,2))break;K.name?Te(K):L.assert(K.kind===260||Mr(K,1024));break}}function U(K){return fe(K,re)}function re(K){return K.transformFlags&1?Le(K):K}function le(K){return fe(K,_e)}function _e(K){switch(K.kind){case 269:case 268:case 274:case 275:return ge(K);default:return re(K)}}function ge(K){if(ea(K)!==K)return K.transformFlags&1?xn(K,U,e):K;switch(K.kind){case 269:return jr(K);case 268:return Qr(K);case 274:return Ja(K);case 275:return Za(K);default:L.fail("Unhandled ellided statement")}}function X(K){return fe(K,Ve)}function Ve(K){if(!(K.kind===275||K.kind===269||K.kind===270||K.kind===268&&K.moduleReference.kind===280))return K.transformFlags&1||Mr(K,1)?Le(K):K}function we(K){return Xe=>fe(Xe,ft=>ke(ft,K))}function ke(K,Xe){switch(K.kind){case 173:return hi(K);case 169:return Kn(K,Xe);case 174:return dr(K,Xe);case 175:return Cr(K,Xe);case 171:return Ht(K,Xe);case 172:return xn(K,U,e);case 237:return K;case 178:return;default:return L.failBadSyntaxKind(K)}}function Pe(K){return Xe=>fe(Xe,ft=>Ce(ft,K))}function Ce(K,Xe){switch(K.kind){case 299:case 300:case 301:return U(K);case 174:return dr(K,Xe);case 175:return Cr(K,Xe);case 171:return Ht(K,Xe);default:return L.failBadSyntaxKind(K)}}function Ie(K){return du(K)?void 0:U(K)}function Be(K){return Ha(K)?void 0:U(K)}function Ne(K){if(!du(K)&&!(gS(K.kind)&117086)&&!(C&&K.kind===93))return K}function Le(K){if(ca(K)&&Mr(K,2))return t.createNotEmittedStatement(K);switch(K.kind){case 93:case 88:return C?void 0:K;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:return;case 262:return t.createNotEmittedStatement(K);case 267:return;case 261:return t.createNotEmittedStatement(K);case 260:return qe(K);case 228:return Qt(K);case 294:return Dt(K);case 230:return pn(K);case 207:return _t(K);case 173:case 169:case 171:case 174:case 175:case 172:return L.fail("Class and object literal elements must be visited with their respective visitors");case 259:return Se(K);case 215:return at(K);case 216:return Tt(K);case 166:return ve(K);case 214:return ue(K);case 213:case 231:return G(K);case 235:return je(K);case 210:return Ge(K);case 211:return kt(K);case 212:return Kt(K);case 232:return Oe(K);case 263:return rt(K);case 240:return nt(K);case 257:return Q(K);case 264:return Qe(K);case 268:return Qr(K);case 282:return ln(K);case 283:return ir(K);default:return xn(K,U,e)}}function Ye(K){let Xe=Uf(d,"alwaysStrict")&&!(Lc(K)&&m>=5)&&!Mf(K);return t.updateSourceFile(K,mF(K.statements,le,e,0,Xe))}function _t(K){return t.updateObjectLiteralExpression(K,On(K.properties,Pe(K),Og))}function ct(K){let Xe=0;vt(CK(K,!0,!0))&&(Xe|=1);let ft=hp(K);return ft&&ql(ft.expression).kind!==104&&(Xe|=64),O0(v,K)&&(Xe|=2),kI(v,K)&&(Xe|=4),Wi(K)?Xe|=8:kc(K)?Xe|=32:Ki(K)&&(Xe|=16),Xe}function Rt(K){return!!(K.transformFlags&8192)}function We(K){return bf(K)||vt(K.typeParameters)||vt(K.heritageClauses,Rt)||vt(K.members,Rt)}function qe(K){var Xe;let ft=ct(K),Yt=g<=1&&!!(ft&7);if(!We(K)&&!O0(v,K)&&!Wi(K))return t.updateClassDeclaration(K,On(K.modifiers,Ne,Ha),K.name,void 0,On(K.heritageClauses,U,dd),On(K.members,we(K),_l));Yt&&e.startLexicalEnvironment();let pr=Yt||ft&8||ft&2&&v||ft&1,yr=pr?On(K.modifiers,Be,Ns):On(K.modifiers,U,Ns);ft&2&&(yr=kn(yr,K));let Go=pr&&!K.name||ft&4||ft&1?(Xe=K.name)!=null?Xe:t.getGeneratedNameForNode(K):K.name,Ka=t.updateClassDeclaration(K,yr,Go,void 0,On(K.heritageClauses,U,dd),tn(K)),vo=Ya(K);ft&1&&(vo|=64),Jn(Ka,vo);let ka;if(Yt){let Hs=[Ka],Uc=_W(xo(w.text,K.members.end),19),Gu=t.getInternalName(K),$o=t.createPartiallyEmittedExpression(Gu);r2($o,Uc.end),Jn($o,3072);let jo=t.createReturnStatement($o);aL(jo,Uc.pos),Jn(jo,3840),Hs.push(jo),em(Hs,e.endLexicalEnvironment());let Ws=t.createImmediatelyInvokedArrowFunction(Hs);eO(Ws,1);let hd=ft&16?t.createModifiersFromModifierFlags(1):void 0,vc=t.createVariableStatement(hd,t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(K,!1,!1),void 0,void 0,Ws)],1));Ir(vc,K),hl(vc,K),Ho(vc,$y(K)),mu(vc),ka=vc}else ka=Ka;if(pr){if(ft&8)return zt(ka,Ps(K));if(ft&32)return zt(ka,t.createExportDefault(t.getLocalName(K,!1,!0)));if(ft&16&&!Yt)return zt(ka,t.createExternalModuleExport(t.getLocalName(K,!1,!0)))}return ka}function zt(K,Xe){return bp(K,8388608),[K,Xe,t.createEndOfDeclarationMarker(K)]}function Qt(K){let Xe=On(K.modifiers,Be,Ns);return O0(v,K)&&(Xe=kn(Xe,K)),t.updateClassExpression(K,Xe,K.name,void 0,On(K.heritageClauses,U,dd),tn(K))}function tn(K){let Xe=On(K.members,we(K),_l),ft,Yt=Vm(K),pr=Yt&&Pr(Yt.parameters,yr=>Ad(yr,Yt));if(pr)for(let yr of pr){let ta=t.createPropertyDeclaration(void 0,yr.name,void 0,void 0,void 0);Ir(ta,yr),ft=Sn(ft,ta)}return ft?(ft=si(ft,Xe),it(t.createNodeArray(ft),K.members)):Xe}function kn(K,Xe){let ft=Gt(Xe,Xe);if(vt(ft)){let Yt=[];si(Yt,v8(K,oJ)),si(Yt,Pr(K,du)),si(Yt,ft),si(Yt,Pr(Nae(K,oJ),Ha)),K=it(t.createNodeArray(Yt),K)}return K}function _n(K,Xe,ft){if(Yr(ft)&&AH(v,Xe,ft)){let Yt=Gt(Xe,ft);if(vt(Yt)){let pr=[];si(pr,Pr(K,du)),si(pr,Yt),si(pr,Pr(K,Ha)),K=it(t.createNodeArray(pr),K)}}return K}function Gt(K,Xe){if(v)return epe?ui(K,Xe):$n(K,Xe)}function $n(K,Xe){if(S){let ft;if(Ni(K)){let Yt=r().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:Xe},K));ft=Sn(ft,t.createDecorator(Yt))}if(gr(K)){let Yt=r().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:Xe},K,Xe));ft=Sn(ft,t.createDecorator(Yt))}if(Pi(K)){let Yt=r().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:Xe},K));ft=Sn(ft,t.createDecorator(Yt))}return ft}}function ui(K,Xe){if(S){let ft;if(Ni(K)){let Yt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),S.serializeTypeOfNode({currentLexicalScope:F,currentNameScope:Xe},K)));ft=Sn(ft,Yt)}if(gr(K)){let Yt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),S.serializeParameterTypesOfNode({currentLexicalScope:F,currentNameScope:Xe},K,Xe)));ft=Sn(ft,Yt)}if(Pi(K)){let Yt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(38),S.serializeReturnTypeOfNode({currentLexicalScope:F,currentNameScope:Xe},K)));ft=Sn(ft,Yt)}if(ft){let Yt=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(ft,!0));return[t.createDecorator(Yt)]}}}function Ni(K){let Xe=K.kind;return Xe===171||Xe===174||Xe===175||Xe===169}function Pi(K){return K.kind===171}function gr(K){switch(K.kind){case 260:case 228:return Vm(K)!==void 0;case 171:case 174:case 175:return!0}return!1}function pt(K,Xe){let ft=K.name;return pi(ft)?t.createIdentifier(""):ts(ft)?Xe&&!Ap(ft.expression)?t.getGeneratedNameForNode(ft):ft.expression:Re(ft)?t.createStringLiteral(vr(ft)):t.cloneNode(ft)}function nn(K){let Xe=K.name;if(ts(Xe)&&(!zc(K)&&q||bf(K)&&v)){let ft=$e(Xe.expression,U,ot);L.assert(ft);let Yt=a_(ft);if(!Ap(Yt)){let pr=t.getGeneratedNameForNode(Xe);return l(pr),t.updateComputedPropertyName(Xe,t.createAssignment(pr,ft))}}return L.checkDefined($e(Xe,U,Ys))}function Dt(K){if(K.token!==117)return xn(K,U,e)}function pn(K){return t.updateExpressionWithTypeArguments(K,L.checkDefined($e(K.expression,U,Ju)),void 0)}function An(K){return!rc(K.body)}function Kn(K,Xe){let ft=K.flags&16777216||Mr(K,256);if(ft&&!(v&&bf(K)))return;let Yt=Yr(Xe)?ft?On(K.modifiers,Be,Ns):On(K.modifiers,U,Ns):On(K.modifiers,Ie,Ns);return Yt=_n(Yt,K,Xe),ft?t.updatePropertyDeclaration(K,Qi(Yt,t.createModifiersFromModifierFlags(2)),L.checkDefined($e(K.name,U,Ys)),void 0,void 0,void 0):t.updatePropertyDeclaration(K,Yt,nn(K),void 0,void 0,$e(K.initializer,U,ot))}function hi(K){if(An(K))return t.updateConstructorDeclaration(K,void 0,Sc(K.parameters,U,e),ri(K.body,K))}function ri(K,Xe){let ft=Xe&&Pr(Xe.parameters,vo=>Ad(vo,Xe));if(!vt(ft))return Zd(K,U,e);let Yt=[];o();let pr=t.copyPrologue(K.statements,Yt,!1,U),yr=bF(K.statements,pr);yr>=0&&si(Yt,On(K.statements,U,ca,pr,yr+1-pr));let ta=Zi(ft,vn);yr>=0?si(Yt,ta):Yt=[...Yt.slice(0,pr),...ta,...Yt.slice(pr)];let Go=yr>=0?yr+1:pr;si(Yt,On(K.statements,U,ca,Go)),Yt=t.mergeLexicalEnvironment(Yt,s());let Ka=t.createBlock(it(t.createNodeArray(Yt),K.statements),!0);return it(Ka,K),Ir(Ka,K),Ka}function vn(K){let Xe=K.name;if(!Re(Xe))return;let ft=go(it(t.cloneNode(Xe),Xe),Xe.parent);Jn(ft,3168);let Yt=go(it(t.cloneNode(Xe),Xe),Xe.parent);return Jn(Yt,3072),mu(ZR(it(Ir(t.createExpressionStatement(t.createAssignment(it(t.createPropertyAccessExpression(t.createThis(),ft),K.name),Yt)),K),fb(K,-1))))}function Ht(K,Xe){if(!(K.transformFlags&1))return K;if(!An(K))return;let ft=Yr(Xe)?On(K.modifiers,U,Ns):On(K.modifiers,Ie,Ns);return ft=_n(ft,K,Xe),t.updateMethodDeclaration(K,ft,K.asteriskToken,nn(K),void 0,void 0,Sc(K.parameters,U,e),void 0,Zd(K.body,U,e))}function En(K){return!(rc(K.body)&&Mr(K,256))}function dr(K,Xe){if(!(K.transformFlags&1))return K;if(!En(K))return;let ft=Yr(Xe)?On(K.modifiers,U,Ns):On(K.modifiers,Ie,Ns);return ft=_n(ft,K,Xe),t.updateGetAccessorDeclaration(K,ft,nn(K),Sc(K.parameters,U,e),void 0,Zd(K.body,U,e)||t.createBlock([]))}function Cr(K,Xe){if(!(K.transformFlags&1))return K;if(!En(K))return;let ft=Yr(Xe)?On(K.modifiers,U,Ns):On(K.modifiers,Ie,Ns);return ft=_n(ft,K,Xe),t.updateSetAccessorDeclaration(K,ft,nn(K),Sc(K.parameters,U,e),Zd(K.body,U,e)||t.createBlock([]))}function Se(K){if(!An(K))return t.createNotEmittedStatement(K);let Xe=t.updateFunctionDeclaration(K,On(K.modifiers,Ne,Ha),K.asteriskToken,K.name,void 0,Sc(K.parameters,U,e),void 0,Zd(K.body,U,e)||t.createBlock([]));if(Wi(K)){let ft=[Xe];return mc(ft,K),ft}return Xe}function at(K){return An(K)?t.updateFunctionExpression(K,On(K.modifiers,Ne,Ha),K.asteriskToken,K.name,void 0,Sc(K.parameters,U,e),void 0,Zd(K.body,U,e)||t.createBlock([])):t.createOmittedExpression()}function Tt(K){return t.updateArrowFunction(K,On(K.modifiers,Ne,Ha),void 0,Sc(K.parameters,U,e),void 0,K.equalsGreaterThanToken,Zd(K.body,U,e))}function ve(K){if(G0(K))return;let Xe=t.updateParameterDeclaration(K,On(K.modifiers,ft=>du(ft)?U(ft):void 0,Ns),K.dotDotDotToken,L.checkDefined($e(K.name,U,Mm)),void 0,void 0,$e(K.initializer,U,ot));return Xe!==K&&(hl(Xe,K),it(Xe,yp(K)),Ho(Xe,yp(K)),Jn(Xe.name,64)),Xe}function nt(K){if(Wi(K)){let Xe=qI(K.declarationList);return Xe.length===0?void 0:it(t.createExpressionStatement(t.inlineExpressions(on(Xe,ce))),K)}else return xn(K,U,e)}function ce(K){let Xe=K.name;return La(Xe)?KT(K,U,e,0,!1,hc):it(t.createAssignment(ro(Xe),L.checkDefined($e(K.initializer,U,ot))),K)}function Q(K){let Xe=t.updateVariableDeclaration(K,L.checkDefined($e(K.name,U,Mm)),void 0,void 0,$e(K.initializer,U,ot));return K.type&&yue(Xe.name,K.type),Xe}function ue(K){let Xe=ql(K.expression,-7);if(pT(Xe)){let ft=$e(K.expression,U,ot);return L.assert(ft),t.createPartiallyEmittedExpression(ft,K)}return xn(K,U,e)}function G(K){let Xe=$e(K.expression,U,ot);return L.assert(Xe),t.createPartiallyEmittedExpression(Xe,K)}function Oe(K){let Xe=$e(K.expression,U,Ju);return L.assert(Xe),t.createPartiallyEmittedExpression(Xe,K)}function je(K){let Xe=$e(K.expression,U,ot);return L.assert(Xe),t.createPartiallyEmittedExpression(Xe,K)}function Ge(K){return t.updateCallExpression(K,L.checkDefined($e(K.expression,U,ot)),void 0,On(K.arguments,U,ot))}function kt(K){return t.updateNewExpression(K,L.checkDefined($e(K.expression,U,ot)),void 0,On(K.arguments,U,ot))}function Kt(K){return t.updateTaggedTemplateExpression(K,L.checkDefined($e(K.tag,U,ot)),void 0,L.checkDefined($e(K.template,U,AA)))}function ln(K){return t.updateJsxSelfClosingElement(K,L.checkDefined($e(K.tagName,U,bI)),void 0,L.checkDefined($e(K.attributes,U,K0)))}function ir(K){return t.updateJsxOpeningElement(K,L.checkDefined($e(K.tagName,U,bI)),void 0,L.checkDefined($e(K.attributes,U,K0)))}function ae(K){return!R0(K)||U0(d)}function rt(K){if(!ae(K))return t.createNotEmittedStatement(K);let Xe=[],ft=4,Yt=lt(Xe,K);Yt&&(m!==4||F!==w)&&(ft|=1024);let pr=aa(K),yr=Co(K),ta=Mr(K,1)?t.getExternalModuleOrNamespaceExportName(P,K,!1,!0):t.getLocalName(K,!1,!0),Go=t.createLogicalOr(ta,t.createAssignment(ta,t.createObjectLiteralExpression()));if(z(K)){let vo=t.getLocalName(K,!1,!0);Go=t.createAssignment(vo,Go)}let Ka=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,pr)],void 0,Ot(K,yr)),void 0,[Go]));return Ir(Ka,K),Yt&&(W0(Ka,void 0),u2(Ka,void 0)),it(Ka,K),bp(Ka,ft),Xe.push(Ka),Xe.push(t.createEndOfDeclarationMarker(K)),Xe}function Ot(K,Xe){let ft=P;P=Xe;let Yt=[];i();let pr=on(K.members,Ke);return em(Yt,s()),si(Yt,pr),P=ft,t.createBlock(it(t.createNodeArray(Yt),K.members),!0)}function Ke(K){let Xe=pt(K,!1),ft=oe(K),Yt=t.createAssignment(t.createElementAccessExpression(P,Xe),ft),pr=ft.kind===10?Yt:t.createAssignment(t.createElementAccessExpression(P,Yt),Xe);return it(t.createExpressionStatement(it(pr,K)),K)}function oe(K){let Xe=f.getConstantValue(K);return Xe!==void 0?typeof Xe=="string"?t.createStringLiteral(Xe):t.createNumericLiteral(Xe):(gc(),K.initializer?L.checkDefined($e(K.initializer,U,ot)):t.createVoidZero())}function pe(K){let Xe=ea(K,Tc);return Xe?fK(Xe,U0(d)):!0}function z(K){return Wi(K)||gn(K)&&m!==5&&m!==6&&m!==7&&m!==99&&m!==4}function Te(K){B||(B=new Map);let Xe=yt(K);B.has(Xe)||B.set(Xe,K)}function j(K){if(B){let Xe=yt(K);return B.get(Xe)===K}return!0}function yt(K){return L.assertNode(K.name,Re),K.name.escapedText}function lt(K,Xe){let ft=t.createVariableStatement(On(Xe.modifiers,Ne,Ha),t.createVariableDeclarationList([t.createVariableDeclaration(t.getLocalName(Xe,!1,!0))],F.kind===308?0:1));if(Ir(ft,Xe),Te(Xe),j(Xe))return Xe.kind===263?Ho(ft.declarationList,Xe):Ho(ft,Xe),hl(ft,Xe),bp(ft,8390656),K.push(ft),!0;{let Yt=t.createMergeDeclarationMarker(ft);return Jn(Yt,8391680),K.push(Yt),!1}}function Qe(K){if(!pe(K))return t.createNotEmittedStatement(K);L.assertNode(K.name,Re,"A TypeScript namespace should have an Identifier name."),Ll();let Xe=[],ft=4,Yt=lt(Xe,K);Yt&&(m!==4||F!==w)&&(ft|=1024);let pr=aa(K),yr=Co(K),ta=Mr(K,1)?t.getExternalModuleOrNamespaceExportName(P,K,!1,!0):t.getLocalName(K,!1,!0),Go=t.createLogicalOr(ta,t.createAssignment(ta,t.createObjectLiteralExpression()));if(z(K)){let vo=t.getLocalName(K,!1,!0);Go=t.createAssignment(vo,Go)}let Ka=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,pr)],void 0,Vt(K,yr)),void 0,[Go]));return Ir(Ka,K),Yt&&(W0(Ka,void 0),u2(Ka,void 0)),it(Ka,K),bp(Ka,ft),Xe.push(Ka),Xe.push(t.createEndOfDeclarationMarker(K)),Xe}function Vt(K,Xe){let ft=P,Yt=C,pr=B;P=Xe,C=K,B=void 0;let yr=[];i();let ta,Go;if(K.body)if(K.body.kind===265)fe(K.body,vo=>si(yr,On(vo.statements,X,ca))),ta=K.body.statements,Go=K.body;else{let vo=Qe(K.body);vo&&(ba(vo)?si(yr,vo):yr.push(vo));let ka=Hn(K).body;ta=fb(ka.statements,-1)}em(yr,s()),P=ft,C=Yt,B=pr;let Ka=t.createBlock(it(t.createNodeArray(yr),ta),!0);return it(Ka,Go),(!K.body||K.body.kind!==265)&&Jn(Ka,Ya(Ka)|3072),Ka}function Hn(K){if(K.body.kind===264)return Hn(K.body)||K.body}function jr(K){if(!K.importClause)return K;if(K.importClause.isTypeOnly)return;let Xe=$e(K.importClause,ei,lm);return Xe||d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2?t.updateImportDeclaration(K,void 0,Xe,K.moduleSpecifier,K.assertClause):void 0}function ei(K){L.assert(!K.isTypeOnly);let Xe=wt(K)?K.name:void 0,ft=$e(K.namedBindings,Kr,Wj);return Xe||ft?t.updateImportClause(K,!1,Xe,ft):void 0}function Kr(K){if(K.kind===271)return wt(K)?K:void 0;{let Xe=d.verbatimModuleSyntax||d.preserveValueImports&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),ft=On(K.elements,Si,$u);return Xe||vt(ft)?t.updateNamedImports(K,ft):void 0}}function Si(K){return!K.isTypeOnly&&wt(K)?K:void 0}function Ja(K){return d.verbatimModuleSyntax||f.isValueAliasDeclaration(K)?xn(K,U,e):void 0}function Za(K){if(K.isTypeOnly)return;if(!K.exportClause||qm(K.exportClause))return K;let Xe=d.verbatimModuleSyntax||!!K.moduleSpecifier&&(d.importsNotUsedAsValues===1||d.importsNotUsedAsValues===2),ft=$e(K.exportClause,Yt=>xi(Yt,Xe),Rj);return ft?t.updateExportDeclaration(K,void 0,K.isTypeOnly,ft,K.moduleSpecifier,K.assertClause):void 0}function Fa(K,Xe){let ft=On(K.elements,Nr,Mu);return Xe||vt(ft)?t.updateNamedExports(K,ft):void 0}function Hi(K){return t.updateNamespaceExport(K,L.checkDefined($e(K.name,U,Re)))}function xi(K,Xe){return qm(K)?Hi(K):Fa(K,Xe)}function Nr(K){return!K.isTypeOnly&&(d.verbatimModuleSyntax||f.isValueAliasDeclaration(K))?K:void 0}function Fo(K){return wt(K)||!Lc(w)&&f.isTopLevelValueImportEqualsWithEntityName(K)}function Qr(K){if(K.isTypeOnly)return;if(ab(K)){let ft=wt(K);return!ft&&d.importsNotUsedAsValues===1?Ir(it(t.createImportDeclaration(void 0,void 0,K.moduleReference.expression,void 0),K),K):ft?xn(K,U,e):void 0}if(!Fo(K))return;let Xe=EO(t,K.moduleReference);return Jn(Xe,7168),Ki(K)||!Wi(K)?Ir(it(t.createVariableStatement(On(K.modifiers,Ne,Ha),t.createVariableDeclarationList([Ir(t.createVariableDeclaration(K.name,void 0,void 0,Xe),K)])),K),K):Ir(xc(K.name,Xe,K),K)}function Wi(K){return C!==void 0&&Mr(K,1)}function gn(K){return C===void 0&&Mr(K,1)}function Ki(K){return gn(K)&&!Mr(K,1024)}function kc(K){return gn(K)&&Mr(K,1024)}function Ps(K){let Xe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(P,K,!1,!0),t.getLocalName(K));Ho(Xe,Gf(K.name?K.name.pos:K.pos,K.end));let ft=t.createExpressionStatement(Xe);return Ho(ft,Gf(-1,K.end)),ft}function mc(K,Xe){K.push(Ps(Xe))}function xc(K,Xe,ft){return it(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(P,K,!1,!0),Xe)),ft)}function hc(K,Xe,ft){return it(t.createAssignment(ro(K),Xe),ft)}function ro(K){return t.getNamespaceMemberName(P,K,!1,!0)}function aa(K){let Xe=t.getGeneratedNameForNode(K);return Ho(Xe,K.name),Xe}function Co(K){return t.getGeneratedNameForNode(K)}function gc(){W&8||(W|=8,e.enableSubstitution(79))}function Ll(){W&2||(W|=2,e.enableSubstitution(79),e.enableSubstitution(300),e.enableEmitNotification(264))}function md(K){return ec(K).kind===264}function Pc(K){return ec(K).kind===263}function bl(K,Xe,ft){let Yt=Y,pr=w;Li(Xe)&&(w=Xe),W&2&&md(Xe)&&(Y|=2),W&8&&Pc(Xe)&&(Y|=8),x(K,Xe,ft),Y=Yt,w=pr}function ss(K,Xe){return Xe=A(K,Xe),K===1?Rs(Xe):xf(Xe)?qs(Xe):Xe}function qs(K){if(W&2){let Xe=K.name,ft=jt(Xe);if(ft){if(K.objectAssignmentInitializer){let Yt=t.createAssignment(ft,K.objectAssignmentInitializer);return it(t.createPropertyAssignment(Xe,Yt),K)}return it(t.createPropertyAssignment(Xe,ft),K)}}return K}function Rs(K){switch(K.kind){case 79:return As(K);case 208:return yc(K);case 209:return Ql(K)}return K}function As(K){return jt(K)||K}function jt(K){if(W&Y&&!tc(K)&&!rv(K)){let Xe=f.getReferencedExportContainer(K,!1);if(Xe&&Xe.kind!==308&&(Y&2&&Xe.kind===264||Y&8&&Xe.kind===263))return it(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Xe),K),K)}}function yc(K){return se(K)}function Ql(K){return se(K)}function yu(K){return K.replace(/\*\//g,"*_/")}function se(K){let Xe=ht(K);if(Xe!==void 0){hue(K,Xe);let ft=typeof Xe=="string"?t.createStringLiteral(Xe):t.createNumericLiteral(Xe);if(!d.removeComments){let Yt=ec(K,Us);R4(ft,3,` ${yu(Qc(Yt))} `)}return ft}return K}function ht(K){if(!d_(d))return br(K)||Vs(K)?f.getConstantValue(K):void 0}function wt(K){return d.verbatimModuleSyntax||Yn(K)||(d.preserveValueImports?f.isValueAliasDeclaration(K):f.isReferencedAliasDeclaration(K))}}var epe,eMe=gt({"src/compiler/transformers/ts.ts"(){"use strict";fa(),epe=!1}});function tpe(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:f}=e,d=e.getEmitResolver(),g=e.getCompilerOptions(),m=Do(g),v=MR(g),S=!!g.experimentalDecorators,x=!v,A=v&&m<9,w=x||A,C=m<9,P=m<99?-1:v?0:3,F=m<9,B=F&&m>=2,q=w||C||P===-1,W=e.onSubstituteNode;e.onSubstituteNode=As;let Y=e.onEmitNode;e.onEmitNode=Rs;let R=!1,ie,$,fe,Z,U,re=new Map,le,_e,ge=!1,X=!1;return y_(e,Ve);function Ve(se){if(se.isDeclarationFile||(U=void 0,R=!!(o_(se)&32),!q&&!R))return se;let ht=xn(se,ke,e);return Bg(ht,e.readEmitHelpers()),ht}function we(se){switch(se.kind){case 127:return Kn()?void 0:se;default:return zr(se,Ha)}}function ke(se){if(!(se.transformFlags&16777216)&&!(se.transformFlags&134234112))return se;switch(se.kind){case 127:return L.fail("Use `modifierVisitor` instead.");case 260:return ae(se);case 228:return Ot(se,void 0);case 172:case 169:return L.fail("Use `classElementVisitor` instead.");case 299:return We(se);case 240:return qe(se);case 257:return Qt(se);case 166:return tn(se);case 205:return kn(se);case 274:return _n(se);case 80:return ct(se);case 208:return Ht(se);case 209:return En(se);case 221:case 222:return dr(se,!1);case 223:return Q(se,!1);case 214:return G(se,!1,void 0);case 210:return Tt(se);case 241:return Se(se);case 212:return ve(se);case 245:return Cr(se);case 259:case 215:case 173:case 171:case 174:case 175:return gr(void 0,Pe,se);default:return Pe(se)}}function Pe(se){return xn(se,ke,e)}function Ce(se,ht){switch(se.kind){case 356:return Oe(se,!1,ht);case 214:return G(se,!1,ht);case 228:return Ot(se,ht);default:return ke(se)}}function Ie(se){switch(se.kind){case 221:case 222:return dr(se,!0);case 223:return Q(se,!0);case 357:return ue(se,!0);case 214:return G(se,!0,void 0);default:return ke(se)}}function Be(se){switch(se.kind){case 294:return xn(se,Be,e);case 230:return ln(se);default:return ke(se)}}function Ne(se){switch(se.kind){case 207:case 206:return qs(se);default:return ke(se)}}function Le(se){switch(se.kind){case 173:return ui(se);case 174:case 175:case 171:return gr(void 0,Pi,se);case 169:return gr(void 0,hi,se);case 172:return oe(se);case 164:return $n(se);case 237:return se;default:return Ns(se)?we(se):ke(se)}}function Ye(se){switch(se.kind){case 164:return $n(se);default:return ke(se)}}function _t(se){switch(se.kind){case 169:return An(se);case 174:case 175:return Le(se);default:L.assertMissingNode(se,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function ct(se){return!C||ca(se.parent)?se:Ir(t.createIdentifier(""),se)}function Rt(se){let ht=hc(se.left);if(ht){let wt=$e(se.right,ke,ot);return Ir(r().createClassPrivateFieldInHelper(ht.brandCheckIdentifier,wt),se)}return xn(se,ke,e)}function We(se){if(vf(se,ce)){let{referencedName:ht,name:wt}=je(se.name),K=$e(se.initializer,Xe=>Ce(Xe,ht),ot);return t.updatePropertyAssignment(se,wt,K)}return xn(se,ke,e)}function qe(se){let ht=Z;Z=[];let wt=xn(se,ke,e),K=vt(Z)?[wt,...Z]:wt;return Z=ht,K}function zt(se,ht){let wt=ec(ht,Yr);return wt&&!wt.name&&Mr(wt,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(se)}function Qt(se){if(vf(se,ce)){let ht=zt(se.name,se.initializer),wt=$e(se.name,ke,Mm),K=$e(se.initializer,Xe=>Ce(Xe,ht),ot);return t.updateVariableDeclaration(se,wt,void 0,void 0,K)}return xn(se,ke,e)}function tn(se){if(vf(se,ce)){let ht=zt(se.name,se.initializer),wt=$e(se.name,ke,Mm),K=$e(se.initializer,Xe=>Ce(Xe,ht),ot);return t.updateParameterDeclaration(se,void 0,void 0,wt,void 0,void 0,K)}return xn(se,ke,e)}function kn(se){if(vf(se,ce)){let ht=zt(se.name,se.initializer),wt=$e(se.propertyName,ke,Ys),K=$e(se.name,ke,Mm),Xe=$e(se.initializer,ft=>Ce(ft,ht),ot);return t.updateBindingElement(se,void 0,wt,K,Xe)}return xn(se,ke,e)}function _n(se){if(vf(se,ce)){let ht=t.createStringLiteral(se.isExportEquals?"":"default"),wt=On(se.modifiers,we,Ha),K=$e(se.expression,Xe=>Ce(Xe,ht),ot);return t.updateExportAssignment(se,wt,K)}return xn(se,ke,e)}function Gt(se){return vt(fe)&&(ud(se)?(fe.push(se.expression),se=t.updateParenthesizedExpression(se,t.inlineExpressions(fe))):(fe.push(se),se=t.inlineExpressions(fe)),fe=void 0),se}function $n(se){let ht=$e(se.expression,ke,ot);return t.updateComputedPropertyName(se,Gt(ht))}function ui(se){return le?Te(se,le):Pe(se)}function Ni(se){return!!(C||zc(se)&&o_(se)&32)}function Pi(se){if(L.assert(!bf(se)),!xu(se)||!Ni(se))return xn(se,Le,e);let ht=hc(se.name);if(L.assert(ht,"Undeclared private name for property declaration."),!ht.isValid)return se;let wt=pt(se);wt&&Nr().push(t.createAssignment(wt,t.createFunctionExpression(Pr(se.modifiers,K=>Ha(K)&&!LS(K)&&!Nue(K)),se.asteriskToken,wt,void 0,Sc(se.parameters,ke,e),void 0,Zd(se.body,ke,e))))}function gr(se,ht,wt){let K=_e;_e=se;let Xe=ht(wt);return _e=K,Xe}function pt(se){L.assert(pi(se.name));let ht=hc(se.name);if(L.assert(ht,"Undeclared private name for property declaration."),ht.kind==="m")return ht.methodName;if(ht.kind==="a"){if(zy(se))return ht.getterName;if(Ng(se))return ht.setterName}}function nn(se){let ht=sm(se),wt=pb(se),K=se.name,Xe=K,ft=K;if(ts(K)&&!Ap(K.expression)){let Go=L3(K);if(Go)Xe=t.updateComputedPropertyName(K,$e(K.expression,ke,ot)),ft=t.updateComputedPropertyName(K,Go.left);else{let Ka=t.createTempVariable(i);Ho(Ka,K.expression);let vo=$e(K.expression,ke,ot),ka=t.createAssignment(Ka,vo);Ho(ka,K.expression),Xe=t.updateComputedPropertyName(K,ka),ft=t.updateComputedPropertyName(K,Ka)}}let Yt=On(se.modifiers,we,Ha),pr=sJ(t,se,Yt,se.initializer);Ir(pr,se),Jn(pr,3072),Ho(pr,wt);let yr=gde(t,se,Yt,Xe);Ir(yr,se),hl(yr,ht),Ho(yr,wt);let ta=yde(t,se,Yt,ft);return Ir(ta,se),Jn(ta,3072),Ho(ta,wt),vK([pr,yr,ta],_t,_l)}function Dt(se){if(Ni(se)){let ht=hc(se.name);if(L.assert(ht,"Undeclared private name for property declaration."),!ht.isValid)return se;if(ht.isStatic&&!C){let wt=lt(se,t.createThis());if(wt)return t.createClassStaticBlockDeclaration(t.createBlock([wt],!0))}return}if(x&&!Ca(se)&&U?.data&&U.data.facts&16)return t.updatePropertyDeclaration(se,On(se.modifiers,ke,Ns),se.name,void 0,void 0,void 0);if(vf(se,ce)){let{referencedName:ht,name:wt}=je(se.name);return t.updatePropertyDeclaration(se,On(se.modifiers,we,Ha),wt,void 0,void 0,$e(se.initializer,K=>Ce(K,ht),ot))}return t.updatePropertyDeclaration(se,On(se.modifiers,we,Ha),$e(se.name,Ye,Ys),void 0,void 0,$e(se.initializer,ke,ot))}function pn(se){if(w&&!Id(se)){let ht=Ja(se.name,!!se.initializer||v,vf(se,ce));if(ht&&Nr().push(...vde(ht)),Ca(se)&&!C){let wt=lt(se,t.createThis());if(wt){let K=t.createClassStaticBlockDeclaration(t.createBlock([wt]));return Ir(K,se),hl(K,se),hl(wt,{pos:-1,end:-1}),W0(wt,void 0),u2(wt,void 0),K}}return}return t.updatePropertyDeclaration(se,On(se.modifiers,we,Ha),$e(se.name,Ye,Ys),void 0,void 0,$e(se.initializer,ke,ot))}function An(se){return L.assert(!bf(se),"Decorators should already have been transformed and elided."),xu(se)?Dt(se):pn(se)}function Kn(){return P===-1||P===3&&!!U?.data&&!!(U.data.facts&16)}function hi(se){return Id(se)&&(Kn()||zc(se)&&o_(se)&32)?nn(se):An(se)}function ri(se,ht){return vn(se,$e(ht,ke,ot))}function vn(se,ht){switch(hl(ht,fb(ht,-1)),se.kind){case"a":return r().createClassPrivateFieldGetHelper(ht,se.brandCheckIdentifier,se.kind,se.getterName);case"m":return r().createClassPrivateFieldGetHelper(ht,se.brandCheckIdentifier,se.kind,se.methodName);case"f":return r().createClassPrivateFieldGetHelper(ht,se.brandCheckIdentifier,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return L.fail("Access helpers should not be created for untransformed private elements");default:L.assertNever(se,"Unknown private element type")}}function Ht(se){if(pi(se.name)){let ht=hc(se.name);if(ht)return it(Ir(ri(ht,se.expression),se),se)}if(B&&Pu(se)&&Re(se.name)&&_e&&U?.data){let{classConstructor:ht,superClassReference:wt,facts:K}=U.data;if(K&1)return Si(se);if(ht&&wt){let Xe=t.createReflectGetCall(wt,t.createStringLiteralFromNode(se.name),ht);return Ir(Xe,se.expression),it(Xe,se.expression),Xe}}return xn(se,ke,e)}function En(se){if(B&&Pu(se)&&_e&&U?.data){let{classConstructor:ht,superClassReference:wt,facts:K}=U.data;if(K&1)return Si(se);if(ht&&wt){let Xe=t.createReflectGetCall(wt,$e(se.argumentExpression,ke,ot),ht);return Ir(Xe,se.expression),it(Xe,se.expression),Xe}}return xn(se,ke,e)}function dr(se,ht){if(se.operator===45||se.operator===46){let wt=vs(se.operand);if(TA(wt)){let K;if(K=hc(wt.name)){let Xe=$e(wt.expression,ke,ot),{readExpression:ft,initializeExpression:Yt}=at(Xe),pr=ri(K,ft),yr=tv(se)||ht?void 0:t.createTempVariable(i);return pr=b3(t,se,pr,i,yr),pr=Ge(K,Yt||ft,pr,63),Ir(pr,se),it(pr,se),yr&&(pr=t.createComma(pr,yr),it(pr,se)),pr}}else if(B&&Pu(wt)&&_e&&U?.data){let{classConstructor:K,superClassReference:Xe,facts:ft}=U.data;if(ft&1){let Yt=Si(wt);return tv(se)?t.updatePrefixUnaryExpression(se,Yt):t.updatePostfixUnaryExpression(se,Yt)}if(K&&Xe){let Yt,pr;if(br(wt)?Re(wt.name)&&(pr=Yt=t.createStringLiteralFromNode(wt.name)):Ap(wt.argumentExpression)?pr=Yt=wt.argumentExpression:(pr=t.createTempVariable(i),Yt=t.createAssignment(pr,$e(wt.argumentExpression,ke,ot))),Yt&&pr){let yr=t.createReflectGetCall(Xe,pr,K);it(yr,wt);let ta=ht?void 0:t.createTempVariable(i);return yr=b3(t,se,yr,i,ta),yr=t.createReflectSetCall(Xe,Yt,yr,K),Ir(yr,se),it(yr,se),ta&&(yr=t.createComma(yr,ta),it(yr,se)),yr}}}}return xn(se,ke,e)}function Cr(se){return t.updateForStatement(se,$e(se.initializer,Ie,pp),$e(se.condition,ke,ot),$e(se.incrementor,Ie,ot),jf(se.statement,ke,e))}function Se(se){return t.updateExpressionStatement(se,$e(se.expression,Ie,ot))}function at(se){let ht=ws(se)?se:t.cloneNode(se);if(Ap(se))return{readExpression:ht,initializeExpression:void 0};let wt=t.createTempVariable(i),K=t.createAssignment(wt,ht);return{readExpression:wt,initializeExpression:K}}function Tt(se){var ht;if(TA(se.expression)&&hc(se.expression.name)){let{thisArg:wt,target:K}=t.createCallBinding(se.expression,i,m);return dT(se)?t.updateCallChain(se,t.createPropertyAccessChain($e(K,ke,ot),se.questionDotToken,"call"),void 0,void 0,[$e(wt,ke,ot),...On(se.arguments,ke,ot)]):t.updateCallExpression(se,t.createPropertyAccessExpression($e(K,ke,ot),"call"),void 0,[$e(wt,ke,ot),...On(se.arguments,ke,ot)])}if(B&&Pu(se.expression)&&_e&&((ht=U?.data)!=null&&ht.classConstructor)){let wt=t.createFunctionCallCall($e(se.expression,ke,ot),U.data.classConstructor,On(se.arguments,ke,ot));return Ir(wt,se),it(wt,se),wt}return xn(se,ke,e)}function ve(se){var ht;if(TA(se.tag)&&hc(se.tag.name)){let{thisArg:wt,target:K}=t.createCallBinding(se.tag,i,m);return t.updateTaggedTemplateExpression(se,t.createCallExpression(t.createPropertyAccessExpression($e(K,ke,ot),"bind"),void 0,[$e(wt,ke,ot)]),void 0,$e(se.template,ke,AA))}if(B&&Pu(se.tag)&&_e&&((ht=U?.data)!=null&&ht.classConstructor)){let wt=t.createFunctionBindCall($e(se.tag,ke,ot),U.data.classConstructor,[]);return Ir(wt,se),it(wt,se),t.updateTaggedTemplateExpression(se,wt,void 0,$e(se.template,ke,AA))}return xn(se,ke,e)}function nt(se){if(U&&re.set(ec(se),U),C){s();let ht=gr(se,K=>On(K,ke,ca),se.body.statements);ht=t.mergeLexicalEnvironment(ht,o());let wt=t.createImmediatelyInvokedArrowFunction(ht);return Ir(wt,se),it(wt,se),bp(wt,4),wt}}function ce(se){if(_u(se)&&!se.name){let ht=EF(se),wt=wr(ht,oc);if(wt){for(let Xe of wt.body.statements)if(Ol(Xe)&&pL(Xe.expression,"___setFunctionName"))return!1}return(C||!!o_(se))&&vt(ht,Xe=>oc(Xe)||xu(Xe)||w&&sN(Xe))}return!1}function Q(se,ht){if(Fg(se)){let wt=fe;fe=void 0,se=t.updateBinaryExpression(se,$e(se.left,Ne,ot),se.operatorToken,$e(se.right,ke,ot));let K=vt(fe)?t.inlineExpressions(WD([...fe,se])):se;return fe=wt,K}if(Iu(se)){if(vf(se,ce)){let wt=zt(se.left,se.right),K=$e(se.left,ke,ot),Xe=$e(se.right,ft=>Ce(ft,wt),ot);return t.updateBinaryExpression(se,K,se.operatorToken,Xe)}if(TA(se.left)){let wt=hc(se.left.name);if(wt)return it(Ir(Ge(wt,se.left.expression,se.right,se.operatorToken.kind),se),se)}else if(B&&Pu(se.left)&&_e&&U?.data){let{classConstructor:wt,superClassReference:K,facts:Xe}=U.data;if(Xe&1)return t.updateBinaryExpression(se,Si(se.left),se.operatorToken,$e(se.right,ke,ot));if(wt&&K){let ft=Vs(se.left)?$e(se.left.argumentExpression,ke,ot):Re(se.left.name)?t.createStringLiteralFromNode(se.left.name):void 0;if(ft){let Yt=$e(se.right,ke,ot);if(oN(se.operatorToken.kind)){let yr=ft;Ap(ft)||(yr=t.createTempVariable(i),ft=t.createAssignment(yr,ft));let ta=t.createReflectGetCall(K,yr,wt);Ir(ta,se.left),it(ta,se.left),Yt=t.createBinaryExpression(ta,WL(se.operatorToken.kind),Yt),it(Yt,se)}let pr=ht?void 0:t.createTempVariable(i);return pr&&(Yt=t.createAssignment(pr,Yt),it(pr,se)),Yt=t.createReflectSetCall(K,ft,Yt,wt),Ir(Yt,se),it(Yt,se),pr&&(Yt=t.createComma(Yt,pr),it(Yt,se)),Yt}}}}return aMe(se)?Rt(se):xn(se,ke,e)}function ue(se,ht){let wt=ht?aN(se.elements,Ie):aN(se.elements,ke,Ie);return t.updateCommaListExpression(se,wt)}function G(se,ht,wt){let K=ht?Ie:wt?ft=>Ce(ft,wt):ke,Xe=$e(se.expression,K,ot);return t.updateParenthesizedExpression(se,Xe)}function Oe(se,ht,wt){let K=ht?Ie:wt?ft=>Ce(ft,wt):ke,Xe=$e(se.expression,K,ot);return t.updatePartiallyEmittedExpression(se,Xe)}function je(se){if(c_(se)||pi(se)){let ft=t.createStringLiteralFromNode(se),Yt=$e(se,ke,Ys);return{referencedName:ft,name:Yt}}if(c_(se.expression)&&!Re(se.expression)){let ft=t.createStringLiteralFromNode(se.expression),Yt=$e(se,ke,Ys);return{referencedName:ft,name:Yt}}let ht=t.createTempVariable(i),wt=r().createPropKeyHelper($e(se.expression,ke,ot)),K=t.createAssignment(ht,wt),Xe=t.updateComputedPropertyName(se,Gt(K));return{referencedName:ht,name:Xe}}function Ge(se,ht,wt,K){if(ht=$e(ht,ke,ot),wt=$e(wt,ke,ot),oN(K)){let{readExpression:Xe,initializeExpression:ft}=at(ht);ht=ft||Xe,wt=t.createBinaryExpression(vn(se,Xe),WL(K),wt)}switch(hl(ht,fb(ht,-1)),se.kind){case"a":return r().createClassPrivateFieldSetHelper(ht,se.brandCheckIdentifier,wt,se.kind,se.setterName);case"m":return r().createClassPrivateFieldSetHelper(ht,se.brandCheckIdentifier,wt,se.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(ht,se.brandCheckIdentifier,wt,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return L.fail("Access helpers should not be created for untransformed private elements");default:L.assertNever(se,"Unknown private element type")}}function kt(se){return Pr(se.members,K_e)}function Kt(se){let ht=0,wt=ec(se);sl(wt)&&O0(S,wt)&&(ht|=1);let K=!1,Xe=!1,ft=!1,Yt=!1;for(let yr of se.members)Ca(yr)?(yr.name&&(pi(yr.name)||Id(yr))&&C&&(ht|=2),(Na(yr)||oc(yr))&&(F&&yr.transformFlags&16384&&(ht|=8,ht&1||(ht|=2)),B&&yr.transformFlags&134217728&&(ht&1||(ht|=6)))):B0(ec(yr))||(Id(yr)?(Yt=!0,ft||(ft=xu(yr))):xu(yr)?ft=!0:Na(yr)&&(K=!0,Xe||(Xe=!!yr.initializer)));return(A&&K||x&&Xe||C&&ft||C&&Yt&&P===-1)&&(ht|=16),ht}function ln(se){var ht;if((((ht=U?.data)==null?void 0:ht.facts)||0)&4){let K=t.createTempVariable(i,!0);return Hi().superClassReference=K,t.updateExpressionWithTypeArguments(se,t.createAssignment(K,$e(se.expression,ke,ot)),void 0)}return xn(se,ke,e)}function ir(se,ht,wt){let K=le,Xe=fe,ft=U;le=se,fe=void 0,Za();let Yt=o_(se)&32;if(C||Yt){let ta=sa(se);ta&&Re(ta)&&(xi().data.className=ta)}if(C){let ta=kt(se);vt(ta)&&(xi().data.weakSetName=mc("instances",ta[0].name))}let pr=Kt(se);pr&&(Hi().facts=pr),pr&8&&ei();let yr=wt(se,pr,ht);return Fa(),L.assert(U===ft),le=K,fe=Xe,yr}function ae(se){return ir(se,void 0,rt)}function rt(se,ht){var wt,K;let Xe;if(ht&2){if(C&&((wt=se.emitNode)!=null&&wt.classThis))Hi().classConstructor=se.emitNode.classThis,Xe=t.createAssignment(se.emitNode.classThis,t.getInternalName(se));else{let Ka=t.createTempVariable(i,!0);Hi().classConstructor=t.cloneNode(Ka),Xe=t.createAssignment(Ka,t.getInternalName(se))}(K=se.emitNode)!=null&&K.classThis&&(Hi().classThis=se.emitNode.classThis)}let ft=On(se.modifiers,we,Ha),Yt=On(se.heritageClauses,Be,dd),{members:pr,prologue:yr}=pe(se),ta=t.updateClassDeclaration(se,ft,se.name,void 0,Yt,pr),Go=[];if(yr&&Go.push(t.createExpressionStatement(yr)),Go.push(ta),Xe&&Nr().unshift(Xe),vt(fe)&&Go.push(t.createExpressionStatement(t.inlineExpressions(fe))),x||C||o_(se)&32){let Ka=EF(se);vt(Ka)&&yt(Go,Ka,t.getInternalName(se))}return Go}function Ot(se,ht){return ir(se,ht,Ke)}function Ke(se,ht,wt){var K,Xe,ft,Yt,pr,yr;let ta=!!(ht&1),Go=EF(se),Ka=d.getNodeCheckFlags(se)&1048576,vo;function ka(){var vc;if(C&&((vc=se.emitNode)!=null&&vc.classThis))return Hi().classConstructor=se.emitNode.classThis;let nf=d.getNodeCheckFlags(se),ye=nf&1048576,Et=nf&32768,bn=t.createTempVariable(Et?f:i,!!ye);return Hi().classConstructor=t.cloneNode(bn),bn}(K=se.emitNode)!=null&&K.classThis&&(Hi().classThis=se.emitNode.classThis),ht&2&&(vo??(vo=ka()));let Hs=On(se.modifiers,we,Ha),Uc=On(se.heritageClauses,Be,dd),{members:Gu,prologue:$o}=pe(se),jo=t.updateClassExpression(se,Hs,se.name,void 0,Uc,Gu),Ws=[];if($o&&Ws.push($o),(C||o_(se)&32)&&vt(Go,vc=>oc(vc)||xu(vc)||w&&sN(vc))||vt(fe)||wt)if(ta){if(L.assertIsDefined(Z,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),vt(fe)&&si(Z,on(fe,t.createExpressionStatement)),wt)if(C){let vc=r().createSetFunctionNameHelper((ft=vo??((Xe=se.emitNode)==null?void 0:Xe.classThis))!=null?ft:t.getInternalName(se),wt);Z.push(t.createExpressionStatement(vc))}else{let vc=r().createSetFunctionNameHelper(t.createThis(),wt);jo=t.updateClassExpression(jo,jo.modifiers,jo.name,jo.typeParameters,jo.heritageClauses,[t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(vc)])),...jo.members])}vt(Go)&&yt(Z,Go,(pr=(Yt=se.emitNode)==null?void 0:Yt.classThis)!=null?pr:t.getInternalName(se)),vo?Ws.push(t.createAssignment(vo,jo)):C&&((yr=se.emitNode)!=null&&yr.classThis)?Ws.push(t.createAssignment(se.emitNode.classThis,jo)):Ws.push(jo)}else{if(vo??(vo=ka()),Ka){jr();let vc=t.cloneNode(vo);vc.emitNode.autoGenerate.flags&=-9,$[sc(se)]=vc}Ws.push(t.createAssignment(vo,jo)),si(Ws,fe),wt&&Ws.push(r().createSetFunctionNameHelper(vo,wt)),si(Ws,Qe(Go,vo)),Ws.push(t.cloneNode(vo))}else Ws.push(jo);return Ws.length>1&&(bp(jo,131072),Ws.forEach(mu)),t.inlineExpressions(Ws)}function oe(se){if(!C)return xn(se,ke,e)}function pe(se){let ht=!!(o_(se)&32);if(C||R){for(let Yt of se.members)if(xu(Yt))if(Ni(Yt))Ps(Yt,Yt.name,Fo);else{let pr=xi();JT(pr,Yt.name,{kind:"untransformed"})}if(C&&vt(kt(se))&&z(),Kn()){for(let Yt of se.members)if(Id(Yt)){let pr=t.getGeneratedPrivateNameForNode(Yt.name,void 0,"_accessor_storage");if(C||ht&&zc(Yt))Ps(Yt,pr,Qr);else{let yr=xi();JT(yr,pr,{kind:"untransformed"})}}}}let wt=On(se.members,Le,_l),K;vt(wt,Ec)||(K=Te(void 0,se));let Xe,ft;if(!C&&vt(fe)){let Yt=t.createExpressionStatement(t.inlineExpressions(fe));if(Yt.transformFlags&134234112){let yr=t.createTempVariable(i),ta=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Yt]));Xe=t.createAssignment(yr,ta),Yt=t.createExpressionStatement(t.createCallExpression(yr,void 0,[]))}let pr=t.createBlock([Yt]);ft=t.createClassStaticBlockDeclaration(pr),fe=void 0}if(K||ft){let Yt;Yt=Sn(Yt,K),Yt=Sn(Yt,ft),Yt=si(Yt,wt),wt=it(t.createNodeArray(Yt),se.members)}return{members:wt,prologue:Xe}}function z(){let{weakSetName:se}=xi().data;L.assert(se,"weakSetName should be set in private identifier environment"),Nr().push(t.createAssignment(se,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Te(se,ht){if(se=$e(se,ke,Ec),!U?.data||!(U.data.facts&16))return se;let wt=hp(ht),K=!!(wt&&ql(wt.expression).kind!==104),Xe=Sc(se?se.parameters:void 0,ke,e),ft=j(ht,se,K);return ft?se?(L.assert(Xe),t.updateConstructorDeclaration(se,void 0,Xe,ft)):mu(Ir(it(t.createConstructorDeclaration(void 0,Xe??[],ft),se||ht),se)):se}function j(se,ht,wt){var K,Xe;let ft=CK(se,!1,!1),Yt=ft;v||(Yt=Pr(Yt,$o=>!!$o.initializer||pi($o.name)||rm($o)));let pr=kt(se),yr=vt(Yt)||vt(pr);if(!ht&&!yr)return Zd(void 0,ke,e);l();let ta=!ht&&wt,Go=0,Ka=0,vo=-1,ka=[];(K=ht?.body)!=null&&K.statements&&(Ka=t.copyPrologue(ht.body.statements,ka,!1,ke),vo=bF(ht.body.statements,Ka),vo>=0?(Go=vo+1,ka=[...ka.slice(0,Ka),...On(ht.body.statements,ke,ca,Ka,Go-Ka),...ka.slice(Ka)]):Ka>=0&&(Go=Ka)),ta&&ka.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))])));let Hs=0;if(ht?.body){for(let $o=Go;$o<ht.body.statements.length;$o++){let jo=ht.body.statements[$o];if(Ad(ec(jo),ht))Hs++;else break}Hs>0&&(Go+=Hs)}let Uc=t.createThis();if(Kr(ka,pr,Uc),ht){let $o=Pr(ft,Ws=>Ad(ec(Ws),ht)),jo=Pr(Yt,Ws=>!Ad(ec(Ws),ht));yt(ka,$o,Uc),yt(ka,jo,Uc)}else yt(ka,Yt,Uc);if(ht&&si(ka,On(ht.body.statements,ke,ca,Go)),ka=t.mergeLexicalEnvironment(ka,o()),ka.length===0&&!ht)return;let Gu=ht?.body&&ht.body.statements.length>=ka.length&&(Xe=ht.body.multiLine)!=null?Xe:ka.length>0;return it(t.createBlock(it(t.createNodeArray(ka),ht?ht.body.statements:se.members),Gu),ht?ht.body:void 0)}function yt(se,ht,wt){for(let K of ht){if(Ca(K)&&!C)continue;let Xe=lt(K,wt);Xe&&se.push(Xe)}}function lt(se,ht){let wt=oc(se)?nt(se):Vt(se,ht);if(!wt)return;let K=t.createExpressionStatement(wt);Ir(K,se),bp(K,Ya(se)&3072),hl(K,se);let Xe=ec(se);return ha(Xe)?(Ho(K,Xe),ZR(K)):Ho(K,yp(se)),W0(wt,void 0),u2(wt,void 0),rm(Xe)&&bp(K,3072),K}function Qe(se,ht){let wt=[];for(let K of se){let Xe=oc(K)?nt(K):Vt(K,ht);Xe&&(mu(Xe),Ir(Xe,K),bp(Xe,Ya(K)&3072),Ho(Xe,yp(K)),hl(Xe,K),wt.push(Xe))}return wt}function Vt(se,ht){var wt;let K=_e,Xe=Hn(se,ht);return Xe&&zc(se)&&((wt=U?.data)!=null&&wt.facts)&&(Ir(Xe,se),bp(Xe,4),Ho(Xe,pb(se.name)),re.set(ec(se),U)),_e=K,Xe}function Hn(se,ht){let wt=!v,K;vf(se,ce)&&(c_(se.name)||pi(se.name)?K=t.createStringLiteralFromNode(se.name):c_(se.name.expression)&&!Re(se.name.expression)?K=t.createStringLiteralFromNode(se.name.expression):K=t.getGeneratedNameForNode(se.name));let Xe=rm(se)?t.getGeneratedPrivateNameForNode(se.name):ts(se.name)&&!Ap(se.name.expression)?t.updateComputedPropertyName(se.name,t.getGeneratedNameForNode(se.name)):se.name;zc(se)&&(_e=se);let ft=K?yr=>Ce(yr,K):ke;if(pi(Xe)&&Ni(se)){let yr=hc(Xe);if(yr)return yr.kind==="f"?yr.isStatic?tMe(yr.variableName,$e(se.initializer,ft,ot)):nMe(ht,$e(se.initializer,ft,ot),yr.brandCheckIdentifier):void 0;L.fail("Undeclared private name for property declaration.")}if((pi(Xe)||zc(se))&&!se.initializer)return;let Yt=ec(se);if(Mr(Yt,256))return;let pr=$e(se.initializer,ft,ot);if(Ad(Yt,Yt.parent)&&Re(Xe)){let yr=t.cloneNode(Xe);pr?(ud(pr)&&TO(pr.expression)&&pL(pr.expression.left,"___runInitializers")&&NS(pr.expression.right)&&Vf(pr.expression.right.expression)&&(pr=pr.expression.left),pr=t.inlineExpressions([pr,yr])):pr=yr,Jn(Xe,3168),Ho(yr,Yt.name),Jn(yr,3072)}else pr??(pr=t.createVoidZero());if(wt||pi(Xe)){let yr=VT(t,ht,Xe,Xe);return bp(yr,1024),t.createAssignment(yr,pr)}else{let yr=ts(Xe)?Xe.expression:Re(Xe)?t.createStringLiteral(Gi(Xe.escapedText)):Xe,ta=t.createPropertyDescriptor({value:pr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(ht,yr,ta)}}function jr(){ie&1||(ie|=1,e.enableSubstitution(79),$=[])}function ei(){ie&2||(ie|=2,e.enableSubstitution(108),e.enableEmitNotification(259),e.enableEmitNotification(215),e.enableEmitNotification(173),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(171),e.enableEmitNotification(169),e.enableEmitNotification(164))}function Kr(se,ht,wt){if(!C||!vt(ht))return;let{weakSetName:K}=xi().data;L.assert(K,"weakSetName should be set in private identifier environment"),se.push(t.createExpressionStatement(rMe(wt,K)))}function Si(se){return br(se)?t.updatePropertyAccessExpression(se,t.createVoidZero(),se.name):t.updateElementAccessExpression(se,t.createVoidZero(),$e(se.argumentExpression,ke,ot))}function Ja(se,ht,wt){if(ts(se)){let K=L3(se),Xe=$e(se.expression,ke,ot),ft=a_(Xe),Yt=Ap(ft);if(!(!!K||Iu(ft)&&tc(ft.left))&&!Yt&&ht){let yr=t.getGeneratedNameForNode(se);return d.getNodeCheckFlags(se)&32768?f(yr):i(yr),wt&&(Xe=r().createPropKeyHelper(Xe)),t.createAssignment(yr,Xe)}return Yt||Re(ft)?void 0:Xe}}function Za(){U={previous:U,data:void 0}}function Fa(){U=U?.previous}function Hi(){var se;return L.assert(U),(se=U.data)!=null?se:U.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function xi(){var se;return L.assert(U),(se=U.privateEnv)!=null?se:U.privateEnv=Y_e({className:void 0,weakSetName:void 0})}function Nr(){return fe??(fe=[])}function Fo(se,ht,wt,K,Xe,ft,Yt){Id(se)?kc(se,ht,wt,K,Xe,ft,Yt):Na(se)?Qr(se,ht,wt,K,Xe,ft,Yt):Nc(se)?Wi(se,ht,wt,K,Xe,ft,Yt):p_(se)?gn(se,ht,wt,K,Xe,ft,Yt):Sf(se)&&Ki(se,ht,wt,K,Xe,ft,Yt)}function Qr(se,ht,wt,K,Xe,ft,Yt){var pr;if(Xe){let yr=L.checkDefined((pr=wt.classThis)!=null?pr:wt.classConstructor,"classConstructor should be set in private identifier environment"),ta=xc(ht);JT(K,ht,{kind:"f",isStatic:!0,brandCheckIdentifier:yr,variableName:ta,isValid:ft})}else{let yr=xc(ht);JT(K,ht,{kind:"f",isStatic:!1,brandCheckIdentifier:yr,isValid:ft}),Nr().push(t.createAssignment(yr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Wi(se,ht,wt,K,Xe,ft,Yt){var pr;let yr=xc(ht),ta=Xe?L.checkDefined((pr=wt.classThis)!=null?pr:wt.classConstructor,"classConstructor should be set in private identifier environment"):L.checkDefined(K.data.weakSetName,"weakSetName should be set in private identifier environment");JT(K,ht,{kind:"m",methodName:yr,brandCheckIdentifier:ta,isStatic:Xe,isValid:ft})}function gn(se,ht,wt,K,Xe,ft,Yt){var pr;let yr=xc(ht,"_get"),ta=Xe?L.checkDefined((pr=wt.classThis)!=null?pr:wt.classConstructor,"classConstructor should be set in private identifier environment"):L.checkDefined(K.data.weakSetName,"weakSetName should be set in private identifier environment");Yt?.kind==="a"&&Yt.isStatic===Xe&&!Yt.getterName?Yt.getterName=yr:JT(K,ht,{kind:"a",getterName:yr,setterName:void 0,brandCheckIdentifier:ta,isStatic:Xe,isValid:ft})}function Ki(se,ht,wt,K,Xe,ft,Yt){var pr;let yr=xc(ht,"_set"),ta=Xe?L.checkDefined((pr=wt.classThis)!=null?pr:wt.classConstructor,"classConstructor should be set in private identifier environment"):L.checkDefined(K.data.weakSetName,"weakSetName should be set in private identifier environment");Yt?.kind==="a"&&Yt.isStatic===Xe&&!Yt.setterName?Yt.setterName=yr:JT(K,ht,{kind:"a",getterName:void 0,setterName:yr,brandCheckIdentifier:ta,isStatic:Xe,isValid:ft})}function kc(se,ht,wt,K,Xe,ft,Yt){var pr;let yr=xc(ht,"_get"),ta=xc(ht,"_set"),Go=Xe?L.checkDefined((pr=wt.classThis)!=null?pr:wt.classConstructor,"classConstructor should be set in private identifier environment"):L.checkDefined(K.data.weakSetName,"weakSetName should be set in private identifier environment");JT(K,ht,{kind:"a",getterName:yr,setterName:ta,brandCheckIdentifier:Go,isStatic:Xe,isValid:ft})}function Ps(se,ht,wt){let K=Hi(),Xe=xi(),ft=kK(Xe,ht),Yt=zc(se),pr=!iMe(ht)&&ft===void 0;wt(se,ht,K,Xe,Yt,pr,ft)}function mc(se,ht,wt){let{className:K}=xi().data,Xe=K?{prefix:"_",node:K,suffix:"_"}:"_",ft=typeof se=="object"?t.getGeneratedNameForNode(se,24,Xe,wt):typeof se=="string"?t.createUniqueName(se,16,Xe,wt):t.createTempVariable(void 0,!0,Xe,wt);return d.getNodeCheckFlags(ht)&32768?f(ft):i(ft),ft}function xc(se,ht){var wt;let K=T6(se);return mc((wt=K?.substring(1))!=null?wt:se,se,ht)}function hc(se){let ht=$_e(U,se);return ht?.kind==="untransformed"?void 0:ht}function ro(se){let ht=t.getGeneratedNameForNode(se),wt=hc(se.name);if(!wt)return xn(se,ke,e);let K=se.expression;return(zw(se)||Pu(se)||!Z0(se.expression))&&(K=t.createTempVariable(i,!0),Nr().push(t.createBinaryExpression(K,63,$e(se.expression,ke,ot)))),t.createAssignmentTargetWrapper(ht,Ge(wt,K,ht,63))}function aa(se){if(rs(se)||fu(se))return qs(se);if(TA(se))return ro(se);if(B&&Pu(se)&&_e&&U?.data){let{classConstructor:ht,superClassReference:wt,facts:K}=U.data;if(K&1)return Si(se);if(ht&&wt){let Xe=Vs(se)?$e(se.argumentExpression,ke,ot):Re(se.name)?t.createStringLiteralFromNode(se.name):void 0;if(Xe){let ft=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(ft,t.createReflectSetCall(wt,Xe,ft,ht))}}}return xn(se,ke,e)}function Co(se){if(vf(se,ce)){let ht=aa(se.left),wt=zt(se.left,se.right),K=$e(se.right,Xe=>Ce(Xe,wt),ot);return t.updateBinaryExpression(se,ht,se.operatorToken,K)}if(Iu(se,!0)){let ht=aa(se.left),wt=$e(se.right,ke,ot);return t.updateBinaryExpression(se,ht,se.operatorToken,wt)}return aa(se)}function gc(se){if(Ju(se.expression)){let ht=aa(se.expression);return t.updateSpreadElement(se,ht)}return xn(se,ke,e)}function Ll(se){return L.assertNode(se,ww),Km(se)?gc(se):ol(se)?xn(se,ke,e):Co(se)}function md(se){let ht=$e(se.name,ke,Ys);if(Iu(se.initializer,!0)){let wt=Co(se.initializer);return t.updatePropertyAssignment(se,ht,wt)}if(Ju(se.initializer)){let wt=aa(se.initializer);return t.updatePropertyAssignment(se,ht,wt)}return xn(se,ke,e)}function Pc(se){if(vf(se,ce)){let ht=zt(se.name,se.objectAssignmentInitializer),wt=$e(se.objectAssignmentInitializer,K=>Ce(K,ht),ot);return t.updateShorthandPropertyAssignment(se,se.name,wt)}return xn(se,ke,e)}function bl(se){if(Ju(se.expression)){let ht=aa(se.expression);return t.updateSpreadAssignment(se,ht)}return xn(se,ke,e)}function ss(se){return L.assertNode(se,Dw),VS(se)?bl(se):xf(se)?Pc(se):yl(se)?md(se):xn(se,ke,e)}function qs(se){return fu(se)?t.updateArrayLiteralExpression(se,On(se.elements,Ll,ot)):t.updateObjectLiteralExpression(se,On(se.properties,ss,Og))}function Rs(se,ht,wt){let K=ec(ht),Xe=re.get(K);if(Xe){let ft=U,Yt=X;U=Xe,X=ge,ge=!oc(K)||!(o_(K)&32),Y(se,ht,wt),ge=X,X=Yt,U=ft;return}switch(ht.kind){case 215:if(xs(K)||Ya(ht)&524288)break;case 259:case 173:case 174:case 175:case 171:case 169:{let ft=U,Yt=X;U=void 0,X=ge,ge=!1,Y(se,ht,wt),ge=X,X=Yt,U=ft;return}case 164:{let ft=U,Yt=ge;U=U?.previous,ge=X,Y(se,ht,wt),ge=Yt,U=ft;return}}Y(se,ht,wt)}function As(se,ht){return ht=W(se,ht),se===1?jt(ht):ht}function jt(se){switch(se.kind){case 79:return Ql(se);case 108:return yc(se)}return se}function yc(se){if(ie&2&&U?.data){let{facts:ht,classConstructor:wt,classThis:K}=U.data;if(ht&1&&S)return t.createParenthesizedExpression(t.createVoidZero());let Xe=ge?K??wt:wt;if(Xe)return it(Ir(t.cloneNode(Xe),se),se)}return se}function Ql(se){return yu(se)||se}function yu(se){if(ie&1&&d.getNodeCheckFlags(se)&2097152){let ht=d.getReferencedValueDeclaration(se);if(ht){let wt=$[ht.id];if(wt){let K=t.cloneNode(wt);return Ho(K,se),hl(K,se),K}}}}}function tMe(e,t){return D.createAssignment(e,D.createObjectLiteralExpression([D.createPropertyAssignment("value",t||D.createVoidZero())]))}function nMe(e,t,r){return D.createCallExpression(D.createPropertyAccessExpression(r,"set"),void 0,[e,t||D.createVoidZero()])}function rMe(e,t){return D.createCallExpression(D.createPropertyAccessExpression(t,"add"),void 0,[e])}function iMe(e){return!tS(e)&&e.escapedText==="#constructor"}function aMe(e){return pi(e.left)&&e.operatorToken.kind===101}var oMe=gt({"src/compiler/transformers/classFields.ts"(){"use strict";fa()}});function npe(e){let{hoistVariableDeclaration:t}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=Do(i),s=Uf(i,"strictNullChecks"),l,f;return{serializeTypeNode:($,fe)=>d($,A,fe),serializeTypeOfNode:($,fe)=>d($,m,fe),serializeParameterTypesOfNode:($,fe,Z)=>d($,v,fe,Z),serializeReturnTypeOfNode:($,fe)=>d($,x,fe)};function d($,fe,Z,U){let re=l,le=f;l=$.currentLexicalScope,f=$.currentNameScope;let _e=U===void 0?fe(Z):fe(Z,U);return l=re,f=le,_e}function g($){let fe=r.getAllAccessorDeclarations($);return fe.setAccessor&&Pce(fe.setAccessor)||fe.getAccessor&&U_(fe.getAccessor)}function m($){switch($.kind){case 169:case 166:return A($.type);case 175:case 174:return A(g($));case 260:case 228:case 171:return D.createIdentifier("Function");default:return D.createVoidZero()}}function v($,fe){let Z=Yr($)?Vm($):Ia($)&&Pf($.body)?$:void 0,U=[];if(Z){let re=S(Z,fe),le=re.length;for(let _e=0;_e<le;_e++){let ge=re[_e];_e===0&&Re(ge.name)&&ge.name.escapedText==="this"||(ge.dotDotDotToken?U.push(A(SH(ge.type))):U.push(m(ge)))}}return D.createArrayLiteralExpression(U)}function S($,fe){if(fe&&$.kind===174){let{setAccessor:Z}=kT(fe.members,$);if(Z)return Z.parameters}return $.parameters}function x($){return Ia($)&&$.type?A($.type):qA($)?D.createIdentifier("Promise"):D.createVoidZero()}function A($){if($===void 0)return D.createIdentifier("Object");switch($=FH($),$.kind){case 114:case 155:case 144:return D.createVoidZero();case 181:case 182:return D.createIdentifier("Function");case 185:case 186:return D.createIdentifier("Array");case 179:return $.assertsModifier?D.createVoidZero():D.createIdentifier("Boolean");case 134:return D.createIdentifier("Boolean");case 200:case 152:return D.createIdentifier("String");case 149:return D.createIdentifier("Object");case 198:return w($.literal);case 148:return D.createIdentifier("Number");case 160:return ie("BigInt",7);case 153:return ie("Symbol",2);case 180:return F($);case 190:return C($.types,!0);case 189:return C($.types,!1);case 191:return C([$.trueType,$.falseType],!1);case 195:if($.operator===146)return A($.type);break;case 183:case 196:case 197:case 184:case 131:case 157:case 194:case 202:break;case 315:case 316:case 320:case 321:case 322:break;case 317:case 318:case 319:return A($.type);default:return L.failBadSyntaxKind($)}return D.createIdentifier("Object")}function w($){switch($.kind){case 10:case 14:return D.createIdentifier("String");case 221:{let fe=$.operand;switch(fe.kind){case 8:case 9:return w(fe);default:return L.failBadSyntaxKind(fe)}}case 8:return D.createIdentifier("Number");case 9:return ie("BigInt",7);case 110:case 95:return D.createIdentifier("Boolean");case 104:return D.createVoidZero();default:return L.failBadSyntaxKind($)}}function C($,fe){let Z;for(let U of $){if(U=FH(U),U.kind===144){if(fe)return D.createVoidZero();continue}if(U.kind===157){if(!fe)return D.createIdentifier("Object");continue}if(U.kind===131)return D.createIdentifier("Object");if(!s&&(mb(U)&&U.literal.kind===104||U.kind===155))continue;let re=A(U);if(Re(re)&&re.escapedText==="Object")return re;if(Z){if(!P(Z,re))return D.createIdentifier("Object")}else Z=re}return Z??D.createVoidZero()}function P($,fe){return tc($)?tc(fe):Re($)?Re(fe)&&$.escapedText===fe.escapedText:br($)?br(fe)&&P($.expression,fe.expression)&&P($.name,fe.name):NS($)?NS(fe)&&Vf($.expression)&&$.expression.text==="0"&&Vf(fe.expression)&&fe.expression.text==="0":yo($)?yo(fe)&&$.text===fe.text:y2($)?y2(fe)&&P($.expression,fe.expression):ud($)?ud(fe)&&P($.expression,fe.expression):b2($)?b2(fe)&&P($.condition,fe.condition)&&P($.whenTrue,fe.whenTrue)&&P($.whenFalse,fe.whenFalse):ar($)?ar(fe)&&$.operatorToken.kind===fe.operatorToken.kind&&P($.left,fe.left)&&P($.right,fe.right):!1}function F($){let fe=r.getTypeReferenceSerializationKind($.typeName,f??l);switch(fe){case 0:if(jn($,re=>re.parent&&m2(re.parent)&&(re.parent.trueType===re||re.parent.falseType===re)))return D.createIdentifier("Object");let Z=q($.typeName),U=D.createTempVariable(t);return D.createConditionalExpression(D.createTypeCheck(D.createAssignment(U,Z),"function"),void 0,U,void 0,D.createIdentifier("Object"));case 1:return W($.typeName);case 2:return D.createVoidZero();case 4:return ie("BigInt",7);case 6:return D.createIdentifier("Boolean");case 3:return D.createIdentifier("Number");case 5:return D.createIdentifier("String");case 7:return D.createIdentifier("Array");case 8:return ie("Symbol",2);case 10:return D.createIdentifier("Function");case 9:return D.createIdentifier("Promise");case 11:return D.createIdentifier("Object");default:return L.assertNever(fe)}}function B($,fe){return D.createLogicalAnd(D.createStrictInequality(D.createTypeOfExpression($),D.createStringLiteral("undefined")),fe)}function q($){if($.kind===79){let U=W($);return B(U,U)}if($.left.kind===79)return B(W($.left),W($));let fe=q($.left),Z=D.createTempVariable(t);return D.createLogicalAnd(D.createLogicalAnd(fe.left,D.createStrictInequality(D.createAssignment(Z,fe.right),D.createVoidZero())),D.createPropertyAccessExpression(Z,$.right))}function W($){switch($.kind){case 79:let fe=go(it(fm.cloneNode($),$),$.parent);return fe.original=void 0,go(fe,ea(l)),fe;case 163:return Y($)}}function Y($){return D.createPropertyAccessExpression(W($.left),$.right)}function R($){return D.createConditionalExpression(D.createTypeCheck(D.createIdentifier($),"function"),void 0,D.createIdentifier($),void 0,D.createIdentifier("Object"))}function ie($,fe){return o<fe?R($):D.createIdentifier($)}}var sMe=gt({"src/compiler/transformers/typeSerializer.ts"(){"use strict";fa()}});function rpe(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Do(s),f=e.onSubstituteNode;e.onSubstituteNode=Ye;let d;return y_(e,g);function g(We){let qe=xn(We,v,e);return Bg(qe,e.readEmitHelpers()),qe}function m(We){return du(We)?void 0:We}function v(We){if(!(We.transformFlags&33554432))return We;switch(We.kind){case 167:return;case 260:return S(We);case 228:return B(We);case 173:return q(We);case 171:return Y(We);case 175:return ie(We);case 174:return R(We);case 169:return $(We);case 166:return fe(We);default:return xn(We,v,e)}}function S(We){if(!(O0(!0,We)||kI(!0,We)))return xn(We,v,e);let qe=O0(!0,We)?F(We,We.name):P(We,We.name);return qe.length>1&&(qe.push(t.createEndOfDeclarationMarker(We)),Jn(qe[0],Ya(qe[0])|8388608)),zp(qe)}function x(We){return!!(We.transformFlags&536870912)}function A(We){return vt(We,x)}function w(We){for(let qe of We.members){if(!HS(qe))continue;let zt=TF(qe,We,!0);if(vt(zt?.decorators,x)||vt(zt?.parameters,A))return!0}return!1}function C(We,qe){let zt=[];return re(zt,We,!1),re(zt,We,!0),w(We)&&(qe=it(t.createNodeArray([...qe,t.createClassStaticBlockDeclaration(t.createBlock(zt,!0))]),qe),zt=void 0),{decorationStatements:zt,members:qe}}function P(We,qe){let zt=On(We.modifiers,m,Ha),Qt=On(We.heritageClauses,v,dd),tn=On(We.members,v,_l),kn=[];({members:tn,decorationStatements:kn}=C(We,tn));let _n=t.updateClassDeclaration(We,zt,qe,void 0,Qt,tn);return si([_n],kn)}function F(We,qe){let zt=yp(We),Qt=Be(We),tn=l<=2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),kn=On(We.heritageClauses,v,dd),_n=On(We.members,v,_l),Gt=[];({members:_n,decorationStatements:Gt}=C(We,_n));let $n=t.createClassExpression(void 0,qe&&tc(qe)?void 0:qe,void 0,kn,_n);Ir($n,We),it($n,zt);let ui=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(tn,void 0,void 0,Qt?t.createAssignment(Qt,$n):$n)],1));Ir(ui,We),it(ui,zt),hl(ui,We);let Ni=[ui];return si(Ni,Gt),Ve(Ni,We),Ni}function B(We){return t.updateClassExpression(We,On(We.modifiers,m,Ha),We.name,void 0,On(We.heritageClauses,v,dd),On(We.members,v,_l))}function q(We){return t.updateConstructorDeclaration(We,On(We.modifiers,m,Ha),On(We.parameters,v,ha),$e(We.body,v,Va))}function W(We,qe){return We!==qe&&(hl(We,qe),Ho(We,yp(qe))),We}function Y(We){return W(t.updateMethodDeclaration(We,On(We.modifiers,m,Ha),We.asteriskToken,L.checkDefined($e(We.name,v,Ys)),void 0,void 0,On(We.parameters,v,ha),void 0,$e(We.body,v,Va)),We)}function R(We){return W(t.updateGetAccessorDeclaration(We,On(We.modifiers,m,Ha),L.checkDefined($e(We.name,v,Ys)),On(We.parameters,v,ha),void 0,$e(We.body,v,Va)),We)}function ie(We){return W(t.updateSetAccessorDeclaration(We,On(We.modifiers,m,Ha),L.checkDefined($e(We.name,v,Ys)),On(We.parameters,v,ha),$e(We.body,v,Va)),We)}function $(We){if(!(We.flags&16777216||Mr(We,2)))return W(t.updatePropertyDeclaration(We,On(We.modifiers,m,Ha),L.checkDefined($e(We.name,v,Ys)),void 0,void 0,$e(We.initializer,v,ot)),We)}function fe(We){let qe=t.updateParameterDeclaration(We,hde(t,We.modifiers),We.dotDotDotToken,L.checkDefined($e(We.name,v,Mm)),void 0,void 0,$e(We.initializer,v,ot));return qe!==We&&(hl(qe,We),it(qe,yp(We)),Ho(qe,yp(We)),Jn(qe.name,64)),qe}function Z(We){return pL(We.expression,"___metadata")}function U(We){if(!We)return;let{false:qe,true:zt}=yae(We.decorators,Z),Qt=[];return si(Qt,on(qe,ke)),si(Qt,Uo(We.parameters,Pe)),si(Qt,on(zt,ke)),Qt}function re(We,qe,zt){si(We,on(ge(qe,zt),Qt=>t.createExpressionStatement(Qt)))}function le(We,qe,zt){return Kw(!0,We,zt)&&qe===Ca(We)}function _e(We,qe){return Pr(We.members,zt=>le(zt,qe,We))}function ge(We,qe){let zt=_e(We,qe),Qt;for(let tn of zt)Qt=Sn(Qt,X(We,tn));return Qt}function X(We,qe){let zt=TF(qe,We,!0),Qt=U(zt);if(!Qt)return;let tn=Le(We,qe),kn=Ce(qe,!Mr(qe,2)),_n=l>0?Na(qe)&&!rm(qe)?t.createVoidZero():t.createNull():void 0,Gt=r().createDecorateHelper(Qt,tn,kn,_n);return Jn(Gt,3072),Ho(Gt,yp(qe)),Gt}function Ve(We,qe){let zt=we(qe);zt&&We.push(Ir(t.createExpressionStatement(zt),qe))}function we(We){let qe=LK(We),zt=U(qe);if(!zt)return;let Qt=d&&d[sc(We)],tn=l<=2?t.getInternalName(We,!1,!0):t.getLocalName(We,!1,!0),kn=r().createDecorateHelper(zt,tn),_n=t.createAssignment(tn,Qt?t.createAssignment(Qt,kn):kn);return Jn(_n,3072),Ho(_n,yp(We)),_n}function ke(We){return L.checkDefined($e(We.expression,v,ot))}function Pe(We,qe){let zt;if(We){zt=[];for(let Qt of We){let tn=r().createParamHelper(ke(Qt),qe);it(tn,Qt.expression),Jn(tn,3072),zt.push(tn)}}return zt}function Ce(We,qe){let zt=We.name;return pi(zt)?t.createIdentifier(""):ts(zt)?qe&&!Ap(zt.expression)?t.getGeneratedNameForNode(zt):zt.expression:Re(zt)?t.createStringLiteral(vr(zt)):t.cloneNode(zt)}function Ie(){d||(e.enableSubstitution(79),d=[])}function Be(We){if(o.getNodeCheckFlags(We)&1048576){Ie();let qe=t.createUniqueName(We.name&&!tc(We.name)?vr(We.name):"default");return d[sc(We)]=qe,i(qe),qe}}function Ne(We){return t.createPropertyAccessExpression(t.getDeclarationName(We),"prototype")}function Le(We,qe){return Ca(qe)?t.getDeclarationName(We):Ne(We)}function Ye(We,qe){return qe=f(We,qe),We===1?_t(qe):qe}function _t(We){switch(We.kind){case 79:return ct(We)}return We}function ct(We){var qe;return(qe=Rt(We))!=null?qe:We}function Rt(We){if(d&&o.getNodeCheckFlags(We)&2097152){let qe=o.getReferencedValueDeclaration(We);if(qe){let zt=d[qe.id];if(zt){let Qt=t.cloneNode(zt);return Ho(Qt,We),hl(Qt,We),Qt}}}}}var cMe=gt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";fa()}});function ipe(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l,f,d,g,m,v;return y_(e,S);function S(ae){l=void 0,v=!1;let rt=xn(ae,R,e);return Bg(rt,e.readEmitHelpers()),v&&(SS(rt,32),v=!1),rt}function x(){switch(f=void 0,d=void 0,g=void 0,l?.kind){case"class":f=l.classInfo;break;case"class-element":f=l.next.classInfo,d=l.classThis,g=l.classSuper;break;case"name":let ae=l.next.next.next;ae?.kind==="class-element"&&(f=ae.next.classInfo,d=ae.classThis,g=ae.classSuper);break}}function A(ae){l={kind:"class",next:l,classInfo:ae,savedPendingExpressions:m},m=void 0,x()}function w(){L.assert(l?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${l?.kind}' instead.`),m=l.savedPendingExpressions,l=l.next,x()}function C(ae){var rt,Ot;L.assert(l?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${l?.kind}' instead.`),l={kind:"class-element",next:l},(oc(ae)||Na(ae)&&zc(ae))&&(l.classThis=(rt=l.next.classInfo)==null?void 0:rt.classThis,l.classSuper=(Ot=l.next.classInfo)==null?void 0:Ot.classSuper),x()}function P(){var ae;L.assert(l?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${l?.kind}' instead.`),L.assert(((ae=l.next)==null?void 0:ae.kind)==="class","Incorrect value for top.next.kind.",()=>{var rt;return`Expected top.next.kind to be 'class' but got '${(rt=l.next)==null?void 0:rt.kind}' instead.`}),l=l.next,x()}function F(){L.assert(l?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${l?.kind}' instead.`),l={kind:"name",next:l},x()}function B(){L.assert(l?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${l?.kind}' instead.`),l=l.next,x()}function q(){l?.kind==="other"?(L.assert(!m),l.depth++):(l={kind:"other",next:l,depth:0,savedPendingExpressions:m},m=void 0,x())}function W(){L.assert(l?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${l?.kind}' instead.`),l.depth>0?(L.assert(!m),l.depth--):(m=l.savedPendingExpressions,l=l.next,x())}function Y(ae){return!!(ae.transformFlags&33554432)||!!d&&!!(ae.transformFlags&16384)||!!d&&!!g&&!!(ae.transformFlags&134217728)}function R(ae){if(!Y(ae))return ae;switch(ae.kind){case 167:return L.fail("Use `modifierVisitor` instead.");case 260:return ke(ae);case 228:return Pe(ae,void 0);case 173:case 169:case 172:return L.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 166:return kn(ae);case 223:return ui(ae,!1);case 299:return Dt(ae);case 257:return pn(ae);case 205:return An(ae);case 274:return at(ae);case 108:return We(ae);case 245:return Gt(ae);case 241:return $n(ae);case 357:return Pi(ae,!1);case 214:return Tt(ae,!1,void 0);case 356:return ve(ae,!1,void 0);case 210:return qe(ae);case 212:return zt(ae);case 221:case 222:return Ni(ae,!1);case 208:return Qt(ae);case 209:return tn(ae);case 164:return nn(ae);case 171:case 175:case 174:case 215:case 259:{q();let rt=xn(ae,ie,e);return W(),rt}default:return xn(ae,ie,e)}}function ie(ae){switch(ae.kind){case 167:return;default:return R(ae)}}function $(ae){switch(ae.kind){case 167:return;default:return ae}}function fe(ae){switch(ae.kind){case 173:return Ie(ae);case 171:return Le(ae);case 174:return Ye(ae);case 175:return _t(ae);case 169:return Rt(ae);case 172:return ct(ae);default:return R(ae)}}function Z(ae,rt){switch(ae.kind){case 356:return ve(ae,!1,rt);case 214:return Tt(ae,!1,rt);case 228:return Pe(ae,rt);default:return R(ae)}}function U(ae){switch(ae.kind){case 221:case 222:return Ni(ae,!0);case 223:return ui(ae,!0);case 357:return Pi(ae,!0);case 214:return Tt(ae,!0,void 0);default:return R(ae)}}function re(ae){let rt=ae.name&&Re(ae.name)&&!tc(ae.name)?vr(ae.name):ae.name&&pi(ae.name)&&!tc(ae.name)?vr(ae.name).slice(1):ae.name&&yo(ae.name)&&i_(ae.name.text,99)?ae.name.text:Yr(ae)?"class":"member";return zy(ae)&&(rt=`get_${rt}`),Ng(ae)&&(rt=`set_${rt}`),ae.name&&pi(ae.name)&&(rt=`private_${rt}`),Ca(ae)&&(rt=`static_${rt}`),"_"+rt}function le(ae,rt){return t.createUniqueName(`${re(ae)}_${rt}`,24)}function _e(ae,rt){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ae,void 0,void 0,rt)],1))}function ge(ae){let rt,Ot,Ke=!1,oe=!1,pe=!1;for(let z of ae.members)if(cse(z)&&Kw(!1,z,ae)&&(zc(z)?Ot??(Ot=t.createUniqueName("_staticExtraInitializers",16)):rt??(rt=t.createUniqueName("_instanceExtraInitializers",16))),oc(z)?Ke=!0:Na(z)&&(zc(z)?Ke||(Ke=!!z.initializer||bf(z)):oe||(oe=!_H(z))),(xu(z)||Id(z))&&zc(z)&&(pe=!0),Ot&&rt&&Ke&&oe&&pe)break;return{class:ae,instanceExtraInitializersName:rt,staticExtraInitializersName:Ot,hasStaticInitializers:Ke,hasNonAmbientInstanceFields:oe,hasStaticPrivateClassElements:pe}}function X(ae){for(let rt of ae.members)if((oc(rt)||Na(rt)&&zc(rt))&&rt.transformFlags&134217728)return!0;return!1}function Ve(ae,rt){var Ot,Ke,oe,pe,z;i();let Te=(Ot=ae.name)!=null?Ot:t.getGeneratedNameForNode(ae),j=ge(ae),yt=[],lt,Qe,Vt,Hn,jr=!1,ei=ce(LK(ae));if(ei&&(j.classDecoratorsName=t.createUniqueName("_classDecorators",16),j.classDescriptorName=t.createUniqueName("_classDescriptor",16),j.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",16),j.classThis=t.createUniqueName("_classThis",16),yt.push(_e(j.classDecoratorsName,t.createArrayLiteralExpression(ei)),_e(j.classDescriptorName),_e(j.classExtraInitializersName,t.createArrayLiteralExpression()),_e(j.classThis)),j.hasStaticPrivateClassElements&&(jr=!0,v=!0)),ei&&X(ae)){let xi=mR(ae.heritageClauses,94),Nr=xi&&Sl(xi.types),Fo=Nr&&$e(Nr.expression,R,ot);if(Fo){j.classSuper=t.createUniqueName("_classSuper",16);let Qr=ql(Fo),Wi=_u(Qr)&&!Qr.name||ms(Qr)&&!Qr.name||xs(Qr)?t.createComma(t.createNumericLiteral(0),Fo):Fo;yt.push(_e(j.classSuper,Wi));let gn=t.updateExpressionWithTypeArguments(Nr,j.classSuper,void 0),Ki=t.updateHeritageClause(xi,[gn]);Hn=t.createNodeArray([Ki])}}else Hn=On(ae.heritageClauses,R,dd);let Kr=(Ke=j.classThis)!=null?Ke:t.createThis();if(!((oe=ec(ae,Yr))!=null&&oe.name)&&(ei||!yo(rt)||!CH(rt))){let xi=r().createSetFunctionNameHelper(t.createThis(),rt);lt=Sn(lt,t.createExpressionStatement(xi))}A(j);let Ja=On(ae.members,fe,_l);if(m){let xi;for(let Nr of m){Nr=$e(Nr,function Qr(Wi){if(!(Wi.transformFlags&16384))return Wi;switch(Wi.kind){case 108:return xi||(xi=t.createUniqueName("_outerThis",16),yt.unshift(_e(xi,t.createThis()))),xi;default:return xn(Wi,Qr,e)}},ot);let Fo=t.createExpressionStatement(Nr);lt=Sn(lt,Fo)}m=void 0}if(w(),j.instanceExtraInitializersName&&!Vm(ae)){let xi=Ce(ae,j);if(xi){let Nr=hp(ae),Fo=!!(Nr&&ql(Nr.expression).kind!==104),Qr=[];if(Fo){let gn=t.createSpreadElement(t.createIdentifier("arguments")),Ki=t.createCallExpression(t.createSuper(),void 0,[gn]);Qr.push(t.createExpressionStatement(Ki))}si(Qr,xi);let Wi=t.createBlock(Qr,!0);Vt=t.createConstructorDeclaration(void 0,[],Wi)}}if(j.staticExtraInitializersName&&yt.push(_e(j.staticExtraInitializersName,t.createArrayLiteralExpression())),j.instanceExtraInitializersName&&yt.push(_e(j.instanceExtraInitializersName,t.createArrayLiteralExpression())),j.memberInfos&&Ld(j.memberInfos,(xi,Nr)=>{Ca(Nr)&&(yt.push(_e(xi.memberDecoratorsName)),xi.memberInitializersName&&yt.push(_e(xi.memberInitializersName,t.createArrayLiteralExpression())),xi.memberDescriptorName&&yt.push(_e(xi.memberDescriptorName)))}),j.memberInfos&&Ld(j.memberInfos,(xi,Nr)=>{Ca(Nr)||(yt.push(_e(xi.memberDecoratorsName)),xi.memberInitializersName&&yt.push(_e(xi.memberInitializersName,t.createArrayLiteralExpression())),xi.memberDescriptorName&&yt.push(_e(xi.memberDescriptorName)))}),lt=si(lt,j.staticNonFieldDecorationStatements),lt=si(lt,j.nonStaticNonFieldDecorationStatements),lt=si(lt,j.staticFieldDecorationStatements),lt=si(lt,j.nonStaticFieldDecorationStatements),j.classDescriptorName&&j.classDecoratorsName&&j.classExtraInitializersName&&j.classThis){lt??(lt=[]);let xi=t.createPropertyAssignment("value",t.createThis()),Nr=t.createObjectLiteralExpression([xi]),Fo=t.createAssignment(j.classDescriptorName,Nr),Qr=t.createPropertyAccessExpression(t.createThis(),"name"),Wi=r().createESDecorateHelper(t.createNull(),Fo,j.classDecoratorsName,{kind:"class",name:Qr},t.createNull(),j.classExtraInitializersName),gn=t.createExpressionStatement(Wi);Ho(gn,$y(ae)),lt.push(gn);let Ki=t.createPropertyAccessExpression(j.classDescriptorName,"value"),kc=t.createAssignment(j.classThis,Ki),Ps=t.createAssignment(Te,kc);lt.push(t.createExpressionStatement(Ps))}if(j.staticExtraInitializersName){let xi=r().createRunInitializersHelper(Kr,j.staticExtraInitializersName),Nr=t.createExpressionStatement(xi);Ho(Nr,(pe=ae.name)!=null?pe:$y(ae)),lt=Sn(lt,Nr)}if(j.classExtraInitializersName){let xi=r().createRunInitializersHelper(Kr,j.classExtraInitializersName),Nr=t.createExpressionStatement(xi);Ho(Nr,(z=ae.name)!=null?z:$y(ae)),Qe=Sn(Qe,Nr)}lt&&Qe&&!j.hasStaticInitializers&&(si(lt,Qe),Qe=void 0);let Za=Ja;if(lt){let xi=t.createBlock(lt,!0),Nr=t.createClassStaticBlockDeclaration(xi);jr&&eO(Nr,32),Za=[Nr,...Za]}if(Vt&&(Za=[...Za,Vt]),Qe){let xi=t.createBlock(Qe,!0),Nr=t.createClassStaticBlockDeclaration(xi);Za=[...Za,Nr]}Za!==Ja&&(Ja=it(t.createNodeArray(Za),Ja));let Fa=o(),Hi;if(ei){Hi=t.createClassExpression(void 0,void 0,void 0,Hn,Ja);let xi=t.createVariableDeclaration(Te,void 0,void 0,Hi),Nr=t.createVariableDeclarationList([xi]),Fo=j.classThis?t.createAssignment(Te,j.classThis):Te;yt.push(t.createVariableStatement(void 0,Nr),t.createReturnStatement(Fo))}else Hi=t.createClassExpression(void 0,ae.name,void 0,Hn,Ja),yt.push(t.createReturnStatement(Hi));if(jr){SS(Hi,32);for(let xi of Hi.members)(xu(xi)||Id(xi))&&zc(xi)&&SS(xi,32)}return Ir(Hi,ae),Lu(Hi).classThis=j.classThis,t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(yt,Fa))}function we(ae){return O0(!1,ae)||kI(!1,ae)}function ke(ae){var rt;if(we(ae))if(Mr(ae,1)&&Mr(ae,1024)){let Ot=(rt=ec(ae,Yr))!=null?rt:ae,Ke=Ot.name?t.createStringLiteralFromNode(Ot.name):t.createStringLiteral("default"),oe=Ve(ae,Ke),pe=t.createExportDefault(oe);return Ir(pe,ae),hl(pe,sm(ae)),Ho(pe,$y(ae)),pe}else{L.assertIsDefined(ae.name,"A class declaration that is not a default export must have a name.");let Ot=Ve(ae,t.createStringLiteralFromNode(ae.name)),Ke=On(ae.modifiers,$,Ha),oe=t.createVariableDeclaration(ae.name,void 0,void 0,Ot),pe=t.createVariableDeclarationList([oe],1),z=t.createVariableStatement(Ke,pe);return Ir(z,ae),hl(z,sm(ae)),z}else{let Ot=On(ae.modifiers,$,Ha),Ke=On(ae.heritageClauses,R,dd);A(void 0);let oe=On(ae.members,fe,_l);return w(),t.updateClassDeclaration(ae,Ot,ae.name,void 0,Ke,oe)}}function Pe(ae,rt){if(we(ae)){let Ot=ae.name?t.createStringLiteralFromNode(ae.name):rt??t.createStringLiteral(""),Ke=Ve(ae,Ot);return Ir(Ke,ae),Ke}else{let Ot=On(ae.modifiers,$,Ha),Ke=On(ae.heritageClauses,R,dd);A(void 0);let oe=On(ae.members,fe,_l);return w(),t.updateClassExpression(ae,Ot,ae.name,void 0,Ke,oe)}}function Ce(ae,rt){if(rt.instanceExtraInitializersName&&!rt.hasNonAmbientInstanceFields){let Ot=[];return Ot.push(t.createExpressionStatement(r().createRunInitializersHelper(t.createThis(),rt.instanceExtraInitializersName))),Ot}}function Ie(ae){C(ae);let rt=On(ae.modifiers,$,Ha),Ot=On(ae.parameters,R,ha),Ke;if(ae.body&&f){let oe=Ce(f.class,f);if(oe){let pe=[],z=t.copyPrologue(ae.body.statements,pe,!1,R),Te=bF(ae.body.statements,z),j=Te>=0?Te+1:void 0;si(pe,On(ae.body.statements,R,ca,z,j?j-z:void 0)),si(pe,oe),si(pe,On(ae.body.statements,R,ca,j)),Ke=t.createBlock(pe,!0),Ir(Ke,ae.body),it(Ke,ae.body)}}return Ke??(Ke=$e(ae.body,R,Va)),P(),t.updateConstructorDeclaration(ae,rt,Ot,Ke)}function Be(ae,rt){return ae!==rt&&(hl(ae,rt),Ho(ae,$y(rt))),ae}function Ne(ae,rt,Ot,Ke){var oe,pe,z,Te,j,yt,lt,Qe;let Vt,Hn,jr,ei,Kr;if(!Ot){let Za=On(ae.modifiers,$,Ha);return F(),rt?{referencedName:Vt,name:Hn}=gr(ae.name):Hn=pt(ae.name),B(),{modifiers:Za,referencedName:Vt,name:Hn,initializersName:jr,descriptorName:Kr,thisArg:ei}}let Si=ce(TF(ae,Ot.class,!1)),Ja=On(ae.modifiers,$,Ha);if(Si){let Za=le(ae,"decorators"),Fa=t.createArrayLiteralExpression(Si),Hi=t.createAssignment(Za,Fa),xi={memberDecoratorsName:Za};(oe=Ot.memberInfos)!=null||(Ot.memberInfos=new Map),Ot.memberInfos.set(ae,xi),m??(m=[]),m.push(Hi);let Nr=xA(ae)||Id(ae)?Ca(ae)?(pe=Ot.staticNonFieldDecorationStatements)!=null?pe:Ot.staticNonFieldDecorationStatements=[]:(z=Ot.nonStaticNonFieldDecorationStatements)!=null?z:Ot.nonStaticNonFieldDecorationStatements=[]:Na(ae)&&!Id(ae)?Ca(ae)?(Te=Ot.staticFieldDecorationStatements)!=null?Te:Ot.staticFieldDecorationStatements=[]:(j=Ot.nonStaticFieldDecorationStatements)!=null?j:Ot.nonStaticFieldDecorationStatements=[]:L.fail(),Fo=p_(ae)?"getter":Sf(ae)?"setter":Nc(ae)?"method":Id(ae)?"accessor":Na(ae)?"field":L.fail(),Qr;if(Re(ae.name)||pi(ae.name))Qr={computed:!1,name:ae.name};else if(c_(ae.name))Qr={computed:!0,name:t.createStringLiteralFromNode(ae.name)};else{let Ki=ae.name.expression;c_(Ki)&&!Re(Ki)?Qr={computed:!0,name:t.createStringLiteralFromNode(Ki)}:(F(),{referencedName:Vt,name:Hn}=gr(ae.name),Qr={computed:!0,name:Vt},B())}let Wi={kind:Fo,name:Qr,static:Ca(ae),private:pi(ae.name),access:{get:Na(ae)||p_(ae)||Nc(ae),set:Na(ae)||Sf(ae)}},gn=Ca(ae)?(yt=Ot.staticExtraInitializersName)!=null?yt:Ot.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",16):(lt=Ot.instanceExtraInitializersName)!=null?lt:Ot.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",16);if(xA(ae)){let Ki;xu(ae)&&Ke&&(Ki=Ke(ae,On(Ja,mc=>zr(mc,mL),Ha)),xi.memberDescriptorName=Kr=le(ae,"descriptor"),Ki=t.createAssignment(Kr,Ki));let kc=r().createESDecorateHelper(t.createThis(),Ki??t.createNull(),Za,Wi,t.createNull(),gn),Ps=t.createExpressionStatement(kc);Ho(Ps,$y(ae)),Nr.push(Ps)}else if(Na(ae)){jr=(Qe=xi.memberInitializersName)!=null?Qe:xi.memberInitializersName=le(ae,"initializers"),Ca(ae)&&(ei=Ot.classThis);let Ki;xu(ae)&&rm(ae)&&Ke&&(Ki=Ke(ae,void 0),xi.memberDescriptorName=Kr=le(ae,"descriptor"),Ki=t.createAssignment(Kr,Ki));let kc=r().createESDecorateHelper(Id(ae)?t.createThis():t.createNull(),Ki??t.createNull(),Za,Wi,jr,gn),Ps=t.createExpressionStatement(kc);Ho(Ps,$y(ae)),Nr.push(Ps)}}return Hn===void 0&&(F(),rt?{referencedName:Vt,name:Hn}=gr(ae.name):Hn=pt(ae.name),B()),!vt(Ja)&&(Nc(ae)||Na(ae))&&Jn(Hn,1024),{modifiers:Ja,referencedName:Vt,name:Hn,initializersName:jr,descriptorName:Kr,thisArg:ei}}function Le(ae){C(ae);let{modifiers:rt,name:Ot,descriptorName:Ke}=Ne(ae,!1,f,G);if(Ke)return P(),Be(kt(rt,Ot,Ke),ae);{let oe=On(ae.parameters,R,ha),pe=$e(ae.body,R,Va);return P(),Be(t.updateMethodDeclaration(ae,rt,ae.asteriskToken,Ot,void 0,void 0,oe,void 0,pe),ae)}}function Ye(ae){C(ae);let{modifiers:rt,name:Ot,descriptorName:Ke}=Ne(ae,!1,f,Oe);if(Ke)return P(),Be(Kt(rt,Ot,Ke),ae);{let oe=On(ae.parameters,R,ha),pe=$e(ae.body,R,Va);return P(),Be(t.updateGetAccessorDeclaration(ae,rt,Ot,oe,void 0,pe),ae)}}function _t(ae){C(ae);let{modifiers:rt,name:Ot,descriptorName:Ke}=Ne(ae,!1,f,je);if(Ke)return P(),Be(ln(rt,Ot,Ke),ae);{let oe=On(ae.parameters,R,ha),pe=$e(ae.body,R,Va);return P(),Be(t.updateSetAccessorDeclaration(ae,rt,Ot,oe,pe),ae)}}function ct(ae){C(ae),f&&(f.hasStaticInitializers=!0);let rt=xn(ae,R,e);return P(),rt}function Rt(ae){C(ae),L.assert(!_H(ae),"Not yet implemented.");let rt=vf(ae,_n),{modifiers:Ot,name:Ke,referencedName:oe,initializersName:pe,descriptorName:z,thisArg:Te}=Ne(ae,rt,f,rm(ae)?Ge:void 0);i();let j=oe?$e(ae.initializer,lt=>Z(lt,oe),ot):$e(ae.initializer,R,ot);pe&&(j=r().createRunInitializersHelper(Te??t.createThis(),pe,j??t.createVoidZero())),!Ca(ae)&&f?.instanceExtraInitializersName&&!f?.hasInjectedInstanceInitializers&&(f.hasInjectedInstanceInitializers=!0,j??(j=t.createVoidZero()),j=t.createParenthesizedExpression(t.createComma(r().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),j))),Ca(ae)&&f&&j&&(f.hasStaticInitializers=!0);let yt=o();if(vt(yt)&&(j=t.createImmediatelyInvokedArrowFunction([...yt,t.createReturnStatement(j)])),P(),rm(ae)&&z){let lt=sm(ae),Qe=pb(ae),Vt=ae.name,Hn=Vt,jr=Vt;if(ts(Vt)&&!Ap(Vt.expression)){let Za=L3(Vt);if(Za)Hn=t.updateComputedPropertyName(Vt,$e(Vt.expression,R,ot)),jr=t.updateComputedPropertyName(Vt,Za.left);else{let Fa=t.createTempVariable(s);Ho(Fa,Vt.expression);let Hi=$e(Vt.expression,R,ot),xi=t.createAssignment(Fa,Hi);Ho(xi,Vt.expression),Hn=t.updateComputedPropertyName(Vt,xi),jr=t.updateComputedPropertyName(Vt,Fa)}}let ei=On(Ot,Za=>Za.kind!==127?Za:void 0,Ha),Kr=sJ(t,ae,ei,j);Ir(Kr,ae),Jn(Kr,3072),Ho(Kr,Qe),Ho(Kr.name,ae.name);let Si=Kt(ei,Hn,z);Ir(Si,ae),hl(Si,lt),Ho(Si,Qe);let Ja=ln(ei,jr,z);return Ir(Ja,ae),Jn(Ja,3072),Ho(Ja,Qe),[Kr,Si,Ja]}return Be(t.updatePropertyDeclaration(ae,Ot,Ke,void 0,void 0,j),ae)}function We(ae){return d??ae}function qe(ae){if(Pu(ae.expression)&&d){let rt=$e(ae.expression,R,ot),Ot=On(ae.arguments,R,ot),Ke=t.createFunctionCallCall(rt,d,Ot);return Ir(Ke,ae),it(Ke,ae),Ke}return xn(ae,R,e)}function zt(ae){if(Pu(ae.tag)&&d){let rt=$e(ae.tag,R,ot),Ot=t.createFunctionBindCall(rt,d,[]);Ir(Ot,ae),it(Ot,ae);let Ke=$e(ae.template,R,AA);return t.updateTaggedTemplateExpression(ae,Ot,void 0,Ke)}return xn(ae,R,e)}function Qt(ae){if(Pu(ae)&&Re(ae.name)&&d&&g){let rt=t.createStringLiteralFromNode(ae.name),Ot=t.createReflectGetCall(g,rt,d);return Ir(Ot,ae.expression),it(Ot,ae.expression),Ot}return xn(ae,R,e)}function tn(ae){if(Pu(ae)&&d&&g){let rt=$e(ae.argumentExpression,R,ot),Ot=t.createReflectGetCall(g,rt,d);return Ir(Ot,ae.expression),it(Ot,ae.expression),Ot}return xn(ae,R,e)}function kn(ae){let rt;if(vf(ae,_n)){let Ot=ir(ae.name,ae.initializer),Ke=$e(ae.name,R,Mm),oe=$e(ae.initializer,pe=>Z(pe,Ot),ot);rt=t.updateParameterDeclaration(ae,void 0,void 0,Ke,void 0,void 0,oe)}else rt=t.updateParameterDeclaration(ae,void 0,ae.dotDotDotToken,$e(ae.name,R,Mm),void 0,void 0,$e(ae.initializer,R,ot));return rt!==ae&&(hl(rt,ae),it(rt,yp(ae)),Ho(rt,yp(ae)),Jn(rt.name,64)),rt}function _n(ae){return _u(ae)&&!ae.name&&we(ae)}function Gt(ae){return t.updateForStatement(ae,$e(ae.initializer,U,pp),$e(ae.condition,R,ot),$e(ae.incrementor,U,ot),jf(ae.statement,R,e))}function $n(ae){return xn(ae,U,e)}function ui(ae,rt){if(Fg(ae)){let Ot=Se(ae.left),Ke=$e(ae.right,R,ot);return t.updateBinaryExpression(ae,Ot,ae.operatorToken,Ke)}if(Iu(ae)){if(vf(ae,_n)){let Ot=ir(ae.left,ae.right),Ke=$e(ae.left,R,ot),oe=$e(ae.right,pe=>Z(pe,Ot),ot);return t.updateBinaryExpression(ae,Ke,ae.operatorToken,oe)}if(Pu(ae.left)&&d&&g){let Ot=Vs(ae.left)?$e(ae.left.argumentExpression,R,ot):Re(ae.left.name)?t.createStringLiteralFromNode(ae.left.name):void 0;if(Ot){let Ke=$e(ae.right,R,ot);if(oN(ae.operatorToken.kind)){let pe=Ot;Ap(Ot)||(pe=t.createTempVariable(s),Ot=t.createAssignment(pe,Ot));let z=t.createReflectGetCall(g,pe,d);Ir(z,ae.left),it(z,ae.left),Ke=t.createBinaryExpression(z,WL(ae.operatorToken.kind),Ke),it(Ke,ae)}let oe=rt?void 0:t.createTempVariable(s);return oe&&(Ke=t.createAssignment(oe,Ke),it(oe,ae)),Ke=t.createReflectSetCall(g,Ot,Ke,d),Ir(Ke,ae),it(Ke,ae),oe&&(Ke=t.createComma(Ke,oe),it(Ke,ae)),Ke}}}if(ae.operatorToken.kind===27){let Ot=$e(ae.left,U,ot),Ke=$e(ae.right,rt?U:R,ot);return t.updateBinaryExpression(ae,Ot,ae.operatorToken,Ke)}return xn(ae,R,e)}function Ni(ae,rt){if(ae.operator===45||ae.operator===46){let Ot=vs(ae.operand);if(Pu(Ot)&&d&&g){let Ke=Vs(Ot)?$e(Ot.argumentExpression,R,ot):Re(Ot.name)?t.createStringLiteralFromNode(Ot.name):void 0;if(Ke){let oe=Ke;Ap(Ke)||(oe=t.createTempVariable(s),Ke=t.createAssignment(oe,Ke));let pe=t.createReflectGetCall(g,oe,d);Ir(pe,ae),it(pe,ae);let z=rt?void 0:t.createTempVariable(s);return pe=b3(t,ae,pe,s,z),pe=t.createReflectSetCall(g,Ke,pe,d),Ir(pe,ae),it(pe,ae),z&&(pe=t.createComma(pe,z),it(pe,ae)),pe}}}return xn(ae,R,e)}function Pi(ae,rt){let Ot=rt?aN(ae.elements,U):aN(ae.elements,R,U);return t.updateCommaListExpression(ae,Ot)}function gr(ae){if(c_(ae)||pi(ae)){let pe=t.createStringLiteralFromNode(ae),z=$e(ae,R,Ys);return{referencedName:pe,name:z}}if(c_(ae.expression)&&!Re(ae.expression)){let pe=t.createStringLiteralFromNode(ae.expression),z=$e(ae,R,Ys);return{referencedName:pe,name:z}}let rt=t.getGeneratedNameForNode(ae);s(rt);let Ot=r().createPropKeyHelper($e(ae.expression,R,ot)),Ke=t.createAssignment(rt,Ot),oe=t.updateComputedPropertyName(ae,nt(Ke));return{referencedName:rt,name:oe}}function pt(ae){return ts(ae)?nn(ae):$e(ae,R,Ys)}function nn(ae){let rt=$e(ae.expression,R,ot);return Ap(rt)||(rt=nt(rt)),t.updateComputedPropertyName(ae,rt)}function Dt(ae){if(vf(ae,_n)){let{referencedName:rt,name:Ot}=gr(ae.name),Ke=$e(ae.initializer,oe=>Z(oe,rt),ot);return t.updatePropertyAssignment(ae,Ot,Ke)}return xn(ae,R,e)}function pn(ae){if(vf(ae,_n)){let rt=ir(ae.name,ae.initializer),Ot=$e(ae.name,R,Mm),Ke=$e(ae.initializer,oe=>Z(oe,rt),ot);return t.updateVariableDeclaration(ae,Ot,void 0,void 0,Ke)}return xn(ae,R,e)}function An(ae){if(vf(ae,_n)){let rt=ir(ae.name,ae.initializer),Ot=$e(ae.propertyName,R,Ys),Ke=$e(ae.name,R,Mm),oe=$e(ae.initializer,pe=>Z(pe,rt),ot);return t.updateBindingElement(ae,void 0,Ot,Ke,oe)}return xn(ae,R,e)}function Kn(ae){if(rs(ae)||fu(ae))return Se(ae);if(Pu(ae)&&d&&g){let rt=Vs(ae)?$e(ae.argumentExpression,R,ot):Re(ae.name)?t.createStringLiteralFromNode(ae.name):void 0;if(rt){let Ot=t.createTempVariable(void 0),Ke=t.createAssignmentTargetWrapper(Ot,t.createReflectSetCall(g,rt,Ot,d));return Ir(Ke,ae),it(Ke,ae),Ke}}return xn(ae,R,e)}function hi(ae){if(Iu(ae,!0)){let rt=Kn(ae.left),Ot;if(vf(ae,_n)){let Ke=ir(ae.left,ae.right);Ot=$e(ae.right,oe=>Z(oe,Ke),ot)}else Ot=$e(ae.right,R,ot);return t.updateBinaryExpression(ae,rt,ae.operatorToken,Ot)}else return Kn(ae)}function ri(ae){if(Ju(ae.expression)){let rt=Kn(ae.expression);return t.updateSpreadElement(ae,rt)}return xn(ae,R,e)}function vn(ae){return L.assertNode(ae,ww),Km(ae)?ri(ae):ol(ae)?xn(ae,R,e):hi(ae)}function Ht(ae){let rt=$e(ae.name,R,Ys);if(Iu(ae.initializer,!0)){let Ot=hi(ae.initializer);return t.updatePropertyAssignment(ae,rt,Ot)}if(Ju(ae.initializer)){let Ot=Kn(ae.initializer);return t.updatePropertyAssignment(ae,rt,Ot)}return xn(ae,R,e)}function En(ae){if(vf(ae,_n)){let rt=ir(ae.name,ae.objectAssignmentInitializer),Ot=$e(ae.name,R,Re),Ke=$e(ae.objectAssignmentInitializer,oe=>Z(oe,rt),ot);return t.updateShorthandPropertyAssignment(ae,Ot,Ke)}return xn(ae,R,e)}function dr(ae){if(Ju(ae.expression)){let rt=Kn(ae.expression);return t.updateSpreadAssignment(ae,rt)}return xn(ae,R,e)}function Cr(ae){return L.assertNode(ae,Dw),VS(ae)?dr(ae):xf(ae)?En(ae):yl(ae)?Ht(ae):xn(ae,R,e)}function Se(ae){if(fu(ae)){let rt=On(ae.elements,vn,ot);return t.updateArrayLiteralExpression(ae,rt)}else{let rt=On(ae.properties,Cr,Og);return t.updateObjectLiteralExpression(ae,rt)}}function at(ae){if(vf(ae,_n)){let rt=t.createStringLiteral(ae.isExportEquals?"":"default"),Ot=On(ae.modifiers,$,Ha),Ke=$e(ae.expression,oe=>Z(oe,rt),ot);return t.updateExportAssignment(ae,Ot,Ke)}return xn(ae,R,e)}function Tt(ae,rt,Ot){let Ke=rt?U:Ot?pe=>Z(pe,Ot):R,oe=$e(ae.expression,Ke,ot);return t.updateParenthesizedExpression(ae,oe)}function ve(ae,rt,Ot){let Ke=rt?U:Ot?pe=>Z(pe,Ot):R,oe=$e(ae.expression,Ke,ot);return t.updatePartiallyEmittedExpression(ae,oe)}function nt(ae){return vt(m)&&(ud(ae)?(m.push(ae.expression),ae=t.updateParenthesizedExpression(ae,t.inlineExpressions(m))):(m.push(ae),ae=t.inlineExpressions(m)),m=void 0),ae}function ce(ae){if(!ae)return;let rt=[];return si(rt,on(ae.decorators,Q)),rt}function Q(ae){let rt=$e(ae.expression,R,ot);return Jn(rt,3072),rt}function ue(ae,rt,Ot,Ke,oe,pe,z){let Te=t.createFunctionExpression(Ot,Ke,void 0,void 0,pe,void 0,z??t.createBlock([]));Ir(Te,ae),Ho(Te,$y(ae)),Jn(Te,3072);let j=oe==="get"||oe==="set"?oe:void 0,yt=t.createStringLiteralFromNode(rt,void 0),lt=r().createSetFunctionNameHelper(Te,yt,j),Qe=t.createPropertyAssignment(t.createIdentifier(oe),lt);return Ir(Qe,ae),Ho(Qe,$y(ae)),Jn(Qe,3072),Qe}function G(ae,rt){return t.createObjectLiteralExpression([ue(ae,ae.name,rt,ae.asteriskToken,"value",On(ae.parameters,R,ha),$e(ae.body,R,Va))])}function Oe(ae,rt){return t.createObjectLiteralExpression([ue(ae,ae.name,rt,void 0,"get",[],$e(ae.body,R,Va))])}function je(ae,rt){return t.createObjectLiteralExpression([ue(ae,ae.name,rt,void 0,"set",On(ae.parameters,R,ha),$e(ae.body,R,Va))])}function Ge(ae,rt){return t.createObjectLiteralExpression([ue(ae,ae.name,rt,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ae.name)))])),ue(ae,ae.name,rt,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(ae.name)),t.createIdentifier("value")))]))])}function kt(ae,rt,Ot){return ae=On(ae,Ke=>LS(Ke)?Ke:void 0,Ha),t.createGetAccessorDeclaration(ae,rt,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(Ot,t.createIdentifier("value")))]))}function Kt(ae,rt,Ot){return ae=On(ae,Ke=>LS(Ke)?Ke:void 0,Ha),t.createGetAccessorDeclaration(ae,rt,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Ot,t.createIdentifier("get")),t.createThis(),[]))]))}function ln(ae,rt,Ot){return ae=On(ae,Ke=>LS(Ke)?Ke:void 0,Ha),t.createSetAccessorDeclaration(ae,rt,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(Ot,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function ir(ae,rt){let Ot=ec(rt,Yr);return Ot&&!Ot.name&&Mr(Ot,1024)?t.createStringLiteral("default"):t.createStringLiteralFromNode(ae)}}var lMe=gt({"src/compiler/transformers/esDecorators.ts"(){"use strict";fa()}});function ape(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),f=e.getCompilerOptions(),d=Do(f),g,m=0,v,S,x,A=[],w=0,C=e.onEmitNode,P=e.onSubstituteNode;return e.onEmitNode=kn,e.onSubstituteNode=_n,y_(e,F);function F(pt){if(pt.isDeclarationFile)return pt;B(1,!1),B(2,!fH(pt,f));let nn=xn(pt,$,e);return Bg(nn,e.readEmitHelpers()),nn}function B(pt,nn){w=nn?w|pt:w&~pt}function q(pt){return(w&pt)!==0}function W(){return!q(1)}function Y(){return q(2)}function R(pt,nn,Dt){let pn=pt&~w;if(pn){B(pn,!0);let An=nn(Dt);return B(pn,!1),An}return nn(Dt)}function ie(pt){return xn(pt,$,e)}function $(pt){if(!(pt.transformFlags&256))return pt;switch(pt.kind){case 132:return;case 220:return ge(pt);case 171:return R(3,Ve,pt);case 259:return R(3,Pe,pt);case 215:return R(3,Ce,pt);case 216:return R(1,Ie,pt);case 208:return S&&br(pt)&&pt.expression.kind===106&&S.add(pt.name.escapedText),xn(pt,$,e);case 209:return S&&pt.expression.kind===106&&(x=!0),xn(pt,$,e);case 174:return R(3,we,pt);case 175:return R(3,ke,pt);case 173:return R(3,X,pt);case 260:case 228:return R(3,ie,pt);default:return xn(pt,$,e)}}function fe(pt){if(vce(pt))switch(pt.kind){case 240:return U(pt);case 245:return _e(pt);case 246:return re(pt);case 247:return le(pt);case 295:return Z(pt);case 238:case 252:case 266:case 292:case 293:case 255:case 243:case 244:case 242:case 251:case 253:return xn(pt,fe,e);default:return L.assertNever(pt,"Unhandled node.")}return $(pt)}function Z(pt){let nn=new Set;Be(pt.variableDeclaration,nn);let Dt;if(nn.forEach((pn,An)=>{v.has(An)&&(Dt||(Dt=new Set(v)),Dt.delete(An))}),Dt){let pn=v;v=Dt;let An=xn(pt,fe,e);return v=pn,An}else return xn(pt,fe,e)}function U(pt){if(Ne(pt.declarationList)){let nn=Le(pt.declarationList,!1);return nn?t.createExpressionStatement(nn):void 0}return xn(pt,$,e)}function re(pt){return t.updateForInStatement(pt,Ne(pt.initializer)?Le(pt.initializer,!0):L.checkDefined($e(pt.initializer,$,pp)),L.checkDefined($e(pt.expression,$,ot)),jf(pt.statement,fe,e))}function le(pt){return t.updateForOfStatement(pt,$e(pt.awaitModifier,$,Dz),Ne(pt.initializer)?Le(pt.initializer,!0):L.checkDefined($e(pt.initializer,$,pp)),L.checkDefined($e(pt.expression,$,ot)),jf(pt.statement,fe,e))}function _e(pt){let nn=pt.initializer;return t.updateForStatement(pt,Ne(nn)?Le(nn,!1):$e(pt.initializer,$,pp),$e(pt.condition,$,ot),$e(pt.incrementor,$,ot),jf(pt.statement,fe,e))}function ge(pt){return W()?xn(pt,$,e):Ir(it(t.createYieldExpression(void 0,$e(pt.expression,$,ot)),pt),pt)}function X(pt){return t.updateConstructorDeclaration(pt,On(pt.modifiers,$,Ha),Sc(pt.parameters,$,e),We(pt))}function Ve(pt){return t.updateMethodDeclaration(pt,On(pt.modifiers,$,Ns),pt.asteriskToken,pt.name,void 0,void 0,Sc(pt.parameters,$,e),void 0,pl(pt)&2?qe(pt):We(pt))}function we(pt){return t.updateGetAccessorDeclaration(pt,On(pt.modifiers,$,Ns),pt.name,Sc(pt.parameters,$,e),void 0,We(pt))}function ke(pt){return t.updateSetAccessorDeclaration(pt,On(pt.modifiers,$,Ns),pt.name,Sc(pt.parameters,$,e),We(pt))}function Pe(pt){return t.updateFunctionDeclaration(pt,On(pt.modifiers,$,Ns),pt.asteriskToken,pt.name,void 0,Sc(pt.parameters,$,e),void 0,pl(pt)&2?qe(pt):Zd(pt.body,$,e))}function Ce(pt){return t.updateFunctionExpression(pt,On(pt.modifiers,$,Ha),pt.asteriskToken,pt.name,void 0,Sc(pt.parameters,$,e),void 0,pl(pt)&2?qe(pt):Zd(pt.body,$,e))}function Ie(pt){return t.updateArrowFunction(pt,On(pt.modifiers,$,Ha),void 0,Sc(pt.parameters,$,e),void 0,pt.equalsGreaterThanToken,pl(pt)&2?qe(pt):Zd(pt.body,$,e))}function Be({name:pt},nn){if(Re(pt))nn.add(pt.escapedText);else for(let Dt of pt.elements)ol(Dt)||Be(Dt,nn)}function Ne(pt){return!!pt&&pu(pt)&&!(pt.flags&3)&&pt.declarations.some(Rt)}function Le(pt,nn){Ye(pt);let Dt=qI(pt);return Dt.length===0?nn?$e(t.converters.convertToAssignmentElementTarget(pt.declarations[0].name),$,ot):void 0:t.inlineExpressions(on(Dt,ct))}function Ye(pt){mn(pt.declarations,_t)}function _t({name:pt}){if(Re(pt))s(pt);else for(let nn of pt.elements)ol(nn)||_t(nn)}function ct(pt){let nn=Ho(t.createAssignment(t.converters.convertToAssignmentElementTarget(pt.name),pt.initializer),pt);return L.checkDefined($e(nn,$,ot))}function Rt({name:pt}){if(Re(pt))return v.has(pt.escapedText);for(let nn of pt.elements)if(!ol(nn)&&Rt(nn))return!0;return!1}function We(pt){L.assertIsDefined(pt.body);let nn=S,Dt=x;S=new Set,x=!1;let pn=Zd(pt.body,$,e),An=ec(pt,Ds);if(d>=2&&l.getNodeCheckFlags(pt)&384&&(pl(An)&3)!==3){if(tn(),S.size){let hi=SF(t,l,pt,S);A[zo(hi)]=!0;let ri=pn.statements.slice();em(ri,[hi]),pn=t.updateBlock(pn,ri)}x&&(l.getNodeCheckFlags(pt)&256?xS(pn,sO):l.getNodeCheckFlags(pt)&128&&xS(pn,oO))}return S=nn,x=Dt,pn}function qe(pt){i();let Dt=ec(pt,Ia).type,pn=d<2?Qt(Dt):void 0,An=pt.kind===216,Kn=(l.getNodeCheckFlags(pt)&512)!==0,hi=v;v=new Set;for(let En of pt.parameters)Be(En,v);let ri=S,vn=x;An||(S=new Set,x=!1);let Ht;if(An){let En=r().createAwaiterHelper(Y(),Kn,pn,zt(pt.body)),dr=o();if(vt(dr)){let Cr=t.converters.convertToFunctionBlock(En);Ht=t.updateBlock(Cr,it(t.createNodeArray(Qi(dr,Cr.statements)),Cr.statements))}else Ht=En}else{let En=[],dr=t.copyPrologue(pt.body.statements,En,!1,$);En.push(t.createReturnStatement(r().createAwaiterHelper(Y(),Kn,pn,zt(pt.body,dr)))),em(En,o());let Cr=d>=2&&l.getNodeCheckFlags(pt)&384;if(Cr&&(tn(),S.size)){let at=SF(t,l,pt,S);A[zo(at)]=!0,em(En,[at])}let Se=t.createBlock(En,!0);it(Se,pt.body),Cr&&x&&(l.getNodeCheckFlags(pt)&256?xS(Se,sO):l.getNodeCheckFlags(pt)&128&&xS(Se,oO)),Ht=Se}return v=hi,An||(S=ri,x=vn),Ht}function zt(pt,nn){return Va(pt)?t.updateBlock(pt,On(pt.statements,fe,ca,nn)):t.converters.convertToFunctionBlock(L.checkDefined($e(pt,fe,u6)))}function Qt(pt){let nn=pt&&Jw(pt);if(nn&&Cd(nn)){let Dt=l.getTypeReferenceSerializationKind(nn);if(Dt===1||Dt===0)return nn}}function tn(){g&1||(g|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function kn(pt,nn,Dt){if(g&1&&Pi(nn)){let pn=l.getNodeCheckFlags(nn)&384;if(pn!==m){let An=m;m=pn,C(pt,nn,Dt),m=An;return}}else if(g&&A[zo(nn)]){let pn=m;m=0,C(pt,nn,Dt),m=pn;return}C(pt,nn,Dt)}function _n(pt,nn){return nn=P(pt,nn),pt===1&&m?Gt(nn):nn}function Gt(pt){switch(pt.kind){case 208:return $n(pt);case 209:return ui(pt);case 210:return Ni(pt)}return pt}function $n(pt){return pt.expression.kind===106?it(t.createPropertyAccessExpression(t.createUniqueName("_super",48),pt.name),pt):pt}function ui(pt){return pt.expression.kind===106?gr(pt.argumentExpression,pt):pt}function Ni(pt){let nn=pt.expression;if(Pu(nn)){let Dt=br(nn)?$n(nn):ui(nn);return t.createCallExpression(t.createPropertyAccessExpression(Dt,"call"),void 0,[t.createThis(),...pt.arguments])}return pt}function Pi(pt){let nn=pt.kind;return nn===260||nn===173||nn===171||nn===174||nn===175}function gr(pt,nn){return m&256?it(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),"value"),nn):it(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[pt]),nn)}}function SF(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,f)=>{let d=Gi(f),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Jn(e.createPropertyAccessExpression(Jn(e.createSuper(),8),d),8)))),o&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(Jn(e.createPropertyAccessExpression(Jn(e.createSuper(),8),d),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var uMe=gt({"src/compiler/transformers/es2017.ts"(){"use strict";fa()}});function ope(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),f=e.getCompilerOptions(),d=Do(f),g=e.onEmitNode;e.onEmitNode=En;let m=e.onSubstituteNode;e.onSubstituteNode=dr;let v=!1,S,x,A,w=0,C=0,P,F,B,q,W=[];return y_(e,fe);function Y(ce,Q){return C!==(C&~ce|Q)}function R(ce,Q){let ue=C;return C=(C&~ce|Q)&3,ue}function ie(ce){C=ce}function $(ce){F=Sn(F,t.createVariableDeclaration(ce))}function fe(ce){if(ce.isDeclarationFile)return ce;P=ce;let Q=Ne(ce);return Bg(Q,e.readEmitHelpers()),P=void 0,F=void 0,Q}function Z(ce){return ge(ce,!1)}function U(ce){return ge(ce,!0)}function re(ce){if(ce.kind!==132)return ce}function le(ce,Q,ue,G){if(Y(ue,G)){let Oe=R(ue,G),je=ce(Q);return ie(Oe),je}return ce(Q)}function _e(ce){return xn(ce,Z,e)}function ge(ce,Q){if(!(ce.transformFlags&128))return ce;switch(ce.kind){case 220:return X(ce);case 226:return Ve(ce);case 250:return we(ce);case 253:return ke(ce);case 207:return Ce(ce);case 223:return Ye(ce,Q);case 357:return _t(ce,Q);case 295:return ct(ce);case 240:return Rt(ce);case 257:return We(ce);case 243:case 244:case 246:return le(_e,ce,0,2);case 247:return tn(ce,void 0);case 245:return le(zt,ce,0,2);case 219:return Qt(ce);case 173:return le(gr,ce,2,1);case 171:return le(Dt,ce,2,1);case 174:return le(pt,ce,2,1);case 175:return le(nn,ce,2,1);case 259:return le(pn,ce,2,1);case 215:return le(Kn,ce,2,1);case 216:return le(An,ce,2,0);case 166:return Ni(ce);case 241:return Ie(ce);case 214:return Be(ce,Q);case 212:return Le(ce);case 208:return B&&br(ce)&&ce.expression.kind===106&&B.add(ce.name.escapedText),xn(ce,Z,e);case 209:return B&&ce.expression.kind===106&&(q=!0),xn(ce,Z,e);case 260:case 228:return le(_e,ce,2,1);default:return xn(ce,Z,e)}}function X(ce){return x&2&&x&1?Ir(it(t.createYieldExpression(void 0,r().createAwaitHelper($e(ce.expression,Z,ot))),ce),ce):xn(ce,Z,e)}function Ve(ce){if(x&2&&x&1){if(ce.asteriskToken){let Q=$e(L.checkDefined(ce.expression),Z,ot);return Ir(it(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(ce,ce.asteriskToken,it(r().createAsyncDelegatorHelper(it(r().createAsyncValuesHelper(Q),Q)),Q)))),ce),ce)}return Ir(it(t.createYieldExpression(void 0,Gt(ce.expression?$e(ce.expression,Z,ot):t.createVoidZero())),ce),ce)}return xn(ce,Z,e)}function we(ce){return x&2&&x&1?t.updateReturnStatement(ce,Gt(ce.expression?$e(ce.expression,Z,ot):t.createVoidZero())):xn(ce,Z,e)}function ke(ce){if(x&2){let Q=xH(ce);return Q.kind===247&&Q.awaitModifier?tn(Q,ce):t.restoreEnclosingLabel($e(Q,Z,ca,t.liftToBlock),ce)}return xn(ce,Z,e)}function Pe(ce){let Q,ue=[];for(let G of ce)if(G.kind===301){Q&&(ue.push(t.createObjectLiteralExpression(Q)),Q=void 0);let Oe=G.expression;ue.push($e(Oe,Z,ot))}else Q=Sn(Q,G.kind===299?t.createPropertyAssignment(G.name,$e(G.initializer,Z,ot)):$e(G,Z,Og));return Q&&ue.push(t.createObjectLiteralExpression(Q)),ue}function Ce(ce){if(ce.transformFlags&65536){let Q=Pe(ce.properties);Q.length&&Q[0].kind!==207&&Q.unshift(t.createObjectLiteralExpression());let ue=Q[0];if(Q.length>1){for(let G=1;G<Q.length;G++)ue=r().createAssignHelper([ue,Q[G]]);return ue}else return r().createAssignHelper(Q)}return xn(ce,Z,e)}function Ie(ce){return xn(ce,U,e)}function Be(ce,Q){return xn(ce,Q?U:Z,e)}function Ne(ce){let Q=R(2,fH(ce,f)?0:1);v=!1;let ue=xn(ce,Z,e),G=Qi(ue.statements,F&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(F))]),Oe=t.updateSourceFile(ue,it(t.createNodeArray(G),ce.statements));return ie(Q),Oe}function Le(ce){return OK(e,ce,Z,P,$,0)}function Ye(ce,Q){return Fg(ce)&&IO(ce.left)?KT(ce,Z,e,1,!Q):ce.operatorToken.kind===27?t.updateBinaryExpression(ce,$e(ce.left,U,ot),ce.operatorToken,$e(ce.right,Q?U:Z,ot)):xn(ce,Z,e)}function _t(ce,Q){if(Q)return xn(ce,U,e);let ue;for(let Oe=0;Oe<ce.elements.length;Oe++){let je=ce.elements[Oe],Ge=$e(je,Oe<ce.elements.length-1?U:Z,ot);(ue||Ge!==je)&&(ue||(ue=ce.elements.slice(0,Oe)),ue.push(Ge))}let G=ue?it(t.createNodeArray(ue),ce.elements):ce.elements;return t.updateCommaListExpression(ce,G)}function ct(ce){if(ce.variableDeclaration&&La(ce.variableDeclaration.name)&&ce.variableDeclaration.name.transformFlags&65536){let Q=t.getGeneratedNameForNode(ce.variableDeclaration.name),ue=t.updateVariableDeclaration(ce.variableDeclaration,ce.variableDeclaration.name,void 0,void 0,Q),G=eE(ue,Z,e,1),Oe=$e(ce.block,Z,Va);return vt(G)&&(Oe=t.updateBlock(Oe,[t.createVariableStatement(void 0,G),...Oe.statements])),t.updateCatchClause(ce,t.updateVariableDeclaration(ce.variableDeclaration,Q,void 0,void 0,void 0),Oe)}return xn(ce,Z,e)}function Rt(ce){if(Mr(ce,1)){let Q=v;v=!0;let ue=xn(ce,Z,e);return v=Q,ue}return xn(ce,Z,e)}function We(ce){if(v){let Q=v;v=!1;let ue=qe(ce,!0);return v=Q,ue}return qe(ce,!1)}function qe(ce,Q){return La(ce.name)&&ce.name.transformFlags&65536?eE(ce,Z,e,1,void 0,Q):xn(ce,Z,e)}function zt(ce){return t.updateForStatement(ce,$e(ce.initializer,U,pp),$e(ce.condition,Z,ot),$e(ce.incrementor,U,ot),jf(ce.statement,Z,e))}function Qt(ce){return xn(ce,U,e)}function tn(ce,Q){let ue=R(0,2);(ce.initializer.transformFlags&65536||vI(ce.initializer)&&IO(ce.initializer))&&(ce=kn(ce));let G=ce.awaitModifier?$n(ce,Q,ue):t.restoreEnclosingLabel(xn(ce,Z,e),Q);return ie(ue),G}function kn(ce){let Q=vs(ce.initializer);if(pu(Q)||vI(Q)){let ue,G,Oe=t.createTempVariable(void 0),je=[Qz(t,Q,Oe)];return Va(ce.statement)?(si(je,ce.statement.statements),ue=ce.statement,G=ce.statement.statements):ce.statement&&(Sn(je,ce.statement),ue=ce.statement,G=ce.statement),t.updateForOfStatement(ce,ce.awaitModifier,it(t.createVariableDeclarationList([it(t.createVariableDeclaration(Oe),ce.initializer)],1),ce.initializer),ce.expression,it(t.createBlock(it(t.createNodeArray(je),G),!0),ue))}return ce}function _n(ce,Q,ue){let G=t.createTempVariable(s),Oe=t.createAssignment(G,Q),je=t.createExpressionStatement(Oe);Ho(je,ce.expression);let Ge=t.createAssignment(ue,t.createFalse()),kt=t.createExpressionStatement(Ge);Ho(kt,ce.expression);let Kt=t.createAssignment(ue,t.createTrue()),ln=t.createExpressionStatement(Kt);Ho(kt,ce.expression);let ir=[],ae=Qz(t,ce.initializer,G);ir.push($e(ae,Z,ca));let rt,Ot,Ke=jf(ce.statement,Z,e);Va(Ke)?(si(ir,Ke.statements),rt=Ke,Ot=Ke.statements):ir.push(Ke);let oe=Jn(it(t.createBlock(it(t.createNodeArray(ir),Ot),!0),rt),864);return t.createBlock([je,kt,t.createTryStatement(oe,void 0,t.createBlock([ln]))])}function Gt(ce){return x&1?t.createYieldExpression(void 0,r().createAwaitHelper(ce)):t.createAwaitExpression(ce)}function $n(ce,Q,ue){let G=$e(ce.expression,Z,ot),Oe=Re(G)?t.getGeneratedNameForNode(G):t.createTempVariable(void 0),je=Re(G)?t.getGeneratedNameForNode(Oe):t.createTempVariable(void 0),Ge=t.createTempVariable(void 0),kt=t.createTempVariable(s),Kt=t.createUniqueName("e"),ln=t.getGeneratedNameForNode(Kt),ir=t.createTempVariable(void 0),ae=it(r().createAsyncValuesHelper(G),ce.expression),rt=t.createCallExpression(t.createPropertyAccessExpression(Oe,"next"),void 0,[]),Ot=t.createPropertyAccessExpression(je,"done"),Ke=t.createPropertyAccessExpression(je,"value"),oe=t.createFunctionCallCall(ir,Oe,[]);s(Kt),s(ir);let pe=ue&2?t.inlineExpressions([t.createAssignment(Kt,t.createVoidZero()),ae]):ae,z=Jn(it(t.createForStatement(Jn(it(t.createVariableDeclarationList([t.createVariableDeclaration(Ge,void 0,void 0,t.createTrue()),it(t.createVariableDeclaration(Oe,void 0,void 0,pe),ce.expression),t.createVariableDeclaration(je)]),ce.expression),4194304),t.inlineExpressions([t.createAssignment(je,Gt(rt)),t.createAssignment(kt,Ot),t.createLogicalNot(kt)]),void 0,_n(ce,Ke,Ge)),ce),512);return Ir(z,ce),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(z,Q)]),t.createCatchClause(t.createVariableDeclaration(ln),Jn(t.createBlock([t.createExpressionStatement(t.createAssignment(Kt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",ln)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([Jn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(Ge),t.createLogicalNot(kt)),t.createAssignment(ir,t.createPropertyAccessExpression(Oe,"return"))),t.createExpressionStatement(Gt(oe))),1)]),void 0,Jn(t.createBlock([Jn(t.createIfStatement(Kt,t.createThrowStatement(t.createPropertyAccessExpression(Kt,"error"))),1)]),1))]))}function ui(ce){return L.assertNode(ce,ha),Ni(ce)}function Ni(ce){return A?.has(ce)?t.updateParameterDeclaration(ce,void 0,ce.dotDotDotToken,La(ce.name)?t.getGeneratedNameForNode(ce):ce.name,void 0,void 0,void 0):ce.transformFlags&65536?t.updateParameterDeclaration(ce,void 0,ce.dotDotDotToken,t.getGeneratedNameForNode(ce),void 0,void 0,$e(ce.initializer,Z,ot)):xn(ce,Z,e)}function Pi(ce){let Q;for(let ue of ce.parameters)Q?Q.add(ue):ue.transformFlags&65536&&(Q=new Set);return Q}function gr(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateConstructorDeclaration(ce,ce.modifiers,Sc(ce.parameters,ui,e),ri(ce));return x=Q,A=ue,G}function pt(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateGetAccessorDeclaration(ce,ce.modifiers,$e(ce.name,Z,Ys),Sc(ce.parameters,ui,e),void 0,ri(ce));return x=Q,A=ue,G}function nn(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateSetAccessorDeclaration(ce,ce.modifiers,$e(ce.name,Z,Ys),Sc(ce.parameters,ui,e),ri(ce));return x=Q,A=ue,G}function Dt(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateMethodDeclaration(ce,x&1?On(ce.modifiers,re,Ns):ce.modifiers,x&2?void 0:ce.asteriskToken,$e(ce.name,Z,Ys),$e(void 0,Z,ev),void 0,Sc(ce.parameters,ui,e),void 0,x&2&&x&1?hi(ce):ri(ce));return x=Q,A=ue,G}function pn(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateFunctionDeclaration(ce,x&1?On(ce.modifiers,re,Ha):ce.modifiers,x&2?void 0:ce.asteriskToken,ce.name,void 0,Sc(ce.parameters,ui,e),void 0,x&2&&x&1?hi(ce):ri(ce));return x=Q,A=ue,G}function An(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateArrowFunction(ce,ce.modifiers,void 0,Sc(ce.parameters,ui,e),void 0,ce.equalsGreaterThanToken,ri(ce));return x=Q,A=ue,G}function Kn(ce){let Q=x,ue=A;x=pl(ce),A=Pi(ce);let G=t.updateFunctionExpression(ce,x&1?On(ce.modifiers,re,Ha):ce.modifiers,x&2?void 0:ce.asteriskToken,ce.name,void 0,Sc(ce.parameters,ui,e),void 0,x&2&&x&1?hi(ce):ri(ce));return x=Q,A=ue,G}function hi(ce){i();let Q=[],ue=t.copyPrologue(ce.body.statements,Q,!1,Z);vn(Q,ce);let G=B,Oe=q;B=new Set,q=!1;let je=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(41),ce.name&&t.getGeneratedNameForNode(ce.name),void 0,[],void 0,t.updateBlock(ce.body,mF(ce.body.statements,Z,e,ue))),!!(C&1))),Ge=d>=2&&l.getNodeCheckFlags(ce)&384;if(Ge){Ht();let Kt=SF(t,l,ce,B);W[zo(Kt)]=!0,em(Q,[Kt])}Q.push(je),em(Q,o());let kt=t.updateBlock(ce.body,Q);return Ge&&q&&(l.getNodeCheckFlags(ce)&256?xS(kt,sO):l.getNodeCheckFlags(ce)&128&&xS(kt,oO)),B=G,q=Oe,kt}function ri(ce){var Q;i();let ue=0,G=[],Oe=(Q=$e(ce.body,Z,u6))!=null?Q:t.createBlock([]);Va(Oe)&&(ue=t.copyPrologue(Oe.statements,G,!1,Z)),si(G,vn(void 0,ce));let je=o();if(ue>0||vt(G)||vt(je)){let Ge=t.converters.convertToFunctionBlock(Oe,!0);return em(G,je),si(G,Ge.statements.slice(ue)),t.updateBlock(Ge,it(t.createNodeArray(G),Ge.statements))}return Oe}function vn(ce,Q){let ue=!1;for(let G of Q.parameters)if(ue){if(La(G.name)){if(G.name.elements.length>0){let Oe=eE(G,Z,e,0,t.getGeneratedNameForNode(G));if(vt(Oe)){let je=t.createVariableDeclarationList(Oe),Ge=t.createVariableStatement(void 0,je);Jn(Ge,2097152),ce=Sn(ce,Ge)}}else if(G.initializer){let Oe=t.getGeneratedNameForNode(G),je=$e(G.initializer,Z,ot),Ge=t.createAssignment(Oe,je),kt=t.createExpressionStatement(Ge);Jn(kt,2097152),ce=Sn(ce,kt)}}else if(G.initializer){let Oe=t.cloneNode(G.name);it(Oe,G.name),Jn(Oe,96);let je=$e(G.initializer,Z,ot);bp(je,3168);let Ge=t.createAssignment(Oe,je);it(Ge,G),Jn(Ge,3072);let kt=t.createBlock([t.createExpressionStatement(Ge)]);it(kt,G),Jn(kt,3905);let Kt=t.createTypeCheck(t.cloneNode(G.name),"undefined"),ln=t.createIfStatement(Kt,kt);mu(ln),it(ln,G),Jn(ln,2101056),ce=Sn(ce,ln)}}else if(G.transformFlags&65536){ue=!0;let Oe=eE(G,Z,e,1,t.getGeneratedNameForNode(G),!1,!0);if(vt(Oe)){let je=t.createVariableDeclarationList(Oe),Ge=t.createVariableStatement(void 0,je);Jn(Ge,2097152),ce=Sn(ce,Ge)}}return ce}function Ht(){S&1||(S|=1,e.enableSubstitution(210),e.enableSubstitution(208),e.enableSubstitution(209),e.enableEmitNotification(260),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(240))}function En(ce,Q,ue){if(S&1&&ve(Q)){let G=l.getNodeCheckFlags(Q)&384;if(G!==w){let Oe=w;w=G,g(ce,Q,ue),w=Oe;return}}else if(S&&W[zo(Q)]){let G=w;w=0,g(ce,Q,ue),w=G;return}g(ce,Q,ue)}function dr(ce,Q){return Q=m(ce,Q),ce===1&&w?Cr(Q):Q}function Cr(ce){switch(ce.kind){case 208:return Se(ce);case 209:return at(ce);case 210:return Tt(ce)}return ce}function Se(ce){return ce.expression.kind===106?it(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ce.name),ce):ce}function at(ce){return ce.expression.kind===106?nt(ce.argumentExpression,ce):ce}function Tt(ce){let Q=ce.expression;if(Pu(Q)){let ue=br(Q)?Se(Q):at(Q);return t.createCallExpression(t.createPropertyAccessExpression(ue,"call"),void 0,[t.createThis(),...ce.arguments])}return ce}function ve(ce){let Q=ce.kind;return Q===260||Q===173||Q===171||Q===174||Q===175}function nt(ce,Q){return w&256?it(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ce]),"value"),Q):it(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ce]),Q)}}var dMe=gt({"src/compiler/transformers/es2018.ts"(){"use strict";fa()}});function spe(e){let t=e.factory;return y_(e,r);function r(s){return s.isDeclarationFile?s:xn(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 295:return o(s);default:return xn(s,i,e)}}function o(s){return s.variableDeclaration?xn(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),$e(s.block,i,Va))}}var fMe=gt({"src/compiler/transformers/es2019.ts"(){"use strict";fa()}});function cpe(e){let{factory:t,hoistVariableDeclaration:r}=e;return y_(e,i);function i(A){return A.isDeclarationFile?A:xn(A,o,e)}function o(A){if(!(A.transformFlags&32))return A;switch(A.kind){case 210:{let w=d(A,!1);return L.assertNotNode(w,MS),w}case 208:case 209:if(Jl(A)){let w=m(A,!1,!1);return L.assertNotNode(w,MS),w}return xn(A,o,e);case 223:return A.operatorToken.kind===60?S(A):xn(A,o,e);case 217:return x(A);default:return xn(A,o,e)}}function s(A){L.assertNotNode(A,i6);let w=[A];for(;!A.questionDotToken&&!PT(A);)A=Ga(a_(A.expression),Jl),L.assertNotNode(A,i6),w.unshift(A);return{expression:A.expression,chain:w}}function l(A,w,C){let P=g(A.expression,w,C);return MS(P)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,P.expression),P.thisArg):t.updateParenthesizedExpression(A,P)}function f(A,w,C){if(Jl(A))return m(A,w,C);let P=$e(A.expression,o,ot);L.assertNotNode(P,MS);let F;return w&&(Z0(P)?F=P:(F=t.createTempVariable(r),P=t.createAssignment(F,P))),P=A.kind===208?t.updatePropertyAccessExpression(A,P,$e(A.name,o,Re)):t.updateElementAccessExpression(A,P,$e(A.argumentExpression,o,ot)),F?t.createSyntheticReferenceExpression(P,F):P}function d(A,w){if(Jl(A))return m(A,w,!1);if(ud(A.expression)&&Jl(vs(A.expression))){let C=l(A.expression,!0,!1),P=On(A.arguments,o,ot);return MS(C)?it(t.createFunctionCallCall(C.expression,C.thisArg,P),A):t.updateCallExpression(A,C,void 0,P)}return xn(A,o,e)}function g(A,w,C){switch(A.kind){case 214:return l(A,w,C);case 208:case 209:return f(A,w,C);case 210:return d(A,w);default:return $e(A,o,ot)}}function m(A,w,C){let{expression:P,chain:F}=s(A),B=g(a_(P),dT(F[0]),!1),q=MS(B)?B.thisArg:void 0,W=MS(B)?B.expression:B,Y=t.restoreOuterExpressions(P,W,8);Z0(W)||(W=t.createTempVariable(r),Y=t.createAssignment(W,Y));let R=W,ie;for(let fe=0;fe<F.length;fe++){let Z=F[fe];switch(Z.kind){case 208:case 209:fe===F.length-1&&w&&(Z0(R)?ie=R:(ie=t.createTempVariable(r),R=t.createAssignment(ie,R))),R=Z.kind===208?t.createPropertyAccessExpression(R,$e(Z.name,o,Re)):t.createElementAccessExpression(R,$e(Z.argumentExpression,o,ot));break;case 210:fe===0&&q?(tc(q)||(q=t.cloneNode(q),bp(q,3072)),R=t.createFunctionCallCall(R,q.kind===106?t.createThis():q,On(Z.arguments,o,ot))):R=t.createCallExpression(R,void 0,On(Z.arguments,o,ot));break}Ir(R,Z)}let $=C?t.createConditionalExpression(v(Y,W,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(R)):t.createConditionalExpression(v(Y,W,!0),void 0,t.createVoidZero(),void 0,R);return it($,A),ie?t.createSyntheticReferenceExpression($,ie):$}function v(A,w,C){return t.createBinaryExpression(t.createBinaryExpression(A,t.createToken(C?36:37),t.createNull()),t.createToken(C?56:55),t.createBinaryExpression(w,t.createToken(C?36:37),t.createVoidZero()))}function S(A){let w=$e(A.left,o,ot),C=w;return Z0(w)||(C=t.createTempVariable(r),w=t.createAssignment(C,w)),it(t.createConditionalExpression(v(w,C),void 0,C,void 0,$e(A.right,o,ot)),A)}function x(A){return Jl(vs(A.expression))?Ir(g(A.expression,!1,!0),A):t.updateDeleteExpression(A,$e(A.expression,o,ot))}}var _Me=gt({"src/compiler/transformers/es2020.ts"(){"use strict";fa()}});function lpe(e){let{hoistVariableDeclaration:t,factory:r}=e;return y_(e,i);function i(l){return l.isDeclarationFile?l:xn(l,o,e)}function o(l){return l.transformFlags&16?cW(l)?s(l):xn(l,o,e):l}function s(l){let f=l.operatorToken,d=WL(f.kind),g=vs($e(l.left,o,Ju)),m=g,v=vs($e(l.right,o,ot));if(Us(g)){let S=Z0(g.expression),x=S?g.expression:r.createTempVariable(t),A=S?g.expression:r.createAssignment(x,g.expression);if(br(g))m=r.createPropertyAccessExpression(x,g.name),g=r.createPropertyAccessExpression(A,g.name);else{let w=Z0(g.argumentExpression),C=w?g.argumentExpression:r.createTempVariable(t);m=r.createElementAccessExpression(x,C),g=r.createElementAccessExpression(A,w?g.argumentExpression:r.createAssignment(C,g.argumentExpression))}}return r.createBinaryExpression(g,d,r.createParenthesizedExpression(r.createAssignment(m,v)))}}var pMe=gt({"src/compiler/transformers/es2021.ts"(){"use strict";fa()}});function upe(e){return y_(e,t);function t(i){return i.isDeclarationFile?i:xn(i,r,e)}function r(i){if(!(i.transformFlags&4))return i;switch(i.kind){default:return xn(i,r,e)}}}var mMe=gt({"src/compiler/transformers/esnext.ts"(){"use strict";fa()}});function dpe(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return y_(e,v);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let Le=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=Le,s.filenameDeclaration.name}function f(Le){return i.jsx===5?"jsxDEV":Le?"jsxs":"jsx"}function d(Le){let Ye=f(Le);return m(Ye)}function g(){return m("Fragment")}function m(Le){var Ye,_t;let ct=Le==="createElement"?s.importSpecifier:p4(s.importSpecifier,i),Rt=(_t=(Ye=s.utilizedImplicitRuntimeImports)==null?void 0:Ye.get(ct))==null?void 0:_t.get(Le);if(Rt)return Rt.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let We=s.utilizedImplicitRuntimeImports.get(ct);We||(We=new Map,s.utilizedImplicitRuntimeImports.set(ct,We));let qe=t.createUniqueName(`_${Le}`,112),zt=t.createImportSpecifier(!1,t.createIdentifier(Le),qe);return bue(qe,zt),We.set(Le,zt),qe}function v(Le){if(Le.isDeclarationFile)return Le;o=Le,s={},s.importSpecifier=_4(i,Le);let Ye=xn(Le,S,e);Bg(Ye,e.readEmitHelpers());let _t=Ye.statements;if(s.filenameDeclaration&&(_t=L0(_t.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[ct,Rt]of lo(s.utilizedImplicitRuntimeImports.entries()))if(Lc(Le)){let We=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(lo(Rt.values()))),t.createStringLiteral(ct),void 0);Zy(We,!1),_t=L0(_t.slice(),We)}else if(kd(Le)){let We=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(lo(Rt.values(),qe=>t.createBindingElement(void 0,qe.propertyName,qe.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(ct)]))],2));Zy(We,!1),_t=L0(_t.slice(),We)}}return _t!==Ye.statements&&(Ye=t.updateSourceFile(Ye,_t)),s=void 0,Ye}function S(Le){return Le.transformFlags&2?x(Le):Le}function x(Le){switch(Le.kind){case 281:return P(Le,!1);case 282:return F(Le,!1);case 285:return B(Le,!1);case 291:return Ne(Le);default:return xn(Le,S,e)}}function A(Le){switch(Le.kind){case 11:return Ve(Le);case 291:return Ne(Le);case 281:return P(Le,!0);case 282:return F(Le,!0);case 285:return B(Le,!0);default:return L.failBadSyntaxKind(Le)}}function w(Le){let Ye=!1;for(let _t of Le.attributes.properties)if(GT(_t))Ye=!0;else if(Ye&&Sp(_t)&&_t.name.escapedText==="key")return!0;return!1}function C(Le){return s.importSpecifier===void 0||w(Le)}function P(Le,Ye){return(C(Le.openingElement)?ie:Y)(Le.openingElement,Le.children,Ye,Le)}function F(Le,Ye){return(C(Le)?ie:Y)(Le,void 0,Ye,Le)}function B(Le,Ye){return(s.importSpecifier===void 0?fe:$)(Le.openingFragment,Le.children,Ye,Le)}function q(Le){let Ye=W(Le);return Ye&&t.createObjectLiteralExpression([Ye])}function W(Le){let Ye=bR(Le);if(Fn(Ye)===1&&!Ye[0].dotDotDotToken){let ct=A(Ye[0]);return ct&&t.createPropertyAssignment("children",ct)}let _t=Zi(Le,A);return Fn(_t)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(_t)):void 0}function Y(Le,Ye,_t,ct){let Rt=Ie(Le),We=Ye&&Ye.length?W(Ye):void 0,qe=wr(Le.attributes.properties,tn=>!!tn.name&&Re(tn.name)&&tn.name.escapedText==="key"),zt=qe?Pr(Le.attributes.properties,tn=>tn!==qe):Le.attributes.properties,Qt=Fn(zt)?U(zt,We):t.createObjectLiteralExpression(We?[We]:Je);return R(Rt,Qt,qe,Ye||Je,_t,ct)}function R(Le,Ye,_t,ct,Rt,We){var qe;let zt=bR(ct),Qt=Fn(zt)>1||!!((qe=zt[0])!=null&&qe.dotDotDotToken),tn=[Le,Ye];if(_t&&tn.push(X(_t.initializer)),i.jsx===5){let _n=ec(o);if(_n&&Li(_n)){_t===void 0&&tn.push(t.createVoidZero()),tn.push(Qt?t.createTrue():t.createFalse());let Gt=Gs(_n,We.pos);tn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Gt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Gt.character+1))])),tn.push(t.createThis())}}let kn=it(t.createCallExpression(d(Qt),void 0,tn),We);return Rt&&mu(kn),kn}function ie(Le,Ye,_t,ct){let Rt=Ie(Le),We=Le.attributes.properties,qe=Fn(We)?U(We):t.createNull(),zt=s.importSpecifier===void 0?$z(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,Le):m("createElement"),Qt=Que(t,zt,Rt,qe,Zi(Ye,A),ct);return _t&&mu(Qt),Qt}function $(Le,Ye,_t,ct){let Rt;if(Ye&&Ye.length){let We=q(Ye);We&&(Rt=We)}return R(g(),Rt||t.createObjectLiteralExpression([]),void 0,Ye,_t,ct)}function fe(Le,Ye,_t,ct){let Rt=Zue(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Zi(Ye,A),Le,ct);return _t&&mu(Rt),Rt}function Z(Le){return t.createSpreadAssignment(L.checkDefined($e(Le.expression,S,ot)))}function U(Le,Ye){let _t=Do(i);return _t&&_t>=5?t.createObjectLiteralExpression(re(Le,Ye)):le(Le,Ye)}function re(Le,Ye){let _t=t_(c8(Le,GT,(ct,Rt)=>on(ct,We=>Rt?Z(We):ge(We))));return Ye&&_t.push(Ye),_t}function le(Le,Ye){let _t=t_(c8(Le,GT,(ct,Rt)=>Rt?on(ct,_e):t.createObjectLiteralExpression(on(ct,ge))));return GT(Le[0])&&_t.unshift(t.createObjectLiteralExpression()),Ye&&_t.push(t.createObjectLiteralExpression([Ye])),Wp(_t)||r().createAssignHelper(_t)}function _e(Le){return L.checkDefined($e(Le.expression,S,ot))}function ge(Le){let Ye=Be(Le),_t=X(Le.initializer);return t.createPropertyAssignment(Ye,_t)}function X(Le){if(Le===void 0)return t.createTrue();if(Le.kind===10){let Ye=Le.singleQuote!==void 0?Le.singleQuote:!V6(Le,o),_t=t.createStringLiteral(Ce(Le.text)||Le.text,Ye);return it(_t,Le)}return Le.kind===291?Le.expression===void 0?t.createTrue():L.checkDefined($e(Le.expression,S,ot)):Hg(Le)?P(Le,!1):FS(Le)?F(Le,!1):BS(Le)?B(Le,!1):L.failBadSyntaxKind(Le)}function Ve(Le){let Ye=we(Le.text);return Ye===void 0?void 0:t.createStringLiteral(Ye)}function we(Le){let Ye,_t=0,ct=-1;for(let Rt=0;Rt<Le.length;Rt++){let We=Le.charCodeAt(Rt);Wl(We)?(_t!==-1&&ct!==-1&&(Ye=ke(Ye,Le.substr(_t,ct-_t+1))),_t=-1):Yp(We)||(ct=Rt,_t===-1&&(_t=Rt))}return _t!==-1?ke(Ye,Le.substr(_t)):Ye}function ke(Le,Ye){let _t=Pe(Ye);return Le===void 0?_t:Le+" "+_t}function Pe(Le){return Le.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(Ye,_t,ct,Rt,We,qe,zt)=>{if(We)return lI(parseInt(We,10));if(qe)return lI(parseInt(qe,16));{let Qt=fpe.get(zt);return Qt?lI(Qt):Ye}})}function Ce(Le){let Ye=Pe(Le);return Ye===Le?void 0:Ye}function Ie(Le){if(Le.kind===281)return Ie(Le.openingElement);{let Ye=Le.tagName;return Re(Ye)&&GI(Ye.escapedText)?t.createStringLiteral(vr(Ye)):EO(t,Ye)}}function Be(Le){let Ye=Le.name,_t=vr(Ye);return/^[A-Za-z_]\w*$/.test(_t)?Ye:t.createStringLiteral(_t)}function Ne(Le){let Ye=$e(Le.expression,S,ot);return Le.dotDotDotToken?t.createSpreadElement(Ye):Ye}}var fpe,hMe=gt({"src/compiler/transformers/jsx.ts"(){"use strict";fa(),fpe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function _pe(e){let{factory:t,hoistVariableDeclaration:r}=e;return y_(e,i);function i(d){return d.isDeclarationFile?d:xn(d,o,e)}function o(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 223:return s(d);default:return xn(d,o,e)}}function s(d){switch(d.operatorToken.kind){case 67:return l(d);case 42:return f(d);default:return xn(d,o,e)}}function l(d){let g,m,v=$e(d.left,o,ot),S=$e(d.right,o,ot);if(Vs(v)){let x=t.createTempVariable(r),A=t.createTempVariable(r);g=it(t.createElementAccessExpression(it(t.createAssignment(x,v.expression),v.expression),it(t.createAssignment(A,v.argumentExpression),v.argumentExpression)),v),m=it(t.createElementAccessExpression(x,A),v)}else if(br(v)){let x=t.createTempVariable(r);g=it(t.createPropertyAccessExpression(it(t.createAssignment(x,v.expression),v.expression),v.name),v),m=it(t.createPropertyAccessExpression(x,v.name),v)}else g=v,m=v;return it(t.createAssignment(g,it(t.createGlobalMethodCall("Math","pow",[m,S]),d)),d)}function f(d){let g=$e(d.left,o,ot),m=$e(d.right,o,ot);return it(t.createGlobalMethodCall("Math","pow",[g,m]),d)}}var gMe=gt({"src/compiler/transformers/es2016.ts"(){"use strict";fa()}});function ppe(e,t){return{kind:e,expression:t}}function mpe(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=Gu,e.onSubstituteNode=Ws;let v,S,x,A;function w(ee){A=Sn(A,t.createVariableDeclaration(ee))}let C,P;return y_(e,F);function F(ee){if(ee.isDeclarationFile)return ee;v=ee,S=ee.text;let Ze=re(ee);return Bg(Ze,e.readEmitHelpers()),v=void 0,S=void 0,A=void 0,x=0,Ze}function B(ee,Ze){let At=x;return x=(x&~ee|Ze)&32767,At}function q(ee,Ze,At){x=(x&~Ze|At)&-32768|ee}function W(ee){return(x&8192)!==0&&ee.kind===250&&!ee.expression}function Y(ee){return ee.transformFlags&4194304&&(j_(ee)||MT(ee)||Uue(ee)||pO(ee)||hO(ee)||CL(ee)||yO(ee)||mO(ee)||E2(ee)||J0(ee)||Wy(ee,!1)||Va(ee))}function R(ee){return(ee.transformFlags&1024)!==0||C!==void 0||x&8192&&Y(ee)||Wy(ee,!1)&&jr(ee)||(o_(ee)&1)!==0}function ie(ee){return R(ee)?U(ee,!1):ee}function $(ee){return R(ee)?U(ee,!0):ee}function fe(ee){if(R(ee)){let Ze=ec(ee);if(Na(Ze)&&zc(Ze)){let At=B(32670,16449),xt=U(ee,!1);return q(At,98304,0),xt}return U(ee,!1)}return ee}function Z(ee){return ee.kind===106?Hs(!0):ie(ee)}function U(ee,Ze){switch(ee.kind){case 124:return;case 260:return Ce(ee);case 228:return Ie(ee);case 166:return tn(ee);case 259:return Ht(ee);case 216:return ri(ee);case 215:return vn(ee);case 257:return je(ee);case 79:return ke(ee);case 258:return Q(ee);case 252:return le(ee);case 266:return _e(ee);case 238:return Cr(ee,!1);case 249:case 248:return Pe(ee);case 253:return Kt(ee);case 243:case 244:return ae(ee,void 0);case 245:return rt(ee,void 0);case 246:return Ke(ee,void 0);case 247:return oe(ee,void 0);case 241:return Se(ee);case 207:return yt(ee);case 295:return Pc(ee);case 300:return Rs(ee);case 164:return As(ee);case 206:return yc(ee);case 210:return Ql(ee);case 211:return wt(ee);case 214:return at(ee,Ze);case 223:return Tt(ee,Ze);case 357:return ve(ee,Ze);case 14:case 15:case 16:case 17:return ta(ee);case 10:return Go(ee);case 8:return Ka(ee);case 212:return vo(ee);case 225:return ka(ee);case 226:return jt(ee);case 227:return yr(ee);case 106:return Hs(!1);case 108:return Ve(ee);case 233:return Uc(ee);case 171:return ss(ee);case 174:case 175:return qs(ee);case 240:return ce(ee);case 250:return X(ee);case 219:return we(ee);default:return xn(ee,ie,e)}}function re(ee){let Ze=B(8064,64),At=[],xt=[];i();let qt=t.copyPrologue(ee.statements,At,!1,ie);return si(xt,On(ee.statements,ie,ca,qt)),A&&xt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(At,s()),Pi(At,ee),q(Ze,0,0),t.updateSourceFile(ee,it(t.createNodeArray(Qi(At,xt)),ee.statements))}function le(ee){if(C!==void 0){let Ze=C.allowedNonLabeledJumps;C.allowedNonLabeledJumps|=2;let At=xn(ee,ie,e);return C.allowedNonLabeledJumps=Ze,At}return xn(ee,ie,e)}function _e(ee){let Ze=B(7104,0),At=xn(ee,ie,e);return q(Ze,0,0),At}function ge(ee){return Ir(t.createReturnStatement(t.createUniqueName("_this",48)),ee)}function X(ee){return C?(C.nonLocalJumps|=8,W(ee)&&(ee=ge(ee)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),ee.expression?L.checkDefined($e(ee.expression,ie,ot)):t.createVoidZero())]))):W(ee)?ge(ee):xn(ee,ie,e)}function Ve(ee){return x&2&&!(x&16384)&&(x|=65536),C?x&2?(C.containsLexicalThis=!0,ee):C.thisName||(C.thisName=t.createUniqueName("this")):ee}function we(ee){return xn(ee,$,e)}function ke(ee){return C&&d.isArgumentsLocalBinding(ee)?C.argumentsName||(C.argumentsName=t.createUniqueName("arguments")):ee.flags&128?Ir(it(t.createIdentifier(Gi(ee.escapedText)),ee),ee):ee}function Pe(ee){if(C){let Ze=ee.kind===249?2:4;if(!(ee.label&&C.labels&&C.labels.get(vr(ee.label))||!ee.label&&C.allowedNonLabeledJumps&Ze)){let xt,qt=ee.label;qt?ee.kind===249?(xt=`break-${qt.escapedText}`,hc(C,!0,vr(qt),xt)):(xt=`continue-${qt.escapedText}`,hc(C,!1,vr(qt),xt)):ee.kind===249?(C.nonLocalJumps|=2,xt="break"):(C.nonLocalJumps|=4,xt="continue");let Ln=t.createStringLiteral(xt);if(C.loopOutParameters.length){let mr=C.loopOutParameters,Vr;for(let gi=0;gi<mr.length;gi++){let Ea=kc(mr[gi],1);gi===0?Vr=Ea:Vr=t.createBinaryExpression(Vr,27,Ea)}Ln=t.createBinaryExpression(Vr,27,Ln)}return t.createReturnStatement(Ln)}}return xn(ee,ie,e)}function Ce(ee){let Ze=t.createVariableDeclaration(t.getLocalName(ee,!0),void 0,void 0,Be(ee));Ir(Ze,ee);let At=[],xt=t.createVariableStatement(void 0,t.createVariableDeclarationList([Ze]));if(Ir(xt,ee),it(xt,ee),mu(xt),At.push(xt),Mr(ee,1)){let Ln=Mr(ee,1024)?t.createExportDefault(t.getLocalName(ee)):t.createExternalModuleExport(t.getLocalName(ee));Ir(Ln,xt),At.push(Ln)}let qt=Ya(ee);return qt&8388608||(At.push(t.createEndOfDeclarationMarker(ee)),Jn(xt,qt|8388608)),zp(At)}function Ie(ee){return Be(ee)}function Be(ee){ee.name&&$o();let Ze=P0(ee),At=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ze?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,Ne(ee,Ze));Jn(At,Ya(ee)&131072|1048576);let xt=t.createPartiallyEmittedExpression(At);r2(xt,ee.end),Jn(xt,3072);let qt=t.createPartiallyEmittedExpression(xt);r2(qt,xo(S,ee.pos)),Jn(qt,3072);let Ln=t.createParenthesizedExpression(t.createCallExpression(qt,void 0,Ze?[L.checkDefined($e(Ze.expression,ie,ot))]:[]));return nO(Ln,3,"* @class "),Ln}function Ne(ee,Ze){let At=[],xt=t.getInternalName(ee),qt=q6(xt)?t.getGeneratedNameForNode(xt):xt;i(),Le(At,ee,Ze),Ye(At,ee,qt,Ze),Dt(At,ee);let Ln=_W(xo(S,ee.members.end),19),mr=t.createPartiallyEmittedExpression(qt);r2(mr,Ln.end),Jn(mr,3072);let Vr=t.createReturnStatement(mr);aL(Vr,Ln.pos),Jn(Vr,3840),At.push(Vr),em(At,s());let gi=t.createBlock(it(t.createNodeArray(At),ee.members),!0);return Jn(gi,3072),gi}function Le(ee,Ze,At){At&&ee.push(it(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(Ze))),At))}function Ye(ee,Ze,At,xt){let qt=C;C=void 0;let Ln=B(32662,73),mr=Vm(Ze),Vr=io(mr,xt!==void 0),gi=t.createFunctionDeclaration(void 0,void 0,At,void 0,_t(mr,Vr),void 0,Rt(mr,Ze,xt,Vr));it(gi,mr||Ze),xt&&Jn(gi,16),ee.push(gi),q(Ln,98304,0),C=qt}function _t(ee,Ze){return Sc(ee&&!Ze?ee.parameters:void 0,ie,e)||[]}function ct(ee,Ze){let At=[];o(),t.mergeLexicalEnvironment(At,s()),Ze&&At.push(t.createReturnStatement(Qt()));let xt=t.createNodeArray(At);it(xt,ee.members);let qt=t.createBlock(xt,!0);return it(qt,ee),Jn(qt,3072),qt}function Rt(ee,Ze,At,xt){let qt=!!At&&ql(At.expression).kind!==104;if(!ee)return ct(Ze,qt);let Ln=[],mr=[];o();let Vr=v8(ee.body.statements,B_),{superCall:gi,superStatementIndex:Ea}=We(ee.body.statements,Vr),bo=Ea===-1?Vr.length:Ea+1,Qo=bo;xt||(Qo=t.copyStandardPrologue(ee.body.statements,Ln,Qo,!1)),xt||(Qo=t.copyCustomPrologue(ee.body.statements,mr,Qo,ie,void 0));let Cs;if(xt?Cs=Qt():gi&&(Cs=se(gi)),Cs&&(x|=8192),_n(Ln,ee),Ni(Ln,ee,xt),si(mr,On(ee.body.statements,ie,ca,Qo)),t.mergeLexicalEnvironment(Ln,s()),nn(Ln,ee,!1),qt||Cs)if(Cs&&bo===ee.body.statements.length&&!(ee.body.transformFlags&16384)){let Pd=Ga(Ga(Cs,ar).left,Pa),Dc=t.createReturnStatement(Cs);hl(Dc,sm(Pd)),Jn(Pd,3072),mr.push(Dc)}else Ea<=Vr.length?pt(mr,ee,Cs||zt()):(pt(Ln,ee,zt()),Cs&&gr(mr,Cs)),qe(ee.body)||mr.push(t.createReturnStatement(t.createUniqueName("_this",48)));else Pi(Ln,ee);let Bu=t.createBlock(it(t.createNodeArray([...Vr,...Ln,...Ea<=Vr.length?Je:On(ee.body.statements,ie,ca,Vr.length,Ea-Vr.length),...mr]),ee.body.statements),!0);return it(Bu,ee.body),Bu}function We(ee,Ze){for(let At=Ze.length;At<ee.length;At+=1){let xt=AK(ee[At]);if(xt)return{superCall:xt,superStatementIndex:At}}return{superStatementIndex:-1}}function qe(ee){if(ee.kind===250)return!0;if(ee.kind===242){let Ze=ee;if(Ze.elseStatement)return qe(Ze.thenStatement)&&qe(Ze.elseStatement)}else if(ee.kind===238){let Ze=Os(ee.statements);if(Ze&&qe(Ze))return!0}return!1}function zt(){return Jn(t.createThis(),8)}function Qt(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),zt(),t.createIdentifier("arguments"))),zt())}function tn(ee){if(!ee.dotDotDotToken)return La(ee.name)?Ir(it(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ee),void 0,void 0,void 0),ee),ee):ee.initializer?Ir(it(t.createParameterDeclaration(void 0,void 0,ee.name,void 0,void 0,void 0),ee),ee):ee}function kn(ee){return ee.initializer!==void 0||La(ee.name)}function _n(ee,Ze){if(!vt(Ze.parameters,kn))return!1;let At=!1;for(let xt of Ze.parameters){let{name:qt,initializer:Ln,dotDotDotToken:mr}=xt;mr||(La(qt)?At=Gt(ee,xt,qt,Ln)||At:Ln&&($n(ee,xt,qt,Ln),At=!0))}return At}function Gt(ee,Ze,At,xt){return At.elements.length>0?(L0(ee,Jn(t.createVariableStatement(void 0,t.createVariableDeclarationList(eE(Ze,ie,e,0,t.getGeneratedNameForNode(Ze)))),2097152)),!0):xt?(L0(ee,Jn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(Ze),L.checkDefined($e(xt,ie,ot)))),2097152)),!0):!1}function $n(ee,Ze,At,xt){xt=L.checkDefined($e(xt,ie,ot));let qt=t.createIfStatement(t.createTypeCheck(t.cloneNode(At),"undefined"),Jn(it(t.createBlock([t.createExpressionStatement(Jn(it(t.createAssignment(Jn(go(it(t.cloneNode(At),At),At.parent),96),Jn(xt,96|Ya(xt)|3072)),Ze),3072))]),Ze),3905));mu(qt),it(qt,Ze),Jn(qt,2101056),L0(ee,qt)}function ui(ee,Ze){return!!(ee&&ee.dotDotDotToken&&!Ze)}function Ni(ee,Ze,At){let xt=[],qt=Os(Ze.parameters);if(!ui(qt,At))return!1;let Ln=qt.name.kind===79?go(it(t.cloneNode(qt.name),qt.name),qt.name.parent):t.createTempVariable(void 0);Jn(Ln,96);let mr=qt.name.kind===79?t.cloneNode(qt.name):Ln,Vr=Ze.parameters.length-1,gi=t.createLoopVariable();xt.push(Jn(it(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Ln,void 0,void 0,t.createArrayLiteralExpression([]))])),qt),2097152));let Ea=t.createForStatement(it(t.createVariableDeclarationList([t.createVariableDeclaration(gi,void 0,void 0,t.createNumericLiteral(Vr))]),qt),it(t.createLessThan(gi,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),qt),it(t.createPostfixIncrement(gi),qt),t.createBlock([mu(it(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(mr,Vr===0?gi:t.createSubtract(gi,t.createNumericLiteral(Vr))),t.createElementAccessExpression(t.createIdentifier("arguments"),gi))),qt))]));return Jn(Ea,2097152),mu(Ea),xt.push(Ea),qt.name.kind!==79&&xt.push(Jn(it(t.createVariableStatement(void 0,t.createVariableDeclarationList(eE(qt,ie,e,0,mr))),qt),2097152)),rH(ee,xt),!0}function Pi(ee,Ze){return x&65536&&Ze.kind!==216?(pt(ee,Ze,t.createThis()),!0):!1}function gr(ee,Ze){jo();let At=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),63,Ze));L0(ee,At),hl(At,ec(Ze).parent)}function pt(ee,Ze,At){jo();let xt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,At)]));Jn(xt,2100224),Ho(xt,Ze),L0(ee,xt)}function nn(ee,Ze,At){if(x&32768){let xt;switch(Ze.kind){case 216:return ee;case 171:case 174:case 175:xt=t.createVoidZero();break;case 173:xt=t.createPropertyAccessExpression(Jn(t.createThis(),8),"constructor");break;case 259:case 215:xt=t.createConditionalExpression(t.createLogicalAnd(Jn(t.createThis(),8),t.createBinaryExpression(Jn(t.createThis(),8),102,t.getLocalName(Ze))),void 0,t.createPropertyAccessExpression(Jn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return L.failBadSyntaxKind(Ze)}let qt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,xt)]));Jn(qt,2100224),At&&(ee=ee.slice()),L0(ee,qt)}return ee}function Dt(ee,Ze){for(let At of Ze.members)switch(At.kind){case 237:ee.push(pn(At));break;case 171:ee.push(An(Ri(Ze,At),At,Ze));break;case 174:case 175:let xt=kT(Ze.members,At);At===xt.firstAccessor&&ee.push(Kn(Ri(Ze,At),xt,Ze));break;case 173:case 172:break;default:L.failBadSyntaxKind(At,v&&v.fileName);break}}function pn(ee){return it(t.createEmptyStatement(),ee)}function An(ee,Ze,At){let xt=sm(Ze),qt=pb(Ze),Ln=En(Ze,Ze,void 0,At),mr=$e(Ze.name,ie,Ys);L.assert(mr);let Vr;if(!pi(mr)&&MR(e.getCompilerOptions())){let Ea=ts(mr)?mr.expression:Re(mr)?t.createStringLiteral(Gi(mr.escapedText)):mr;Vr=t.createObjectDefinePropertyCall(ee,Ea,t.createPropertyDescriptor({value:Ln,enumerable:!1,writable:!0,configurable:!0}))}else{let Ea=VT(t,ee,mr,Ze.name);Vr=t.createAssignment(Ea,Ln)}Jn(Ln,3072),Ho(Ln,qt);let gi=it(t.createExpressionStatement(Vr),Ze);return Ir(gi,Ze),hl(gi,xt),Jn(gi,96),gi}function Kn(ee,Ze,At){let xt=t.createExpressionStatement(hi(ee,Ze,At,!1));return Jn(xt,3072),Ho(xt,pb(Ze.firstAccessor)),xt}function hi(ee,{firstAccessor:Ze,getAccessor:At,setAccessor:xt},qt,Ln){let mr=go(it(t.cloneNode(ee),ee),ee.parent);Jn(mr,3136),Ho(mr,Ze.name);let Vr=$e(Ze.name,ie,Ys);if(L.assert(Vr),pi(Vr))return L.failBadSyntaxKind(Vr,"Encountered unhandled private identifier while transforming ES2015.");let gi=Zz(t,Vr);Jn(gi,3104),Ho(gi,Ze.name);let Ea=[];if(At){let Qo=En(At,void 0,void 0,qt);Ho(Qo,pb(At)),Jn(Qo,1024);let Cs=t.createPropertyAssignment("get",Qo);hl(Cs,sm(At)),Ea.push(Cs)}if(xt){let Qo=En(xt,void 0,void 0,qt);Ho(Qo,pb(xt)),Jn(Qo,1024);let Cs=t.createPropertyAssignment("set",Qo);hl(Cs,sm(xt)),Ea.push(Cs)}Ea.push(t.createPropertyAssignment("enumerable",At||xt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let bo=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[mr,gi,t.createObjectLiteralExpression(Ea,!0)]);return Ln&&mu(bo),bo}function ri(ee){ee.transformFlags&16384&&!(x&16384)&&(x|=65536);let Ze=C;C=void 0;let At=B(15232,66),xt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Sc(ee.parameters,ie,e),void 0,dr(ee));return it(xt,ee),Ir(xt,ee),Jn(xt,16),q(At,0,0),C=Ze,xt}function vn(ee){let Ze=Ya(ee)&524288?B(32662,69):B(32670,65),At=C;C=void 0;let xt=Sc(ee.parameters,ie,e),qt=dr(ee),Ln=x&32768?t.getLocalName(ee):ee.name;return q(Ze,98304,0),C=At,t.updateFunctionExpression(ee,void 0,ee.asteriskToken,Ln,void 0,xt,void 0,qt)}function Ht(ee){let Ze=C;C=void 0;let At=B(32670,65),xt=Sc(ee.parameters,ie,e),qt=dr(ee),Ln=x&32768?t.getLocalName(ee):ee.name;return q(At,98304,0),C=Ze,t.updateFunctionDeclaration(ee,On(ee.modifiers,ie,Ha),ee.asteriskToken,Ln,void 0,xt,void 0,qt)}function En(ee,Ze,At,xt){let qt=C;C=void 0;let Ln=xt&&Yr(xt)&&!Ca(ee)?B(32670,73):B(32670,65),mr=Sc(ee.parameters,ie,e),Vr=dr(ee);return x&32768&&!At&&(ee.kind===259||ee.kind===215)&&(At=t.getGeneratedNameForNode(ee)),q(Ln,98304,0),C=qt,Ir(it(t.createFunctionExpression(void 0,ee.asteriskToken,At,void 0,mr,void 0,Vr),Ze),ee)}function dr(ee){let Ze=!1,At=!1,xt,qt,Ln=[],mr=[],Vr=ee.body,gi;if(o(),Va(Vr)&&(gi=t.copyStandardPrologue(Vr.statements,Ln,0,!1),gi=t.copyCustomPrologue(Vr.statements,mr,gi,ie,C6),gi=t.copyCustomPrologue(Vr.statements,mr,gi,ie,I6)),Ze=_n(mr,ee)||Ze,Ze=Ni(mr,ee,!1)||Ze,Va(Vr))gi=t.copyCustomPrologue(Vr.statements,mr,gi,ie),xt=Vr.statements,si(mr,On(Vr.statements,ie,ca,gi)),!Ze&&Vr.multiLine&&(Ze=!0);else{L.assert(ee.kind===216),xt=i4(Vr,-1);let bo=ee.equalsGreaterThanToken;!ws(bo)&&!ws(Vr)&&(DR(bo,Vr,v)?At=!0:Ze=!0);let Qo=$e(Vr,ie,ot),Cs=t.createReturnStatement(Qo);it(Cs,Vr),pue(Cs,Vr),Jn(Cs,2880),mr.push(Cs),qt=Vr}if(t.mergeLexicalEnvironment(Ln,s()),nn(Ln,ee,!1),Pi(Ln,ee),vt(Ln)&&(Ze=!0),mr.unshift(...Ln),Va(Vr)&&up(mr,Vr.statements))return Vr;let Ea=t.createBlock(it(t.createNodeArray(mr),xt),Ze);return it(Ea,ee.body),!Ze&&At&&Jn(Ea,1),qt&&_ue(Ea,19,qt),Ir(Ea,ee.body),Ea}function Cr(ee,Ze){if(Ze)return xn(ee,ie,e);let At=x&256?B(7104,512):B(6976,128),xt=xn(ee,ie,e);return q(At,0,0),xt}function Se(ee){return xn(ee,$,e)}function at(ee,Ze){return xn(ee,Ze?$:ie,e)}function Tt(ee,Ze){return Fg(ee)?KT(ee,ie,e,0,!Ze):ee.operatorToken.kind===27?t.updateBinaryExpression(ee,L.checkDefined($e(ee.left,$,ot)),ee.operatorToken,L.checkDefined($e(ee.right,Ze?$:ie,ot))):xn(ee,ie,e)}function ve(ee,Ze){if(Ze)return xn(ee,$,e);let At;for(let qt=0;qt<ee.elements.length;qt++){let Ln=ee.elements[qt],mr=$e(Ln,qt<ee.elements.length-1?$:ie,ot);(At||mr!==Ln)&&(At||(At=ee.elements.slice(0,qt)),L.assert(mr),At.push(mr))}let xt=At?it(t.createNodeArray(At),ee.elements):ee.elements;return t.updateCommaListExpression(ee,xt)}function nt(ee){return ee.declarationList.declarations.length===1&&!!ee.declarationList.declarations[0].initializer&&!!(o_(ee.declarationList.declarations[0].initializer)&1)}function ce(ee){let Ze=B(0,Mr(ee,1)?32:0),At;if(C&&!(ee.declarationList.flags&3)&&!nt(ee)){let xt;for(let qt of ee.declarationList.declarations)if(Kr(C,qt),qt.initializer){let Ln;La(qt.name)?Ln=KT(qt,ie,e,0):(Ln=t.createBinaryExpression(qt.name,63,L.checkDefined($e(qt.initializer,ie,ot))),it(Ln,qt)),xt=Sn(xt,Ln)}xt?At=it(t.createExpressionStatement(t.inlineExpressions(xt)),ee):At=void 0}else At=xn(ee,ie,e);return q(Ze,0,0),At}function Q(ee){if(ee.flags&3||ee.transformFlags&524288){ee.flags&3&&$o();let Ze=On(ee.declarations,ee.flags&1?Oe:je,wi),At=t.createVariableDeclarationList(Ze);return Ir(At,ee),it(At,ee),hl(At,ee),ee.transformFlags&524288&&(La(ee.declarations[0].name)||La(To(ee.declarations).name))&&Ho(At,ue(Ze)),At}return xn(ee,ie,e)}function ue(ee){let Ze=-1,At=-1;for(let xt of ee)Ze=Ze===-1?xt.pos:xt.pos===-1?Ze:Math.min(Ze,xt.pos),At=Math.max(At,xt.end);return Gf(Ze,At)}function G(ee){let Ze=d.getNodeCheckFlags(ee),At=Ze&16384,xt=Ze&32768;return!((x&64)!==0||At&&xt&&(x&512)!==0)&&(x&4096)===0&&(!d.isDeclarationWithCollidingName(ee)||xt&&!At&&(x&6144)===0)}function Oe(ee){let Ze=ee.name;return La(Ze)?je(ee):!ee.initializer&&G(ee)?t.updateVariableDeclaration(ee,ee.name,void 0,void 0,t.createVoidZero()):xn(ee,ie,e)}function je(ee){let Ze=B(32,0),At;return La(ee.name)?At=eE(ee,ie,e,0,void 0,(Ze&32)!==0):At=xn(ee,ie,e),q(Ze,0,0),At}function Ge(ee){C.labels.set(vr(ee.label),!0)}function kt(ee){C.labels.set(vr(ee.label),!1)}function Kt(ee){C&&!C.labels&&(C.labels=new Map);let Ze=xH(ee,C&&Ge);return Wy(Ze,!1)?ln(Ze,ee):t.restoreEnclosingLabel(L.checkDefined($e(Ze,ie,ca,t.liftToBlock)),ee,C&&kt)}function ln(ee,Ze){switch(ee.kind){case 243:case 244:return ae(ee,Ze);case 245:return rt(ee,Ze);case 246:return Ke(ee,Ze);case 247:return oe(ee,Ze)}}function ir(ee,Ze,At,xt,qt){let Ln=B(ee,Ze),mr=Si(At,xt,Ln,qt);return q(Ln,0,0),mr}function ae(ee,Ze){return ir(0,1280,ee,Ze)}function rt(ee,Ze){return ir(5056,3328,ee,Ze)}function Ot(ee){return t.updateForStatement(ee,$e(ee.initializer,$,pp),$e(ee.condition,ie,ot),$e(ee.incrementor,$,ot),L.checkDefined($e(ee.statement,ie,ca,t.liftToBlock)))}function Ke(ee,Ze){return ir(3008,5376,ee,Ze)}function oe(ee,Ze){return ir(3008,5376,ee,Ze,f.downlevelIteration?j:Te)}function pe(ee,Ze,At){let xt=[],qt=ee.initializer;if(pu(qt)){ee.initializer.flags&3&&$o();let Ln=Sl(qt.declarations);if(Ln&&La(Ln.name)){let mr=eE(Ln,ie,e,0,Ze),Vr=it(t.createVariableDeclarationList(mr),ee.initializer);Ir(Vr,ee.initializer),Ho(Vr,Gf(mr[0].pos,To(mr).end)),xt.push(t.createVariableStatement(void 0,Vr))}else xt.push(it(t.createVariableStatement(void 0,Ir(it(t.createVariableDeclarationList([t.createVariableDeclaration(Ln?Ln.name:t.createTempVariable(void 0),void 0,void 0,Ze)]),fb(qt,-1)),qt)),i4(qt,-1)))}else{let Ln=t.createAssignment(qt,Ze);Fg(Ln)?xt.push(t.createExpressionStatement(Tt(Ln,!0))):(r2(Ln,qt.end),xt.push(it(t.createExpressionStatement(L.checkDefined($e(Ln,ie,ot))),i4(qt,-1))))}if(At)return z(si(xt,At));{let Ln=$e(ee.statement,ie,ca,t.liftToBlock);return L.assert(Ln),Va(Ln)?t.updateBlock(Ln,it(t.createNodeArray(Qi(xt,Ln.statements)),Ln.statements)):(xt.push(Ln),z(xt))}}function z(ee){return Jn(t.createBlock(t.createNodeArray(ee),!0),864)}function Te(ee,Ze,At){let xt=$e(ee.expression,ie,ot);L.assert(xt);let qt=t.createLoopVariable(),Ln=Re(xt)?t.getGeneratedNameForNode(xt):t.createTempVariable(void 0);Jn(xt,96|Ya(xt));let mr=it(t.createForStatement(Jn(it(t.createVariableDeclarationList([it(t.createVariableDeclaration(qt,void 0,void 0,t.createNumericLiteral(0)),fb(ee.expression,-1)),it(t.createVariableDeclaration(Ln,void 0,void 0,xt),ee.expression)]),ee.expression),4194304),it(t.createLessThan(qt,t.createPropertyAccessExpression(Ln,"length")),ee.expression),it(t.createPostfixIncrement(qt),ee.expression),pe(ee,t.createElementAccessExpression(Ln,qt),At)),ee);return Jn(mr,512),it(mr,ee),t.restoreEnclosingLabel(mr,Ze,C&&kt)}function j(ee,Ze,At,xt){let qt=$e(ee.expression,ie,ot);L.assert(qt);let Ln=Re(qt)?t.getGeneratedNameForNode(qt):t.createTempVariable(void 0),mr=Re(qt)?t.getGeneratedNameForNode(Ln):t.createTempVariable(void 0),Vr=t.createUniqueName("e"),gi=t.getGeneratedNameForNode(Vr),Ea=t.createTempVariable(void 0),bo=it(r().createValuesHelper(qt),ee.expression),Qo=t.createCallExpression(t.createPropertyAccessExpression(Ln,"next"),void 0,[]);l(Vr),l(Ea);let Cs=xt&1024?t.inlineExpressions([t.createAssignment(Vr,t.createVoidZero()),bo]):bo,Bu=Jn(it(t.createForStatement(Jn(it(t.createVariableDeclarationList([it(t.createVariableDeclaration(Ln,void 0,void 0,Cs),ee.expression),t.createVariableDeclaration(mr,void 0,void 0,Qo)]),ee.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(mr,"done")),t.createAssignment(mr,Qo),pe(ee,t.createPropertyAccessExpression(mr,"value"),At)),ee),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(Bu,Ze,C&&kt)]),t.createCatchClause(t.createVariableDeclaration(gi),Jn(t.createBlock([t.createExpressionStatement(t.createAssignment(Vr,t.createObjectLiteralExpression([t.createPropertyAssignment("error",gi)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([Jn(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(mr,t.createLogicalNot(t.createPropertyAccessExpression(mr,"done"))),t.createAssignment(Ea,t.createPropertyAccessExpression(Ln,"return"))),t.createExpressionStatement(t.createFunctionCallCall(Ea,Ln,[]))),1)]),void 0,Jn(t.createBlock([Jn(t.createIfStatement(Vr,t.createThrowStatement(t.createPropertyAccessExpression(Vr,"error"))),1)]),1))]))}function yt(ee){let Ze=ee.properties,At=-1,xt=!1;for(let Vr=0;Vr<Ze.length;Vr++){let gi=Ze[Vr];if(gi.transformFlags&1048576&&x&4||(xt=L.checkDefined(gi.name).kind===164)){At=Vr;break}}if(At<0)return xn(ee,ie,e);let qt=t.createTempVariable(l),Ln=[],mr=t.createAssignment(qt,Jn(t.createObjectLiteralExpression(On(Ze,ie,Og,0,At),ee.multiLine),xt?131072:0));return ee.multiLine&&mu(mr),Ln.push(mr),Co(Ln,ee,qt,At),Ln.push(ee.multiLine?mu(go(it(t.cloneNode(qt),qt),qt.parent)):qt),t.inlineExpressions(Ln)}function lt(ee){return(d.getNodeCheckFlags(ee)&8192)!==0}function Qe(ee){return FT(ee)&&!!ee.initializer&<(ee.initializer)}function Vt(ee){return FT(ee)&&!!ee.condition&<(ee.condition)}function Hn(ee){return FT(ee)&&!!ee.incrementor&<(ee.incrementor)}function jr(ee){return ei(ee)||Qe(ee)}function ei(ee){return(d.getNodeCheckFlags(ee)&4096)!==0}function Kr(ee,Ze){ee.hoistedLocalVariables||(ee.hoistedLocalVariables=[]),At(Ze.name);function At(xt){if(xt.kind===79)ee.hoistedLocalVariables.push(xt);else for(let qt of xt.elements)ol(qt)||At(qt.name)}}function Si(ee,Ze,At,xt){if(!jr(ee)){let bo;C&&(bo=C.allowedNonLabeledJumps,C.allowedNonLabeledJumps=6);let Qo=xt?xt(ee,Ze,void 0,At):t.restoreEnclosingLabel(FT(ee)?Ot(ee):xn(ee,ie,e),Ze,C&&kt);return C&&(C.allowedNonLabeledJumps=bo),Qo}let qt=Fo(ee),Ln=[],mr=C;C=qt;let Vr=Qe(ee)?gn(ee,qt):void 0,gi=ei(ee)?Ki(ee,qt,mr):void 0;C=mr,Vr&&Ln.push(Vr.functionDeclaration),gi&&Ln.push(gi.functionDeclaration),Qr(Ln,qt,mr),Vr&&Ln.push(mc(Vr.functionName,Vr.containsYield));let Ea;if(gi)if(xt)Ea=xt(ee,Ze,gi.part,At);else{let bo=Ja(ee,Vr,t.createBlock(gi.part,!0));Ea=t.restoreEnclosingLabel(bo,Ze,C&&kt)}else{let bo=Ja(ee,Vr,L.checkDefined($e(ee.statement,ie,ca,t.liftToBlock)));Ea=t.restoreEnclosingLabel(bo,Ze,C&&kt)}return Ln.push(Ea),Ln}function Ja(ee,Ze,At){switch(ee.kind){case 245:return Za(ee,Ze,At);case 246:return Hi(ee,At);case 247:return Fa(ee,At);case 243:return xi(ee,At);case 244:return Nr(ee,At);default:return L.failBadSyntaxKind(ee,"IterationStatement expected")}}function Za(ee,Ze,At){let xt=ee.condition&<(ee.condition),qt=xt||ee.incrementor&<(ee.incrementor);return t.updateForStatement(ee,$e(Ze?Ze.part:ee.initializer,$,pp),$e(xt?void 0:ee.condition,ie,ot),$e(qt?void 0:ee.incrementor,$,ot),At)}function Fa(ee,Ze){return t.updateForOfStatement(ee,void 0,L.checkDefined($e(ee.initializer,ie,pp)),L.checkDefined($e(ee.expression,ie,ot)),Ze)}function Hi(ee,Ze){return t.updateForInStatement(ee,L.checkDefined($e(ee.initializer,ie,pp)),L.checkDefined($e(ee.expression,ie,ot)),Ze)}function xi(ee,Ze){return t.updateDoStatement(ee,Ze,L.checkDefined($e(ee.expression,ie,ot)))}function Nr(ee,Ze){return t.updateWhileStatement(ee,L.checkDefined($e(ee.expression,ie,ot)),Ze)}function Fo(ee){let Ze;switch(ee.kind){case 245:case 246:case 247:let Ln=ee.initializer;Ln&&Ln.kind===258&&(Ze=Ln);break}let At=[],xt=[];if(Ze&&G_(Ze)&3){let Ln=Qe(ee)||Vt(ee)||Hn(ee);for(let mr of Ze.declarations)aa(ee,mr,At,xt,Ln)}let qt={loopParameters:At,loopOutParameters:xt};return C&&(C.argumentsName&&(qt.argumentsName=C.argumentsName),C.thisName&&(qt.thisName=C.thisName),C.hoistedLocalVariables&&(qt.hoistedLocalVariables=C.hoistedLocalVariables)),qt}function Qr(ee,Ze,At){let xt;if(Ze.argumentsName&&(At?At.argumentsName=Ze.argumentsName:(xt||(xt=[])).push(t.createVariableDeclaration(Ze.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),Ze.thisName&&(At?At.thisName=Ze.thisName:(xt||(xt=[])).push(t.createVariableDeclaration(Ze.thisName,void 0,void 0,t.createIdentifier("this")))),Ze.hoistedLocalVariables)if(At)At.hoistedLocalVariables=Ze.hoistedLocalVariables;else{xt||(xt=[]);for(let qt of Ze.hoistedLocalVariables)xt.push(t.createVariableDeclaration(qt))}if(Ze.loopOutParameters.length){xt||(xt=[]);for(let qt of Ze.loopOutParameters)xt.push(t.createVariableDeclaration(qt.outParamName))}Ze.conditionVariable&&(xt||(xt=[]),xt.push(t.createVariableDeclaration(Ze.conditionVariable,void 0,void 0,t.createFalse()))),xt&&ee.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(xt)))}function Wi(ee){return t.createVariableDeclaration(ee.originalName,void 0,void 0,ee.outParamName)}function gn(ee,Ze){let At=t.createUniqueName("_loop_init"),xt=(ee.initializer.transformFlags&1048576)!==0,qt=0;Ze.containsLexicalThis&&(qt|=16),xt&&x&4&&(qt|=524288);let Ln=[];Ln.push(t.createVariableStatement(void 0,ee.initializer)),Ps(Ze.loopOutParameters,2,1,Ln);let mr=t.createVariableStatement(void 0,Jn(t.createVariableDeclarationList([t.createVariableDeclaration(At,void 0,void 0,Jn(t.createFunctionExpression(void 0,xt?t.createToken(41):void 0,void 0,void 0,void 0,void 0,L.checkDefined($e(t.createBlock(Ln,!0),ie,Va))),qt))]),4194304)),Vr=t.createVariableDeclarationList(on(Ze.loopOutParameters,Wi));return{functionName:At,containsYield:xt,functionDeclaration:mr,part:Vr}}function Ki(ee,Ze,At){let xt=t.createUniqueName("_loop");i();let qt=$e(ee.statement,ie,ca,t.liftToBlock),Ln=s(),mr=[];(Vt(ee)||Hn(ee))&&(Ze.conditionVariable=t.createUniqueName("inc"),ee.incrementor?mr.push(t.createIfStatement(Ze.conditionVariable,t.createExpressionStatement(L.checkDefined($e(ee.incrementor,ie,ot))),t.createExpressionStatement(t.createAssignment(Ze.conditionVariable,t.createTrue())))):mr.push(t.createIfStatement(t.createLogicalNot(Ze.conditionVariable),t.createExpressionStatement(t.createAssignment(Ze.conditionVariable,t.createTrue())))),Vt(ee)&&mr.push(t.createIfStatement(t.createPrefixUnaryExpression(53,L.checkDefined($e(ee.condition,ie,ot))),L.checkDefined($e(t.createBreakStatement(),ie,ca))))),L.assert(qt),Va(qt)?si(mr,qt.statements):mr.push(qt),Ps(Ze.loopOutParameters,1,1,mr),em(mr,Ln);let Vr=t.createBlock(mr,!0);Va(qt)&&Ir(Vr,qt);let gi=(ee.statement.transformFlags&1048576)!==0,Ea=1048576;Ze.containsLexicalThis&&(Ea|=16),gi&&x&4&&(Ea|=524288);let bo=t.createVariableStatement(void 0,Jn(t.createVariableDeclarationList([t.createVariableDeclaration(xt,void 0,void 0,Jn(t.createFunctionExpression(void 0,gi?t.createToken(41):void 0,void 0,void 0,Ze.loopParameters,void 0,Vr),Ea))]),4194304)),Qo=xc(xt,Ze,At,gi);return{functionName:xt,containsYield:gi,functionDeclaration:bo,part:Qo}}function kc(ee,Ze){let At=Ze===0?ee.outParamName:ee.originalName,xt=Ze===0?ee.originalName:ee.outParamName;return t.createBinaryExpression(xt,63,At)}function Ps(ee,Ze,At,xt){for(let qt of ee)qt.flags&Ze&&xt.push(t.createExpressionStatement(kc(qt,At)))}function mc(ee,Ze){let At=t.createCallExpression(ee,void 0,[]),xt=Ze?t.createYieldExpression(t.createToken(41),Jn(At,16777216)):At;return t.createExpressionStatement(xt)}function xc(ee,Ze,At,xt){let qt=[],Ln=!(Ze.nonLocalJumps&-5)&&!Ze.labeledNonLocalBreaks&&!Ze.labeledNonLocalContinues,mr=t.createCallExpression(ee,void 0,on(Ze.loopParameters,gi=>gi.name)),Vr=xt?t.createYieldExpression(t.createToken(41),Jn(mr,16777216)):mr;if(Ln)qt.push(t.createExpressionStatement(Vr)),Ps(Ze.loopOutParameters,1,0,qt);else{let gi=t.createUniqueName("state"),Ea=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(gi,void 0,void 0,Vr)]));if(qt.push(Ea),Ps(Ze.loopOutParameters,1,0,qt),Ze.nonLocalJumps&8){let bo;At?(At.nonLocalJumps|=8,bo=t.createReturnStatement(gi)):bo=t.createReturnStatement(t.createPropertyAccessExpression(gi,"value")),qt.push(t.createIfStatement(t.createTypeCheck(gi,"object"),bo))}if(Ze.nonLocalJumps&2&&qt.push(t.createIfStatement(t.createStrictEquality(gi,t.createStringLiteral("break")),t.createBreakStatement())),Ze.labeledNonLocalBreaks||Ze.labeledNonLocalContinues){let bo=[];ro(Ze.labeledNonLocalBreaks,!0,gi,At,bo),ro(Ze.labeledNonLocalContinues,!1,gi,At,bo),qt.push(t.createSwitchStatement(gi,t.createCaseBlock(bo)))}}return qt}function hc(ee,Ze,At,xt){Ze?(ee.labeledNonLocalBreaks||(ee.labeledNonLocalBreaks=new Map),ee.labeledNonLocalBreaks.set(At,xt)):(ee.labeledNonLocalContinues||(ee.labeledNonLocalContinues=new Map),ee.labeledNonLocalContinues.set(At,xt))}function ro(ee,Ze,At,xt,qt){ee&&ee.forEach((Ln,mr)=>{let Vr=[];if(!xt||xt.labels&&xt.labels.get(mr)){let gi=t.createIdentifier(mr);Vr.push(Ze?t.createBreakStatement(gi):t.createContinueStatement(gi))}else hc(xt,Ze,mr,Ln),Vr.push(t.createReturnStatement(At));qt.push(t.createCaseClause(t.createStringLiteral(Ln),Vr))})}function aa(ee,Ze,At,xt,qt){let Ln=Ze.name;if(La(Ln))for(let mr of Ln.elements)ol(mr)||aa(ee,mr,At,xt,qt);else{At.push(t.createParameterDeclaration(void 0,void 0,Ln));let mr=d.getNodeCheckFlags(Ze);if(mr&262144||qt){let Vr=t.createUniqueName("out_"+vr(Ln)),gi=0;mr&262144&&(gi|=1),FT(ee)&&(ee.initializer&&d.isBindingCapturedByNode(ee.initializer,Ze)&&(gi|=2),(ee.condition&&d.isBindingCapturedByNode(ee.condition,Ze)||ee.incrementor&&d.isBindingCapturedByNode(ee.incrementor,Ze))&&(gi|=1)),xt.push({flags:gi,originalName:Ln,outParamName:Vr})}}}function Co(ee,Ze,At,xt){let qt=Ze.properties,Ln=qt.length;for(let mr=xt;mr<Ln;mr++){let Vr=qt[mr];switch(Vr.kind){case 174:case 175:let gi=kT(Ze.properties,Vr);Vr===gi.firstAccessor&&ee.push(hi(At,gi,Ze,!!Ze.multiLine));break;case 171:ee.push(md(Vr,At,Ze,Ze.multiLine));break;case 299:ee.push(gc(Vr,At,Ze.multiLine));break;case 300:ee.push(Ll(Vr,At,Ze.multiLine));break;default:L.failBadSyntaxKind(Ze);break}}}function gc(ee,Ze,At){let xt=t.createAssignment(VT(t,Ze,L.checkDefined($e(ee.name,ie,Ys))),L.checkDefined($e(ee.initializer,ie,ot)));return it(xt,ee),At&&mu(xt),xt}function Ll(ee,Ze,At){let xt=t.createAssignment(VT(t,Ze,L.checkDefined($e(ee.name,ie,Ys))),t.cloneNode(ee.name));return it(xt,ee),At&&mu(xt),xt}function md(ee,Ze,At,xt){let qt=t.createAssignment(VT(t,Ze,L.checkDefined($e(ee.name,ie,Ys))),En(ee,ee,void 0,At));return it(qt,ee),xt&&mu(qt),qt}function Pc(ee){let Ze=B(7104,0),At;if(L.assert(!!ee.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),La(ee.variableDeclaration.name)){let xt=t.createTempVariable(void 0),qt=t.createVariableDeclaration(xt);it(qt,ee.variableDeclaration);let Ln=eE(ee.variableDeclaration,ie,e,0,xt),mr=t.createVariableDeclarationList(Ln);it(mr,ee.variableDeclaration);let Vr=t.createVariableStatement(void 0,mr);At=t.updateCatchClause(ee,qt,bl(ee.block,Vr))}else At=xn(ee,ie,e);return q(Ze,0,0),At}function bl(ee,Ze){let At=On(ee.statements,ie,ca);return t.updateBlock(ee,[Ze,...At])}function ss(ee){L.assert(!ts(ee.name));let Ze=En(ee,fb(ee,-1),void 0,void 0);return Jn(Ze,1024|Ya(Ze)),it(t.createPropertyAssignment(ee.name,Ze),ee)}function qs(ee){L.assert(!ts(ee.name));let Ze=C;C=void 0;let At=B(32670,65),xt,qt=Sc(ee.parameters,ie,e),Ln=dr(ee);return ee.kind===174?xt=t.updateGetAccessorDeclaration(ee,ee.modifiers,ee.name,qt,ee.type,Ln):xt=t.updateSetAccessorDeclaration(ee,ee.modifiers,ee.name,qt,Ln),q(At,98304,0),C=Ze,xt}function Rs(ee){return it(t.createPropertyAssignment(ee.name,ke(t.cloneNode(ee.name))),ee)}function As(ee){return xn(ee,ie,e)}function jt(ee){return xn(ee,ie,e)}function yc(ee){return vt(ee.elements,Km)?K(ee.elements,!1,!!ee.multiLine,!!ee.elements.hasTrailingComma):xn(ee,ie,e)}function Ql(ee){if(o_(ee)&1)return yu(ee);let Ze=ql(ee.expression);return Ze.kind===106||Pu(Ze)||vt(ee.arguments,Km)?ht(ee,!0):t.updateCallExpression(ee,L.checkDefined($e(ee.expression,Z,ot)),void 0,On(ee.arguments,ie,ot))}function yu(ee){let Ze=Ga(Ga(ql(ee.expression),xs).body,Va),At=Md=>Bc(Md)&&!!Vo(Md.declarationList.declarations).initializer,xt=C;C=void 0;let qt=On(Ze.statements,fe,ca);C=xt;let Ln=Pr(qt,At),mr=Pr(qt,Md=>!At(Md)),gi=Ga(Vo(Ln),Bc).declarationList.declarations[0],Ea=ql(gi.initializer),bo=zr(Ea,Iu);!bo&&ar(Ea)&&Ea.operatorToken.kind===27&&(bo=zr(Ea.left,Iu));let Qo=Ga(bo?ql(bo.right):Ea,Pa),Cs=Ga(ql(Qo.expression),ms),Bu=Cs.body.statements,Pd=0,Dc=-1,gd=[];if(bo){let Md=zr(Bu[Pd],Ol);Md&&(gd.push(Md),Pd++),gd.push(Bu[Pd]),Pd++,gd.push(t.createExpressionStatement(t.createAssignment(bo.left,Ga(gi.name,Re))))}for(;!j_(Ig(Bu,Dc));)Dc--;si(gd,Bu,Pd,Dc),Dc<-1&&si(gd,Bu,Dc+1);let Zl=zr(Ig(Bu,Dc),j_);for(let Md of mr)j_(Md)&&Zl?.expression&&!Re(Zl.expression)?gd.push(Zl):gd.push(Md);return si(gd,Ln,1),t.restoreOuterExpressions(ee.expression,t.restoreOuterExpressions(gi.initializer,t.restoreOuterExpressions(bo&&bo.right,t.updateCallExpression(Qo,t.restoreOuterExpressions(Qo.expression,t.updateFunctionExpression(Cs,void 0,void 0,void 0,void 0,Cs.parameters,void 0,t.updateBlock(Cs.body,gd))),void 0,Qo.arguments))))}function se(ee){return ht(ee,!1)}function ht(ee,Ze){if(ee.transformFlags&32768||ee.expression.kind===106||Pu(ql(ee.expression))){let{target:At,thisArg:xt}=t.createCallBinding(ee.expression,l);ee.expression.kind===106&&Jn(xt,8);let qt;if(ee.transformFlags&32768?qt=t.createFunctionApplyCall(L.checkDefined($e(At,Z,ot)),ee.expression.kind===106?xt:L.checkDefined($e(xt,ie,ot)),K(ee.arguments,!0,!1,!1)):qt=it(t.createFunctionCallCall(L.checkDefined($e(At,Z,ot)),ee.expression.kind===106?xt:L.checkDefined($e(xt,ie,ot)),On(ee.arguments,ie,ot)),ee),ee.expression.kind===106){let Ln=t.createLogicalOr(qt,zt());qt=Ze?t.createAssignment(t.createUniqueName("_this",48),Ln):Ln}return Ir(qt,ee)}return xn(ee,ie,e)}function wt(ee){if(vt(ee.arguments,Km)){let{target:Ze,thisArg:At}=t.createCallBinding(t.createPropertyAccessExpression(ee.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(L.checkDefined($e(Ze,ie,ot)),At,K(t.createNodeArray([t.createVoidZero(),...ee.arguments]),!0,!1,!1)),void 0,[])}return xn(ee,ie,e)}function K(ee,Ze,At,xt){let qt=ee.length,Ln=t_(c8(ee,Xe,(Ea,bo,Qo,Cs)=>bo(Ea,At,xt&&Cs===qt)));if(Ln.length===1){let Ea=Ln[0];if(Ze&&!f.downlevelIteration||UW(Ea.expression)||pL(Ea.expression,"___spreadArray"))return Ea.expression}let mr=r(),Vr=Ln[0].kind!==0,gi=Vr?t.createArrayLiteralExpression():Ln[0].expression;for(let Ea=Vr?0:1;Ea<Ln.length;Ea++){let bo=Ln[Ea];gi=mr.createSpreadArrayHelper(gi,bo.expression,bo.kind===1&&!Ze)}return gi}function Xe(ee){return Km(ee)?ft:pr}function ft(ee){return on(ee,Yt)}function Yt(ee){L.assertNode(ee,Km);let Ze=$e(ee.expression,ie,ot);L.assert(Ze);let At=pL(Ze,"___read"),xt=At||UW(Ze)?2:1;return f.downlevelIteration&&xt===1&&!fu(Ze)&&!At&&(Ze=r().createReadHelper(Ze,void 0),xt=2),ppe(xt,Ze)}function pr(ee,Ze,At){let xt=t.createArrayLiteralExpression(On(t.createNodeArray(ee,At),ie,ot),Ze);return ppe(0,xt)}function yr(ee){return $e(ee.expression,ie,ot)}function ta(ee){return it(t.createStringLiteral(ee.text),ee)}function Go(ee){return ee.hasExtendedUnicodeEscape?it(t.createStringLiteral(ee.text),ee):ee}function Ka(ee){return ee.numericLiteralFlags&384?it(t.createNumericLiteral(ee.text),ee):ee}function vo(ee){return OK(e,ee,ie,v,w,1)}function ka(ee){let Ze=t.createStringLiteral(ee.head.text);for(let At of ee.templateSpans){let xt=[L.checkDefined($e(At.expression,ie,ot))];At.literal.text.length>0&&xt.push(t.createStringLiteral(At.literal.text)),Ze=t.createCallExpression(t.createPropertyAccessExpression(Ze,"concat"),void 0,xt)}return it(Ze,ee)}function Hs(ee){return x&8&&!ee?t.createPropertyAccessExpression(t.createUniqueName("_super",48),"prototype"):t.createUniqueName("_super",48)}function Uc(ee){return ee.keywordToken===103&&ee.name.escapedText==="target"?(x|=32768,t.createUniqueName("_newTarget",48)):ee}function Gu(ee,Ze,At){if(P&1&&Ia(Ze)){let xt=B(32670,Ya(Ze)&16?81:65);m(ee,Ze,At),q(xt,0,0);return}m(ee,Ze,At)}function $o(){P&2||(P|=2,e.enableSubstitution(79))}function jo(){P&1||(P|=1,e.enableSubstitution(108),e.enableEmitNotification(173),e.enableEmitNotification(171),e.enableEmitNotification(174),e.enableEmitNotification(175),e.enableEmitNotification(216),e.enableEmitNotification(215),e.enableEmitNotification(259))}function Ws(ee,Ze){return Ze=g(ee,Ze),ee===1?nf(Ze):Re(Ze)?hd(Ze):Ze}function hd(ee){if(P&2&&!eJ(ee)){let Ze=ea(ee,Re);if(Ze&&vc(Ze))return it(t.getGeneratedNameForNode(Ze),ee)}return ee}function vc(ee){switch(ee.parent.kind){case 205:case 260:case 263:case 257:return ee.parent.name===ee&&d.isDeclarationWithCollidingName(ee.parent)}return!1}function nf(ee){switch(ee.kind){case 79:return ye(ee);case 108:return bn(ee)}return ee}function ye(ee){if(P&2&&!eJ(ee)){let Ze=d.getReferencedDeclarationWithCollidingName(ee);if(Ze&&!(Yr(Ze)&&Et(Ze,ee)))return it(t.getGeneratedNameForNode(sa(Ze)),ee)}return ee}function Et(ee,Ze){let At=ea(Ze);if(!At||At===ee||At.end<=ee.pos||At.pos>=ee.end)return!1;let xt=tm(ee);for(;At;){if(At===xt||At===ee)return!1;if(_l(At)&&At.parent===ee)return!0;At=At.parent}return!1}function bn(ee){return P&1&&x&16?it(t.createUniqueName("_this",48),ee):ee}function Ri(ee,Ze){return Ca(Ze)?t.getInternalName(ee):t.createPropertyAccessExpression(t.getInternalName(ee),"prototype")}function io(ee,Ze){if(!ee||!Ze||vt(ee.parameters))return!1;let At=Sl(ee.body.statements);if(!At||!ws(At)||At.kind!==241)return!1;let xt=At.expression;if(!ws(xt)||xt.kind!==210)return!1;let qt=xt.expression;if(!ws(qt)||qt.kind!==106)return!1;let Ln=Wp(xt.arguments);if(!Ln||!ws(Ln)||Ln.kind!==227)return!1;let mr=Ln.expression;return Re(mr)&&mr.escapedText==="arguments"}}var yMe=gt({"src/compiler/transformers/es2015.ts"(){"use strict";fa()}});function hpe(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=f,e.enableEmitNotification(283),e.enableEmitNotification(284),e.enableEmitNotification(282),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=d,e.enableSubstitution(208),e.enableSubstitution(299),y_(e,l);function l(S){return S}function f(S,x,A){switch(x.kind){case 283:case 284:case 282:let w=x.tagName;o[sc(w)]=!0;break}i(S,x,A)}function d(S,x){return x.id&&o&&o[x.id]?s(S,x):(x=s(S,x),br(x)?g(x):yl(x)?m(x):x)}function g(S){if(pi(S.name))return S;let x=v(S.name);return x?it(t.createElementAccessExpression(S.expression,x),S):S}function m(S){let x=Re(S.name)&&v(S.name);return x?t.updatePropertyAssignment(S,x,S.initializer):S}function v(S){let x=nb(S);if(x!==void 0&&x>=81&&x<=116)return it(t.createStringLiteralFromNode(S),S)}}var vMe=gt({"src/compiler/transformers/es5.ts"(){"use strict";fa()}});function bMe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function gpe(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,f=e.getCompilerOptions(),d=Do(f),g=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=oe;let v,S,x,A,w,C,P,F,B,q,W=1,Y,R,ie,$,fe=0,Z=0,U,re,le,_e,ge,X,Ve,we;return y_(e,ke);function ke(ye){if(ye.isDeclarationFile||!(ye.transformFlags&2048))return ye;let Et=xn(ye,Pe,e);return Bg(Et,e.readEmitHelpers()),Et}function Pe(ye){let Et=ye.transformFlags;return A?Ce(ye):x?Ie(ye):Ds(ye)&&ye.asteriskToken?Ne(ye):Et&2048?xn(ye,Pe,e):ye}function Ce(ye){switch(ye.kind){case 243:return dr(ye);case 244:return Se(ye);case 252:return Kt(ye);case 253:return ir(ye);default:return Ie(ye)}}function Ie(ye){switch(ye.kind){case 259:return Le(ye);case 215:return Ye(ye);case 174:case 175:return _t(ye);case 240:return Rt(ye);case 245:return Tt(ye);case 246:return nt(ye);case 249:return G(ye);case 248:return Q(ye);case 250:return je(ye);default:return ye.transformFlags&1048576?Be(ye):ye.transformFlags&4196352?xn(ye,Pe,e):ye}}function Be(ye){switch(ye.kind){case 223:return We(ye);case 357:return tn(ye);case 224:return _n(ye);case 226:return Gt(ye);case 206:return $n(ye);case 207:return Ni(ye);case 209:return Pi(ye);case 210:return gr(ye);case 211:return pt(ye);default:return xn(ye,Pe,e)}}function Ne(ye){switch(ye.kind){case 259:return Le(ye);case 215:return Ye(ye);default:return L.failBadSyntaxKind(ye)}}function Le(ye){if(ye.asteriskToken)ye=Ir(it(t.createFunctionDeclaration(ye.modifiers,void 0,ye.name,void 0,Sc(ye.parameters,Pe,e),void 0,ct(ye.body)),ye),ye);else{let Et=x,bn=A;x=!1,A=!1,ye=xn(ye,Pe,e),x=Et,A=bn}if(x){s(ye);return}else return ye}function Ye(ye){if(ye.asteriskToken)ye=Ir(it(t.createFunctionExpression(void 0,void 0,ye.name,void 0,Sc(ye.parameters,Pe,e),void 0,ct(ye.body)),ye),ye);else{let Et=x,bn=A;x=!1,A=!1,ye=xn(ye,Pe,e),x=Et,A=bn}return ye}function _t(ye){let Et=x,bn=A;return x=!1,A=!1,ye=xn(ye,Pe,e),x=Et,A=bn,ye}function ct(ye){let Et=[],bn=x,Ri=A,io=w,ee=C,Ze=P,At=F,xt=B,qt=q,Ln=W,mr=Y,Vr=R,gi=ie,Ea=$;x=!0,A=!1,w=void 0,C=void 0,P=void 0,F=void 0,B=void 0,q=void 0,W=1,Y=void 0,R=void 0,ie=void 0,$=t.createTempVariable(void 0),i();let bo=t.copyPrologue(ye.statements,Et,!1,Pe);nn(ye.statements,bo);let Qo=K();return em(Et,o()),Et.push(t.createReturnStatement(Qo)),x=bn,A=Ri,w=io,C=ee,P=Ze,F=At,B=xt,q=qt,W=Ln,Y=mr,R=Vr,ie=gi,$=Ea,it(t.createBlock(Et,ye.multiLine),ye)}function Rt(ye){if(ye.transformFlags&1048576){ri(ye.declarationList);return}else{if(Ya(ye)&2097152)return ye;for(let bn of ye.declarationList.declarations)l(bn.name);let Et=qI(ye.declarationList);return Et.length===0?void 0:Ho(t.createExpressionStatement(t.inlineExpressions(on(Et,vn))),ye)}}function We(ye){let Et=WH(ye);switch(Et){case 0:return zt(ye);case 1:return qe(ye);default:return L.assertNever(Et)}}function qe(ye){let{left:Et,right:bn}=ye;if(Ot(bn)){let Ri;switch(Et.kind){case 208:Ri=t.updatePropertyAccessExpression(Et,Te(L.checkDefined($e(Et.expression,Pe,Ju))),Et.name);break;case 209:Ri=t.updateElementAccessExpression(Et,Te(L.checkDefined($e(Et.expression,Pe,Ju))),Te(L.checkDefined($e(Et.argumentExpression,Pe,ot))));break;default:Ri=L.checkDefined($e(Et,Pe,ot));break}let io=ye.operatorToken.kind;return oN(io)?it(t.createAssignment(Ri,it(t.createBinaryExpression(Te(Ri),WL(io),L.checkDefined($e(bn,Pe,ot))),ye)),ye):t.updateBinaryExpression(ye,Ri,ye.operatorToken,L.checkDefined($e(bn,Pe,ot)))}return xn(ye,Pe,e)}function zt(ye){return Ot(ye.right)?Yce(ye.operatorToken.kind)?kn(ye):ye.operatorToken.kind===27?Qt(ye):t.updateBinaryExpression(ye,Te(L.checkDefined($e(ye.left,Pe,ot))),ye.operatorToken,L.checkDefined($e(ye.right,Pe,ot))):xn(ye,Pe,e)}function Qt(ye){let Et=[];return bn(ye.left),bn(ye.right),t.inlineExpressions(Et);function bn(Ri){ar(Ri)&&Ri.operatorToken.kind===27?(bn(Ri.left),bn(Ri.right)):(Ot(Ri)&&Et.length>0&&(wt(1,[t.createExpressionStatement(t.inlineExpressions(Et))]),Et=[]),Et.push(L.checkDefined($e(Ri,Pe,ot))))}}function tn(ye){let Et=[];for(let bn of ye.elements)ar(bn)&&bn.operatorToken.kind===27?Et.push(Qt(bn)):(Ot(bn)&&Et.length>0&&(wt(1,[t.createExpressionStatement(t.inlineExpressions(Et))]),Et=[]),Et.push(L.checkDefined($e(bn,Pe,ot))));return t.inlineExpressions(Et)}function kn(ye){let Et=yt(),bn=j();return qs(bn,L.checkDefined($e(ye.left,Pe,ot)),ye.left),ye.operatorToken.kind===55?jt(Et,bn,ye.left):As(Et,bn,ye.left),qs(bn,L.checkDefined($e(ye.right,Pe,ot)),ye.right),lt(Et),bn}function _n(ye){if(Ot(ye.whenTrue)||Ot(ye.whenFalse)){let Et=yt(),bn=yt(),Ri=j();return jt(Et,L.checkDefined($e(ye.condition,Pe,ot)),ye.condition),qs(Ri,L.checkDefined($e(ye.whenTrue,Pe,ot)),ye.whenTrue),Rs(bn),lt(Et),qs(Ri,L.checkDefined($e(ye.whenFalse,Pe,ot)),ye.whenFalse),lt(bn),Ri}return xn(ye,Pe,e)}function Gt(ye){let Et=yt(),bn=$e(ye.expression,Pe,ot);if(ye.asteriskToken){let Ri=Ya(ye.expression)&16777216?bn:it(r().createValuesHelper(bn),ye);yc(Ri,ye)}else Ql(bn,ye);return lt(Et),Pc(ye)}function $n(ye){return ui(ye.elements,void 0,void 0,ye.multiLine)}function ui(ye,Et,bn,Ri){let io=Ke(ye),ee;if(io>0){ee=j();let xt=On(ye,Pe,ot,0,io);qs(ee,t.createArrayLiteralExpression(Et?[Et,...xt]:xt)),Et=void 0}let Ze=ou(ye,At,[],io);return ee?t.createArrayConcatCall(ee,[t.createArrayLiteralExpression(Ze,Ri)]):it(t.createArrayLiteralExpression(Et?[Et,...Ze]:Ze,Ri),bn);function At(xt,qt){if(Ot(qt)&&xt.length>0){let Ln=ee!==void 0;ee||(ee=j()),qs(ee,Ln?t.createArrayConcatCall(ee,[t.createArrayLiteralExpression(xt,Ri)]):t.createArrayLiteralExpression(Et?[Et,...xt]:xt,Ri)),Et=void 0,xt=[]}return xt.push(L.checkDefined($e(qt,Pe,ot))),xt}}function Ni(ye){let Et=ye.properties,bn=ye.multiLine,Ri=Ke(Et),io=j();qs(io,t.createObjectLiteralExpression(On(Et,Pe,Og,0,Ri),bn));let ee=ou(Et,Ze,[],Ri);return ee.push(bn?mu(go(it(t.cloneNode(io),io),io.parent)):io),t.inlineExpressions(ee);function Ze(At,xt){Ot(xt)&&At.length>0&&(ss(t.createExpressionStatement(t.inlineExpressions(At))),At=[]);let qt=ede(t,ye,xt,io),Ln=$e(qt,Pe,ot);return Ln&&(bn&&mu(Ln),At.push(Ln)),At}}function Pi(ye){return Ot(ye.argumentExpression)?t.updateElementAccessExpression(ye,Te(L.checkDefined($e(ye.expression,Pe,Ju))),L.checkDefined($e(ye.argumentExpression,Pe,ot))):xn(ye,Pe,e)}function gr(ye){if(!Dd(ye)&&mn(ye.arguments,Ot)){let{target:Et,thisArg:bn}=t.createCallBinding(ye.expression,l,d,!0);return Ir(it(t.createFunctionApplyCall(Te(L.checkDefined($e(Et,Pe,Ju))),bn,ui(ye.arguments)),ye),ye)}return xn(ye,Pe,e)}function pt(ye){if(mn(ye.arguments,Ot)){let{target:Et,thisArg:bn}=t.createCallBinding(t.createPropertyAccessExpression(ye.expression,"bind"),l);return Ir(it(t.createNewExpression(t.createFunctionApplyCall(Te(L.checkDefined($e(Et,Pe,ot))),bn,ui(ye.arguments,t.createVoidZero())),void 0,[]),ye),ye)}return xn(ye,Pe,e)}function nn(ye,Et=0){let bn=ye.length;for(let Ri=Et;Ri<bn;Ri++)pn(ye[Ri])}function Dt(ye){Va(ye)?nn(ye.statements):pn(ye)}function pn(ye){let Et=A;A||(A=Ot(ye)),An(ye),A=Et}function An(ye){switch(ye.kind){case 238:return Kn(ye);case 241:return hi(ye);case 242:return Ht(ye);case 243:return En(ye);case 244:return Cr(ye);case 245:return at(ye);case 246:return ve(ye);case 248:return ce(ye);case 249:return ue(ye);case 250:return Oe(ye);case 251:return Ge(ye);case 252:return kt(ye);case 253:return ln(ye);case 254:return ae(ye);case 255:return rt(ye);default:return ss($e(ye,Pe,ca))}}function Kn(ye){Ot(ye)?nn(ye.statements):ss($e(ye,Pe,ca))}function hi(ye){ss($e(ye,Pe,ca))}function ri(ye){for(let ee of ye.declarations){let Ze=t.cloneNode(ee.name);hl(Ze,ee.name),l(Ze)}let Et=qI(ye),bn=Et.length,Ri=0,io=[];for(;Ri<bn;){for(let ee=Ri;ee<bn;ee++){let Ze=Et[ee];if(Ot(Ze.initializer)&&io.length>0)break;io.push(vn(Ze))}io.length&&(ss(t.createExpressionStatement(t.inlineExpressions(io))),Ri+=io.length,io=[])}}function vn(ye){return Ho(t.createAssignment(Ho(t.cloneNode(ye.name),ye.name),L.checkDefined($e(ye.initializer,Pe,ot))),ye)}function Ht(ye){if(Ot(ye))if(Ot(ye.thenStatement)||Ot(ye.elseStatement)){let Et=yt(),bn=ye.elseStatement?yt():void 0;jt(ye.elseStatement?bn:Et,L.checkDefined($e(ye.expression,Pe,ot)),ye.expression),Dt(ye.thenStatement),ye.elseStatement&&(Rs(Et),lt(bn),Dt(ye.elseStatement)),lt(Et)}else ss($e(ye,Pe,ca));else ss($e(ye,Pe,ca))}function En(ye){if(Ot(ye)){let Et=yt(),bn=yt();xi(Et),lt(bn),Dt(ye.statement),lt(Et),As(bn,L.checkDefined($e(ye.expression,Pe,ot))),Nr()}else ss($e(ye,Pe,ca))}function dr(ye){return A?(Hi(),ye=xn(ye,Pe,e),Nr(),ye):xn(ye,Pe,e)}function Cr(ye){if(Ot(ye)){let Et=yt(),bn=xi(Et);lt(Et),jt(bn,L.checkDefined($e(ye.expression,Pe,ot))),Dt(ye.statement),Rs(Et),Nr()}else ss($e(ye,Pe,ca))}function Se(ye){return A?(Hi(),ye=xn(ye,Pe,e),Nr(),ye):xn(ye,Pe,e)}function at(ye){if(Ot(ye)){let Et=yt(),bn=yt(),Ri=xi(bn);if(ye.initializer){let io=ye.initializer;pu(io)?ri(io):ss(it(t.createExpressionStatement(L.checkDefined($e(io,Pe,ot))),io))}lt(Et),ye.condition&&jt(Ri,L.checkDefined($e(ye.condition,Pe,ot))),Dt(ye.statement),lt(bn),ye.incrementor&&ss(it(t.createExpressionStatement(L.checkDefined($e(ye.incrementor,Pe,ot))),ye.incrementor)),Rs(Et),Nr()}else ss($e(ye,Pe,ca))}function Tt(ye){A&&Hi();let Et=ye.initializer;if(Et&&pu(Et)){for(let Ri of Et.declarations)l(Ri.name);let bn=qI(Et);ye=t.updateForStatement(ye,bn.length>0?t.inlineExpressions(on(bn,vn)):void 0,$e(ye.condition,Pe,ot),$e(ye.incrementor,Pe,ot),jf(ye.statement,Pe,e))}else ye=xn(ye,Pe,e);return A&&Nr(),ye}function ve(ye){if(Ot(ye)){let Et=j(),bn=j(),Ri=j(),io=t.createLoopVariable(),ee=ye.initializer;l(io),qs(Et,L.checkDefined($e(ye.expression,Pe,ot))),qs(bn,t.createArrayLiteralExpression()),ss(t.createForInStatement(Ri,Et,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(bn,"push"),void 0,[Ri])))),qs(io,t.createNumericLiteral(0));let Ze=yt(),At=yt(),xt=xi(At);lt(Ze),jt(xt,t.createLessThan(io,t.createPropertyAccessExpression(bn,"length"))),qs(Ri,t.createElementAccessExpression(bn,io)),jt(At,t.createBinaryExpression(Ri,101,Et));let qt;if(pu(ee)){for(let Ln of ee.declarations)l(Ln.name);qt=t.cloneNode(ee.declarations[0].name)}else qt=L.checkDefined($e(ee,Pe,ot)),L.assert(Ju(qt));qs(qt,Ri),Dt(ye.statement),lt(At),ss(t.createExpressionStatement(t.createPostfixIncrement(io))),Rs(Ze),Nr()}else ss($e(ye,Pe,ca))}function nt(ye){A&&Hi();let Et=ye.initializer;if(pu(Et)){for(let bn of Et.declarations)l(bn.name);ye=t.updateForInStatement(ye,Et.declarations[0].name,L.checkDefined($e(ye.expression,Pe,ot)),L.checkDefined($e(ye.statement,Pe,ca,t.liftToBlock)))}else ye=xn(ye,Pe,e);return A&&Nr(),ye}function ce(ye){let Et=aa(ye.label?vr(ye.label):void 0);Et>0?Rs(Et,ye):ss(ye)}function Q(ye){if(A){let Et=aa(ye.label&&vr(ye.label));if(Et>0)return Ll(Et,ye)}return xn(ye,Pe,e)}function ue(ye){let Et=ro(ye.label?vr(ye.label):void 0);Et>0?Rs(Et,ye):ss(ye)}function G(ye){if(A){let Et=ro(ye.label&&vr(ye.label));if(Et>0)return Ll(Et,ye)}return xn(ye,Pe,e)}function Oe(ye){yu($e(ye.expression,Pe,ot),ye)}function je(ye){return md($e(ye.expression,Pe,ot),ye)}function Ge(ye){Ot(ye)?(ei(Te(L.checkDefined($e(ye.expression,Pe,ot)))),Dt(ye.statement),Kr()):ss($e(ye,Pe,ca))}function kt(ye){if(Ot(ye.caseBlock)){let Et=ye.caseBlock,bn=Et.clauses.length,Ri=Qr(),io=Te(L.checkDefined($e(ye.expression,Pe,ot))),ee=[],Ze=-1;for(let qt=0;qt<bn;qt++){let Ln=Et.clauses[qt];ee.push(yt()),Ln.kind===293&&Ze===-1&&(Ze=qt)}let At=0,xt=[];for(;At<bn;){let qt=0;for(let Ln=At;Ln<bn;Ln++){let mr=Et.clauses[Ln];if(mr.kind===292){if(Ot(mr.expression)&&xt.length>0)break;xt.push(t.createCaseClause(L.checkDefined($e(mr.expression,Pe,ot)),[Ll(ee[Ln],mr.expression)]))}else qt++}xt.length&&(ss(t.createSwitchStatement(io,t.createCaseBlock(xt))),At+=xt.length,xt=[]),qt>0&&(At+=qt,qt=0)}Ze>=0?Rs(ee[Ze]):Rs(Ri);for(let qt=0;qt<bn;qt++)lt(ee[qt]),nn(Et.clauses[qt].statements);Wi()}else ss($e(ye,Pe,ca))}function Kt(ye){return A&&Fo(),ye=xn(ye,Pe,e),A&&Wi(),ye}function ln(ye){Ot(ye)?(Ki(vr(ye.label)),Dt(ye.statement),kc()):ss($e(ye,Pe,ca))}function ir(ye){return A&&gn(vr(ye.label)),ye=xn(ye,Pe,e),A&&kc(),ye}function ae(ye){var Et;se(L.checkDefined($e((Et=ye.expression)!=null?Et:t.createVoidZero(),Pe,ot)),ye)}function rt(ye){Ot(ye)?(Si(),Dt(ye.tryBlock),ye.catchClause&&(Ja(ye.catchClause.variableDeclaration),Dt(ye.catchClause.block)),ye.finallyBlock&&(Za(),Dt(ye.finallyBlock)),Fa()):ss(xn(ye,Pe,e))}function Ot(ye){return!!ye&&(ye.transformFlags&1048576)!==0}function Ke(ye){let Et=ye.length;for(let bn=0;bn<Et;bn++)if(Ot(ye[bn]))return bn;return-1}function oe(ye,Et){return Et=m(ye,Et),ye===1?pe(Et):Et}function pe(ye){return Re(ye)?z(ye):ye}function z(ye){if(!tc(ye)&&v&&v.has(vr(ye))){let Et=ec(ye);if(Re(Et)&&Et.parent){let bn=g.getReferencedValueDeclaration(Et);if(bn){let Ri=S[sc(bn)];if(Ri){let io=go(it(t.cloneNode(Ri),Ri),Ri.parent);return Ho(io,ye),hl(io,ye),io}}}}return ye}function Te(ye){if(tc(ye)||Ya(ye)&8192)return ye;let Et=t.createTempVariable(l);return qs(Et,ye,ye),Et}function j(ye){let Et=ye?t.createUniqueName(ye):t.createTempVariable(void 0);return l(Et),Et}function yt(){B||(B=[]);let ye=W;return W++,B[ye]=-1,ye}function lt(ye){L.assert(B!==void 0,"No labels were defined."),B[ye]=Y?Y.length:0}function Qe(ye){w||(w=[],P=[],C=[],F=[]);let Et=P.length;return P[Et]=0,C[Et]=Y?Y.length:0,w[Et]=ye,F.push(ye),Et}function Vt(){let ye=Hn();if(ye===void 0)return L.fail("beginBlock was never called.");let Et=P.length;return P[Et]=1,C[Et]=Y?Y.length:0,w[Et]=ye,F.pop(),ye}function Hn(){return Os(F)}function jr(){let ye=Hn();return ye&&ye.kind}function ei(ye){let Et=yt(),bn=yt();lt(Et),Qe({kind:1,expression:ye,startLabel:Et,endLabel:bn})}function Kr(){L.assert(jr()===1);let ye=Vt();lt(ye.endLabel)}function Si(){let ye=yt(),Et=yt();return lt(ye),Qe({kind:0,state:0,startLabel:ye,endLabel:Et}),bl(),Et}function Ja(ye){L.assert(jr()===0);let Et;if(tc(ye.name))Et=ye.name,l(ye.name);else{let ee=vr(ye.name);Et=j(ee),v||(v=new Map,S=[],e.enableSubstitution(79)),v.set(ee,!0),S[sc(ye)]=Et}let bn=Hn();L.assert(bn.state<1);let Ri=bn.endLabel;Rs(Ri);let io=yt();lt(io),bn.state=1,bn.catchVariable=Et,bn.catchLabel=io,qs(Et,t.createCallExpression(t.createPropertyAccessExpression($,"sent"),void 0,[])),bl()}function Za(){L.assert(jr()===0);let ye=Hn();L.assert(ye.state<2);let Et=ye.endLabel;Rs(Et);let bn=yt();lt(bn),ye.state=2,ye.finallyLabel=bn}function Fa(){L.assert(jr()===0);let ye=Vt();ye.state<2?Rs(ye.endLabel):ht(),lt(ye.endLabel),bl(),ye.state=3}function Hi(){Qe({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function xi(ye){let Et=yt();return Qe({kind:3,isScript:!1,breakLabel:Et,continueLabel:ye}),Et}function Nr(){L.assert(jr()===3);let ye=Vt(),Et=ye.breakLabel;ye.isScript||lt(Et)}function Fo(){Qe({kind:2,isScript:!0,breakLabel:-1})}function Qr(){let ye=yt();return Qe({kind:2,isScript:!1,breakLabel:ye}),ye}function Wi(){L.assert(jr()===2);let ye=Vt(),Et=ye.breakLabel;ye.isScript||lt(Et)}function gn(ye){Qe({kind:4,isScript:!0,labelText:ye,breakLabel:-1})}function Ki(ye){let Et=yt();Qe({kind:4,isScript:!1,labelText:ye,breakLabel:Et})}function kc(){L.assert(jr()===4);let ye=Vt();ye.isScript||lt(ye.breakLabel)}function Ps(ye){return ye.kind===2||ye.kind===3}function mc(ye){return ye.kind===4}function xc(ye){return ye.kind===3}function hc(ye,Et){for(let bn=Et;bn>=0;bn--){let Ri=F[bn];if(mc(Ri)){if(Ri.labelText===ye)return!0}else break}return!1}function ro(ye){if(F)if(ye)for(let Et=F.length-1;Et>=0;Et--){let bn=F[Et];if(mc(bn)&&bn.labelText===ye)return bn.breakLabel;if(Ps(bn)&&hc(ye,Et-1))return bn.breakLabel}else for(let Et=F.length-1;Et>=0;Et--){let bn=F[Et];if(Ps(bn))return bn.breakLabel}return 0}function aa(ye){if(F)if(ye)for(let Et=F.length-1;Et>=0;Et--){let bn=F[Et];if(xc(bn)&&hc(ye,Et-1))return bn.continueLabel}else for(let Et=F.length-1;Et>=0;Et--){let bn=F[Et];if(xc(bn))return bn.continueLabel}return 0}function Co(ye){if(ye!==void 0&&ye>0){q===void 0&&(q=[]);let Et=t.createNumericLiteral(-1);return q[ye]===void 0?q[ye]=[Et]:q[ye].push(Et),Et}return t.createOmittedExpression()}function gc(ye){let Et=t.createNumericLiteral(ye);return R4(Et,3,bMe(ye)),Et}function Ll(ye,Et){return L.assertLessThan(0,ye,"Invalid label"),it(t.createReturnStatement(t.createArrayLiteralExpression([gc(3),Co(ye)])),Et)}function md(ye,Et){return it(t.createReturnStatement(t.createArrayLiteralExpression(ye?[gc(2),ye]:[gc(2)])),Et)}function Pc(ye){return it(t.createCallExpression(t.createPropertyAccessExpression($,"sent"),void 0,[]),ye)}function bl(){wt(0)}function ss(ye){ye?wt(1,[ye]):bl()}function qs(ye,Et,bn){wt(2,[ye,Et],bn)}function Rs(ye,Et){wt(3,[ye],Et)}function As(ye,Et,bn){wt(4,[ye,Et],bn)}function jt(ye,Et,bn){wt(5,[ye,Et],bn)}function yc(ye,Et){wt(7,[ye],Et)}function Ql(ye,Et){wt(6,[ye],Et)}function yu(ye,Et){wt(8,[ye],Et)}function se(ye,Et){wt(9,[ye],Et)}function ht(){wt(10)}function wt(ye,Et,bn){Y===void 0&&(Y=[],R=[],ie=[]),B===void 0&<(yt());let Ri=Y.length;Y[Ri]=ye,R[Ri]=Et,ie[Ri]=bn}function K(){fe=0,Z=0,U=void 0,re=!1,le=!1,_e=void 0,ge=void 0,X=void 0,Ve=void 0,we=void 0;let ye=Xe();return r().createGeneratorHelper(Jn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,$)],void 0,t.createBlock(ye,ye.length>0)),1048576))}function Xe(){if(Y){for(let ye=0;ye<Y.length;ye++)vo(ye);Yt(Y.length)}else Yt(0);if(_e){let ye=t.createPropertyAccessExpression($,"label"),Et=t.createSwitchStatement(ye,t.createCaseBlock(_e));return[mu(Et)]}return ge||[]}function ft(){ge&&(yr(!re),re=!1,le=!1,Z++)}function Yt(ye){pr(ye)&&(ta(ye),we=void 0,Gu(void 0,void 0)),ge&&_e&&yr(!1),Go()}function pr(ye){if(!le)return!0;if(!B||!q)return!1;for(let Et=0;Et<B.length;Et++)if(B[Et]===ye&&q[Et])return!0;return!1}function yr(ye){if(_e||(_e=[]),ge){if(we)for(let Et=we.length-1;Et>=0;Et--){let bn=we[Et];ge=[t.createWithStatement(bn.expression,t.createBlock(ge))]}if(Ve){let{startLabel:Et,catchLabel:bn,finallyLabel:Ri,endLabel:io}=Ve;ge.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression($,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Co(Et),Co(bn),Co(Ri),Co(io)])]))),Ve=void 0}ye&&ge.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression($,"label"),t.createNumericLiteral(Z+1))))}_e.push(t.createCaseClause(t.createNumericLiteral(Z),ge||[])),ge=void 0}function ta(ye){if(B)for(let Et=0;Et<B.length;Et++)B[Et]===ye&&(ft(),U===void 0&&(U=[]),U[Z]===void 0?U[Z]=[Et]:U[Z].push(Et))}function Go(){if(q!==void 0&&U!==void 0)for(let ye=0;ye<U.length;ye++){let Et=U[ye];if(Et!==void 0)for(let bn of Et){let Ri=q[bn];if(Ri!==void 0)for(let io of Ri)io.text=String(ye)}}}function Ka(ye){if(w)for(;fe<P.length&&C[fe]<=ye;fe++){let Et=w[fe],bn=P[fe];switch(Et.kind){case 0:bn===0?(X||(X=[]),ge||(ge=[]),X.push(Ve),Ve=Et):bn===1&&(Ve=X.pop());break;case 1:bn===0?(we||(we=[]),we.push(Et)):bn===1&&we.pop();break}}}function vo(ye){if(ta(ye),Ka(ye),re)return;re=!1,le=!1;let Et=Y[ye];if(Et===0)return;if(Et===10)return nf();let bn=R[ye];if(Et===1)return ka(bn[0]);let Ri=ie[ye];switch(Et){case 2:return Hs(bn[0],bn[1],Ri);case 3:return $o(bn[0],Ri);case 4:return jo(bn[0],bn[1],Ri);case 5:return Ws(bn[0],bn[1],Ri);case 6:return hd(bn[0],Ri);case 7:return vc(bn[0],Ri);case 8:return Gu(bn[0],Ri);case 9:return Uc(bn[0],Ri)}}function ka(ye){ye&&(ge?ge.push(ye):ge=[ye])}function Hs(ye,Et,bn){ka(it(t.createExpressionStatement(t.createAssignment(ye,Et)),bn))}function Uc(ye,Et){re=!0,le=!0,ka(it(t.createThrowStatement(ye),Et))}function Gu(ye,Et){re=!0,le=!0,ka(Jn(it(t.createReturnStatement(t.createArrayLiteralExpression(ye?[gc(2),ye]:[gc(2)])),Et),768))}function $o(ye,Et){re=!0,ka(Jn(it(t.createReturnStatement(t.createArrayLiteralExpression([gc(3),Co(ye)])),Et),768))}function jo(ye,Et,bn){ka(Jn(t.createIfStatement(Et,Jn(it(t.createReturnStatement(t.createArrayLiteralExpression([gc(3),Co(ye)])),bn),768)),1))}function Ws(ye,Et,bn){ka(Jn(t.createIfStatement(t.createLogicalNot(Et),Jn(it(t.createReturnStatement(t.createArrayLiteralExpression([gc(3),Co(ye)])),bn),768)),1))}function hd(ye,Et){re=!0,ka(Jn(it(t.createReturnStatement(t.createArrayLiteralExpression(ye?[gc(4),ye]:[gc(4)])),Et),768))}function vc(ye,Et){re=!0,ka(Jn(it(t.createReturnStatement(t.createArrayLiteralExpression([gc(5),ye])),Et),768))}function nf(){re=!0,ka(t.createReturnStatement(t.createArrayLiteralExpression([gc(7)])))}}var EMe=gt({"src/compiler/transformers/generators.ts"(){"use strict";fa()}});function FK(e){function t(Q){switch(Q){case 2:return R;case 3:return ie;default:return Y}}let{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,f=e.getCompilerOptions(),d=e.getEmitResolver(),g=e.getEmitHost(),m=Do(f),v=Rl(f),S=e.onSubstituteNode,x=e.onEmitNode;e.onSubstituteNode=dr,e.onEmitNode=En,e.enableSubstitution(210),e.enableSubstitution(212),e.enableSubstitution(79),e.enableSubstitution(223),e.enableSubstitution(300),e.enableEmitNotification(308);let A=[],w=[],C,P,F=[],B;return y_(e,q);function q(Q){if(Q.isDeclarationFile||!(aS(Q,f)||Q.transformFlags&8388608||Mf(Q)&&l4(f)&&Ss(f)))return Q;C=Q,P=xK(e,Q,d,f),A[sc(Q)]=P;let G=t(v)(Q);return C=void 0,P=void 0,B=!1,G}function W(){return!!(!P.exportEquals&&Lc(C))}function Y(Q){o();let ue=[],G=Uf(f,"alwaysStrict")||!f.noImplicitUseStrict&&Lc(C),Oe=r.copyPrologue(Q.statements,ue,G&&!Mf(Q),re);if(W()&&Sn(ue,hi()),Fn(P.exportedNames))for(let kt=0;kt<P.exportedNames.length;kt+=50)Sn(ue,r.createExpressionStatement(ou(P.exportedNames.slice(kt,kt+50),(Kt,ln)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(vr(ln))),Kt),r.createVoidZero())));Sn(ue,$e(P.externalHelpersImportDeclaration,re,ca)),si(ue,On(Q.statements,re,ca,Oe)),U(ue,!1),em(ue,s());let je=r.updateSourceFile(Q,it(r.createNodeArray(ue),Q.statements));return Bg(je,e.readEmitHelpers()),je}function R(Q){let ue=r.createIdentifier("define"),G=xO(r,Q,g,f),Oe=Mf(Q)&&Q,{aliasedModuleNames:je,unaliasedModuleNames:Ge,importAliasNames:kt}=$(Q,!0),Kt=r.updateSourceFile(Q,it(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(ue,void 0,[...G?[G]:[],r.createArrayLiteralExpression(Oe?Je:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...je,...Ge]),Oe?Oe.statements.length?Oe.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...kt],void 0,Z(Q))]))]),Q.statements));return Bg(Kt,e.readEmitHelpers()),Kt}function ie(Q){let{aliasedModuleNames:ue,unaliasedModuleNames:G,importAliasNames:Oe}=$(Q,!1),je=xO(r,Q,g,f),Ge=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,it(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),Jn(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...je?[je]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...ue,...G]),r.createIdentifier("factory")]))])))],!0),void 0)),kt=r.updateSourceFile(Q,it(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Ge,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...Oe],void 0,Z(Q))]))]),Q.statements));return Bg(kt,e.readEmitHelpers()),kt}function $(Q,ue){let G=[],Oe=[],je=[];for(let Ge of Q.amdDependencies)Ge.name?(G.push(r.createStringLiteral(Ge.path)),je.push(r.createParameterDeclaration(void 0,void 0,Ge.name))):Oe.push(r.createStringLiteral(Ge.path));for(let Ge of P.externalImports){let kt=jS(r,Ge,C,g,d,f),Kt=C2(r,Ge,C);kt&&(ue&&Kt?(Jn(Kt,8),G.push(kt),je.push(r.createParameterDeclaration(void 0,void 0,Kt))):Oe.push(kt))}return{aliasedModuleNames:G,unaliasedModuleNames:Oe,importAliasNames:je}}function fe(Q){if(Nl(Q)||Il(Q)||!jS(r,Q,C,g,d,f))return;let ue=C2(r,Q,C),G=ct(Q,ue);if(G!==ue)return r.createExpressionStatement(r.createAssignment(ue,G))}function Z(Q){o();let ue=[],G=r.copyPrologue(Q.statements,ue,!f.noImplicitUseStrict,re);W()&&Sn(ue,hi()),Fn(P.exportedNames)&&Sn(ue,r.createExpressionStatement(ou(P.exportedNames,(je,Ge)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(vr(Ge))),je),r.createVoidZero()))),Sn(ue,$e(P.externalHelpersImportDeclaration,re,ca)),v===2&&si(ue,Zi(P.externalImports,fe)),si(ue,On(Q.statements,re,ca,G)),U(ue,!0),em(ue,s());let Oe=r.createBlock(ue,!0);return B&&xS(Oe,ype),Oe}function U(Q,ue){if(P.exportEquals){let G=$e(P.exportEquals.expression,_e,ot);if(G)if(ue){let Oe=r.createReturnStatement(G);it(Oe,P.exportEquals),Jn(Oe,3840),Q.push(Oe)}else{let Oe=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),G));it(Oe,P.exportEquals),Jn(Oe,3072),Q.push(Oe)}}}function re(Q){switch(Q.kind){case 269:return Rt(Q);case 268:return qe(Q);case 275:return zt(Q);case 274:return Qt(Q);case 240:return _n(Q);case 259:return tn(Q);case 260:return kn(Q);case 358:return ui(Q);case 359:return Pi(Q);default:return _e(Q)}}function le(Q,ue){if(!(Q.transformFlags&276828160))return Q;switch(Q.kind){case 245:return we(Q);case 241:return ke(Q);case 214:return Pe(Q,ue);case 356:return Ce(Q,ue);case 210:if(Dd(Q)&&C.impliedNodeFormat===void 0)return Be(Q);break;case 223:if(Fg(Q))return Ve(Q,ue);break;case 221:case 222:return Ie(Q,ue)}return xn(Q,_e,e)}function _e(Q){return le(Q,!1)}function ge(Q){return le(Q,!0)}function X(Q){if(rs(Q))for(let ue of Q.properties)switch(ue.kind){case 299:if(X(ue.initializer))return!0;break;case 300:if(X(ue.name))return!0;break;case 301:if(X(ue.expression))return!0;break;case 171:case 174:case 175:return!1;default:L.assertNever(ue,"Unhandled object member kind")}else if(fu(Q)){for(let ue of Q.elements)if(Km(ue)){if(X(ue.expression))return!0}else if(X(ue))return!0}else if(Re(Q))return Fn(ce(Q))>(E3(Q)?1:0);return!1}function Ve(Q,ue){return X(Q.left)?KT(Q,_e,e,0,!ue,Gt):xn(Q,_e,e)}function we(Q){return r.updateForStatement(Q,$e(Q.initializer,ge,pp),$e(Q.condition,_e,ot),$e(Q.incrementor,ge,ot),jf(Q.statement,_e,e))}function ke(Q){return r.updateExpressionStatement(Q,$e(Q.expression,ge,ot))}function Pe(Q,ue){return r.updateParenthesizedExpression(Q,$e(Q.expression,ue?ge:_e,ot))}function Ce(Q,ue){return r.updatePartiallyEmittedExpression(Q,$e(Q.expression,ue?ge:_e,ot))}function Ie(Q,ue){if((Q.operator===45||Q.operator===46)&&Re(Q.operand)&&!tc(Q.operand)&&!rv(Q.operand)&&!wR(Q.operand)){let G=ce(Q.operand);if(G){let Oe,je=$e(Q.operand,_e,ot);tv(Q)?je=r.updatePrefixUnaryExpression(Q,je):(je=r.updatePostfixUnaryExpression(Q,je),ue||(Oe=r.createTempVariable(l),je=r.createAssignment(Oe,je),it(je,Q)),je=r.createComma(je,r.cloneNode(Q.operand)),it(je,Q));for(let Ge of G)F[zo(je)]=!0,je=vn(Ge,je),it(je,Q);return Oe&&(F[zo(je)]=!0,je=r.createComma(je,Oe),it(je,Q)),je}}return xn(Q,_e,e)}function Be(Q){if(v===0&&m>=7)return xn(Q,_e,e);let ue=jS(r,Q,C,g,d,f),G=$e(Sl(Q.arguments),_e,ot),Oe=ue&&(!G||!yo(G)||G.text!==ue.text)?ue:G,je=!!(Q.transformFlags&16384);switch(f.module){case 2:return Le(Oe,je);case 3:return Ne(Oe??r.createVoidZero(),je);case 1:default:return Ye(Oe)}}function Ne(Q,ue){if(B=!0,Z0(Q)){let G=tc(Q)?Q:yo(Q)?r.createStringLiteralFromNode(Q):Jn(it(r.cloneNode(Q),Q),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Ye(Q),void 0,Le(G,ue))}else{let G=r.createTempVariable(l);return r.createComma(r.createAssignment(G,Q),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Ye(G,!0),void 0,Le(G,ue)))}}function Le(Q,ue){let G=r.createUniqueName("resolve"),Oe=r.createUniqueName("reject"),je=[r.createParameterDeclaration(void 0,void 0,G),r.createParameterDeclaration(void 0,void 0,Oe)],Ge=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([Q||r.createOmittedExpression()]),G,Oe]))]),kt;m>=2?kt=r.createArrowFunction(void 0,void 0,je,void 0,void 0,Ge):(kt=r.createFunctionExpression(void 0,void 0,void 0,void 0,je,void 0,Ge),ue&&Jn(kt,16));let Kt=r.createNewExpression(r.createIdentifier("Promise"),void 0,[kt]);return f_(f)?r.createCallExpression(r.createPropertyAccessExpression(Kt,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Kt}function Ye(Q,ue){let G=Q&&!Ap(Q)&&!ue,Oe=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,G?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(Q,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[Q])]:[]),je=r.createCallExpression(r.createIdentifier("require"),void 0,G?[r.createIdentifier("s")]:Q?[Q]:[]);f_(f)&&(je=i().createImportStarHelper(je));let Ge=G?[r.createParameterDeclaration(void 0,void 0,"s")]:[],kt;return m>=2?kt=r.createArrowFunction(void 0,void 0,Ge,void 0,void 0,je):kt=r.createFunctionExpression(void 0,void 0,void 0,void 0,Ge,void 0,r.createBlock([r.createReturnStatement(je)])),r.createCallExpression(r.createPropertyAccessExpression(Oe,"then"),void 0,[kt])}function _t(Q,ue){return!f_(f)||o_(Q)&2?ue:z_e(Q)?i().createImportStarHelper(ue):ue}function ct(Q,ue){return!f_(f)||o_(Q)&2?ue:vF(Q)?i().createImportStarHelper(ue):SK(Q)?i().createImportDefaultHelper(ue):ue}function Rt(Q){let ue,G=VA(Q);if(v!==2)if(Q.importClause){let Oe=[];G&&!lS(Q)?Oe.push(r.createVariableDeclaration(r.cloneNode(G.name),void 0,void 0,ct(Q,We(Q)))):(Oe.push(r.createVariableDeclaration(r.getGeneratedNameForNode(Q),void 0,void 0,ct(Q,We(Q)))),G&&lS(Q)&&Oe.push(r.createVariableDeclaration(r.cloneNode(G.name),void 0,void 0,r.getGeneratedNameForNode(Q)))),ue=Sn(ue,Ir(it(r.createVariableStatement(void 0,r.createVariableDeclarationList(Oe,m>=2?2:0)),Q),Q))}else return Ir(it(r.createExpressionStatement(We(Q)),Q),Q);else G&&lS(Q)&&(ue=Sn(ue,r.createVariableStatement(void 0,r.createVariableDeclarationList([Ir(it(r.createVariableDeclaration(r.cloneNode(G.name),void 0,void 0,r.getGeneratedNameForNode(Q)),Q),Q)],m>=2?2:0))));if(Ni(Q)){let Oe=sc(Q);w[Oe]=gr(w[Oe],Q)}else ue=gr(ue,Q);return zp(ue)}function We(Q){let ue=jS(r,Q,C,g,d,f),G=[];return ue&&G.push(ue),r.createCallExpression(r.createIdentifier("require"),void 0,G)}function qe(Q){L.assert(ab(Q),"import= for internal module references should be handled in an earlier transformer.");let ue;if(v!==2?Mr(Q,1)?ue=Sn(ue,Ir(it(r.createExpressionStatement(vn(Q.name,We(Q))),Q),Q)):ue=Sn(ue,Ir(it(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(Q.name),void 0,void 0,We(Q))],m>=2?2:0)),Q),Q)):Mr(Q,1)&&(ue=Sn(ue,Ir(it(r.createExpressionStatement(vn(r.getExportName(Q),r.getLocalName(Q))),Q),Q))),Ni(Q)){let G=sc(Q);w[G]=pt(w[G],Q)}else ue=pt(ue,Q);return zp(ue)}function zt(Q){if(!Q.moduleSpecifier)return;let ue=r.getGeneratedNameForNode(Q);if(Q.exportClause&&h_(Q.exportClause)){let G=[];v!==2&&G.push(Ir(it(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(ue,void 0,void 0,We(Q))])),Q),Q));for(let Oe of Q.exportClause.elements)if(m===0)G.push(Ir(it(r.createExpressionStatement(i().createCreateBindingHelper(ue,r.createStringLiteralFromNode(Oe.propertyName||Oe.name),Oe.propertyName?r.createStringLiteralFromNode(Oe.name):void 0)),Oe),Oe));else{let je=!!f_(f)&&!(o_(Q)&2)&&vr(Oe.propertyName||Oe.name)==="default",Ge=r.createPropertyAccessExpression(je?i().createImportDefaultHelper(ue):ue,Oe.propertyName||Oe.name);G.push(Ir(it(r.createExpressionStatement(vn(r.getExportName(Oe),Ge,void 0,!0)),Oe),Oe))}return zp(G)}else if(Q.exportClause){let G=[];return G.push(Ir(it(r.createExpressionStatement(vn(r.cloneNode(Q.exportClause.name),_t(Q,v!==2?We(Q):v6(Q)?ue:r.createIdentifier(vr(Q.exportClause.name))))),Q),Q)),zp(G)}else return Ir(it(r.createExpressionStatement(i().createExportStarHelper(v!==2?We(Q):ue)),Q),Q)}function Qt(Q){if(Q.isExportEquals)return;let ue,G=Q.original;if(G&&Ni(G)){let Oe=sc(Q);w[Oe]=Kn(w[Oe],r.createIdentifier("default"),$e(Q.expression,_e,ot),Q,!0)}else ue=Kn(ue,r.createIdentifier("default"),$e(Q.expression,_e,ot),Q,!0);return zp(ue)}function tn(Q){let ue;if(Mr(Q,1)?ue=Sn(ue,Ir(it(r.createFunctionDeclaration(On(Q.modifiers,Ht,Ha),Q.asteriskToken,r.getDeclarationName(Q,!0,!0),void 0,On(Q.parameters,_e,ha),void 0,xn(Q.body,_e,e)),Q),Q)):ue=Sn(ue,xn(Q,_e,e)),Ni(Q)){let G=sc(Q);w[G]=pn(w[G],Q)}else ue=pn(ue,Q);return zp(ue)}function kn(Q){let ue;if(Mr(Q,1)?ue=Sn(ue,Ir(it(r.createClassDeclaration(On(Q.modifiers,Ht,Ns),r.getDeclarationName(Q,!0,!0),void 0,On(Q.heritageClauses,_e,dd),On(Q.members,_e,_l)),Q),Q)):ue=Sn(ue,xn(Q,_e,e)),Ni(Q)){let G=sc(Q);w[G]=pn(w[G],Q)}else ue=pn(ue,Q);return zp(ue)}function _n(Q){let ue,G,Oe;if(Mr(Q,1)){let je,Ge=!1;for(let kt of Q.declarationList.declarations)if(Re(kt.name)&&rv(kt.name))if(je||(je=On(Q.modifiers,Ht,Ha)),kt.initializer){let Kt=r.updateVariableDeclaration(kt,kt.name,void 0,void 0,vn(kt.name,$e(kt.initializer,_e,ot)));G=Sn(G,Kt)}else G=Sn(G,kt);else if(kt.initializer)if(!La(kt.name)&&(xs(kt.initializer)||ms(kt.initializer)||_u(kt.initializer))){let Kt=r.createAssignment(it(r.createPropertyAccessExpression(r.createIdentifier("exports"),kt.name),kt.name),r.createIdentifier(l_(kt.name))),ln=r.createVariableDeclaration(kt.name,kt.exclamationToken,kt.type,$e(kt.initializer,_e,ot));G=Sn(G,ln),Oe=Sn(Oe,Kt),Ge=!0}else Oe=Sn(Oe,$n(kt));if(G&&(ue=Sn(ue,r.updateVariableStatement(Q,je,r.updateVariableDeclarationList(Q.declarationList,G)))),Oe){let kt=Ir(it(r.createExpressionStatement(r.inlineExpressions(Oe)),Q),Q);Ge&&ZR(kt),ue=Sn(ue,kt)}}else ue=Sn(ue,xn(Q,_e,e));if(Ni(Q)){let je=sc(Q);w[je]=nn(w[je],Q)}else ue=nn(ue,Q);return zp(ue)}function Gt(Q,ue,G){let Oe=ce(Q);if(Oe){let je=E3(Q)?ue:r.createAssignment(Q,ue);for(let Ge of Oe)Jn(je,8),je=vn(Ge,je,G);return je}return r.createAssignment(Q,ue)}function $n(Q){return La(Q.name)?KT($e(Q,_e,mW),_e,e,0,!1,Gt):r.createAssignment(it(r.createPropertyAccessExpression(r.createIdentifier("exports"),Q.name),Q.name),Q.initializer?$e(Q.initializer,_e,ot):r.createVoidZero())}function ui(Q){if(Ni(Q)&&Q.original.kind===240){let ue=sc(Q);w[ue]=nn(w[ue],Q.original)}return Q}function Ni(Q){return(Ya(Q)&8388608)!==0}function Pi(Q){let ue=sc(Q),G=w[ue];return G?(delete w[ue],Sn(G,Q)):Q}function gr(Q,ue){if(P.exportEquals)return Q;let G=ue.importClause;if(!G)return Q;G.name&&(Q=An(Q,G));let Oe=G.namedBindings;if(Oe)switch(Oe.kind){case 271:Q=An(Q,Oe);break;case 272:for(let je of Oe.elements)Q=An(Q,je,!0);break}return Q}function pt(Q,ue){return P.exportEquals?Q:An(Q,ue)}function nn(Q,ue){if(P.exportEquals)return Q;for(let G of ue.declarationList.declarations)Q=Dt(Q,G);return Q}function Dt(Q,ue){if(P.exportEquals)return Q;if(La(ue.name))for(let G of ue.name.elements)ol(G)||(Q=Dt(Q,G));else tc(ue.name)||(Q=An(Q,ue));return Q}function pn(Q,ue){if(P.exportEquals)return Q;if(Mr(ue,1)){let G=Mr(ue,1024)?r.createIdentifier("default"):r.getDeclarationName(ue);Q=Kn(Q,G,r.getLocalName(ue),ue)}return ue.name&&(Q=An(Q,ue)),Q}function An(Q,ue,G){let Oe=r.getDeclarationName(ue),je=P.exportSpecifiers.get(vr(Oe));if(je)for(let Ge of je)Q=Kn(Q,Ge.name,Oe,Ge.name,void 0,G);return Q}function Kn(Q,ue,G,Oe,je,Ge){return Q=Sn(Q,ri(ue,G,Oe,je,Ge)),Q}function hi(){let Q;return m===0?Q=r.createExpressionStatement(vn(r.createIdentifier("__esModule"),r.createTrue())):Q=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),Jn(Q,2097152),Q}function ri(Q,ue,G,Oe,je){let Ge=it(r.createExpressionStatement(vn(Q,ue,void 0,je)),G);return mu(Ge),Oe||Jn(Ge,3072),Ge}function vn(Q,ue,G,Oe){return it(Oe&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(Q),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(ue)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(Q)),ue),G)}function Ht(Q){switch(Q.kind){case 93:case 88:return}return Q}function En(Q,ue,G){ue.kind===308?(C=ue,P=A[sc(C)],x(Q,ue,G),C=void 0,P=void 0):x(Q,ue,G)}function dr(Q,ue){return ue=S(Q,ue),ue.id&&F[ue.id]?ue:Q===1?Se(ue):xf(ue)?Cr(ue):ue}function Cr(Q){let ue=Q.name,G=ve(ue);if(G!==ue){if(Q.objectAssignmentInitializer){let Oe=r.createAssignment(G,Q.objectAssignmentInitializer);return it(r.createPropertyAssignment(ue,Oe),Q)}return it(r.createPropertyAssignment(ue,G),Q)}return Q}function Se(Q){switch(Q.kind){case 79:return ve(Q);case 210:return at(Q);case 212:return Tt(Q);case 223:return nt(Q)}return Q}function at(Q){if(Re(Q.expression)){let ue=ve(Q.expression);if(F[zo(ue)]=!0,!Re(ue)&&!(Ya(Q.expression)&8192))return SS(r.updateCallExpression(Q,ue,void 0,Q.arguments),16)}return Q}function Tt(Q){if(Re(Q.tag)){let ue=ve(Q.tag);if(F[zo(ue)]=!0,!Re(ue)&&!(Ya(Q.tag)&8192))return SS(r.updateTaggedTemplateExpression(Q,ue,void 0,Q.template),16)}return Q}function ve(Q){var ue,G;if(Ya(Q)&8192){let Oe=SO(C);return Oe?r.createPropertyAccessExpression(Oe,Q):Q}else if(!(tc(Q)&&!(Q.emitNode.autoGenerate.flags&64))&&!rv(Q)){let Oe=d.getReferencedExportContainer(Q,E3(Q));if(Oe&&Oe.kind===308)return it(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(Q)),Q);let je=d.getReferencedImportDeclaration(Q);if(je){if(lm(je))return it(r.createPropertyAccessExpression(r.getGeneratedNameForNode(je.parent),r.createIdentifier("default")),Q);if($u(je)){let Ge=je.propertyName||je.name;return it(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((G=(ue=je.parent)==null?void 0:ue.parent)==null?void 0:G.parent)||je),r.cloneNode(Ge)),Q)}}}return Q}function nt(Q){if(Mg(Q.operatorToken.kind)&&Re(Q.left)&&!tc(Q.left)&&!rv(Q.left)&&!wR(Q.left)){let ue=ce(Q.left);if(ue){let G=Q;for(let Oe of ue)F[zo(G)]=!0,G=vn(Oe,G,Q);return G}}return Q}function ce(Q){if(!tc(Q)){let ue=d.getReferencedImportDeclaration(Q)||d.getReferencedValueDeclaration(Q);if(ue)return P&&P.exportedBindings[sc(ue)]}}}var ype,TMe=gt({"src/compiler/transformers/module/module.ts"(){"use strict";fa(),ype={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
| var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function vpe(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),f=e.getEmitHost(),d=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=je,e.onEmitNode=Oe,e.enableSubstitution(79),e.enableSubstitution(300),e.enableSubstitution(223),e.enableSubstitution(233),e.enableEmitNotification(308);let m=[],v=[],S=[],x=[],A=[],w,C,P,F,B,q,W;return y_(e,Y);function Y(oe){if(oe.isDeclarationFile||!(aS(oe,s)||oe.transformFlags&8388608))return oe;let pe=sc(oe);w=oe,q=oe,C=m[pe]=xK(e,oe,l,s),P=t.createUniqueName("exports"),S[pe]=P,F=A[pe]=t.createUniqueName("context");let z=R(C.externalImports),Te=ie(oe,z),j=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,F)],void 0,Te),yt=xO(t,oe,f,s),lt=t.createArrayLiteralExpression(on(z,Vt=>Vt.name)),Qe=Jn(t.updateSourceFile(oe,it(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,yt?[yt,lt,j]:[lt,j]))]),oe.statements)),2048);return Ss(s)||gue(Qe,Te,Vt=>!Vt.scoped),W&&(x[pe]=W,W=void 0),w=void 0,C=void 0,P=void 0,F=void 0,B=void 0,q=void 0,Qe}function R(oe){let pe=new Map,z=[];for(let Te of oe){let j=jS(t,Te,w,f,l,s);if(j){let yt=j.text,lt=pe.get(yt);lt!==void 0?z[lt].externalImports.push(Te):(pe.set(yt,z.length),z.push({name:j,externalImports:[Te]}))}}return z}function ie(oe,pe){let z=[];r();let Te=Uf(s,"alwaysStrict")||!s.noImplicitUseStrict&&Lc(w),j=t.copyPrologue(oe.statements,z,Te,U);z.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(F,t.createPropertyAccessExpression(F,"id")))]))),$e(C.externalHelpersImportDeclaration,U,ca);let yt=On(oe.statements,U,ca,j);si(z,B),em(z,i());let lt=$(z),Qe=oe.transformFlags&2097152?t.createModifiersFromModifierFlags(512):void 0,Vt=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",Z(lt,pe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Qe,void 0,void 0,void 0,[],void 0,t.createBlock(yt,!0)))],!0);return z.push(t.createReturnStatement(Vt)),t.createBlock(z,!0)}function $(oe){if(!C.hasExportStarsToExportValues)return;if(!C.exportedNames&&C.exportSpecifiers.size===0){let j=!1;for(let yt of C.externalImports)if(yt.kind===275&&yt.exportClause){j=!0;break}if(!j){let yt=fe(void 0);return oe.push(yt),yt.name}}let pe=[];if(C.exportedNames)for(let j of C.exportedNames)j.escapedText!=="default"&&pe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(j),t.createTrue()));let z=t.createUniqueName("exportedNames");oe.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(z,void 0,void 0,t.createObjectLiteralExpression(pe,!0))])));let Te=fe(z);return oe.push(Te),Te.name}function fe(oe){let pe=t.createUniqueName("exportStar"),z=t.createIdentifier("m"),Te=t.createIdentifier("n"),j=t.createIdentifier("exports"),yt=t.createStrictInequality(Te,t.createStringLiteral("default"));return oe&&(yt=t.createLogicalAnd(yt,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(oe,"hasOwnProperty"),void 0,[Te])))),t.createFunctionDeclaration(void 0,void 0,pe,void 0,[t.createParameterDeclaration(void 0,void 0,z)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(j,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Te)]),z,t.createBlock([Jn(t.createIfStatement(yt,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(j,Te),t.createElementAccessExpression(z,Te)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[j]))],!0))}function Z(oe,pe){let z=[];for(let Te of pe){let j=mn(Te.externalImports,Qe=>C2(t,Qe,w)),yt=j?t.getGeneratedNameForNode(j):t.createUniqueName(""),lt=[];for(let Qe of Te.externalImports){let Vt=C2(t,Qe,w);switch(Qe.kind){case 269:if(!Qe.importClause)break;case 268:L.assert(Vt!==void 0),lt.push(t.createExpressionStatement(t.createAssignment(Vt,yt))),Mr(Qe,1)&<.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(vr(Vt)),yt])));break;case 275:if(L.assert(Vt!==void 0),Qe.exportClause)if(h_(Qe.exportClause)){let Hn=[];for(let jr of Qe.exportClause.elements)Hn.push(t.createPropertyAssignment(t.createStringLiteral(vr(jr.name)),t.createElementAccessExpression(yt,t.createStringLiteral(vr(jr.propertyName||jr.name)))));lt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(Hn,!0)])))}else lt.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(vr(Qe.exportClause.name)),yt])));else lt.push(t.createExpressionStatement(t.createCallExpression(oe,void 0,[yt])));break}}z.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,yt)],void 0,t.createBlock(lt,!0)))}return t.createArrayLiteralExpression(z,!0)}function U(oe){switch(oe.kind){case 269:return re(oe);case 268:return _e(oe);case 275:return le(oe);case 274:return ge(oe);default:return Gt(oe)}}function re(oe){let pe;if(oe.importClause&&o(C2(t,oe,w)),Ye(oe)){let z=sc(oe);v[z]=ct(v[z],oe)}else pe=ct(pe,oe);return zp(pe)}function le(oe){L.assertIsDefined(oe)}function _e(oe){L.assert(ab(oe),"import= for internal module references should be handled in an earlier transformer.");let pe;if(o(C2(t,oe,w)),Ye(oe)){let z=sc(oe);v[z]=Rt(v[z],oe)}else pe=Rt(pe,oe);return zp(pe)}function ge(oe){if(oe.isExportEquals)return;let pe=$e(oe.expression,Cr,ot),z=oe.original;if(z&&Ye(z)){let Te=sc(oe);v[Te]=tn(v[Te],t.createIdentifier("default"),pe,!0)}else return kn(t.createIdentifier("default"),pe,!0)}function X(oe){if(Mr(oe,1)?B=Sn(B,t.updateFunctionDeclaration(oe,On(oe.modifiers,G,Ns),oe.asteriskToken,t.getDeclarationName(oe,!0,!0),void 0,On(oe.parameters,Cr,ha),void 0,$e(oe.body,Cr,Va))):B=Sn(B,xn(oe,Cr,e)),Ye(oe)){let pe=sc(oe);v[pe]=zt(v[pe],oe)}else B=zt(B,oe)}function Ve(oe){let pe,z=t.getLocalName(oe);if(o(z),pe=Sn(pe,it(t.createExpressionStatement(t.createAssignment(z,it(t.createClassExpression(On(oe.modifiers,G,Ns),oe.name,void 0,On(oe.heritageClauses,Cr,dd),On(oe.members,Cr,_l)),oe))),oe)),Ye(oe)){let Te=sc(oe);v[Te]=zt(v[Te],oe)}else pe=zt(pe,oe);return zp(pe)}function we(oe){if(!Pe(oe.declarationList))return $e(oe,Cr,ca);let pe,z=Mr(oe,1),Te=Ye(oe);for(let yt of oe.declarationList.declarations)yt.initializer?pe=Sn(pe,Ce(yt,z&&!Te)):ke(yt);let j;if(pe&&(j=Sn(j,it(t.createExpressionStatement(t.inlineExpressions(pe)),oe))),Te){let yt=sc(oe);v[yt]=We(v[yt],oe,z)}else j=We(j,oe,!1);return zp(j)}function ke(oe){if(La(oe.name))for(let pe of oe.name.elements)ol(pe)||ke(pe);else o(t.cloneNode(oe.name))}function Pe(oe){return(Ya(oe)&4194304)===0&&(q.kind===308||(ec(oe).flags&3)===0)}function Ce(oe,pe){let z=pe?Ie:Be;return La(oe.name)?KT(oe,Cr,e,0,!1,z):oe.initializer?z(oe.name,$e(oe.initializer,Cr,ot)):oe.name}function Ie(oe,pe,z){return Ne(oe,pe,z,!0)}function Be(oe,pe,z){return Ne(oe,pe,z,!1)}function Ne(oe,pe,z,Te){return o(t.cloneNode(oe)),Te?_n(oe,Ot(it(t.createAssignment(oe,pe),z))):Ot(it(t.createAssignment(oe,pe),z))}function Le(oe){if(Ye(oe)&&oe.original.kind===240){let pe=sc(oe),z=Mr(oe.original,1);v[pe]=We(v[pe],oe.original,z)}return oe}function Ye(oe){return(Ya(oe)&8388608)!==0}function _t(oe){let pe=sc(oe),z=v[pe];if(z)return delete v[pe],Sn(z,oe);{let Te=ec(oe);if(Ow(Te))return Sn(Qt(z,Te),oe)}return oe}function ct(oe,pe){if(C.exportEquals)return oe;let z=pe.importClause;if(!z)return oe;z.name&&(oe=Qt(oe,z));let Te=z.namedBindings;if(Te)switch(Te.kind){case 271:oe=Qt(oe,Te);break;case 272:for(let j of Te.elements)oe=Qt(oe,j);break}return oe}function Rt(oe,pe){return C.exportEquals?oe:Qt(oe,pe)}function We(oe,pe,z){if(C.exportEquals)return oe;for(let Te of pe.declarationList.declarations)(Te.initializer||z)&&(oe=qe(oe,Te,z));return oe}function qe(oe,pe,z){if(C.exportEquals)return oe;if(La(pe.name))for(let Te of pe.name.elements)ol(Te)||(oe=qe(oe,Te,z));else if(!tc(pe.name)){let Te;z&&(oe=tn(oe,pe.name,t.getLocalName(pe)),Te=vr(pe.name)),oe=Qt(oe,pe,Te)}return oe}function zt(oe,pe){if(C.exportEquals)return oe;let z;if(Mr(pe,1)){let Te=Mr(pe,1024)?t.createStringLiteral("default"):pe.name;oe=tn(oe,Te,t.getLocalName(pe)),z=l_(Te)}return pe.name&&(oe=Qt(oe,pe,z)),oe}function Qt(oe,pe,z){if(C.exportEquals)return oe;let Te=t.getDeclarationName(pe),j=C.exportSpecifiers.get(vr(Te));if(j)for(let yt of j)yt.name.escapedText!==z&&(oe=tn(oe,yt.name,Te));return oe}function tn(oe,pe,z,Te){return oe=Sn(oe,kn(pe,z,Te)),oe}function kn(oe,pe,z){let Te=t.createExpressionStatement(_n(oe,pe));return mu(Te),z||Jn(Te,3072),Te}function _n(oe,pe){let z=Re(oe)?t.createStringLiteralFromNode(oe):oe;return Jn(pe,Ya(pe)|3072),hl(t.createCallExpression(P,void 0,[z,pe]),pe)}function Gt(oe){switch(oe.kind){case 240:return we(oe);case 259:return X(oe);case 260:return Ve(oe);case 245:return $n(oe,!0);case 246:return ui(oe);case 247:return Ni(oe);case 243:return pt(oe);case 244:return nn(oe);case 253:return Dt(oe);case 251:return pn(oe);case 252:return An(oe);case 266:return Kn(oe);case 292:return hi(oe);case 293:return ri(oe);case 255:return vn(oe);case 295:return Ht(oe);case 238:return En(oe);case 358:return Le(oe);case 359:return _t(oe);default:return Cr(oe)}}function $n(oe,pe){let z=q;return q=oe,oe=t.updateForStatement(oe,$e(oe.initializer,pe?gr:Se,pp),$e(oe.condition,Cr,ot),$e(oe.incrementor,Se,ot),jf(oe.statement,pe?Gt:Cr,e)),q=z,oe}function ui(oe){let pe=q;return q=oe,oe=t.updateForInStatement(oe,gr(oe.initializer),$e(oe.expression,Cr,ot),jf(oe.statement,Gt,e)),q=pe,oe}function Ni(oe){let pe=q;return q=oe,oe=t.updateForOfStatement(oe,oe.awaitModifier,gr(oe.initializer),$e(oe.expression,Cr,ot),jf(oe.statement,Gt,e)),q=pe,oe}function Pi(oe){return pu(oe)&&Pe(oe)}function gr(oe){if(Pi(oe)){let pe;for(let z of oe.declarations)pe=Sn(pe,Ce(z,!1)),z.initializer||ke(z);return pe?t.inlineExpressions(pe):t.createOmittedExpression()}else return $e(oe,Se,pp)}function pt(oe){return t.updateDoStatement(oe,jf(oe.statement,Gt,e),$e(oe.expression,Cr,ot))}function nn(oe){return t.updateWhileStatement(oe,$e(oe.expression,Cr,ot),jf(oe.statement,Gt,e))}function Dt(oe){return t.updateLabeledStatement(oe,oe.label,L.checkDefined($e(oe.statement,Gt,ca,t.liftToBlock)))}function pn(oe){return t.updateWithStatement(oe,$e(oe.expression,Cr,ot),L.checkDefined($e(oe.statement,Gt,ca,t.liftToBlock)))}function An(oe){return t.updateSwitchStatement(oe,$e(oe.expression,Cr,ot),L.checkDefined($e(oe.caseBlock,Gt,hO)))}function Kn(oe){let pe=q;return q=oe,oe=t.updateCaseBlock(oe,On(oe.clauses,Gt,Kj)),q=pe,oe}function hi(oe){return t.updateCaseClause(oe,$e(oe.expression,Cr,ot),On(oe.statements,Gt,ca))}function ri(oe){return xn(oe,Gt,e)}function vn(oe){return xn(oe,Gt,e)}function Ht(oe){let pe=q;return q=oe,oe=t.updateCatchClause(oe,oe.variableDeclaration,L.checkDefined($e(oe.block,Gt,Va))),q=pe,oe}function En(oe){let pe=q;return q=oe,oe=xn(oe,Gt,e),q=pe,oe}function dr(oe,pe){if(!(oe.transformFlags&276828160))return oe;switch(oe.kind){case 245:return $n(oe,!1);case 241:return at(oe);case 214:return Tt(oe,pe);case 356:return ve(oe,pe);case 223:if(Fg(oe))return ce(oe,pe);break;case 210:if(Dd(oe))return nt(oe);break;case 221:case 222:return ue(oe,pe)}return xn(oe,Cr,e)}function Cr(oe){return dr(oe,!1)}function Se(oe){return dr(oe,!0)}function at(oe){return t.updateExpressionStatement(oe,$e(oe.expression,Se,ot))}function Tt(oe,pe){return t.updateParenthesizedExpression(oe,$e(oe.expression,pe?Se:Cr,ot))}function ve(oe,pe){return t.updatePartiallyEmittedExpression(oe,$e(oe.expression,pe?Se:Cr,ot))}function nt(oe){let pe=jS(t,oe,w,f,l,s),z=$e(Sl(oe.arguments),Cr,ot),Te=pe&&(!z||!yo(z)||z.text!==pe.text)?pe:z;return t.createCallExpression(t.createPropertyAccessExpression(F,t.createIdentifier("import")),void 0,Te?[Te]:[])}function ce(oe,pe){return Q(oe.left)?KT(oe,Cr,e,0,!pe):xn(oe,Cr,e)}function Q(oe){if(Iu(oe,!0))return Q(oe.left);if(Km(oe))return Q(oe.expression);if(rs(oe))return vt(oe.properties,Q);if(fu(oe))return vt(oe.elements,Q);if(xf(oe))return Q(oe.name);if(yl(oe))return Q(oe.initializer);if(Re(oe)){let pe=l.getReferencedExportContainer(oe);return pe!==void 0&&pe.kind===308}else return!1}function ue(oe,pe){if((oe.operator===45||oe.operator===46)&&Re(oe.operand)&&!tc(oe.operand)&&!rv(oe.operand)&&!wR(oe.operand)){let z=rt(oe.operand);if(z){let Te,j=$e(oe.operand,Cr,ot);tv(oe)?j=t.updatePrefixUnaryExpression(oe,j):(j=t.updatePostfixUnaryExpression(oe,j),pe||(Te=t.createTempVariable(o),j=t.createAssignment(Te,j),it(j,oe)),j=t.createComma(j,t.cloneNode(oe.operand)),it(j,oe));for(let yt of z)j=_n(yt,Ot(j));return Te&&(j=t.createComma(j,Te),it(j,oe)),j}}return xn(oe,Cr,e)}function G(oe){switch(oe.kind){case 93:case 88:return}return oe}function Oe(oe,pe,z){if(pe.kind===308){let Te=sc(pe);w=pe,C=m[Te],P=S[Te],W=x[Te],F=A[Te],W&&delete x[Te],g(oe,pe,z),w=void 0,C=void 0,P=void 0,F=void 0,W=void 0}else g(oe,pe,z)}function je(oe,pe){return pe=d(oe,pe),Ke(pe)?pe:oe===1?Kt(pe):oe===4?Ge(pe):pe}function Ge(oe){switch(oe.kind){case 300:return kt(oe)}return oe}function kt(oe){var pe,z;let Te=oe.name;if(!tc(Te)&&!rv(Te)){let j=l.getReferencedImportDeclaration(Te);if(j){if(lm(j))return it(t.createPropertyAssignment(t.cloneNode(Te),t.createPropertyAccessExpression(t.getGeneratedNameForNode(j.parent),t.createIdentifier("default"))),oe);if($u(j))return it(t.createPropertyAssignment(t.cloneNode(Te),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((z=(pe=j.parent)==null?void 0:pe.parent)==null?void 0:z.parent)||j),t.cloneNode(j.propertyName||j.name))),oe)}}return oe}function Kt(oe){switch(oe.kind){case 79:return ln(oe);case 223:return ir(oe);case 233:return ae(oe)}return oe}function ln(oe){var pe,z;if(Ya(oe)&8192){let Te=SO(w);return Te?t.createPropertyAccessExpression(Te,oe):oe}if(!tc(oe)&&!rv(oe)){let Te=l.getReferencedImportDeclaration(oe);if(Te){if(lm(Te))return it(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Te.parent),t.createIdentifier("default")),oe);if($u(Te))return it(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((z=(pe=Te.parent)==null?void 0:pe.parent)==null?void 0:z.parent)||Te),t.cloneNode(Te.propertyName||Te.name)),oe)}}return oe}function ir(oe){if(Mg(oe.operatorToken.kind)&&Re(oe.left)&&!tc(oe.left)&&!rv(oe.left)&&!wR(oe.left)){let pe=rt(oe.left);if(pe){let z=oe;for(let Te of pe)z=_n(Te,Ot(z));return z}}return oe}function ae(oe){return NA(oe)?t.createPropertyAccessExpression(F,t.createIdentifier("meta")):oe}function rt(oe){let pe;if(!tc(oe)){let z=l.getReferencedImportDeclaration(oe)||l.getReferencedValueDeclaration(oe);if(z){let Te=l.getReferencedExportContainer(oe,!1);Te&&Te.kind===308&&(pe=Sn(pe,t.getDeclarationName(z))),pe=si(pe,C&&C.exportedBindings[sc(z)])}}return pe}function Ot(oe){return W===void 0&&(W=[]),W[zo(oe)]=!0,oe}function Ke(oe){return W&&oe.id&&W[oe.id]}}var SMe=gt({"src/compiler/transformers/module/system.ts"(){"use strict";fa()}});function GK(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Do(s),f=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=q,e.onSubstituteNode=W,e.enableEmitNotification(308),e.enableSubstitution(79);let g,m,v;return y_(e,S);function S(R){if(R.isDeclarationFile)return R;if(Lc(R)||d_(s)){m=R,v=void 0;let ie=x(R);return m=void 0,v&&(ie=t.updateSourceFile(ie,it(t.createNodeArray(rH(ie.statements.slice(),v)),ie.statements))),!Lc(R)||vt(ie.statements,Rw)?ie:t.updateSourceFile(ie,it(t.createNodeArray([...ie.statements,bO(t)]),ie.statements))}return R}function x(R){let ie=nJ(t,r(),R,s);if(ie){let $=[],fe=t.copyPrologue(R.statements,$);return Sn($,ie),si($,On(R.statements,A,ca,fe)),t.updateSourceFile(R,it(t.createNodeArray($),R.statements))}else return xn(R,A,e)}function A(R){switch(R.kind){case 268:return Rl(s)>=100?C(R):void 0;case 274:return F(R);case 275:return B(R)}return R}function w(R){let ie=jS(t,R,L.checkDefined(m),i,o,s),$=[];if(ie&&$.push(ie),!v){let Z=t.createUniqueName("_createRequire",48),U=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),Z)])),t.createStringLiteral("module")),re=t.createUniqueName("__require",48),le=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(re,void 0,void 0,t.createCallExpression(t.cloneNode(Z),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(100,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));v=[U,le]}let fe=v[1].declarationList.declarations[0].name;return L.assertNode(fe,Re),t.createCallExpression(t.cloneNode(fe),void 0,$)}function C(R){L.assert(ab(R),"import= for internal module references should be handled in an earlier transformer.");let ie;return ie=Sn(ie,Ir(it(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,w(R))],l>=2?2:0)),R),R)),ie=P(ie,R),zp(ie)}function P(R,ie){return Mr(ie,1)&&(R=Sn(R,t.createExportDeclaration(void 0,ie.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,vr(ie.name))])))),R}function F(R){return R.isExportEquals?void 0:R}function B(R){if(s.module!==void 0&&s.module>5||!R.exportClause||!qm(R.exportClause)||!R.moduleSpecifier)return R;let ie=R.exportClause.name,$=t.getGeneratedNameForNode(ie),fe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport($)),R.moduleSpecifier,R.assertClause);Ir(fe,R.exportClause);let Z=v6(R)?t.createExportDefault($):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,$,ie)]));return Ir(Z,R),[fe,Z]}function q(R,ie,$){Li(ie)?((Lc(ie)||d_(s))&&s.importHelpers&&(g=new Map),f(R,ie,$),g=void 0):f(R,ie,$)}function W(R,ie){return ie=d(R,ie),g&&Re(ie)&&Ya(ie)&8192?Y(ie):ie}function Y(R){let ie=vr(R),$=g.get(ie);return $||g.set(ie,$=t.createUniqueName(ie,48)),$}}var xMe=gt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";fa()}});function bpe(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=GK(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=FK(e),f=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=v,e.enableSubstitution(308),e.enableEmitNotification(308);let g;return A;function m(C,P){return Li(P)?(g=P,t(C,P)):g?g.impliedNodeFormat===99?o(C,P):f(C,P):t(C,P)}function v(C,P,F){return Li(P)&&(g=P),g?g.impliedNodeFormat===99?s(C,P,F):d(C,P,F):r(C,P,F)}function S(C){return C.impliedNodeFormat===99?i:l}function x(C){if(C.isDeclarationFile)return C;g=C;let P=S(C)(C);return g=void 0,L.assert(Li(P)),P}function A(C){return C.kind===308?x(C):w(C)}function w(C){return e.factory.createBundle(on(C.sourceFiles,x),C.prepends)}}var AMe=gt({"src/compiler/transformers/module/node.ts"(){"use strict";fa()}});function xF(e){return wi(e)||Na(e)||$d(e)||Wo(e)||Ng(e)||zy(e)||uO(e)||_2(e)||Nc(e)||zm(e)||Jc(e)||ha(e)||_c(e)||Vg(e)||Nl(e)||Ep(e)||Ec(e)||kS(e)||br(e)||Ff(e)}function Epe(e){if(Ng(e)||zy(e))return t;return zm(e)||Nc(e)?i:zg(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return Ca(e)?s.errorModuleName?s.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return Ca(e)?s.errorModuleName?s.accessibility===2?_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260?s.errorModuleName?s.accessibility===2?_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?_.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function zg(e){if(wi(e)||Na(e)||$d(e)||br(e)||Wo(e)||Ec(e))return r;return Ng(e)||zy(e)?i:uO(e)||_2(e)||Nc(e)||zm(e)||Jc(e)||kS(e)?o:ha(e)?Ad(e,e.parent)&&Mr(e.parent,8)?r:s:_c(e)?f:Vg(e)?d:Nl(e)?g:Ep(e)||Ff(e)?m:L.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${L.formatSyntaxKind(e.kind)}`);function t(v){if(e.kind===257||e.kind===205)return v.errorModuleName?v.accessibility===2?_.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===169||e.kind===208||e.kind===168||e.kind===166&&Mr(e.parent,8))return Ca(e)?v.errorModuleName?v.accessibility===2?_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===260||e.kind===166?v.errorModuleName?v.accessibility===2?_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?_.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(v){let S=t(v);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function i(v){let S;return e.kind===175?Ca(e)?S=v.errorModuleName?_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=v.errorModuleName?_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ca(e)?S=v.errorModuleName?v.accessibility===2?_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=v.errorModuleName?v.accessibility===2?_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e.name,typeName:e.name}}function o(v){let S;switch(e.kind){case 177:S=v.errorModuleName?_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:S=v.errorModuleName?_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:S=v.errorModuleName?_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:Ca(e)?S=v.errorModuleName?v.accessibility===2?_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===260?S=v.errorModuleName?v.accessibility===2?_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=v.errorModuleName?_.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:S=v.errorModuleName?v.accessibility===2?_.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return L.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:S,errorNode:e.name||e}}function s(v){let S=l(v);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function l(v){switch(e.parent.kind){case 173:return v.errorModuleName?v.accessibility===2?_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return v.errorModuleName?_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return v.errorModuleName?_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return v.errorModuleName?_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return Ca(e.parent)?v.errorModuleName?v.accessibility===2?_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?v.errorModuleName?v.accessibility===2?_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v.errorModuleName?_.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return v.errorModuleName?v.accessibility===2?_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return v.errorModuleName?v.accessibility===2?_.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return L.fail(`Unknown parent for parameter: ${L.formatSyntaxKind(e.parent.kind)}`)}}function f(){let v;switch(e.parent.kind){case 260:v=_.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:v=_.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:v=_.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:v=_.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:v=_.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:Ca(e.parent)?v=_.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===260?v=_.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v=_.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:v=_.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 192:v=_.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 262:v=_.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return L.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:v,errorNode:e,typeName:e.name}}function d(){let v;return sl(e.parent.parent)?v=dd(e.parent)&&e.parent.token===117?_.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_.extends_clause_of_exported_class_has_or_is_using_private_name_0:v=_.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:e,typeName:sa(e.parent.parent)}}function g(){return{diagnosticMessage:_.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(v){return{diagnosticMessage:v.errorModuleName?_.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Ff(e)?L.checkDefined(e.typeExpression):e.type,typeName:Ff(e)?sa(e):e.name}}}var CMe=gt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";fa()}});function Tpe(e,t,r){let i=e.getCompilerOptions();return lN(t,e,D,i,r?[r]:Pr(e.getSourceFiles(),LH),[UK],!1).diagnostics}function Spe(e,t){let r=t.text.substring(e.pos,e.end);return jl(r,"@internal")}function BK(e,t){let r=ea(e);if(r&&r.kind===166){let o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,f=s?Qi(eb(l,xo(l,s.end+1,!1,!0)),Nm(l,e.pos)):eb(l,xo(l,e.pos,!1,!0));return f&&f.length&&Spe(To(f),t)}let i=r&&bH(r,t);return!!mn(i,o=>Spe(o,t))}function UK(e){let t=()=>L.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,f=!1,d,g,m,v,S,x,{factory:A}=e,w=e.getEmitHost(),C={trackSymbol:_e,reportInaccessibleThisError:ke,reportInaccessibleUniqueSymbolError:Ve,reportCyclicStructureError:we,reportPrivateInBaseOfClassExpression:ge,reportLikelyUnsafeImportRequiredError:Pe,reportTruncationError:Ce,moduleResolverHost:w,trackReferencedAmbientModule:U,trackExternalModuleSymbolOfImportTypeNode:le,reportNonlocalAugmentation:Ie,reportNonSerializableProperty:Be,reportImportTypeNodeResolutionModeOverride:Ne},P,F,B,q,W,Y,R=e.getEmitResolver(),ie=e.getCompilerOptions(),{noResolve:$,stripInternal:fe}=ie;return Ye;function Z(G){if(G){g=g||new Set;for(let Oe of G)g.add(Oe)}}function U(G,Oe){let je=R.getTypeReferenceDirectivesForSymbol(Oe,67108863);if(Fn(je))return Z(je);let Ge=Gn(G);q.set(sc(Ge),Ge)}function re(G){if(G.accessibility===0){if(G&&G.aliasesToMakeVisible)if(!m)m=G.aliasesToMakeVisible;else for(let Oe of G.aliasesToMakeVisible)Of(m,Oe)}else{let Oe=r(G);if(Oe)return Oe.typeName?e.addDiagnostic(hr(G.errorNode||Oe.errorNode,Oe.diagnosticMessage,Qc(Oe.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(hr(G.errorNode||Oe.errorNode,Oe.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function le(G){o||(x||(x=[])).push(G)}function _e(G,Oe,je){if(G.flags&262144)return!1;let Ge=re(R.isSymbolAccessible(G,Oe,je,!0));return Z(R.getTypeReferenceDirectivesForSymbol(G,je)),Ge}function ge(G){(P||F)&&e.addDiagnostic(hr(P||F,_.Property_0_of_exported_class_expression_may_not_be_private_or_protected,G))}function X(){return P?os(P):F&&sa(F)?os(sa(F)):F&&pc(F)?F.isExportEquals?"export=":"default":"(Missing)"}function Ve(){(P||F)&&e.addDiagnostic(hr(P||F,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,X(),"unique symbol"))}function we(){(P||F)&&e.addDiagnostic(hr(P||F,_.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,X()))}function ke(){(P||F)&&e.addDiagnostic(hr(P||F,_.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,X(),"this"))}function Pe(G){(P||F)&&e.addDiagnostic(hr(P||F,_.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,X(),G))}function Ce(){(P||F)&&e.addDiagnostic(hr(P||F,_.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ie(G,Oe,je){var Ge;let kt=(Ge=Oe.declarations)==null?void 0:Ge.find(ln=>Gn(ln)===G),Kt=Pr(je.declarations,ln=>Gn(ln)!==G);if(kt&&Kt)for(let ln of Kt)e.addDiagnostic(Ao(hr(ln,_.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),hr(kt,_.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Be(G){(P||F)&&e.addDiagnostic(hr(P||F,_.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,G))}function Ne(){!TR()&&(P||F)&&e.addDiagnostic(hr(P||F,_.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}function Le(G,Oe){let je=r;r=kt=>kt.errorNode&&xF(kt.errorNode)?zg(kt.errorNode)(kt):{diagnosticMessage:kt.errorModuleName?_.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:kt.errorNode||G};let Ge=R.getDeclarationStatementsForSourceFile(G,tE,C,Oe);return r=je,Ge}function Ye(G){if(G.kind===308&&G.isDeclarationFile)return G;if(G.kind===309){o=!0,q=new Map,W=new Map;let Ot=!1,Ke=A.createBundle(on(G.sourceFiles,z=>{if(z.isDeclarationFile)return;if(Ot=Ot||z.hasNoDefaultLib,B=z,d=z,m=void 0,S=!1,v=new Map,r=t,l=!1,f=!1,_t(z,q),ct(z,W),kd(z)||Mf(z)){s=!1,i=!1;let j=Cu(z)?A.createNodeArray(Le(z,!0)):On(z.statements,ri,ca);return A.updateSourceFile(z,[A.createModuleDeclaration([A.createModifier(136)],A.createStringLiteral(Z6(e.getEmitHost(),z)),A.createModuleBlock(it(A.createNodeArray(An(j)),z.statements)))],!0,[],[],!1,[])}i=!0;let Te=Cu(z)?A.createNodeArray(Le(z)):On(z.statements,ri,ca);return A.updateSourceFile(z,An(Te),!0,[],[],!1,[])}),Zi(G.prepends,z=>{if(z.kind===311){let Te=fz(z,"dts",fe);return Ot=Ot||!!Te.hasNoDefaultLib,_t(Te,q),Z(on(Te.typeReferenceDirectives,j=>[j.fileName,j.resolutionMode])),ct(Te,W),Te}return z}));Ke.syntheticFileReferences=[],Ke.syntheticTypeReferences=ir(),Ke.syntheticLibReferences=ln(),Ke.hasNoDefaultLib=Ot;let oe=ni(Al(KL(G,w,!0).declarationFilePath)),pe=rt(Ke.syntheticFileReferences,oe);return q.forEach(pe),Ke}i=!0,l=!1,f=!1,d=G,B=G,r=t,o=!1,s=!1,S=!1,m=void 0,v=new Map,g=void 0,q=_t(B,new Map),W=ct(B,new Map);let Oe=[],je=ni(Al(KL(G,w,!0).declarationFilePath)),Ge=rt(Oe,je),kt;if(Cu(B))kt=A.createNodeArray(Le(G)),q.forEach(Ge),Y=Pr(kt,yT);else{let Ot=On(G.statements,ri,ca);kt=it(A.createNodeArray(An(Ot)),G.statements),q.forEach(Ge),Y=Pr(kt,yT),Lc(G)&&(!s||l&&!f)&&(kt=it(A.createNodeArray([...kt,bO(A)]),kt))}let Kt=A.updateSourceFile(G,kt,!0,Oe,ir(),G.hasNoDefaultLib,ln());return Kt.exportedModulesFromDeclarationEmit=x,Kt;function ln(){return lo(W.keys(),Ot=>({fileName:Ot,pos:-1,end:-1}))}function ir(){return g?Zi(lo(g.keys()),ae):[]}function ae([Ot,Ke]){if(Y){for(let oe of Y)if(Nl(oe)&&um(oe.moduleReference)){let pe=oe.moduleReference.expression;if(es(pe)&&pe.text===Ot)return}else if(gl(oe)&&yo(oe.moduleSpecifier)&&oe.moduleSpecifier.text===Ot)return}return{fileName:Ot,pos:-1,end:-1,...Ke?{resolutionMode:Ke}:void 0}}function rt(Ot,Ke){return oe=>{let pe;if(oe.isDeclarationFile)pe=oe.fileName;else{if(o&&ya(G.sourceFiles,oe))return;let z=KL(oe,w,!0);pe=z.declarationFilePath||z.jsFilePath||oe.fileName}if(pe){let z=sF(ie,B,Ts(Ke,w.getCurrentDirectory(),w.getCanonicalFileName),Ts(pe,w.getCurrentDirectory(),w.getCanonicalFileName),w);if(!Jd(z)){Z([[z,void 0]]);return}let Te=Q1(Ke,pe,w.getCurrentDirectory(),w.getCanonicalFileName,!1);if(na(Te,"./")&&gA(Te)&&(Te=Te.substring(2)),na(Te,"node_modules/")||JS(Te))return;Ot.push({pos:-1,end:-1,fileName:Te})}}}}function _t(G,Oe){return $||!BT(G)&&Cu(G)||mn(G.referencedFiles,je=>{let Ge=w.getSourceFileFromReference(G,je);Ge&&Oe.set(sc(Ge),Ge)}),Oe}function ct(G,Oe){return mn(G.libReferenceDirectives,je=>{w.getLibFileFromReference(je)&&Oe.set(n_(je.fileName),!0)}),Oe}function Rt(G){if(G.kind===79)return G;return G.kind===204?A.updateArrayBindingPattern(G,On(G.elements,Oe,c6)):A.updateObjectBindingPattern(G,On(G.elements,Oe,Wo));function Oe(je){return je.kind===229?je:je.propertyName&&Re(je.propertyName)&&Re(je.name)&&!je.symbol.isReferenced&&!q6(je.propertyName)?A.updateBindingElement(je,je.dotDotDotToken,void 0,je.propertyName,qe(je)?je.initializer:void 0):A.updateBindingElement(je,je.dotDotDotToken,je.propertyName,Rt(je.name),qe(je)?je.initializer:void 0)}}function We(G,Oe,je){let Ge;S||(Ge=r,r=zg(G));let kt=A.updateParameterDeclaration(G,LMe(G,Oe),G.dotDotDotToken,Rt(G.name),R.isOptionalParameter(G)?G.questionToken||A.createToken(57):void 0,Qt(G,je||G.type,!0),zt(G));return S||(r=Ge),kt}function qe(G){return kMe(G)&&R.isLiteralConstDeclaration(ea(G))}function zt(G){if(qe(G))return R.createLiteralConstValue(ea(G),C)}function Qt(G,Oe,je){if(!je&&cd(G,8)||qe(G))return;let Ge=G.kind===166&&(R.isRequiredInitializedParameter(G)||R.isOptionalUninitializedParameterProperty(G));if(Oe&&!Ge)return $e(Oe,Kn,bi);if(!ea(G))return Oe?$e(Oe,Kn,bi):A.createKeywordTypeNode(131);if(G.kind===175)return A.createKeywordTypeNode(131);P=G.name;let kt;if(S||(kt=r,r=zg(G)),G.kind===257||G.kind===205)return Kt(R.createTypeOfDeclaration(G,d,tE,C));if(G.kind===166||G.kind===169||G.kind===168)return $d(G)||!G.initializer?Kt(R.createTypeOfDeclaration(G,d,tE,C,Ge)):Kt(R.createTypeOfDeclaration(G,d,tE,C,Ge)||R.createTypeOfExpression(G.initializer,d,tE,C));return Kt(R.createReturnTypeOfSignatureDeclaration(G,d,tE,C));function Kt(ln){return P=void 0,S||(r=kt),ln||A.createKeywordTypeNode(131)}}function tn(G){switch(G=ea(G),G.kind){case 259:case 264:case 261:case 260:case 262:case 263:return!R.isDeclarationVisible(G);case 257:return!_n(G);case 268:case 269:case 275:case 274:return!1;case 172:return!0}return!1}function kn(G){var Oe;if(G.body)return!0;let je=(Oe=G.symbol.declarations)==null?void 0:Oe.filter(Ge=>Jc(Ge)&&!Ge.body);return!je||je.indexOf(G)===je.length-1}function _n(G){return ol(G)?!1:La(G.name)?vt(G.name.elements,_n):R.isDeclarationVisible(G)}function Gt(G,Oe,je){if(cd(G,8))return A.createNodeArray();let Ge=on(Oe,kt=>We(kt,je));return Ge?A.createNodeArray(Ge,Oe.hasTrailingComma):A.createNodeArray()}function $n(G,Oe){let je;if(!Oe){let Ge=F0(G);Ge&&(je=[We(Ge)])}if(Sf(G)){let Ge;if(!Oe){let kt=VI(G);if(kt){let Kt=Q(G,R.getAllAccessorDeclarations(G));Ge=We(kt,void 0,Kt)}}Ge||(Ge=A.createParameterDeclaration(void 0,void 0,"value")),je=Sn(je,Ge)}return A.createNodeArray(je||Je)}function ui(G,Oe){return cd(G,8)?void 0:On(Oe,Kn,_c)}function Ni(G){return Li(G)||Ep(G)||Tc(G)||sl(G)||ku(G)||Ia(G)||kS(G)||EL(G)}function Pi(G,Oe){let je=R.isEntityNameVisible(G,Oe);re(je),Z(R.getTypeReferenceDirectivesForEntityName(G))}function gr(G,Oe){return Kd(G)&&Kd(Oe)&&(G.jsDoc=Oe.jsDoc),hl(G,sm(Oe))}function pt(G,Oe){if(Oe){if(s=s||G.kind!==264&&G.kind!==202,es(Oe))if(o){let je=Dce(e.getEmitHost(),R,G);if(je)return A.createStringLiteral(je)}else{let je=R.getSymbolOfExternalModuleSpecifier(Oe);je&&(x||(x=[])).push(je)}return Oe}}function nn(G){if(R.isDeclarationVisible(G))if(G.moduleReference.kind===280){let Oe=wI(G);return A.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,A.updateExternalModuleReference(G.moduleReference,pt(G,Oe)))}else{let Oe=r;return r=zg(G),Pi(G.moduleReference,d),r=Oe,G}}function Dt(G){if(!G.importClause)return A.updateImportDeclaration(G,G.modifiers,G.importClause,pt(G,G.moduleSpecifier),pn(G.assertClause));let Oe=G.importClause&&G.importClause.name&&R.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return Oe&&A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,Oe,void 0),pt(G,G.moduleSpecifier),pn(G.assertClause));if(G.importClause.namedBindings.kind===271){let Ge=R.isDeclarationVisible(G.importClause.namedBindings)?G.importClause.namedBindings:void 0;return Oe||Ge?A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,Oe,Ge),pt(G,G.moduleSpecifier),pn(G.assertClause)):void 0}let je=Zi(G.importClause.namedBindings.elements,Ge=>R.isDeclarationVisible(Ge)?Ge:void 0);if(je&&je.length||Oe)return A.updateImportDeclaration(G,G.modifiers,A.updateImportClause(G.importClause,G.importClause.isTypeOnly,Oe,je&&je.length?A.updateNamedImports(G.importClause.namedBindings,je):void 0),pt(G,G.moduleSpecifier),pn(G.assertClause));if(R.isImportRequiredByAugmentation(G))return A.updateImportDeclaration(G,G.modifiers,void 0,pt(G,G.moduleSpecifier),pn(G.assertClause))}function pn(G){if(qS(G)!==void 0)return TR()||e.addDiagnostic(hr(G,_.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),G}function An(G){for(;Fn(m);){let je=m.shift();if(!E6(je))return L.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${L.formatSyntaxKind(je.kind)}`);let Ge=i;i=je.parent&&Li(je.parent)&&!(Lc(je.parent)&&o);let kt=Ht(je);i=Ge,v.set(sc(je),kt)}return On(G,Oe,ca);function Oe(je){if(E6(je)){let Ge=sc(je);if(v.has(Ge)){let kt=v.get(Ge);return v.delete(Ge),kt&&((ba(kt)?vt(kt,l6):l6(kt))&&(l=!0),Li(je.parent)&&(ba(kt)?vt(kt,Rw):Rw(kt))&&(s=!0)),kt}}return je}}function Kn(G){if(at(G)||Kl(G)&&(tn(G)||Xy(G)&&!R.isLateBound(ea(G)))||Ia(G)&&R.isImplementationOfOverload(G)||Bue(G))return;let Oe;Ni(G)&&(Oe=d,d=G);let je=r,Ge=xF(G),kt=S,Kt=(G.kind===184||G.kind===197)&&G.parent.kind!==262;if((Nc(G)||zm(G))&&cd(G,8))return G.symbol&&G.symbol.declarations&&G.symbol.declarations[0]!==G?void 0:ln(A.createPropertyDeclaration(nt(G),G.name,void 0,void 0,void 0));if(Ge&&!S&&(r=zg(G)),vL(G)&&Pi(G.exprName,d),Kt&&(S=!0),wMe(G))switch(G.kind){case 230:{(Cd(G.expression)||bc(G.expression))&&Pi(G.expression,d);let ir=xn(G,Kn,e);return ln(A.updateExpressionWithTypeArguments(ir,ir.expression,ir.typeArguments))}case 180:{Pi(G.typeName,d);let ir=xn(G,Kn,e);return ln(A.updateTypeReferenceNode(ir,ir.typeName,ir.typeArguments))}case 177:return ln(A.updateConstructSignature(G,ui(G,G.typeParameters),Gt(G,G.parameters),Qt(G,G.type)));case 173:{let ir=A.createConstructorDeclaration(nt(G),Gt(G,G.parameters,0),void 0);return ln(ir)}case 171:{if(pi(G.name))return ln(void 0);let ir=A.createMethodDeclaration(nt(G),void 0,G.name,G.questionToken,ui(G,G.typeParameters),Gt(G,G.parameters),Qt(G,G.type),void 0);return ln(ir)}case 174:{if(pi(G.name))return ln(void 0);let ir=Q(G,R.getAllAccessorDeclarations(G));return ln(A.updateGetAccessorDeclaration(G,nt(G),G.name,$n(G,cd(G,8)),Qt(G,ir),void 0))}case 175:return pi(G.name)?ln(void 0):ln(A.updateSetAccessorDeclaration(G,nt(G),G.name,$n(G,cd(G,8)),void 0));case 169:return pi(G.name)?ln(void 0):ln(A.updatePropertyDeclaration(G,nt(G),G.name,G.questionToken,Qt(G,G.type),zt(G)));case 168:return pi(G.name)?ln(void 0):ln(A.updatePropertySignature(G,nt(G),G.name,G.questionToken,Qt(G,G.type)));case 170:return pi(G.name)?ln(void 0):ln(A.updateMethodSignature(G,nt(G),G.name,G.questionToken,ui(G,G.typeParameters),Gt(G,G.parameters),Qt(G,G.type)));case 176:return ln(A.updateCallSignature(G,ui(G,G.typeParameters),Gt(G,G.parameters),Qt(G,G.type)));case 178:return ln(A.updateIndexSignature(G,nt(G),Gt(G,G.parameters),$e(G.type,Kn,bi)||A.createKeywordTypeNode(131)));case 257:return La(G.name)?dr(G.name):(Kt=!0,S=!0,ln(A.updateVariableDeclaration(G,G.name,void 0,Qt(G,G.type),zt(G))));case 165:return hi(G)&&(G.default||G.constraint)?ln(A.updateTypeParameterDeclaration(G,G.modifiers,G.name,void 0,void 0)):ln(xn(G,Kn,e));case 191:{let ir=$e(G.checkType,Kn,bi),ae=$e(G.extendsType,Kn,bi),rt=d;d=G.trueType;let Ot=$e(G.trueType,Kn,bi);d=rt;let Ke=$e(G.falseType,Kn,bi);return L.assert(ir),L.assert(ae),L.assert(Ot),L.assert(Ke),ln(A.updateConditionalTypeNode(G,ir,ae,Ot,Ke))}case 181:return ln(A.updateFunctionTypeNode(G,On(G.typeParameters,Kn,_c),Gt(G,G.parameters),L.checkDefined($e(G.type,Kn,bi))));case 182:return ln(A.updateConstructorTypeNode(G,nt(G),On(G.typeParameters,Kn,_c),Gt(G,G.parameters),L.checkDefined($e(G.type,Kn,bi))));case 202:return ib(G)?ln(A.updateImportTypeNode(G,A.updateLiteralTypeNode(G.argument,pt(G,G.argument.literal)),G.assertions,G.qualifier,On(G.typeArguments,Kn,bi),G.isTypeOf)):ln(G);default:L.assertNever(G,`Attempted to process unhandled node kind: ${L.formatSyntaxKind(G.kind)}`)}return p2(G)&&Gs(B,G.pos).line===Gs(B,G.end).line&&Jn(G,1),ln(xn(G,Kn,e));function ln(ir){return ir&&Ge&&Xy(G)&&Se(G),Ni(G)&&(d=Oe),Ge&&!S&&(r=je),Kt&&(S=kt),ir===G?ir:ir&&Ir(gr(ir,G),G)}}function hi(G){return G.parent.kind===171&&cd(G.parent,8)}function ri(G){if(!DMe(G)||at(G))return;switch(G.kind){case 275:return Li(G.parent)&&(s=!0),f=!0,A.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause,pt(G,G.moduleSpecifier),qS(G.assertClause)?G.assertClause:void 0);case 274:{if(Li(G.parent)&&(s=!0),f=!0,G.expression.kind===79)return G;{let je=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:_.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:G}),F=G;let Ge=A.createVariableDeclaration(je,void 0,R.createTypeOfExpression(G.expression,G,tE,C),void 0);F=void 0;let kt=A.createVariableStatement(i?[A.createModifier(136)]:[],A.createVariableDeclarationList([Ge],2));return gr(kt,G),ZR(G),[kt,A.updateExportAssignment(G,G.modifiers,je)]}}}let Oe=Ht(G);return v.set(sc(G),Oe),G}function vn(G){if(Nl(G)||cd(G,1024)||!g_(G))return G;let Oe=A.createModifiersFromModifierFlags(uu(G)&258046);return A.updateModifiers(G,Oe)}function Ht(G){if(m)for(;m8(m,G););if(at(G))return;switch(G.kind){case 268:return nn(G);case 269:return Dt(G)}if(Kl(G)&&tn(G)||Ia(G)&&R.isImplementationOfOverload(G))return;let Oe;Ni(G)&&(Oe=d,d=G);let je=xF(G),Ge=r;je&&(r=zg(G));let kt=i;switch(G.kind){case 262:{i=!1;let ln=Kt(A.updateTypeAliasDeclaration(G,nt(G),G.name,On(G.typeParameters,Kn,_c),L.checkDefined($e(G.type,Kn,bi))));return i=kt,ln}case 261:return Kt(A.updateInterfaceDeclaration(G,nt(G),G.name,ui(G,G.typeParameters),ue(G.heritageClauses),On(G.members,Kn,_T)));case 259:{let ln=Kt(A.updateFunctionDeclaration(G,nt(G),void 0,G.name,ui(G,G.typeParameters),Gt(G,G.parameters),Qt(G,G.type),void 0));if(ln&&R.isExpandoFunctionDeclaration(G)&&kn(G)){let ir=R.getPropertiesOfContainerFunction(G),ae=fm.createModuleDeclaration(void 0,ln.name||A.createIdentifier("_default"),A.createModuleBlock([]),16);go(ae,d),ae.locals=Ua(ir),ae.symbol=ir[0].parent;let rt=[],Ot=Zi(ir,j=>{if(!j.valueDeclaration||!br(j.valueDeclaration))return;r=zg(j.valueDeclaration);let yt=R.createTypeOfDeclaration(j.valueDeclaration,ae,tE,C);r=Ge;let lt=Gi(j.escapedName),Qe=fS(lt),Vt=Qe?A.getGeneratedNameForNode(j.valueDeclaration):A.createIdentifier(lt);Qe&&rt.push([Vt,lt]);let Hn=A.createVariableDeclaration(Vt,void 0,yt,void 0);return A.createVariableStatement(Qe?void 0:[A.createToken(93)],A.createVariableDeclarationList([Hn]))});rt.length?Ot.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(on(rt,([j,yt])=>A.createExportSpecifier(!1,j,yt))))):Ot=Zi(Ot,j=>A.updateModifiers(j,0));let Ke=A.createModuleDeclaration(nt(G),G.name,A.createModuleBlock(Ot),16);if(!cd(ln,1024))return[ln,Ke];let oe=A.createModifiersFromModifierFlags(uu(ln)&-1026|2),pe=A.updateFunctionDeclaration(ln,oe,void 0,ln.name,ln.typeParameters,ln.parameters,ln.type,void 0),z=A.updateModuleDeclaration(Ke,oe,Ke.name,Ke.body),Te=A.createExportAssignment(void 0,!1,Ke.name);return Li(G.parent)&&(s=!0),f=!0,[pe,z,Te]}else return ln}case 264:{i=!1;let ln=G.body;if(ln&&ln.kind===265){let ir=l,ae=f;f=!1,l=!1;let rt=On(ln.statements,ri,ca),Ot=An(rt);G.flags&16777216&&(l=!1),!mp(G)&&!ve(Ot)&&!f&&(l?Ot=A.createNodeArray([...Ot,bO(A)]):Ot=On(Ot,vn,ca));let Ke=A.updateModuleBlock(ln,Ot);i=kt,l=ir,f=ae;let oe=nt(G);return Kt(A.updateModuleDeclaration(G,oe,D0(G)?pt(G,G.name):G.name,Ke))}else{i=kt;let ir=nt(G);i=!1,$e(ln,ri);let ae=sc(ln),rt=v.get(ae);return v.delete(ae),Kt(A.updateModuleDeclaration(G,ir,G.name,rt))}}case 260:{P=G.name,F=G;let ln=A.createNodeArray(nt(G)),ir=ui(G,G.typeParameters),ae=Vm(G),rt;if(ae){let Te=r;rt=WD(Uo(ae.parameters,j=>{if(!Mr(j,16476)||at(j))return;if(r=zg(j),j.name.kind===79)return gr(A.createPropertyDeclaration(nt(j),j.name,j.questionToken,Qt(j,j.type),zt(j)),j);return yt(j.name);function yt(lt){let Qe;for(let Vt of lt.elements)ol(Vt)||(La(Vt.name)&&(Qe=Qi(Qe,yt(Vt.name))),Qe=Qe||[],Qe.push(A.createPropertyDeclaration(nt(j),Vt.name,void 0,Qt(Vt,void 0),void 0)));return Qe}})),r=Te}let Ke=vt(G.members,Te=>!!Te.name&&pi(Te.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,oe=Qi(Qi(Ke,rt),On(G.members,Kn,_l)),pe=A.createNodeArray(oe),z=hp(G);if(z&&!bc(z.expression)&&z.expression.kind!==104){let Te=G.name?Gi(G.name.escapedText):"default",j=A.createUniqueName(`${Te}_base`,16);r=()=>({diagnosticMessage:_.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:z,typeName:G.name});let yt=A.createVariableDeclaration(j,void 0,R.createTypeOfExpression(z.expression,G,tE,C),void 0),lt=A.createVariableStatement(i?[A.createModifier(136)]:[],A.createVariableDeclarationList([yt],2)),Qe=A.createNodeArray(on(G.heritageClauses,Vt=>{if(Vt.token===94){let Hn=r;r=zg(Vt.types[0]);let jr=A.updateHeritageClause(Vt,on(Vt.types,ei=>A.updateExpressionWithTypeArguments(ei,j,On(ei.typeArguments,Kn,bi))));return r=Hn,jr}return A.updateHeritageClause(Vt,On(A.createNodeArray(Pr(Vt.types,Hn=>bc(Hn.expression)||Hn.expression.kind===104)),Kn,Vg))}));return[lt,Kt(A.updateClassDeclaration(G,ln,G.name,ir,Qe,pe))]}else{let Te=ue(G.heritageClauses);return Kt(A.updateClassDeclaration(G,ln,G.name,ir,Te,pe))}}case 240:return Kt(En(G));case 263:return Kt(A.updateEnumDeclaration(G,A.createNodeArray(nt(G)),G.name,A.createNodeArray(Zi(G.members,ln=>{if(at(ln))return;let ir=R.getConstantValue(ln);return gr(A.updateEnumMember(ln,ln.name,ir!==void 0?typeof ir=="string"?A.createStringLiteral(ir):A.createNumericLiteral(ir):void 0),ln)}))))}return L.assertNever(G,`Unhandled top-level node in declaration emit: ${L.formatSyntaxKind(G.kind)}`);function Kt(ln){return Ni(G)&&(d=Oe),je&&(r=Ge),G.kind===264&&(i=kt),ln===G?ln:(F=void 0,P=void 0,ln&&Ir(gr(ln,G),G))}}function En(G){if(!mn(G.declarationList.declarations,_n))return;let Oe=On(G.declarationList.declarations,Kn,wi);if(Fn(Oe))return A.updateVariableStatement(G,A.createNodeArray(nt(G)),A.updateVariableDeclarationList(G.declarationList,Oe))}function dr(G){return t_(Zi(G.elements,Oe=>Cr(Oe)))}function Cr(G){if(G.kind!==229&&G.name)return _n(G)?La(G.name)?dr(G.name):A.createVariableDeclaration(G.name,void 0,Qt(G,void 0),void 0):void 0}function Se(G){let Oe;S||(Oe=r,r=Epe(G)),P=G.name,L.assert(R.isLateBound(ea(G)));let Ge=G.name.expression;Pi(Ge,d),S||(r=Oe),P=void 0}function at(G){return!!fe&&!!G&&BK(G,B)}function Tt(G){return pc(G)||Il(G)}function ve(G){return vt(G,Tt)}function nt(G){let Oe=uu(G),je=ce(G);return Oe===je?vK(G.modifiers,Ge=>zr(Ge,Ha),Ha):A.createModifiersFromModifierFlags(je)}function ce(G){let Oe=241147,je=i&&!IMe(G)?2:0,Ge=G.parent.kind===308;return(!Ge||o&&Ge&&Lc(G.parent))&&(Oe^=2,je=0),xpe(G,Oe,je)}function Q(G,Oe){let je=VK(G);return!je&&G!==Oe.firstAccessor&&(je=VK(Oe.firstAccessor),r=zg(Oe.firstAccessor)),!je&&Oe.secondAccessor&&G!==Oe.secondAccessor&&(je=VK(Oe.secondAccessor),r=zg(Oe.secondAccessor)),je}function ue(G){return A.createNodeArray(Pr(on(G,Oe=>A.updateHeritageClause(Oe,On(A.createNodeArray(Pr(Oe.types,je=>bc(je.expression)||Oe.token===94&&je.expression.kind===104)),Kn,Vg))),Oe=>Oe.types&&!!Oe.types.length))}}function IMe(e){return e.kind===261}function LMe(e,t,r){return D.createModifiersFromModifierFlags(xpe(e,t,r))}function xpe(e,t=258043,r=0){let i=uu(e)&t|r;return i&1024&&!(i&1)&&(i^=1),i&1024&&i&2&&(i^=2),i}function VK(e){if(e)return e.kind===174?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function kMe(e){switch(e.kind){case 169:case 168:return!cd(e,8);case 166:case 257:return!0}return!1}function DMe(e){switch(e.kind){case 259:case 264:case 268:case 261:case 260:case 262:case 263:case 240:case 269:case 275:case 274:return!0}return!1}function wMe(e){switch(e.kind){case 177:case 173:case 171:case 174:case 175:case 169:case 168:case 170:case 176:case 178:case 257:case 165:case 230:case 180:case 191:case 181:case 182:case 202:return!0}return!1}var tE,RMe=gt({"src/compiler/transformers/declarations.ts"(){"use strict";fa(),dK(),tE=531469}});function OMe(e){switch(e){case 99:case 7:case 6:case 5:return GK;case 4:return vpe;case 100:case 199:return bpe;default:return FK}}function jK(e,t,r){return{scriptTransformers:NMe(e,t,r),declarationTransformers:PMe(t)}}function NMe(e,t,r){if(r)return Je;let i=Do(e),o=Rl(e),s=MR(e),l=[];return si(l,t&&on(t.before,Cpe)),l.push(Z_e),e.experimentalDecorators?l.push(rpe):(i<99||!s)&&l.push(ipe),l.push(tpe),AW(e)&&l.push(dpe),i<99&&l.push(upe),i<8&&l.push(lpe),i<7&&l.push(cpe),i<6&&l.push(spe),i<5&&l.push(ope),i<4&&l.push(ape),i<3&&l.push(_pe),i<2&&(l.push(mpe),l.push(gpe)),l.push(OMe(o)),i<1&&l.push(hpe),si(l,t&&on(t.after,Cpe)),l}function PMe(e){let t=[];return t.push(UK),si(t,e&&on(e.afterDeclarations,FMe)),t}function MMe(e){return t=>Bz(t)?e.transformBundle(t):e.transformSourceFile(t)}function Ape(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):MMe(i)}}function Cpe(e){return Ape(e,y_)}function FMe(e){return Ape(e,(t,r)=>r)}function zL(e,t){return t}function cN(e,t,r){r(e,t)}function lN(e,t,r,i,o,s,l){var f,d;let g=new Array(361),m,v,S,x=0,A=[],w=[],C=[],P=[],F=0,B=!1,q=[],W=0,Y,R,ie=zL,$=cN,fe=0,Z=[],U={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:zu(()=>Tue(U)),startLexicalEnvironment:Le,suspendLexicalEnvironment:Ye,resumeLexicalEnvironment:_t,endLexicalEnvironment:ct,setLexicalEnvironmentFlags:Rt,getLexicalEnvironmentFlags:We,hoistVariableDeclaration:Ie,hoistFunctionDeclaration:Be,addInitializationStatement:Ne,startBlockScope:qe,endBlockScope:zt,addBlockScopedVariable:Qt,requestEmitHelper:tn,readEmitHelpers:kn,enableSubstitution:X,enableEmitNotification:ke,isSubstitutionEnabled:Ve,isEmitNotificationEnabled:Pe,get onSubstituteNode(){return ie},set onSubstituteNode(Gt){L.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),L.assert(Gt!==void 0,"Value must not be 'undefined'"),ie=Gt},get onEmitNode(){return $},set onEmitNode(Gt){L.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),L.assert(Gt!==void 0,"Value must not be 'undefined'"),$=Gt},addDiagnostic(Gt){Z.push(Gt)}};for(let Gt of o)yz(Gn(ea(Gt)));Fs("beforeTransform");let re=s.map(Gt=>Gt(U)),le=Gt=>{for(let $n of re)Gt=$n(Gt);return Gt};fe=1;let _e=[];for(let Gt of o)(f=ai)==null||f.push(ai.Phase.Emit,"transformNodes",Gt.kind===308?{path:Gt.path}:{kind:Gt.kind,pos:Gt.pos,end:Gt.end}),_e.push((l?le:ge)(Gt)),(d=ai)==null||d.pop();return fe=2,Fs("afterTransform"),hf("transformTime","beforeTransform","afterTransform"),{transformed:_e,substituteNode:we,emitNodeWithNotification:Ce,isEmitNotificationEnabled:Pe,dispose:_n,diagnostics:Z};function ge(Gt){return Gt&&(!Li(Gt)||!Gt.isDeclarationFile)?le(Gt):Gt}function X(Gt){L.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),g[Gt]|=1}function Ve(Gt){return(g[Gt.kind]&1)!==0&&(Ya(Gt)&8)===0}function we(Gt,$n){return L.assert(fe<3,"Cannot substitute a node after the result is disposed."),$n&&Ve($n)&&ie(Gt,$n)||$n}function ke(Gt){L.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),g[Gt]|=2}function Pe(Gt){return(g[Gt.kind]&2)!==0||(Ya(Gt)&4)!==0}function Ce(Gt,$n,ui){L.assert(fe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),$n&&(Pe($n)?$(Gt,$n,ui):ui(Gt,$n))}function Ie(Gt){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed.");let $n=Jn(r.createVariableDeclaration(Gt),128);m?m.push($n):m=[$n],x&1&&(x|=2)}function Be(Gt){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),Jn(Gt,2097152),v?v.push(Gt):v=[Gt]}function Ne(Gt){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),Jn(Gt,2097152),S?S.push(Gt):S=[Gt]}function Le(){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),L.assert(!B,"Lexical environment is suspended."),A[F]=m,w[F]=v,C[F]=S,P[F]=x,F++,m=void 0,v=void 0,S=void 0,x=0}function Ye(){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),L.assert(!B,"Lexical environment is already suspended."),B=!0}function _t(){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),L.assert(B,"Lexical environment is not suspended."),B=!1}function ct(){L.assert(fe>0,"Cannot modify the lexical environment during initialization."),L.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),L.assert(!B,"Lexical environment is suspended.");let Gt;if(m||v||S){if(v&&(Gt=[...v]),m){let $n=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));Jn($n,2097152),Gt?Gt.push($n):Gt=[$n]}S&&(Gt?Gt=[...Gt,...S]:Gt=[...S])}return F--,m=A[F],v=w[F],S=C[F],x=P[F],F===0&&(A=[],w=[],C=[],P=[]),Gt}function Rt(Gt,$n){x=$n?x|Gt:x&~Gt}function We(){return x}function qe(){L.assert(fe>0,"Cannot start a block scope during initialization."),L.assert(fe<2,"Cannot start a block scope after transformation has completed."),q[W]=Y,W++,Y=void 0}function zt(){L.assert(fe>0,"Cannot end a block scope during initialization."),L.assert(fe<2,"Cannot end a block scope after transformation has completed.");let Gt=vt(Y)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(Y.map($n=>r.createVariableDeclaration($n)),1))]:void 0;return W--,Y=q[W],W===0&&(q=[]),Gt}function Qt(Gt){L.assert(W>0,"Cannot add a block scoped variable outside of an iteration body."),(Y||(Y=[])).push(Gt)}function tn(Gt){if(L.assert(fe>0,"Cannot modify the transformation context during initialization."),L.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),L.assert(!Gt.scoped,"Cannot request a scoped emit helper."),Gt.dependencies)for(let $n of Gt.dependencies)tn($n);R=Sn(R,Gt)}function kn(){L.assert(fe>0,"Cannot modify the transformation context during initialization."),L.assert(fe<2,"Cannot modify the transformation context after transformation has completed.");let Gt=R;return R=void 0,Gt}function _n(){if(fe<3){for(let Gt of o)yz(Gn(ea(Gt)));m=void 0,A=void 0,v=void 0,w=void 0,ie=void 0,$=void 0,R=void 0,fe=3}}}var HK,Bh,GMe=gt({"src/compiler/transformer.ts"(){"use strict";fa(),E0(),HK={scriptTransformers:Je,declarationTransformers:Je},Bh={factory:D,getCompilerOptions:()=>({}),getEmitResolver:Sa,getEmitHost:Sa,getEmitHelperFactory:Sa,startLexicalEnvironment:Ba,resumeLexicalEnvironment:Ba,suspendLexicalEnvironment:Ba,endLexicalEnvironment:Qv,setLexicalEnvironmentFlags:Ba,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ba,hoistFunctionDeclaration:Ba,addInitializationStatement:Ba,startBlockScope:Ba,endBlockScope:Qv,addBlockScopedVariable:Ba,requestEmitHelper:Ba,readEmitHelpers:Sa,enableSubstitution:Ba,enableEmitNotification:Ba,isSubstitutionEnabled:Sa,isEmitNotificationEnabled:Sa,onSubstituteNode:zL,onEmitNode:cN,addDiagnostic:Ba}}});function Ipe(e){return Gc(e,".tsbuildinfo")}function WK(e,t,r,i=!1,o,s){let l=ba(r)?r:eW(e,r,i),f=e.getCompilerOptions();if(Ss(f)){let d=e.getPrependNodes();if(l.length||d.length){let g=D.createBundle(l,d),m=t(KL(g,e,i),g);if(m)return m}}else{if(!o)for(let d of l){let g=t(KL(d,e,i),d);if(g)return g}if(s){let d=Jg(f);if(d)return t({buildInfoPath:d},void 0)}}}function Jg(e){let t=e.configFilePath;if(!NR(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=Ss(e),i;if(r)i=ld(r);else{if(!t)return;let o=ld(t);i=e.outDir?e.rootDir?Fy(e.outDir,Xp(e.rootDir,o,!0)):vi(e.outDir,Hl(o)):o}return i+".tsbuildinfo"}function JL(e,t){let r=Ss(e),i=e.emitDeclarationOnly?void 0:r,o=i&&Lpe(i,e),s=t||__(e)?ld(r)+".d.ts":void 0,l=s&&d4(e)?s+".map":void 0,f=Jg(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:f}}function KL(e,t,r){let i=t.getCompilerOptions();if(e.kind===309)return JL(i,r);{let o=wce(e.fileName,t,zK(e.fileName,i)),s=Mf(e),l=s&&cT(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,f=i.emitDeclarationOnly||l?void 0:o,d=!f||Mf(e)?void 0:Lpe(f,i),g=r||__(i)&&!s?Rce(e.fileName,t):void 0,m=g&&d4(i)?g+".map":void 0;return{jsFilePath:f,sourceMapFilePath:d,declarationFilePath:g,declarationMapPath:m,buildInfoPath:void 0}}}function Lpe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function zK(e,t){return Gc(e,".json")?".json":t.jsx===1&&$c(e,[".jsx",".tsx"])?".jsx":$c(e,[".mts",".mjs"])?".mjs":$c(e,[".cts",".cjs"])?".cjs":".js"}function kpe(e,t,r,i,o){return i?Fy(i,Xp(o?o():XL(t,r),e,r)):e}function qL(e,t,r,i){return V0(kpe(e,t,r,t.options.declarationDir||t.options.outDir,i),QH(e))}function Dpe(e,t,r,i){if(t.options.emitDeclarationOnly)return;let o=Gc(e,".json"),s=V0(kpe(e,t,r,t.options.outDir,i),zK(e,t.options));return!o||cT(e,s,L.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function wpe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||Je}}function Rpe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=JL(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function Ope(e,t,r,i,o){if(Fu(t))return;let s=Dpe(t,e,r,o);if(i(s),!Gc(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),__(e.options))){let l=qL(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function uN(e,t,r,i,o){let s;return e.rootDir?(s=_a(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=ni(Al(e.configFilePath)),o?.(s)):s=jpe(t(),r,i),s&&s[s.length-1]!==_s&&(s+=_s),s}function XL({options:e,fileNames:t},r){return uN(e,()=>Pr(t,i=>!(e.noEmitForJsFiles&&$c(i,dL))&&!Fu(i)),ni(Al(L.checkDefined(e.configFilePath))),Dl(!r))}function AF(e,t){let{addOutput:r,getOutputs:i}=wpe();if(Ss(e.options))Rpe(e,r);else{let o=zu(()=>XL(e,t));for(let s of e.fileNames)Ope(e,s,t,r,o);r(Jg(e.options))}return i()}function BMe(e,t,r){t=So(t),L.assert(ya(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=wpe();return Ss(e.options)?Rpe(e,i):Ope(e,t,r,i),o()}function JK(e,t){if(Ss(e.options)){let{jsFilePath:o,declarationFilePath:s}=JL(e.options,!1);return L.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=zu(()=>XL(e,t));for(let o of e.fileNames){if(Fu(o))continue;let s=Dpe(o,e,t,r);if(s)return s;if(!Gc(o,".json")&&__(e.options))return qL(o,e,t,r)}let i=Jg(e.options);return i||L.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function CF(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,f){var d=t.getCompilerOptions(),g=d.sourceMap||d.inlineSourceMap||d4(d)?[]:void 0,m=d.listEmittedFiles?[]:void 0,v=XA(),S=db(d),x=SR(S),{enter:A,exit:w}=x8("printTime","beforePrint","afterPrint"),C,P=!1;return A(),WK(t,F,eW(t,r,f),f,l,!r),w(),{emitSkipped:P,diagnostics:v.getDiagnostics(),emittedFiles:m,sourceMaps:g};function F({jsFilePath:U,sourceMapFilePath:re,declarationFilePath:le,declarationMapPath:_e,buildInfoPath:ge},X){var Ve,we,ke,Pe,Ce,Ie;let Be;ge&&X&&Bz(X)&&(Be=ni(_a(ge,t.getCurrentDirectory())),C={commonSourceDirectory:Ne(t.getCommonSourceDirectory()),sourceFiles:X.sourceFiles.map(Le=>Ne(_a(Le.fileName,t.getCurrentDirectory())))}),(Ve=ai)==null||Ve.push(ai.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:U}),q(X,U,re,Ne),(we=ai)==null||we.pop(),(ke=ai)==null||ke.push(ai.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:le}),W(X,le,_e,Ne),(Pe=ai)==null||Pe.pop(),(Ce=ai)==null||Ce.push(ai.Phase.Emit,"emitBuildInfo",{buildInfoPath:ge}),B(C,ge),(Ie=ai)==null||Ie.pop(),!P&&m&&(s||(U&&m.push(U),re&&m.push(re),ge&&m.push(ge)),s!==0&&(le&&m.push(le),_e&&m.push(_e)));function Ne(Le){return S0(Xp(Be,Le,t.getCanonicalFileName))}}function B(U,re){if(!re||r||P)return;if(t.isEmitBlocked(re)){P=!0;return}let le=t.getBuildInfo(U)||dN(void 0,U);BI(t,v,re,Npe(le),!1,void 0,{buildInfo:le})}function q(U,re,le,_e){if(!U||s||!re)return;if(t.isEmitBlocked(re)||d.noEmit){P=!0;return}let ge=lN(e,t,D,d,[U],i,!1),X={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:d.module,target:d.target,sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics,writeBundleFileInfo:!!C,relativeToBuildInfo:_e},Ve=nE(X,{hasGlobalName:e.hasGlobalName,onEmitNode:ge.emitNodeWithNotification,isEmitNotificationEnabled:ge.isEmitNotificationEnabled,substituteNode:ge.substituteNode});L.assert(ge.transformed.length===1,"Should only see one output from the transform"),R(re,le,ge,Ve,d),ge.dispose(),C&&(C.js=Ve.bundleFileInfo)}function W(U,re,le,_e){if(!U||s===0)return;if(!re){(s||d.emitDeclarationOnly)&&(P=!0);return}let ge=Li(U)?[U]:U.sourceFiles,X=f?ge:Pr(ge,LH),Ve=Ss(d)?[D.createBundle(X,Li(U)?void 0:U.prepends)]:X;s&&!__(d)&&X.forEach(Y);let we=lN(e,t,D,d,Ve,o,!1);if(Fn(we.diagnostics))for(let Ie of we.diagnostics)v.add(Ie);let ke={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:!f&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!C,recordInternalSection:!!C,relativeToBuildInfo:_e},Pe=nE(ke,{hasGlobalName:e.hasGlobalName,onEmitNode:we.emitNodeWithNotification,isEmitNotificationEnabled:we.isEmitNotificationEnabled,substituteNode:we.substituteNode}),Ce=!!we.diagnostics&&!!we.diagnostics.length||!!t.isEmitBlocked(re)||!!d.noEmit;P=P||Ce,(!Ce||f)&&(L.assert(we.transformed.length===1,"Should only see one output from the decl transform"),R(re,le,we,Pe,{sourceMap:ke.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics})),we.dispose(),C&&(C.dts=Pe.bundleFileInfo)}function Y(U){if(pc(U)){U.expression.kind===79&&e.collectLinkedAliases(U.expression,!0);return}else if(Mu(U)){e.collectLinkedAliases(U.propertyName||U.name,!0);return}pa(U,Y)}function R(U,re,le,_e,ge){let X=le.transformed[0],Ve=X.kind===309?X:void 0,we=X.kind===308?X:void 0,ke=Ve?Ve.sourceFiles:[we],Pe;ie(ge,X)&&(Pe=M_e(t,Hl(Al(U)),$(ge),fe(ge,U,we),ge)),Ve?_e.writeBundle(Ve,x,Pe):_e.writeFile(we,x,Pe);let Ce;if(Pe){g&&g.push({inputSourceFileNames:Pe.getSources(),sourceMap:Pe.toJSON()});let Be=Z(ge,Pe,U,re,we);if(Be&&(x.isAtStartOfLine()||x.rawWrite(S),Ce=x.getTextPos(),x.writeComment(`//# sourceMappingURL=${Be}`)),re){let Ne=Pe.toString();BI(t,v,re,Ne,!1,ke),_e.bundleFileInfo&&(_e.bundleFileInfo.mapHash=YT(Ne,t))}}else x.writeLine();let Ie=x.getText();BI(t,v,U,Ie,!!d.emitBOM,ke,{sourceMapUrlPos:Ce,diagnostics:le.diagnostics}),_e.bundleFileInfo&&(_e.bundleFileInfo.hash=YT(Ie,t)),x.clear()}function ie(U,re){return(U.sourceMap||U.inlineSourceMap)&&(re.kind!==308||!Gc(re.fileName,".json"))}function $(U){let re=Al(U.sourceRoot||"");return re&&cu(re)}function fe(U,re,le){if(U.sourceRoot)return t.getCommonSourceDirectory();if(U.mapRoot){let _e=Al(U.mapRoot);return le&&(_e=ni(e4(le.fileName,t,_e))),_p(_e)===0&&(_e=vi(t.getCommonSourceDirectory(),_e)),_e}return ni(So(re))}function Z(U,re,le,_e,ge){if(U.inlineSourceMap){let Ve=re.toString();return`data:application/json;base64,${tle(xl,Ve)}`}let X=Hl(Al(L.checkDefined(_e)));if(U.mapRoot){let Ve=Al(U.mapRoot);return ge&&(Ve=ni(e4(ge.fileName,t,Ve))),_p(Ve)===0?(Ve=vi(t.getCommonSourceDirectory(),Ve),encodeURI(Q1(ni(So(le)),vi(Ve,X),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(vi(Ve,X))}return encodeURI(X)}}function dN(e,t){return{bundle:t,program:e,version:Rf}}function Npe(e){return JSON.stringify(e)}function IF(e,t){return fW(e,t)}function UMe(e,t,r){var i;let o=L.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&p0(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,f)=>{var d,g;let m=s?.get(f),v=m?.directives.map(A=>{let w=it(D.createStringLiteral(A.expression.text),A.expression),C=it(D.createExpressionStatement(w),A);return go(w,C),C}),S=D.createToken(1),x=D.createSourceFile(v??[],S,0);return x.fileName=Xp(r.getCurrentDirectory(),_a(l,t),!r.useCaseSensitiveFileNames()),x.text=(d=m?.text)!=null?d:"",oL(x,0,(g=m?.text.length)!=null?g:0),i2(x.statements,x),oL(S,x.end,0),go(S,x),x})}function Ppe(e,t,r,i){var o,s;(o=ai)==null||o.push(ai.Phase.Emit,"emitUsingBuildInfo",{},!0),ZD.mark("beforeEmit");let l=VMe(e,t,r,i);return ZD.mark("afterEmit"),ZD.measure("Emit","beforeEmit","afterEmit"),(s=ai)==null||s.pop(),l}function VMe(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:f,declarationMapPath:d}=JL(e.options,!1),g=t.getBuildInfo(o,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||f&&!g.bundle.dts)return o;let m=t.readFile(L.checkDefined(s));if(!m||YT(m,t)!==g.bundle.js.hash)return s;let v=l&&t.readFile(l);if(l&&!v||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&YT(v,t)!==g.bundle.js.mapHash)return l;let S=f&&t.readFile(f);if(f&&!S||f&&YT(S,t)!==g.bundle.dts.hash)return f;let x=d&&t.readFile(d);if(d&&!x||e.options.inlineSourceMap)return d||"inline sourcemap decoding";if(d&&YT(x,t)!==g.bundle.dts.mapHash)return d;let A=ni(_a(o,t.getCurrentDirectory())),w=pz(s,m,l,v,f,S,d,x,o,g,!0),C=[],P=fq(e.projectReferences,r,Y=>t.readFile(Y),t),F=UMe(g.bundle,A,t),B,q,W={getPrependNodes:zu(()=>[...P,w]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>_a(g.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Qv,getSourceFileByPath:Qv,getSourceFiles:()=>F,getLibFileFromReference:Sa,isSourceFileFromExternalLibrary:m0,getResolvedProjectReferenceToRedirect:Qv,getProjectReferenceRedirect:Qv,isSourceOfProjectReferenceRedirect:m0,writeFile:(Y,R,ie,$,fe,Z)=>{switch(Y){case s:if(m===R)return;break;case l:if(v===R)return;break;case o:break;case f:if(S===R)return;B=R,q=Z;break;case d:if(x===R)return;break;default:L.fail(`Unexpected path: ${Y}`)}C.push({name:Y,text:R,writeByteOrderMark:ie,data:Z})},isEmitBlocked:m0,readFile:Y=>t.readFile(Y),fileExists:Y=>t.fileExists(Y),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:Y=>{let R=g.program;R&&B!==void 0&&e.options.composite&&(R.outSignature=YT(B,t,q));let{js:ie,dts:$,sourceFiles:fe}=g.bundle;return Y.js.sources=ie.sources,$&&(Y.dts.sources=$.sources),Y.sourceFiles=fe,dN(R,Y)},getSourceFileFromReference:Qv,redirectTargetsMap:Nf(),getFileIncludeReasons:Sa,createHash:ho(t,t.createHash)};return CF(LF,W,void 0,jK(e.options,i)),C}function nE(e={},t={}){var{hasGlobalName:r,onEmitNode:i=cN,isEmitNotificationEnabled:o,substituteNode:s=zL,onBeforeEmitNode:l,onAfterEmitNode:f,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:g,onBeforeEmitToken:m,onAfterEmitToken:v}=t,S=!!e.extendedDiagnostics,x=db(e),A=Rl(e),w=new Map,C,P,F,B,q,W,Y,R,ie,$,fe,Z,U,re,le,_e=e.preserveSourceNewlines,ge,X,Ve,we=uC,ke,Pe=e.writeBundleFileInfo?{sections:[]}:void 0,Ce=Pe?L.checkDefined(e.relativeToBuildInfo):void 0,Ie=e.recordInternalSection,Be=0,Ne="text",Le=!0,Ye,_t,ct=-1,Rt,We=-1,qe=-1,zt=-1,Qt=-1,tn,kn,_n=!1,Gt=!!e.removeComments,$n,ui,{enter:Ni,exit:Pi}=Zae(S,"commentTime","beforeComment","afterComment"),gr=D.parenthesizer,pt={select:E=>E===0?gr.parenthesizeLeadingTypeArgument:void 0},nn=Dc();return Oe(),{printNode:Dt,printList:pn,printFile:Kn,printBundle:An,writeNode:ri,writeList:vn,writeFile:ve,writeBundle:at,bundleFileInfo:Pe};function Dt(E,ne,Ee){switch(E){case 0:L.assert(Li(ne),"Expected a SourceFile node.");break;case 2:L.assert(Re(ne),"Expected an Identifier node.");break;case 1:L.assert(ot(ne),"Expected an Expression node.");break}switch(ne.kind){case 308:return Kn(ne);case 309:return An(ne);case 310:return hi(ne)}return ri(E,ne,Ee,nt()),ce()}function pn(E,ne,Ee){return vn(E,ne,Ee,nt()),ce()}function An(E){return at(E,nt(),void 0),ce()}function Kn(E){return ve(E,nt(),void 0),ce()}function hi(E){return Tt(E,nt()),ce()}function ri(E,ne,Ee,Wt){let lr=X;G(Wt,void 0),Q(E,ne,Ee),Oe(),X=lr}function vn(E,ne,Ee,Wt){let lr=X;G(Wt,void 0),Ee&&ue(Ee),cs(void 0,ne,E),Oe(),X=lr}function Ht(){return X.getTextPosWithWriteLine?X.getTextPosWithWriteLine():X.getTextPos()}function En(E,ne,Ee){let Wt=Os(Pe.sections);Wt&&Wt.kind===Ee?Wt.end=ne:Pe.sections.push({pos:E,end:ne,kind:Ee})}function dr(E){if(Ie&&Pe&&C&&(Kl(E)||Bc(E))&&BK(E,C)&&Ne!=="internal"){let ne=Ne;return Se(X.getTextPos()),Be=Ht(),Ne="internal",ne}}function Cr(E){E&&(Se(X.getTextPos()),Be=Ht(),Ne=E)}function Se(E){return Be<E?(En(Be,E,Ne),!0):!1}function at(E,ne,Ee){ke=!1;let Wt=X;G(ne,Ee),Bb(E),T1(E),Vt(E),v1(E);for(let lr of E.prepends){nl();let ci=X.getTextPos(),qr=Pe&&Pe.sections;if(qr&&(Pe.sections=[]),Q(4,lr,void 0),Pe){let Ti=Pe.sections;Pe.sections=qr,lr.oldFileOfCurrentEmit?Pe.sections.push(...Ti):(Ti.forEach(Wa=>L.assert(dle(Wa))),Pe.sections.push({pos:ci,end:X.getTextPos(),kind:"prepend",data:Ce(lr.fileName),texts:Ti}))}}Be=Ht();for(let lr of E.sourceFiles)Q(0,lr,lr);if(Pe&&E.sourceFiles.length){let lr=X.getTextPos();if(Se(lr)){let ci=xx(E);ci&&(Pe.sources||(Pe.sources={}),Pe.sources.prologues=ci);let qr=Qe(E);qr&&(Pe.sources||(Pe.sources={}),Pe.sources.helpers=qr)}}Oe(),X=Wt}function Tt(E,ne){let Ee=X;G(ne,void 0),Q(4,E,void 0),Oe(),X=Ee}function ve(E,ne,Ee){ke=!0;let Wt=X;G(ne,Ee),Bb(E),T1(E),Q(0,E,E),Oe(),X=Wt}function nt(){return Ve||(Ve=SR(x))}function ce(){let E=Ve.getText();return Ve.clear(),E}function Q(E,ne,Ee){Ee&&ue(Ee),rt(E,ne,void 0)}function ue(E){C=E,tn=void 0,kn=void 0,E&&sg(E)}function G(E,ne){E&&e.omitTrailingSemicolon&&(E=XH(E)),X=E,Ye=ne,Le=!X||!Ye}function Oe(){P=[],F=[],B=[],q=new Set,W=[],Y=new Map,R=[],ie=0,$=[],fe=0,Z=[],U=void 0,re=[],le=void 0,C=void 0,tn=void 0,kn=void 0,G(void 0,void 0)}function je(){return tn||(tn=Sh(L.checkDefined(C)))}function Ge(E,ne){if(E===void 0)return;let Ee=dr(E);rt(4,E,ne),Cr(Ee)}function kt(E){E!==void 0&&rt(2,E,void 0)}function Kt(E,ne){E!==void 0&&rt(1,E,ne)}function ln(E){rt(yo(E)?6:4,E)}function ir(E){_e&&o_(E)&4&&(_e=!1)}function ae(E){_e=E}function rt(E,ne,Ee){ui=Ee,oe(0,E,ne)(E,ne),ui=void 0}function Ot(E){return!Gt&&!Li(E)}function Ke(E){return!Le&&!Li(E)&&!B6(E)&&!BT(E)&&!Wue(E)}function oe(E,ne,Ee){switch(E){case 0:if(i!==cN&&(!o||o(Ee)))return z;case 1:if(s!==zL&&($n=s(ne,Ee)||Ee)!==Ee)return ui&&($n=ui($n)),lt;case 2:if(Ot(Ee))return vd;case 3:if(Ke(Ee))return OE;case 4:return Te;default:return L.assertNever(E)}}function pe(E,ne,Ee){return oe(E+1,ne,Ee)}function z(E,ne){let Ee=pe(0,E,ne);i(E,ne,Ee)}function Te(E,ne){if(l?.(ne),_e){let Ee=_e;ir(ne),j(E,ne),ae(Ee)}else j(E,ne);f?.(ne),ui=void 0}function j(E,ne,Ee=!0){if(Ee){let Wt=bz(ne);if(Wt)return Fa(E,ne,Wt)}if(E===0)return Fb(Ga(ne,Li));if(E===2)return Nr(Ga(ne,Re));if(E===6)return ei(Ga(ne,yo),!0);if(E===3)return yt(Ga(ne,_c));if(E===5)return L.assertNode(ne,Pz),oa(!0);if(E===4){switch(ne.kind){case 15:case 16:case 17:return ei(ne,!1);case 79:return Nr(ne);case 80:return Fo(ne);case 163:return Qr(ne);case 164:return gn(ne);case 165:return Ki(ne);case 166:return kc(ne);case 167:return Ps(ne);case 168:return mc(ne);case 169:return xc(ne);case 170:return hc(ne);case 171:return ro(ne);case 172:return aa(ne);case 173:return Co(ne);case 174:case 175:return gc(ne);case 176:return Ll(ne);case 177:return md(ne);case 178:return Pc(ne);case 179:return qs(ne);case 180:return Rs(ne);case 181:return As(ne);case 182:return se(ne);case 183:return ht(ne);case 184:return wt(ne);case 185:return K(ne);case 186:return ft(ne);case 187:return pr(ne);case 189:return yr(ne);case 190:return ta(ne);case 191:return Go(ne);case 192:return Ka(ne);case 193:return vo(ne);case 230:return Jf(ne);case 194:return ka();case 195:return Hs(ne);case 196:return Uc(ne);case 197:return Gu(ne);case 198:return $o(ne);case 199:return Yt(ne);case 200:return jo(ne);case 201:return bl(ne);case 202:return Ws(ne);case 203:return hd(ne);case 204:return vc(ne);case 205:return nf(ne);case 236:return He(ne);case 237:return ss();case 238:return Nt(ne);case 240:return la(ne);case 239:return oa(!1);case 241:return be(ne);case 242:return De(ne);case 243:return St(ne);case 244:return Zt(ne);case 245:return rn(ne);case 246:return sn(ne);case 247:return Dn(ne);case 248:return ki(ne);case 249:return Vn(ne);case 250:return mm(ne);case 251:return Hh(ne);case 252:return T_(ne);case 253:return Cb(ne);case 254:return mv(ne);case 255:return gx(ne);case 256:return _1(ne);case 257:return yx(ne);case 258:return Wh(ne);case 259:return S_(ne);case 260:return p1(ne);case 261:return dE(ne);case 262:return fE(ne);case 263:return yv(ne);case 264:return vx(ne);case 265:return _E(ne);case 266:return pE(ne);case 267:return x_(ne);case 268:return vv(ne);case 269:return bv(ne);case 270:return m1(ne);case 271:return Jh(ne);case 277:return Zu(ne);case 272:return Lo(ne);case 273:return mE(ne);case 274:return sC(ne);case 275:return Zg(ne);case 276:return ed(ne);case 278:return td(ne);case 296:return Kh(ne);case 297:return hm(ne);case 279:return;case 280:return bx(ne);case 11:return Ob(ne);case 283:case 286:return h1(ne);case 284:case 287:return cC(ne);case 288:return Ev(ne);case 289:return Ex(ne);case 290:return hE(ne);case 291:return Tv(ne);case 292:return Sv(ne);case 293:return Xh(ne);case 294:return wo(ne);case 295:return A_(ne);case 299:return gE(ne);case 300:return Kc(ne);case 301:return th(ne);case 302:return Pb(ne);case 303:return Si(ne);case 310:case 304:return Kr(ne);case 305:case 306:return Ja(ne);case 307:return Za(ne);case 308:return Fb(ne);case 309:return L.fail("Bundles should be printed using printBundle");case 311:return L.fail("InputFiles should not be printed");case 312:return zs(ne);case 313:return Yh(ne);case 315:return Qn("*");case 316:return Qn("?");case 317:return yc(ne);case 318:return Ql(ne);case 319:return yu(ne);case 320:return jt(ne);case 188:case 321:return Xe(ne);case 322:return;case 323:return C_(ne);case 325:return yd(ne);case 326:return yE(ne);case 330:case 335:case 340:return gm(ne);case 331:case 332:return ll(ne);case 333:case 334:return;case 336:case 337:case 338:case 339:return;case 341:return Ai(ne);case 342:return Rr(ne);case 344:case 351:return $h(ne);case 343:case 345:case 346:case 347:case 352:case 353:return Mb(ne);case 348:return y1(ne);case 349:return lC(ne);case 350:return Ml(ne);case 355:case 359:case 358:return}if(ot(ne)&&(E=1,s!==zL)){let Wt=s(E,ne)||ne;Wt!==ne&&(ne=Wt,ui&&(ne=ui(ne)))}}if(E===1)switch(ne.kind){case 8:case 9:return jr(ne);case 10:case 13:case 14:return ei(ne,!1);case 79:return Nr(ne);case 80:return Fo(ne);case 206:return ye(ne);case 207:return Et(ne);case 208:return bn(ne);case 209:return io(ne);case 210:return ee(ne);case 211:return Ze(ne);case 212:return At(ne);case 213:return xt(ne);case 214:return qt(ne);case 215:return Ln(ne);case 216:return mr(ne);case 217:return gi(ne);case 218:return Ea(ne);case 219:return bo(ne);case 220:return Qo(ne);case 221:return Cs(ne);case 222:return Pd(ne);case 223:return nn(ne);case 224:return gd(ne);case 225:return Zl(ne);case 226:return Md(ne);case 227:return zf(ne);case 228:return Io(ne);case 229:return;case 231:return Fd(ne);case 232:return E_(ne);case 230:return Jf(ne);case 235:return Y_(ne);case 233:return M(ne);case 234:return L.fail("SyntheticExpression should never be printed.");case 279:return;case 281:return wb(ne);case 282:return qh(ne);case 285:return Rb(ne);case 354:return L.fail("SyntaxList should not be printed");case 355:return;case 356:return Tx(ne);case 357:return Sx(ne);case 358:case 359:return;case 360:return L.fail("SyntheticReferenceExpression should not be printed")}if(Xu(ne.kind))return EE(ne,zi);if(Nj(ne.kind))return EE(ne,Qn);L.fail(`Unhandled SyntaxKind: ${L.formatSyntaxKind(ne.kind)}.`)}function yt(E){Ge(E.name),Wn(),zi("in"),Wn(),Ge(E.constraint)}function lt(E,ne){let Ee=pe(1,E,ne);L.assertIsDefined($n),ne=$n,$n=void 0,Ee(E,ne)}function Qe(E){let ne;if(A===0||e.noEmitHelpers)return;let Ee=new Map;for(let Wt of E.sourceFiles){let lr=SO(Wt)!==void 0,ci=Hn(Wt);if(ci)for(let qr of ci)!qr.scoped&&!lr&&!Ee.get(qr.name)&&(Ee.set(qr.name,!0),(ne||(ne=[])).push(qr.name))}return ne}function Vt(E){let ne=!1,Ee=E.kind===309?E:void 0;if(Ee&&A===0)return;let Wt=Ee?Ee.prepends.length:0,lr=Ee?Ee.sourceFiles.length+Wt:1;for(let ci=0;ci<lr;ci++){let qr=Ee?ci<Wt?Ee.prepends[ci]:Ee.sourceFiles[ci-Wt]:E,Ti=Li(qr)?qr:BT(qr)?void 0:C,Wa=e.noEmitHelpers||!!Ti&&ide(Ti),kl=(Li(qr)||BT(qr))&&!ke,Ed=BT(qr)?qr.helpers:Hn(qr);if(Ed)for(let Ud of Ed){if(Ud.scoped){if(Ee)continue}else{if(Wa)continue;if(kl){if(w.get(Ud.name))continue;w.set(Ud.name,!0)}}let fy=Ht();typeof Ud.text=="string"?Ac(Ud.text):Ac(Ud.text(of)),Pe&&Pe.sections.push({pos:fy,end:X.getTextPos(),kind:"emitHelpers",data:Ud.name}),ne=!0}}return ne}function Hn(E){let ne=O4(E);return ne&&Ag(ne,Sue)}function jr(E){ei(E,!1)}function ei(E,ne){let Ee=uc(E,e.neverAsciiEscape,ne);(e.sourceMap||e.inlineSourceMap)&&(E.kind===10||Hy(E.kind))?jb(Ee):Ix(Ee)}function Kr(E){for(let ne of E.texts)nl(),Ge(ne)}function Si(E){X.rawWrite(E.parent.text.substring(E.pos,E.end))}function Ja(E){let ne=Ht();Si(E),Pe&&En(ne,X.getTextPos(),E.kind===305?"text":"internal")}function Za(E){let ne=Ht();if(Si(E),Pe){let Ee=VU(E.section);Ee.pos=ne,Ee.end=X.getTextPos(),Pe.sections.push(Ee)}}function Fa(E,ne,Ee){switch(Ee.kind){case 1:Hi(E,ne,Ee);break;case 0:xi(E,ne,Ee);break}}function Hi(E,ne,Ee){ry(`\${${Ee.order}:`),j(E,ne,!1),ry("}")}function xi(E,ne,Ee){L.assert(ne.kind===239,`A tab stop cannot be attached to a node of kind ${L.formatSyntaxKind(ne.kind)}.`),L.assert(E!==5,"A tab stop cannot be attached to an embedded statement."),ry(`$${Ee.order}`)}function Nr(E){(E.symbol?Lx:we)(oy(E,!1),E.symbol),cs(E,NT(E),53776)}function Fo(E){we(oy(E,!1))}function Qr(E){Wi(E.left),Qn("."),Ge(E.right)}function Wi(E){E.kind===79?Kt(E):Ge(E)}function gn(E){let ne=ie,Ee=le;Gl(),Qn("["),Kt(E.expression,gr.parenthesizeExpressionOfComputedPropertyName),Qn("]"),Iv(ne,Ee)}function Ki(E){Qh(E,E.modifiers),Ge(E.name),E.constraint&&(Wn(),zi("extends"),Wn(),Ge(E.constraint)),E.default&&(Wn(),af("="),Wn(),Ge(E.default))}function kc(E){rf(E,E.modifiers,!0),Ge(E.dotDotDotToken),S1(E.name,Av),Ge(E.questionToken),E.parent&&E.parent.kind===320&&!E.name?Ge(E.type):Q_(E.type),I_(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name?E.name.end:E.modifiers?E.modifiers.end:E.pos,E,gr.parenthesizeExpressionForDisallowedComma)}function Ps(E){Qn("@"),Kt(E.expression,gr.parenthesizeLeftSideOfAccess)}function mc(E){Qh(E,E.modifiers),S1(E.name,kx),Ge(E.questionToken),Q_(E.type),lc()}function xc(E){rf(E,E.modifiers,!0),Ge(E.name),Ge(E.questionToken),Ge(E.exclamationToken),Q_(E.type),I_(E.initializer,E.type?E.type.end:E.questionToken?E.questionToken.end:E.name.end,E),lc()}function hc(E){ng(E),Qh(E,E.modifiers),Ge(E.name),Ge(E.questionToken),Dp(E,E.typeParameters),eg(E,E.parameters),Q_(E.type),lc(),ih(E)}function ro(E){rf(E,E.modifiers,!0),Ge(E.asteriskToken),Ge(E.name),Ge(E.questionToken),eh(E,$_)}function aa(E){zi("static"),lE(E.body)}function Co(E){rf(E,E.modifiers,!1),zi("constructor"),eh(E,$_)}function gc(E){let ne=rf(E,E.modifiers,!0),Ee=E.kind===174?137:151;$t(Ee,ne,zi,E),Wn(),Ge(E.name),eh(E,$_)}function Ll(E){ng(E),Dp(E,E.typeParameters),eg(E,E.parameters),Q_(E.type),lc(),ih(E)}function md(E){ng(E),zi("new"),Wn(),Dp(E,E.typeParameters),eg(E,E.parameters),Q_(E.type),lc(),ih(E)}function Pc(E){rf(E,E.modifiers,!1),ty(E,E.parameters),Q_(E.type),lc()}function bl(E){Ge(E.type),Ge(E.literal)}function ss(){lc()}function qs(E){E.assertsModifier&&(Ge(E.assertsModifier),Wn()),Ge(E.parameterName),E.type&&(Wn(),zi("is"),Wn(),Ge(E.type))}function Rs(E){Ge(E.typeName),kp(E,E.typeArguments)}function As(E){ng(E),Dp(E,E.typeParameters),A1(E,E.parameters),Wn(),Qn("=>"),Wn(),Ge(E.type),ih(E)}function jt(E){zi("function"),eg(E,E.parameters),Qn(":"),Ge(E.type)}function yc(E){Qn("?"),Ge(E.type)}function Ql(E){Qn("!"),Ge(E.type)}function yu(E){Ge(E.type),Qn("=")}function se(E){ng(E),Qh(E,E.modifiers),zi("new"),Wn(),Dp(E,E.typeParameters),eg(E,E.parameters),Wn(),Qn("=>"),Wn(),Ge(E.type),ih(E)}function ht(E){zi("typeof"),Wn(),Ge(E.exprName),kp(E,E.typeArguments)}function wt(E){Iv(0,void 0),Qn("{");let ne=Ya(E)&1?768:32897;cs(E,E.members,ne|524288),Qn("}"),Gl()}function K(E){Ge(E.elementType,gr.parenthesizeNonArrayTypeOfPostfixType),Qn("["),Qn("]")}function Xe(E){Qn("..."),Ge(E.type)}function ft(E){$t(22,E.pos,Qn,E);let ne=Ya(E)&1?528:657;cs(E,E.elements,ne|524288,gr.parenthesizeElementTypeOfTupleType),$t(23,E.elements.end,Qn,E)}function Yt(E){Ge(E.dotDotDotToken),Ge(E.name),Ge(E.questionToken),$t(58,E.name.end,Qn,E),Wn(),Ge(E.type)}function pr(E){Ge(E.type,gr.parenthesizeTypeOfOptionalType),Qn("?")}function yr(E){cs(E,E.types,516,gr.parenthesizeConstituentTypeOfUnionType)}function ta(E){cs(E,E.types,520,gr.parenthesizeConstituentTypeOfIntersectionType)}function Go(E){Ge(E.checkType,gr.parenthesizeCheckTypeOfConditionalType),Wn(),zi("extends"),Wn(),Ge(E.extendsType,gr.parenthesizeExtendsTypeOfConditionalType),Wn(),Qn("?"),Wn(),Ge(E.trueType),Wn(),Qn(":"),Wn(),Ge(E.falseType)}function Ka(E){zi("infer"),Wn(),Ge(E.typeParameter)}function vo(E){Qn("("),Ge(E.type),Qn(")")}function ka(){zi("this")}function Hs(E){L_(E.operator,zi),Wn();let ne=E.operator===146?gr.parenthesizeOperandOfReadonlyTypeOperator:gr.parenthesizeOperandOfTypeOperator;Ge(E.type,ne)}function Uc(E){Ge(E.objectType,gr.parenthesizeNonArrayTypeOfPostfixType),Qn("["),Ge(E.indexType),Qn("]")}function Gu(E){let ne=Ya(E);Qn("{"),ne&1?Wn():(nl(),Kf()),E.readonlyToken&&(Ge(E.readonlyToken),E.readonlyToken.kind!==146&&zi("readonly"),Wn()),Qn("["),rt(3,E.typeParameter),E.nameType&&(Wn(),zi("as"),Wn(),Ge(E.nameType)),Qn("]"),E.questionToken&&(Ge(E.questionToken),E.questionToken.kind!==57&&Qn("?")),Qn(":"),Wn(),Ge(E.type),lc(),ne&1?Wn():(nl(),Z_()),cs(E,E.members,2),Qn("}")}function $o(E){Kt(E.literal)}function jo(E){Ge(E.head),cs(E,E.templateSpans,262144)}function Ws(E){if(E.isTypeOf&&(zi("typeof"),Wn()),zi("import"),Qn("("),Ge(E.argument),E.assertions){Qn(","),Wn(),Qn("{"),Wn(),zi("assert"),Qn(":"),Wn();let ne=E.assertions.assertClause.elements;cs(E.assertions.assertClause,ne,526226),Wn(),Qn("}")}Qn(")"),E.qualifier&&(Qn("."),Ge(E.qualifier)),kp(E,E.typeArguments)}function hd(E){Qn("{"),cs(E,E.elements,525136),Qn("}")}function vc(E){Qn("["),cs(E,E.elements,524880),Qn("]")}function nf(E){Ge(E.dotDotDotToken),E.propertyName&&(Ge(E.propertyName),Qn(":"),Wn()),Ge(E.name),I_(E.initializer,E.name.end,E,gr.parenthesizeExpressionForDisallowedComma)}function ye(E){let ne=E.elements,Ee=E.multiLine?65536:0;ny(E,ne,8914|Ee,gr.parenthesizeExpressionForDisallowedComma)}function Et(E){Iv(0,void 0),mn(E.properties,xE);let ne=Ya(E)&131072;ne&&Kf();let Ee=E.multiLine?65536:0,Wt=C&&C.languageVersion>=1&&!Mf(C)?64:0;cs(E,E.properties,526226|Wt|Ee),ne&&Z_(),Gl()}function bn(E){Kt(E.expression,gr.parenthesizeLeftSideOfAccess);let ne=E.questionDotToken||om(D.createToken(24),E.expression.end,E.name.pos),Ee=ep(E,E.expression,ne),Wt=ep(E,ne,E.name);wc(Ee,!1),ne.kind!==28&&Ri(E.expression)&&!X.hasTrailingComment()&&!X.hasTrailingWhitespace()&&Qn("."),E.questionDotToken?Ge(ne):$t(ne.kind,E.expression.end,Qn,E),wc(Wt,!1),Ge(E.name),tg(Ee,Wt)}function Ri(E){if(E=a_(E),Vf(E)){let ne=uc(E,!0,!1);return!E.numericLiteralFlags&&!jl(ne,Xa(24))}else if(Us(E)){let ne=mue(E);return typeof ne=="number"&&isFinite(ne)&&Math.floor(ne)===ne}}function io(E){Kt(E.expression,gr.parenthesizeLeftSideOfAccess),Ge(E.questionDotToken),$t(22,E.expression.end,Qn,E),Kt(E.argumentExpression),$t(23,E.argumentExpression.end,Qn,E)}function ee(E){let ne=o_(E)&16;ne&&(Qn("("),jb("0"),Qn(","),Wn()),Kt(E.expression,gr.parenthesizeLeftSideOfAccess),ne&&Qn(")"),Ge(E.questionDotToken),kp(E,E.typeArguments),ny(E,E.arguments,2576,gr.parenthesizeExpressionForDisallowedComma)}function Ze(E){$t(103,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeExpressionOfNew),kp(E,E.typeArguments),ny(E,E.arguments,18960,gr.parenthesizeExpressionForDisallowedComma)}function At(E){let ne=o_(E)&16;ne&&(Qn("("),jb("0"),Qn(","),Wn()),Kt(E.tag,gr.parenthesizeLeftSideOfAccess),ne&&Qn(")"),kp(E,E.typeArguments),Wn(),Kt(E.template)}function xt(E){Qn("<"),Ge(E.type),Qn(">"),Kt(E.expression,gr.parenthesizeOperandOfPrefixUnary)}function qt(E){let ne=$t(20,E.pos,Qn,E),Ee=TE(E.expression,E);Kt(E.expression,void 0),Hb(E.expression,E),tg(Ee),$t(21,E.expression?E.expression.end:ne,Qn,E)}function Ln(E){oh(E.name),hv(E)}function mr(E){Qh(E,E.modifiers),eh(E,Vr)}function Vr(E){Dp(E,E.typeParameters),A1(E,E.parameters),Q_(E.type),Wn(),Ge(E.equalsGreaterThanToken)}function gi(E){$t(89,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeOperandOfPrefixUnary)}function Ea(E){$t(112,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeOperandOfPrefixUnary)}function bo(E){$t(114,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeOperandOfPrefixUnary)}function Qo(E){$t(133,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeOperandOfPrefixUnary)}function Cs(E){L_(E.operator,af),Bu(E)&&Wn(),Kt(E.operand,gr.parenthesizeOperandOfPrefixUnary)}function Bu(E){let ne=E.operand;return ne.kind===221&&(E.operator===39&&(ne.operator===39||ne.operator===45)||E.operator===40&&(ne.operator===40||ne.operator===46))}function Pd(E){Kt(E.operand,gr.parenthesizeOperandOfPostfixUnary),L_(E.operator,af)}function Dc(){return C3(E,ne,Ee,Wt,lr,void 0);function E(qr,Ti){if(Ti){Ti.stackIndex++,Ti.preserveSourceNewlinesStack[Ti.stackIndex]=_e,Ti.containerPosStack[Ti.stackIndex]=qe,Ti.containerEndStack[Ti.stackIndex]=zt,Ti.declarationListContainerEndStack[Ti.stackIndex]=Qt;let Wa=Ti.shouldEmitCommentsStack[Ti.stackIndex]=Ot(qr),kl=Ti.shouldEmitSourceMapsStack[Ti.stackIndex]=Ke(qr);l?.(qr),Wa&&ju(qr),kl&&NE(qr),ir(qr)}else Ti={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ti}function ne(qr,Ti,Wa){return ci(qr,Wa,"left")}function Ee(qr,Ti,Wa){let kl=qr.kind!==27,Ed=ep(Wa,Wa.left,qr),Ud=ep(Wa,qr,Wa.right);wc(Ed,kl),rd(qr.pos),EE(qr,qr.kind===101?zi:af),ag(qr.end,!0),wc(Ud,!0)}function Wt(qr,Ti,Wa){return ci(qr,Wa,"right")}function lr(qr,Ti){let Wa=ep(qr,qr.left,qr.operatorToken),kl=ep(qr,qr.operatorToken,qr.right);if(tg(Wa,kl),Ti.stackIndex>0){let Ed=Ti.preserveSourceNewlinesStack[Ti.stackIndex],Ud=Ti.containerPosStack[Ti.stackIndex],fy=Ti.containerEndStack[Ti.stackIndex],Td=Ti.declarationListContainerEndStack[Ti.stackIndex],Ov=Ti.shouldEmitCommentsStack[Ti.stackIndex],Nv=Ti.shouldEmitSourceMapsStack[Ti.stackIndex];ae(Ed),Nv&&PE(qr),Ov&&I1(qr,Ud,fy,Td),f?.(qr),Ti.stackIndex--}}function ci(qr,Ti,Wa){let kl=Wa==="left"?gr.getParenthesizeLeftSideOfBinaryForOperator(Ti.operatorToken.kind):gr.getParenthesizeRightSideOfBinaryForOperator(Ti.operatorToken.kind),Ed=oe(0,1,qr);if(Ed===lt&&(L.assertIsDefined($n),qr=kl(Ga($n,ot)),Ed=pe(1,1,qr),$n=void 0),(Ed===vd||Ed===OE||Ed===Te)&&ar(qr))return qr;ui=kl,Ed(1,qr)}}function gd(E){let ne=ep(E,E.condition,E.questionToken),Ee=ep(E,E.questionToken,E.whenTrue),Wt=ep(E,E.whenTrue,E.colonToken),lr=ep(E,E.colonToken,E.whenFalse);Kt(E.condition,gr.parenthesizeConditionOfConditionalExpression),wc(ne,!0),Ge(E.questionToken),wc(Ee,!0),Kt(E.whenTrue,gr.parenthesizeBranchOfConditionalExpression),tg(ne,Ee),wc(Wt,!0),Ge(E.colonToken),wc(lr,!0),Kt(E.whenFalse,gr.parenthesizeBranchOfConditionalExpression),tg(Wt,lr)}function Zl(E){Ge(E.head),cs(E,E.templateSpans,262144)}function Md(E){$t(125,E.pos,zi,E),Ge(E.asteriskToken),Lp(E.expression&&Is(E.expression),Mc)}function zf(E){$t(25,E.pos,Qn,E),Kt(E.expression,gr.parenthesizeExpressionForDisallowedComma)}function Io(E){oh(E.name),uE(E)}function Jf(E){Kt(E.expression,gr.parenthesizeLeftSideOfAccess),kp(E,E.typeArguments)}function Fd(E){Kt(E.expression,void 0),E.type&&(Wn(),zi("as"),Wn(),Ge(E.type))}function E_(E){Kt(E.expression,gr.parenthesizeLeftSideOfAccess),af("!")}function Y_(E){Kt(E.expression,void 0),E.type&&(Wn(),zi("satisfies"),Wn(),Ge(E.type))}function M(E){iy(E.keywordToken,E.pos,Qn),Qn("."),Ge(E.name)}function He(E){Kt(E.expression),Ge(E.literal)}function Nt(E){Pn(E,!E.multiLine&&rh(E))}function Pn(E,ne){$t(18,E.pos,Qn,E);let Ee=ne||Ya(E)&1?768:129;cs(E,E.statements,Ee),$t(19,E.statements.end,Qn,E,!!(Ee&1))}function la(E){rf(E,E.modifiers,!1),Ge(E.declarationList),lc()}function oa(E){E?Qn(";"):lc()}function be(E){Kt(E.expression,gr.parenthesizeExpressionOfExpressionStatement),(!C||!Mf(C)||ws(E.expression))&&lc()}function De(E){let ne=$t(99,E.pos,zi,E);Wn(),$t(20,ne,Qn,E),Kt(E.expression),$t(21,E.expression.end,Qn,E),Uu(E,E.thenStatement),E.elseStatement&&(ay(E,E.thenStatement,E.elseStatement),$t(91,E.thenStatement.end,zi,E),E.elseStatement.kind===242?(Wn(),Ge(E.elseStatement)):Uu(E,E.elseStatement))}function mt(E,ne){let Ee=$t(115,ne,zi,E);Wn(),$t(20,Ee,Qn,E),Kt(E.expression),$t(21,E.expression.end,Qn,E)}function St(E){$t(90,E.pos,zi,E),Uu(E,E.statement),Va(E.statement)&&!_e?Wn():ay(E,E.statement,E.expression),mt(E,E.statement.end),lc()}function Zt(E){mt(E,E.pos),Uu(E,E.statement)}function rn(E){let ne=$t(97,E.pos,zi,E);Wn();let Ee=$t(20,ne,Qn,E);kr(E.initializer),Ee=$t(26,E.initializer?E.initializer.end:Ee,Qn,E),Lp(E.condition),Ee=$t(26,E.condition?E.condition.end:Ee,Qn,E),Lp(E.incrementor),$t(21,E.incrementor?E.incrementor.end:Ee,Qn,E),Uu(E,E.statement)}function sn(E){let ne=$t(97,E.pos,zi,E);Wn(),$t(20,ne,Qn,E),kr(E.initializer),Wn(),$t(101,E.initializer.end,zi,E),Wn(),Kt(E.expression),$t(21,E.expression.end,Qn,E),Uu(E,E.statement)}function Dn(E){let ne=$t(97,E.pos,zi,E);Wn(),x1(E.awaitModifier),$t(20,ne,Qn,E),kr(E.initializer),Wn(),$t(162,E.initializer.end,zi,E),Wn(),Kt(E.expression),$t(21,E.expression.end,Qn,E),Uu(E,E.statement)}function kr(E){E!==void 0&&(E.kind===258?Ge(E):Kt(E))}function ki(E){$t(86,E.pos,zi,E),Ub(E.label),lc()}function Vn(E){$t(81,E.pos,zi,E),Ub(E.label),lc()}function $t(E,ne,Ee,Wt,lr){let ci=ea(Wt),qr=ci&&ci.kind===Wt.kind,Ti=ne;if(qr&&C&&(ne=xo(C.text,ne)),qr&&Wt.pos!==Ti){let Wa=lr&&C&&!Bf(Ti,ne,C);Wa&&Kf(),rd(Ti),Wa&&Z_()}if(ne=L_(E,Ee,ne),qr&&Wt.end!==ne){let Wa=Wt.kind===291;ag(ne,!Wa,Wa)}return ne}function Xn(E){return E.kind===2||!!E.hasTrailingNewLine}function ra(E){return C?vt(Nm(C.text,E.pos),Xn)||vt(l2(E),Xn)?!0:_3(E)?E.pos!==E.expression.pos&&vt(eb(C.text,E.expression.pos),Xn)?!0:ra(E.expression):!1:!1}function Is(E){if(!Gt&&_3(E)&&ra(E)){let ne=ea(E);if(ne&&ud(ne)){let Ee=D.createParenthesizedExpression(E.expression);return Ir(Ee,E),it(Ee,ne),Ee}return D.createParenthesizedExpression(E)}return E}function Mc(E){return Is(gr.parenthesizeExpressionForDisallowedComma(E))}function mm(E){$t(105,E.pos,zi,E),Lp(E.expression&&Is(E.expression),Is),lc()}function Hh(E){let ne=$t(116,E.pos,zi,E);Wn(),$t(20,ne,Qn,E),Kt(E.expression),$t(21,E.expression.end,Qn,E),Uu(E,E.statement)}function T_(E){let ne=$t(107,E.pos,zi,E);Wn(),$t(20,ne,Qn,E),Kt(E.expression),$t(21,E.expression.end,Qn,E),Wn(),Ge(E.caseBlock)}function Cb(E){Ge(E.label),$t(58,E.label.end,Qn,E),Wn(),Ge(E.statement)}function mv(E){$t(109,E.pos,zi,E),Lp(Is(E.expression),Is),lc()}function gx(E){$t(111,E.pos,zi,E),Wn(),Ge(E.tryBlock),E.catchClause&&(ay(E,E.tryBlock,E.catchClause),Ge(E.catchClause)),E.finallyBlock&&(ay(E,E.catchClause||E.tryBlock,E.finallyBlock),$t(96,(E.catchClause||E.tryBlock).end,zi,E),Wn(),Ge(E.finallyBlock))}function _1(E){iy(87,E.pos,zi),lc()}function yx(E){var ne,Ee,Wt,lr,ci;Ge(E.name),Ge(E.exclamationToken),Q_(E.type),I_(E.initializer,(ci=(lr=(ne=E.type)==null?void 0:ne.end)!=null?lr:(Wt=(Ee=E.name.emitNode)==null?void 0:Ee.typeNode)==null?void 0:Wt.end)!=null?ci:E.name.end,E,gr.parenthesizeExpressionForDisallowedComma)}function Wh(E){zi(II(E)?"let":kh(E)?"const":"var"),Wn(),cs(E,E.declarations,528)}function S_(E){hv(E)}function hv(E){rf(E,E.modifiers,!1),zi("function"),Ge(E.asteriskToken),Wn(),kt(E.name),eh(E,$_)}function eh(E,ne){let Ee=E.body;if(Ee)if(Va(Ee)){let Wt=Ya(E)&131072;Wt&&Kf(),ng(E),mn(E.parameters,qc),qc(E.body),ne(E),lE(Ee),ih(E),Wt&&Z_()}else ne(E),Wn(),Kt(Ee,gr.parenthesizeConciseBodyOfArrowFunction);else ne(E),lc()}function $_(E){Dp(E,E.typeParameters),eg(E,E.parameters),Q_(E.type)}function gv(E){if(Ya(E)&1)return!0;if(E.multiLine||!ws(E)&&C&&!DT(E,C)||Fl(E,Sl(E.statements),2)||bm(E,Os(E.statements),2,E.statements))return!1;let ne;for(let Ee of E.statements){if(qf(ne,Ee,2)>0)return!1;ne=Ee}return!0}function lE(E){l?.(E),Wn(),Qn("{"),Kf();let ne=gv(E)?Ib:zh;ig(E,E.statements,ne),Z_(),iy(19,E.statements.end,Qn,E),f?.(E)}function Ib(E){zh(E,!0)}function zh(E,ne){let Ee=xv(E.statements),Wt=X.getTextPos();Vt(E),Ee===0&&Wt===X.getTextPos()&&ne?(Z_(),cs(E,E.statements,768),Kf()):cs(E,E.statements,1,void 0,Ee)}function p1(E){uE(E)}function uE(E){Iv(0,void 0),mn(E.members,xE),rf(E,E.modifiers,!0),$t(84,yp(E).pos,zi,E),E.name&&(Wn(),kt(E.name));let ne=Ya(E)&131072;ne&&Kf(),Dp(E,E.typeParameters),cs(E,E.heritageClauses,0),Wn(),Qn("{"),cs(E,E.members,129),Qn("}"),ne&&Z_(),Gl()}function dE(E){Iv(0,void 0),rf(E,E.modifiers,!1),zi("interface"),Wn(),Ge(E.name),Dp(E,E.typeParameters),cs(E,E.heritageClauses,512),Wn(),Qn("{"),cs(E,E.members,129),Qn("}"),Gl()}function fE(E){rf(E,E.modifiers,!1),zi("type"),Wn(),Ge(E.name),Dp(E,E.typeParameters),Wn(),Qn("="),Wn(),Ge(E.type),lc()}function yv(E){rf(E,E.modifiers,!1),zi("enum"),Wn(),Ge(E.name),Wn(),Qn("{"),cs(E,E.members,145),Qn("}")}function vx(E){rf(E,E.modifiers,!1),~E.flags&1024&&(zi(E.flags&16?"namespace":"module"),Wn()),Ge(E.name);let ne=E.body;if(!ne)return lc();for(;ne&&Tc(ne);)Qn("."),Ge(ne.name),ne=ne.body;Wn(),Ge(ne)}function _E(E){ng(E),mn(E.statements,qc),Pn(E,rh(E)),ih(E)}function pE(E){$t(18,E.pos,Qn,E),cs(E,E.clauses,129),$t(19,E.clauses.end,Qn,E,!0)}function vv(E){rf(E,E.modifiers,!1),$t(100,E.modifiers?E.modifiers.end:E.pos,zi,E),Wn(),E.isTypeOnly&&($t(154,E.pos,zi,E),Wn()),Ge(E.name),Wn(),$t(63,E.name.end,Qn,E),Wn(),Lb(E.moduleReference),lc()}function Lb(E){E.kind===79?Kt(E):Ge(E)}function bv(E){rf(E,E.modifiers,!1),$t(100,E.modifiers?E.modifiers.end:E.pos,zi,E),Wn(),E.importClause&&(Ge(E.importClause),Wn(),$t(158,E.importClause.end,zi,E),Wn()),Kt(E.moduleSpecifier),E.assertClause&&Ub(E.assertClause),lc()}function m1(E){E.isTypeOnly&&($t(154,E.pos,zi,E),Wn()),Ge(E.name),E.name&&E.namedBindings&&($t(27,E.name.end,Qn,E),Wn()),Ge(E.namedBindings)}function Jh(E){let ne=$t(41,E.pos,Qn,E);Wn(),$t(128,ne,zi,E),Wn(),Ge(E.name)}function Lo(E){kb(E)}function mE(E){Db(E)}function sC(E){let ne=$t(93,E.pos,zi,E);Wn(),E.isExportEquals?$t(63,ne,af,E):$t(88,ne,zi,E),Wn(),Kt(E.expression,E.isExportEquals?gr.getParenthesizeRightSideOfBinaryForOperator(63):gr.parenthesizeExpressionOfExportDefault),lc()}function Zg(E){rf(E,E.modifiers,!1);let ne=$t(93,E.pos,zi,E);if(Wn(),E.isTypeOnly&&(ne=$t(154,ne,zi,E),Wn()),E.exportClause?Ge(E.exportClause):ne=$t(41,ne,Qn,E),E.moduleSpecifier){Wn();let Ee=E.exportClause?E.exportClause.end:ne;$t(158,Ee,zi,E),Wn(),Kt(E.moduleSpecifier)}E.assertClause&&Ub(E.assertClause),lc()}function Kh(E){$t(130,E.pos,zi,E),Wn();let ne=E.elements;cs(E,ne,526226)}function hm(E){Ge(E.name),Qn(":"),Wn();let ne=E.value;if(!(Ya(ne)&1024)){let Ee=sm(ne);ag(Ee.pos)}Ge(ne)}function x_(E){let ne=$t(93,E.pos,zi,E);Wn(),ne=$t(128,ne,zi,E),Wn(),ne=$t(143,ne,zi,E),Wn(),Ge(E.name),lc()}function Zu(E){let ne=$t(41,E.pos,Qn,E);Wn(),$t(128,ne,zi,E),Wn(),Ge(E.name)}function ed(E){kb(E)}function td(E){Db(E)}function kb(E){Qn("{"),cs(E,E.elements,525136),Qn("}")}function Db(E){E.isTypeOnly&&(zi("type"),Wn()),E.propertyName&&(Ge(E.propertyName),Wn(),$t(128,E.propertyName.end,zi,E),Wn()),Ge(E.name)}function bx(E){zi("require"),Qn("("),Kt(E.expression),Qn(")")}function wb(E){Ge(E.openingElement),cs(E,E.children,262144),Ge(E.closingElement)}function qh(E){Qn("<"),Nb(E.tagName),kp(E,E.typeArguments),Wn(),Ge(E.attributes),Qn("/>")}function Rb(E){Ge(E.openingFragment),cs(E,E.children,262144),Ge(E.closingFragment)}function h1(E){if(Qn("<"),Xm(E)){let ne=TE(E.tagName,E);Nb(E.tagName),kp(E,E.typeArguments),E.attributes.properties&&E.attributes.properties.length>0&&Wn(),Ge(E.attributes),Hb(E.attributes,E),tg(ne)}Qn(">")}function Ob(E){X.writeLiteral(E.text)}function cC(E){Qn("</"),GS(E)&&Nb(E.tagName),Qn(">")}function Ex(E){cs(E,E.properties,262656)}function Ev(E){Ge(E.name),Ax("=",Qn,E.initializer,ln)}function hE(E){Qn("{..."),Kt(E.expression),Qn("}")}function Fe(E){let ne=!1;return bw(C?.text||"",E+1,()=>ne=!0),ne}function ey(E){let ne=!1;return vw(C?.text||"",E+1,()=>ne=!0),ne}function Ip(E){return Fe(E)||ey(E)}function Tv(E){var ne;if(E.expression||!Gt&&!ws(E)&&Ip(E.pos)){let Ee=C&&!ws(E)&&Gs(C,E.pos).line!==Gs(C,E.end).line;Ee&&X.increaseIndent();let Wt=$t(18,E.pos,Qn,E);Ge(E.dotDotDotToken),Kt(E.expression),$t(19,((ne=E.expression)==null?void 0:ne.end)||Wt,Qn,E),Ee&&X.decreaseIndent()}}function Nb(E){E.kind===79?Kt(E):Ge(E)}function Sv(E){$t(82,E.pos,zi,E),Wn(),Kt(E.expression,gr.parenthesizeExpressionForDisallowedComma),g1(E,E.statements,E.expression.end)}function Xh(E){let ne=$t(88,E.pos,zi,E);g1(E,E.statements,ne)}function g1(E,ne,Ee){let Wt=ne.length===1&&(!C||ws(E)||ws(ne[0])||a4(E,ne[0],C)),lr=163969;Wt?(iy(58,Ee,Qn,E),Wn(),lr&=-130):$t(58,Ee,Qn,E),cs(E,ne,lr)}function wo(E){Wn(),L_(E.token,zi),Wn(),cs(E,E.types,528)}function A_(E){let ne=$t(83,E.pos,zi,E);Wn(),E.variableDeclaration&&($t(20,ne,Qn,E),Ge(E.variableDeclaration),$t(21,E.variableDeclaration.end,Qn,E),Wn()),Ge(E.block)}function gE(E){Ge(E.name),Qn(":"),Wn();let ne=E.initializer;if(!(Ya(ne)&1024)){let Ee=sm(ne);ag(Ee.pos)}Kt(ne,gr.parenthesizeExpressionForDisallowedComma)}function Kc(E){Ge(E.name),E.objectAssignmentInitializer&&(Wn(),Qn("="),Wn(),Kt(E.objectAssignmentInitializer,gr.parenthesizeExpressionForDisallowedComma))}function th(E){E.expression&&($t(25,E.pos,Qn,E),Kt(E.expression,gr.parenthesizeExpressionForDisallowedComma))}function Pb(E){Ge(E.name),I_(E.initializer,E.name.end,E,gr.parenthesizeExpressionForDisallowedComma)}function C_(E){if(we("/**"),E.comment){let ne=Cw(E.comment);if(ne){let Ee=ne.split(/\r\n?|\n/g);for(let Wt of Ee)nl(),Wn(),Qn("*"),Wn(),we(Wt)}}E.tags&&(E.tags.length===1&&E.tags[0].kind===347&&!E.comment?(Wn(),Ge(E.tags[0])):cs(E,E.tags,33)),Wn(),we("*/")}function Mb(E){nh(E.tagName),zs(E.typeExpression),ym(E.comment)}function Ml(E){nh(E.tagName),Ge(E.name),ym(E.comment)}function Yh(E){Wn(),Qn("{"),Ge(E.name),Qn("}")}function ll(E){nh(E.tagName),Wn(),Qn("{"),Ge(E.class),Qn("}"),ym(E.comment)}function y1(E){nh(E.tagName),zs(E.constraint),Wn(),cs(E,E.typeParameters,528),ym(E.comment)}function lC(E){nh(E.tagName),E.typeExpression&&(E.typeExpression.kind===312?zs(E.typeExpression):(Wn(),Qn("{"),we("Object"),E.typeExpression.isArrayType&&(Qn("["),Qn("]")),Qn("}"))),E.fullName&&(Wn(),Ge(E.fullName)),ym(E.comment),E.typeExpression&&E.typeExpression.kind===325&&yd(E.typeExpression)}function Ai(E){nh(E.tagName),E.name&&(Wn(),Ge(E.name)),ym(E.comment),yE(E.typeExpression)}function Rr(E){ym(E.comment),yE(E.typeExpression)}function gm(E){nh(E.tagName),ym(E.comment)}function yd(E){cs(E,D.createNodeArray(E.jsDocPropertyTags),33)}function yE(E){E.typeParameters&&cs(E,D.createNodeArray(E.typeParameters),33),E.parameters&&cs(E,D.createNodeArray(E.parameters),33),E.type&&(nl(),Wn(),Qn("*"),Wn(),Ge(E.type))}function $h(E){nh(E.tagName),zs(E.typeExpression),Wn(),E.isBracketed&&Qn("["),Ge(E.name),E.isBracketed&&Qn("]"),ym(E.comment)}function nh(E){Qn("@"),Ge(E)}function ym(E){let ne=Cw(E);ne&&(Wn(),we(ne))}function zs(E){E&&(Wn(),Qn("{"),Ge(E.type),Qn("}"))}function Fb(E){nl();let ne=E.statements;if(ne.length===0||!B_(ne[0])||ws(ne[0])){ig(E,ne,Cf);return}Cf(E)}function v1(E){b1(!!E.hasNoDefaultLib,E.syntheticFileReferences||[],E.syntheticTypeReferences||[],E.syntheticLibReferences||[]);for(let ne of E.prepends)if(BT(ne)&&ne.syntheticReferences)for(let Ee of ne.syntheticReferences)Ge(Ee),nl()}function Gb(E){E.isDeclarationFile&&b1(E.hasNoDefaultLib,E.referencedFiles,E.typeReferenceDirectives,E.libReferenceDirectives)}function b1(E,ne,Ee,Wt){if(E){let lr=X.getTextPos();vm('/// <reference no-default-lib="true"/>'),Pe&&Pe.sections.push({pos:lr,end:X.getTextPos(),kind:"no-default-lib"}),nl()}if(C&&C.moduleName&&(vm(`/// <amd-module name="${C.moduleName}" />`),nl()),C&&C.amdDependencies)for(let lr of C.amdDependencies)lr.name?vm(`/// <amd-dependency name="${lr.name}" path="${lr.path}" />`):vm(`/// <amd-dependency path="${lr.path}" />`),nl();for(let lr of ne){let ci=X.getTextPos();vm(`/// <reference path="${lr.fileName}" />`),Pe&&Pe.sections.push({pos:ci,end:X.getTextPos(),kind:"reference",data:lr.fileName}),nl()}for(let lr of Ee){let ci=X.getTextPos(),qr=lr.resolutionMode&&lr.resolutionMode!==C?.impliedNodeFormat?`resolution-mode="${lr.resolutionMode===99?"import":"require"}"`:"";vm(`/// <reference types="${lr.fileName}" ${qr}/>`),Pe&&Pe.sections.push({pos:ci,end:X.getTextPos(),kind:lr.resolutionMode?lr.resolutionMode===99?"type-import":"type-require":"type",data:lr.fileName}),nl()}for(let lr of Wt){let ci=X.getTextPos();vm(`/// <reference lib="${lr.fileName}" />`),Pe&&Pe.sections.push({pos:ci,end:X.getTextPos(),kind:"lib",data:lr.fileName}),nl()}}function Cf(E){let ne=E.statements;ng(E),mn(E.statements,qc),Vt(E);let Ee=Yc(ne,Wt=>!B_(Wt));Gb(E),cs(E,ne,1,void 0,Ee===-1?ne.length:Ee),ih(E)}function Tx(E){let ne=Ya(E);!(ne&1024)&&E.pos!==E.expression.pos&&ag(E.expression.pos),Kt(E.expression),!(ne&2048)&&E.end!==E.expression.end&&rd(E.expression.end)}function Sx(E){ny(E,E.elements,528,void 0)}function xv(E,ne,Ee,Wt){let lr=!!ne;for(let ci=0;ci<E.length;ci++){let qr=E[ci];if(B_(qr)){if(Ee?!Ee.has(qr.expression.text):!0){lr&&(lr=!1,ue(ne)),nl();let Wa=X.getTextPos();Ge(qr),Wt&&Pe&&Pe.sections.push({pos:Wa,end:X.getTextPos(),kind:"prologue",data:qr.expression.text}),Ee&&Ee.add(qr.expression.text)}}else return ci}return E.length}function E1(E,ne){for(let Ee of E)if(!ne.has(Ee.data)){nl();let Wt=X.getTextPos();Ge(Ee),Pe&&Pe.sections.push({pos:Wt,end:X.getTextPos(),kind:"prologue",data:Ee.data}),ne&&ne.add(Ee.data)}}function T1(E){if(Li(E))xv(E.statements,E);else{let ne=new Set;for(let Ee of E.prepends)E1(Ee.prologues,ne);for(let Ee of E.sourceFiles)xv(Ee.statements,Ee,ne,!0);ue(void 0)}}function xx(E){let ne=new Set,Ee;for(let Wt=0;Wt<E.sourceFiles.length;Wt++){let lr=E.sourceFiles[Wt],ci,qr=0;for(let Ti of lr.statements){if(!B_(Ti))break;ne.has(Ti.expression.text)||(ne.add(Ti.expression.text),(ci||(ci=[])).push({pos:Ti.pos,end:Ti.end,expression:{pos:Ti.expression.pos,end:Ti.expression.end,text:Ti.expression.text}}),qr=qr<Ti.end?Ti.end:qr)}ci&&(Ee||(Ee=[])).push({file:Wt,text:lr.text.substring(0,qr),directives:ci})}return Ee}function Bb(E){if(Li(E)||BT(E)){let ne=K8(E.text);if(ne)return vm(ne),nl(),!0}else{for(let ne of E.prepends)if(L.assertNode(ne,BT),Bb(ne))return!0;for(let ne of E.sourceFiles)if(Bb(ne))return!0}}function S1(E,ne){if(!E)return;let Ee=we;we=ne,Ge(E),we=Ee}function rf(E,ne,Ee){if(ne?.length){if(Ji(ne,Ha))return Qh(E,ne);if(Ji(ne,du))return Ee?Zh(E,ne):E.pos;d?.(ne);let Wt,lr,ci=0,qr=0,Ti;for(;ci<ne.length;){for(;qr<ne.length;){if(Ti=ne[qr],lr=du(Ti)?"decorators":"modifiers",Wt===void 0)Wt=lr;else if(lr!==Wt)break;qr++}let Wa={pos:-1,end:-1};ci===0&&(Wa.pos=ne.pos),qr===ne.length-1&&(Wa.end=ne.end),(Wt==="modifiers"||Ee)&&Vb(Ge,E,ne,Wt==="modifiers"?2359808:2146305,void 0,ci,qr-ci,!1,Wa),ci=qr,Wt=lr,qr++}if(g?.(ne),Ti&&!vp(Ti.end))return Ti.end}return E.pos}function Qh(E,ne){cs(E,ne,2359808);let Ee=Os(ne);return Ee&&!vp(Ee.end)?Ee.end:E.pos}function Q_(E){E&&(Qn(":"),Wn(),Ge(E))}function I_(E,ne,Ee,Wt){E&&(Wn(),$t(63,ne,af,Ee),Wn(),Kt(E,Wt))}function Ax(E,ne,Ee,Wt){Ee&&(ne(E),Wt(Ee))}function Ub(E){E&&(Wn(),Ge(E))}function Lp(E,ne){E&&(Wn(),Kt(E,ne))}function x1(E){E&&(Ge(E),Wn())}function Uu(E,ne){Va(ne)||Ya(E)&1?(Wn(),Ge(ne)):(nl(),Kf(),Pz(ne)?rt(5,ne):Ge(ne),Z_())}function Zh(E,ne){cs(E,ne,2146305);let Ee=Os(ne);return Ee&&!vp(Ee.end)?Ee.end:E.pos}function kp(E,ne){cs(E,ne,53776,pt)}function Dp(E,ne){if(Ia(E)&&E.typeArguments)return kp(E,E.typeArguments);cs(E,ne,53776)}function eg(E,ne){cs(E,ne,2576)}function vE(E,ne){let Ee=Wp(ne);return Ee&&Ee.pos===E.pos&&xs(E)&&!E.type&&!vt(E.modifiers)&&!vt(E.typeParameters)&&!vt(Ee.modifiers)&&!Ee.dotDotDotToken&&!Ee.questionToken&&!Ee.type&&!Ee.initializer&&Re(Ee.name)}function A1(E,ne){vE(E,ne)?cs(E,ne,528):eg(E,ne)}function ty(E,ne){cs(E,ne,8848)}function bE(E){switch(E&60){case 0:break;case 16:Qn(",");break;case 4:Wn(),Qn("|");break;case 32:Wn(),Qn("*"),Wn();break;case 8:Wn(),Qn("&");break}}function cs(E,ne,Ee,Wt,lr,ci){Cx(Ge,E,ne,Ee|(E&&Ya(E)&2?65536:0),Wt,lr,ci)}function ny(E,ne,Ee,Wt,lr,ci){Cx(Kt,E,ne,Ee,Wt,lr,ci)}function Cx(E,ne,Ee,Wt,lr,ci=0,qr=Ee?Ee.length-ci:0){if(Ee===void 0&&Wt&16384)return;let Wa=Ee===void 0||ci>=Ee.length||qr===0;if(Wa&&Wt&32768){d?.(Ee),g?.(Ee);return}Wt&15360&&(Qn(HMe(Wt)),Wa&&Ee&&ag(Ee.pos,!0)),d?.(Ee),Wa?Wt&1&&!(_e&&(!ne||C&&DT(ne,C)))?nl():Wt&256&&!(Wt&524288)&&Wn():Vb(E,ne,Ee,Wt,lr,ci,qr,Ee.hasTrailingComma,Ee),g?.(Ee),Wt&15360&&(Wa&&Ee&&rd(Ee.end),Qn(WMe(Wt)))}function Vb(E,ne,Ee,Wt,lr,ci,qr,Ti,Wa){let kl=(Wt&262144)===0,Ed=kl,Ud=Fl(ne,Ee[ci],Wt);Ud?(nl(Ud),Ed=!1):Wt&256&&Wn(),Wt&128&&Kf();let fy=qMe(E,lr),Td,Ov,Nv=!1;for(let Sm=0;Sm<qr;Sm++){let py=Ee[ci+Sm];if(Wt&32)nl(),bE(Wt);else if(Td){Wt&60&&Td.end!==(ne?ne.end:-1)&&(Ya(Td)&2048||rd(Td.end)),bE(Wt),Cr(Ov);let If=qf(Td,py,Wt);If>0?(Wt&131||(Kf(),Nv=!0),nl(If),Ed=!1):Td&&Wt&512&&Wn()}if(Ov=dr(py),Ed){let If=sm(py);ag(If.pos)}else Ed=kl;ge=py.pos,fy(py,E,lr,Sm),Nv&&(Z_(),Nv=!1),Td=py}let _y=Td?Ya(Td):0,Xf=Gt||!!(_y&2048),ME=Ti&&Wt&64&&Wt&16;ME&&(Td&&!Xf?$t(27,Td.end,Qn,Td):Qn(",")),Td&&(ne?ne.end:-1)!==Td.end&&Wt&60&&!Xf&&rd(ME&&Wa?.end?Wa.end:Td.end),Wt&128&&Z_(),Cr(Ov);let cf=bm(ne,Ee[ci+qr-1],Wt,Wa);cf?nl(cf):Wt&2097408&&Wn()}function jb(E){X.writeLiteral(E)}function Ix(E){X.writeStringLiteral(E)}function uC(E){X.write(E)}function Lx(E,ne){X.writeSymbol(E,ne)}function Qn(E){X.writePunctuation(E)}function lc(){X.writeTrailingSemicolon(";")}function zi(E){X.writeKeyword(E)}function af(E){X.writeOperator(E)}function Av(E){X.writeParameter(E)}function vm(E){X.writeComment(E)}function Wn(){X.writeSpace(" ")}function kx(E){X.writeProperty(E)}function ry(E){X.nonEscapingWrite?X.nonEscapingWrite(E):X.write(E)}function nl(E=1){for(let ne=0;ne<E;ne++)X.writeLine(ne>0)}function Kf(){X.increaseIndent()}function Z_(){X.decreaseIndent()}function iy(E,ne,Ee,Wt){return Le?L_(E,Ee,ne):dC(Wt,E,Ee,ne,L_)}function EE(E,ne){m&&m(E),ne(Xa(E.kind)),v&&v(E)}function L_(E,ne,Ee){let Wt=Xa(E);return ne(Wt),Ee<0?Ee:Ee+Wt.length}function ay(E,ne,Ee){if(Ya(E)&1)Wn();else if(_e){let Wt=ep(E,ne,Ee);Wt?nl(Wt):Wn()}else nl()}function Ac(E){let ne=E.split(/\r\n?|\n/g),Ee=xse(ne);for(let Wt of ne){let lr=Ee?Wt.slice(Ee):Wt;lr.length&&(nl(),we(lr))}}function wc(E,ne){E?(Kf(),nl(E)):ne&&Wn()}function tg(E,ne){E&&Z_(),ne&&Z_()}function Fl(E,ne,Ee){if(Ee&2||_e){if(Ee&65536)return 1;if(ne===void 0)return!E||C&&DT(E,C)?0:1;if(ne.pos===ge||ne.kind===11)return 0;if(C&&E&&!vp(E.pos)&&!ws(ne)&&(!ne.parent||ec(ne.parent)===ec(E)))return _e?nd(Wt=>ole(ne.pos,E.pos,C,Wt)):a4(E,ne,C)?0:1;if(Wb(ne,Ee))return 1}return Ee&1?1:0}function qf(E,ne,Ee){if(Ee&2||_e){if(E===void 0||ne===void 0||ne.kind===11)return 0;if(C&&!ws(E)&&!ws(ne))return _e&&ch(E,ne)?nd(Wt=>pW(E,ne,C,Wt)):!_e&&wv(E,ne)?DR(E,ne,C)?0:1:Ee&65536?1:0;if(Wb(E,Ee)||Wb(ne,Ee))return 1}else if(tO(ne))return 1;return Ee&1?1:0}function bm(E,ne,Ee,Wt){if(Ee&2||_e){if(Ee&65536)return 1;if(ne===void 0)return!E||C&&DT(E,C)?0:1;if(C&&E&&!vp(E.pos)&&!ws(ne)&&(!ne.parent||ne.parent===E)){if(_e){let lr=Wt&&!vp(Wt.end)?Wt.end:ne.end;return nd(ci=>sle(lr,E.end,C,ci))}return rle(E,ne,C)?0:1}if(Wb(ne,Ee))return 1}return Ee&1&&!(Ee&131072)?1:0}function nd(E){L.assert(!!_e);let ne=E(!0);return ne===0?E(!1):ne}function TE(E,ne){let Ee=_e&&Fl(ne,E,0);return Ee&&wc(Ee,!1),!!Ee}function Hb(E,ne){let Ee=_e&&bm(ne,E,0,void 0);Ee&&nl(Ee)}function Wb(E,ne){if(ws(E)){let Ee=tO(E);return Ee===void 0?(ne&65536)!==0:Ee}return(ne&65536)!==0}function ep(E,ne,Ee){return Ya(E)&262144?0:(E=SE(E),ne=SE(ne),Ee=SE(Ee),tO(Ee)?1:C&&!ws(E)&&!ws(ne)&&!ws(Ee)?_e?nd(Wt=>pW(ne,Ee,C,Wt)):DR(ne,Ee,C)?0:1:0)}function rh(E){return E.statements.length===0&&(!C||DR(E,E,C))}function SE(E){for(;E.kind===214&&ws(E);)E=E.expression;return E}function oy(E,ne){if(tc(E)||tS(E))return zb(E);if(yo(E)&&E.textSourceNode)return oy(E.textSourceNode,ne);let Ee=C,Wt=!!Ee&&!!E.parent&&!ws(E);if(Ah(E)){if(!Wt||Gn(E)!==ec(Ee))return vr(E)}else if(L.assertNode(E,fT),!Wt)return E.text;return k0(Ee,E,ne)}function uc(E,ne,Ee){if(E.kind===10&&E.textSourceNode){let lr=E.textSourceNode;if(Re(lr)||pi(lr)||Vf(lr)){let ci=Vf(lr)?lr.text:oy(lr);return Ee?`"${qH(ci)}"`:ne||Ya(E)&33554432?`"${_S(ci)}"`:`"${ER(ci)}"`}else return uc(lr,ne,Ee)}let Wt=(ne?1:0)|(Ee?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return Bse(E,C,Wt)}function ng(E){E&&Ya(E)&1048576||($.push(fe),fe=0,W.push(Y),Y=void 0,Z.push(U))}function ih(E){E&&Ya(E)&1048576||(fe=$.pop(),Y=W.pop(),U=Z.pop())}function Cv(E){(!U||U===Os(Z))&&(U=new Set),U.add(E)}function Iv(E,ne){R.push(ie),ie=E,re.push(U),le=ne}function Gl(){ie=R.pop(),le=re.pop()}function ah(E){(!le||le===Os(re))&&(le=new Set),le.add(E)}function qc(E){if(E)switch(E.kind){case 238:mn(E.statements,qc);break;case 253:case 251:case 243:case 244:qc(E.statement);break;case 242:qc(E.thenStatement),qc(E.elseStatement);break;case 245:case 247:case 246:qc(E.initializer),qc(E.statement);break;case 252:qc(E.caseBlock);break;case 266:mn(E.clauses,qc);break;case 292:case 293:mn(E.statements,qc);break;case 255:qc(E.tryBlock),qc(E.catchClause),qc(E.finallyBlock);break;case 295:qc(E.variableDeclaration),qc(E.block);break;case 240:qc(E.declarationList);break;case 258:mn(E.declarations,qc);break;case 257:case 166:case 205:case 260:oh(E.name);break;case 259:oh(E.name),Ya(E)&1048576&&(mn(E.parameters,qc),qc(E.body));break;case 203:case 204:mn(E.elements,qc);break;case 269:qc(E.importClause);break;case 270:oh(E.name),qc(E.namedBindings);break;case 271:oh(E.name);break;case 277:oh(E.name);break;case 272:mn(E.elements,qc);break;case 273:oh(E.propertyName||E.name);break}}function xE(E){if(E)switch(E.kind){case 299:case 300:case 169:case 171:case 174:case 175:oh(E.name);break}}function oh(E){E&&(tc(E)||tS(E)?zb(E):La(E)&&qc(E))}function zb(E){let ne=E.emitNode.autoGenerate;if((ne.flags&7)===4)return Vu(I3(E),pi(E),ne.flags,ne.prefix,ne.suffix);{let Ee=ne.id;return B[Ee]||(B[Ee]=fr(E))}}function Vu(E,ne,Ee,Wt,lr){let ci=zo(E),qr=ne?F:P;return qr[ci]||(qr[ci]=No(E,ne,Ee??0,L2(Wt,zb),L2(lr)))}function Em(E,ne){return Lv(E,ne)&&!Jb(E,ne)&&!q.has(E)}function Jb(E,ne){return ne?!!le?.has(E):!!U?.has(E)}function Lv(E,ne){return C?g6(C,E,r):!0}function AE(E,ne){for(let Ee=ne;Ee&&AT(Ee,ne);Ee=Ee.nextContainer)if(Qp(Ee)&&Ee.locals){let Wt=Ee.locals.get(Bs(E));if(Wt&&Wt.flags&3257279)return!1}return!0}function sy(E){var ne;switch(E){case"":return fe;case"#":return ie;default:return(ne=Y?.get(E))!=null?ne:0}}function C1(E,ne){switch(E){case"":fe=ne;break;case"#":ie=ne;break;default:Y??(Y=new Map),Y.set(E,ne);break}}function kv(E,ne,Ee,Wt,lr){Wt.length>0&&Wt.charCodeAt(0)===35&&(Wt=Wt.slice(1));let ci=jT(Ee,Wt,"",lr),qr=sy(ci);if(E&&!(qr&E)){let Wa=jT(Ee,Wt,E===268435456?"_i":"_n",lr);if(Em(Wa,Ee))return qr|=E,Ee?ah(Wa):ne&&Cv(Wa),C1(ci,qr),Wa}for(;;){let Ti=qr&268435455;if(qr++,Ti!==8&&Ti!==13){let Wa=Ti<26?"_"+String.fromCharCode(97+Ti):"_"+(Ti-26),kl=jT(Ee,Wt,Wa,lr);if(Em(kl,Ee))return Ee?ah(kl):ne&&Cv(kl),C1(ci,qr),kl}}}function rg(E,ne=Em,Ee,Wt,lr,ci,qr){if(E.length>0&&E.charCodeAt(0)===35&&(E=E.slice(1)),ci.length>0&&ci.charCodeAt(0)===35&&(ci=ci.slice(1)),Ee){let Wa=jT(lr,ci,E,qr);if(ne(Wa,lr))return lr?ah(Wa):Wt?Cv(Wa):q.add(Wa),Wa}E.charCodeAt(E.length-1)!==95&&(E+="_");let Ti=1;for(;;){let Wa=jT(lr,ci,E+Ti,qr);if(ne(Wa,lr))return lr?ah(Wa):Wt?Cv(Wa):q.add(Wa),Wa;Ti++}}function of(E){return rg(E,Lv,!0,!1,!1,"","")}function CE(E){let ne=oy(E.name);return AE(ne,zr(E,Qp))?ne:rg(ne,Em,!1,!1,!1,"","")}function Gd(E){let ne=UA(E),Ee=yo(ne)?Vse(ne.text):"module";return rg(Ee,Em,!1,!1,!1,"","")}function sh(){return rg("default",Em,!1,!1,!1,"","")}function Dv(){return rg("class",Em,!1,!1,!1,"","")}function Dx(E,ne,Ee,Wt){return Re(E.name)?Vu(E.name,ne):kv(0,!1,ne,Ee,Wt)}function No(E,ne,Ee,Wt,lr){switch(E.kind){case 79:case 80:return rg(oy(E),Em,!!(Ee&16),!!(Ee&8),ne,Wt,lr);case 264:case 263:return L.assert(!Wt&&!lr&&!ne),CE(E);case 269:case 275:return L.assert(!Wt&&!lr&&!ne),Gd(E);case 259:case 260:{L.assert(!Wt&&!lr&&!ne);let ci=E.name;return ci&&!tc(ci)?No(ci,!1,Ee,Wt,lr):sh()}case 274:return L.assert(!Wt&&!lr&&!ne),sh();case 228:return L.assert(!Wt&&!lr&&!ne),Dv();case 171:case 174:case 175:return Dx(E,ne,Wt,lr);case 164:return kv(0,!0,ne,Wt,lr);default:return kv(0,!1,ne,Wt,lr)}}function fr(E){let ne=E.emitNode.autoGenerate,Ee=L2(ne.prefix,zb),Wt=L2(ne.suffix);switch(ne.flags&7){case 1:return kv(0,!!(ne.flags&8),pi(E),Ee,Wt);case 2:return L.assertNode(E,Re),kv(268435456,!!(ne.flags&8),!1,Ee,Wt);case 3:return rg(vr(E),ne.flags&32?Lv:Em,!!(ne.flags&16),!!(ne.flags&8),pi(E),Ee,Wt)}return L.fail(`Unsupported GeneratedIdentifierKind: ${L.formatEnum(ne.flags&7,w8,!0)}.`)}function vd(E,ne){let Ee=pe(2,E,ne),Wt=qe,lr=zt,ci=Qt;ju(ne),Ee(E,ne),I1(ne,Wt,lr,ci)}function ju(E){let ne=Ya(E),Ee=sm(E);IE(E,ne,Ee.pos,Ee.end),ne&4096&&(Gt=!0)}function I1(E,ne,Ee,Wt){let lr=Ya(E),ci=sm(E);lr&4096&&(Gt=!1),cy(E,lr,ci.pos,ci.end,ne,Ee,Wt);let qr=vue(E);qr&&cy(E,lr,qr.pos,qr.end,ne,Ee,Wt)}function IE(E,ne,Ee,Wt){Ni(),_n=!1;let lr=Ee<0||(ne&1024)!==0||E.kind===11,ci=Wt<0||(ne&2048)!==0||E.kind===11;(Ee>0||Wt>0)&&Ee!==Wt&&(lr||Rp(Ee,E.kind!==355),(!lr||Ee>=0&&ne&1024)&&(qe=Ee),(!ci||Wt>=0&&ne&2048)&&(zt=Wt,E.kind===258&&(Qt=Wt))),mn(l2(E),wx),Pi()}function cy(E,ne,Ee,Wt,lr,ci,qr){Ni();let Ti=Wt<0||(ne&2048)!==0||E.kind===11;mn(rO(E),ly),(Ee>0||Wt>0)&&Ee!==Wt&&(qe=lr,zt=ci,Qt=qr,!Ti&&E.kind!==355&&LE(Wt)),Pi()}function wx(E){(E.hasLeadingNewline||E.kind===2)&&X.writeLine(),wp(E),E.hasTrailingNewLine||E.kind===2?X.writeLine():X.writeSpace(" ")}function ly(E){X.isAtStartOfLine()||X.writeSpace(" "),wp(E),E.hasTrailingNewLine&&X.writeLine()}function wp(E){let ne=tp(E),Ee=E.kind===3?hw(ne):void 0;$A(ne,Ee,X,0,ne.length,x)}function tp(E){return E.kind===3?`/*${E.text}*/`:`//${E.text}`}function ig(E,ne,Ee){Ni();let{pos:Wt,end:lr}=ne,ci=Ya(E),qr=Wt<0||(ci&1024)!==0,Ti=Gt||lr<0||(ci&2048)!==0;qr||Rv(ne),Pi(),ci&4096&&!Gt?(Gt=!0,Ee(E),Gt=!1):Ee(E),Ni(),Ti||(Rp(ne.end,!0),_n&&!X.isAtStartOfLine()&&X.writeLine()),Pi()}function wv(E,ne){return E=ec(E),E.parent&&E.parent===ec(ne).parent}function ch(E,ne){if(ne.pos<E.end)return!1;E=ec(E),ne=ec(ne);let Ee=E.parent;if(!Ee||Ee!==ne.parent)return!1;let Wt=Ule(E),lr=Wt?.indexOf(E);return lr!==void 0&&lr>-1&&Wt.indexOf(ne)===lr+1}function Rp(E,ne){_n=!1,ne?E===0&&C?.isDeclarationFile?ls(E,Cc):ls(E,Tm):E===0&&ls(E,L1)}function L1(E,ne,Ee,Wt,lr){wE(E,ne)&&Tm(E,ne,Ee,Wt,lr)}function Cc(E,ne,Ee,Wt,lr){wE(E,ne)||Tm(E,ne,Ee,Wt,lr)}function Bd(E,ne){return e.onlyPrintJsDocStyle?cJ(E,ne)||y6(E,ne):!0}function Tm(E,ne,Ee,Wt,lr){!C||!Bd(C.text,E)||(_n||(Uce(je(),X,lr,E),_n=!0),bd(E),$A(C.text,je(),X,E,ne,x),bd(ne),Wt?X.writeLine():Ee===3&&X.writeSpace(" "))}function rd(E){Gt||E===-1||Rp(E,!0)}function LE(E){kE(E,uy)}function uy(E,ne,Ee,Wt){!C||!Bd(C.text,E)||(X.isAtStartOfLine()||X.writeSpace(" "),bd(E),$A(C.text,je(),X,E,ne,x),bd(ne),Wt&&X.writeLine())}function ag(E,ne,Ee){Gt||(Ni(),kE(E,ne?uy:Ee?Rx:sf),Pi())}function Rx(E,ne,Ee){C&&(bd(E),$A(C.text,je(),X,E,ne,x),bd(ne),Ee===2&&X.writeLine())}function sf(E,ne,Ee,Wt){C&&(bd(E),$A(C.text,je(),X,E,ne,x),bd(ne),Wt?X.writeLine():X.writeSpace(" "))}function ls(E,ne){C&&(qe===-1||E!==qe)&&(DE(E)?og(ne):vw(C.text,E,ne,E))}function kE(E,ne){C&&(zt===-1||E!==zt&&E!==Qt)&&bw(C.text,E,ne)}function DE(E){return kn!==void 0&&To(kn).nodePos===E}function og(E){if(!C)return;let ne=To(kn).detachedCommentEndPos;kn.length-1?kn.pop():kn=void 0,vw(C.text,ne,E,ne)}function Rv(E){let ne=C&&jce(C.text,je(),X,k1,E,x,Gt);ne&&(kn?kn.push(ne):kn=[ne])}function k1(E,ne,Ee,Wt,lr,ci){!C||!Bd(C.text,Wt)||(bd(Wt),$A(E,ne,Ee,Wt,lr,ci),bd(lr))}function wE(E,ne){return!!C&&iH(C.text,E,ne)}function RE(E){return E.parsedSourceMap===void 0&&E.sourceMapText!==void 0&&(E.parsedSourceMap=bK(E.sourceMapText)||!1),E.parsedSourceMap||void 0}function OE(E,ne){let Ee=pe(3,E,ne);NE(ne),Ee(E,ne),PE(ne)}function NE(E){let ne=Ya(E),Ee=pb(E);if(Oj(E)){L.assertIsDefined(E.parent,"UnparsedNodes must have parent pointers");let Wt=RE(E.parent);Wt&&Ye&&Ye.appendSourceMap(X.getLine(),X.getColumn(),Wt,E.parent.sourceMapPath,E.parent.getLineAndCharacterOfPosition(E.pos),E.parent.getLineAndCharacterOfPosition(E.end))}else{let Wt=Ee.source||_t;E.kind!==355&&!(ne&32)&&Ee.pos>=0&&lh(Ee.source||_t,dy(Wt,Ee.pos)),ne&128&&(Le=!0)}}function PE(E){let ne=Ya(E),Ee=pb(E);Oj(E)||(ne&128&&(Le=!1),E.kind!==355&&!(ne&64)&&Ee.end>=0&&lh(Ee.source||_t,Ee.end))}function dy(E,ne){return E.skipTrivia?E.skipTrivia(ne):xo(E.text,ne)}function bd(E){if(Le||vp(E)||Nx(_t))return;let{line:ne,character:Ee}=Gs(_t,E);Ye.addMapping(X.getLine(),X.getColumn(),ct,ne,Ee,void 0)}function lh(E,ne){if(E!==_t){let Ee=_t,Wt=ct;sg(E),bd(ne),Ox(Ee,Wt)}else bd(ne)}function dC(E,ne,Ee,Wt,lr){if(Le||E&&B6(E))return lr(ne,Ee,Wt);let ci=E&&E.emitNode,qr=ci&&ci.flags||0,Ti=ci&&ci.tokenSourceMapRanges&&ci.tokenSourceMapRanges[ne],Wa=Ti&&Ti.source||_t;return Wt=dy(Wa,Ti?Ti.pos:Wt),!(qr&256)&&Wt>=0&&lh(Wa,Wt),Wt=lr(ne,Ee,Wt),Ti&&(Wt=Ti.end),!(qr&512)&&Wt>=0&&lh(Wa,Wt),Wt}function sg(E){if(!Le){if(_t=E,E===Rt){ct=We;return}Nx(E)||(ct=Ye.addSource(E.fileName),e.inlineSources&&Ye.setSourceContent(ct,E.text),Rt=E,We=ct)}}function Ox(E,ne){_t=E,ct=ne}function Nx(E){return Gc(E.fileName,".json")}}function jMe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function HMe(e){return KK[e&15360][0]}function WMe(e){return KK[e&15360][1]}function zMe(e,t,r,i){t(e)}function JMe(e,t,r,i){t(e,r.select(i))}function KMe(e,t,r,i){t(e,r)}function qMe(e,t){return e.length===1?zMe:typeof t=="object"?JMe:KMe}var KK,LF,qK,rE,XK,fN,XMe=gt({"src/compiler/emitter.ts"(){"use strict";fa(),fa(),E0(),KK=jMe(),LF={hasGlobalName:Sa,getReferencedExportContainer:Sa,getReferencedImportDeclaration:Sa,getReferencedDeclarationWithCollidingName:Sa,isDeclarationWithCollidingName:Sa,isValueAliasDeclaration:Sa,isReferencedAliasDeclaration:Sa,isTopLevelValueImportEqualsWithEntityName:Sa,getNodeCheckFlags:Sa,isDeclarationVisible:Sa,isLateBound:e=>!1,collectLinkedAliases:Sa,isImplementationOfOverload:Sa,isRequiredInitializedParameter:Sa,isOptionalUninitializedParameterProperty:Sa,isExpandoFunctionDeclaration:Sa,getPropertiesOfContainerFunction:Sa,createTypeOfDeclaration:Sa,createReturnTypeOfSignatureDeclaration:Sa,createTypeOfExpression:Sa,createLiteralConstValue:Sa,isSymbolAccessible:Sa,isEntityNameVisible:Sa,getConstantValue:Sa,getReferencedValueDeclaration:Sa,getTypeReferenceSerializationKind:Sa,isOptionalParameter:Sa,moduleExportsSomeValue:Sa,isArgumentsLocalBinding:Sa,getExternalModuleFileFromDeclaration:Sa,getTypeReferenceDirectivesForEntityName:Sa,getTypeReferenceDirectivesForSymbol:Sa,isLiteralConstDeclaration:Sa,getJsxFactoryEntity:Sa,getJsxFragmentFactoryEntity:Sa,getAllAccessorDeclarations:Sa,getSymbolOfExternalModuleSpecifier:Sa,isBindingCapturedByNode:Sa,getDeclarationStatementsForSourceFile:Sa,isImportRequiredByAugmentation:Sa},qK=zu(()=>nE({})),rE=zu(()=>nE({removeComments:!0})),XK=zu(()=>nE({removeComments:!0,neverAsciiEscape:!0})),fN=zu(()=>nE({removeComments:!0,omitTrailingSemicolon:!0}))}});function Mpe(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=Dl(r);return{useCaseSensitiveFileNames:r,fileExists:x,readFile:(R,ie)=>e.readFile(R,ie),directoryExists:e.directoryExists&&A,getDirectories:C,readDirectory:P,createDirectory:e.createDirectory&&w,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:B,addOrDeleteFile:q,clearCache:Y,realpath:e.realpath&&F};function s(R){return Ts(R,t,o)}function l(R){return i.get(cu(R))}function f(R){let ie=l(ni(R));return ie&&(ie.sortedAndCanonicalizedFiles||(ie.sortedAndCanonicalizedFiles=ie.files.map(o).sort(),ie.sortedAndCanonicalizedDirectories=ie.directories.map(o).sort()),ie)}function d(R){return Hl(So(R))}function g(R,ie){var $;if(!e.realpath||cu(s(e.realpath(R)))===ie){let fe={files:on(e.readDirectory(R,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(R)||[]};return i.set(cu(ie),fe),fe}if(($=e.directoryExists)!=null&&$.call(e,R))return i.set(ie,!1),!1}function m(R,ie){ie=cu(ie);let $=l(ie);if($)return $;try{return g(R,ie)}catch{L.assert(!i.has(cu(ie)));return}}function v(R,ie){return Py(R,ie,Ks,su)>=0}function S(R,ie,$){let fe=s(R),Z=f(fe);return Z&&W(Z,d(R),!0),e.writeFile(R,ie,$)}function x(R){let ie=s(R),$=f(ie);return $&&v($.sortedAndCanonicalizedFiles,o(d(R)))||e.fileExists(R)}function A(R){let ie=s(R);return i.has(cu(ie))||e.directoryExists(R)}function w(R){let ie=s(R),$=f(ie);if($){let fe=d(R),Z=o(fe),U=$.sortedAndCanonicalizedDirectories;Ny(U,Z,su)&&$.directories.push(fe)}e.createDirectory(R)}function C(R){let ie=s(R),$=m(R,ie);return $?$.directories.slice():e.getDirectories(R)}function P(R,ie,$,fe,Z){let U=s(R),re=m(R,U),le;if(re!==void 0)return wW(R,ie,$,fe,r,t,Z,_e,F);return e.readDirectory(R,ie,$,fe,Z);function _e(X){let Ve=s(X);if(Ve===U)return re||ge(X,Ve);let we=m(X,Ve);return we!==void 0?we||ge(X,Ve):D4}function ge(X,Ve){if(le&&Ve===U)return le;let we={files:on(e.readDirectory(X,void 0,void 0,["*.*"]),d)||Je,directories:e.getDirectories(X)||Je};return Ve===U&&(le=we),we}}function F(R){return e.realpath?e.realpath(R):R}function B(R,ie){if(l(ie)!==void 0){Y();return}let fe=f(ie);if(!fe)return;if(!e.directoryExists){Y();return}let Z=d(R),U={fileExists:e.fileExists(ie),directoryExists:e.directoryExists(ie)};return U.directoryExists||v(fe.sortedAndCanonicalizedDirectories,o(Z))?Y():W(fe,Z,U.fileExists),U}function q(R,ie,$){if($===1)return;let fe=f(ie);fe&&W(fe,d(R),$===0)}function W(R,ie,$){let fe=R.sortedAndCanonicalizedFiles,Z=o(ie);if($)Ny(fe,Z,su)&&R.files.push(ie);else{let U=Py(fe,Z,Ks,su);if(U>=0){fe.splice(U,1);let re=R.files.findIndex(le=>o(le)===Z);R.files.splice(re,1)}}}function Y(){i.clear()}}function YK(e,t,r,i,o){var s;let l=p0(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||Je,o);r.forEach((f,d)=>{l.has(d)||(f.projects.delete(e),f.close())}),l.forEach((f,d)=>{let g=r.get(d);g?g.projects.add(e):r.set(d,{projects:new Set([e]),watcher:i(f,d),close:()=>{let m=r.get(d);!m||m.projects.size!==0||(m.watcher.close(),r.delete(d))}})})}function Fpe(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function $K(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&$K(e,o,r)})}function YMe(e,t,r){let i=new Map(e);e2(t,i,{createNewValue:r,onDeleteValue:am})}function Gpe(e,t,r){let i=e.getMissingFilePaths(),o=p0(i,Ks,h0);e2(t,o,{createNewValue:r,onDeleteValue:am})}function kF(e,t,r){e2(e,t,{createNewValue:i,onDeleteValue:_m,onExistingValue:o});function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,f){s.flags!==l&&(s.watcher.close(),e.set(f,i(f,l)))}}function DF({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:f,useCaseSensitiveFileNames:d,writeLog:g,toPath:m}){let v=Dq(r);if(!v)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=v,r===e)return!1;if(gA(r)&&!wle(t,o,l))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(gfe(t,o.configFile.configFileSpecs,_a(ni(i),f),d,f))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||Ss(o)||o.outDir)return!1;if(Fu(r)){if(o.declarationDir)return!1}else if(!$c(r,dL))return!1;let S=ld(r),x=ba(s)?void 0:$Me(s)?s.getProgramOrUndefined():s,A=!x&&!ba(s)?s:void 0;if(w(S+".ts")||w(S+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function w(C){return x?!!x.getSourceFileByPath(C):A?A.getState().fileInfos.has(C):!!wr(s,P=>m(P)===C)}}function $Me(e){return!!e.getState}function Bpe(e,t){return e?e.isEmittedFile(t):!1}function Upe(e,t,r,i){ooe(t===2?r:Ba);let o={watchFile:(w,C,P,F)=>e.watchFile(w,C,P,F),watchDirectory:(w,C,P,F)=>e.watchDirectory(w,C,(P&1)!==0,F)},s=t!==0?{watchFile:x("watchFile"),watchDirectory:x("watchDirectory")}:void 0,l=t===2?{watchFile:v,watchDirectory:S}:s||o,f=t===2?m:TN;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(w){return(C,P,F,B,q,W)=>{var Y;return G3(C,w==="watchFile"?B?.excludeFiles:B?.excludeDirectories,g(),((Y=e.getCurrentDirectory)==null?void 0:Y.call(e))||"")?f(C,F,B,q,W):l[w].call(void 0,C,P,F,B,q,W)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(w,C,P,F,B){return r(`ExcludeWatcher:: Added:: ${A(w,C,P,F,B,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${A(w,C,P,F,B,i)}`)}}function v(w,C,P,F,B,q){r(`FileWatcher:: Added:: ${A(w,P,F,B,q,i)}`);let W=s.watchFile(w,C,P,F,B,q);return{close:()=>{r(`FileWatcher:: Close:: ${A(w,P,F,B,q,i)}`),W.close()}}}function S(w,C,P,F,B,q){let W=`DirectoryWatcher:: Added:: ${A(w,P,F,B,q,i)}`;r(W);let Y=Ms(),R=s.watchDirectory(w,C,P,F,B,q),ie=Ms()-Y;return r(`Elapsed:: ${ie}ms ${W}`),{close:()=>{let $=`DirectoryWatcher:: Close:: ${A(w,P,F,B,q,i)}`;r($);let fe=Ms();R.close();let Z=Ms()-fe;r(`Elapsed:: ${Z}ms ${$}`)}}}function x(w){return(C,P,F,B,q,W)=>o[w].call(void 0,C,(...Y)=>{let R=`${w==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Y[0]} ${Y[1]!==void 0?Y[1]:""}:: ${A(C,F,B,q,W,i)}`;r(R);let ie=Ms();P.call(void 0,...Y);let $=Ms()-ie;r(`Elapsed:: ${$}ms ${R}`)},F,B,q,W)}function A(w,C,P,F,B,q){return`WatchInfo: ${w} ${C} ${JSON.stringify(P)} ${q?q(F,B):B===void 0?F:`${F} ${B}`}`}}function _N(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function _m(e){e.watcher.close()}var QK,ZK,QMe=gt({"src/compiler/watchUtilities.ts"(){"use strict";fa(),fa(),QK=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(QK||{}),ZK=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(ZK||{})}});function Vpe(e,t,r="tsconfig.json"){return Th(e,i=>{let o=vi(i,r);return t(o)?o:void 0})}function wF(e,t){let r=ni(t),i=qp(e)?e:vi(r,e);return So(i)}function jpe(e,t,r){let i;return mn(e,s=>{let l=fw(s,t);if(l.pop(),!i){i=l;return}let f=Math.min(i.length,l.length);for(let d=0;d<f;d++)if(r(i[d])!==r(l[d])){if(d===0)return!0;i.length=d;break}l.length<i.length&&(i.length=l.length)})?"":i?T0(i):t}function Hpe(e,t){return nq(e,t)}function eq(e,t,r){return(i,o,s)=>{let l;try{Fs("beforeIORead"),l=e(i,t().charset),Fs("afterIORead"),hf("I/O Read","beforeIORead","afterIORead")}catch(f){s&&s(f.message),l=""}return l!==void 0?DO(i,l,o,r):void 0}}function tq(e,t,r){return(i,o,s,l)=>{try{Fs("beforeIOWrite"),nW(i,o,s,e,t,r),Fs("afterIOWrite"),hf("I/O Write","beforeIOWrite","afterIOWrite")}catch(f){l&&l(f.message)}}}function nq(e,t,r=xl){let i=new Map,o=Dl(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(g.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return ni(So(r.getExecutingFilePath()))}let f=db(e),d=r.realpath&&(m=>r.realpath(m)),g={getSourceFile:eq(m=>g.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>vi(l(),X8(m)),writeFile:tq((m,v,S)=>r.writeFile(m,v,S),m=>(g.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:zu(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>f,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+f),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:d,readDirectory:(m,v,S,x,A)=>r.readDirectory(m,v,S,x,A),createDirectory:m=>r.createDirectory(m),createHash:ho(r,r.createHash)};return g}function pN(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,f=e.writeFile,d=new Map,g=new Map,m=new Map,v=new Map,S=w=>{let C=t(w),P=d.get(C);return P!==void 0?P!==!1?P:void 0:x(C,w)},x=(w,C)=>{let P=i.call(e,C);return d.set(w,P!==void 0?P:!1),P};e.readFile=w=>{let C=t(w),P=d.get(C);return P!==void 0?P!==!1?P:void 0:!Gc(w,".json")&&!Ipe(w)?i.call(e,w):x(C,w)};let A=r?(w,C,P,F)=>{let B=t(w),q=typeof C=="object"?C.impliedNodeFormat:void 0,W=v.get(q),Y=W?.get(B);if(Y)return Y;let R=r(w,C,P,F);return R&&(Fu(w)||Gc(w,".json"))&&v.set(q,(W||new Map).set(B,R)),R}:void 0;return e.fileExists=w=>{let C=t(w),P=g.get(C);if(P!==void 0)return P;let F=o.call(e,w);return g.set(C,!!F),F},f&&(e.writeFile=(w,C,...P)=>{let F=t(w);g.delete(F);let B=d.get(F);B!==void 0&&B!==C?(d.delete(F),v.forEach(q=>q.delete(F))):A&&v.forEach(q=>{let W=q.get(F);W&&W.text!==C&&q.delete(F)}),f.call(e,w,C,...P)}),s&&(e.directoryExists=w=>{let C=t(w),P=m.get(C);if(P!==void 0)return P;let F=s.call(e,w);return m.set(C,!!F),F},l&&(e.createDirectory=w=>{let C=t(w);m.delete(C),l.call(e,w)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:f,getSourceFileWithCache:A,readFileWithCache:S}}function ZMe(e,t,r){let i;return i=si(i,e.getConfigFileParsingDiagnostics()),i=si(i,e.getOptionsDiagnostics(r)),i=si(i,e.getSyntacticDiagnostics(t,r)),i=si(i,e.getGlobalDiagnostics(r)),i=si(i,e.getSemanticDiagnostics(t,r)),__(e.getCompilerOptions())&&(i=si(i,e.getDeclarationDiagnostics(t,r))),vA(i||Je)}function e8e(e,t){let r="";for(let i of e)r+=rq(i,t);return r}function rq(e,t){let r=`${C8(e)} TS${e.code}: ${sv(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=Gs(e.file,e.start),s=e.file.fileName;return`${rI(s,t.getCurrentDirectory(),f=>t.getCanonicalFileName(f))}(${i+1},${o+1}): `+r}return r}function Wpe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return L.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function iE(e,t){return t+e+mq}function zpe(e,t,r,i,o,s){let{line:l,character:f}=Gs(e,t),{line:d,character:g}=Gs(e,t+r),m=Gs(e,e.text.length).line,v=d-l>=4,S=(d+1+"").length;v&&(S=Math.max(hq.length,S));let x="";for(let A=l;A<=d;A++){x+=s.getNewLine(),v&&l+1<A&&A<d-1&&(x+=i+iE(J1(hq,S),BF)+UF+s.getNewLine(),A=d-1);let w=gw(e,A,0),C=A<m?gw(e,A+1,0):e.text.length,P=e.text.slice(w,C);if(P=$D(P),P=P.replace(/\t/g," "),x+=i+iE(J1(A+1+"",S),BF)+UF,x+=P+s.getNewLine(),x+=i+iE(J1("",S),BF)+UF,x+=o,A===l){let F=A===d?g:void 0;x+=P.slice(0,f).replace(/\S/g," "),x+=P.slice(f,F).replace(/./g,"~")}else A===d?x+=P.slice(0,g).replace(/./g,"~"):x+=P.replace(/./g,"~");x+=mq}return x}function iq(e,t,r,i=iE){let{line:o,character:s}=Gs(e,t),l=r?rI(e.fileName,r.getCurrentDirectory(),d=>r.getCanonicalFileName(d)):e.fileName,f="";return f+=i(l,"\x1B[96m"),f+=":",f+=i(`${o+1}`,"\x1B[93m"),f+=":",f+=i(`${s+1}`,"\x1B[93m"),f}function Jpe(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=iq(o,s,t),r+=" - "}if(r+=iE(C8(i),Wpe(i.category)),r+=iE(` TS${i.code}: `,"\x1B[90m"),r+=sv(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=zpe(i.file,i.start,i.length,"",Wpe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:f}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=Xpe+iq(o,s,t),r+=zpe(o,s,l,gq,"\x1B[96m",t)),r+=t.getNewLine(),r+=gq+sv(f,t.getNewLine())}r+=t.getNewLine()}return r}function sv(e,t,r=0){if(Ta(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(let o of e.next)i+=sv(o,t,r);return i}function mN(e,t){return(Ta(e)?t:e.resolutionMode)||t}function aq(e,t){if(e.impliedNodeFormat!==void 0)return W_(e,GF(e,t))}function oq(e){var t;return Il(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function W_(e,t){var r,i;if(e.impliedNodeFormat===void 0)return;if((gl(t.parent)||Il(t.parent))&&oq(t.parent)){let l=qS(t.parent.assertClause);if(l)return l}if(t.parent.parent&&Mh(t.parent.parent)){let s=qS((r=t.parent.parent.assertions)==null?void 0:r.assertClause);if(s)return s}if(e.impliedNodeFormat!==99)return Dd(qy(t.parent))?99:1;let o=(i=qy(t.parent))==null?void 0:i.parent;return o&&Nl(o)?1:99}function qS(e,t){if(!e)return;if(Fn(e.elements)!==1){t?.(e,_.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}let r=e.elements[0];if(es(r.name)){if(r.name.text!=="resolution-mode"){t?.(r.name,_.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(es(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t?.(r.value,_.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function sq(e){return e.text}function cq(e,t,r,i,o){return{nameAndMode:QL,resolve:(s,l)=>FL(s,e,r,i,o,t,l)}}function RF(e){return Ta(e)?e:n_(e.fileName)}function OF(e,t,r,i,o){return{nameAndMode:yN,resolve:(s,l)=>HJ(s,e,r,i,t,o,l)}}function hN(e,t,r,i,o,s,l,f){if(e.length===0)return Je;let d=[],g=new Map,m=f(t,r,i,s,l);for(let v of e){let S=m.nameAndMode.getName(v),x=m.nameAndMode.getMode(v,o),A=ML(S,x),w=g.get(A);w||g.set(A,w=m.resolve(S,x)),d.push(w)}return d}function Kpe(e,t){return gN(void 0,e,(r,i)=>r&&t(r,i))}function gN(e,t,r,i){let o;return s(e,t,void 0);function s(l,f,d){if(i){let g=i(l,d);if(g)return g}return mn(f,(g,m)=>{if(g&&o?.has(g.sourceFile.path))return;let v=r(g,d,m);return v||!g?v:((o||(o=new Set)).add(g.sourceFile.path),s(g.commandLine.projectReferences,g.references,g))})}}function vb(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function F2(e){return e.pos!==void 0}function YL(e,t){var r,i,o,s,l,f;let d=L.checkDefined(e(t.file)),{kind:g,index:m}=t,v,S,x,A;switch(g){case 3:let w=GF(d,m);if(x=(o=(i=(r=d.resolvedModules)==null?void 0:r.get(w.text,aq(d,m)))==null?void 0:i.resolvedModule)==null?void 0:o.packageId,w.pos===-1)return{file:d,packageId:x,text:w.text};v=xo(d.text,w.pos),S=w.end;break;case 4:({pos:v,end:S}=d.referencedFiles[m]);break;case 5:({pos:v,end:S,resolutionMode:A}=d.typeReferenceDirectives[m]),x=(f=(l=(s=d.resolvedTypeReferenceDirectiveNames)==null?void 0:s.get(n_(d.typeReferenceDirectives[m].fileName),A||d.impliedNodeFormat))==null?void 0:l.resolvedTypeReferenceDirective)==null?void 0:f.packageId;break;case 7:({pos:v,end:S}=d.libReferenceDirectives[m]);break;default:return L.assertNever(g)}return{file:d,pos:v,end:S,packageId:x}}function lq(e,t,r,i,o,s,l,f,d){if(!e||l?.()||!up(e.getRootFileNames(),t))return!1;let g;if(!up(e.getProjectReferences(),d,x)||e.getSourceFiles().some(v)||e.getMissingFilePaths().some(o))return!1;let m=e.getCompilerOptions();if(!gW(m,r))return!1;if(m.configFile&&r.configFile)return m.configFile.text===r.configFile.text;return!0;function v(w){return!S(w)||s(w.path)}function S(w){return w.version===i(w.resolvedPath,w.fileName)}function x(w,C,P){return tH(w,C)&&A(e.getResolvedProjectReferences()[P],w)}function A(w,C){if(w){if(ya(g,w))return!0;let F=$L(C),B=f(F);return!B||w.commandLine.options.configFile!==B.options.configFile||!up(w.commandLine.fileNames,B.fileNames)?!1:((g||(g=[])).push(w),!mn(w.references,(q,W)=>!A(q,w.commandLine.projectReferences[W])))}let P=$L(C);return!f(P)}}function XT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function NF(e,t,r,i){let o=uq(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function uq(e,t,r,i){switch($s(i)){case 3:case 99:return $c(e,[".d.mts",".mts",".mjs"])?99:$c(e,[".d.cts",".cts",".cjs"])?1:$c(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=Z3(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let f=eF(e,s);return{impliedNodeFormat:f?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:f}}}function t8e(e,t){return e?LA(e.getCompilerOptions(),t,V3):!1}function n8e(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function PF(e,t,r,i,o){var s,l,f,d,g,m,v,S,x,A,w,C,P,F,B,q;let W=ba(e)?n8e(e,t,r,i,o):e,{rootNames:Y,options:R,configFileParsingDiagnostics:ie,projectReferences:$,typeScriptVersion:fe}=W,{oldProgram:Z}=W,U=zu(()=>Jf("ignoreDeprecations",_.Invalid_value_for_ignoreDeprecations)),re,le,_e,ge,X,Ve,we,ke=new Map,Pe=Nf(),Ce={},Ie={},Be=WT(),Ne,Le,Ye,_t=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0,ct=0,Rt=new Map,We=new Map;(s=ai)==null||s.push(ai.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),Fs("beforeProgram");let qe=W.host||Hpe(R),zt=FF(qe),Qt=R.noLib,tn=zu(()=>qe.getDefaultLibFileName(R)),kn=qe.getDefaultLibLocation?qe.getDefaultLibLocation():ni(tn()),_n=XA(),Gt=qe.getCurrentDirectory(),$n=nL(R),ui=FR(R,$n),Ni=new Map,Pi,gr,pt,nn=qe.hasInvalidatedResolutions||m0;qe.resolveModuleNameLiterals?(pt=qe.resolveModuleNameLiterals.bind(qe),gr=(l=qe.getModuleResolutionCache)==null?void 0:l.call(qe)):qe.resolveModuleNames?(pt=(be,De,mt,St,Zt,rn)=>qe.resolveModuleNames(be.map(sq),De,rn?.map(sq),mt,St,Zt).map(sn=>sn?sn.extension!==void 0?{resolvedModule:sn}:{resolvedModule:{...sn,extension:jR(sn.resolvedFileName)}}:yq),gr=(f=qe.getModuleResolutionCache)==null?void 0:f.call(qe)):(gr=Y3(Gt,ee,R),pt=(be,De,mt,St,Zt)=>hN(be,De,mt,St,Zt,qe,gr,cq));let Dt;if(qe.resolveTypeReferenceDirectiveReferences)Dt=qe.resolveTypeReferenceDirectiveReferences.bind(qe);else if(qe.resolveTypeReferenceDirectives)Dt=(be,De,mt,St,Zt)=>qe.resolveTypeReferenceDirectives(be.map(RF),De,mt,St,Zt?.impliedNodeFormat).map(rn=>({resolvedTypeReferenceDirective:rn}));else{let be=$3(Gt,ee,void 0,gr?.getPackageJsonInfoCache());Dt=(De,mt,St,Zt,rn)=>hN(De,mt,St,Zt,rn,qe,be,OF)}let pn=new Map,An=new Map,Kn=Nf(),hi=!1,ri=new Map,vn,Ht=qe.useCaseSensitiveFileNames()?new Map:void 0,En,dr,Cr,Se,at=!!((d=qe.useSourceOfProjectReferenceRedirect)!=null&&d.call(qe))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Tt,fileExists:ve,directoryExists:nt}=r8e({compilerHost:qe,getSymlinkCache:oa,useSourceOfProjectReferenceRedirect:at,toPath:rt,getResolvedProjectReferences:Qe,getSourceOfProjectReferenceRedirect:Ws,forEachResolvedProjectReference:jo}),ce=qe.readFile.bind(qe);(g=ai)==null||g.push(ai.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Z});let Q=t8e(Z,R);(m=ai)==null||m.pop();let ue;if((v=ai)==null||v.push(ai.Phase.Program,"tryReuseStructureFromOldProgram",{}),ue=Te(),(S=ai)==null||S.pop(),ue!==2){if(re=[],le=[],$&&(En||(En=$.map(xt)),Y.length&&En?.forEach((be,De)=>{if(!be)return;let mt=Ss(be.commandLine.options);if(at){if(mt||Rl(be.commandLine.options)===0)for(let St of be.commandLine.fileNames)Yt(St,{kind:1,index:De})}else if(mt)Yt(V0(mt,".d.ts"),{kind:2,index:De});else if(Rl(be.commandLine.options)===0){let St=zu(()=>XL(be.commandLine,!qe.useCaseSensitiveFileNames()));for(let Zt of be.commandLine.fileNames)!Fu(Zt)&&!Gc(Zt,".json")&&Yt(qL(Zt,be.commandLine,!qe.useCaseSensitiveFileNames(),St),{kind:2,index:De})}})),(x=ai)==null||x.push(ai.Phase.Program,"processRootFiles",{count:Y.length}),mn(Y,(be,De)=>yc(be,!1,!1,{kind:0,index:De})),(A=ai)==null||A.pop(),Le??(Le=Y.length?X3(R,qe):Je),Ye=WT(),Le.length){(w=ai)==null||w.push(ai.Phase.Program,"processTypeReferences",{count:Le.length});let be=R.configFilePath?ni(R.configFilePath):qe.getCurrentDirectory(),De=vi(be,VF),mt=pe(Le,De);for(let St=0;St<Le.length;St++)Ye.set(Le[St],void 0,mt[St]),Et(Le[St],void 0,mt[St],{kind:8,typeReference:Le[St],packageId:(P=(C=mt[St])==null?void 0:C.resolvedTypeReferenceDirective)==null?void 0:P.packageId});(F=ai)==null||F.pop()}if(Y.length&&!Qt){let be=tn();!R.lib&&be?yc(be,!0,!1,{kind:6}):mn(R.lib,(De,mt)=>{yc(Ri(De),!0,!1,{kind:6,index:mt})})}vn=lo(UD(ri.entries(),([be,De])=>De===void 0?be:void 0)),_e=Ag(re,ir).concat(le),re=void 0,le=void 0}if(L.assert(!!vn),Z&&qe.onReleaseOldSourceFile){let be=Z.getSourceFiles();for(let De of be){let mt=Hi(De.resolvedPath);(Q||!mt||mt.impliedNodeFormat!==De.impliedNodeFormat||De.resolvedPath===De.path&&mt.resolvedPath!==De.path)&&qe.onReleaseOldSourceFile(De,Z.getCompilerOptions(),!!Hi(De.path))}qe.getParsedCommandLine||Z.forEachResolvedProjectReference(De=>{vc(De.sourceFile.path)||qe.onReleaseOldSourceFile(De.sourceFile,Z.getCompilerOptions(),!1)})}Z&&qe.onReleaseParsedCommandLine&&gN(Z.getProjectReferences(),Z.getResolvedProjectReferences(),(be,De,mt)=>{let St=De?.commandLine.projectReferences[mt]||Z.getProjectReferences()[mt],Zt=$L(St);dr?.has(rt(Zt))||qe.onReleaseParsedCommandLine(Zt,be,Z.getCompilerOptions())}),Z=void 0;let G={getRootFileNames:()=>Y,getSourceFile:Fa,getSourceFileByPath:Hi,getSourceFiles:()=>_e,getMissingFilePaths:()=>vn,getModuleResolutionCache:()=>gr,getFilesByNameMap:()=>ri,getCompilerOptions:()=>R,getSyntacticDiagnostics:Nr,getOptionsDiagnostics:qs,getGlobalDiagnostics:As,getSemanticDiagnostics:Fo,getCachedSemanticDiagnostics:Qr,getSuggestionDiagnostics:Co,getDeclarationDiagnostics:Ki,getBindAndCheckDiagnostics:Wi,getProgramDiagnostics:gn,getTypeChecker:Kr,getClassifiableNames:Ke,getCommonSourceDirectory:Ot,emit:Si,getCurrentDirectory:()=>Gt,getNodeCount:()=>Kr().getNodeCount(),getIdentifierCount:()=>Kr().getIdentifierCount(),getSymbolCount:()=>Kr().getSymbolCount(),getTypeCount:()=>Kr().getTypeCount(),getInstantiationCount:()=>Kr().getInstantiationCount(),getRelationCacheSizes:()=>Kr().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Ne,getResolvedTypeReferenceDirectives:()=>Be,getAutomaticTypeDirectiveNames:()=>Le,getAutomaticTypeDirectiveResolutions:()=>Ye,isSourceFileFromExternalLibrary:jr,isSourceFileDefaultLibrary:ei,getSourceFileFromReference:K,getLibFileFromReference:wt,sourceFileToPackageName:An,redirectTargetsMap:Kn,usesUriStyleNodeCoreModules:hi,isEmittedFile:Pn,getConfigFileParsingDiagnostics:jt,getProjectReferences:Vt,getResolvedProjectReferences:Qe,getProjectReferenceRedirect:Hs,getResolvedProjectReferenceToRedirect:$o,getResolvedProjectReferenceByPath:vc,forEachResolvedProjectReference:jo,isSourceOfProjectReferenceRedirect:hd,emitBuildInfo:lt,fileExists:ve,readFile:ce,directoryExists:nt,getSymlinkCache:oa,realpath:(B=qe.realpath)==null?void 0:B.bind(qe),useCaseSensitiveFileNames:()=>qe.useCaseSensitiveFileNames(),getCanonicalFileName:ee,getFileIncludeReasons:()=>Pe,structureIsReused:ue,writeFile:yt};return Tt(),Ne?.forEach(be=>{switch(be.kind){case 1:return _n.add(Ea(be.file&&Hi(be.file),be.fileProcessingReason,be.diagnostic,be.args||Je));case 0:let{file:De,pos:mt,end:St}=YL(Hi,be.reason);return _n.add(al(De,L.checkDefined(mt),L.checkDefined(St)-mt,be.diagnostic,...be.args||Je));case 2:return be.diagnostics.forEach(Zt=>_n.add(Zt));default:L.assertNever(be)}}),qt(),Fs("afterProgram"),hf("Program","beforeProgram","afterProgram"),(q=ai)==null||q.pop(),G;function Oe(be){var De;(De=be.resolutionDiagnostics)!=null&&De.length&&(Ne??(Ne=[])).push({kind:2,diagnostics:be.resolutionDiagnostics})}function je(be,De,mt,St){if(qe.resolveModuleNameLiterals||!qe.resolveModuleNames)return Oe(mt);if(!gr||fl(De))return;let Zt=_a(be.originalFileName,Gt),rn=ni(Zt),sn=Kt(be),Dn=gr.getFromNonRelativeNameCache(De,St,rn,sn);Dn&&Oe(Dn)}function Ge(be,De,mt){var St,Zt;if(!be.length)return Je;let rn=_a(De.originalFileName,Gt),sn=Kt(De);(St=ai)==null||St.push(ai.Phase.Program,"resolveModuleNamesWorker",{containingFileName:rn}),Fs("beforeResolveModule");let Dn=pt(be,rn,sn,R,De,mt);return Fs("afterResolveModule"),hf("ResolveModule","beforeResolveModule","afterResolveModule"),(Zt=ai)==null||Zt.pop(),Dn}function kt(be,De,mt){var St,Zt;if(!be.length)return[];let rn=Ta(De)?void 0:De,sn=Ta(De)?De:_a(De.originalFileName,Gt),Dn=rn&&Kt(rn);(St=ai)==null||St.push(ai.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:sn}),Fs("beforeResolveTypeReference");let kr=Dt(be,sn,Dn,R,rn,mt);return Fs("afterResolveTypeReference"),hf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Zt=ai)==null||Zt.pop(),kr}function Kt(be){let De=$o(be.originalFileName);if(De||!Fu(be.originalFileName))return De;let mt=ln(be.path);if(mt)return mt;if(!qe.realpath||!R.preserveSymlinks||!jl(be.originalFileName,Wg))return;let St=rt(qe.realpath(be.originalFileName));return St===be.path?void 0:ln(St)}function ln(be){let De=Ws(be);if(Ta(De))return $o(De);if(De)return jo(mt=>{let St=Ss(mt.commandLine.options);if(St)return rt(St)===be?mt:void 0})}function ir(be,De){return Es(ae(be),ae(De))}function ae(be){if(Gy(kn,be.fileName,!1)){let De=Hl(be.fileName);if(De==="lib.d.ts"||De==="lib.es6.d.ts")return 0;let mt=pA(QC(De,"lib."),".d.ts"),St=VO.indexOf(mt);if(St!==-1)return St+1}return VO.length+2}function rt(be){return Ts(be,Gt,ee)}function Ot(){if(X===void 0){let be=Pr(_e,De=>pS(De,G));X=uN(R,()=>Zi(be,De=>De.isDeclarationFile?void 0:De.fileName),Gt,ee,De=>At(be,De))}return X}function Ke(){var be;if(!we){Kr(),we=new Set;for(let De of _e)(be=De.classifiableNames)==null||be.forEach(mt=>we.add(mt))}return we}function oe(be,De){var mt;if(ue===0&&!De.ambientModuleNames.length)return Ge(be,De,void 0);let St=Z&&Z.getSourceFile(De.fileName);if(St!==De&&De.resolvedModules){let $t=[];for(let Xn of be){let ra=De.resolvedModules.get(Xn.text,W_(De,Xn));$t.push(ra)}return $t}let Zt,rn,sn,Dn=yq;for(let $t=0;$t<be.length;$t++){let Xn=be[$t];if(De===St&&!nn(St.path)){let Is=W_(De,Xn),Mc=(mt=St.resolvedModules)==null?void 0:mt.get(Xn.text,Is);if(Mc?.resolvedModule){ov(R,qe)&&Xi(qe,Mc.resolvedModule.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Xn.text,_a(De.originalFileName,Gt),Mc.resolvedModule.resolvedFileName,Mc.resolvedModule.packageId&&hT(Mc.resolvedModule.packageId)),(rn??(rn=new Array(be.length)))[$t]=Mc,(sn??(sn=[])).push(Xn);continue}}let ra=!1;ya(De.ambientModuleNames,Xn.text)?(ra=!0,ov(R,qe)&&Xi(qe,_.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Xn.text,_a(De.originalFileName,Gt))):ra=Vn(Xn),ra?(rn||(rn=new Array(be.length)))[$t]=Dn:(Zt??(Zt=[])).push(Xn)}let kr=Zt&&Zt.length?Ge(Zt,De,sn):Je;if(!rn)return L.assert(kr.length===be.length),kr;let ki=0;for(let $t=0;$t<rn.length;$t++)rn[$t]||(rn[$t]=kr[ki],ki++);return L.assert(ki===kr.length),rn;function Vn($t){let Xn=kA(St,$t.text,W_(De,$t)),ra=Xn&&Z.getSourceFile(Xn.resolvedFileName);if(Xn&&ra)return!1;let Is=ke.get($t.text);return Is?(ov(R,qe)&&Xi(qe,_.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,$t.text,Is),!0):!1}}function pe(be,De){var mt;if(ue===0)return kt(be,De,void 0);let St=Ta(De)?void 0:Z&&Z.getSourceFile(De.fileName);if(!Ta(De)&&St!==De&&De.resolvedTypeReferenceDirectiveNames){let $t=[];for(let Xn of be){let ra=De.resolvedTypeReferenceDirectiveNames.get(RF(Xn),mN(Xn,De.impliedNodeFormat));$t.push(ra)}return $t}let Zt,rn,sn,Dn=Ta(De)?void 0:De,kr=Ta(De)?!nn(rt(De)):De===St&&!nn(St.path);for(let $t=0;$t<be.length;$t++){let Xn=be[$t];if(kr){let ra=RF(Xn),Is=mN(Xn,Dn?.impliedNodeFormat),Mc=(mt=Ta(De)?Z?.getAutomaticTypeDirectiveResolutions():St?.resolvedTypeReferenceDirectiveNames)==null?void 0:mt.get(ra,Is);if(Mc?.resolvedTypeReferenceDirective){ov(R,qe)&&Xi(qe,Mc.resolvedTypeReferenceDirective.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,ra,Ta(De)?De:_a(De.originalFileName,Gt),Mc.resolvedTypeReferenceDirective.resolvedFileName,Mc.resolvedTypeReferenceDirective.packageId&&hT(Mc.resolvedTypeReferenceDirective.packageId)),(rn??(rn=new Array(be.length)))[$t]=Mc,(sn??(sn=[])).push(Xn);continue}}(Zt??(Zt=[])).push(Xn)}if(!Zt)return rn||Je;let ki=kt(Zt,De,sn);if(!rn)return L.assert(ki.length===be.length),ki;let Vn=0;for(let $t=0;$t<rn.length;$t++)rn[$t]||(rn[$t]=ki[Vn],Vn++);return L.assert(Vn===ki.length),rn}function z(){return!gN(Z.getProjectReferences(),Z.getResolvedProjectReferences(),(be,De,mt)=>{let St=(De?De.commandLine.projectReferences:$)[mt],Zt=xt(St);return be?!Zt||Zt.sourceFile!==be.sourceFile||!up(be.commandLine.fileNames,Zt.commandLine.fileNames):Zt!==void 0},(be,De)=>{let mt=De?vc(De.sourceFile.path).commandLine.projectReferences:$;return!up(be,mt,tH)})}function Te(){var be;if(!Z)return 0;let De=Z.getCompilerOptions();if(eH(De,R))return 0;let mt=Z.getRootFileNames();if(!up(mt,Y)||!z())return 0;$&&(En=$.map(xt));let St=[],Zt=[];if(ue=2,Z.getMissingFilePaths().some(Vn=>qe.fileExists(Vn)))return 0;let rn=Z.getSourceFiles(),sn;(Vn=>{Vn[Vn.Exists=0]="Exists",Vn[Vn.Modified=1]="Modified"})(sn||(sn={}));let Dn=new Map;for(let Vn of rn){let $t=Go(Vn.fileName,gr,qe,R),Xn=qe.getSourceFileByPath?qe.getSourceFileByPath(Vn.fileName,Vn.resolvedPath,$t,void 0,Q||$t.impliedNodeFormat!==Vn.impliedNodeFormat):qe.getSourceFile(Vn.fileName,$t,void 0,Q||$t.impliedNodeFormat!==Vn.impliedNodeFormat);if(!Xn)return 0;Xn.packageJsonLocations=(be=$t.packageJsonLocations)!=null&&be.length?$t.packageJsonLocations:void 0,Xn.packageJsonScope=$t.packageJsonScope,L.assert(!Xn.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ra;if(Vn.redirectInfo){if(Xn!==Vn.redirectInfo.unredirected)return 0;ra=!1,Xn=Vn}else if(Z.redirectTargetsMap.has(Vn.path)){if(Xn!==Vn)return 0;ra=!1}else ra=Xn!==Vn;Xn.path=Vn.path,Xn.originalFileName=Vn.originalFileName,Xn.resolvedPath=Vn.resolvedPath,Xn.fileName=Vn.fileName;let Is=Z.sourceFileToPackageName.get(Vn.path);if(Is!==void 0){let Mc=Dn.get(Is),mm=ra?1:0;if(Mc!==void 0&&mm===1||Mc===1)return 0;Dn.set(Is,mm)}ra?(Vn.impliedNodeFormat!==Xn.impliedNodeFormat?ue=1:up(Vn.libReferenceDirectives,Xn.libReferenceDirectives,Ql)?Vn.hasNoDefaultLib!==Xn.hasNoDefaultLib?ue=1:up(Vn.referencedFiles,Xn.referencedFiles,Ql)?(ht(Xn),up(Vn.imports,Xn.imports,yu)&&up(Vn.moduleAugmentations,Xn.moduleAugmentations,yu)?(Vn.flags&6291456)!==(Xn.flags&6291456)?ue=1:up(Vn.typeReferenceDirectives,Xn.typeReferenceDirectives,Ql)||(ue=1):ue=1):ue=1:ue=1,Zt.push({oldFile:Vn,newFile:Xn})):nn(Vn.path)&&(ue=1,Zt.push({oldFile:Vn,newFile:Xn})),St.push(Xn)}if(ue!==2)return ue;let kr=Zt.map(Vn=>Vn.oldFile);for(let Vn of rn)if(!ya(kr,Vn))for(let $t of Vn.ambientModuleNames)ke.set($t,Vn.fileName);for(let{oldFile:Vn,newFile:$t}of Zt){let Xn=qpe($t),ra=oe(Xn,$t);nH(Xn,$t,ra,Vn.resolvedModules,wse,QL)?(ue=1,$t.resolvedModules=qJ($t,Xn,ra,QL)):$t.resolvedModules=Vn.resolvedModules;let Mc=$t.typeReferenceDirectives,mm=pe(Mc,$t);nH(Mc,$t,mm,Vn.resolvedTypeReferenceDirectiveNames,Rse,yN)?(ue=1,$t.resolvedTypeReferenceDirectiveNames=qJ($t,Mc,mm,yN)):$t.resolvedTypeReferenceDirectiveNames=Vn.resolvedTypeReferenceDirectiveNames}if(ue!==2)return ue;if(Ise(De,R))return 1;if(qe.hasChangedAutomaticTypeDirectiveNames){if(qe.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Le=X3(R,qe),!up(Z.getAutomaticTypeDirectiveNames(),Le))return 1;vn=Z.getMissingFilePaths(),L.assert(St.length===Z.getSourceFiles().length);for(let Vn of St)ri.set(Vn.path,Vn);return Z.getFilesByNameMap().forEach((Vn,$t)=>{if(!Vn){ri.set($t,Vn);return}if(Vn.path===$t){Z.isSourceFileFromExternalLibrary(Vn)&&We.set(Vn.path,!0);return}ri.set($t,ri.get(Vn.path))}),_e=St,Pe=Z.getFileIncludeReasons(),Ne=Z.getFileProcessingDiagnostics(),Be=Z.getResolvedTypeReferenceDirectives(),Le=Z.getAutomaticTypeDirectiveNames(),Ye=Z.getAutomaticTypeDirectiveResolutions(),An=Z.sourceFileToPackageName,Kn=Z.redirectTargetsMap,hi=Z.usesUriStyleNodeCoreModules,2}function j(be){return{getPrependNodes:Hn,getCanonicalFileName:ee,getCommonSourceDirectory:G.getCommonSourceDirectory,getCompilerOptions:G.getCompilerOptions,getCurrentDirectory:()=>Gt,getSourceFile:G.getSourceFile,getSourceFileByPath:G.getSourceFileByPath,getSourceFiles:G.getSourceFiles,getLibFileFromReference:G.getLibFileFromReference,isSourceFileFromExternalLibrary:jr,getResolvedProjectReferenceToRedirect:$o,getProjectReferenceRedirect:Hs,isSourceOfProjectReferenceRedirect:hd,getSymlinkCache:oa,writeFile:be||yt,isEmitBlocked:Ja,readFile:De=>qe.readFile(De),fileExists:De=>{let mt=rt(De);return Hi(mt)?!0:ya(vn,mt)?!1:qe.fileExists(De)},useCaseSensitiveFileNames:()=>qe.useCaseSensitiveFileNames(),getBuildInfo:De=>{var mt;return(mt=G.getBuildInfo)==null?void 0:mt.call(G,De)},getSourceFileFromReference:(De,mt)=>G.getSourceFileFromReference(De,mt),redirectTargetsMap:Kn,getFileIncludeReasons:G.getFileIncludeReasons,createHash:ho(qe,qe.createHash)}}function yt(be,De,mt,St,Zt,rn){qe.writeFile(be,De,mt,St,Zt,rn)}function lt(be){var De,mt;L.assert(!Ss(R)),(De=ai)==null||De.push(ai.Phase.Emit,"emitBuildInfo",{},!0),Fs("beforeEmit");let St=CF(LF,j(be),void 0,HK,!1,!0);return Fs("afterEmit"),hf("Emit","beforeEmit","afterEmit"),(mt=ai)==null||mt.pop(),St}function Qe(){return En}function Vt(){return $}function Hn(){return fq($,(be,De)=>{var mt;return(mt=En[De])==null?void 0:mt.commandLine},be=>{let De=rt(be),mt=Hi(De);return mt?mt.text:ri.has(De)?void 0:qe.readFile(De)},qe)}function jr(be){return!!We.get(be.path)}function ei(be){if(!be.isDeclarationFile)return!1;if(be.hasNoDefaultLib)return!0;if(!R.noLib)return!1;let De=qe.useCaseSensitiveFileNames()?z1:W1;return R.lib?vt(R.lib,mt=>De(be.fileName,Ri(mt))):De(be.fileName,tn())}function Kr(){return Ve||(Ve=k_e(G))}function Si(be,De,mt,St,Zt,rn){var sn,Dn;(sn=ai)==null||sn.push(ai.Phase.Emit,"emit",{path:be?.path},!0);let kr=Ps(()=>Za(G,be,De,mt,St,Zt,rn));return(Dn=ai)==null||Dn.pop(),kr}function Ja(be){return Ni.has(rt(be))}function Za(be,De,mt,St,Zt,rn,sn){if(!sn){let ki=dq(be,De,mt,St);if(ki)return ki}let Dn=Kr().getEmitResolver(Ss(R)?void 0:De,St);Fs("beforeEmit");let kr=CF(Dn,j(mt),De,jK(R,rn,Zt),Zt,!1,sn);return Fs("afterEmit"),hf("Emit","beforeEmit","afterEmit"),kr}function Fa(be){return Hi(rt(be))}function Hi(be){return ri.get(be)||void 0}function xi(be,De,mt){return vA(be?De(be,mt):Uo(G.getSourceFiles(),St=>(mt&&mt.throwIfCancellationRequested(),De(St,mt))))}function Nr(be,De){return xi(be,kc,De)}function Fo(be,De){return xi(be,mc,De)}function Qr(be){var De;return be?(De=Ce.perFile)==null?void 0:De.get(be.path):Ce.allDiagnostics}function Wi(be,De){return xc(be,De)}function gn(be){var De;if(rL(be,R,G))return Je;let mt=_n.getDiagnostics(be.fileName);return(De=be.commentDirectives)!=null&&De.length?aa(be,be.commentDirectives,mt).diagnostics:mt}function Ki(be,De){let mt=G.getCompilerOptions();return!be||Ss(mt)?md(be,De):xi(be,ss,De)}function kc(be){return Cu(be)?(be.additionalSyntacticDiagnostics||(be.additionalSyntacticDiagnostics=Ll(be)),Qi(be.additionalSyntacticDiagnostics,be.parseDiagnostics)):be.parseDiagnostics}function Ps(be){try{return be()}catch(De){throw De instanceof tI&&(Ve=void 0),De}}function mc(be,De){return Qi(MF(xc(be,De),R),gn(be))}function xc(be,De){return bl(be,De,Ce,hc)}function hc(be,De){return Ps(()=>{if(rL(be,R,G))return Je;let mt=Kr();L.assert(!!be.bindDiagnostics);let Zt=(be.scriptKind===1||be.scriptKind===2)&&HR(be,R),rn=h6(be,R.checkJs),Dn=!(!!be.checkJsDirective&&be.checkJsDirective.enabled===!1)&&(be.scriptKind===3||be.scriptKind===4||be.scriptKind===5||rn||Zt||be.scriptKind===7),kr=Dn?be.bindDiagnostics:Je,ki=Dn?mt.getDiagnostics(be,De):Je;return rn&&(kr=Pr(kr,Vn=>jF.has(Vn.code)),ki=Pr(ki,Vn=>jF.has(Vn.code))),ro(be,Dn&&!rn,kr,ki,Zt?be.jsDocDiagnostics:void 0)})}function ro(be,De,...mt){var St;let Zt=t_(mt);if(!De||!((St=be.commentDirectives)!=null&&St.length))return Zt;let{diagnostics:rn,directives:sn}=aa(be,be.commentDirectives,Zt);for(let Dn of sn.getUnusedExpectations())rn.push(vH(be,Dn.range,_.Unused_ts_expect_error_directive));return rn}function aa(be,De,mt){let St=Gse(be,De);return{diagnostics:mt.filter(rn=>gc(rn,St)===-1),directives:St}}function Co(be,De){return Ps(()=>Kr().getSuggestionDiagnostics(be,De))}function gc(be,De){let{file:mt,start:St}=be;if(!mt)return-1;let Zt=Sh(mt),rn=yw(Zt,St).line-1;for(;rn>=0;){if(De.markUsed(rn))return rn;let sn=mt.text.slice(Zt[rn],Zt[rn+1]).trim();if(sn!==""&&!/^(\s*)\/\/(.*)$/.test(sn))return-1;rn--}return-1}function Ll(be){return Ps(()=>{let De=[];return mt(be,be),kO(be,mt,St),De;function mt(Dn,kr){switch(kr.kind){case 166:case 169:case 171:if(kr.questionToken===Dn)return De.push(sn(Dn,_.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 170:case 173:case 174:case 175:case 215:case 259:case 216:case 257:if(kr.type===Dn)return De.push(sn(Dn,_.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Dn.kind){case 270:if(Dn.isTypeOnly)return De.push(sn(kr,_._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 275:if(Dn.isTypeOnly)return De.push(sn(Dn,_._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 273:case 278:if(Dn.isTypeOnly)return De.push(sn(Dn,_._0_declarations_can_only_be_used_in_TypeScript_files,$u(Dn)?"import...type":"export...type")),"skip";break;case 268:return De.push(sn(Dn,_.import_can_only_be_used_in_TypeScript_files)),"skip";case 274:if(Dn.isExportEquals)return De.push(sn(Dn,_.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 294:if(Dn.token===117)return De.push(sn(Dn,_.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 261:let Vn=Xa(118);return L.assertIsDefined(Vn),De.push(sn(Dn,_._0_declarations_can_only_be_used_in_TypeScript_files,Vn)),"skip";case 264:let $t=Dn.flags&16?Xa(143):Xa(142);return L.assertIsDefined($t),De.push(sn(Dn,_._0_declarations_can_only_be_used_in_TypeScript_files,$t)),"skip";case 262:return De.push(sn(Dn,_.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 263:let Xn=L.checkDefined(Xa(92));return De.push(sn(Dn,_._0_declarations_can_only_be_used_in_TypeScript_files,Xn)),"skip";case 232:return De.push(sn(Dn,_.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 231:return De.push(sn(Dn.type,_.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 235:return De.push(sn(Dn.type,_.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 213:L.fail()}}function St(Dn,kr){if(aJ(kr)){let ki=wr(kr.modifiers,du);ki&&De.push(sn(ki,_.Decorators_are_not_valid_here))}else if(HS(kr)&&kr.modifiers){let ki=Yc(kr.modifiers,du);if(ki>=0){if(ha(kr)&&!R.experimentalDecorators)De.push(sn(kr.modifiers[ki],_.Decorators_are_not_valid_here));else if(sl(kr)){let Vn=Yc(kr.modifiers,c3);if(Vn>=0){let $t=Yc(kr.modifiers,kue);if(ki>Vn&&$t>=0&&ki<$t)De.push(sn(kr.modifiers[ki],_.Decorators_are_not_valid_here));else if(Vn>=0&&ki<Vn){let Xn=Yc(kr.modifiers,du,Vn);Xn>=0&&De.push(Ao(sn(kr.modifiers[Xn],_.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),sn(kr.modifiers[ki],_.Decorator_used_before_export_here)))}}}}}switch(kr.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(Dn===kr.typeParameters)return De.push(rn(Dn,_.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(Dn===kr.modifiers)return Zt(kr.modifiers,kr.kind===240),"skip";break;case 169:if(Dn===kr.modifiers){for(let ki of Dn)Ha(ki)&&ki.kind!==124&&ki.kind!==127&&De.push(sn(ki,_.The_0_modifier_can_only_be_used_in_TypeScript_files,Xa(ki.kind)));return"skip"}break;case 166:if(Dn===kr.modifiers&&vt(Dn,Ha))return De.push(rn(Dn,_.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 210:case 211:case 230:case 282:case 283:case 212:if(Dn===kr.typeArguments)return De.push(rn(Dn,_.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Zt(Dn,kr){for(let ki of Dn)switch(ki.kind){case 85:if(kr)continue;case 123:case 121:case 122:case 146:case 136:case 126:case 161:case 101:case 145:De.push(sn(ki,_.The_0_modifier_can_only_be_used_in_TypeScript_files,Xa(ki.kind)));break;case 124:case 93:case 88:case 127:}}function rn(Dn,kr,ki,Vn,$t){let Xn=Dn.pos;return al(be,Xn,Dn.end-Xn,kr,ki,Vn,$t)}function sn(Dn,kr,ki,Vn,$t){return Nu(be,Dn,kr,ki,Vn,$t)}})}function md(be,De){return bl(be,De,Ie,Pc)}function Pc(be,De){return Ps(()=>{let mt=Kr().getEmitResolver(be,De);return Tpe(j(Ba),mt,be)||Je})}function bl(be,De,mt,St){var Zt;let rn=be?(Zt=mt.perFile)==null?void 0:Zt.get(be.path):mt.allDiagnostics;if(rn)return rn;let sn=St(be,De);return be?(mt.perFile||(mt.perFile=new Map)).set(be.path,sn):mt.allDiagnostics=sn,sn}function ss(be,De){return be.isDeclarationFile?[]:md(be,De)}function qs(){return vA(Qi(_n.getGlobalDiagnostics(),Rs()))}function Rs(){if(!R.configFile)return Je;let be=_n.getDiagnostics(R.configFile.fileName);return jo(De=>{be=Qi(be,_n.getDiagnostics(De.sourceFile.fileName))}),be}function As(){return Y.length?vA(Kr().getGlobalDiagnostics().slice()):Je}function jt(){return ie||Je}function yc(be,De,mt,St){ft(So(be),De,mt,void 0,St)}function Ql(be,De){return be.fileName===De.fileName}function yu(be,De){return be.kind===79?De.kind===79&&be.escapedText===De.escapedText:De.kind===10&&be.text===De.text}function se(be,De){let mt=D.createStringLiteral(be),St=D.createImportDeclaration(void 0,void 0,mt,void 0);return SS(St,2),go(mt,St),go(St,De),mt.flags&=-9,St.flags&=-9,mt}function ht(be){if(be.imports)return;let De=Cu(be),mt=Lc(be),St,Zt,rn;if((d_(R)||mt)&&!be.isDeclarationFile){R.importHelpers&&(St=[se(_b,be)]);let Vn=p4(_4(R,be),R);Vn&&(St||(St=[])).push(se(Vn,be))}for(let Vn of be.statements)Dn(Vn,!1);let sn=De&&$s(R)!==100;(be.flags&2097152||sn)&&kr(be),be.imports=St||Je,be.moduleAugmentations=Zt||Je,be.ambientModuleNames=rn||Je;return;function Dn(Vn,$t){if(Uw(Vn)){let Xn=UA(Vn);Xn&&yo(Xn)&&Xn.text&&(!$t||!fl(Xn.text))&&(Zy(Vn,!1),St=Sn(St,Xn),!hi&&ct===0&&!be.isDeclarationFile&&(hi=na(Xn.text,"node:")))}else if(Tc(Vn)&&lu(Vn)&&($t||Mr(Vn,2)||be.isDeclarationFile)){Vn.name.parent=Vn;let Xn=l_(Vn.name);if(mt||$t&&!fl(Xn))(Zt||(Zt=[])).push(Vn.name);else if(!$t){be.isDeclarationFile&&(rn||(rn=[])).push(Xn);let ra=Vn.body;if(ra)for(let Is of ra.statements)Dn(Is,!0)}}}function kr(Vn){let $t=/import|require/g;for(;$t.exec(Vn.text)!==null;){let Xn=ki(Vn,$t.lastIndex);sn&&qu(Xn,!0)||Dd(Xn)&&Xn.arguments.length>=1&&es(Xn.arguments[0])?(Zy(Xn,!1),St=Sn(St,Xn.arguments[0])):ib(Xn)&&(Zy(Xn,!1),St=Sn(St,Xn.argument.literal))}}function ki(Vn,$t){let Xn=Vn,ra=Is=>{if(Is.pos<=$t&&($t<Is.end||$t===Is.end&&Is.kind===1))return Is};for(;;){let Is=De&&Kd(Xn)&&mn(Xn.jsDoc,ra)||pa(Xn,ra);if(!Is)return Xn;Xn=Is}}}function wt(be){let De=n_(be.fileName),mt=jO.get(De);if(mt)return Fa(Ri(mt))}function K(be,De){return Xe(wF(De.fileName,be.fileName),Fa)}function Xe(be,De,mt,St){if(gA(be)){let Zt=qe.getCanonicalFileName(be);if(!R.allowNonTsExtensions&&!mn(t_(ui),sn=>Gc(Zt,sn))){mt&&(ES(Zt)?mt(_.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,be):mt(_.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,be,"'"+t_($n).join("', '")+"'"));return}let rn=De(be);if(mt)if(rn)vb(St)&&Zt===qe.getCanonicalFileName(Hi(St.file).fileName)&&mt(_.A_file_cannot_have_a_reference_to_itself);else{let sn=Hs(be);sn?mt(_.Output_file_0_has_not_been_built_from_source_file_1,sn,be):mt(_.File_0_not_found,be)}return rn}else{let Zt=R.allowNonTsExtensions&&De(be);if(Zt)return Zt;if(mt&&R.allowNonTsExtensions){mt(_.File_0_not_found,be);return}let rn=mn($n[0],sn=>De(be+sn));return mt&&!rn&&mt(_.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,be,"'"+t_($n).join("', '")+"'"),rn}}function ft(be,De,mt,St,Zt){Xe(be,rn=>ta(rn,De,mt,Zt,St),(rn,...sn)=>bo(void 0,Zt,rn,sn),Zt)}function Yt(be,De){return ft(be,!1,!1,void 0,De)}function pr(be,De,mt){!vb(mt)&&vt(Pe.get(De.path),vb)?bo(De,mt,_.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[De.fileName,be]):bo(De,mt,_.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[be,De.fileName])}function yr(be,De,mt,St,Zt,rn,sn){var Dn;let kr=fm.createRedirectedSourceFile({redirectTarget:be,unredirected:De});return kr.fileName=mt,kr.path=St,kr.resolvedPath=Zt,kr.originalFileName=rn,kr.packageJsonLocations=(Dn=sn.packageJsonLocations)!=null&&Dn.length?sn.packageJsonLocations:void 0,kr.packageJsonScope=sn.packageJsonScope,We.set(St,ct>0),kr}function ta(be,De,mt,St,Zt){var rn,sn;(rn=ai)==null||rn.push(ai.Phase.Program,"findSourceFile",{fileName:be,isDefaultLib:De||void 0,fileIncludeKind:R8[St.kind]});let Dn=Ka(be,De,mt,St,Zt);return(sn=ai)==null||sn.pop(),Dn}function Go(be,De,mt,St){let Zt=uq(_a(be,Gt),De?.getPackageJsonInfoCache(),mt,St),rn=Do(St),sn=OR(St);return typeof Zt=="object"?{...Zt,languageVersion:rn,setExternalModuleIndicator:sn}:{languageVersion:rn,impliedNodeFormat:Zt,setExternalModuleIndicator:sn}}function Ka(be,De,mt,St,Zt){var rn,sn;let Dn=rt(be);if(at){let Xn=Ws(Dn);if(!Xn&&qe.realpath&&R.preserveSymlinks&&Fu(be)&&jl(be,Wg)){let ra=rt(qe.realpath(be));ra!==Dn&&(Xn=Ws(ra))}if(Xn){let ra=Ta(Xn)?ta(Xn,De,mt,St,Zt):void 0;return ra&&ka(ra,Dn,void 0),ra}}let kr=be;if(ri.has(Dn)){let Xn=ri.get(Dn);if(vo(Xn||void 0,St),Xn&&R.forceConsistentCasingInFileNames!==!1){let ra=Xn.fileName;rt(ra)!==rt(be)&&(be=Hs(be)||be);let Mc=lj(ra,Gt),mm=lj(be,Gt);Mc!==mm&&pr(be,Xn,St)}return Xn&&We.get(Xn.path)&&ct===0?(We.set(Xn.path,!1),R.noResolve||(nf(Xn,De),ye(Xn)),R.noLib||io(Xn),Rt.set(Xn.path,!1),Ze(Xn)):Xn&&Rt.get(Xn.path)&&ct<_t&&(Rt.set(Xn.path,!1),Ze(Xn)),Xn||void 0}let ki;if(vb(St)&&!at){let Xn=Uc(be);if(Xn){if(Ss(Xn.commandLine.options))return;let ra=Gu(Xn,be);be=ra,ki=rt(ra)}}let Vn=Go(be,gr,qe,R),$t=qe.getSourceFile(be,Vn,Xn=>bo(void 0,St,_.Cannot_read_file_0_Colon_1,[be,Xn]),Q||((rn=Z?.getSourceFileByPath(rt(be)))==null?void 0:rn.impliedNodeFormat)!==Vn.impliedNodeFormat);if(Zt){let Xn=hT(Zt),ra=pn.get(Xn);if(ra){let Is=yr(ra,$t,be,Dn,rt(be),kr,Vn);return Kn.add(ra.path,be),ka(Is,Dn,ki),vo(Is,St),An.set(Dn,p6(Zt)),le.push(Is),Is}else $t&&(pn.set(Xn,$t),An.set(Dn,p6(Zt)))}if(ka($t,Dn,ki),$t){if(We.set(Dn,ct>0),$t.fileName=be,$t.path=Dn,$t.resolvedPath=rt(be),$t.originalFileName=kr,$t.packageJsonLocations=(sn=Vn.packageJsonLocations)!=null&&sn.length?Vn.packageJsonLocations:void 0,$t.packageJsonScope=Vn.packageJsonScope,vo($t,St),qe.useCaseSensitiveFileNames()){let Xn=n_(Dn),ra=Ht.get(Xn);ra?pr(be,ra,St):Ht.set(Xn,$t)}Qt=Qt||$t.hasNoDefaultLib&&!mt,R.noResolve||(nf($t,De),ye($t)),R.noLib||io($t),Ze($t),De?re.push($t):le.push($t)}return $t}function vo(be,De){be&&Pe.add(be.path,De)}function ka(be,De,mt){mt?(ri.set(mt,be),ri.set(De,be||!1)):ri.set(De,be)}function Hs(be){let De=Uc(be);return De&&Gu(De,be)}function Uc(be){if(!(!En||!En.length||Fu(be)||Gc(be,".json")))return $o(be)}function Gu(be,De){let mt=Ss(be.commandLine.options);return mt?V0(mt,".d.ts"):qL(De,be.commandLine,!qe.useCaseSensitiveFileNames())}function $o(be){Cr===void 0&&(Cr=new Map,jo(mt=>{rt(R.configFilePath)!==mt.sourceFile.path&&mt.commandLine.fileNames.forEach(St=>Cr.set(rt(St),mt.sourceFile.path))}));let De=Cr.get(rt(be));return De&&vc(De)}function jo(be){return Kpe(En,be)}function Ws(be){if(Fu(be))return Se===void 0&&(Se=new Map,jo(De=>{let mt=Ss(De.commandLine.options);if(mt){let St=V0(mt,".d.ts");Se.set(rt(St),!0)}else{let St=zu(()=>XL(De.commandLine,!qe.useCaseSensitiveFileNames()));mn(De.commandLine.fileNames,Zt=>{if(!Fu(Zt)&&!Gc(Zt,".json")){let rn=qL(Zt,De.commandLine,!qe.useCaseSensitiveFileNames(),St);Se.set(rt(rn),Zt)}})}})),Se.get(be)}function hd(be){return at&&!!$o(be)}function vc(be){if(dr)return dr.get(be)||void 0}function nf(be,De){mn(be.referencedFiles,(mt,St)=>{ft(wF(mt.fileName,be.fileName),De,!1,void 0,{kind:4,file:be.path,index:St})})}function ye(be){let De=be.typeReferenceDirectives;if(!De.length){be.resolvedTypeReferenceDirectiveNames=void 0;return}let mt=pe(De,be);for(let St=0;St<De.length;St++){let Zt=be.typeReferenceDirectives[St],rn=mt[St],sn=n_(Zt.fileName);Dse(be,sn,rn,mN(Zt,be.impliedNodeFormat));let Dn=Zt.resolutionMode||be.impliedNodeFormat;Dn&&$s(R)!==3&&$s(R)!==99&&(Ne??(Ne=[])).push({kind:2,diagnostics:[vH(be,Zt,_.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)]}),Et(sn,Dn,rn,{kind:5,file:be.path,index:St})}}function Et(be,De,mt,St){var Zt,rn;(Zt=ai)==null||Zt.push(ai.Phase.Program,"processTypeReferenceDirective",{directive:be,hasResolved:!!mt.resolvedTypeReferenceDirective,refKind:St.kind,refPath:vb(St)?St.file:void 0}),bn(be,De,mt,St),(rn=ai)==null||rn.pop()}function bn(be,De,mt,St){var Zt;Oe(mt);let rn=(Zt=Be.get(be,De))==null?void 0:Zt.resolvedTypeReferenceDirective;if(rn&&rn.primary)return;let sn=!0,{resolvedTypeReferenceDirective:Dn}=mt;if(Dn){if(Dn.isExternalLibraryImport&&ct++,Dn.primary)ft(Dn.resolvedFileName,!1,!1,Dn.packageId,St);else if(rn){if(Dn.resolvedFileName!==rn.resolvedFileName){let kr=qe.readFile(Dn.resolvedFileName),ki=Fa(rn.resolvedFileName);kr!==ki.text&&bo(ki,St,_.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[be,Dn.resolvedFileName,rn.resolvedFileName])}sn=!1}else ft(Dn.resolvedFileName,!1,!1,Dn.packageId,St);Dn.isExternalLibraryImport&&ct--}else bo(void 0,St,_.Cannot_find_type_definition_file_for_0,[be]);sn&&Be.set(be,De,mt)}function Ri(be){let De=be.split("."),mt=De[1],St=2;for(;De[St]&&De[St]!=="d";)mt+=(St===2?"/":"-")+De[St],St++;let Zt=vi(Gt,`__lib_node_modules_lookup_${be}__.ts`),rn=FL("@typescript/lib-"+mt,Zt,{moduleResolution:2},qe,gr);return rn?.resolvedModule?rn.resolvedModule.resolvedFileName:vi(kn,be)}function io(be){mn(be.libReferenceDirectives,(De,mt)=>{let St=n_(De.fileName),Zt=jO.get(St);if(Zt)yc(Ri(Zt),!0,!0,{kind:7,file:be.path,index:mt});else{let rn=pA(QC(St,"lib."),".d.ts"),sn=$C(rn,VO,Ks),Dn=sn?_.Cannot_find_lib_definition_for_0_Did_you_mean_1:_.Cannot_find_lib_definition_for_0;(Ne||(Ne=[])).push({kind:0,reason:{kind:7,file:be.path,index:mt},diagnostic:Dn,args:[St,sn]})}})}function ee(be){return qe.getCanonicalFileName(be)}function Ze(be){var De;if(ht(be),be.imports.length||be.moduleAugmentations.length){let mt=qpe(be),St=oe(mt,be);L.assert(St.length===mt.length);let Zt=(at?(De=Kt(be))==null?void 0:De.commandLine.options:void 0)||R;for(let rn=0;rn<mt.length;rn++){let sn=St[rn].resolvedModule,Dn=mt[rn].text,kr=W_(be,mt[rn]);if(kse(be,Dn,St[rn],kr),je(be,Dn,St[rn],kr),!sn)continue;let ki=sn.isExternalLibraryImport,Vn=!VR(sn.extension),$t=ki&&Vn,Xn=sn.resolvedFileName;ki&&ct++;let ra=$t&&ct>_t,Is=Xn&&!_q(Zt,sn,be)&&!Zt.noResolve&&rn<be.imports.length&&!ra&&!(Vn&&!PR(Zt))&&(Yn(be.imports[rn])||!(be.imports[rn].flags&8388608));ra?Rt.set(be.path,!0):Is&&ta(Xn,!1,!1,{kind:3,file:be.path,index:rn},sn.packageId),ki&&ct--}}else be.resolvedModules=void 0}function At(be,De){let mt=!0,St=qe.getCanonicalFileName(_a(De,Gt));for(let Zt of be)Zt.isDeclarationFile||qe.getCanonicalFileName(_a(Zt.fileName,Gt)).indexOf(St)!==0&&(Qo(Zt,_.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[Zt.fileName,De]),mt=!1);return mt}function xt(be){dr||(dr=new Map);let De=$L(be),mt=rt(De),St=dr.get(mt);if(St!==void 0)return St||void 0;let Zt,rn;if(qe.getParsedCommandLine){if(Zt=qe.getParsedCommandLine(De),!Zt){ka(void 0,mt,void 0),dr.set(mt,!1);return}rn=L.checkDefined(Zt.options.configFile),L.assert(!rn.path||rn.path===mt),ka(rn,mt,void 0)}else{let Dn=_a(ni(De),qe.getCurrentDirectory());if(rn=qe.getSourceFile(De,100),ka(rn,mt,void 0),rn===void 0){dr.set(mt,!1);return}Zt=MO(rn,zt,Dn,void 0,De)}rn.fileName=De,rn.path=mt,rn.resolvedPath=mt,rn.originalFileName=De;let sn={commandLine:Zt,sourceFile:rn};return dr.set(mt,sn),Zt.projectReferences&&(sn.references=Zt.projectReferences.map(xt)),sn}function qt(){R.strictPropertyInitialization&&!Uf(R,"strictNullChecks")&&Io(_.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),R.exactOptionalPropertyTypes&&!Uf(R,"strictNullChecks")&&Io(_.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(R.isolatedModules||R.verbatimModuleSyntax)&&(R.out&&Io(_.Option_0_cannot_be_specified_with_option_1,"out",R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),R.outFile&&Io(_.Option_0_cannot_be_specified_with_option_1,"outFile",R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),R.inlineSourceMap&&(R.sourceMap&&Io(_.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),R.mapRoot&&Io(_.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),R.composite&&(R.declaration===!1&&Io(_.Composite_projects_may_not_disable_declaration_emit,"declaration"),R.incremental===!1&&Io(_.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let be=Ss(R);if(R.tsBuildInfoFile?NR(R)||Io(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):R.incremental&&!be&&!R.configFilePath&&_n.add(ps(_.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Vr(),Bu(),R.composite){let sn=new Set(Y.map(rt));for(let Dn of _e)pS(Dn,G)&&!sn.has(Dn.path)&&Qo(Dn,_.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Dn.fileName,R.configFilePath||""])}if(R.paths){for(let sn in R.paths)if(fs(R.paths,sn))if(CW(sn)||Dc(!0,sn,_.Pattern_0_can_have_at_most_one_Asterisk_character,sn),ba(R.paths[sn])){let Dn=R.paths[sn].length;Dn===0&&Dc(!1,sn,_.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,sn);for(let kr=0;kr<Dn;kr++){let ki=R.paths[sn][kr],Vn=typeof ki;Vn==="string"?(CW(ki)||Pd(sn,kr,_.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,ki,sn),!R.baseUrl&&!Jd(ki)&&!nI(ki)&&Pd(sn,kr,_.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Pd(sn,kr,_.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,ki,sn,Vn)}}else Dc(!1,sn,_.Substitutions_for_pattern_0_should_be_an_array,sn)}!R.sourceMap&&!R.inlineSourceMap&&(R.inlineSources&&Io(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),R.sourceRoot&&Io(_.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),R.out&&R.outFile&&Io(_.Option_0_cannot_be_specified_with_option_1,"out","outFile"),R.mapRoot&&!(R.sourceMap||R.declarationMap)&&Io(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),R.declarationDir&&(__(R)||Io(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),be&&Io(_.Option_0_cannot_be_specified_with_option_1,"declarationDir",R.out?"out":"outFile")),R.declarationMap&&!__(R)&&Io(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),R.lib&&R.noLib&&Io(_.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),R.noImplicitUseStrict&&Uf(R,"alwaysStrict")&&Io(_.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");let De=Do(R),mt=wr(_e,sn=>Lc(sn)&&!sn.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&De<2&&R.isolatedModules&&Io(_.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&Io(_.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(mt&&De<2&&R.module===0){let sn=w0(mt,typeof mt.externalModuleIndicator=="boolean"?mt:mt.externalModuleIndicator);_n.add(al(mt,sn.start,sn.length,_.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(be&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))Io(_.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&mt){let sn=w0(mt,typeof mt.externalModuleIndicator=="boolean"?mt:mt.externalModuleIndicator);_n.add(al(mt,sn.start,sn.length,_.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if(RT(R)&&($s(R)===1?Io(_.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):l4(R)||Io(_.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){let sn=Ot();R.outDir&&sn===""&&_e.some(Dn=>_p(Dn.fileName)>1)&&Io(_.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&De===0&&Io(_.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!PR(R)&&_n.add(ps(_.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(__(R)||Io(_.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&Io(_.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&Io(_.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&Io(_.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&Io(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",NL.get(""+R.jsx)),zS(R.jsxFactory,De)||Jf("jsxFactory",_.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!i_(R.reactNamespace,De)&&Jf("reactNamespace",_.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||Io(_.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&Io(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",NL.get(""+R.jsx)),zS(R.jsxFragmentFactory,De)||Jf("jsxFragmentFactory",_.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&Io(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",NL.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&Io(_.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",NL.get(""+R.jsx)),R.preserveValueImports&&Rl(R)<5&&Io(_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");let St=Rl(R);R.verbatimModuleSyntax&&((St===2||St===3||St===4)&&Io(_.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.isolatedModules&&He("isolatedModules","verbatimModuleSyntax"),R.preserveValueImports&&He("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&He("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&Jf("allowImportingTsExtensions",_.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let Zt=$s(R);if(R.resolvePackageJsonExports&&!bS(Zt)&&Io(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!bS(Zt)&&Io(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!bS(Zt)&&Io(_.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Zt===100&&!SW(St)&&Jf("moduleResolution",_.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),!R.noEmit&&!R.suppressOutputPathCheck){let sn=j(),Dn=new Set;WK(sn,kr=>{R.emitDeclarationOnly||rn(kr.jsFilePath,Dn),rn(kr.declarationFilePath,Dn)})}function rn(sn,Dn){if(sn){let kr=rt(sn);if(ri.has(kr)){let Vn;R.configFilePath||(Vn=da(void 0,_.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Vn=da(Vn,_.Cannot_write_file_0_because_it_would_overwrite_input_file,sn),Nt(sn,s4(Vn))}let ki=qe.useCaseSensitiveFileNames()?kr:n_(kr);Dn.has(ki)?Nt(sn,ps(_.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,sn)):Dn.add(ki)}}}function Ln(){let be=R.ignoreDeprecations;if(be){if(be==="5.0")return new r_(be);U()}return r_.zero}function mr(be,De,mt,St){let Zt=new r_(be),rn=new r_(De),sn=new r_(fe||Sg),Dn=Ln(),kr=rn.compareTo(sn)!==1,ki=!kr&&Dn.compareTo(Zt)===-1;(kr||ki)&&St((Vn,$t,Xn)=>{kr?$t===void 0?mt(Vn,$t,Xn,_.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Vn):mt(Vn,$t,Xn,_.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Vn,$t):$t===void 0?mt(Vn,$t,Xn,_.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Vn,De,be):mt(Vn,$t,Xn,_.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Vn,$t,De,be)})}function Vr(){function be(De,mt,St,Zt,rn,sn,Dn,kr){if(St){let ki=da(void 0,_.Use_0_instead,St),Vn=da(ki,Zt,rn,sn,Dn,kr);E_(!mt,De,void 0,Vn)}else E_(!mt,De,void 0,Zt,rn,sn,Dn,kr)}mr("5.0","5.5",be,De=>{R.target===0&&De("target","ES3"),R.noImplicitUseStrict&&De("noImplicitUseStrict"),R.keyofStringsOnly&&De("keyofStringsOnly"),R.suppressExcessPropertyErrors&&De("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&De("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&De("noStrictGenericChecks"),R.charset&&De("charset"),R.out&&De("out",void 0,"outFile"),R.importsNotUsedAsValues&&De("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&De("preserveValueImports",void 0,"verbatimModuleSyntax")})}function gi(be,De,mt){function St(Zt,rn,sn,Dn,kr,ki,Vn,$t){Fd(De,mt,Dn,kr,ki,Vn,$t)}mr("5.0","5.5",St,Zt=>{be.prepend&&Zt("prepend")})}function Ea(be,De,mt,St){var Zt;let rn,sn,Dn=vb(De)?De:void 0;be&&((Zt=Pe.get(be.path))==null||Zt.forEach(Xn)),De&&Xn(De),Dn&&rn?.length===1&&(rn=void 0);let kr=Dn&&YL(Hi,Dn),ki=rn&&da(rn,_.The_file_is_in_the_program_because_Colon),Vn=be&&Oq(be),$t=da(Vn?ki?[ki,...Vn]:Vn:ki,mt,...St||Je);return kr&&F2(kr)?S6(kr.file,kr.pos,kr.end-kr.pos,$t,sn):s4($t,sn);function Xn(ra){(rn||(rn=[])).push(Mq(G,ra)),!Dn&&vb(ra)?Dn=ra:Dn!==ra&&(sn=Sn(sn,Cs(ra))),ra===De&&(De=void 0)}}function bo(be,De,mt,St){(Ne||(Ne=[])).push({kind:1,file:be&&be.path,fileProcessingReason:De,diagnostic:mt,args:St})}function Qo(be,De,mt){_n.add(Ea(be,void 0,De,mt))}function Cs(be){if(vb(be)){let St=YL(Hi,be),Zt;switch(be.kind){case 3:Zt=_.File_is_included_via_import_here;break;case 4:Zt=_.File_is_included_via_reference_here;break;case 5:Zt=_.File_is_included_via_type_library_reference_here;break;case 7:Zt=_.File_is_included_via_library_reference_here;break;default:L.assertNever(be)}return F2(St)?al(St.file,St.pos,St.end-St.pos,Zt):void 0}if(!R.configFile)return;let De,mt;switch(be.kind){case 0:if(!R.configFile.configFileSpecs)return;let St=_a(Y[be.index],Gt),Zt=Nq(G,St);if(Zt){De=w6(R.configFile,"files",Zt),mt=_.File_is_matched_by_files_list_specified_here;break}let rn=Pq(G,St);if(!rn||!Ta(rn))return;De=w6(R.configFile,"include",rn),mt=_.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let sn=L.checkDefined(En?.[be.index]),Dn=gN($,En,(Xn,ra,Is)=>Xn===sn?{sourceFile:ra?.sourceFile||R.configFile,index:Is}:void 0);if(!Dn)return;let{sourceFile:kr,index:ki}=Dn,Vn=ks(Hw(kr,"references"),Xn=>fu(Xn.initializer)?Xn.initializer:void 0);return Vn&&Vn.elements.length>ki?Nu(kr,Vn.elements[ki],be.kind===2?_.File_is_output_from_referenced_project_specified_here:_.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;De=zf("types",be.typeReference),mt=_.File_is_entry_point_of_type_library_specified_here;break;case 6:if(be.index!==void 0){De=zf("lib",R.lib[be.index]),mt=_.File_is_library_specified_here;break}let $t=Ld(zO.type,(Xn,ra)=>Xn===Do(R)?ra:void 0);De=$t?Md("target",$t):void 0,mt=_.File_is_default_library_for_target_specified_here;break;default:L.assertNever(be)}return De&&Nu(R.configFile,De,mt)}function Bu(){let be=R.suppressOutputPathCheck?void 0:Jg(R);gN($,En,(De,mt,St)=>{let Zt=(mt?mt.commandLine.projectReferences:$)[St],rn=mt&&mt.sourceFile;if(gi(Zt,rn,St),!De){Fd(rn,St,_.File_0_not_found,Zt.path);return}let sn=De.commandLine.options;if((!sn.composite||sn.noEmit)&&(mt?mt.commandLine.fileNames:Y).length&&(sn.composite||Fd(rn,St,_.Referenced_project_0_must_have_setting_composite_Colon_true,Zt.path),sn.noEmit&&Fd(rn,St,_.Referenced_project_0_may_not_disable_emit,Zt.path)),Zt.prepend){let Dn=Ss(sn);Dn?qe.fileExists(Dn)||Fd(rn,St,_.Output_file_0_from_project_1_does_not_exist,Dn,Zt.path):Fd(rn,St,_.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Zt.path)}!mt&&be&&be===Jg(sn)&&(Fd(rn,St,_.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,be,Zt.path),Ni.set(rt(be),!0))})}function Pd(be,De,mt,St,Zt,rn){let sn=!0,Dn=Zl();for(let kr of Dn)if(rs(kr.initializer))for(let ki of MA(kr.initializer,be)){let Vn=ki.initializer;fu(Vn)&&Vn.elements.length>De&&(_n.add(Nu(R.configFile,Vn.elements[De],mt,St,Zt,rn)),sn=!1)}sn&&_n.add(ps(mt,St,Zt,rn))}function Dc(be,De,mt,St){let Zt=!0,rn=Zl();for(let sn of rn)rs(sn.initializer)&&M(sn.initializer,be,De,void 0,mt,St)&&(Zt=!1);Zt&&_n.add(ps(mt,St))}function gd(be){let De=Y_();return De&&MA(De,be)}function Zl(){return gd("paths")||Je}function Md(be,De){let mt=gd(be);return mt&&ks(mt,St=>yo(St.initializer)&&St.initializer.text===De?St.initializer:void 0)}function zf(be,De){let mt=Y_();return mt&&rce(mt,be,De)}function Io(be,De,mt,St){E_(!0,De,mt,be,De,mt,St)}function Jf(be,De,mt,St){E_(!1,be,void 0,De,mt,St)}function Fd(be,De,mt,St,Zt,rn,sn){let Dn=ks(Hw(be||R.configFile,"references"),kr=>fu(kr.initializer)?kr.initializer:void 0);Dn&&Dn.elements.length>De?_n.add(Nu(be||R.configFile,Dn.elements[De],mt,St,Zt,rn,sn)):_n.add(ps(mt,St,Zt,rn,sn))}function E_(be,De,mt,St,Zt,rn,sn,Dn){let kr=Y_();(!kr||!M(kr,be,De,mt,St,Zt,rn,sn,Dn))&&("messageText"in St?_n.add(s4(St)):_n.add(ps(St,Zt,rn,sn,Dn)))}function Y_(){if(Pi===void 0){Pi=!1;let be=LI(R.configFile);if(be){for(let De of MA(be,"compilerOptions"))if(rs(De.initializer)){Pi=De.initializer;break}}}return Pi||void 0}function M(be,De,mt,St,Zt,rn,sn,Dn,kr){let ki=MA(be,mt,St);for(let Vn of ki)"messageText"in Zt?_n.add(Lh(R.configFile,De?Vn.name:Vn.initializer,Zt)):_n.add(Nu(R.configFile,De?Vn.name:Vn.initializer,Zt,rn,sn,Dn,kr));return!!ki.length}function He(be,De){let mt=Y_();mt?M(mt,!0,be,void 0,_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,be,De):Io(_.Option_0_is_redundant_and_cannot_be_specified_with_option_1,be,De)}function Nt(be,De){Ni.set(rt(be),!0),_n.add(De)}function Pn(be){if(R.noEmit)return!1;let De=rt(be);if(Hi(De))return!1;let mt=Ss(R);if(mt)return la(De,mt)||la(De,ld(mt)+".d.ts");if(R.declarationDir&&Gy(R.declarationDir,De,Gt,!qe.useCaseSensitiveFileNames()))return!0;if(R.outDir)return Gy(R.outDir,De,Gt,!qe.useCaseSensitiveFileNames());if($c(De,dL)||Fu(De)){let St=ld(De);return!!Hi(St+".ts")||!!Hi(St+".tsx")}return!1}function la(be,De){return cT(be,De,Gt,!qe.useCaseSensitiveFileNames())===0}function oa(){return qe.getSymlinkCache?qe.getSymlinkCache():(ge||(ge=Ile(Gt,ee)),_e&&Ye&&!ge.hasProcessedResolutions()&&ge.setSymlinksFromResolutions(_e,Ye),ge)}}function r8e(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ba,fileExists:d};e.compilerHost.fileExists=d;let l;return i&&(l=e.compilerHost.directoryExists=x=>i.call(e.compilerHost,x)?(v(x),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(A=>{let w=Ss(A.commandLine.options);if(w)t.add(ni(e.toPath(w)));else{let C=A.commandLine.options.declarationDir||A.commandLine.options.outDir;C&&t.add(e.toPath(C))}})),S(x,!1)):!1),o&&(e.compilerHost.getDirectories=x=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,x)?o.call(e.compilerHost,x):[]),s&&(e.compilerHost.realpath=x=>{var A;return((A=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:A.get(e.toPath(x)))||s.call(e.compilerHost,x)}),{onProgramCreateComplete:f,fileExists:d,directoryExists:l};function f(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function d(x){return r.call(e.compilerHost,x)?!0:!e.getResolvedProjectReferences()||!Fu(x)?!1:S(x,!0)}function g(x){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(x));return A!==void 0?Ta(A)?r.call(e.compilerHost,A):!0:void 0}function m(x){let A=e.toPath(x),w=`${A}${_s}`;return TI(t,C=>A===C||na(C,w)||na(A,`${C}/`))}function v(x){var A;if(!e.getResolvedProjectReferences()||sL(x)||!s||!jl(x,Wg))return;let w=e.getSymlinkCache(),C=cu(e.toPath(x));if((A=w.getSymlinkedDirectories())!=null&&A.has(C))return;let P=So(s.call(e.compilerHost,x)),F;if(P===x||(F=cu(e.toPath(P)))===C){w.setSymlinkedDirectory(C,!1);return}w.setSymlinkedDirectory(x,{real:cu(P),realPath:F})}function S(x,A){var w;let C=A?W=>g(W):W=>m(W),P=C(x);if(P!==void 0)return P;let F=e.getSymlinkCache(),B=F.getSymlinkedDirectories();if(!B)return!1;let q=e.toPath(x);return jl(q,Wg)?A&&((w=F.getSymlinkedFiles())!=null&&w.has(q))?!0:FD(B.entries(),([W,Y])=>{if(!Y||!na(q,W))return;let R=C(q.replace(W,Y.realPath));if(A&&R){let ie=_a(x,e.compilerHost.getCurrentDirectory());F.setSymlinkedFile(q,`${Y.real}${ie.replace(new RegExp(W,"i"),"")}`)}return R})||!1:!1}}function dq(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||Ss(o)?HF:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&__(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!Ss(o)){let f=e.emitBuildInfo(r,i);f.diagnostics&&(s=[...s,...f.diagnostics]),l=f.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function MF(e,t){return Pr(e,r=>!r.skippedOn||!t[r.skippedOn])}function FF(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return L.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Qv,trace:e.trace?r=>e.trace(r):void 0}}function fq(e,t,r,i){if(!e)return Je;let o;for(let s=0;s<e.length;s++){let l=e[s],f=t(l,s);if(l.prepend&&f&&f.options){if(!Ss(f.options))continue;let{jsFilePath:g,sourceMapFilePath:m,declarationFilePath:v,declarationMapPath:S,buildInfoPath:x}=JL(f.options,!0),A=_z(r,g,m,v,S,x,i,f.options);(o||(o=[])).push(A)}}return o||Je}function $L(e){return Hq(e.path)}function _q(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:_.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return PR(e)||!Uf(e,"noImplicitAny")?void 0:_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return RT(e)?void 0:_.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:_.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function qpe({imports:e,moduleAugmentations:t}){let r=e.map(i=>i);for(let i of t)i.kind===10&&r.push(i);return r}function GF({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(let o of t)if(o.kind===10){if(r===i)return o;i++}L.fail("should never ask for module name at index higher than possible module name")}var pq,BF,UF,mq,hq,Xpe,gq,yq,QL,yN,VF,jF,HF,i8e=gt({"src/compiler/program.ts"(){"use strict";fa(),fa(),E0(),pq=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(pq||{}),BF="\x1B[7m",UF=" ",mq="\x1B[0m",hq="...",Xpe=" ",gq=" ",yq={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},QL={getName:sq,getMode:(e,t)=>W_(t,e)},yN={getName:RF,getMode:(e,t)=>mN(e,t?.impliedNodeFormat)},VF="__inferred type names__.ts",jF=new Set([_.Cannot_redeclare_block_scoped_variable_0.code,_.A_module_cannot_have_multiple_default_exports.code,_.Another_export_default_is_here.code,_.The_first_export_default_is_here.code,_.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_.constructor_is_a_reserved_word.code,_.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,_.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_.Invalid_use_of_0_in_strict_mode.code,_.A_label_is_not_allowed_here.code,_.Octal_literals_are_not_allowed_in_strict_mode.code,_.with_statements_are_not_allowed_in_strict_mode.code,_.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_.A_class_member_cannot_have_the_0_keyword.code,_.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_.A_destructuring_declaration_must_have_an_initializer.code,_.A_get_accessor_cannot_have_parameters.code,_.A_rest_element_cannot_contain_a_binding_pattern.code,_.A_rest_element_cannot_have_a_property_name.code,_.A_rest_element_cannot_have_an_initializer.code,_.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_.A_rest_parameter_cannot_have_an_initializer.code,_.A_rest_parameter_must_be_last_in_a_parameter_list.code,_.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_.A_set_accessor_cannot_have_rest_parameter.code,_.A_set_accessor_must_have_exactly_one_parameter.code,_.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_export_declaration_cannot_have_modifiers.code,_.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_.An_import_declaration_cannot_have_modifiers.code,_.An_object_member_cannot_be_declared_optional.code,_.Argument_of_dynamic_import_cannot_be_spread_element.code,_.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_.Cannot_redeclare_identifier_0_in_catch_clause.code,_.Catch_clause_variable_cannot_have_an_initializer.code,_.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_.Classes_can_only_extend_a_single_class.code,_.Classes_may_not_have_a_field_named_constructor.code,_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,_.Duplicate_label_0.code,_.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,_.For_await_loops_cannot_be_used_inside_a_class_static_block.code,_.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_.Jump_target_cannot_cross_function_boundary.code,_.Line_terminator_not_permitted_before_arrow.code,_.Modifiers_cannot_appear_here.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_.Private_identifiers_are_not_allowed_outside_class_bodies.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,_.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_.Trailing_comma_not_allowed.code,_.Variable_declaration_list_cannot_be_empty.code,_._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_._0_expected.code,_._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_._0_list_cannot_be_empty.code,_._0_modifier_already_seen.code,_._0_modifier_cannot_appear_on_a_constructor_declaration.code,_._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_._0_modifier_cannot_appear_on_a_parameter.code,_._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_._0_modifier_cannot_be_used_here.code,_._0_modifier_must_precede_1_modifier.code,_.const_declarations_can_only_be_declared_inside_a_block.code,_.const_declarations_must_be_initialized.code,_.extends_clause_already_seen.code,_.let_declarations_can_only_be_declared_inside_a_block.code,_.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_.Class_constructor_may_not_be_a_generator.code,_.Class_constructor_may_not_be_an_accessor.code,_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code]),HF={diagnostics:Je,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),a8e=gt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function Ype(e,t,r,i,o,s){let l=[],{emitSkipped:f,diagnostics:d}=e.emit(t,g,i,r,o,s);return{outputFiles:l,emitSkipped:f,diagnostics:d};function g(m,v,S){l.push({name:m,writeByteOrderMark:S,text:v})}}var pm,o8e=gt({"src/compiler/builderState.ts"(){"use strict";fa(),(e=>{function t(){function Z(U,re,le){let _e={getKeys:ge=>re.get(ge),getValues:ge=>U.get(ge),keys:()=>U.keys(),deleteKey:ge=>{(le||(le=new Set)).add(ge);let X=U.get(ge);return X?(X.forEach(Ve=>i(re,Ve,ge)),U.delete(ge),!0):!1},set:(ge,X)=>{le?.delete(ge);let Ve=U.get(ge);return U.set(ge,X),Ve?.forEach(we=>{X.has(we)||i(re,we,ge)}),X.forEach(we=>{Ve?.has(we)||r(re,we,ge)}),_e}};return _e}return Z(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(Z,U,re){let le=Z.get(U);le||(le=new Set,Z.set(U,le)),le.add(re)}function i(Z,U,re){let le=Z.get(U);return le?.delete(re)?(le.size||Z.delete(U),!0):!1}function o(Z){return Zi(Z.declarations,U=>{var re;return(re=Gn(U))==null?void 0:re.resolvedPath})}function s(Z,U){let re=Z.getSymbolAtLocation(U);return re&&o(re)}function l(Z,U,re,le){return Ts(Z.getProjectReferenceRedirect(U)||U,re,le)}function f(Z,U,re){let le;if(U.imports&&U.imports.length>0){let Ve=Z.getTypeChecker();for(let we of U.imports){let ke=s(Ve,we);ke?.forEach(X)}}let _e=ni(U.resolvedPath);if(U.referencedFiles&&U.referencedFiles.length>0)for(let Ve of U.referencedFiles){let we=l(Z,Ve.fileName,_e,re);X(we)}if(U.resolvedTypeReferenceDirectiveNames&&U.resolvedTypeReferenceDirectiveNames.forEach(({resolvedTypeReferenceDirective:Ve})=>{if(!Ve)return;let we=Ve.resolvedFileName,ke=l(Z,we,_e,re);X(ke)}),U.moduleAugmentations.length){let Ve=Z.getTypeChecker();for(let we of U.moduleAugmentations){if(!yo(we))continue;let ke=Ve.getSymbolAtLocation(we);ke&&ge(ke)}}for(let Ve of Z.getTypeChecker().getAmbientModules())Ve.declarations&&Ve.declarations.length>1&&ge(Ve);return le;function ge(Ve){if(Ve.declarations)for(let we of Ve.declarations){let ke=Gn(we);ke&&ke!==U&&X(ke.resolvedPath)}}function X(Ve){(le||(le=new Set)).add(Ve)}}function d(Z,U){return U&&!U.referencedMap==!Z}e.canReuseOldState=d;function g(Z,U,re){var le,_e,ge;let X=new Map,Ve=Z.getCompilerOptions(),we=Ss(Ve),ke=Ve.module!==0&&!we?t():void 0,Pe=ke?t():void 0,Ce=d(ke,U);Z.getTypeChecker();for(let Ie of Z.getSourceFiles()){let Be=L.checkDefined(Ie.version,"Program intended to be used with Builder should have source files with versions set"),Ne=Ce?(le=U.oldSignatures)==null?void 0:le.get(Ie.resolvedPath):void 0,Le=Ne===void 0?Ce?(_e=U.fileInfos.get(Ie.resolvedPath))==null?void 0:_e.signature:void 0:Ne||void 0;if(ke){let Ye=f(Z,Ie,Z.getCanonicalFileName);if(Ye&&ke.set(Ie.resolvedPath,Ye),Ce){let _t=(ge=U.oldExportedModulesMap)==null?void 0:ge.get(Ie.resolvedPath),ct=_t===void 0?U.exportedModulesMap.getValues(Ie.resolvedPath):_t||void 0;ct&&Pe.set(Ie.resolvedPath,ct)}}X.set(Ie.resolvedPath,{version:Be,signature:Le,affectsGlobalScope:we?void 0:R(Ie)||void 0,impliedFormat:Ie.impliedNodeFormat})}return{fileInfos:X,referencedMap:ke,exportedModulesMap:Pe,useFileVersionAsSignature:!re&&!Ce}}e.create=g;function m(Z){Z.allFilesExcludingDefaultLibraryFile=void 0,Z.allFileNames=void 0}e.releaseCache=m;function v(Z,U,re,le,_e){var ge,X;let Ve=S(Z,U,re,le,_e);return(ge=Z.oldSignatures)==null||ge.clear(),(X=Z.oldExportedModulesMap)==null||X.clear(),Ve}e.getFilesAffectedBy=v;function S(Z,U,re,le,_e){let ge=U.getSourceFileByPath(re);return ge?w(Z,U,ge,le,_e)?(Z.referencedMap?fe:$)(Z,U,ge,le,_e):[ge]:Je}e.getFilesAffectedByWithOldState=S;function x(Z,U,re){Z.fileInfos.get(re).signature=U,(Z.hasCalledUpdateShapeSignature||(Z.hasCalledUpdateShapeSignature=new Set)).add(re)}e.updateSignatureOfFile=x;function A(Z,U,re,le,_e){Z.emit(U,(ge,X,Ve,we,ke,Pe)=>{L.assert(Fu(ge),`File extension for signature expected to be dts: Got:: ${ge}`),_e(Tq(Z,U,X,le,Pe),ke)},re,!0,void 0,!0)}e.computeDtsSignature=A;function w(Z,U,re,le,_e,ge=Z.useFileVersionAsSignature){var X;if((X=Z.hasCalledUpdateShapeSignature)!=null&&X.has(re.resolvedPath))return!1;let Ve=Z.fileInfos.get(re.resolvedPath),we=Ve.signature,ke;if(!re.isDeclarationFile&&!ge&&A(U,re,le,_e,(Pe,Ce)=>{ke=Pe,ke!==we&&C(Z,re,Ce[0].exportedModulesFromDeclarationEmit)}),ke===void 0&&(ke=re.version,Z.exportedModulesMap&&ke!==we)){(Z.oldExportedModulesMap||(Z.oldExportedModulesMap=new Map)).set(re.resolvedPath,Z.exportedModulesMap.getValues(re.resolvedPath)||!1);let Pe=Z.referencedMap?Z.referencedMap.getValues(re.resolvedPath):void 0;Pe?Z.exportedModulesMap.set(re.resolvedPath,Pe):Z.exportedModulesMap.deleteKey(re.resolvedPath)}return(Z.oldSignatures||(Z.oldSignatures=new Map)).set(re.resolvedPath,we||!1),(Z.hasCalledUpdateShapeSignature||(Z.hasCalledUpdateShapeSignature=new Set)).add(re.resolvedPath),Ve.signature=ke,ke!==we}e.updateShapeSignature=w;function C(Z,U,re){if(!Z.exportedModulesMap)return;(Z.oldExportedModulesMap||(Z.oldExportedModulesMap=new Map)).set(U.resolvedPath,Z.exportedModulesMap.getValues(U.resolvedPath)||!1);let le=P(re);le?Z.exportedModulesMap.set(U.resolvedPath,le):Z.exportedModulesMap.deleteKey(U.resolvedPath)}e.updateExportedModules=C;function P(Z){let U;return Z?.forEach(re=>o(re).forEach(le=>(U??(U=new Set)).add(le))),U}e.getExportedModules=P;function F(Z,U,re){let le=U.getCompilerOptions();if(Ss(le)||!Z.referencedMap||R(re))return B(Z,U);let _e=new Set,ge=[re.resolvedPath];for(;ge.length;){let X=ge.pop();if(!_e.has(X)){_e.add(X);let Ve=Z.referencedMap.getValues(X);if(Ve)for(let we of Ve.keys())ge.push(we)}}return lo(UD(_e.keys(),X=>{var Ve,we;return(we=(Ve=U.getSourceFileByPath(X))==null?void 0:Ve.fileName)!=null?we:X}))}e.getAllDependencies=F;function B(Z,U){if(!Z.allFileNames){let re=U.getSourceFiles();Z.allFileNames=re===Je?Je:re.map(le=>le.fileName)}return Z.allFileNames}function q(Z,U){let re=Z.referencedMap.getKeys(U);return re?lo(re.keys()):[]}e.getReferencedByPaths=q;function W(Z){for(let U of Z.statements)if(!b6(U))return!1;return!0}function Y(Z){return vt(Z.moduleAugmentations,U=>mp(U.parent))}function R(Z){return Y(Z)||!kd(Z)&&!Mf(Z)&&!W(Z)}function ie(Z,U,re){if(Z.allFilesExcludingDefaultLibraryFile)return Z.allFilesExcludingDefaultLibraryFile;let le;re&&_e(re);for(let ge of U.getSourceFiles())ge!==re&&_e(ge);return Z.allFilesExcludingDefaultLibraryFile=le||Je,Z.allFilesExcludingDefaultLibraryFile;function _e(ge){U.isSourceFileDefaultLibrary(ge)||(le||(le=[])).push(ge)}}e.getAllFilesExcludingDefaultLibraryFile=ie;function $(Z,U,re){let le=U.getCompilerOptions();return le&&Ss(le)?[re]:ie(Z,U,re)}function fe(Z,U,re,le,_e){if(R(re))return ie(Z,U,re);let ge=U.getCompilerOptions();if(ge&&(d_(ge)||Ss(ge)))return[re];let X=new Map;X.set(re.resolvedPath,re);let Ve=q(Z,re.resolvedPath);for(;Ve.length>0;){let we=Ve.pop();if(!X.has(we)){let ke=U.getSourceFileByPath(we);X.set(we,ke),ke&&w(Z,U,ke,le,_e)&&Ve.push(...q(Z,ke.resolvedPath))}}return lo(UD(X.values(),we=>we))}})(pm||(pm={}))}});function cv(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),__(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function G2(e,t){let r=t&&(Cg(t)?t:cv(t)),i=Cg(e)?e:cv(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function s8e(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!TI(e,r=>!t.has(r))}function c8e(e,t){var r,i;let o=pm.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=Ss(s);l?s.composite&&t?.outSignature&&l===Ss(t?.compilerOptions)&&(o.outSignature=t.outSignature&&Qpe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let f=pm.canReuseOldState(o.referencedMap,t),d=f?t.compilerOptions:void 0,g=f&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!xle(s,d),m=s.composite&&t?.emitSignatures&&!l&&!Cle(s,t.compilerOptions);f?((r=t.changedFilesSet)==null||r.forEach(w=>o.changedFilesSet.add(w)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let v=o.referencedMap,S=f?t.referencedMap:void 0,x=g&&!s.skipLibCheck==!d.skipLibCheck,A=x&&!s.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(o.fileInfos.forEach((w,C)=>{var P;let F,B;if(!f||!(F=t.fileInfos.get(C))||F.version!==w.version||F.impliedFormat!==w.impliedFormat||!s8e(B=v&&v.getValues(C),S&&S.getValues(C))||B&&TI(B,q=>!o.fileInfos.has(q)&&t.fileInfos.has(q)))$pe(o,C);else if(g){let q=e.getSourceFileByPath(C);if(q.isDeclarationFile&&!x||q.hasNoDefaultLib&&!A)return;let W=t.semanticDiagnosticsPerFile.get(C);W&&(o.semanticDiagnosticsPerFile.set(C,t.hasReusableDiagnostic?l8e(W,e):W),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(C))}if(m){let q=t.emitSignatures.get(C);q&&((P=o.emitSignatures)!=null?P:o.emitSignatures=new Map).set(C,Qpe(s,t.compilerOptions,q))}}),f&&Ld(t.fileInfos,(w,C)=>o.fileInfos.has(C)?!1:l||w.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))pm.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(w=>$pe(o,w.resolvedPath));else if(d){let w=Ale(s,d)?cv(s):G2(s,d);w!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|w:w:(e.getSourceFiles().forEach(C=>{o.changedFilesSet.has(C.resolvedPath)||xq(o,C.resolvedPath,w)}),L.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(f&&(o.bundle=t.bundle),vt(e.getProjectReferences(),w=>!!w.prepend)&&(o.programEmitPending=cv(s))),o}function $pe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function Qpe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:Ta(r)?[r]:r[0]}function l8e(e,t){if(!e.length)return Je;let r;return e.map(o=>{let s=Zpe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(f=>Zpe(f,t,i)):[]:void 0,s});function i(o){return r??(r=ni(_a(Jg(t.getCompilerOptions()),t.getCurrentDirectory()))),Ts(o,r,t.getCanonicalFileName)}}function Zpe(e,t,r){let{file:i}=e;return{...e,file:i?t.getSourceFileByPath(r(i)):void 0}}function u8e(e){pm.releaseCache(e),e.program=void 0}function d8e(e){let t=Ss(e.compilerOptions);return L.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function f8e(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function eme(e,t){L.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function tme(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let g=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m<s.length;){let v=s[m];if(!g.has(v.resolvedPath))return e.affectedFilesIndex=m,xq(e,v.resolvedPath,cv(e.compilerOptions)),m8e(e,v,t,r),v;m++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}let l=e.changedFilesSet.keys().next();if(l.done)return;let f=L.checkDefined(e.program),d=f.getCompilerOptions();if(Ss(d))return L.assert(!e.semanticDiagnosticsPerFile),f;e.affectedFiles=pm.getFilesAffectedByWithOldState(e,f,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function _8e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function p8e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return Ld(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!pS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let f=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),d=G2(i,f);if(t&&(d=d&24),d)return{affectedFile:l,emitKind:d}})}function nme(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=L.checkDefined(e.program),r=t.getCompilerOptions();mn(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!rL(i,r,t)&&vq(e,i.resolvedPath))}}function m8e(e,t,r,i){if(vq(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){nme(e),pm.updateShapeSignature(e,L.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||h8e(e,t,r,i)}function WF(e,t,r,i){if(vq(e,t),!e.changedFilesSet.has(t)){let o=L.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(pm.updateShapeSignature(e,o,s,r,i,!0),__(e.compilerOptions)&&xq(e,t,e.compilerOptions.declarationMap?24:8))}}function vq(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function rme(e,t){let r=L.checkDefined(e.oldSignatures).get(t)||void 0;return L.checkDefined(e.fileInfos.get(t)).signature!==r}function bq(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(pm.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>WF(e,s.resolvedPath,r,i)),nme(e),!0):!1}function h8e(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!rme(e,t.resolvedPath))return;if(d_(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let f=pm.getReferencedByPaths(e,t.resolvedPath);for(;f.length>0;){let d=f.pop();if(!l.has(d)){if(l.set(d,!0),bq(e,d,r,i))return;if(WF(e,d,r,i),rme(e,d)){let g=L.checkDefined(e.program).getSourceFileByPath(d);f.push(...pm.getReferencedByPaths(e,g.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(bq(e,l,r,i))return!0;let f=e.referencedMap.getKeys(l);return f&&TI(f,d=>ime(e,d,s,r,i))})}function ime(e,t,r,i,o){var s,l;if(_0(r,t)){if(bq(e,t,i,o))return!0;WF(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(f=>ime(e,f,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(f=>!r.has(f)&&WF(e,f,i,o))}}function Eq(e,t,r){return Qi(g8e(e,t,r),L.checkDefined(e.program).getProgramDiagnostics(t))}function g8e(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return MF(s,e.compilerOptions)}let o=L.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),MF(o,e.compilerOptions)}function ame(e){return!!Ss(e.options||{})}function y8e(e,t){var r,i,o;let s=L.checkDefined(e.program).getCurrentDirectory(),l=ni(_a(Jg(e.compilerOptions),s)),f=e.latestChangedDtsFile?W(e.latestChangedDtsFile):void 0,d=[],g=new Map,m=[];if(Ss(e.compilerOptions)){let Z=lo(e.fileInfos.entries(),([X,Ve])=>{let we=R(X);return $(X,we),Ve.impliedFormat?{version:Ve.version,impliedFormat:Ve.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ve.version}),U={fileNames:d,fileInfos:Z,root:m,options:fe(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:f,pendingEmit:e.programEmitPending?e.programEmitPending===cv(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:re,dts:le,commonSourceDirectory:_e,sourceFiles:ge}=t;return e.bundle=t={commonSourceDirectory:_e,sourceFiles:ge,js:re||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:le||(__(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},dN(U,t)}let v,S,x,A=lo(e.fileInfos.entries(),([Z,U])=>{var re,le;let _e=R(Z);$(Z,_e),L.assert(d[_e-1]===Y(Z));let ge=(re=e.oldSignatures)==null?void 0:re.get(Z),X=ge!==void 0?ge||void 0:U.signature;if(e.compilerOptions.composite){let Ve=e.program.getSourceFileByPath(Z);if(!Mf(Ve)&&pS(Ve,e.program)){let we=(le=e.emitSignatures)==null?void 0:le.get(Z);we!==X&&(x||(x=[])).push(we===void 0?_e:[_e,!Ta(we)&&we[0]===X?Je:we])}}return U.version===X?U.affectsGlobalScope||U.impliedFormat?{version:U.version,signature:void 0,affectsGlobalScope:U.affectsGlobalScope,impliedFormat:U.impliedFormat}:U.version:X!==void 0?ge===void 0?U:{version:U.version,signature:X,affectsGlobalScope:U.affectsGlobalScope,impliedFormat:U.impliedFormat}:{version:U.version,signature:!1,affectsGlobalScope:U.affectsGlobalScope,impliedFormat:U.impliedFormat}}),w;e.referencedMap&&(w=lo(e.referencedMap.keys()).sort(su).map(Z=>[R(Z),ie(e.referencedMap.getValues(Z))]));let C;e.exportedModulesMap&&(C=Zi(lo(e.exportedModulesMap.keys()).sort(su),Z=>{var U;let re=(U=e.oldExportedModulesMap)==null?void 0:U.get(Z);if(re===void 0)return[R(Z),ie(e.exportedModulesMap.getValues(Z))];if(re)return[R(Z),ie(re)]}));let P;if(e.semanticDiagnosticsPerFile)for(let Z of lo(e.semanticDiagnosticsPerFile.keys()).sort(su)){let U=e.semanticDiagnosticsPerFile.get(Z);(P||(P=[])).push(U.length?[R(Z),b8e(U,Y)]:R(Z))}let F;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let Z=cv(e.compilerOptions),U=new Set;for(let re of lo(e.affectedFilesPendingEmit.keys()).sort(su))if(_0(U,re)){let le=e.program.getSourceFileByPath(re);if(!le||!pS(le,e.program))continue;let _e=R(re),ge=e.affectedFilesPendingEmit.get(re);(F||(F=[])).push(ge===Z?_e:ge===8?[_e]:[_e,ge])}}let B;if(e.changedFilesSet.size)for(let Z of lo(e.changedFilesSet.keys()).sort(su))(B||(B=[])).push(R(Z));let q={fileNames:d,fileInfos:A,root:m,options:fe(e.compilerOptions),fileIdsList:v,referencedMap:w,exportedModulesMap:C,semanticDiagnosticsPerFile:P,affectedFilesPendingEmit:F,changeFileSet:B,emitSignatures:x,latestChangedDtsFile:f};return dN(q,t);function W(Z){return Y(_a(Z,s))}function Y(Z){return S0(Xp(l,Z,e.program.getCanonicalFileName))}function R(Z){let U=g.get(Z);return U===void 0&&(d.push(Y(Z)),g.set(Z,U=d.length)),U}function ie(Z){let U=lo(Z.keys(),R).sort(Es),re=U.join(),le=S?.get(re);return le===void 0&&((v||(v=[])).push(U),(S||(S=new Map)).set(re,le=v.length)),le}function $(Z,U){let re=e.program.getSourceFile(Z);if(!e.program.getFileIncludeReasons().get(re.path).some(X=>X.kind===0))return;if(!m.length)return m.push(U);let le=m[m.length-1],_e=ba(le);if(_e&&le[1]===U-1)return le[1]=U;if(_e||m.length===1||le!==U-1)return m.push(U);let ge=m[m.length-2];return!Cg(ge)||ge!==le-1?m.push(U):(m[m.length-2]=[ge,U],m.length=m.length-1)}function fe(Z){let U,{optionsNameMap:re}=w2();for(let le of bh(Z).sort(su)){let _e=re.get(le.toLowerCase());_e?.affectsBuildInfo&&((U||(U={}))[le]=v8e(_e,Z[le],W))}return U}}function v8e(e,t,r){if(e){if(L.assert(e.type!=="listOrElement"),e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t)}return t}function b8e(e,t){return L.assert(!!e.length),e.map(r=>{let i=ome(r,t);i.reportsUnnecessary=r.reportsUnnecessary,i.reportDeprecated=r.reportsDeprecated,i.source=r.source,i.skippedOn=r.skippedOn;let{relatedInformation:o}=r;return i.relatedInformation=o?o.length?o.map(s=>ome(s,t)):[]:void 0,i})}function ome(e,t){let{file:r}=e;return{...e,file:r?t(r.resolvedPath):void 0}}function zF(e,t,r,i,o,s){let l,f,d;return e===void 0?(L.assert(t===void 0),l=r,d=i,L.assert(!!d),f=d.getProgram()):ba(e)?(d=i,f=PF({rootNames:e,options:t,host:r,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(f=e,l=t,d=r,o=i),{host:l,newProgram:f,oldProgram:d,configFileParsingDiagnostics:o||Je}}function sme(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function Tq(e,t,r,i,o){var s,l;r=sme(r,o);let f;return(s=o?.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(m=>`${g(m)}${nw[m.category]}${m.code}: ${d(m.messageText)}`).join(`
| `)),((l=i.createHash)!=null?l:aw)(r);function d(m){return Ta(m)?m:m===void 0?"":m.next?m.messageText+m.next.map(d).join(`
| `):m.messageText}function g(m){return m.file.resolvedPath===t.resolvedPath?`(${m.start},${m.length})`:(f===void 0&&(f=ni(t.resolvedPath)),`${S0(Xp(f,m.file.resolvedPath,e.getCanonicalFileName))}(${m.start},${m.length})`)}}function YT(e,t,r){var i;return((i=t.createHash)!=null?i:aw)(sme(e,r))}function Sq(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=c8e(t,s);t.getBuildInfo=w=>y8e(l,w),t=void 0,i=void 0,s=void 0;let f=()=>l,d=Cq(f,o);return d.getState=f,d.saveEmitState=()=>d8e(l),d.restoreEmitState=w=>f8e(l,w),d.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,d.getAllDependencies=w=>pm.getAllDependencies(l,L.checkDefined(l.program),w),d.getSemanticDiagnostics=A,d.emit=S,d.releaseProgram=()=>u8e(l),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=x:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=x,d.emitNextAffectedFile=m,d.emitBuildInfo=g):Sa(),d;function g(w,C){if(l.buildInfoEmitPending){let P=L.checkDefined(l.program).emitBuildInfo(w||ho(r,r.writeFile),C);return l.buildInfoEmitPending=!1,P}return HF}function m(w,C,P,F){var B,q,W,Y,R;let ie=tme(l,C,r),$=cv(l.compilerOptions),fe=P?$&24:$;if(!ie)if(Ss(l.compilerOptions)){if(!l.programEmitPending||(fe=l.programEmitPending,P&&(fe=fe&24),!fe))return;ie=l.program}else{let re=p8e(l,P);if(!re){if(!l.buildInfoEmitPending)return;let le=l.program,_e=le.emitBuildInfo(w||ho(r,r.writeFile),C);return l.buildInfoEmitPending=!1,{result:_e,affected:le}}({affectedFile:ie,emitKind:fe}=re)}let Z;fe&7&&(Z=0),fe&24&&(Z=Z===void 0?1:void 0),ie===l.program&&(l.programEmitPending=l.changedFilesSet.size?G2($,fe):l.programEmitPending?G2(l.programEmitPending,fe):void 0);let U=l.program.emit(ie===l.program?void 0:ie,v(w,F),C,Z,F);if(ie!==l.program){let re=ie;l.seenAffectedFiles.add(re.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let le=((B=l.seenEmittedFiles)==null?void 0:B.get(re.resolvedPath))||0;((q=l.seenEmittedFiles)!=null?q:l.seenEmittedFiles=new Map).set(re.resolvedPath,fe|le);let _e=((W=l.affectedFilesPendingEmit)==null?void 0:W.get(re.resolvedPath))||$,ge=G2(_e,fe|le);ge?((Y=l.affectedFilesPendingEmit)!=null?Y:l.affectedFilesPendingEmit=new Map).set(re.resolvedPath,ge):(R=l.affectedFilesPendingEmit)==null||R.delete(re.resolvedPath)}else l.changedFilesSet.clear();return{result:U,affected:ie}}function v(w,C){return __(l.compilerOptions)?(P,F,B,q,W,Y)=>{var R,ie,$,fe,Z,U,re;if(Fu(P))if(Ss(l.compilerOptions)){if(l.compilerOptions.composite){let _e=le(l.outSignature,void 0);if(!_e)return;l.outSignature=_e}}else{L.assert(W?.length===1);let _e;if(!C){let ge=W[0],X=l.fileInfos.get(ge.resolvedPath);if(X.signature===ge.version){let Ve=Tq(l.program,ge,F,r,Y);(R=Y?.diagnostics)!=null&&R.length||(_e=Ve),Ve!==ge.version&&(r.storeFilesChangingSignatureDuringEmit&&((ie=l.filesChangingSignature)!=null?ie:l.filesChangingSignature=new Set).add(ge.resolvedPath),l.exportedModulesMap&&pm.updateExportedModules(l,ge,ge.exportedModulesFromDeclarationEmit),l.affectedFiles?((($=l.oldSignatures)==null?void 0:$.get(ge.resolvedPath))===void 0&&((fe=l.oldSignatures)!=null?fe:l.oldSignatures=new Map).set(ge.resolvedPath,X.signature||!1),X.signature=Ve):(X.signature=Ve,(Z=l.oldExportedModulesMap)==null||Z.clear()))}}if(l.compilerOptions.composite){let ge=W[0].resolvedPath;if(_e=le((U=l.emitSignatures)==null?void 0:U.get(ge),_e),!_e)return;((re=l.emitSignatures)!=null?re:l.emitSignatures=new Map).set(ge,_e)}}w?w(P,F,B,q,W,Y):r.writeFile?r.writeFile(P,F,B,q,W,Y):l.program.writeFile(P,F,B,q,W,Y);function le(_e,ge){let X=!_e||Ta(_e)?_e:_e[0];if(ge??(ge=YT(F,r,Y)),ge===X){if(_e===X)return;Y?Y.differsOnlyInMap=!0:Y={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=P;return ge}}:w||ho(r,r.writeFile)}function S(w,C,P,F,B){e===1&&eme(l,w);let q=dq(d,w,C,P);if(q)return q;if(!w)if(e===1){let W=[],Y=!1,R,ie=[],$;for(;$=m(C,P,F,B);)Y=Y||$.result.emitSkipped,R=si(R,$.result.diagnostics),ie=si(ie,$.result.emittedFiles),W=si(W,$.result.sourceMaps);return{emitSkipped:Y,diagnostics:R||Je,emittedFiles:ie,sourceMaps:W}}else _8e(l,F);return L.checkDefined(l.program).emit(w,v(C,B),P,F,B)}function x(w,C){for(;;){let P=tme(l,w,r),F;if(P)if(P!==l.program){let B=P;if((!C||!C(B))&&(F=Eq(l,B,w)),l.seenAffectedFiles.add(B.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!F)continue}else F=l.program.getSemanticDiagnostics(void 0,w),l.changedFilesSet.clear(),l.programEmitPending=cv(l.compilerOptions);else return;return{result:F,affected:P}}}function A(w,C){eme(l,w);let P=L.checkDefined(l.program).getCompilerOptions();if(Ss(P))return L.assert(!l.semanticDiagnosticsPerFile),L.checkDefined(l.program).getSemanticDiagnostics(w,C);if(w)return Eq(l,w,C);for(;x(C););let F;for(let B of L.checkDefined(l.program).getSourceFiles())F=si(F,Eq(l,B,C));return F||Je}}function xq(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;((o=e.affectedFilesPendingEmit)!=null?o:e.affectedFilesPendingEmit=new Map).set(t,s|r)}function cme(e){return Ta(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:Ta(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function lme(e,t){return Cg(e)?t:e[1]||8}function ume(e,t){return e||cv(t||{})}function dme(e,t,r){var i,o,s,l;let f=e.program,d=ni(_a(t,r.getCurrentDirectory())),g=Dl(r.useCaseSensitiveFileNames()),m,v=(i=f.fileNames)==null?void 0:i.map(A),S,x=f.latestChangedDtsFile?w(f.latestChangedDtsFile):void 0;if(ame(f)){let B=new Map;f.fileInfos.forEach((q,W)=>{let Y=C(W+1);B.set(Y,Ta(q)?{version:q,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:q)}),m={fileInfos:B,compilerOptions:f.options?SJ(f.options,w):{},latestChangedDtsFile:x,outSignature:f.outSignature,programEmitPending:f.pendingEmit===void 0?void 0:ume(f.pendingEmit,f.options),bundle:e.bundle}}else{S=(o=f.fileIdsList)==null?void 0:o.map(Y=>new Set(Y.map(C)));let B=new Map,q=(s=f.options)!=null&&s.composite&&!Ss(f.options)?new Map:void 0;f.fileInfos.forEach((Y,R)=>{let ie=C(R+1),$=cme(Y);B.set(ie,$),q&&$.signature&&q.set(ie,$.signature)}),(l=f.emitSignatures)==null||l.forEach(Y=>{if(Cg(Y))q.delete(C(Y));else{let R=C(Y[0]);q.set(R,!Ta(Y[1])&&!Y[1].length?[q.get(R)]:Y[1])}});let W=f.affectedFilesPendingEmit?cv(f.options||{}):void 0;m={fileInfos:B,compilerOptions:f.options?SJ(f.options,w):{},referencedMap:F(f.referencedMap),exportedModulesMap:F(f.exportedModulesMap),semanticDiagnosticsPerFile:f.semanticDiagnosticsPerFile&&p0(f.semanticDiagnosticsPerFile,Y=>C(Cg(Y)?Y:Y[0]),Y=>Cg(Y)?Je:Y[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:f.affectedFilesPendingEmit&&p0(f.affectedFilesPendingEmit,Y=>C(Cg(Y)?Y:Y[0]),Y=>lme(Y,W)),changedFilesSet:new Set(on(f.changeFileSet,C)),latestChangedDtsFile:x,emitSignatures:q?.size?q:void 0}}return{getState:()=>m,saveEmitState:Ba,restoreEmitState:Ba,getProgram:Sa,getProgramOrUndefined:Qv,releaseProgram:Ba,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Sa,getSourceFiles:Sa,getOptionsDiagnostics:Sa,getGlobalDiagnostics:Sa,getConfigFileParsingDiagnostics:Sa,getSyntacticDiagnostics:Sa,getDeclarationDiagnostics:Sa,getSemanticDiagnostics:Sa,emit:Sa,getAllDependencies:Sa,getCurrentDirectory:Sa,emitNextAffectedFile:Sa,getSemanticDiagnosticsOfNextAffectedFile:Sa,emitBuildInfo:Sa,close:Ba,hasChangedEmitSignature:m0};function A(B){return Ts(B,d,g)}function w(B){return _a(B,d)}function C(B){return v[B-1]}function P(B){return S[B-1]}function F(B){if(!B)return;let q=pm.createManyToManyPathMap();return B.forEach(([W,Y])=>q.set(C(W),P(Y))),q}}function Aq(e,t,r){let i=ni(_a(t,r.getCurrentDirectory())),o=Dl(r.useCaseSensitiveFileNames()),s=new Map,l=0,f=[];return e.fileInfos.forEach((d,g)=>{let m=Ts(e.fileNames[g],i,o),v=Ta(d)?d:d.version;if(s.set(m,v),l<e.root.length){let S=e.root[l],x=g+1;ba(S)?S[0]<=x&&x<=S[1]&&(f.push(m),S[1]===x&&l++):S===x&&(f.push(m),l++)}}),{fileInfos:s,roots:f}}function Cq(e,t){return{getState:Sa,saveEmitState:Ba,restoreEmitState:Ba,getProgram:r,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,f)=>r().emit(i,o,s,l,f),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Sa,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Ba};function r(){return L.checkDefined(e().program)}}var Iq,Lq,E8e=gt({"src/compiler/builder.ts"(){"use strict";fa(),fa(),Iq=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Iq||{}),Lq=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Lq||{})}});function T8e(e,t,r,i,o,s){return Sq(0,zF(e,t,r,i,o,s))}function kq(e,t,r,i,o,s){return Sq(1,zF(e,t,r,i,o,s))}function S8e(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:f}=zF(e,t,r,i,o,s);return Cq(()=>({program:l,compilerOptions:l.getCompilerOptions()}),f)}var x8e=gt({"src/compiler/builderPublic.ts"(){"use strict";fa()}});function Dq(e){return Oc(e,"/node_modules/.staging")?pA(e,"/.staging"):vt(uw,t=>jl(e,t))?void 0:e}function vN(e){let t=_p(e);if(e.length===t)return!1;let r=e.indexOf(_s,t);if(r===-1)return!1;let i=e.substring(t,r+1),o=t>1||e.charCodeAt(0)!==47;if(o&&e.search(/[a-zA-Z]:/)!==0&&i.search(/[a-zA-Z]\$\//)===0){if(r=e.indexOf(_s,r+1),r===-1)return!1;i=e.substring(t+i.length,r+1)}if(o&&i.search(/users\//i)!==0)return!0;for(let s=r+1,l=2;l>0;l--)if(s=e.indexOf(_s,s)+1,s===0)return!1;return!0}function fme(e,t,r){let i,o,s,l=Nf(),f=new Set,d=new Set,g=new Map,m=new Map,v=!1,S,x,A,w,C,P=zu(()=>e.getCurrentDirectory()),F=e.getCachedDirectoryStructureHost(),B=new Map,q=Y3(P(),e.getCanonicalFileName,e.getCompilationSettings()),W=new Map,Y=$3(P(),e.getCanonicalFileName,e.getCompilationSettings(),q.getPackageJsonInfoCache()),R=[".ts",".tsx",".js",".jsx",".json"],ie=new Map,$=new Map,fe=new Map,Z=t&&sT(_a(t,P())),U=Z&&e.toPath(Z),re=U!==void 0?U.split(_s).length:0,le=new Map;return{getModuleResolutionCache:()=>q,startRecordingFilesWithChangedResolutions:we,finishRecordingFilesWithChangedResolutions:ke,startCachingPerDirectoryResolution:Ie,finishCachingPerDirectoryResolution:Be,resolveModuleNameLiterals:ct,resolveTypeReferenceDirectiveReferences:_t,resolveSingleModuleNameWithoutWatching:Rt,removeResolutionsFromProjectReferenceRedirects:nn,removeResolutionsOfFile:Dt,hasChangedAutomaticTypeDirectiveNames:()=>v,invalidateResolutionOfFile:An,invalidateResolutionsOfFailedLookupLocations:ri,setFilesWithInvalidatedNonRelativeUnresolvedImports:Kn,createHasInvalidatedResolutions:Ce,isFileWithInvalidatedNonRelativeUnresolvedImports:Pe,updateTypeRootsWatch:at,closeTypeRootsWatch:dr,clear:Ve};function _e(ve){return ve.resolvedModule}function ge(ve){return ve.resolvedTypeReferenceDirective}function X(ve,nt){return ve===void 0||nt.length<=ve.length?!1:na(nt,ve)&&nt[ve.length]===_s}function Ve(){Tf($,_m),Tf(fe,_m),ie.clear(),l.clear(),dr(),B.clear(),W.clear(),g.clear(),f.clear(),d.clear(),A=void 0,w=void 0,C=void 0,x=void 0,S=void 0,q.clear(),Y.clear(),q.update(e.getCompilationSettings()),Y.update(e.getCompilationSettings()),m.clear(),v=!1}function we(){i=[]}function ke(){let ve=i;return i=void 0,ve}function Pe(ve){if(!s)return!1;let nt=s.get(ve);return!!nt&&!!nt.length}function Ce(ve){ri();let nt=o;return o=void 0,ce=>ve(ce)||!!nt?.has(ce)||Pe(ce)}function Ie(){q.clearAllExceptPackageJsonInfoCache(),Y.clearAllExceptPackageJsonInfoCache(),l.forEach($n),l.clear()}function Be(ve,nt){s=void 0,l.forEach($n),l.clear(),ve!==nt&&(ve?.getSourceFiles().forEach(ce=>{var Q,ue,G;let Oe=kd(ce)&&(ue=(Q=ce.packageJsonLocations)==null?void 0:Q.length)!=null?ue:0,je=(G=m.get(ce.path))!=null?G:Je;for(let Ge=je.length;Ge<Oe;Ge++)Gt(ce.packageJsonLocations[Ge],!1);if(je.length>Oe)for(let Ge=Oe;Ge<je.length;Ge++)fe.get(je[Ge]).files--;Oe?m.set(ce.path,ce.packageJsonLocations):m.delete(ce.path)}),m.forEach((ce,Q)=>{ve?.getSourceFileByPath(Q)||(ce.forEach(ue=>fe.get(ue).files--),m.delete(Q))})),$.forEach((ce,Q)=>{ce.refCount===0&&($.delete(Q),ce.watcher.close())}),fe.forEach((ce,Q)=>{ce.files===0&&ce.resolutions===0&&(fe.delete(Q),ce.watcher.close())}),v=!1}function Ne(ve,nt,ce,Q,ue){var G;let Oe=((G=e.getCompilerHost)==null?void 0:G.call(e))||e,je=FL(ve,nt,ce,Oe,q,Q,ue);if(!e.getGlobalCache)return je;let Ge=e.getGlobalCache();if(Ge!==void 0&&!fl(ve)&&!(je.resolvedModule&&y4(je.resolvedModule.extension))){let{resolvedModule:kt,failedLookupLocations:Kt,affectingLocations:ln,resolutionDiagnostics:ir}=s_e(L.checkDefined(e.globalCacheResolutionModuleName)(ve),e.projectName,ce,Oe,Ge,q);if(kt)return je.resolvedModule=kt,je.failedLookupLocations=N2(je.failedLookupLocations,Kt),je.affectingLocations=N2(je.affectingLocations,ln),je.resolutionDiagnostics=N2(je.resolutionDiagnostics,ir),je}return je}function Le(ve,nt,ce){return{nameAndMode:QL,resolve:(Q,ue)=>Ne(Q,ve,ce,nt,ue)}}function Ye({entries:ve,containingFile:nt,containingSourceFile:ce,redirectedReference:Q,options:ue,perFileCache:G,reusedNames:Oe,loader:je,getResolutionWithResolvedFileName:Ge,shouldRetryResolution:kt,logChanges:Kt}){var ln;let ir=e.toPath(nt),ae=G.get(ir)||G.set(ir,WT()).get(ir),rt=[],Ot=Kt&&Pe(ir),Ke=e.getCurrentProgram(),oe=Ke&&Ke.getResolvedProjectReferenceToRedirect(nt),pe=oe?!Q||Q.sourceFile.path!==oe.sourceFile.path:!!Q,z=WT();for(let j of ve){let yt=je.nameAndMode.getName(j),lt=je.nameAndMode.getMode(j,ce),Qe=ae.get(yt,lt);if(!z.has(yt,lt)&&pe||!Qe||Qe.isInvalidated||Ot&&!fl(yt)&&kt(Qe)){let Vt=Qe;Qe=je.resolve(yt,lt),e.onDiscoveredSymlink&&A8e(Qe)&&e.onDiscoveredSymlink(),ae.set(yt,lt,Qe),tn(yt,Qe,ir,Ge),Vt&&Ni(Vt,ir,Ge),Kt&&i&&!Te(Vt,Qe)&&(i.push(ir),Kt=!1)}else{let Vt=((ln=e.getCompilerHost)==null?void 0:ln.call(e))||e;if(ov(ue,Vt)&&!z.has(yt,lt)){let Hn=Ge(Qe);Xi(Vt,G===B?Hn?.resolvedFileName?Hn.packageId?_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Hn?.resolvedFileName?Hn.packageId?_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,yt,nt,Hn?.resolvedFileName,Hn?.packageId&&hT(Hn.packageId))}}L.assert(Qe!==void 0&&!Qe.isInvalidated),z.set(yt,lt,!0),rt.push(Qe)}return Oe?.forEach(j=>z.set(je.nameAndMode.getName(j),je.nameAndMode.getMode(j,ce),!0)),ae.size()!==z.size()&&ae.forEach((j,yt,lt)=>{z.has(yt,lt)||(Ni(j,ir,Ge),ae.delete(yt,lt))}),rt;function Te(j,yt){if(j===yt)return!0;if(!j||!yt)return!1;let lt=Ge(j),Qe=Ge(yt);return lt===Qe?!0:!lt||!Qe?!1:lt.resolvedFileName===Qe.resolvedFileName}}function _t(ve,nt,ce,Q,ue,G){var Oe;return Ye({entries:ve,containingFile:nt,containingSourceFile:ue,redirectedReference:ce,options:Q,reusedNames:G,perFileCache:W,loader:OF(nt,ce,Q,((Oe=e.getCompilerHost)==null?void 0:Oe.call(e))||e,Y),getResolutionWithResolvedFileName:ge,shouldRetryResolution:je=>je.resolvedTypeReferenceDirective===void 0})}function ct(ve,nt,ce,Q,ue,G){return Ye({entries:ve,containingFile:nt,containingSourceFile:ue,redirectedReference:ce,options:Q,reusedNames:G,perFileCache:B,loader:Le(nt,ce,Q),getResolutionWithResolvedFileName:_e,shouldRetryResolution:Oe=>!Oe.resolvedModule||!VR(Oe.resolvedModule.extension),logChanges:r})}function Rt(ve,nt){let ce=e.toPath(nt),Q=B.get(ce),ue=Q?.get(ve,void 0);return ue&&!ue.isInvalidated?ue:Ne(ve,nt,e.getCompilationSettings())}function We(ve){return Oc(ve,"/node_modules/@types")}function qe(ve,nt){if(X(U,nt)){ve=qp(ve)?So(ve):_a(ve,P());let ce=nt.split(_s),Q=ve.split(_s);return L.assert(Q.length===ce.length,`FailedLookup: ${ve} failedLookupLocationPath: ${nt}`),ce.length>re+1?{dir:Q.slice(0,re+1).join(_s),dirPath:ce.slice(0,re+1).join(_s)}:{dir:Z,dirPath:U,nonRecursive:!1}}return zt(ni(_a(ve,P())),ni(nt))}function zt(ve,nt){for(;JS(nt);)ve=ni(ve),nt=ni(nt);if(H8(nt))return vN(ni(nt))?{dir:ve,dirPath:nt}:void 0;let ce=!0,Q,ue;if(U!==void 0)for(;!X(nt,U);){let G=ni(nt);if(G===nt)break;ce=!1,Q=nt,ue=ve,nt=G,ve=ni(ve)}return vN(nt)?{dir:ue||ve,dirPath:Q||nt,nonRecursive:ce}:void 0}function Qt(ve){return $c(ve,R)}function tn(ve,nt,ce,Q){var ue,G;if(nt.refCount)nt.refCount++,L.assertIsDefined(nt.files);else{nt.refCount=1,L.assert(!((ue=nt.files)!=null&&ue.size)),fl(ve)?kn(nt):l.add(ve,nt);let Oe=Q(nt);if(Oe&&Oe.resolvedFileName){let je=e.toPath(Oe.resolvedFileName),Ge=g.get(je);Ge||g.set(je,Ge=new Set),Ge.add(nt)}}((G=nt.files)!=null?G:nt.files=new Set).add(ce)}function kn(ve){L.assert(!!ve.refCount);let{failedLookupLocations:nt,affectingLocations:ce}=ve;if(!nt?.length&&!ce?.length)return;nt?.length&&f.add(ve);let Q=!1;if(nt){for(let ue of nt){let G=e.toPath(ue),Oe=qe(ue,G);if(Oe){let{dir:je,dirPath:Ge,nonRecursive:kt}=Oe;if(!Qt(G)){let Kt=ie.get(G)||0;ie.set(G,Kt+1)}Ge===U?(L.assert(!kt),Q=!0):ui(je,Ge,kt)}}Q&&ui(Z,U,!0)}_n(ve,!nt?.length)}function _n(ve,nt){L.assert(!!ve.refCount);let{affectingLocations:ce}=ve;if(ce?.length){nt&&d.add(ve);for(let Q of ce)Gt(Q,!0)}}function Gt(ve,nt){let ce=fe.get(ve);if(ce){nt?ce.resolutions++:ce.files++;return}let Q=ve;if(e.realpath&&(Q=e.realpath(ve),ve!==Q)){let je=fe.get(Q);if(je){nt?je.resolutions++:je.files++,je.paths.add(ve),fe.set(ve,je);return}}let ue=new Set;ue.add(Q);let G=vN(e.toPath(Q))?e.watchAffectingFileLocation(Q,(je,Ge)=>{F?.addOrDeleteFile(je,e.toPath(Q),Ge);let kt=q.getPackageJsonInfoCache().getInternalMap();ue.forEach(Kt=>{Oe.resolutions&&(x??(x=new Set)).add(Kt),Oe.files&&(S??(S=new Set)).add(Kt),kt?.delete(e.toPath(Kt))}),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):B2,Oe={watcher:G!==B2?{close:()=>{G.close(),G=B2}}:G,resolutions:nt?1:0,files:nt?0:1,paths:ue};fe.set(Q,Oe),ve!==Q&&(fe.set(ve,Oe),ue.add(ve))}function $n(ve,nt){let ce=e.getCurrentProgram();!ce||!ce.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(nt)?ve.forEach(kn):ve.forEach(Q=>_n(Q,!0))}function ui(ve,nt,ce){let Q=$.get(nt);Q?(L.assert(!!ce==!!Q.nonRecursive),Q.refCount++):$.set(nt,{watcher:gr(ve,nt,ce),refCount:1,nonRecursive:ce})}function Ni(ve,nt,ce){if(L.checkDefined(ve.files).delete(nt),ve.refCount--,ve.refCount)return;let Q=ce(ve);if(Q&&Q.resolvedFileName){let Oe=e.toPath(Q.resolvedFileName),je=g.get(Oe);je?.delete(ve)&&!je.size&&g.delete(Oe)}let{failedLookupLocations:ue,affectingLocations:G}=ve;if(f.delete(ve)){let Oe=!1;for(let je of ue){let Ge=e.toPath(je),kt=qe(je,Ge);if(kt){let{dirPath:Kt}=kt,ln=ie.get(Ge);ln&&(ln===1?ie.delete(Ge):(L.assert(ln>1),ie.set(Ge,ln-1))),Kt===U?Oe=!0:Pi(Kt)}}Oe&&Pi(U)}else G?.length&&d.delete(ve);if(G)for(let Oe of G){let je=fe.get(Oe);je.resolutions--}}function Pi(ve){let nt=$.get(ve);nt.refCount--}function gr(ve,nt,ce){return e.watchDirectoryOfFailedLookupLocation(ve,Q=>{let ue=e.toPath(Q);F&&F.addOrDeleteFileOrDirectory(Q,ue),hi(ue,nt===ue)},ce?0:1)}function pt(ve,nt,ce){let Q=ve.get(nt);Q&&(Q.forEach(ue=>Ni(ue,nt,ce)),ve.delete(nt))}function nn(ve){if(!Gc(ve,".json"))return;let nt=e.getCurrentProgram();if(!nt)return;let ce=nt.getResolvedProjectReferenceByPath(ve);ce&&ce.commandLine.fileNames.forEach(Q=>Dt(e.toPath(Q)))}function Dt(ve){pt(B,ve,_e),pt(W,ve,ge)}function pn(ve,nt){if(!ve)return!1;let ce=!1;return ve.forEach(Q=>{if(!(Q.isInvalidated||!nt(Q))){Q.isInvalidated=ce=!0;for(let ue of L.checkDefined(Q.files))(o??(o=new Set)).add(ue),v=v||Oc(ue,VF)}}),ce}function An(ve){Dt(ve);let nt=v;pn(g.get(ve),h0)&&v&&!nt&&e.onChangedAutomaticTypeDirectiveNames()}function Kn(ve){L.assert(s===ve||s===void 0),s=ve}function hi(ve,nt){if(nt)(C||(C=new Set)).add(ve);else{let ce=Dq(ve);if(!ce||(ve=ce,e.fileIsOpen(ve)))return!1;let Q=ni(ve);if(We(ve)||H8(ve)||We(Q)||H8(Q))(A||(A=new Set)).add(ve),(w||(w=new Set)).add(ve);else{if(!Qt(ve)&&!ie.has(ve)||Bpe(e.getCurrentProgram(),ve))return!1;(A||(A=new Set)).add(ve);let ue=XJ(ve);ue&&(w||(w=new Set)).add(ue)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ri(){var ve;let nt=!1;if(S&&((ve=e.getCurrentProgram())==null||ve.getSourceFiles().forEach(Q=>{vt(Q.packageJsonLocations,ue=>S.has(ue))&&((o??(o=new Set)).add(Q.path),nt=!0)}),S=void 0),!A&&!w&&!C&&!x)return nt;nt=pn(f,vn)||nt;let ce=q.getPackageJsonInfoCache().getInternalMap();return ce&&(A||w||C)&&ce.forEach((Q,ue)=>Ht(ue)?ce.delete(ue):void 0),A=void 0,w=void 0,C=void 0,nt=pn(d,En)||nt,x=void 0,nt}function vn(ve){var nt;return En(ve)?!0:!A&&!w&&!C?!1:(nt=ve.failedLookupLocations)==null?void 0:nt.some(ce=>Ht(e.toPath(ce)))}function Ht(ve){return A?.has(ve)||FD(w?.keys()||[],nt=>na(ve,nt)?!0:void 0)||FD(C?.keys()||[],nt=>X(nt,ve)?!0:void 0)}function En(ve){var nt;return!!x&&((nt=ve.affectingLocations)==null?void 0:nt.some(ce=>x.has(ce)))}function dr(){Tf(le,am)}function Cr(ve,nt){if(X(U,nt))return U;let ce=zt(ve,nt);return ce&&$.has(ce.dirPath)?ce.dirPath:void 0}function Se(ve,nt){return e.watchTypeRootsDirectory(nt,ce=>{let Q=e.toPath(ce);F&&F.addOrDeleteFileOrDirectory(ce,Q),v=!0,e.onChangedAutomaticTypeDirectiveNames();let ue=Cr(nt,ve);ue&&hi(Q,ue===Q)},1)}function at(){let ve=e.getCompilationSettings();if(ve.types){dr();return}let nt=XO(ve,{directoryExists:Tt,getCurrentDirectory:P});nt?e2(le,p0(nt,ce=>e.toPath(ce)),{createNewValue:Se,onDeleteValue:am}):dr()}function Tt(ve){let nt=ni(ni(ve)),ce=e.toPath(nt);return ce===U||vN(ce)}}function A8e(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var C8e=gt({"src/compiler/resolutionCache.ts"(){"use strict";fa(),fa()}});function bN(e,t){let r=e===xl&&Vq?Vq:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Dl(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(rq(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(Jpe(i,r)+r.getNewLine()),i[0]=void 0}}function _me(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&ya($F,t.code)?(e.clearScreen(),!0):!1}function I8e(e,t){return ya($F,e.code)?t+t:t}function EN(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function pme(e,t){return t?(r,i,o)=>{_me(e,r,o);let s=`[${iE(EN(e),"\x1B[90m")}] `;s+=`${sv(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";_me(e,r,o)||(s+=i),s+=`${EN(e)} - `,s+=`${sv(r.messageText,e.newLine)}${I8e(r,i)}`,e.write(s)}}function L8e(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=d=>Eme(o,s,d);let f=RO(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,f}function JF(e){return Oy(e,t=>t.category===1)}function KF(e){return Pr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=wr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=Gs(i.file,i.start);return{fileName:r,line:o+1}}})}function wq(e){return e===1?_.Found_1_error_Watching_for_file_changes:_.Found_0_errors_Watching_for_file_changes}function mme(e,t){let r=iE(":"+e.line,"\x1B[90m");return nI(e.fileName)&&nI(t)?Xp(t,e.fileName,!1)+r:e.fileName+r}function hme(e,t,r,i){if(e===0)return"";let o=t.filter(g=>g!==void 0),s=o.map(g=>`${g.fileName}:${g.line}`).filter((g,m,v)=>v.indexOf(g)===m),l=o[0]&&mme(o[0],i.getCurrentDirectory()),f=e===1?ps(t[0]!==void 0?_.Found_1_error_in_1:_.Found_1_error,e,l):ps(s.length===0?_.Found_0_errors:s.length===1?_.Found_0_errors_in_the_same_file_starting_at_Colon_1:_.Found_0_errors_in_1_files,e,s.length===1?l:s.length),d=s.length>1?k8e(o,i):"";return`${r}${sv(f.messageText,r)}${r}${r}${d}`}function k8e(e,t){let r=e.filter((v,S,x)=>S===x.findIndex(A=>A?.fileName===v?.fileName));if(r.length===0)return"";let i=v=>Math.log(v)*Math.LOG10E+1,o=r.map(v=>[v,Oy(e,S=>S.fileName===v.fileName)]),s=o.reduce((v,S)=>Math.max(v,S[1]||0),0),l=_.Errors_Files.message,f=l.split(" ")[0].length,d=Math.max(f,i(s)),g=Math.max(i(s)-f,0),m="";return m+=" ".repeat(g)+l+`
| `,o.forEach(v=>{let[S,x]=v,A=Math.log(x)*Math.LOG10E+1|0,w=A<d?" ".repeat(d-A):"",C=mme(S,t.getCurrentDirectory());m+=`${w}${x} ${C}
| `}),m}function gme(e){return!!e.getState}function Rq(e,t){let r=e.getCompilerOptions();r.explainFiles?yme(gme(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&mn(e.getSourceFiles(),i=>{t(i.fileName)})}function yme(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>rI(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${XS(l,s)}`),(r=o.get(l.path))==null||r.forEach(f=>t(` ${Mq(e,f,s).messageText}`)),(i=Oq(l,s))==null||i.forEach(f=>t(` ${f.messageText}`))}function Oq(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(da(void 0,_.File_is_output_of_project_reference_source_0,XS(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(da(void 0,_.File_redirects_to_file_0,XS(e.redirectInfo.redirectTarget,t))),kd(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(da(void 0,_.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,XS(To(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(da(void 0,e.packageJsonScope.contents.packageJsonContent.type?_.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_.File_is_CommonJS_module_because_0_does_not_have_field_type,XS(To(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(da(void 0,_.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function Nq(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=ni(_a(i.fileName,e.getCurrentDirectory()));return wr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(_a(l,s))===o)}function Pq(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=Gc(t,".json"),l=ni(_a(o.fileName,e.getCurrentDirectory())),f=e.useCaseSensitiveFileNames();return wr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,d=>{if(s&&!Oc(d,".json"))return!1;let g=kW(d,l,"files");return!!g&&Qy(`(${g})$`,f).test(t)})}function Mq(e,t,r){var i,o;let s=e.getCompilerOptions();if(vb(t)){let l=YL(g=>e.getSourceFileByPath(g),t),f=F2(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,d;switch(L.assert(F2(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:F2(l)?d=l.packageId?_.Imported_via_0_from_file_1_with_packageId_2:_.Imported_via_0_from_file_1:l.text===_b?d=l.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=l.packageId?_.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:L.assert(!l.packageId),d=_.Referenced_via_0_from_file_1;break;case 5:d=l.packageId?_.Type_library_referenced_via_0_from_file_1_with_packageId_2:_.Type_library_referenced_via_0_from_file_1;break;case 7:L.assert(!l.packageId),d=_.Library_referenced_via_0_from_file_1;break;default:L.assertNever(t)}return da(void 0,d,f,XS(l.file,r),l.packageId&&hT(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return da(void 0,_.Root_file_specified_for_compilation);let l=_a(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(Nq(e,l))return da(void 0,_.Part_of_files_list_in_tsconfig_json);let d=Pq(e,l);return Ta(d)?da(void 0,_.Matched_by_include_pattern_0_in_1,d,XS(s.configFile,r)):da(void 0,d?_.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,m=L.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return da(void 0,Ss(s)?g?_.Output_from_referenced_project_0_included_because_1_specified:_.Source_from_referenced_project_0_included_because_1_specified:g?_.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_.Source_from_referenced_project_0_included_because_module_is_specified_as_none,XS(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:return da(void 0,s.types?t.packageId?_.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:_.Entry_point_of_type_library_0_specified_in_compilerOptions:t.packageId?_.Entry_point_for_implicit_type_library_0_with_packageId_1:_.Entry_point_for_implicit_type_library_0,t.typeReference,t.packageId&&hT(t.packageId));case 6:if(t.index!==void 0)return da(void 0,_.Library_0_specified_in_compilerOptions,s.lib[t.index]);let v=Ld(zO.type,(S,x)=>S===Do(s)?x:void 0);return da(void 0,v?_.Default_library_for_target_0:_.Default_library,v);default:L.assertNever(t)}}function XS(e,t){let r=Ta(e)?e:e.fileName;return t?t(r):r}function qF(e,t,r,i,o,s,l,f){let d=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),m=g.length;si(g,e.getSyntacticDiagnostics(void 0,s)),g.length===m&&(si(g,e.getOptionsDiagnostics(s)),d||(si(g,e.getGlobalDiagnostics(s)),g.length===m&&si(g,e.getSemanticDiagnostics(void 0,s))));let v=d?{emitSkipped:!0,diagnostics:Je}:e.emit(void 0,o,s,l,f),{emittedFiles:S,diagnostics:x}=v;si(g,x);let A=vA(g);if(A.forEach(t),r){let w=e.getCurrentDirectory();mn(S,C=>{let P=_a(C,w);r(`TSFILE: ${P}`)}),Rq(e,r)}return i&&i(JF(A),KF(A)),{emitResult:v,diagnostics:A}}function vme(e,t,r,i,o,s,l,f){let{emitResult:d,diagnostics:g}=qF(e,t,r,i,o,s,l,f);return d.emitSkipped&&g.length>0?1:g.length>0?2:0}function Fq(e=xl,t){return{onWatchStatusChange:t||pme(e),watchFile:ho(e,e.watchFile)||TN,watchDirectory:ho(e,e.watchDirectory)||TN,setTimeout:ho(e,e.setTimeout)||Ba,clearTimeout:ho(e,e.clearTimeout)||Ba}}function Gq(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Ba,o=Upe(e,r,i);return o.writeLog=i,o}function Bq(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:eq((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:ho(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:tq((s,l,f)=>e.writeFile(s,l,f),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:zu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:Dl(i),getNewLine:()=>db(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:ho(e,e.trace),directoryExists:ho(r,r.directoryExists),getDirectories:ho(r,r.getDirectories),realpath:ho(e,e.realpath),getEnvironmentVariable:ho(e,e.getEnvironmentVariable)||(()=>""),createHash:ho(e,e.createHash),readDirectory:ho(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return o}function XF(e,t){if(t.match(TK)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!Wl(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(hF)){t=t.substring(0,i);break}else if(!l.match(gF))break;r=i}}return(e.createHash||aw)(t)}function YF(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=XF(e,i.text)),i}}function Uq(e,t){let r=zu(()=>ni(So(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:zu(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>vi(r(),X8(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,f)=>e.readDirectory(i,o,s,l,f),realpath:ho(e,e.realpath),getEnvironmentVariable:ho(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:ho(e,e.createHash),createProgram:t||kq,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ho(e,e.now)}}function bme(e=xl,t,r,i){let o=l=>e.write(l+e.newLine),s=Uq(e,t);return jU(s,Fq(e,i)),s.afterProgramCreate=l=>{let f=l.getCompilerOptions(),d=db(f);qF(l,r,o,g=>s.onWatchStatusChange(ps(wq(g),g),d,f,g))},s}function Eme(e,t,r){t(r),e.exit(1)}function Tme({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:f}){let d=l||bN(o),g=bme(o,s,d,f);return g.onUnRecoverableConfigFileDiagnostic=m=>Eme(o,d,m),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=r,g.extraFileExtensions=i,g}function Sme({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:f}){let d=bme(o,s,l||bN(o),f);return d.rootFiles=e,d.options=t,d.watchOptions=r,d.projectReferences=i,d}function D8e(e){let t=e.system||xl,r=e.host||(e.host=jq(e.options,t)),i=xme(e),o=vme(i,e.reportDiagnostic||bN(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(hme(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var Vq,$F,B2,TN,Hf,w8e=gt({"src/compiler/watch.ts"(){"use strict";fa(),Vq=xl?{getCurrentDirectory:()=>xl.getCurrentDirectory(),getNewLine:()=>xl.newLine,getCanonicalFileName:Dl(xl.useCaseSensitiveFileNames)}:void 0,$F=[_.Starting_compilation_in_watch_mode.code,_.File_change_detected_Starting_incremental_compilation.code],B2={close:Ba},TN=()=>B2,Hf={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"}}});function QF(e,t){let r=Jg(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=IF(r,o)}if(!(!i||i.version!==Rf||!i.program))return dme(i,r,t)}function jq(e,t=xl){let r=nq(e,void 0,t);return r.createHash=ho(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,YF(r),pN(r,i=>Ts(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function xme({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||jq(t),s=s||kq;let l=QF(t,o);return s(e,t,o,l,r,i)}function R8e(e,t,r,i,o,s,l,f){return ba(e)?Sme({rootFiles:e,options:t,watchOptions:f,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):Tme({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:f,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function O8e(e){let t,r,i,o,s,l,f,d,g=e.extendedConfigCache,m=!1,v=new Map,S,x=!1,A=e.useCaseSensitiveFileNames(),w=e.getCurrentDirectory(),{configFileName:C,optionsToExtend:P={},watchOptionsToExtend:F,extraFileExtensions:B,createProgram:q}=e,{rootFiles:W,options:Y,watchOptions:R,projectReferences:ie}=e,$,fe,Z=!1,U=!1,re=C===void 0?void 0:Mpe(e,w,A),le=re||e,_e=FF(e,le),ge=zt();C&&e.configFileParsingResult&&(En(e.configFileParsingResult),ge=zt()),Pi(_.Starting_compilation_in_watch_mode),C&&!e.configFileParsingResult&&(ge=db(P),L.assert(!W),Ht(),ge=zt()),L.assert(Y),L.assert(W);let{watchFile:X,watchDirectory:Ve,writeLog:we}=Gq(e,Y),ke=Dl(A);we(`Current directory: ${w} CaseSensitiveFileNames: ${A}`);let Pe;C&&(Pe=X(C,An,2e3,R,Hf.ConfigFile));let Ce=Bq(e,()=>Y,le);YF(Ce);let Ie=Ce.getSourceFile;Ce.getSourceFile=(je,...Ge)=>Gt(je,Qt(je),...Ge),Ce.getSourceFileByPath=Gt,Ce.getNewLine=()=>ge,Ce.fileExists=_n,Ce.onReleaseOldSourceFile=Ni,Ce.onReleaseParsedCommandLine=Se,Ce.toPath=Qt,Ce.getCompilationSettings=()=>Y,Ce.useSourceOfProjectReferenceRedirect=ho(e,e.useSourceOfProjectReferenceRedirect),Ce.watchDirectoryOfFailedLookupLocation=(je,Ge,kt)=>Ve(je,Ge,kt,R,Hf.FailedLookupLocations),Ce.watchAffectingFileLocation=(je,Ge)=>X(je,Ge,2e3,R,Hf.AffectingFileLocation),Ce.watchTypeRootsDirectory=(je,Ge,kt)=>Ve(je,Ge,kt,R,Hf.TypeRoots),Ce.getCachedDirectoryStructureHost=()=>re,Ce.scheduleInvalidateResolutionsOfFailedLookupLocations=nn,Ce.onInvalidatedResolution=pn,Ce.onChangedAutomaticTypeDirectiveNames=pn,Ce.fileIsOpen=m0,Ce.getCurrentProgram=ct,Ce.writeLog=we,Ce.getParsedCommandLine=dr;let Be=fme(Ce,C?ni(_a(C,w)):w,!1);Ce.resolveModuleNameLiterals=ho(e,e.resolveModuleNameLiterals),Ce.resolveModuleNames=ho(e,e.resolveModuleNames),!Ce.resolveModuleNameLiterals&&!Ce.resolveModuleNames&&(Ce.resolveModuleNameLiterals=Be.resolveModuleNameLiterals.bind(Be)),Ce.resolveTypeReferenceDirectiveReferences=ho(e,e.resolveTypeReferenceDirectiveReferences),Ce.resolveTypeReferenceDirectives=ho(e,e.resolveTypeReferenceDirectives),!Ce.resolveTypeReferenceDirectiveReferences&&!Ce.resolveTypeReferenceDirectives&&(Ce.resolveTypeReferenceDirectiveReferences=Be.resolveTypeReferenceDirectiveReferences.bind(Be)),Ce.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ho(e,e.getModuleResolutionCache):()=>Be.getModuleResolutionCache();let Le=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?ho(e,e.hasInvalidatedResolutions)||h0:m0;return t=QF(Y,Ce),Rt(),Q(),C&&G(Qt(C),Y,R,Hf.ExtendedConfigFile),C?{getCurrentProgram:_t,getProgram:hi,close:Ye}:{getCurrentProgram:_t,getProgram:hi,updateRootFileNames:qe,close:Ye};function Ye(){pt(),Be.clear(),Tf(v,je=>{je&&je.fileWatcher&&(je.fileWatcher.close(),je.fileWatcher=void 0)}),Pe&&(Pe.close(),Pe=void 0),g?.clear(),g=void 0,d&&(Tf(d,_m),d=void 0),o&&(Tf(o,_m),o=void 0),i&&(Tf(i,am),i=void 0),f&&(Tf(f,je=>{var Ge;(Ge=je.watcher)==null||Ge.close(),je.watcher=void 0,je.watchedDirectories&&Tf(je.watchedDirectories,_m),je.watchedDirectories=void 0}),f=void 0)}function _t(){return t}function ct(){return t&&t.getProgramOrUndefined()}function Rt(){we("Synchronizing program"),L.assert(Y),L.assert(W),pt();let je=_t();x&&(ge=zt(),je&&eH(je.getCompilerOptions(),Y)&&Be.clear());let Ge=Be.createHasInvalidatedResolutions(Le),{originalReadFile:kt,originalFileExists:Kt,originalDirectoryExists:ln,originalCreateDirectory:ir,originalWriteFile:ae,readFileWithCache:rt}=pN(Ce,Qt);return lq(ct(),W,Y,Ot=>ui(Ot,rt),Ot=>Ce.fileExists(Ot),Ge,gr,dr,ie)?U&&(m&&Pi(_.File_change_detected_Starting_incremental_compilation),t=q(void 0,void 0,Ce,t,fe,ie),U=!1):(m&&Pi(_.File_change_detected_Starting_incremental_compilation),We(Ge)),m=!1,e.afterProgramCreate&&je!==t&&e.afterProgramCreate(t),Ce.readFile=kt,Ce.fileExists=Kt,Ce.directoryExists=ln,Ce.createDirectory=ir,Ce.writeFile=ae,t}function We(je){we("CreatingProgramWith::"),we(` roots: ${JSON.stringify(W)}`),we(` options: ${JSON.stringify(Y)}`),ie&&we(` projectReferences: ${JSON.stringify(ie)}`);let Ge=x||!ct();x=!1,U=!1,Be.startCachingPerDirectoryResolution(),Ce.hasInvalidatedResolutions=je,Ce.hasChangedAutomaticTypeDirectiveNames=gr;let kt=ct();if(t=q(W,Y,Ce,t,fe,ie),Be.finishCachingPerDirectoryResolution(t.getProgram(),kt),Gpe(t.getProgram(),i||(i=new Map),nt),Ge&&Be.updateTypeRootsWatch(),S){for(let Kt of S)i.has(Kt)||v.delete(Kt);S=void 0}}function qe(je){L.assert(!C,"Cannot update root file names with config file watch mode"),W=je,pn()}function zt(){return db(Y||P)}function Qt(je){return Ts(je,w,ke)}function tn(je){return typeof je=="boolean"}function kn(je){return typeof je.version=="boolean"}function _n(je){let Ge=Qt(je);return tn(v.get(Ge))?!1:le.fileExists(je)}function Gt(je,Ge,kt,Kt,ln){let ir=v.get(Ge);if(!tn(ir)){if(ir===void 0||ln||kn(ir)){let ae=Ie(je,kt,Kt);if(ir)ae?(ir.sourceFile=ae,ir.version=ae.version,ir.fileWatcher||(ir.fileWatcher=at(Ge,je,Tt,250,R,Hf.SourceFile))):(ir.fileWatcher&&ir.fileWatcher.close(),v.set(Ge,!1));else if(ae){let rt=at(Ge,je,Tt,250,R,Hf.SourceFile);v.set(Ge,{sourceFile:ae,version:ae.version,fileWatcher:rt})}else v.set(Ge,!1);return ae}return ir.sourceFile}}function $n(je){let Ge=v.get(je);Ge!==void 0&&(tn(Ge)?v.set(je,{version:!1}):Ge.version=!1)}function ui(je,Ge){let kt=v.get(je);if(!kt)return;if(kt.version)return kt.version;let Kt=Ge(je);return Kt!==void 0?XF(Ce,Kt):void 0}function Ni(je,Ge,kt){let Kt=v.get(je.resolvedPath);Kt!==void 0&&(tn(Kt)?(S||(S=[])).push(je.path):Kt.sourceFile===je&&(Kt.fileWatcher&&Kt.fileWatcher.close(),v.delete(je.resolvedPath),kt||Be.removeResolutionsOfFile(je.path)))}function Pi(je){e.onWatchStatusChange&&e.onWatchStatusChange(ps(je),ge,Y||P)}function gr(){return Be.hasChangedAutomaticTypeDirectiveNames()}function pt(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function nn(){if(!e.setTimeout||!e.clearTimeout)return Be.invalidateResolutionsOfFailedLookupLocations();let je=pt();we(`Scheduling invalidateFailedLookup${je?", Cancelled earlier one":""}`),l=e.setTimeout(Dt,250)}function Dt(){l=void 0,Be.invalidateResolutionsOfFailedLookupLocations()&&pn()}function pn(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),we("Scheduling update"),s=e.setTimeout(Kn,250))}function An(){L.assert(!!C),r=2,pn()}function Kn(){s=void 0,m=!0,hi()}function hi(){switch(r){case 1:fp.logStartUpdateProgram("PartialConfigReload"),ri();break;case 2:fp.logStartUpdateProgram("FullConfigReload"),vn();break;default:fp.logStartUpdateProgram("SynchronizeProgram"),Rt();break}return fp.logStopUpdateProgram("Done"),_t()}function ri(){we("Reloading new file names and options"),L.assert(Y),L.assert(C),r=0,W=BO(Y.configFile.configFileSpecs,_a(ni(C),w),Y,_e,B),CJ(W,_a(C,w),Y.configFile.configFileSpecs,fe,Z)&&(U=!0),Rt()}function vn(){L.assert(C),we(`Reloading config file: ${C}`),r=0,re&&re.clearCache(),Ht(),x=!0,Rt(),Q(),G(Qt(C),Y,R,Hf.ExtendedConfigFile)}function Ht(){L.assert(C),En(RO(C,P,_e,g||(g=new Map),F,B))}function En(je){W=je.fileNames,Y=je.options,R=je.watchOptions,ie=je.projectReferences,$=je.wildcardDirectories,fe=XT(je).slice(),Z=FO(je.raw),U=!0}function dr(je){let Ge=Qt(je),kt=f?.get(Ge);if(kt){if(!kt.reloadLevel)return kt.parsedCommandLine;if(kt.parsedCommandLine&&kt.reloadLevel===1&&!e.getParsedCommandLine){we("Reloading new file names and options"),L.assert(Y);let ln=BO(kt.parsedCommandLine.options.configFile.configFileSpecs,_a(ni(je),w),Y,_e);return kt.parsedCommandLine={...kt.parsedCommandLine,fileNames:ln},kt.reloadLevel=void 0,kt.parsedCommandLine}}we(`Loading config file: ${je}`);let Kt=e.getParsedCommandLine?e.getParsedCommandLine(je):Cr(je);return kt?(kt.parsedCommandLine=Kt,kt.reloadLevel=void 0):(f||(f=new Map)).set(Ge,kt={parsedCommandLine:Kt}),Oe(je,Ge,kt),Kt}function Cr(je){let Ge=_e.onUnRecoverableConfigFileDiagnostic;_e.onUnRecoverableConfigFileDiagnostic=Ba;let kt=RO(je,void 0,_e,g||(g=new Map),F);return _e.onUnRecoverableConfigFileDiagnostic=Ge,kt}function Se(je){var Ge;let kt=Qt(je),Kt=f?.get(kt);Kt&&(f.delete(kt),Kt.watchedDirectories&&Tf(Kt.watchedDirectories,_m),(Ge=Kt.watcher)==null||Ge.close(),Fpe(kt,d))}function at(je,Ge,kt,Kt,ln,ir){return X(Ge,(ae,rt)=>kt(ae,rt,je),Kt,ln,ir)}function Tt(je,Ge,kt){ve(je,kt,Ge),Ge===2&&v.has(kt)&&Be.invalidateResolutionOfFile(kt),$n(kt),pn()}function ve(je,Ge,kt){re&&re.addOrDeleteFile(je,Ge,kt)}function nt(je){return f?.has(je)?B2:at(je,je,ce,500,R,Hf.MissingFile)}function ce(je,Ge,kt){ve(je,kt,Ge),Ge===0&&i.has(kt)&&(i.get(kt).close(),i.delete(kt),$n(kt),pn())}function Q(){$?kF(o||(o=new Map),new Map(Object.entries($)),ue):o&&Tf(o,_m)}function ue(je,Ge){return Ve(je,kt=>{L.assert(C),L.assert(Y);let Kt=Qt(kt);re&&re.addOrDeleteFileOrDirectory(kt,Kt),$n(Kt),!DF({watchedDirPath:Qt(je),fileOrDirectory:kt,fileOrDirectoryPath:Kt,configFileName:C,extraFileExtensions:B,options:Y,program:_t()||W,currentDirectory:w,useCaseSensitiveFileNames:A,writeLog:we,toPath:Qt})&&r!==2&&(r=1,pn())},Ge,R,Hf.WildcardDirectory)}function G(je,Ge,kt,Kt){L.assert(C),YK(je,Ge,d||(d=new Map),(ln,ir)=>X(ln,(ae,rt)=>{var Ot;ve(ln,ir,rt),g&&$K(g,ir,Qt);let Ke=(Ot=d.get(ir))==null?void 0:Ot.projects;Ke?.size&&Ke.forEach(oe=>{if(Qt(C)===oe)r=2;else{let pe=f?.get(oe);pe&&(pe.reloadLevel=2),Be.removeResolutionsFromProjectReferenceRedirects(oe)}pn()})},2e3,kt,Kt),Qt)}function Oe(je,Ge,kt){var Kt,ln,ir,ae,rt;kt.watcher||(kt.watcher=X(je,(Ot,Ke)=>{ve(je,Ge,Ke);let oe=f?.get(Ge);oe&&(oe.reloadLevel=2),Be.removeResolutionsFromProjectReferenceRedirects(Ge),pn()},2e3,((Kt=kt.parsedCommandLine)==null?void 0:Kt.watchOptions)||R,Hf.ConfigFileOfReferencedProject)),(ln=kt.parsedCommandLine)!=null&&ln.wildcardDirectories?kF(kt.watchedDirectories||(kt.watchedDirectories=new Map),new Map(Object.entries((ir=kt.parsedCommandLine)==null?void 0:ir.wildcardDirectories)),(Ot,Ke)=>{var oe;return Ve(Ot,pe=>{let z=Qt(pe);re&&re.addOrDeleteFileOrDirectory(pe,z),$n(z);let Te=f?.get(Ge);Te?.parsedCommandLine&&(DF({watchedDirPath:Qt(Ot),fileOrDirectory:pe,fileOrDirectoryPath:z,configFileName:je,options:Te.parsedCommandLine.options,program:Te.parsedCommandLine.fileNames,currentDirectory:w,useCaseSensitiveFileNames:A,writeLog:we,toPath:Qt})||Te.reloadLevel!==2&&(Te.reloadLevel=1,pn()))},Ke,((oe=kt.parsedCommandLine)==null?void 0:oe.watchOptions)||R,Hf.WildcardDirectoryOfReferencedProject)}):kt.watchedDirectories&&(Tf(kt.watchedDirectories,_m),kt.watchedDirectories=void 0),G(Ge,(ae=kt.parsedCommandLine)==null?void 0:ae.options,((rt=kt.parsedCommandLine)==null?void 0:rt.watchOptions)||R,Hf.ExtendedConfigOfReferencedProject)}}var N8e=gt({"src/compiler/watchPublic.ts"(){"use strict";fa(),fa()}});function Hq(e){return Gc(e,".json")?e:vi(e,"tsconfig.json")}var Wq,P8e=gt({"src/compiler/tsbuild.ts"(){"use strict";fa(),Wq=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(Wq||{})}});function M8e(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function zq(e,t){return M8e(e,t,()=>new Map)}function SN(e){return e.now?e.now():new Date}function YS(e){return!!e&&!!e.buildOrder}function ZF(e){return YS(e)?e.buildOrder:e}function Ame(e,t){return r=>{let i=t?`[${iE(EN(e),"\x1B[90m")}] `:`${EN(e)} - `;i+=`${sv(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function Cme(e,t,r,i){let o=Uq(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):Qv,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Ba,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Ba,o.reportDiagnostic=r||bN(e),o.reportSolutionBuilderStatus=i||Ame(e),o.now=ho(e,e.now),o}function F8e(e=xl,t,r,i,o){let s=Cme(e,t,r,i);return s.reportErrorSummary=o,s}function G8e(e=xl,t,r,i,o){let s=Cme(e,t,r,i),l=Fq(e,o);return jU(s,l),s}function B8e(e){let t={};return WO.forEach(r=>{fs(e,r.name)&&(t[r.name]=e[r.name])}),t}function U8e(e,t,r){return Xme(!1,e,t,r)}function V8e(e,t,r,i){return Xme(!0,e,t,r,i)}function j8e(e,t,r,i,o){let s=t,l=t,f=B8e(i),d=Bq(s,()=>A.projectCompilerOptions);YF(d),d.getParsedCommandLine=w=>$T(A,w,z_(A,w)),d.resolveModuleNameLiterals=ho(s,s.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=ho(s,s.resolveTypeReferenceDirectiveReferences),d.resolveModuleNames=ho(s,s.resolveModuleNames),d.resolveTypeReferenceDirectives=ho(s,s.resolveTypeReferenceDirectives),d.getModuleResolutionCache=ho(s,s.getModuleResolutionCache);let g,m;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(g=Y3(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(w,C,P,F,B)=>hN(w,C,P,F,B,s,g,cq),d.getModuleResolutionCache=()=>g),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(m=$3(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),d.resolveTypeReferenceDirectiveReferences=(w,C,P,F,B)=>hN(w,C,P,F,B,s,m,OF)),d.getBuildInfo=(w,C)=>Ume(A,w,z_(A,C),void 0);let{watchFile:v,watchDirectory:S,writeLog:x}=Gq(l,i),A={host:s,hostWithWatch:l,parseConfigFileHost:FF(s),write:ho(s,s.trace),options:i,baseCompilerOptions:f,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:d,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:m,buildOrder:void 0,readFileWithCache:w=>s.readFile(w),projectCompilerOptions:f,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:v,watchDirectory:S,writeLog:x};return A}function fd(e,t){return Ts(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function z_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=fd(e,t);return r.set(t,o),o}function Ime(e){return!!e.options}function H8e(e,t){let r=e.configFileCache.get(t);return r&&Ime(r)?r:void 0}function $T(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return Ime(o)?o:void 0;Fs("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:f,baseWatchOptions:d,extendedConfigCache:g,host:m}=e,v;return m.getParsedCommandLine?(v=m.getParsedCommandLine(t),v||(s=ps(_.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=S=>s=S,v=RO(t,f,l,g,d),l.onUnRecoverableConfigFileDiagnostic=Ba),i.set(r,v||s),Fs("SolutionBuilder::afterConfigFileParsing"),hf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),v}function U2(e,t){return Hq(Fy(e.compilerHost.getCurrentDirectory(),t))}function Lme(e,t){let r=new Map,i=new Map,o=[],s,l;for(let d of t)f(d);return l?{buildOrder:s||Je,circularDiagnostics:l}:s||Je;function f(d,g){let m=z_(e,d);if(i.has(m))return;if(r.has(m)){g||(l||(l=[])).push(ps(_.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
| `)));return}r.set(m,!0),o.push(d);let v=$T(e,d,m);if(v&&v.projectReferences)for(let S of v.projectReferences){let x=U2(e,S.path);f(x,g||S.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(d)}}function xN(e){return e.buildOrder||W8e(e)}function W8e(e){let t=Lme(e,e.rootNames.map(o=>U2(e,o)));e.resolvedConfigFilePaths.clear();let r=new Map(ZF(t).map(o=>[z_(e,o),!0])),i={onDeleteValue:Ba};return Oh(e.configFileCache,r,i),Oh(e.projectStatus,r,i),Oh(e.builderPrograms,r,i),Oh(e.diagnostics,r,i),Oh(e.projectPendingBuild,r,i),Oh(e.projectErrorsReported,r,i),Oh(e.buildInfoCache,r,i),Oh(e.outputTimeStamps,r,i),e.watch&&(Oh(e.allWatchedConfigFiles,r,{onDeleteValue:am}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),Oh(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(_m)}),Oh(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(am)}),Oh(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(am)})),e.buildOrder=t}function kme(e,t,r){let i=t&&U2(e,t),o=xN(e);if(YS(o))return o;if(i){let l=z_(e,i);if(Yc(o,d=>z_(e,d)===l)===-1)return}let s=i?Lme(e,[i]):o;return L.assert(!YS(s)),L.assert(!r||i!==void 0),L.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function Dme(e){e.cache&&Jq(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:g,getSourceFileWithCache:m,readFileWithCache:v}=pN(r,S=>fd(e,S),(...S)=>o.call(t,...S));e.readFileWithCache=v,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:f,originalCreateDirectory:d,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:o}}function Jq(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),e.cache=void 0}function wme(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Rme({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function Ome(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&iX(e,_.Starting_compilation_in_watch_mode),Dme(e),ZF(xN(e)).forEach(i=>e.projectPendingBuild.set(z_(e,i),0)),t&&t.throwIfCancellationRequested()}function Nme(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function z8e(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{jme(e,i,r),s=!1},done:()=>(s&&jme(e,i,r),Fs("SolutionBuilder::Timestamps only updates"),Nme(e,r))}}function Pme(e,t,r,i,o,s,l){let f=e===0?0:4,d,g,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>S(Ks),getProgram:()=>S(R=>R.getProgramOrUndefined()),getSourceFile:R=>S(ie=>ie.getSourceFile(R)),getSourceFiles:()=>x(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>x(ie=>ie.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>x(ie=>ie.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>x(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,ie)=>x($=>$.getSyntacticDiagnostics(R,ie)),getAllDependencies:R=>x(ie=>ie.getAllDependencies(R)),getSemanticDiagnostics:(R,ie)=>x($=>$.getSemanticDiagnostics(R,ie)),getSemanticDiagnosticsOfNextAffectedFile:(R,ie)=>S($=>$.getSemanticDiagnosticsOfNextAffectedFile&&$.getSemanticDiagnosticsOfNextAffectedFile(R,ie)),emit:(R,ie,$,fe,Z)=>{if(R||fe)return S(U=>{var re,le;return U.emit(R,ie,$,fe,Z||((le=(re=t.host).getCustomTransformers)==null?void 0:le.call(re,r)))});if(Y(2,$),f===5)return B(ie,$);if(f===3)return F(ie,$,Z)},done:v}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,ie)=>f!==4?m:W(R,ie),done:v};function v(R,ie,$){return Y(8,R,ie,$),Fs(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Nme(t,i)}function S(R){return Y(0),d&&R(d)}function x(R){return S(R)||Je}function A(){var R,ie;if(L.assert(d===void 0),t.options.dry){hu(t,_.A_non_dry_build_would_build_project_0,r),g=1,f=7;return}if(t.options.verbose&&hu(t,_.Building_project_0,r),s.fileNames.length===0){V2(t,i,XT(s)),g=0,f=7;return}let{host:$,compilerHost:fe}=t;t.projectCompilerOptions=s.options,(R=t.moduleResolutionCache)==null||R.update(s.options),(ie=t.typeReferenceDirectiveResolutionCache)==null||ie.update(s.options),d=$.createProgram(s.fileNames,s.options,fe,K8e(t,i,s),XT(s),s.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&on(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([Z,U])=>[t.host.realpath&&U?fd(t,t.host.realpath(Z)):Z,U])),t.builderPrograms.set(i,d)),f++}function w(R,ie,$){R.length?{buildResult:g,step:f}=Xq(t,i,d,s,R,ie,$):f++}function C(R){L.assertIsDefined(d),w([...d.getConfigFileParsingDiagnostics(),...d.getOptionsDiagnostics(R),...d.getGlobalDiagnostics(R),...d.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function P(R){w(L.checkDefined(d).getSemanticDiagnostics(void 0,R),16,"Semantic")}function F(R,ie,$){var fe,Z,U;L.assertIsDefined(d),L.assert(f===3);let re=d.saveEmitState(),le,_e=Ye=>(le||(le=[])).push(Ye),ge=[],{emitResult:X}=qF(d,_e,void 0,void 0,(Ye,_t,ct,Rt,We,qe)=>ge.push({name:Ye,text:_t,writeByteOrderMark:ct,data:qe}),ie,!1,$||((Z=(fe=t.host).getCustomTransformers)==null?void 0:Z.call(fe,r)));if(le)return d.restoreEmitState(re),{buildResult:g,step:f}=Xq(t,i,d,s,le,32,"Declaration file"),{emitSkipped:!0,diagnostics:X.diagnostics};let{host:Ve,compilerHost:we}=t,ke=(U=d.hasChangedEmitSignature)!=null&&U.call(d)?0:2,Pe=XA(),Ce=new Map,Ie=d.getCompilerOptions(),Be=NR(Ie),Ne,Le;return ge.forEach(({name:Ye,text:_t,writeByteOrderMark:ct,data:Rt})=>{let We=fd(t,Ye);Ce.set(fd(t,Ye),Ye),Rt?.buildInfo&&$q(t,Rt.buildInfo,i,Ie,ke);let qe=Rt?.differsOnlyInMap?$1(t.host,Ye):void 0;BI(R?{writeFile:R}:we,Pe,Ye,_t,ct),Rt?.differsOnlyInMap?t.host.setModifiedTime(Ye,qe):!Be&&t.watch&&(Ne||(Ne=Yq(t,i))).set(We,Le||(Le=SN(t.host)))}),q(Pe,Ce,ge.length?ge[0].name:JK(s,!Ve.useCaseSensitiveFileNames()),ke),X}function B(R,ie){L.assertIsDefined(d),L.assert(f===5);let $=d.emitBuildInfo((fe,Z,U,re,le,_e)=>{_e?.buildInfo&&$q(t,_e.buildInfo,i,d.getCompilerOptions(),2),R?R(fe,Z,U,re,le,_e):t.compilerHost.writeFile(fe,Z,U,re,le,_e)},ie);return $.diagnostics.length&&(CN(t,$.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...$.diagnostics]),g=64&g),$.emittedFiles&&t.write&&$.emittedFiles.forEach(fe=>Gme(t,s,fe)),qq(t,d,s),f=7,$}function q(R,ie,$,fe){let Z=R.getDiagnostics();return Z.length?({buildResult:g,step:f}=Xq(t,i,d,s,Z,64,"Emit"),Z):(t.write&&ie.forEach(U=>Gme(t,s,U)),Vme(t,s,i,_.Updating_unchanged_output_timestamps_of_project_0,ie),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:$}),qq(t,d,s),f=7,g=fe,Z)}function W(R,ie){var $,fe,Z,U;if(L.assert(e===1),t.options.dry){hu(t,_.A_non_dry_build_would_update_output_of_project_0,r),g=1,f=7;return}t.options.verbose&&hu(t,_.Updating_output_of_project_0,r);let{compilerHost:re}=t;t.projectCompilerOptions=s.options,(fe=($=t.host).beforeEmitBundle)==null||fe.call($,s);let le=Ppe(s,re,ke=>{let Pe=U2(t,ke.path);return $T(t,Pe,z_(t,Pe))},ie||((U=(Z=t.host).getCustomTransformers)==null?void 0:U.call(Z,r)));if(Ta(le))return hu(t,_.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,cl(t,le)),f=6,m=Pme(0,t,r,i,o,s,l);L.assert(!!le.length);let _e=XA(),ge=new Map,X=2,Ve=t.buildInfoCache.get(i).buildInfo||void 0;return le.forEach(({name:ke,text:Pe,writeByteOrderMark:Ce,data:Ie})=>{var Be,Ne;ge.set(fd(t,ke),ke),Ie?.buildInfo&&(((Be=Ie.buildInfo.program)==null?void 0:Be.outSignature)!==((Ne=Ve?.program)==null?void 0:Ne.outSignature)&&(X&=-3),$q(t,Ie.buildInfo,i,s.options,X)),BI(R?{writeFile:R}:re,_e,ke,Pe,Ce)}),{emitSkipped:!1,diagnostics:q(_e,ge,le[0].name,X)}}function Y(R,ie,$,fe){for(;f<=R&&f<8;){let Z=f;switch(f){case 0:A();break;case 1:C(ie);break;case 2:P(ie);break;case 3:F($,ie,fe);break;case 5:B($,ie);break;case 4:W($,fe);break;case 6:L.checkDefined(m).done(ie,$,fe),f=8;break;case 7:$8e(t,r,i,o,s,l,L.checkDefined(g)),f++;break;case 8:default:}L.assert(f>Z)}}}function J8e({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!XT(r).length||!NR(r.options)}function Mme(e,t,r){if(!e.projectPendingBuild.size||YS(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){let l=t[s],f=z_(e,l),d=e.projectPendingBuild.get(f);if(d===void 0)continue;r&&(r=!1,Qme(e,t));let g=$T(e,l,f);if(!g){Yme(e,f),o.delete(f);continue}d===2?(Jme(e,l,f,g),Kme(e,f,g),qme(e,l,f,g),nX(e,l,f,g),rX(e,l,f,g)):d===1&&(g.fileNames=BO(g.options.configFile.configFileSpecs,ni(l),g.options,e.parseConfigFileHost),CJ(g.fileNames,l,g.options.configFile.configFileSpecs,g.errors,FO(g.raw)),nX(e,l,f,g),rX(e,l,f,g));let m=eX(e,g,f);if(!i.force){if(m.type===1){n7(e,l,m),V2(e,f,XT(g)),o.delete(f),i.dry&&hu(e,_.Project_0_is_up_to_date,l);continue}if(m.type===2||m.type===15)return V2(e,f,XT(g)),{kind:2,status:m,project:l,projectPath:f,projectIndex:s,config:g}}if(m.type===12){n7(e,l,m),V2(e,f,XT(g)),o.delete(f),i.verbose&&hu(e,m.upstreamProjectBlocked?_.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,m.upstreamProjectName);continue}if(m.type===16){n7(e,l,m),V2(e,f,XT(g)),o.delete(f);continue}return{kind:J8e(e,m,g)?0:1,status:m,project:l,projectPath:f,projectIndex:s,config:g}}}function Fme(e,t,r){return n7(e,t.project,t.status),t.kind!==2?Pme(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):z8e(e,t.project,t.projectPath,t.config,r)}function Kq(e,t,r){let i=Mme(e,t,r);return i&&Fme(e,i,t)}function Gme({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function K8e({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;let s=t.get(i);return s||QF(o.options,r)}function qq(e,t,r){t?(e.write&&Rq(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function Xq(e,t,r,i,o,s,l){let f=r&&!Ss(r.getCompilerOptions());return V2(e,t,o),e.projectStatus.set(t,{type:0,reason:`${l} errors`}),f?{buildResult:s,step:5}:(qq(e,r,i),{buildResult:s,step:7})}function e7(e){return!!e.watcher}function Bme(e,t){let r=fd(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!e7(i))return i;if(i.modifiedTime)return i.modifiedTime}let o=$1(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function t7(e,t,r,i,o,s,l){let f=fd(e,t),d=e.filesWatched.get(f);if(d&&e7(d))d.callbacks.push(r);else{let g=e.watchFile(t,(m,v,S)=>{let x=L.checkDefined(e.filesWatched.get(f));L.assert(e7(x)),x.modifiedTime=S,x.callbacks.forEach(A=>A(m,v,S))},i,o,s,l);e.filesWatched.set(f,{callbacks:[r],watcher:g,modifiedTime:d})}return{close:()=>{let g=L.checkDefined(e.filesWatched.get(f));L.assert(e7(g)),g.callbacks.length===1?(e.filesWatched.delete(f),_m(g)):YD(g.callbacks,r)}}}function Yq(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function $q(e,t,r,i,o){let s=Jg(i),l=Qq(e,s,r),f=SN(e.host);l?(l.buildInfo=t,l.modifiedTime=f,o&2||(l.latestChangedDtsTime=f)):e.buildInfoCache.set(r,{path:fd(e,s),buildInfo:t,modifiedTime:f,latestChangedDtsTime:o&2?void 0:f})}function Qq(e,t,r){let i=fd(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function Ume(e,t,r,i){let o=fd(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),f=l?IF(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:f||!1,modifiedTime:i||Eh}),f}function Zq(e,t,r,i){let o=Bme(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function q8e(e,t,r){var i,o;if(!t.fileNames.length&&!FO(t.raw))return{type:16};let s,l=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(let $ of t.projectReferences){let fe=$L($),Z=z_(e,fe),U=$T(e,fe,Z),re=eX(e,U,Z);if(!(re.type===13||re.type===16)){if(re.type===0||re.type===12)return{type:12,upstreamProjectName:$.path,upstreamProjectBlocked:re.type===12};if(re.type!==1)return{type:11,upstreamProjectName:$.path};l||(s||(s=[])).push({ref:$,refStatus:re,resolvedRefPath:Z,resolvedConfig:U})}}}if(l)return{type:17};let{host:f}=e,d=Jg(t.options),g,m=ehe,v,S,x;if(d){let $=Qq(e,d,r);if(v=$?.modifiedTime||$1(f,d),v===Eh)return $||e.buildInfoCache.set(r,{path:fd(e,d),buildInfo:!1,modifiedTime:v}),{type:4,missingOutputFileName:d};let fe=Ume(e,d,r,v);if(!fe)return{type:5,fileName:d};if((fe.bundle||fe.program)&&fe.version!==Rf)return{type:14,version:fe.version};if(fe.program){if((i=fe.program.changeFileSet)!=null&&i.length||(t.options.noEmit?vt(fe.program.semanticDiagnosticsPerFile,ba):(o=fe.program.affectedFilesPendingEmit)!=null&&o.length))return{type:8,buildInfoFile:d};if(!t.options.noEmit&&G2(t.options,fe.program.options||{}))return{type:9,buildInfoFile:d};S=fe.program}m=v,g=d}let A,w=Zme,C=!1,P=new Set;for(let $ of t.fileNames){let fe=Bme(e,$);if(fe===Eh)return{type:0,reason:`${$} does not exist`};if(v&&v<fe){let Z,U;if(S){x||(x=Aq(S,d,f)),Z=x.fileInfos.get(fd(e,$));let re=Z?e.readFileWithCache($):void 0;U=re!==void 0?XF(f,re):void 0,Z&&Z===U&&(C=!0)}if(!Z||Z!==U)return{type:6,outOfDateOutputFileName:d,newerInputFileName:$}}fe>w&&(A=$,w=fe),S&&P.add(fd(e,$))}if(S){x||(x=Aq(S,d,f));for(let $ of x.roots)if(!P.has($))return{type:10,buildInfoFile:d,inputFile:$}}if(!d){let $=AF(t,!f.useCaseSensitiveFileNames()),fe=Yq(e,r);for(let Z of $){let U=fd(e,Z),re=fe?.get(U);if(re||(re=$1(e.host,Z),fe?.set(U,re)),re===Eh)return{type:4,missingOutputFileName:Z};if(re<w)return{type:6,outOfDateOutputFileName:Z,newerInputFileName:A};re<m&&(m=re,g=Z)}}let F=e.buildInfoCache.get(r),B=!1,q=!1,W;if(s)for(let{ref:$,refStatus:fe,resolvedConfig:Z,resolvedRefPath:U}of s){if(q=q||!!$.prepend,fe.newestInputFileTime&&fe.newestInputFileTime<=m)continue;if(F&&X8e(e,F,U))return{type:7,outOfDateOutputFileName:d,newerProjectName:$.path};let re=Y8e(e,Z.options,U);if(re&&re<=m){B=!0,W=$.path;continue}return L.assert(g!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:g,newerProjectName:$.path}}let Y=Zq(e,t.options.configFilePath,m,g);if(Y)return Y;let R=mn(t.options.configFile.extendedSourceFiles||Je,$=>Zq(e,$,m,g));if(R)return R;let ie=mn(e.lastCachedPackageJsonLookups.get(r)||Je,([$])=>Zq(e,$,m,g));return ie||(q&&B?{type:3,outOfDateOutputFileName:g,newerProjectName:W}:{type:B?2:C?15:1,newestInputFileTime:w,newestInputFileName:A,oldestOutputFileName:g})}function X8e(e,t,r){return e.buildInfoCache.get(r).path===t.path}function eX(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;Fs("SolutionBuilder::beforeUpToDateCheck");let o=q8e(e,t,r);return Fs("SolutionBuilder::afterUpToDateCheck"),hf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function Vme(e,t,r,i,o){if(t.options.noEmit)return;let s,l=Jg(t.options);if(l){o?.has(fd(e,l))||(e.options.verbose&&hu(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=SN(e.host)),Qq(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:f}=e,d=AF(t,!f.useCaseSensitiveFileNames()),g=Yq(e,r),m=g?new Set:void 0;if(!o||d.length!==o.size){let v=!!e.options.verbose;for(let S of d){let x=fd(e,S);o?.has(x)||(v&&(v=!1,hu(e,i,t.options.configFilePath)),f.setModifiedTime(S,s||(s=SN(e.host))),g&&(g.set(x,s),m.add(x)))}}g?.forEach((v,S)=>{!o?.has(S)&&!m.has(S)&&g.delete(S)})}function Y8e(e,t,r){if(!t.composite)return;let i=L.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(_a(i.buildInfo.program.latestChangedDtsFile,ni(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function jme(e,t,r){if(e.options.dry)return hu(e,_.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Vme(e,t,r,_.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:JK(t,!e.host.useCaseSensitiveFileNames())})}function $8e(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let f=i+1;f<s.length;f++){let d=s[f],g=z_(e,d);if(e.projectPendingBuild.has(g))continue;let m=$T(e,d,g);if(!(!m||!m.projectReferences))for(let v of m.projectReferences){let S=U2(e,v.path);if(z_(e,S)!==r)continue;let x=e.projectStatus.get(g);if(x)switch(x.type){case 1:if(l&2){v.prepend?e.projectStatus.set(g,{type:3,outOfDateOutputFileName:x.oldestOutputFileName,newerProjectName:t}):x.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(g,{type:7,outOfDateOutputFileName:x.type===3?x.outOfDateOutputFileName:x.oldestOutputFileName,newerProjectName:t});break;case 12:z_(e,U2(e,x.upstreamProjectName))===r&&wme(e,g);break}Rme(e,g,0);break}}}function Hme(e,t,r,i,o,s){Fs("SolutionBuilder::beforeBuild");let l=Q8e(e,t,r,i,o,s);return Fs("SolutionBuilder::afterBuild"),hf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function Q8e(e,t,r,i,o,s){let l=kme(e,t,s);if(!l)return 3;Ome(e,r);let f=!0,d=0;for(;;){let g=Kq(e,l,f);if(!g)break;f=!1,g.done(r,i,o?.(g.project)),e.diagnostics.has(g.projectPath)||d++}return Jq(e),$me(e,l),n6e(e,l),YS(l)?4:l.some(g=>e.diagnostics.has(z_(e,g)))?d?2:1:0}function Wme(e,t,r){Fs("SolutionBuilder::beforeClean");let i=Z8e(e,t,r);return Fs("SolutionBuilder::afterClean"),hf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Z8e(e,t,r){let i=kme(e,t,r);if(!i)return 3;if(YS(i))return CN(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let f of i){let d=z_(e,f),g=$T(e,f,d);if(g===void 0){Yme(e,d);continue}let m=AF(g,!s.useCaseSensitiveFileNames());if(!m.length)continue;let v=new Set(g.fileNames.map(S=>fd(e,S)));for(let S of m)v.has(fd(e,S))||s.fileExists(S)&&(l?l.push(S):(s.deleteFile(S),tX(e,d,0)))}return l&&hu(e,_.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(f=>`\r
| * ${f}`).join("")),0}function tX(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,wme(e,t),Rme(e,t,r),Dme(e)}function AN(e,t,r){e.reportFileChangeDetected=!0,tX(e,t,r),zme(e,250,!0)}function zme(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(e6e,t,e,r))}function e6e(e,t){Fs("SolutionBuilder::beforeBuild");let r=t6e(e,t);Fs("SolutionBuilder::afterBuild"),hf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&$me(e,r)}function t6e(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),iX(e,_.File_change_detected_Starting_incremental_compilation));let r=0,i=xN(e),o=Kq(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=Mme(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){zme(e,100,!1);return}Fme(e,s,i).done(),s.kind!==2&&r++}return Jq(e),i}function Jme(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,t7(e,t,()=>AN(e,r,2),2e3,i?.watchOptions,Hf.ConfigFile,t))}function Kme(e,t,r){YK(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>t7(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>AN(e,l,2))},2e3,r?.watchOptions,Hf.ExtendedConfigFile),i=>fd(e,i))}function qme(e,t,r,i){e.watch&&kF(zq(e.allWatchedWildcardDirectories,r),new Map(Object.entries(i.wildcardDirectories)),(o,s)=>e.watchDirectory(o,l=>{var f;DF({watchedDirPath:fd(e,o),fileOrDirectory:l,fileOrDirectoryPath:fd(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((f=H8e(e,r))==null?void 0:f.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>fd(e,d)})||AN(e,r,1)},s,i?.watchOptions,Hf.WildcardDirectory,t))}function nX(e,t,r,i){e.watch&&e2(zq(e.allWatchedInputFiles,r),p0(i.fileNames,o=>fd(e,o)),{createNewValue:(o,s)=>t7(e,s,()=>AN(e,r,0),250,i?.watchOptions,Hf.SourceFile,t),onDeleteValue:am})}function rX(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||e2(zq(e.allWatchedPackageJsonFiles,r),new Map(e.lastCachedPackageJsonLookups.get(r)),{createNewValue:(o,s)=>t7(e,o,()=>AN(e,r,0),2e3,i?.watchOptions,Hf.PackageJson,t),onDeleteValue:am})}function n6e(e,t){if(e.watchAllProjectsPending){Fs("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of ZF(t)){let i=z_(e,r),o=$T(e,r,i);Jme(e,r,i,o),Kme(e,i,o),o&&(qme(e,r,i,o),nX(e,r,i,o),rX(e,r,i,o))}Fs("SolutionBuilder::afterWatcherCreation"),hf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function r6e(e){Tf(e.allWatchedConfigFiles,am),Tf(e.allWatchedExtendedConfigFiles,_m),Tf(e.allWatchedWildcardDirectories,t=>Tf(t,_m)),Tf(e.allWatchedInputFiles,t=>Tf(t,am)),Tf(e.allWatchedPackageJsonFiles,t=>Tf(t,am))}function Xme(e,t,r,i,o){let s=j8e(e,t,r,i,o);return{build:(l,f,d,g)=>Hme(s,l,f,d,g),clean:l=>Wme(s,l),buildReferences:(l,f,d,g)=>Hme(s,l,f,d,g,!0),cleanReferences:l=>Wme(s,l,!0),getNextInvalidatedProject:l=>(Ome(s,l),Kq(s,xN(s),!1)),getBuildOrder:()=>xN(s),getUpToDateStatusOfProject:l=>{let f=U2(s,l),d=z_(s,f);return eX(s,$T(s,f,d),d)},invalidateProject:(l,f)=>tX(s,l,f||0),close:()=>r6e(s)}}function cl(e,t){return rI(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function hu(e,t,...r){e.host.reportSolutionBuilderStatus(ps(t,...r))}function iX(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,ps(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function CN({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function V2(e,t,r){CN(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function Yme(e,t){V2(e,t,[e.configFileCache.get(t)])}function $me(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];YS(t)?(Qme(e,t.buildOrder),CN(e,t.circularDiagnostics),r&&(o+=JF(t.circularDiagnostics)),r&&(s=[...s,...KF(t.circularDiagnostics)])):(t.forEach(l=>{let f=z_(e,l);e.projectErrorsReported.has(f)||CN(e,i.get(f)||Je)}),r&&i.forEach(l=>o+=JF(l)),r&&i.forEach(l=>[...s,...KF(l)])),e.watch?iX(e,wq(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function Qme(e,t){e.options.verbose&&hu(e,_.Projects_in_this_build_Colon_0,t.map(r=>`\r
| * `+cl(e,r)).join(""))}function i6e(e,t,r){switch(r.type){case 6:return hu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cl(e,t),cl(e,r.outOfDateOutputFileName),cl(e,r.newerInputFileName));case 7:return hu(e,_.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,cl(e,t),cl(e,r.outOfDateOutputFileName),cl(e,r.newerProjectName));case 4:return hu(e,_.Project_0_is_out_of_date_because_output_file_1_does_not_exist,cl(e,t),cl(e,r.missingOutputFileName));case 5:return hu(e,_.Project_0_is_out_of_date_because_there_was_error_reading_file_1,cl(e,t),cl(e,r.fileName));case 8:return hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,cl(e,t),cl(e,r.buildInfoFile));case 9:return hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,cl(e,t),cl(e,r.buildInfoFile));case 10:return hu(e,_.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,cl(e,t),cl(e,r.buildInfoFile),cl(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return hu(e,_.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,cl(e,t),cl(e,r.newestInputFileName||""),cl(e,r.oldestOutputFileName||""));break;case 3:return hu(e,_.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,cl(e,t),cl(e,r.newerProjectName));case 2:return hu(e,_.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,cl(e,t));case 15:return hu(e,_.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,cl(e,t));case 11:return hu(e,_.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,cl(e,t),cl(e,r.upstreamProjectName));case 12:return hu(e,r.upstreamProjectBlocked?_.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_.Project_0_can_t_be_built_because_its_dependency_1_has_errors,cl(e,t),cl(e,r.upstreamProjectName));case 0:return hu(e,_.Failed_to_parse_file_0_Colon_1,cl(e,t),r.reason);case 14:return hu(e,_.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,cl(e,t),r.version,Rf);case 17:return hu(e,_.Project_0_is_being_forcibly_rebuilt,cl(e,t));case 16:case 13:break;default:}}function n7(e,t,r){e.options.verbose&&i6e(e,t,r)}var Zme,ehe,aX,a6e=gt({"src/compiler/tsbuildPublic.ts"(){"use strict";fa(),fa(),E0(),Zme=new Date(-864e13),ehe=new Date(864e13),aX=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(aX||{})}}),fa=gt({"src/compiler/_namespaces/ts.ts"(){"use strict";gke(),Gke(),Bke(),Xke(),Qke(),Zke(),uDe(),noe(),EDe(),kDe(),DDe(),PDe(),nwe(),ERe(),TRe(),SRe(),xRe(),MRe(),URe(),VRe(),aOe(),GOe(),BOe(),YOe(),SNe(),ZNe(),aPe(),oPe(),gPe(),SPe(),RPe(),BPe(),QPe(),ZPe(),eMe(),oMe(),sMe(),cMe(),lMe(),uMe(),dMe(),fMe(),_Me(),pMe(),mMe(),hMe(),gMe(),yMe(),vMe(),EMe(),TMe(),SMe(),xMe(),AMe(),CMe(),RMe(),GMe(),XMe(),QMe(),i8e(),a8e(),o8e(),E8e(),x8e(),C8e(),w8e(),N8e(),P8e(),a6e(),dK(),E0()}});function the(e,t){return new r_(zD(t,`ts${Sg}`)||zD(t,"latest")).compareTo(e.version)<=0}function nhe(e){return uX.has(e)?"node":e}function o6e(e,t){let r=OO(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function s6e(e,t){var r;let i=OO(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function c6e(e,t,r,i,o,s,l,f,d,g){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=Zi(r,q=>{let W=So(q);if(ES(W))return W});let v=[];l.include&&P(l.include,"Explicitly included types");let S=l.exclude||[];if(!g.types){let q=new Set(r.map(ni));q.add(i),q.forEach(W=>{F(W,"bower.json","bower_components",v),F(W,"package.json","node_modules",v)})}if(l.disableFilenameBasedTypeAcquisition||B(r),f){let q=fA(f.map(nhe),z1,su);P(q,"Inferred typings from unresolved imports")}s.forEach((q,W)=>{let Y=d.get(W);m.has(W)&&m.get(W)===void 0&&Y!==void 0&&the(q,Y)&&m.set(W,q.typingLocation)});for(let q of S)m.delete(q)&&t&&t(`Typing for ${q} is in exclude list, will be ignored.`);let x=[],A=[];m.forEach((q,W)=>{q!==void 0?A.push(q):x.push(W)});let w={cachedTypingPaths:A,newTypingNames:x,filesToWatch:v};return t&&t(`Result: ${JSON.stringify(w)}`),w;function C(q){m.has(q)||m.set(q,void 0)}function P(q,W){t&&t(`${W}: ${JSON.stringify(q)}`),mn(q,C)}function F(q,W,Y,R){let ie=vi(q,W),$,fe;e.fileExists(ie)&&(R.push(ie),$=OO(ie,le=>e.readFile(le)).config,fe=Uo([$.dependencies,$.devDependencies,$.optionalDependencies,$.peerDependencies],bh),P(fe,`Typing names in '${ie}' dependencies`));let Z=vi(q,Y);if(R.push(Z),!e.directoryExists(Z))return;let U=[],re=fe?fe.map(le=>vi(Z,le,W)):e.readDirectory(Z,[".json"],void 0,void 0,3).filter(le=>{if(Hl(le)!==W)return!1;let _e=Ou(So(le)),ge=_e[_e.length-3][0]==="@";return ge&&n_(_e[_e.length-4])===Y||!ge&&n_(_e[_e.length-3])===Y});t&&t(`Searching for typing names in ${Z}; all files: ${JSON.stringify(re)}`);for(let le of re){let _e=So(le),X=OO(_e,we=>e.readFile(we)).config;if(!X.name)continue;let Ve=X.types||X.typings;if(Ve){let we=_a(Ve,ni(_e));e.fileExists(we)?(t&&t(` Package '${X.name}' provides its own types.`),m.set(X.name,we)):t&&t(` Package '${X.name}' provides its own types but they are missing.`)}else U.push(X.name)}P(U," Found package names")}function B(q){let W=Zi(q,R=>{if(!ES(R))return;let ie=ld(n_(Hl(R))),$=Lae(ie);return o.get($)});W.length&&P(W,"Inferred typings from file names"),vt(q,R=>Gc(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),C("react"))}}function l6e(e){return oX(e,!0)}function oX(e,t){if(!e)return 1;if(e.length>fX)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=oX(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=oX(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function u6e(e,t){return typeof e=="object"?rhe(t,e.result,e.name,e.isScopeName):rhe(t,e,t,!1)}function rhe(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${fX} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return L.fail();default:throw L.assertNever(t)}}var sX,cX,lX,uX,dX,fX,d6e=gt({"src/jsTyping/jsTyping.ts"(){"use strict";r7(),sX=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],cX=sX.map(e=>`node:${e}`),lX=[...sX,...cX],uX=new Set(lX),dX=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(dX||{}),fX=214}}),QT={};Mo(QT,{NameValidationResult:()=>dX,discoverTypings:()=>c6e,isTypingUpToDate:()=>the,loadSafeList:()=>o6e,loadTypesMap:()=>s6e,nodeCoreModuleList:()=>lX,nodeCoreModules:()=>uX,nonRelativeModuleNameForTypingCache:()=>nhe,prefixedNodeCoreModuleList:()=>cX,renderPackageNameValidationFailure:()=>u6e,validatePackageName:()=>l6e});var f6e=gt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";d6e()}});function _6e(e){return xl.args.indexOf(e)>=0}function p6e(e){let t=xl.args.indexOf(e);return t>=0&&t<xl.args.length-1?xl.args[t+1]:void 0}function m6e(){let e=new Date;return`${J1(e.getHours().toString(),2,"0")}:${J1(e.getMinutes().toString(),2,"0")}:${J1(e.getSeconds().toString(),2,"0")}.${J1(e.getMilliseconds().toString(),3,"0")}`}var ihe,ahe,ohe,she,che,lhe,uhe,_X,h6e=gt({"src/jsTyping/shared.ts"(){"use strict";r7(),ihe="action::set",ahe="action::invalidate",ohe="action::packageInstalled",she="event::typesRegistry",che="event::beginInstallTypes",lhe="event::endInstallTypes",uhe="event::initializationFailed",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(_X||(_X={}))}}),g6e=gt({"src/jsTyping/types.ts"(){"use strict"}}),dhe={};Mo(dhe,{ActionInvalidate:()=>ahe,ActionPackageInstalled:()=>ohe,ActionSet:()=>ihe,Arguments:()=>_X,EventBeginInstallTypes:()=>che,EventEndInstallTypes:()=>lhe,EventInitializationFailed:()=>uhe,EventTypesRegistry:()=>she,findArgument:()=>p6e,hasArgument:()=>_6e,nowString:()=>m6e});var y6e=gt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";h6e(),g6e()}}),r7=gt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";fa(),f6e(),y6e()}});function fhe(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
| `,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0}}var pX,mX,hX,gX,Cp,yX,vX,bX,EX,TX,SX,xX,_he,IN,AX,CX,IX,LX,kX,DX,wX,RX,OX,v6e=gt({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(pX||(pX={})),mX=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(mX||{}),hX=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(hX||{}),gX=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(gX||{}),Cp={},yX=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(yX||{}),vX=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(vX||{}),bX=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(bX||{}),EX=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(EX||{}),TX=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(TX||{}),SX=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(SX||{}),xX=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(xX||{}),_he=fhe(`
| `),IN=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(IN||{}),AX=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(AX||{}),CX=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(CX||{}),IX=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(IX||{}),LX=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(LX||{}),kX=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(kX||{}),DX=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(DX||{}),wX=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(wX||{}),RX=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(RX||{}),OX=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(OX||{})}});function LN(e){switch(e.kind){case 257:return Yn(e)&&Ij(e)?7:1;case 166:case 205:case 169:case 168:case 299:case 300:case 171:case 170:case 173:case 174:case 175:case 259:case 215:case 216:case 295:case 288:return 1;case 165:case 261:case 262:case 184:return 2;case 349:return e.name===void 0?3:2;case 302:case 260:return 3;case 264:return lu(e)||Gh(e)===1?5:4;case 263:case 272:case 273:case 268:case 269:case 274:case 275:return 7;case 308:return 5}return 7}function ZT(e){e=zX(e);let t=e.parent;return e.kind===308?1:pc(t)||Mu(t)||um(t)||$u(t)||lm(t)||Nl(t)&&e===t.name?7:i7(e)?b6e(e):Rh(e)?LN(t):Cd(e)&&jn(e,Kp(IL,iS,gb))?7:x6e(e)?2:E6e(e)?4:_c(t)?(L.assert(H_(t.parent)),2):mb(t)?3:1}function b6e(e){let t=e.kind===163?e:Yu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===268?7:4}function i7(e){for(;e.parent.kind===163;)e=e.parent;return GA(e.parent)&&e.parent.moduleReference===e}function E6e(e){return T6e(e)||S6e(e)}function T6e(e){let t=e,r=!0;if(t.parent.kind===163){for(;t.parent&&t.parent.kind===163;)t=t.parent;r=t.right===e}return t.parent.kind===180&&!r}function S6e(e){let t=e,r=!0;if(t.parent.kind===208){for(;t.parent&&t.parent.kind===208;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===230&&t.parent.parent.kind===294){let i=t.parent.parent.parent;return i.kind===260&&t.parent.parent.token===117||i.kind===261&&t.parent.parent.token===94}return!1}function x6e(e){switch(zI(e)&&(e=e.parent),e.kind){case 108:return!Dh(e);case 194:return!0}switch(e.parent.kind){case 180:return!0;case 202:return!e.parent.isTypeOf;case 230:return Gm(e.parent)}return!1}function NX(e,t=!1,r=!1){return ek(e,Pa,a7,t,r)}function ZL(e,t=!1,r=!1){return ek(e,z0,a7,t,r)}function PX(e,t=!1,r=!1){return ek(e,Ih,a7,t,r)}function phe(e,t=!1,r=!1){return ek(e,PT,A6e,t,r)}function mhe(e,t=!1,r=!1){return ek(e,du,a7,t,r)}function hhe(e,t=!1,r=!1){return ek(e,Au,C6e,t,r)}function a7(e){return e.expression}function A6e(e){return e.tag}function C6e(e){return e.tagName}function ek(e,t,r,i,o){let s=i?ghe(e):o7(e);return o&&(s=ql(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function o7(e){return j2(e)?e.parent:e}function ghe(e){return j2(e)||BX(e)?e.parent:e}function s7(e,t){for(;e;){if(e.kind===253&&e.label.escapedText===t)return e.label;e=e.parent}}function kN(e,t){return br(e.expression)?e.expression.name.text===t:!1}function DN(e){var t;return Re(e)&&((t=zr(e.parent,hI))==null?void 0:t.label)===e}function MX(e){var t;return Re(e)&&((t=zr(e.parent,J0))==null?void 0:t.label)===e}function FX(e){return MX(e)||DN(e)}function GX(e){var t;return((t=zr(e.parent,EI))==null?void 0:t.tagName)===e}function yhe(e){var t;return((t=zr(e.parent,Yu))==null?void 0:t.right)===e}function j2(e){var t;return((t=zr(e.parent,br))==null?void 0:t.name)===e}function BX(e){var t;return((t=zr(e.parent,Vs))==null?void 0:t.argumentExpression)===e}function UX(e){var t;return((t=zr(e.parent,Tc))==null?void 0:t.name)===e}function VX(e){var t;return Re(e)&&((t=zr(e.parent,Ia))==null?void 0:t.name)===e}function c7(e){switch(e.parent.kind){case 169:case 168:case 299:case 302:case 171:case 170:case 174:case 175:case 264:return sa(e.parent)===e;case 209:return e.parent.argumentExpression===e;case 164:return!0;case 198:return e.parent.parent.kind===196;default:return!1}}function vhe(e){return ab(e.parent.parent)&&wI(e.parent.parent)===e}function e1(e){for(Ff(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 171:case 170:case 259:case 215:case 174:case 175:case 260:case 261:case 263:case 264:return e}}}function aE(e){switch(e.kind){case 308:return Lc(e)?"module":"script";case 264:return"module";case 260:case 228:return"class";case 261:return"interface";case 262:case 341:case 349:return"type";case 263:return"enum";case 257:return t(e);case 205:return t(nm(e));case 216:case 259:case 215:return"function";case 174:return"getter";case 175:return"setter";case 171:case 170:return"method";case 299:let{initializer:r}=e;return Ia(r)?"method":"property";case 169:case 168:case 300:case 301:return"property";case 178:return"index";case 177:return"construct";case 176:return"call";case 173:case 172:return"constructor";case 165:return"type parameter";case 302:return"enum member";case 166:return Mr(e,16476)?"property":"parameter";case 268:case 273:case 278:case 271:case 277:return"alias";case 223:let i=ic(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=aE(o);return l===""?"const":l;case 3:return ms(o)?"method":"property";case 4:return"property";case 5:return ms(o)?"method":"property";case 6:return"local class";default:return""}case 79:return lm(e.parent)?"alias":"";case 274:let s=aE(e.expression);return s===""?"const":s;default:return""}function t(r){return kh(r)?"const":II(r)?"let":"var"}}function H2(e){switch(e.kind){case 108:return!0;case 79:return rW(e)&&e.parent.kind===166;default:return!1}}function Wf(e,t){let r=Sh(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function Od(e,t){return jX(e.pos,e.end,t)}function bhe(e,t){return RN(e,t.pos)&&RN(e,t.end)}function wN(e,t){return e.pos<=t&&t<=e.end}function RN(e,t){return e.pos<t&&t<e.end}function jX(e,t,r){return e<=r.pos&&t>=r.end}function ON(e,t,r){return e.pos<=t&&e.end>=r}function tk(e,t,r){return l7(e.pos,e.end,t,r)}function HX(e,t,r,i){return l7(e.getStart(t),e.end,r,i)}function l7(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return o<s}function WX(e,t,r){return L.assert(e.pos<=t),t<e.end||!v_(e,r)}function v_(e,t){if(e===void 0||rc(e))return!1;switch(e.kind){case 260:case 261:case 263:case 207:case 203:case 184:case 238:case 265:case 266:case 272:case 276:return u7(e,19,t);case 295:return v_(e.block,t);case 211:if(!e.arguments)return!0;case 210:case 214:case 193:return u7(e,21,t);case 181:case 182:return v_(e.type,t);case 173:case 174:case 175:case 259:case 215:case 171:case 170:case 177:case 176:case 216:return e.body?v_(e.body,t):e.type?v_(e.type,t):NN(e,21,t);case 264:return!!e.body&&v_(e.body,t);case 242:return e.elseStatement?v_(e.elseStatement,t):v_(e.thenStatement,t);case 241:return v_(e.expression,t)||NN(e,26,t);case 206:case 204:case 209:case 164:case 186:return u7(e,23,t);case 178:return e.type?v_(e.type,t):NN(e,23,t);case 292:case 293:return!1;case 245:case 246:case 247:case 244:return v_(e.statement,t);case 243:return NN(e,115,t)?u7(e,21,t):v_(e.statement,t);case 183:return v_(e.exprName,t);case 218:case 217:case 219:case 226:case 227:return v_(e.expression,t);case 212:return v_(e.template,t);case 225:let i=Os(e.templateSpans);return v_(i,t);case 236:return Pf(e.literal);case 275:case 269:return Pf(e.moduleSpecifier);case 221:return v_(e.operand,t);case 223:return v_(e.right,t);case 224:return v_(e.whenFalse,t);default:return!0}}function u7(e,t,r){let i=e.getChildren(r);if(i.length){let o=To(i);if(o.kind===t)return!0;if(o.kind===26&&i.length!==1)return i[i.length-2].kind===t}return!1}function Ehe(e){let t=d7(e);if(!t)return;let r=t.getChildren();return{listItemIndex:DA(r,e),list:t}}function NN(e,t,r){return!!Yo(e,t,r)}function Yo(e,t,r){return wr(e.getChildren(r),i=>i.kind===t)}function d7(e){let t=wr(e.parent.getChildren(),r=>A2(r)&&Od(r,e));return L.assert(!t||ya(t.getChildren(),e)),t}function The(e){return e.kind===88}function I6e(e){return e.kind===84}function L6e(e){return e.kind===98}function k6e(e){if(zl(e))return e.name;if(sl(e)){let t=e.modifiers&&wr(e.modifiers,The);if(t)return t}if(_u(e)){let t=wr(e.getChildren(),I6e);if(t)return t}}function D6e(e){if(zl(e))return e.name;if(Jc(e)){let t=wr(e.modifiers,The);if(t)return t}if(ms(e)){let t=wr(e.getChildren(),L6e);if(t)return t}}function w6e(e){let t;return jn(e,r=>(bi(r)&&(t=r),!Yu(r.parent)&&!bi(r.parent)&&!_T(r.parent))),t}function f7(e,t){if(e.flags&8388608)return;let r=w7(e,t);if(r)return r;let i=w6e(e);return i&&t.getTypeAtLocation(i)}function R6e(e,t){if(!t)switch(e.kind){case 260:case 228:return k6e(e);case 259:case 215:return D6e(e);case 173:return e}if(zl(e))return e.name}function She(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(jg(e.importClause.namedBindings)){let r=Wp(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(nv(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function xhe(e,t){if(e.exportClause){if(h_(e.exportClause))return Wp(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(qm(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function O6e(e){if(e.types.length===1)return e.types[0].expression}function Ahe(e,t){let{parent:r}=e;if(Ha(e)&&(t||e.kind!==88)?g_(r)&&ya(r.modifiers,e):e.kind===84?sl(r)||_u(e):e.kind===98?Jc(r)||ms(e):e.kind===118?ku(r):e.kind===92?hb(r):e.kind===154?Ep(r):e.kind===143||e.kind===142?Tc(r):e.kind===100?Nl(r):e.kind===137?p_(r):e.kind===151&&Sf(r)){let i=R6e(r,t);if(i)return i}if((e.kind===113||e.kind===85||e.kind===119)&&pu(r)&&r.declarations.length===1){let i=r.declarations[0];if(Re(i.name))return i.name}if(e.kind===154){if(lm(r)&&r.isTypeOnly){let i=She(r.parent,t);if(i)return i}if(Il(r)&&r.isTypeOnly){let i=xhe(r,t);if(i)return i}}if(e.kind===128){if($u(r)&&r.propertyName||Mu(r)&&r.propertyName||nv(r)||qm(r))return r.name;if(Il(r)&&r.exportClause&&qm(r.exportClause))return r.exportClause.name}if(e.kind===100&&gl(r)){let i=She(r,t);if(i)return i}if(e.kind===93){if(Il(r)){let i=xhe(r,t);if(i)return i}if(pc(r))return ql(r.expression)}if(e.kind===147&&um(r))return r.expression;if(e.kind===158&&(gl(r)||Il(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===94||e.kind===117)&&dd(r)&&r.token===e.kind){let i=O6e(r);if(i)return i}if(e.kind===94){if(_c(r)&&r.constraint&&m_(r.constraint))return r.constraint.typeName;if(m2(r)&&m_(r.extendsType))return r.extendsType.typeName}if(e.kind===138&&h2(r))return r.typeParameter.name;if(e.kind===101&&_c(r)&&EL(r.parent))return r.name;if(e.kind===141&&RS(r)&&r.operator===141&&m_(r.type))return r.type.typeName;if(e.kind===146&&RS(r)&&r.operator===146&&wz(r.type)&&m_(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===103&&z0(r)||e.kind===114&&NS(r)||e.kind===112&&y2(r)||e.kind===133&&v2(r)||e.kind===125&&f3(r)||e.kind===89&&Gue(r))&&r.expression)return ql(r.expression);if((e.kind===101||e.kind===102)&&ar(r)&&r.operatorToken===e)return ql(r.right);if(e.kind===128&&fO(r)&&m_(r.type))return r.type.typeName;if(e.kind===101&&Mz(r)||e.kind===162&&_O(r))return ql(r.expression)}return e}function zX(e){return Ahe(e,!1)}function _7(e){return Ahe(e,!0)}function ef(e,t){return nk(e,t,r=>c_(r)||Xu(r.kind)||pi(r))}function nk(e,t,r){return Che(e,t,!1,r,!1)}function Vi(e,t){return Che(e,t,!0,void 0,!1)}function Che(e,t,r,i,o){let s=e,l;e:for(;;){let d=s.getChildren(e),g=j1(d,t,(m,v)=>v,(m,v)=>{let S=d[m].getEnd();if(S<t)return-1;let x=r?d[m].getFullStart():d[m].getStart(e,!0);return x>t?1:f(d[m],x,S)?d[m-1]&&f(d[m-1])?1:0:i&&x===t&&d[m-1]&&d[m-1].getEnd()===t&&f(d[m-1])?1:-1});if(l)return l;if(g>=0&&d[g]){s=d[g];continue e}return s}function f(d,g,m){if(m??(m=d.getEnd()),m<t||(g??(g=r?d.getFullStart():d.getStart(e,!0)),g>t))return!1;if(t<m||t===m&&(d.kind===1||o))return!0;if(i&&m===t){let v=el(t,e,d);if(v&&i(v))return l=v,!0}return!1}}function Ihe(e,t){let r=Vi(e,t);for(;PN(r);){let i=t1(r,r.parent,e);if(!i)return;r=i}return r}function p7(e,t){let r=Vi(e,t);return Z1(r)&&t>r.getStart(e)&&t<r.getEnd()?r:el(t,e)}function t1(e,t,r){return i(t);function i(o){return Z1(o)&&o.pos===e.end?o:ks(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&$X(s,r)?i(s):void 0)}}function el(e,t,r,i){let o=s(r||t);return L.assert(!(o&&PN(o))),o;function s(l){if(Lhe(l)&&l.kind!==1)return l;let f=l.getChildren(t),d=j1(f,e,(m,v)=>v,(m,v)=>e<f[m].end?!f[m-1]||e>=f[m-1].end?0:1:-1);if(d>=0&&f[d]){let m=f[d];if(e<m.end)if(m.getStart(t,!i)>=e||!$X(m,t)||PN(m)){let x=KX(f,d,t,l.kind);return x&&JX(x,t)}else return s(m)}L.assert(r!==void 0||l.kind===308||l.kind===1||qj(l));let g=KX(f,f.length,t,l.kind);return g&&JX(g,t)}}function Lhe(e){return Z1(e)&&!PN(e)}function JX(e,t){if(Lhe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=KX(r,r.length,t,e.kind);return i&&JX(i,t)}function KX(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(PN(s))o===0&&(i===11||i===282)&&L.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if($X(e[o],r))return e[o]}}function n1(e,t,r=el(t,e)){if(r&&Fj(r)){let i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function khe(e,t){let r=Vi(e,t);return r?!!(r.kind===11||r.kind===29&&r.parent.kind===11||r.kind===29&&r.parent.kind===291||r&&r.kind===19&&r.parent.kind===291||r.kind===29&&r.parent.kind===284):!1}function PN(e){return CS(e)&&e.containsOnlyTriviaWhiteSpaces}function qX(e,t){let r=Vi(e,t);return Hy(r.kind)&&t>r.getStart(e)}function Dhe(e,t){let r=Vi(e,t);return!!(CS(r)||r.kind===18&&AL(r.parent)&&Hg(r.parent.parent)||r.kind===29&&Au(r.parent)&&Hg(r.parent.parent))}function m7(e,t){function r(i){for(;i;)if(i.kind>=282&&i.kind<=291||i.kind===11||i.kind===29||i.kind===31||i.kind===79||i.kind===19||i.kind===18||i.kind===43)i=i.parent;else if(i.kind===281){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Vi(e,t))}function h7(e,t,r){let i=Xa(e.kind),o=Xa(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){let g=el(l+1,r);if(g&&g.kind===t)return g}let f=e.kind,d=0;for(;;){let g=el(e.getFullStart(),r);if(!g)return;if(e=g,e.kind===t){if(d===0)return e;d--}else e.kind===f&&d++}}function whe(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function MN(e,t,r){let i=YX(e,t);return i!==void 0&&(Gm(i.called)||XX(i.called,i.nTypeArguments,r).length!==0||MN(i.called,t,r))}function XX(e,t,r){let i=r.getTypeAtLocation(e);return Jl(e.parent)&&(i=whe(i,pI(e.parent),!0)),(z0(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function YX(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 29:if(r=el(r.getFullStart(),t),r&&r.kind===28&&(r=el(r.getFullStart(),t)),!r||!Re(r))return;if(!i)return Rh(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=h7(r,18,t),!r)return;break;case 21:if(r=h7(r,20,t),!r)return;break;case 23:if(r=h7(r,22,t),!r)return;break;case 27:o++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(bi(r))break;return}r=el(r.getFullStart(),t)}}function Kg(e,t,r){return tl.getRangeOfEnclosingComment(e,t,void 0,r)}function Rhe(e,t){let r=Vi(e,t);return!!jn(r,dm)}function $X(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function rk(e,t=0){let r=[],i=Kl(e)?Tj(e)&~t:0;return i&8&&r.push("private"),i&16&&r.push("protected"),i&4&&r.push("public"),(i&32||oc(e))&&r.push("static"),i&256&&r.push("abstract"),i&1&&r.push("export"),i&8192&&r.push("deprecated"),e.flags&16777216&&r.push("declare"),e.kind===274&&r.push("export"),r.length>0?r.join(","):""}function Ohe(e){if(e.kind===180||e.kind===210)return e.typeArguments;if(Ia(e)||e.kind===260||e.kind===261)return e.typeParameters}function g7(e){return e===2||e===3}function QX(e){return!!(e===10||e===13||Hy(e))}function Nhe(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&t[0].flags&4&&r.isEmptyAnonymousObjectType(t[1])}function Phe(e){return 18<=e&&e<=78}function FN(e,t,r){return Hy(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function ZX(e){switch(e){case 123:case 121:case 122:return!0}return!1}function Mhe(e){let t=VU(e);return xJ(t,e&&e.configFile),t}function qg(e){return!!((e.kind===206||e.kind===207)&&(e.parent.kind===223&&e.parent.left===e&&e.parent.operatorToken.kind===63||e.parent.kind===247&&e.parent.initializer===e||qg(e.parent.kind===299?e.parent.parent:e.parent)))}function Fhe(e,t){return Bhe(e,t,!0)}function Ghe(e,t){return Bhe(e,t,!1)}function Bhe(e,t,r){let i=Kg(e,t,void 0);return!!i&&r===bge.test(e.text.substring(i.pos,i.end))}function eY(e){if(e)switch(e.kind){case 10:case 14:return tY(e);default:return Du(e)}}function Du(e,t,r){return Wc(e.getStart(t),(r||e).getEnd())}function tY(e){if(!e.isUnterminated)return Wc(e.getStart()+1,e.getEnd()-1)}function nY(e,t){return Gf(e.getStart(t),e.end)}function lv(e){return Wc(e.pos,e.end)}function y7(e){return Gf(e.start,e.start+e.length)}function v7(e,t,r){return GN(il(e,t),r)}function GN(e,t){return{span:e,newText:t}}function ik(e){return ya(K7,e)}function rY(e){return e.kind===154}function b7(e){return rY(e)||Re(e)&&e.text==="type"}function BN(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function W2(){let e=[];return t=>{let r=zo(t);return!e[r]&&(e[r]=!0)}}function E7(e){return e.getText(0,e.getLength())}function UN(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function iY(e){return e.isTypeParameter()&&e.getConstraint()||e}function VN(e){return e.kind===164?yf(e.expression)?e.expression.text:void 0:pi(e)?vr(e):l_(e)}function Uhe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function Vhe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function aY(e){return!!e.module||Do(e)>=2||!!e.noEmit}function $S(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ho(t,t.readFile),useCaseSensitiveFileNames:ho(t,t.useCaseSensitiveFileNames),getSymlinkCache:ho(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ho(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ho(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:ho(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function oY(e,t){return{...$S(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function T7(e){return e===2||e>=3&&e<=99||e===100}function jhe(e,t,r,i){return e||t&&t.length?Xg(e,t,r,i):void 0}function Xg(e,t,r,i,o){return D.createImportDeclaration(void 0,e||t?D.createImportClause(!!o,e,t&&t.length?D.createNamedImports(t):void 0):void 0,typeof r=="string"?S7(r,i):r,void 0)}function S7(e,t){return D.createStringLiteral(e,t===0)}function sY(e,t){return V6(e,t)?1:0}function J_(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&wr(e.imports,i=>yo(i)&&!ws(i.parent));return r?sY(r,e):1}}function Hhe(e){switch(e){case 0:return"'";case 1:return'"';default:return L.assertNever(e)}}function x7(e){let t=A7(e);return t===void 0?void 0:Gi(t)}function A7(e){return e.escapedName!=="default"?e.escapedName:ks(e.declarations,t=>{let r=sa(t);return r&&r.kind===79?r.escapedText:void 0})}function C7(e){return es(e)&&(um(e.parent)||gl(e.parent)||qu(e.parent,!1)&&e.parent.arguments[0]===e||Dd(e.parent)&&e.parent.arguments[0]===e)}function jN(e){return Wo(e)&&cm(e.parent)&&Re(e.name)&&!e.propertyName}function I7(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function HN(e,t,r){if(e)for(;e.parent;){if(Li(e.parent)||!N6e(r,e.parent,t))return e;e=e.parent}}function N6e(e,t,r){return bj(e,t.getStart(r))&&t.getEnd()<=wl(e)}function z2(e,t){return g_(e)?wr(e.modifiers,r=>r.kind===t):void 0}function L7(e,t,r,i,o){let l=(ba(r)?r[0]:r).kind===240?DH:yT,f=Pr(t.statements,l),d=ba(r)?b_.detectImportDeclarationSorting(r,o):3,g=b_.getOrganizeImportsComparer(o,d===2),m=ba(r)?Ag(r,(v,S)=>b_.compareImportsOrRequireStatements(v,S,g)):[r];if(!f.length)e.insertNodesAtTopOfFile(t,m,i);else if(f&&(d=b_.detectImportDeclarationSorting(f,o))){let v=b_.getOrganizeImportsComparer(o,d===2);for(let S of m){let x=b_.getImportDeclarationInsertionIndex(f,S,v);if(x===0){let A=f[0]===t.statements[0]?{leadingTriviaOption:nr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,f[0],S,!1,A)}else{let A=f[x-1];e.insertNodeAfter(t,A,S)}}}else{let v=Os(f);v?e.insertNodesAfter(t,v,m):e.insertNodesAtTopOfFile(t,m,i)}}function cY(e,t){return L.assert(e.isTypeOnly),Ga(e.getChildAt(0,t),rY)}function J2(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function P6e(e,t){return e.fileName===t.fileName&&J2(e.textSpan,t.textSpan)}function lY(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){let i=t(e[r],r);if(i)return i}}}function Whe(e,t,r){for(let i=t;i<r;i++)if(!xh(e.charCodeAt(i)))return!1;return!0}function WN(e,t,r){let i=t.tryGetSourcePosition(e);return i&&(!r||r(So(i.fileName))?i:void 0)}function uY(e,t,r){let{fileName:i,textSpan:o}=e,s=WN({fileName:i,pos:o.start},t,r);if(!s)return;let l=WN({fileName:i,pos:o.start+o.length},t,r),f=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:f},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:zhe(e,t,r),originalContextSpan:e.contextSpan}}function zhe(e,t,r){let i=e.contextSpan&&WN({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&WN({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function dY(e){let t=e.declarations?Sl(e.declarations):void 0;return!!jn(t,r=>ha(r)?!0:Wo(r)||cm(r)||g2(r)?!1:"quit")}function M6e(){let e=KR*10,t,r,i,o;m();let s=v=>f(v,17);return{displayParts:()=>{let v=t.length&&t[t.length-1].text;return o>e&&v&&v!=="..."&&(xh(v.charCodeAt(v.length-1))||t.push(Qu(" ",16)),t.push(Qu("...",15))),t},writeKeyword:v=>f(v,5),writeOperator:v=>f(v,12),writePunctuation:v=>f(v,15),writeTrailingSemicolon:v=>f(v,15),writeSpace:v=>f(v,16),writeStringLiteral:v=>f(v,8),writeParameter:v=>f(v,13),writeProperty:v=>f(v,14),writeLiteral:v=>f(v,8),writeSymbol:d,writeLine:g,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Sa,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let v=Q6(i);v&&(o+=v.length,t.push(Qu(v,16))),r=!1}}function f(v,S){o>e||(l(),o+=v.length,t.push(Qu(v,S)))}function d(v,S){o>e||(l(),o+=v.length,t.push(Jhe(v,S)))}function g(){o>e||(o+=1,t.push(K2()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function Jhe(e,t){return Qu(e,r(t));function r(i){let o=i.flags;return o&3?dY(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function Qu(e,t){return{text:e,kind:IN[t]}}function Qs(){return Qu(" ",16)}function _d(e){return Qu(Xa(e),5)}function Yl(e){return Qu(Xa(e),15)}function ak(e){return Qu(Xa(e),12)}function Khe(e){return Qu(e,13)}function qhe(e){return Qu(e,14)}function fY(e){let t=lT(e);return t===void 0?tf(e):_d(t)}function tf(e){return Qu(e,17)}function Xhe(e){return Qu(e,0)}function Yhe(e){return Qu(e,18)}function k7(e){return Qu(e,24)}function $he(e,t){return{text:e,kind:IN[23],target:{fileName:Gn(t).fileName,textSpan:Du(t)}}}function _Y(e){return Qu(e,22)}function Qhe(e,t){var r;let i=zue(e)?"link":Jue(e)?"linkcode":"linkplain",o=[_Y(`{@${i} `)];if(!e.name)e.text&&o.push(k7(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=G6e(e.text),f=Qc(e.name)+e.text.slice(0,l),d=F6e(e.text.slice(l)),g=s?.valueDeclaration||((r=s?.declarations)==null?void 0:r[0]);g?(o.push($he(f,g)),d&&o.push(k7(d))):o.push(k7(f+(l?"":" ")+d))}return o.push(_Y("}")),o}function F6e(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function G6e(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function bb(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||Ege}function K2(){return Qu(`
| `,6)}function uv(e){try{return e(q7),q7.displayParts()}finally{q7.clear()}}function zN(e,t,r,i=0){return uv(o=>{e.writeType(t,r,i|1024|16384,o)})}function ok(e,t,r,i,o=0){return uv(s=>{e.writeSymbol(t,r,i,o|8,s)})}function pY(e,t,r,i=0){return i|=25632,uv(o=>{e.writeSignature(t,r,i,void 0,o)})}function B6e(e,t){let r=t.getSourceFile();return uv(i=>{fN().writeNode(4,e,r,i)})}function Zhe(e){return!!e.parent&&eS(e.parent)&&e.parent.propertyName===e}function mY(e,t){return h4(e,t.getScriptKind&&t.getScriptKind(e))}function ege(e,t){let r=e;for(;U6e(r)||Zp(r)&&r.links.target;)Zp(r)&&r.links.target?r=r.links.target:r=wd(r,t);return r}function U6e(e){return(e.flags&2097152)!==0}function tge(e,t){return $a(wd(e,t))}function nge(e,t){for(;xh(e.charCodeAt(t));)t+=1;return t}function hY(e,t){for(;t>-1&&Yp(e.charCodeAt(t));)t-=1;return t+1}function cc(e,t=!0){let r=e&&rge(e);return r&&!t&&pd(r),r}function JN(e,t,r){let i=r(e);return i?Ir(i,e):i=rge(e,r),i&&!t&&pd(i),i}function rge(e,t){let r=t?s=>JN(s,!0,t):cc,o=xn(e,r,Bh,t?s=>s&&gY(s,!0,t):s=>s&&oE(s),r);if(o===e){let s=yo(e)?Ir(D.createStringLiteralFromNode(e),e):Vf(e)?Ir(D.createNumericLiteral(e.text,e.numericLiteralFlags),e):D.cloneNode(e);return it(s,e)}return o.parent=void 0,o}function oE(e,t=!0){return e&&D.createNodeArray(e.map(r=>cc(r,t)),e.hasTrailingComma)}function gY(e,t,r){return D.createNodeArray(e.map(i=>JN(i,t,r)),e.hasTrailingComma)}function pd(e){D7(e),ige(e)}function D7(e){yY(e,1024,j6e)}function ige(e){yY(e,2048,yW)}function r1(e,t){let r=e.getSourceFile(),i=r.text;V6e(e,i)?q2(e,t,r):qN(e,t,r),sk(e,t,r)}function V6e(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function yY(e,t,r){bp(e,t);let i=r(e);i&&yY(i,t,r)}function j6e(e){return e.forEachChild(t=>t)}function i1(e,t){let r=e;for(let i=1;!g6(t,r);i++)r=`${e}_${i}`;return r}function KN(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:f}of e){L.assert(l===t);for(let d of f){let{span:g,newText:m}=d,v=H6e(m,_S(r));if(v!==-1&&(s=g.start+o+v,!i))return s;o+=m.length-g.length}}return L.assert(i),L.assert(s>=0),s}function q2(e,t,r,i,o){vw(r.text,e.pos,vY(t,r,i,o,nO))}function sk(e,t,r,i,o){bw(r.text,e.end,vY(t,r,i,o,R4))}function qN(e,t,r,i,o){bw(r.text,e.pos,vY(t,r,i,o,nO))}function vY(e,t,r,i,o){return(s,l,f,d)=>{f===3?(s+=2,l-=2):s+=2,o(e,r||f,t.text.slice(s,l),i!==void 0?i:d)}}function H6e(e,t){if(na(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function bY(e){return ar(e)&&e.operatorToken.kind===27||rs(e)||fO(e)&&rs(e.expression)}function w7(e,t,r){let i=qy(e.parent);switch(i.kind){case 211:return t.getContextualType(i,r);case 223:{let{left:o,operatorToken:s,right:l}=i;return R7(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 292:return TY(i,t);default:return t.getContextualType(e,r)}}function ck(e,t,r){let i=J_(e,t),o=JSON.stringify(r);return i===0?`'${u_(o).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:o}function R7(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function age(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}}function EY(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function TY(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function lk(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,f=o.typeToTypeNode(e,t,1,{trackSymbol:(d,g,m)=>(s=s&&o.isSymbolAccessible(d,g,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:oY(r,i)});return s?f:void 0}function SY(e){return e===176||e===177||e===178||e===168||e===170}function oge(e){return e===259||e===173||e===171||e===174||e===175}function sge(e){return e===264}function O7(e){return e===240||e===241||e===243||e===248||e===249||e===250||e===254||e===256||e===169||e===262||e===269||e===268||e===275||e===267||e===274}function W6e(e,t){let r=e.getLastToken(t);if(r&&r.kind===26)return!1;if(SY(e.kind)){if(r&&r.kind===27)return!1}else if(sge(e.kind)){let f=To(e.getChildren(t));if(f&&Tp(f))return!1}else if(oge(e.kind)){let f=To(e.getChildren(t));if(f&&bT(f))return!1}else if(!O7(e.kind))return!1;if(e.kind===243)return!0;let i=jn(e,f=>!f.parent),o=t1(e,i,t);if(!o||o.kind===19)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function N7(e,t,r){let i=jn(t,o=>o.end!==e?"quit":NY(o.kind));return!!i&&W6e(i,r)}function P7(e){let t=0,r=0,i=5;return pa(e,function o(s){if(O7(s.kind)){let l=s.getLastToken(e);l?.kind===26?t++:r++}else if(SY(s.kind)){let l=s.getLastToken(e);if(l?.kind===26)t++;else if(l&&l.kind!==27){let f=Gs(e,l.getStart(e)).line,d=Gs(e,Pg(e,l.end).start).line;f!==d&&r++}}return t+r>=i?!0:pa(s,o)}),t===0&&r<=1?!0:t/r>1/i}function M7(e,t){return U7(e,e.getDirectories,t)||[]}function xY(e,t,r,i,o){return U7(e,e.readDirectory,t,r,i,o)||Je}function F7(e,t){return U7(e,e.fileExists,t)}function G7(e,t){return B7(()=>gp(t,e))||!1}function B7(e){try{return e()}catch{return}}function U7(e,t,...r){return B7(()=>t&&t.apply(e,r))}function AY(e,t,r){let i=[];return Th(e,o=>{if(o===r)return!0;let s=vi(o,"package.json");F7(t,s)&&i.push(s)}),i}function cge(e,t){let r;return Th(e,i=>{if(i==="node_modules"||(r=Vpe(i,o=>F7(t,o),"package.json"),r))return!0}),r}function lge(e,t){if(!t.fileExists)return[];let r=[];return Th(ni(e),i=>{let o=vi(i,"package.json");if(t.fileExists(o)){let s=uge(o,t);s&&r.push(s)}}),r}function uge(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=z6e(i),s={};if(o)for(let d of r){let g=o[d];if(!g)continue;let m=new Map;for(let v in g)m.set(v,g[v]);s[d]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:f,has(d,g){return!!f(d,g)}};function f(d,g=15){for(let[m,v]of l)if(v&&g&m){let S=v.get(d);if(S!==void 0)return S}}}function uk(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||lge(e.fileName,r)).filter(A=>A.parseable),o,s,l;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:g,allowsImportingSpecifier:m};function f(A){let w=x(A);for(let C of i)if(C.has(w)||C.has(rF(w)))return!0;return!1}function d(A,w){if(!i.length||!A.valueDeclaration)return!0;if(!s)s=new Map;else{let q=s.get(A);if(q!==void 0)return q}let C=u_(A.getName());if(v(C))return s.set(A,!0),!0;let P=A.valueDeclaration.getSourceFile(),F=S(P.fileName,w);if(typeof F>"u")return s.set(A,!0),!0;let B=f(F)||f(C);return s.set(A,B),B}function g(A,w){if(!i.length)return!0;if(!l)l=new Map;else{let F=l.get(A);if(F!==void 0)return F}let C=S(A.fileName,w);if(!C)return l.set(A,!0),!0;let P=f(C);return l.set(A,P),P}function m(A){return!i.length||v(A)||Jd(A)||qp(A)?!0:f(A)}function v(A){return!!(Cu(e)&&QT.nodeCoreModules.has(A)&&(o===void 0&&(o=V7(e)),o))}function S(A,w){if(!jl(A,"node_modules"))return;let C=Q0.getNodeModulesPackageName(r.getCompilationSettings(),e,A,w,t);if(C&&!Jd(C)&&!qp(C))return x(C)}function x(A){let w=Ou(ZO(A)).slice(1);return na(w[0],"@")?`${w[0]}/${w[1]}`:w[0]}}function z6e(e){try{return JSON.parse(e)}catch{return}}function V7(e){return vt(e.imports,({text:t})=>QT.nodeCoreModules.has(t))}function dge(e){return ya(Ou(e),"node_modules")}function CY(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function fge(e,t){let r=Du(e),i=j1(t,r,Ks,f8);if(i>=0){let o=t[i];return L.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ga(o,CY)}}function _ge(e,t){var r;let i=j1(t,e.start,l=>l.start,Es);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=wl(e);for(;;){let l=zr(t[i],CY);if(!l||l.start>s)break;Roe(e,l)&&o.push(l),i++}return o}function QS({startPosition:e,endPosition:t}){return Wc(e,t===void 0?e:t)}function IY(e,t){let r=Vi(e,t.start);return jn(r,o=>o.getStart(e)<t.start||o.getEnd()>wl(t)?"quit":ot(o)&&J2(t,Du(o,e)))}function pge(e,t,r=Ks){return e?ba(e)?r(on(e,t)):t(e,0):void 0}function LY(e){return ba(e)?Vo(e):e}function mge(e,t){if(hge(e)){let r=gge(e);if(r)return r;let i=gu.moduleSymbolToValidIdentifier(kY(e),t,!1),o=gu.moduleSymbolToValidIdentifier(kY(e),t,!0);return i===o?i:[i,o]}return e.name}function j7(e,t,r){return hge(e)?gge(e)||gu.moduleSymbolToValidIdentifier(kY(e),t,!!r):e.name}function hge(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function gge(e){return ks(e.declarations,t=>{var r,i;return pc(t)?(r=zr(ql(t.expression),Re))==null?void 0:r.text:(i=zr(sa(t),Re))==null?void 0:i.text})}function kY(e){var t;return L.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${L.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=L.formatSyntaxKind(r.kind),o=Yn(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${L.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function yge(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function DY(e){return e.charCodeAt(0)===95}function J6e(e){return!vge(e)}function vge(e){let t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:Yn(e)||!jn(e,r=>Tc(r)&&mp(r))}function H7(e){return!!(Tj(e)&8192)}function W7(e,t){let r=ks(e.imports,i=>{if(QT.nodeCoreModules.has(i.text))return na(i.text,"node:")});return r??t.usesUriStyleNodeCoreModules}function XN(e){return e===`
| `?1:0}function ZS(e){return ba(e)?jm(uo(e[0]),e.slice(1)):uo(e)}function z7({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!P7(t);return{...e,semicolons:i?"remove":"ignore"}}function wY(e){return e===2||e===3}function dk(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function J7(e,t){let r=new Set,i=new Set,o=new Set;for(let f of t)if(!yO(f)){let d=vs(f.expression);if(fT(d))switch(d.kind){case 14:case 10:r.add(d.text);break;case 8:i.add(parseInt(d.text));break;case 9:let g=Ple(Oc(d.text,"n")?d.text.slice(0,-1):d.text);g&&o.add(j0(g));break}else{let g=e.getSymbolAtLocation(f.expression);if(g&&g.valueDeclaration&&q0(g.valueDeclaration)){let m=e.getConstantValue(g.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(f){switch(typeof f){case"string":r.add(f);break;case"number":i.add(f)}}function l(f){switch(typeof f){case"string":return r.has(f);case"number":return i.has(f);case"object":return o.has(j0(f))}}}var $l,RY,bge,K7,OY,q7,Ege,X7,NY,K6e=gt({"src/services/utilities.ts"(){"use strict";Fr(),$l=kg(99,!0),RY=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(RY||{}),bge=/^\/\/\/\s*</,K7=[131,129,160,134,95,138,141,144,104,148,149,146,152,153,110,114,155,156,157],OY=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(OY||{}),q7=M6e(),Ege=`
| `,X7="anonymous function",NY=Kp(SY,oge,sge,O7)}});function Tge(e){let t=1,r=Nf(),i=new Map,o=new Map,s,l={isUsableByFile:x=>x===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(x,A,w,C,P,F,B,q)=>{x!==s&&(l.clear(),s=x);let W;if(P){let ge=jW(P.fileName);if(ge){let{topLevelNodeModulesIndex:X,topLevelPackageNameIndex:Ve,packageRootIndex:we}=ge;if(W=iF(ZO(P.fileName.substring(Ve+1,we))),na(x,P.path.substring(0,X))){let ke=o.get(W),Pe=P.fileName.substring(0,Ve+1);if(ke){let Ce=ke.indexOf(Wg);X>Ce&&o.set(W,Pe)}else o.set(W,Pe)}}}let R=F===1&&QA(A)||A,ie=F===0||BN(R)?Gi(w):mge(R,void 0),$=typeof ie=="string"?ie:ie[0],fe=typeof ie=="string"?void 0:ie[1],Z=u_(C.name),U=t++,re=wd(A,q),le=A.flags&33554432?void 0:A,_e=C.flags&33554432?void 0:C;(!le||!_e)&&i.set(U,[A,C]),r.add(d($,A,fl(Z)?void 0:Z,q),{id:U,symbolTableKey:w,symbolName:$,capitalizedSymbolName:fe,moduleName:Z,moduleFile:P,moduleFileName:P?.fileName,packageName:W,exportKind:F,targetFlags:re.flags,isFromPackageJson:B,symbol:le,moduleSymbol:_e})},get:(x,A)=>{if(x!==s)return;let w=r.get(A);return w?.map(f)},search:(x,A,w,C)=>{if(x===s)return Ld(r,(P,F)=>{let{symbolName:B,ambientModuleName:q}=g(F),W=A&&P[0].capitalizedSymbolName||B;if(w(W,P[0].targetFlags)){let R=P.map(f).filter((ie,$)=>S(ie,P[$].packageName));if(R.length){let ie=C(R,W,!!q,F);if(ie!==void 0)return ie}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(x,A,w)=>m(x)&&m(A)?!1:s&&s!==A.path||w&&V7(x)!==V7(A)||!up(x.moduleAugmentations,A.moduleAugmentations)||!v(x,A)?(l.clear(),!0):(s=A.path,!1)};return L.isDebugging&&Object.defineProperty(l,"__cache",{get:()=>r}),l;function f(x){if(x.symbol&&x.moduleSymbol)return x;let{id:A,exportKind:w,targetFlags:C,isFromPackageJson:P,moduleFileName:F}=x,[B,q]=i.get(A)||Je;if(B&&q)return{symbol:B,moduleSymbol:q,moduleFileName:F,exportKind:w,targetFlags:C,isFromPackageJson:P};let W=(P?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),Y=x.moduleSymbol||q||L.checkDefined(x.moduleFile?W.getMergedSymbol(x.moduleFile.symbol):W.tryFindAmbientModule(x.moduleName)),R=x.symbol||B||L.checkDefined(w===2?W.resolveExternalModuleSymbol(Y):W.tryGetMemberInModuleExportsAndProperties(Gi(x.symbolTableKey),Y),`Could not find symbol '${x.symbolName}' by key '${x.symbolTableKey}' in module ${Y.name}`);return i.set(A,[R,Y]),{symbol:R,moduleSymbol:Y,moduleFileName:F,exportKind:w,targetFlags:C,isFromPackageJson:P}}function d(x,A,w,C){let P=w||"";return`${x}|${$a(wd(A,C))}|${P}`}function g(x){let A=x.substring(0,x.indexOf("|")),w=x.substring(x.lastIndexOf("|")+1);return{symbolName:A,ambientModuleName:w===""?void 0:w}}function m(x){return!x.commonJsModuleIndicator&&!x.externalModuleIndicator&&!x.moduleAugmentations&&!x.ambientModuleNames}function v(x,A){if(!up(x.ambientModuleNames,A.ambientModuleNames))return!1;let w=-1,C=-1;for(let P of A.ambientModuleNames){let F=B=>lH(B)&&B.name.text===P;if(w=Yc(x.statements,F,w+1),C=Yc(A.statements,F,C+1),x.statements[w]!==A.statements[C])return!1}return!0}function S(x,A){if(!A||!x.moduleFileName)return!0;let w=e.getGlobalTypingsCacheLocation();if(w&&na(x.moduleFileName,w))return!0;let C=o.get(A);return!C||na(x.moduleFileName,C)}}function PY(e,t,r,i,o,s,l){var f;if(t===r)return!1;let d=l?.get(t.path,r.path,i,{});if(d?.isBlockedByPackageJsonDependencies!==void 0)return!d.isBlockedByPackageJsonDependencies;let g=lb(s),m=(f=s.getGlobalTypingsCacheLocation)==null?void 0:f.call(s),v=!!Q0.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,S=>{let x=e.getSourceFile(S);return(x===r||!x)&&q6e(t.fileName,S,g,m)});if(o){let S=v&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!S),S}return v}function q6e(e,t,r,i){let o=Th(t,l=>Hl(l)==="node_modules"?l:void 0),s=o&&ni(r(o));return s===void 0||na(r(e),s)||!!i&&na(r(i),s)}function MY(e,t,r,i,o){var s,l;let f=xR(t),d=r.autoImportFileExcludePatterns&&Zi(r.autoImportFileExcludePatterns,m=>{let v=kW(m,"","exclude");return v?Qy(v,f):void 0});Sge(e.getTypeChecker(),e.getSourceFiles(),d,(m,v)=>o(m,v,e,!1));let g=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(g){let m=Ms(),v=e.getTypeChecker();Sge(g.getTypeChecker(),g.getSourceFiles(),d,(S,x)=>{(x&&!e.getSourceFile(x.fileName)||!x&&!v.resolveName(S.name,void 0,1536,!1))&&o(S,x,g,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Ms()-m}`)}}function Sge(e,t,r,i){var o;let s=r&&(l=>r.some(f=>f.test(l)));for(let l of e.getAmbientModules())!jl(l.name,"*")&&!(r&&((o=l.declarations)!=null&&o.every(f=>s(f.getSourceFile().fileName))))&&i(l,void 0);for(let l of t)kd(l)&&!s?.(l.fileName)&&i(e.getMergedSymbol(l.symbol),l)}function YN(e,t,r,i,o){var s,l,f,d,g;let m=Ms();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let v=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||Tge({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(v.isUsableByFile(e.path))return(f=t.log)==null||f.call(t,"getExportInfoMap: cache hit"),v;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let S=r.getCompilerOptions(),x=0;try{MY(r,t,i,!0,(A,w,C,P)=>{++x%100===0&&o?.throwIfCancellationRequested();let F=new Map,B=C.getTypeChecker(),q=Y7(A,B,S);q&&xge(q.symbol,B)&&v.add(e.path,q.symbol,q.exportKind===1?"default":"export=",A,w,q.exportKind,P,B),B.forEachExportAndPropertyOfModule(A,(W,Y)=>{W!==q?.symbol&&xge(W,B)&&V_(F,Y)&&v.add(e.path,W,Y,A,w,0,P,B)})})}catch(A){throw v.clear(),A}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${Ms()-m} ms`),v}function Y7(e,t,r){let i=X6e(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=$7(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function xge(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!gR(e)&&!Cce(e)}function X6e(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function $7(e,t,r){let i=QA(e);if(i)return{resolvedSymbol:i,name:i.name};let o=Y6e(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return $7(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:j7(e,r.target)}}function Y6e(e){return e.declarations&&ks(e.declarations,t=>{var r;if(pc(t))return(r=zr(ql(t.expression),Re))==null?void 0:r.text;if(Mu(t))return L.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var FY,GY,$6e=gt({"src/services/exportInfoMap.ts"(){"use strict";Fr(),FY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(FY||{}),GY=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(GY||{})}});function Age(){let e=kg(99,!1);function t(i,o,s){return e4e(r(i,o,s),i)}function r(i,o,s){let l=0,f=0,d=[],{prefix:g,pushTemplate:m}=r4e(o);i=g+i;let v=g.length;m&&d.push(15),e.setText(i);let S=0,x=[],A=0;do{l=e.scan(),KA(l)||(w(),f=l);let C=e.getTextPos();if(Z6e(e.getTokenPos(),C,v,o4e(l),x),C>=i.length){let P=Q6e(e,l,Os(d));P!==void 0&&(S=P)}}while(l!==1);function w(){switch(l){case 43:case 68:!wge[f]&&e.reScanSlashToken()===13&&(l=13);break;case 29:f===79&&A++;break;case 31:A>0&&A--;break;case 131:case 152:case 148:case 134:case 153:A>0&&!s&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){let C=Os(d);C===15?(l=e.reScanTemplateToken(!1),l===17?d.pop():L.assertEqual(l,16,"Should have been a template middle.")):(L.assertEqual(C,18,"Should have been an open brace"),d.pop())}break;default:if(!Xu(l))break;(f===24||Xu(f)&&Xu(l)&&!n4e(f,l))&&(l=79)}}return{endOfLineState:S,spans:x}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function Q6e(e,t,r){switch(t){case 10:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Hy(t)){if(!e.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return L.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===15?6:void 0}}function Z6e(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function e4e(e,t){let r=[],i=e.spans,o=0;for(let l=0;l<i.length;l+=3){let f=i[l],d=i[l+1],g=i[l+2];if(o>=0){let m=f-o;m>0&&r.push({length:m,classification:4})}r.push({length:d,classification:t4e(g)}),o=f+d}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function t4e(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function n4e(e,t){if(!ZX(e))return!0;switch(t){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}function r4e(e){switch(e){case 3:return{prefix:`"\\
| `};case 2:return{prefix:`'\\
| `};case 1:return{prefix:`/*
| `};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
| `,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return L.assertNever(e)}}function i4e(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function a4e(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function o4e(e){if(Xu(e))return 3;if(i4e(e)||a4e(e))return 5;if(e>=18&&e<=78)return 10;switch(e){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return Hy(e)?6:2}}function Cge(e,t,r,i,o){return kge(BY(e,t,r,i,o))}function Ige(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function BY(e,t,r,i,o){let s=[];return r.forEachChild(function f(d){if(!(!d||!$8(o,d.pos,d.getFullWidth()))){if(Ige(t,d.kind),Re(d)&&!rc(d)&&i.has(d.escapedText)){let g=e.getSymbolAtLocation(d),m=g&&Lge(g,ZT(d),e);m&&l(d.getStart(r),d.getEnd(),m)}d.forEachChild(f)}}),{spans:s,endOfLineState:0};function l(f,d,g){let m=d-f;L.assert(m>0,`Classification had non-positive length of ${m}`),s.push(f),s.push(m),s.push(g)}}function Lge(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&s4e(e)?14:void 0:i&2097152?Lge(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function s4e(e){return vt(e.declarations,t=>Tc(t)&&Gh(t)===1)}function c4e(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function kge(e){L.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:il(t[i],t[i+1]),classificationType:c4e(t[i+2])});return r}function Dge(e,t,r){return kge(UY(e,t,r))}function UY(e,t,r){let i=r.start,o=r.length,s=kg(99,!1,t.languageVariant,t.text),l=kg(99,!1,t.languageVariant,t.text),f=[];return q(t),{spans:f,endOfLineState:0};function d(W,Y,R){f.push(W),f.push(Y),f.push(R)}function g(W){for(s.setTextPos(W.pos);;){let Y=s.getTextPos();if(!hoe(t.text,Y))return Y;let R=s.scan(),ie=s.getTextPos(),$=ie-Y;if(!KA(R))return Y;switch(R){case 4:case 5:continue;case 2:case 3:m(W,R,Y,$),s.setTextPos(ie);continue;case 7:let fe=t.text,Z=fe.charCodeAt(Y);if(Z===60||Z===62){d(Y,$,1);continue}L.assert(Z===124||Z===61),w(fe,Y,ie);break;case 6:break;default:L.assertNever(R)}}}function m(W,Y,R,ie){if(Y===3){let $=Mde(t.text,R,ie);if($&&$.jsDoc){go($.jsDoc,W),S($.jsDoc);return}}else if(Y===2&&x(R,ie))return;v(R,ie)}function v(W,Y){d(W,Y,1)}function S(W){var Y,R,ie,$,fe,Z,U,re;let le=W.pos;if(W.tags)for(let ge of W.tags){ge.pos!==le&&v(le,ge.pos-le),d(ge.pos,1,10),d(ge.tagName.pos,ge.tagName.end-ge.tagName.pos,18),le=ge.tagName.end;let X=ge.tagName.end;switch(ge.kind){case 344:let Ve=ge;_e(Ve),X=Ve.isNameFirst&&((Y=Ve.typeExpression)==null?void 0:Y.end)||Ve.name.end;break;case 351:let we=ge;X=we.isNameFirst&&((R=we.typeExpression)==null?void 0:R.end)||we.name.end;break;case 348:A(ge),le=ge.end,X=ge.typeParameters.end;break;case 349:let ke=ge;X=((ie=ke.typeExpression)==null?void 0:ie.kind)===312&&(($=ke.fullName)==null?void 0:$.end)||((fe=ke.typeExpression)==null?void 0:fe.end)||X;break;case 341:X=ge.typeExpression.end;break;case 347:q(ge.typeExpression),le=ge.end,X=ge.typeExpression.end;break;case 346:case 343:X=ge.typeExpression.end;break;case 345:q(ge.typeExpression),le=ge.end,X=((Z=ge.typeExpression)==null?void 0:Z.end)||X;break;case 350:X=((U=ge.name)==null?void 0:U.end)||X;break;case 331:case 332:X=ge.class.end;break;case 352:q(ge.typeExpression),le=ge.end,X=((re=ge.typeExpression)==null?void 0:re.end)||X;break}typeof ge.comment=="object"?v(ge.comment.pos,ge.comment.end-ge.comment.pos):typeof ge.comment=="string"&&v(X,ge.end-X)}le!==W.end&&v(le,W.end-le);return;function _e(ge){ge.isNameFirst&&(v(le,ge.name.pos-le),d(ge.name.pos,ge.name.end-ge.name.pos,17),le=ge.name.end),ge.typeExpression&&(v(le,ge.typeExpression.pos-le),q(ge.typeExpression),le=ge.typeExpression.end),ge.isNameFirst||(v(le,ge.name.pos-le),d(ge.name.pos,ge.name.end-ge.name.pos,17),le=ge.name.end)}}function x(W,Y){let R=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,ie=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,$=t.text.substr(W,Y),fe=R.exec($);if(!fe||!fe[3]||!(fe[3]in iw))return!1;let Z=W;v(Z,fe[1].length),Z+=fe[1].length,d(Z,fe[2].length,10),Z+=fe[2].length,d(Z,fe[3].length,21),Z+=fe[3].length;let U=fe[4],re=Z;for(;;){let _e=ie.exec(U);if(!_e)break;let ge=Z+_e.index+_e[1].length;ge>re&&(v(re,ge-re),re=ge),d(re,_e[2].length,22),re+=_e[2].length,_e[3].length&&(v(re,_e[3].length),re+=_e[3].length),d(re,_e[4].length,5),re+=_e[4].length,_e[5].length&&(v(re,_e[5].length),re+=_e[5].length),d(re,_e[6].length,24),re+=_e[6].length}Z+=fe[4].length,Z>re&&v(re,Z-re),fe[5]&&(d(Z,fe[5].length,10),Z+=fe[5].length);let le=W+Y;return Z<le&&v(Z,le-Z),!0}function A(W){for(let Y of W.getChildren())q(Y)}function w(W,Y,R){let ie;for(ie=Y;ie<R&&!Wl(W.charCodeAt(ie));ie++);for(d(Y,ie-Y,1),l.setTextPos(ie);l.getTextPos()<R;)C()}function C(){let W=l.getTextPos(),Y=l.scan(),R=l.getTextPos(),ie=B(Y);ie&&d(W,R-W,ie)}function P(W){if(dm(W)||rc(W))return!0;let Y=F(W);if(!Z1(W)&&W.kind!==11&&Y===void 0)return!1;let R=W.kind===11?W.pos:g(W),ie=W.end-R;if(L.assert(ie>=0),ie>0){let $=Y||B(W.kind,W);$&&d(R,ie,$)}return!0}function F(W){switch(W.parent&&W.parent.kind){case 283:if(W.parent.tagName===W)return 19;break;case 284:if(W.parent.tagName===W)return 20;break;case 282:if(W.parent.tagName===W)return 21;break;case 288:if(W.parent.name===W)return 22;break}}function B(W,Y){if(Xu(W))return 3;if((W===29||W===31)&&Y&&Ohe(Y.parent))return 10;if(Phe(W)){if(Y){let R=Y.parent;if(W===63&&(R.kind===257||R.kind===169||R.kind===166||R.kind===288)||R.kind===223||R.kind===221||R.kind===222||R.kind===224)return 5}return 10}else{if(W===8)return 4;if(W===9)return 25;if(W===10)return Y&&Y.parent.kind===288?24:6;if(W===13)return 6;if(Hy(W))return 6;if(W===11)return 23;if(W===79){if(Y){switch(Y.parent.kind){case 260:return Y.parent.name===Y?11:void 0;case 165:return Y.parent.name===Y?15:void 0;case 261:return Y.parent.name===Y?13:void 0;case 263:return Y.parent.name===Y?12:void 0;case 264:return Y.parent.name===Y?14:void 0;case 166:return Y.parent.name===Y?LT(Y)?3:17:void 0}if(Ch(Y.parent))return 3}return 2}}}function q(W){if(W&&Q8(i,o,W.pos,W.getFullWidth())){Ige(e,W.kind);for(let Y of W.getChildren(t))P(Y)||q(Y)}}}var wge,l4e=gt({"src/services/classifier.ts"(){"use strict";Fr(),wge=gae([79,10,8,9,13,108,45,46,21,23,19,110,95],e=>e,()=>!0)}}),Q7,u4e=gt({"src/services/documentHighlights.ts"(){"use strict";Fr(),(e=>{function t(Z,U,re,le,_e){let ge=ef(re,le);if(ge.parent&&(Xm(ge.parent)&&ge.parent.tagName===ge||GS(ge.parent))){let{openingElement:X,closingElement:Ve}=ge.parent.parent,we=[X,Ve].map(({tagName:ke})=>r(ke,re));return[{fileName:re.fileName,highlightSpans:we}]}return i(le,ge,Z,U,_e)||o(ge,re)}e.getDocumentHighlights=t;function r(Z,U){return{fileName:U.fileName,textSpan:Du(Z,U),kind:"none"}}function i(Z,U,re,le,_e){let ge=new Set(_e.map(ke=>ke.fileName)),X=js.getReferenceEntriesForNode(Z,U,re,_e,le,void 0,ge);if(!X)return;let Ve=KD(X.map(js.toHighlightSpan),ke=>ke.fileName,ke=>ke.span),we=Dl(re.useCaseSensitiveFileNames());return lo(UD(Ve.entries(),([ke,Pe])=>{if(!ge.has(ke)){if(!re.redirectTargetsMap.has(Ts(ke,re.getCurrentDirectory(),we)))return;let Ce=re.getSourceFile(ke);ke=wr(_e,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===Ce).fileName,L.assert(ge.has(ke))}return{fileName:ke,highlightSpans:Pe}}))}function o(Z,U){let re=s(Z,U);return re&&[{fileName:U.fileName,highlightSpans:re}]}function s(Z,U){switch(Z.kind){case 99:case 91:return MT(Z.parent)?ie(Z.parent,U):void 0;case 105:return le(Z.parent,j_,q);case 109:return le(Z.parent,Fz,B);case 111:case 83:case 96:let ge=Z.kind===83?Z.parent.parent:Z.parent;return le(ge,mO,F);case 107:return le(Z.parent,pO,P);case 82:case 88:return yO(Z.parent)||CL(Z.parent)?le(Z.parent.parent.parent,pO,P):void 0;case 81:case 86:return le(Z.parent,hI,C);case 97:case 115:case 90:return le(Z.parent,X=>Wy(X,!0),w);case 135:return re(Ec,[135]);case 137:case 151:return re(rb,[137,151]);case 133:return le(Z.parent,v2,W);case 132:return _e(W(Z));case 125:return _e(Y(Z));case 101:return;default:return Rg(Z.kind)&&(Kl(Z.parent)||Bc(Z.parent))?_e(S(Z.kind,Z.parent)):void 0}function re(ge,X){return le(Z.parent,ge,Ve=>{var we;return Zi((we=zr(Ve,$p))==null?void 0:we.symbol.declarations,ke=>ge(ke)?wr(ke.getChildren(U),Pe=>ya(X,Pe.kind)):void 0)})}function le(ge,X,Ve){return X(ge)?_e(Ve(ge,U)):void 0}function _e(ge){return ge&&ge.map(X=>r(X,U))}}function l(Z){return Fz(Z)?[Z]:mO(Z)?Qi(Z.catchClause?l(Z.catchClause):Z.tryBlock&&l(Z.tryBlock),Z.finallyBlock&&l(Z.finallyBlock)):Ia(Z)?void 0:g(Z,l)}function f(Z){let U=Z;for(;U.parent;){let re=U.parent;if(bT(re)||re.kind===308)return re;if(mO(re)&&re.tryBlock===U&&re.catchClause)return U;U=re}}function d(Z){return hI(Z)?[Z]:Ia(Z)?void 0:g(Z,d)}function g(Z,U){let re=[];return Z.forEachChild(le=>{let _e=U(le);_e!==void 0&&re.push(...qD(_e))}),re}function m(Z,U){let re=v(U);return!!re&&re===Z}function v(Z){return jn(Z,U=>{switch(U.kind){case 252:if(Z.kind===248)return!1;case 245:case 246:case 247:case 244:case 243:return!Z.label||fe(U,Z.label.escapedText);default:return Ia(U)&&"quit"}})}function S(Z,U){return Zi(x(U,gS(Z)),re=>z2(re,Z))}function x(Z,U){let re=Z.parent;switch(re.kind){case 265:case 308:case 238:case 292:case 293:return U&256&&sl(Z)?[...Z.members,Z]:re.statements;case 173:case 171:case 259:return[...re.parameters,...Yr(re.parent)?re.parent.members:[]];case 260:case 228:case 261:case 184:let le=re.members;if(U&92){let _e=wr(re.members,Ec);if(_e)return[...le,..._e.parameters]}else if(U&256)return[...le,re];return le;case 207:return;default:L.assertNever(re,"Invalid container kind.")}}function A(Z,U,...re){return U&&ya(re,U.kind)?(Z.push(U),!0):!1}function w(Z){let U=[];if(A(U,Z.getFirstToken(),97,115,90)&&Z.kind===243){let re=Z.getChildren();for(let le=re.length-1;le>=0&&!A(U,re[le],115);le--);}return mn(d(Z.statement),re=>{m(Z,re)&&A(U,re.getFirstToken(),81,86)}),U}function C(Z){let U=v(Z);if(U)switch(U.kind){case 245:case 246:case 247:case 243:case 244:return w(U);case 252:return P(U)}}function P(Z){let U=[];return A(U,Z.getFirstToken(),107),mn(Z.caseBlock.clauses,re=>{A(U,re.getFirstToken(),82,88),mn(d(re),le=>{m(Z,le)&&A(U,le.getFirstToken(),81)})}),U}function F(Z,U){let re=[];if(A(re,Z.getFirstToken(),111),Z.catchClause&&A(re,Z.catchClause.getFirstToken(),83),Z.finallyBlock){let le=Yo(Z,96,U);A(re,le,96)}return re}function B(Z,U){let re=f(Z);if(!re)return;let le=[];return mn(l(re),_e=>{le.push(Yo(_e,109,U))}),bT(re)&&vT(re,_e=>{le.push(Yo(_e,105,U))}),le}function q(Z,U){let re=Xd(Z);if(!re)return;let le=[];return vT(Ga(re.body,Va),_e=>{le.push(Yo(_e,105,U))}),mn(l(re.body),_e=>{le.push(Yo(_e,109,U))}),le}function W(Z){let U=Xd(Z);if(!U)return;let re=[];return U.modifiers&&U.modifiers.forEach(le=>{A(re,le,132)}),pa(U,le=>{R(le,_e=>{v2(_e)&&A(re,_e.getFirstToken(),133)})}),re}function Y(Z){let U=Xd(Z);if(!U)return;let re=[];return pa(U,le=>{R(le,_e=>{f3(_e)&&A(re,_e.getFirstToken(),125)})}),re}function R(Z,U){U(Z),!Ia(Z)&&!Yr(Z)&&!ku(Z)&&!Tc(Z)&&!Ep(Z)&&!bi(Z)&&pa(Z,re=>R(re,U))}function ie(Z,U){let re=$(Z,U),le=[];for(let _e=0;_e<re.length;_e++){if(re[_e].kind===91&&_e<re.length-1){let ge=re[_e],X=re[_e+1],Ve=!0;for(let we=X.getStart(U)-1;we>=ge.end;we--)if(!Yp(U.text.charCodeAt(we))){Ve=!1;break}if(Ve){le.push({fileName:U.fileName,textSpan:Wc(ge.getStart(),X.end),kind:"reference"}),_e++;continue}}le.push(r(re[_e],U))}return le}function $(Z,U){let re=[];for(;MT(Z.parent)&&Z.parent.elseStatement===Z;)Z=Z.parent;for(;;){let le=Z.getChildren(U);A(re,le[0],99);for(let _e=le.length-1;_e>=0&&!A(re,le[_e],91);_e--);if(!Z.elseStatement||!MT(Z.elseStatement))break;Z=Z.elseStatement}return re}function fe(Z,U){return!!jn(Z.parent,re=>J0(re)?re.label.escapedText===U:"quit")}})(Q7||(Q7={}))}});function Z7(e){return!!e.sourceFile}function VY(e,t){return Rge(e,t)}function Rge(e,t="",r){let i=new Map,o=Dl(!!e);function s(){let C=lo(i.keys()).filter(P=>P&&P.charAt(0)==="_").map(P=>{let F=i.get(P),B=[];return F.forEach((q,W)=>{Z7(q)?B.push({name:W,scriptKind:q.sourceFile.scriptKind,refCount:q.languageServiceRefCount}):q.forEach((Y,R)=>B.push({name:W,scriptKind:R,refCount:Y.languageServiceRefCount}))}),B.sort((q,W)=>W.refCount-q.refCount),{bucket:P,sourceFiles:B}});return JSON.stringify(C,void 0,2)}function l(C){return typeof C.getCompilationSettings=="function"?C.getCompilationSettings():C}function f(C,P,F,B,q,W){let Y=Ts(C,t,o),R=e5(l(P));return d(C,Y,P,R,F,B,q,W)}function d(C,P,F,B,q,W,Y,R){return S(C,P,F,B,q,W,!0,Y,R)}function g(C,P,F,B,q,W){let Y=Ts(C,t,o),R=e5(l(P));return m(C,Y,P,R,F,B,q,W)}function m(C,P,F,B,q,W,Y,R){return S(C,P,l(F),B,q,W,!1,Y,R)}function v(C,P){let F=Z7(C)?C:C.get(L.checkDefined(P,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return L.assert(P===void 0||!F||F.sourceFile.scriptKind===P,`Script kind should match provided ScriptKind:${P} and sourceFile.scriptKind: ${F?.sourceFile.scriptKind}, !entry: ${!F}`),F}function S(C,P,F,B,q,W,Y,R,ie){var $,fe,Z,U;R=h4(C,R);let re=l(F),le=F===re?void 0:F,_e=R===6?100:Do(re),ge=typeof ie=="object"?ie:{languageVersion:_e,impliedNodeFormat:le&&NF(P,(U=(Z=(fe=($=le.getCompilerHost)==null?void 0:$.call(le))==null?void 0:fe.getModuleResolutionCache)==null?void 0:Z.call(fe))==null?void 0:U.getPackageJsonInfoCache(),le,re),setExternalModuleIndicator:OR(re)};ge.languageVersion=_e;let X=i.size,Ve=Oge(B,ge.impliedNodeFormat),we=VD(i,Ve,()=>new Map);if(ai){i.size>X&&ai.instant(ai.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:re.configFilePath,key:Ve});let Ie=!Fu(P)&&Ld(i,(Be,Ne)=>Ne!==Ve&&Be.has(P)&&Ne);Ie&&ai.instant(ai.Phase.Session,"documentRegistryBucketOverlap",{path:P,key1:Ie,key2:Ve})}let ke=we.get(P),Pe=ke&&v(ke,R);if(!Pe&&r){let Ie=r.getDocument(Ve,P);Ie&&(L.assert(Y),Pe={sourceFile:Ie,languageServiceRefCount:0},Ce())}if(Pe)Pe.sourceFile.version!==W&&(Pe.sourceFile=_$(Pe.sourceFile,q,W,q.getChangeRange(Pe.sourceFile.scriptSnapshot)),r&&r.setDocument(Ve,P,Pe.sourceFile)),Y&&Pe.languageServiceRefCount++;else{let Ie=f5(C,q,ge,W,!1,R);r&&r.setDocument(Ve,P,Ie),Pe={sourceFile:Ie,languageServiceRefCount:1},Ce()}return L.assert(Pe.languageServiceRefCount!==0),Pe.sourceFile;function Ce(){if(!ke)we.set(P,Pe);else if(Z7(ke)){let Ie=new Map;Ie.set(ke.sourceFile.scriptKind,ke),Ie.set(R,Pe),we.set(P,Ie)}else ke.set(R,Pe)}}function x(C,P,F,B){let q=Ts(C,t,o),W=e5(P);return A(q,W,F,B)}function A(C,P,F,B){let q=L.checkDefined(i.get(Oge(P,B))),W=q.get(C),Y=v(W,F);Y.languageServiceRefCount--,L.assert(Y.languageServiceRefCount>=0),Y.languageServiceRefCount===0&&(Z7(W)?q.delete(C):(W.delete(F),W.size===1&&q.set(C,FD(W.values(),Ks))))}function w(C,P){return lo(i.entries(),([F,B])=>{let q=B.get(C),W=q&&v(q,P);return[F,W&&W.languageServiceRefCount]})}return{acquireDocument:f,acquireDocumentWithKey:d,updateDocument:g,updateDocumentWithKey:m,releaseDocument:x,releaseDocumentWithKey:A,getLanguageServiceRefCounts:w,reportStats:s,getKeyForCompilationSettings:e5}}function e5(e){return JJ(e,V3)}function Oge(e,t){return t?`${e}|${t}`:e}var d4e=gt({"src/services/documentRegistry.ts"(){"use strict";Fr()}});function Nge(e,t,r,i,o,s,l){let f=xR(i),d=Dl(f),g=jY(t,r,d,l),m=jY(r,t,d,l);return nr.ChangeTracker.with({host:i,formatContext:o,preferences:s},v=>{_4e(e,v,g,t,r,i.getCurrentDirectory(),f),p4e(e,v,g,m,i,d)})}function jY(e,t,r,i){let o=r(e);return l=>{let f=i&&i.tryGetSourcePosition({fileName:l,pos:0}),d=s(f?f.fileName:l);return f?d===void 0?void 0:f4e(f.fileName,d,l,r):d};function s(l){if(r(l)===o)return t;let f=IW(l,o,r);return f===void 0?void 0:t+"/"+f}}function f4e(e,t,r,i){let o=_w(e,t,i);return HY(ni(r),o)}function _4e(e,t,r,i,o,s,l){let{configFile:f}=e.getCompilerOptions();if(!f)return;let d=ni(f.fileName),g=LI(f);if(!g)return;WY(g,(x,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(x)||A!=="include"||!fu(x.initializer))return;let C=Zi(x.initializer.elements,F=>yo(F)?F.text:void 0);if(C.length===0)return;let P=tL(d,[],C,l,s);Qy(L.checkDefined(P.includeFilePattern),l).test(i)&&!Qy(L.checkDefined(P.includeFilePattern),l).test(o)&&t.insertNodeAfter(f,To(x.initializer.elements),D.createStringLiteral(S(o)));return}case"compilerOptions":WY(x.initializer,(w,C)=>{let P=gJ(C);L.assert(P?.type!=="listOrElement"),P&&(P.isFilePath||P.type==="list"&&P.element.isFilePath)?m(w):C==="paths"&&WY(w.initializer,F=>{if(fu(F.initializer))for(let B of F.initializer.elements)v(B)})});return}});function m(x){let A=fu(x.initializer)?x.initializer.elements:[x.initializer],w=!1;for(let C of A)w=v(C)||w;return w}function v(x){if(!yo(x))return!1;let A=HY(d,x.text),w=r(A);return w!==void 0?(t.replaceRangeWithText(f,Mge(x,f),S(w)),!0):!1}function S(x){return Xp(d,x,!l)}}function p4e(e,t,r,i,o,s){let l=e.getSourceFiles();for(let f of l){let d=r(f.fileName),g=d??f.fileName,m=ni(g),v=i(f.fileName),S=v||f.fileName,x=ni(S),A=d!==void 0||v!==void 0;g4e(f,t,w=>{if(!Jd(w))return;let C=HY(x,w),P=r(C);return P===void 0?void 0:S0(Xp(m,P,s))},w=>{let C=e.getTypeChecker().getSymbolAtLocation(w);if(C?.declarations&&C.declarations.some(F=>lu(F)))return;let P=v!==void 0?Pge(w,FL(w.text,S,e.getCompilerOptions(),o),r,l):h4e(C,w,f,e,o,r);return P!==void 0&&(P.updated||A&&Jd(w.text))?Q0.updateModuleSpecifier(e.getCompilerOptions(),f,s(g),P.newFileName,$S(e,o),w.text):void 0})}}function m4e(e,t){return So(vi(e,t))}function HY(e,t){return S0(m4e(e,t))}function h4e(e,t,r,i,o,s){var l;if(e){let f=wr(e.declarations,Li).fileName,d=s(f);return d===void 0?{newFileName:f,updated:!1}:{newFileName:d,updated:!0}}else{let f=W_(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?(l=r.resolvedModules)==null?void 0:l.get(t.text,f):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,f);return Pge(t,d,s,i.getSourceFiles())}}function Pge(e,t,r,i){if(!t)return;if(t.resolvedModule){let d=f(t.resolvedModule.resolvedFileName);if(d)return d}let o=mn(t.failedLookupLocations,s)||Jd(e.text)&&mn(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(d){let g=r(d);return g&&wr(i,m=>m.fileName===g)?l(d):void 0}function l(d){return Oc(d,"/package.json")?void 0:f(d)}function f(d){let g=r(d);return g&&{newFileName:g,updated:!0}}}function g4e(e,t,r,i){for(let o of e.referencedFiles||Je){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,Mge(o,e),s)}}function Mge(e,t){return Gf(e.getStart(t)+1,e.end-1)}function WY(e,t){if(rs(e))for(let r of e.properties)yl(r)&&yo(r.name)&&t(r,r.name.text)}var y4e=gt({"src/services/getEditsForFileRename.ts"(){"use strict";Fr()}});function $N(e,t){return{kind:e,isCaseSensitive:t}}function Fge(e){let t=new Map,r=e.trim().split(".").map(i=>T4e(i.trim()));if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>v4e(i,o,r,t),getMatchForLastSegmentOfPattern:i=>zY(i,To(r),t),patternContainsDots:r.length>1}}function v4e(e,t,r,i){if(!zY(t,To(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,f=e.length-1;l>=0;l-=1,f-=1)s=Uge(s,zY(e[f],r[l],i));return s}function Gge(e,t){let r=t.get(e);return r||t.set(e,r=Wge(e)),r}function Bge(e,t,r){let i=S4e(e,t.textLowerCase);if(i===0)return $N(t.text.length===e.length?0:1,na(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=Gge(e,r);for(let s of o)if(JY(e,s,t.text,!0))return $N(2,JY(e,s,t.text,!1));if(t.text.length<e.length&&ex(e.charCodeAt(i)))return $N(2,!1)}else{if(e.indexOf(t.text)>0)return $N(2,!0);if(t.characterSpans.length>0){let o=Gge(e,r),s=Vge(e,o,t,!1)?!0:Vge(e,o,t,!0)?!1:void 0;if(s!==void 0)return $N(3,s)}}}function zY(e,t,r){if(t5(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=Bge(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=Uge(o,Bge(e,s,r));return o}function Uge(e,t){return WU([e,t],b4e)}function b4e(e,t){return e===void 0?1:t===void 0?-1:Es(e.kind,t.kind)||g0(!e.isCaseSensitive,!t.isCaseSensitive)}function JY(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&Kge(0,o.length,s=>E4e(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function E4e(e,t,r){return r?KY(e)===KY(t):e===t}function Vge(e,t,r,i){let o=r.characterSpans,s=0,l=0,f,d;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let g=t[s],m=!1;for(;l<o.length;l++){let v=o[l];if(m&&(!ex(r.text.charCodeAt(o[l-1].start))||!ex(r.text.charCodeAt(o[l].start)))||!JY(e,g,r.text,i,v))break;m=!0,f=f===void 0?s:f,d=d===void 0?!0:d,g=il(g.start+v.length,g.length-v.length)}!m&&d!==void 0&&(d=!1),s++}}function T4e(e){return{totalTextChunk:XY(e),subWordTextChunks:A4e(e)}}function ex(e){if(e>=65&&e<=90)return!0;if(e<127||!W8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function jge(e){if(e>=97&&e<=122)return!0;if(e<127||!W8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function S4e(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(t5(t,(o,s)=>KY(e.charCodeAt(s+i))===o))return i;return-1}function KY(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function qY(e){return e>=48&&e<=57}function x4e(e){return ex(e)||jge(e)||qY(e)||e===95||e===36}function A4e(e){let t=[],r=0,i=0;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);x4e(s)?(i===0&&(r=o),i++):i>0&&(t.push(XY(e.substr(r,i))),i=0)}return i>0&&t.push(XY(e.substr(r,i))),t}function XY(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Hge(e)}}function Hge(e){return zge(e,!1)}function Wge(e){return zge(e,!0)}function zge(e,t){let r=[],i=0;for(let o=1;o<e.length;o++){let s=qY(e.charCodeAt(o-1)),l=qY(e.charCodeAt(o)),f=I4e(e,t,o),d=t&&C4e(e,o,i);(YY(e.charCodeAt(o-1))||YY(e.charCodeAt(o))||s!==l||f||d)&&(Jge(e,i,o)||r.push(il(i,o-i)),i=o)}return Jge(e,i,e.length)||r.push(il(i,e.length-i)),r}function YY(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function Jge(e,t,r){return t5(e,i=>YY(i)&&i!==95,t,r)}function C4e(e,t,r){return t!==r&&t+1<e.length&&ex(e.charCodeAt(t))&&jge(e.charCodeAt(t+1))&&t5(e,ex,r,t)}function I4e(e,t,r){let i=ex(e.charCodeAt(r-1));return ex(e.charCodeAt(r))&&(!t||!i)}function Kge(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function t5(e,t,r=0,i=e.length){return Kge(r,i,o=>t(e.charCodeAt(o),o))}var n5,L4e=gt({"src/services/patternMatcher.ts"(){"use strict";Fr(),n5=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(n5||{})}});function qge(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,f,d=0,g=!1;function m(){return l=f,f=$l.scan(),f===18?d++:f===19&&d--,f}function v(){let W=$l.getTokenValue(),Y=$l.getTokenPos();return{fileName:W,pos:Y,end:Y+W.length}}function S(){s||(s=[]),s.push({ref:v(),depth:d})}function x(){o.push(v()),A()}function A(){d===0&&(g=!0)}function w(){let W=$l.getToken();return W===136?(W=m(),W===142&&(W=m(),W===10&&S()),!0):!1}function C(){if(l===24)return!1;let W=$l.getToken();if(W===100){if(W=m(),W===20){if(W=m(),W===10||W===14)return x(),!0}else{if(W===10)return x(),!0;if(W===154&&$l.lookAhead(()=>{let R=$l.scan();return R!==158&&(R===41||R===18||R===79||Xu(R))})&&(W=m()),W===79||Xu(W))if(W=m(),W===158){if(W=m(),W===10)return x(),!0}else if(W===63){if(F(!0))return!0}else if(W===27)W=m();else return!0;if(W===18){for(W=m();W!==19&&W!==1;)W=m();W===19&&(W=m(),W===158&&(W=m(),W===10&&x()))}else W===41&&(W=m(),W===128&&(W=m(),(W===79||Xu(W))&&(W=m(),W===158&&(W=m(),W===10&&x()))))}return!0}return!1}function P(){let W=$l.getToken();if(W===93){if(A(),W=m(),W===154&&$l.lookAhead(()=>{let R=$l.scan();return R===41||R===18})&&(W=m()),W===18){for(W=m();W!==19&&W!==1;)W=m();W===19&&(W=m(),W===158&&(W=m(),W===10&&x()))}else if(W===41)W=m(),W===158&&(W=m(),W===10&&x());else if(W===100&&(W=m(),W===154&&$l.lookAhead(()=>{let R=$l.scan();return R===79||Xu(R)})&&(W=m()),(W===79||Xu(W))&&(W=m(),W===63&&F(!0))))return!0;return!0}return!1}function F(W,Y=!1){let R=W?m():$l.getToken();return R===147?(R=m(),R===20&&(R=m(),(R===10||Y&&R===14)&&x()),!0):!1}function B(){let W=$l.getToken();if(W===79&&$l.getTokenValue()==="define"){if(W=m(),W!==20)return!0;if(W=m(),W===10||W===14)if(W=m(),W===27)W=m();else return!0;if(W!==22)return!0;for(W=m();W!==23&&W!==1;)(W===10||W===14)&&x(),W=m();return!0}return!1}function q(){for($l.setText(e),m();$l.getToken()!==1;){if($l.getToken()===15){let W=[$l.getToken()];e:for(;Fn(W);){let Y=$l.scan();switch(Y){case 1:break e;case 100:C();break;case 15:W.push(Y);break;case 18:Fn(W)&&W.push(Y);break;case 19:Fn(W)&&(Os(W)===15?$l.reScanTemplateToken(!1)===17&&W.pop():W.pop());break}}m()}w()||C()||P()||r&&(F(!1,!0)||B())||m()}$l.setText(void 0)}if(t&&q(),dJ(i,e),fJ(i,Ba),g){if(s)for(let W of s)o.push(W.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let W;if(s)for(let Y of s)Y.depth===0?(W||(W=[]),W.push(Y.ref.fileName)):o.push(Y.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:W}}}var k4e=gt({"src/services/preProcess.ts"(){"use strict";Fr()}});function Xge(e){let t=Dl(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:f,tryGetGeneratedPosition:d,toLineColumnOffset:S,clearCache:x};function s(A){return Ts(A,r,t)}function l(A,w){let C=s(A),P=o.get(C);if(P)return P;let F;if(e.getDocumentPositionMapper)F=e.getDocumentPositionMapper(A,w);else if(e.readFile){let B=v(A);F=B&&Yge({getSourceFileLike:v,getCanonicalFileName:t,log:q=>e.log(q)},A,F_e(B.text,Sh(B)),q=>!e.fileExists||e.fileExists(q)?e.readFile(q):void 0)}return o.set(C,F||yF),F||yF}function f(A){if(!Fu(A.fileName)||!g(A.fileName))return;let C=l(A.fileName).getSourcePosition(A);return!C||C===A?void 0:f(C)||C}function d(A){if(Fu(A.fileName))return;let w=g(A.fileName);if(!w)return;let C=e.getProgram();if(C.isSourceOfProjectReferenceRedirect(w.fileName))return;let P=C.getCompilerOptions(),F=Ss(P),B=F?ld(F)+".d.ts":$H(A.fileName,C.getCompilerOptions(),r,C.getCommonSourceDirectory(),t);if(B===void 0)return;let q=l(B,A.fileName).getGeneratedPosition(A);return q===A?void 0:q}function g(A){let w=e.getProgram();if(!w)return;let C=s(A),P=w.getSourceFileByPath(C);return P&&P.resolvedPath===C?P:void 0}function m(A){let w=s(A),C=i.get(w);if(C!==void 0)return C||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(w)){i.set(w,!1);return}let P=e.readFile(w),F=P?D4e(P):!1;return i.set(w,F),F||void 0}function v(A){return e.getSourceFileLike?e.getSourceFileLike(A):g(A)||m(A)}function S(A,w){return v(A).getLineAndCharacterOfPosition(w)}function x(){i.clear(),o.clear()}}function Yge(e,t,r,i){let o=G_e(r);if(o){let f=Qge.exec(o);if(f){if(f[1]){let d=f[1];return $ge(e,nle(xl,d),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&_a(o,ni(t));for(let f of s){let d=_a(f,ni(t)),g=i(d,l);if(Ta(g))return $ge(e,g,d);if(g!==void 0)return g||void 0}}function $ge(e,t,r){let i=bK(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(Ta)))return H_e(e,i,r)}function D4e(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return yw(Sh(this),r)}}}var Qge,w4e=gt({"src/services/sourcemaps.ts"(){"use strict";Fr(),Fr(),Qge=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/}});function $Y(e,t,r){t.getSemanticDiagnostics(e,r);let i=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||$c(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(Vhe(t)||aY(t.getCompilerOptions()))&&R4e(e)&&i.push(hr(M4e(e.commonJsModuleIndicator),_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let l=Cu(e);if(i5.clear(),f(e),wT(t.getCompilerOptions()))for(let d of e.imports){let g=aR(d),m=O4e(g);if(!m)continue;let v=kA(e,d.text,W_(e,d)),S=v&&t.getSourceFile(v.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&pc(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&i.push(hr(m,_.Import_may_be_converted_to_a_default_import))}return si(i,e.bindSuggestionDiagnostics),si(i,t.getSuggestionDiagnostics(e,r)),i.sort((d,g)=>d.start-g.start);function f(d){if(l)G4e(d,o)&&i.push(hr(wi(d.parent)?d.parent.name:d,_.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Bc(d)&&d.parent===e&&d.declarationList.flags&2&&d.declarationList.declarations.length===1){let g=d.declarationList.declarations[0].initializer;g&&qu(g,!0)&&i.push(hr(g,_.require_call_may_be_converted_to_an_import))}gu.parameterShouldGetTypeFromJSDoc(d)&&i.push(hr(d.name||d,_.JSDoc_types_may_be_moved_to_TypeScript_types))}e$(d)&&N4e(d,o,i),d.forEachChild(f)}}function R4e(e){return e.statements.some(t=>{switch(t.kind){case 240:return t.declarationList.declarations.some(r=>!!r.initializer&&qu(Zge(r.initializer),!0));case 241:{let{expression:r}=t;if(!ar(r))return qu(r,!0);let i=ic(r);return i===1||i===2}default:return!1}})}function Zge(e){return br(e)?Zge(e.expression):e}function O4e(e){switch(e.kind){case 269:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===271&&yo(r)?t.namedBindings.name:void 0;case 268:return e.name;default:return}}function N4e(e,t,r){P4e(e,t)&&!i5.has(rye(e))&&r.push(hr(!e.name&&wi(e.parent)&&Re(e.parent.name)?e.parent.name:e,_.This_may_be_converted_to_an_async_function))}function P4e(e,t){return!qA(e)&&e.body&&Va(e.body)&&F4e(e.body,t)&&QY(e,t)}function QY(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function M4e(e){return ar(e)?e.left:e}function F4e(e,t){return!!vT(e,r=>r5(r,t))}function r5(e,t){return j_(e)&&!!e.expression&&ZY(e.expression,t)}function ZY(e,t){if(!eye(e)||!tye(e)||!e.arguments.every(i=>nye(i,t)))return!1;let r=e.expression.expression;for(;eye(r)||br(r);)if(Pa(r)){if(!tye(r)||!r.arguments.every(i=>nye(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function eye(e){return Pa(e)&&(kN(e,"then")||kN(e,"catch")||kN(e,"finally"))}function tye(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||vt(e.arguments,i=>i.kind===104||Re(i)&&i.text==="undefined")}function nye(e,t){switch(e.kind){case 259:case 215:if(pl(e)&1)return!1;case 216:i5.set(rye(e),!0);case 104:return!0;case 79:case 208:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||vt(wd(i,t).declarations,o=>Ia(o)||Jy(o)&&!!o.initializer&&Ia(o.initializer)):!1}default:return!1}}function rye(e){return`${e.pos.toString()}:${e.end.toString()}`}function G4e(e,t){var r,i,o,s;if(ms(e)){if(wi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Jc(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function e$(e){switch(e.kind){case 259:case 171:case 215:case 216:return!0;default:return!1}}var i5,B4e=gt({"src/services/suggestionDiagnostics.ts"(){"use strict";Fr(),i5=new Map}});function iye(e,t){let r=[],i=t.compilerOptions?t$(t.compilerOptions,r):{},o=d5();for(let S in o)fs(o,S)&&i[S]===void 0&&(i[S]=o[S]);for(let S of BJ)i.verbatimModuleSyntax&&aye.has(S.name)||(i[S.name]=S.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=db(i),l={getSourceFile:S=>S===So(f)?d:void 0,writeFile:(S,x)=>{Gc(S,".map")?(L.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",S),m=x):(L.assertEqual(g,void 0,"Unexpected multiple outputs, file:",S),g=x)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:S=>S,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:S=>S===f,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},f=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),d=DO(f,e,{languageVersion:Do(i),impliedNodeFormat:NF(Ts(f,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:OR(i)});t.moduleName&&(d.moduleName=t.moduleName),t.renamedDependencies&&(d.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,m,v=PF([f],i,l);return t.reportDiagnostics&&(si(r,v.getSyntacticDiagnostics(d)),si(r,v.getOptionsDiagnostics())),v.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?L.fail("Output generation failed"):{outputText:g,diagnostics:r,sourceMapText:m}}function U4e(e,t,r,i,o){let s=iye(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return si(i,s.diagnostics),s.outputText}function t$(e,t){n$=n$||Pr(Fh,r=>typeof r.type=="object"&&!Ld(r.type,i=>typeof i!="number")),e=Mhe(e);for(let r of n$){if(!fs(e,r.name))continue;let i=e[r.name];Ta(i)?e[r.name]=O3(r,i,t):Ld(r.type,o=>o===i)||t.push(pJ(r))}return e}var aye,n$,V4e=gt({"src/services/transpile.ts"(){"use strict";Fr(),aye=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function oye(e,t,r,i,o,s){let l=Fge(i);if(!l)return Je;let f=[];for(let d of e)r.throwIfCancellationRequested(),!(s&&d.isDeclarationFile)&&d.getNamedDeclarations().forEach((g,m)=>{j4e(l,m,g,t,d.fileName,f)});return f.sort(J4e),(o===void 0?f:f.slice(0,o)).map(K4e)}function j4e(e,t,r,i,o,s){let l=e.getMatchForLastSegmentOfPattern(t);if(l){for(let f of r)if(H4e(f,i))if(e.patternContainsDots){let d=e.getFullMatch(z4e(f),t);d&&s.push({name:t,fileName:o,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:f})}else s.push({name:t,fileName:o,matchKind:l.kind,isCaseSensitive:l.isCaseSensitive,declaration:f})}}function H4e(e,t){switch(e.kind){case 270:case 273:case 268:let r=t.getSymbolAtLocation(e.name),i=t.getAliasedSymbol(r);return r.escapedName!==i.escapedName;default:return!0}}function W4e(e,t){let r=sa(e);return!!r&&(sye(r,t)||r.kind===164&&r$(r.expression,t))}function r$(e,t){return sye(e,t)||br(e)&&(t.push(e.name.text),!0)&&r$(e.expression,t)}function sye(e,t){return c_(e)&&(t.push(l_(e)),!0)}function z4e(e){let t=[],r=sa(e);if(r&&r.kind===164&&!r$(r.expression,t))return Je;t.shift();let i=e1(e);for(;i;){if(!W4e(i,t))return Je;i=e1(i)}return t.reverse()}function J4e(e,t){return Es(e.matchKind,t.matchKind)||XD(e.name,t.name)}function K4e(e){let t=e.declaration,r=e1(t),i=r&&sa(r);return{name:e.name,kind:aE(t),kindModifiers:rk(t),matchKind:n5[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Du(t),containerName:i?i.text:"",containerKind:i?aE(r):""}}var q4e=gt({"src/services/navigateTo.ts"(){"use strict";Fr()}}),cye={};Mo(cye,{getNavigateToItems:()=>oye});var lye=gt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";q4e()}});function uye(e,t){c5=t,fk=e;try{return on(Z4e(pye(e)),e3e)}finally{fye()}}function dye(e,t){c5=t,fk=e;try{return Sye(pye(e))}finally{fye()}}function fye(){fk=void 0,c5=void 0,_k=[],Uh=void 0,l5=[]}function QN(e){return X2(e.getText(fk))}function a5(e){return e.node.kind}function _ye(e,t){e.children?e.children.push(t):e.children=[t]}function pye(e){L.assert(!_k.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};Uh=t;for(let r of e.statements)a1(r);return dv(),L.assert(!Uh&&!_k.length),t}function Eb(e,t){_ye(Uh,i$(e,t))}function i$(e,t){return{node:e,name:t||(Kl(e)||ot(e)?sa(e):void 0),additionalNodes:void 0,parent:Uh,children:void 0,indent:Uh.indent+1}}function mye(e){tx||(tx=new Map),tx.set(e,!0)}function hye(e){for(let t=0;t<e;t++)dv()}function gye(e,t){let r=[];for(;!c_(t);){let i=eR(t),o=wh(t);t=t.expression,!(o==="prototype"||pi(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){let o=r[i];Tb(e,o)}return[r.length-1,r[0]]}function Tb(e,t){let r=i$(e,t);_ye(Uh,r),_k.push(Uh),f$.push(tx),tx=void 0,Uh=r}function dv(){Uh.children&&(o5(Uh.children,Uh),s$(Uh.children)),Uh=_k.pop(),tx=f$.pop()}function fv(e,t,r){Tb(e,r),a1(t),dv()}function yye(e){e.initializer&&n3e(e.initializer)?(Tb(e),pa(e.initializer,a1),dv()):fv(e,e.initializer)}function a$(e){return!Xy(e)||e.kind!==223&&br(e.name.expression)&&Re(e.name.expression.expression)&&vr(e.name.expression.expression)==="Symbol"}function a1(e){if(c5.throwIfCancellationRequested(),!(!e||Z1(e)))switch(e.kind){case 173:let t=e;fv(t,t.body);for(let l of t.parameters)Ad(l,t)&&Eb(l);break;case 171:case 174:case 175:case 170:a$(e)&&fv(e,e.body);break;case 169:a$(e)&&yye(e);break;case 168:a$(e)&&Eb(e);break;case 270:let r=e;r.name&&Eb(r.name);let{namedBindings:i}=r;if(i)if(i.kind===271)Eb(i);else for(let l of i.elements)Eb(l);break;case 300:fv(e,e.name);break;case 301:let{expression:o}=e;Re(o)?Eb(e,o):Eb(e);break;case 205:case 299:case 257:{let l=e;La(l.name)?a1(l.name):yye(l);break}case 259:let s=e.name;s&&Re(s)&&mye(s.text),fv(e,e.body);break;case 216:case 215:fv(e,e.body);break;case 263:Tb(e);for(let l of e.members)t3e(l)||Eb(l);dv();break;case 260:case 228:case 261:Tb(e);for(let l of e.members)a1(l);dv();break;case 264:fv(e,Aye(e).body);break;case 274:{let l=e.expression,f=rs(l)||Pa(l)?l:xs(l)||ms(l)?l.body:void 0;f?(Tb(e),a1(f),dv()):Eb(e);break}case 278:case 268:case 178:case 176:case 177:case 262:Eb(e);break;case 210:case 223:{let l=ic(e);switch(l){case 1:case 2:fv(e,e.right);return;case 6:case 3:{let f=e,d=f.left,g=l===3?d.expression:d,m=0,v;Re(g.expression)?(mye(g.expression.text),v=g.expression):[m,v]=gye(f,g.expression),l===6?rs(f.right)&&f.right.properties.length>0&&(Tb(f,v),pa(f.right,a1),dv()):ms(f.right)||xs(f.right)?fv(e,f.right,v):(Tb(f,v),fv(e,f.right,d.name),dv()),hye(m);return}case 7:case 9:{let f=e,d=l===7?f.arguments[0]:f.arguments[0].expression,g=f.arguments[1],[m,v]=gye(e,d);Tb(e,v),Tb(e,it(D.createIdentifier(g.text),g)),a1(e.arguments[2]),dv(),dv(),hye(m);return}case 5:{let f=e,d=f.left,g=d.expression;if(Re(g)&&wh(d)!=="prototype"&&tx&&tx.has(g.text)){ms(f.right)||xs(f.right)?fv(e,f.right,g):ST(d)&&(Tb(f,g),fv(f.left,f.right,eR(d)),dv());return}break}case 4:case 0:case 8:break;default:L.assertNever(l)}}default:Kd(e)&&mn(e.jsDoc,l=>{mn(l.tags,f=>{Ff(f)&&Eb(f)})}),pa(e,a1)}}function o5(e,t){let r=new Map;wU(e,(i,o)=>{let s=i.name||sa(i.node),l=s&&QN(s);if(!l)return!0;let f=r.get(l);if(!f)return r.set(l,i),!0;if(f instanceof Array){for(let d of f)if(vye(d,i,o,t))return!1;return f.push(i),!0}else{let d=f;return vye(d,i,o,t)?!1:(r.set(l,[d,i]),!0)}})}function X4e(e,t,r,i){function o(f){return ms(f)||Jc(f)||wi(f)}let s=ar(t.node)||Pa(t.node)?ic(t.node):0,l=ar(e.node)||Pa(e.node)?ic(e.node):0;if(Y2[s]&&Y2[l]||o(e.node)&&Y2[s]||o(t.node)&&Y2[l]||sl(e.node)&&o$(e.node)&&Y2[s]||sl(t.node)&&Y2[l]||sl(e.node)&&o$(e.node)&&o(t.node)||sl(t.node)&&o(e.node)&&o$(e.node)){let f=e.additionalNodes&&Os(e.additionalNodes)||e.node;if(!sl(e.node)&&!sl(t.node)||o(e.node)||o(t.node)){let g=o(e.node)?e.node:o(t.node)?t.node:void 0;if(g!==void 0){let m=it(D.createConstructorDeclaration(void 0,[],void 0),g),v=i$(m);v.indent=e.indent+1,v.children=e.node===g?e.children:t.children,e.children=e.node===g?Qi([v],t.children||[t]):Qi(e.children||[{...e}],[v])}else(e.children||t.children)&&(e.children=Qi(e.children||[{...e}],t.children||[t]),e.children&&(o5(e.children,e),s$(e.children)));f=e.node=it(D.createClassDeclaration(void 0,e.name||D.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=Qi(e.children,t.children),e.children&&o5(e.children,e);let d=t.node;return i.children[r-1].node.end===f.end?it(f,{pos:f.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(it(D.createClassDeclaration(void 0,e.name||D.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function vye(e,t,r,i){return X4e(e,t,r,i)?!0:Y4e(e.node,t.node,i)?($4e(e,t),!0):!1}function Y4e(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(bye(e,r)&&bye(t,r)))return!1;switch(e.kind){case 169:case 171:case 174:case 175:return Ca(e)===Ca(t);case 264:return Eye(e,t)&&u$(e)===u$(t);default:return!0}}function o$(e){return!!(e.flags&8)}function bye(e,t){let r=Tp(e.parent)?e.parent.parent:e.parent;return r===t.node||ya(t.additionalNodes,r)}function Eye(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==264||Eye(e.body,t.body))}function $4e(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=Qi(e.children,t.children),e.children&&(o5(e.children,e),s$(e.children))}function s$(e){e.sort(Q4e)}function Q4e(e,t){return XD(Tye(e.node),Tye(t.node))||Es(a5(e),a5(t))}function Tye(e){if(e.kind===264)return xye(e);let t=sa(e);if(t&&Ys(t)){let r=M0(t);return r&&Gi(r)}switch(e.kind){case 215:case 216:case 228:return Iye(e);default:return}}function c$(e,t){if(e.kind===264)return X2(xye(e));if(t){let r=Re(t)?t.text:Vs(t)?`[${QN(t.argumentExpression)}]`:QN(t);if(r.length>0)return X2(r)}switch(e.kind){case 308:let r=e;return Lc(r)?`"${_S(Hl(ld(So(r.fileName))))}"`:"<global>";case 274:return pc(e)&&e.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return Yy(e)&1024?"default":Iye(e);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return"<unknown>"}}function Z4e(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(a5(o)){case 260:case 228:case 263:case 261:case 264:case 308:case 262:case 349:case 341:return!0;case 216:case 259:case 215:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(a5(l.parent)){case 265:case 308:case 171:case 173:return!0;default:return!1}}}}function Sye(e){return{text:c$(e.node,e.name),kind:aE(e.node),kindModifiers:Cye(e.node),spans:l$(e),nameSpan:e.name&&d$(e.name),childItems:on(e.children,Sye)}}function e3e(e){return{text:c$(e.node,e.name),kind:aE(e.node),kindModifiers:Cye(e.node),spans:l$(e),childItems:on(e.children,t)||l5,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:c$(r.node,r.name),kind:aE(r.node),kindModifiers:rk(r.node),spans:l$(r),childItems:l5,indent:0,bolded:!1,grayed:!1}}}function l$(e){let t=[d$(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push(d$(r));return t}function xye(e){return lu(e)?Qc(e.name):u$(e)}function u$(e){let t=[l_(e.name)];for(;e.body&&e.body.kind===264;)e=e.body,t.push(l_(e.name));return t.join(".")}function Aye(e){return e.body&&Tc(e.body)?Aye(e.body):e}function t3e(e){return!e.name||e.name.kind===164}function d$(e){return e.kind===308?lv(e):Du(e,fk)}function Cye(e){return e.parent&&e.parent.kind===257&&(e=e.parent),rk(e)}function Iye(e){let{parent:t}=e;if(e.name&&Fw(e.name)>0)return X2(os(e.name));if(wi(t))return X2(os(t.name));if(ar(t)&&t.operatorToken.kind===63)return QN(t.left).replace(kye,"");if(yl(t))return QN(t.name);if(Yy(e)&1024)return"default";if(Yr(e))return"<class>";if(Pa(t)){let r=Lye(t.expression);if(r!==void 0){if(r=X2(r),r.length>s5)return`${r} callback`;let i=X2(Zi(t.arguments,o=>es(o)?o.getText(fk):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function Lye(e){if(Re(e))return e.text;if(br(e)){let t=Lye(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function n3e(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}function X2(e){return e=e.length>s5?e.substring(0,s5)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var kye,s5,c5,fk,_k,Uh,f$,tx,l5,Y2,r3e=gt({"src/services/navigationBar.ts"(){"use strict";Fr(),kye=/\s+/g,s5=150,_k=[],f$=[],l5=[],Y2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Dye={};Mo(Dye,{getNavigationBarItems:()=>uye,getNavigationTree:()=>dye});var wye=gt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";r3e()}});function Rye(e,t,r,i){let o=Iw(e)?new p5(e,t,r):e===79?new h5(79,t,r):e===80?new g5(80,t,r):new h$(e,t,r);return o.parent=i,o.flags=i.flags&50720768,o}function i3e(e,t){if(!Iw(e.kind))return Je;let r=[];if(qj(e))return e.forEachChild(l=>{r.push(l)}),r;$l.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{ZN(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{ZN(r,i,l.pos,e),r.push(a3e(l,e)),i=l.end};return mn(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),ZN(r,i,e.end,e),$l.setText(void 0),r}function ZN(e,t,r,i){for($l.setTextPos(t);t<r;){let o=$l.scan(),s=$l.getTextPos();if(s<=r){if(o===79){if(jle(i))continue;L.fail(`Did not expect ${L.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(Rye(o,t,s,i))}if(t=s,o===1)break}}function a3e(e,t){let r=Rye(354,e.pos,e.end,t);r._children=[];let i=e.pos;for(let o of e)ZN(r._children,i,o.pos,t),r._children.push(o),i=o.end;return ZN(r._children,i,e.end,t),r}function Oye(e){return A0(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function u5(e,t){if(!e)return Je;let r=xb.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Oye))){let i=new Set;for(let o of e){let s=Nye(t,o,l=>{var f;if(!i.has(l))return i.add(l),o.kind===174||o.kind===175?l.getContextualJsDocTags(o,t):((f=l.declarations)==null?void 0:f.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function eP(e,t){if(!e)return Je;let r=xb.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Oye))){let i=new Set;for(let o of e){let s=Nye(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===174||o.kind===175?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(K2(),r))}}return r}function Nye(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===173?t.parent.parent:t.parent;if(!o)return;let s=zc(t);return ks(NI(o),l=>{let f=e.getTypeAtLocation(l),d=s&&f.symbol?e.getTypeOfSymbol(f.symbol):f,g=e.getPropertyOfType(d,t.symbol.name);return g?r(g):void 0})}function o3e(){return{getNodeConstructor:()=>p5,getTokenConstructor:()=>h$,getIdentifierConstructor:()=>h5,getPrivateIdentifierConstructor:()=>g5,getSourceFileConstructor:()=>Hye,getSymbolConstructor:()=>Uye,getTypeConstructor:()=>Vye,getSignatureConstructor:()=>jye,getSourceMapSourceConstructor:()=>Wye}}function tP(e){let t=!0;for(let i in e)if(fs(e,i)&&!Pye(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(fs(e,i)){let o=Pye(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function Pye(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function Mye(e){return e?on(e,t=>t.text).join(""):""}function d5(){return{target:1,jsx:1}}function Fye(){return gu.getSupportedErrorCodes()}function Gye(e,t,r){e.version=r,e.scriptSnapshot=t}function f5(e,t,r,i,o,s){let l=DO(e,E7(t),r,o,s);return Gye(l,t,i),l}function _$(e,t,r,i,o){if(i&&r!==e.version){let l,f=i.span.start!==0?e.text.substr(0,i.span.start):"",d=wl(i.span)!==e.text.length?e.text.substr(wl(i.span)):"";if(i.newLength===0)l=f&&d?f+d:f||d;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=f&&d?f+m+d:f?f+m:m+d}let g=uJ(e,l,i,o);return Gye(g,t,r),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return f5(e.fileName,t,s,r,!0,e.scriptKind)}function Bye(e,t=VY(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new zye(e),l,f,d=0,g=e.getCancellationToken?new Kye(e.getCancellationToken()):Jye,m=e.getCurrentDirectory();mle((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function v(Ke){e.log&&e.log(Ke)}let S=xR(e),x=Dl(S),A=Xge({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>m,getProgram:P,fileExists:ho(e,e.fileExists),readFile:ho(e,e.readFile),getDocumentPositionMapper:ho(e,e.getDocumentPositionMapper),getSourceFileLike:ho(e,e.getSourceFileLike),log:v});function w(Ke){let oe=l.getSourceFile(Ke);if(!oe){let pe=new Error(`Could not find source file: '${Ke}'.`);throw pe.ProgramFiles=l.getSourceFiles().map(z=>z.fileName),pe}return oe}function C(){var Ke,oe,pe;if(L.assert(o!==2),e.getProjectVersion){let Qr=e.getProjectVersion();if(Qr){if(f===Qr&&!((Ke=e.hasChangedAutomaticTypeDirectiveNames)!=null&&Ke.call(e)))return;f=Qr}}let z=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==z&&(v("TypeRoots version has changed; provide new program"),l=void 0,d=z);let Te=e.getScriptFileNames().slice(),j=e.getCompilationSettings()||d5(),yt=e.hasInvalidatedResolutions||m0,lt=ho(e,e.hasChangedAutomaticTypeDirectiveNames),Qe=(oe=e.getProjectReferences)==null?void 0:oe.call(e),Vt,Hn={getSourceFile:Nr,getSourceFileByPath:Fo,getCancellationToken:()=>g,getCanonicalFileName:x,useCaseSensitiveFileNames:()=>S,getNewLine:()=>db(j),getDefaultLibFileName:Qr=>e.getDefaultLibFileName(Qr),writeFile:Ba,getCurrentDirectory:()=>m,fileExists:Qr=>e.fileExists(Qr),readFile:Qr=>e.readFile&&e.readFile(Qr),getSymlinkCache:ho(e,e.getSymlinkCache),realpath:ho(e,e.realpath),directoryExists:Qr=>gp(Qr,e),getDirectories:Qr=>e.getDirectories?e.getDirectories(Qr):[],readDirectory:(Qr,Wi,gn,Ki,kc)=>(L.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(Qr,Wi,gn,Ki,kc)),onReleaseOldSourceFile:xi,onReleaseParsedCommandLine:Hi,hasInvalidatedResolutions:yt,hasChangedAutomaticTypeDirectiveNames:lt,trace:ho(e,e.trace),resolveModuleNames:ho(e,e.resolveModuleNames),getModuleResolutionCache:ho(e,e.getModuleResolutionCache),createHash:ho(e,e.createHash),resolveTypeReferenceDirectives:ho(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ho(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ho(e,e.resolveTypeReferenceDirectiveReferences),useSourceOfProjectReferenceRedirect:ho(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Za},jr=Hn.getSourceFile,{getSourceFileWithCache:ei}=pN(Hn,Qr=>Ts(Qr,m,x),(...Qr)=>jr.call(Hn,...Qr));Hn.getSourceFile=ei,(pe=e.setCompilerHost)==null||pe.call(e,Hn);let Kr={useCaseSensitiveFileNames:S,fileExists:Qr=>Hn.fileExists(Qr),readFile:Qr=>Hn.readFile(Qr),readDirectory:(...Qr)=>Hn.readDirectory(...Qr),trace:Hn.trace,getCurrentDirectory:Hn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ba},Si=t.getKeyForCompilationSettings(j);if(lq(l,Te,j,(Qr,Wi)=>e.getScriptVersion(Wi),Qr=>Hn.fileExists(Qr),yt,lt,Za,Qe))return;l=PF({rootNames:Te,options:j,host:Hn,oldProgram:l,projectReferences:Qe}),Hn=void 0,Vt=void 0,A.clearCache(),l.getTypeChecker();return;function Za(Qr){let Wi=Ts(Qr,m,x),gn=Vt?.get(Wi);if(gn!==void 0)return gn||void 0;let Ki=e.getParsedCommandLine?e.getParsedCommandLine(Qr):Fa(Qr);return(Vt||(Vt=new Map)).set(Wi,Ki||!1),Ki}function Fa(Qr){let Wi=Nr(Qr,100);if(Wi)return Wi.path=Ts(Qr,m,x),Wi.resolvedPath=Wi.path,Wi.originalFileName=Wi.fileName,MO(Wi,Kr,_a(ni(Qr),m),void 0,_a(Qr,m))}function Hi(Qr,Wi,gn){var Ki;e.getParsedCommandLine?(Ki=e.onReleaseParsedCommandLine)==null||Ki.call(e,Qr,Wi,gn):Wi&&xi(Wi.sourceFile,gn)}function xi(Qr,Wi){let gn=t.getKeyForCompilationSettings(Wi);t.releaseDocumentWithKey(Qr.resolvedPath,gn,Qr.scriptKind,Qr.impliedNodeFormat)}function Nr(Qr,Wi,gn,Ki){return Fo(Qr,Ts(Qr,m,x),Wi,gn,Ki)}function Fo(Qr,Wi,gn,Ki,kc){L.assert(Hn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Ps=e.getScriptSnapshot(Qr);if(!Ps)return;let mc=mY(Qr,e),xc=e.getScriptVersion(Qr);if(!kc){let hc=l&&l.getSourceFileByPath(Wi);if(hc){if(mc===hc.scriptKind)return t.updateDocumentWithKey(Qr,Wi,e,Si,Ps,xc,mc,gn);t.releaseDocumentWithKey(hc.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),hc.scriptKind,hc.impliedNodeFormat)}}return t.acquireDocumentWithKey(Qr,Wi,e,Si,Ps,xc,mc,gn)}}function P(){if(o===2){L.assert(l===void 0);return}return C(),l}function F(){var Ke;return(Ke=e.getPackageJsonAutoImportProvider)==null?void 0:Ke.call(e)}function B(Ke,oe){let pe=l.getTypeChecker(),z=Te();if(!z)return!1;for(let yt of Ke)for(let lt of yt.references){let Qe=j(lt);if(L.assertIsDefined(Qe),oe.has(lt)||js.isDeclarationOfSymbol(Qe,z)){oe.add(lt),lt.isDefinition=!0;let Vt=uY(lt,A,ho(e,e.fileExists));Vt&&oe.add(Vt)}else lt.isDefinition=!1}return!0;function Te(){for(let yt of Ke)for(let lt of yt.references){if(oe.has(lt)){let Vt=j(lt);return L.assertIsDefined(Vt),pe.getSymbolAtLocation(Vt)}let Qe=uY(lt,A,ho(e,e.fileExists));if(Qe&&oe.has(Qe)){let Vt=j(Qe);if(Vt)return pe.getSymbolAtLocation(Vt)}}}function j(yt){let lt=l.getSourceFile(yt.fileName);if(!lt)return;let Qe=ef(lt,yt.textSpan.start);return js.Core.getAdjustedNode(Qe,{use:js.FindReferencesUse.References})}}function q(){l=void 0}function W(){if(l){let Ke=t.getKeyForCompilationSettings(l.getCompilerOptions());mn(l.getSourceFiles(),oe=>t.releaseDocumentWithKey(oe.resolvedPath,Ke,oe.scriptKind,oe.impliedNodeFormat)),l=void 0}e=void 0}function Y(Ke){return C(),l.getSyntacticDiagnostics(w(Ke),g).slice()}function R(Ke){C();let oe=w(Ke),pe=l.getSemanticDiagnostics(oe,g);if(!__(l.getCompilerOptions()))return pe.slice();let z=l.getDeclarationDiagnostics(oe,g);return[...pe,...z]}function ie(Ke){return C(),$Y(w(Ke),l,g)}function $(){return C(),[...l.getOptionsDiagnostics(g),...l.getGlobalDiagnostics(g)]}function fe(Ke,oe,pe=Cp,z){let Te={...pe,includeCompletionsForModuleExports:pe.includeCompletionsForModuleExports||pe.includeExternalModuleExports,includeCompletionsWithInsertText:pe.includeCompletionsWithInsertText||pe.includeInsertTextCompletions};return C(),lx.getCompletionsAtPosition(e,l,v,w(Ke),oe,Te,pe.triggerCharacter,pe.triggerKind,g,z&&tl.getFormatContext(z,e),pe.includeSymbol)}function Z(Ke,oe,pe,z,Te,j=Cp,yt){return C(),lx.getCompletionEntryDetails(l,v,w(Ke),oe,{name:pe,source:Te,data:yt},e,z&&tl.getFormatContext(z,e),j,g)}function U(Ke,oe,pe,z,Te=Cp){return C(),lx.getCompletionEntrySymbol(l,v,w(Ke),oe,{name:pe,source:z},e,Te)}function re(Ke,oe){C();let pe=w(Ke),z=ef(pe,oe);if(z===pe)return;let Te=l.getTypeChecker(),j=le(z),yt=u3e(j,Te);if(!yt||Te.isUnknownSymbol(yt)){let jr=_e(pe,j,oe)?Te.getTypeAtLocation(j):void 0;return jr&&{kind:"",kindModifiers:"",textSpan:Du(j,pe),displayParts:Te.runWithCancellationToken(g,ei=>zN(ei,jr,e1(j))),documentation:jr.symbol?jr.symbol.getDocumentationComment(Te):void 0,tags:jr.symbol?jr.symbol.getJsDocTags(Te):void 0}}let{symbolKind:lt,displayParts:Qe,documentation:Vt,tags:Hn}=Te.runWithCancellationToken(g,jr=>$g.getSymbolDisplayPartsDocumentationAndSymbolKind(jr,yt,pe,e1(j),j));return{kind:lt,kindModifiers:$g.getSymbolModifiers(Te,yt),textSpan:Du(j,pe),displayParts:Qe,documentation:Vt,tags:Hn}}function le(Ke){return z0(Ke.parent)&&Ke.pos===Ke.parent.pos?Ke.parent.expression:bL(Ke.parent)&&Ke.pos===Ke.parent.pos||NA(Ke.parent)&&Ke.parent.name===Ke?Ke.parent:Ke}function _e(Ke,oe,pe){switch(oe.kind){case 79:return!FX(oe)&&!GX(oe)&&!Ch(oe.parent);case 208:case 163:return!Kg(Ke,pe);case 108:case 194:case 106:case 199:return!0;case 233:return NA(oe);default:return!1}}function ge(Ke,oe,pe,z){return C(),xk.getDefinitionAtPosition(l,w(Ke),oe,pe,z)}function X(Ke,oe){return C(),xk.getDefinitionAndBoundSpan(l,w(Ke),oe)}function Ve(Ke,oe){return C(),xk.getTypeDefinitionAtPosition(l.getTypeChecker(),w(Ke),oe)}function we(Ke,oe){return C(),js.getImplementationsAtPosition(l,g,l.getSourceFiles(),w(Ke),oe)}function ke(Ke,oe){return Uo(Pe(Ke,oe,[Ke]),pe=>pe.highlightSpans.map(z=>({fileName:pe.fileName,textSpan:z.textSpan,isWriteAccess:z.kind==="writtenReference",...z.isInString&&{isInString:!0},...z.contextSpan&&{contextSpan:z.contextSpan}})))}function Pe(Ke,oe,pe){let z=So(Ke);L.assert(pe.some(yt=>So(yt)===z)),C();let Te=Zi(pe,yt=>l.getSourceFile(yt)),j=w(Ke);return Q7.getDocumentHighlights(l,g,j,oe,Te)}function Ce(Ke,oe,pe,z,Te){C();let j=w(Ke),yt=_7(ef(j,oe));if(RG.nodeIsEligibleForRename(yt))if(Re(yt)&&(Xm(yt.parent)||GS(yt.parent))&&GI(yt.escapedText)){let{openingElement:lt,closingElement:Qe}=yt.parent.parent;return[lt,Qe].map(Vt=>{let Hn=Du(Vt.tagName,j);return{fileName:j.fileName,textSpan:Hn,...js.toContextSpan(Hn,j,Vt.parent)}})}else return Be(yt,oe,{findInStrings:pe,findInComments:z,providePrefixAndSuffixTextForRename:Te,use:js.FindReferencesUse.Rename},(lt,Qe,Vt)=>js.toRenameLocation(lt,Qe,Vt,Te||!1))}function Ie(Ke,oe){return C(),Be(ef(w(Ke),oe),oe,{use:js.FindReferencesUse.References},js.toReferenceEntry)}function Be(Ke,oe,pe,z){C();let Te=pe&&pe.use===js.FindReferencesUse.Rename?l.getSourceFiles().filter(j=>!l.isSourceFileDefaultLibrary(j)):l.getSourceFiles();return js.findReferenceOrRenameEntries(l,g,Te,Ke,oe,pe,z)}function Ne(Ke,oe){return C(),js.findReferencedSymbols(l,g,l.getSourceFiles(),w(Ke),oe)}function Le(Ke){return C(),js.Core.getReferencesForFileName(Ke,l,l.getSourceFiles()).map(js.toReferenceEntry)}function Ye(Ke,oe,pe,z=!1){C();let Te=pe?[w(pe)]:l.getSourceFiles();return oye(Te,l.getTypeChecker(),g,Ke,oe,z)}function _t(Ke,oe,pe){C();let z=w(Ke),Te=e.getCustomTransformers&&e.getCustomTransformers();return Ype(l,z,!!oe,g,Te,pe)}function ct(Ke,oe,{triggerReason:pe}=Cp){C();let z=w(Ke);return BP.getSignatureHelpItems(l,z,oe,pe,g)}function Rt(Ke){return s.getCurrentSourceFile(Ke)}function We(Ke,oe,pe){let z=s.getCurrentSourceFile(Ke),Te=ef(z,oe);if(Te===z)return;switch(Te.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}let j=Te;for(;;)if(j2(j)||yhe(j))j=j.parent;else if(UX(j))if(j.parent.parent.kind===264&&j.parent.parent.body===j.parent)j=j.parent.parent.name;else break;else break;return Wc(j.getStart(),Te.getEnd())}function qe(Ke,oe){let pe=s.getCurrentSourceFile(Ke);return x$.spanInSourceFileAtLocation(pe,oe)}function zt(Ke){return uye(s.getCurrentSourceFile(Ke),g)}function Qt(Ke){return dye(s.getCurrentSourceFile(Ke),g)}function tn(Ke,oe,pe){return C(),(pe||"original")==="2020"?T5.v2020.getSemanticClassifications(l,g,w(Ke),oe):Cge(l.getTypeChecker(),g,w(Ke),l.getClassifiableNames(),oe)}function kn(Ke,oe,pe){return C(),(pe||"original")==="original"?BY(l.getTypeChecker(),g,w(Ke),l.getClassifiableNames(),oe):T5.v2020.getEncodedSemanticClassifications(l,g,w(Ke),oe)}function _n(Ke,oe){return Dge(g,s.getCurrentSourceFile(Ke),oe)}function Gt(Ke,oe){return UY(g,s.getCurrentSourceFile(Ke),oe)}function $n(Ke){let oe=s.getCurrentSourceFile(Ke);return See.collectElements(oe,g)}let ui=new Map(Object.entries({18:19,20:21,22:23,31:29}));ui.forEach((Ke,oe)=>ui.set(Ke.toString(),Number(oe)));function Ni(Ke,oe){let pe=s.getCurrentSourceFile(Ke),z=nk(pe,oe),Te=z.getStart(pe)===oe?ui.get(z.kind.toString()):void 0,j=Te&&Yo(z.parent,Te,pe);return j?[Du(z,pe),Du(j,pe)].sort((yt,lt)=>yt.start-lt.start):Je}function Pi(Ke,oe,pe){let z=Ms(),Te=tP(pe),j=s.getCurrentSourceFile(Ke);v("getIndentationAtPosition: getCurrentSourceFile: "+(Ms()-z)),z=Ms();let yt=tl.SmartIndenter.getIndentation(oe,j,Te);return v("getIndentationAtPosition: computeIndentation : "+(Ms()-z)),yt}function gr(Ke,oe,pe,z){let Te=s.getCurrentSourceFile(Ke);return tl.formatSelection(oe,pe,Te,tl.getFormatContext(tP(z),e))}function pt(Ke,oe){return tl.formatDocument(s.getCurrentSourceFile(Ke),tl.getFormatContext(tP(oe),e))}function nn(Ke,oe,pe,z){let Te=s.getCurrentSourceFile(Ke),j=tl.getFormatContext(tP(z),e);if(!Kg(Te,oe))switch(pe){case"{":return tl.formatOnOpeningCurly(oe,Te,j);case"}":return tl.formatOnClosingCurly(oe,Te,j);case";":return tl.formatOnSemicolon(oe,Te,j);case`
| `:return tl.formatOnEnter(oe,Te,j)}return[]}function Dt(Ke,oe,pe,z,Te,j=Cp){C();let yt=w(Ke),lt=Wc(oe,pe),Qe=tl.getFormatContext(Te,e);return Uo(fA(z,Zv,Es),Vt=>(g.throwIfCancellationRequested(),gu.getFixes({errorCode:Vt,sourceFile:yt,span:lt,program:l,host:e,cancellationToken:g,formatContext:Qe,preferences:j})))}function pn(Ke,oe,pe,z=Cp){C(),L.assert(Ke.type==="file");let Te=w(Ke.fileName),j=tl.getFormatContext(pe,e);return gu.getAllFixes({fixId:oe,sourceFile:Te,program:l,host:e,cancellationToken:g,formatContext:j,preferences:z})}function An(Ke,oe,pe=Cp){var z;C(),L.assert(Ke.type==="file");let Te=w(Ke.fileName),j=tl.getFormatContext(oe,e),yt=(z=Ke.mode)!=null?z:Ke.skipDestructiveCodeActions?"SortAndCombine":"All";return b_.organizeImports(Te,j,e,l,pe,yt)}function Kn(Ke,oe,pe,z=Cp){return Nge(P(),Ke,oe,e,tl.getFormatContext(pe,e),z,A)}function hi(Ke,oe){let pe=typeof Ke=="string"?oe:Ke;return ba(pe)?Promise.all(pe.map(z=>ri(z))):ri(pe)}function ri(Ke){let oe=pe=>Ts(pe,m,x);return L.assertEqual(Ke.type,"install package"),e.installPackage?e.installPackage({fileName:oe(Ke.file),packageName:Ke.packageName}):Promise.reject("Host does not implement `installPackage`")}function vn(Ke,oe,pe,z){let Te=z?tl.getFormatContext(z,e).options:void 0;return xb.getDocCommentTemplateAtPosition(bb(e,Te),s.getCurrentSourceFile(Ke),oe,pe)}function Ht(Ke,oe,pe){if(pe===60)return!1;let z=s.getCurrentSourceFile(Ke);if(n1(z,oe))return!1;if(khe(z,oe))return pe===123;if(qX(z,oe))return!1;switch(pe){case 39:case 34:case 96:return!Kg(z,oe)}return!0}function En(Ke,oe){let pe=s.getCurrentSourceFile(Ke),z=el(oe,pe);if(!z)return;let Te=z.kind===31&&Xm(z.parent)?z.parent.parent:CS(z)&&Hg(z.parent)?z.parent:void 0;if(Te&&ve(Te))return{newText:`</${Te.openingElement.tagName.getText(pe)}>`};let j=z.kind===31&&US(z.parent)?z.parent.parent:CS(z)&&BS(z.parent)?z.parent:void 0;if(j&&nt(j))return{newText:"</>"}}function dr(Ke,oe){return{lineStarts:Ke.getLineStarts(),firstLine:Ke.getLineAndCharacterOfPosition(oe.pos).line,lastLine:Ke.getLineAndCharacterOfPosition(oe.end).line}}function Cr(Ke,oe,pe){let z=s.getCurrentSourceFile(Ke),Te=[],{lineStarts:j,firstLine:yt,lastLine:lt}=dr(z,oe),Qe=pe||!1,Vt=Number.MAX_VALUE,Hn=new Map,jr=new RegExp(/\S/),ei=m7(z,j[yt]),Kr=ei?"{/*":"//";for(let Si=yt;Si<=lt;Si++){let Ja=z.text.substring(j[Si],z.getLineEndOfPosition(j[Si])),Za=jr.exec(Ja);Za&&(Vt=Math.min(Vt,Za.index),Hn.set(Si.toString(),Za.index),Ja.substr(Za.index,Kr.length)!==Kr&&(Qe=pe===void 0||pe))}for(let Si=yt;Si<=lt;Si++){if(yt!==lt&&j[Si]===oe.end)continue;let Ja=Hn.get(Si.toString());Ja!==void 0&&(ei?Te.push.apply(Te,Se(Ke,{pos:j[Si]+Vt,end:z.getLineEndOfPosition(j[Si])},Qe,ei)):Qe?Te.push({newText:Kr,span:{length:0,start:j[Si]+Vt}}):z.text.substr(j[Si]+Ja,Kr.length)===Kr&&Te.push({newText:"",span:{length:Kr.length,start:j[Si]+Ja}}))}return Te}function Se(Ke,oe,pe,z){var Te;let j=s.getCurrentSourceFile(Ke),yt=[],{text:lt}=j,Qe=!1,Vt=pe||!1,Hn=[],{pos:jr}=oe,ei=z!==void 0?z:m7(j,jr),Kr=ei?"{/*":"/*",Si=ei?"*/}":"*/",Ja=ei?"\\{\\/\\*":"\\/\\*",Za=ei?"\\*\\/\\}":"\\*\\/";for(;jr<=oe.end;){let Fa=lt.substr(jr,Kr.length)===Kr?Kr.length:0,Hi=Kg(j,jr+Fa);if(Hi)ei&&(Hi.pos--,Hi.end++),Hn.push(Hi.pos),Hi.kind===3&&Hn.push(Hi.end),Qe=!0,jr=Hi.end+1;else{let xi=lt.substring(jr,oe.end).search(`(${Ja})|(${Za})`);Vt=pe!==void 0?pe:Vt||!Whe(lt,jr,xi===-1?oe.end:jr+xi),jr=xi===-1?oe.end+1:jr+xi+Si.length}}if(Vt||!Qe){((Te=Kg(j,oe.pos))==null?void 0:Te.kind)!==2&&Ny(Hn,oe.pos,Es),Ny(Hn,oe.end,Es);let Fa=Hn[0];lt.substr(Fa,Kr.length)!==Kr&&yt.push({newText:Kr,span:{length:0,start:Fa}});for(let Hi=1;Hi<Hn.length-1;Hi++)lt.substr(Hn[Hi]-Si.length,Si.length)!==Si&&yt.push({newText:Si,span:{length:0,start:Hn[Hi]}}),lt.substr(Hn[Hi],Kr.length)!==Kr&&yt.push({newText:Kr,span:{length:0,start:Hn[Hi]}});yt.length%2!==0&&yt.push({newText:Si,span:{length:0,start:Hn[Hn.length-1]}})}else for(let Fa of Hn){let Hi=Fa-Si.length>0?Fa-Si.length:0,xi=lt.substr(Hi,Si.length)===Si?Si.length:0;yt.push({newText:"",span:{length:Kr.length,start:Fa-xi}})}return yt}function at(Ke,oe){let pe=s.getCurrentSourceFile(Ke),{firstLine:z,lastLine:Te}=dr(pe,oe);return z===Te&&oe.pos!==oe.end?Se(Ke,oe,!0):Cr(Ke,oe,!0)}function Tt(Ke,oe){let pe=s.getCurrentSourceFile(Ke),z=[],{pos:Te}=oe,{end:j}=oe;Te===j&&(j+=m7(pe,Te)?2:1);for(let yt=Te;yt<=j;yt++){let lt=Kg(pe,yt);if(lt){switch(lt.kind){case 2:z.push.apply(z,Cr(Ke,{end:lt.end,pos:lt.pos+1},!1));break;case 3:z.push.apply(z,Se(Ke,{end:lt.end,pos:lt.pos+1},!1))}yt=lt.end+1}}return z}function ve({openingElement:Ke,closingElement:oe,parent:pe}){return!yb(Ke.tagName,oe.tagName)||Hg(pe)&&yb(Ke.tagName,pe.openingElement.tagName)&&ve(pe)}function nt({closingFragment:Ke,parent:oe}){return!!(Ke.flags&131072)||BS(oe)&&nt(oe)}function ce(Ke,oe,pe){let z=s.getCurrentSourceFile(Ke),Te=tl.getRangeOfEnclosingComment(z,oe);return Te&&(!pe||Te.kind===3)?lv(Te):void 0}function Q(Ke,oe){C();let pe=w(Ke);g.throwIfCancellationRequested();let z=pe.text,Te=[];if(oe.length>0&&!Qe(pe.fileName)){let Vt=yt(),Hn;for(;Hn=Vt.exec(z);){g.throwIfCancellationRequested();let jr=3;L.assert(Hn.length===oe.length+jr);let ei=Hn[1],Kr=Hn.index+ei.length;if(!Kg(pe,Kr))continue;let Si;for(let Za=0;Za<oe.length;Za++)Hn[Za+jr]&&(Si=oe[Za]);if(Si===void 0)return L.fail();if(lt(z.charCodeAt(Kr+Si.text.length)))continue;let Ja=Hn[2];Te.push({descriptor:Si,message:Ja,position:Kr})}}return Te;function j(Vt){return Vt.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function yt(){let Vt=/(?:\/\/+\s*)/.source,Hn=/(?:\/\*+\s*)/.source,ei="("+/(?:^(?:\s|\*)*)/.source+"|"+Vt+"|"+Hn+")",Kr="(?:"+on(oe,Hi=>"("+j(Hi.text)+")").join("|")+")",Si=/(?:$|\*\/)/.source,Ja=/(?:.*?)/.source,Za="("+Kr+Ja+")",Fa=ei+Za+Si;return new RegExp(Fa,"gim")}function lt(Vt){return Vt>=97&&Vt<=122||Vt>=65&&Vt<=90||Vt>=48&&Vt<=57}function Qe(Vt){return jl(Vt,"/node_modules/")}}function ue(Ke,oe,pe){return C(),RG.getRenameInfo(l,w(Ke),oe,pe||{})}function G(Ke,oe,pe,z,Te,j){let[yt,lt]=typeof oe=="number"?[oe,void 0]:[oe.pos,oe.end];return{file:Ke,startPosition:yt,endPosition:lt,program:P(),host:e,formatContext:tl.getFormatContext(z,e),cancellationToken:g,preferences:pe,triggerReason:Te,kind:j}}function Oe(Ke,oe,pe){return{file:Ke,program:P(),host:e,span:oe,preferences:pe,cancellationToken:g}}function je(Ke,oe){return ete.getSmartSelectionRange(oe,s.getCurrentSourceFile(Ke))}function Ge(Ke,oe,pe=Cp,z,Te){C();let j=w(Ke);return Ok.getApplicableRefactors(G(j,oe,pe,Cp,z,Te))}function kt(Ke,oe,pe,z,Te,j=Cp){C();let yt=w(Ke);return Ok.getEditsForRefactor(G(yt,pe,j,oe),z,Te)}function Kt(Ke,oe){return oe===0?{line:0,character:0}:A.toLineColumnOffset(Ke,oe)}function ln(Ke,oe){C();let pe=rx.resolveCallHierarchyDeclaration(l,ef(w(Ke),oe));return pe&&pge(pe,z=>rx.createCallHierarchyItem(l,z))}function ir(Ke,oe){C();let pe=w(Ke),z=LY(rx.resolveCallHierarchyDeclaration(l,oe===0?pe:ef(pe,oe)));return z?rx.getIncomingCalls(l,z,g):[]}function ae(Ke,oe){C();let pe=w(Ke),z=LY(rx.resolveCallHierarchyDeclaration(l,oe===0?pe:ef(pe,oe)));return z?rx.getOutgoingCalls(l,z):[]}function rt(Ke,oe,pe=Cp){C();let z=w(Ke);return fee.provideInlayHints(Oe(z,oe,pe))}let Ot={dispose:W,cleanupSemanticCache:q,getSyntacticDiagnostics:Y,getSemanticDiagnostics:R,getSuggestionDiagnostics:ie,getCompilerOptionsDiagnostics:$,getSyntacticClassifications:_n,getSemanticClassifications:tn,getEncodedSyntacticClassifications:Gt,getEncodedSemanticClassifications:kn,getCompletionsAtPosition:fe,getCompletionEntryDetails:Z,getCompletionEntrySymbol:U,getSignatureHelpItems:ct,getQuickInfoAtPosition:re,getDefinitionAtPosition:ge,getDefinitionAndBoundSpan:X,getImplementationAtPosition:we,getTypeDefinitionAtPosition:Ve,getReferencesAtPosition:Ie,findReferences:Ne,getFileReferences:Le,getOccurrencesAtPosition:ke,getDocumentHighlights:Pe,getNameOrDottedNameSpan:We,getBreakpointStatementAtPosition:qe,getNavigateToItems:Ye,getRenameInfo:ue,getSmartSelectionRange:je,findRenameLocations:Ce,getNavigationBarItems:zt,getNavigationTree:Qt,getOutliningSpans:$n,getTodoComments:Q,getBraceMatchingAtPosition:Ni,getIndentationAtPosition:Pi,getFormattingEditsForRange:gr,getFormattingEditsForDocument:pt,getFormattingEditsAfterKeystroke:nn,getDocCommentTemplateAtPosition:vn,isValidBraceCompletionAtPosition:Ht,getJsxClosingTagAtPosition:En,getSpanOfEnclosingComment:ce,getCodeFixesAtPosition:Dt,getCombinedCodeFix:pn,applyCodeActionCommand:hi,organizeImports:An,getEditsForFileRename:Kn,getEmitOutput:_t,getNonBoundSourceFile:Rt,getProgram:P,getCurrentProgram:()=>l,getAutoImportProvider:F,updateIsDefinitionOfReferencedSymbols:B,getApplicableRefactors:Ge,getEditsForRefactor:kt,toLineColumnOffset:Kt,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:ln,provideCallHierarchyIncomingCalls:ir,provideCallHierarchyOutgoingCalls:ae,toggleLineComment:Cr,toggleMultilineComment:Se,commentSelection:at,uncommentSelection:Tt,provideInlayHints:rt,getSupportedCodeFixes:Fye};switch(o){case 0:break;case 1:y$.forEach(Ke=>Ot[Ke]=()=>{throw new Error(`LanguageService Operation: ${Ke} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:qye.forEach(Ke=>Ot[Ke]=()=>{throw new Error(`LanguageService Operation: ${Ke} not allowed in LanguageServiceMode.Syntactic`)});break;default:L.assertNever(o)}return Ot}function p$(e){return e.nameTable||s3e(e),e.nameTable}function s3e(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Re(i)&&!GX(i)&&i.escapedText||yf(i)&&c3e(i)){let o=MI(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(pi(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(pa(i,r),Kd(i))for(let o of i.jsDoc)pa(o,r)})}function c3e(e){return Rh(e)||e.parent.kind===280||d3e(e)||_R(e)}function nP(e){let t=l3e(e);return t&&(rs(t.parent)||K0(t.parent))?t:void 0}function l3e(e){switch(e.kind){case 10:case 14:case 8:if(e.parent.kind===164)return Xj(e.parent.parent)?e.parent.parent:void 0;case 79:return Xj(e.parent)&&(e.parent.parent.kind===207||e.parent.parent.kind===289)&&e.parent.name===e?e.parent:void 0}}function u3e(e,t){let r=nP(e);if(r){let i=t.getContextualType(r.parent),o=i&&_5(r,t,i,!1);if(o&&o.length===1)return Vo(o)}return t.getSymbolAtLocation(e)}function _5(e,t,r,i){let o=VN(e.name);if(!o)return Je;if(!r.isUnion()){let l=r.getProperty(o);return l?[l]:Je}let s=Zi(r.types,l=>(rs(e.parent)||K0(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(l,e.parent)?void 0:l.getProperty(o));if(i&&(s.length===0||s.length===r.types.length)){let l=r.getProperty(o);if(l)return[l]}return s.length===0?Zi(r.types,l=>l.getProperty(o)):s}function d3e(e){return e&&e.parent&&e.parent.kind===209&&e.parent.argumentExpression===e}function f3e(e){if(xl)return vi(ni(So(xl.getExecutingFilePath())),X8(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var m$,p5,m5,Uye,h$,h5,g5,Vye,jye,Hye,Wye,zye,Jye,Kye,g$,y$,qye,_3e=gt({"src/services/services.ts"(){"use strict";Fr(),Fr(),lye(),wye(),m$="0.8",p5=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){L.assert(!vp(this.pos)&&!vp(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Gn(this)}getStart(e,t){return this.assertHasRealPosition(),gT(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=i3e(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=wr(t,i=>i.kind<312||i.kind>353);return r.kind<163?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Os(t);if(r)return r.kind<163?r:r.getLastToken(e)}forEachChild(e,t){return pa(this,e,t)}},m5=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Gn(this)}getStart(e,t){return gT(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Je}getFirstToken(){}getLastToken(){}forEachChild(){}},Uye=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return fc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Je,!this.declarations&&Zp(this)&&this.links.target&&Zp(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=eP([t],e)}else this.documentationComment=eP(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(zy(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=eP(Pr(this.declarations,zy),t)),Fn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Ng(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=eP(Pr(this.declarations,Ng),t)),Fn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=u5(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(zy(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=u5(Pr(this.declarations,zy),t)),Fn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Ng(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=u5(Pr(this.declarations,Ng),t)),Fn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},h$=class extends m5{constructor(e,t,r){super(t,r),this.kind=e}},h5=class extends m5{constructor(e,t,r){super(t,r),this.kind=79}get text(){return vr(this)}},h5.prototype.kind=79,g5=class extends m5{constructor(e,t,r){super(t,r),this.kind=80}get text(){return vr(this)}},g5.prototype.kind=80,Vye=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Ur(this)&3)}isClass(){return!!(Ur(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Ur(this)&4)return this.checker.getTypeArguments(this)}},jye=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&lL(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=eP(aT(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=u5(aT(this.declaration),this.checker))}},Hye=class extends p5{constructor(e,t,r){super(e,t,r),this.kind=308}update(e,t){return uJ(this,e,t)}getLineAndCharacterOfPosition(e){return Gs(this,e)}getLineStarts(){return Sh(this)}getPositionOfLineAndCharacter(e,t,r){return mj(Sh(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===`
| `&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=Nf();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=Sj(s);return l&&(ts(l)&&br(l.expression)?l.expression.name.text:Ys(l)?VN(l):void 0)}function o(s){switch(s.kind){case 259:case 215:case 171:case 170:let l=s,f=i(l);if(f){let m=r(f),v=Os(m);v&&l.parent===v.parent&&l.symbol===v.symbol?l.body&&!v.body&&(m[m.length-1]=l):m.push(l)}pa(s,o);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:t(s),pa(s,o);break;case 166:if(!Mr(s,16476))break;case 257:case 205:{let m=s;if(La(m.name)){pa(m.name,o);break}m.initializer&&o(m.initializer)}case 302:case 169:case 168:t(s);break;case 275:let d=s;d.exportClause&&(h_(d.exportClause)?mn(d.exportClause.elements,o):o(d.exportClause.name));break;case 269:let g=s.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===271?t(g.namedBindings):mn(g.namedBindings.elements,o)));break;case 223:ic(s)!==0&&t(s);default:pa(s,o)}}}},Wye=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return Gs(this,e)}},zye=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,f,d;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let m=mY(e,this.host),v=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let x={languageVersion:99,impliedNodeFormat:NF(Ts(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||lb(this.host)),(d=(f=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:f.call(l))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:OR(this.host.getCompilationSettings())};S=f5(e,g,x,v,!0,m)}else if(this.currentFileVersion!==v){let x=g.getChangeRange(this.currentFileScriptSnapshot);S=_$(this.currentSourceFile,g,v,x)}return S&&(this.currentFileVersion=v,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}},Jye={isCancellationRequested:m0,throwIfCancellationRequested:Ba},Kye=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ai)==null||e.instant(ai.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new tI}},g$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Ms();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=ai)==null||e.instant(ai.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new tI}},y$=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],qye=[...y$,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],_le(o3e())}});function p3e(e,t,r){let i=[];r=t$(r,i);let o=ba(e)?e:[e],s=lN(void 0,void 0,D,r,o,t,!0);return s.diagnostics=Qi(s.diagnostics,i),s}var m3e=gt({"src/services/transform.ts"(){"use strict";Fr()}});function y5(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function h3e(e,t,r,i){let o;i&&(e.log(t),o=Ms());let s=r();if(i){let l=Ms();if(e.log(`${t} completed in ${l-o} msec`),Ta(s)){let f=s;f.length>128&&(f=f.substring(0,128)+"..."),e.log(` result.length=${f.length}, result='${JSON.stringify(f)}'`)}}return s}function v$(e,t,r,i){return Xye(e,t,!0,r,i)}function Xye(e,t,r,i,o){try{let s=h3e(e,t,i,o);return r?JSON.stringify({result:s}):s}catch(s){return s instanceof tI?JSON.stringify({canceled:!0}):(y5(e,s),s.description=t,JSON.stringify({error:s}))}}function b$(e,t){return e.map(r=>g3e(r,t))}function g3e(e,t){return{message:sv(e.messageText,t),start:e.start,length:e.length,category:C8(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function E$(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var v5,Yye,T$,S$,b5,$ye,Qye,Zye,eve,y3e=gt({"src/services/shims.ts"(){"use strict";Fr(),v5=function(){return this}(),Yye=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){let t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(r===null)return null;let i=JSON.parse(r);return Sw(il(i.span.start,i.span.length),i.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},T$=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(t,r)=>{let i=JSON.parse(this.shimHost.getModuleResolutionsForFile(r));return on(t,o=>{let s=zD(i,o);return s?{resolvedFileName:s,extension:jR(s),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=t=>this.shimHost.directoryExists(t)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(t,r)=>{let i=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return on(t,o=>zD(i,Ta(o)?o:n_(o.fileName)))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1}getCompilationSettings(){let e=this.shimHost.getCompilationSettings();if(e===null||e==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");let t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){let e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){let t=this.shimHost.getScriptSnapshot(e);return t&&new Yye(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){let e=this.shimHost.getLocalizedDiagnosticMessages();if(e===null||e==="")return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}}getCancellationToken(){let e=this.shimHost.getCancellationToken();return new g$(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,r,i,o){let s=tL(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},S$=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=t=>this.shimHost.directoryExists(t):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=t=>this.shimHost.realpath(t):this.realpath=void 0}readDirectory(e,t,r,i,o){let s=tL(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(s.basePaths),s.excludePattern,s.includeFilePattern,s.includeDirectoryPattern,o))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},b5=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},$ye=class extends b5{constructor(e,t,r){super(e),this.host=t,this.languageService=r,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return v$(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,v5&&v5.CollectGarbage&&(v5.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,()=>null)}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",()=>(this.languageService.cleanupSemanticCache(),null))}realizeDiagnostics(e){let t=bb(this.host,void 0);return b$(e,t)}getSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSyntacticClassifications(e,il(t,r)))}getSemanticClassifications(e,t,r){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${r})`,()=>this.languageService.getSemanticClassifications(e,il(t,r)))}getEncodedSyntacticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${r})`,()=>E$(this.languageService.getEncodedSyntacticClassifications(e,il(t,r))))}getEncodedSemanticClassifications(e,t,r){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${r})`,()=>E$(this.languageService.getEncodedSemanticClassifications(e,il(t,r))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,()=>{let t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)})}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,()=>{let t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)})}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e)))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",()=>{let e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)})}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,()=>this.languageService.getQuickInfoAtPosition(e,t))}getNameOrDottedNameSpan(e,t,r){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${r})`,()=>this.languageService.getNameOrDottedNameSpan(e,t,r))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,()=>this.languageService.getBreakpointStatementAtPosition(e,t))}getSignatureHelpItems(e,t,r){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,()=>this.languageService.getSignatureHelpItems(e,t,r))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getDefinitionAtPosition(e,t))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,()=>this.languageService.getDefinitionAndBoundSpan(e,t))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,()=>this.languageService.getTypeDefinitionAtPosition(e,t))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,()=>this.languageService.getImplementationAtPosition(e,t))}getRenameInfo(e,t,r){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,()=>this.languageService.getRenameInfo(e,t,r))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,()=>this.languageService.getSmartSelectionRange(e,t))}findRenameLocations(e,t,r,i,o){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${r}, ${i}, ${o})`,()=>this.languageService.findRenameLocations(e,t,r,i,o))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,()=>this.languageService.getBraceMatchingAtPosition(e,t))}isValidBraceCompletionAtPosition(e,t,r){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${r})`,()=>this.languageService.isValidBraceCompletionAtPosition(e,t,r))}getSpanOfEnclosingComment(e,t,r){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,()=>this.languageService.getSpanOfEnclosingComment(e,t,r))}getIndentationAtPosition(e,t,r){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,()=>{let i=JSON.parse(r);return this.languageService.getIndentationAtPosition(e,t,i)})}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,()=>this.languageService.getReferencesAtPosition(e,t))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,()=>this.languageService.findReferences(e,t))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,()=>this.languageService.getFileReferences(e))}getOccurrencesAtPosition(e,t){return this.forwardJSONCall(`getOccurrencesAtPosition('${e}', ${t})`,()=>this.languageService.getOccurrencesAtPosition(e,t))}getDocumentHighlights(e,t,r){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,()=>{let i=this.languageService.getDocumentHighlights(e,t,JSON.parse(r)),o=n_(Al(e));return Pr(i,s=>n_(Al(s.fileName))===o)})}getCompletionsAtPosition(e,t,r,i){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${r}, ${i})`,()=>this.languageService.getCompletionsAtPosition(e,t,r,i))}getCompletionEntryDetails(e,t,r,i,o,s,l){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${r}')`,()=>{let f=i===void 0?void 0:JSON.parse(i);return this.languageService.getCompletionEntryDetails(e,t,r,f,o,s,l)})}getFormattingEditsForRange(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${r})`,()=>{let o=JSON.parse(i);return this.languageService.getFormattingEditsForRange(e,t,r,o)})}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,()=>{let r=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,r)})}getFormattingEditsAfterKeystroke(e,t,r,i){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${r}')`,()=>{let o=JSON.parse(i);return this.languageService.getFormattingEditsAfterKeystroke(e,t,r,o)})}getDocCommentTemplateAtPosition(e,t,r,i){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,()=>this.languageService.getDocCommentTemplateAtPosition(e,t,r,i))}getNavigateToItems(e,t,r){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${r})`,()=>this.languageService.getNavigateToItems(e,t,r))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,()=>this.languageService.getNavigationBarItems(e))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,()=>this.languageService.getNavigationTree(e))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,()=>this.languageService.getOutliningSpans(e))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,()=>this.languageService.getTodoComments(e,JSON.parse(t)))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,()=>this.languageService.prepareCallHierarchy(e,t))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyIncomingCalls(e,t))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t))}provideInlayHints(e,t,r){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(r)})`,()=>this.languageService.provideInlayHints(e,t,r))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,()=>{let{diagnostics:t,...r}=this.languageService.getEmitOutput(e);return{...r,diagnostics:this.realizeDiagnostics(t)}})}getEmitOutputObject(e){return Xye(this.logger,`getEmitOutput('${e}')`,!1,()=>this.languageService.getEmitOutput(e),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleLineComment(e,t))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.toggleMultilineComment(e,t))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.commentSelection(e,t))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,()=>this.languageService.uncommentSelection(e,t))}},Qye=class extends b5{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=Age()}getEncodedLexicalClassifications(e,t,r=!1){return v$(this.logger,"getEncodedLexicalClassifications",()=>E$(this.classifier.getEncodedLexicalClassifications(e,t,r)),this.logPerformance)}getClassificationsForLine(e,t,r=!1){let i=this.classifier.getClassificationsForLine(e,t,r),o="";for(let s of i.entries)o+=s.length+`
| `,o+=s.classification+`
| `;return o+=i.finalLexState,o}},Zye=class extends b5{constructor(e,t,r){super(e),this.logger=t,this.host=r,this.logPerformance=!1}forwardJSONCall(e,t){return v$(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,r){return this.forwardJSONCall(`resolveModuleName('${e}')`,()=>{let i=JSON.parse(r),o=FL(t,Al(e),i,this.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&o.resolvedModule.extension!==".ts"&&o.resolvedModule.extension!==".tsx"&&o.resolvedModule.extension!==".d.ts"&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations,affectingLocations:o.affectingLocations}})}resolveTypeReferenceDirective(e,t,r){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,()=>{let i=JSON.parse(r),o=HJ(t,Al(e),i,this.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:o.failedLookupLocations}})}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,()=>{let r=qge(E7(t),!0,!0);return{referencedFiles:this.convertFileReferences(r.referencedFiles),importedFiles:this.convertFileReferences(r.importedFiles),ambientExternalModules:r.ambientExternalModules,isLibFile:r.isLibFile,typeReferenceDirectives:this.convertFileReferences(r.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(r.libReferenceDirectives)}})}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,()=>{let t=JSON.parse(e);return X3(t,this.host)})}convertFileReferences(e){if(!e)return;let t=[];for(let r of e)t.push({path:Al(r.fileName),position:r.pos,length:r.end-r.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,()=>{let r=wO(e,E7(t)),i=Al(e),o=MO(r,this.host,ni(i),{},i);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:b$([...r.parseDiagnostics,...o.errors],`\r
| `)}})}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",()=>d5())}discoverTypings(e){let t=Dl(!1);return this.forwardJSONCall("discoverTypings()",()=>{let r=JSON.parse(e);return this.safeList===void 0&&(this.safeList=QT.loadSafeList(this.host,Ts(r.safeListPath,r.safeListPath,t))),QT.discoverTypings(this.host,i=>this.logger.log(i),r.fileNames,Ts(r.projectRootPath,r.projectRootPath,t),this.safeList,r.packageNameToTypingLocation,r.typeAcquisition,r.unresolvedImports,r.typesRegistry,Cp)})}},eve=class{constructor(){this._shims=[]}getServicesVersion(){return m$}createLanguageServiceShim(e){try{this.documentRegistry===void 0&&(this.documentRegistry=VY(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));let t=new T$(e),r=Bye(t,this.documentRegistry,!1);return new $ye(this,e,r)}catch(t){throw y5(e,t),t}}createClassifierShim(e){try{return new Qye(this,e)}catch(t){throw y5(e,t),t}}createCoreServicesShim(e){try{let t=new S$(e);return new Zye(this,e,t)}catch(t){throw y5(e,t),t}}close(){Om(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;t<this._shims.length;t++)if(this._shims[t]===e){delete this._shims[t];return}throw new Error("Invalid operation")}}}});function v3e(e,t){if(e.isDeclarationFile)return;let r=Vi(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let v=el(r.pos,e);if(!v||e.getLineAndCharacterOfPosition(v.getEnd()).line!==i)return;r=v}if(r.flags&16777216)return;return m(r);function o(v,S){let x=HS(v)?dA(v.modifiers,du):void 0,A=x?xo(e.text,x.end):v.getStart(e);return Wc(A,(S||v).getEnd())}function s(v,S){return o(v,t1(S,S.parent,e))}function l(v,S){return v&&i===e.getLineAndCharacterOfPosition(v.getStart(e)).line?m(v):m(S)}function f(v,S,x){if(v){let A=v.indexOf(S);if(A>=0){let w=A,C=A+1;for(;w>0&&x(v[w-1]);)w--;for(;C<v.length&&x(v[C]);)C++;return Wc(xo(e.text,v[w].pos),v[C-1].end)}}return o(S)}function d(v){return m(el(v.pos,e))}function g(v){return m(t1(v,v.parent,e))}function m(v){if(v){let{parent:X}=v;switch(v.kind){case 240:return x(v.declarationList.declarations[0]);case 257:case 169:case 168:return x(v);case 166:return w(v);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return P(v);case 238:if(bT(v))return F(v);case 265:return B(v);case 295:return B(v.block);case 241:return o(v.expression);case 250:return o(v.getChildAt(0),v.expression);case 244:return s(v,v.expression);case 243:return m(v.statement);case 256:return o(v.getChildAt(0));case 242:return s(v,v.expression);case 253:return m(v.statement);case 249:case 248:return o(v.getChildAt(0),v.label);case 245:return W(v);case 246:return s(v,v.expression);case 247:return q(v);case 252:return s(v,v.expression);case 292:case 293:return m(v.statements[0]);case 255:return B(v.tryBlock);case 254:return o(v,v.expression);case 274:return o(v,v.expression);case 268:return o(v,v.moduleReference);case 269:return o(v,v.moduleSpecifier);case 275:return o(v,v.moduleSpecifier);case 264:if(Gh(v)!==1)return;case 260:case 263:case 302:case 205:return o(v);case 251:return m(v.statement);case 167:return f(X.modifiers,v,du);case 203:case 204:return Y(v);case 261:case 262:return;case 26:case 1:return l(el(v.pos,e));case 27:return d(v);case 18:return ie(v);case 19:return $(v);case 23:return fe(v);case 20:return Z(v);case 21:return U(v);case 58:return re(v);case 31:case 29:return le(v);case 115:return _e(v);case 91:case 83:case 96:return g(v);case 162:return ge(v);default:if(qg(v))return R(v);if((v.kind===79||v.kind===227||v.kind===299||v.kind===300)&&qg(X))return o(v);if(v.kind===223){let{left:Ve,operatorToken:we}=v;if(qg(Ve))return R(Ve);if(we.kind===63&&qg(v.parent))return o(v);if(we.kind===27)return m(Ve)}if(Dh(v))switch(X.kind){case 243:return d(v);case 167:return m(v.parent);case 245:case 247:return o(v);case 223:if(v.parent.operatorToken.kind===27)return o(v);break;case 216:if(v.parent.body===v)return o(v);break}switch(v.parent.kind){case 299:if(v.parent.name===v&&!qg(v.parent.parent))return m(v.parent.initializer);break;case 213:if(v.parent.type===v)return g(v.parent.type);break;case 257:case 166:{let{initializer:Ve,type:we}=v.parent;if(Ve===v||we===v||Mg(v.kind))return d(v);break}case 223:{let{left:Ve}=v.parent;if(qg(Ve)&&v!==Ve)return d(v);break}default:if(Ia(v.parent)&&v.parent.type===v)return d(v)}return m(v.parent)}}function S(X){return pu(X.parent)&&X.parent.declarations[0]===X?o(el(X.pos,e,X.parent),X):o(X)}function x(X){if(X.parent.parent.kind===246)return m(X.parent.parent);let Ve=X.parent;if(La(X.name))return Y(X.name);if(mT(X)&&X.initializer||Mr(X,1)||Ve.parent.kind===247)return S(X);if(pu(X.parent)&&X.parent.declarations[0]!==X)return m(el(X.pos,e,X.parent))}function A(X){return!!X.initializer||X.dotDotDotToken!==void 0||Mr(X,12)}function w(X){if(La(X.name))return Y(X.name);if(A(X))return o(X);{let Ve=X.parent,we=Ve.parameters.indexOf(X);return L.assert(we!==-1),we!==0?w(Ve.parameters[we-1]):m(Ve.body)}}function C(X){return Mr(X,1)||X.parent.kind===260&&X.kind!==173}function P(X){if(X.body)return C(X)?o(X):m(X.body)}function F(X){let Ve=X.statements.length?X.statements[0]:X.getLastToken();return C(X.parent)?l(X.parent,Ve):m(Ve)}function B(X){switch(X.parent.kind){case 264:if(Gh(X.parent)!==1)return;case 244:case 242:case 246:return l(X.parent,X.statements[0]);case 245:case 247:return l(el(X.pos,e,X.parent),X.statements[0])}return m(X.statements[0])}function q(X){if(X.initializer.kind===258){let Ve=X.initializer;if(Ve.declarations.length>0)return m(Ve.declarations[0])}else return m(X.initializer)}function W(X){if(X.initializer)return q(X);if(X.condition)return o(X.condition);if(X.incrementor)return o(X.incrementor)}function Y(X){let Ve=mn(X.elements,we=>we.kind!==229?we:void 0);return Ve?m(Ve):X.parent.kind===205?o(X.parent):S(X.parent)}function R(X){L.assert(X.kind!==204&&X.kind!==203);let Ve=X.kind===206?X.elements:X.properties,we=mn(Ve,ke=>ke.kind!==229?ke:void 0);return we?m(we):o(X.parent.kind===223?X.parent:X)}function ie(X){switch(X.parent.kind){case 263:let Ve=X.parent;return l(el(X.pos,e,X.parent),Ve.members.length?Ve.members[0]:Ve.getLastToken(e));case 260:let we=X.parent;return l(el(X.pos,e,X.parent),we.members.length?we.members[0]:we.getLastToken(e));case 266:return l(X.parent.parent,X.parent.clauses[0])}return m(X.parent)}function $(X){switch(X.parent.kind){case 265:if(Gh(X.parent.parent)!==1)return;case 263:case 260:return o(X);case 238:if(bT(X.parent))return o(X);case 295:return m(Os(X.parent.statements));case 266:let Ve=X.parent,we=Os(Ve.clauses);return we?m(Os(we.statements)):void 0;case 203:let ke=X.parent;return m(Os(ke.elements)||ke);default:if(qg(X.parent)){let Pe=X.parent;return o(Os(Pe.properties)||Pe)}return m(X.parent)}}function fe(X){switch(X.parent.kind){case 204:let Ve=X.parent;return o(Os(Ve.elements)||Ve);default:if(qg(X.parent)){let we=X.parent;return o(Os(we.elements)||we)}return m(X.parent)}}function Z(X){return X.parent.kind===243||X.parent.kind===210||X.parent.kind===211?d(X):X.parent.kind===214?g(X):m(X.parent)}function U(X){switch(X.parent.kind){case 215:case 259:case 216:case 171:case 170:case 174:case 175:case 173:case 244:case 243:case 245:case 247:case 210:case 211:case 214:return d(X);default:return m(X.parent)}}function re(X){return Ia(X.parent)||X.parent.kind===299||X.parent.kind===166?d(X):m(X.parent)}function le(X){return X.parent.kind===213?g(X):m(X.parent)}function _e(X){return X.parent.kind===243?s(X,X.parent.expression):m(X.parent)}function ge(X){return X.parent.kind===247?g(X):m(X.parent)}}}var b3e=gt({"src/services/breakpoints.ts"(){"use strict";Fr()}}),x$={};Mo(x$,{spanInSourceFileAtLocation:()=>v3e});var E3e=gt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";b3e()}});function T3e(e){return(ms(e)||_u(e))&&zl(e)}function pk(e){return(ms(e)||xs(e)||_u(e))&&wi(e.parent)&&e===e.parent.initializer&&Re(e.parent.name)&&!!(G_(e.parent)&2)}function tve(e){return Li(e)||Tc(e)||Jc(e)||ms(e)||sl(e)||_u(e)||oc(e)||Nc(e)||zm(e)||p_(e)||Sf(e)}function nx(e){return Li(e)||Tc(e)&&Re(e.name)||Jc(e)||sl(e)||oc(e)||Nc(e)||zm(e)||p_(e)||Sf(e)||T3e(e)||pk(e)}function nve(e){return Li(e)?e:zl(e)?e.name:pk(e)?e.parent.name:L.checkDefined(e.modifiers&&wr(e.modifiers,rve))}function rve(e){return e.kind===88}function ive(e,t){let r=nve(t);return r&&e.getSymbolAtLocation(r)}function S3e(e,t){if(Li(t))return{text:t.fileName,pos:0,end:0};if((Jc(t)||sl(t))&&!zl(t)){let o=t.modifiers&&wr(t.modifiers,rve);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(oc(t)){let o=t.getSourceFile(),s=xo(o.text,yp(t).pos),l=s+6,f=e.getTypeChecker(),d=f.getSymbolAtLocation(t.parent);return{text:`${d?`${f.symbolToString(d,t.parent)} `:""}static {}`,pos:s,end:l}}let r=pk(t)?t.parent.name:L.checkDefined(sa(t),"Expected call hierarchy item to have a name"),i=Re(r)?vr(r):yf(r)?r.text:ts(r)&&yf(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=fN();i=SI(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function x3e(e){var t,r;if(pk(e))return Tp(e.parent.parent.parent.parent)&&Re(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 174:case 175:case 171:return e.parent.kind===207?(t=xj(e.parent))==null?void 0:t.getText():(r=sa(e.parent))==null?void 0:r.getText();case 259:case 260:case 264:if(Tp(e.parent)&&Re(e.parent.parent.name))return e.parent.parent.name.getText()}}function ave(e,t){if(t.body)return t;if(Ec(t))return Vm(t.parent);if(Jc(t)||Nc(t)){let r=ive(e,t);return r&&r.valueDeclaration&&Ds(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function ove(e,t){let r=ive(e,t),i;if(r&&r.declarations){let o=jD(r.declarations),s=on(r.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));o.sort((d,g)=>su(s[d].file,s[g].file)||s[d].pos-s[g].pos);let l=on(o,d=>r.declarations[d]),f;for(let d of l)nx(d)&&((!f||f.parent!==d.parent||f.end!==d.pos)&&(i=Sn(i,d)),f=d)}return i}function E5(e,t){var r,i,o;return oc(t)?t:Ds(t)?(i=(r=ave(e,t))!=null?r:ove(e,t))!=null?i:t:(o=ove(e,t))!=null?o:t}function sve(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(nx(t))return E5(r,t);if(tve(t)){let o=jn(t,nx);return o&&E5(r,o)}if(Rh(t)){if(nx(t.parent))return E5(r,t.parent);if(tve(t.parent)){let o=jn(t.parent,nx);return o&&E5(r,o)}return wi(t.parent)&&t.parent.initializer&&pk(t.parent.initializer)?t.parent.initializer:void 0}if(Ec(t))return nx(t.parent)?t.parent:void 0;if(t.kind===124&&oc(t.parent)){t=t.parent;continue}if(wi(t)&&t.initializer&&pk(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function A$(e,t){let r=t.getSourceFile(),i=S3e(e,t),o=x3e(t),s=aE(t),l=rk(t),f=Wc(xo(r.text,t.getFullStart(),!1,!0),t.getEnd()),d=Wc(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:f,selectionSpan:d}}function A3e(e){return e!==void 0}function C3e(e){if(e.kind===js.EntryKind.Node){let{node:t}=e;if(PX(t,!0,!0)||phe(t,!0,!0)||mhe(t,!0,!0)||hhe(t,!0,!0)||j2(t)||BX(t)){let r=t.getSourceFile();return{declaration:jn(t,nx)||r,range:nY(t,r)}}}}function cve(e){return zo(e.declaration)}function I3e(e,t){return{from:e,fromSpans:t}}function L3e(e,t){return I3e(A$(e,t[0].declaration),on(t,r=>lv(r.range)))}function k3e(e,t,r){if(Li(t)||Tc(t)||oc(t))return[];let i=nve(t),o=Pr(js.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:js.FindReferencesUse.References},C3e),A3e);return o?YC(o,cve,s=>L3e(e,s)):[]}function D3e(e,t){function r(o){let s=PT(o)?o.tag:Au(o)?o.tagName:Us(o)||oc(o)?o:o.expression,l=sve(e,s);if(l){let f=nY(s,o.getSourceFile());if(ba(l))for(let d of l)t.push({declaration:d,range:f});else t.push({declaration:l,range:f})}}function i(o){if(o&&!(o.flags&16777216)){if(nx(o)){if(Yr(o))for(let s of o.members)s.name&&ts(s.name)&&i(s.name.expression);return}switch(o.kind){case 79:case 268:case 269:case 275:case 261:case 262:return;case 172:r(o);return;case 213:case 231:i(o.expression);return;case 257:case 166:i(o.name),i(o.initializer);return;case 210:r(o),i(o.expression),mn(o.arguments,i);return;case 211:r(o),i(o.expression),mn(o.arguments,i);return;case 212:r(o),i(o.tag),i(o.template);return;case 283:case 282:r(o),i(o.tagName),i(o.attributes);return;case 167:r(o),i(o.expression);return;case 208:case 209:r(o),pa(o,i);break;case 235:i(o.expression);return}Gm(o)||pa(o,i)}}return i}function w3e(e,t){mn(e.statements,t)}function R3e(e,t){!Mr(e,2)&&e.body&&Tp(e.body)&&mn(e.body.statements,t)}function O3e(e,t,r){let i=ave(e,t);i&&(mn(i.parameters,r),r(i.body))}function N3e(e,t){t(e.body)}function P3e(e,t){mn(e.modifiers,t);let r=P0(e);r&&t(r.expression);for(let i of e.members)g_(i)&&mn(i.modifiers,t),Na(i)?t(i.initializer):Ec(i)&&i.body?(mn(i.parameters,t),t(i.body)):oc(i)&&t(i)}function M3e(e,t){let r=[],i=D3e(e,r);switch(t.kind){case 308:w3e(t,i);break;case 264:R3e(t,i);break;case 259:case 215:case 216:case 171:case 174:case 175:O3e(e.getTypeChecker(),t,i);break;case 260:case 228:P3e(t,i);break;case 172:N3e(t,i);break;default:L.assertNever(t)}return r}function F3e(e,t){return{to:e,fromSpans:t}}function G3e(e,t){return F3e(A$(e,t[0].declaration),on(t,r=>lv(r.range)))}function B3e(e,t){return t.flags&16777216||zm(t)?[]:YC(M3e(e,t),cve,r=>G3e(e,r))}var U3e=gt({"src/services/callHierarchy.ts"(){"use strict";Fr()}}),rx={};Mo(rx,{createCallHierarchyItem:()=>A$,getIncomingCalls:()=>k3e,getOutgoingCalls:()=>B3e,resolveCallHierarchyDeclaration:()=>sve});var V3e=gt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";U3e()}});function j3e(e,t,r,i){let o=lve(e,t,r,i);L.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let f=0;f<s.length;f+=3)l.push({textSpan:il(s[f],s[f+1]),classificationType:s[f+2]});return l}function lve(e,t,r,i){return{spans:H3e(e,r,i,t),endOfLineState:0}}function H3e(e,t,r,i){let o=[];return e&&t&&W3e(e,t,r,(l,f,d)=>{o.push(l.getStart(t),l.getWidth(t),(f+1<<8)+d)},i),o}function W3e(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function f(d){switch(d.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 216:o.throwIfCancellationRequested()}if(!d||!$8(r,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;let g=l;if((Hg(d)||FS(d))&&(l=!0),AL(d)&&(l=!1),Re(d)&&!l&&!q3e(d)&&!cL(d.escapedText)){let m=s.getSymbolAtLocation(d);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let v=z3e(m,ZT(d));if(v!==void 0){let S=0;d.parent&&(Wo(d.parent)||k$.get(d.parent.kind)===v)&&d.parent.name===d&&(S=1),v===6&&dve(d)&&(v=9),v=J3e(s,d,v);let x=m.valueDeclaration;if(x){let A=wg(x),w=G_(x);A&32&&(S|=2),A&512&&(S|=4),v!==0&&v!==2&&(A&64||w&2||m.getFlags()&8)&&(S|=8),(v===7||v===10)&&K3e(x,t)&&(S|=32),e.isSourceFileDefaultLibrary(x.getSourceFile())&&(S|=16)}else m.declarations&&m.declarations.some(A=>e.isSourceFileDefaultLibrary(A.getSourceFile()))&&(S|=16);i(d,v,S)}}}pa(d,f),l=g}f(t)}function z3e(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Wo(i)&&(i=uve(i)),i&&k$.get(i.kind)}function J3e(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||X3e(t))return r===9?11:10}}return r}function K3e(e,t){return Wo(e)&&(e=uve(e)),wi(e)?(!Li(e.parent.parent.parent)||E2(e.parent))&&e.getSourceFile()===t:Jc(e)?!Li(e.parent)&&e.getSourceFile()===t:!1}function uve(e){for(;;)if(Wo(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function q3e(e){let t=e.parent;return t&&(lm(t)||$u(t)||nv(t))}function X3e(e){for(;dve(e);)e=e.parent;return Pa(e.parent)&&e.parent.expression===e}function dve(e){return Yu(e.parent)&&e.parent.right===e||br(e.parent)&&e.parent.name===e}var C$,I$,L$,k$,Y3e=gt({"src/services/classifier2020.ts"(){"use strict";Fr(),C$=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(C$||{}),I$=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(I$||{}),L$=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(L$||{}),k$=new Map([[257,7],[166,6],[169,9],[264,3],[263,1],[302,8],[260,0],[171,11],[259,10],[215,10],[170,11],[174,9],[175,9],[168,9],[261,2],[262,5],[165,4],[299,9],[300,9]])}}),fve={};Mo(fve,{TokenEncodingConsts:()=>C$,TokenModifier:()=>L$,TokenType:()=>I$,getEncodedSemanticClassifications:()=>lve,getSemanticClassifications:()=>j3e});var $3e=gt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";Y3e()}}),T5={};Mo(T5,{v2020:()=>fve});var Q3e=gt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";$3e()}});function K_(e,t,r){return w$(e,ZS(r),t,void 0,void 0)}function Ma(e,t,r,i,o,s){return w$(e,ZS(r),t,i,ZS(o),s)}function D$(e,t,r,i,o,s){return w$(e,ZS(r),t,i,o&&ZS(o),s)}function w$(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function za(e){for(let t of e.errorCodes)S5.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)L.assert(!x5.has(t)),x5.set(t,e)}function Z3e(){return lo(S5.keys())}function eFe(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(ya(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...f})=>o?f:{...f,fixId:s,fixAllDescription:l}}function tFe(e){let t=pve(e),r=S5.get(String(e.errorCode));return Uo(r,i=>on(i.getCodeActions(e),eFe(i,t)))}function nFe(e){return x5.get(Ga(e.fixId,Ta)).getAllCodeActions(e)}function ix(e,t){return{changes:e,commands:t}}function _ve(e,t){return{fileName:e,textChanges:t}}function ns(e,t,r){let i=[],o=nr.ChangeTracker.with(e,s=>ax(e,t,l=>r(s,l,i)));return ix(o,i.length===0?void 0:i)}function ax(e,t,r){for(let i of pve(e))ya(t,i.code)&&r(i)}function pve({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...$Y(t,e,r)]}var S5,x5,rFe=gt({"src/services/codeFixProvider.ts"(){"use strict";Fr(),S5=Nf(),x5=new Map}});function mve(e,t,r){let i=fO(r)?D.createAsExpression(r.expression,D.createKeywordTypeNode(157)):D.createTypeAssertion(D.createKeywordTypeNode(157),r.expression);e.replaceNode(t,r.expression,i)}function hve(e,t){if(!Yn(e))return jn(Vi(e,t),r=>fO(r)||Fue(r))}var A5,R$,iFe=gt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";Fr(),Qa(),A5="addConvertToUnknownForNonOverlappingTypes",R$=[_.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],za({errorCodes:R$,getCodeActions:function(t){let r=hve(t.sourceFile,t.span.start);if(r===void 0)return;let i=nr.ChangeTracker.with(t,o=>mve(o,t.sourceFile,r));return[Ma(A5,i,_.Add_unknown_conversion_for_non_overlapping_types,A5,_.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[A5],getAllCodeActions:e=>ns(e,R$,(t,r)=>{let i=hve(r.file,r.start);i&&mve(t,r.file,i)})})}}),aFe=gt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";Fr(),Qa(),za({errorCodes:[_.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,_.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:r}=t,i=nr.ChangeTracker.with(t,o=>{let s=D.createExportDeclaration(void 0,!1,D.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[K_("addEmptyExportDeclaration",i,_.Add_export_to_make_this_file_into_a_module)]}})}});function gve(e,t,r,i){let o=r(s=>oFe(s,e.sourceFile,t,i));return Ma(C5,o,_.Add_async_modifier_to_containing_function,C5,_.Add_all_missing_async_modifiers)}function oFe(e,t,r,i){if(i&&i.has(zo(r)))return;i?.add(zo(r));let o=D.updateModifiers(cc(r,!0),D.createNodeArray(D.createModifiersFromModifierFlags(Yy(r)|512)));e.replaceNode(t,r,o)}function yve(e,t){if(!t)return;let r=Vi(e,t.start);return jn(r,o=>o.getStart(e)<t.start||o.getEnd()>wl(t)?"quit":(xs(o)||Nc(o)||ms(o)||Jc(o))&&J2(t,Du(o,e)))}function sFe(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>Cg(r)&&Cg(i)&&J2({start:r,length:i},e)&&s===t&&!!o&&vt(o,l=>l.code===_.Did_you_mean_to_mark_this_function_as_async.code)}var C5,O$,cFe=gt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";Fr(),Qa(),C5="addMissingAsync",O$=[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_comparable_to_type_1.code],za({fixIds:[C5],errorCodes:O$,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,f=wr(s.getTypeChecker().getDiagnostics(r,o),sFe(l,i)),d=f&&f.relatedInformation&&wr(f.relatedInformation,v=>v.code===_.Did_you_mean_to_mark_this_function_as_async.code),g=yve(r,d);return g?[gve(t,g,v=>nr.ChangeTracker.with(t,v))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return ns(e,O$,(i,o)=>{let s=o.relatedInformation&&wr(o.relatedInformation,d=>d.code===_.Did_you_mean_to_mark_this_function_as_async.code),l=yve(t,s);return l?gve(e,l,d=>(d(i),[]),r):void 0})}})}});function vve(e,t,r,i,o){let s=IY(e,r);return s&&lFe(e,t,r,i,o)&&Tve(s)?s:void 0}function bve(e,t,r,i,o,s){let{sourceFile:l,program:f,cancellationToken:d}=e,g=uFe(t,l,d,f,i);if(g){let m=o(v=>{mn(g.initializers,({expression:S})=>N$(v,r,l,i,S,s)),s&&g.needsSecondPassForFixAll&&N$(v,r,l,i,t,s)});return K_("addMissingAwaitToInitializer",m,g.initializers.length===1?[_.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:_.Add_await_to_initializers)}}function Eve(e,t,r,i,o,s){let l=o(f=>N$(f,r,e.sourceFile,i,t,s));return Ma(I5,l,_.Add_await,I5,_.Fix_all_expressions_possibly_missing_await)}function lFe(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return vt(l,({start:f,length:d,relatedInformation:g,code:m})=>Cg(f)&&Cg(d)&&J2({start:f,length:d},r)&&m===t&&!!g&&vt(g,v=>v.code===_.Did_you_forget_to_use_await.code))}function uFe(e,t,r,i,o){let s=dFe(e,o);if(!s)return;let l=s.isCompleteFix,f;for(let d of s.identifiers){let g=o.getSymbolAtLocation(d);if(!g)continue;let m=zr(g.valueDeclaration,wi),v=m&&zr(m.name,Re),S=cb(m,240);if(!m||!S||m.type||!m.initializer||S.getSourceFile()!==t||Mr(S,1)||!v||!Tve(m.initializer)){l=!1;continue}let x=i.getSemanticDiagnostics(t,r);if(js.Core.eachSymbolReferenceInFile(v,o,t,w=>d!==w&&!fFe(w,x,t,o))){l=!1;continue}(f||(f=[])).push({expression:m.initializer,declarationSymbol:g})}return f&&{initializers:f,needsSecondPassForFixAll:!l}}function dFe(e,t){if(br(e.parent)&&Re(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Re(e))return{identifiers:[e],isCompleteFix:!0};if(ar(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Re(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function fFe(e,t,r,i){let o=br(e.parent)?e.parent.name:ar(e.parent)?e.parent:e,s=wr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&ya(L5,s.code)||i.getTypeAtLocation(o).flags&1}function Tve(e){return e.kind&32768||!!jn(e,t=>t.parent&&xs(t.parent)&&t.parent.body===t||Va(t)&&(t.parent.kind===259||t.parent.kind===215||t.parent.kind===216||t.parent.kind===171))}function N$(e,t,r,i,o,s){if(_O(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),f=i.getAsyncIterableType();if(f&&i.isTypeAssignableTo(l,f)){let d=o.parent;e.replaceNode(r,d,D.updateForOfStatement(d,D.createToken(133),d.initializer,d.expression,d.statement));return}}if(ar(o))for(let l of[o.left,o.right]){if(s&&Re(l)){let g=i.getSymbolAtLocation(l);if(g&&s.has($a(g)))continue}let f=i.getTypeAtLocation(l),d=i.getPromisedTypeOfPromise(f)?D.createAwaitExpression(l):l;e.replaceNode(r,l,d)}else if(t===P$&&br(o.parent)){if(s&&Re(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has($a(l)))return}e.replaceNode(r,o.parent.expression,D.createParenthesizedExpression(D.createAwaitExpression(o.parent.expression))),Sve(e,o.parent.expression,r)}else if(ya(M$,t)&&Ih(o.parent)){if(s&&Re(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has($a(l)))return}e.replaceNode(r,o,D.createParenthesizedExpression(D.createAwaitExpression(o))),Sve(e,o,r)}else{if(s&&wi(o.parent)&&Re(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!_0(s,$a(l)))return}e.replaceNode(r,o,D.createAwaitExpression(o))}}function Sve(e,t,r){let i=el(t.pos,r);i&&N7(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var I5,P$,M$,L5,_Fe=gt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";Fr(),Qa(),I5="addMissingAwait",P$=_.Property_0_does_not_exist_on_type_1.code,M$=[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],L5=[_.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_.Operator_0_cannot_be_applied_to_type_1.code,_.Operator_0_cannot_be_applied_to_types_1_and_2.code,_.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_.Type_0_is_not_an_array_type.code,_.Type_0_is_not_an_array_type_or_a_string_type.code,_.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,P$,...M$],za({fixIds:[I5],errorCodes:L5,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,f=vve(r,i,o,s,l);if(!f)return;let d=t.program.getTypeChecker(),g=m=>nr.ChangeTracker.with(t,m);return WD([bve(t,f,i,d,g),Eve(t,f,i,d,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return ns(e,L5,(l,f)=>{let d=vve(t,f.code,f,i,r);if(!d)return;let g=m=>(m(l),[]);return bve(e,d,f.code,o,g,s)||Eve(e,d,f.code,o,g,s)})}})}});function xve(e,t,r,i,o){let s=Vi(t,r),l=jn(s,g=>CA(g.parent)?g.parent.initializer===g:pFe(g)?!1:"quit");if(l)return k5(e,l,t,o);let f=s.parent;if(ar(f)&&f.operatorToken.kind===63&&Ol(f.parent))return k5(e,s,t,o);if(fu(f)){let g=i.getTypeChecker();return Ji(f.elements,m=>mFe(m,g))?k5(e,f,t,o):void 0}let d=jn(s,g=>Ol(g.parent)?!0:hFe(g)?!1:"quit");if(d){let g=i.getTypeChecker();return Ave(d,g)?k5(e,d,t,o):void 0}}function k5(e,t,r,i){(!i||_0(i,t))&&e.insertModifierBefore(r,85,t)}function pFe(e){switch(e.kind){case 79:case 206:case 207:case 299:case 300:return!0;default:return!1}}function mFe(e,t){let r=Re(e)?e:Iu(e,!0)&&Re(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function hFe(e){switch(e.kind){case 79:case 223:case 27:return!0;default:return!1}}function Ave(e,t){return ar(e)?e.operatorToken.kind===27?Ji([e.left,e.right],r=>Ave(r,t)):e.operatorToken.kind===63&&Re(e.left)&&!t.getSymbolAtLocation(e.left):!1}var D5,F$,gFe=gt({"src/services/codefixes/addMissingConst.ts"(){"use strict";Fr(),Qa(),D5="addMissingConst",F$=[_.Cannot_find_name_0.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],za({errorCodes:F$,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>xve(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[Ma(D5,r,_.Add_const_to_unresolved_variable,D5,_.Add_const_to_all_unresolved_variables)]},fixIds:[D5],getAllCodeActions:e=>{let t=new Set;return ns(e,F$,(r,i)=>xve(r,i.file,i.start,e.program,t))}})}});function Cve(e,t,r,i){let o=Vi(t,r);if(!Re(o))return;let s=o.parent;s.kind===169&&(!i||_0(i,s))&&e.insertModifierBefore(t,136,s)}var w5,G$,yFe=gt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";Fr(),Qa(),w5="addMissingDeclareProperty",G$=[_.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],za({errorCodes:G$,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>Cve(i,t.sourceFile,t.span.start));if(r.length>0)return[Ma(w5,r,_.Prefix_with_declare,w5,_.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[w5],getAllCodeActions:e=>{let t=new Set;return ns(e,G$,(r,i)=>Cve(r,i.file,i.start,t))}})}});function Ive(e,t,r){let i=Vi(t,r),o=jn(i,du);L.assert(!!o,"Expected position to be owned by a decorator.");let s=D.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var R5,B$,vFe=gt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";Fr(),Qa(),R5="addMissingInvocationForDecorator",B$=[_._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],za({errorCodes:B$,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>Ive(i,t.sourceFile,t.span.start));return[Ma(R5,r,_.Call_decorator_expression,R5,_.Add_to_all_uncalled_decorators)]},fixIds:[R5],getAllCodeActions:e=>ns(e,B$,(t,r)=>Ive(t,r.file,r.start))})}});function Lve(e,t,r){let i=Vi(t,r),o=i.parent;if(!ha(o))return L.fail("Tried to add a parameter name to a non-parameter: "+L.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);L.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),L.assert(s>-1,"Parameter not found in parent parameter list.");let l=D.createTypeReferenceNode(o.name,void 0),f=D.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken?D.createArrayTypeNode(l):l,o.initializer);e.replaceNode(t,o,f)}var O5,U$,bFe=gt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";Fr(),Qa(),O5="addNameToNamelessParameter",U$=[_.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],za({errorCodes:U$,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>Lve(i,t.sourceFile,t.span.start));return[Ma(O5,r,_.Add_parameter_name,O5,_.Add_names_to_all_parameters_without_names)]},fixIds:[O5],getAllCodeActions:e=>ns(e,U$,(t,r)=>Lve(t,r.file,r.start))})}});function EFe(e,t,r){var i,o;let s=kve(IY(e,t),r);if(!s)return Je;let{source:l,target:f}=s,d=TFe(l,f,r)?r.getTypeAtLocation(f.expression):r.getTypeAtLocation(f);return(o=(i=d.symbol)==null?void 0:i.declarations)!=null&&o.some(g=>Gn(g).fileName.match(/\.d\.ts$/))?Je:r.getExactOptionalProperties(d)}function TFe(e,t,r){return br(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function kve(e,t){var r;if(e){if(ar(e.parent)&&e.parent.operatorToken.kind===63)return{source:e.parent.right,target:e.parent.left};if(wi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Pa(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!nS(i.valueDeclaration.kind)||!ot(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Re(s))return{source:e,target:s}}else if(yl(e.parent)&&Re(e.parent.name)||xf(e.parent)){let i=kve(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:yl(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function SFe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&($d(i)||Na(i))&&i.type){let o=D.createUnionTypeNode([...i.type.kind===189?i.type.types:[i.type],D.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var V$,Dve,xFe=gt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";Fr(),Qa(),V$="addOptionalPropertyUndefined",Dve=[_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],za({errorCodes:Dve,getCodeActions(e){let t=e.program.getTypeChecker(),r=EFe(e.sourceFile,e.span,t);if(!r.length)return;let i=nr.ChangeTracker.with(e,o=>SFe(o,r));return[K_(V$,i,_.Add_undefined_to_optional_property_type)]},fixIds:[V$]})}});function wve(e,t){let r=Vi(e,t);return zr(ha(r.parent)?r.parent.parent:r.parent,Rve)}function Rve(e){return AFe(e)&&Ove(e)}function Ove(e){return Ds(e)?e.parameters.some(Ove)||!e.type&&!!Aw(e):!e.type&&!!Vy(e)}function Nve(e,t,r){if(Ds(r)&&(Aw(r)||r.parameters.some(i=>!!Vy(i)))){if(!r.typeParameters){let o=t4(r);o.length&&e.insertTypeParameters(t,r,o)}let i=xs(r)&&!Yo(r,20,t);i&&e.insertNodeBefore(t,Vo(r.parameters),D.createToken(20));for(let o of r.parameters)if(!o.type){let s=Vy(o);s&&e.tryInsertTypeAnnotation(t,o,$e(s,Sb,bi))}if(i&&e.insertNodeAfter(t,To(r.parameters),D.createToken(21)),!r.type){let o=Aw(r);o&&e.tryInsertTypeAnnotation(t,r,$e(o,Sb,bi))}}else{let i=L.checkDefined(Vy(r),"A JSDocType for this declaration should exist");L.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,$e(i,Sb,bi))}}function AFe(e){return Ds(e)||e.kind===257||e.kind===168||e.kind===169}function Sb(e){switch(e.kind){case 315:case 316:return D.createTypeReferenceNode("any",Je);case 319:return IFe(e);case 318:return Sb(e.type);case 317:return LFe(e);case 321:return kFe(e);case 320:return DFe(e);case 180:return RFe(e);case 325:return CFe(e);default:let t=xn(e,Sb,Bh);return Jn(t,1),t}}function CFe(e){let t=D.createTypeLiteralNode(on(e.jsDocPropertyTags,r=>D.createPropertySignature(void 0,Re(r.name)?r.name:r.name.right,zR(r)?D.createToken(57):void 0,r.typeExpression&&$e(r.typeExpression.type,Sb,bi)||D.createKeywordTypeNode(131))));return Jn(t,1),t}function IFe(e){return D.createUnionTypeNode([$e(e.type,Sb,bi),D.createTypeReferenceNode("undefined",Je)])}function LFe(e){return D.createUnionTypeNode([$e(e.type,Sb,bi),D.createTypeReferenceNode("null",Je)])}function kFe(e){return D.createArrayTypeNode($e(e.type,Sb,bi))}function DFe(e){var t;return D.createFunctionTypeNode(Je,e.parameters.map(wFe),(t=e.type)!=null?t:D.createKeywordTypeNode(131))}function wFe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===321&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?D.createToken(25):e.dotDotDotToken;return D.createParameterDeclaration(e.modifiers,o,i,e.questionToken,$e(e.type,Sb,bi),e.initializer)}function RFe(e){let t=e.typeName,r=e.typeArguments;if(Re(e.typeName)){if(U6(e))return OFe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=D.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=D.createNodeArray([D.createTypeReferenceNode("any",Je)]):r=On(e.typeArguments,Sb,bi)}return D.createTypeReferenceNode(t,r)}function OFe(e){let t=D.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===148?"n":"s",void 0,D.createTypeReferenceNode(e.typeArguments[0].kind===148?"number":"string",[]),void 0),r=D.createTypeLiteralNode([D.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Jn(r,1),r}var N5,j$,NFe=gt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";Fr(),Qa(),N5="annotateWithTypeFromJSDoc",j$=[_.JSDoc_types_may_be_moved_to_TypeScript_types.code],za({errorCodes:j$,getCodeActions(e){let t=wve(e.sourceFile,e.span.start);if(!t)return;let r=nr.ChangeTracker.with(e,i=>Nve(i,e.sourceFile,t));return[Ma(N5,r,_.Annotate_with_type_from_JSDoc,N5,_.Annotate_everything_with_types_from_JSDoc)]},fixIds:[N5],getAllCodeActions:e=>ns(e,j$,(t,r)=>{let i=wve(r.file,r.start);i&&Nve(t,r.file,i)})})}});function Pve(e,t,r,i,o,s){let l=i.getSymbolAtLocation(Vi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let f=l.valueDeclaration;if(Jc(f)||ms(f))e.replaceNode(t,f,m(f));else if(wi(f)){let v=g(f);if(!v)return;let S=f.parent.parent;pu(f.parent)&&f.parent.declarations.length>1?(e.delete(t,f),e.insertNodeAfter(t,S,v)):e.replaceNode(t,S,v)}function d(v){let S=[];return v.exports&&v.exports.forEach(w=>{if(w.name==="prototype"&&w.declarations){let C=w.declarations[0];if(w.declarations.length===1&&br(C)&&ar(C.parent)&&C.parent.operatorToken.kind===63&&rs(C.parent.right)){let P=C.parent.right;A(P.symbol,void 0,S)}}else A(w,[D.createToken(124)],S)}),v.members&&v.members.forEach((w,C)=>{var P,F,B,q;if(C==="constructor"&&w.valueDeclaration){let W=(q=(B=(F=(P=v.exports)==null?void 0:P.get("prototype"))==null?void 0:F.declarations)==null?void 0:B[0])==null?void 0:q.parent;W&&ar(W)&&rs(W.right)&&vt(W.right.properties,M5)||e.delete(t,w.valueDeclaration.parent);return}A(w,void 0,S)}),S;function x(w,C){return Us(w)?br(w)&&M5(w)?!0:Ia(C):Ji(w.properties,P=>!!(Nc(P)||t6(P)||yl(P)&&ms(P.initializer)&&P.name||M5(P)))}function A(w,C,P){if(!(w.flags&8192)&&!(w.flags&4096))return;let F=w.valueDeclaration,B=F.parent,q=B.right;if(!x(F,q)||vt(P,$=>{let fe=sa($);return!!(fe&&Re(fe)&&vr(fe)===fc(w))}))return;let W=B.parent&&B.parent.kind===241?B.parent:B;if(e.delete(t,W),!q){P.push(D.createPropertyDeclaration(C,w.name,void 0,void 0,void 0));return}if(Us(F)&&(ms(q)||xs(q))){let $=J_(t,o),fe=PFe(F,s,$);fe&&Y(P,q,fe);return}else if(rs(q)){mn(q.properties,$=>{(Nc($)||t6($))&&P.push($),yl($)&&ms($.initializer)&&Y(P,$.initializer,$.name),M5($)});return}else{if(Cu(t)||!br(F))return;let $=D.createPropertyDeclaration(C,F.name,void 0,void 0,q);q2(B.parent,$,t),P.push($);return}function Y($,fe,Z){return ms(fe)?R($,fe,Z):ie($,fe,Z)}function R($,fe,Z){let U=Qi(C,P5(fe,132)),re=D.createMethodDeclaration(U,void 0,Z,void 0,void 0,fe.parameters,void 0,fe.body);q2(B,re,t),$.push(re)}function ie($,fe,Z){let U=fe.body,re;U.kind===238?re=U:re=D.createBlock([D.createReturnStatement(U)]);let le=Qi(C,P5(fe,132)),_e=D.createMethodDeclaration(le,void 0,Z,void 0,void 0,fe.parameters,void 0,re);q2(B,_e,t),$.push(_e)}}}function g(v){let S=v.initializer;if(!S||!ms(S)||!Re(v.name))return;let x=d(v.symbol);S.body&&x.unshift(D.createConstructorDeclaration(void 0,S.parameters,S.body));let A=P5(v.parent.parent,93);return D.createClassDeclaration(A,v.name,void 0,void 0,x)}function m(v){let S=d(l);v.body&&S.unshift(D.createConstructorDeclaration(void 0,v.parameters,v.body));let x=P5(v,93);return D.createClassDeclaration(x,v.name,void 0,void 0,S)}}function P5(e,t){return g_(e)?Pr(e.modifiers,r=>r.kind===t):void 0}function M5(e){return e.name?!!(Re(e.name)&&e.name.text==="constructor"):!1}function PFe(e,t,r){if(br(e))return e.name;let i=e.argumentExpression;if(Vf(i))return i;if(es(i))return i_(i.text,Do(t))?D.createIdentifier(i.text):IS(i)?D.createStringLiteral(i.text,r===0):i}var F5,H$,MFe=gt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";Fr(),Qa(),F5="convertFunctionToEs6Class",H$=[_.This_constructor_function_may_be_converted_to_a_class_declaration.code],za({errorCodes:H$,getCodeActions(e){let t=nr.ChangeTracker.with(e,r=>Pve(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Ma(F5,t,_.Convert_function_to_an_ES2015_class,F5,_.Convert_all_constructor_functions_to_classes)]},fixIds:[F5],getAllCodeActions:e=>ns(e,H$,(t,r)=>Pve(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function Mve(e,t,r,i){let o=Vi(t,r),s;if(Re(o)&&wi(o.parent)&&o.parent.initializer&&Ds(o.parent.initializer)?s=o.parent.initializer:s=zr(Xd(Vi(t,r)),e$),!s)return;let l=new Map,f=Yn(s),d=GFe(s,i),g=BFe(s,i,l);if(!QY(g,i))return;let m=g.body&&Va(g.body)?FFe(g.body,i):Je,v={checker:i,synthNamesMap:l,setOfExpressionsToReturn:d,isInJSFile:f};if(!m.length)return;let S=xo(t.text,yp(s).pos);e.insertModifierAt(t,S,132,{suffix:" "});for(let x of m)if(pa(x,function A(w){if(Pa(w)){let C=ox(w,w,v,!1);if(o1())return!0;e.replaceNodeWithNodes(t,x,C)}else if(!Ia(w)&&(pa(w,A),o1()))return!0}),o1())return}function FFe(e,t){let r=[];return vT(e,i=>{r5(i,t)&&r.push(i)}),r}function GFe(e,t){if(!e.body)return new Set;let r=new Set;return pa(e.body,function i(o){mk(o,t,"then")?(r.add(zo(o)),mn(o.arguments,i)):mk(o,t,"catch")||mk(o,t,"finally")?(r.add(zo(o)),pa(o,i)):Gve(o,t)?r.add(zo(o)):pa(o,i)}),r}function mk(e,t,r){if(!Pa(e))return!1;let o=kN(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function Fve(e,t){return(Ur(e)&4)!==0&&e.target===t}function G5(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(Fve(i,r.getPromiseType())||Fve(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Ig(e.arguments,0))return Ig(e.typeArguments,0);if(t===Ig(e.arguments,1))return Ig(e.typeArguments,1)}else return Ig(e.typeArguments,0)}function Gve(e,t){return ot(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function BFe(e,t,r){let i=new Map,o=Nf();return pa(e,function s(l){if(!Re(l)){pa(l,s);return}let f=t.getSymbolAtLocation(l);if(f){let d=t.getTypeAtLocation(l),g=Wve(d,t),m=$a(f).toString();if(g&&!ha(l.parent)&&!Ds(l.parent)&&!r.has(m)){let v=Sl(g.parameters),S=v?.valueDeclaration&&ha(v.valueDeclaration)&&zr(v.valueDeclaration.name,Re)||D.createUniqueName("result",16),x=Bve(S,o);r.set(m,x),o.add(S.text,f)}else if(l.parent&&(ha(l.parent)||wi(l.parent)||Wo(l.parent))){let v=l.text,S=o.get(v);if(S&&S.some(x=>x!==f)){let x=Bve(l,o);i.set(m,x.identifier),r.set(m,x),o.add(v,f)}else{let x=cc(l);r.set(m,$2(x)),o.add(v,f)}}}}),JN(e,!0,s=>{if(Wo(s)&&Re(s.name)&&cm(s.parent)){let l=t.getSymbolAtLocation(s.name),f=l&&i.get(String($a(l)));if(f&&f.text!==(s.name||s.propertyName).getText())return D.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,f,s.initializer)}else if(Re(s)){let l=t.getSymbolAtLocation(s),f=l&&i.get(String($a(l)));if(f)return D.createIdentifier(f.text)}})}function Bve(e,t){let r=(t.get(e.text)||Je).length,i=r===0?e:D.createIdentifier(e.text+"_"+r);return $2(i)}function o1(){return!iP}function _v(){return iP=!1,Je}function ox(e,t,r,i,o){if(mk(t,r.checker,"then"))return jFe(t,Ig(t.arguments,0),Ig(t.arguments,1),r,i,o);if(mk(t,r.checker,"catch"))return jve(t,Ig(t.arguments,0),r,i,o);if(mk(t,r.checker,"finally"))return VFe(t,Ig(t.arguments,0),r,i,o);if(br(t))return ox(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(L.assertNode(ec(t).parent,br),HFe(e,t,r,i,o)):_v()}function B5({checker:e},t){if(t.kind===104)return!0;if(Re(t)&&!tc(t)&&vr(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function UFe(e){let t=D.createUniqueName(e.identifier.text,16);return $2(t)}function Uve(e,t,r){let i;return r&&!gk(e,t)&&(hk(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=UFe(r);t.synthNamesMap.set(s,l)}})):i=$2(D.createUniqueName("result",16),r.types),K$(i)),i}function Vve(e,t,r,i,o){let s=[],l;if(i&&!gk(e,t)){l=cc(K$(i));let f=i.types,d=t.checker.getUnionType(f,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),m=[D.createVariableDeclaration(l,void 0,g)],v=D.createVariableStatement(void 0,D.createVariableDeclarationList(m,1));s.push(v)}return s.push(r),o&&l&&JFe(o)&&s.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(cc(qve(o)),void 0,void 0,l)],2))),s}function VFe(e,t,r,i,o){if(!t||B5(r,t))return ox(e,e.expression.expression,r,i,o);let s=Uve(e,r,o),l=ox(e,e.expression.expression,r,!0,s);if(o1())return _v();let f=z$(t,i,void 0,void 0,e,r);if(o1())return _v();let d=D.createBlock(l),g=D.createBlock(f),m=D.createTryStatement(d,void 0,g);return Vve(e,r,m,s,o)}function jve(e,t,r,i,o){if(!t||B5(r,t))return ox(e,e.expression.expression,r,i,o);let s=Jve(t,r),l=Uve(e,r,o),f=ox(e,e.expression.expression,r,!0,l);if(o1())return _v();let d=z$(t,i,l,s,e,r);if(o1())return _v();let g=D.createBlock(f),m=D.createCatchClause(s&&cc(rP(s)),D.createBlock(d)),v=D.createTryStatement(g,m,void 0);return Vve(e,r,v,l,o)}function jFe(e,t,r,i,o,s){if(!t||B5(i,t))return jve(e,r,i,o,s);if(r&&!B5(i,r))return _v();let l=Jve(t,i),f=ox(e.expression.expression,e.expression.expression,i,!0,l);if(o1())return _v();let d=z$(t,o,s,l,e,i);return o1()?_v():Qi(f,d)}function HFe(e,t,r,i,o){if(gk(e,r)){let s=cc(t);return i&&(s=D.createAwaitExpression(s)),[D.createReturnStatement(s)]}return U5(o,D.createAwaitExpression(t),void 0)}function U5(e,t,r){return!e||Kve(e)?[D.createExpressionStatement(t)]:hk(e)&&e.hasBeenDeclared?[D.createExpressionStatement(D.createAssignment(cc(J$(e)),t))]:[D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(cc(rP(e)),void 0,r,t)],2))]}function W$(e,t){if(t&&e){let r=D.createUniqueName("result",16);return[...U5($2(r),e,t),D.createReturnStatement(r)]}return[D.createReturnStatement(e)]}function z$(e,t,r,i,o,s){var l;switch(e.kind){case 104:break;case 208:case 79:if(!i)break;let f=D.createCallExpression(cc(e),void 0,hk(i)?[J$(i)]:[]);if(gk(o,s))return W$(f,G5(o,e,s.checker));let d=s.checker.getTypeAtLocation(e),g=s.checker.getSignaturesOfType(d,0);if(!g.length)return _v();let m=g[0].getReturnType(),v=U5(r,D.createAwaitExpression(f),G5(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),v;case 215:case 216:{let S=e.body,x=(l=Wve(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Va(S)){let A=[],w=!1;for(let C of S.statements)if(j_(C))if(w=!0,r5(C,s.checker))A=A.concat(zve(s,C,t,r));else{let P=x&&C.expression?Hve(s.checker,x,C.expression):C.expression;A.push(...W$(P,G5(o,e,s.checker)))}else{if(t&&vT(C,h0))return _v();A.push(C)}return gk(o,s)?A.map(C=>cc(C)):WFe(A,r,s,w)}else{let A=ZY(S,s.checker)?zve(s,D.createReturnStatement(S),t,r):Je;if(A.length>0)return A;if(x){let w=Hve(s.checker,x,S);if(gk(o,s))return W$(w,G5(o,e,s.checker));{let C=U5(r,w,void 0);return r&&r.types.push(s.checker.getAwaitedType(x)||x),C}}else return _v()}}default:return _v()}return Je}function Hve(e,t,r){let i=cc(r);return e.getPromisedTypeOfPromise(t)?D.createAwaitExpression(i):i}function Wve(e,t){let r=t.getSignaturesOfType(e,0);return Os(r)}function WFe(e,t,r,i){let o=[];for(let s of e)if(j_(s)){if(s.expression){let l=Gve(s.expression,r.checker)?D.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(D.createExpressionStatement(l)):hk(t)&&t.hasBeenDeclared?o.push(D.createExpressionStatement(D.createAssignment(J$(t),l))):o.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(rP(t),void 0,void 0,l)],2)))}}else o.push(cc(s));return!i&&t!==void 0&&o.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(rP(t),void 0,void 0,D.createIdentifier("undefined"))],2))),o}function zve(e,t,r,i){let o=[];return pa(t,function s(l){if(Pa(l)){let f=ox(l,l,e,r,i);if(o=o.concat(f),o.length>0)return}else Ia(l)||pa(l,s)}),o}function Jve(e,t){let r=[],i;if(Ds(e)){if(e.parameters.length>0){let d=e.parameters[0].name;i=o(d)}}else Re(e)?i=s(e):br(e)&&Re(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(d){if(Re(d))return s(d);let g=Uo(d.elements,m=>ol(m)?[]:[o(m.name)]);return zFe(d,g)}function s(d){let g=f(d),m=l(g);return m&&t.synthNamesMap.get($a(m).toString())||$2(d,r)}function l(d){var g,m;return(m=(g=zr(d,$p))==null?void 0:g.symbol)!=null?m:t.checker.getSymbolAtLocation(d)}function f(d){return d.original?d.original:d}}function Kve(e){return e?hk(e)?!e.identifier.text:Ji(e.elements,Kve):!0}function $2(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function zFe(e,t=Je,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function J$(e){return e.hasBeenReferenced=!0,e.identifier}function rP(e){return hk(e)?K$(e):qve(e)}function qve(e){for(let t of e.elements)rP(t);return e.bindingPattern}function K$(e){return e.hasBeenDeclared=!0,e.identifier}function hk(e){return e.kind===0}function JFe(e){return e.kind===1}function gk(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(zo(e.original))}var V5,q$,iP,KFe=gt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";Fr(),Qa(),V5="convertToAsyncFunction",q$=[_.This_may_be_converted_to_an_async_function.code],iP=!0,za({errorCodes:q$,getCodeActions(e){iP=!0;let t=nr.ChangeTracker.with(e,r=>Mve(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return iP?[Ma(V5,t,_.Convert_to_async_function,V5,_.Convert_all_to_async_functions)]:[]},fixIds:[V5],getAllCodeActions:e=>ns(e,q$,(t,r)=>Mve(t,r.file,r.start,e.program.getTypeChecker()))})}});function qFe(e,t,r,i){for(let o of e.imports){let s=kA(e,o.text,W_(e,o));if(!s||s.resolvedFileName!==t.fileName)continue;let l=aR(o);switch(l.kind){case 268:r.replaceNode(e,l,Xg(l.name,void 0,o,i));break;case 210:qu(l,!1)&&r.replaceNode(e,l,D.createPropertyAccessExpression(cc(l),"default"));break}}}function XFe(e,t,r,i,o){let s={original:c7e(e),additional:new Set},l=YFe(e,t,s);$Fe(e,l,r);let f=!1,d;for(let g of Pr(e.statements,Bc)){let m=Yve(e,g,r,t,s,i,o);m&&Mw(m,d??(d=new Map))}for(let g of Pr(e.statements,m=>!Bc(m))){let m=QFe(e,g,t,r,s,i,l,d,o);f=f||m}return d?.forEach((g,m)=>{r.replaceNode(e,m,g)}),f}function YFe(e,t,r){let i=new Map;return Xve(e,o=>{let{text:s}=o.name;!i.has(s)&&(q6(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,j5(`_${s}`,r))}),i}function $Fe(e,t,r){Xve(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,D.createIdentifier(t.get(s)||s))})}function Xve(e,t){e.forEachChild(function r(i){if(br(i)&&$0(e,i.expression)&&Re(i.name)){let{parent:o}=i;t(i,ar(o)&&o.left===i&&o.operatorToken.kind===63)}i.forEachChild(r)})}function QFe(e,t,r,i,o,s,l,f,d){switch(t.kind){case 240:return Yve(e,t,i,r,o,s,d),!1;case 241:{let{expression:g}=t;switch(g.kind){case 210:return qu(g,!0)&&i.replaceNode(e,t,Xg(void 0,void 0,g.arguments[0],d)),!1;case 223:{let{operatorToken:m}=g;return m.kind===63&&e7e(e,r,g,i,l,f)}}}default:return!1}}function Yve(e,t,r,i,o,s,l){let{declarationList:f}=t,d=!1,g=on(f.declarations,m=>{let{name:v,initializer:S}=m;if(S){if($0(e,S))return d=!0,Q2([]);if(qu(S,!0))return d=!0,o7e(v,S.arguments[0],i,o,s,l);if(br(S)&&qu(S.expression,!0))return d=!0,ZFe(v,S.name.text,S.expression.arguments[0],o,l)}return Q2([D.createVariableStatement(void 0,D.createVariableDeclarationList([m],f.flags))])});if(d){r.replaceNodeWithNodes(e,t,Uo(g,v=>v.newImports));let m;return mn(g,v=>{v.useSitesToUnqualify&&Mw(v.useSitesToUnqualify,m??(m=new Map))}),m}}function ZFe(e,t,r,i,o){switch(e.kind){case 203:case 204:{let s=j5(t,i);return Q2([ebe(s,t,r,o),H5(void 0,e,D.createIdentifier(s))])}case 79:return Q2([ebe(e.text,t,r,o)]);default:return L.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function e7e(e,t,r,i,o,s){let{left:l,right:f}=r;if(!br(l))return!1;if($0(e,l))if($0(e,f))i.delete(e,r.parent);else{let d=rs(f)?t7e(f,s):qu(f,!0)?r7e(f.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,r.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Gf(l.getStart(e),f.pos),"export default"),!0)}else $0(e,l.expression)&&n7e(e,r,i,o);return!1}function t7e(e,t){let r=NU(e.properties,i=>{switch(i.kind){case 174:case 175:case 300:case 301:return;case 299:return Re(i.name)?a7e(i.name.text,i.initializer,t):void 0;case 171:return Re(i.name)?Zve(i.name.text,[D.createToken(93)],i,t):void 0;default:L.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function n7e(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[H5(void 0,s,t.right),$$([D.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else i7e(t,e,r)}function r7e(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:b8;return o.has("export=")?[[X$(r)],!0]:o.has("default")?o.size>1?[[$ve(r),X$(r)],!0]:[[X$(r)],!0]:[[$ve(r)],!1]}function $ve(e){return $$(void 0,e)}function X$(e){return $$([D.createExportSpecifier(!1,void 0,"default")],e)}function i7e({left:e,right:t,parent:r},i,o){let s=e.name.text;if((ms(t)||xs(t)||_u(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},D.createToken(93),{suffix:" "}),t.name||o.insertName(i,t,s);let l=Yo(r,26,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Yo(e,24,i),[D.createToken(93),D.createToken(85)],{joiner:" ",suffix:" "})}function a7e(e,t,r){let i=[D.createToken(93)];switch(t.kind){case 215:{let{name:s}=t;if(s&&s.text!==e)return o()}case 216:return Zve(e,i,t,r);case 228:return u7e(e,i,t,r);default:return o()}function o(){return H5(i,D.createIdentifier(e),Y$(t,r))}}function Y$(e,t){if(!t||!vt(lo(t.keys()),i=>Od(e,i)))return e;return ba(e)?gY(e,!0,r):JN(e,!0,r);function r(i){if(i.kind===208){let o=t.get(i);return t.delete(i),o}}}function o7e(e,t,r,i,o,s){switch(e.kind){case 203:{let l=NU(e.elements,f=>f.dotDotDotToken||f.initializer||f.propertyName&&!Re(f.propertyName)||!Re(f.name)?void 0:tbe(f.propertyName&&f.propertyName.text,f.name.text));if(l)return Q2([Xg(void 0,l,t,s)])}case 204:{let l=j5(cQ(t.text,o),i);return Q2([Xg(D.createIdentifier(l),void 0,t,s),H5(void 0,cc(e),D.createIdentifier(l))])}case 79:return s7e(e,t,r,i,s);default:return L.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function s7e(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,f=!1,d;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:v}=m;if(br(v)){let{name:{text:S}}=v;if(S==="default"){f=!0;let x=m.getText();(d??(d=new Map)).set(v,D.createIdentifier(x))}else{L.assert(v.expression===m,"Didn't expect expression === use");let x=l.get(S);x===void 0&&(x=j5(S,i),l.set(S,x)),(d??(d=new Map)).set(v,D.createIdentifier(x))}}else f=!0}let g=l.size===0?void 0:lo(RU(l.entries(),([m,v])=>D.createImportSpecifier(!1,m===v?void 0:D.createIdentifier(m),D.createIdentifier(v))));return g||(f=!0),Q2([Xg(f?cc(e):void 0,g,t,o)],d)}function j5(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function c7e(e){let t=Nf();return Qve(e,r=>t.add(r.text,r)),t}function Qve(e,t){Re(e)&&l7e(e)&&t(e),e.forEachChild(r=>Qve(r,t))}function l7e(e){let{parent:t}=e;switch(t.kind){case 208:return t.name!==e;case 205:return t.propertyName!==e;case 273:return t.propertyName!==e;default:return!0}}function Zve(e,t,r,i){return D.createFunctionDeclaration(Qi(t,oE(r.modifiers)),cc(r.asteriskToken),e,oE(r.typeParameters),oE(r.parameters),cc(r.type),D.converters.convertToFunctionBlock(Y$(r.body,i)))}function u7e(e,t,r,i){return D.createClassDeclaration(Qi(t,oE(r.modifiers)),e,oE(r.typeParameters),oE(r.heritageClauses),Y$(r.members,i))}function ebe(e,t,r,i){return t==="default"?Xg(D.createIdentifier(e),void 0,r,i):Xg(void 0,[tbe(t,e)],r,i)}function tbe(e,t){return D.createImportSpecifier(!1,e!==void 0&&e!==t?D.createIdentifier(e):void 0,D.createIdentifier(t))}function H5(e,t,r){return D.createVariableStatement(e,D.createVariableDeclarationList([D.createVariableDeclaration(t,void 0,void 0,r)],2))}function $$(e,t){return D.createExportDeclaration(void 0,!1,e&&D.createNamedExports(e),t===void 0?void 0:D.createStringLiteral(t))}function Q2(e,t){return{newImports:e,useSitesToUnqualify:t}}var d7e=gt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";Fr(),Qa(),za({errorCodes:[_.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=nr.ChangeTracker.with(e,s=>{if(XFe(t,r.getTypeChecker(),s,Do(r.getCompilerOptions()),J_(t,i)))for(let f of r.getSourceFiles())qFe(f,t,s,J_(f,i))});return[K_("convertToEsModule",o,_.Convert_to_ES_module)]}})}});function nbe(e,t){let r=jn(Vi(e,t),Yu);return L.assert(!!r,"Expected position to be owned by a qualified name."),Re(r.left)?r:void 0}function rbe(e,t,r){let i=r.right.text,o=D.createIndexedAccessTypeNode(D.createTypeReferenceNode(r.left,void 0),D.createLiteralTypeNode(D.createStringLiteral(i)));e.replaceNode(t,r,o)}var W5,Q$,f7e=gt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";Fr(),Qa(),W5="correctQualifiedNameToIndexedAccessType",Q$=[_.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],za({errorCodes:Q$,getCodeActions(e){let t=nbe(e.sourceFile,e.span.start);if(!t)return;let r=nr.ChangeTracker.with(e,o=>rbe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[Ma(W5,r,[_.Rewrite_as_the_indexed_access_type_0,i],W5,_.Rewrite_all_as_indexed_access_types)]},fixIds:[W5],getAllCodeActions:e=>ns(e,Q$,(t,r)=>{let i=nbe(r.file,r.start);i&&rbe(t,r.file,i)})})}});function ibe(e,t){return zr(Vi(t,e.start).parent,Mu)}function abe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=_7e(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,154,i);else{let l=D.updateExportDeclaration(o,o.modifiers,!1,D.updateNamedExports(i,Pr(i.elements,d=>!ya(s,d))),o.moduleSpecifier,void 0),f=D.createExportDeclaration(void 0,!0,D.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:nr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,f)}}function _7e(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=_ge(Du(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Pr(r.elements,o=>{var s;return o===e||((s=fge(o,i))==null?void 0:s.code)===z5[0]})}var z5,J5,p7e=gt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";Fr(),Qa(),z5=[_.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],J5="convertToTypeOnlyExport",za({errorCodes:z5,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>abe(i,ibe(t.span,t.sourceFile),t));if(r.length)return[Ma(J5,r,_.Convert_to_type_only_export,J5,_.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[J5],getAllCodeActions:function(t){let r=new Map;return ns(t,z5,(i,o)=>{let s=ibe(o,t.sourceFile);s&&V_(r,zo(s.parent.parent))&&abe(i,s,t)})}})}});function obe(e,t){let{parent:r}=Vi(e,t);return $u(r)||gl(r)&&r.importClause?r:void 0}function sbe(e,t,r){if($u(r))e.replaceNode(t,r,D.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let i=r.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,r,[D.createImportDeclaration(oE(r.modifiers,!0),D.createImportClause(!0,cc(i.name,!0),void 0),cc(r.moduleSpecifier,!0),cc(r.assertClause,!0)),D.createImportDeclaration(oE(r.modifiers,!0),D.createImportClause(!0,void 0,cc(i.namedBindings,!0)),cc(r.moduleSpecifier,!0),cc(r.assertClause,!0))]);else{let o=D.updateImportDeclaration(r,r.modifiers,D.updateImportClause(i,!0,i.name,i.namedBindings),r.moduleSpecifier,r.assertClause);e.replaceNode(t,r,o)}}}var Z$,K5,m7e=gt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";Fr(),Qa(),Z$=[_.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,_._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],K5="convertToTypeOnlyImport",za({errorCodes:Z$,getCodeActions:function(t){let r=obe(t.sourceFile,t.span.start);if(r){let i=nr.ChangeTracker.with(t,o=>sbe(o,t.sourceFile,r));return[Ma(K5,i,_.Convert_to_type_only_import,K5,_.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]}},fixIds:[K5],getAllCodeActions:function(t){return ns(t,Z$,(r,i)=>{let o=obe(i.file,i.start);o&&sbe(r,i.file,o)})}})}});function cbe(e,t){let r=Vi(e,t);if(Re(r)){let i=Ga(r.parent.parent,$d),o=r.getText(e);return{container:Ga(i.parent,Rd),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function lbe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,D.createMappedTypeNode(void 0,D.createTypeParameterDeclaration(void 0,s,D.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var q5,eQ,h7e=gt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";Fr(),Qa(),q5="convertLiteralTypeToMappedType",eQ=[_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],za({errorCodes:eQ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=cbe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,f=nr.ChangeTracker.with(t,d=>lbe(d,r,o));return[Ma(q5,f,[_.Convert_0_to_1_in_0,l,s],q5,_.Convert_all_type_literals_to_mapped_type)]},fixIds:[q5],getAllCodeActions:e=>ns(e,eQ,(t,r)=>{let i=cbe(r.file,r.start);i&&lbe(t,r.file,i)})})}});function ube(e,t){return L.checkDefined(Zc(Vi(e,t)),"There should be a containing class")}function dbe(e){return!e.valueDeclaration||!(uu(e.valueDeclaration)&8)}function fbe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),f=g7e(i,l),d=l.getTypeAtLocation(t),m=l.getPropertiesOfType(d).filter(g8(dbe,C=>!f.has(C.escapedName))),v=l.getTypeAtLocation(i),S=wr(i.members,C=>Ec(C));v.getNumberIndexType()||A(d,1),v.getStringIndexType()||A(d,0);let x=s1(r,e.program,s,e.host);oZ(i,m,r,e,s,x,C=>w(r,i,C)),x.writeFixes(o);function A(C,P){let F=l.getIndexInfoOfType(C,P);F&&w(r,i,l.indexInfoToIndexSignatureDeclaration(F,i,void 0,sx(e)))}function w(C,P,F){S?o.insertNodeAfter(C,S,F):o.insertMemberAtStart(C,P,F)}}function g7e(e,t){let r=hp(e);if(!r)return Ua();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return Ua(o.filter(dbe))}var tQ,X5,y7e=gt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";Fr(),Qa(),tQ=[_.Class_0_incorrectly_implements_interface_1.code,_.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],X5="fixClassIncorrectlyImplementsInterface",za({errorCodes:tQ,getCodeActions(e){let{sourceFile:t,span:r}=e,i=ube(t,r.start);return Zi(JA(i),o=>{let s=nr.ChangeTracker.with(e,l=>fbe(e,o,t,i,l,e.preferences));return s.length===0?void 0:Ma(X5,s,[_.Implement_interface_0,o.getText(t)],X5,_.Implement_all_unimplemented_interfaces)})},fixIds:[X5],getAllCodeActions(e){let t=new Map;return ns(e,tQ,(r,i)=>{let o=ube(i.file,i.start);if(V_(t,zo(o)))for(let s of JA(o))fbe(e,s,i.file,o,r,e.preferences)})}})}});function s1(e,t,r,i,o){return _be(e,t,!1,r,i,o)}function _be(e,t,r,i,o,s){let l=t.getCompilerOptions(),f=[],d=[],g=new Map,m=new Map;return{addImportFromDiagnostic:v,addImportFromExportedSymbol:S,writeFixes:A,hasFixes:w};function v(C,P){let F=vbe(P,C.code,C.start,r);!F||!F.length||x(Vo(F))}function S(C,P){let F=L.checkDefined(C.parent),B=j7(C,Do(l)),q=t.getTypeChecker(),W=q.getMergedSymbol(wd(C,q)),Y=hbe(e,W,B,F,!1,t,o,i,s),R=$5(e,t),ie=pbe(e,L.checkDefined(Y),t,void 0,!!P,R,o,i);ie&&x({fix:ie,symbolName:B,errorIdentifierText:void 0})}function x(C){var P,F;let{fix:B,symbolName:q}=C;switch(B.kind){case 0:f.push(B);break;case 1:d.push(B);break;case 2:{let{importClauseOrBindingPattern:ie,importKind:$,addAsTypeOnly:fe}=B,Z=String(zo(ie)),U=g.get(Z);if(U||g.set(Z,U={importClauseOrBindingPattern:ie,defaultImport:void 0,namedImports:new Map}),$===0){let re=U?.namedImports.get(q);U.namedImports.set(q,W(re,fe))}else L.assert(U.defaultImport===void 0||U.defaultImport.name===q,"(Add to Existing) Default import should be missing or match symbolName"),U.defaultImport={name:q,addAsTypeOnly:W((P=U.defaultImport)==null?void 0:P.addAsTypeOnly,fe)};break}case 3:{let{moduleSpecifier:ie,importKind:$,useRequire:fe,addAsTypeOnly:Z}=B,U=Y(ie,$,fe,Z);switch(L.assert(U.useRequire===fe,"(Add new) Tried to add an `import` and a `require` for the same module"),$){case 1:L.assert(U.defaultImport===void 0||U.defaultImport.name===q,"(Add new) Default import should be missing or match symbolName"),U.defaultImport={name:q,addAsTypeOnly:W((F=U.defaultImport)==null?void 0:F.addAsTypeOnly,Z)};break;case 0:let re=(U.namedImports||(U.namedImports=new Map)).get(q);U.namedImports.set(q,W(re,Z));break;case 3:case 2:L.assert(U.namespaceLikeImport===void 0||U.namespaceLikeImport.name===q,"Namespacelike import shoudl be missing or match symbolName"),U.namespaceLikeImport={importKind:$,name:q,addAsTypeOnly:Z};break}break}case 4:break;default:L.assertNever(B,`fix wasn't never - got kind ${B.kind}`)}function W(ie,$){return Math.max(ie??0,$)}function Y(ie,$,fe,Z){let U=R(ie,!0),re=R(ie,!1),le=m.get(U),_e=m.get(re),ge={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:fe};return $===1&&Z===2?le||(m.set(U,ge),ge):Z===1&&(le||_e)?le||_e:_e||(m.set(re,ge),ge)}function R(ie,$){return`${$?1:0}|${ie}`}}function A(C){let P=J_(e,i);for(let B of f)oQ(C,e,B);for(let B of d)Cbe(C,e,B,P);g.forEach(({importClauseOrBindingPattern:B,defaultImport:q,namedImports:W})=>{Abe(C,e,B,q,lo(W.entries(),([Y,R])=>({addAsTypeOnly:R,name:Y})),l,i)});let F;m.forEach(({useRequire:B,defaultImport:q,namedImports:W,namespaceLikeImport:Y},R)=>{let ie=R.slice(2),fe=(B?kbe:Lbe)(ie,P,q,W&&lo(W.entries(),([Z,U])=>({addAsTypeOnly:U,name:Z})),Y,l);F=_A(F,fe)}),F&&L7(C,e,F,!0,i)}function w(){return f.length>0||d.length>0||g.size>0||m.size>0}}function v7e(e,t,r,i){let o=uk(e,i,r),s=gbe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(f,d,g,m){let{fixes:v,computedWithoutCacheCount:S}=Y5(f,d,g,!1,t,e,r,i,s,m),x=bbe(v,e,t,o,r);return x&&{...x,computedWithoutCacheCount:S}}}function b7e(e,t,r,i,o,s,l,f,d,g,m,v){let S=f.getCompilerOptions(),x;r?(x=YN(i,l,f,m,v).get(i.path,r),L.assertIsDefined(x,"Some exportInfo should match the specified exportMapKey")):(x=cj(u_(t.name))?[T7e(e,o,t,f,l)]:hbe(i,e,o,t,s,f,l,m,v),L.assertIsDefined(x,"Some exportInfo should match the specified symbol / moduleSymbol"));let A=$5(i,f),w=TS(Vi(i,g)),C=L.checkDefined(pbe(i,x,f,g,w,A,l,m));return{moduleSpecifier:C.moduleSpecifier,codeAction:mbe(aQ({host:l,formatContext:d,preferences:m},i,o,C,!1,S,m))}}function E7e(e,t,r,i,o,s){let l=r.getCompilerOptions(),f=BU(iQ(e,r.getTypeChecker(),t,l)),d=Sbe(e,t,f,r),g=f!==t.text;return d&&mbe(aQ({host:i,formatContext:o,preferences:s},e,f,d,g,l,s))}function pbe(e,t,r,i,o,s,l,f){let d=uk(e,f,l);return bbe(Y5(t,i,o,s,r,e,l,f).fixes,e,r,d,l)}function mbe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function hbe(e,t,r,i,o,s,l,f,d){let g=ybe(s,l);return YN(e,l,s,f,d).search(e.path,o,m=>m===r,m=>{if(wd(m[0].symbol,g(m[0].isFromPackageJson))===t&&m.some(v=>v.moduleSymbol===i||v.symbol.parent===i))return m})}function T7e(e,t,r,i,o){var s,l;let f=i.getCompilerOptions(),d=m(i.getTypeChecker(),!1);if(d)return d;let g=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return L.checkDefined(g&&m(g,!0),"Could not find symbol in specified module for code actions");function m(v,S){let x=Y7(r,v,f);if(x&&wd(x.symbol,v)===e)return{symbol:x.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:x.exportKind,targetFlags:wd(e,v).flags,isFromPackageJson:S};let A=v.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&wd(A,v)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:wd(e,v).flags,isFromPackageJson:S}}}function Y5(e,t,r,i,o,s,l,f,d=gbe(o.getTypeChecker(),s,o.getCompilerOptions()),g){let m=o.getTypeChecker(),v=Uo(e,d.getImportsForExportInfo),S=t!==void 0&&S7e(v,t),x=A7e(v,r,m,o.getCompilerOptions());if(x)return{computedWithoutCacheCount:0,fixes:[...S?[S]:Je,x]};let{fixes:A,computedWithoutCacheCount:w=0}=I7e(e,v,o,s,t,r,i,l,f,g);return{computedWithoutCacheCount:w,fixes:[...S?[S]:Je,...A]}}function S7e(e,t){return ks(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=x7e(r),l=s&&((o=iR(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function x7e(e){var t,r,i;switch(e.kind){case 257:return(t=zr(e.name,Re))==null?void 0:t.text;case 268:return e.name.text;case 269:return(i=zr((r=e.importClause)==null?void 0:r.namedBindings,nv))==null?void 0:i.name.text;default:return L.assertNever(e)}}function nQ(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||u4(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function A7e(e,t,r,i){return ks(e,({declaration:o,importKind:s,symbol:l,targetFlags:f})=>{if(s===3||s===2||o.kind===268)return;if(o.kind===257)return(s===0||s===1)&&o.name.kind===203?{kind:2,importClauseOrBindingPattern:o.name,importKind:s,moduleSpecifier:o.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:d}=o;if(!d||!es(o.moduleSpecifier))return;let{name:g,namedBindings:m}=d;if(d.isTypeOnly&&!(s===0&&m))return;let v=nQ(t,!1,l,f,r,i);if(!(s===1&&(g||v===2&&m))&&!(s===0&&m?.kind===271))return{kind:2,importClauseOrBindingPattern:d,importKind:s,moduleSpecifier:o.moduleSpecifier.text,addAsTypeOnly:v}})}function gbe(e,t,r){let i;for(let o of t.imports){let s=aR(o);if(kH(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=Nf())).add($a(l),s.parent)}else if(s.kind===269||s.kind===268){let l=e.getSymbolAtLocation(o);l&&(i||(i=Nf())).add($a(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:f})=>{if(!(l&111551)&&Cu(t))return Je;let d=i?.get($a(o));if(!d)return Je;let g=rQ(t,s,r);return d.map(m=>({declaration:m,importKind:g,symbol:f,targetFlags:l}))}}}function $5(e,t){if(!Cu(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return Rl(r)<5;for(let i of t.getSourceFiles())if(!(i===e||!Cu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function ybe(e,t){return Jp(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function C7e(e,t,r,i,o,s,l,f,d){let g=Cu(t),m=e.getCompilerOptions(),v=$S(e,l),S=ybe(e,l),x=$s(m),A=T7(x),w=d?F=>({moduleSpecifiers:Q0.tryGetModuleSpecifiersFromCache(F,t,v,f),computedWithoutCache:!1}):(F,B)=>Q0.getModuleSpecifiersWithCacheInfo(F,B,m,t,v,f),C=0,P=Uo(s,(F,B)=>{let q=S(F.isFromPackageJson),{computedWithoutCache:W,moduleSpecifiers:Y}=w(F.moduleSymbol,q),R=!!(F.targetFlags&111551),ie=nQ(i,!0,F.symbol,F.targetFlags,q,m);return C+=W?1:0,Zi(Y,$=>{var fe;if(A&&JS($))return;if(!R&&g&&r!==void 0)return{kind:1,moduleSpecifier:$,usagePosition:r,exportInfo:F,isReExport:B>0};let Z=rQ(t,F.exportKind,m),U;if(r!==void 0&&Z===3&&F.exportKind===0){let re=q.resolveExternalModuleSymbol(F.moduleSymbol),le;re!==F.moduleSymbol&&(le=(fe=$7(re,q,m))==null?void 0:fe.name),le||(le=sQ(F.moduleSymbol,Do(m),!1)),U={namespacePrefix:le,usagePosition:r}}return{kind:3,moduleSpecifier:$,importKind:Z,useRequire:o,addAsTypeOnly:ie,exportInfo:F,isReExport:B>0,qualification:U}})});return{computedWithoutCacheCount:C,fixes:P}}function I7e(e,t,r,i,o,s,l,f,d,g){let m=ks(t,v=>L7e(v,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:C7e(r,i,o,s,l,e,f,d,g)}function L7e({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,f){var d;let g=(d=iR(e))==null?void 0:d.text;if(g){let m=s?4:nQ(o,!0,r,i,l,f);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:m,useRequire:s}}}function vbe(e,t,r,i){let o=Vi(e.sourceFile,r),s;if(t===_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=R7e(e,o);else if(Re(o))if(t===_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let f=BU(iQ(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),d=Sbe(e.sourceFile,o,f,e.program);return d&&[{fix:d,symbolName:f,errorIdentifierText:o.text}]}else s=P7e(e,o,i);else return;let l=uk(e.sourceFile,e.preferences,e.host);return s&&k7e(s,e.sourceFile,e.program,l,e.host)}function k7e(e,t,r,i,o){let s=l=>Ts(l,o.getCurrentDirectory(),lb(o));return XC(e,(l,f)=>g0(!!l.isJsxNamespaceFix,!!f.isJsxNamespaceFix)||Es(l.fix.kind,f.fix.kind)||Ebe(l.fix,f.fix,t,r,i.allowsImportingSpecifier,s))}function bbe(e,t,r,i,o){if(vt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>Ebe(l,s,t,r,i.allowsImportingSpecifier,f=>Ts(f,o.getCurrentDirectory(),lb(o)))===-1?l:s)}function Ebe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?g0(o(t.moduleSpecifier),o(e.moduleSpecifier))||w7e(e.moduleSpecifier,t.moduleSpecifier,r,i)||g0(Tbe(e,r,i.getCompilerOptions(),s),Tbe(t,r,i.getCompilerOptions(),s))||BR(e.moduleSpecifier,t.moduleSpecifier):0}function Tbe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&$s(r)===2&&D7e(e.exportInfo.moduleFileName)){let s=i(ni(e.exportInfo.moduleFileName));return na(t.path,s)}return!1}function D7e(e){return Hl(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function w7e(e,t,r,i){return na(e,"node:")&&!na(t,"node:")?W7(r,i)?-1:1:na(t,"node:")&&!na(e,"node:")?W7(r,i)?1:-1:0}function R7e({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=O7e(o,s);if(!l)return;let f=s.getAliasedSymbol(l),d=l.name,g=[{symbol:l,moduleSymbol:f,moduleFileName:void 0,exportKind:3,targetFlags:f.flags,isFromPackageJson:!1}],m=$5(e,t);return Y5(g,void 0,!1,m,t,e,r,i).fixes.map(S=>{var x;return{fix:S,symbolName:d,errorIdentifierText:(x=zr(o,Re))==null?void 0:x.text}})}function O7e(e,t){let r=Re(e)?t.getSymbolAtLocation(e):void 0;if(o4(r))return r;let{parent:i}=e;if(Au(i)&&i.tagName===e||US(i)){let o=t.resolveName(t.getJsxNamespace(i),Au(i)?e:i,111551,!1);if(o4(o))return o}}function rQ(e,t,r,i){if(r.verbatimModuleSyntax&&(Rl(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return G7e(e,r,!!i);case 3:return N7e(e,r,!!i);default:return L.assertNever(t)}}function N7e(e,t,r){if(wT(t))return 1;let i=Rl(t);switch(i){case 2:case 1:case 3:return Yn(e)&&(Lc(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return L.assertNever(i,`Unexpected moduleKind ${i}`)}}function P7e({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let f=t.getTypeChecker(),d=t.getCompilerOptions();return Uo(iQ(e,f,s,d),g=>{if(g==="default")return;let m=TS(s),v=$5(e,t),S=F7e(g,DI(s),ZT(s),r,e,t,l,i,o);return lo(OU(S.values(),x=>Y5(x,s.getStart(e),m,v,t,e,i,o).fixes),x=>({fix:x,symbolName:g,errorIdentifierText:s.text,isJsxNamespaceFix:g!==s.text}))})}function Sbe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Gn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function iQ(e,t,r,i){let o=r.parent;if((Au(o)||GS(o))&&o.tagName===r&&wY(i.jsx)){let s=t.getJsxNamespace(e);if(M7e(s,r,t))return!GI(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function M7e(e,t,r){if(GI(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||vt(i.declarations,I0)&&!(i.flags&111551)}function F7e(e,t,r,i,o,s,l,f,d){var g;let m=Nf(),v=uk(o,d,f),S=(g=f.getModuleSpecifierCache)==null?void 0:g.call(f),x=Jp(w=>$S(w?f.getPackageJsonAutoImportProvider():s,f));function A(w,C,P,F,B,q){let W=x(q);if(C&&PY(B,o,C,d,v,W,S)||!C&&v.allowsImportingAmbientModule(w,W)){let Y=B.getTypeChecker();m.add(tge(P,Y).toString(),{symbol:P,moduleSymbol:w,moduleFileName:C?.fileName,exportKind:F,targetFlags:wd(P,Y).flags,isFromPackageJson:q})}}return MY(s,f,d,l,(w,C,P,F)=>{let B=P.getTypeChecker();i.throwIfCancellationRequested();let q=P.getCompilerOptions(),W=Y7(w,B,q);W&&(W.name===e||sQ(w,Do(q),t)===e)&&wbe(W.resolvedSymbol,r)&&A(w,C,W.symbol,W.exportKind,P,F);let Y=B.tryGetMemberInModuleExportsAndProperties(e,w);Y&&wbe(Y,r)&&A(w,C,Y,0,P,F)}),m}function G7e(e,t,r){let i=wT(t),o=Yn(e);if(!o&&Rl(t)>=5)return i?1:2;if(o)return Lc(e)||r?i?1:2:3;for(let s of e.statements)if(Nl(s)&&!rc(s.moduleReference))return 3;return i?1:3}function aQ(e,t,r,i,o,s,l){let f,d=nr.ChangeTracker.with(e,g=>{f=B7e(g,t,r,i,o,s,l)});return Ma(lQ,d,f,uQ,_.Add_all_missing_imports)}function B7e(e,t,r,i,o,s,l){let f=J_(t,l);switch(i.kind){case 0:return oQ(e,t,i),[_.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return Cbe(e,t,i,f),[_.Change_0_to_1,r,Ibe(i.moduleSpecifier,f)+r];case 2:{let{importClauseOrBindingPattern:d,importKind:g,addAsTypeOnly:m,moduleSpecifier:v}=i;Abe(e,t,d,g===1?{name:r,addAsTypeOnly:m}:void 0,g===0?[{name:r,addAsTypeOnly:m}]:Je,s,l);let S=u_(v);return o?[_.Import_0_from_1,r,S]:[_.Update_import_from_0,S]}case 3:{let{importKind:d,moduleSpecifier:g,addAsTypeOnly:m,useRequire:v,qualification:S}=i,x=v?kbe:Lbe,A=d===1?{name:r,addAsTypeOnly:m}:void 0,w=d===0?[{name:r,addAsTypeOnly:m}]:void 0,C=d===2||d===3?{importKind:d,name:S?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return L7(e,t,x(g,f,A,w,C,s),!0,l),S&&oQ(e,t,S),o?[_.Import_0_from_1,r,g]:[_.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:d}=i,g=U7e(e,d,s,t,l);return g.kind===273?[_.Remove_type_from_import_of_0_from_1,r,xbe(g.parent.parent)]:[_.Remove_type_from_import_declaration_from_0,xbe(g)]}default:return L.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function xbe(e){var t,r;return e.kind===268?((r=zr((t=zr(e.moduleReference,um))==null?void 0:t.expression,es))==null?void 0:r.text)||e.moduleReference.getText():Ga(e.parent.moduleSpecifier,yo).text}function U7e(e,t,r,i,o){let s=u4(r);switch(t.kind){case 273:if(t.isTypeOnly){let f=b_.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&f){e.delete(i,t);let d=D.updateImportSpecifier(t,!1,t.propertyName,t.name),g=b_.getOrganizeImportsComparer(o,f===2),m=b_.getImportSpecifierInsertionIndex(t.parent.elements,d,g);e.insertImportSpecifierAtIndex(i,d,t.parent,m)}else e.deleteRange(i,t.getFirstToken());return t}else return L.assert(t.parent.parent.isTypeOnly),l(t.parent.parent),t.parent.parent;case 270:return l(t),t;case 271:return l(t.parent),t.parent;case 268:return e.deleteRange(i,t.getChildAt(1)),t;default:L.failBadSyntaxKind(t)}function l(f){if(e.delete(i,cY(f,i)),s){let d=zr(f.namedBindings,jg);if(d&&d.elements.length>1){b_.detectImportSpecifierSorting(d.elements,o)&&t.kind===273&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(let g of d.elements)g!==t&&!g.isTypeOnly&&e.insertModifierBefore(i,154,g)}}}}function Abe(e,t,r,i,o,s,l){var f;if(r.kind===203){i&&v(r,i.name,"default");for(let S of o)v(r,S.name,void 0);return}let d=r.isTypeOnly&&vt([i,...o],S=>S?.addAsTypeOnly===4),g=r.namedBindings&&((f=zr(r.namedBindings,jg))==null?void 0:f.elements),m=d&&u4(s);if(i&&(L.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),D.createIdentifier(i.name),{suffix:", "})),o.length){let S;if(typeof l.organizeImportsIgnoreCase=="boolean")S=l.organizeImportsIgnoreCase;else if(g){let C=b_.detectImportSpecifierSorting(g,l);C!==3&&(S=C===2)}S===void 0&&(S=b_.detectSorting(t,l)===2);let x=b_.getOrganizeImportsComparer(l,S),A=Ag(o.map(C=>D.createImportSpecifier((!r.isTypeOnly||d)&&aP(C),void 0,D.createIdentifier(C.name))),(C,P)=>b_.compareImportOrExportSpecifiers(C,P,x)),w=g?.length&&b_.detectImportSpecifierSorting(g,l);if(w&&!(S&&w===1))for(let C of A){let P=m&&!C.isTypeOnly?0:b_.getImportSpecifierInsertionIndex(g,C,x);e.insertImportSpecifierAtIndex(t,C,r.namedBindings,P)}else if(g?.length)for(let C of A)e.insertNodeInListAfter(t,To(g),C,g);else if(A.length){let C=D.createNamedImports(A);r.namedBindings?e.replaceNode(t,r.namedBindings,C):e.insertNodeAfter(t,L.checkDefined(r.name,"Import clause must have either named imports or a default import"),C)}}if(d&&(e.delete(t,cY(r,t)),m&&g))for(let S of g)e.insertModifierBefore(t,154,S);function v(S,x,A){let w=D.createBindingElement(void 0,A,x);S.elements.length?e.insertNodeInListAfter(t,To(S.elements),w):e.replaceNode(t,S,D.createObjectBindingPattern([w]))}}function oQ(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function Cbe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,Ibe(r,o))}function Ibe(e,t){let r=Hhe(t);return`import(${r}${e}${r}).`}function aP({addAsTypeOnly:e}){return e===2}function Lbe(e,t,r,i,o,s){let l=S7(e,t),f;if(r!==void 0||i?.length){let d=(!r||aP(r))&&Ji(i,aP)||s.verbatimModuleSyntax&&r?.addAsTypeOnly!==4&&!vt(i,g=>g.addAsTypeOnly===4);f=_A(f,Xg(r&&D.createIdentifier(r.name),i?.map(({addAsTypeOnly:g,name:m})=>D.createImportSpecifier(!d&&g===2,void 0,D.createIdentifier(m))),e,t,d))}if(o){let d=o.importKind===3?D.createImportEqualsDeclaration(void 0,aP(o),D.createIdentifier(o.name),D.createExternalModuleReference(l)):D.createImportDeclaration(void 0,D.createImportClause(aP(o),void 0,D.createNamespaceImport(D.createIdentifier(o.name))),l,void 0);f=_A(f,d)}return L.checkDefined(f)}function kbe(e,t,r,i,o){let s=S7(e,t),l;if(r||i?.length){let f=i?.map(({name:g})=>D.createBindingElement(void 0,void 0,g))||[];r&&f.unshift(D.createBindingElement(void 0,"default",r.name));let d=Dbe(D.createObjectBindingPattern(f),s);l=_A(l,d)}if(o){let f=Dbe(o.name,s);l=_A(l,f)}return L.checkDefined(l)}function Dbe(e,t){return D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(typeof e=="string"?D.createIdentifier(e):e,void 0,void 0,D.createCallExpression(D.createIdentifier("require"),void 0,[t]))],2))}function wbe({declarations:e},t){return vt(e,r=>!!(LN(r)&t))}function sQ(e,t,r){return cQ(ld(u_(e.name)),t,r)}function cQ(e,t,r){let i=Hl(pA(e,"/index")),o="",s=!0,l=i.charCodeAt(0);Pm(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let f=1;f<i.length;f++){let d=i.charCodeAt(f),g=tb(d,t);if(g){let m=String.fromCharCode(d);s||(m=m.toUpperCase()),o+=m}s=g}return fS(o)?`_${o}`:o||"_"}var lQ,uQ,dQ,V7e=gt({"src/services/codefixes/importFixes.ts"(){"use strict";Fr(),Qa(),lQ="import",uQ="fixMissingImport",dQ=[_.Cannot_find_name_0.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_.Cannot_find_namespace_0.code,_._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],za({errorCodes:dQ,getCodeActions(e){let{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=vbe(e,t,o.start,!0);if(l)return l.map(({fix:f,symbolName:d,errorIdentifierText:g})=>aQ(e,i,d,f,d!==g,s.getCompilerOptions(),r))},fixIds:[uQ],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=_be(t,r,!0,i,o,s);return ax(e,dQ,f=>l.addImportFromDiagnostic(f,e)),ix(nr.ChangeTracker.with(e,l.writeFixes))}})}});function Rbe(e,t,r){let i=wr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=wr(i.relatedInformation,l=>l.code===_.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=_Z(o.file,il(o.start,o.length));if(s!==void 0&&(Re(s)&&_c(s.parent)&&(s=s.parent),_c(s))){if(EL(s.parent))return;let l=Vi(t,r.start),f=e.getTypeChecker();return{constraint:H7e(f,l)||j7e(o.messageText),declaration:s,token:l}}}function Obe(e,t,r,i,o,s){let{declaration:l,constraint:f}=s,d=t.getTypeChecker();if(Ta(f))e.insertText(o,l.name.end,` extends ${f}`);else{let g=Do(t.getCompilerOptions()),m=sx({program:t,host:i}),v=s1(o,t,r,i),S=N9(d,v,f,void 0,g,void 0,m);S&&(e.replaceNode(o,l,D.updateTypeParameterDeclaration(l,void 0,l.name,S,l.default)),v.writeFixes(e))}}function j7e(e){let[t,r]=sv(e,`
| `,0).match(/`extends (.*)`/)||[];return r}function H7e(e,t){return bi(t.parent)?e.getTypeArgumentConstraint(t.parent):(ot(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var Q5,fQ,W7e=gt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";Fr(),Qa(),Q5="addMissingConstraint",fQ=[_.Type_0_is_not_comparable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_.Property_0_is_incompatible_with_index_signature.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Type_0_does_not_satisfy_the_constraint_1.code],za({errorCodes:fQ,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=Rbe(i,t,r);if(l===void 0)return;let f=nr.ChangeTracker.with(e,d=>Obe(d,i,o,s,t,l));return[Ma(Q5,f,_.Add_extends_constraint,Q5,_.Add_extends_constraint_to_all_type_parameters)]},fixIds:[Q5],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return ix(nr.ChangeTracker.with(e,s=>{ax(e,fQ,l=>{let f=Rbe(t,l.file,il(l.start,l.length));if(f&&V_(o,zo(f.declaration)))return Obe(s,t,r,i,l.file,f)})}))}})}});function Nbe(e,t,r,i){switch(r){case _.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return z7e(e,t.sourceFile,i);case _.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return J7e(e,t.sourceFile,i);default:L.fail("Unexpected error code: "+r)}}function z7e(e,t,r){let i=Mbe(t,r);if(Cu(t)){e.addJSDocTags(t,i,[D.createJSDocOverrideTag(D.createIdentifier("override"))]);return}let o=i.modifiers||Je,s=wr(o,LS),l=wr(o,Rue),f=wr(o,v=>ZX(v.kind)),d=dA(o,du),g=l?l.end:s?s.end:f?f.end:d?xo(t.text,d.end):i.getStart(t),m=f||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,161,m)}function J7e(e,t,r){let i=Mbe(t,r);if(Cu(t)){e.filterJSDocTags(t,i,y8(g3));return}let o=wr(i.modifiers,Oue);L.assertIsDefined(o),e.deleteModifier(t,o)}function Pbe(e){switch(e.kind){case 173:case 169:case 171:case 174:case 175:return!0;case 166:return Ad(e,e.parent);default:return!1}}function Mbe(e,t){let r=Vi(e,t),i=jn(r,o=>Yr(o)?"quit":Pbe(o));return L.assert(i&&Pbe(i)),i}var _Q,Z2,yk,pQ,mQ,K7e=gt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";Fr(),Qa(),_Q="fixOverrideModifier",Z2="fixAddOverrideModifier",yk="fixRemoveOverrideModifier",pQ=[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],mQ={[_.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:Z2,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:Z2,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:yk,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_.Remove_override_modifier,fixId:yk,fixAllDescriptions:_.Remove_override_modifier},[_.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:Z2,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:Z2,fixAllDescriptions:_.Add_all_missing_override_modifiers},[_.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_.Add_override_modifier,fixId:Z2,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:yk,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers},[_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_.Remove_override_modifier,fixId:yk,fixAllDescriptions:_.Remove_all_unnecessary_override_modifiers}},za({errorCodes:pQ,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=mQ[r];if(!o)return Je;let{descriptions:s,fixId:l,fixAllDescriptions:f}=o,d=nr.ChangeTracker.with(t,g=>Nbe(g,t,r,i.start));return[D$(_Q,d,s,l,f)]},fixIds:[_Q,Z2,yk],getAllCodeActions:e=>ns(e,pQ,(t,r)=>{let{code:i,start:o}=r,s=mQ[i];!s||s.fixId!==e.fixId||Nbe(t,e,i,o)})})}});function Fbe(e,t,r,i){let o=J_(t,i),s=D.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,n6(r)?D.createElementAccessChain(r.expression,r.questionDotToken,s):D.createElementAccessExpression(r.expression,s))}function Gbe(e,t){return Ga(Vi(e,t).parent,br)}var Z5,hQ,q7e=gt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";Fr(),Qa(),Z5="fixNoPropertyAccessFromIndexSignature",hQ=[_.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],za({errorCodes:hQ,fixIds:[Z5],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=Gbe(t,r.start),s=nr.ChangeTracker.with(e,l=>Fbe(l,e.sourceFile,o,i));return[Ma(Z5,s,[_.Use_element_access_for_0,o.name.text],Z5,_.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>ns(e,hQ,(t,r)=>Fbe(t,r.file,Gbe(r.file,r.start),e.preferences))})}});function Bbe(e,t,r,i){let o=Vi(t,r);if(!H2(o))return;let s=Ku(o,!1,!1);if(!(!Jc(s)&&!ms(s))&&!Li(Ku(s,!1,!1))){let l=L.checkDefined(Yo(s,98,t)),{name:f}=s,d=L.checkDefined(s.body);return ms(s)?f&&js.Core.isSymbolReferencedInFile(f,i,t,d)?void 0:(e.delete(t,l),f&&e.delete(t,f),e.insertText(t,d.pos," =>"),[_.Convert_function_expression_0_to_arrow_function,f?f.text:X7]):(e.replaceNode(t,l,D.createToken(85)),e.insertText(t,f.end," = "),e.insertText(t,d.pos," =>"),[_.Convert_function_declaration_0_to_arrow_function,f.text])}}var e9,gQ,X7e=gt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";Fr(),Qa(),e9="fixImplicitThis",gQ=[_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],za({errorCodes:gQ,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=nr.ChangeTracker.with(t,f=>{s=Bbe(f,r,o.start,i.getTypeChecker())});return s?[Ma(e9,l,s,e9,_.Fix_all_implicit_this_errors)]:Je},fixIds:[e9],getAllCodeActions:e=>ns(e,gQ,(t,r)=>{Bbe(t,r.file,r.start,e.program.getTypeChecker())})})}});function Ube(e,t,r){var i;let o=Vi(e,t);if(Re(o)){let s=jn(o,gl);if(s===void 0)return;let l=yo(s.moduleSpecifier)?s.moduleSpecifier.text:void 0;if(l===void 0)return;let f=kA(e,l,void 0);if(f===void 0)return;let d=r.getSourceFile(f.resolvedFileName);if(d===void 0||dk(r,d))return;let g=d.symbol,m=(i=zr(g.valueDeclaration,Qp))==null?void 0:i.locals;if(m===void 0)return;let v=m.get(o.escapedText);if(v===void 0)return;let S=$7e(v);return S===void 0?void 0:{exportName:{node:o,isTypeOnly:o2(S)},node:S,moduleSourceFile:d,moduleSpecifier:l}}}function Y7e(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=t9(o,r.isTypeOnly);s?Vbe(e,t,o,s,[r]):WR(i)?e.insertExportModifier(o,i):jbe(e,t,o,[r])}function yQ(e,t,r,i,o){Fn(i)&&(o?Vbe(e,t,r,o,i):jbe(e,t,r,i))}function t9(e,t){let r=i=>Il(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return dA(e.statements,r)}function Vbe(e,t,r,i,o){let s=i.exportClause&&h_(i.exportClause)?i.exportClause.elements:D.createNodeArray([]),l=!i.isTypeOnly&&!!(d_(t.getCompilerOptions())||wr(s,f=>f.isTypeOnly));e.replaceNode(r,i,D.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,D.createNamedExports(D.createNodeArray([...s,...Hbe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function jbe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,D.createExportDeclaration(void 0,!1,D.createNamedExports(Hbe(i,d_(t.getCompilerOptions()))),void 0,void 0))}function Hbe(e,t){return D.createNodeArray(on(e,r=>D.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function $7e(e){if(e.valueDeclaration===void 0)return Sl(e.declarations);let t=e.valueDeclaration,r=wi(t)?zr(t.parent.parent,Bc):void 0;return r&&Fn(r.declarationList.declarations)===1?r:t}var n9,vQ,Q7e=gt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";Fr(),Qa(),n9="fixImportNonExportedMember",vQ=[_.Module_0_declares_1_locally_but_it_is_not_exported.code],za({errorCodes:vQ,fixIds:[n9],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=Ube(t,r.start,i);if(o===void 0)return;let s=nr.ChangeTracker.with(e,l=>Y7e(l,i,o));return[Ma(n9,s,[_.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],n9,_.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return ix(nr.ChangeTracker.with(e,r=>{let i=new Map;ax(e,vQ,o=>{let s=Ube(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:f,moduleSourceFile:d}=s;if(t9(d,l.isTypeOnly)===void 0&&WR(f))r.insertExportModifier(d,f);else{let g=i.get(d)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?g.typeOnlyExports.push(l):g.exports.push(l),i.set(d,g)}}),i.forEach((o,s)=>{let l=t9(s,!0);l&&l.isTypeOnly?(yQ(r,t,s,o.typeOnlyExports,l),yQ(r,t,s,o.exports,t9(s,!1))):yQ(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function Z7e(e,t){let r=Vi(e,t);return jn(r,i=>i.kind===199)}function e5e(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===187||i.kind===188||i.kind===193;)i.kind===187?o=!0:i.kind===188&&(s=!0),i=i.type;let l=D.updateNamedTupleMember(r,r.dotDotDotToken||(s?D.createToken(25):void 0),r.name,r.questionToken||(o?D.createToken(57):void 0),i);l!==r&&e.replaceNode(t,r,l)}var r9,Wbe,t5e=gt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";Fr(),Qa(),r9="fixIncorrectNamedTupleSyntax",Wbe=[_.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,_.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],za({errorCodes:Wbe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=Z7e(r,i.start),s=nr.ChangeTracker.with(t,l=>e5e(l,r,o));return[Ma(r9,s,_.Move_labeled_tuple_element_modifiers_to_labels,r9,_.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r9]})}});function zbe(e,t,r,i){let o=Vi(e,t),s=o.parent;if((i===_.No_overload_matches_this_call.code||i===_.Type_0_is_not_assignable_to_type_1.code)&&!Sp(s))return;let l=r.program.getTypeChecker(),f;if(br(s)&&s.name===o){L.assert(Ah(o),"Expected an identifier for spelling (property access)");let d=l.getTypeAtLocation(s.expression);s.flags&32&&(d=l.getNonNullableType(d)),f=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(ar(s)&&s.operatorToken.kind===101&&s.left===o&&pi(o)){let d=l.getTypeAtLocation(s.right);f=l.getSuggestedSymbolForNonexistentProperty(o,d)}else if(Yu(s)&&s.right===o){let d=l.getSymbolAtLocation(s.left);d&&d.flags&1536&&(f=l.getSuggestedSymbolForNonexistentModule(s.right,d))}else if($u(s)&&s.name===o){L.assertNode(o,Re,"Expected an identifier for spelling (import)");let d=jn(o,gl),g=r5e(e,r,d);g&&g.symbol&&(f=l.getSuggestedSymbolForNonexistentModule(o,g.symbol))}else if(Sp(s)&&s.name===o){L.assertNode(o,Re,"Expected an identifier for JSX attribute");let d=jn(o,Au),g=l.getContextualTypeForArgumentAtIndex(d,0);f=l.getSuggestedSymbolForNonexistentJSXAttribute(o,g)}else if(Mr(s,16384)&&_l(s)&&s.name===o){let d=jn(o,Yr),g=d?hp(d):void 0,m=g?l.getTypeAtLocation(g):void 0;m&&(f=l.getSuggestedSymbolForNonexistentClassMember(Qc(o),m))}else{let d=ZT(o),g=Qc(o);L.assert(g!==void 0,"name should be defined"),f=l.getSuggestedSymbolForNonexistentSymbol(o,g,n5e(d))}return f===void 0?void 0:{node:o,suggestedSymbol:f}}function Jbe(e,t,r,i,o){let s=fc(i);if(!i_(s,o)&&br(r.parent)){let l=i.valueDeclaration;l&&zl(l)&&pi(l.name)?e.replaceNode(t,r,D.createIdentifier(s)):e.replaceNode(t,r.parent,D.createElementAccessExpression(r.parent.expression,D.createStringLiteral(s)))}else e.replaceNode(t,r,D.createIdentifier(s))}function n5e(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function r5e(e,t,r){if(!r||!es(r.moduleSpecifier))return;let i=kA(e,r.moduleSpecifier.text,W_(e,r.moduleSpecifier));if(i)return t.program.getSourceFile(i.resolvedFileName)}var bQ,EQ,i5e=gt({"src/services/codefixes/fixSpelling.ts"(){"use strict";Fr(),Qa(),bQ="fixSpelling",EQ=[_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_.Cannot_find_name_0_Did_you_mean_1.code,_.Could_not_find_name_0_Did_you_mean_1.code,_.Cannot_find_namespace_0_Did_you_mean_1.code,_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_._0_has_no_exported_member_named_1_Did_you_mean_2.code,_.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_.No_overload_matches_this_call.code,_.Type_0_is_not_assignable_to_type_1.code],za({errorCodes:EQ,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=zbe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=Do(e.host.getCompilationSettings()),f=nr.ChangeTracker.with(e,d=>Jbe(d,t,o,s,l));return[Ma("spelling",f,[_.Change_spelling_to_0,fc(s)],bQ,_.Fix_all_detected_spelling_errors)]},fixIds:[bQ],getAllCodeActions:e=>ns(e,EQ,(t,r)=>{let i=zbe(r.file,r.start,e,r.code),o=Do(e.host.getCompilationSettings());i&&Jbe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function Kbe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=Ua([i]);return e.createAnonymousType(void 0,o,[],[],[])}function TQ(e,t,r,i){if(!t.body||!Va(t.body)||Fn(t.body.statements)!==1)return;let o=Vo(t.body.statements);if(Ol(o)&&SQ(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(J0(o)&&Ol(o.statement)){let s=D.createObjectLiteralExpression([D.createPropertyAssignment(o.label,o.statement.expression)]),l=Kbe(e,o.label,o.statement.expression);if(SQ(e,t,l,r,i))return xs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Va(o)&&Fn(o.statements)===1){let s=Vo(o.statements);if(J0(s)&&Ol(s.statement)){let l=D.createObjectLiteralExpression([D.createPropertyAssignment(s.label,s.statement.expression)]),f=Kbe(e,s.label,s.statement.expression);if(SQ(e,t,f,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function SQ(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){Mr(t,512)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,Ua(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function qbe(e,t,r,i){let o=Vi(t,r);if(!o.parent)return;let s=jn(o.parent,Ds);switch(i){case _.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!Od(s.type,o)?void 0:TQ(e,s,e.getTypeFromTypeNode(s.type),!1);case _.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!Pa(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s),f=e.getContextualTypeForArgumentAtIndex(s.parent,l);return f?TQ(e,s,f,!0):void 0;case _.Type_0_is_not_assignable_to_type_1.code:if(!Rh(o)||!PA(o.parent)&&!Sp(o.parent))return;let d=a5e(o.parent);return!d||!Ds(d)||!d.body?void 0:TQ(e,d,e.getTypeAtLocation(o.parent),!0)}}function a5e(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:return e.initializer;case 288:return e.initializer&&(AL(e.initializer)?e.initializer.expression:void 0);case 300:case 168:case 302:case 351:case 344:return}}function Xbe(e,t,r,i){pd(r);let o=P7(t);e.replaceNode(t,i,D.createReturnStatement(r),{leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function Ybe(e,t,r,i,o,s){let l=s||bY(i)?D.createParenthesizedExpression(i):i;pd(o),r1(o,l),e.replaceNode(t,r.body,l)}function $be(e,t,r,i){e.replaceNode(t,r.body,D.createParenthesizedExpression(i))}function o5e(e,t,r){let i=nr.ChangeTracker.with(e,o=>Xbe(o,e.sourceFile,t,r));return Ma(i9,i,_.Add_a_return_statement,a9,_.Add_all_missing_return_statement)}function s5e(e,t,r,i){let o=nr.ChangeTracker.with(e,s=>Ybe(s,e.sourceFile,t,r,i,!1));return Ma(i9,o,_.Remove_braces_from_arrow_function_body,o9,_.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function c5e(e,t,r){let i=nr.ChangeTracker.with(e,o=>$be(o,e.sourceFile,t,r));return Ma(i9,i,_.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,s9,_.Wrap_all_object_literal_with_parentheses)}var i9,a9,o9,s9,xQ,l5e=gt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";Fr(),Qa(),i9="returnValueCorrect",a9="fixAddReturnStatement",o9="fixRemoveBracesFromArrowFunctionBody",s9="fixWrapTheBlockWithParen",xQ=[_.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,_.Type_0_is_not_assignable_to_type_1.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],za({errorCodes:xQ,fixIds:[a9,o9,s9],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=qbe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?Sn([o5e(t,l.expression,l.statement)],xs(l.declaration)?s5e(t,l.declaration,l.expression,l.commentSource):void 0):[c5e(t,l.declaration,l.expression)]},getAllCodeActions:e=>ns(e,xQ,(t,r)=>{let i=qbe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case a9:Xbe(t,r.file,i.expression,i.statement);break;case o9:if(!xs(i.declaration))return;Ybe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case s9:if(!xs(i.declaration))return;$be(t,r.file,i.declaration,i.expression);break;default:L.fail(JSON.stringify(e.fixId))}})})}});function Qbe(e,t,r,i,o){var s;let l=Vi(e,t),f=l.parent;if(r===_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===18&&rs(f)&&Pa(f.parent)))return;let x=Yc(f.parent.arguments,P=>P===f);if(x<0)return;let A=i.getResolvedSignature(f.parent);if(!(A&&A.declaration&&A.parameters[x]))return;let w=A.parameters[x].valueDeclaration;if(!(w&&ha(w)&&Re(w.name)))return;let C=lo(i.getUnmatchedProperties(i.getTypeAtLocation(f),i.getParameterType(A,x),!1,!1));return Fn(C)?{kind:3,token:w.name,properties:C,parentDeclaration:f}:void 0}if(!Ah(l))return;if(Re(l)&&Jy(f)&&f.initializer&&rs(f.initializer)){let x=lo(i.getUnmatchedProperties(i.getTypeAtLocation(f.initializer),i.getTypeAtLocation(l),!1,!1));return Fn(x)?{kind:3,token:l,properties:x,parentDeclaration:f.initializer}:void 0}if(Re(l)&&Au(l.parent)){let x=Do(o.getCompilerOptions()),A=h5e(i,x,l.parent);return Fn(A)?{kind:4,token:l,attributes:A,parentDeclaration:l.parent}:void 0}if(Re(l)){let x=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(x&&Ur(x)&16){let A=Sl(i.getSignaturesOfType(x,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:l0e(l)}}if(Pa(f)&&f.expression===l)return{kind:2,token:l,call:f,sourceFile:e,modifierFlags:0,parentDeclaration:l0e(l)}}if(!br(f))return;let d=iY(i.getTypeAtLocation(f.expression)),g=d.symbol;if(!g||!g.declarations)return;if(Re(l)&&Pa(f.parent)){let x=wr(g.declarations,Tc),A=x?.getSourceFile();if(x&&A&&!dk(o,A))return{kind:2,token:l,call:f.parent,sourceFile:e,modifierFlags:1,parentDeclaration:x};let w=wr(g.declarations,Li);if(e.commonJsModuleIndicator)return;if(w&&!dk(o,w))return{kind:2,token:l,call:f.parent,sourceFile:w,modifierFlags:1,parentDeclaration:w}}let m=wr(g.declarations,Yr);if(!m&&pi(l))return;let v=m||wr(g.declarations,x=>ku(x)||Rd(x));if(v&&!dk(o,v.getSourceFile())){let x=!Rd(v)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(g);if(x&&(pi(l)||ku(v)))return;let A=v.getSourceFile(),w=Rd(v)?0:(x?32:0)|(DY(l.text)?8:0),C=Cu(A),P=zr(f.parent,Pa);return{kind:0,token:l,call:P,modifierFlags:w,parentDeclaration:v,declSourceFile:A,isJSFile:C}}let S=wr(g.declarations,hb);if(S&&!(d.flags&1056)&&!pi(l)&&!dk(o,S.getSourceFile()))return{kind:1,token:l,parentDeclaration:S}}function u5e(e,t){return t.isJSFile?aT(d5e(e,t)):f5e(e,t)}function d5e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(ku(t)||Rd(t))return;let s=nr.ChangeTracker.with(e,f=>Zbe(f,r,t,o,!!(i&32)));if(s.length===0)return;let l=i&32?_.Initialize_static_property_0:pi(o)?_.Declare_a_private_field_named_0:_.Initialize_property_0_in_the_constructor;return Ma(Yg,s,[l,o.text],Yg,_.Add_all_missing_members)}function Zbe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===228)return;let l=r.name.getText(),f=e0e(D.createIdentifier(l),s);e.insertNodeAfter(t,r,f)}else if(pi(i)){let l=D.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),f=r0e(r);f?e.insertNodeAfter(t,f,l):e.insertMemberAtStart(t,r,l)}else{let l=Vm(r);if(!l)return;let f=e0e(D.createThis(),s);e.insertNodeAtConstructorEnd(t,l,f)}}function e0e(e,t){return D.createExpressionStatement(D.createAssignment(D.createPropertyAccessExpression(e,t),c1()))}function f5e(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&32,f=t0e(e.program.getTypeChecker(),t,o),d=m=>nr.ChangeTracker.with(e,v=>n0e(v,r,t,s,f,m)),g=[Ma(Yg,d(i&32),[l?_.Declare_static_property_0:_.Declare_property_0,s],Yg,_.Add_all_missing_members)];return l||pi(o)||(i&8&&g.unshift(K_(Yg,d(8),[_.Declare_private_property_0,s])),g.push(_5e(e,r,t,o.text,f))),g}function t0e(e,t,r){let i;if(r.parent.parent.kind===223){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||D.createKeywordTypeNode(131)}function n0e(e,t,r,i,o,s){let l=s?D.createNodeArray(D.createModifiersFromModifierFlags(s)):void 0,f=Yr(r)?D.createPropertyDeclaration(l,i,void 0,o,void 0):D.createPropertySignature(void 0,i,void 0,o),d=r0e(r);d?e.insertNodeAfter(t,d,f):e.insertMemberAtStart(t,r,f)}function r0e(e){let t;for(let r of e.members){if(!Na(r))break;t=r}return t}function _5e(e,t,r,i,o){let s=D.createKeywordTypeNode(152),l=D.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),f=D.createIndexSignature(void 0,[l],o),d=nr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,r,f));return K_(Yg,d,[_.Add_index_signature_for_property_0,i])}function p5e(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0||pi(s))return;let f=s.text,d=m=>nr.ChangeTracker.with(e,v=>i0e(e,v,l,s,m,r,i)),g=[Ma(Yg,d(o&32),[o&32?_.Declare_static_method_0:_.Declare_method_0,f],Yg,_.Add_all_missing_members)];return o&8&&g.unshift(K_(Yg,d(8),[_.Declare_private_method_0,f])),g}function i0e(e,t,r,i,o,s,l){let f=s1(l,e.program,e.preferences,e.host),d=Yr(s)?171:170,g=sZ(d,e,f,r,i,o,s),m=g5e(s,r);m?t.insertNodeAfter(l,m,g):t.insertMemberAtStart(l,s,g),f.writeFixes(t)}function a0e(e,t,{token:r,parentDeclaration:i}){let o=vt(i.members,l=>{let f=t.getTypeAtLocation(l);return!!(f&&f.flags&402653316)}),s=D.createEnumMember(r,o?D.createStringLiteral(r.text):void 0);e.replaceNode(i.getSourceFile(),i,D.updateEnumDeclaration(i,i.modifiers,i.name,Qi(i.members,aT(s))),{leadingTriviaOption:nr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nr.TrailingTriviaOption.Exclude})}function o0e(e,t,r){let i=J_(t.sourceFile,t.preferences),o=s1(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?sZ(259,t,o,r.call,vr(r.token),r.modifierFlags,r.parentDeclaration):O9(259,t,i,r.signature,fP(_.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&L.fail("fixMissingFunctionDeclaration codefix got unexpected error."),j_(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function s0e(e,t,r){let i=s1(t.sourceFile,t.program,t.preferences,t.host),o=J_(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,f=vt(l.properties,GT),d=on(r.attributes,v=>{let S=c9(t,s,i,o,s.getTypeOfSymbol(v),r.parentDeclaration),x=D.createIdentifier(v.name),A=D.createJsxAttribute(x,D.createJsxExpression(void 0,S));return go(x,A),A}),g=D.createJsxAttributes(f?[...d,...l.properties]:[...l.properties,...d]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,g,m),i.writeFixes(e)}function c0e(e,t,r){let i=s1(t.sourceFile,t.program,t.preferences,t.host),o=J_(t.sourceFile,t.preferences),s=Do(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),f=on(r.properties,g=>{let m=c9(t,l,i,o,l.getTypeOfSymbol(g),r.parentDeclaration);return D.createPropertyAssignment(y5e(g,s,o,l),m)}),d={leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,D.createObjectLiteralExpression([...r.parentDeclaration.properties,...f],!0),d),i.writeFixes(e)}function c9(e,t,r,i,o,s){if(o.flags&3)return c1();if(o.flags&134217732)return D.createStringLiteral("",i===0);if(o.flags&8)return D.createNumericLiteral(0);if(o.flags&64)return D.createBigIntLiteral("0n");if(o.flags&16)return D.createFalse();if(o.flags&1056){let l=o.symbol.exports?u8(o.symbol.exports.values()):o.symbol,f=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return l===void 0||f===void 0?D.createNumericLiteral(0):D.createPropertyAccessExpression(f,t.symbolToString(l))}if(o.flags&256)return D.createNumericLiteral(o.value);if(o.flags&2048)return D.createBigIntLiteral(o.value);if(o.flags&128)return D.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?D.createFalse():D.createTrue();if(o.flags&65536)return D.createNull();if(o.flags&1048576){let l=ks(o.types,f=>c9(e,t,r,i,f,s));return l??c1()}if(t.isArrayLikeType(o))return D.createArrayLiteralExpression();if(m5e(o)){let l=on(t.getPropertiesOfType(o),f=>{let d=c9(e,t,r,i,t.getTypeOfSymbol(f),s);return D.createPropertyAssignment(f.name,d)});return D.createObjectLiteralExpression(l,!0)}if(Ur(o)&16){if(wr(o.symbol.declarations||Je,Kp(Jm,zm,Nc))===void 0)return c1();let f=t.getSignaturesOfType(o,0);if(f===void 0)return c1();let d=O9(215,e,i,f[0],fP(_.Function_not_implemented.message,i),void 0,void 0,void 0,s,r);return d??c1()}if(Ur(o)&1){let l=Nh(o.symbol);if(l===void 0||B0(l))return c1();let f=Vm(l);return f&&Fn(f.parameters)?c1():D.createNewExpression(D.createIdentifier(o.symbol.name),void 0,void 0)}return c1()}function c1(){return D.createIdentifier("undefined")}function m5e(e){return e.flags&524288&&(Ur(e)&128||e.symbol&&zr(Wp(e.symbol.declarations),Rd))}function h5e(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return Je;let o=i.getProperties();if(!Fn(o))return Je;let s=new Set;for(let l of r.attributes.properties)if(Sp(l)&&s.add(l.name.escapedText),GT(l)){let f=e.getTypeAtLocation(l.expression);for(let d of f.getProperties())s.add(d.escapedName)}return Pr(o,l=>i_(l.name,t,1)&&!(l.flags&16777216||ac(l)&48||s.has(l.escapedName)))}function g5e(e,t){if(Rd(e))return;let r=jn(t,i=>Nc(i)||Ec(i));return r&&r.parent===e?r:void 0}function y5e(e,t,r,i){if(Zp(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&ts(o))return o}return E4(e.name,t,r===0)}function l0e(e){if(jn(e,AL)){let t=jn(e.parent,j_);if(t)return t}return Gn(e)}var Yg,oP,sP,cP,AQ,v5e=gt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";Fr(),Qa(),Yg="fixMissingMember",oP="fixMissingProperties",sP="fixMissingAttributes",cP="fixMissingFunctionDeclaration",AQ=[_.Property_0_does_not_exist_on_type_1.code,_.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Cannot_find_name_0.code],za({errorCodes:AQ,getCodeActions(e){let t=e.program.getTypeChecker(),r=Qbe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=nr.ChangeTracker.with(e,o=>c0e(o,e,r));return[Ma(oP,i,_.Add_missing_properties,oP,_.Add_all_missing_properties)]}if(r.kind===4){let i=nr.ChangeTracker.with(e,o=>s0e(o,e,r));return[Ma(sP,i,_.Add_missing_attributes,sP,_.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=nr.ChangeTracker.with(e,o=>o0e(o,e,r));return[Ma(cP,i,[_.Add_missing_function_declaration_0,r.token.text],cP,_.Add_all_missing_function_declarations)]}if(r.kind===1){let i=nr.ChangeTracker.with(e,o=>a0e(o,e.program.getTypeChecker(),r));return[Ma(Yg,i,[_.Add_missing_enum_member_0,r.token.text],Yg,_.Add_all_missing_members)]}return Qi(p5e(e,r),u5e(e,r))}},fixIds:[Yg,cP,oP,sP],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return ix(nr.ChangeTracker.with(e,l=>{ax(e,AQ,f=>{let d=Qbe(f.file,f.start,f.code,i,e.program);if(!(!d||!V_(o,zo(d.parentDeclaration)+"#"+d.token.text))){if(r===cP&&(d.kind===2||d.kind===5))o0e(l,e,d);else if(r===oP&&d.kind===3)c0e(l,e,d);else if(r===sP&&d.kind===4)s0e(l,e,d);else if(d.kind===1&&a0e(l,i,d),d.kind===0){let{parentDeclaration:g,token:m}=d,v=VD(s,g,()=>[]);v.some(S=>S.token.text===m.text)||v.push(d)}}}),s.forEach((f,d)=>{let g=Rd(d)?void 0:mZ(d,i);for(let m of f){if(g?.some(P=>{let F=s.get(P);return!!F&&F.some(({token:B})=>B.text===m.token.text)}))continue;let{parentDeclaration:v,declSourceFile:S,modifierFlags:x,token:A,call:w,isJSFile:C}=m;if(w&&!pi(A))i0e(e,l,w,A,x&32,v,S);else if(C&&!ku(v)&&!Rd(v))Zbe(l,S,v,A,!!(x&32));else{let P=t0e(i,v,A);n0e(l,S,v,A.text,P,x&32)}}})}))}})}});function u0e(e,t,r){let i=Ga(b5e(t,r),Pa),o=D.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function b5e(e,t){let r=Vi(e,t.start),i=wl(t);for(;r.end<i;)r=r.parent;return r}var l9,CQ,E5e=gt({"src/services/codefixes/fixAddMissingNewOperator.ts"(){"use strict";Fr(),Qa(),l9="addMissingNewOperator",CQ=[_.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],za({errorCodes:CQ,getCodeActions(e){let{sourceFile:t,span:r}=e,i=nr.ChangeTracker.with(e,o=>u0e(o,t,r));return[Ma(l9,i,_.Add_missing_new_operator_to_call,l9,_.Add_missing_new_operator_to_all_calls)]},fixIds:[l9],getAllCodeActions:e=>ns(e,CQ,(t,r)=>u0e(t,e.sourceFile,r))})}});function d0e(e,t){return{type:"install package",file:e,packageName:t}}function f0e(e,t){let r=zr(Vi(e,t),yo);if(!r)return;let i=r.text,{packageName:o}=ZJ(i);return fl(o)?void 0:o}function _0e(e,t,r){var i;return r===IQ?QT.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?rF(e):void 0}var p0e,u9,IQ,LQ,T5e=gt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";Fr(),Qa(),p0e="fixCannotFindModule",u9="installTypesPackage",IQ=_.Cannot_find_module_0_or_its_corresponding_type_declarations.code,LQ=[IQ,_.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],za({errorCodes:LQ,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=f0e(i,o);if(s===void 0)return;let l=_0e(s,r,t.errorCode);return l===void 0?[]:[Ma(p0e,[],[_.Install_0,l],u9,_.Install_all_missing_types_packages,d0e(i.fileName,l))]},fixIds:[u9],getAllCodeActions:e=>ns(e,LQ,(t,r,i)=>{let o=f0e(r.file,r.start);if(o!==void 0)switch(e.fixId){case u9:{let s=_0e(o,e.host,r.code);s&&i.push(d0e(r.file.fileName,s));break}default:L.fail(`Bad fixId: ${e.fixId}`)}})})}});function m0e(e,t){let r=Vi(e,t);return Ga(r.parent,Yr)}function h0e(e,t,r,i,o){let s=hp(e),l=r.program.getTypeChecker(),f=l.getTypeAtLocation(s),d=l.getPropertiesOfType(f).filter(S5e),g=s1(t,r.program,o,r.host);oZ(e,d,t,r,o,g,m=>i.insertMemberAtStart(t,e,m)),g.writeFixes(i)}function S5e(e){let t=Yy(Vo(e.getDeclarations()));return!(t&8)&&!!(t&256)}var kQ,d9,x5e=gt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";Fr(),Qa(),kQ=[_.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],d9="fixClassDoesntImplementInheritedAbstractMember",za({errorCodes:kQ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=nr.ChangeTracker.with(t,s=>h0e(m0e(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[Ma(d9,o,_.Implement_inherited_abstract_class,d9,_.Implement_all_inherited_abstract_classes)]},fixIds:[d9],getAllCodeActions:function(t){let r=new Map;return ns(t,kQ,(i,o)=>{let s=m0e(o.file,o.start);V_(r,zo(s))&&h0e(s,t.sourceFile,t,i,t.preferences)})}})}});function g0e(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function y0e(e,t){let r=Vi(e,t);if(r.kind!==108)return;let i=Xd(r),o=v0e(i.body);return o&&!o.expression.arguments.some(s=>br(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function v0e(e){return Ol(e)&&OA(e.expression)?e:Ia(e)?void 0:pa(e,v0e)}var f9,DQ,A5e=gt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";Fr(),Qa(),f9="classSuperMustPrecedeThisAccess",DQ=[_.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],za({errorCodes:DQ,getCodeActions(e){let{sourceFile:t,span:r}=e,i=y0e(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=nr.ChangeTracker.with(e,f=>g0e(f,t,o,s));return[Ma(f9,l,_.Make_super_call_the_first_statement_in_the_constructor,f9,_.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[f9],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return ns(e,DQ,(i,o)=>{let s=y0e(o.file,o.start);if(!s)return;let{constructor:l,superCall:f}=s;V_(r,zo(l.parent))&&g0e(i,t,l,f)})}})}});function b0e(e,t){let r=Vi(e,t);return L.assert(Ec(r.parent),"token should be at the constructor declaration"),r.parent}function E0e(e,t,r){let i=D.createExpressionStatement(D.createCallExpression(D.createSuper(),void 0,Je));e.insertNodeAtConstructorStart(t,r,i)}var _9,wQ,C5e=gt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";Fr(),Qa(),_9="constructorForDerivedNeedSuperCall",wQ=[_.Constructors_for_derived_classes_must_contain_a_super_call.code],za({errorCodes:wQ,getCodeActions(e){let{sourceFile:t,span:r}=e,i=b0e(t,r.start),o=nr.ChangeTracker.with(e,s=>E0e(s,t,i));return[Ma(_9,o,_.Add_missing_super_call,_9,_.Add_all_missing_super_calls)]},fixIds:[_9],getAllCodeActions:e=>ns(e,wQ,(t,r)=>E0e(t,e.sourceFile,b0e(r.file,r.start)))})}});function T0e(e,t){dZ(e,t,"jsx",D.createStringLiteral("react"))}var RQ,OQ,I5e=gt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";Fr(),Qa(),RQ="fixEnableJsxFlag",OQ=[_.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],za({errorCodes:OQ,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=nr.ChangeTracker.with(t,o=>T0e(o,r));return[K_(RQ,i,_.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[RQ],getAllCodeActions:e=>ns(e,OQ,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&T0e(t,r)})})}});function S0e(e,t,r){let i=wr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=wr(i.relatedInformation,l=>l.code===_.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=_Z(o.file,il(o.start,o.length));if(s!==void 0&&ot(s)&&ar(s.parent))return{suggestion:L5e(o.messageText),expression:s.parent,arg:s}}function x0e(e,t,r,i){let o=D.createCallExpression(D.createPropertyAccessExpression(D.createIdentifier("Number"),D.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===37||s===35?D.createPrefixUnaryExpression(53,o):o)}function L5e(e){let[t,r]=sv(e,`
| `,0).match(/\'(.*)\'/)||[];return r}var p9,NQ,k5e=gt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";Fr(),Qa(),p9="fixNaNEquality",NQ=[_.This_condition_will_always_return_0.code],za({errorCodes:NQ,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=S0e(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:f}=o,d=nr.ChangeTracker.with(e,g=>x0e(g,t,f,l));return[Ma(p9,d,[_.Use_0,s],p9,_.Use_Number_isNaN_in_all_conditions)]},fixIds:[p9],getAllCodeActions:e=>ns(e,NQ,(t,r)=>{let i=S0e(e.program,r.file,il(r.start,r.length));i&&x0e(t,r.file,i.arg,i.expression)})})}}),D5e=gt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";Fr(),Qa(),za({errorCodes:[_.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,_.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=Rl(r);if(s>=5&&s<99){let g=nr.ChangeTracker.with(t,m=>{dZ(m,i,"module",D.createStringLiteral("esnext"))});o.push(K_("fixModuleOption",g,[_.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let f=Do(r);if(f<4||f>99){let g=nr.ChangeTracker.with(t,m=>{if(!LI(i))return;let S=[["target",D.createStringLiteral("es2017")]];s===1&&S.push(["module",D.createStringLiteral("commonjs")]),uZ(m,i,S)});o.push(K_("fixTargetOption",g,[_.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function A0e(e,t,r){e.replaceNode(t,r,D.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function C0e(e,t){return Ga(Vi(e,t).parent,xf)}var m9,PQ,w5e=gt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";Fr(),Qa(),m9="fixPropertyAssignment",PQ=[_.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],za({errorCodes:PQ,fixIds:[m9],getCodeActions(e){let{sourceFile:t,span:r}=e,i=C0e(t,r.start),o=nr.ChangeTracker.with(e,s=>A0e(s,e.sourceFile,i));return[Ma(m9,o,[_.Change_0_to_1,"=",":"],m9,[_.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>ns(e,PQ,(t,r)=>A0e(t,r.file,C0e(r.file,r.start)))})}});function I0e(e,t){let r=Vi(e,t),i=Zc(r).heritageClauses,o=i[0].getFirstToken();return o.kind===94?{extendsToken:o,heritageClauses:i}:void 0}function L0e(e,t,r,i){if(e.replaceNode(t,r,D.createToken(117)),i.length===2&&i[0].token===94&&i[1].token===117){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},D.createToken(27));let l=t.text,f=o.end;for(;f<l.length&&Yp(l.charCodeAt(f));)f++;e.deleteRange(t,{pos:o.getStart(),end:f})}}var h9,MQ,R5e=gt({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){"use strict";Fr(),Qa(),h9="extendsInterfaceBecomesImplements",MQ=[_.Cannot_extend_an_interface_0_Did_you_mean_implements.code],za({errorCodes:MQ,getCodeActions(e){let{sourceFile:t}=e,r=I0e(t,e.span.start);if(!r)return;let{extendsToken:i,heritageClauses:o}=r,s=nr.ChangeTracker.with(e,l=>L0e(l,t,i,o));return[Ma(h9,s,_.Change_extends_to_implements,h9,_.Change_all_extended_interfaces_to_implements)]},fixIds:[h9],getAllCodeActions:e=>ns(e,MQ,(t,r)=>{let i=I0e(r.file,r.start);i&&L0e(t,r.file,i.extendsToken,i.heritageClauses)})})}});function k0e(e,t,r){let i=Vi(e,t);if(Re(i)||pi(i))return{node:i,className:r===FQ?Zc(i).name.text:void 0}}function D0e(e,t,{node:r,className:i}){pd(r),e.replaceNode(t,r,D.createPropertyAccessExpression(i?D.createIdentifier(i):D.createThis(),r))}var g9,FQ,GQ,O5e=gt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";Fr(),Qa(),g9="forgottenThisPropertyAccess",FQ=_.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,GQ=[_.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,FQ],za({errorCodes:GQ,getCodeActions(e){let{sourceFile:t}=e,r=k0e(t,e.span.start,e.errorCode);if(!r)return;let i=nr.ChangeTracker.with(e,o=>D0e(o,t,r));return[Ma(g9,i,[_.Add_0_to_unresolved_variable,r.className||"this"],g9,_.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[g9],getAllCodeActions:e=>ns(e,GQ,(t,r)=>{let i=k0e(r.file,r.start,r.code);i&&D0e(t,e.sourceFile,i)})})}});function N5e(e){return fs(VQ,e)}function BQ(e,t,r,i,o){let s=r.getText()[i];if(!N5e(s))return;let l=o?VQ[s]:`{${ck(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var y9,lP,UQ,VQ,P5e=gt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";Fr(),Qa(),y9="fixInvalidJsxCharacters_expression",lP="fixInvalidJsxCharacters_htmlEntity",UQ=[_.Unexpected_token_Did_you_mean_or_gt.code,_.Unexpected_token_Did_you_mean_or_rbrace.code],za({errorCodes:UQ,fixIds:[y9,lP],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=nr.ChangeTracker.with(e,l=>BQ(l,r,t,i.start,!1)),s=nr.ChangeTracker.with(e,l=>BQ(l,r,t,i.start,!0));return[Ma(y9,o,_.Wrap_invalid_character_in_an_expression_container,y9,_.Wrap_all_invalid_characters_in_an_expression_container),Ma(lP,s,_.Convert_invalid_character_to_its_html_entity_code,lP,_.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return ns(e,UQ,(t,r)=>BQ(t,e.preferences,r.file,r.start,e.fixId===lP))}}),VQ={">":">","}":"}"}}});function M5e(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=nr.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return Ma(uP,o,[_.Delete_unused_param_tag_0,t.getText(e.sourceFile)],uP,_.Delete_all_unused_param_tags)}function F5e(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!Fn(i.parameters))return;let s=e.sourceFile,l=A0(i),f=new Set;for(let v of l)xp(v)&&Re(v.name)&&f.add(v.name.escapedText);let d=ks(i.parameters,v=>Re(v.name)&&!f.has(v.name.escapedText)?v.name.getText(s):void 0);if(d===void 0)return;let g=D.updateJSDocParameterTag(o,o.tagName,D.createIdentifier(d),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=nr.ChangeTracker.with(e,v=>v.replaceJSDocComment(s,r,on(l,S=>S===o?g:S)));return K_(jQ,m,[_.Rename_param_tag_name_0_to_1,t.getText(s),d])}function w0e(e,t){let r=Vi(e,t);if(r.parent&&xp(r.parent)&&Re(r.parent.name)){let i=r.parent,o=dS(i),s=sb(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var uP,jQ,HQ,G5e=gt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";Fr(),Qa(),uP="deleteUnmatchedParameter",jQ="renameUnmatchedParameter",HQ=[_.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],za({fixIds:[uP,jQ],errorCodes:HQ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=w0e(r,i.start);if(s)return Sn(o,M5e(t,s)),Sn(o,F5e(t,s)),o},getAllCodeActions:function(t){let r=new Map;return ix(nr.ChangeTracker.with(t,i=>{ax(t,HQ,({file:o,start:s})=>{let l=w0e(o,s);l&&r.set(l.signature,Sn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===uP){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,f=>!l.has(f))}})}))}})}});function B5e(e,t,r){let i=zr(Vi(e,r),Re);if(!i||i.parent.kind!==180)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return wr(s?.declarations||Je,Kp(lm,$u,Nl))}function U5e(e,t,r,i){if(r.kind===268){e.insertModifierBefore(t,154,r.name);return}let o=r.kind===270?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();z6(o,f=>{if(wd(f.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,154,o)}function V5e(e,t,r,i){Ok.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var v9,R0e,j5e=gt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";Fr(),Qa(),v9="fixUnreferenceableDecoratorMetadata",R0e=[_.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],za({errorCodes:R0e,getCodeActions:e=>{let t=B5e(e.sourceFile,e.program,e.span.start);if(!t)return;let r=nr.ChangeTracker.with(e,s=>t.kind===273&&V5e(s,e.sourceFile,t,e.program)),i=nr.ChangeTracker.with(e,s=>U5e(s,e.sourceFile,t,e.program)),o;return r.length&&(o=Sn(o,K_(v9,r,_.Convert_named_imports_to_namespace_import))),i.length&&(o=Sn(o,K_(v9,i,_.Convert_to_type_only_import))),o},fixIds:[v9]})}});function O0e(e,t,r){e.replaceNode(t,r.parent,D.createKeywordTypeNode(157))}function vk(e,t){return Ma(bk,e,t,T9,_.Delete_all_unused_declarations)}function N0e(e,t,r){e.delete(t,L.checkDefined(Ga(r.parent,hH).typeParameters,"The type parameter to delete should exist"))}function WQ(e){return e.kind===100||e.kind===79&&(e.parent.kind===273||e.parent.kind===270)}function P0e(e){return e.kind===100?zr(e.parent,gl):void 0}function M0e(e,t){return pu(t.parent)&&Vo(t.parent.getChildren(e))===t}function F0e(e,t,r){e.delete(t,r.parent.kind===240?r.parent:r)}function H5e(e,t,r){mn(r.elements,i=>e.delete(t,i))}function G0e(e,t,r,i){t!==_.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===138&&(i=Ga(i.parent,h2).typeParameter.name),Re(i)&&W5e(i)&&(e.replaceNode(r,i,D.createIdentifier(`_${i.text}`)),ha(i.parent)&&fI(i.parent).forEach(o=>{Re(o.name)&&e.replaceNode(r,o.name,D.createIdentifier(`_${o.name.text}`))})))}function W5e(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}function b9(e,t,r,i,o,s,l,f){z5e(t,r,e,i,o,s,l,f),Re(t)&&js.Core.eachSymbolReferenceInFile(t,i,e,d=>{br(d.parent)&&d.parent.name===d&&(d=d.parent),!f&&X5e(d)&&r.delete(e,d.parent.parent)})}function z5e(e,t,r,i,o,s,l,f){let{parent:d}=e;if(ha(d))J5e(t,r,d,i,o,s,l,f);else if(!(f&&Re(e)&&js.Core.isSymbolReferencedInFile(e,i,r))){let g=lm(d)?e:ts(d)?d.parent:d;L.assert(g!==r,"should not delete whole source file"),t.delete(r,g)}}function J5e(e,t,r,i,o,s,l,f=!1){if(K5e(i,t,r,o,s,l,f))if(r.modifiers&&r.modifiers.length>0&&(!Re(r.name)||js.Core.isSymbolReferencedInFile(r.name,i,t)))for(let d of r.modifiers)Ha(d)&&e.deleteModifier(t,d);else!r.initializer&&B0e(r,i,o)&&e.delete(t,r)}function B0e(e,t,r){let i=e.parent.parameters.indexOf(e);return!js.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function K5e(e,t,r,i,o,s,l){let{parent:f}=r;switch(f.kind){case 171:case 173:let d=f.parameters.indexOf(r),g=Nc(f)?f.name:f,m=js.Core.getReferencedSymbolsForNode(f.pos,g,o,i,s);if(m){for(let v of m)for(let S of v.references)if(S.kind===js.EntryKind.Node){let x=hL(S.node)&&Pa(S.node.parent)&&S.node.parent.arguments.length>d,A=br(S.node.parent)&&hL(S.node.parent.expression)&&Pa(S.node.parent.parent)&&S.node.parent.parent.arguments.length>d,w=(Nc(S.node.parent)||zm(S.node.parent))&&S.node.parent!==r.parent&&S.node.parent.parameters.length>d;if(x||A||w)return!1}}return!0;case 259:return f.name&&q5e(e,t,f.name)?U0e(f,r,l):!0;case 215:case 216:return U0e(f,r,l);case 175:return!1;case 174:return!0;default:return L.failBadSyntaxKind(f)}}function q5e(e,t,r){return!!js.Core.eachSymbolReferenceInFile(r,e,t,i=>Re(i)&&Pa(i.parent)&&i.parent.arguments.indexOf(i)>=0)}function U0e(e,t,r){let i=e.parameters,o=i.indexOf(t);return L.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Re(s.name)&&!s.symbol.isReferenced):o===i.length-1}function X5e(e){return(ar(e.parent)&&e.parent.left===e||(Nz(e.parent)||tv(e.parent))&&e.parent.operand===e)&&Ol(e.parent.parent)}var bk,E9,T9,dP,S9,zQ,Y5e=gt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";Fr(),Qa(),bk="unusedIdentifier",E9="unusedIdentifier_prefix",T9="unusedIdentifier_delete",dP="unusedIdentifier_deleteImports",S9="unusedIdentifier_infer",zQ=[_._0_is_declared_but_its_value_is_never_read.code,_._0_is_declared_but_never_used.code,_.Property_0_is_declared_but_its_value_is_never_read.code,_.All_imports_in_import_declaration_are_unused.code,_.All_destructured_elements_are_unused.code,_.All_variables_are_unused.code,_.All_type_parameters_are_unused.code],za({errorCodes:zQ,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),f=Vi(r,e.span.start);if(H_(f))return[vk(nr.ChangeTracker.with(e,v=>v.delete(r,f)),_.Remove_template_tag)];if(f.kind===29){let v=nr.ChangeTracker.with(e,S=>N0e(S,r,f));return[vk(v,_.Remove_type_parameters)]}let d=P0e(f);if(d){let v=nr.ChangeTracker.with(e,S=>S.delete(r,d));return[Ma(bk,v,[_.Remove_import_from_0,lle(d)],dP,_.Delete_all_unused_imports)]}else if(WQ(f)){let v=nr.ChangeTracker.with(e,S=>b9(r,f,S,s,l,i,o,!1));if(v.length)return[Ma(bk,v,[_.Remove_unused_declaration_for_Colon_0,f.getText(r)],dP,_.Delete_all_unused_imports)]}if(cm(f.parent)||g2(f.parent)){if(ha(f.parent.parent)){let v=f.parent.elements,S=[v.length>1?_.Remove_unused_declarations_for_Colon_0:_.Remove_unused_declaration_for_Colon_0,on(v,x=>x.getText(r)).join(", ")];return[vk(nr.ChangeTracker.with(e,x=>H5e(x,r,f.parent)),S)]}return[vk(nr.ChangeTracker.with(e,v=>v.delete(r,f.parent.parent)),_.Remove_unused_destructuring_declaration)]}if(M0e(r,f))return[vk(nr.ChangeTracker.with(e,v=>F0e(v,r,f.parent)),_.Remove_variable_statement)];let g=[];if(f.kind===138){let v=nr.ChangeTracker.with(e,x=>O0e(x,r,f)),S=Ga(f.parent,h2).typeParameter.name.text;g.push(Ma(bk,v,[_.Replace_infer_0_with_unknown,S],S9,_.Replace_all_unused_infer_with_unknown))}else{let v=nr.ChangeTracker.with(e,S=>b9(r,f,S,s,l,i,o,!1));if(v.length){let S=ts(f.parent)?f.parent:f;g.push(vk(v,[_.Remove_unused_declaration_for_Colon_0,S.getText(r)]))}}let m=nr.ChangeTracker.with(e,v=>G0e(v,t,r,f));return m.length&&g.push(Ma(bk,m,[_.Prefix_0_with_an_underscore,f.getText(r)],E9,_.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[E9,T9,dP,S9],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return ns(e,zQ,(l,f)=>{let d=Vi(t,f.start);switch(e.fixId){case E9:G0e(l,f.code,t,d);break;case dP:{let g=P0e(d);g?l.delete(t,g):WQ(d)&&b9(t,d,l,o,s,r,i,!0);break}case T9:{if(d.kind===138||WQ(d))break;if(H_(d))l.delete(t,d);else if(d.kind===29)N0e(l,t,d);else if(cm(d.parent)){if(d.parent.parent.initializer)break;(!ha(d.parent.parent)||B0e(d.parent.parent,o,s))&&l.delete(t,d.parent.parent)}else{if(g2(d.parent.parent)&&d.parent.parent.parent.initializer)break;M0e(t,d)?F0e(l,t,d.parent):b9(t,d,l,o,s,r,i,!0)}break}case S9:d.kind===138&&O0e(l,t,d);break;default:L.fail(JSON.stringify(e.fixId))}})}})}});function V0e(e,t,r,i,o){let s=Vi(t,r),l=jn(s,ca);if(l.getStart(t)!==s.getStart(t)){let d=JSON.stringify({statementKind:L.formatSyntaxKind(l.kind),tokenKind:L.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});L.fail("Token and statement should start at the same point. "+d)}let f=(Va(l.parent)?l.parent:l).parent;if(!Va(l.parent)||l===Vo(l.parent.statements))switch(f.kind){case 242:if(f.elseStatement){if(Va(l.parent))break;e.replaceNode(t,l,D.createBlock(Je));return}case 244:case 245:e.delete(t,f);return}if(Va(l.parent)){let d=r+i,g=L.checkDefined($5e(PW(l.parent.statements,l),m=>m.pos<d),"Some statement should be last");e.deleteNodeRange(t,l,g)}else e.delete(t,l)}function $5e(e,t){let r;for(let i of e){if(!t(i))break;r=i}return r}var x9,JQ,Q5e=gt({"src/services/codefixes/fixUnreachableCode.ts"(){"use strict";Fr(),Qa(),x9="fixUnreachableCode",JQ=[_.Unreachable_code_detected.code],za({errorCodes:JQ,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let r=nr.ChangeTracker.with(e,i=>V0e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Ma(x9,r,_.Remove_unreachable_code,x9,_.Remove_all_unreachable_code)]},fixIds:[x9],getAllCodeActions:e=>ns(e,JQ,(t,r)=>V0e(t,r.file,r.start,r.length,r.code))})}});function j0e(e,t,r){let i=Vi(t,r),o=Ga(i.parent,J0),s=i.getStart(t),l=o.statement.getStart(t),f=Bf(s,l,t)?l:xo(t.text,Yo(o,58,t).end,!0);e.deleteRange(t,{pos:s,end:f})}var A9,KQ,Z5e=gt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";Fr(),Qa(),A9="fixUnusedLabel",KQ=[_.Unused_label.code],za({errorCodes:KQ,getCodeActions(e){let t=nr.ChangeTracker.with(e,r=>j0e(r,e.sourceFile,e.span.start));return[Ma(A9,t,_.Remove_unused_label,A9,_.Remove_all_unused_labels)]},fixIds:[A9],getAllCodeActions:e=>ns(e,KQ,(t,r)=>j0e(t,r.file,r.start))})}});function H0e(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function W0e(e,t,r){let i=jn(Vi(e,t),e9e),o=i&&i.type;return o&&{typeNode:o,type:t9e(r,o)}}function e9e(e){switch(e.kind){case 231:case 176:case 177:case 259:case 174:case 178:case 197:case 171:case 170:case 166:case 169:case 168:case 175:case 262:case 213:case 257:return!0;default:return!1}}function t9e(e,t){if(T2(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(Sn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var qQ,C9,XQ,n9e=gt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";Fr(),Qa(),qQ="fixJSDocTypes_plain",C9="fixJSDocTypes_nullable",XQ=[_.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],za({errorCodes:XQ,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=W0e(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),f=[d(s,qQ,_.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===317&&f.push(d(s,C9,_.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),f;function d(g,m,v){let S=nr.ChangeTracker.with(e,x=>H0e(x,t,o,g,r));return Ma("jdocTypes",S,[_.Change_0_to_1,l,r.typeToString(g)],m,v)}},fixIds:[qQ,C9],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return ns(e,XQ,(s,l)=>{let f=W0e(l.file,l.start,o);if(!f)return;let{typeNode:d,type:g}=f,m=d.kind===317&&t===C9?o.getNullableType(g,32768):g;H0e(s,i,d,m,o)})}})}});function z0e(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function J0e(e,t){let r=Vi(e,t);if(br(r.parent)){let i=r.parent;for(;br(i.parent);)i=i.parent;return i.name}if(Re(r))return r}var I9,YQ,r9e=gt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";Fr(),Qa(),I9="fixMissingCallParentheses",YQ=[_.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],za({errorCodes:YQ,fixIds:[I9],getCodeActions(e){let{sourceFile:t,span:r}=e,i=J0e(t,r.start);if(!i)return;let o=nr.ChangeTracker.with(e,s=>z0e(s,e.sourceFile,i));return[Ma(I9,o,_.Add_missing_call_parentheses,I9,_.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>ns(e,YQ,(t,r)=>{let i=J0e(r.file,r.start);i&&z0e(t,r.file,i)})})}});function i9e(e){if(e.type)return e.type;if(wi(e.parent)&&e.parent.type&&Jm(e.parent.type))return e.parent.type.type}function K0e(e,t){let r=Vi(e,t),i=Xd(r);if(!i)return;let o;switch(i.kind){case 171:o=i.name;break;case 259:case 215:o=Yo(i,98,e);break;case 216:let s=i.typeParameters?29:20;o=Yo(i,s,e)||Vo(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:i9e(i)}}function q0e(e,t,{insertBefore:r,returnType:i}){if(i){let o=Jw(i);(!o||o.kind!==79||o.text!=="Promise")&&e.replaceNode(t,i,D.createTypeReferenceNode("Promise",D.createNodeArray([i])))}e.insertModifierBefore(t,132,r)}var L9,$Q,a9e=gt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";Fr(),Qa(),L9="fixAwaitInSyncFunction",$Q=[_.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],za({errorCodes:$Q,getCodeActions(e){let{sourceFile:t,span:r}=e,i=K0e(t,r.start);if(!i)return;let o=nr.ChangeTracker.with(e,s=>q0e(s,t,i));return[Ma(L9,o,_.Add_async_modifier_to_containing_function,L9,_.Add_all_missing_async_modifiers)]},fixIds:[L9],getAllCodeActions:function(t){let r=new Map;return ns(t,$Q,(i,o)=>{let s=K0e(o.file,o.start);!s||!V_(r,zo(s.insertBefore))||q0e(i,t.sourceFile,s)})}})}});function X0e(e,t,r,i,o){let s,l;if(i===_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let f=o.program.getTypeChecker(),d=Vi(e,t).parent;L.assert(rb(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=d.parent;L.assert(Yr(g),"erroneous accessors should only be inside classes");let m=Wp(mZ(g,f));if(!m)return[];let v=Gi(wA(d.name)),S=f.getPropertyOfType(f.getTypeAtLocation(m),v);if(!S||!S.valueDeclaration)return[];s=S.valueDeclaration.pos,l=S.valueDeclaration.end,e=Gn(S.valueDeclaration)}else L.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return uEe(e,o.program,s,l,o,_.Generate_get_and_set_accessors.message)}var QQ,k9,o9e=gt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";Fr(),Qa(),QQ=[_._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],k9="fixPropertyOverrideAccessor",za({errorCodes:QQ,getCodeActions(e){let t=X0e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Ma(k9,t,_.Generate_get_and_set_accessors,k9,_.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[k9],getAllCodeActions:e=>ns(e,QQ,(t,r)=>{let i=X0e(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function s9e(e,t){switch(e){case _.Parameter_0_implicitly_has_an_1_type.code:case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Sf(Xd(t))?_.Infer_type_of_0_from_usage:_.Infer_parameter_types_from_usage;case _.Rest_parameter_0_implicitly_has_an_any_type.code:case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Infer_parameter_types_from_usage;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _.Infer_this_type_of_0_from_usage;default:return _.Infer_type_of_0_from_usage}}function c9e(e){switch(e){case _.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Variable_0_implicitly_has_an_1_type.code;case _.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Parameter_0_implicitly_has_an_1_type.code;case _.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Rest_parameter_0_implicitly_has_an_any_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _.Member_0_implicitly_has_an_1_type.code}return e}function Y0e(e,t,r,i,o,s,l,f,d){if(!yI(r.kind)&&r.kind!==79&&r.kind!==25&&r.kind!==108)return;let{parent:g}=r,m=s1(t,o,d,f);switch(i=c9e(i),i){case _.Member_0_implicitly_has_an_1_type.code:case _.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(wi(g)&&l(g)||Na(g)||$d(g))return $0e(e,m,t,g,o,f,s),m.writeFixes(e),g;if(br(g)){let x=Ek(g.name,o,s),A=lk(x,g,o,f);if(A){let w=D.createJSDocTypeTag(void 0,D.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,Ga(g.parent.parent,Ol),[w])}return m.writeFixes(e),g}return;case _.Variable_0_implicitly_has_an_1_type.code:{let x=o.getTypeChecker().getSymbolAtLocation(r);return x&&x.valueDeclaration&&wi(x.valueDeclaration)&&l(x.valueDeclaration)?($0e(e,m,Gn(x.valueDeclaration),x.valueDeclaration,o,f,s),m.writeFixes(e),x.valueDeclaration):void 0}}let v=Xd(r);if(v===void 0)return;let S;switch(i){case _.Parameter_0_implicitly_has_an_1_type.code:if(Sf(v)){Q0e(e,m,t,v,o,f,s),S=v;break}case _.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(v)){let x=Ga(g,ha);l9e(e,m,t,x,v,o,f,s),S=x}break;case _.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:p_(v)&&Re(v.name)&&(D9(e,m,t,v,Ek(v.name,o,s),o,f),S=v);break;case _.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Sf(v)&&(Q0e(e,m,t,v,o,f,s),S=v);break;case _.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:nr.isThisTypeAnnotatable(v)&&l(v)&&(u9e(e,t,v,o,f,s),S=v);break;default:return L.fail(String(i))}return m.writeFixes(e),S}function $0e(e,t,r,i,o,s,l){Re(i.name)&&D9(e,t,r,i,Ek(i.name,o,l),o,s)}function l9e(e,t,r,i,o,s,l,f){if(!Re(i.name))return;let d=_9e(o,r,s,f);if(L.assert(o.parameters.length===d.length,"Parameter count and inference count should match"),Yn(o))Z0e(e,r,d,s,l);else{let g=xs(o)&&!Yo(o,20,r);g&&e.insertNodeBefore(r,Vo(o.parameters),D.createToken(20));for(let{declaration:m,type:v}of d)m&&!m.type&&!m.initializer&&D9(e,t,r,m,v,s,l);g&&e.insertNodeAfter(r,To(o.parameters),D.createToken(21))}}function u9e(e,t,r,i,o,s){let l=eEe(r,t,i,s);if(!l||!l.length)return;let f=eZ(i,l,s).thisParameter(),d=lk(f,r,i,o);d&&(Yn(r)?d9e(e,t,r,d):e.tryInsertThisTypeAnnotation(t,r,d))}function d9e(e,t,r,i){e.addJSDocTags(t,r,[D.createJSDocThisTag(void 0,D.createJSDocTypeExpression(i))])}function Q0e(e,t,r,i,o,s,l){let f=Sl(i.parameters);if(f&&Re(i.name)&&Re(f.name)){let d=Ek(i.name,o,l);d===o.getTypeChecker().getAnyType()&&(d=Ek(f.name,o,l)),Yn(i)?Z0e(e,r,[{declaration:f,type:d}],o,s):D9(e,t,r,f,d,o,s)}}function D9(e,t,r,i,o,s,l){let f=lk(o,i,s,l);if(f)if(Yn(r)&&i.kind!==168){let d=wi(i)?zr(i.parent.parent,Bc):i;if(!d)return;let g=D.createJSDocTypeExpression(f),m=p_(i)?D.createJSDocReturnTag(void 0,g,void 0):D.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(r,d,[m])}else f9e(f,i,r,e,t,Do(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,f)}function f9e(e,t,r,i,o,s){let l=l1(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(mn(l.symbols,f=>o.addImportFromExportedSymbol(f,!0)),!0):!1}function Z0e(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=Zi(r,f=>{let d=f.declaration;if(d.initializer||Vy(d)||!Re(d.name))return;let g=f.type&&lk(f.type,d,i,o);if(g){let m=D.cloneNode(d.name);return Jn(m,7168),{name:D.cloneNode(d.name),param:d,isOptional:!!f.isOptional,typeNode:g}}});if(l.length)if(xs(s)||ms(s)){let f=xs(s)&&!Yo(s,20,t);f&&e.insertNodeBefore(t,Vo(s.parameters),D.createToken(20)),mn(l,({typeNode:d,param:g})=>{let m=D.createJSDocTypeTag(void 0,D.createJSDocTypeExpression(d)),v=D.createJSDocComment(void 0,[m]);e.insertNodeAt(t,g.getStart(t),v,{suffix:" "})}),f&&e.insertNodeAfter(t,To(s.parameters),D.createToken(21))}else{let f=on(l,({name:d,typeNode:g,isOptional:m})=>D.createJSDocParameterTag(void 0,d,!!m,D.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,s,f)}}function ZQ(e,t,r){return Zi(js.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==js.EntryKind.Span?zr(i.node,Re):void 0)}function Ek(e,t,r){let i=ZQ(e,t,r);return eZ(t,i,r).single()}function _9e(e,t,r,i){let o=eEe(e,t,r,i);return o&&eZ(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Re(s.name)?Ek(s.name,r,i):r.getTypeChecker().getAnyType()}))}function eEe(e,t,r,i){let o;switch(e.kind){case 173:o=Yo(e,135,t);break;case 216:case 215:let s=e.parent;o=(wi(s)||Na(s))&&Re(s.name)?s.name:e.name;break;case 259:case 171:case 170:o=e.name;break}if(o)return ZQ(o,r,i)}function eZ(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:Ce=>i.createArrayType(Ce),Promise:Ce=>i.createPromiseType(Ce)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:g,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function f(Ce){let Ie=new Map;for(let Ne of Ce)Ne.properties&&Ne.properties.forEach((Le,Ye)=>{Ie.has(Ye)||Ie.set(Ye,[]),Ie.get(Ye).push(Le)});let Be=new Map;return Ie.forEach((Ne,Le)=>{Be.set(Le,f(Ne))}),{isNumber:Ce.some(Ne=>Ne.isNumber),isString:Ce.some(Ne=>Ne.isString),isNumberOrString:Ce.some(Ne=>Ne.isNumberOrString),candidateTypes:Uo(Ce,Ne=>Ne.candidateTypes),properties:Be,calls:Uo(Ce,Ne=>Ne.calls),constructs:Uo(Ce,Ne=>Ne.constructs),numberIndex:mn(Ce,Ne=>Ne.numberIndex),stringIndex:mn(Ce,Ne=>Ne.stringIndex),candidateThisTypes:Uo(Ce,Ne=>Ne.candidateThisTypes),inferredTypes:void 0}}function d(){return $(v(t))}function g(Ce){if(t.length===0||!Ce.parameters)return;let Ie=l();for(let Ne of t)r.throwIfCancellationRequested(),S(Ne,Ie);let Be=[...Ie.constructs||[],...Ie.calls||[]];return Ce.parameters.map((Ne,Le)=>{let Ye=[],_t=Fm(Ne),ct=!1;for(let We of Be)if(We.argumentTypes.length<=Le)ct=Yn(Ce),Ye.push(i.getUndefinedType());else if(_t)for(let qe=Le;qe<We.argumentTypes.length;qe++)Ye.push(i.getBaseTypeOfLiteralType(We.argumentTypes[qe]));else Ye.push(i.getBaseTypeOfLiteralType(We.argumentTypes[Le]));if(Re(Ne.name)){let We=v(ZQ(Ne.name,e,r));Ye.push(..._t?Zi(We,i.getElementTypeOfArrayType):We)}let Rt=$(Ye);return{type:_t?i.createArrayType(Rt):Rt,isOptional:ct&&!_t,declaration:Ne}})}function m(){let Ce=l();for(let Ie of t)r.throwIfCancellationRequested(),S(Ie,Ce);return $(Ce.candidateThisTypes||Je)}function v(Ce){let Ie=l();for(let Be of Ce)r.throwIfCancellationRequested(),S(Be,Ie);return Z(Ie)}function S(Ce,Ie){for(;zI(Ce);)Ce=Ce.parent;switch(Ce.parent.kind){case 241:A(Ce,Ie);break;case 222:Ie.isNumber=!0;break;case 221:w(Ce.parent,Ie);break;case 223:C(Ce,Ce.parent,Ie);break;case 292:case 293:P(Ce.parent,Ie);break;case 210:case 211:Ce.parent.expression===Ce?F(Ce.parent,Ie):x(Ce,Ie);break;case 208:B(Ce.parent,Ie);break;case 209:q(Ce.parent,Ce,Ie);break;case 299:case 300:W(Ce.parent,Ie);break;case 169:Y(Ce.parent,Ie);break;case 257:{let{name:Be,initializer:Ne}=Ce.parent;if(Ce===Be){Ne&&ke(Ie,i.getTypeAtLocation(Ne));break}}default:return x(Ce,Ie)}}function x(Ce,Ie){Dh(Ce)&&ke(Ie,i.getContextualType(Ce))}function A(Ce,Ie){ke(Ie,Pa(Ce)?i.getVoidType():i.getAnyType())}function w(Ce,Ie){switch(Ce.operator){case 45:case 46:case 40:case 54:Ie.isNumber=!0;break;case 39:Ie.isNumberOrString=!0;break}}function C(Ce,Ie,Be){switch(Ie.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:let Ne=i.getTypeAtLocation(Ie.left===Ce?Ie.right:Ie.left);Ne.flags&1056?ke(Be,Ne):Be.isNumber=!0;break;case 64:case 39:let Le=i.getTypeAtLocation(Ie.left===Ce?Ie.right:Ie.left);Le.flags&1056?ke(Be,Le):Le.flags&296?Be.isNumber=!0:Le.flags&402653316?Be.isString=!0:Le.flags&1||(Be.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:ke(Be,i.getTypeAtLocation(Ie.left===Ce?Ie.right:Ie.left));break;case 101:Ce===Ie.left&&(Be.isString=!0);break;case 56:case 60:Ce===Ie.left&&(Ce.parent.parent.kind===257||Iu(Ce.parent.parent,!0))&&ke(Be,i.getTypeAtLocation(Ie.right));break;case 55:case 27:case 102:break}}function P(Ce,Ie){ke(Ie,i.getTypeAtLocation(Ce.parent.parent.expression))}function F(Ce,Ie){let Be={argumentTypes:[],return_:l()};if(Ce.arguments)for(let Ne of Ce.arguments)Be.argumentTypes.push(i.getTypeAtLocation(Ne));S(Ce,Be.return_),Ce.kind===210?(Ie.calls||(Ie.calls=[])).push(Be):(Ie.constructs||(Ie.constructs=[])).push(Be)}function B(Ce,Ie){let Be=Bs(Ce.name.text);Ie.properties||(Ie.properties=new Map);let Ne=Ie.properties.get(Be)||l();S(Ce,Ne),Ie.properties.set(Be,Ne)}function q(Ce,Ie,Be){if(Ie===Ce.argumentExpression){Be.isNumberOrString=!0;return}else{let Ne=i.getTypeAtLocation(Ce.argumentExpression),Le=l();S(Ce,Le),Ne.flags&296?Be.numberIndex=Le:Be.stringIndex=Le}}function W(Ce,Ie){let Be=wi(Ce.parent.parent)?Ce.parent.parent:Ce.parent;Pe(Ie,i.getTypeAtLocation(Be))}function Y(Ce,Ie){Pe(Ie,i.getTypeAtLocation(Ce.parent))}function R(Ce,Ie){let Be=[];for(let Ne of Ce)for(let{high:Le,low:Ye}of Ie)Le(Ne)&&(L.assert(!Ye(Ne),"Priority can't have both low and high"),Be.push(Ye));return Ce.filter(Ne=>Be.every(Le=>!Le(Ne)))}function ie(Ce){return $(Z(Ce))}function $(Ce){if(!Ce.length)return i.getAnyType();let Ie=i.getUnionType([i.getStringType(),i.getNumberType()]),Ne=R(Ce,[{high:Ye=>Ye===i.getStringType()||Ye===i.getNumberType(),low:Ye=>Ye===Ie},{high:Ye=>!(Ye.flags&16385),low:Ye=>!!(Ye.flags&16385)},{high:Ye=>!(Ye.flags&114689)&&!(Ur(Ye)&16),low:Ye=>!!(Ur(Ye)&16)}]),Le=Ne.filter(Ye=>Ur(Ye)&16);return Le.length&&(Ne=Ne.filter(Ye=>!(Ur(Ye)&16)),Ne.push(fe(Le))),i.getWidenedType(i.getUnionType(Ne.map(i.getBaseTypeOfLiteralType),2))}function fe(Ce){if(Ce.length===1)return Ce[0];let Ie=[],Be=[],Ne=[],Le=[],Ye=!1,_t=!1,ct=Nf();for(let qe of Ce){for(let tn of i.getPropertiesOfType(qe))ct.add(tn.name,tn.valueDeclaration?i.getTypeOfSymbolAtLocation(tn,tn.valueDeclaration):i.getAnyType());Ie.push(...i.getSignaturesOfType(qe,0)),Be.push(...i.getSignaturesOfType(qe,1));let zt=i.getIndexInfoOfType(qe,0);zt&&(Ne.push(zt.type),Ye=Ye||zt.isReadonly);let Qt=i.getIndexInfoOfType(qe,1);Qt&&(Le.push(Qt.type),_t=_t||Qt.isReadonly)}let Rt=uae(ct,(qe,zt)=>{let Qt=zt.length<Ce.length?16777216:0,tn=i.createSymbol(4|Qt,qe);return tn.links.type=i.getUnionType(zt),[qe,tn]}),We=[];return Ne.length&&We.push(i.createIndexInfo(i.getStringType(),i.getUnionType(Ne),Ye)),Le.length&&We.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(Le),_t)),i.createAnonymousType(Ce[0].symbol,Rt,Ie,Be,We)}function Z(Ce){var Ie,Be,Ne;let Le=[];Ce.isNumber&&Le.push(i.getNumberType()),Ce.isString&&Le.push(i.getStringType()),Ce.isNumberOrString&&Le.push(i.getUnionType([i.getStringType(),i.getNumberType()])),Ce.numberIndex&&Le.push(i.createArrayType(ie(Ce.numberIndex))),((Ie=Ce.properties)!=null&&Ie.size||(Be=Ce.constructs)!=null&&Be.length||Ce.stringIndex)&&Le.push(U(Ce));let Ye=(Ce.candidateTypes||[]).map(ct=>i.getBaseTypeOfLiteralType(ct)),_t=(Ne=Ce.calls)!=null&&Ne.length?U(Ce):void 0;return _t&&Ye?Le.push(i.getUnionType([_t,...Ye],2)):(_t&&Le.push(_t),Fn(Ye)&&Le.push(...Ye)),Le.push(...re(Ce)),Le}function U(Ce){let Ie=new Map;Ce.properties&&Ce.properties.forEach((Ye,_t)=>{let ct=i.createSymbol(4,_t);ct.links.type=ie(Ye),Ie.set(_t,ct)});let Be=Ce.calls?[we(Ce.calls)]:[],Ne=Ce.constructs?[we(Ce.constructs)]:[],Le=Ce.stringIndex?[i.createIndexInfo(i.getStringType(),ie(Ce.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Ie,Be,Ne,Le)}function re(Ce){if(!Ce.properties||!Ce.properties.size)return[];let Ie=s.filter(Be=>le(Be,Ce));return 0<Ie.length&&Ie.length<3?Ie.map(Be=>_e(Be,Ce)):[]}function le(Ce,Ie){return Ie.properties?!Ld(Ie.properties,(Be,Ne)=>{let Le=i.getTypeOfPropertyOfType(Ce,Ne);return Le?Be.calls?!i.getSignaturesOfType(Le,0).length||!i.isTypeAssignableTo(Le,Ve(Be.calls)):!i.isTypeAssignableTo(Le,ie(Be)):!0}):!1}function _e(Ce,Ie){if(!(Ur(Ce)&4)||!Ie.properties)return Ce;let Be=Ce.target,Ne=Wp(Be.typeParameters);if(!Ne)return Ce;let Le=[];return Ie.properties.forEach((Ye,_t)=>{let ct=i.getTypeOfPropertyOfType(Be,_t);L.assert(!!ct,"generic should have all the properties of its reference."),Le.push(...ge(ct,ie(Ye),Ne))}),o[Ce.symbol.escapedName]($(Le))}function ge(Ce,Ie,Be){if(Ce===Be)return[Ie];if(Ce.flags&3145728)return Uo(Ce.types,Ye=>ge(Ye,Ie,Be));if(Ur(Ce)&4&&Ur(Ie)&4){let Ye=i.getTypeArguments(Ce),_t=i.getTypeArguments(Ie),ct=[];if(Ye&&_t)for(let Rt=0;Rt<Ye.length;Rt++)_t[Rt]&&ct.push(...ge(Ye[Rt],_t[Rt],Be));return ct}let Ne=i.getSignaturesOfType(Ce,0),Le=i.getSignaturesOfType(Ie,0);return Ne.length===1&&Le.length===1?X(Ne[0],Le[0],Be):[]}function X(Ce,Ie,Be){var Ne;let Le=[];for(let ct=0;ct<Ce.parameters.length;ct++){let Rt=Ce.parameters[ct],We=Ie.parameters[ct],qe=Ce.declaration&&Fm(Ce.declaration.parameters[ct]);if(!We)break;let zt=Rt.valueDeclaration?i.getTypeOfSymbolAtLocation(Rt,Rt.valueDeclaration):i.getAnyType(),Qt=qe&&i.getElementTypeOfArrayType(zt);Qt&&(zt=Qt);let tn=((Ne=zr(We,Zp))==null?void 0:Ne.links.type)||(We.valueDeclaration?i.getTypeOfSymbolAtLocation(We,We.valueDeclaration):i.getAnyType());Le.push(...ge(zt,tn,Be))}let Ye=i.getReturnTypeOfSignature(Ce),_t=i.getReturnTypeOfSignature(Ie);return Le.push(...ge(Ye,_t,Be)),Le}function Ve(Ce){return i.createAnonymousType(void 0,Ua(),[we(Ce)],Je,Je)}function we(Ce){let Ie=[],Be=Math.max(...Ce.map(Le=>Le.argumentTypes.length));for(let Le=0;Le<Be;Le++){let Ye=i.createSymbol(1,Bs(`arg${Le}`));Ye.links.type=$(Ce.map(_t=>_t.argumentTypes[Le]||i.getUndefinedType())),Ce.some(_t=>_t.argumentTypes[Le]===void 0)&&(Ye.flags|=16777216),Ie.push(Ye)}let Ne=ie(f(Ce.map(Le=>Le.return_)));return i.createSignature(void 0,void 0,void 0,Ie,Ne,void 0,Be,0)}function ke(Ce,Ie){Ie&&!(Ie.flags&1)&&!(Ie.flags&131072)&&(Ce.candidateTypes||(Ce.candidateTypes=[])).push(Ie)}function Pe(Ce,Ie){Ie&&!(Ie.flags&1)&&!(Ie.flags&131072)&&(Ce.candidateThisTypes||(Ce.candidateThisTypes=[])).push(Ie)}}var w9,tZ,p9e=gt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";Fr(),Qa(),w9="inferFromUsage",tZ=[_.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_.Variable_0_implicitly_has_an_1_type.code,_.Parameter_0_implicitly_has_an_1_type.code,_.Rest_parameter_0_implicitly_has_an_any_type.code,_.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_.Member_0_implicitly_has_an_1_type.code,_.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],za({errorCodes:tZ,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:f}=e,d=Vi(t,i),g,m=nr.ChangeTracker.with(e,S=>{g=Y0e(S,t,d,o,r,s,h0,l,f)}),v=g&&sa(g);return!v||m.length===0?void 0:[Ma(w9,m,[s9e(o,d),Qc(v)],w9,_.Infer_all_types_from_usage)]},fixIds:[w9],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=W2();return ns(e,tZ,(f,d)=>{Y0e(f,t,Vi(d.file,d.start),d.code,r,i,l,o,s)})}})}});function tEe(e,t,r){if(Yn(e))return;let i=Vi(e,r),o=jn(i,Ds),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),f=t.getAwaitedType(l)||t.getVoidType(),d=t.typeToTypeNode(f,s,void 0);if(d)return{returnTypeNode:s,returnType:l,promisedTypeNode:d,promisedType:f}}function nEe(e,t,r,i){e.replaceNode(t,r,D.createTypeReferenceNode("Promise",[i]))}var R9,nZ,m9e=gt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";Fr(),Qa(),R9="fixReturnTypeInAsyncFunction",nZ=[_.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],za({errorCodes:nZ,fixIds:[R9],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=tEe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:f,returnType:d,promisedTypeNode:g,promisedType:m}=l,v=nr.ChangeTracker.with(t,S=>nEe(S,r,f,g));return[Ma(R9,v,[_.Replace_0_with_Promise_1,s.typeToString(d),s.typeToString(m)],R9,_.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>ns(e,nZ,(t,r)=>{let i=tEe(r.file,e.program.getTypeChecker(),r.start);i&&nEe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function rEe(e,t,r,i){let{line:o}=Gs(t,r);(!i||_0(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var rZ,iZ,aZ,h9e=gt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";Fr(),Qa(),rZ="disableJsDiagnostics",iZ="disableJsDiagnostics",aZ=Zi(Object.keys(_),e=>{let t=_[e];return t.category===1?t.code:void 0}),za({errorCodes:aZ,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Yn(r)||!HR(r,i.getCompilerOptions()))return;let f=r.checkJsDirective?"":bb(s,l.options),d=[K_(rZ,[_ve(r.fileName,[GN(r.checkJsDirective?Wc(r.checkJsDirective.pos,r.checkJsDirective.end):il(0,0),`// @ts-nocheck${f}`)])],_.Disable_checking_for_this_file)];return nr.isValidLocationToAddComment(r,o.start)&&d.unshift(Ma(rZ,nr.ChangeTracker.with(t,g=>rEe(g,r,o.start)),_.Ignore_this_error_message,iZ,_.Add_ts_ignore_to_all_error_messages)),d},fixIds:[iZ],getAllCodeActions:e=>{let t=new Set;return ns(e,aZ,(r,i)=>{nr.isValidLocationToAddComment(i.file,i.start)&&rEe(r,i.file,i.start,t)})}})}});function oZ(e,t,r,i,o,s,l){let f=e.symbol.members;for(let d of t)f.has(d.escapedName)||iEe(d,e,r,i,o,s,l,void 0)}function sx(e){return{trackSymbol:()=>!1,moduleResolverHost:oY(e.program,e.host)}}function iEe(e,t,r,i,o,s,l,f,d=3,g=!1){var m;let v=e.getDeclarations(),S=v?.[0],x=i.program.getTypeChecker(),A=Do(i.program.getCompilerOptions()),w=(m=S?.kind)!=null?m:168,C=cc(sa(S),!1),P=S?uu(S):0,F=P&4?4:P&16?16:0;S&&Id(S)&&(F|=128);let B=$(),q=x.getWidenedType(x.getTypeOfSymbolAtLocation(e,t)),W=!!(e.flags&16777216),Y=!!(t.flags&16777216)||g,R=J_(r,o);switch(w){case 168:case 169:let le=R===0?268435456:void 0,_e=x.typeToTypeNode(q,t,le,sx(i));if(s){let X=l1(_e,A);X&&(_e=X.typeNode,cx(s,X.symbols))}l(D.createPropertyDeclaration(B,S?Z(C):e.getName(),W&&d&2?D.createToken(57):void 0,_e,void 0));break;case 174:case 175:{L.assertIsDefined(v);let X=x.typeToTypeNode(q,t,void 0,sx(i)),Ve=kT(v,S),we=Ve.secondAccessor?[Ve.firstAccessor,Ve.secondAccessor]:[Ve.firstAccessor];if(s){let ke=l1(X,A);ke&&(X=ke.typeNode,cx(s,ke.symbols))}for(let ke of we)if(p_(ke))l(D.createGetAccessorDeclaration(B,Z(C),Je,re(X),U(f,R,Y)));else{L.assertNode(ke,Sf,"The counterpart to a getter should be a setter");let Pe=VI(ke),Ce=Pe&&Re(Pe.name)?vr(Pe.name):void 0;l(D.createSetAccessorDeclaration(B,Z(C),cZ(1,[Ce],[re(X)],1,!1),U(f,R,Y)))}break}case 170:case 171:L.assertIsDefined(v);let ge=q.isUnion()?Uo(q.types,X=>X.getCallSignatures()):q.getCallSignatures();if(!vt(ge))break;if(v.length===1){L.assert(ge.length===1,"One declaration implies one signature");let X=ge[0];ie(R,X,B,Z(C),U(f,R,Y));break}for(let X of ge)ie(R,X,B,Z(C));if(!Y)if(v.length>ge.length){let X=x.getSignatureFromDeclaration(v[v.length-1]);ie(R,X,B,Z(C),U(f,R))}else L.assert(v.length===ge.length,"Declarations and signatures should match count"),l(v9e(x,i,t,ge,Z(C),W&&!!(d&1),B,R,f));break}function ie(le,_e,ge,X,Ve){let we=O9(171,i,le,_e,Ve,X,ge,W&&!!(d&1),t,s);we&&l(we)}function $(){let le;return F&&(le=_A(le,D.createModifiersFromModifierFlags(F))),fe()&&(le=Sn(le,D.createToken(161))),le&&D.createNodeArray(le)}function fe(){return!!(i.program.getCompilerOptions().noImplicitOverride&&S&&B0(S))}function Z(le){return Re(le)&&le.escapedText==="constructor"?D.createComputedPropertyName(D.createStringLiteral(vr(le),R===0)):cc(le,!1)}function U(le,_e,ge){return ge?void 0:cc(le,!1)||lZ(_e)}function re(le){return cc(le,!1)}}function O9(e,t,r,i,o,s,l,f,d,g){let m=t.program,v=m.getTypeChecker(),S=Do(m.getCompilerOptions()),x=Yn(d),A=524545|(r===0?268435456:0),w=v.signatureToSignatureDeclaration(i,e,d,A,sx(t));if(!w)return;let C=x?void 0:w.typeParameters,P=w.parameters,F=x?void 0:w.type;if(g){if(C){let Y=Tl(C,R=>{let ie=R.constraint,$=R.default;if(ie){let fe=l1(ie,S);fe&&(ie=fe.typeNode,cx(g,fe.symbols))}if($){let fe=l1($,S);fe&&($=fe.typeNode,cx(g,fe.symbols))}return D.updateTypeParameterDeclaration(R,R.modifiers,R.name,ie,$)});C!==Y&&(C=it(D.createNodeArray(Y,C.hasTrailingComma),C))}let W=Tl(P,Y=>{let R=x?void 0:Y.type;if(R){let ie=l1(R,S);ie&&(R=ie.typeNode,cx(g,ie.symbols))}return D.updateParameterDeclaration(Y,Y.modifiers,Y.dotDotDotToken,Y.name,x?void 0:Y.questionToken,R,Y.initializer)});if(P!==W&&(P=it(D.createNodeArray(W,P.hasTrailingComma),P)),F){let Y=l1(F,S);Y&&(F=Y.typeNode,cx(g,Y.symbols))}}let B=f?D.createToken(57):void 0,q=w.asteriskToken;if(ms(w))return D.updateFunctionExpression(w,l,w.asteriskToken,zr(s,Re),C,P,F,o??w.body);if(xs(w))return D.updateArrowFunction(w,l,C,P,F,w.equalsGreaterThanToken,o??w.body);if(Nc(w))return D.updateMethodDeclaration(w,l,q,s??D.createIdentifier(""),B,C,P,F,o);if(Jc(w))return D.updateFunctionDeclaration(w,l,w.asteriskToken,zr(s,Re),C,P,F,o??w.body)}function sZ(e,t,r,i,o,s,l){let f=J_(t.sourceFile,t.preferences),d=Do(t.program.getCompilerOptions()),g=sx(t),m=t.program.getTypeChecker(),v=Yn(l),{typeArguments:S,arguments:x,parent:A}=i,w=v?void 0:m.getContextualType(i),C=on(x,$=>Re($)?$.text:br($)&&Re($.name)?$.name.text:void 0),P=v?[]:on(x,$=>m.getTypeAtLocation($)),{argumentTypeNodes:F,argumentTypeParameters:B}=sEe(m,r,P,l,d,void 0,g),q=s?D.createNodeArray(D.createModifiersFromModifierFlags(s)):void 0,W=f3(A)?D.createToken(41):void 0,Y=v?void 0:g9e(m,B,S),R=cZ(x.length,C,F,void 0,v),ie=v||w===void 0?void 0:m.typeToTypeNode(w,l,void 0,g);switch(e){case 171:return D.createMethodDeclaration(q,W,o,void 0,Y,R,ie,lZ(f));case 170:return D.createMethodSignature(q,o,void 0,Y,R,ie===void 0?D.createKeywordTypeNode(157):ie);case 259:return D.createFunctionDeclaration(q,W,o,Y,R,ie,fP(_.Function_not_implemented.message,f));default:L.fail("Unexpected kind")}}function g9e(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(f=>!t.some(d=>{var g;return e.getTypeAtLocation(f)===((g=d[1])==null?void 0:g.argumentType)})),l=i.size+s.length;for(let f=0;i.size<l;f+=1)i.add(aEe(f))}return lo(i.values(),s=>{var l;return D.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function aEe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function N9(e,t,r,i,o,s,l){let f=e.typeToTypeNode(r,i,s,l);if(f&&Mh(f)){let d=l1(f,o);d&&(cx(t,d.symbols),f=d.typeNode)}return cc(f)}function oEe(e){return e.isUnionOrIntersection()?e.types.some(oEe):e.flags&262144}function sEe(e,t,r,i,o,s,l){let f=[],d=new Map;for(let g=0;g<r.length;g+=1){let m=r[g];if(m.isUnionOrIntersection()&&m.types.some(oEe)){let w=aEe(g);f.push(D.createTypeReferenceNode(w)),d.set(w,void 0);continue}let v=e.getBaseTypeOfLiteralType(m),S=N9(e,t,v,i,o,s,l);if(!S)continue;f.push(S);let x=cEe(m),A=m.isTypeParameter()&&m.constraint&&!y9e(m.constraint)?N9(e,t,m.constraint,i,o,s,l):void 0;x&&d.set(x,{argumentType:m,constraint:A})}return{argumentTypeNodes:f,argumentTypeParameters:lo(d.entries())}}function y9e(e){return e.flags&524288&&e.objectFlags===16}function cEe(e){var t;if(e.flags&3145728)for(let r of e.types){let i=cEe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function cZ(e,t,r,i,o){let s=[],l=new Map;for(let f=0;f<e;f++){let d=t?.[f]||`arg${f}`,g=l.get(d);l.set(d,(g||0)+1);let m=D.createParameterDeclaration(void 0,void 0,d+(g||""),i!==void 0&&f>=i?D.createToken(57):void 0,o?void 0:r?.[f]||D.createKeywordTypeNode(157),void 0);s.push(m)}return s}function v9e(e,t,r,i,o,s,l,f,d){let g=i[0],m=i[0].minArgumentCount,v=!1;for(let w of i)m=Math.min(w.minArgumentCount,m),Xl(w)&&(v=!0),w.parameters.length>=g.parameters.length&&(!Xl(w)||Xl(g))&&(g=w);let S=g.parameters.length-(Xl(g)?1:0),x=g.parameters.map(w=>w.name),A=cZ(S,x,void 0,m,!1);if(v){let w=D.createParameterDeclaration(void 0,D.createToken(25),x[S]||"rest",S>=m?D.createToken(57):void 0,D.createArrayTypeNode(D.createKeywordTypeNode(157)),void 0);A.push(w)}return E9e(l,o,s,void 0,A,b9e(i,e,t,r),f,d)}function b9e(e,t,r,i){if(Fn(e)){let o=t.getUnionType(on(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,sx(r))}}function E9e(e,t,r,i,o,s,l,f){return D.createMethodDeclaration(e,void 0,t,r?D.createToken(57):void 0,i,o,s,f||lZ(l))}function lZ(e){return fP(_.Method_not_implemented.message,e)}function fP(e,t){return D.createBlock([D.createThrowStatement(D.createNewExpression(D.createIdentifier("Error"),void 0,[D.createStringLiteral(e,t===0)]))],!0)}function uZ(e,t,r){let i=LI(t);if(!i)return;let o=fZ(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,P9("compilerOptions",D.createObjectLiteralExpression(r.map(([l,f])=>P9(l,f)),!0)));return}let s=o.initializer;if(rs(s))for(let[l,f]of r){let d=fZ(s,l);d===void 0?e.insertNodeAtObjectStart(t,s,P9(l,f)):e.replaceNode(t,d.initializer,f)}}function dZ(e,t,r,i){uZ(e,t,[[r,i]])}function P9(e,t){return D.createPropertyAssignment(D.createStringLiteral(e),t)}function fZ(e,t){return wr(e.properties,r=>yl(r)&&!!r.name&&yo(r.name)&&r.name.text===t)}function l1(e,t){let r,i=$e(e,o,bi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(ib(s)&&s.qualifier){let l=Yd(s.qualifier),f=j7(l.symbol,t),d=f!==l.text?lEe(s.qualifier,D.createIdentifier(f)):s.qualifier;r=Sn(r,l.symbol);let g=On(s.typeArguments,o,bi);return D.createTypeReferenceNode(d,g)}return xn(s,o,Bh)}}function lEe(e,t){return e.kind===79?t:D.createQualifiedName(lEe(e.left,t),e.right)}function cx(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function _Z(e,t){let r=wl(t),i=Vi(e,t.start);for(;i.end<r;)i=i.parent;return i}var pZ,T9e=gt({"src/services/codefixes/helpers.ts"(){"use strict";Fr(),pZ=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(pZ||{})}});function uEe(e,t,r,i,o,s){let l=_Ee(e,t,r,i);if(!l||Ok.isRefactorErrorInfo(l))return;let f=nr.ChangeTracker.fromContext(o),{isStatic:d,isReadonly:g,fieldName:m,accessorName:v,originalName:S,type:x,container:A,declaration:w}=l;pd(m),pd(v),pd(w),pd(A);let C,P;if(Yr(A)){let B=uu(w);if(Cu(e)){let q=D.createModifiersFromModifierFlags(B);C=q,P=q}else C=D.createModifiersFromModifierFlags(A9e(B)),P=D.createModifiersFromModifierFlags(C9e(B));HS(w)&&(P=Qi(Uy(w),P))}w9e(f,e,w,x,m,P);let F=I9e(m,v,x,C,d,A);if(pd(F),pEe(f,e,F,w,A),g){let B=Vm(A);B&&R9e(f,e,B,m.text,S)}else{let B=L9e(m,v,x,C,d,A);pd(B),pEe(f,e,B,w,A)}return f.getChanges()}function S9e(e){return Re(e)||yo(e)}function x9e(e){return Ad(e,e.parent)||Na(e)||yl(e)}function dEe(e,t){return Re(t)?D.createIdentifier(e):D.createStringLiteral(e)}function fEe(e,t,r){let i=t?r.name:D.createThis();return Re(e)?D.createPropertyAccessExpression(i,e):D.createElementAccessExpression(i,D.createStringLiteralFromNode(e))}function A9e(e){return e&=-65,e&=-9,e&16||(e|=4),e}function C9e(e){return e&=-5,e&=-17,e|=8,e}function _Ee(e,t,r,i,o=!0){let s=Vi(e,r),l=r===i&&o,f=jn(s.parent,x9e),d=124;if(!f||!(HX(f.name,e,r,i)||l))return{error:uo(_.Could_not_find_property_for_which_to_generate_accessor)};if(!S9e(f.name))return{error:uo(_.Name_is_not_valid)};if((uu(f)&126975|d)!==d)return{error:uo(_.Can_only_convert_property_with_modifier)};let g=f.name.text,m=DY(g),v=dEe(m?g:i1(`_${g}`,e),f.name),S=dEe(m?i1(g.substring(1),e):g,f.name);return{isStatic:zc(f),isReadonly:jI(f),type:O9e(f,t),container:f.kind===166?f.parent.parent:f.parent,originalName:f.name.text,declaration:f,fieldName:v,accessorName:S,renameAccessor:m}}function I9e(e,t,r,i,o,s){return D.createGetAccessorDeclaration(i,t,[],r,D.createBlock([D.createReturnStatement(fEe(e,o,s))],!0))}function L9e(e,t,r,i,o,s){return D.createSetAccessorDeclaration(i,t,[D.createParameterDeclaration(void 0,void 0,D.createIdentifier("value"),void 0,r)],D.createBlock([D.createExpressionStatement(D.createAssignment(fEe(e,o,s),D.createIdentifier("value")))],!0))}function k9e(e,t,r,i,o,s){let l=D.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function D9e(e,t,r,i){let o=D.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=D.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function w9e(e,t,r,i,o,s){Na(r)?k9e(e,t,r,i,o,s):yl(r)?D9e(e,t,r,o):e.replaceNode(t,r,D.updateParameterDeclaration(r,s,r.dotDotDotToken,Ga(o,Re),r.questionToken,r.type,r.initializer))}function pEe(e,t,r,i,o){Ad(i,i.parent)?e.insertMemberAtStart(t,o,r):yl(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function R9e(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Vs(l)&&l.expression.kind===108&&yo(l.argumentExpression)&&l.argumentExpression.text===o&&YI(l)&&e.replaceNode(t,l.argumentExpression,D.createStringLiteral(i)),br(l)&&l.expression.kind===108&&l.name.text===o&&YI(l)&&e.replaceNode(t,l.name,D.createIdentifier(i)),!Ia(l)&&!Yr(l)&&l.forEachChild(s)})}function O9e(e,t){let r=Mce(e);if(Na(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=DS(r)?r.types:[r];return D.createUnionTypeNode([...s,D.createKeywordTypeNode(155)])}}return r}function mZ(e,t){let r=[];for(;e;){let i=P0(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&wr(s.declarations,Yr);if(!l)break;r.push(l),e=l}return r}var N9e=gt({"src/services/codefixes/generateAccessors.ts"(){"use strict";Fr()}});function P9e(e,t){let r=Gn(t),i=VA(t),o=e.program.getCompilerOptions(),s=[];return s.push(mEe(e,r,t,Xg(i.name,void 0,t.moduleSpecifier,J_(r,e.preferences)))),Rl(o)===1&&s.push(mEe(e,r,t,D.createImportEqualsDeclaration(void 0,!1,i.name,D.createExternalModuleReference(t.moduleSpecifier)))),s}function mEe(e,t,r,i){let o=nr.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return K_(hZ,o,[_.Replace_import_with_0,o[0].textChanges[0].newText])}function M9e(e){let t=e.sourceFile,r=_.This_expression_is_not_callable.code===e.errorCode?210:211,i=jn(Vi(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return hEe(e,o)}function F9e(e){let t=e.sourceFile,r=jn(Vi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?hEe(e,r):[]}function hEe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&Zp(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(Dd(o)||si(i,P9e(e,o)),ot(t)&&!(zl(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=nr.ChangeTracker.with(e,f=>f.replaceNode(s,t,D.createPropertyAccessExpression(t,"default"),{}));i.push(K_(hZ,l,_.Use_synthetic_default_member))}return i}var hZ,G9e=gt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";Fr(),Qa(),hZ="invalidImportSyntax",za({errorCodes:[_.This_expression_is_not_callable.code,_.This_expression_is_not_constructable.code],getCodeActions:M9e}),za({errorCodes:[_.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_.Type_0_does_not_satisfy_the_constraint_1.code,_.Type_0_is_not_assignable_to_type_1.code,_.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_.Type_predicate_0_is_not_assignable_to_1.code,_.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_.Property_0_in_type_1_is_not_assignable_to_type_2.code,_.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:F9e})}});function gEe(e,t){let r=Vi(e,t);if(Re(r)&&Na(r.parent)){let i=Cl(r.parent);if(i)return{type:i,prop:r.parent,isJs:Yn(r.parent)}}}function B9e(e,t){if(t.isJs)return;let r=nr.ChangeTracker.with(e,i=>yEe(i,e.sourceFile,t.prop));return Ma(M9,r,[_.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],F9,_.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function yEe(e,t,r){pd(r);let i=D.updatePropertyDeclaration(r,r.modifiers,r.name,D.createToken(53),r.type,r.initializer);e.replaceNode(t,r,i)}function U9e(e,t){let r=nr.ChangeTracker.with(e,i=>vEe(i,e.sourceFile,t));return Ma(M9,r,[_.Add_undefined_type_to_property_0,t.prop.name.getText()],G9,_.Add_undefined_type_to_all_uninitialized_properties)}function vEe(e,t,r){let i=D.createKeywordTypeNode(155),o=DS(r.type)?r.type.types.concat(i):[r.type,i],s=D.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[D.createJSDocTypeTag(void 0,D.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function V9e(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=EEe(r,t.prop);if(!i)return;let o=nr.ChangeTracker.with(e,s=>bEe(s,e.sourceFile,t.prop,i));return Ma(M9,o,[_.Add_initializer_to_property_0,t.prop.name.getText()],B9,_.Add_initializers_to_all_uninitialized_properties)}function bEe(e,t,r,i){pd(r);let o=D.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function EEe(e,t){return TEe(e,e.getTypeFromTypeNode(t.type))}function TEe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?D.createFalse():D.createTrue();if(t.isStringLiteral())return D.createStringLiteral(t.value);if(t.isNumberLiteral())return D.createNumericLiteral(t.value);if(t.flags&2048)return D.createBigIntLiteral(t.value);if(t.isUnion())return ks(t.types,r=>TEe(e,r));if(t.isClass()){let r=Nh(t.symbol);if(!r||Mr(r,256))return;let i=Vm(r);return i&&i.parameters.length?void 0:D.createNewExpression(D.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return D.createArrayLiteralExpression()}var M9,F9,G9,B9,gZ,j9e=gt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";Fr(),Qa(),M9="strictClassInitialization",F9="addMissingPropertyDefiniteAssignmentAssertions",G9="addMissingPropertyUndefinedType",B9="addMissingPropertyInitializer",gZ=[_.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],za({errorCodes:gZ,getCodeActions:function(t){let r=gEe(t.sourceFile,t.span.start);if(!r)return;let i=[];return Sn(i,U9e(t,r)),Sn(i,B9e(t,r)),Sn(i,V9e(t,r)),i},fixIds:[F9,G9,B9],getAllCodeActions:e=>ns(e,gZ,(t,r)=>{let i=gEe(r.file,r.start);if(i)switch(e.fixId){case F9:yEe(t,r.file,i.prop);break;case G9:vEe(t,r.file,i);break;case B9:let o=e.program.getTypeChecker(),s=EEe(o,i.prop);if(!s)return;bEe(t,r.file,i.prop,s);break;default:L.fail(JSON.stringify(e.fixId))}})})}});function SEe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:f}=r;e.replaceNode(t,l,o&&!i?D.createImportEqualsDeclaration(void 0,!1,o,D.createExternalModuleReference(f)):D.createImportDeclaration(void 0,D.createImportClause(!1,o,s),f,void 0))}function xEe(e,t,r){let{parent:i}=Vi(e,r);if(!qu(i,!0))throw L.failBadSyntaxKind(i);let o=Ga(i.parent,wi),s=zr(o.name,Re),l=cm(o.name)?H9e(o.name):void 0;if(s||l)return{allowSyntheticDefaults:wT(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:Ga(o.parent.parent,Bc),required:Vo(i.arguments)}}function H9e(e){let t=[];for(let r of e.elements){if(!Re(r.name)||r.initializer)return;t.push(D.createImportSpecifier(!1,zr(r.propertyName,Re),r.name))}if(t.length)return D.createNamedImports(t)}var U9,yZ,W9e=gt({"src/services/codefixes/requireInTs.ts"(){"use strict";Fr(),Qa(),U9="requireInTs",yZ=[_.require_call_may_be_converted_to_an_import.code],za({errorCodes:yZ,getCodeActions(e){let t=xEe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=nr.ChangeTracker.with(e,i=>SEe(i,e.sourceFile,t));return[Ma(U9,r,_.Convert_require_to_import,U9,_.Convert_all_require_to_import)]},fixIds:[U9],getAllCodeActions:e=>ns(e,yZ,(t,r)=>{let i=xEe(r.file,e.program,r.start);i&&SEe(t,e.sourceFile,i)})})}});function AEe(e,t){let r=Vi(e,t);if(!Re(r))return;let{parent:i}=r;if(Nl(i)&&um(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(nv(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function CEe(e,t,r,i){e.replaceNode(t,r.importNode,Xg(r.name,void 0,r.moduleSpecifier,J_(t,i)))}var V9,vZ,z9e=gt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";Fr(),Qa(),V9="useDefaultImport",vZ=[_.Import_may_be_converted_to_a_default_import.code],za({errorCodes:vZ,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=AEe(t,r);if(!i)return;let o=nr.ChangeTracker.with(e,s=>CEe(s,t,i,e.preferences));return[Ma(V9,o,_.Convert_to_default_import,V9,_.Convert_all_to_default_imports)]},fixIds:[V9],getAllCodeActions:e=>ns(e,vZ,(t,r)=>{let i=AEe(r.file,r.start);i&&CEe(t,r.file,i,e.preferences)})})}});function IEe(e,t,r){let i=zr(Vi(t,r.start),Vf);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,D.createBigIntLiteral(o))}var j9,bZ,J9e=gt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";Fr(),Qa(),j9="useBigintLiteral",bZ=[_.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],za({errorCodes:bZ,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>IEe(i,t.sourceFile,t.span));if(r.length>0)return[Ma(j9,r,_.Convert_to_a_bigint_numeric_literal,j9,_.Convert_all_to_bigint_numeric_literals)]},fixIds:[j9],getAllCodeActions:e=>ns(e,bZ,(t,r)=>IEe(t,r.file,r))})}});function LEe(e,t){let r=Vi(e,t);return L.assert(r.kind===100,"This token should be an ImportKeyword"),L.assert(r.parent.kind===202,"Token parent should be an ImportType"),r.parent}function kEe(e,t,r){let i=D.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var DEe,H9,EZ,K9e=gt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";Fr(),Qa(),DEe="fixAddModuleReferTypeMissingTypeof",H9=DEe,EZ=[_.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],za({errorCodes:EZ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=LEe(r,i.start),s=nr.ChangeTracker.with(t,l=>kEe(l,r,o));return[Ma(H9,s,_.Add_missing_typeof,H9,_.Add_missing_typeof)]},fixIds:[H9],getAllCodeActions:e=>ns(e,EZ,(t,r)=>kEe(t,e.sourceFile,LEe(r.file,r.start)))})}});function wEe(e,t){let o=Vi(e,t).parent.parent;if(!(!ar(o)&&(o=o.parent,!ar(o)))&&rc(o.operatorToken))return o}function REe(e,t,r){let i=q9e(r);i&&e.replaceNode(t,r,D.createJsxFragment(D.createJsxOpeningFragment(),i,D.createJsxJsxClosingFragment()))}function q9e(e){let t=[],r=e;for(;;)if(ar(r)&&rc(r.operatorToken)&&r.operatorToken.kind===27){if(t.push(r.left),Pw(r.right))return t.push(r.right),t;if(ar(r.right)){r=r.right;continue}else return}else return}var W9,TZ,X9e=gt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";Fr(),Qa(),W9="wrapJsxInFragment",TZ=[_.JSX_expressions_must_have_one_parent_element.code],za({errorCodes:TZ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=wEe(r,i.start);if(!o)return;let s=nr.ChangeTracker.with(t,l=>REe(l,r,o));return[Ma(W9,s,_.Wrap_in_JSX_fragment,W9,_.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[W9],getAllCodeActions:e=>ns(e,TZ,(t,r)=>{let i=wEe(e.sourceFile,r.start);i&&REe(t,e.sourceFile,i)})})}});function OEe(e,t){let r=Vi(e,t),i=zr(r.parent.parent,kS);if(!i)return;let o=ku(i.parent)?i.parent:zr(i.parent.parent,Ep);if(o)return{indexSignature:i,container:o}}function Y9e(e,t){return D.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function NEe(e,t,{indexSignature:r,container:i}){let s=(ku(i)?i.members:i.type.members).filter(m=>!kS(m)),l=Vo(r.parameters),f=D.createTypeParameterDeclaration(void 0,Ga(l.name,Re),l.type),d=D.createMappedTypeNode(jI(r)?D.createModifier(146):void 0,f,void 0,r.questionToken,r.type,void 0),g=D.createIntersectionTypeNode([...NI(i),d,...s.length?[D.createTypeLiteralNode(s)]:Je]);e.replaceNode(t,i,Y9e(i,g))}var z9,SZ,$9e=gt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";Fr(),Qa(),z9="fixConvertToMappedObjectType",SZ=[_.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],za({errorCodes:SZ,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=OEe(r,i.start);if(!o)return;let s=nr.ChangeTracker.with(t,f=>NEe(f,r,o)),l=vr(o.container.name);return[Ma(z9,s,[_.Convert_0_to_mapped_object_type,l],z9,[_.Convert_0_to_mapped_object_type,l])]},fixIds:[z9],getAllCodeActions:e=>ns(e,SZ,(t,r)=>{let i=OEe(r.file,r.start);i&&NEe(t,r.file,i)})})}}),xZ,PEe,Q9e=gt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";Fr(),Qa(),xZ="removeAccidentalCallParentheses",PEe=[_.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],za({errorCodes:PEe,getCodeActions(e){let t=jn(Vi(e.sourceFile,e.span.start),Pa);if(!t)return;let r=nr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[K_(xZ,r,_.Remove_parentheses)]},fixIds:[xZ]})}});function MEe(e,t,r){let i=zr(Vi(t,r.start),f=>f.kind===133),o=i&&zr(i.parent,v2);if(!o)return;let s=o;if(ud(o.parent)){let f=QI(o.expression,!1);if(Re(f)){let d=el(o.parent.pos,t);d&&d.kind!==103&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var J9,AZ,Z9e=gt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";Fr(),Qa(),J9="removeUnnecessaryAwait",AZ=[_.await_has_no_effect_on_the_type_of_this_expression.code],za({errorCodes:AZ,getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>MEe(i,t.sourceFile,t.span));if(r.length>0)return[Ma(J9,r,_.Remove_unnecessary_await,J9,_.Remove_all_unnecessary_uses_of_await)]},fixIds:[J9],getAllCodeActions:e=>ns(e,AZ,(t,r)=>MEe(t,r.file,r))})}});function FEe(e,t){return jn(Vi(e,t.start),gl)}function GEe(e,t,r){if(!t)return;let i=L.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,D.updateImportDeclaration(t,t.modifiers,D.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(r.sourceFile,t,D.createImportDeclaration(void 0,D.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.assertClause))}var CZ,K9,eGe=gt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";Fr(),Qa(),CZ=[_.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],K9="splitTypeOnlyImport",za({errorCodes:CZ,fixIds:[K9],getCodeActions:function(t){let r=nr.ChangeTracker.with(t,i=>GEe(i,FEe(t.sourceFile,t.span),t));if(r.length)return[Ma(K9,r,_.Split_into_two_separate_import_declarations,K9,_.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>ns(e,CZ,(t,r)=>{GEe(t,FEe(e.sourceFile,r),e)})})}});function BEe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(Vi(e,t));if(s===void 0)return;let l=zr((i=s?.valueDeclaration)==null?void 0:i.parent,pu);if(l===void 0)return;let f=Yo(l,85,e);if(f!==void 0)return{symbol:s,token:f}}function UEe(e,t,r){e.replaceNode(t,r,D.createToken(119))}var q9,IZ,tGe=gt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";Fr(),Qa(),q9="fixConvertConstToLet",IZ=[_.Cannot_assign_to_0_because_it_is_a_constant.code],za({errorCodes:IZ,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=BEe(r,i.start,o);if(s===void 0)return;let l=nr.ChangeTracker.with(t,f=>UEe(f,r,s.token));return[D$(q9,l,_.Convert_const_to_let,q9,_.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return ix(nr.ChangeTracker.with(e,i=>{ax(e,IZ,o=>{let s=BEe(o.file,o.start,t);if(s&&V_(r,$a(s.symbol)))return UEe(i,o.file,s.token)})}))},fixIds:[q9]})}});function VEe(e,t,r){let i=Vi(e,t);return i.kind===26&&i.parent&&(rs(i.parent)||fu(i.parent))?{node:i}:void 0}function jEe(e,t,{node:r}){let i=D.createToken(27);e.replaceNode(t,r,i)}var X9,HEe,LZ,nGe=gt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";Fr(),Qa(),X9="fixExpectedComma",HEe=_._0_expected.code,LZ=[HEe],za({errorCodes:LZ,getCodeActions(e){let{sourceFile:t}=e,r=VEe(t,e.span.start,e.errorCode);if(!r)return;let i=nr.ChangeTracker.with(e,o=>jEe(o,t,r));return[Ma(X9,i,[_.Change_0_to_1,";",","],X9,[_.Change_0_to_1,";",","])]},fixIds:[X9],getAllCodeActions:e=>ns(e,LZ,(t,r)=>{let i=VEe(r.file,r.start,r.code);i&&jEe(t,e.sourceFile,i)})})}});function WEe(e,t,r,i,o){let s=Vi(t,r.start);if(!Re(s)||!Pa(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),f=l.getSymbolAtLocation(s),d=f?.valueDeclaration;if(!d||!ha(d)||!z0(d.parent.parent)||o?.has(d))return;o?.add(d);let g=rGe(d.parent.parent);if(vt(g)){let m=g[0],v=!DS(m)&&!wS(m)&&wS(D.createUnionTypeNode([m,D.createKeywordTypeNode(114)]).types[0]);v&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,v?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),v=m?.parameters[0],S=v&&l.getTypeOfSymbolAtLocation(v,d.parent.parent);Yn(d)?(!S||S.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,xo(t.text,d.parent.parent.pos),"/** @type {Promise<void>} */(")):(!S||S.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"<void>")}}function rGe(e){var t;if(Yn(e)){if(ud(e.parent)){let r=(t=x0(e.parent))==null?void 0:t.typeExpression.type;if(r&&m_(r)&&Re(r.typeName)&&vr(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var zEe,kZ,DZ,iGe=gt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";Fr(),Qa(),zEe="addVoidToPromise",kZ="addVoidToPromise",DZ=[_.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],za({errorCodes:DZ,fixIds:[kZ],getCodeActions(e){let t=nr.ChangeTracker.with(e,r=>WEe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[Ma(zEe,t,_.Add_void_to_Promise_resolved_without_a_value,kZ,_.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return ns(e,DZ,(t,r)=>WEe(t,r.file,r,e.program,new Set))}})}}),gu={};Mo(gu,{PreserveOptionalFlags:()=>pZ,addNewNodeForMemberSymbol:()=>iEe,codeFixAll:()=>ns,createCodeFixAction:()=>Ma,createCodeFixActionMaybeFixAll:()=>D$,createCodeFixActionWithoutFixAll:()=>K_,createCombinedCodeActions:()=>ix,createFileTextChanges:()=>_ve,createImportAdder:()=>s1,createImportSpecifierResolver:()=>v7e,createJsonPropertyAssignment:()=>P9,createMissingMemberNodes:()=>oZ,createSignatureDeclarationFromCallExpression:()=>sZ,createSignatureDeclarationFromSignature:()=>O9,createStubbedBody:()=>fP,eachDiagnostic:()=>ax,findAncestorMatchingSpan:()=>_Z,findJsonProperty:()=>fZ,generateAccessorFromProperty:()=>uEe,getAccessorConvertiblePropertyAtPosition:()=>_Ee,getAllFixes:()=>nFe,getAllSupers:()=>mZ,getArgumentTypesAndTypeParameters:()=>sEe,getFixes:()=>tFe,getImportCompletionAction:()=>b7e,getImportKind:()=>rQ,getNoopSymbolTrackerWithResolver:()=>sx,getPromoteTypeOnlyCompletionAction:()=>E7e,getSupportedErrorCodes:()=>Z3e,importFixName:()=>lQ,importSymbols:()=>cx,moduleSpecifierToValidIdentifier:()=>cQ,moduleSymbolToValidIdentifier:()=>sQ,parameterShouldGetTypeFromJSDoc:()=>Rve,registerCodeFix:()=>za,setJsonCompilerOptionValue:()=>dZ,setJsonCompilerOptionValues:()=>uZ,tryGetAutoImportableReferenceFromTypeNode:()=>l1,typeToAutoImportableTypeNode:()=>N9});var Qa=gt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";rFe(),iFe(),aFe(),cFe(),_Fe(),gFe(),yFe(),vFe(),bFe(),xFe(),NFe(),MFe(),KFe(),d7e(),f7e(),p7e(),m7e(),h7e(),y7e(),V7e(),W7e(),K7e(),q7e(),X7e(),Q7e(),t5e(),i5e(),l5e(),v5e(),E5e(),T5e(),x5e(),A5e(),C5e(),I5e(),k5e(),D5e(),w5e(),R5e(),O5e(),P5e(),G5e(),j5e(),Y5e(),Q5e(),Z5e(),n9e(),r9e(),a9e(),o9e(),p9e(),m9e(),h9e(),T9e(),N9e(),G9e(),j9e(),W9e(),z9e(),J9e(),K9e(),X9e(),$9e(),Q9e(),Z9e(),eGe(),tGe(),nGe(),iGe()}});function aGe(e){return!!(e.kind&1)}function oGe(e){return!!(e.kind&2)}function _P(e){return!!(e&&e.kind&4)}function eC(e){return!!(e&&e.kind===32)}function sGe(e){return _P(e)||eC(e)||wZ(e)}function cGe(e){return(_P(e)||eC(e))&&!!e.isFromPackageJson}function lGe(e){return!!(e.kind&8)}function uGe(e){return!!(e.kind&16)}function JEe(e){return!!(e&&e.kind&64)}function KEe(e){return!!(e&&e.kind&128)}function dGe(e){return!!(e&&e.kind&256)}function wZ(e){return!!(e&&e.kind&512)}function qEe(e,t,r,i,o,s,l,f,d){var g,m,v;let S=Ms(),x=l||bS($s(i.getCompilerOptions())),A=!1,w=0,C=0,P=0,F=0,B=d({tryResolve:W,skippedAny:()=>A,resolvedAny:()=>C>0,resolvedBeyondLimit:()=>C>iG}),q=F?` (${(P/F*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${C} module specifiers, plus ${w} ambient and ${P} from cache${q}`),(m=t.log)==null||m.call(t,`${e}: response is ${A?"incomplete":"complete"}`),(v=t.log)==null||v.call(t,`${e}: ${Ms()-S}`),B;function W(Y,R){if(R){let Z=r.getModuleSpecifierForBestExportInfo(Y,o,f);return Z&&w++,Z||"failed"}let ie=x||s.allowIncompleteCompletions&&C<iG,$=!ie&&s.allowIncompleteCompletions&&F<jZ,fe=ie||$?r.getModuleSpecifierForBestExportInfo(Y,o,f,$):void 0;return(!ie&&!$||$&&!fe)&&(A=!0),C+=fe?.computedWithoutCacheCount||0,P+=Y.length-(fe?.computedWithoutCacheCount||0),$&&F++,fe||(x?"failed":"skipped")}}function fGe(e,t,r,i,o,s,l,f,d,g,m=!1){var v;let{previousToken:S}=Q9(o,i);if(l&&!n1(i,o,S)&&!JGe(i,l,S,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;let x=t.getCompilerOptions(),A=s.allowIncompleteCompletions?(v=e.getIncompleteCompletionsCache)==null?void 0:v.call(e):void 0;if(A&&f===3&&S&&Re(S)){let P=_Ge(A,i,S,t,e,s,d,o);if(P)return P}else A?.clear();let w=aG.getStringLiteralCompletions(i,o,S,x,e,t,r,s,m);if(w)return w;if(S&&hI(S.parent)&&(S.kind===81||S.kind===86||S.kind===79))return wGe(S.parent);let C=iTe(t,r,i,x,o,s,void 0,e,g,d);if(C)switch(C.kind){case 0:let P=gGe(i,e,t,x,r,C,s,g,o,m);return P?.isIncomplete&&A?.set(P),P;case 1:return RZ(xb.getJSDocTagNameCompletions());case 2:return RZ(xb.getJSDocTagCompletions());case 3:return RZ(xb.getJSDocParameterNameCompletions(C.tag));case 4:return mGe(C.keywordCompletions,C.isNewIdentifierLocation);default:return L.assertNever(C)}}function pP(e,t){var r,i;let o=XD(e.sortText,t.sortText);return o===0&&(o=XD(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=BR(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function XEe(e){return!!e?.moduleSpecifier}function _Ge(e,t,r,i,o,s,l,f){let d=e.get();if(!d)return;let g=ef(t,f),m=r.text.toLowerCase(),v=YN(t,o,i,s,l),S=qEe("continuePreviousIncompleteResponse",o,gu.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,TS(r),x=>{let A=Zi(d.entries,w=>{var C;if(!w.hasAction||!w.source||!w.data||XEe(w.data))return w;if(!gTe(w.name,m))return;let{origin:P}=L.checkDefined(aTe(w.name,w.data,i,o)),F=v.get(t.path,w.data.exportMapKey),B=F&&x.tryResolve(F,!fl(u_(P.moduleSymbol.name)));if(B==="skipped")return w;if(!B||B==="failed"){(C=o.log)==null||C.call(o,`Unexpected failure resolving auto import for '${w.name}' from '${w.source}'`);return}let q={...P,kind:32,moduleSpecifier:B.moduleSpecifier};return w.data=tTe(q),w.source=PZ(q),w.sourceDisplay=[tf(q.moduleSpecifier)],w});return x.skippedAny()||(d.isIncomplete=void 0),A});return d.entries=S,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=$Ee(g),d}function RZ(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function pGe(e){return{name:Xa(e),kind:"keyword",kindModifiers:"",sortText:Pl.GlobalsOrKeywords}}function mGe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function YEe(e,t,r){return{kind:4,keywordCompletions:oTe(e,t),isNewIdentifierLocation:r}}function hGe(e){switch(e){case 154:return 8;default:L.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function $Ee(e){return e?.kind===79?Du(e):void 0}function gGe(e,t,r,i,o,s,l,f,d,g){let{symbols:m,contextToken:v,completionKind:S,isInSnippetScope:x,isNewIdentifierLocation:A,location:w,propertyAccessToConvert:C,keywordFilters:P,symbolToOriginInfoMap:F,recommendedCompletion:B,isJsxInitializer:q,isTypeOnlyLocation:W,isJsxIdentifierExpected:Y,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:ie,importStatementCompletion:$,insideJsDocTagTypeExpression:fe,symbolToSortTextMap:Z,hasUnresolvedAutoImports:U}=s,re=s.literals,le=r.getTypeChecker();if(RR(e.scriptKind)===1){let ke=vGe(w,e);if(ke)return ke}let _e=jn(v,CL);if(_e&&(Pue(v)||AT(v,_e.expression))){let ke=J7(le,_e.parent.clauses);re=re.filter(Pe=>!ke.hasValue(Pe)),m.forEach((Pe,Ce)=>{if(Pe.valueDeclaration&&q0(Pe.valueDeclaration)){let Ie=le.getConstantValue(Pe.valueDeclaration);Ie!==void 0&&ke.hasValue(Ie)&&(F[Ce]={kind:256})}})}let ge=MU(),X=QEe(e,i);if(X&&!A&&(!m||m.length===0)&&P===0)return;let Ve=MZ(m,ge,void 0,v,w,d,e,t,r,Do(i),o,S,l,i,f,W,C,Y,q,$,B,F,Z,Y,R,g);if(P!==0)for(let ke of oTe(P,!fe&&Cu(e)))(W&&ik(lT(ke.name))||!Ve.has(ke.name))&&(Ve.add(ke.name),Ny(ge,ke,pP,!0));for(let ke of VGe(v,d))Ve.has(ke.name)||(Ve.add(ke.name),Ny(ge,ke,pP,!0));for(let ke of re){let Pe=EGe(e,l,ke);Ve.add(Pe.name),Ny(ge,Pe,pP,!0)}X||bGe(e,w.pos,Ve,Do(i),ge);let we;if(l.includeCompletionsWithInsertText&&v&&!R&&!ie&&(we=jn(v,hO))){let ke=ZEe(we,e,l,i,t,r,f);ke&&ge.push(ke.entry)}return{flags:s.flags,isGlobalCompletion:x,isIncomplete:l.allowIncompleteCompletions&&U?!0:void 0,isMemberCompletion:yGe(S),isNewIdentifierLocation:A,optionalReplacementSpan:$Ee(w),entries:ge}}function QEe(e,t){return!Cu(e)||!!HR(e,t)}function ZEe(e,t,r,i,o,s,l){let f=e.clauses,d=s.getTypeChecker(),g=d.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Ji(g.types,m=>m.isLiteral())){let m=J7(d,f),v=Do(i),S=J_(t,r),x=gu.createImportAdder(t,s,r,o),A=[];for(let W of g.types)if(W.flags&1024){L.assert(W.symbol,"An enum member type should have a symbol"),L.assert(W.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let Y=W.symbol.valueDeclaration&&d.getConstantValue(W.symbol.valueDeclaration);if(Y!==void 0){if(m.hasValue(Y))continue;m.addValue(Y)}let R=gu.typeToAutoImportableTypeNode(d,x,W,e,v);if(!R)return;let ie=Y9(R,v,S);if(!ie)return;A.push(ie)}else if(!m.hasValue(W.value))switch(typeof W.value){case"object":A.push(W.value.negative?D.createPrefixUnaryExpression(40,D.createBigIntLiteral({negative:!1,base10Value:W.value.base10Value})):D.createBigIntLiteral(W.value));break;case"number":A.push(W.value<0?D.createPrefixUnaryExpression(40,D.createNumericLiteral(-W.value)):D.createNumericLiteral(W.value));break;case"string":A.push(D.createStringLiteral(W.value,S===0));break}if(A.length===0)return;let w=on(A,W=>D.createCaseClause(W,[])),C=bb(o,l?.options),P=NZ({removeComments:!0,module:i.module,target:i.target,newLine:XN(C)}),F=l?W=>P.printAndFormatNode(4,W,t,l):W=>P.printNode(4,W,t),B=on(w,(W,Y)=>r.includeCompletionsWithSnippetText?`${F(W)}$${Y+1}`:`${F(W)}`).join(C);return{entry:{name:`${P.printNode(4,w[0],t)} ...`,kind:"",sortText:Pl.GlobalsOrKeywords,insertText:B,hasAction:x.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:x}}}function Y9(e,t,r){switch(e.kind){case 180:let i=e.typeName;return $9(i,t,r);case 196:let o=Y9(e.objectType,t,r),s=Y9(e.indexType,t,r);return o&&s&&D.createElementAccessExpression(o,s);case 198:let l=e.literal;switch(l.kind){case 10:return D.createStringLiteral(l.text,r===0);case 8:return D.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 193:let f=Y9(e.type,t,r);return f&&(Re(f)?f:D.createParenthesizedExpression(f));case 183:return $9(e.exprName,t,r);case 202:L.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function $9(e,t,r){if(Re(e))return e;let i=Gi(e.right.escapedText);return HW(i,t)?D.createPropertyAccessExpression($9(e.left,t,r),i):D.createElementAccessExpression($9(e.left,t,r),D.createStringLiteral(i,r===0))}function yGe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function vGe(e,t){let r=jn(e,i=>{switch(i.kind){case 284:return!0;case 43:case 31:case 79:case 208:return!1;default:return"quit"}});if(r){let i=!!Yo(r,31,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),f=Du(r.tagName),d={name:l,kind:"class",kindModifiers:void 0,sortText:Pl.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:f,entries:[d]}}}function bGe(e,t,r,i,o){p$(e).forEach((s,l)=>{if(s===t)return;let f=Gi(l);!r.has(f)&&i_(f,i)&&(r.add(f),Ny(o,{name:f,kind:"warning",kindModifiers:"",sortText:Pl.JavascriptIdentifiers,isFromUncheckedFile:!0},pP))})}function OZ(e,t,r){return typeof r=="object"?j0(r)+"n":Ta(r)?ck(e,t,r):JSON.stringify(r)}function EGe(e,t,r){return{name:OZ(e,t,r),kind:"string",kindModifiers:"",sortText:Pl.LocationPriority}}function TGe(e,t,r,i,o,s,l,f,d,g,m,v,S,x,A,w,C,P,F,B,q,W,Y,R){let ie,$=eY(r),fe,Z,U=PZ(v),re,le,_e,ge=d.getTypeChecker(),X=v&&uGe(v),Ve=v&&oGe(v)||m;if(v&&aGe(v))ie=m?`this${X?"?.":""}[${nTe(l,F,g)}]`:`this${X?"?.":"."}${g}`;else if((Ve||X)&&x){ie=Ve?m?`[${nTe(l,F,g)}]`:`[${g}]`:g,(X||x.questionDotToken)&&(ie=`?.${ie}`);let we=Yo(x,24,l)||Yo(x,28,l);if(!we)return;let ke=na(g,x.name.text)?x.name.end:we.end;$=Wc(we.getStart(l),ke)}if(A&&(ie===void 0&&(ie=g),ie=`{${ie}}`,typeof A!="boolean"&&($=Du(A,l))),v&&lGe(v)&&x){ie===void 0&&(ie=g);let we=el(x.pos,l),ke="";we&&N7(we.end,we.parent,l)&&(ke=";"),ke+=`(await ${x.expression.getText()})`,ie=m?`${ke}${ie}`:`${ke}${X?"?.":"."}${ie}`;let Ce=zr(x.parent,v2)?x.parent:x.expression;$=Wc(Ce.getStart(l),x.end)}if(eC(v)&&(re=[tf(v.moduleSpecifier)],w&&({insertText:ie,replacementSpan:$}=kGe(g,w,v,C,l,P,F),Z=F.includeCompletionsWithSnippetText?!0:void 0)),v?.kind===64&&(le=!0),F.includeCompletionsWithClassMemberSnippets&&F.includeCompletionsWithInsertText&&B===3&&SGe(e,o,l)){let we;({insertText:ie,isSnippet:Z,importAdder:we,replacementSpan:$}=eTe(f,d,P,F,g,e,o,s,i,q)),t=Pl.ClassMemberSnippets,we?.hasFixes()&&(le=!0,U="ClassMemberSnippet/")}if(v&&KEe(v)&&({insertText:ie,isSnippet:Z,labelDetails:_e}=v,F.useLabelDetailsInCompletionEntries||(g=g+_e.detail,_e=void 0),U="ObjectLiteralMethodSnippet/",t=Pl.SortBelow(t)),W&&!Y&&F.includeCompletionsWithSnippetText&&F.jsxAttributeCompletionStyle&&F.jsxAttributeCompletionStyle!=="none"&&!(Sp(o.parent)&&o.parent.initializer)){let we=F.jsxAttributeCompletionStyle==="braces",ke=ge.getTypeOfSymbolAtLocation(e,o);F.jsxAttributeCompletionStyle==="auto"&&!(ke.flags&528)&&!(ke.flags&1048576&&wr(ke.types,Pe=>!!(Pe.flags&528)))&&(ke.flags&402653316||ke.flags&1048576&&Ji(ke.types,Pe=>!!(Pe.flags&402686084||Nhe(Pe)))?(ie=`${OT(g)}=${ck(l,F,"$1")}`,Z=!0):we=!0),we&&(ie=`${OT(g)}={$1}`,Z=!0)}if(!(ie!==void 0&&!F.includeCompletionsWithInsertText))return(_P(v)||eC(v))&&(fe=tTe(v),le=!w),{name:g,kind:$g.getSymbolKind(ge,e,o),kindModifiers:$g.getSymbolModifiers(ge,e),sortText:t,source:U,hasAction:le?!0:void 0,isRecommended:DGe(e,S,ge)||void 0,insertText:ie,replacementSpan:$,sourceDisplay:re,labelDetails:_e,isSnippet:Z,isPackageJsonImport:cGe(v)||void 0,isImportStatementCompletion:!!w||void 0,data:fe,...R?{symbol:e}:void 0}}function SGe(e,t,r){return Yn(t)?!1:!!(e.flags&106500)&&(Yr(t)||t.parent&&t.parent.parent&&_l(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&Yr(t.parent.parent)||t.parent&&A2(t)&&Yr(t.parent))}function eTe(e,t,r,i,o,s,l,f,d,g){let m=jn(l,Yr);if(!m)return{insertText:o};let v,S,x=o,A=t.getTypeChecker(),w=l.getSourceFile(),C=NZ({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:XN(bb(e,g?.options))}),P=gu.createImportAdder(w,t,i,e),F;if(i.includeCompletionsWithSnippetText){v=!0;let ie=D.createEmptyStatement();F=D.createBlock([ie],!0),Ez(ie,{kind:0,order:0})}else F=D.createBlock([],!0);let B=0,{modifiers:q,span:W}=xGe(d,w,f),Y=!!(q&256),R=[];return gu.addNewNodeForMemberSymbol(s,m,w,{program:t,host:e},i,P,ie=>{let $=0;Y&&($|=256),_l(ie)&&A.getMemberOverrideModifierStatus(m,ie,s)===1&&($|=16384),R.length||(B=ie.modifierFlagsCache|$|q),ie=D.updateModifiers(ie,B),R.push(ie)},F,gu.PreserveOptionalFlags.Property,Y),R.length&&(S=W,g?x=C.printAndFormatSnippetList(131073,D.createNodeArray(R),w,g):x=C.printSnippetList(131073,D.createNodeArray(R),w)),{insertText:x,isSnippet:v,importAdder:P,replacementSpan:S}}function xGe(e,t,r){if(!e||Gs(t,r).line>Gs(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s;return(s=AGe(e))&&(i|=gS(s),o=Du(e)),Na(e.parent)&&(i|=im(e.parent.modifiers)&126975,o=Du(e.parent)),{modifiers:i,span:o}}function AGe(e){if(Ha(e))return e.kind;if(Re(e)){let t=nb(e);if(t&&Rg(t))return t}}function CGe(e,t,r,i,o,s,l,f){let d=l.includeCompletionsWithSnippetText||void 0,g=t,m=r.getSourceFile(),v=IGe(e,r,m,i,o,l);if(!v)return;let S=NZ({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:XN(bb(o,f?.options))});f?g=S.printAndFormatSnippetList(80,D.createNodeArray([v],!0),m,f):g=S.printSnippetList(80,D.createNodeArray([v],!0),m);let x=nE({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),A=D.createMethodSignature(void 0,"",v.questionToken,v.typeParameters,v.parameters,v.type),w={detail:x.printNode(4,A,m)};return{isSnippet:d,insertText:g,labelDetails:w}}function IGe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let f=i.getTypeChecker(),d=l[0],g=cc(sa(d),!1),m=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),S=33554432|(J_(r,s)===0?268435456:0);switch(d.kind){case 168:case 169:case 170:case 171:{let x=m.flags&1048576&&m.types.length<10?f.getUnionType(m.types,2):m;if(x.flags&1048576){let F=Pr(x.types,B=>f.getSignaturesOfType(B,0).length>0);if(F.length===1)x=F[0];else return}if(f.getSignaturesOfType(x,0).length!==1)return;let w=f.typeToTypeNode(x,t,S,gu.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!w||!Jm(w))return;let C;if(s.includeCompletionsWithSnippetText){let F=D.createEmptyStatement();C=D.createBlock([F],!0),Ez(F,{kind:0,order:0})}else C=D.createBlock([],!0);let P=w.parameters.map(F=>D.createParameterDeclaration(void 0,F.dotDotDotToken,F.name,void 0,void 0,F.initializer));return D.createMethodDeclaration(void 0,void 0,g,void 0,void 0,P,void 0,C)}default:return}}function NZ(e){let t,r=nr.createWriter(db(e)),i=nE(e,r),o={...r,write:S=>s(S,()=>r.write(S)),nonEscapingWrite:r.write,writeLiteral:S=>s(S,()=>r.writeLiteral(S)),writeStringLiteral:S=>s(S,()=>r.writeStringLiteral(S)),writeSymbol:(S,x)=>s(S,()=>r.writeSymbol(S,x)),writeParameter:S=>s(S,()=>r.writeParameter(S)),writeComment:S=>s(S,()=>r.writeComment(S)),writeProperty:S=>s(S,()=>r.writeProperty(S))};return{printSnippetList:l,printAndFormatSnippetList:d,printNode:g,printAndFormatNode:v};function s(S,x){let A=OT(S);if(A!==S){let w=r.getTextPos();x();let C=r.getTextPos();t=Sn(t||(t=[]),{newText:A,span:{start:w,length:C-w}})}else x()}function l(S,x,A){let w=f(S,x,A);return t?nr.applyChanges(w,t):w}function f(S,x,A){return t=void 0,o.clear(),i.writeList(S,x,A,o),o.getText()}function d(S,x,A,w){let C={text:f(S,x,A),getLineAndCharacterOfPosition(q){return Gs(this,q)}},P=z7(w,A),F=Uo(x,q=>{let W=nr.assignPositionsToNode(q);return tl.formatNodeGivenIndentation(W,C,A.languageVariant,0,0,{...w,options:P})}),B=t?Ag(Qi(F,t),(q,W)=>f8(q.span,W.span)):F;return nr.applyChanges(C.text,B)}function g(S,x,A){let w=m(S,x,A);return t?nr.applyChanges(w,t):w}function m(S,x,A){return t=void 0,o.clear(),i.writeNode(S,x,A,o),o.getText()}function v(S,x,A,w){let C={text:m(S,x,A),getLineAndCharacterOfPosition(W){return Gs(this,W)}},P=z7(w,A),F=nr.assignPositionsToNode(x),B=tl.formatNodeGivenIndentation(F,C,A.languageVariant,0,0,{...w,options:P}),q=t?Ag(Qi(B,t),(W,Y)=>f8(W.span,Y.span)):B;return nr.applyChanges(C.text,q)}}function tTe(e){let t=e.fileName?void 0:u_(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return eC(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:u_(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function LGe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return XEe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function kGe(e,t,r,i,o,s,l){let f=t.replacementSpan,d=ck(o,l,OT(r.moduleSpecifier)),g=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",v=gu.getImportKind(o,g,s,!0),S=t.couldBeTypeOnlyImportSpecifier,x=t.isTopLevelTypeOnly?` ${Xa(154)} `:" ",A=S?`${Xa(154)} `:"",w=i?";":"";switch(v){case 3:return{replacementSpan:f,insertText:`import${x}${OT(e)}${m} = require(${d})${w}`};case 1:return{replacementSpan:f,insertText:`import${x}${OT(e)}${m} from ${d}${w}`};case 2:return{replacementSpan:f,insertText:`import${x}* as ${OT(e)} from ${d}${w}`};case 0:return{replacementSpan:f,insertText:`import${x}{ ${A}${OT(e)}${m} } from ${d}${w}`}}}function nTe(e,t,r){return/^\d+$/.test(r)?r:ck(e,t,r)}function DGe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function PZ(e){if(_P(e))return u_(e.moduleSymbol.name);if(eC(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function MZ(e,t,r,i,o,s,l,f,d,g,m,v,S,x,A,w,C,P,F,B,q,W,Y,R,ie,$=!1){var fe;let Z=Ms(),U=$Ge(o),re=P7(l),le=d.getTypeChecker(),_e=new Map;for(let X=0;X<e.length;X++){let Ve=e[X],we=W?.[X],ke=Z9(Ve,g,we,v,!!P);if(!ke||_e.get(ke.name)&&(!we||!KEe(we))||v===1&&Y&&!ge(Ve,Y))continue;let{name:Pe,needsConvertPropertyAccess:Ce}=ke,Ie=(fe=Y?.[$a(Ve)])!=null?fe:Pl.LocationPriority,Be=ZGe(Ve,le)?Pl.Deprecated(Ie):Ie,Ne=TGe(Ve,Be,r,i,o,s,l,f,d,Pe,Ce,we,q,C,F,B,re,x,S,v,A,R,ie,$);if(!Ne)continue;let Le=(!we||JEe(we))&&!(Ve.parent===void 0&&!vt(Ve.declarations,Ye=>Ye.getSourceFile()===o.getSourceFile()));_e.set(Pe,Le),Ny(t,Ne,pP,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Ms()-Z)),{has:X=>_e.has(X),add:X=>_e.set(X,!0)};function ge(X,Ve){let we=X.flags;if(!Li(o)){if(pc(o.parent))return!0;if(U&&X.valueDeclaration===U)return!1;let ke=wd(X,le);if(l.externalModuleIndicator&&!x.allowUmdGlobalAccess&&Ve[$a(X)]===Pl.GlobalsOrKeywords&&(Ve[$a(ke)]===Pl.AutoImportSuggestions||Ve[$a(ke)]===Pl.LocationPriority))return!1;if(we|=XI(ke),i7(o))return!!(we&1920);if(w)return VZ(X,le)}return!!(we&111551)}}function wGe(e){let t=RGe(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function RGe(e){let t=[],r=new Map,i=e;for(;i&&!Ia(i);){if(J0(i)){let o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:Pl.LocationPriority}))}i=i.parent}return t}function rTe(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){let B=aTe(o.name,o.data,e,s);if(B){let{contextToken:q,previousToken:W}=Q9(i,r);return{type:"symbol",symbol:B.symbol,location:ef(r,i),previousToken:W,contextToken:q,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:B.origin}}}let f=e.getCompilerOptions(),d=iTe(e,t,r,f,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!d)return{type:"none"};if(d.kind!==0)return{type:"request",request:d};let{symbols:g,literals:m,location:v,completionKind:S,symbolToOriginInfoMap:x,contextToken:A,previousToken:w,isJsxInitializer:C,isTypeOnlyLocation:P}=d,F=wr(m,B=>OZ(r,l,B)===o.name);return F!==void 0?{type:"literal",literal:F}:ks(g,(B,q)=>{let W=x[q],Y=Z9(B,Do(f),W,S,d.isJsxIdentifierExpected);return Y&&Y.name===o.name&&(o.source==="ClassMemberSnippet/"&&B.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&B.flags&8196||PZ(W)===o.source)?{type:"symbol",symbol:B,location:v,origin:W,contextToken:A,previousToken:w,isJsxInitializer:C,isTypeOnlyLocation:P}:void 0})||{type:"none"}}function OGe(e,t,r,i,o,s,l,f,d){let g=e.getTypeChecker(),m=e.getCompilerOptions(),{name:v,source:S,data:x}=o,{previousToken:A,contextToken:w}=Q9(i,r);if(n1(r,i,A))return aG.getStringLiteralCompletionDetails(v,r,i,A,g,m,s,d,f);let C=rTe(e,t,r,i,o,s,f);switch(C.type){case"request":{let{request:P}=C;switch(P.kind){case 1:return xb.getJSDocTagNameCompletionDetails(v);case 2:return xb.getJSDocTagCompletionDetails(v);case 3:return xb.getJSDocParameterNameCompletionDetails(v);case 4:return vt(P.keywordCompletions,F=>F.name===v)?FZ(v,"keyword",5):void 0;default:return L.assertNever(P)}}case"symbol":{let{symbol:P,location:F,contextToken:B,origin:q,previousToken:W}=C,{codeActions:Y,sourceDisplay:R}=NGe(v,F,B,q,P,e,s,m,r,i,W,l,f,x,S,d),ie=wZ(q)?q.symbolName:P.name;return GZ(P,ie,g,r,F,d,Y,R)}case"literal":{let{literal:P}=C;return FZ(OZ(r,f,P),"string",typeof P=="string"?8:7)}case"cases":{let{entry:P,importAdder:F}=ZEe(w.parent,r,f,e.getCompilerOptions(),s,e,void 0);if(F.hasFixes()){let B=nr.ChangeTracker.with({host:s,formatContext:l,preferences:f},F.writeFixes);return{name:P.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:B,description:ZS([_.Includes_imports_of_types_referenced_by_0,v])}]}}return{name:P.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return JZ().some(P=>P.name===v)?FZ(v,"keyword",5):void 0;default:L.assertNever(C)}}function FZ(e,t,r){return mP(e,"",t,[Qu(e,r)])}function GZ(e,t,r,i,o,s,l,f){let{displayParts:d,documentation:g,symbolKind:m,tags:v}=r.runWithCancellationToken(s,S=>$g.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,o,o,7));return mP(t,$g.getSymbolModifiers(r,e),m,d,g,v,l,f)}function mP(e,t,r,i,o,s,l,f){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:f,sourceDisplay:f}}function NGe(e,t,r,i,o,s,l,f,d,g,m,v,S,x,A,w){if(x?.moduleSpecifier&&m&&_Te(r||m).replacementSpan)return{codeActions:void 0,sourceDisplay:[tf(x.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:Y}=eTe(l,s,f,S,e,o,t,g,r,v);if(Y)return{sourceDisplay:void 0,codeActions:[{changes:nr.ChangeTracker.with({host:l,formatContext:v,preferences:S},Y.writeFixes),description:ZS([_.Includes_imports_of_types_referenced_by_0,e])}]}}if(JEe(i)){let Y=gu.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,s,l,v,S);return L.assertIsDefined(Y,"Expected to have a code action for promoting type-only alias"),{codeActions:[Y],sourceDisplay:void 0}}if(!i||!(_P(i)||eC(i)))return{codeActions:void 0,sourceDisplay:void 0};let C=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:P}=i,F=C.getMergedSymbol(wd(o.exportSymbol||o,C)),B=r?.kind===29&&Au(r.parent),{moduleSpecifier:q,codeAction:W}=gu.getImportCompletionAction(F,P,x?.exportMapKey,d,e,B,l,s,v,m&&Re(m)?m.getStart(d):g,S,w);return L.assert(!x?.moduleSpecifier||q===x.moduleSpecifier),{sourceDisplay:[tf(q)],codeActions:[W]}}function PGe(e,t,r,i,o,s,l){let f=rTe(e,t,r,i,o,s,l);return f.type==="symbol"?f.symbol:void 0}function MGe(e,t,r){return ks(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!cle(o)?BZ(o,e,r):void 0})}function FGe(e,t,r,i){let{parent:o}=e;switch(e.kind){case 79:return w7(e,i);case 63:switch(o.kind){case 257:return i.getContextualType(o.initializer);case 223:return i.getTypeAtLocation(o.left);case 288:return i.getContextualTypeForJsxAttribute(o);default:return}case 103:return i.getContextualType(o);case 82:let s=zr(o,CL);return s?TY(s,i):void 0;case 18:return AL(o)&&!Hg(o.parent)&&!BS(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=BP.getArgumentInfoForCompletions(e,t,r);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex+(e.kind===27?1:0)):R7(e.kind)&&ar(o)&&R7(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e)}}function BZ(e,t,r){let i=r.getAccessibleSymbolChain(e,t,67108863,!1);return i?Vo(i):e.parent&&(GGe(e.parent)?e:BZ(e.parent,t,r))}function GGe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===308))}function iTe(e,t,r,i,o,s,l,f,d,g){let m=e.getTypeChecker(),v=QEe(r,i),S=Ms(),x=Vi(r,o);t("getCompletionData: Get current token: "+(Ms()-S)),S=Ms();let A=Kg(r,o,x);t("getCompletionData: Is inside comment: "+(Ms()-S));let w=!1,C=!1;if(A){if(Rhe(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let Te=Wf(o,r);if(!/[^\*|\s(/)]/.test(r.text.substring(Te,o)))return{kind:2}}}let z=jGe(x,o);if(z){if(z.tagName.pos<=o&&o<=z.tagName.end)return{kind:1};let Te=zt(z);if(Te&&(x=Vi(r,o),(!x||!Rh(x)&&(x.parent.kind!==351||x.parent.name!==x))&&(w=pe(Te))),!w&&xp(z)&&(rc(z.name)||z.name.pos<=o&&o<=z.name.end))return{kind:3,tag:z}}if(!w){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=Ms();let P=!w&&Cu(r),F=Q9(o,r),B=F.previousToken,q=F.contextToken;t("getCompletionData: Get previous token: "+(Ms()-S));let W=x,Y,R=!1,ie=!1,$=!1,fe=!1,Z=!1,U=!1,re,le=ef(r,o),_e=0,ge=!1,X=0;if(q){let z=_Te(q);if(z.keywordCompletion){if(z.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[pGe(z.keywordCompletion)],isNewIdentifierLocation:z.isNewIdentifierLocation};_e=hGe(z.keywordCompletion)}if(z.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(X|=2,re=z,ge=z.isNewIdentifierLocation),!z.replacementSpan&&Ht(q))return t("Returning an empty list because completion was requested in an invalid position."),_e?YEe(_e,P,dr()):void 0;let Te=q.parent;if(q.kind===24||q.kind===28)switch(R=q.kind===24,ie=q.kind===28,Te.kind){case 208:Y=Te,W=Y.expression;let j=$I(Y);if(rc(j)||(Pa(W)||Ia(W))&&W.end===q.pos&&W.getChildCount(r)&&To(W.getChildren(r)).kind!==21)return;break;case 163:W=Te.left;break;case 264:W=Te.name;break;case 202:W=Te;break;case 233:W=Te.getFirstToken(r),L.assert(W.kind===100||W.kind===103);break;default:return}else if(!re){if(Te&&Te.kind===208&&(q=Te,Te=Te.parent),x.parent===le)switch(x.kind){case 31:(x.parent.kind===281||x.parent.kind===283)&&(le=x);break;case 43:x.parent.kind===282&&(le=x);break}switch(Te.kind){case 284:q.kind===43&&(fe=!0,le=q);break;case 223:if(!fTe(Te))break;case 282:case 281:case 283:U=!0,q.kind===29&&($=!0,le=q);break;case 291:case 290:(B.kind===19||B.kind===79&&B.parent.kind===288)&&(U=!0);break;case 288:if(Te.initializer===B&&B.end<o){U=!0;break}switch(B.kind){case 63:Z=!0;break;case 79:U=!0,Te!==B.parent&&!Te.initializer&&Yo(Te,63,r)&&(Z=B)}break}}}let Ve=Ms(),we=5,ke=!1,Pe=!1,Ce=[],Ie,Be=[],Ne=[],Le=new Map,Ye=nn(),_t=Jp(z=>$S(z?f.getPackageJsonAutoImportProvider():e,f));if(R||ie)Qt();else if($)Ce=m.getJsxIntrinsicTagNamesAt(le),L.assertEachIsDefined(Ce,"getJsxIntrinsicTagNames() should all be defined"),Gt(),we=1,_e=0;else if(fe){let z=q.parent.parent.openingElement.tagName,Te=m.getSymbolAtLocation(z);Te&&(Ce=[Te]),we=1,_e=0}else if(!Gt())return _e?YEe(_e,P,ge):void 0;t("getCompletionData: Semantic work: "+(Ms()-Ve));let ct=B&&FGe(B,o,r,m),Rt=Zi(ct&&(ct.isUnion()?ct.types:[ct]),z=>z.isLiteral()&&!(z.flags&1024)?z.value:void 0),We=B&&ct&&MGe(B,ct,m);return{kind:0,symbols:Ce,completionKind:we,isInSnippetScope:C,propertyAccessToConvert:Y,isNewIdentifierLocation:ge,location:le,keywordFilters:_e,literals:Rt,symbolToOriginInfoMap:Be,recommendedCompletion:We,previousToken:B,contextToken:q,isJsxInitializer:Z,insideJsDocTagTypeExpression:w,symbolToSortTextMap:Ne,isTypeOnlyLocation:Ye,isJsxIdentifierExpected:U,isRightOfOpenTag:$,isRightOfDotOrQuestionDot:R||ie,importStatementCompletion:re,hasUnresolvedAutoImports:Pe,flags:X};function qe(z){switch(z.kind){case 344:case 351:case 345:case 347:case 349:case 352:case 353:return!0;case 348:return!!z.constraint;default:return!1}}function zt(z){if(qe(z)){let Te=H_(z)?z.constraint:z.typeExpression;return Te&&Te.kind===312?Te:void 0}if(x2(z)||qz(z))return z.class}function Qt(){we=2;let z=ib(W),Te=w||z&&!W.isTypeOf||Gm(W.parent)||MN(q,r,m),j=i7(W);if(Cd(W)||z||br(W)){let yt=Tc(W.parent);yt&&(ge=!0);let lt=m.getSymbolAtLocation(W);if(lt&&(lt=wd(lt,m),lt.flags&1920)){let Qe=m.getExportsOfModule(lt);L.assertEachIsDefined(Qe,"getExportsOfModule() should all be defined");let Vt=ei=>m.isValidPropertyAccess(z?W:W.parent,ei.name),Hn=ei=>VZ(ei,m),jr=yt?ei=>{var Kr;return!!(ei.flags&1920)&&!((Kr=ei.declarations)!=null&&Kr.every(Si=>Si.parent===W.parent))}:j?ei=>Hn(ei)||Vt(ei):Te?Hn:Vt;for(let ei of Qe)jr(ei)&&Ce.push(ei);if(!Te&<.declarations&<.declarations.some(ei=>ei.kind!==308&&ei.kind!==264&&ei.kind!==263)){let ei=m.getTypeOfSymbolAtLocation(lt,W).getNonOptionalType(),Kr=!1;if(ei.isNullableType()){let Si=R&&!ie&&s.includeAutomaticOptionalChainCompletions!==!1;(Si||ie)&&(ei=ei.getNonNullableType(),Si&&(Kr=!0))}tn(ei,!!(W.flags&32768),Kr)}return}}if(!Te){m.tryGetThisTypeAt(W,!1);let yt=m.getTypeAtLocation(W).getNonOptionalType(),lt=!1;if(yt.isNullableType()){let Qe=R&&!ie&&s.includeAutomaticOptionalChainCompletions!==!1;(Qe||ie)&&(yt=yt.getNonNullableType(),Qe&&(lt=!0))}tn(yt,!!(W.flags&32768),lt)}}function tn(z,Te,j){ge=!!z.getStringIndexType(),ie&&vt(z.getCallSignatures())&&(ge=!0);let yt=W.kind===202?W:W.parent;if(v)for(let lt of z.getApparentProperties())m.isValidPropertyAccessForCompletions(yt,z,lt)&&kn(lt,!1,j);else Ce.push(...Pr(nG(z,m),lt=>m.isValidPropertyAccessForCompletions(yt,z,lt)));if(Te&&s.includeCompletionsWithInsertText){let lt=m.getPromisedTypeOfPromise(z);if(lt)for(let Qe of lt.getApparentProperties())m.isValidPropertyAccessForCompletions(yt,lt,Qe)&&kn(Qe,!0,j)}}function kn(z,Te,j){var yt;let lt=ks(z.declarations,jr=>zr(sa(jr),ts));if(lt){let jr=_n(lt.expression),ei=jr&&m.getSymbolAtLocation(jr),Kr=ei&&BZ(ei,q,m);if(Kr&&V_(Le,$a(Kr))){let Si=Ce.length;Ce.push(Kr);let Ja=Kr.parent;if(!Ja||!BN(Ja)||m.tryGetMemberInModuleExportsAndProperties(Kr.name,Ja)!==Kr)Be[Si]={kind:Hn(2)};else{let Za=fl(u_(Ja.name))?(yt=m6(Ja))==null?void 0:yt.fileName:void 0,{moduleSpecifier:Fa}=(Ie||(Ie=gu.createImportSpecifierResolver(r,e,f,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Za,isFromPackageJson:!1,moduleSymbol:Ja,symbol:Kr,targetFlags:wd(Kr,m).flags}],o,TS(le))||{};if(Fa){let Hi={kind:Hn(6),moduleSymbol:Ja,isDefaultExport:!1,symbolName:Kr.name,exportName:Kr.name,fileName:Za,moduleSpecifier:Fa};Be[Si]=Hi}}}else s.includeCompletionsWithInsertText&&(Vt(z),Qe(z),Ce.push(z))}else Vt(z),Qe(z),Ce.push(z);function Qe(jr){qGe(jr)&&(Ne[$a(jr)]=Pl.LocalDeclarationPriority)}function Vt(jr){s.includeCompletionsWithInsertText&&(Te&&V_(Le,$a(jr))?Be[Ce.length]={kind:Hn(8)}:j&&(Be[Ce.length]={kind:16}))}function Hn(jr){return j?jr|16:jr}}function _n(z){return Re(z)?z:br(z)?_n(z.expression):void 0}function Gt(){return(Se()||at()||Ni()||Tt()||ve()||$n()||nt()||ui()||(Pi(),1))===1}function $n(){return Q(q)?(we=5,ge=!0,_e=4,1):0}function ui(){let z=G(q),Te=z&&m.getContextualType(z.attributes);if(!Te)return 0;let j=z&&m.getContextualType(z.attributes,4);return Ce=Qi(Ce,oe(tG(Te,j,z.attributes,m),z.attributes.properties)),ae(),we=3,ge=!1,1}function Ni(){return re?(ge=!0,An(),1):0}function Pi(){_e=ue(q)?5:1,we=1,ge=dr(),B!==q&&L.assert(!!B,"Expected 'contextToken' to be defined when different from 'previousToken'.");let z=B!==q?B.getStart():o,Te=vn(q,z,r)||r;C=pt(Te);let j=(Ye?0:111551)|788968|1920|2097152,yt=B&&!TS(B);Ce=Qi(Ce,m.getSymbolsInScope(Te,j)),L.assertEachIsDefined(Ce,"getSymbolsInScope() should all be defined");for(let lt=0;lt<Ce.length;lt++){let Qe=Ce[lt];if(!m.isArgumentsSymbol(Qe)&&!vt(Qe.declarations,Vt=>Vt.getSourceFile()===r)&&(Ne[$a(Qe)]=Pl.GlobalsOrKeywords),yt&&!(Qe.flags&111551)){let Vt=Qe.declarations&&wr(Qe.declarations,Mj);if(Vt){let Hn={kind:64,declaration:Vt};Be[lt]=Hn}}}if(s.includeCompletionsWithInsertText&&Te.kind!==308){let lt=m.tryGetThisTypeAt(Te,!1,Yr(Te.parent)?Te:void 0);if(lt&&!KGe(lt,r,m))for(let Qe of nG(lt,m))Be[Ce.length]={kind:1},Ce.push(Qe),Ne[$a(Qe)]=Pl.SuggestedClassMembers}An(),Ye&&(_e=q&&pT(q.parent)?6:7)}function gr(){return re?!0:ke||!s.includeCompletionsForModuleExports?!1:r.externalModuleIndicator||r.commonJsModuleIndicator||aY(e.getCompilerOptions())?!0:Uhe(e)}function pt(z){switch(z.kind){case 308:case 225:case 291:case 238:return!0;default:return ca(z)}}function nn(){return w||!!re&&I0(le.parent)||!Dt(q)&&(MN(q,r,m)||Gm(le)||pn(q))}function Dt(z){return z&&(z.kind===112&&(z.parent.kind===183||y2(z.parent))||z.kind===129&&z.parent.kind===179)}function pn(z){if(z){let Te=z.parent.kind;switch(z.kind){case 58:return Te===169||Te===168||Te===166||Te===257||nS(Te);case 63:return Te===262;case 128:return Te===231;case 29:return Te===180||Te===213;case 94:return Te===165;case 150:return Te===235}}return!1}function An(){var z,Te;if(!gr()||(L.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;X|=1;let yt=B===q&&re?"":B&&Re(B)?B.text.toLowerCase():"",lt=(z=f.getModuleSpecifierCache)==null?void 0:z.call(f),Qe=YN(r,f,e,s,g),Vt=(Te=f.getPackageJsonAutoImportProvider)==null?void 0:Te.call(f),Hn=l?void 0:uk(r,s,f);qEe("collectAutoImports",f,Ie||(Ie=gu.createImportSpecifierResolver(r,e,f,s)),e,o,s,!!re,TS(le),ei=>{Qe.search(r.path,$,(Kr,Si)=>{if(!i_(Kr,Do(f.getCompilationSettings()))||!l&&fS(Kr)||!Ye&&!re&&!(Si&111551)||Ye&&!(Si&790504))return!1;let Ja=Kr.charCodeAt(0);return $&&(Ja<65||Ja>90)?!1:l?!0:gTe(Kr,yt)},(Kr,Si,Ja,Za)=>{if(l&&!vt(Kr,Qr=>l.source===u_(Qr.moduleSymbol.name))||(Kr=Pr(Kr,jr),!Kr.length))return;let Fa=ei.tryResolve(Kr,Ja)||{};if(Fa==="failed")return;let Hi=Kr[0],xi;Fa!=="skipped"&&({exportInfo:Hi=Kr[0],moduleSpecifier:xi}=Fa);let Nr=Hi.exportKind===1,Fo=Nr&&QA(Hi.symbol)||Hi.symbol;Kn(Fo,{kind:xi?32:4,moduleSpecifier:xi,symbolName:Si,exportMapKey:Za,exportName:Hi.exportKind===2?"export=":Hi.symbol.name,fileName:Hi.moduleFileName,isDefaultExport:Nr,moduleSymbol:Hi.moduleSymbol,isFromPackageJson:Hi.isFromPackageJson})}),Pe=ei.skippedAny(),X|=ei.resolvedAny()?8:0,X|=ei.resolvedBeyondLimit()?16:0});function jr(ei){let Kr=zr(ei.moduleSymbol.valueDeclaration,Li);if(!Kr){let Si=u_(ei.moduleSymbol.name);return QT.nodeCoreModules.has(Si)&&na(Si,"node:")!==W7(r,e)?!1:Hn?Hn.allowsImportingAmbientModule(ei.moduleSymbol,_t(ei.isFromPackageJson)):!0}return PY(ei.isFromPackageJson?Vt:e,r,Kr,s,Hn,_t(ei.isFromPackageJson),lt)}}function Kn(z,Te){let j=$a(z);Ne[j]!==Pl.GlobalsOrKeywords&&(Be[Ce.length]=Te,Ne[j]=re?Pl.LocationPriority:Pl.AutoImportSuggestions,Ce.push(z))}function hi(z,Te){Yn(le)||z.forEach(j=>{if(!ri(j))return;let yt=Z9(j,Do(i),void 0,0,!1);if(!yt)return;let{name:lt}=yt,Qe=CGe(j,lt,Te,e,f,i,s,d);if(!Qe)return;let Vt={kind:128,...Qe};X|=32,Be[Ce.length]=Vt,Ce.push(j)})}function ri(z){return!!(z.flags&8196)}function vn(z,Te,j){let yt=z;for(;yt&&!WX(yt,Te,j);)yt=yt.parent;return yt}function Ht(z){let Te=Ms(),j=Cr(z)||Oe(z)||kt(z)||En(z)||a3(z);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Ms()-Te)),j}function En(z){if(z.kind===11)return!0;if(z.kind===31&&z.parent){if(le===z.parent&&(le.kind===283||le.kind===282))return!1;if(z.parent.kind===283)return le.parent.kind!==283;if(z.parent.kind===284||z.parent.kind===282)return!!z.parent.parent&&z.parent.parent.kind===281}return!1}function dr(){if(q){let z=q.parent.kind,Te=eG(q);switch(Te){case 27:return z===210||z===173||z===211||z===206||z===223||z===181||z===207;case 20:return z===210||z===173||z===211||z===214||z===193;case 22:return z===206||z===178||z===164;case 142:case 143:case 100:return!0;case 24:return z===264;case 18:return z===260||z===207;case 63:return z===257||z===223;case 15:return z===225;case 16:return z===236;case 132:return z===171||z===300;case 41:return z===171}if(hP(Te))return!0}return!1}function Cr(z){return(Cz(z)||Fj(z))&&(RN(z,o)||o===z.end&&(!!z.isUnterminated||Cz(z)))}function Se(){let z=zGe(q);if(!z)return 0;let j=(dO(z.parent)?z.parent:void 0)||z,yt=dTe(j,m);if(!yt)return 0;let lt=m.getTypeFromTypeNode(j),Qe=nG(yt,m),Vt=nG(lt,m),Hn=new Set;return Vt.forEach(jr=>Hn.add(jr.escapedName)),Ce=Qi(Ce,Pr(Qe,jr=>!Hn.has(jr.escapedName))),we=0,ge=!0,1}function at(){let z=Ce.length,Te=BGe(q);if(!Te)return 0;we=0;let j,yt;if(Te.kind===207){let lt=XGe(Te,m);if(lt===void 0)return Te.flags&33554432?2:(ke=!0,0);let Qe=m.getContextualType(Te,4),Vt=(Qe||lt).getStringIndexType(),Hn=(Qe||lt).getNumberIndexType();if(ge=!!Vt||!!Hn,j=tG(lt,Qe,Te,m),yt=Te.properties,j.length===0&&!Hn)return ke=!0,0}else{L.assert(Te.kind===203),ge=!1;let lt=nm(Te.parent);if(!PA(lt))return L.fail("Root declaration is not variable-like.");let Qe=Jy(lt)||!!Cl(lt)||lt.parent.parent.kind===247;if(!Qe&<.kind===166&&(ot(lt.parent)?Qe=!!m.getContextualType(lt.parent):(lt.parent.kind===171||lt.parent.kind===175)&&(Qe=ot(lt.parent.parent)&&!!m.getContextualType(lt.parent.parent))),Qe){let Vt=m.getTypeAtLocation(Te);if(!Vt)return 2;j=m.getPropertiesOfType(Vt).filter(Hn=>m.isPropertyAccessible(Te,!1,!1,Vt,Hn)),yt=Te.elements}}if(j&&j.length>0){let lt=ln(j,L.checkDefined(yt));Ce=Qi(Ce,lt),ae(),Te.kind===207&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(Ot(z),hi(lt,Te))}return 1}function Tt(){if(!q)return 0;let z=q.kind===18||q.kind===27?zr(q.parent,bW):b7(q)?zr(q.parent.parent,bW):void 0;if(!z)return 0;b7(q)||(_e=8);let{moduleSpecifier:Te}=z.kind===272?z.parent.parent:z.parent;if(!Te)return ge=!0,z.kind===272?2:0;let j=m.getSymbolAtLocation(Te);if(!j)return ge=!0,2;we=3,ge=!1;let yt=m.getExportsAndPropertiesOfModule(j),lt=new Set(z.elements.filter(Vt=>!pe(Vt)).map(Vt=>(Vt.propertyName||Vt.name).escapedText)),Qe=yt.filter(Vt=>Vt.escapedName!=="default"&&!lt.has(Vt.escapedName));return Ce=Qi(Ce,Qe),Qe.length||(_e=0),1}function ve(){var z;let Te=q&&(q.kind===18||q.kind===27)?zr(q.parent,h_):void 0;if(!Te)return 0;let j=jn(Te,Kp(Li,Tc));return we=5,ge=!1,(z=j.locals)==null||z.forEach((yt,lt)=>{var Qe,Vt;Ce.push(yt),(Vt=(Qe=j.symbol)==null?void 0:Qe.exports)!=null&&Vt.has(lt)&&(Ne[$a(yt)]=Pl.OptionalMember)}),1}function nt(){let z=WGe(r,q,le,o);if(!z)return 0;if(we=3,ge=!0,_e=q.kind===41?0:Yr(z)?2:3,!Yr(z))return 1;let Te=q.kind===26?q.parent.parent:q.parent,j=_l(Te)?uu(Te):0;if(q.kind===79&&!pe(q))switch(q.getText()){case"private":j=j|8;break;case"static":j=j|32;break;case"override":j=j|16384;break}if(oc(Te)&&(j|=32),!(j&8)){let yt=Yr(z)&&j&16384?aT(hp(z)):NI(z),lt=Uo(yt,Qe=>{let Vt=m.getTypeAtLocation(Qe);return j&32?Vt?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(Vt.symbol,z)):Vt&&m.getPropertiesOfType(Vt)});Ce=Qi(Ce,Ke(lt,z.members,j)),mn(Ce,(Qe,Vt)=>{let Hn=Qe?.valueDeclaration;if(Hn&&_l(Hn)&&Hn.name&&ts(Hn.name)){let jr={kind:512,symbolName:m.symbolToString(Qe)};Be[Vt]=jr}})}return 1}function ce(z){return!!z.parent&&ha(z.parent)&&Ec(z.parent.parent)&&(yI(z.kind)||Rh(z))}function Q(z){if(z){let Te=z.parent;switch(z.kind){case 20:case 27:return Ec(z.parent)?z.parent:void 0;default:if(ce(z))return Te.parent}}}function ue(z){if(z){let Te,j=jn(z.parent,yt=>Yr(yt)?"quit":Ds(yt)&&Te===yt.body?!0:(Te=yt,!1));return j&&j}}function G(z){if(z){let Te=z.parent;switch(z.kind){case 31:case 30:case 43:case 79:case 208:case 289:case 288:case 290:if(Te&&(Te.kind===282||Te.kind===283)){if(z.kind===31){let j=el(z.pos,r,void 0);if(!Te.typeArguments||j&&j.kind===43)break}return Te}else if(Te.kind===288)return Te.parent.parent;break;case 10:if(Te&&(Te.kind===288||Te.kind===290))return Te.parent.parent;break;case 19:if(Te&&Te.kind===291&&Te.parent&&Te.parent.kind===288)return Te.parent.parent.parent;if(Te&&Te.kind===290)return Te.parent.parent;break}}}function Oe(z){let Te=z.parent,j=Te.kind;switch(z.kind){case 27:return j===257||Kt(z)||j===240||j===263||Ge(j)||j===261||j===204||j===262||Yr(Te)&&!!Te.typeParameters&&Te.typeParameters.end>=z.pos;case 24:return j===204;case 58:return j===205;case 22:return j===204;case 20:return j===295||Ge(j);case 18:return j===263;case 29:return j===260||j===228||j===261||j===262||nS(j);case 124:return j===169&&!Yr(Te.parent);case 25:return j===166||!!Te.parent&&Te.parent.kind===204;case 123:case 121:case 122:return j===166&&!Ec(Te.parent);case 128:return j===273||j===278||j===271;case 137:case 151:return!rG(z);case 79:if(j===273&&z===Te.name&&z.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return j!==273;case 41:return Ia(z.parent)&&!Nc(z.parent)}if(hP(eG(z))&&rG(z)||ce(z)&&(!Re(z)||yI(eG(z))||pe(z)))return!1;switch(eG(z)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return Na(z.parent)}if(jn(z.parent,Yr)&&z===B&&je(z,o))return!1;let lt=cb(z.parent,169);if(lt&&z!==B&&Yr(B.parent.parent)&&o<=B.end){if(je(z,B.end))return!1;if(z.kind!==63&&(sN(lt)||f6(lt)))return!0}return Rh(z)&&!xf(z.parent)&&!Sp(z.parent)&&!(Yr(z.parent)&&(z!==B||o>B.end))}function je(z,Te){return z.kind!==63&&(z.kind===26||!Bf(z.end,Te,r))}function Ge(z){return nS(z)&&z!==173}function kt(z){if(z.kind===8){let Te=z.getFullText();return Te.charAt(Te.length-1)==="."}return!1}function Kt(z){return z.parent.kind===258&&!MN(z,r,m)}function ln(z,Te){if(Te.length===0)return z;let j=new Set,yt=new Set;for(let Qe of Te){if(Qe.kind!==299&&Qe.kind!==300&&Qe.kind!==205&&Qe.kind!==171&&Qe.kind!==174&&Qe.kind!==175&&Qe.kind!==301||pe(Qe))continue;let Vt;if(VS(Qe))ir(Qe,j);else if(Wo(Qe)&&Qe.propertyName)Qe.propertyName.kind===79&&(Vt=Qe.propertyName.escapedText);else{let Hn=sa(Qe);Vt=Hn&&c_(Hn)?MI(Hn):void 0}Vt!==void 0&&yt.add(Vt)}let lt=z.filter(Qe=>!yt.has(Qe.escapedName));return rt(j,lt),lt}function ir(z,Te){let j=z.expression,yt=m.getSymbolAtLocation(j),lt=yt&&m.getTypeOfSymbolAtLocation(yt,j),Qe=lt&<.properties;Qe&&Qe.forEach(Vt=>{Te.add(Vt.name)})}function ae(){Ce.forEach(z=>{var Te;if(z.flags&16777216){let j=$a(z);Ne[j]=(Te=Ne[j])!=null?Te:Pl.OptionalMember}})}function rt(z,Te){if(z.size!==0)for(let j of Te)z.has(j.name)&&(Ne[$a(j)]=Pl.MemberDeclaredBySpreadAssignment)}function Ot(z){var Te;for(let j=z;j<Ce.length;j++){let yt=Ce[j],lt=$a(yt),Qe=Be?.[j],Vt=Do(i),Hn=Z9(yt,Vt,Qe,0,!1);if(Hn){let jr=(Te=Ne[lt])!=null?Te:Pl.LocationPriority,{name:ei}=Hn;Ne[lt]=Pl.ObjectLiteralProperty(jr,ei)}}}function Ke(z,Te,j){let yt=new Set;for(let lt of Te){if(lt.kind!==169&<.kind!==171&<.kind!==174&<.kind!==175||pe(lt)||cd(lt,8)||Ca(lt)!==!!(j&32))continue;let Qe=M0(lt.name);Qe&&yt.add(Qe)}return z.filter(lt=>!yt.has(lt.escapedName)&&!!lt.declarations&&!(Ef(lt)&8)&&!(lt.valueDeclaration&&xu(lt.valueDeclaration)))}function oe(z,Te){let j=new Set,yt=new Set;for(let Qe of Te)pe(Qe)||(Qe.kind===288?j.add(Qe.name.escapedText):GT(Qe)&&ir(Qe,yt));let lt=z.filter(Qe=>!j.has(Qe.escapedName));return rt(yt,lt),lt}function pe(z){return z.getStart(r)<=o&&o<=z.getEnd()}}function BGe(e){if(e){let{parent:t}=e;switch(e.kind){case 18:case 27:if(rs(t)||cm(t))return t;break;case 41:return Nc(t)?zr(t.parent,rs):void 0;case 79:return e.text==="async"&&xf(e.parent)?e.parent.parent:void 0}}}function Q9(e,t){let r=el(e,t);return r&&e<=r.end&&(Ah(r)||Xu(r.kind))?{contextToken:el(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function aTe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(L.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let f=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return f?(f=t.exportName==="default"&&QA(f)||f,{symbol:f,origin:LGe(t,e,l)}):void 0}function Z9(e,t,r,i,o){if(dGe(r))return;let s=sGe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&Xw(s.charCodeAt(0))||gR(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(i_(s,t,o?1:0)||e.valueDeclaration&&xu(e.valueDeclaration))return l;switch(i){case 3:return wZ(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:L.assertNever(i)}}function oTe(e,t){if(!t)return sTe(e);let r=e+8+1;return gP[r]||(gP[r]=sTe(e).filter(i=>!UGe(lT(i.name))))}function sTe(e){return gP[e]||(gP[e]=JZ().filter(t=>{let r=lT(t.name);switch(e){case 0:return!1;case 1:return lTe(r)||r===136||r===142||r===154||r===143||r===126||ik(r)&&r!==155;case 5:return lTe(r);case 2:return hP(r);case 3:return cTe(r);case 4:return yI(r);case 6:return ik(r)||r===85;case 7:return ik(r);case 8:return r===154;default:return L.assertNever(e)}}))}function UGe(e){switch(e){case 126:case 131:case 160:case 134:case 136:case 92:case 159:case 117:case 138:case 118:case 140:case 141:case 142:case 143:case 144:case 148:case 149:case 161:case 121:case 122:case 123:case 146:case 152:case 153:case 154:case 156:case 157:return!0;default:return!1}}function cTe(e){return e===146}function hP(e){switch(e){case 126:case 127:case 135:case 137:case 151:case 132:case 136:case 161:return!0;default:return Gj(e)}}function lTe(e){return e===132||e===133||e===128||e===150||e===154||!K6(e)&&!hP(e)}function eG(e){var t;return Re(e)?(t=nb(e))!=null?t:0:e.kind}function VGe(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(gl(o)||Il(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:Xa(130),kind:"keyword",kindModifiers:"",sortText:Pl.GlobalsOrKeywords})}return r}function jGe(e,t){return jn(e,r=>EI(r)&&wN(r,t)?!0:dm(r)?"quit":!1)}function tG(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=HGe(s,r,i);return s.isClass()&&uTe(l)?[]:o?Pr(l,f):l;function f(d){return Fn(d.declarations)?vt(d.declarations,g=>g.parent!==r):!0}}function HGe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Pr(e.types,i=>!(i.flags&134348796||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&uTe(i.getApparentProperties())))):e.getApparentProperties()}function uTe(e){return vt(e,t=>!!(Ef(t)&24))}function nG(e,t){return e.isUnion()?L.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):L.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function WGe(e,t,r,i){var o;switch(r.kind){case 354:return zr(r.parent,yS);case 1:let s=zr(Os(Ga(r.parent,Li).statements),yS);if(s&&!Yo(s,19,e))return s;break;case 79:{if(nb(r)||Na(r.parent)&&r.parent.initializer===r)return;if(rG(r))return jn(r,yS)}}if(t){if(r.kind===135||Re(t)&&Na(t.parent)&&Yr(r))return jn(t,Yr);switch(t.kind){case 63:return;case 26:case 19:return rG(r)&&r.parent.name===r?r.parent.parent:zr(r,yS);case 18:case 27:return zr(t.parent,yS);default:if(yS(r)){if(Gs(e,t.getEnd()).line!==Gs(e,i).line)return r;let s=Yr(t.parent.parent)?hP:cTe;return s(t.kind)||t.kind===41||Re(t)&&s((o=nb(t))!=null?o:0)?t.parent.parent:void 0}return}}}function zGe(e){if(!e)return;let t=e.parent;switch(e.kind){case 18:if(Rd(t))return t;break;case 26:case 27:case 79:if(t.kind===168&&Rd(t.parent))return t.parent;break}}function dTe(e,t){if(!e)return;if(bi(e)&&_6(e.parent))return t.getTypeArgumentConstraint(e);let r=dTe(e.parent,t);if(r)switch(e.kind){case 168:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 190:case 184:case 189:return r}}function rG(e){return e.parent&&s6(e.parent)&&yS(e.parent.parent)}function JGe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&age(r)&&i===r.getStart(e)+1;case"#":return!!r&&pi(r)&&!!Zc(r);case"<":return!!r&&r.kind===29&&(!ar(r.parent)||fTe(r.parent));case"/":return!!r&&(es(r)?!!oR(r):r.kind===43&&GS(r.parent));case" ":return!!r&&gL(r)&&r.parent.kind===308;default:return L.assertNever(t)}}function fTe({left:e}){return rc(e)}function KGe(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function qGe(e){return!!(e.valueDeclaration&&uu(e.valueDeclaration)&32&&Yr(e.valueDeclaration.parent))}function XGe(e,t){let r=t.getContextualType(e);if(r)return r;let i=qy(e.parent);if(ar(i)&&i.operatorToken.kind===63&&e===i.left)return t.getTypeAtLocation(i);if(ot(i))return t.getContextualType(i)}function _Te(e){var t,r,i;let o,s=!1,l=f();return{isKeywordOnlyCompletion:s,keywordCompletion:o,isNewIdentifierLocation:!!(l||o===154),isTopLevelTypeOnly:!!((r=(t=zr(l,gl))==null?void 0:t.importClause)!=null&&r.isTypeOnly)||!!((i=zr(l,Nl))!=null&&i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!l&&mTe(l,e),replacementSpan:YGe(l)};function f(){let d=e.parent;if(Nl(d))return o=e.kind===154?void 0:154,UZ(d.moduleReference)?d:void 0;if(mTe(d,e)&&hTe(d.parent))return d;if(jg(d)||nv(d)){if(!d.parent.isTypeOnly&&(e.kind===18||e.kind===100||e.kind===27)&&(o=154),hTe(d))if(e.kind===19||e.kind===79)s=!0,o=158;else return d.parent.parent;return}if(gL(e)&&Li(d))return o=154,e;if(gL(e)&&gl(d))return o=154,UZ(d.moduleSpecifier)?d:void 0}}function YGe(e){var t,r,i;if(!e)return;let o=(t=jn(e,Kp(gl,Nl)))!=null?t:e,s=o.getSourceFile();if(DT(o,s))return Du(o,s);L.assert(o.kind!==100&&o.kind!==273);let l=o.kind===269?(i=pTe((r=o.importClause)==null?void 0:r.namedBindings))!=null?i:o.moduleSpecifier:o.moduleReference,f={pos:o.getFirstToken().getStart(),end:l.pos};if(DT(f,s))return lv(f)}function pTe(e){var t;return wr((t=zr(e,jg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&fS(r.name.text)&&((i=el(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==27})}function mTe(e,t){return $u(e)&&(e.isTypeOnly||t===e.name&&b7(t))}function hTe(e){if(!UZ(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(jg(e)){let t=pTe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function UZ(e){var t;return rc(e)?!0:!((t=zr(um(e)?e.expression:e,es))!=null&&t.text)}function $Ge(e){return jn(e,r=>bT(r)||QGe(r)||La(r)?"quit":wi(r))}function QGe(e){return e.parent&&xs(e.parent)&&e.parent.body===e}function VZ(e,t,r=new Map){return i(e)||i(wd(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&V_(r,$a(o))&&t.getExportsOfModule(o).some(s=>VZ(s,t,r))}}function ZGe(e,t){let r=wd(e,t).declarations;return!!Fn(r)&&Ji(r,H7)}function gTe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l<s;l++){let f=e.charCodeAt(l),d=t.charCodeAt(o);if((f===d||f===eBe(d))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=f&&f<=90||i===95&&f!==95),r&&o++,o===t.length))return!0;i=f}return!1}function eBe(e){return 97<=e&&e<=122?e-32:e}var iG,jZ,Pl,HZ,WZ,zZ,gP,JZ,tBe=gt({"src/services/completions.ts"(){"use strict";Fr(),QZ(),iG=100,jZ=1e3,Pl={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},HZ=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e))(HZ||{}),WZ=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(WZ||{}),zZ=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(zZ||{}),gP=[],JZ=zu(()=>{let e=[];for(let t=81;t<=162;t++)e.push({name:Xa(t),kind:"keyword",kindModifiers:"",sortText:Pl.GlobalsOrKeywords});return e})}});function KZ(){let e=new Map;function t(r){let i=e.get(r.name);(!i||$Z[i.kind]<$Z[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function nBe(e,t,r,i,o,s,l,f,d){if(Fhe(e,t)){let g=yBe(e,t,i,o);return g&&yTe(g)}if(n1(e,t,r)){if(!r||!es(r))return;let g=bTe(e,r,t,s.getTypeChecker(),i,o,f);return rBe(g,r,e,o,s,l,i,f,t,d)}}function rBe(e,t,r,i,o,s,l,f,d,g){if(e===void 0)return;let m=tY(t);switch(e.kind){case 0:return yTe(e.paths);case 1:{let v=MU();return MZ(e.symbols,v,t,t,r,d,r,i,o,99,s,4,f,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,g),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:m,entries:v}}case 2:{let v=e.types.map(S=>({name:S.value,kindModifiers:"",kind:"string",sortText:Pl.LocationPriority,replacementSpan:eY(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:v}}default:return L.assertNever(e)}}function iBe(e,t,r,i,o,s,l,f,d){if(!i||!es(i))return;let g=bTe(t,i,r,o,s,l,d);return g&&aBe(e,i,g,t,o,f)}function aBe(e,t,r,i,o,s){switch(r.kind){case 0:{let l=wr(r.paths,f=>f.name===e);return l&&mP(e,vTe(l.extension),l.kind,[tf(e)])}case 1:{let l=wr(r.symbols,f=>f.name===e);return l&&GZ(l,l.name,o,i,t,s)}case 2:return wr(r.types,l=>l.value===e)?mP(e,"","string",[tf(e)]):void 0;default:return L.assertNever(r)}}function yTe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:f})=>({name:o,kind:s,kindModifiers:vTe(f),sortText:Pl.LocationPriority,replacementSpan:l}))}}function vTe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return L.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return L.assertNever(e)}}function bTe(e,t,r,i,o,s,l){let f=ETe(t.parent);switch(f.kind){case 198:{let S=ETe(f.parent);switch(S.kind){case 230:case 180:{let w=jn(f,C=>C.parent===S);return w?{kind:2,types:yP(i.getTypeArgumentConstraint(w)),isNewIdentifier:!1}:void 0}case 196:let{indexType:x,objectType:A}=S;return wN(x,r)?TTe(i.getTypeFromTypeNode(A)):void 0;case 202:return{kind:0,paths:xTe(e,t,o,s,i,l)};case 189:{if(!m_(S.parent))return;let w=oBe(S,f);return{kind:2,types:yP(i.getTypeArgumentConstraint(S)).filter(P=>!ya(w,P.value)),isNewIdentifier:!1}}default:return}}case 299:return rs(f.parent)&&f.name===t?cBe(i,f.parent):d()||d(0);case 209:{let{expression:S,argumentExpression:x}=f;return t===vs(x)?TTe(i.getTypeAtLocation(S)):void 0}case 210:case 211:case 288:if(!TBe(t)&&!Dd(f)){let S=BP.getArgumentInfoForCompletions(f.kind===288?f.parent:t,r,e);return S&&sBe(S.invocation,t,S,i)||d()}case 269:case 275:case 280:return{kind:0,paths:xTe(e,t,o,s,i,l)};case 292:let g=J7(i,f.parent.clauses),m=d();return m?{kind:2,types:m.types.filter(S=>!g.hasValue(S.value)),isNewIdentifier:!1}:void 0;default:return d()}function d(g=4){let m=yP(w7(t,i,g));if(m.length)return{kind:2,types:m,isNewIdentifier:!1}}}function ETe(e){switch(e.kind){case 193:return dR(e);case 214:return qy(e);default:return e}}function oBe(e,t){return Zi(e.types,r=>r!==t&&mb(r)&&yo(r.literal)?r.literal.text:void 0)}function sBe(e,t,r,i){let o=!1,s=new Map,l=[],f=Au(e)?L.checkDefined(jn(t.parent,Sp)):t;i.getResolvedSignatureForStringLiteralCompletions(e,f,l);let d=Uo(l,g=>{if(!Xl(g)&&r.argumentCount>g.parameters.length)return;let m=g.getTypeParameterAtPosition(r.argumentIndex);if(Au(e)){let v=i.getTypeOfPropertyOfType(m,f.name.text);v&&(m=v)}return o=o||!!(m.flags&4),yP(m,s)});return Fn(d)?{kind:2,types:d,isNewIdentifier:o}:void 0}function TTe(e){return e&&{kind:1,symbols:Pr(e.getApparentProperties(),t=>!(t.valueDeclaration&&xu(t.valueDeclaration))),hasIndexSignature:EY(e)}}function cBe(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:tG(r,i,t,e),hasIndexSignature:EY(r)}}function yP(e,t=new Map){return e?(e=iY(e),e.isUnion()?Uo(e.types,r=>yP(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&V_(t,e.value)?[e]:Je):Je}function tC(e,t,r){return{name:e,kind:t,extension:r}}function qZ(e){return tC(e,"directory",void 0)}function STe(e,t,r){let i=bBe(e,t),o=e.length===0?void 0:il(t,e.length);return r.map(({name:s,kind:l,extension:f})=>Math.max(s.indexOf(_s),s.indexOf(pw))!==-1?{name:s,kind:l,extension:f,span:o}:{name:s,kind:l,extension:f,span:i})}function xTe(e,t,r,i,o,s){return STe(t.text,t.getStart(e)+1,lBe(e,t,r,i,o,s))}function lBe(e,t,r,i,o,s){let l=Al(t.text),f=es(t)?W_(e,t):void 0,d=e.path,g=ni(d),m=XZ(r,1,e,o,s,f);return EBe(l)||!r.baseUrl&&(qp(l)||doe(l))?uBe(l,g,r,i,d,m):pBe(l,g,f,r,i,m,o)}function XZ(e,t,r,i,o,s){return{extensionsToSearch:t_(dBe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function uBe(e,t,r,i,o,s){return r.rootDirs?_Be(r.rootDirs,e,t,s,r,i,o):lo(Tk(e,t,s,i,!1,o).values())}function dBe(e,t){let r=t?Zi(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...nL(e),r],o=$s(e);return T7(o)?FR(e,i):i}function fBe(e,t,r,i){e=e.map(s=>So(qp(s)?s:vi(t,s)));let o=ks(e,s=>Gy(s,r,t,i)?r.substr(s.length):void 0);return fA([...e.map(s=>vi(s,o)),r],z1,su)}function _Be(e,t,r,i,o,s,l){let f=o.project||s.getCurrentDirectory(),d=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),g=fBe(e,f,r,d);return Uo(g,m=>lo(Tk(t,m,i,s,!0,l).values()))}function Tk(e,t,r,i,o,s,l=KZ()){var f;e===void 0&&(e=""),e=Al(e),My(e)||(e=ni(e)),e===""&&(e="."+_s),e=cu(e);let d=Fy(t,e),g=My(d)?d:ni(d);if(!o){let x=cge(g,i);if(x){let w=JI(x,i).typesVersions;if(typeof w=="object"){let C=(f=q3(w))==null?void 0:f.paths;if(C){let P=ni(x),F=d.slice(cu(P).length);if(CTe(l,F,P,r,i,C))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!G7(i,g))return l;let v=xY(i,g,r.extensionsToSearch,void 0,["./*"]);if(v)for(let x of v){if(x=So(x),s&&cT(x,s,t,m)===0)continue;let{name:A,extension:w}=ATe(Hl(x),i.getCompilationSettings(),r);l.add(tC(A,"script",w))}let S=M7(i,g);if(S)for(let x of S){let A=Hl(So(x));A!=="@types"&&l.add(qZ(A))}return l}function ATe(e,t,r){let i=Q0.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:Hm(i)};if(r.referenceKind===0)return{name:e,extension:Hm(e)};let o=OW(r.endingPreference,r.resolutionMode,t,r.importingSourceFile);if(o===3){if($c(e,L4))return{name:e,extension:Hm(e)};let l=Q0.tryGetJSExtensionForFile(e,t);return l?{name:V0(e,l),extension:l}:{name:e,extension:Hm(e)}}if((o===0||o===1)&&$c(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:ld(e),extension:Hm(e)};let s=Q0.tryGetJSExtensionForFile(e,t);return s?{name:V0(e,s),extension:s}:{name:e,extension:Hm(e)}}function CTe(e,t,r,i,o,s){let l=d=>s[d],f=(d,g)=>{let m=n2(d),v=n2(g),S=typeof m=="object"?m.prefix.length:d.length,x=typeof v=="object"?v.prefix.length:g.length;return Es(x,S)};return ITe(e,t,r,i,o,bh(s),l,f)}function ITe(e,t,r,i,o,s,l,f){let d=[],g;for(let m of s){if(m===".")continue;let v=m.replace(/^\.\//,""),S=l(m);if(S){let x=n2(v);if(!x)continue;let A=typeof x=="object"&&h8(x,t);A&&(g===void 0||f(m,g)===-1)&&(g=m,d=d.filter(C=>!C.matchedPattern)),(typeof x=="string"||g===void 0||f(m,g)!==1)&&d.push({matchedPattern:A,results:mBe(v,S,t,r,i,o).map(({name:C,kind:P,extension:F})=>tC(C,P,F))})}}return d.forEach(m=>m.results.forEach(v=>e.add(v))),g!==void 0}function pBe(e,t,r,i,o,s,l){let{baseUrl:f,paths:d}=i,g=KZ(),m=$s(i);if(f){let S=i.project||o.getCurrentDirectory(),x=So(vi(S,f));Tk(e,x,s,o,!1,void 0,g),d&&CTe(g,e,x,s,o,d)}let v=kTe(e);for(let S of gBe(e,v,l))g.add(tC(S,"external module name",void 0));if(RTe(o,i,t,v,s,g),T7(m)){let S=!1;if(v===void 0)for(let x of vBe(o,t)){let A=tC(x,"external module name",void 0);g.has(A.name)||(S=!0,g.add(A))}if(!S){let x=A=>{let w=vi(A,"node_modules");G7(o,w)&&Tk(e,w,s,o,!1,void 0,g)};if(v&&xW(i)){let A=x;x=w=>{let C=Ou(e);C.shift();let P=C.shift();if(!P)return A(w);if(na(P,"@")){let q=C.shift();if(!q)return A(w);P=vi(P,q)}let F=vi(w,"node_modules",P),B=vi(F,"package.json");if(F7(o,B)){let W=JI(B,o).exports;if(W){if(typeof W!="object"||W===null)return;let Y=bh(W),R=C.join("/")+(C.length&&My(e)?"/":""),ie=r===99?["node","import","types"]:["node","require","types"];ITe(g,R,F,s,o,Y,$=>aT(LTe(W[$],ie)),tK);return}}return A(w)}}Th(t,x)}}return lo(g.values())}function LTe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ba(e)){for(let r in e)if(r==="default"||t.indexOf(r)>-1||QO(t,r)){let i=e[r];return LTe(i,t)}}}function kTe(e){return YZ(e)?My(e)?e:ni(e):void 0}function mBe(e,t,r,i,o,s){if(!Oc(e,"*"))return jl(e,"*")?Je:d(e,"script");let l=e.slice(0,e.length-1),f=KU(r,l);if(f===void 0)return e[e.length-2]==="/"?d(l,"directory"):Uo(t,m=>{var v;return(v=DTe("",i,m,o,s))==null?void 0:v.map(({name:S,...x})=>({name:l+S,...x}))});return Uo(t,g=>DTe(f,i,g,o,s));function d(g,m){return na(g,r)?[{name:sT(g),kind:m,extension:void 0}]:Je}}function DTe(e,t,r,i,o){if(!o.readDirectory)return;let s=n2(r);if(s===void 0||Ta(s))return;let l=Fy(s.prefix),f=My(s.prefix)?l:ni(l),d=My(s.prefix)?"":Hl(l),g=YZ(e),m=g?My(e)?e:ni(e):void 0,v=g?vi(f,d+m):f,S=So(s.suffix),x=So(vi(t,v)),A=g?x:cu(x)+d,w=S?"**/*"+S:"./*",C=Zi(xY(o,x,i.extensionsToSearch,void 0,[w]),B=>{let q=F(B);if(q){if(YZ(q))return qZ(Ou(wTe(q))[1]);let{name:W,extension:Y}=ATe(q,o.getCompilationSettings(),i);return tC(W,"script",Y)}}),P=S?Je:Zi(M7(o,x),B=>B==="node_modules"?void 0:qZ(B));return[...C,...P];function F(B){let q=hBe(So(B),A,S);return q===void 0?void 0:wTe(q)}}function hBe(e,t,r){return na(e,t)&&Oc(e,r)?e.slice(t.length,e.length-r.length):void 0}function wTe(e){return e[0]===_s?e.slice(1):e}function gBe(e,t,r){let o=r.getAmbientModules().map(s=>u_(s.name)).filter(s=>na(s,e)&&s.indexOf("*")<0);if(t!==void 0){let s=cu(t);return o.map(l=>QC(l,s))}return o}function yBe(e,t,r,i){let o=Vi(e,t),s=Nm(e.text,o.pos),l=s&&wr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let f=e.text.slice(l.pos,t),d=OTe.exec(f);if(!d)return;let[,g,m,v]=d,S=ni(e.path),x=m==="path"?Tk(v,S,XZ(r,0,e),i,!0,e.path):m==="types"?RTe(i,r,S,kTe(v),XZ(r,1,e)):L.fail();return STe(v,l.pos+g.length,lo(x.values()))}function RTe(e,t,r,i,o,s=KZ()){let l=new Map,f=B7(()=>XO(t,e))||Je;for(let g of f)d(g);for(let g of AY(r,e)){let m=vi(ni(g),"node_modules/@types");d(m)}return s;function d(g){if(G7(e,g))for(let m of M7(e,g)){let v=iF(m);if(!(t.types&&!ya(t.types,v)))if(i===void 0)l.has(v)||(s.add(tC(v,"external module name",void 0)),l.set(v,!0));else{let S=vi(g,m),x=IW(i,v,lb(e));x!==void 0&&Tk(x,S,o,e,!1,void 0,s)}}}}function vBe(e,t){if(!e.readFile||!e.fileExists)return Je;let r=[];for(let i of AY(t,e)){let o=JI(i,e);for(let s of NTe){let l=o[s];if(l)for(let f in l)fs(l,f)&&!na(f,"@types/")&&r.push(f)}}return r}function bBe(e,t){let r=Math.max(e.lastIndexOf(_s),e.lastIndexOf(pw)),i=r!==-1?r+1:0,o=e.length-i;return o===0||i_(e.substr(i,o),99)?void 0:il(t+i,o)}function EBe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function YZ(e){return jl(e,_s)}function TBe(e){return Pa(e.parent)&&Sl(e.parent.arguments)===e&&Re(e.parent.expression)&&e.parent.expression.escapedText==="require"}var $Z,OTe,NTe,SBe=gt({"src/services/stringCompletions.ts"(){"use strict";Fr(),QZ(),$Z={directory:0,script:1,"external module name":2},OTe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,NTe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),aG={};Mo(aG,{getStringLiteralCompletionDetails:()=>iBe,getStringLiteralCompletions:()=>nBe});var xBe=gt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";SBe()}}),lx={};Mo(lx,{CompletionKind:()=>zZ,CompletionSource:()=>HZ,SortText:()=>Pl,StringCompletions:()=>aG,SymbolOriginInfoKind:()=>WZ,createCompletionDetails:()=>mP,createCompletionDetailsForSymbol:()=>GZ,getCompletionEntriesFromSymbols:()=>MZ,getCompletionEntryDetails:()=>OGe,getCompletionEntrySymbol:()=>PGe,getCompletionsAtPosition:()=>fGe,getPropertiesForObjectExpression:()=>tG,moduleSpecifierResolutionCacheAttemptLimit:()=>jZ,moduleSpecifierResolutionLimit:()=>iG});var QZ=gt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";tBe(),xBe()}});function ZZ(e,t,r,i){let o=LBe(e,r,i);return(s,l,f)=>{let{directImports:d,indirectUsers:g}=ABe(e,t,o,l,r,i);return{indirectUsers:g,...CBe(d,s,l.exportKind,r,f)}}}function ABe(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let f=W2(),d=W2(),g=[],m=!!i.globalExports,v=m?void 0:[];return x(i),{directImports:g,indirectUsers:S()};function S(){if(m)return e;if(i.declarations)for(let B of i.declarations)D0(B)&&t.has(B.getSourceFile().fileName)&&P(B);return v.map(Gn)}function x(B){let q=F(B);if(q){for(let W of q)if(f(W))switch(l&&l.throwIfCancellationRequested(),W.kind){case 210:if(Dd(W)){A(W);break}if(!m){let R=W.parent;if(o===2&&R.kind===257){let{name:ie}=R;if(ie.kind===79){g.push(ie);break}}}break;case 79:break;case 268:C(W,W.name,Mr(W,1),!1);break;case 269:g.push(W);let Y=W.importClause&&W.importClause.namedBindings;Y&&Y.kind===271?C(W,Y.name,!1,!0):!m&&lS(W)&&P(vP(W));break;case 275:W.exportClause?W.exportClause.kind===277?P(vP(W),!0):g.push(W):x(OBe(W,s));break;case 202:!m&&W.isTypeOf&&!W.qualifier&&w(W)&&P(W.getSourceFile(),!0),g.push(W);break;default:L.failBadSyntaxKind(W,"Unexpected import kind.")}}}function A(B){let q=jn(B,oG)||B.getSourceFile();P(q,!!w(B,!0))}function w(B,q=!1){return jn(B,W=>q&&oG(W)?"quit":g_(W)&&vt(W.modifiers,c3))}function C(B,q,W,Y){if(o===2)Y||g.push(B);else if(!m){let R=vP(B);L.assert(R.kind===308||R.kind===264),W||IBe(R,q,s)?P(R,!0):P(R)}}function P(B,q=!1){if(L.assert(!m),!d(B)||(v.push(B),!q))return;let Y=s.getMergedSymbol(B.symbol);if(!Y)return;L.assert(!!(Y.flags&1536));let R=F(Y);if(R)for(let ie of R)Mh(ie)||P(vP(ie),!0)}function F(B){return r.get($a(B).toString())}}function CBe(e,t,r,i,o){let s=[],l=[];function f(S,x){s.push([S,x])}if(e)for(let S of e)d(S);return{importSearches:s,singleReferences:l};function d(S){if(S.kind===268){tee(S)&&g(S.name);return}if(S.kind===79){g(S);return}if(S.kind===202){if(S.qualifier){let w=Yd(S.qualifier);w.escapedText===fc(t)&&l.push(w)}else r===2&&l.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==10)return;if(S.kind===275){S.exportClause&&h_(S.exportClause)&&m(S.exportClause);return}let{name:x,namedBindings:A}=S.importClause||{name:void 0,namedBindings:void 0};if(A)switch(A.kind){case 271:g(A.name);break;case 272:(r===0||r===1)&&m(A);break;default:L.assertNever(A)}if(x&&(r===1||r===2)&&(!o||x.escapedText===A7(t))){let w=i.getSymbolAtLocation(x);f(x,w)}}function g(S){r===2&&(!o||v(S.escapedText))&&f(S,i.getSymbolAtLocation(S))}function m(S){if(S)for(let x of S.elements){let{name:A,propertyName:w}=x;if(v((w||A).escapedText))if(w)l.push(w),(!o||A.escapedText===t.escapedName)&&f(A,i.getSymbolAtLocation(A));else{let C=x.kind===278&&x.propertyName?i.getExportSpecifierLocalTargetSymbol(x):i.getSymbolAtLocation(A);f(A,C)}}}function v(S){return S===t.escapedName||r!==0&&S==="default"}}function IBe(e,t,r){let i=r.getSymbolAtLocation(t);return!!MTe(e,o=>{if(!Il(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&h_(s)&&s.elements.some(f=>r.getExportSpecifierLocalTargetSymbol(f)===i)})}function PTe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let f=r.valueDeclaration;if(f?.kind===308){for(let d of l.referencedFiles)e.getSourceFileFromReference(l,d)===f&&o.push({kind:"reference",referencingFile:l,ref:d});for(let d of l.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===f.fileName&&o.push({kind:"reference",referencingFile:l,ref:d})}}FTe(l,(d,g)=>{s.getSymbolAtLocation(g)===r&&o.push({kind:"import",literal:g})})}return o}function LBe(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),FTe(o,(s,l)=>{let f=t.getSymbolAtLocation(l);if(f){let d=$a(f).toString(),g=i.get(d);g||i.set(d,g=[]),g.push(s)}});return i}function MTe(e,t){return mn(e.kind===308?e.statements:e.body.statements,r=>t(r)||oG(r)&&mn(r.body&&r.body.statements,t))}function FTe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(aR(r),r);else MTe(e,r=>{switch(r.kind){case 275:case 269:{let i=r;i.moduleSpecifier&&yo(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 268:{let i=r;tee(i)&&t(i,i.moduleReference.expression);break}}})}function GTe(e,t,r,i){return i?o():o()||s();function o(){var d;let{parent:g}=e,m=g.parent;if(t.exportSymbol)return g.kind===208?(d=t.declarations)!=null&&d.some(x=>x===g)&&ar(m)?S(m,!1):void 0:l(t.exportSymbol,f(g));{let x=DBe(g,e);if(x&&Mr(x,1))return Nl(x)&&x.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(x.name)}:l(t,f(x));if(qm(g))return l(t,0);if(pc(g))return v(g);if(pc(m))return v(m);if(ar(g))return S(g,!0);if(ar(m))return S(m,!0);if(Kz(g)||Vz(g))return l(t,0)}function v(x){if(!x.symbol.parent)return;let A=x.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:x.symbol.parent,exportKind:A}}}function S(x,A){let w;switch(ic(x)){case 1:w=0;break;case 2:w=2;break;default:return}let C=A?r.getSymbolAtLocation(ule(Ga(x.left,Us))):t;return C&&l(C,w)}}function s(){if(!wBe(e))return;let g=r.getImmediateAliasedSymbol(t);if(!g||(g=RBe(g,r),g.escapedName==="export="&&(g=kBe(g,r),g===void 0)))return;let m=A7(g);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:g}}function l(d,g){let m=eee(d,g,r);return m&&{kind:1,symbol:d,exportInfo:m}}function f(d){return Mr(d,1024)?1:0}}function kBe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=L.checkDefined(e.valueDeclaration);if(pc(o))return(r=zr(o.expression,$p))==null?void 0:r.symbol;if(ar(o))return(i=zr(o.right,$p))==null?void 0:i.symbol;if(Li(o))return o.symbol}function DBe(e,t){let r=wi(e)?e:Wo(e)?bA(e):void 0;return r?e.name!==t||E2(r.parent)?void 0:Bc(r.parent.parent)?r.parent.parent:void 0:e}function wBe(e){let{parent:t}=e;switch(t.kind){case 268:return t.name===e&&tee(t);case 273:return!t.propertyName;case 270:case 271:return L.assert(t.name===e),!0;case 205:return Yn(e)&&N0(t.parent.parent);default:return!1}}function eee(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return BN(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function RBe(e,t){if(e.declarations)for(let r of e.declarations){if(Mu(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(br(r)&&Bm(r.expression)&&!pi(r.name))return t.getSymbolAtLocation(r);if(xf(r)&&ar(r.parent.parent)&&ic(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function OBe(e,t){return t.getMergedSymbol(vP(e).symbol)}function vP(e){if(e.kind===210)return e.getSourceFile();let{parent:t}=e;return t.kind===308?t:(L.assert(t.kind===265),Ga(t.parent,oG))}function oG(e){return e.kind===264&&e.name.kind===10}function tee(e){return e.moduleReference.kind===280&&e.moduleReference.expression.kind===10}var nee,ree,NBe=gt({"src/services/importTracker.ts"(){"use strict";Fr(),nee=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(nee||{}),ree=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(ree||{})}});function Ym(e,t=1){return{kind:t,node:e.name||e,context:PBe(e)}}function BTe(e){return e&&e.kind===void 0}function PBe(e){if(Kl(e))return sE(e);if(e.parent){if(!Kl(e.parent)&&!pc(e.parent)){if(Yn(e)){let r=ar(e.parent)?e.parent:Us(e.parent)&&ar(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&ic(r)!==0)return sE(r)}if(Xm(e.parent)||GS(e.parent))return e.parent.parent;if(FS(e.parent)||J0(e.parent)||hI(e.parent))return e.parent;if(es(e)){let r=oR(e);if(r){let i=jn(r,o=>Kl(o)||ca(o)||EI(o));return Kl(i)?sE(i):i}}let t=jn(e,ts);return t?sE(t.parent):void 0}if(e.parent.name===e||Ec(e.parent)||pc(e.parent)||(eS(e.parent)||Wo(e.parent))&&e.parent.propertyName===e||e.kind===88&&Mr(e.parent,1025))return sE(e.parent)}}function sE(e){if(e)switch(e.kind){case 257:return!pu(e.parent)||e.parent.declarations.length!==1?e:Bc(e.parent.parent)?e.parent.parent:CA(e.parent.parent)?sE(e.parent.parent):e.parent;case 205:return sE(e.parent.parent);case 273:return e.parent.parent.parent;case 278:case 271:return e.parent.parent;case 270:case 277:return e.parent;case 223:return Ol(e.parent)?e.parent:e;case 247:case 246:return{start:e.initializer,end:e.expression};case 299:case 300:return qg(e.parent)?sE(jn(e.parent,t=>ar(t)||CA(t))):e;default:return e}}function iee(e,t,r){if(!r)return;let i=BTe(r)?EP(r.start,t,r.end):EP(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function MBe(e,t,r,i,o){let s=ef(i,o),l={use:1},f=u1.getReferencedSymbolsForNode(o,s,e,r,t,l),d=e.getTypeChecker(),g=u1.getAdjustedNode(s,l),m=FBe(g)?d.getSymbolAtLocation(g):void 0;return!f||!f.length?void 0:Zi(f,({definition:v,references:S})=>v&&{definition:d.runWithCancellationToken(t,x=>UBe(v,x,s)),references:S.map(x=>jBe(x,m))})}function FBe(e){return e.kind===88||!!fR(e)||_R(e)||e.kind===135&&Ec(e.parent)}function GBe(e,t,r,i,o){let s=ef(i,o),l,f=UTe(e,t,r,s,o);if(s.parent.kind===208||s.parent.kind===205||s.parent.kind===209||s.kind===106)l=f&&[...f];else if(f){let g=HU(f),m=new Map;for(;!g.isEmpty();){let v=g.dequeue();if(!V_(m,zo(v.node)))continue;l=Sn(l,v);let S=UTe(e,t,r,v.node,v.node.pos);S&&g.enqueue(...S)}}let d=e.getTypeChecker();return on(l,g=>WBe(g,d))}function UTe(e,t,r,i,o){if(i.kind===308)return;let s=e.getTypeChecker();if(i.parent.kind===300){let l=[];return u1.getReferenceEntriesForShorthandPropertyAssignment(i,s,f=>l.push(Ym(f))),l}else if(i.kind===106||Pu(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[Ym(l.valueDeclaration)]}else return VTe(o,i,e,r,t,{implementations:!0,use:1})}function BBe(e,t,r,i,o,s,l){return on(jTe(u1.getReferencedSymbolsForNode(o,i,e,r,t,s)),f=>l(f,i,e.getTypeChecker()))}function VTe(e,t,r,i,o,s={},l=new Set(i.map(f=>f.fileName))){return jTe(u1.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function jTe(e){return e&&Uo(e,t=>t.references)}function UBe(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:v,kind:S}=HTe(m,t,r),x=v.map(C=>C.text).join(""),A=m.declarations&&Sl(m.declarations),w=A?sa(A)||A:r;return{...bP(w),name:x,kind:S,displayParts:v,context:sE(A)}}case 1:{let{node:m}=e;return{...bP(m),name:m.text,kind:"label",displayParts:[Qu(m.text,17)]}}case 2:{let{node:m}=e,v=Xa(m.kind);return{...bP(m),name:v,kind:"keyword",displayParts:[{text:v,kind:"keyword"}]}}case 3:{let{node:m}=e,v=t.getSymbolAtLocation(m),S=v&&$g.getSymbolDisplayPartsDocumentationAndSymbolKind(t,v,m.getSourceFile(),e1(m),m).displayParts||[tf("this")];return{...bP(m),name:"this",kind:"var",displayParts:S}}case 4:{let{node:m}=e;return{...bP(m),name:m.text,kind:"var",displayParts:[Qu(Qc(m),8)]}}case 5:return{textSpan:lv(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Qu(`"${e.reference.fileName}"`,8)]};default:return L.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:f,displayParts:d,context:g}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:f,name:l,textSpan:s,displayParts:d,...iee(s,o,g)}}function bP(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:EP(ts(e)?e.expression:e,t)}}function HTe(e,t,r){let i=u1.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Sl(e.declarations)||r,{displayParts:s,symbolKind:l}=$g.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function VBe(e,t,r,i){return{...sG(e),...i&&HBe(e,t,r)}}function jBe(e,t){let r=WTe(e);return t?{...r,isDefinition:e.kind!==0&&JTe(e.node,t)}:r}function WTe(e){let t=sG(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:zTe(i),isInString:r===2?!0:void 0}}function sG(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=EP(e.node,t);return{textSpan:r,fileName:t.fileName,...iee(r,t,e.context)}}}function HBe(e,t,r){if(e.kind!==0&&Re(t)){let{node:i,kind:o}=e,s=i.parent,l=t.text,f=xf(s);if(f||jN(s)&&s.name===i&&s.dotDotDotToken===void 0){let d={prefixText:l+": "},g={suffixText:": "+l};if(o===3)return d;if(o===4)return g;if(f){let m=s.parent;return rs(m)&&ar(m.parent)&&Bm(m.parent.left)?d:g}else return d}else if($u(s)&&!s.propertyName){let d=Mu(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return ya(d.declarations,s)?{prefixText:l+" as "}:Cp}else if(Mu(s)&&!s.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:l+" as "}:{suffixText:" as "+l}}return Cp}function WBe(e,t){let r=sG(e);if(e.kind!==0){let{node:i}=e;return{...r,...zBe(i,t)}}else return{...r,kind:"",displayParts:[]}}function zBe(e,t){let r=t.getSymbolAtLocation(Kl(e)&&e.name?e.name:e);return r?HTe(r,t,e):e.kind===207?{kind:"interface",displayParts:[Yl(20),tf("object literal"),Yl(21)]}:e.kind===228?{kind:"local class",displayParts:[Yl(20),tf("anonymous local class"),Yl(21)]}:{kind:aE(e),displayParts:[]}}function JBe(e){let t=sG(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=zTe(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function EP(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return es(e)&&o-i>2&&(L.assert(r===void 0),i+=1,o-=1),Wc(i,o)}function aee(e){return e.kind===0?e.textSpan:EP(e.node,e.node.getSourceFile())}function zTe(e){let t=fR(e);return!!t&&KBe(t)||e.kind===88||YI(e)}function JTe(e,t){var r;if(!t)return!1;let i=fR(e)||(e.kind===88?e.parent:_R(e)||e.kind===135&&Ec(e.parent)?e.parent.parent:void 0),o=i&&ar(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function KBe(e){if(e.flags&16777216)return!0;switch(e.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 349:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!qg(e.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!e.body;case 257:case 169:return!!e.initializer||E2(e.parent);case 170:case 168:case 351:case 344:return!1;default:return L.failBadSyntaxKind(e)}}var oee,see,cee,u1,qBe=gt({"src/services/findAllReferences.ts"(){"use strict";Fr(),KTe(),oee=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(oee||{}),see=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(see||{}),cee=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(cee||{}),(e=>{function t(Se,at,Tt,ve,nt,ce={},Q=new Set(ve.map(ue=>ue.fileName))){var ue,G,Oe;if(at=r(at,ce),Li(at)){let ae=xk.getReferenceAtPosition(at,Se,Tt);if(!ae?.file)return;let rt=Tt.getTypeChecker().getMergedSymbol(ae.file.symbol);if(rt)return g(Tt,rt,!1,ve,Q);let Ot=Tt.getFileIncludeReasons();return Ot?[{definition:{type:5,reference:ae.reference,file:at},references:o(ae.file,Ot,Tt)||Je}]:void 0}if(!ce.implementations){let ae=v(at,ve,nt);if(ae)return ae}let je=Tt.getTypeChecker(),Ge=je.getSymbolAtLocation(Ec(at)&&at.parent.name||at);if(!Ge){if(!ce.implementations&&es(at)){if(C7(at)){let ae=Tt.getFileIncludeReasons(),rt=(Oe=(G=(ue=at.getSourceFile().resolvedModules)==null?void 0:ue.get(at.text,W_(at.getSourceFile(),at)))==null?void 0:G.resolvedModule)==null?void 0:Oe.resolvedFileName,Ot=rt?Tt.getSourceFile(rt):void 0;if(Ot)return[{definition:{type:4,node:at},references:o(Ot,ae,Tt)||Je}]}return pt(at,ve,je,nt)}return}if(Ge.escapedName==="export=")return g(Tt,Ge.parent,!1,ve,Q);let kt=l(Ge,Tt,ve,nt,ce,Q);if(kt&&!(Ge.flags&33554432))return kt;let Kt=s(at,Ge,je),ln=Kt&&l(Kt,Tt,ve,nt,ce,Q),ir=S(Ge,at,ve,Q,je,nt,ce);return f(Tt,kt,ir,ln)}e.getReferencedSymbolsForNode=t;function r(Se,at){return at.use===1?Se=zX(Se):at.use===2&&(Se=_7(Se)),Se}e.getAdjustedNode=r;function i(Se,at,Tt,ve=new Set(Tt.map(nt=>nt.fileName))){var nt,ce;let Q=(nt=at.getSourceFile(Se))==null?void 0:nt.symbol;if(Q)return((ce=g(at,Q,!1,Tt,ve)[0])==null?void 0:ce.references)||Je;let ue=at.getFileIncludeReasons(),G=at.getSourceFile(Se);return G&&ue&&o(G,ue,at)||Je}e.getReferencesForFileName=i;function o(Se,at,Tt){let ve,nt=at.get(Se.path)||Je;for(let ce of nt)if(vb(ce)){let Q=Tt.getSourceFileByPath(ce.file),ue=YL(Tt.getSourceFileByPath,ce);F2(ue)&&(ve=Sn(ve,{kind:0,fileName:Q.fileName,textSpan:lv(ue)}))}return ve}function s(Se,at,Tt){if(Se.parent&&gO(Se.parent)){let ve=Tt.getAliasedSymbol(at),nt=Tt.getMergedSymbol(ve);if(ve!==nt)return nt}}function l(Se,at,Tt,ve,nt,ce){let Q=Se.flags&1536&&Se.declarations&&wr(Se.declarations,Li);if(!Q)return;let ue=Se.exports.get("export="),G=g(at,Se,!!ue,Tt,ce);if(!ue||!ce.has(Q.fileName))return G;let Oe=at.getTypeChecker();return Se=wd(ue,Oe),f(at,G,S(Se,void 0,Tt,ce,Oe,ve,nt))}function f(Se,...at){let Tt;for(let ve of at)if(!(!ve||!ve.length)){if(!Tt){Tt=ve;continue}for(let nt of ve){if(!nt.definition||nt.definition.type!==0){Tt.push(nt);continue}let ce=nt.definition.symbol,Q=Yc(Tt,G=>!!G.definition&&G.definition.type===0&&G.definition.symbol===ce);if(Q===-1){Tt.push(nt);continue}let ue=Tt[Q];Tt[Q]={definition:ue.definition,references:ue.references.concat(nt.references).sort((G,Oe)=>{let je=d(Se,G),Ge=d(Se,Oe);if(je!==Ge)return Es(je,Ge);let kt=aee(G),Kt=aee(Oe);return kt.start!==Kt.start?Es(kt.start,Kt.start):Es(kt.length,Kt.length)})}}}return Tt}function d(Se,at){let Tt=at.kind===0?Se.getSourceFile(at.fileName):at.node.getSourceFile();return Se.getSourceFiles().indexOf(Tt)}function g(Se,at,Tt,ve,nt){L.assert(!!at.valueDeclaration);let ce=Zi(PTe(Se,ve,at),ue=>{if(ue.kind==="import"){let G=ue.literal.parent;if(mb(G)){let Oe=Ga(G.parent,Mh);if(Tt&&!Oe.qualifier)return}return Ym(ue.literal)}else return{kind:0,fileName:ue.referencingFile.fileName,textSpan:lv(ue.ref)}});if(at.declarations)for(let ue of at.declarations)switch(ue.kind){case 308:break;case 264:nt.has(ue.getSourceFile().fileName)&&ce.push(Ym(ue.name));break;default:L.assert(!!(at.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let Q=at.exports.get("export=");if(Q?.declarations)for(let ue of Q.declarations){let G=ue.getSourceFile();if(nt.has(G.fileName)){let Oe=ar(ue)&&br(ue.left)?ue.left.expression:pc(ue)?L.checkDefined(Yo(ue,93,G)):sa(ue)||ue;ce.push(Ym(Oe))}}return ce.length?[{definition:{type:0,symbol:at},references:ce}]:Je}function m(Se){return Se.kind===146&&RS(Se.parent)&&Se.parent.operator===146}function v(Se,at,Tt){if(ik(Se.kind))return Se.kind===114&&NS(Se.parent)||Se.kind===146&&!m(Se)?void 0:we(at,Se.kind,Tt,Se.kind===146?m:void 0);if(NA(Se.parent)&&Se.parent.name===Se)return Ve(at,Tt);if(LS(Se)&&oc(Se.parent))return[{definition:{type:2,node:Se},references:[Ym(Se)]}];if(DN(Se)){let ve=s7(Se.parent,Se.text);return ve&&ge(ve.parent,ve)}else if(MX(Se))return ge(Se.parent,Se);if(H2(Se))return gr(Se,at,Tt);if(Se.kind===106)return Ni(Se)}function S(Se,at,Tt,ve,nt,ce,Q){let ue=at&&w(Se,at,nt,!Cr(Q))||Se,G=at?hi(at,ue):7,Oe=[],je=new F(Tt,ve,at?A(at):0,nt,ce,G,Q,Oe),Ge=!Cr(Q)||!ue.declarations?void 0:wr(ue.declarations,Mu);if(Ge)Be(Ge.name,ue,Ge,je.createSearch(at,Se,void 0),je,!0,!0);else if(at&&at.kind===88&&ue.escapedName==="default"&&ue.parent)ct(at,ue,je),B(at,ue,{exportingModuleSymbol:ue.parent,exportKind:1},je);else{let kt=je.createSearch(at,ue,void 0,{allSearchSymbols:at?nn(ue,at,nt,Q.use===2,!!Q.providePrefixAndSuffixTextForRename,!!Q.implementations):[ue]});x(ue,je,kt)}return Oe}function x(Se,at,Tt){let ve=$(Se);if(ve)Pe(ve,ve.getSourceFile(),Tt,at,!(Li(ve)&&!ya(at.sourceFiles,ve)));else for(let nt of at.sourceFiles)at.cancellationToken.throwIfCancellationRequested(),R(nt,Tt,at)}function A(Se){switch(Se.kind){case 173:case 135:return 1;case 79:if(Yr(Se.parent))return L.assert(Se.parent.name===Se),2;default:return 0}}function w(Se,at,Tt,ve){let{parent:nt}=at;return Mu(nt)&&ve?Ne(at,Se,nt,Tt):ks(Se.declarations,ce=>{if(!ce.parent){if(Se.flags&33554432)return;L.fail(`Unexpected symbol at ${L.formatSyntaxKind(at.kind)}: ${L.formatSymbol(Se)}`)}return Rd(ce.parent)&&DS(ce.parent.parent)?Tt.getPropertyOfType(Tt.getTypeFromTypeNode(ce.parent.parent),Se.name):void 0})}let C;(Se=>{Se[Se.None=0]="None",Se[Se.Constructor=1]="Constructor",Se[Se.Class=2]="Class"})(C||(C={}));function P(Se){if(!(Se.flags&33555968))return;let at=Se.declarations&&wr(Se.declarations,Tt=>!Li(Tt)&&!Tc(Tt));return at&&at.symbol}class F{constructor(at,Tt,ve,nt,ce,Q,ue,G){this.sourceFiles=at,this.sourceFilesSet=Tt,this.specialSearchKind=ve,this.checker=nt,this.cancellationToken=ce,this.searchMeaning=Q,this.options=ue,this.result=G,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=W2(),this.markSeenReExportRHS=W2(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(at){return this.sourceFilesSet.has(at.fileName)}getImportSearches(at,Tt){return this.importTracker||(this.importTracker=ZZ(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(at,Tt,this.options.use===2)}createSearch(at,Tt,ve,nt={}){let{text:ce=u_(fc(QA(Tt)||P(Tt)||Tt)),allSearchSymbols:Q=[Tt]}=nt,ue=Bs(ce),G=this.options.implementations&&at?dr(at,Tt,this.checker):void 0;return{symbol:Tt,comingFrom:ve,text:ce,escapedText:ue,parents:G,allSearchSymbols:Q,includes:Oe=>ya(Q,Oe)}}referenceAdder(at){let Tt=$a(at),ve=this.symbolIdToReferences[Tt];return ve||(ve=this.symbolIdToReferences[Tt]=[],this.result.push({definition:{type:0,symbol:at},references:ve})),(nt,ce)=>ve.push(Ym(nt,ce))}addStringOrCommentReference(at,Tt){this.result.push({definition:void 0,references:[{kind:0,fileName:at,textSpan:Tt}]})}markSearchedSymbols(at,Tt){let ve=zo(at),nt=this.sourceFileToSeenSymbols[ve]||(this.sourceFileToSeenSymbols[ve]=new Set),ce=!1;for(let Q of Tt)ce=_0(nt,$a(Q))||ce;return ce}}function B(Se,at,Tt,ve){let{importSearches:nt,singleReferences:ce,indirectUsers:Q}=ve.getImportSearches(at,Tt);if(ce.length){let ue=ve.referenceAdder(at);for(let G of ce)W(G,ve)&&ue(G)}for(let[ue,G]of nt)ke(ue.getSourceFile(),ve.createSearch(ue,G,1),ve);if(Q.length){let ue;switch(Tt.exportKind){case 0:ue=ve.createSearch(Se,at,1);break;case 1:ue=ve.options.use===2?void 0:ve.createSearch(Se,at,1,{text:"default"});break;case 2:break}if(ue)for(let G of Q)R(G,ue,ve)}}function q(Se,at,Tt,ve,nt,ce,Q,ue){let G=ZZ(Se,new Set(Se.map(kt=>kt.fileName)),at,Tt),{importSearches:Oe,indirectUsers:je,singleReferences:Ge}=G(ve,{exportKind:Q?1:0,exportingModuleSymbol:nt},!1);for(let[kt]of Oe)ue(kt);for(let kt of Ge)Re(kt)&&Mh(kt.parent)&&ue(kt);for(let kt of je)for(let Kt of le(kt,Q?"default":ce)){let ln=at.getSymbolAtLocation(Kt),ir=vt(ln?.declarations,ae=>!!zr(ae,pc));Re(Kt)&&!eS(Kt.parent)&&(ln===ve||ir)&&ue(Kt)}}e.eachExportReference=q;function W(Se,at){return Ce(Se,at)?at.options.use!==2?!0:Re(Se)?!(eS(Se.parent)&&Se.escapedText==="default"):!1:!1}function Y(Se,at){if(Se.declarations)for(let Tt of Se.declarations){let ve=Tt.getSourceFile();ke(ve,at.createSearch(Tt,Se,0),at,at.includesSourceFile(ve))}}function R(Se,at,Tt){p$(Se).get(at.escapedText)!==void 0&&ke(Se,at,Tt)}function ie(Se,at){return qg(Se.parent.parent)?at.getPropertySymbolOfDestructuringAssignment(Se):void 0}function $(Se){let{declarations:at,flags:Tt,parent:ve,valueDeclaration:nt}=Se;if(nt&&(nt.kind===215||nt.kind===228))return nt;if(!at)return;if(Tt&8196){let ue=wr(at,G=>cd(G,8)||xu(G));return ue?cb(ue,260):void 0}if(at.some(jN))return;let ce=ve&&!(Se.flags&262144);if(ce&&!(BN(ve)&&!ve.globalExports))return;let Q;for(let ue of at){let G=e1(ue);if(Q&&Q!==G||!G||G.kind===308&&!kd(G))return;if(Q=G,ms(Q)){let Oe;for(;Oe=MH(Q);)Q=Oe}}return ce?Q.getSourceFile():Q}function fe(Se,at,Tt,ve=Tt){return Z(Se,at,Tt,()=>!0,ve)||!1}e.isSymbolReferencedInFile=fe;function Z(Se,at,Tt,ve,nt=Tt){let ce=Ad(Se.parent,Se.parent.parent)?Vo(at.getSymbolsOfParameterPropertyDeclaration(Se.parent,Se.text)):at.getSymbolAtLocation(Se);if(ce)for(let Q of le(Tt,ce.name,nt)){if(!Re(Q)||Q===Se||Q.escapedText!==Se.escapedText)continue;let ue=at.getSymbolAtLocation(Q);if(ue===ce||at.getShorthandAssignmentValueSymbol(Q.parent)===ce||Mu(Q.parent)&&Ne(Q,ue,Q.parent,at)===ce){let G=ve(Q);if(G)return G}}}e.eachSymbolReferenceInFile=Z;function U(Se,at){return Pr(le(at,Se),nt=>!!fR(nt)).reduce((nt,ce)=>{let Q=ve(ce);return!vt(nt.declarationNames)||Q===nt.depth?(nt.declarationNames.push(ce),nt.depth=Q):Q<nt.depth&&(nt.declarationNames=[ce],nt.depth=Q),nt},{depth:1/0,declarationNames:[]}).declarationNames;function ve(nt){let ce=0;for(;nt;)nt=e1(nt),ce++;return ce}}e.getTopMostDeclarationNamesInFile=U;function re(Se,at,Tt,ve){if(!Se.name||!Re(Se.name))return!1;let nt=L.checkDefined(Tt.getSymbolAtLocation(Se.name));for(let ce of at)for(let Q of le(ce,nt.name)){if(!Re(Q)||Q===Se.name||Q.escapedText!==Se.name.escapedText)continue;let ue=o7(Q),G=Pa(ue.parent)&&ue.parent.expression===ue?ue.parent:void 0,Oe=Tt.getSymbolAtLocation(Q);if(Oe&&Tt.getRootSymbols(Oe).some(je=>je===nt)&&ve(Q,G))return!0}return!1}e.someSignatureUsage=re;function le(Se,at,Tt=Se){return _e(Se,at,Tt).map(ve=>ef(Se,ve))}function _e(Se,at,Tt=Se){let ve=[];if(!at||!at.length)return ve;let nt=Se.text,ce=nt.length,Q=at.length,ue=nt.indexOf(at,Tt.pos);for(;ue>=0&&!(ue>Tt.end);){let G=ue+Q;(ue===0||!tb(nt.charCodeAt(ue-1),99))&&(G===ce||!tb(nt.charCodeAt(G),99))&&ve.push(ue),ue=nt.indexOf(at,ue+Q+1)}return ve}function ge(Se,at){let Tt=Se.getSourceFile(),ve=at.text,nt=Zi(le(Tt,ve,Se),ce=>ce===at||DN(ce)&&s7(ce,ve)===at?Ym(ce):void 0);return[{definition:{type:1,node:at},references:nt}]}function X(Se,at){switch(Se.kind){case 80:if(gb(Se.parent))return!0;case 79:return Se.text.length===at.length;case 14:case 10:{let Tt=Se;return(c7(Tt)||UX(Se)||vhe(Se)||Pa(Se.parent)&&sS(Se.parent)&&Se.parent.arguments[1]===Se)&&Tt.text.length===at.length}case 8:return c7(Se)&&Se.text.length===at.length;case 88:return at.length===7;default:return!1}}function Ve(Se,at){let Tt=Uo(Se,ve=>(at.throwIfCancellationRequested(),Zi(le(ve,"meta",ve),nt=>{let ce=nt.parent;if(NA(ce))return Ym(ce)})));return Tt.length?[{definition:{type:2,node:Tt[0].node},references:Tt}]:void 0}function we(Se,at,Tt,ve){let nt=Uo(Se,ce=>(Tt.throwIfCancellationRequested(),Zi(le(ce,Xa(at),ce),Q=>{if(Q.kind===at&&(!ve||ve(Q)))return Ym(Q)})));return nt.length?[{definition:{type:2,node:nt[0].node},references:nt}]:void 0}function ke(Se,at,Tt,ve=!0){return Tt.cancellationToken.throwIfCancellationRequested(),Pe(Se,Se,at,Tt,ve)}function Pe(Se,at,Tt,ve,nt){if(ve.markSearchedSymbols(at,Tt.allSearchSymbols))for(let ce of _e(at,Tt.text,Se))Ie(at,ce,Tt,ve,nt)}function Ce(Se,at){return!!(ZT(Se)&at.searchMeaning)}function Ie(Se,at,Tt,ve,nt){let ce=ef(Se,at);if(!X(ce,Tt.text)){!ve.options.implementations&&(ve.options.findInStrings&&n1(Se,at)||ve.options.findInComments&&Ghe(Se,at))&&ve.addStringOrCommentReference(Se.fileName,il(at,Tt.text.length));return}if(!Ce(ce,ve))return;let Q=ve.checker.getSymbolAtLocation(ce);if(!Q)return;let ue=ce.parent;if($u(ue)&&ue.propertyName===ce)return;if(Mu(ue)){L.assert(ce.kind===79),Be(ce,Q,ue,Tt,ve,nt);return}let G=Kn(Tt,Q,ce,ve);if(!G){_t(Q,Tt,ve);return}switch(ve.specialSearchKind){case 0:nt&&ct(ce,G,ve);break;case 1:Rt(ce,Se,Tt,ve);break;case 2:We(ce,Tt,ve);break;default:L.assertNever(ve.specialSearchKind)}Yn(ce)&&Wo(ce.parent)&&N0(ce.parent.parent.parent)&&(Q=ce.parent.symbol,!Q)||Ye(ce,Q,Tt,ve)}function Be(Se,at,Tt,ve,nt,ce,Q){L.assert(!Q||!!nt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:ue,propertyName:G,name:Oe}=Tt,je=ue.parent,Ge=Ne(Se,at,Tt,nt.checker);if(!Q&&!ve.includes(Ge))return;if(G?Se===G?(je.moduleSpecifier||kt(),ce&&nt.options.use!==2&&nt.markSeenReExportRHS(Oe)&&ct(Oe,L.checkDefined(Tt.symbol),nt)):nt.markSeenReExportRHS(Se)&&kt():nt.options.use===2&&Oe.escapedText==="default"||kt(),!Cr(nt.options)||Q){let ln=Se.escapedText==="default"||Tt.name.escapedText==="default"?1:0,ir=L.checkDefined(Tt.symbol),ae=eee(ir,ln,nt.checker);ae&&B(Se,ir,ae,nt)}if(ve.comingFrom!==1&&je.moduleSpecifier&&!G&&!Cr(nt.options)){let Kt=nt.checker.getExportSpecifierLocalTargetSymbol(Tt);Kt&&Y(Kt,nt)}function kt(){ce&&ct(Se,Ge,nt)}}function Ne(Se,at,Tt,ve){return Le(Se,Tt)&&ve.getExportSpecifierLocalTargetSymbol(Tt)||at}function Le(Se,at){let{parent:Tt,propertyName:ve,name:nt}=at;return L.assert(ve===Se||nt===Se),ve?ve===Se:!Tt.parent.moduleSpecifier}function Ye(Se,at,Tt,ve){let nt=GTe(Se,at,ve.checker,Tt.comingFrom===1);if(!nt)return;let{symbol:ce}=nt;nt.kind===0?Cr(ve.options)||Y(ce,ve):B(Se,ce,nt.exportInfo,ve)}function _t({flags:Se,valueDeclaration:at},Tt,ve){let nt=ve.checker.getShorthandAssignmentValueSymbol(at),ce=at&&sa(at);!(Se&33554432)&&ce&&Tt.includes(nt)&&ct(ce,nt,ve)}function ct(Se,at,Tt){let{kind:ve,symbol:nt}="kind"in at?at:{kind:void 0,symbol:at};if(Tt.options.use===2&&Se.kind===88)return;let ce=Tt.referenceAdder(nt);Tt.options.implementations?_n(Se,ce,Tt):ce(Se,ve)}function Rt(Se,at,Tt,ve){ZL(Se)&&ct(Se,Tt.symbol,ve);let nt=()=>ve.referenceAdder(Tt.symbol);if(Yr(Se.parent))L.assert(Se.kind===88||Se.parent.name===Se),qe(Tt.symbol,at,nt());else{let ce=En(Se);ce&&(Qt(ce,nt()),kn(ce,ve))}}function We(Se,at,Tt){ct(Se,at.symbol,Tt);let ve=Se.parent;if(Tt.options.use===2||!Yr(ve))return;L.assert(ve.name===Se);let nt=Tt.referenceAdder(at.symbol);for(let ce of ve.members)xA(ce)&&Ca(ce)&&ce.body&&ce.body.forEachChild(function Q(ue){ue.kind===108?nt(ue):!Ia(ue)&&!Yr(ue)&&ue.forEachChild(Q)})}function qe(Se,at,Tt){let ve=zt(Se);if(ve&&ve.declarations)for(let nt of ve.declarations){let ce=Yo(nt,135,at);L.assert(nt.kind===173&&!!ce),Tt(ce)}Se.exports&&Se.exports.forEach(nt=>{let ce=nt.valueDeclaration;if(ce&&ce.kind===171){let Q=ce.body;Q&&Ht(Q,108,ue=>{ZL(ue)&&Tt(ue)})}})}function zt(Se){return Se.members&&Se.members.get("__constructor")}function Qt(Se,at){let Tt=zt(Se.symbol);if(Tt&&Tt.declarations)for(let ve of Tt.declarations){L.assert(ve.kind===173);let nt=ve.body;nt&&Ht(nt,106,ce=>{NX(ce)&&at(ce)})}}function tn(Se){return!!zt(Se.symbol)}function kn(Se,at){if(tn(Se))return;let Tt=Se.symbol,ve=at.createSearch(void 0,Tt,void 0);x(Tt,at,ve)}function _n(Se,at,Tt){if(Rh(Se)&&ri(Se.parent)){at(Se);return}if(Se.kind!==79)return;Se.parent.kind===300&&vn(Se,Tt.checker,at);let ve=Gt(Se);if(ve){at(ve);return}let nt=jn(Se,ue=>!Yu(ue.parent)&&!bi(ue.parent)&&!_T(ue.parent)),ce=nt.parent;if(f6(ce)&&ce.type===nt&&Tt.markSeenContainingTypeReference(ce))if(Jy(ce))Q(ce.initializer);else if(Ia(ce)&&ce.body){let ue=ce.body;ue.kind===238?vT(ue,G=>{G.expression&&Q(G.expression)}):Q(ue)}else pT(ce)&&Q(ce.expression);function Q(ue){$n(ue)&&at(ue)}}function Gt(Se){return Re(Se)||br(Se)?Gt(Se.parent):Vg(Se)?zr(Se.parent.parent,Yr):void 0}function $n(Se){switch(Se.kind){case 214:return $n(Se.expression);case 216:case 215:case 207:case 228:case 206:return!0;default:return!1}}function ui(Se,at,Tt,ve){if(Se===at)return!0;let nt=$a(Se)+","+$a(at),ce=Tt.get(nt);if(ce!==void 0)return ce;Tt.set(nt,!1);let Q=!!Se.declarations&&Se.declarations.some(ue=>NI(ue).some(G=>{let Oe=ve.getTypeAtLocation(G);return!!Oe&&!!Oe.symbol&&ui(Oe.symbol,at,Tt,ve)}));return Tt.set(nt,Q),Q}function Ni(Se){let at=Ww(Se,!1);if(!at)return;let Tt=32;switch(at.kind){case 169:case 168:case 171:case 170:case 173:case 174:case 175:Tt&=Yy(at),at=at.parent;break;default:return}let ve=at.getSourceFile(),nt=Zi(le(ve,"super",at),ce=>{if(ce.kind!==106)return;let Q=Ww(ce,!1);return Q&&Ca(Q)===!!Tt&&Q.parent.symbol===at.symbol?Ym(ce):void 0});return[{definition:{type:0,symbol:at.symbol},references:nt}]}function Pi(Se){return Se.kind===79&&Se.parent.kind===166&&Se.parent.name===Se}function gr(Se,at,Tt){let ve=Ku(Se,!1,!1),nt=32;switch(ve.kind){case 171:case 170:if(s_(ve)){nt&=Yy(ve),ve=ve.parent;break}case 169:case 168:case 173:case 174:case 175:nt&=Yy(ve),ve=ve.parent;break;case 308:if(Lc(ve)||Pi(Se))return;case 259:case 215:break;default:return}let ce=Uo(ve.kind===308?at:[ve.getSourceFile()],ue=>(Tt.throwIfCancellationRequested(),le(ue,"this",Li(ve)?ue:ve).filter(G=>{if(!H2(G))return!1;let Oe=Ku(G,!1,!1);if(!$p(Oe))return!1;switch(ve.kind){case 215:case 259:return ve.symbol===Oe.symbol;case 171:case 170:return s_(ve)&&ve.symbol===Oe.symbol;case 228:case 260:case 207:return Oe.parent&&$p(Oe.parent)&&ve.symbol===Oe.parent.symbol&&Ca(Oe)===!!nt;case 308:return Oe.kind===308&&!Lc(Oe)&&!Pi(G)}}))).map(ue=>Ym(ue));return[{definition:{type:3,node:ks(ce,ue=>ha(ue.node.parent)?ue.node:void 0)||Se},references:ce}]}function pt(Se,at,Tt,ve){let nt=f7(Se,Tt),ce=Uo(at,Q=>(ve.throwIfCancellationRequested(),Zi(le(Q,Se.text),ue=>{if(es(ue)&&ue.text===Se.text)if(nt){let G=f7(ue,Tt);if(nt!==Tt.getStringType()&&nt===G)return Ym(ue,2)}else return IS(ue)&&!DT(ue,Q)?void 0:Ym(ue,2)})));return[{definition:{type:4,node:Se},references:ce}]}function nn(Se,at,Tt,ve,nt,ce){let Q=[];return Dt(Se,at,Tt,ve,!(ve&&nt),(ue,G,Oe)=>{Oe&&An(Se)!==An(Oe)&&(Oe=void 0),Q.push(Oe||G||ue)},()=>!ce),Q}function Dt(Se,at,Tt,ve,nt,ce,Q){let ue=nP(at);if(ue){let ln=Tt.getShorthandAssignmentValueSymbol(at.parent);if(ln&&ve)return ce(ln,void 0,void 0,3);let ir=Tt.getContextualType(ue.parent),ae=ir&&ks(_5(ue,Tt,ir,!0),oe=>kt(oe,4));if(ae)return ae;let rt=ie(at,Tt),Ot=rt&&ce(rt,void 0,void 0,4);if(Ot)return Ot;let Ke=ln&&ce(ln,void 0,void 0,3);if(Ke)return Ke}let G=s(at,Se,Tt);if(G){let ln=ce(G,void 0,void 0,1);if(ln)return ln}let Oe=kt(Se);if(Oe)return Oe;if(Se.valueDeclaration&&Ad(Se.valueDeclaration,Se.valueDeclaration.parent)){let ln=Tt.getSymbolsOfParameterPropertyDeclaration(Ga(Se.valueDeclaration,ha),Se.name);return L.assert(ln.length===2&&!!(ln[0].flags&1)&&!!(ln[1].flags&4)),kt(Se.flags&1?ln[1]:ln[0])}let je=nc(Se,278);if(!ve||je&&!je.propertyName){let ln=je&&Tt.getExportSpecifierLocalTargetSymbol(je);if(ln){let ir=ce(ln,void 0,void 0,1);if(ir)return ir}}if(!ve){let ln;return nt?ln=jN(at.parent)?I7(Tt,at.parent):void 0:ln=Kt(Se,Tt),ln&&kt(ln,4)}if(L.assert(ve),nt){let ln=Kt(Se,Tt);return ln&&kt(ln,4)}function kt(ln,ir){return ks(Tt.getRootSymbols(ln),ae=>ce(ln,ae,void 0,ir)||(ae.parent&&ae.parent.flags&96&&Q(ae)?pn(ae.parent,ae.name,Tt,rt=>ce(ln,ae,rt,ir)):void 0))}function Kt(ln,ir){let ae=nc(ln,205);if(ae&&jN(ae))return I7(ir,ae)}}function pn(Se,at,Tt,ve){let nt=new Map;return ce(Se);function ce(Q){if(!(!(Q.flags&96)||!V_(nt,$a(Q))))return ks(Q.declarations,ue=>ks(NI(ue),G=>{let Oe=Tt.getTypeAtLocation(G),je=Oe&&Oe.symbol&&Tt.getPropertyOfType(Oe,at);return Oe&&je&&(ks(Tt.getRootSymbols(je),ve)||ce(Oe.symbol))}))}}function An(Se){return Se.valueDeclaration?!!(uu(Se.valueDeclaration)&32):!1}function Kn(Se,at,Tt,ve){let{checker:nt}=ve;return Dt(at,Tt,nt,!1,ve.options.use!==2||!!ve.options.providePrefixAndSuffixTextForRename,(ce,Q,ue,G)=>(ue&&An(at)!==An(ue)&&(ue=void 0),Se.includes(ue||Q||ce)?{symbol:Q&&!(ac(ce)&6)?Q:ce,kind:G}:void 0),ce=>!(Se.parents&&!Se.parents.some(Q=>ui(ce.parent,Q,ve.inheritsFromCache,nt))))}function hi(Se,at){let Tt=ZT(Se),{declarations:ve}=at;if(ve){let nt;do{nt=Tt;for(let ce of ve){let Q=LN(ce);Q&Tt&&(Tt|=Q)}}while(Tt!==nt)}return Tt}e.getIntersectingMeaningFromDeclarations=hi;function ri(Se){return Se.flags&16777216?!(ku(Se)||Ep(Se)):PA(Se)?Jy(Se):Ds(Se)?!!Se.body:Yr(Se)||Ow(Se)}function vn(Se,at,Tt){let ve=at.getSymbolAtLocation(Se),nt=at.getShorthandAssignmentValueSymbol(ve.valueDeclaration);if(nt)for(let ce of nt.getDeclarations())LN(ce)&1&&Tt(ce)}e.getReferenceEntriesForShorthandPropertyAssignment=vn;function Ht(Se,at,Tt){pa(Se,ve=>{ve.kind===at&&Tt(ve),Ht(ve,at,Tt)})}function En(Se){return lW(o7(Se).parent)}function dr(Se,at,Tt){let ve=j2(Se)?Se.parent:void 0,nt=ve&&Tt.getTypeAtLocation(ve.expression),ce=Zi(nt&&(nt.isUnionOrIntersection()?nt.types:nt.symbol===at.parent?void 0:[nt]),Q=>Q.symbol&&Q.symbol.flags&96?Q.symbol:void 0);return ce.length===0?void 0:ce}function Cr(Se){return Se.use===2&&Se.providePrefixAndSuffixTextForRename}})(u1||(u1={}))}}),js={};Mo(js,{Core:()=>u1,DefinitionKind:()=>oee,EntryKind:()=>see,ExportKind:()=>nee,FindReferencesUse:()=>cee,ImportExport:()=>ree,createImportTracker:()=>ZZ,findModuleReferences:()=>PTe,findReferenceOrRenameEntries:()=>BBe,findReferencedSymbols:()=>MBe,getContextNode:()=>sE,getExportInfo:()=>eee,getImplementationsAtPosition:()=>GBe,getImportOrExportSymbol:()=>GTe,getReferenceEntriesForNode:()=>VTe,getTextSpanOfEntry:()=>aee,isContextWithStartAndEndNode:()=>BTe,isDeclarationOfSymbol:()=>JTe,nodeEntry:()=>Ym,toContextSpan:()=>iee,toHighlightSpan:()=>JBe,toReferenceEntry:()=>WTe,toRenameLocation:()=>VBe});var KTe=gt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";NBe(),qBe()}});function qTe(e,t,r,i,o){var s,l;let f=YTe(t,r,e),d=f&&[rUe(f.reference.fileName,f.fileName,f.unverified)]||Je;if(f?.file)return d;let g=ef(t,r);if(g===t)return;let{parent:m}=g,v=e.getTypeChecker();if(g.kind===161||Re(g)&&g3(m)&&m.tagName===g)return YBe(v,g)||Je;if(DN(g)){let C=s7(g.parent,g.text);return C?[uee(v,C,"label",g.text,void 0)]:void 0}if(g.kind===105){let C=jn(g.parent,P=>oc(P)?"quit":Ds(P));return C?[TP(v,C)]:void 0}if(g.kind===133){let C=jn(g,F=>Ds(F));return C&&vt(C.modifiers,F=>F.kind===132)?[TP(v,C)]:void 0}if(g.kind===125){let C=jn(g,F=>Ds(F));return C&&C.asteriskToken?[TP(v,C)]:void 0}if(LS(g)&&oc(g.parent)){let C=g.parent.parent,{symbol:P,failedAliasResolution:F}=cG(C,v,o),B=Pr(C.members,oc),q=P?v.symbolToString(P,C):"",W=g.getSourceFile();return on(B,Y=>{let{pos:R}=yp(Y);return R=xo(W.text,R),uee(v,Y,"constructor","static {}",q,!1,F,{start:R,length:6})})}let{symbol:S,failedAliasResolution:x}=cG(g,v,o),A=g;if(i&&x){let C=mn([g,...S?.declarations||Je],F=>jn(F,Wse)),P=C&&iR(C);P&&({symbol:S,failedAliasResolution:x}=cG(P,v,o),A=P)}if(!S&&C7(A)){let C=(l=(s=t.resolvedModules)==null?void 0:s.get(A.text,W_(t,A)))==null?void 0:l.resolvedModule;if(C)return[{name:A.text,fileName:C.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:il(0,0),failedAliasResolution:x,isAmbient:Fu(C.resolvedFileName),unverified:A!==g}]}if(!S)return Qi(d,eUe(g,v));if(i&&Ji(S.declarations,C=>C.getSourceFile().fileName===t.fileName))return;let w=aUe(v,g);if(w&&!(Au(g.parent)&&oUe(w))){let C=TP(v,w,x);if(v.getRootSymbols(S).some(P=>XBe(P,w)))return[C];{let P=nC(v,S,g,x,w)||Je;return g.kind===106?[C,...P]:[...P,C]}}if(g.parent.kind===300){let C=v.getShorthandAssignmentValueSymbol(S.valueDeclaration),P=C?.declarations?C.declarations.map(F=>Sk(F,v,C,g,!1,x)):Je;return Qi(P,XTe(v,g)||Je)}if(Ys(g)&&Wo(m)&&cm(m.parent)&&g===(m.propertyName||m.name)){let C=VN(g),P=v.getTypeAtLocation(m.parent);return C===void 0?Je:Uo(P.isUnion()?P.types:[P],F=>{let B=F.getProperty(C);return B&&nC(v,B,g)})}return Qi(d,XTe(v,g)||nC(v,S,g,x))}function XBe(e,t){var r;return e===t.symbol||e===t.symbol.parent||Iu(t.parent)||!rS(t.parent)&&e===((r=zr(t.parent,$p))==null?void 0:r.symbol)}function XTe(e,t){let r=nP(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return Uo(_5(r,e,i,!1),o=>nC(e,o,t))}}function YBe(e,t){let r=jn(t,_l);if(!(r&&r.name))return;let i=jn(r,Yr);if(!i)return;let o=hp(i);if(!o)return;let s=vs(o.expression),l=_u(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let f=Gi(wA(r.name)),d=zc(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),f):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),f);if(d)return nC(e,d,t)}function YTe(e,t,r){var i,o,s,l;let f=rC(e.referencedFiles,t);if(f){let m=r.getSourceFileFromReference(e,f);return m&&{reference:f,fileName:m.fileName,file:m,unverified:!1}}let d=rC(e.typeReferenceDirectives,t);if(d){let m=(i=r.getResolvedTypeReferenceDirectives().get(d.fileName,d.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,v=m&&r.getSourceFile(m.resolvedFileName);return v&&{reference:d,fileName:v.fileName,file:v,unverified:!1}}let g=rC(e.libReferenceDirectives,t);if(g){let m=r.getLibFileFromReference(g);return m&&{reference:g,fileName:m.fileName,file:m,unverified:!1}}if((o=e.resolvedModules)!=null&&o.size()){let m=nk(e,t);if(C7(m)&&fl(m.text)&&e.resolvedModules.has(m.text,W_(e,m))){let v=(l=(s=e.resolvedModules.get(m.text,W_(e,m)))==null?void 0:s.resolvedModule)==null?void 0:l.resolvedFileName,S=v||Fy(ni(e.fileName),m.text);return{file:r.getSourceFile(S),fileName:S,reference:{pos:m.getStart(),end:m.getEnd(),fileName:m.text},unverified:!v}}}}function $Be(e,t,r){let i=ef(t,r);if(i===t)return;if(NA(i.parent)&&i.parent.name===i)return lee(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=cG(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),f=QBe(o,l,e),d=f&&lee(f,e,i,s),g=d&&d.length!==0?d:lee(l,e,i,s);return g.length?g:!(o.flags&111551)&&o.flags&788968?nC(e,wd(o,e),i,s):void 0}function lee(e,t,r,i){return Uo(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&nC(t,o.symbol,r,i))}function QBe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&wi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Vo(i))}}function ZBe(e,t,r){let i=qTe(e,t,r);if(!i||i.length===0)return;let o=rC(t.referencedFiles,r)||rC(t.typeReferenceDirectives,r)||rC(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:lv(o)};let s=ef(t,r),l=il(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function eUe(e,t){return Zi(t.getIndexInfosAtLocation(e),r=>r.declaration&&TP(t,r.declaration))}function cG(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&tUe(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function tUe(e,t){return e.kind!==79?!1:e.parent===t?!0:t.kind!==271}function nUe(e){if(!RI(e))return!1;let t=jn(e,r=>Iu(r)?!0:RI(r)?!1:"quit");return!!t&&ic(t)===5}function nC(e,t,r,i,o){let s=Pr(t.declarations,v=>v!==o),l=Pr(s,v=>!nUe(v)),f=vt(l)?l:s;return d()||g()||on(f,v=>Sk(v,e,t,r,!1,i));function d(){if(t.flags&32&&!(t.flags&19)&&(ZL(r)||r.kind===135)){let v=wr(s,Yr)||L.fail("Expected declaration to have at least one class-like declaration");return m(v.members,!0)}}function g(){return PX(r)||VX(r)?m(s,!1):void 0}function m(v,S){if(!v)return;let x=v.filter(S?Ec:Ia),A=x.filter(w=>!!w.body);return x.length?A.length!==0?A.map(w=>Sk(w,e,t,r)):[Sk(To(x),e,t,r,!1,i)]:void 0}}function Sk(e,t,r,i,o,s){let l=t.symbolToString(r),f=$g.getSymbolKind(t,r,i),d=r.parent?t.symbolToString(r.parent,i):"";return uee(t,e,f,l,d,o,s)}function uee(e,t,r,i,o,s,l,f){let d=t.getSourceFile();if(!f){let g=sa(t)||t;f=Du(g,d)}return{fileName:d.fileName,textSpan:f,kind:r,name:i,containerKind:void 0,containerName:o,...js.toContextSpan(f,d,js.getContextNode(t)),isLocal:!dee(e,t),isAmbient:!!(t.flags&16777216),unverified:s,failedAliasResolution:l}}function dee(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Jy(t.parent)&&t.parent.initializer===t)return dee(e,t.parent);switch(t.kind){case 169:case 174:case 175:case 171:if(cd(t,8))return!1;case 173:case 299:case 300:case 207:case 228:case 216:case 215:return dee(e,t.parent);default:return!1}}function TP(e,t,r){return Sk(t,e,t.symbol,t,!1,r)}function rC(e,t){return wr(e,r=>Y8(r,t))}function rUe(e,t,r){return{fileName:t,textSpan:Wc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function iUe(e){let t=jn(e,i=>!j2(i)),r=t?.parent;return r&&rS(r)&&P6(r)===t?r:void 0}function aUe(e,t){let r=iUe(t),i=r&&e.getResolvedSignature(r);return zr(i&&i.declaration,o=>Ia(o)&&!Jm(o))}function oUe(e){switch(e.kind){case 173:case 182:case 177:return!0;default:return!1}}var sUe=gt({"src/services/goToDefinition.ts"(){"use strict";Fr()}}),xk={};Mo(xk,{createDefinitionInfo:()=>Sk,findReferenceInPosition:()=>rC,getDefinitionAndBoundSpan:()=>ZBe,getDefinitionAtPosition:()=>qTe,getReferenceAtPosition:()=>YTe,getTypeDefinitionAtPosition:()=>$Be});var cUe=gt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";sUe()}});function lUe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function uUe(e){return e.includeInlayParameterNameHints==="literals"}function dUe(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,f=r.getCompilerOptions(),d=r.getTypeChecker(),g=[];return m(t),g;function m(le){if(!(!le||le.getFullWidth()===0)){switch(le.kind){case 264:case 260:case 261:case 259:case 228:case 215:case 171:case 216:o.throwIfCancellationRequested()}if($8(i,le.pos,le.getFullWidth())&&!(bi(le)&&!Vg(le)))return s.includeInlayVariableTypeHints&&wi(le)||s.includeInlayPropertyDeclarationTypeHints&&Na(le)?P(le):s.includeInlayEnumMemberValueHints&&q0(le)?w(le):lUe(s)&&(Pa(le)||z0(le))?F(le):(s.includeInlayFunctionParameterTypeHints&&Ds(le)&&b4(le)&&ie(le),s.includeInlayFunctionLikeReturnTypeHints&&v(le)&&Y(le)),pa(le,m)}}function v(le){return xs(le)||ms(le)||Jc(le)||Nc(le)||p_(le)}function S(le,_e,ge){g.push({text:`${ge?"...":""}${fe(le,lG)}:`,position:_e,kind:"Parameter",whitespaceAfter:!0})}function x(le,_e){g.push({text:`: ${fe(le,lG)}`,position:_e,kind:"Type",whitespaceBefore:!0})}function A(le,_e){g.push({text:`= ${fe(le,lG)}`,position:_e,kind:"Enum",whitespaceBefore:!0})}function w(le){if(le.initializer)return;let _e=d.getConstantValue(le);_e!==void 0&&A(_e.toString(),le.end)}function C(le){return le.symbol&&le.symbol.flags&1536}function P(le){if(!le.initializer||La(le.name)||wi(le)&&!re(le)||Cl(le))return;let ge=d.getTypeAtLocation(le);if(C(ge))return;let X=Z(ge);if(X){if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&W1(le.name.getText(),X))return;x(X,le.name.end)}}function F(le){let _e=le.arguments;if(!_e||!_e.length)return;let ge=[],X=d.getResolvedSignatureForSignatureHelp(le,ge);if(!(!X||!ge.length))for(let Ve=0;Ve<_e.length;++Ve){let we=_e[Ve],ke=vs(we);if(uUe(s)&&!W(ke))continue;let Pe=d.getParameterIdentifierNameAtPosition(X,Ve);if(Pe){let[Ce,Ie]=Pe;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!B(ke,Ce))&&!Ie)continue;let Ne=Gi(Ce);if(q(ke,Ne))continue;S(Ne,we.getStart(),Ie)}}}function B(le,_e){return Re(le)?le.text===_e:br(le)?le.name.text===_e:!1}function q(le,_e){if(!i_(_e,f.target,RR(t.scriptKind)))return!1;let ge=Nm(l,le.pos);if(!ge?.length)return!1;let X=$Te(_e);return vt(ge,Ve=>X.test(l.substring(Ve.pos,Ve.end)))}function W(le){switch(le.kind){case 221:{let _e=le.operand;return fT(_e)||Re(_e)&&cL(_e.escapedText)}case 110:case 95:case 104:case 14:case 225:return!0;case 79:{let _e=le.escapedText;return U(_e)||cL(_e)}}return fT(le)}function Y(le){if(xs(le)&&!Yo(le,20,t)||U_(le)||!le.body)return;let ge=d.getSignatureFromDeclaration(le);if(!ge)return;let X=d.getReturnTypeOfSignature(ge);if(C(X))return;let Ve=Z(X);Ve&&x(Ve,R(le))}function R(le){let _e=Yo(le,21,t);return _e?_e.end:le.parameters.end}function ie(le){let _e=d.getSignatureFromDeclaration(le);if(_e)for(let ge=0;ge<le.parameters.length&&ge<_e.parameters.length;++ge){let X=le.parameters[ge];if(!re(X)||Cl(X))continue;let we=$(_e.parameters[ge]);we&&x(we,X.questionToken?X.questionToken.end:X.name.end)}}function $(le){let _e=le.valueDeclaration;if(!_e||!ha(_e))return;let ge=d.getTypeOfSymbolAtLocation(le,_e);if(!C(ge))return Z(ge)}function fe(le,_e){return le.length>_e?le.substr(0,_e-3)+"...":le}function Z(le){let ge=rE();return SI(X=>{let Ve=d.typeToTypeNode(le,void 0,71286784);L.assertIsDefined(Ve,"should always get typenode"),ge.writeNode(4,Ve,t,X)})}function U(le){return le==="undefined"}function re(le){if((CT(le)||wi(le)&&kh(le))&&le.initializer){let _e=vs(le.initializer);return!(W(_e)||z0(_e)||rs(_e)||pT(_e))}return!0}}var lG,$Te,fUe=gt({"src/services/inlayHints.ts"(){"use strict";Fr(),lG=30,$Te=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),fee={};Mo(fee,{provideInlayHints:()=>dUe});var _Ue=gt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";fUe()}});function pUe(e,t){let r=[];return lY(e,i=>{for(let o of hUe(i)){let s=dm(o)&&o.tags&&wr(o.tags,f=>f.kind===330&&(f.tagName.escapedText==="inheritDoc"||f.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||dm(o)&&i.kind!==349&&i.kind!==341&&o.tags&&o.tags.some(f=>f.kind===349||f.kind===341)&&!o.tags.some(f=>f.kind===344||f.kind===345))continue;let l=o.comment?ux(o.comment,t):[];s&&s.comment&&(l=l.concat(ux(s.comment,t))),ya(r,l,mUe)||r.push(l)}}),t_(DU(r,[K2()]))}function mUe(e,t){return GD(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function hUe(e){switch(e.kind){case 344:case 351:return[e];case 341:case 349:return[e,e.parent];default:return PH(e)}}function gUe(e,t){let r=[];return lY(e,i=>{let o=A0(i);if(!(o.some(s=>s.kind===349||s.kind===341)&&!o.some(s=>s.kind===344||s.kind===345)))for(let s of o)r.push({name:s.tagName.text,text:yUe(s,t)})}),r}function ux(e,t){return typeof e=="string"?[tf(e)]:Uo(e,r=>r.kind===324?[tf(r.text)]:Qhe(r,t))}function yUe(e,t){let{comment:r,kind:i}=e,o=vUe(i);switch(i){case 352:let f=e.typeExpression;return f?s(f):r===void 0?void 0:ux(r,t);case 332:return s(e.class);case 331:return s(e.class);case 348:let d=e,g=[];if(d.constraint&&g.push(tf(d.constraint.getText())),Fn(d.typeParameters)){Fn(g)&&g.push(Qs());let v=d.typeParameters[d.typeParameters.length-1];mn(d.typeParameters,S=>{g.push(o(S.getText())),v!==S&&g.push(Yl(27),Qs())})}return r&&g.push(Qs(),...ux(r,t)),g;case 347:case 353:return s(e.typeExpression);case 349:case 341:case 351:case 344:case 350:let{name:m}=e;return m?s(m):r===void 0?void 0:ux(r,t);default:return r===void 0?void 0:ux(r,t)}function s(f){return l(f.getText())}function l(f){return r?f.match(/^https?$/)?[tf(f),...ux(r,t)]:[o(f),Qs(),...ux(r,t)]:[tf(f)]}}function vUe(e){switch(e){case 344:return Khe;case 351:return qhe;case 348:return Yhe;case 349:case 341:return Xhe;default:return tf}}function bUe(){return ZTe||(ZTe=on(pee,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:lx.SortText.LocationPriority})))}function EUe(){return e1e||(e1e=on(pee,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:lx.SortText.LocationPriority})))}function QTe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[tf(e)],documentation:Je,tags:void 0,codeActions:void 0}}function TUe(e){if(!Re(e.name))return Je;let t=e.name.text,r=e.parent,i=r.parent;return Ia(i)?Zi(i.parameters,o=>{if(!Re(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&xp(l)&&Re(l.name)&&l.name.escapedText===s)||t!==void 0&&!na(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:lx.SortText.LocationPriority}}):[]}function SUe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[tf(e)],documentation:Je,tags:void 0,codeActions:void 0}}function xUe(e,t,r,i){let o=Vi(t,r),s=jn(o,dm);if(s&&(s.comment!==void 0||Fn(s.tags)))return;let l=o.getStart(t);if(!s&&l<r)return;let f=LUe(o,i);if(!f)return;let{commentOwner:d,parameters:g,hasReturn:m}=f,v=Kd(d)&&d.jsDoc?d.jsDoc:void 0,S=Os(v);if(d.getStart(t)<r||S&&s&&S!==s)return;let x=AUe(t,r),A=ES(t.fileName),w=(g?CUe(g||[],A,x,e):"")+(m?IUe(x,e):""),C="/**",P=" */",F=(v||[]).some(B=>!!B.tags);if(w&&!F){let B=C+e+x+" * ",q=l===r?e+x:"";return{newText:B+e+w+x+P+q,caretOffset:B.length}}return{newText:C+P,caretOffset:3}}function AUe(e,t){let{text:r}=e,i=Wf(t,e),o=i;for(;o<=t&&Yp(r.charCodeAt(o));o++);return r.slice(i,o)}function CUe(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let f=o.kind===79?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${f}${i}`}).join("")}function IUe(e,t){return`${e} * @returns${t}`}function LUe(e,t){return Lse(e,r=>_ee(r,t))}function _ee(e,t){switch(e.kind){case 259:case 215:case 171:case 173:case 170:case 216:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:SP(r,t)};case 299:return _ee(e.initializer,t);case 260:case 261:case 263:case 302:case 262:return{commentOwner:e};case 168:{let o=e;return o.type&&Jm(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:SP(o.type,t)}:{commentOwner:e}}case 240:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?kUe(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:SP(l,t)}:{commentOwner:e}}case 308:return"quit";case 264:return e.parent.kind===264?void 0:{commentOwner:e};case 241:return _ee(e.expression,t);case 223:{let o=e;return ic(o)===0?"quit":Ia(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:SP(o.right,t)}:{commentOwner:e}}case 169:let i=e.initializer;if(i&&(ms(i)||xs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:SP(i,t)}}}function SP(e,t){return!!t?.generateReturnInDocTemplate&&(Jm(e)||xs(e)&&ot(e.body)||Ds(e)&&e.body&&Va(e.body)&&!!vT(e.body,r=>r))}function kUe(e){for(;e.kind===214;)e=e.expression;switch(e.kind){case 215:case 216:return e;case 228:return wr(e.members,Ec)}}var pee,ZTe,e1e,t1e,DUe=gt({"src/services/jsDoc.ts"(){"use strict";Fr(),pee=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],t1e=QTe}}),xb={};Mo(xb,{getDocCommentTemplateAtPosition:()=>xUe,getJSDocParameterNameCompletionDetails:()=>SUe,getJSDocParameterNameCompletions:()=>TUe,getJSDocTagCompletionDetails:()=>QTe,getJSDocTagCompletions:()=>EUe,getJSDocTagNameCompletionDetails:()=>t1e,getJSDocTagNameCompletions:()=>bUe,getJsDocCommentsFromDeclarations:()=>pUe,getJsDocTagsFromDeclarations:()=>gUe});var wUe=gt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";DUe()}});function RUe(e,t,r,i,o,s){let l=nr.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),f=s==="SortAndCombine"||s==="All",d=f,g=s==="RemoveUnused"||s==="All",m=mee(e,e.statements.filter(gl)),v=XUe(o,f?()=>i1e(m,o)===2:void 0),S=A=>(g&&(A=NUe(A,e,i)),d&&(A=n1e(A,v,e)),f&&(A=Ag(A,(w,C)=>bee(w,C,v))),A);if(m.forEach(A=>x(A,S)),s!=="RemoveUnused"){let A=e.statements.filter(Il);x(A,w=>hee(w,v))}for(let A of e.statements.filter(lu)){if(!A.body)continue;if(mee(e,A.body.statements.filter(gl)).forEach(C=>x(C,S)),s!=="RemoveUnused"){let C=A.body.statements.filter(Il);x(C,P=>hee(P,v))}}return l.getChanges();function x(A,w){if(Fn(A)===0)return;D7(A[0]);let C=d?YC(A,B=>xP(B.moduleSpecifier)):[A],P=f?Ag(C,(B,q)=>yee(B[0].moduleSpecifier,q[0].moduleSpecifier,v)):C,F=Uo(P,B=>xP(B[0].moduleSpecifier)?w(B):B);if(F.length===0)l.deleteNodes(e,A,{leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.Include},!0);else{let B={leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.Include,suffix:bb(r,t.options)};l.replaceNodeWithNodes(e,A[0],F,B);let q=l.nodeHasTrailingComment(e,A[0],B);l.deleteNodes(e,A.slice(1),{trailingTriviaOption:nr.TrailingTriviaOption.Include},q)}}}function mee(e,t){let r=kg(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&OUe(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function OUe(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenPos()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function NUe(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),f=!!(t.transformFlags&2),d=[];for(let m of e){let{importClause:v,moduleSpecifier:S}=m;if(!v){d.push(m);continue}let{name:x,namedBindings:A}=v;if(x&&!g(x)&&(x=void 0),A)if(nv(A))g(A.name)||(A=void 0);else{let w=A.elements.filter(C=>g(C.name));w.length<A.elements.length&&(A=w.length?D.updateNamedImports(A,w):void 0)}x||A?d.push(Ak(m,x,A)):PUe(t,S)&&(t.isDeclarationFile?d.push(D.createImportDeclaration(m.modifiers,void 0,S,void 0)):d.push(m))}return d;function g(m){return f&&(m.text===s||l&&m.text===l)&&wY(o.jsx)||js.Core.isSymbolReferencedInFile(m,i,t)}}function PUe(e,t){let r=yo(t)&&t.text;return Ta(r)&&vt(e.moduleAugmentations,i=>yo(i)&&i.text===r)}function xP(e){return e!==void 0&&es(e)?e.text:void 0}function MUe(e,t,r){let i=uG(t);return n1e(e,i,r)}function n1e(e,t,r){if(e.length===0)return e;let{importWithoutClause:i,typeOnlyImports:o,regularImports:s}=FUe(e),l=[];i&&l.push(i);for(let f of[s,o]){let d=f===o,{defaultImports:g,namespaceImports:m,namedImports:v}=f;if(!d&&g.length===1&&m.length===1&&v.length===0){let q=g[0];l.push(Ak(q,q.importClause.name,m[0].importClause.namedBindings));continue}let S=Ag(m,(q,W)=>t(q.importClause.namedBindings.name.text,W.importClause.namedBindings.name.text));for(let q of S)l.push(Ak(q,void 0,q.importClause.namedBindings));let x=Sl(g),A=Sl(v),w=x??A;if(!w)continue;let C,P=[];if(g.length===1)C=g[0].importClause.name;else for(let q of g)P.push(D.createImportSpecifier(!1,D.createIdentifier("default"),q.importClause.name));P.push(...zUe(v));let F=D.createNodeArray(r1e(P,t),A?.importClause.namedBindings.elements.hasTrailingComma),B=F.length===0?C?void 0:D.createNamedImports(Je):A?D.updateNamedImports(A.importClause.namedBindings,F):D.createNamedImports(F);r&&B&&A?.importClause.namedBindings&&!DT(A.importClause.namedBindings,r)&&Jn(B,2),d&&C&&B?(l.push(Ak(w,C,void 0)),l.push(Ak(A??w,void 0,B))):l.push(Ak(w,C,B))}return l}function FUe(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:f}=o.importClause;l&&s.defaultImports.push(o),f&&(nv(f)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function GUe(e,t){let r=uG(t);return hee(e,r)}function hee(e,t){if(e.length===0)return e;let{exportWithoutClause:r,namedExports:i,typeOnlyExports:o}=l(e),s=[];r&&s.push(r);for(let f of[i,o]){if(f.length===0)continue;let d=[];d.push(...Uo(f,v=>v.exportClause&&h_(v.exportClause)?v.exportClause.elements:Je));let g=r1e(d,t),m=f[0];s.push(D.updateExportDeclaration(m,m.modifiers,m.isTypeOnly,m.exportClause&&(h_(m.exportClause)?D.updateNamedExports(m.exportClause,g):D.updateNamespaceExport(m.exportClause,m.exportClause.name)),m.moduleSpecifier,m.assertClause))}return s;function l(f){let d,g=[],m=[];for(let v of f)v.exportClause===void 0?d=d||v:v.isTypeOnly?m.push(v):g.push(v);return{exportWithoutClause:d,namedExports:g,typeOnlyExports:m}}}function Ak(e,t,r){return D.updateImportDeclaration(e,e.modifiers,D.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.assertClause)}function r1e(e,t){return Ag(e,(r,i)=>gee(r,i,t))}function gee(e,t,r){return g0(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}function BUe(e,t,r){let i=uG(!!r);return yee(e,t,i)}function yee(e,t,r){let i=e===void 0?void 0:xP(e),o=t===void 0?void 0:xP(t);return g0(i===void 0,o===void 0)||g0(fl(i),fl(o))||r(i,o)}function vee(e){var t;switch(e.kind){case 268:return(t=zr(e.moduleReference,um))==null?void 0:t.expression;case 269:return e.moduleSpecifier;case 240:return e.declarationList.declarations[0].initializer.arguments[0]}}function UUe(e,t){return i1e(mee(e,e.statements.filter(gl)),t)}function i1e(e,t){let r=dx(t,!1),i=dx(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let d=l8(l,g=>{var m,v;return(v=(m=zr(g.moduleSpecifier,yo))==null?void 0:m.text)!=null?v:""},r,i);if(d&&(o&=d,s=!0),!o)return o}let f=wr(l,d=>{var g,m;return((m=zr((g=d.importClause)==null?void 0:g.namedBindings,jg))==null?void 0:m.elements.length)>1});if(f){let d=Eee(f.importClause.namedBindings.elements,t);if(d&&(o&=d,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function VUe(e,t){let r=dx(t,!1),i=dx(t,!0);return l8(e,o=>xP(vee(o))||"",r,i)}function jUe(e,t,r){let i=Py(e,t,Ks,(o,s)=>bee(o,s,r));return i<0?~i:i}function HUe(e,t,r){let i=Py(e,t,Ks,(o,s)=>gee(o,s,r));return i<0?~i:i}function bee(e,t,r){return yee(vee(e),vee(t),r)||WUe(e,t)}function WUe(e,t){return Es(a1e(e),a1e(t))}function a1e(e){var t;switch(e.kind){case 269:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===271?2:e.importClause.name?3:4:0;case 268:return 5;case 240:return 6}}function zUe(e){return Uo(e,t=>on(JUe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?D.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function JUe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&jg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function uG(e){return e?Sae:su}function KUe(e,t){var r,i,o;let s=qUe(t),l=(r=t.organizeImportsCaseFirst)!=null?r:!1,f=(i=t.organizeImportsNumericCollation)!=null?i:!1,d=(o=t.organizeImportsAccentCollation)!=null?o:!0,g=e?d?"accent":"base":d?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:l||"false",sensitivity:g,numeric:f}).compare}function qUe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=xae()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function dx(e,t){var r;return((r=e.organizeImportsCollation)!=null?r:"ordinal")==="unicode"?KUe(t,e):uG(t)}function XUe(e,t){var r;let i=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(r=t?.())!=null?r:!1;return dx(e,i)}var o1e,Eee,YUe=gt({"src/services/organizeImports.ts"(){"use strict";Fr(),o1e=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){var i;this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),(i=this._cache)!=null||(this._cache=new WeakMap),this._cache.set(e,r)}},Eee=Eae((e,t)=>{if(!dae(e,(o,s)=>g0(o.isTypeOnly,s.isTypeOnly)))return 0;let r=dx(t,!1),i=dx(t,!0);return l8(e,o=>o.name.text,r,i)},new o1e)}}),b_={};Mo(b_,{coalesceExports:()=>GUe,coalesceImports:()=>MUe,compareImportOrExportSpecifiers:()=>gee,compareImportsOrRequireStatements:()=>bee,compareModuleSpecifiers:()=>BUe,detectImportDeclarationSorting:()=>VUe,detectImportSpecifierSorting:()=>Eee,detectSorting:()=>UUe,getImportDeclarationInsertionIndex:()=>jUe,getImportSpecifierInsertionIndex:()=>HUe,getOrganizeImportsComparer:()=>dx,organizeImports:()=>RUe});var $Ue=gt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";YUe()}});function QUe(e,t){let r=[];return ZUe(e,t,r),eVe(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function ZUe(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!yT(s[o]);)f(s[o]),o++;if(o===l)break;let d=o;for(;o<l&&yT(s[o]);)f(s[o]),o++;let g=o-1;g!==d&&r.push(AP(Yo(s[d],100,e).getStart(e),s[g].getEnd(),"imports"))}function f(d){var g;if(i===0)return;t.throwIfCancellationRequested(),(Kl(d)||Bc(d)||j_(d)||Ih(d)||d.kind===1)&&c1e(d,e,t,r),Ia(d)&&ar(d.parent)&&br(d.parent.left)&&c1e(d.parent.left,e,t,r),(Va(d)||Tp(d))&&Tee(d.statements.end,e,t,r),(Yr(d)||ku(d))&&Tee(d.members.end,e,t,r);let m=tVe(d,e);m&&r.push(m),i--,Pa(d)?(i++,f(d.expression),i--,d.arguments.forEach(f),(g=d.typeArguments)==null||g.forEach(f)):MT(d)&&d.elseStatement&&MT(d.elseStatement)?(f(d.expression),f(d.thenStatement),i++,f(d.elseStatement),i--):d.forEachChild(f),i++}}function eVe(e,t){let r=[],i=e.getLineStarts();for(let o of i){let s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),f=s1e(l);if(!(!f||Kg(e,o)))if(f[1]){let d=r.pop();d&&(d.textSpan.length=s-d.textSpan.start,d.hintSpan.length=s-d.textSpan.start,t.push(d))}else{let d=Wc(e.text.indexOf("//",o),s);r.push(d1(d,"region",d,!1,f[2]||"#region"))}}}function s1e(e){return e=ZC(e),na(e,"//")?(e=v0(e.slice(2)),l1e.exec(e)):null}function Tee(e,t,r,i){let o=Nm(t.text,e);if(!o)return;let s=-1,l=-1,f=0,d=t.getFullText();for(let{kind:m,pos:v,end:S}of o)switch(r.throwIfCancellationRequested(),m){case 2:let x=d.slice(v,S);if(s1e(x)){g(),f=0;break}f===0&&(s=v),l=S,f++;break;case 3:g(),i.push(AP(v,S,"comment")),f=0;break;default:L.assertNever(m)}g();function g(){f>1&&i.push(AP(s,l,"comment"))}}function c1e(e,t,r,i){CS(e)||Tee(e.pos,t,r,i)}function AP(e,t,r){return d1(Wc(e,t),r)}function tVe(e,t){switch(e.kind){case 238:if(Ia(e.parent))return nVe(e.parent,e,t);switch(e.parent.kind){case 243:case 246:case 247:case 245:case 242:case 244:case 251:case 295:return m(e.parent);case 255:let x=e.parent;if(x.tryBlock===e)return m(e.parent);if(x.finallyBlock===e){let A=Yo(x,96,t);if(A)return m(A)}default:return d1(Du(e,t),"code")}case 265:return m(e.parent);case 260:case 228:case 261:case 263:case 266:case 184:case 203:return m(e);case 186:return m(e,!1,!p2(e.parent),22);case 292:case 293:return v(e.statements);case 207:return g(e);case 206:return g(e,22);case 281:return s(e);case 285:return l(e);case 282:case 283:return f(e.attributes);case 225:case 14:return d(e);case 204:return m(e,!1,!Wo(e.parent),22);case 216:return o(e);case 210:return i(e);case 214:return S(e);case 272:case 276:case 296:return r(e)}function r(x){if(!x.elements.length)return;let A=Yo(x,18,t),w=Yo(x,19,t);if(!(!A||!w||Bf(A.pos,w.pos,t)))return dG(A,w,x,t,!1,!1)}function i(x){if(!x.arguments.length)return;let A=Yo(x,20,t),w=Yo(x,21,t);if(!(!A||!w||Bf(A.pos,w.pos,t)))return dG(A,w,x,t,!1,!0)}function o(x){if(Va(x.body)||ud(x.body)||Bf(x.body.getFullStart(),x.body.getEnd(),t))return;let A=Wc(x.body.getFullStart(),x.body.getEnd());return d1(A,"code",Du(x))}function s(x){let A=Wc(x.openingElement.getStart(t),x.closingElement.getEnd()),w=x.openingElement.tagName.getText(t),C="<"+w+">...</"+w+">";return d1(A,"code",A,!1,C)}function l(x){let A=Wc(x.openingFragment.getStart(t),x.closingFragment.getEnd());return d1(A,"code",A,!1,"<>...</>")}function f(x){if(x.properties.length!==0)return AP(x.getStart(t),x.getEnd(),"code")}function d(x){if(!(x.kind===14&&x.text.length===0))return AP(x.getStart(t),x.getEnd(),"code")}function g(x,A=18){return m(x,!1,!fu(x.parent)&&!Pa(x.parent),A)}function m(x,A=!1,w=!0,C=18,P=C===18?19:23){let F=Yo(e,C,t),B=Yo(e,P,t);return F&&B&&dG(F,B,x,t,A,w)}function v(x){return x.length?d1(lv(x),"code"):void 0}function S(x){if(Bf(x.getStart(),x.getEnd(),t))return;let A=Wc(x.getStart(),x.getEnd());return d1(A,"code",Du(x))}}function nVe(e,t,r){let i=rVe(e,t,r),o=Yo(t,19,r);return i&&o&&dG(i,o,e,r,e.kind!==216)}function dG(e,t,r,i,o=!1,s=!0){let l=Wc(s?e.getFullStart():e.getStart(i),t.getEnd());return d1(l,"code",Du(r,i),o)}function d1(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function rVe(e,t,r){if(ale(e.parameters,r)){let i=Yo(e,20,r);if(i)return i}return Yo(t,18,r)}var l1e,iVe=gt({"src/services/outliningElementsCollector.ts"(){"use strict";Fr(),l1e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),See={};Mo(See,{collectElements:()=>QUe});var aVe=gt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";iVe()}});function Vh(e,t){fG.set(e,t)}function oVe(e){return lo(OU(fG.values(),t=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((r=t.kinds)!=null&&r.some(i=>pv(i,e.kind)))?void 0:t.getAvailableActions(e)}))}function sVe(e,t,r){let i=fG.get(t);return i&&i.getEditsForAction(e,r)}var fG,cVe=gt({"src/services/refactorProvider.ts"(){"use strict";Fr(),Qm(),fG=new Map}});function u1e(e,t=!0){let{file:r,program:i}=e,o=QS(e),s=Vi(r,o.start),l=s.parent&&Yy(s.parent)&1&&t?s.parent:HN(s,r,o);if(!l||!Li(l.parent)&&!(Tp(l.parent)&&lu(l.parent.parent)))return{error:uo(_.Could_not_find_export_statement)};let f=i.getTypeChecker(),d=pVe(l.parent,f),g=Yy(l)||(pc(l)&&!l.isExportEquals?1025:0),m=!!(g&1024);if(!(g&1)||!m&&d.exports.has("default"))return{error:uo(_.This_file_already_has_a_default_export)};let v=S=>Re(S)&&f.getSymbolAtLocation(S)?void 0:{error:uo(_.Can_only_convert_named_export)};switch(l.kind){case 259:case 260:case 261:case 263:case 262:case 264:{let S=l;return S.name?v(S.name)||{exportNode:S,exportName:S.name,wasDefault:m,exportingModuleSymbol:d}:void 0}case 240:{let S=l;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;let x=Vo(S.declarationList.declarations);return x.initializer?(L.assert(!m,"Can't have a default flag here"),v(x.name)||{exportNode:S,exportName:x.name,wasDefault:m,exportingModuleSymbol:d}):void 0}case 274:{let S=l;return S.isExportEquals?void 0:v(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:m,exportingModuleSymbol:d}}default:return}}function lVe(e,t,r,i,o){uVe(e,r,i,t.getTypeChecker()),dVe(t,r,i,o)}function uVe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(pc(r)&&!r.isExportEquals){let l=r.expression,f=d1e(l.text,l.text);o.replaceNode(e,r,D.createExportDeclaration(void 0,!1,D.createNamedExports([f])))}else o.delete(e,L.checkDefined(z2(r,88),"Should find a default keyword in modifier list"));else{let l=L.checkDefined(z2(r,93),"Should find an export keyword in modifier list");switch(r.kind){case 259:case 260:case 261:o.insertNodeAfter(e,l,D.createToken(88));break;case 240:let f=Vo(r.declarationList.declarations);if(!js.Core.isSymbolReferencedInFile(i,s,e)&&!f.type){o.replaceNode(e,r,D.createExportDefault(L.checkDefined(f.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:o.deleteModifier(e,l),o.insertNodeAfter(e,r,D.createExportDefault(D.createIdentifier(i.text)));break;default:L.fail(`Unexpected exportNode kind ${r.kind}`)}}}function dVe(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),f=L.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");js.Core.eachExportReference(e.getSourceFiles(),l,s,f,i,r.text,t,d=>{if(r===d)return;let g=d.getSourceFile();t?fVe(g,d,o,r.text):_Ve(g,d,o)})}function fVe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 208:r.replaceNode(e,t,D.createIdentifier(i));break;case 273:case 278:{let l=o;r.replaceNode(e,l,xee(i,l.name.text));break}case 270:{let l=o;L.assert(l.name===t,"Import clause name should match provided ref");let f=xee(i,t.text),{namedBindings:d}=l;if(!d)r.replaceNode(e,t,D.createNamedImports([f]));else if(d.kind===271){r.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});let g=yo(l.parent.moduleSpecifier)?sY(l.parent.moduleSpecifier,e):1,m=Xg(void 0,[xee(i,t.text)],l.parent.moduleSpecifier,g);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,d.elements,f);break}case 202:let s=o;r.replaceNode(e,o,D.createImportTypeNode(s.argument,s.assertions,D.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:L.failBadSyntaxKind(o)}}function _Ve(e,t,r){let i=t.parent;switch(i.kind){case 208:r.replaceNode(e,t,D.createIdentifier("default"));break;case 273:{let o=D.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 278:{r.replaceNode(e,i,d1e("default",i.name.text));break}default:L.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function xee(e,t){return D.createImportSpecifier(!1,e===t?void 0:D.createIdentifier(e),D.createIdentifier(t))}function d1e(e,t){return D.createExportSpecifier(!1,e===t?void 0:D.createIdentifier(e),D.createIdentifier(t))}function pVe(e,t){if(Li(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&D0(r.valueDeclaration)?t.getMergedSymbol(r):r}var _G,CP,IP,mVe=gt({"src/services/refactors/convertExport.ts"(){"use strict";Fr(),Qm(),_G="Convert export",CP={name:"Convert default export to named export",description:_.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},IP={name:"Convert named export to default export",description:_.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"},Vh(_G,{kinds:[CP.kind,IP.kind],getAvailableActions:function(t){let r=u1e(t,t.triggerReason==="invoked");if(!r)return Je;if(!$m(r)){let i=r.wasDefault?CP:IP;return[{name:_G,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:_G,description:_.Convert_default_export_to_named_export.message,actions:[{...CP,notApplicableReason:r.error},{...IP,notApplicableReason:r.error}]}]:Je},getEditsForAction:function(t,r){L.assert(r===CP.name||r===IP.name,"Unexpected action name");let i=u1e(t);return L.assert(i&&!$m(i),"Expected applicable refactor info"),{edits:nr.ChangeTracker.with(t,s=>lVe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function f1e(e,t=!0){let{file:r}=e,i=QS(e),o=Vi(r,i.start),s=t?jn(o,gl):HN(o,r,i);if(!s||!gl(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,f=t1(s,s.parent,r);if(f&&l>f.getStart())return;let{importClause:d}=s;return d?d.namedBindings?d.namedBindings.kind===271?{convertTo:0,import:d.namedBindings}:_1e(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:uo(_.Could_not_find_namespace_import_or_named_imports)}:{error:uo(_.Could_not_find_import_clause)}}function _1e(e,t){return wT(e.getCompilerOptions())&&vVe(t.parent.moduleSpecifier,e.getTypeChecker())}function hVe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?gVe(e,o,r,i.import,wT(t.getCompilerOptions())):m1e(e,t,r,i.import,i.convertTo===1)}function gVe(e,t,r,i,o){let s=!1,l=[],f=new Map;js.Core.eachSymbolReferenceInFile(i.name,t,e,v=>{if(!fse(v.parent))s=!0;else{let S=p1e(v.parent).text;t.resolveName(S,v,67108863,!0)&&f.set(S,!0),L.assert(yVe(v.parent)===v,"Parent expression should match id"),l.push(v.parent)}});let d=new Map;for(let v of l){let S=p1e(v).text,x=d.get(S);x===void 0&&d.set(S,x=f.has(S)?i1(S,e):S),r.replaceNode(e,v,D.createIdentifier(x))}let g=[];d.forEach((v,S)=>{g.push(D.createImportSpecifier(!1,v===S?void 0:D.createIdentifier(S),D.createIdentifier(v)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,Aee(m,void 0,g)):r.replaceNode(e,m,Aee(m,s?D.createIdentifier(i.name.text):void 0,g))}function p1e(e){return br(e)?e.name:e.right}function yVe(e){return br(e)?e.expression:e.left}function m1e(e,t,r,i,o=_1e(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:f}=l,d=new Set;i.elements.forEach(A=>{let w=s.getSymbolAtLocation(A.name);w&&d.add(w)});let g=f&&yo(f)?gu.moduleSpecifierToValidIdentifier(f.text,99):"module";function m(A){return!!js.Core.eachSymbolReferenceInFile(A.name,s,e,w=>{let C=s.resolveName(g,w,67108863,!0);return C?d.has(C)?Mu(w.parent):!0:!1})}let S=i.elements.some(m)?i1(g,e):g,x=new Set;for(let A of i.elements){let w=(A.propertyName||A.name).text;js.Core.eachSymbolReferenceInFile(A.name,s,e,C=>{let P=D.createPropertyAccessExpression(D.createIdentifier(S),w);xf(C.parent)?r.replaceNode(e,C.parent,D.createPropertyAssignment(C.text,P)):Mu(C.parent)?x.add(A):r.replaceNode(e,C,P)})}if(r.replaceNode(e,i,o?D.createIdentifier(S):D.createNamespaceImport(D.createIdentifier(S))),x.size){let A=lo(x.values(),w=>D.createImportSpecifier(w.isTypeOnly,w.propertyName&&D.createIdentifier(w.propertyName.text),D.createIdentifier(w.name.text)));r.insertNodeAfter(e,i.parent.parent,Aee(l,void 0,A))}}function vVe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function Aee(e,t,r){return D.createImportDeclaration(void 0,D.createImportClause(!1,t,r&&r.length?D.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var pG,LP,bVe=gt({"src/services/refactors/convertImport.ts"(){"use strict";Fr(),Qm(),pG="Convert import",LP={0:{name:"Convert namespace import to named imports",description:_.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:_.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:_.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"}},Vh(pG,{kinds:H1(LP).map(e=>e.kind),getAvailableActions:function(t){let r=f1e(t,t.triggerReason==="invoked");if(!r)return Je;if(!$m(r)){let i=LP[r.convertTo];return[{name:pG,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?H1(LP).map(i=>({name:pG,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):Je},getEditsForAction:function(t,r){L.assert(vt(H1(LP),s=>s.name===r),"Unexpected action name");let i=f1e(t);return L.assert(i&&!$m(i),"Expected applicable refactor info"),{edits:nr.ChangeTracker.with(t,s=>hVe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function h1e(e,t=!0){let{file:r,startPosition:i}=e,o=Cu(r),s=Vi(r,i),l=y7(QS(e)),f=l.pos===l.end&&t,d=jn(s,x=>x.parent&&bi(x)&&!Ab(l,x.parent,r)&&(f||HX(s,r,l.pos,l.end)));if(!d||!bi(d))return{error:uo(_.Selection_is_not_a_valid_type_node)};let g=e.program.getTypeChecker(),m=AVe(d,o);if(m===void 0)return{error:uo(_.No_type_could_be_extracted_from_this_type_node)};let v=EVe(g,d,m,r);if(!v)return{error:uo(_.No_type_could_be_extracted_from_this_type_node)};let S=Cee(g,d);return{isJS:o,selection:d,enclosingNode:m,typeParameters:v,typeElements:S}}function Cee(e,t){if(t)if(dO(t)){let r=[],i=new Map;for(let o of t.types){let s=Cee(e,o);if(!s||!s.every(l=>l.name&&V_(i,VN(l.name))))return;si(r,s)}return r}else{if(wS(t))return Cee(e,t.type);if(Rd(t))return t.members}}function Ab(e,t,r){return ON(e,xo(r.text,t.pos),t.end)}function EVe(e,t,r,i){let o=[];return s(t)?void 0:o;function s(l){if(m_(l)){if(Re(l.typeName)){let f=l.typeName,d=e.resolveName(f.text,f,262144,!0);for(let g of d?.declarations||Je)if(_c(g)&&g.getSourceFile()===i){if(g.name.escapedText===f.escapedText&&Ab(g,t,i))return!0;if(Ab(r,g,i)&&!Ab(t,g,i)){Of(o,g);break}}}}else if(h2(l)){let f=jn(l,d=>m2(d)&&Ab(d.extendsType,l,i));if(!f||!Ab(t,f,i))return!0}else if(l3(l)||u3(l)){let f=jn(l.parent,Ia);if(f&&f.type&&Ab(f.type,l,i)&&!Ab(t,f,i))return!0}else if(vL(l)){if(Re(l.exprName)){let f=e.resolveName(l.exprName.text,l.exprName,111551,!1);if(f?.valueDeclaration&&Ab(r,f.valueDeclaration,i)&&!Ab(t,f.valueDeclaration,i))return!0}else if(LT(l.exprName.left)&&!Ab(t,l.parent,i))return!0}return i&&p2(l)&&Gs(i,l.pos).line===Gs(i,l.end).line&&Jn(l,1),pa(l,s)}}function TVe(e,t,r,i){let{enclosingNode:o,selection:s,typeParameters:l}=i,f=D.createTypeAliasDeclaration(void 0,r,l.map(d=>D.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),s);e.insertNodeBefore(t,o,Tz(f),!0),e.replaceNode(t,s,D.createTypeReferenceNode(r,l.map(d=>D.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.ExcludeWhitespace})}function SVe(e,t,r,i){var o;let{enclosingNode:s,selection:l,typeParameters:f,typeElements:d}=i,g=D.createInterfaceDeclaration(void 0,r,f,void 0,d);it(g,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,Tz(g),!0),e.replaceNode(t,l,D.createTypeReferenceNode(r,f.map(m=>D.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:nr.LeadingTriviaOption.Exclude,trailingTriviaOption:nr.TrailingTriviaOption.ExcludeWhitespace})}function xVe(e,t,r,i,o){var s;let{enclosingNode:l,selection:f,typeParameters:d}=o;Jn(f,7168);let g=D.createJSDocTypedefTag(D.createIdentifier("typedef"),D.createJSDocTypeExpression(f),D.createIdentifier(i)),m=[];mn(d,S=>{let x=EA(S),A=D.createTypeParameterDeclaration(void 0,S.name),w=D.createJSDocTemplateTag(D.createIdentifier("template"),x&&Ga(x,UT),[A]);m.push(w)});let v=D.createJSDocComment(void 0,D.createNodeArray(Qi(m,[g])));if(dm(l)){let S=l.getStart(r),x=bb(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),v,{suffix:x+x+r.text.slice(hY(r.text,S-1),S)})}else e.insertNodeBefore(r,l,v,!0);e.replaceNode(r,f,D.createTypeReferenceNode(i,d.map(S=>D.createTypeReferenceNode(S.name,void 0))))}function AVe(e,t){return jn(e,ca)||(t?jn(e,dm):void 0)}var mG,kP,DP,wP,CVe=gt({"src/services/refactors/extractType.ts"(){"use strict";Fr(),Qm(),mG="Extract type",kP={name:"Extract to type alias",description:uo(_.Extract_to_type_alias),kind:"refactor.extract.type"},DP={name:"Extract to interface",description:uo(_.Extract_to_interface),kind:"refactor.extract.interface"},wP={name:"Extract to typedef",description:uo(_.Extract_to_typedef),kind:"refactor.extract.typedef"},Vh(mG,{kinds:[kP.kind,DP.kind,wP.kind],getAvailableActions:function(t){let r=h1e(t,t.triggerReason==="invoked");return r?$m(r)?t.preferences.provideRefactorNotApplicableReason?[{name:mG,description:uo(_.Extract_type),actions:[{...wP,notApplicableReason:r.error},{...kP,notApplicableReason:r.error},{...DP,notApplicableReason:r.error}]}]:Je:[{name:mG,description:uo(_.Extract_type),actions:r.isJS?[wP]:Sn([kP],r.typeElements&&DP)}]:Je},getEditsForAction:function(t,r){let{file:i}=t,o=h1e(t);L.assert(o&&!$m(o),"Expected to find a range to extract");let s=i1("NewType",i),l=nr.ChangeTracker.with(t,g=>{switch(r){case kP.name:return L.assert(!o.isJS,"Invalid actionName/JS combo"),TVe(g,i,s,o);case wP.name:return L.assert(o.isJS,"Invalid actionName/JS combo"),xVe(g,t,i,s,o);case DP.name:return L.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),SVe(g,i,s,o);default:L.fail("Unexpected action name")}}),f=i.fileName,d=KN(l,f,s,!1);return{edits:l,renameFilename:f,renameLocation:d}}})}});function $m(e){return e.error!==void 0}function pv(e,t){return t?e.substr(0,t.length)===t:!0}var IVe=gt({"src/services/refactors/helpers.ts"(){"use strict"}});function LVe(e){let{file:t}=e,r=y7(QS(e)),{statements:i}=t,o=Yc(i,f=>f.end>r.pos);if(o===-1)return;let s=i[o];if(zl(s)&&s.name&&Od(s.name,r))return{toMove:[i[o]],afterLast:i[o+1]};if(r.pos>s.getStart(t))return;let l=Yc(i,f=>f.end>r.end,o);if(!(l!==-1&&(l===0||i[l].getStart(t)<r.end)))return{toMove:i.slice(o,l===-1?i.length:l),afterLast:l===-1?void 0:i[l]}}function kVe(e,t,r,i,o,s){let l=t.getTypeChecker(),f=JVe(e,r.all,l),d=ni(e.fileName),g=jR(e.fileName),m=vi(d,WVe(zVe(f.oldFileImportsFromNewFile,f.movedSymbols),g,d,o))+g;i.createNewFile(e,m,OVe(e,f,i,r,t,o,m,s)),RVe(t,i,e.fileName,m,lb(o))}function g1e(e){let t=LVe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return PU(o,DVe,(l,f)=>{for(let d=l;d<f;d++)r.push(o[d]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function DVe(e){return!wVe(e)&&!B_(e)}function wVe(e){switch(e.kind){case 269:return!0;case 268:return!Mr(e,1);case 240:return e.declarationList.declarations.every(t=>!!t.initializer&&qu(t.initializer,!0));default:return!1}}function RVe(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=So(vi(r,"..",i)),f=_w(s.fileName,l,o),d=s.statements[0]&&zr(s.statements[0].expression,rs),g=d&&wr(d.properties,m=>yl(m)&&yo(m.name)&&m.name.text==="files");g&&fu(g.initializer)&&t.insertNodeInListAfter(s,To(g.initializer.elements),D.createStringLiteral(f),g.initializer.elements)}function OVe(e,t,r,i,o,s,l,f){let d=o.getTypeChecker(),g=v8(e.statements,B_);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByNewFile.size()===0)return y1e(e,i.ranges,r),[...g,...i.all];let m=!!e.externalModuleIndicator,v=J_(e,f),S=BVe(e,t.oldFileImportsFromNewFile,l,o,s,m,v);S&&L7(r,e,S,!0,f),NVe(e,i.all,r,t.unusedImportsFromOldFile,d),y1e(e,i.ranges,r),PVe(r,o,s,e,t.movedSymbols,l);let x=HVe(e,t.oldImportsNeededByNewFile,t.newFileImportsFromOldFile,r,d,o,s,m,v),A=UVe(e,i.all,t.oldFileImportsFromNewFile,m);return x.length&&A.length?[...g,...x,4,...A]:[...g,...x,...A]}function y1e(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function NVe(e,t,r,i,o){for(let s of e.statements)ya(t,s)||Iee(s,l=>T1e(e,l,r,f=>i.has(o.getSymbolAtLocation(f))))}function PVe(e,t,r,i,o,s){let l=t.getTypeChecker();for(let f of t.getSourceFiles())if(f!==i)for(let d of f.statements)Iee(d,g=>{if(l.getSymbolAtLocation(v1e(g))!==i.symbol)return;let m=w=>{let C=Wo(w.parent)?I7(l,w.parent):wd(l.getSymbolAtLocation(w),l);return!!C&&o.has(C)};T1e(f,g,e,m);let v=Fy(ni(i.path),s),S=sF(t.getCompilerOptions(),f,f.path,v,$S(t,r)),x=A1e(g,D.createStringLiteral(S),m);x&&e.insertNodeAfter(f,d,x);let A=MVe(g);A&&FVe(e,f,l,o,S,A,g)})}function MVe(e){switch(e.kind){case 269:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===271?e.importClause.namedBindings.name:void 0;case 268:return e.name;case 257:return zr(e.name,Re);default:return L.assertNever(e,`Unexpected node kind ${e.kind}`)}}function FVe(e,t,r,i,o,s,l){let f=gu.moduleSpecifierToValidIdentifier(o,99),d=!1,g=[];if(js.Core.eachSymbolReferenceInFile(s,r,t,m=>{br(m.parent)&&(d=d||!!r.resolveName(f,m,67108863,!0),i.has(r.getSymbolAtLocation(m.parent.name))&&g.push(m))}),g.length){let m=d?i1(f,t):f;for(let v of g)e.replaceNode(t,v,D.createIdentifier(m));e.insertNodeAfter(t,l,GVe(l,f,o))}}function GVe(e,t,r){let i=D.createIdentifier(t),o=D.createStringLiteral(r);switch(e.kind){case 269:return D.createImportDeclaration(void 0,D.createImportClause(!1,void 0,D.createNamespaceImport(i)),o,void 0);case 268:return D.createImportEqualsDeclaration(void 0,!1,i,D.createExternalModuleReference(o));case 257:return D.createVariableDeclaration(i,void 0,void 0,Lee(o));default:return L.assertNever(e,`Unexpected node kind ${e.kind}`)}}function v1e(e){return e.kind===269?e.moduleSpecifier:e.kind===268?e.moduleReference.expression:e.initializer.arguments[0]}function Iee(e,t){if(gl(e))yo(e.moduleSpecifier)&&t(e);else if(Nl(e))um(e.moduleReference)&&es(e.moduleReference.expression)&&t(e);else if(Bc(e))for(let r of e.declarationList.declarations)r.initializer&&qu(r.initializer,!0)&&t(r)}function BVe(e,t,r,i,o,s,l){let f,d=[];return t.forEach(g=>{g.escapedName==="default"?f=D.createIdentifier(x7(g)):d.push(g.name)}),b1e(e,f,d,r,i,o,s,l)}function b1e(e,t,r,i,o,s,l,f){let d=Fy(ni(e.path),i),g=sF(o.getCompilerOptions(),e,e.path,d,$S(o,s));if(l){let m=r.map(v=>D.createImportSpecifier(!1,void 0,D.createIdentifier(v)));return jhe(t,m,g,f)}else{L.assert(!t,"No default import should exist");let m=r.map(v=>D.createBindingElement(void 0,void 0,v));return m.length?E1e(D.createObjectBindingPattern(m),void 0,Lee(D.createStringLiteral(g))):void 0}}function E1e(e,t,r,i=2){return D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(e,void 0,t,r)],i))}function Lee(e){return D.createCallExpression(D.createIdentifier("require"),void 0,[e])}function UVe(e,t,r,i){return Uo(t,o=>{if(YVe(o)&&!R1e(e,o,i)&&k1e(o,s=>{var l;return r.has(L.checkDefined((l=zr(s,$p))==null?void 0:l.symbol))})){let s=ZVe(o,i);if(s)return s}return o})}function T1e(e,t,r,i){switch(t.kind){case 269:VVe(e,t,r,i);break;case 268:i(t.name)&&r.delete(e,t);break;case 257:jVe(e,t,r,i);break;default:L.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function VVe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),f=!s||(s.kind===271?i(s.name):s.elements.length!==0&&s.elements.every(d=>i(d.name)));if(l&&f)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(f)r.replaceNode(e,t.importClause,D.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===272)for(let d of s.elements)i(d.name)&&r.delete(e,d)}}function jVe(e,t,r,i){let{name:o}=t;switch(o.kind){case 79:i(o)&&(t.initializer&&qu(t.initializer,!0)?r.delete(e,pu(t.parent)&&Fn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 204:break;case 203:if(o.elements.every(s=>Re(s.name)&&i(s.name)))r.delete(e,pu(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Re(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function HVe(e,t,r,i,o,s,l,f,d){let g=[];for(let x of e.statements)Iee(x,A=>{Sn(g,A1e(A,v1e(A),w=>t.has(o.getSymbolAtLocation(w))))});let m,v=[],S=W2();return r.forEach(x=>{if(x.declarations)for(let A of x.declarations){if(!I1e(A))continue;let w=$Ve(A);if(!w)continue;let C=w1e(A);S(C)&&QVe(e,C,w,i,f),Mr(A,1024)?m=w:v.push(w.text)}}),Sn(g,b1e(e,m,v,Hl(e.fileName),s,l,f,d)),g}function WVe(e,t,r,i){let o=e;for(let s=1;;s++){let l=vi(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function zVe(e,t){return e.forEachEntry(x7)||t.forEachEntry(x7)||"newFile"}function JVe(e,t,r){let i=new Ik,o=new Ik,s=new Ik,l=wr(t,v=>!!(v.transformFlags&2)),f=m(l);f&&o.add(f);for(let v of t)k1e(v,S=>{i.add(L.checkDefined(Ol(S)?r.getSymbolAtLocation(S.expression.left):S.symbol,"Need a symbol here"))});for(let v of t)C1e(v,r,S=>{if(S.declarations)for(let x of S.declarations)S1e(x)?o.add(S):I1e(x)&&XVe(x)===e&&!i.has(S)&&s.add(S)});let d=o.clone(),g=new Ik;for(let v of e.statements)ya(t,v)||(f&&v.transformFlags&2&&d.delete(f),C1e(v,r,S=>{i.has(S)&&g.add(S),d.delete(S)}));return{movedSymbols:i,newFileImportsFromOldFile:s,oldFileImportsFromNewFile:g,oldImportsNeededByNewFile:o,unusedImportsFromOldFile:d};function m(v){if(v===void 0)return;let S=r.getJsxNamespace(v),x=r.resolveName(S,v,1920,!0);return x&&vt(x.declarations,S1e)?x:void 0}}function S1e(e){switch(e.kind){case 268:case 273:case 270:case 271:return!0;case 257:return x1e(e);case 205:return wi(e.parent.parent)&&x1e(e.parent.parent);default:return!1}}function x1e(e){return Li(e.parent.parent.parent)&&!!e.initializer&&qu(e.initializer,!0)}function A1e(e,t,r){switch(e.kind){case 269:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&KVe(i.namedBindings,r);return o||s?D.createImportDeclaration(void 0,D.createImportClause(i.isTypeOnly,o,s),t,void 0):void 0}case 268:return r(e.name)?e:void 0;case 257:{let i=qVe(e.name,r);return i?E1e(i,e.type,Lee(t),e.parent.flags):void 0}default:return L.assertNever(e,`Unexpected import kind ${e.kind}`)}}function KVe(e,t){if(e.kind===271)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?D.createNamedImports(r):void 0}}function qVe(e,t){switch(e.kind){case 79:return t(e)?e:void 0;case 204:return e;case 203:{let r=e.elements.filter(i=>i.propertyName||!Re(i.name)||t(i.name));return r.length?D.createObjectBindingPattern(r):void 0}}}function C1e(e,t,r){e.forEachChild(function i(o){if(Re(o)&&!Rh(o)){let s=t.getSymbolAtLocation(o);s&&r(s)}else o.forEachChild(i)})}function I1e(e){return L1e(e)&&Li(e.parent)||wi(e)&&Li(e.parent.parent.parent)}function XVe(e){return wi(e)?e.parent.parent.parent:e.parent}function YVe(e){return L.assert(Li(e.parent),"Node parent should be a SourceFile"),L1e(e)||Bc(e)}function L1e(e){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return!0;default:return!1}}function k1e(e,t){switch(e.kind){case 259:case 260:case 264:case 263:case 262:case 261:case 268:return t(e);case 240:return ks(e.declarationList.declarations,r=>D1e(r.name,t));case 241:{let{expression:r}=e;return ar(r)&&ic(r)===1?t(e):void 0}}}function D1e(e,t){switch(e.kind){case 79:return t(Ga(e.parent,r=>wi(r)||Wo(r)));case 204:case 203:return ks(e.elements,r=>ol(r)?void 0:D1e(r.name,t));default:return L.assertNever(e,`Unexpected name kind ${e.kind}`)}}function $Ve(e){return Ol(e)?zr(e.expression.left.name,Re):zr(e.name,Re)}function w1e(e){switch(e.kind){case 257:return e.parent.parent;case 205:return w1e(Ga(e.parent.parent,t=>wi(t)||Wo(t)));default:return e}}function QVe(e,t,r,i,o){if(!R1e(e,t,o,r))if(o)Ol(t)||i.insertExportModifier(e,t);else{let s=kee(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(O1e))}}function R1e(e,t,r,i){var o;return r?!Ol(t)&&Mr(t,1)||!!(i&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&kee(t).some(s=>e.symbol.exports.has(Bs(s)))}function ZVe(e,t){return t?[eje(e)]:tje(e)}function eje(e){let t=g_(e)?Qi([D.createModifier(93)],uT(e)):void 0;switch(e.kind){case 259:return D.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 260:let r=HS(e)?Uy(e):void 0;return D.updateClassDeclaration(e,Qi(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 240:return D.updateVariableStatement(e,t,e.declarationList);case 264:return D.updateModuleDeclaration(e,t,e.name,e.body);case 263:return D.updateEnumDeclaration(e,t,e.name,e.members);case 262:return D.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 261:return D.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 268:return D.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 241:return L.fail();default:return L.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function tje(e){return[e,...kee(e).map(O1e)]}function kee(e){switch(e.kind){case 259:case 260:return[e.name.text];case 240:return Zi(e.declarationList.declarations,t=>Re(t.name)?t.name.text:void 0);case 264:case 263:case 262:case 261:case 268:return Je;case 241:return L.fail("Can't export an ExpressionStatement");default:return L.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function O1e(e){return D.createExpressionStatement(D.createBinaryExpression(D.createPropertyAccessExpression(D.createIdentifier("exports"),D.createIdentifier(e)),63,D.createIdentifier(e)))}var Ck,hG,gG,Ik,nje=gt({"src/services/refactors/moveToNewFile.ts"(){"use strict";L_e(),Fr(),Qm(),Ck="Move to a new file",hG=uo(_.Move_to_a_new_file),gG={name:Ck,description:hG,kind:"refactor.move.newFile"},Vh(Ck,{kinds:[gG.kind],getAvailableActions:function(t){let r=g1e(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:Ck,description:hG,actions:[gG]}]:t.preferences.provideRefactorNotApplicableReason?[{name:Ck,description:hG,actions:[{...gG,notApplicableReason:uo(_.Selection_is_not_a_valid_statement_or_statements)}]}]:Je},getEditsForAction:function(t,r){L.assert(r===Ck,"Wrong refactor invoked");let i=L.checkDefined(g1e(t));return{edits:nr.ChangeTracker.with(t,s=>kVe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}}),Ik=class{constructor(){this.map=new Map}add(e){this.map.set(String($a(e)),e)}has(e){return this.map.has(String($a(e)))}delete(e){this.map.delete(String($a(e)))}forEach(e){this.map.forEach(e)}forEachEntry(e){return Ld(this.map,e)}clone(){let e=new Ik;return Mw(this.map,e.map),e}size(){return this.map.size}}}});function rje(e){let{file:t,startPosition:r,program:i}=e;return P1e(t,r,i)?[{name:yG,description:Dee,actions:[wee]}]:Je}function ije(e){let{file:t,startPosition:r,program:i}=e,o=P1e(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],f=l;switch(l.kind){case 170:{f=D.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,g(o),l.type);break}case 171:{f=D.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,g(o),l.type,l.body);break}case 176:{f=D.updateCallSignature(l,l.typeParameters,g(o),l.type);break}case 173:{f=D.updateConstructorDeclaration(l,l.modifiers,g(o),l.body);break}case 177:{f=D.updateConstructSignature(l,l.typeParameters,g(o),l.type);break}case 259:{f=D.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,g(o),l.type,l.body);break}default:return L.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(f===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:nr.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,o[0],o[o.length-1],f)})};function g(S){let x=S[S.length-1];return Ds(x)&&x.body&&(S=S.slice(0,S.length-1)),D.createNodeArray([D.createParameterDeclaration(void 0,D.createToken(25),"args",void 0,D.createUnionTypeNode(on(S,m)))])}function m(S){let x=on(S.parameters,v);return Jn(D.createTupleTypeNode(x),vt(x,A=>!!Fn(l2(A)))?0:1)}function v(S){L.assert(Re(S.name));let x=it(D.createNamedTupleMember(S.dotDotDotToken,S.name,S.questionToken,S.type||D.createKeywordTypeNode(131)),S),A=S.symbol&&S.symbol.getDocumentationComment(s);if(A){let w=Mye(A);w.length&&W0(x,[{text:`*
| ${w.split(`
| `).map(C=>` * ${C}`).join(`
| `)}
| `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return x}}function N1e(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function P1e(e,t,r){let i=Vi(e,t),o=jn(i,N1e);if(!o||Ds(o)&&o.body&&wN(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let f=l.declarations;if(Fn(f)<=1||!Ji(f,S=>Gn(S)===e)||!N1e(f[0]))return;let d=f[0].kind;if(!Ji(f,S=>S.kind===d))return;let g=f;if(vt(g,S=>!!S.typeParameters||vt(S.parameters,x=>!!x.modifiers||!Re(x.name))))return;let m=Zi(g,S=>s.getSignatureFromDeclaration(S));if(Fn(m)!==Fn(f))return;let v=s.getReturnTypeOfSignature(m[0]);if(Ji(m,S=>s.getReturnTypeOfSignature(S)===v))return g}var yG,Dee,wee,aje=gt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";Fr(),Qm(),yG="Convert overload list to single signature",Dee=_.Convert_overload_list_to_single_signature.message,wee={name:yG,description:Dee,kind:"refactor.rewrite.function.overloadList"},Vh(yG,{kinds:[wee.kind],getEditsForAction:ije,getAvailableActions:rje})}});function oje(e){let{file:t,startPosition:r,triggerReason:i}=e,o=M1e(t,r,i==="invoked");return o?$m(o)?e.preferences.provideRefactorNotApplicableReason?[{name:vG,description:Ree,actions:[{...RP,notApplicableReason:o.error},{...Lk,notApplicableReason:o.error}]}]:Je:[{name:vG,description:Ree,actions:[o.addBraces?RP:Lk]}]:Je}function sje(e,t){let{file:r,startPosition:i}=e,o=M1e(r,i);L.assert(o&&!$m(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:f}=o,d;if(t===RP.name){let m=D.createReturnStatement(s);d=D.createBlock([m],!0),q2(s,m,r,3,!0)}else if(t===Lk.name&&l){let m=s||D.createVoidZero();d=bY(m)?D.createParenthesizedExpression(m):m,qN(l,d,r,3,!1),q2(l,d,r,3,!1),sk(l,d,r,3,!1)}else L.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:nr.ChangeTracker.with(e,m=>{m.replaceNode(r,f.body,d)})}}function M1e(e,t,r=!0,i){let o=Vi(e,t),s=Xd(o);if(!s)return{error:uo(_.Could_not_find_a_containing_arrow_function)};if(!xs(s))return{error:uo(_.Containing_function_is_not_an_arrow_function)};if(!(!Od(s,o)||Od(s.body,o)&&!r)){if(pv(RP.kind,i)&&ot(s.body))return{func:s,addBraces:!0,expression:s.body};if(pv(Lk.kind,i)&&Va(s.body)&&s.body.statements.length===1){let l=Vo(s.body.statements);if(j_(l))return{func:s,addBraces:!1,expression:l.expression,returnStatement:l}}}}var vG,Ree,RP,Lk,cje=gt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";Fr(),Qm(),vG="Add or remove braces in an arrow function",Ree=_.Add_or_remove_braces_in_an_arrow_function.message,RP={name:"Add braces to arrow function",description:_.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},Lk={name:"Remove braces from arrow function",description:_.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"},Vh(vG,{kinds:[Lk.kind],getEditsForAction:sje,getAvailableActions:oje})}}),lje={},uje=gt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";aje(),cje()}});function dje(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=G1e(t,r,i);if(!s)return Je;let{selectedVariableDeclaration:l,func:f}=s,d=[],g=[];if(pv(Dk.kind,o)){let m=l||xs(f)&&wi(f.parent)?void 0:uo(_.Could_not_convert_to_named_function);m?g.push({...Dk,notApplicableReason:m}):d.push(Dk)}if(pv(kk.kind,o)){let m=!l&&xs(f)?void 0:uo(_.Could_not_convert_to_anonymous_function);m?g.push({...kk,notApplicableReason:m}):d.push(kk)}if(pv(wk.kind,o)){let m=ms(f)?void 0:uo(_.Could_not_convert_to_arrow_function);m?g.push({...wk,notApplicableReason:m}):d.push(wk)}return[{name:Oee,description:V1e,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?g:d}]}function fje(e,t){let{file:r,startPosition:i,program:o}=e,s=G1e(r,i,o);if(!s)return;let{func:l}=s,f=[];switch(t){case kk.name:f.push(...hje(e,l));break;case Dk.name:let d=mje(l);if(!d)return;f.push(...gje(e,l,d));break;case wk.name:if(!ms(l))return;f.push(...yje(e,l));break;default:return L.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:f}}function F1e(e){let t=!1;return e.forEachChild(function r(i){if(H2(i)){t=!0;return}!Yr(i)&&!Jc(i)&&!ms(i)&&pa(i,r)}),t}function G1e(e,t,r){let i=Vi(e,t),o=r.getTypeChecker(),s=pje(e,o,i.parent);if(s&&!F1e(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=Xd(i);if(l&&(ms(l)||xs(l))&&!Od(l.body,i)&&!F1e(l.body)&&!o.containsArgumentsReference(l))return ms(l)&&U1e(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function _je(e){return wi(e)||pu(e)&&e.declarations.length===1}function pje(e,t,r){if(!_je(r))return;let o=(wi(r)?r:Vo(r.declarations)).initializer;if(o&&(xs(o)||ms(o)&&!U1e(e,t,o)))return o}function B1e(e){if(ot(e)){let t=D.createReturnStatement(e),r=e.getSourceFile();return it(t,e),pd(t),qN(e,t,r,void 0,!0),D.createBlock([t],!0)}else return e}function mje(e){let t=e.parent;if(!wi(t)||!L6(t))return;let r=t.parent,i=r.parent;if(!(!pu(r)||!Bc(i)||!Re(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function hje(e,t){let{file:r}=e,i=B1e(t.body),o=D.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return nr.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function gje(e,t,r){let{file:i}=e,o=B1e(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:f,name:d}=r;D7(f);let g=wg(s)&1|uu(t),m=D.createModifiersFromModifierFlags(g),v=D.createFunctionDeclaration(Fn(m)?m:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?nr.ChangeTracker.with(e,S=>S.replaceNode(i,f,v)):nr.ChangeTracker.with(e,S=>{S.delete(i,s),S.insertNodeAfter(i,f,v)})}function yje(e,t){let{file:r}=e,o=t.body.statements[0],s;vje(t.body,o)?(s=o.expression,pd(s),r1(o,s)):s=t.body;let l=D.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,D.createToken(38),s);return nr.ChangeTracker.with(e,f=>f.replaceNode(r,t,l))}function vje(e,t){return e.statements.length===1&&j_(t)&&!!t.expression}function U1e(e,t,r){return!!r.name&&js.Core.isSymbolReferencedInFile(r.name,t,e)}var Oee,V1e,kk,Dk,wk,bje=gt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";Fr(),Qm(),Oee="Convert arrow function or function expression",V1e=uo(_.Convert_arrow_function_or_function_expression),kk={name:"Convert to anonymous function",description:uo(_.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},Dk={name:"Convert to named function",description:uo(_.Convert_to_named_function),kind:"refactor.rewrite.function.named"},wk={name:"Convert to arrow function",description:uo(_.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Vh(Oee,{kinds:[kk.kind,Dk.kind,wk.kind],getEditsForAction:fje,getAvailableActions:dje})}}),Eje={},Tje=gt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";bje()}});function Sje(e){let{file:t,startPosition:r}=e;return Cu(t)||!W1e(t,r,e.program.getTypeChecker())?Je:[{name:NP,description:Fee,actions:[Gee]}]}function xje(e,t){L.assert(t===NP,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,f=W1e(r,i,o.getTypeChecker());if(!f||!s)return;let d=Cje(f,o,s);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:nr.ChangeTracker.with(e,m=>Aje(r,o,l,m,f,d))}:{edits:[]}}function Aje(e,t,r,i,o,s){let l=s.signature,f=on(q1e(o,t,r),m=>cc(m));if(l){let m=on(q1e(l,t,r),v=>cc(v));g(l,m)}g(o,f);let d=HD(s.functionCalls,(m,v)=>Es(m.pos,v.pos));for(let m of d)if(m.arguments&&m.arguments.length){let v=cc(Mje(o,m.arguments),!0);i.replaceNodeRange(Gn(m),Vo(m.arguments),To(m.arguments),v,{leadingTriviaOption:nr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nr.TrailingTriviaOption.Include})}function g(m,v){i.replaceNodeRangeWithNodes(e,Vo(m.parameters),To(m.parameters),v,{joiner:", ",indentation:0,leadingTriviaOption:nr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nr.TrailingTriviaOption.Include})}}function Cje(e,t,r){let i=Gje(e),o=Ec(e)?Fje(e):[],s=fA([...i,...o],Zv),l=t.getTypeChecker(),f=Uo(s,v=>js.getReferenceEntriesForNode(-1,v,t,t.getSourceFiles(),r)),d=g(f);return Ji(d.declarations,v=>ya(s,v))||(d.valid=!1),d;function g(v){let S={accessExpressions:[],typeUsages:[]},x={functionCalls:[],declarations:[],classReferences:S,valid:!0},A=on(i,m),w=on(o,m),C=Ec(e),P=on(i,F=>Nee(F,l));for(let F of v){if(F.kind===js.EntryKind.Span){x.valid=!1;continue}if(ya(P,m(F.node))){if(Dje(F.node.parent)){x.signature=F.node.parent;continue}let q=H1e(F);if(q){x.functionCalls.push(q);continue}}let B=Nee(F.node,l);if(B&&ya(P,B)){let q=Pee(F);if(q){x.declarations.push(q);continue}}if(ya(A,m(F.node))||ZL(F.node)){if(j1e(F))continue;let W=Pee(F);if(W){x.declarations.push(W);continue}let Y=H1e(F);if(Y){x.functionCalls.push(Y);continue}}if(C&&ya(w,m(F.node))){if(j1e(F))continue;let W=Pee(F);if(W){x.declarations.push(W);continue}let Y=Ije(F);if(Y){S.accessExpressions.push(Y);continue}if(sl(e.parent)){let R=Lje(F);if(R){S.typeUsages.push(R);continue}}}x.valid=!1}return x}function m(v){let S=l.getSymbolAtLocation(v);return S&&ege(S,l)}}function Nee(e,t){let r=nP(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(ac(o)&6))return o}}function j1e(e){let t=e.node;if($u(t.parent)||lm(t.parent)||Nl(t.parent)||nv(t.parent)||Mu(t.parent)||pc(t.parent))return t}function Pee(e){if(Kl(e.node.parent))return e.node}function H1e(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 210:case 211:let i=zr(r,Ih);if(i&&i.expression===t)return i;break;case 208:let o=zr(r,br);if(o&&o.parent&&o.name===t){let l=zr(o.parent,Ih);if(l&&l.expression===o)return l}break;case 209:let s=zr(r,Vs);if(s&&s.parent&&s.argumentExpression===t){let l=zr(s.parent,Ih);if(l&&l.expression===s)return l}break}}}function Ije(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 208:let i=zr(r,br);if(i&&i.expression===t)return i;break;case 209:let o=zr(r,Vs);if(o&&o.expression===t)return o;break}}}function Lje(e){let t=e.node;if(ZT(t)===2||IR(t.parent))return t}function W1e(e,t,r){let i=nk(e,t),o=ice(i);if(!kje(i)&&o&&wje(o,r)&&Od(o,i)&&!(o.body&&Od(o.body,i)))return o}function kje(e){let t=jn(e,IA);if(t){let r=jn(t,i=>!IA(i));return!!r&&Ds(r)}return!1}function Dje(e){return zm(e)&&(ku(e.parent)||Rd(e.parent))}function wje(e,t){var r;if(!Rje(e.parameters,t))return!1;switch(e.kind){case 259:return z1e(e)&&OP(e,t);case 171:if(rs(e.parent)){let i=Nee(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&OP(e,t)}return OP(e,t);case 173:return sl(e.parent)?z1e(e.parent)&&OP(e,t):J1e(e.parent.parent)&&OP(e,t);case 215:case 216:return J1e(e.parent)}return!1}function OP(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function z1e(e){return e.name?!0:!!z2(e,88)}function Rje(e,t){return Nje(e)>=X1e&&Ji(e,r=>Oje(r,t))}function Oje(e,t){if(Fm(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Re(e.name)}function J1e(e){return wi(e)&&kh(e)&&Re(e.name)&&!e.type}function Mee(e){return e.length>0&&H2(e[0].name)}function Nje(e){return Mee(e)?e.length-1:e.length}function K1e(e){return Mee(e)&&(e=D.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Pje(e,t){return Re(t)&&l_(t)===e?D.createShorthandPropertyAssignment(e):D.createPropertyAssignment(e,t)}function Mje(e,t){let r=K1e(e.parameters),i=Fm(To(r)),o=i?t.slice(0,r.length-1):t,s=on(o,(f,d)=>{let g=bG(r[d]),m=Pje(g,f);return pd(m.name),yl(m)&&pd(m.initializer),r1(f,m),m});if(i&&t.length>=r.length){let f=t.slice(r.length-1),d=D.createPropertyAssignment(bG(To(r)),D.createArrayLiteralExpression(f));s.push(d)}return D.createObjectLiteralExpression(s,!1)}function q1e(e,t,r){let i=t.getTypeChecker(),o=K1e(e.parameters),s=on(o,m),l=D.createObjectBindingPattern(s),f=v(o),d;Ji(o,A)&&(d=D.createObjectLiteralExpression());let g=D.createParameterDeclaration(void 0,void 0,l,void 0,f,d);if(Mee(e.parameters)){let w=e.parameters[0],C=D.createParameterDeclaration(void 0,void 0,w.name,void 0,w.type);return pd(C.name),r1(w.name,C.name),w.type&&(pd(C.type),r1(w.type,C.type)),D.createNodeArray([C,g])}return D.createNodeArray([g]);function m(w){let C=D.createBindingElement(void 0,void 0,bG(w),Fm(w)&&A(w)?D.createArrayLiteralExpression():w.initializer);return pd(C),w.initializer&&C.initializer&&r1(w.initializer,C.initializer),C}function v(w){let C=on(w,S);return bp(D.createTypeLiteralNode(C),1)}function S(w){let C=w.type;!C&&(w.initializer||Fm(w))&&(C=x(w));let P=D.createPropertySignature(void 0,bG(w),A(w)?D.createToken(57):w.questionToken,C);return pd(P),r1(w.name,P.name),w.type&&P.type&&r1(w.type,P.type),P}function x(w){let C=i.getTypeAtLocation(w);return lk(C,w,t,r)}function A(w){if(Fm(w)){let C=i.getTypeAtLocation(w);return!i.isTupleType(C)}return i.isOptionalParameter(w)}}function bG(e){return l_(e.name)}function Fje(e){switch(e.parent.kind){case 260:let t=e.parent;return t.name?[t.name]:[L.checkDefined(z2(t,88),"Nameless class declaration should be a default export")];case 228:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function Gje(e){switch(e.kind){case 259:return e.name?[e.name]:[L.checkDefined(z2(e,88),"Nameless function declaration should be a default export")];case 171:return[e.name];case 173:let r=L.checkDefined(Yo(e,135,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===228?[e.parent.parent.name,r]:[r];case 216:return[e.parent.name];case 215:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return L.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var NP,X1e,Fee,Gee,Bje=gt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";Fr(),Qm(),NP="Convert parameters to destructured object",X1e=1,Fee=uo(_.Convert_parameters_to_destructured_object),Gee={name:NP,description:Fee,kind:"refactor.rewrite.parameters.toDestructured"},Vh(NP,{kinds:[Gee.kind],getEditsForAction:xje,getAvailableActions:Sje})}}),Uje={},Vje=gt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";Bje()}});function jje(e){let{file:t,startPosition:r}=e,i=Y1e(t,r),o=Bee(i),s={name:EG,description:TG,actions:[]};return ar(o)&&Uee(o).isValidConcatenation?(s.actions.push(SG),[s]):e.preferences.provideRefactorNotApplicableReason?(s.actions.push({...SG,notApplicableReason:uo(_.Can_only_convert_string_concatenation)}),[s]):Je}function Y1e(e,t){let r=Vi(e,t),i=Bee(r);return!Uee(i).isValidConcatenation&&ud(i.parent)&&ar(i.parent.parent)?i.parent.parent:r}function Hje(e,t){let{file:r,startPosition:i}=e,o=Y1e(r,i);switch(t){case TG:return{edits:Wje(e,o)};default:return L.fail("invalid action")}}function Wje(e,t){let r=Bee(t),i=e.file,o=Kje(Uee(r),i),s=eb(i.text,r.end);if(s){let l=s[s.length-1],f={pos:s[0].pos,end:l.end};return nr.ChangeTracker.with(e,d=>{d.deleteRange(i,f),d.replaceNode(i,r,o)})}else return nr.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function zje(e){return e.operatorToken.kind!==63}function Bee(e){return jn(e.parent,r=>{switch(r.kind){case 208:case 209:return!1;case 225:case 223:return!(ar(r.parent)&&zje(r.parent));default:return"quit"}})||e}function Uee(e){let t=l=>{if(!ar(l))return{nodes:[l],operators:[],validOperators:!0,hasString:yo(l)||IS(l)};let{nodes:f,operators:d,hasString:g,validOperators:m}=t(l.left);if(!(g||yo(l.right)||d3(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let v=l.operatorToken.kind===39,S=m&&v;return f.push(l.right),d.push(l.operatorToken),{nodes:f,operators:d,hasString:!0,validOperators:S}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function Jje(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function $1e(e){let t=f2(e)||Aue(e)?-2:-1;return Qc(e).slice(1,t)}function Q1e(e,t){let r=[],i="",o="";for(;e<t.length;){let s=t[e];if(es(s))i+=s.text,o+=Jje(Qc(s).slice(1,-1)),r.push(e),e++;else if(d3(s)){i+=s.head.text,o+=$1e(s.head);break}else break}return[e,i,o,r]}function Kje({nodes:e,operators:t},r){let i=eSe(t,r),o=tSe(e,r,i),[s,l,f,d]=Q1e(0,e);if(s===e.length){let v=D.createNoSubstitutionTemplateLiteral(l,f);return o(d,v),v}let g=[],m=D.createTemplateHead(l,f);o(d,m);for(let v=s;v<e.length;v++){let S=qje(e[v]);i(v,S);let[x,A,w,C]=Q1e(v+1,e);v=x-1;let P=v===e.length-1;if(d3(S)){let F=on(S.templateSpans,(B,q)=>{Z1e(B);let W=q===S.templateSpans.length-1,Y=B.literal.text+(W?A:""),R=$1e(B.literal)+(W?w:"");return D.createTemplateSpan(B.expression,P&&W?D.createTemplateTail(Y,R):D.createTemplateMiddle(Y,R))});g.push(...F)}else{let F=P?D.createTemplateTail(A,w):D.createTemplateMiddle(A,w);o(C,F),g.push(D.createTemplateSpan(S,F))}}return D.createTemplateExpression(m,g)}function Z1e(e){let t=e.getSourceFile();sk(e,e.expression,t,3,!1),qN(e.expression,e.expression,t,3,!1)}function qje(e){return ud(e)&&(Z1e(e),e=e.expression),e}var EG,TG,SG,eSe,tSe,Xje=gt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";Fr(),Qm(),EG="Convert to template string",TG=uo(_.Convert_to_template_string),SG={name:EG,description:TG,kind:"refactor.rewrite.string"},Vh(EG,{kinds:[SG.kind],getEditsForAction:Hje,getAvailableActions:jje}),eSe=(e,t)=>(r,i)=>{r<e.length&&sk(e[r],i,t,3,!1)},tSe=(e,t,r)=>(i,o)=>{for(;i.length>0;){let s=i.shift();sk(e[s],o,t,3,!1),r(s,o)}}}}),Yje={},$je=gt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";Xje()}});function Qje(e){let t=nSe(e,e.triggerReason==="invoked");return t?$m(t)?e.preferences.provideRefactorNotApplicableReason?[{name:PP,description:CG,actions:[{...IG,notApplicableReason:t.error}]}]:Je:[{name:PP,description:CG,actions:[IG]}]:Je}function Zje(e,t){let r=nSe(e);return L.assert(r&&!$m(r),"Expected applicable refactor info"),{edits:nr.ChangeTracker.with(e,o=>sHe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function xG(e){return ar(e)||b2(e)}function eHe(e){return Ol(e)||j_(e)||Bc(e)}function AG(e){return xG(e)||eHe(e)}function nSe(e,t=!0){let{file:r,program:i}=e,o=QS(e),s=o.length===0;if(s&&!t)return;let l=Vi(r,o.start),f=p7(r,o.start+o.length),d=Wc(l.pos,f&&f.end>=l.pos?f.getEnd():l.getEnd()),g=s?aHe(l):iHe(l,d),m=g&&AG(g)?oHe(g):void 0;if(!m)return{error:uo(_.Could_not_find_convertible_access_expression)};let v=i.getTypeChecker();return b2(m)?tHe(m,v):nHe(m)}function tHe(e,t){let r=e.condition,i=jee(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:uo(_.Could_not_find_convertible_access_expression)};if((br(r)||Re(r))&&Vee(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(ar(r)){let o=rSe(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:uo(_.Could_not_find_matching_access_expressions)}}}function nHe(e){if(e.operatorToken.kind!==55)return{error:uo(_.Can_only_convert_logical_AND_access_chains)};let t=jee(e.right);if(!t)return{error:uo(_.Could_not_find_convertible_access_expression)};let r=rSe(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:uo(_.Could_not_find_matching_access_expressions)}}function rSe(e,t){let r=[];for(;ar(t)&&t.operatorToken.kind===55;){let o=Vee(vs(e),vs(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Vee(e,t);return i&&r.push(i),r.length>0?r:void 0}function Vee(e,t){if(!(!Re(t)&&!br(t)&&!Vs(t)))return rHe(e,t)?t:void 0}function rHe(e,t){for(;(Pa(e)||br(e)||Vs(e))&&Rk(e)!==Rk(t);)e=e.expression;for(;br(e)&&br(t)||Vs(e)&&Vs(t);){if(Rk(e)!==Rk(t))return!1;e=e.expression,t=t.expression}return Re(e)&&Re(t)&&e.getText()===t.getText()}function Rk(e){if(Re(e)||yf(e))return e.getText();if(br(e))return Rk(e.name);if(Vs(e))return Rk(e.argumentExpression)}function iHe(e,t){for(;e.parent;){if(AG(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function aHe(e){for(;e.parent;){if(AG(e)&&!AG(e.parent))return e;e=e.parent}}function oHe(e){if(xG(e))return e;if(Bc(e)){let t=HA(e),r=t?.initializer;return r&&xG(r)?r:void 0}return e.expression&&xG(e.expression)?e.expression:void 0}function jee(e){if(e=vs(e),ar(e))return jee(e.left);if((br(e)||Vs(e)||Pa(e))&&!Jl(e))return e}function iSe(e,t,r){if(br(t)||Vs(t)||Pa(t)){let i=iSe(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),Pa(t))return s?D.createCallChain(i,D.createToken(28),t.typeArguments,t.arguments):D.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(br(t))return s?D.createPropertyAccessChain(i,D.createToken(28),t.name):D.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Vs(t))return s?D.createElementAccessChain(i,D.createToken(28),t.argumentExpression):D.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function sHe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:f}=i,d=l[l.length-1],g=iSe(t,s,l);g&&(br(g)||Vs(g)||Pa(g))&&(ar(f)?r.replaceNodeRange(e,d,s,g):b2(f)&&r.replaceNode(e,f,D.createBinaryExpression(g,D.createToken(60),f.whenFalse)))}var PP,CG,IG,cHe=gt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";Fr(),Qm(),PP="Convert to optional chain expression",CG=uo(_.Convert_to_optional_chain_expression),IG={name:PP,description:CG,kind:"refactor.rewrite.expression.optionalChain"},Vh(PP,{kinds:[IG.kind],getEditsForAction:Zje,getAvailableActions:Qje})}}),lHe={},uHe=gt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";cHe()}});function aSe(e){let t=e.kind,r=Hee(e.file,QS(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Je;let A=[];return pv(px.kind,t)&&A.push({name:fx,description:px.description,actions:[{...px,notApplicableReason:x(r.errors)}]}),pv(_x.kind,t)&&A.push({name:fx,description:_x.description,actions:[{..._x,notApplicableReason:x(r.errors)}]}),A}let o=hHe(i,e);if(o===void 0)return Je;let s=[],l=new Map,f,d=[],g=new Map,m,v=0;for(let{functionExtraction:A,constantExtraction:w}of o){if(pv(px.kind,t)){let C=A.description;A.errors.length===0?l.has(C)||(l.set(C,!0),s.push({description:C,name:`function_scope_${v}`,kind:px.kind})):f||(f={description:C,name:`function_scope_${v}`,notApplicableReason:x(A.errors),kind:px.kind})}if(pv(_x.kind,t)){let C=w.description;w.errors.length===0?g.has(C)||(g.set(C,!0),d.push({description:C,name:`constant_scope_${v}`,kind:_x.kind})):m||(m={description:C,name:`constant_scope_${v}`,notApplicableReason:x(w.errors),kind:_x.kind})}v++}let S=[];return s.length?S.push({name:fx,description:uo(_.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&f&&S.push({name:fx,description:uo(_.Extract_function),actions:[f]}),d.length?S.push({name:fx,description:uo(_.Extract_constant),actions:d}):e.preferences.provideRefactorNotApplicableReason&&m&&S.push({name:fx,description:uo(_.Extract_constant),actions:[m]}),S.length?S:Je;function x(A){let w=A[0].messageText;return typeof w!="string"&&(w=w.messageText),w}}function oSe(e,t){let i=Hee(e.file,QS(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return L.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),pHe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return L.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),mHe(i,e,l)}L.fail("Unrecognized action name")}function Hee(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[al(e,t.start,i,vl.cannotExtractEmpty)]};let o=i===0&&r,s=Ihe(e,t.start),l=p7(e,wl(t)),f=s&&l&&r?dHe(s,l,e):t,d=o?MHe(s):HN(s,e,f),g=o?d:HN(l,e,f),m=0,v;if(!d||!g)return{errors:[al(e,t.start,i,vl.cannotExtractRange)]};if(d.flags&8388608)return{errors:[al(e,t.start,i,vl.cannotExtractJSDoc)]};if(d.parent!==g.parent)return{errors:[al(e,t.start,i,vl.cannotExtractRange)]};if(d!==g){if(!cSe(d.parent))return{errors:[al(e,t.start,i,vl.cannotExtractRange)]};let F=[];for(let B of d.parent.statements){if(B===d||F.length){let q=P(B);if(q)return{errors:q};F.push(B)}if(B===g)break}return F.length?{targetRange:{range:F,facts:m,thisNode:v}}:{errors:[al(e,t.start,i,vl.cannotExtractRange)]}}if(j_(d)&&!d.expression)return{errors:[al(e,t.start,i,vl.cannotExtractRange)]};let S=A(d),x=w(S)||P(S);if(x)return{errors:x};return{targetRange:{range:fHe(S),facts:m,thisNode:v}};function A(F){if(j_(F)){if(F.expression)return F.expression}else if(Bc(F)||pu(F)){let B=Bc(F)?F.declarationList.declarations:F.declarations,q=0,W;for(let Y of B)Y.initializer&&(q++,W=Y.initializer);if(q===1)return W}else if(wi(F)&&F.initializer)return F.initializer;return F}function w(F){if(Re(Ol(F)?F.expression:F))return[hr(F,vl.cannotExtractIdentifier)]}function C(F,B){let q=F;for(;q!==B;){if(q.kind===169){Ca(q)&&(m|=32);break}else if(q.kind===166){Xd(q).kind===173&&(m|=32);break}else q.kind===171&&Ca(q)&&(m|=32);q=q.parent}}function P(F){let B;if(($=>{$[$.None=0]="None",$[$.Break=1]="Break",$[$.Continue=2]="Continue",$[$.Return=4]="Return"})(B||(B={})),L.assert(F.pos<=F.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),L.assert(!vp(F.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ca(F)&&!(Dh(F)&&sSe(F))&&!qee(F))return[hr(F,vl.statementOrExpressionExpected)];if(F.flags&16777216)return[hr(F,vl.cannotExtractAmbientBlock)];let q=Zc(F);q&&C(F,q);let W,Y=4,R;if(ie(F),m&8){let $=Ku(F,!1,!1);($.kind===259||$.kind===171&&$.parent.kind===207||$.kind===215)&&(m|=16)}return W;function ie($){if(W)return!0;if(Kl($)){let Z=$.kind===257?$.parent.parent:$;if(Mr(Z,1))return(W||(W=[])).push(hr($,vl.cannotExtractExportedEntity)),!0}switch($.kind){case 269:return(W||(W=[])).push(hr($,vl.cannotExtractImport)),!0;case 274:return(W||(W=[])).push(hr($,vl.cannotExtractExportedEntity)),!0;case 106:if($.parent.kind===210){let Z=Zc($);if(Z===void 0||Z.pos<t.start||Z.end>=t.start+t.length)return(W||(W=[])).push(hr($,vl.cannotExtractSuper)),!0}else m|=8,v=$;break;case 216:pa($,function Z(U){if(H2(U))m|=8,v=$;else{if(Yr(U)||Ia(U)&&!xs(U))return!1;pa(U,Z)}});case 260:case 259:Li($.parent)&&$.parent.externalModuleIndicator===void 0&&(W||(W=[])).push(hr($,vl.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}let fe=Y;switch($.kind){case 242:Y&=-5;break;case 255:Y=0;break;case 238:$.parent&&$.parent.kind===255&&$.parent.finallyBlock===$&&(Y=4);break;case 293:case 292:Y|=1;break;default:Wy($,!1)&&(Y|=3);break}switch($.kind){case 194:case 108:m|=8,v=$;break;case 253:{let Z=$.label;(R||(R=[])).push(Z.escapedText),pa($,ie),R.pop();break}case 249:case 248:{let Z=$.label;Z?ya(R,Z.escapedText)||(W||(W=[])).push(hr($,vl.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Y&($.kind===249?1:2)||(W||(W=[])).push(hr($,vl.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 220:m|=4;break;case 226:m|=2;break;case 250:Y&4?m|=1:(W||(W=[])).push(hr($,vl.cannotExtractRangeContainingConditionalReturnStatement));break;default:pa($,ie);break}Y=fe}}}function dHe(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function fHe(e){if(ca(e))return[e];if(Dh(e))return Ol(e.parent)?[e.parent]:e;if(qee(e))return e}function Wee(e){return xs(e)?Hj(e.body):Ds(e)||Li(e)||Tp(e)||Yr(e)}function _He(e){let t=jh(e.range)?Vo(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=Zc(t);if(i){let o=jn(t,Ds);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===166&&(t=jn(t,i=>Ds(i)).parent),Wee(t)&&(r.push(t),t.kind===308))return r}function pHe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:f}}=zee(e,t);return L.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),THe(o,i[r],s[r],f,e,t)}function mHe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:f}}=zee(e,t);L.assert(!l[r].length,"The extraction went missing? How?"),L.assert(f.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let d=ot(o)?o:o.statements[0].expression;return SHe(d,i[r],s[r],e.facts,t)}function hHe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=zee(e,t);return r.map((l,f)=>{let d=gHe(l),g=yHe(l),m=Ds(l)?vHe(l):Yr(l)?bHe(l):EHe(l),v,S;return m===1?(v=jm(uo(_.Extract_to_0_in_1_scope),[d,"global"]),S=jm(uo(_.Extract_to_0_in_1_scope),[g,"global"])):m===0?(v=jm(uo(_.Extract_to_0_in_1_scope),[d,"module"]),S=jm(uo(_.Extract_to_0_in_1_scope),[g,"module"])):(v=jm(uo(_.Extract_to_0_in_1),[d,m]),S=jm(uo(_.Extract_to_0_in_1),[g,m])),f===0&&!Yr(l)&&(S=jm(uo(_.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:v,errors:i[f]},constantExtraction:{description:S,errors:o[f]}}})}function zee(e,t){let{file:r}=t,i=_He(e),o=NHe(e,r),s=PHe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function gHe(e){return Ds(e)?"inner function":Yr(e)?"method":"function"}function yHe(e){return Yr(e)?"readonly field":"constant"}function vHe(e){switch(e.kind){case 173:return"constructor";case 215:case 259:return e.name?`function '${e.name.text}'`:X7;case 216:return"arrow function";case 171:return`method '${e.name.getText()}'`;case 174:return`'get ${e.name.getText()}'`;case 175:return`'set ${e.name.getText()}'`;default:throw L.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function bHe(e){return e.kind===260?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function EHe(e){return e.kind===265?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function THe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,f){let d=f.program.getTypeChecker(),g=Do(f.program.getCompilerOptions()),m=gu.createImportAdder(f.file,f.program,f.preferences,f.host),v=t.getSourceFile(),S=i1(Yr(t)?"newMethod":"newFunction",v),x=Yn(t),A=D.createIdentifier(S),w,C=[],P=[],F;r.forEach((Ce,Ie)=>{let Be;if(!x){let Le=d.getTypeOfSymbolAtLocation(Ce.symbol,Ce.node);Le=d.getBaseTypeOfLiteralType(Le),Be=gu.typeToAutoImportableTypeNode(d,m,Le,t,g,1)}let Ne=D.createParameterDeclaration(void 0,void 0,Ie,void 0,Be);C.push(Ne),Ce.usage===2&&(F||(F=[])).push(Ce),P.push(D.createIdentifier(Ie))});let q=lo(i.values(),Ce=>({type:Ce,declaration:AHe(Ce)})).sort(CHe),W=q.length===0?void 0:q.map(Ce=>Ce.declaration),Y=W!==void 0?W.map(Ce=>D.createTypeReferenceNode(Ce.name,void 0)):void 0;if(ot(e)&&!x){let Ce=d.getContextualType(e);w=d.typeToTypeNode(Ce,t,1)}let{body:R,returnValueProperty:ie}=LHe(e,s,F,o,!!(l.facts&1));pd(R);let $,fe=!!(l.facts&16);if(Yr(t)){let Ce=x?[]:[D.createModifier(121)];l.facts&32&&Ce.push(D.createModifier(124)),l.facts&4&&Ce.push(D.createModifier(132)),$=D.createMethodDeclaration(Ce.length?Ce:void 0,l.facts&2?D.createToken(41):void 0,A,void 0,W,C,w,R)}else fe&&C.unshift(D.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(l.thisNode),t,1),void 0)),$=D.createFunctionDeclaration(l.facts&4?[D.createToken(132)]:void 0,l.facts&2?D.createToken(41):void 0,A,W,C,w,R);let Z=nr.ChangeTracker.fromContext(f),U=(jh(l.range)?To(l.range):l.range).end,re=wHe(U,t);re?Z.insertNodeBefore(f.file,re,$,!0):Z.insertNodeAtEndOfScope(f.file,t,$),m.writeFixes(Z);let le=[],_e=IHe(t,l,S);fe&&P.unshift(D.createIdentifier("this"));let ge=D.createCallExpression(fe?D.createPropertyAccessExpression(_e,"call"):_e,Y,P);if(l.facts&2&&(ge=D.createYieldExpression(D.createToken(41),ge)),l.facts&4&&(ge=D.createAwaitExpression(ge)),Kee(e)&&(ge=D.createJsxExpression(void 0,ge)),s.length&&!F)if(L.assert(!ie,"Expected no returnValueProperty"),L.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let Ce=s[0];le.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(cc(Ce.name),void 0,cc(Ce.type),ge)],Ce.parent.flags)))}else{let Ce=[],Ie=[],Be=s[0].parent.flags,Ne=!1;for(let Ye of s){Ce.push(D.createBindingElement(void 0,void 0,cc(Ye.name)));let _t=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(Ye)),t,1);Ie.push(D.createPropertySignature(void 0,Ye.symbol.name,void 0,_t)),Ne=Ne||Ye.type!==void 0,Be=Be&Ye.parent.flags}let Le=Ne?D.createTypeLiteralNode(Ie):void 0;Le&&Jn(Le,1),le.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(D.createObjectBindingPattern(Ce),void 0,Le,ge)],Be)))}else if(s.length||F){if(s.length)for(let Ie of s){let Be=Ie.parent.flags;Be&2&&(Be=Be&-3|1),le.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(Ie.symbol.name,void 0,Pe(Ie.type))],Be)))}ie&&le.push(D.createVariableStatement(void 0,D.createVariableDeclarationList([D.createVariableDeclaration(ie,void 0,Pe(w))],1)));let Ce=Jee(s,F);ie&&Ce.unshift(D.createShorthandPropertyAssignment(ie)),Ce.length===1?(L.assert(!ie,"Shouldn't have returnValueProperty here"),le.push(D.createExpressionStatement(D.createAssignment(Ce[0].name,ge))),l.facts&1&&le.push(D.createReturnStatement())):(le.push(D.createExpressionStatement(D.createAssignment(D.createObjectLiteralExpression(Ce),ge))),ie&&le.push(D.createReturnStatement(D.createIdentifier(ie))))}else l.facts&1?le.push(D.createReturnStatement(ge)):jh(l.range)?le.push(D.createExpressionStatement(ge)):le.push(ge);jh(l.range)?Z.replaceNodeRangeWithNodes(f.file,Vo(l.range),To(l.range),le):Z.replaceNodeWithNodes(f.file,l.range,le);let X=Z.getChanges(),we=(jh(l.range)?Vo(l.range):l.range).getSourceFile().fileName,ke=KN(X,we,S,!1);return{renameFilename:we,renameLocation:ke,edits:X};function Pe(Ce){if(Ce===void 0)return;let Ie=cc(Ce),Be=Ie;for(;wS(Be);)Be=Be.type;return DS(Be)&&wr(Be.types,Ne=>Ne.kind===155)?Ie:D.createUnionTypeNode([Ie,D.createKeywordTypeNode(155)])}}function SHe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),f=br(e)&&!Yr(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!pi(e.name)&&!nb(e.name)?e.name.text:i1(Yr(t)?"newProperty":"newLocal",l),d=Yn(t),g=d||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=kHe(vs(e),r);({variableType:g,initializer:m}=w(g,m)),pd(m);let v=nr.ChangeTracker.fromContext(o);if(Yr(t)){L.assert(!d,"Cannot extract to a JS class");let C=[];C.push(D.createModifier(121)),i&32&&C.push(D.createModifier(124)),C.push(D.createModifier(146));let P=D.createPropertyDeclaration(C,f,void 0,g,m),F=D.createPropertyAccessExpression(i&32?D.createIdentifier(t.name.getText()):D.createThis(),D.createIdentifier(f));Kee(e)&&(F=D.createJsxExpression(void 0,F));let B=e.pos,q=RHe(B,t);v.insertNodeBefore(o.file,q,P,!0),v.replaceNode(o.file,e,F)}else{let C=D.createVariableDeclaration(f,void 0,g,m),P=xHe(e,t);if(P){v.insertNodeBefore(o.file,P,C);let F=D.createIdentifier(f);v.replaceNode(o.file,e,F)}else if(e.parent.kind===241&&t===jn(e,Wee)){let F=D.createVariableStatement(void 0,D.createVariableDeclarationList([C],2));v.replaceNode(o.file,e.parent,F)}else{let F=D.createVariableStatement(void 0,D.createVariableDeclarationList([C],2)),B=OHe(e,t);if(B.pos===0?v.insertNodeAtTopOfFile(o.file,F,!1):v.insertNodeBefore(o.file,B,F,!1),e.parent.kind===241)v.delete(o.file,e.parent);else{let q=D.createIdentifier(f);Kee(e)&&(q=D.createJsxExpression(void 0,q)),v.replaceNode(o.file,e,q)}}}let S=v.getChanges(),x=e.getSourceFile().fileName,A=KN(S,x,f,!0);return{renameFilename:x,renameLocation:A,edits:S};function w(C,P){if(C===void 0)return{variableType:C,initializer:P};if(!ms(P)&&!xs(P)||P.typeParameters)return{variableType:C,initializer:P};let F=s.getTypeAtLocation(e),B=Wp(s.getSignaturesOfType(F,0));if(!B)return{variableType:C,initializer:P};if(B.getTypeParameters())return{variableType:C,initializer:P};let q=[],W=!1;for(let Y of P.parameters)if(Y.type)q.push(Y);else{let R=s.getTypeAtLocation(Y);R===s.getAnyType()&&(W=!0),q.push(D.updateParameterDeclaration(Y,Y.modifiers,Y.dotDotDotToken,Y.name,Y.questionToken,Y.type||s.typeToTypeNode(R,t,1),Y.initializer))}if(W)return{variableType:C,initializer:P};if(C=void 0,xs(P))P=D.updateArrowFunction(P,g_(e)?uT(e):void 0,P.typeParameters,q,P.type||s.typeToTypeNode(B.getReturnType(),t,1),P.equalsGreaterThanToken,P.body);else{if(B&&B.thisParameter){let Y=Sl(q);if(!Y||Re(Y.name)&&Y.name.escapedText!=="this"){let R=s.getTypeOfSymbolAtLocation(B.thisParameter,e);q.splice(0,0,D.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(R,t,1)))}}P=D.updateFunctionExpression(P,g_(e)?uT(e):void 0,P.asteriskToken,P.name,P.typeParameters,q,P.type||s.typeToTypeNode(B.getReturnType(),t,1),P.body)}return{variableType:C,initializer:P}}}function xHe(e,t){let r;for(;e!==void 0&&e!==t;){if(wi(e)&&e.initializer===r&&pu(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function AHe(e){let t,r=e.symbol;if(r&&r.declarations)for(let i of r.declarations)(t===void 0||i.pos<t.pos)&&(t=i);return t}function CHe({type:e,declaration:t},{type:r,declaration:i}){return Cae(t,i,"pos",Es)||su(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||Es(e.id,r.id)}function IHe(e,t,r){let i=D.createIdentifier(r);if(Yr(e)){let o=t.facts&32?D.createIdentifier(e.name.text):D.createThis();return D.createPropertyAccessExpression(o,i)}else return i}function LHe(e,t,r,i,o){let s=r!==void 0||t.length>0;if(Va(e)&&!s&&i.size===0)return{body:D.createBlock(e.statements,!0),returnValueProperty:void 0};let l,f=!1,d=D.createNodeArray(Va(e)?e.statements.slice(0):[ca(e)?e:D.createReturnStatement(vs(e))]);if(s||i.size){let m=On(d,g,ca).slice();if(s&&!o&&ca(e)){let v=Jee(t,r);v.length===1?m.push(D.createReturnStatement(v[0].name)):m.push(D.createReturnStatement(D.createObjectLiteralExpression(v)))}return{body:D.createBlock(m,!0),returnValueProperty:l}}else return{body:D.createBlock(d,!0),returnValueProperty:void 0};function g(m){if(!f&&j_(m)&&s){let v=Jee(t,r);return m.expression&&(l||(l="__return"),v.unshift(D.createPropertyAssignment(l,$e(m.expression,g,ot)))),v.length===1?D.createReturnStatement(v[0].name):D.createReturnStatement(D.createObjectLiteralExpression(v))}else{let v=f;f=f||Ds(m)||Yr(m);let S=i.get(zo(m).toString()),x=S?cc(S):xn(m,g,Bh);return f=v,x}}}function kHe(e,t){return t.size?r(e):e;function r(i){let o=t.get(zo(i).toString());return o?cc(o):xn(i,r,Bh)}}function DHe(e){if(Ds(e)){let t=e.body;if(Va(t))return t.statements}else{if(Tp(e)||Li(e))return e.statements;if(Yr(e))return e.members;}return Je}function wHe(e,t){return wr(DHe(t),r=>r.pos>=e&&Ds(r)&&!Ec(r))}function RHe(e,t){let r=t.members;L.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!Na(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?L.fail():i}function OHe(e,t){L.assert(!Yr(t));let r;for(let i=e;i!==t;i=i.parent)Wee(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(cSe(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&CL(i)?(L.assert(pO(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):L.checkDefined(o,"prevStatement failed to get set")}L.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Jee(e,t){let r=on(e,o=>D.createShorthandPropertyAssignment(o.symbol.name)),i=on(t,o=>D.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function jh(e){return ba(e)}function NHe(e,t){return jh(e.range)?{pos:Vo(e.range).getStart(t),end:To(e.range).getEnd()}:e.range}function PHe(e,t,r,i,o,s){let l=new Map,f=[],d=[],g=[],m=[],v=[],S=new Map,x=[],A,w=jh(e.range)?e.range.length===1&&Ol(e.range[0])?e.range[0].expression:void 0:e.range,C;if(w===void 0){let re=e.range,le=Vo(re).getStart(),_e=To(re).end;C=al(i,le,_e-le,vl.expressionExpected)}else o.getTypeAtLocation(w).flags&147456&&(C=hr(w,vl.uselessConstantType));for(let re of t){f.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),g.push([]);let le=[];C&&le.push(C),Yr(re)&&Yn(re)&&le.push(hr(re,vl.cannotExtractToJSClass)),xs(re)&&!Va(re.body)&&le.push(hr(re,vl.cannotExtractToExpressionArrowFunction)),m.push(le)}let P=new Map,F=jh(e.range)?D.createBlock(e.range):e.range,B=jh(e.range)?Vo(e.range):e.range,q=W(B);if(R(F),q&&!jh(e.range)&&!Sp(e.range)){let re=o.getContextualType(e.range);Y(re)}if(l.size>0){let re=new Map,le=0;for(let _e=B;_e!==void 0&&le<t.length;_e=_e.parent)if(_e===t[le]&&(re.forEach((ge,X)=>{f[le].typeParameterUsages.set(X,ge)}),le++),mH(_e))for(let ge of jy(_e)){let X=o.getTypeAtLocation(ge);l.has(X.id.toString())&&re.set(X.id.toString(),X)}L.assert(le===t.length,"Should have iterated all scopes")}if(v.length){let re=pH(t[0],t[0].parent)?t[0]:tm(t[0]);pa(re,fe)}for(let re=0;re<t.length;re++){let le=f[re];if(re>0&&(le.usages.size>0||le.typeParameterUsages.size>0)){let X=jh(e.range)?e.range[0]:e.range;m[re].push(hr(X,vl.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Yr(t[re])&&g[re].push(hr(e.thisNode,vl.cannotExtractFunctionsContainingThisToMethod));let _e=!1,ge;if(f[re].usages.forEach(X=>{X.usage===2&&(_e=!0,X.symbol.flags&106500&&X.symbol.valueDeclaration&&cd(X.symbol.valueDeclaration,64)&&(ge=X.symbol.valueDeclaration))}),L.assert(jh(e.range)||x.length===0,"No variable declarations expected if something was extracted"),_e&&!jh(e.range)){let X=hr(e.range,vl.cannotWriteInExpression);g[re].push(X),m[re].push(X)}else if(ge&&re>0){let X=hr(ge,vl.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[re].push(X),m[re].push(X)}else if(A){let X=hr(A,vl.cannotExtractExportedEntity);g[re].push(X),m[re].push(X)}}return{target:F,usagesPerScope:f,functionErrorsPerScope:g,constantErrorsPerScope:m,exposedVariableDeclarations:x};function W(re){return!!jn(re,le=>mH(le)&&jy(le).length!==0)}function Y(re){let le=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:_e}=le.walkType(re);for(let ge of _e)ge.isTypeParameter()&&l.set(ge.id.toString(),ge)}function R(re,le=1){if(q){let _e=o.getTypeAtLocation(re);Y(_e)}if(Kl(re)&&re.symbol&&v.push(re),Iu(re))R(re.left,2),R(re.right);else if(mse(re))R(re.operand,2);else if(br(re)||Vs(re))pa(re,R);else if(Re(re)){if(!re.parent||Yu(re.parent)&&re!==re.parent.left||br(re.parent)&&re!==re.parent.expression)return;ie(re,le,Gm(re))}else pa(re,R)}function ie(re,le,_e){let ge=$(re,le,_e);if(ge)for(let X=0;X<t.length;X++){let Ve=d[X].get(ge);Ve&&f[X].substitutions.set(zo(re).toString(),Ve)}}function $(re,le,_e){let ge=Z(re);if(!ge)return;let X=$a(ge).toString(),Ve=P.get(X);if(Ve&&Ve>=le)return X;if(P.set(X,le),Ve){for(let Pe of f)Pe.usages.get(re.text)&&Pe.usages.set(re.text,{usage:le,symbol:ge,node:re});return X}let we=ge.getDeclarations(),ke=we&&wr(we,Pe=>Pe.getSourceFile()===i);if(ke&&!ON(r,ke.getStart(),ke.end)){if(e.facts&2&&le===2){let Pe=hr(re,vl.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let Ce of g)Ce.push(Pe);for(let Ce of m)Ce.push(Pe)}for(let Pe=0;Pe<t.length;Pe++){let Ce=t[Pe];if(o.resolveName(ge.name,Ce,ge.flags,!1)!==ge&&!d[Pe].has(X)){let Be=U(ge.exportSymbol||ge,Ce,_e);if(Be)d[Pe].set(X,Be);else if(_e){if(!(ge.flags&262144)){let Ne=hr(re,vl.typeWillNotBeVisibleInTheNewScope);g[Pe].push(Ne),m[Pe].push(Ne)}}else f[Pe].usages.set(re.text,{usage:le,symbol:ge,node:re})}}return X}}function fe(re){if(re===e.range||jh(e.range)&&e.range.indexOf(re)>=0)return;let le=Re(re)?Z(re):o.getSymbolAtLocation(re);if(le){let _e=wr(v,ge=>ge.symbol===le);if(_e)if(wi(_e)){let ge=_e.symbol.id.toString();S.has(ge)||(x.push(_e),S.set(ge,!0))}else A=A||_e}pa(re,fe)}function Z(re){return re.parent&&xf(re.parent)&&re.parent.name===re?o.getShorthandAssignmentValueSymbol(re.parent):o.getSymbolAtLocation(re)}function U(re,le,_e){if(!re)return;let ge=re.getDeclarations();if(ge&&ge.some(Ve=>Ve.parent===le))return D.createIdentifier(re.name);let X=U(re.parent,le,_e);if(X!==void 0)return _e?D.createQualifiedName(X,D.createIdentifier(re.name)):D.createPropertyAccessExpression(X,re.name)}}function MHe(e){return jn(e,t=>t.parent&&sSe(t)&&!ar(t.parent))}function sSe(e){let{parent:t}=e;switch(t.kind){case 302:return!1}switch(e.kind){case 10:return t.kind!==269&&t.kind!==273;case 227:case 203:case 205:return!1;case 79:return t.kind!==205&&t.kind!==273&&t.kind!==278}return!0}function cSe(e){switch(e.kind){case 238:case 308:case 265:case 292:return!0;default:return!1}}function Kee(e){return qee(e)||(Hg(e)||FS(e)||BS(e))&&(Hg(e.parent)||BS(e.parent))}function qee(e){return yo(e)&&e.parent&&Sp(e.parent)}var fx,_x,px,vl,Xee,FHe=gt({"src/services/refactors/extractSymbol.ts"(){"use strict";Fr(),Qm(),fx="Extract Symbol",_x={name:"Extract Constant",description:uo(_.Extract_constant),kind:"refactor.extract.constant"},px={name:"Extract Function",description:uo(_.Extract_function),kind:"refactor.extract.function"},Vh(fx,{kinds:[_x.kind,px.kind],getEditsForAction:oSe,getAvailableActions:aSe}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(vl||(vl={})),Xee=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(Xee||{})}}),lSe={};Mo(lSe,{Messages:()=>vl,RangeFacts:()=>Xee,getRangeToExtract:()=>Hee,getRefactorActionsToExtractSymbol:()=>aSe,getRefactorEditsToExtractSymbol:()=>oSe});var GHe=gt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";FHe()}}),MP,LG,kG,BHe=gt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";Fr(),Qm(),MP="Generate 'get' and 'set' accessors",LG=_.Generate_get_and_set_accessors.message,kG={name:MP,description:LG,kind:"refactor.rewrite.property.generateAccessors"},Vh(MP,{kinds:[kG.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=gu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);L.assert(i&&!$m(i),"Expected applicable refactor info");let o=gu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,d=(Re(l)?0:-1)+KN(o,s,l.text,ha(i.declaration));return{renameFilename:s,renameLocation:d,edits:o}},getAvailableActions(e){if(!e.endPosition)return Je;let t=gu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?$m(t)?e.preferences.provideRefactorNotApplicableReason?[{name:MP,description:LG,actions:[{...kG,notApplicableReason:t.error}]}]:Je:[{name:MP,description:LG,actions:[kG]}]:Je}})}}),UHe={},VHe=gt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";BHe()}});function jHe(e){let t=uSe(e);if(t&&!$m(t))return{renameFilename:void 0,renameLocation:void 0,edits:nr.ChangeTracker.with(e,i=>WHe(e.file,i,t.declaration,t.returnTypeNode))}}function HHe(e){let t=uSe(e);return t?$m(t)?e.preferences.provideRefactorNotApplicableReason?[{name:FP,description:DG,actions:[{...GP,notApplicableReason:t.error}]}]:Je:[{name:FP,description:DG,actions:[GP]}]:Je}function WHe(e,t,r,i){let o=Yo(r,21,e),s=xs(r)&&o===void 0,l=s?Vo(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,D.createToken(20)),t.insertNodeAfter(e,l,D.createToken(21))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function uSe(e){if(Yn(e.file)||!pv(GP.kind,e.kind))return;let t=Vi(e.file,e.startPosition),r=jn(t,l=>Va(l)||l.parent&&xs(l.parent)&&(l.kind===38||l.parent.body===l)?"quit":zHe(l));if(!r||!r.body||r.type)return{error:uo(_.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=JHe(i,r);if(!o)return{error:uo(_.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function zHe(e){switch(e.kind){case 259:case 215:case 216:case 171:return!0;default:return!1}}function JHe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Zi(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var FP,DG,GP,KHe=gt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";Fr(),Qm(),FP="Infer function return type",DG=_.Infer_function_return_type.message,GP={name:FP,description:DG,kind:"refactor.rewrite.function.returnType"},Vh(FP,{kinds:[GP.kind],getEditsForAction:jHe,getAvailableActions:HHe})}}),qHe={},XHe=gt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";KHe()}}),Ok={};Mo(Ok,{addOrRemoveBracesToArrowFunction:()=>lje,convertArrowFunctionOrFunctionExpression:()=>Eje,convertParamsToDestructuredObject:()=>Uje,convertStringOrTemplateLiteral:()=>Yje,convertToOptionalChainExpression:()=>lHe,doChangeNamedToNamespaceOrDefault:()=>m1e,extractSymbol:()=>lSe,generateGetAccessorAndSetAccessor:()=>UHe,getApplicableRefactors:()=>oVe,getEditsForRefactor:()=>sVe,inferFunctionReturnType:()=>qHe,isRefactorErrorInfo:()=>$m,refactorKindBeginsWith:()=>pv,registerRefactor:()=>Vh});var Qm=gt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";cVe(),mVe(),bVe(),CVe(),IVe(),nje(),uje(),Tje(),Vje(),$je(),uHe(),GHe(),VHe(),XHe()}});function YHe(e,t,r,i){let o=_7(ef(t,r));if(fSe(o)){let s=$He(o,e.getTypeChecker(),t,e,i);if(s)return s}return wG(_.You_cannot_rename_this_element)}function $He(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(es(e)){let S=f7(e,t);if(S&&(S.flags&128||S.flags&1048576&&Ji(S.types,x=>!!(x.flags&128))))return Yee(e.text,e.text,"string","",e,r)}else if(FX(e)){let S=Qc(e);return Yee(S,S,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(S=>QHe(i,S)))return wG(_.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Re(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(es(e)&&oR(e))return o.allowRenameOfImportPath?eWe(e,r,s):void 0;let f=ZHe(r,s,t,o);if(f)return wG(f);let d=$g.getSymbolKind(t,s,e),g=Zhe(e)||yf(e)&&e.parent.kind===164?u_(l_(e)):void 0,m=g||t.symbolToString(s),v=g||t.getFullyQualifiedName(s);return Yee(m,v,d,$g.getSymbolModifiers(t,s),e,r)}function QHe(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&Gc(r.fileName,".d.ts")}function ZHe(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&wr(t.declarations,f=>$u(f));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=dSe(e.path);if(s===void 0)return vt(o,l=>dge(l.getSourceFile().path))?_.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let f=dSe(l.getSourceFile().path);if(f){let d=Math.min(s.length,f.length);for(let g=0;g<=d;g++)if(su(s[g],f[g])!==0)return _.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function dSe(e){let t=Ou(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function eWe(e,t,r){if(!fl(e.text))return wG(_.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&wr(r.declarations,Li);if(!i)return;let o=Oc(e.text,"/index")||Oc(e.text,"/index.js")?void 0:Iae(ld(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",f=e.text.lastIndexOf("/")+1,d=il(e.getStart(t)+1+f,e.text.length-f);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:d}}function Yee(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:tWe(o,s)}}function wG(e){return{canRename:!1,localizedErrorMessage:uo(e)}}function tWe(e,t){let r=e.getStart(t),i=e.getWidth(t);return es(e)&&(r+=1,i-=2),il(r,i)}function fSe(e){switch(e.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return c7(e);default:return!1}}var nWe=gt({"src/services/rename.ts"(){"use strict";Fr()}}),RG={};Mo(RG,{getRenameInfo:()=>YHe,nodeIsEligibleForRename:()=>fSe});var rWe=gt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";nWe()}});function iWe(e,t,r,i,o){let s=e.getTypeChecker(),l=p7(t,r);if(!l)return;let f=!!i&&i.kind==="characterTyped";if(f&&(n1(t,r,l)||Kg(t,r)))return;let d=!!i&&i.kind==="invoked",g=vWe(l,r,t,s,d);if(!g)return;o.throwIfCancellationRequested();let m=aWe(g,s,t,l,f);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,v=>m.kind===0?vSe(m.candidates,m.resolvedSignature,g,t,v):EWe(m.symbol,g,t,v)):Cu(t)?sWe(g,e,o):void 0}function aWe({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!oWe(o,e.node,i))return;let l=[],f=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:f}}case 1:{let{called:l}=e;if(s&&!_Se(o,i,Re(l)?l.parent:l))return;let f=XX(l,t,r);if(f.length!==0)return{kind:0,candidates:f,resolvedSignature:Vo(f)};let d=r.getSymbolAtLocation(l);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return L.assertNever(e)}}function oWe(e,t,r){if(!Ih(t))return!1;let i=t.getChildren(r);switch(e.kind){case 20:return ya(i,e);case 27:{let o=d7(e);return!!o&&ya(i,o)}case 29:return _Se(e,r,t.expression);default:return!1}}function sWe(e,t,r){if(e.invocation.kind===2)return;let i=gSe(e.invocation),o=br(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:ks(t.getSourceFiles(),l=>ks(l.getNamedDeclarations().get(o),f=>{let d=f.symbol&&s.getTypeOfSymbolAtLocation(f.symbol,f),g=d&&d.getCallSignatures();if(g&&g.length)return s.runWithCancellationToken(r,m=>vSe(g,g[0],e,l,m,!0))}))}function _Se(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=el(i,t,o,!0);if(s)return Od(r,s);o=o.parent}return L.fail("Could not find preceding token")}function cWe(e,t,r){let i=mSe(e,t,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function pSe(e,t,r){let i=lWe(e,r);if(!i)return;let{list:o,argumentIndex:s}=i,l=mWe(o,n1(r,t,e));s!==0&&L.assertLessThan(s,l);let f=gWe(o,r);return{list:o,argumentIndex:s,argumentCount:l,argumentsSpan:f}}function lWe(e,t){if(e.kind===29||e.kind===20)return{list:bWe(e.parent,e,t),argumentIndex:0};{let r=d7(e);return r&&{list:r,argumentIndex:pWe(r,e)}}}function mSe(e,t,r){let{parent:i}=e;if(Ih(i)){let o=i,s=pSe(e,t,r);if(!s)return;let{list:l,argumentIndex:f,argumentCount:d,argumentsSpan:g}=s;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===l.pos,invocation:{kind:0,node:o},argumentsSpan:g,argumentIndex:f,argumentCount:d}}else{if(IS(e)&&PT(i))return FN(e,t,r)?Qee(i,0,r):void 0;if(f2(e)&&i.parent.kind===212){let o=i,s=o.parent;L.assert(o.kind===225);let l=FN(e,t,r)?0:1;return Qee(s,l,r)}else if(xL(i)&&PT(i.parent.parent)){let o=i,s=i.parent.parent;if(Iz(e)&&!FN(e,t,r))return;let l=o.parent.templateSpans.indexOf(o),f=hWe(l,e,t,r);return Qee(s,f,r)}else if(Au(i)){let o=i.attributes.pos,s=xo(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:il(o,s-o),argumentIndex:0,argumentCount:1}}else{let o=YX(e,r);if(o){let{called:s,nTypeArguments:l}=o,f={kind:1,called:s},d=Wc(s.getStart(r),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:d,argumentIndex:l,argumentCount:l+1}}return}}}function uWe(e,t,r,i){return dWe(e,t,r,i)||mSe(e,t,r)}function hSe(e){return ar(e.parent)?hSe(e.parent):e}function $ee(e){return ar(e.left)?$ee(e.left)+1:2}function dWe(e,t,r,i){let o=fWe(e,r,t,i);if(!o)return;let{contextualType:s,argumentIndex:l,argumentCount:f,argumentsSpan:d}=o,g=s.getNonNullableType(),m=g.symbol;if(m===void 0)return;let v=Os(g.getCallSignatures());return v===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:v,node:e,symbol:_We(m)},argumentsSpan:d,argumentIndex:l,argumentCount:f}}function fWe(e,t,r,i){if(e.kind!==20&&e.kind!==27)return;let{parent:o}=e;switch(o.kind){case 214:case 171:case 215:case 216:let s=pSe(e,r,t);if(!s)return;let{argumentIndex:l,argumentCount:f,argumentsSpan:d}=s,g=Nc(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return g&&{contextualType:g,argumentIndex:l,argumentCount:f,argumentsSpan:d};case 223:{let m=hSe(o),v=i.getContextualType(m),S=e.kind===20?0:$ee(o)-1,x=$ee(m);return v&&{contextualType:v,argumentIndex:S,argumentCount:x,argumentsSpan:Du(o)}}default:return}}function _We(e){return e.name==="__type"&&ks(e.declarations,t=>{var r;return Jm(t)?(r=zr(t.parent,$p))==null?void 0:r.symbol:void 0})||e}function pWe(e,t){let r=0;for(let i of e.getChildren()){if(i===t)break;i.kind!==27&&r++}return r}function mWe(e,t){let r=e.getChildren(),i=Oy(r,o=>o.kind!==27);return!t&&r.length>0&&To(r).kind===27&&i++,i}function hWe(e,t,r,i){return L.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),rse(t)?FN(t,r,i)?0:e+2:e+1}function Qee(e,t,r){let i=IS(e.template)?1:e.template.templateSpans.length+1;return t!==0&&L.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:yWe(e,r),argumentIndex:t,argumentCount:i}}function gWe(e,t){let r=e.getFullStart(),i=xo(t.text,e.getEnd(),!1);return il(r,i-r)}function yWe(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===225&&To(r.templateSpans).literal.getFullWidth()===0&&(o=xo(t.text,o,!1)),il(i,o-i)}function vWe(e,t,r,i,o){for(let s=e;!Li(s)&&(o||!Va(s));s=s.parent){L.assert(Od(s.parent,s),"Not a subspan",()=>`Child: ${L.formatSyntaxKind(s.kind)}, parent: ${L.formatSyntaxKind(s.parent.kind)}`);let l=uWe(s,t,r,i);if(l)return l}}function bWe(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return L.assert(o>=0&&i.length>o+1),i[o+1]}function gSe(e){return e.kind===0?P6(e.node):e.called}function ySe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function vSe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},f,d,g){var m;let v=ySe(s),S=s.kind===2?s.symbol:d.getSymbolAtLocation(gSe(s))||g&&((m=t.declaration)==null?void 0:m.symbol),x=S?ok(d,S,g?f:void 0,void 0):Je,A=on(e,B=>SWe(B,x,r,d,v,f));l!==0&&L.assertLessThan(l,i);let w=0,C=0;for(let B=0;B<A.length;B++){let q=A[B];if(e[B]===t&&(w=C,q.length>1)){let W=0;for(let Y of q){if(Y.isVariadic||Y.parameters.length>=i){w=C+W;break}W++}}C+=q.length}L.assert(w!==-1);let P={items:BD(A,Ks),applicableSpan:o,selectedItemIndex:w,argumentIndex:l,argumentCount:i},F=P.items[w];if(F.isVariadic){let B=Yc(F.parameters,q=>!!q.isRest);-1<B&&B<F.parameters.length-1?P.argumentIndex=F.parameters.length:P.argumentIndex=Math.min(P.argumentIndex,F.parameters.length-1)}return P}function EWe(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){let f=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return f?{items:[TWe(e,f,l,ySe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function TWe(e,t,r,i,o){let s=ok(r,e),l=rE(),f=t.map(v=>bSe(v,r,i,o,l)),d=e.getDocumentationComment(r),g=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Yl(29)],suffixDisplayParts:[Yl(31)],separatorDisplayParts:Zee,parameters:f,documentation:d,tags:g}}function SWe(e,t,r,i,o,s){let l=(r?AWe:CWe)(e,i,o,s);return on(l,({isVariadic:f,parameters:d,prefix:g,suffix:m})=>{let v=[...t,...g],S=[...m,...xWe(e,o,i)],x=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:f,prefixDisplayParts:v,suffixDisplayParts:S,separatorDisplayParts:Zee,parameters:d,documentation:x,tags:A}})}function xWe(e,t,r){return uv(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function AWe(e,t,r,i){let o=(e.target||e).typeParameters,s=rE(),l=(o||Je).map(d=>bSe(d,t,r,i,s)),f=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,Nk)]:[];return t.getExpandedParameters(e).map(d=>{let g=D.createNodeArray([...f,...on(d,v=>t.symbolToParameterDeclaration(v,r,Nk))]),m=uv(v=>{s.writeList(2576,g,i,v)});return{isVariadic:!1,parameters:l,prefix:[Yl(29)],suffix:[Yl(31),...m]}})}function CWe(e,t,r,i){let o=rE(),s=uv(d=>{if(e.typeParameters&&e.typeParameters.length){let g=D.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,Nk)));o.writeList(53776,g,i,d)}}),l=t.getExpandedParameters(e),f=t.hasEffectiveRestParameter(e)?l.length===1?d=>!0:d=>{var g;return!!(d.length&&((g=zr(d[d.length-1],Zp))==null?void 0:g.links.checkFlags)&32768)}:d=>!1;return l.map(d=>({isVariadic:f(d),parameters:d.map(g=>IWe(g,t,r,i,o)),prefix:[...s,Yl(20)],suffix:[Yl(21)]}))}function IWe(e,t,r,i,o){let s=uv(d=>{let g=t.symbolToParameterDeclaration(e,r,Nk);o.writeNode(4,g,i,d)}),l=t.isOptionalParameter(e.valueDeclaration),f=Zp(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:f}}function bSe(e,t,r,i,o){let s=uv(l=>{let f=t.typeParameterToDeclaration(e,r,Nk);o.writeNode(4,f,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var Nk,Zee,LWe=gt({"src/services/signatureHelp.ts"(){"use strict";Fr(),Nk=70246400,Zee=[Yl(27),Qs()]}}),BP={};Mo(BP,{getArgumentInfoForCompletions:()=>cWe,getSignatureHelpItems:()=>iWe});var kWe=gt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";LWe()}});function DWe(e,t){var r,i;let o={textSpan:Wc(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let d=RWe(s);if(!d.length)break;for(let g=0;g<d.length;g++){let m=d[g-1],v=d[g],S=d[g+1];if(gT(v,t,!0)>e)break e;let x=Wp(eb(t.text,v.end));if(x&&x.kind===2&&f(x.pos,x.end),wWe(t,e,v)){if(Hj(v)&&Ds(s)&&!Bf(v.getStart(t),v.getEnd(),t)&&l(v.getStart(t),v.getEnd()),Va(v)||xL(v)||f2(v)||Iz(v)||m&&f2(m)||pu(v)&&Bc(s)||A2(v)&&pu(s)||wi(v)&&A2(s)&&d.length===1||UT(v)||X0(v)||LL(v)){s=v;break}if(xL(s)&&S&&o6(S)){let P=v.getFullStart()-2,F=S.getStart()+1;l(P,F)}let A=A2(v)&&OWe(m)&&NWe(S)&&!Bf(m.getStart(),S.getStart(),t),w=A?m.getEnd():v.getStart(),C=A?S.getStart():PWe(t,v);if(Kd(v)&&((r=v.jsDoc)!=null&&r.length)&&l(Vo(v.jsDoc).getStart(),C),A2(v)){let P=v.getChildren()[0];P&&Kd(P)&&((i=P.jsDoc)!=null&&i.length)&&P.getStart()!==v.pos&&(w=Math.min(w,Vo(P.jsDoc).getStart()))}l(w,C),(yo(v)||AA(v))&&l(w+1,C-1),s=v;break}if(g===d.length-1)break e}}return o;function l(d,g){if(d!==g){let m=Wc(d,g);(!o||!J2(m,o.textSpan)&&Noe(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function f(d,g){l(d,g);let m=d;for(;t.text.charCodeAt(m)===47;)m++;l(m,g)}}function wWe(e,t,r){return L.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?ef(e,t).pos<r.end:!1}function RWe(e){var t;if(Li(e))return Pk(e.getChildAt(0).getChildren(),ESe);if(EL(e)){let[r,...i]=e.getChildren(),o=L.checkDefined(i.pop());L.assertEqual(r.kind,18),L.assertEqual(o.kind,19);let s=Pk(i,f=>f===e.readonlyToken||f.kind===146||f===e.questionToken||f.kind===57),l=Pk(s,({kind:f})=>f===22||f===165||f===23);return[r,Mk(OG(l,({kind:f})=>f===58)),o]}if($d(e)){let r=Pk(e.getChildren(),l=>l===e.name||ya(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===323?r[0]:void 0,o=i?r.slice(1):r,s=OG(o,({kind:l})=>l===58);return i?[i,Mk(s)]:s}if(ha(e)){let r=Pk(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=Pk(r,o=>o===r[0]||o===e.questionToken);return OG(i,({kind:o})=>o===63)}return Wo(e)?OG(e.getChildren(),({kind:r})=>r===63):e.getChildren()}function Pk(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(Mk(i)),i=void 0),r.push(o));return i&&r.push(Mk(i)),r}function OG(e,t,r=!0){if(e.length<2)return e;let i=Yc(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=To(e),f=r&&l.kind===26,d=e.slice(i+1,f?e.length-1:void 0),g=WD([o.length?Mk(o):void 0,s,d.length?Mk(d):void 0]);return f?g.concat(l):g}function Mk(e){return L.assertGreaterThanOrEqual(e.length,1),om(fm.createSyntaxList(e),e[0].pos,To(e).end)}function OWe(e){let t=e&&e.kind;return t===18||t===22||t===20||t===283}function NWe(e){let t=e&&e.kind;return t===19||t===23||t===21||t===284}function PWe(e,t){switch(t.kind){case 344:case 341:case 351:case 349:case 346:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var ESe,MWe=gt({"src/services/smartSelection.ts"(){"use strict";Fr(),ESe=Kp(gl,Nl)}}),ete={};Mo(ete,{getSmartSelectionRange:()=>DWe});var FWe=gt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";MWe()}});function TSe(e,t,r){let i=SSe(e,t,r);if(i!=="")return i;let o=XI(t);return o&32?nc(t,228)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function SSe(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Vo(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===108&&ot(r)||mS(r))return"parameter";let o=XI(t);if(o&3)return dY(t)?"parameter":t.valueDeclaration&&kh(t.valueDeclaration)?"const":mn(t.declarations,II)?"let":CSe(t)?"local var":"var";if(o&16)return CSe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=mn(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function xSe(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=Fn(r)&&H7(t)&&vt(r,s=>!H7(s))?8192:0,o=rk(t,i);if(o)return o.split(",")}return[]}function GWe(e,t){if(!t)return"";let r=new Set(xSe(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&mn(xSe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?lo(r.values()).join(","):""}function ASe(e,t,r,i,o,s=ZT(o),l){var f;let d=[],g=[],m=[],v=XI(t),S=s&1?SSe(e,t,o):"",x=!1,A=o.kind===108&&F6(o)||mS(o),w,C,P,F=!1;if(o.kind===108&&!A)return{displayParts:[_d(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(S!==""||v&32||v&2097152){if(S==="getter"||S==="setter"){let le=wr(t.declarations,_e=>_e.name===o);if(le)switch(le.kind){case 174:S="getter";break;case 175:S="setter";break;case 169:S="accessor";break;default:L.assertNever(le)}else S="property"}let U;if(w=A?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o),o.parent&&o.parent.kind===208){let le=o.parent.name;(le===o||le&&le.getFullWidth()===0)&&(o=o.parent)}let re;if(Ih(o)?re=o:(NX(o)||ZL(o)||o.parent&&(Au(o.parent)||PT(o.parent))&&Ia(t.valueDeclaration))&&(re=o.parent),re){U=e.getResolvedSignature(re);let le=re.kind===211||Pa(re)&&re.expression.kind===106,_e=le?w.getConstructSignatures():w.getCallSignatures();if(U&&!ya(_e,U.target)&&!ya(_e,U)&&(U=_e.length?_e[0]:void 0),U){switch(le&&v&32?(S="constructor",ie(w.symbol,S)):v&2097152?(S="alias",$(S),d.push(Qs()),le&&(U.flags&4&&(d.push(_d(126)),d.push(Qs())),d.push(_d(103)),d.push(Qs())),R(t)):ie(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":d.push(Yl(58)),d.push(Qs()),!(Ur(w)&16)&&w.symbol&&(si(d,ok(e,w.symbol,i,void 0,5)),d.push(K2())),le&&(U.flags&4&&(d.push(_d(126)),d.push(Qs())),d.push(_d(103)),d.push(Qs())),fe(U,_e,262144);break;default:fe(U,_e)}x=!0,F=_e.length>1}}else if(VX(o)&&!(v&98304)||o.kind===135&&o.parent.kind===173){let le=o.parent;if(t.declarations&&wr(t.declarations,ge=>ge===(o.kind===135?le.parent:le))){let ge=le.kind===173?w.getNonNullableType().getConstructSignatures():w.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(le)?U=ge[0]:U=e.getSignatureFromDeclaration(le),le.kind===173?(S="constructor",ie(w.symbol,S)):ie(le.kind===176&&!(w.symbol.flags&2048||w.symbol.flags&4096)?w.symbol:t,S),U&&fe(U,ge),x=!0,F=ge.length>1}}}if(v&32&&!x&&!A&&(W(),nc(t,228)?$("local class"):d.push(_d(84)),d.push(Qs()),R(t),Z(t,r)),v&64&&s&2&&(q(),d.push(_d(118)),d.push(Qs()),R(t),Z(t,r)),v&524288&&s&2&&(q(),d.push(_d(154)),d.push(Qs()),R(t),Z(t,r),d.push(Qs()),d.push(ak(63)),d.push(Qs()),si(d,zN(e,Ch(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),v&384&&(q(),vt(t.declarations,U=>hb(U)&&R0(U))&&(d.push(_d(85)),d.push(Qs())),d.push(_d(92)),d.push(Qs()),R(t)),v&1536&&!A){q();let U=nc(t,264),re=U&&U.name&&U.name.kind===79;d.push(_d(re?143:142)),d.push(Qs()),R(t)}if(v&262144&&s&2)if(q(),d.push(Yl(20)),d.push(tf("type parameter")),d.push(Yl(21)),d.push(Qs()),R(t),t.parent)Y(),R(t.parent,i),Z(t.parent,i);else{let U=nc(t,165);if(U===void 0)return L.fail();let re=U.parent;if(re)if(Ia(re)){Y();let le=e.getSignatureFromDeclaration(re);re.kind===177?(d.push(_d(103)),d.push(Qs())):re.kind!==176&&re.name&&R(re.symbol),si(d,pY(e,le,r,32))}else Ep(re)&&(Y(),d.push(_d(154)),d.push(Qs()),R(re.symbol),Z(re.symbol,r))}if(v&8){S="enum member",ie(t,"enum member");let U=(f=t.declarations)==null?void 0:f[0];if(U?.kind===302){let re=e.getConstantValue(U);re!==void 0&&(d.push(Qs()),d.push(ak(63)),d.push(Qs()),d.push(Qu(Use(re),typeof re=="number"?7:8)))}}if(t.flags&2097152){if(q(),!x){let U=e.getAliasedSymbol(t);if(U!==t&&U.declarations&&U.declarations.length>0){let re=U.declarations[0],le=sa(re);if(le){let _e=b6(re)&&Mr(re,2),ge=t.name!=="default"&&!_e,X=ASe(e,U,Gn(re),re,le,s,ge?t:U);d.push(...X.displayParts),d.push(K2()),C=X.documentation,P=X.tags}else C=U.getContextualDocumentationComment(re,e),P=U.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 267:d.push(_d(93)),d.push(Qs()),d.push(_d(143));break;case 274:d.push(_d(93)),d.push(Qs()),d.push(_d(t.declarations[0].isExportEquals?63:88));break;case 278:d.push(_d(93));break;default:d.push(_d(100))}d.push(Qs()),R(t),mn(t.declarations,U=>{if(U.kind===268){let re=U;if(ab(re))d.push(Qs()),d.push(ak(63)),d.push(Qs()),d.push(_d(147)),d.push(Yl(20)),d.push(Qu(Qc(wI(re)),8)),d.push(Yl(21));else{let le=e.getSymbolAtLocation(re.moduleReference);le&&(d.push(Qs()),d.push(ak(63)),d.push(Qs()),R(le,i))}return!0}})}if(!x)if(S!==""){if(w){if(A?(q(),d.push(_d(108))):ie(t,S),S==="property"||S==="accessor"||S==="getter"||S==="setter"||S==="JSX attribute"||v&3||S==="local var"||S==="index"||A){if(d.push(Yl(58)),d.push(Qs()),w.symbol&&w.symbol.flags&262144&&S!=="index"){let U=uv(re=>{let le=e.typeParameterToDeclaration(w,i,tte);B().writeNode(4,le,Gn(ea(i)),re)});si(d,U)}else si(d,zN(e,w,i));if(Zp(t)&&t.links.target&&Zp(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let U=t.links.target.links.tupleLabelDeclaration;L.assertNode(U.name,Re),d.push(Qs()),d.push(Yl(20)),d.push(tf(vr(U.name))),d.push(Yl(21))}}else if(v&16||v&8192||v&16384||v&131072||v&98304||S==="method"){let U=w.getNonNullableType().getCallSignatures();U.length&&(fe(U[0],U),F=U.length>1)}}}else S=TSe(e,t,o);if(g.length===0&&!F&&(g=t.getContextualDocumentationComment(i,e)),g.length===0&&v&4&&t.parent&&t.declarations&&mn(t.parent.declarations,U=>U.kind===308))for(let U of t.declarations){if(!U.parent||U.parent.kind!==223)continue;let re=e.getSymbolAtLocation(U.parent.right);if(re&&(g=re.getDocumentationComment(e),m=re.getJsDocTags(e),g.length>0))break}if(g.length===0&&Re(o)&&t.valueDeclaration&&Wo(t.valueDeclaration)){let U=t.valueDeclaration,re=U.parent;if(Re(U.name)&&cm(re)){let le=l_(U.name),_e=e.getTypeAtLocation(re);g=ks(_e.isUnion()?_e.types:[_e],ge=>{let X=ge.getProperty(le);return X?X.getDocumentationComment(e):void 0})||Je}}return m.length===0&&!F&&(m=t.getContextualJsDocTags(i,e)),g.length===0&&C&&(g=C),m.length===0&&P&&(m=P),{displayParts:d,documentation:g,symbolKind:S,tags:m.length===0?void 0:m};function B(){return rE()}function q(){d.length&&d.push(K2()),W()}function W(){l&&($("alias"),d.push(Qs()))}function Y(){d.push(Qs()),d.push(_d(101)),d.push(Qs())}function R(U,re){let le;l&&U===t&&(U=l),S==="index"&&(le=e.getIndexInfosOfIndexSymbol(U));let _e=[];U.flags&131072&&le?(U.parent&&(_e=ok(e,U.parent)),_e.push(Yl(22)),le.forEach((ge,X)=>{_e.push(...zN(e,ge.keyType)),X!==le.length-1&&(_e.push(Qs()),_e.push(Yl(51)),_e.push(Qs()))}),_e.push(Yl(23))):_e=ok(e,U,re||r,void 0,7),si(d,_e),t.flags&16777216&&d.push(Yl(57))}function ie(U,re){q(),re&&($(re),U&&!vt(U.declarations,le=>xs(le)||(ms(le)||_u(le))&&!le.name)&&(d.push(Qs()),R(U)))}function $(U){switch(U){case"var":case"function":case"let":case"const":case"constructor":d.push(fY(U));return;default:d.push(Yl(20)),d.push(fY(U)),d.push(Yl(21));return}}function fe(U,re,le=0){si(d,pY(e,U,i,le|32)),re.length>1&&(d.push(Qs()),d.push(Yl(20)),d.push(ak(39)),d.push(Qu((re.length-1).toString(),7)),d.push(Qs()),d.push(tf(re.length===2?"overload":"overloads")),d.push(Yl(21))),g=U.getDocumentationComment(e),m=U.getJsDocTags(),re.length>1&&g.length===0&&m.length===0&&(g=re[0].getDocumentationComment(e),m=re[0].getJsDocTags().filter(_e=>_e.name!=="deprecated"))}function Z(U,re){let le=uv(_e=>{let ge=e.symbolToTypeParameterDeclarations(U,re,tte);B().writeList(53776,ge,Gn(ea(re)),_e)});si(d,le)}}function CSe(e){return e.parent?!1:mn(e.declarations,t=>{if(t.kind===215)return!0;if(t.kind!==257&&t.kind!==259)return!1;for(let r=t.parent;!bT(r);r=r.parent)if(r.kind===308||r.kind===265)return!1;return!0})}var tte,BWe=gt({"src/services/symbolDisplay.ts"(){"use strict";Fr(),tte=70246400}}),$g={};Mo($g,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>ASe,getSymbolKind:()=>TSe,getSymbolModifiers:()=>GWe});var UWe=gt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";BWe()}});function ISe(e){let t=e.__pos;return L.assert(typeof t=="number"),t}function nte(e,t){L.assert(typeof t=="number"),e.__pos=t}function LSe(e){let t=e.__end;return L.assert(typeof t=="number"),t}function rte(e,t){L.assert(typeof t=="number"),e.__end=t}function kSe(e,t){return xo(e,t,!1,!0)}function VWe(e,t){let r=t;for(;r<e.length;){let i=e.charCodeAt(r);if(Yp(i)){r++;continue}return i===47}return!1}function Fk(e,t,r,i){return{pos:f1(e,t,i),end:mx(e,r,i)}}function f1(e,t,r,i=!1){var o,s;let{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){let x=t.getStart(e),A=Wf(x,e);return wN(t,A)?A:x}if(l===2){let x=EH(t,e.text);if(x?.length)return Wf(x[0].pos,e)}let f=t.getFullStart(),d=t.getStart(e);if(f===d)return d;let g=Wf(f,e);if(Wf(d,e)===g)return l===1?f:d;if(i){let x=((o=Nm(e.text,f))==null?void 0:o[0])||((s=eb(e.text,f))==null?void 0:s[0]);if(x)return xo(e.text,x.end,!0,!0)}let v=f>0?1:0,S=Ky(UI(e,g)+v,e);return S=kSe(e.text,S),Ky(UI(e,S),e)}function ite(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=eb(e.text,i);if(s){let l=UI(e,t.end);for(let f of s){if(f.kind===2||UI(e,f.pos)>l)break;if(UI(e,f.end)>l)return xo(e.text,f.end,!0,!0)}}}}function mx(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let d=Qi(eb(e.text,o),Nm(e.text,o)),g=(i=d?.[d.length-1])==null?void 0:i.end;return g||o}let l=ite(e,t,r);if(l)return l;let f=xo(e.text,o,!0);return f!==o&&(s===2||Wl(e.text.charCodeAt(f-1)))?f:o}function NG(e,t){return!!t&&!!e.parent&&(t.kind===27||t.kind===26&&e.parent.kind===207)}function jWe(e){return ms(e)||Jc(e)}function HWe(e){if(e.kind!==216)return e;let t=e.parent.kind===169?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function WWe(e,t){if(e.kind===t.kind)switch(e.kind){case 344:{let r=e,i=t;return Re(r.name)&&Re(i.name)&&r.name.escapedText===i.name.escapedText?D.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 345:return D.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 347:return D.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function ate(e,t){return xo(e.text,f1(e,t,{leadingTriviaOption:1}),!1,!0)}function zWe(e,t,r,i){let o=ate(e,i);if(r===void 0||Bf(mx(e,t,{}),o,e))return o;let s=el(i.getStart(e),e);if(NG(t,s)){let l=el(t.getStart(e),e);if(NG(r,l)){let f=xo(e.text,s.getEnd(),!0,!0);if(Bf(l.getStart(e),s.getStart(e),e))return Wl(e.text.charCodeAt(f-1))?f-1:f;if(Wl(e.text.charCodeAt(f)))return f}}return o}function JWe(e,t){let r=Yo(e,18,t),i=Yo(e,19,t);return[r?.end,i?.end]}function PG(e){return rs(e)?e.properties:e.members}function KWe(e,t,r,i){return UP.newFileChangesWorker(void 0,t,e,r,i)}function ote(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(wl(i))}`}return e}function qWe(e){return xo(e,0)===e.length}function MG(e){let t=xn(e,MG,RSe,XWe,MG),r=ws(t)?t:Object.create(t);return om(r,ISe(e),LSe(e)),r}function XWe(e,t,r,i,o){let s=On(e,t,r,i,o);if(!s)return s;L.assert(e);let l=s===e?D.createNodeArray(s.slice(0)):s;return om(l,ISe(e),LSe(e)),l}function DSe(e){let t=0,r=SR(e),i=X=>{X&&nte(X,t)},o=X=>{X&&rte(X,t)},s=X=>{X&&nte(X,t)},l=X=>{X&&rte(X,t)},f=X=>{X&&nte(X,t)},d=X=>{X&&rte(X,t)};function g(X,Ve){if(Ve||!qWe(X)){t=r.getTextPos();let we=0;for(;xh(X.charCodeAt(X.length-we-1));)we++;t-=we}}function m(X){r.write(X),g(X,!1)}function v(X){r.writeComment(X)}function S(X){r.writeKeyword(X),g(X,!1)}function x(X){r.writeOperator(X),g(X,!1)}function A(X){r.writePunctuation(X),g(X,!1)}function w(X){r.writeTrailingSemicolon(X),g(X,!1)}function C(X){r.writeParameter(X),g(X,!1)}function P(X){r.writeProperty(X),g(X,!1)}function F(X){r.writeSpace(X),g(X,!1)}function B(X){r.writeStringLiteral(X),g(X,!1)}function q(X,Ve){r.writeSymbol(X,Ve),g(X,!1)}function W(X){r.writeLine(X)}function Y(){r.increaseIndent()}function R(){r.decreaseIndent()}function ie(){return r.getText()}function $(X){r.rawWrite(X),g(X,!1)}function fe(X){r.writeLiteral(X),g(X,!0)}function Z(){return r.getTextPos()}function U(){return r.getLine()}function re(){return r.getColumn()}function le(){return r.getIndent()}function _e(){return r.isAtStartOfLine()}function ge(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:f,onAfterEmitToken:d,write:m,writeComment:v,writeKeyword:S,writeOperator:x,writePunctuation:A,writeTrailingSemicolon:w,writeParameter:C,writeProperty:P,writeSpace:F,writeStringLiteral:B,writeSymbol:q,writeLine:W,increaseIndent:Y,decreaseIndent:R,getText:ie,rawWrite:$,writeLiteral:fe,getTextPos:Z,getLine:U,getColumn:re,getIndent:le,isAtStartOfLine:_e,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:ge}}function YWe(e){let t;for(let g of e.statements)if(B_(g))t=g;else break;let r=0,i=e.text;if(t)return r=t.end,d(),r;let o=K8(i);o!==void 0&&(r=o.length,d());let s=Nm(i,r);if(!s)return r;let l,f;for(let g of s){if(g.kind===3){if(y6(i,g.pos)){l={range:g,pinnedOrTripleSlash:!0};continue}}else if(iH(i,g.pos,g.end)){l={range:g,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(g.pos).line,v=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=v+2)break}if(e.statements.length){f===void 0&&(f=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(g.end).line;if(f<m+2)break}l={range:g,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,d()),r;function d(){if(r<i.length){let g=i.charCodeAt(r);Wl(g)&&(r++,r<i.length&&g===13&&i.charCodeAt(r)===10&&r++)}}}function wSe(e,t){return!Kg(e,t)&&!n1(e,t)&&!qX(e,t)&&!Dhe(e,t)}function $We(e,t){return($d(e)||Na(e))&&s6(t)&&t.name.kind===164||Nw(e)&&Nw(t)}function Zm(e,t,r,i={leadingTriviaOption:1}){let o=f1(t,r,i),s=mx(t,r,i);e.deleteRange(t,{pos:o,end:s})}function Gk(e,t,r,i){let o=L.checkDefined(tl.SmartIndenter.getContainingList(i,r)),s=DA(o,i);if(L.assert(s!==-1),o.length===1){Zm(e,r,i);return}L.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:ate(r,i),end:s===o.length-1?mx(r,i,{}):zWe(r,i,o[s-1],o[s+1])})}var ste,cte,iC,FG,UP,RSe,lte,QWe=gt({"src/services/textChanges.ts"(){"use strict";Fr(),ste=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(ste||{}),cte=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(cte||{}),iC={leadingTriviaOption:0,trailingTriviaOption:0},FG=class{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(e){return new FG(bb(e.host,e.formatContext.options),e.formatContext)}static with(e,t){let r=FG.fromContext(e);return t(r),r.getChanges()}pushRaw(e,t){L.assertEqual(e.fileName,t.fileName);for(let r of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:r.newText,range:y7(r.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,r={leadingTriviaOption:1}){this.deleteRange(e,Fk(e,t,t,r))}deleteNodes(e,t,r={leadingTriviaOption:1},i){for(let o of t){let s=f1(e,o,r,i),l=mx(e,o,r);this.deleteRange(e,{pos:s,end:l}),i=!!ite(e,o,r)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:xo(e.text,t.end,!0)})}deleteNodeRange(e,t,r,i={leadingTriviaOption:1}){let o=f1(e,t,i),s=mx(e,r,i);this.deleteRange(e,{pos:o,end:s})}deleteNodeRangeExcludingEnd(e,t,r,i={leadingTriviaOption:1}){let o=f1(e,t,i),s=r===void 0?e.text.length:f1(e,r,i);this.deleteRange(e,{pos:o,end:s})}replaceRange(e,t,r,i={}){this.changes.push({kind:1,sourceFile:e,range:t,options:i,node:r})}replaceNode(e,t,r,i=iC){this.replaceRange(e,Fk(e,t,t,i),r,i)}replaceNodeRange(e,t,r,i,o=iC){this.replaceRange(e,Fk(e,t,r,o),i,o)}replaceRangeWithNodes(e,t,r,i={}){this.changes.push({kind:2,sourceFile:e,range:t,options:i,nodes:r})}replaceNodeWithNodes(e,t,r,i=iC){this.replaceRangeWithNodes(e,Fk(e,t,t,i),r,i)}replaceNodeWithText(e,t,r){this.replaceRangeWithText(e,Fk(e,t,t,iC),r)}replaceNodeRangeWithNodes(e,t,r,i,o=iC){this.replaceRangeWithNodes(e,Fk(e,t,r,o),i,o)}nodeHasTrailingComment(e,t,r=iC){return!!ite(e,t,r)}nextCommaToken(e,t){let r=t1(t,t.parent,e);return r&&r.kind===27?r:void 0}replacePropertyAssignment(e,t,r){let i=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:i})}insertNodeAt(e,t,r,i={}){this.replaceRange(e,Gf(t),r,i)}insertNodesAt(e,t,r,i={}){this.replaceRangeWithNodes(e,Gf(t),r,i)}insertNodeAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertNodesAtTopOfFile(e,t,r){this.insertAtTopOfFile(e,t,r)}insertAtTopOfFile(e,t,r){let i=YWe(e),o={prefix:i===0?void 0:this.newLineCharacter,suffix:(Wl(e.text.charCodeAt(i))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")};ba(t)?this.insertNodesAt(e,i,t,o):this.insertNodeAt(e,i,t,o)}insertFirstParameter(e,t,r){let i=Sl(t);i?this.insertNodeBefore(e,i,r):this.insertNodeAt(e,t.pos,r)}insertNodeBefore(e,t,r,i=!1,o={}){this.insertNodeAt(e,f1(e,t,o),r,this.getOptionsForInsertNodeBefore(t,r,i))}insertModifierAt(e,t,r,i={}){this.insertNodeAt(e,t,D.createToken(r),i)}insertModifierBefore(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,r,i){let o=Ky(t,e),s=nge(e.text,o),l=wSe(e,s),f=nk(e,l?s:r),d=e.text.slice(o,s),g=`${l?"":this.newLineCharacter}//${i}${this.newLineCharacter}${d}`;this.insertText(e,f.getStart(e),g)}insertJsdocCommentBefore(e,t,r){let i=t.getStart(e);if(t.jsDoc)for(let l of t.jsDoc)this.deleteRange(e,{pos:Wf(l.getStart(e),e),end:mx(e,l,{})});let o=hY(e.text,i-1),s=e.text.slice(o,i);this.insertNodeAt(e,i,r,{suffix:this.newLineCharacter+s})}createJSDocText(e,t){let r=Uo(t.jsDoc,o=>Ta(o.comment)?D.createJSDocText(o.comment):o.comment),i=Wp(t.jsDoc);return i&&Bf(i.pos,i.end,e)&&Fn(r)===0?void 0:D.createNodeArray(DU(r,D.createJSDocText(`
| `)))}replaceJSDocComment(e,t,r){this.insertJsdocCommentBefore(e,HWe(t),D.createJSDocComment(this.createJSDocText(e,t),D.createNodeArray(r)))}addJSDocTags(e,t,r){let i=BD(t.jsDoc,s=>s.tags),o=r.filter(s=>!i.some((l,f)=>{let d=WWe(l,s);return d&&(i[f]=d),!!d}));this.replaceJSDocComment(e,t,[...i,...o])}filterJSDocTags(e,t,r){this.replaceJSDocComment(e,t,Pr(BD(t.jsDoc,i=>i.tags),r))}replaceRangeWithText(e,t,r){this.changes.push({kind:3,sourceFile:e,range:t,text:r})}insertText(e,t,r){this.replaceRangeWithText(e,Gf(t),r)}tryInsertTypeAnnotation(e,t,r){var i;let o;if(Ia(t)){if(o=Yo(t,21,e),!o){if(!xs(t))return!1;o=Vo(t.parameters)}}else o=(i=t.kind===257?t.exclamationToken:t.questionToken)!=null?i:t.name;return this.insertNodeAt(e,o.end,r,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,r){let i=Yo(t,20,e).getStart(e)+1,o=t.parameters.length?", ":"";this.insertNodeAt(e,i,r,{prefix:"this: ",suffix:o})}insertTypeParameters(e,t,r){let i=(Yo(t,20,e)||Vo(t.parameters)).getStart(e);this.insertNodesAt(e,i,r,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,r){return ca(e)||_l(e)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:wi(e)?{suffix:", "}:ha(e)?ha(t)?{suffix:", "}:{}:yo(e)&&gl(e.parent)||jg(e)?{suffix:", "}:$u(e)?{suffix:","+(r?this.newLineCharacter:" ")}:L.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,r){let i=Sl(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[r,...t.body.statements]):this.insertNodeBefore(e,i,r)}insertNodeAtConstructorStartAfterSuperCall(e,t,r){let i=wr(t.body.statements,o=>Ol(o)&&OA(o.expression));!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}insertNodeAtConstructorEnd(e,t,r){let i=Os(t.body.statements);!i||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,r]):this.insertNodeAfter(e,i,r)}replaceConstructorBody(e,t,r){this.replaceNode(e,t.body,D.createBlock(r,!0))}insertNodeAtEndOfScope(e,t,r){let i=f1(e,t.getLastToken(),{});this.insertNodeAt(e,i,r,{prefix:Wl(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtObjectStart(e,t,r){this.insertNodeAtStartWorker(e,t,r)}insertNodeAtStartWorker(e,t,r){var i;let o=(i=this.guessIndentationFromExistingMembers(e,t))!=null?i:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,PG(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,o))}guessIndentationFromExistingMembers(e,t){let r,i=t;for(let o of PG(t)){if(a4(i,o,e))return;let s=o.getStart(e),l=tl.SmartIndenter.findFirstNonWhitespaceColumn(Wf(s,e),s,e,this.formatContext.options);if(r===void 0)r=l;else if(l!==r)return;i=o}return r}computeIndentationForNewMember(e,t){var r;let i=t.getStart(e);return tl.SmartIndenter.findFirstNonWhitespaceColumn(Wf(i,e),i,e,this.formatContext.options)+((r=this.formatContext.options.indentSize)!=null?r:4)}getInsertNodeAtStartInsertOptions(e,t,r){let o=PG(t).length===0,s=V_(this.classesWithNodesInsertedAtStart,zo(t),{node:t,sourceFile:e}),l=rs(t)&&(!Mf(e)||!o),f=rs(t)&&Mf(e)&&o&&!s;return{indentation:r,prefix:(f?",":"")+this.newLineCharacter,suffix:l?",":ku(t)&&o?";":""}}insertNodeAfterComma(e,t,r){let i=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,r){let i=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})}insertNodesAfter(e,t,r){let i=this.insertNodeAfterWorker(e,t,Vo(r));this.insertNodesAt(e,i,r,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,r){return $We(t,r)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,Gf(t.end),D.createToken(26)),mx(e,t,{})}getInsertNodeAfterOptions(e,t){let r=this.getInsertNodeAfterOptionsWorker(t);return{...r,prefix:t.end===e.end&&ca(t)?r.prefix?`
| ${r.prefix}`:`
| `:r.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 260:case 264:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 257:case 10:case 79:return{prefix:", "};case 299:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 166:return{};default:return L.assert(ca(e)||s6(e)),{suffix:this.newLineCharacter}}}insertName(e,t,r){if(L.assert(!t.name),t.kind===216){let i=Yo(t,38,e),o=Yo(t,20,e);o?(this.insertNodesAt(e,o.getStart(e),[D.createToken(98),D.createIdentifier(r)],{joiner:" "}),Zm(this,e,i)):(this.insertText(e,Vo(t.parameters).getStart(e),`function ${r}(`),this.replaceRange(e,i,D.createToken(21))),t.body.kind!==238&&(this.insertNodesAt(e,t.body.getStart(e),[D.createToken(18),D.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[D.createToken(26),D.createToken(19)],{joiner:" "}))}else{let i=Yo(t,t.kind===215?98:84,e).end;this.insertNodeAt(e,i,D.createIdentifier(r),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,r,i){let o=r.elements[i-1];o?this.insertNodeInListAfter(e,o,t):this.insertNodeBefore(e,r.elements[0],t,!Bf(r.elements[0].getStart(),r.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,r,i=tl.SmartIndenter.getContainingList(t,e)){if(!i){L.fail("node is not a list element");return}let o=DA(i,t);if(o<0)return;let s=t.getEnd();if(o!==i.length-1){let l=Vi(e,t.end);if(l&&NG(t,l)){let f=i[o+1],d=kSe(e.text,f.getFullStart()),g=`${Xa(l.kind)}${e.text.substring(l.end,d)}`;this.insertNodesAt(e,d,[r],{suffix:g})}}else{let l=t.getStart(e),f=Wf(l,e),d,g=!1;if(i.length===1)d=27;else{let m=el(t.pos,e);d=NG(t,m)?m.kind:27,g=Wf(i[o-1].getStart(e),e)!==f}if(VWe(e.text,t.end)&&(g=!0),g){this.replaceRange(e,Gf(s),D.createToken(d));let m=tl.SmartIndenter.findFirstNonWhitespaceColumn(f,l,e,this.formatContext.options),v=xo(e.text,s,!0,!1);for(;v!==s&&Wl(e.text.charCodeAt(v-1));)v--;this.replaceRange(e,Gf(v),r,{indentation:m,prefix:this.newLineCharacter})}else this.replaceRange(e,Gf(s),r,{prefix:`${Xa(d)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,MW(t),D.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{let[r,i]=JWe(e,t);if(r!==void 0&&i!==void 0){let o=PG(e).length===0,s=Bf(r,i,t);o&&s&&r!==i-1&&this.deleteRange(t,Gf(r,i-1)),s&&this.insertText(t,i-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let e=new Set;for(let{sourceFile:t,node:r}of this.deletedNodes)this.deletedNodes.some(i=>i.sourceFile===t&&bhe(i.node,r))||(ba(r)?this.deleteRange(t,FW(t,r)):lte.deleteDeclaration(this,e,t,r));e.forEach(t=>{let r=t.getSourceFile(),i=tl.SmartIndenter.getContainingList(t,r);if(t!==To(i))return;let o=s8(i,s=>!e.has(s),i.length-2);o!==-1&&this.deleteRange(r,{pos:i[o].end,end:ate(r,i[o+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let t=UP.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);for(let{oldFile:r,fileName:i,statements:o}of this.newFiles)t.push(UP.newFileChanges(r,i,o,this.newLineCharacter,this.formatContext));return t}createNewFile(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})}},(e=>{function t(f,d,g,m){return Zi(YC(f,v=>v.sourceFile.path),v=>{let S=v[0].sourceFile,x=Ag(v,(w,C)=>w.range.pos-C.range.pos||w.range.end-C.range.end);for(let w=0;w<x.length-1;w++)L.assert(x[w].range.end<=x[w+1].range.pos,"Changes overlap",()=>`${JSON.stringify(x[w].range)} and ${JSON.stringify(x[w+1].range)}`);let A=Zi(x,w=>{let C=lv(w.range),P=o(w,S,d,g,m);if(!(C.length===P.length&&yge(S.text,P,C.start)))return GN(C,P)});return A.length>0?{fileName:S.fileName,textChanges:A}:void 0})}e.getTextChangesFromChanges=t;function r(f,d,g,m,v){let S=i(f,RW(d),g,m,v);return{fileName:d,textChanges:[GN(il(0,0),S)],isNewFile:!0}}e.newFileChanges=r;function i(f,d,g,m,v){let S=g.map(w=>w===4?"":l(w,f,m).text).join(m),x=DO("any file name",S,99,!0,d),A=tl.formatDocument(x,v);return ote(S,A)+m}e.newFileChangesWorker=i;function o(f,d,g,m,v){var S;if(f.kind===0)return"";if(f.kind===3)return f.text;let{options:x={},range:{pos:A}}=f,w=F=>s(F,d,A,x,g,m,v),C=f.kind===2?f.nodes.map(F=>pA(w(F),g)).join(((S=f.options)==null?void 0:S.joiner)||g):w(f.node),P=x.indentation!==void 0||Wf(A,d)===A?C:C.replace(/^\s+/,"");return(x.prefix||"")+P+(!x.suffix||Oc(P,x.suffix)?"":x.suffix)}function s(f,d,g,{indentation:m,prefix:v,delta:S},x,A,w){let{node:C,text:P}=l(f,d,x);w&&w(C,P);let F=z7(A,d),B=m!==void 0?m:tl.SmartIndenter.getIndentation(g,d,F,v===x||Wf(g,d)===g);S===void 0&&(S=tl.SmartIndenter.shouldIndentChildNode(F,f)&&F.indentSize||0);let q={text:P,getLineAndCharacterOfPosition(Y){return Gs(this,Y)}},W=tl.formatNodeGivenIndentation(C,q,d.languageVariant,B,S,{...A,options:F});return ote(P,W)}function l(f,d,g){let m=DSe(g),v=XN(g);return nE({newLine:v,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,f,d,m),{text:m.getText(),node:MG(f)}}e.getNonformattedText=l})(UP||(UP={})),RSe={...Bh,factory:YR(Bh.factory.flags|1,Bh.factory.baseFactory)},(e=>{function t(s,l,f,d){switch(d.kind){case 166:{let x=d.parent;xs(x)&&x.parameters.length===1&&!Yo(x,20,f)?s.replaceNodeWithText(f,d,"()"):Gk(s,l,f,d);break}case 269:case 268:let g=f.imports.length&&d===Vo(f.imports).parent||d===wr(f.statements,yT);Zm(s,f,d,{leadingTriviaOption:g?0:Kd(d)?2:3});break;case 205:let m=d.parent;m.kind===204&&d!==To(m.elements)?Zm(s,f,d):Gk(s,l,f,d);break;case 257:o(s,l,f,d);break;case 165:Gk(s,l,f,d);break;case 273:let S=d.parent;S.elements.length===1?i(s,f,S):Gk(s,l,f,d);break;case 271:i(s,f,d);break;case 26:Zm(s,f,d,{trailingTriviaOption:0});break;case 98:Zm(s,f,d,{leadingTriviaOption:0});break;case 260:case 259:Zm(s,f,d,{leadingTriviaOption:Kd(d)?2:3});break;default:d.parent?lm(d.parent)&&d.parent.name===d?r(s,f,d.parent):Pa(d.parent)&&ya(d.parent.arguments,d)?Gk(s,l,f,d):Zm(s,f,d):Zm(s,f,d)}}e.deleteDeclaration=t;function r(s,l,f){if(!f.namedBindings)Zm(s,l,f.parent);else{let d=f.name.getStart(l),g=Vi(l,f.name.end);if(g&&g.kind===27){let m=xo(l.text,g.end,!1,!0);s.deleteRange(l,{pos:d,end:m})}else Zm(s,l,f.name)}}function i(s,l,f){if(f.parent.name){let d=L.checkDefined(Vi(l,f.pos-1));s.deleteRange(l,{pos:d.getStart(l),end:f.end})}else{let d=cb(f,269);Zm(s,l,d)}}function o(s,l,f,d){let{parent:g}=d;if(g.kind===295){s.deleteNodeRange(f,Yo(g,20,f),Yo(g,21,f));return}if(g.declarations.length!==1){Gk(s,l,f,d);return}let m=g.parent;switch(m.kind){case 247:case 246:s.replaceNode(f,d,D.createObjectLiteralExpression());break;case 245:Zm(s,f,g);break;case 240:Zm(s,f,m,{leadingTriviaOption:Kd(m)?2:3});break;default:L.assertNever(m)}}})(lte||(lte={}))}}),nr={};Mo(nr,{ChangeTracker:()=>FG,LeadingTriviaOption:()=>ste,TrailingTriviaOption:()=>cte,applyChanges:()=>ote,assignPositionsToNode:()=>MG,createWriter:()=>DSe,deleteNode:()=>Zm,getNewFileText:()=>KWe,isThisTypeAnnotatable:()=>jWe,isValidLocationToAddComment:()=>wSe});var ZWe=gt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";QWe()}}),ute,dte,eze=gt({"src/services/formatting/formattingContext.ts"(){"use strict";Fr(),ute=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(ute||{}),dte=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=L.checkDefined(e),this.currentTokenParent=L.checkDefined(t),this.nextTokenSpan=L.checkDefined(r),this.nextTokenParent=L.checkDefined(i),this.contextNode=L.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=Yo(e,18,this.sourceFile),r=Yo(e,19,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function fte(e,t,r,i,o){let s=t===1?NSe:OSe;s.setText(e),s.setTextPos(r);let l=!0,f,d,g,m,v,S=o({advance:x,readTokenInfo:W,readEOFTokenRange:R,isOnToken:ie,isOnEOF:$,getCurrentLeadingTrivia:()=>f,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:Z,skipToStartOf:U,getStartPos:()=>{var re;return(re=v?.token.pos)!=null?re:s.getTokenPos()}});return v=void 0,s.setText(void 0),S;function x(){v=void 0,s.getStartPos()!==r?l=!!d&&To(d).kind===4:s.scan(),f=void 0,d=void 0;let le=s.getStartPos();for(;le<i;){let _e=s.getToken();if(!KA(_e))break;s.scan();let ge={pos:le,end:s.getStartPos(),kind:_e};le=s.getStartPos(),f=Sn(f,ge)}g=s.getStartPos()}function A(re){switch(re.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function w(re){if(re.parent)switch(re.parent.kind){case 288:case 283:case 284:case 282:return Xu(re.kind)||re.kind===79}return!1}function C(re){return CS(re)||Hg(re)&&v?.token.kind===11}function P(re){return re.kind===13}function F(re){return re.kind===16||re.kind===17}function B(re){return re.parent&&Sp(re.parent)&&re.parent.initializer===re}function q(re){return re===43||re===68}function W(re){L.assert(ie());let le=A(re)?1:P(re)?2:F(re)?3:w(re)?4:C(re)?5:B(re)?6:0;if(v&&le===m)return fe(v,re);s.getStartPos()!==g&&(L.assert(v!==void 0),s.setTextPos(g),s.scan());let _e=Y(re,le),ge=VG(s.getStartPos(),s.getTextPos(),_e);for(d&&(d=void 0);s.getStartPos()<i&&(_e=s.scan(),!!KA(_e));){let X=VG(s.getStartPos(),s.getTextPos(),_e);if(d||(d=[]),d.push(X),_e===4){s.scan();break}}return v={leadingTrivia:f,trailingTrivia:d,token:ge},fe(v,re)}function Y(re,le){let _e=s.getToken();switch(m=0,le){case 1:if(_e===31){m=1;let ge=s.reScanGreaterToken();return L.assert(re.kind===ge),ge}break;case 2:if(q(_e)){m=2;let ge=s.reScanSlashToken();return L.assert(re.kind===ge),ge}break;case 3:if(_e===19)return m=3,s.reScanTemplateToken(!1);break;case 4:return m=4,s.scanJsxIdentifier();case 5:return m=5,s.reScanJsxToken(!1);case 6:return m=6,s.reScanJsxAttributeValue();case 0:break;default:L.assertNever(le)}return _e}function R(){return L.assert($()),VG(s.getStartPos(),s.getTextPos(),1)}function ie(){let re=v?v.token.kind:s.getToken();return re!==1&&!KA(re)}function $(){return(v?v.token.kind:s.getToken())===1}function fe(re,le){return Z1(le)&&re.token.kind!==le.kind&&(re.token.kind=le.kind),re}function Z(re){s.setTextPos(re.end),g=s.getStartPos(),m=void 0,v=void 0,l=!1,f=void 0,d=void 0}function U(re){s.setTextPos(re.pos),g=s.getStartPos(),m=void 0,v=void 0,l=!1,f=void 0,d=void 0}}var OSe,NSe,tze=gt({"src/services/formatting/formattingScanner.ts"(){"use strict";Fr(),Vk(),OSe=kg(99,!1,0),NSe=kg(99,!1,1)}}),VP,_te,pte,nze=gt({"src/services/formatting/rule.ts"(){"use strict";Fr(),VP=Je,_te=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(_te||{}),pte=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(pte||{})}});function PSe(){let e=[];for(let Y=0;Y<=162;Y++)Y!==1&&e.push(Y);function t(...Y){return{tokens:e.filter(R=>!Y.some(ie=>ie===R)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=aC([...e,3]),o=aC([...e,1]),s=FSe(81,162),l=FSe(29,78),f=[101,102,162,128,140,150],d=[45,46,54,53],g=[8,9,79,20,22,18,108,103],m=[79,20,108,103],v=[79,21,23,103],S=[79,20,108,103],x=[79,21,23,103],A=[2,3],w=[79,...K7],C=i,P=aC([79,3,84,93,100]),F=aC([21,3,90,111,96,91]),B=[Lr("IgnoreBeforeComment",r,A,VP,1),Lr("IgnoreAfterLineComment",2,r,VP,1),Lr("NotSpaceBeforeColon",r,58,[mi,jP,USe],16),Lr("SpaceAfterColon",58,r,[mi,jP],4),Lr("NoSpaceBeforeQuestionMark",r,57,[mi,jP,USe],16),Lr("SpaceAfterQuestionMarkInConditionalOperator",57,r,[mi,ize],4),Lr("NoSpaceAfterQuestionMark",57,r,[mi],16),Lr("NoSpaceBeforeDot",r,[24,28],[mi,kze],16),Lr("NoSpaceAfterDot",[24,28],r,[mi],16),Lr("NoSpaceBetweenImportParenInImportType",100,20,[mi,mze],16),Lr("NoSpaceAfterUnaryPrefixOperator",d,g,[mi,jP],16),Lr("NoSpaceAfterUnaryPreincrementOperator",45,m,[mi],16),Lr("NoSpaceAfterUnaryPredecrementOperator",46,S,[mi],16),Lr("NoSpaceBeforeUnaryPostincrementOperator",v,45,[mi,txe],16),Lr("NoSpaceBeforeUnaryPostdecrementOperator",x,46,[mi,txe],16),Lr("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[mi,Qg],4),Lr("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[mi,Qg],4),Lr("SpaceAfterAddWhenFollowedByPreincrement",39,45,[mi,Qg],4),Lr("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[mi,Qg],4),Lr("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[mi,Qg],4),Lr("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[mi,Qg],4),Lr("NoSpaceAfterCloseBrace",19,[27,26],[mi],16),Lr("NewLineBeforeCloseBraceInBlockContext",i,19,[jSe],8),Lr("SpaceAfterCloseBrace",19,t(21),[mi,sze],4),Lr("SpaceBetweenCloseBraceAndElse",19,91,[mi],4),Lr("SpaceBetweenCloseBraceAndWhile",19,115,[mi],4),Lr("NoSpaceBetweenEmptyBraceBrackets",18,19,[mi,qSe],16),Lr("SpaceAfterConditionalClosingParen",21,22,[HP],4),Lr("NoSpaceBetweenFunctionKeywordAndStar",98,41,[zSe],16),Lr("SpaceAfterStarInGeneratorDeclaration",41,79,[zSe],4),Lr("SpaceAfterFunctionInFuncDecl",98,r,[cE],4),Lr("NewLineAfterOpenBraceInBlockContext",18,r,[jSe],8),Lr("SpaceAfterGetSetInMember",[137,151],79,[cE],4),Lr("NoSpaceBetweenYieldKeywordAndStar",125,41,[mi,exe],16),Lr("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],r,[mi,exe],4),Lr("NoSpaceBetweenReturnAndSemicolon",105,26,[mi],16),Lr("SpaceAfterCertainKeywords",[113,109,103,89,105,112,133],r,[mi],4),Lr("SpaceAfterLetConstInVariableDeclaration",[119,85],r,[mi,vze],4),Lr("NoSpaceBeforeOpenParenInFuncCall",r,20,[mi,uze,dze],16),Lr("SpaceBeforeBinaryKeywordOperator",r,f,[mi,Qg],4),Lr("SpaceAfterBinaryKeywordOperator",f,r,[mi,Qg],4),Lr("SpaceAfterVoidOperator",114,r,[mi,xze],4),Lr("SpaceBetweenAsyncAndOpenParen",132,20,[pze,mi],4),Lr("SpaceBetweenAsyncAndFunctionKeyword",132,[98,79],[mi],4),Lr("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[mi],16),Lr("SpaceBeforeJsxAttribute",r,79,[hze,mi],4),Lr("SpaceBeforeSlashInJsxOpeningElement",r,43,[$Se,mi],4),Lr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[$Se,mi],16),Lr("NoSpaceBeforeEqualInJsxAttribute",r,63,[YSe,mi],16),Lr("NoSpaceAfterEqualInJsxAttribute",63,r,[YSe,mi],16),Lr("NoSpaceAfterModuleImport",[142,147],20,[mi],16),Lr("SpaceAfterCertainTypeScriptKeywords",[126,127,84,136,88,92,93,94,137,117,100,118,142,143,121,123,122,146,151,124,154,158,141,138],r,[mi],4),Lr("SpaceBeforeCertainTypeScriptKeywords",r,[94,117,158],[mi],4),Lr("SpaceAfterModuleName",10,18,[bze],4),Lr("SpaceBeforeArrow",r,38,[mi],4),Lr("SpaceAfterArrow",38,r,[mi],4),Lr("NoSpaceAfterEllipsis",25,79,[mi],16),Lr("NoSpaceAfterOptionalParameters",57,[21,27],[mi,jP],16),Lr("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[mi,Eze],16),Lr("NoSpaceBeforeOpenAngularBracket",w,29,[mi,WP],16),Lr("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[mi,WP],16),Lr("NoSpaceAfterOpenAngularBracket",29,r,[mi,WP],16),Lr("NoSpaceBeforeCloseAngularBracket",r,31,[mi,WP],16),Lr("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[mi,WP,oze,Sze],16),Lr("SpaceBeforeAt",[21,79],59,[mi],4),Lr("NoSpaceAfterAt",59,r,[mi],16),Lr("SpaceAfterDecorator",r,[126,79,93,88,84,124,123,121,122,137,151,22,41],[yze],4),Lr("NoSpaceBeforeNonNullAssertionOperator",r,53,[mi,Aze],16),Lr("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[mi,Tze],16),Lr("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[mi],4)],q=[Lr("SpaceAfterConstructor",135,20,[Nd("insertSpaceAfterConstructor"),mi],4),Lr("NoSpaceAfterConstructor",135,20,[q_("insertSpaceAfterConstructor"),mi],16),Lr("SpaceAfterComma",27,r,[Nd("insertSpaceAfterCommaDelimiter"),mi,Ete,fze,_ze],4),Lr("NoSpaceAfterComma",27,r,[q_("insertSpaceAfterCommaDelimiter"),mi,Ete],16),Lr("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[Nd("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),cE],4),Lr("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[q_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),cE],16),Lr("SpaceAfterKeywordInControl",s,20,[Nd("insertSpaceAfterKeywordsInControlFlowStatements"),HP],4),Lr("NoSpaceAfterKeywordInControl",s,20,[q_("insertSpaceAfterKeywordsInControlFlowStatements"),HP],16),Lr("SpaceAfterOpenParen",20,r,[Nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),mi],4),Lr("SpaceBeforeCloseParen",r,21,[Nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),mi],4),Lr("SpaceBetweenOpenParens",20,20,[Nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),mi],4),Lr("NoSpaceBetweenParens",20,21,[mi],16),Lr("NoSpaceAfterOpenParen",20,r,[q_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),mi],16),Lr("NoSpaceBeforeCloseParen",r,21,[q_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),mi],16),Lr("SpaceAfterOpenBracket",22,r,[Nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),mi],4),Lr("SpaceBeforeCloseBracket",r,23,[Nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),mi],4),Lr("NoSpaceBetweenBrackets",22,23,[mi],16),Lr("NoSpaceAfterOpenBracket",22,r,[q_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),mi],16),Lr("NoSpaceBeforeCloseBracket",r,23,[q_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),mi],16),Lr("SpaceAfterOpenBrace",18,r,[BSe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),VSe],4),Lr("SpaceBeforeCloseBrace",r,19,[BSe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),VSe],4),Lr("NoSpaceBetweenEmptyBraceBrackets",18,19,[mi,qSe],16),Lr("NoSpaceAfterOpenBrace",18,r,[mte("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),mi],16),Lr("NoSpaceBeforeCloseBrace",r,19,[mte("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),mi],16),Lr("SpaceBetweenEmptyBraceBrackets",18,19,[Nd("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Lr("NoSpaceBetweenEmptyBraceBrackets",18,19,[mte("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),mi],16),Lr("SpaceAfterTemplateHeadAndMiddle",[15,16],r,[Nd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),XSe],4,1),Lr("SpaceBeforeTemplateMiddleAndTail",r,[16,17],[Nd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),mi],4),Lr("NoSpaceAfterTemplateHeadAndMiddle",[15,16],r,[q_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),XSe],16,1),Lr("NoSpaceBeforeTemplateMiddleAndTail",r,[16,17],[q_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),mi],16),Lr("SpaceAfterOpenBraceInJsxExpression",18,r,[Nd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),mi,BG],4),Lr("SpaceBeforeCloseBraceInJsxExpression",r,19,[Nd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),mi,BG],4),Lr("NoSpaceAfterOpenBraceInJsxExpression",18,r,[q_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),mi,BG],16),Lr("NoSpaceBeforeCloseBraceInJsxExpression",r,19,[q_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),mi,BG],16),Lr("SpaceAfterSemicolonInFor",26,r,[Nd("insertSpaceAfterSemicolonInForStatements"),mi,gte],4),Lr("NoSpaceAfterSemicolonInFor",26,r,[q_("insertSpaceAfterSemicolonInForStatements"),mi,gte],16),Lr("SpaceBeforeBinaryOperator",r,l,[Nd("insertSpaceBeforeAndAfterBinaryOperators"),mi,Qg],4),Lr("SpaceAfterBinaryOperator",l,r,[Nd("insertSpaceBeforeAndAfterBinaryOperators"),mi,Qg],4),Lr("NoSpaceBeforeBinaryOperator",r,l,[q_("insertSpaceBeforeAndAfterBinaryOperators"),mi,Qg],16),Lr("NoSpaceAfterBinaryOperator",l,r,[q_("insertSpaceBeforeAndAfterBinaryOperators"),mi,Qg],16),Lr("SpaceBeforeOpenParenInFuncDecl",r,20,[Nd("insertSpaceBeforeFunctionParenthesis"),mi,cE],4),Lr("NoSpaceBeforeOpenParenInFuncDecl",r,20,[q_("insertSpaceBeforeFunctionParenthesis"),mi,cE],16),Lr("NewLineBeforeOpenBraceInControl",F,18,[Nd("placeOpenBraceOnNewLineForControlBlocks"),HP,bte],8,1),Lr("NewLineBeforeOpenBraceInFunction",C,18,[Nd("placeOpenBraceOnNewLineForFunctions"),cE,bte],8,1),Lr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",P,18,[Nd("placeOpenBraceOnNewLineForFunctions"),JSe,bte],8,1),Lr("SpaceAfterTypeAssertion",31,r,[Nd("insertSpaceAfterTypeAssertion"),mi,Ste],4),Lr("NoSpaceAfterTypeAssertion",31,r,[q_("insertSpaceAfterTypeAssertion"),mi,Ste],16),Lr("SpaceBeforeTypeAnnotation",r,[57,58],[Nd("insertSpaceBeforeTypeAnnotation"),mi,yte],4),Lr("NoSpaceBeforeTypeAnnotation",r,[57,58],[q_("insertSpaceBeforeTypeAnnotation"),mi,yte],16),Lr("NoOptionalSemicolon",26,o,[GSe("semicolons","remove"),Ize],32),Lr("OptionalSemicolon",r,o,[GSe("semicolons","insert"),Lze],64)],W=[Lr("NoSpaceBeforeSemicolon",r,26,[mi],16),Lr("SpaceBeforeOpenBraceInControl",F,18,[hte("placeOpenBraceOnNewLineForControlBlocks"),HP,Tte,vte],4,1),Lr("SpaceBeforeOpenBraceInFunction",C,18,[hte("placeOpenBraceOnNewLineForFunctions"),cE,GG,Tte,vte],4,1),Lr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",P,18,[hte("placeOpenBraceOnNewLineForFunctions"),JSe,Tte,vte],4,1),Lr("NoSpaceBeforeComma",r,27,[mi],16),Lr("NoSpaceBeforeOpenBracket",t(132,82),22,[mi],16),Lr("NoSpaceAfterCloseBracket",23,r,[mi,gze],16),Lr("SpaceAfterSemicolon",26,r,[mi],4),Lr("SpaceBetweenForAndAwaitKeyword",97,133,[mi],4),Lr("SpaceBetweenStatements",[21,90,91,82],r,[mi,Ete,rze],4),Lr("SpaceAfterTryCatchFinally",[111,83,96],18,[mi],4)];return[...B,...q,...W]}function Lr(e,t,r,i,o,s=0){return{leftTokenRange:MSe(t),rightTokenRange:MSe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function aC(e){return{tokens:e,isSpecific:!0}}function MSe(e){return typeof e=="number"?aC([e]):ba(e)?aC(e):e}function FSe(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)ya(r,o)||i.push(o);return aC(i)}function GSe(e,t){return r=>r.options&&r.options[e]===t}function Nd(e){return t=>t.options&&fs(t.options,e)&&!!t.options[e]}function mte(e){return t=>t.options&&fs(t.options,e)&&!t.options[e]}function q_(e){return t=>!t.options||!fs(t.options,e)||!t.options[e]}function hte(e){return t=>!t.options||!fs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function BSe(e){return t=>!t.options||!fs(t.options,e)||!!t.options[e]}function gte(e){return e.contextNode.kind===245}function rze(e){return!gte(e)}function Qg(e){switch(e.contextNode.kind){case 223:return e.contextNode.operatorToken.kind!==27;case 224:case 191:case 231:case 278:case 273:case 179:case 189:case 190:case 235:return!0;case 205:case 262:case 268:case 274:case 257:case 166:case 302:case 169:case 168:return e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 246:case 165:return e.currentTokenSpan.kind===101||e.nextTokenSpan.kind===101||e.currentTokenSpan.kind===63||e.nextTokenSpan.kind===63;case 247:return e.currentTokenSpan.kind===162||e.nextTokenSpan.kind===162}return!1}function jP(e){return!Qg(e)}function USe(e){return!yte(e)}function yte(e){let t=e.contextNode.kind;return t===169||t===168||t===166||t===257||nS(t)}function ize(e){return e.contextNode.kind===224||e.contextNode.kind===191}function vte(e){return e.TokensAreOnSameLine()||GG(e)}function VSe(e){return e.contextNode.kind===203||e.contextNode.kind===197||aze(e)}function bte(e){return GG(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function jSe(e){return HSe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function aze(e){return HSe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function HSe(e){return WSe(e.contextNode)}function GG(e){return WSe(e.nextTokenParent)}function WSe(e){if(KSe(e))return!0;switch(e.kind){case 238:case 266:case 207:case 265:return!0}return!1}function cE(e){switch(e.contextNode.kind){case 259:case 171:case 170:case 174:case 175:case 176:case 215:case 173:case 216:case 261:return!0}return!1}function oze(e){return!cE(e)}function zSe(e){return e.contextNode.kind===259||e.contextNode.kind===215}function JSe(e){return KSe(e.contextNode)}function KSe(e){switch(e.kind){case 260:case 228:case 261:case 263:case 184:case 264:case 275:case 276:case 269:case 272:return!0}return!1}function sze(e){switch(e.currentTokenParent.kind){case 260:case 264:case 263:case 295:case 265:case 252:return!0;case 238:{let t=e.currentTokenParent.parent;if(!t||t.kind!==216&&t.kind!==215)return!0}}return!1}function HP(e){switch(e.contextNode.kind){case 242:case 252:case 245:case 246:case 247:case 244:case 255:case 243:case 251:case 295:return!0;default:return!1}}function qSe(e){return e.contextNode.kind===207}function cze(e){return e.contextNode.kind===210}function lze(e){return e.contextNode.kind===211}function uze(e){return cze(e)||lze(e)}function dze(e){return e.currentTokenSpan.kind!==27}function fze(e){return e.nextTokenSpan.kind!==23}function _ze(e){return e.nextTokenSpan.kind!==21}function pze(e){return e.contextNode.kind===216}function mze(e){return e.contextNode.kind===202}function mi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==11}function XSe(e){return e.contextNode.kind!==11}function Ete(e){return e.contextNode.kind!==281&&e.contextNode.kind!==285}function BG(e){return e.contextNode.kind===291||e.contextNode.kind===290}function hze(e){return e.nextTokenParent.kind===288}function YSe(e){return e.contextNode.kind===288}function $Se(e){return e.contextNode.kind===282}function gze(e){return!cE(e)&&!GG(e)}function yze(e){return e.TokensAreOnSameLine()&&bf(e.contextNode)&&QSe(e.currentTokenParent)&&!QSe(e.nextTokenParent)}function QSe(e){for(;e&&ot(e);)e=e.parent;return e&&e.kind===167}function vze(e){return e.currentTokenParent.kind===258&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Tte(e){return e.formattingRequestKind!==2}function bze(e){return e.contextNode.kind===264}function Eze(e){return e.contextNode.kind===184}function Tze(e){return e.contextNode.kind===177}function ZSe(e,t){if(e.kind!==29&&e.kind!==31)return!1;switch(t.kind){case 180:case 213:case 262:case 260:case 228:case 261:case 259:case 215:case 216:case 171:case 170:case 176:case 177:case 210:case 211:case 230:return!0;default:return!1}}function WP(e){return ZSe(e.currentTokenSpan,e.currentTokenParent)||ZSe(e.nextTokenSpan,e.nextTokenParent)}function Ste(e){return e.contextNode.kind===213}function Sze(e){return!Ste(e)}function xze(e){return e.currentTokenSpan.kind===114&&e.currentTokenParent.kind===219}function exe(e){return e.contextNode.kind===226&&e.contextNode.expression!==void 0}function Aze(e){return e.contextNode.kind===232}function txe(e){return!Cze(e)}function Cze(e){switch(e.contextNode.kind){case 242:case 245:case 246:case 247:case 243:case 244:return!0;default:return!1}}function Ize(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(KA(t)){let s=e.nextTokenParent===e.currentTokenParent?t1(e.currentTokenParent,jn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===19||t===1:t===237||t===26?!1:e.contextNode.kind===261||e.contextNode.kind===262?!$d(e.currentTokenParent)||!!e.currentTokenParent.type||t!==20:Na(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==245&&e.currentTokenParent.kind!==239&&e.currentTokenParent.kind!==237&&t!==22&&t!==20&&t!==39&&t!==40&&t!==43&&t!==13&&t!==27&&t!==225&&t!==15&&t!==14&&t!==24}function Lze(e){return N7(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function kze(e){return!br(e.contextNode)||!Vf(e.contextNode.expression)||e.contextNode.expression.getText().indexOf(".")!==-1}var Dze=gt({"src/services/formatting/rules.ts"(){"use strict";Fr(),Vk()}});function wze(e,t){return{options:e,getRules:Rze(),host:t}}function Rze(){return xte===void 0&&(xte=Nze(PSe())),xte}function Oze(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function Nze(e){let t=Pze(e);return r=>{let i=t[nxe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let f=~Oze(s);l.action&f&&Ji(l.context,d=>d(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function Pze(e){let t=new Array(UG*UG),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let f=nxe(s,l),d=t[f];d===void 0&&(d=t[f]=[]),Mze(d,i.rule,o,r,f)}}return t}function nxe(e,t){return L.assert(e<=162&&t<=162,"Must compute formatting context from tokens"),e*UG+t}function Mze(e,t,r,i,o){let s=t.action&3?r?0:oC.StopRulesAny:t.context!==VP?r?oC.ContextRulesSpecific:oC.ContextRulesAny:r?oC.NoContextRulesSpecific:oC.NoContextRulesAny,l=i[o]||0;e.splice(Fze(l,s),0,t),i[o]=Gze(l,s)}function Fze(e,t){let r=0;for(let i=0;i<=t;i+=hx)r+=e&zP,e>>=hx;return r}function Gze(e,t){let r=(e>>t&zP)+1;return L.assert((r&zP)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(zP<<t)|r<<t}var xte,hx,zP,UG,oC,Bze=gt({"src/services/formatting/rulesMap.ts"(){"use strict";Fr(),Vk(),hx=5,zP=31,UG=163,oC=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=hx*1]="StopRulesAny",e[e.ContextRulesSpecific=hx*2]="ContextRulesSpecific",e[e.ContextRulesAny=hx*3]="ContextRulesAny",e[e.NoContextRulesSpecific=hx*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=hx*5]="NoContextRulesAny",e))(oC||{})}});function VG(e,t,r){let i={pos:e,end:t,kind:r};return L.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>L.formatSyntaxKind(r)}),i}function Uze(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=Bw(i,t);for(;Yp(t.text.charCodeAt(o));)o--;Wl(t.text.charCodeAt(o))&&o--;let s={pos:Ky(i-1,t),end:o+1};return JP(s,t,r,2)}function Vze(e,t,r){let i=Ate(e,26,t);return rxe(Cte(i),t,r,3)}function jze(e,t,r){let i=Ate(e,18,t);if(!i)return[];let o=i.parent,s=Cte(o),l={pos:Wf(s.getStart(t),t),end:e};return JP(l,t,r,4)}function Hze(e,t,r){let i=Ate(e,19,t);return rxe(Cte(i),t,r,5)}function Wze(e,t){let r={pos:0,end:e.text.length};return JP(r,e,t,0)}function zze(e,t,r,i){let o={pos:Wf(e,r),end:t};return JP(o,r,i,1)}function Ate(e,t,r){let i=el(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Cte(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Jze(t.parent,t);)t=t.parent;return t}function Jze(e,t){switch(e.kind){case 260:case 261:return Od(e.members,t);case 264:let r=e.body;return!!r&&r.kind===265&&Od(r.statements,t);case 308:case 238:case 265:return Od(e.statements,t);case 295:return Od(e.block.statements,t)}return!1}function Kze(e,t){return r(t);function r(i){let o=pa(i,s=>jX(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function qze(e,t){if(!e.length)return o;let r=e.filter(s=>tk(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(l7(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function Xze(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=el(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function Yze(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(X_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function $ze(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return fte(t.text,r,l.pos,l.end,f=>ixe(l,e,i,o,f,s,1,d=>!1,t))}function rxe(e,t,r,i){if(!e)return[];let o={pos:Wf(e.getStart(t),t),end:e.end};return JP(o,t,r,i)}function JP(e,t,r,i){let o=Kze(e,t);return fte(t.text,t.languageVariant,Xze(o,e,t),e.end,s=>ixe(e,o,X_.getIndentationForNode(o,e,t,r.options),Yze(o,r.options,t),s,r,i,qze(t.parseDiagnostics,e),t))}function ixe(e,t,r,i,o,{options:s,getRules:l,host:f},d,g,m){var v;let S=new dte(m,d,s),x,A,w,C,P,F=-1,B=[];if(o.advance(),o.isOnToken()){let Ne=m.getLineAndCharacterOfPosition(t.getStart(m)).line,Le=Ne;bf(t)&&(Le=m.getLineAndCharacterOfPosition(aH(t,m)).line),ie(t,t,Ne,Le,r,i)}if(!o.isOnToken()){let Ne=X_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r,Le=o.getCurrentLeadingTrivia();Le&&($(Le,Ne,!1,Ye=>Z(Ye,m.getLineAndCharacterOfPosition(Ye.pos),t,t,void 0)),s.trimTrailingWhitespace!==!1&&we(Le))}if(A&&o.getStartPos()>=e.end){let Ne=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(Ne&&Ne.pos===x){let Le=((v=el(Ne.end,m,t))==null?void 0:v.parent)||w;U(Ne,m.getLineAndCharacterOfPosition(Ne.pos).line,Le,A,C,w,Le,void 0)}}return B;function q(Ne,Le,Ye,_t,ct){if(tk(_t,Ne,Le)||ON(_t,Ne,Le)){if(ct!==-1)return ct}else{let Rt=m.getLineAndCharacterOfPosition(Ne).line,We=Wf(Ne,m),qe=X_.findFirstNonWhitespaceColumn(We,Ne,m,s);if(Rt!==Ye||Ne===qe){let zt=X_.getBaseIndentation(s);return zt>qe?zt:qe}}return-1}function W(Ne,Le,Ye,_t,ct,Rt){let We=X_.shouldIndentChildNode(s,Ne)?s.indentSize:0;return Rt===Le?{indentation:Le===P?F:ct.getIndentation(),delta:Math.min(s.indentSize,ct.getDelta(Ne)+We)}:Ye===-1?Ne.kind===20&&Le===P?{indentation:F,delta:ct.getDelta(Ne)}:X_.childStartsOnTheSameLineWithElseInIfStatement(_t,Ne,Le,m)||X_.childIsUnindentedBranchOfConditionalExpression(_t,Ne,Le,m)||X_.argumentStartsOnSameLineAsPreviousArgument(_t,Ne,Le,m)?{indentation:ct.getIndentation(),delta:We}:{indentation:ct.getIndentation()+ct.getDelta(Ne),delta:We}:{indentation:Ye,delta:We}}function Y(Ne){if(g_(Ne)){let Le=wr(Ne.modifiers,Ha,Yc(Ne.modifiers,du));if(Le)return Le.kind}switch(Ne.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(Ne.asteriskToken)return 41;case 169:case 166:let Le=sa(Ne);if(Le)return Le.kind}}function R(Ne,Le,Ye,_t){return{getIndentationForComment:(We,qe,zt)=>{switch(We){case 19:case 23:case 21:return Ye+Rt(zt)}return qe!==-1?qe:Ye},getIndentationForToken:(We,qe,zt,Qt)=>!Qt&&ct(We,qe,zt)?Ye+Rt(zt):Ye,getIndentation:()=>Ye,getDelta:Rt,recomputeIndentation:(We,qe)=>{X_.shouldIndentChildNode(s,qe,Ne,m)&&(Ye+=We?s.indentSize:-s.indentSize,_t=X_.shouldIndentChildNode(s,Ne)?s.indentSize:0)}};function ct(We,qe,zt){switch(qe){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(zt.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(zt.kind!==197)return!1;break}return Le!==We&&!(bf(Ne)&&qe===Y(Ne))}function Rt(We){return X_.nodeWillIndentChild(s,Ne,We,m,!0)?_t:0}}function ie(Ne,Le,Ye,_t,ct,Rt){if(!tk(e,Ne.getStart(m),Ne.getEnd()))return;let We=R(Ne,Ye,ct,Rt),qe=Le;for(pa(Ne,kn=>{zt(kn,-1,Ne,We,Ye,_t,!1)},kn=>{Qt(kn,Ne,Ye,We)});o.isOnToken()&&o.getStartPos()<e.end;){let kn=o.readTokenInfo(Ne);if(kn.token.end>Math.min(Ne.end,e.end))break;tn(kn,Ne,We,Ne)}function zt(kn,_n,Gt,$n,ui,Ni,Pi,gr){if(L.assert(!ws(kn)),rc(kn)||Nse(Gt,kn))return _n;let pt=kn.getStart(m),nn=m.getLineAndCharacterOfPosition(pt).line,Dt=nn;bf(kn)&&(Dt=m.getLineAndCharacterOfPosition(aH(kn,m)).line);let pn=-1;if(Pi&&Od(e,Gt)&&(pn=q(pt,kn.end,ui,e,_n),pn!==-1&&(_n=pn)),!tk(e,kn.pos,kn.end))return kn.end<e.pos&&o.skipToEndOf(kn),_n;if(kn.getFullWidth()===0)return _n;for(;o.isOnToken()&&o.getStartPos()<e.end;){let hi=o.readTokenInfo(Ne);if(hi.token.end>e.end)return _n;if(hi.token.end>pt){hi.token.pos>pt&&o.skipToStartOf(kn);break}tn(hi,Ne,$n,Ne)}if(!o.isOnToken()||o.getStartPos()>=e.end)return _n;if(Z1(kn)){let hi=o.readTokenInfo(kn);if(kn.kind!==11)return L.assert(hi.token.end===kn.end,"Token end is child end"),tn(hi,Ne,$n,kn),_n}let An=kn.kind===167?nn:Ni,Kn=W(kn,nn,pn,Ne,$n,An);return ie(kn,qe,nn,Dt,Kn.indentation,Kn.delta),qe=Ne,gr&&Gt.kind===206&&_n===-1&&(_n=Kn.indentation),_n}function Qt(kn,_n,Gt,$n){L.assert(C0(kn)),L.assert(!ws(kn));let ui=Qze(_n,kn),Ni=$n,Pi=Gt;if(!tk(e,kn.pos,kn.end)){kn.end<e.pos&&o.skipToEndOf(kn);return}if(ui!==0)for(;o.isOnToken()&&o.getStartPos()<e.end;){let nn=o.readTokenInfo(_n);if(nn.token.end>kn.pos)break;if(nn.token.kind===ui){Pi=m.getLineAndCharacterOfPosition(nn.token.pos).line,tn(nn,_n,$n,_n);let Dt;if(F!==-1)Dt=F;else{let pn=Wf(nn.token.pos,m);Dt=X_.findFirstNonWhitespaceColumn(pn,nn.token.pos,m,s)}Ni=R(_n,Gt,Dt,s.indentSize)}else tn(nn,_n,$n,_n)}let gr=-1;for(let nn=0;nn<kn.length;nn++){let Dt=kn[nn];gr=zt(Dt,gr,Ne,Ni,Pi,Pi,!0,nn===0)}let pt=Zze(ui);if(pt!==0&&o.isOnToken()&&o.getStartPos()<e.end){let nn=o.readTokenInfo(_n);nn.token.kind===27&&(tn(nn,_n,Ni,_n),nn=o.isOnToken()?o.readTokenInfo(_n):void 0),nn&&nn.token.kind===pt&&Od(_n,nn.token)&&tn(nn,_n,Ni,_n,!0)}}function tn(kn,_n,Gt,$n,ui){L.assert(Od(_n,kn.token));let Ni=o.lastTrailingTriviaWasNewLine(),Pi=!1;kn.leadingTrivia&&fe(kn.leadingTrivia,_n,qe,Gt);let gr=0,pt=Od(e,kn.token),nn=m.getLineAndCharacterOfPosition(kn.token.pos);if(pt){let Dt=g(kn.token),pn=A;if(gr=Z(kn.token,nn,_n,qe,Gt),!Dt)if(gr===0){let An=pn&&m.getLineAndCharacterOfPosition(pn.end).line;Pi=Ni&&nn.line!==An}else Pi=gr===1}if(kn.trailingTrivia&&(x=To(kn.trailingTrivia).end,fe(kn.trailingTrivia,_n,qe,Gt)),Pi){let Dt=pt&&!g(kn.token)?Gt.getIndentationForToken(nn.line,kn.token.kind,$n,!!ui):-1,pn=!0;if(kn.leadingTrivia){let An=Gt.getIndentationForComment(kn.token.kind,Dt,$n);pn=$(kn.leadingTrivia,An,pn,Kn=>re(Kn.pos,An,!1))}Dt!==-1&&pn&&(re(kn.token.pos,Dt,gr===1),P=nn.line,F=Dt)}o.advance(),qe=_n}}function $(Ne,Le,Ye,_t){for(let ct of Ne){let Rt=Od(e,ct);switch(ct.kind){case 3:Rt&&ge(ct,Le,!Ye),Ye=!1;break;case 2:Ye&&Rt&&_t(ct),Ye=!1;break;case 4:Ye=!0;break}}return Ye}function fe(Ne,Le,Ye,_t){for(let ct of Ne)if(g7(ct.kind)&&Od(e,ct)){let Rt=m.getLineAndCharacterOfPosition(ct.pos);Z(ct,Rt,Le,Ye,_t)}}function Z(Ne,Le,Ye,_t,ct){let Rt=g(Ne),We=0;if(!Rt)if(A)We=U(Ne,Le.line,Ye,A,C,w,_t,ct);else{let qe=m.getLineAndCharacterOfPosition(e.pos);X(qe.line,Le.line)}return A=Ne,x=Ne.end,w=Ye,C=Le.line,We}function U(Ne,Le,Ye,_t,ct,Rt,We,qe){S.updateContext(_t,Rt,Ne,Ye,We);let zt=l(S),Qt=S.options.trimTrailingWhitespace!==!1,tn=0;return zt?sae(zt,kn=>{if(tn=Be(kn,_t,ct,Ne,Le),qe)switch(tn){case 2:Ye.getStart(m)===Ne.pos&&qe.recomputeIndentation(!1,We);break;case 1:Ye.getStart(m)===Ne.pos&&qe.recomputeIndentation(!0,We);break;default:L.assert(tn===0)}Qt=Qt&&!(kn.action&16)&&kn.flags!==1}):Qt=Qt&&Ne.kind!==1,Le!==ct&&Qt&&X(ct,Le,_t),tn}function re(Ne,Le,Ye){let _t=Ite(Le,s);if(Ye)Ce(Ne,0,_t);else{let ct=m.getLineAndCharacterOfPosition(Ne),Rt=Ky(ct.line,m);(Le!==le(Rt,ct.character)||_e(_t,Rt))&&Ce(Rt,ct.character,_t)}}function le(Ne,Le){let Ye=0;for(let _t=0;_t<Le;_t++)m.text.charCodeAt(Ne+_t)===9?Ye+=s.tabSize-Ye%s.tabSize:Ye++;return Ye}function _e(Ne,Le){return Ne!==m.text.substr(Le,Ne.length)}function ge(Ne,Le,Ye,_t=!0){let ct=m.getLineAndCharacterOfPosition(Ne.pos).line,Rt=m.getLineAndCharacterOfPosition(Ne.end).line;if(ct===Rt){Ye||re(Ne.pos,Le,!1);return}let We=[],qe=Ne.pos;for(let _n=ct;_n<Rt;_n++){let Gt=Bw(_n,m);We.push({pos:qe,end:Gt}),qe=Ky(_n+1,m)}if(_t&&We.push({pos:qe,end:Ne.end}),We.length===0)return;let zt=Ky(ct,m),Qt=X_.findFirstNonWhitespaceCharacterAndColumn(zt,We[0].pos,m,s),tn=0;Ye&&(tn=1,ct++);let kn=Le-Qt.column;for(let _n=tn;_n<We.length;_n++,ct++){let Gt=Ky(ct,m),$n=_n===0?Qt:X_.findFirstNonWhitespaceCharacterAndColumn(We[_n].pos,We[_n].end,m,s),ui=$n.column+kn;if(ui>0){let Ni=Ite(ui,s);Ce(Gt,$n.character,Ni)}else Pe(Gt,$n.character)}}function X(Ne,Le,Ye){for(let _t=Ne;_t<Le;_t++){let ct=Ky(_t,m),Rt=Bw(_t,m);if(Ye&&(g7(Ye.kind)||QX(Ye.kind))&&Ye.pos<=Rt&&Ye.end>Rt)continue;let We=Ve(ct,Rt);We!==-1&&(L.assert(We===ct||!Yp(m.text.charCodeAt(We-1))),Pe(We,Rt+1-We))}}function Ve(Ne,Le){let Ye=Le;for(;Ye>=Ne&&Yp(m.text.charCodeAt(Ye));)Ye--;return Ye!==Le?Ye+1:-1}function we(Ne){let Le=A?A.end:e.pos;for(let Ye of Ne)g7(Ye.kind)&&(Le<Ye.pos&&ke(Le,Ye.pos-1,A),Le=Ye.end+1);Le<e.end&&ke(Le,e.end,A)}function ke(Ne,Le,Ye){let _t=m.getLineAndCharacterOfPosition(Ne).line,ct=m.getLineAndCharacterOfPosition(Le).line;X(_t,ct+1,Ye)}function Pe(Ne,Le){Le&&B.push(v7(Ne,Le,""))}function Ce(Ne,Le,Ye){(Le||Ye)&&B.push(v7(Ne,Le,Ye))}function Ie(Ne,Le){Le&&B.push(v7(Ne,0,Le))}function Be(Ne,Le,Ye,_t,ct){let Rt=ct!==Ye;switch(Ne.action){case 1:return 0;case 16:if(Le.end!==_t.pos)return Pe(Le.end,_t.pos-Le.end),Rt?2:0;break;case 32:Pe(Le.pos,Le.end-Le.pos);break;case 8:if(Ne.flags!==1&&Ye!==ct)return 0;if(ct-Ye!==1)return Ce(Le.end,_t.pos-Le.end,bb(f,s)),Rt?0:1;break;case 4:if(Ne.flags!==1&&Ye!==ct)return 0;if(_t.pos-Le.end!==1||m.text.charCodeAt(Le.end)!==32)return Ce(Le.end,_t.pos-Le.end," "),Rt?2:0;break;case 64:Ie(Le.end,";")}return 0}}function axe(e,t,r,i=Vi(e,t)){let o=jn(i,dm);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?el(t,e):r;let l=r&&eb(e.text,r.end),f=bH(i,e),d=Qi(l,f);return d&&wr(d,g=>RN(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function Qze(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}function Zze(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}function Ite(e,t){if((!jG||jG.tabSize!==t.tabSize||jG.indentSize!==t.indentSize)&&(jG={tabSize:t.tabSize,indentSize:t.indentSize},Bk=Uk=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return Uk||(Uk=[]),Uk[o]===void 0?(i=UN(" ",t.indentSize*o),Uk[o]=i):i=Uk[o],s?i+UN(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return Bk||(Bk=[]),Bk[i]===void 0?Bk[i]=s=UN(" ",i):s=Bk[i],o?s+UN(" ",o):s}}var jG,Bk,Uk,eJe=gt({"src/services/formatting/formatting.ts"(){"use strict";Fr(),Vk()}}),X_,tJe=gt({"src/services/formatting/smartIndenter.ts"(){"use strict";Fr(),Vk(),(e=>{let t;(X=>{X[X.Unknown=-1]="Unknown"})(t||(t={}));function r(X,Ve,we,ke=!1){if(X>Ve.text.length)return f(we);if(we.indentStyle===0)return 0;let Pe=el(X,Ve,void 0,!0),Ce=axe(Ve,X,Pe||null);if(Ce&&Ce.kind===3)return i(Ve,X,we,Ce);if(!Pe)return f(we);if(QX(Pe.kind)&&Pe.getStart(Ve)<=X&&X<Pe.end)return 0;let Be=Ve.getLineAndCharacterOfPosition(X).line,Ne=Vi(Ve,X),Le=Ne.kind===18&&Ne.parent.kind===207;if(we.indentStyle===1||Le)return o(Ve,X,we);if(Pe.kind===27&&Pe.parent.kind!==223){let _t=m(Pe,Ve,we);if(_t!==-1)return _t}let Ye=q(X,Pe.parent,Ve);if(Ye&&!Od(Ye,Pe)){let ct=[215,216].indexOf(Ne.parent.kind)!==-1?0:we.indentSize;return R(Ye,Ve,we)+ct}return s(Ve,X,Pe,Be,ke,we)}e.getIndentation=r;function i(X,Ve,we,ke){let Pe=Gs(X,Ve).line-1,Ce=Gs(X,ke.pos).line;if(L.assert(Ce>=0),Pe<=Ce)return U(Ky(Ce,X),Ve,X,we);let Ie=Ky(Pe,X),{column:Be,character:Ne}=Z(Ie,Ve,X,we);return Be===0?Be:X.text.charCodeAt(Ie+Ne)===42?Be-1:Be}function o(X,Ve,we){let ke=Ve;for(;ke>0;){let Ce=X.text.charCodeAt(ke);if(!xh(Ce))break;ke--}let Pe=Wf(ke,X);return U(Pe,ke,X,we)}function s(X,Ve,we,ke,Pe,Ce){let Ie,Be=we;for(;Be;){if(WX(Be,Ve,X)&&_e(Ce,Be,Ie,X,!0)){let Le=A(Be,X),Ye=x(we,Be,ke,X),_t=Ye!==0?Pe&&Ye===2?Ce.indentSize:0:ke!==Le.line?Ce.indentSize:0;return d(Be,Le,void 0,_t,X,!0,Ce)}let Ne=ie(Be,X,Ce,!0);if(Ne!==-1)return Ne;Ie=Be,Be=Be.parent}return f(Ce)}function l(X,Ve,we,ke){let Pe=we.getLineAndCharacterOfPosition(X.getStart(we));return d(X,Pe,Ve,0,we,!1,ke)}e.getIndentationForNode=l;function f(X){return X.baseIndentSize||0}e.getBaseIndentation=f;function d(X,Ve,we,ke,Pe,Ce,Ie){var Be;let Ne=X.parent;for(;Ne;){let Le=!0;if(we){let Rt=X.getStart(Pe);Le=Rt<we.pos||Rt>we.end}let Ye=g(Ne,X,Pe),_t=Ye.line===Ve.line||C(Ne,X,Ve.line,Pe);if(Le){let Rt=(Be=B(X,Pe))==null?void 0:Be[0],We=!!Rt&&A(Rt,Pe).line>Ye.line,qe=ie(X,Pe,Ie,We);if(qe!==-1||(qe=v(X,Ne,Ve,_t,Pe,Ie),qe!==-1))return qe+ke}_e(Ie,Ne,X,Pe,Ce)&&!_t&&(ke+=Ie.indentSize);let ct=w(Ne,X,Ve.line,Pe);X=Ne,Ne=X.parent,Ve=ct?Pe.getLineAndCharacterOfPosition(X.getStart(Pe)):Ye}return ke+f(Ie)}function g(X,Ve,we){let ke=B(Ve,we),Pe=ke?ke.pos:X.getStart(we);return we.getLineAndCharacterOfPosition(Pe)}function m(X,Ve,we){let ke=Ehe(X);return ke&&ke.listItemIndex>0?$(ke.list.getChildren(),ke.listItemIndex-1,Ve,we):-1}function v(X,Ve,we,ke,Pe,Ce){return(Kl(X)||Nw(X))&&(Ve.kind===308||!ke)?fe(we,Pe,Ce):-1}let S;(X=>{X[X.Unknown=0]="Unknown",X[X.OpenBrace=1]="OpenBrace",X[X.CloseBrace=2]="CloseBrace"})(S||(S={}));function x(X,Ve,we,ke){let Pe=t1(X,Ve,ke);if(!Pe)return 0;if(Pe.kind===18)return 1;if(Pe.kind===19){let Ce=A(Pe,ke).line;return we===Ce?2:0}return 0}function A(X,Ve){return Ve.getLineAndCharacterOfPosition(X.getStart(Ve))}function w(X,Ve,we,ke){if(!(Pa(X)&&ya(X.arguments,Ve)))return!1;let Pe=X.expression.getEnd();return Gs(ke,Pe).line===we}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=w;function C(X,Ve,we,ke){if(X.kind===242&&X.elseStatement===Ve){let Pe=Yo(X,91,ke);return L.assert(Pe!==void 0),A(Pe,ke).line===we}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=C;function P(X,Ve,we,ke){if(b2(X)&&(Ve===X.whenTrue||Ve===X.whenFalse)){let Pe=Gs(ke,X.condition.end).line;if(Ve===X.whenTrue)return we===Pe;{let Ce=A(X.whenTrue,ke).line,Ie=Gs(ke,X.whenTrue.end).line;return Pe===Ce&&Ie===we}}return!1}e.childIsUnindentedBranchOfConditionalExpression=P;function F(X,Ve,we,ke){if(Ih(X)){if(!X.arguments)return!1;let Pe=wr(X.arguments,Ne=>Ne.pos===Ve.pos);if(!Pe)return!1;let Ce=X.arguments.indexOf(Pe);if(Ce===0)return!1;let Ie=X.arguments[Ce-1],Be=Gs(ke,Ie.getEnd()).line;if(we===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=F;function B(X,Ve){return X.parent&&W(X.getStart(Ve),X.getEnd(),X.parent,Ve)}e.getContainingList=B;function q(X,Ve,we){return Ve&&W(X,X,Ve,we)}function W(X,Ve,we,ke){switch(we.kind){case 180:return Pe(we.typeArguments);case 207:return Pe(we.properties);case 206:return Pe(we.elements);case 184:return Pe(we.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return Pe(we.typeParameters)||Pe(we.parameters);case 174:return Pe(we.parameters);case 260:case 228:case 261:case 262:case 348:return Pe(we.typeParameters);case 211:case 210:return Pe(we.typeArguments)||Pe(we.arguments);case 258:return Pe(we.declarations);case 272:case 276:return Pe(we.elements);case 203:case 204:return Pe(we.elements)}function Pe(Ce){return Ce&&ON(Y(we,Ce,ke),X,Ve)?Ce:void 0}}function Y(X,Ve,we){let ke=X.getChildren(we);for(let Pe=1;Pe<ke.length-1;Pe++)if(ke[Pe].pos===Ve.pos&&ke[Pe].end===Ve.end)return{pos:ke[Pe-1].end,end:ke[Pe+1].getStart(we)};return Ve}function R(X,Ve,we){return X?fe(Ve.getLineAndCharacterOfPosition(X.pos),Ve,we):-1}function ie(X,Ve,we,ke){if(X.parent&&X.parent.kind===258)return-1;let Pe=B(X,Ve);if(Pe){let Ce=Pe.indexOf(X);if(Ce!==-1){let Ie=$(Pe,Ce,Ve,we);if(Ie!==-1)return Ie}return R(Pe,Ve,we)+(ke?we.indentSize:0)}return-1}function $(X,Ve,we,ke){L.assert(Ve>=0&&Ve<X.length);let Pe=X[Ve],Ce=A(Pe,we);for(let Ie=Ve-1;Ie>=0;Ie--){if(X[Ie].kind===27)continue;if(we.getLineAndCharacterOfPosition(X[Ie].end).line!==Ce.line)return fe(Ce,we,ke);Ce=A(X[Ie],we)}return-1}function fe(X,Ve,we){let ke=Ve.getPositionOfLineAndCharacter(X.line,0);return U(ke,ke+X.character,Ve,we)}function Z(X,Ve,we,ke){let Pe=0,Ce=0;for(let Ie=X;Ie<Ve;Ie++){let Be=we.text.charCodeAt(Ie);if(!Yp(Be))break;Be===9?Ce+=ke.tabSize+Ce%ke.tabSize:Ce++,Pe++}return{column:Ce,character:Pe}}e.findFirstNonWhitespaceCharacterAndColumn=Z;function U(X,Ve,we,ke){return Z(X,Ve,we,ke).column}e.findFirstNonWhitespaceColumn=U;function re(X,Ve,we,ke,Pe){let Ce=we?we.kind:0;switch(Ve.kind){case 241:case 260:case 228:case 261:case 263:case 262:case 206:case 238:case 265:case 207:case 184:case 197:case 186:case 266:case 293:case 292:case 214:case 208:case 210:case 211:case 240:case 274:case 250:case 224:case 204:case 203:case 283:case 286:case 282:case 291:case 170:case 176:case 177:case 166:case 181:case 182:case 193:case 212:case 220:case 276:case 272:case 278:case 273:case 169:return!0;case 257:case 299:case 223:if(!X.indentMultiLineObjectLiteralBeginningOnBlankLine&&ke&&Ce===207)return ge(ke,we);if(Ve.kind===223&&ke&&we&&Ce===281){let Ie=ke.getLineAndCharacterOfPosition(xo(ke.text,Ve.pos)).line,Be=ke.getLineAndCharacterOfPosition(xo(ke.text,we.pos)).line;return Ie!==Be}if(Ve.kind!==223)return!0;break;case 243:case 244:case 246:case 247:case 245:case 242:case 259:case 215:case 171:case 173:case 174:case 175:return Ce!==238;case 216:return ke&&Ce===214?ge(ke,we):Ce!==238;case 275:return Ce!==276;case 269:return Ce!==270||!!we.namedBindings&&we.namedBindings.kind!==272;case 281:return Ce!==284;case 285:return Ce!==287;case 190:case 189:if(Ce===184||Ce===186)return!1;break}return Pe}e.nodeWillIndentChild=re;function le(X,Ve){switch(X){case 250:case 254:case 248:case 249:return Ve.kind!==238;default:return!1}}function _e(X,Ve,we,ke,Pe=!1){return re(X,Ve,we,ke,!1)&&!(Pe&&we&&le(we.kind,Ve))}e.shouldIndentChildNode=_e;function ge(X,Ve){let we=xo(X.text,Ve.pos),ke=X.getLineAndCharacterOfPosition(we).line,Pe=X.getLineAndCharacterOfPosition(Ve.end).line;return ke===Pe}})(X_||(X_={}))}}),tl={};Mo(tl,{FormattingContext:()=>dte,FormattingRequestKind:()=>ute,RuleAction:()=>_te,RuleFlags:()=>pte,SmartIndenter:()=>X_,anyContext:()=>VP,createTextRangeWithKind:()=>VG,formatDocument:()=>Wze,formatNodeGivenIndentation:()=>$ze,formatOnClosingCurly:()=>Hze,formatOnEnter:()=>Uze,formatOnOpeningCurly:()=>jze,formatOnSemicolon:()=>Vze,formatSelection:()=>zze,getAllRules:()=>PSe,getFormatContext:()=>wze,getFormattingScanner:()=>fte,getIndentationString:()=>Ite,getRangeOfEnclosingComment:()=>axe});var Vk=gt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";eze(),tze(),nze(),Dze(),Bze(),eJe(),tJe()}}),Fr=gt({"src/services/_namespaces/ts.ts"(){"use strict";fa(),r7(),v6e(),K6e(),$6e(),l4e(),u4e(),d4e(),y4e(),L4e(),k4e(),w4e(),B4e(),V4e(),_3e(),m3e(),y3e(),E3e(),V3e(),Q3e(),Qa(),QZ(),KTe(),cUe(),_Ue(),wUe(),lye(),wye(),$Ue(),aVe(),Qm(),rWe(),kWe(),FWe(),UWe(),ZWe(),Vk()}});function nJe(){return kte??(kte=new r_(Rf))}function oxe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${jm(o,[e],0)}`:"",s}function rJe(e,t,r,i){let o=oxe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function iJe(e,t,r,i){let o=!1;return()=>{sxe&&!o&&(L.log.warn(oxe(e,!1,t,r,i)),o=!0)}}function aJe(e,t={}){var r,i;let o=typeof t.typeScriptVersion=="string"?new r_(t.typeScriptVersion):(r=t.typeScriptVersion)!=null?r:nJe(),s=typeof t.errorAfter=="string"?new r_(t.errorAfter):t.errorAfter,l=typeof t.warnAfter=="string"?new r_(t.warnAfter):t.warnAfter,f=typeof t.since=="string"?new r_(t.since):(i=t.since)!=null?i:l,d=t.error||s&&o.compareTo(s)>=0,g=!l||o.compareTo(l)>=0;return d?rJe(e,s,f,t.message):g?iJe(e,s,f,t.message):Ba}function oJe(e,t){return function(){return e(),t.apply(this,arguments)}}function Lte(e,t){var r;let i=aJe((r=t?.name)!=null?r:L.getFunctionName(e),t);return oJe(i,e)}var sxe,kte,cxe=gt({"src/deprecatedCompat/deprecate.ts"(){"use strict";HG(),sxe=!0}});function Dte(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let f=+l;!isNaN(f)&&fs(t,`${f}`)&&(t[f]=Lte(t[f],{...i[f],name:e}))}let o=sJe(t,r);return s;function s(...l){let f=o(l),d=f!==void 0?t[f]:void 0;if(typeof d=="function")return d(...l);throw new TypeError("Invalid arguments")}}function sJe(e,t){return r=>{for(let i=0;fs(e,`${i}`)&&fs(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function cJe(e){return{overload:t=>({bind:r=>({finish:()=>Dte(e,t,r),deprecate:i=>({finish:()=>Dte(e,t,r,i)})})})}}var lJe=gt({"src/deprecatedCompat/deprecations.ts"(){"use strict";HG(),cxe()}}),uJe=gt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";HG(),cxe(),fle(e=>{let t=e.getIdentifierConstructor();fs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Lte(function(){return nb(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),fs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Lte(function(){return this.flags&2048?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),HG=gt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";fa(),lJe(),uJe()}}),lxe={};Mo(lxe,{ANONYMOUS:()=>X7,AccessFlags:()=>IV,AssertionLevel:()=>$U,AssignmentDeclarationKind:()=>PV,AssignmentKind:()=>YW,Associativity:()=>QW,BreakpointResolver:()=>x$,BuilderFileEmit:()=>Iq,BuilderProgramKind:()=>Lq,BuilderState:()=>pm,BundleFileSectionKind:()=>ej,CallHierarchy:()=>rx,CharacterCodes:()=>KV,CheckFlags:()=>TV,CheckMode:()=>_F,ClassificationType:()=>OX,ClassificationTypeNames:()=>RX,CommentDirectiveType:()=>oV,Comparison:()=>LU,CompletionInfoFlags:()=>AX,CompletionTriggerKind:()=>bX,Completions:()=>lx,ConfigFileProgramReloadLevel:()=>QK,ContextFlags:()=>_V,CoreServicesShimHostAdapter:()=>S$,Debug:()=>L,DiagnosticCategory:()=>nw,Diagnostics:()=>_,DocumentHighlights:()=>Q7,ElementFlags:()=>CV,EmitFlags:()=>U8,EmitHint:()=>$V,EmitOnly:()=>cV,EndOfLineState:()=>LX,EnumKind:()=>EV,ExitStatus:()=>uV,ExportKind:()=>GY,Extension:()=>qV,ExternalEmitHelpers:()=>YV,FileIncludeKind:()=>R8,FilePreprocessingDiagnosticsKind:()=>sV,FileSystemEntryKind:()=>oj,FileWatcherEventKind:()=>ij,FindAllReferences:()=>js,FlattenLevel:()=>RK,FlowFlags:()=>tw,ForegroundColorEscapeSequences:()=>pq,FunctionFlags:()=>$W,GeneratedIdentifierFlags:()=>w8,GetLiteralTextFlags:()=>KW,GoToDefinition:()=>xk,HighlightSpanKind:()=>TX,ImportKind:()=>FY,ImportsNotUsedAsValues:()=>VV,IndentStyle:()=>SX,IndexKind:()=>DV,InferenceFlags:()=>OV,InferencePriority:()=>RV,InlayHintKind:()=>EX,InlayHints:()=>fee,InternalEmitFlags:()=>XV,InternalSymbolName:()=>SV,InvalidatedProjectKind:()=>aX,JsDoc:()=>xb,JsTyping:()=>QT,JsxEmit:()=>UV,JsxFlags:()=>iV,JsxReferenceKind:()=>LV,LanguageServiceMode:()=>gX,LanguageServiceShimHostAdapter:()=>T$,LanguageVariant:()=>zV,LexicalEnvironmentFlags:()=>ZV,ListFormat:()=>tj,LogLevel:()=>ZU,MemberOverrideStatus:()=>dV,ModifierFlags:()=>k8,ModuleDetectionKind:()=>MV,ModuleInstanceState:()=>sK,ModuleKind:()=>F8,ModuleResolutionKind:()=>rw,ModuleSpecifierEnding:()=>lz,NavigateTo:()=>cye,NavigationBar:()=>Dye,NewLineKind:()=>jV,NodeBuilderFlags:()=>pV,NodeCheckFlags:()=>xV,NodeFactoryFlags:()=>mz,NodeFlags:()=>L8,NodeResolutionFeatures:()=>aK,ObjectFlags:()=>P8,OperationCanceledException:()=>tI,OperatorPrecedence:()=>ZW,OrganizeImports:()=>b_,OrganizeImportsMode:()=>vX,OuterExpressionKinds:()=>QV,OutliningElementsCollector:()=>See,OutliningSpanKind:()=>CX,OutputFileType:()=>IX,PackageJsonAutoImportPreference:()=>hX,PackageJsonDependencyGroup:()=>mX,PatternMatchKind:()=>n5,PollingInterval:()=>V8,PollingWatchKind:()=>BV,PragmaKindFlags:()=>nj,PrivateIdentifierKind:()=>Az,ProcessLevel:()=>MK,QuotePreference:()=>OY,RelationComparisonResult:()=>D8,Rename:()=>RG,ScriptElementKind:()=>DX,ScriptElementKindModifier:()=>wX,ScriptKind:()=>HV,ScriptSnapshot:()=>pX,ScriptTarget:()=>WV,SemanticClassificationFormat:()=>yX,SemanticMeaning:()=>RY,SemicolonPreference:()=>xX,SignatureCheckMode:()=>pF,SignatureFlags:()=>M8,SignatureHelp:()=>BP,SignatureKind:()=>kV,SmartSelectionRange:()=>ete,SnippetKind:()=>B8,SortKind:()=>XU,StructureIsReused:()=>lV,SymbolAccessibility:()=>gV,SymbolDisplay:()=>$g,SymbolDisplayPartKind:()=>IN,SymbolFlags:()=>O8,SymbolFormatFlags:()=>hV,SyntaxKind:()=>I8,SyntheticSymbolKind:()=>yV,Ternary:()=>NV,ThrottledCancellationToken:()=>g$,TokenClass:()=>kX,TokenFlags:()=>aV,TransformFlags:()=>G8,TypeFacts:()=>dF,TypeFlags:()=>N8,TypeFormatFlags:()=>mV,TypeMapKind:()=>wV,TypePredicateKind:()=>vV,TypeReferenceSerializationKind:()=>bV,TypeScriptServicesFactory:()=>eve,UnionReduction:()=>fV,UpToDateStatusType:()=>Wq,VarianceFlags:()=>AV,Version:()=>r_,VersionRange:()=>mA,WatchDirectoryFlags:()=>JV,WatchDirectoryKind:()=>GV,WatchFileKind:()=>FV,WatchLogLevel:()=>ZK,WatchType:()=>Hf,accessPrivateIdentifier:()=>$_e,addEmitFlags:()=>bp,addEmitHelper:()=>xS,addEmitHelpers:()=>Bg,addInternalEmitFlags:()=>SS,addNodeFactoryPatcher:()=>ARe,addObjectAllocatorPatcher:()=>fle,addRange:()=>si,addRelatedInfo:()=>Ao,addSyntheticLeadingComment:()=>nO,addSyntheticTrailingComment:()=>R4,addToSeen:()=>V_,advancedAsyncSuperHelper:()=>sO,affectsDeclarationPathOptionDeclarations:()=>FJ,affectsEmitOptionDeclarations:()=>MJ,allKeysStartWithDot:()=>nF,altDirectorySeparator:()=>pw,and:()=>g8,append:()=>Sn,appendIfUnique:()=>xg,arrayFrom:()=>lo,arrayIsEqualTo:()=>up,arrayIsHomogeneous:()=>Fle,arrayIsSorted:()=>dae,arrayOf:()=>mae,arrayReverseIterator:()=>Cke,arrayToMap:()=>p0,arrayToMultiMap:()=>KD,arrayToNumericMap:()=>gae,arraysEqual:()=>GD,assertType:()=>Pke,assign:()=>JD,assignHelper:()=>B4,asyncDelegator:()=>V4,asyncGeneratorHelper:()=>U4,asyncSuperHelper:()=>oO,asyncValues:()=>j4,attachFileToDiagnostics:()=>vS,awaitHelper:()=>AS,awaiterHelper:()=>W4,base64decode:()=>nle,base64encode:()=>tle,binarySearch:()=>Py,binarySearchKey:()=>j1,bindSourceFile:()=>c_e,breakIntoCharacterSpans:()=>Hge,breakIntoWordSpans:()=>Wge,buildLinkParts:()=>Qhe,buildOpts:()=>j3,buildOverload:()=>cJe,bundlerModuleNameResolver:()=>Wfe,canBeConvertedToAsync:()=>e$,canHaveDecorators:()=>HS,canHaveExportModifier:()=>WR,canHaveFlowNode:()=>cR,canHaveIllegalDecorators:()=>aJ,canHaveIllegalModifiers:()=>cde,canHaveIllegalType:()=>mOe,canHaveIllegalTypeParameters:()=>sde,canHaveJSDoc:()=>lR,canHaveLocals:()=>Qp,canHaveModifiers:()=>g_,canHaveSymbol:()=>$p,canJsonReportNoInputFiles:()=>FO,canProduceDiagnostics:()=>xF,canUsePropertyAccess:()=>HW,canWatchDirectoryOrFile:()=>vN,cartesianProduct:()=>Rae,cast:()=>Ga,chainBundle:()=>y_,chainDiagnosticMessages:()=>da,changeAnyExtension:()=>uj,changeCompilerHostLikeToUseCache:()=>pN,changeExtension:()=>V0,changesAffectModuleResolution:()=>eH,changesAffectingProgramStructure:()=>Ise,childIsDecorated:()=>kI,classElementOrClassElementParameterIsDecorated:()=>AH,classOrConstructorParameterIsDecorated:()=>O0,classPrivateFieldGetHelper:()=>n3,classPrivateFieldInHelper:()=>i3,classPrivateFieldSetHelper:()=>r3,classicNameResolver:()=>o_e,classifier:()=>T5,cleanExtendedConfigCache:()=>$K,clear:()=>Om,clearMap:()=>Tf,clearSharedExtendedConfigFileWatcher:()=>Fpe,climbPastPropertyAccess:()=>o7,climbPastPropertyOrElementAccess:()=>ghe,clone:()=>VU,cloneCompilerOptions:()=>Mhe,closeFileWatcher:()=>am,closeFileWatcherOf:()=>_m,codefix:()=>gu,collapseTextChangeRangesAcrossMultipleVersions:()=>GDe,collectExternalModuleInfo:()=>xK,combine:()=>_A,combinePaths:()=>vi,commentPragmas:()=>iw,commonOptionsWithBuild:()=>WO,commonPackageFolders:()=>nz,compact:()=>WD,compareBooleans:()=>g0,compareDataObjects:()=>gW,compareDiagnostics:()=>ZI,compareDiagnosticsSkipRelatedInformation:()=>c4,compareEmitHelpers:()=>Sue,compareNumberOfDirectorySeparators:()=>BR,comparePaths:()=>cT,comparePathsCaseInsensitive:()=>LDe,comparePathsCaseSensitive:()=>IDe,comparePatternKeys:()=>tK,compareProperties:()=>Cae,compareStringsCaseInsensitive:()=>_8,compareStringsCaseInsensitiveEslintCompatible:()=>Sae,compareStringsCaseSensitive:()=>su,compareStringsCaseSensitiveUI:()=>XD,compareTextSpans:()=>f8,compareValues:()=>Es,compileOnSaveCommandLineOption:()=>UO,compilerOptionsAffectDeclarationPath:()=>Cle,compilerOptionsAffectEmit:()=>Ale,compilerOptionsAffectSemanticDiagnostics:()=>xle,compilerOptionsDidYouMeanDiagnostics:()=>JO,compilerOptionsIndicateEsModules:()=>aY,compose:()=>Rke,computeCommonSourceDirectoryOfFilenames:()=>jpe,computeLineAndCharacterOfPosition:()=>yw,computeLineOfPosition:()=>aI,computeLineStarts:()=>hw,computePositionOfLineAndCharacter:()=>mj,computeSignature:()=>YT,computeSignatureWithDiagnostics:()=>Tq,computeSuggestionDiagnostics:()=>$Y,concatenate:()=>Qi,concatenateDiagnosticMessageChains:()=>gle,consumesNodeCoreModules:()=>V7,contains:()=>ya,containsIgnoredPath:()=>sL,containsObjectRestOrSpread:()=>IO,containsParseError:()=>Gw,containsPath:()=>Gy,convertCompilerOptionsForTelemetry:()=>TNe,convertCompilerOptionsFromJson:()=>mNe,convertJsonOption:()=>GO,convertToBase64:()=>ele,convertToObject:()=>rfe,convertToObjectWorker:()=>PO,convertToOptionsWithAbsolutePaths:()=>SJ,convertToRelativePath:()=>rI,convertToTSConfig:()=>tNe,convertTypeAcquisitionFromJson:()=>hNe,copyComments:()=>r1,copyEntries:()=>Mw,copyLeadingComments:()=>q2,copyProperties:()=>jU,copyTrailingAsLeadingComments:()=>qN,copyTrailingComments:()=>sk,couldStartTrivia:()=>hoe,countWhere:()=>Oy,createAbstractBuilder:()=>S8e,createAccessorPropertyBackingField:()=>sJ,createAccessorPropertyGetRedirector:()=>gde,createAccessorPropertySetRedirector:()=>yde,createBaseNodeFactory:()=>oue,createBinaryExpressionTrampoline:()=>C3,createBindingHelper:()=>d2,createBuildInfo:()=>dN,createBuilderProgram:()=>Sq,createBuilderProgramUsingProgramBuildInfo:()=>dme,createBuilderStatusReporter:()=>Ame,createCacheWithRedirects:()=>KJ,createCacheableExportInfoMap:()=>Tge,createCachedDirectoryStructureHost:()=>Mpe,createClassifier:()=>Age,createCommentDirectivesMap:()=>Gse,createCompilerDiagnostic:()=>ps,createCompilerDiagnosticForInvalidCustomType:()=>pJ,createCompilerDiagnosticFromMessageChain:()=>s4,createCompilerHost:()=>Hpe,createCompilerHostFromProgramHost:()=>Bq,createCompilerHostWorker:()=>nq,createDetachedDiagnostic:()=>t2,createDiagnosticCollection:()=>XA,createDiagnosticForFileFromMessageChain:()=>yH,createDiagnosticForNode:()=>hr,createDiagnosticForNodeArray:()=>RA,createDiagnosticForNodeArrayFromMessageChain:()=>jw,createDiagnosticForNodeFromMessageChain:()=>Lh,createDiagnosticForNodeInSourceFile:()=>Nu,createDiagnosticForRange:()=>vH,createDiagnosticMessageChainFromDiagnostic:()=>qse,createDiagnosticReporter:()=>bN,createDocumentPositionMapper:()=>H_e,createDocumentRegistry:()=>VY,createDocumentRegistryInternal:()=>Rge,createEmitAndSemanticDiagnosticsBuilderProgram:()=>kq,createEmitHelperFactory:()=>Tue,createEmptyExports:()=>bO,createExpressionForJsxElement:()=>Que,createExpressionForJsxFragment:()=>Zue,createExpressionForObjectLiteralElementLike:()=>ede,createExpressionForPropertyName:()=>Zz,createExpressionFromEntityName:()=>EO,createExternalHelpersImportDeclarationIfNeeded:()=>nJ,createFileDiagnostic:()=>al,createFileDiagnosticFromMessageChain:()=>S6,createForOfBindingStatement:()=>Qz,createGetCanonicalFileName:()=>Dl,createGetSourceFile:()=>eq,createGetSymbolAccessibilityDiagnosticForNode:()=>zg,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Epe,createGetSymbolWalker:()=>f_e,createIncrementalCompilerHost:()=>jq,createIncrementalProgram:()=>xme,createInputFiles:()=>RRe,createInputFilesWithFilePaths:()=>_z,createInputFilesWithFileTexts:()=>pz,createJsxFactoryExpression:()=>$z,createLanguageService:()=>Bye,createLanguageServiceSourceFile:()=>f5,createMemberAccessForPropertyName:()=>VT,createModeAwareCache:()=>WT,createModeAwareCacheKey:()=>ML,createModuleResolutionCache:()=>Y3,createModuleResolutionLoader:()=>cq,createModuleSpecifierResolutionHost:()=>$S,createMultiMap:()=>Nf,createNodeConverters:()=>cue,createNodeFactory:()=>YR,createOptionNameMap:()=>R3,createOverload:()=>Dte,createPackageJsonImportFilter:()=>uk,createPackageJsonInfo:()=>uge,createParenthesizerRules:()=>sue,createPatternMatcher:()=>Fge,createPrependNodes:()=>fq,createPrinter:()=>nE,createPrinterWithDefaults:()=>qK,createPrinterWithRemoveComments:()=>rE,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>XK,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>fN,createProgram:()=>PF,createProgramHost:()=>Uq,createPropertyNameNodeForIdentifierOrLiteral:()=>E4,createQueue:()=>HU,createRange:()=>Gf,createRedirectedBuilderProgram:()=>Cq,createResolutionCache:()=>fme,createRuntimeTypeSerializer:()=>npe,createScanner:()=>kg,createSemanticDiagnosticsBuilderProgram:()=>T8e,createSet:()=>Dke,createSolutionBuilder:()=>U8e,createSolutionBuilderHost:()=>F8e,createSolutionBuilderWithWatch:()=>V8e,createSolutionBuilderWithWatchHost:()=>G8e,createSortedArray:()=>MU,createSourceFile:()=>DO,createSourceMapGenerator:()=>M_e,createSourceMapSource:()=>ORe,createSuperAccessVariableStatement:()=>SF,createSymbolTable:()=>Ua,createSymlinkCache:()=>Ile,createSystemWatchFunctions:()=>loe,createTextChange:()=>GN,createTextChangeFromStartLength:()=>v7,createTextChangeRange:()=>Sw,createTextRangeFromNode:()=>nY,createTextRangeFromSpan:()=>y7,createTextSpan:()=>il,createTextSpanFromBounds:()=>Wc,createTextSpanFromNode:()=>Du,createTextSpanFromRange:()=>lv,createTextSpanFromStringLiteralLikeContent:()=>tY,createTextWriter:()=>SR,createTokenRange:()=>_W,createTypeChecker:()=>k_e,createTypeReferenceDirectiveResolutionCache:()=>$3,createTypeReferenceResolutionLoader:()=>OF,createUnderscoreEscapedMultiMap:()=>vae,createUnparsedSourceFile:()=>fz,createWatchCompilerHost:()=>R8e,createWatchCompilerHostOfConfigFile:()=>Tme,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Sme,createWatchFactory:()=>Gq,createWatchHost:()=>Fq,createWatchProgram:()=>O8e,createWatchStatusReporter:()=>pme,createWriteFileMeasuringIO:()=>tq,declarationNameToString:()=>os,decodeMappings:()=>EK,decodedTextSpanIntersectsWith:()=>Q8,decorateHelper:()=>N4,deduplicate:()=>fA,defaultIncludeSpec:()=>z3,defaultInitCompilerOptions:()=>W3,defaultMaximumTruncationLength:()=>KR,detectSortCaseSensitivity:()=>l8,diagnosticCategoryName:()=>C8,diagnosticToString:()=>ZS,directoryProbablyExists:()=>gp,directorySeparator:()=>_s,displayPart:()=>Qu,displayPartsToString:()=>Mye,disposeEmitNodes:()=>yz,documentSpansEqual:()=>P6e,dumpTracingLegend:()=>toe,elementAt:()=>Ig,elideNodes:()=>hde,emitComments:()=>Vce,emitDetachedComments:()=>jce,emitFiles:()=>CF,emitFilesAndReportErrors:()=>qF,emitFilesAndReportErrorsAndGetExitStatus:()=>vme,emitModuleKindIsNonNodeESM:()=>SW,emitNewLineBeforeLeadingCommentOfPosition:()=>Uce,emitNewLineBeforeLeadingComments:()=>Gce,emitNewLineBeforeLeadingCommentsOfPosition:()=>Bce,emitSkippedWithNoDiagnostics:()=>HF,emitUsingBuildInfo:()=>Ppe,emptyArray:()=>Je,emptyFileSystemEntries:()=>D4,emptyMap:()=>b8,emptyOptions:()=>Cp,emptySet:()=>Pae,endsWith:()=>Oc,ensurePathIsNonModuleName:()=>S0,ensureScriptKind:()=>h4,ensureTrailingDirectorySeparator:()=>cu,entityNameToString:()=>qd,enumerateInsertsAndDeletes:()=>wae,equalOwnProperties:()=>hae,equateStringsCaseInsensitive:()=>W1,equateStringsCaseSensitive:()=>z1,equateValues:()=>Zv,esDecorateHelper:()=>F4,escapeJsxAttributeString:()=>qH,escapeLeadingUnderscores:()=>Bs,escapeNonAsciiString:()=>ER,escapeSnippetText:()=>OT,escapeString:()=>_S,every:()=>Ji,expandPreOrPostfixIncrementOrDecrementExpression:()=>b3,explainFiles:()=>yme,explainIfFileIsRedirectAndImpliedFormat:()=>Oq,exportAssignmentIsAlias:()=>zA,exportStarHelper:()=>t3,expressionResultIsUnused:()=>Ble,extend:()=>d8,extendsHelper:()=>z4,extensionFromPath:()=>jR,extensionIsTS:()=>y4,externalHelpersModuleNameText:()=>_b,factory:()=>D,fileExtensionIs:()=>Gc,fileExtensionIsOneOf:()=>$c,fileIncludeReasonToDiagnostics:()=>Mq,filter:()=>Pr,filterMutate:()=>wU,filterSemanticDiagnostics:()=>MF,find:()=>wr,findAncestor:()=>jn,findBestPatternMatch:()=>JU,findChildOfKind:()=>Yo,findComputedPropertyNameCacheAssignment:()=>L3,findConfigFile:()=>Vpe,findContainingList:()=>d7,findDiagnosticForNode:()=>fge,findFirstNonJsxWhitespaceToken:()=>Ihe,findIndex:()=>Yc,findLast:()=>dA,findLastIndex:()=>s8,findListItemInfo:()=>Ehe,findMap:()=>vke,findModifier:()=>z2,findNextToken:()=>t1,findPackageJson:()=>cge,findPackageJsons:()=>AY,findPrecedingMatchingToken:()=>h7,findPrecedingToken:()=>el,findSuperStatementIndex:()=>bF,findTokenOnLeftOfPosition:()=>p7,findUseStrictPrologue:()=>tJ,first:()=>Vo,firstDefined:()=>ks,firstDefinedIterator:()=>FD,firstIterator:()=>pae,firstOrOnly:()=>LY,firstOrUndefined:()=>Sl,firstOrUndefinedIterator:()=>u8,fixupCompilerOptions:()=>t$,flatMap:()=>Uo,flatMapIterator:()=>OU,flatMapToMutable:()=>BD,flatten:()=>t_,flattenCommaList:()=>vde,flattenDestructuringAssignment:()=>KT,flattenDestructuringBinding:()=>eE,flattenDiagnosticMessageText:()=>sv,forEach:()=>mn,forEachAncestor:()=>Lse,forEachAncestorDirectory:()=>Th,forEachChild:()=>pa,forEachChildRecursively:()=>kO,forEachEmittedFile:()=>WK,forEachEnclosingBlockScopeContainer:()=>Jse,forEachEntry:()=>Ld,forEachExternalModuleToImportFrom:()=>MY,forEachImportClauseDeclaration:()=>z6,forEachKey:()=>TI,forEachLeadingCommentRange:()=>vw,forEachNameInAccessChainWalkingLeft:()=>Xwe,forEachResolvedProjectReference:()=>Kpe,forEachReturnStatement:()=>vT,forEachRight:()=>sae,forEachTrailingCommentRange:()=>bw,forEachUnique:()=>lY,forEachYieldExpression:()=>Yse,forSomeAncestorDirectory:()=>qwe,formatColorAndReset:()=>iE,formatDiagnostic:()=>rq,formatDiagnostics:()=>e8e,formatDiagnosticsWithColorAndContext:()=>Jpe,formatGeneratedName:()=>jT,formatGeneratedNamePart:()=>L2,formatLocation:()=>iq,formatMessage:()=>TW,formatStringFromArgs:()=>jm,formatting:()=>tl,fullTripleSlashAMDReferencePathRegEx:()=>XW,fullTripleSlashReferencePathRegEx:()=>qW,generateDjb2Hash:()=>aw,generateTSConfig:()=>oNe,generatorHelper:()=>Q4,getAdjustedReferenceLocation:()=>zX,getAdjustedRenameLocation:()=>_7,getAliasDeclarationFromName:()=>BH,getAllAccessorDeclarations:()=>kT,getAllDecoratorsOfClass:()=>LK,getAllDecoratorsOfClassElement:()=>TF,getAllJSDocTags:()=>kj,getAllJSDocTagsOfKind:()=>KDe,getAllKeys:()=>Ike,getAllProjectOutputs:()=>AF,getAllSuperTypeNodes:()=>NI,getAllUnscopedEmitHelpers:()=>xz,getAllowJSCompilerOption:()=>PR,getAllowSyntheticDefaultImports:()=>wT,getAncestor:()=>cb,getAnyExtensionFromPath:()=>j8,getAreDeclarationMapsEnabled:()=>d4,getAssignedExpandoInitializer:()=>oS,getAssignedName:()=>xj,getAssignmentDeclarationKind:()=>ic,getAssignmentDeclarationPropertyAccessKind:()=>tR,getAssignmentTargetKind:()=>xT,getAutomaticTypeDirectiveNames:()=>X3,getBaseFileName:()=>Hl,getBinaryOperatorPrecedence:()=>vR,getBuildInfo:()=>IF,getBuildInfoFileVersionMap:()=>Aq,getBuildInfoText:()=>Npe,getBuildOrderFromAnyBuildOrder:()=>ZF,getBuilderCreationParameters:()=>zF,getBuilderFileEmit:()=>cv,getCheckFlags:()=>ac,getClassExtendsHeritageElement:()=>P0,getClassLikeDeclarationOfSymbol:()=>Nh,getCombinedLocalAndExportSymbolFlags:()=>XI,getCombinedModifierFlags:()=>wg,getCombinedNodeFlags:()=>G_,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Tj,getCommentRange:()=>sm,getCommonSourceDirectory:()=>uN,getCommonSourceDirectoryOfConfig:()=>XL,getCompilerOptionValue:()=>f4,getCompilerOptionsDiffValue:()=>aNe,getConditions:()=>P2,getConfigFileParsingDiagnostics:()=>XT,getConstantValue:()=>mue,getContainerNode:()=>e1,getContainingClass:()=>Zc,getContainingClassStaticBlock:()=>gwe,getContainingFunction:()=>Xd,getContainingFunctionDeclaration:()=>ice,getContainingFunctionOrClassStaticBlock:()=>R6,getContainingNodeArray:()=>Ule,getContainingObjectLiteralElement:()=>nP,getContextualTypeFromParent:()=>w7,getContextualTypeFromParentOrAncestorTypeNode:()=>f7,getCurrentTime:()=>SN,getDeclarationDiagnostics:()=>Tpe,getDeclarationEmitExtensionForPath:()=>QH,getDeclarationEmitOutputFilePath:()=>Rce,getDeclarationEmitOutputFilePathWorker:()=>$H,getDeclarationFromName:()=>fR,getDeclarationModifierFlagsFromSymbol:()=>Ef,getDeclarationOfKind:()=>nc,getDeclarationsOfKind:()=>Ase,getDeclaredExpandoInitializer:()=>$w,getDecorators:()=>Uy,getDefaultCompilerOptions:()=>d5,getDefaultExportInfoWorker:()=>$7,getDefaultFormatCodeSettings:()=>fhe,getDefaultLibFileName:()=>X8,getDefaultLibFilePath:()=>f3e,getDefaultLikeExportInfo:()=>Y7,getDiagnosticText:()=>ZOe,getDiagnosticsWithinSpan:()=>_ge,getDirectoryPath:()=>ni,getDocumentPositionMapper:()=>Yge,getESModuleInterop:()=>f_,getEditsForFileRename:()=>Nge,getEffectiveBaseTypeNode:()=>hp,getEffectiveConstraintOfTypeParameter:()=>EA,getEffectiveContainerForJSDocTemplateTag:()=>J6,getEffectiveImplementsTypeNodes:()=>JA,getEffectiveInitializer:()=>Yw,getEffectiveJSDocHost:()=>WA,getEffectiveModifierFlags:()=>uu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Jce,getEffectiveModifierFlagsNoCache:()=>qce,getEffectiveReturnTypeNode:()=>U_,getEffectiveSetAccessorTypeAnnotationNode:()=>Fce,getEffectiveTypeAnnotationNode:()=>Cl,getEffectiveTypeParameterDeclarations:()=>jy,getEffectiveTypeRoots:()=>XO,getElementOrPropertyAccessArgumentExpressionOrName:()=>W6,getElementOrPropertyAccessName:()=>wh,getElementsOfBindingOrAssignmentPattern:()=>I2,getEmitDeclarations:()=>__,getEmitFlags:()=>Ya,getEmitHelpers:()=>O4,getEmitModuleDetectionKind:()=>Ele,getEmitModuleKind:()=>Rl,getEmitModuleResolutionKind:()=>$s,getEmitScriptTarget:()=>Do,getEnclosingBlockScopeContainer:()=>tm,getEncodedSemanticClassifications:()=>BY,getEncodedSyntacticClassifications:()=>UY,getEndLinePosition:()=>Bw,getEntityNameFromTypeNode:()=>Jw,getEntrypointsFromPackageJsonInfo:()=>zNe,getErrorCountForSummary:()=>JF,getErrorSpanForNode:()=>w0,getErrorSummaryText:()=>hme,getEscapedTextOfIdentifierOrLiteral:()=>MI,getExpandoInitializer:()=>ob,getExportAssignmentExpression:()=>UH,getExportInfoMap:()=>YN,getExportNeedsImportStarHelper:()=>z_e,getExpressionAssociativity:()=>WH,getExpressionPrecedence:()=>$6,getExternalHelpersModuleName:()=>SO,getExternalModuleImportEqualsDeclarationExpression:()=>wI,getExternalModuleName:()=>UA,getExternalModuleNameFromDeclaration:()=>Dce,getExternalModuleNameFromPath:()=>YH,getExternalModuleNameLiteral:()=>jS,getExternalModuleRequireArgument:()=>IH,getFallbackOptions:()=>_N,getFileEmitOutput:()=>Ype,getFileMatcherPatterns:()=>tL,getFileNamesFromConfigSpecs:()=>BO,getFileWatcherEventKind:()=>aoe,getFilesInErrorForSummary:()=>KF,getFirstConstructorWithBody:()=>Vm,getFirstIdentifier:()=>Yd,getFirstNonSpaceCharacterPosition:()=>nge,getFirstProjectOutput:()=>JK,getFixableErrorSpanExpression:()=>IY,getFormatCodeSettingsForWriting:()=>z7,getFullWidth:()=>Fw,getFunctionFlags:()=>pl,getHeritageClause:()=>mR,getHostSignatureFromJSDoc:()=>sb,getIdentifierAutoGenerate:()=>BRe,getIdentifierGeneratedImportReference:()=>Eue,getIdentifierTypeArguments:()=>NT,getImmediatelyInvokedFunctionExpression:()=>ET,getImpliedNodeFormatForFile:()=>NF,getImpliedNodeFormatForFileWorker:()=>uq,getImportNeedsImportDefaultHelper:()=>SK,getImportNeedsImportStarHelper:()=>vF,getIndentSize:()=>YA,getIndentString:()=>Q6,getInitializedVariables:()=>qI,getInitializerOfBinaryExpression:()=>OH,getInitializerOfBindingOrAssignmentElement:()=>AO,getInterfaceBaseTypeNodes:()=>PI,getInternalEmitFlags:()=>o_,getInvokedExpression:()=>P6,getIsolatedModules:()=>d_,getJSDocAugmentsTag:()=>Koe,getJSDocClassTag:()=>Aj,getJSDocCommentRanges:()=>EH,getJSDocCommentsAndTags:()=>PH,getJSDocDeprecatedTag:()=>Cj,getJSDocDeprecatedTagNoCache:()=>ese,getJSDocEnumTag:()=>Ij,getJSDocHost:()=>dS,getJSDocImplementsTags:()=>qoe,getJSDocOverrideTagNoCache:()=>Zoe,getJSDocParameterTags:()=>fI,getJSDocParameterTagsNoCache:()=>joe,getJSDocPrivateTag:()=>jDe,getJSDocPrivateTagNoCache:()=>Yoe,getJSDocProtectedTag:()=>HDe,getJSDocProtectedTagNoCache:()=>$oe,getJSDocPublicTag:()=>VDe,getJSDocPublicTagNoCache:()=>Xoe,getJSDocReadonlyTag:()=>WDe,getJSDocReadonlyTagNoCache:()=>Qoe,getJSDocReturnTag:()=>tse,getJSDocReturnType:()=>Aw,getJSDocRoot:()=>OI,getJSDocSatisfiesExpressionType:()=>JW,getJSDocSatisfiesTag:()=>Lj,getJSDocTags:()=>A0,getJSDocTagsNoCache:()=>JDe,getJSDocTemplateTag:()=>zDe,getJSDocThisTag:()=>e6,getJSDocType:()=>Vy,getJSDocTypeAliasName:()=>iJ,getJSDocTypeAssertionType:()=>T3,getJSDocTypeParameterDeclarations:()=>t4,getJSDocTypeParameterTags:()=>Woe,getJSDocTypeParameterTagsNoCache:()=>zoe,getJSDocTypeTag:()=>x0,getJSXImplicitImportBase:()=>_4,getJSXRuntimeImport:()=>p4,getJSXTransformEnabled:()=>AW,getKeyForCompilerOptions:()=>JJ,getLanguageVariant:()=>RR,getLastChild:()=>yW,getLeadingCommentRanges:()=>Nm,getLeadingCommentRangesOfNode:()=>bH,getLeftmostAccessExpression:()=>$I,getLeftmostExpression:()=>QI,getLineAndCharacterOfPosition:()=>Gs,getLineInfo:()=>F_e,getLineOfLocalPosition:()=>UI,getLineOfLocalPositionFromLineMap:()=>IT,getLineStartPositionForPosition:()=>Wf,getLineStarts:()=>Sh,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>sle,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>ole,getLinesBetweenPositions:()=>oI,getLinesBetweenRangeEndAndRangeStart:()=>pW,getLinesBetweenRangeEndPositions:()=>Wwe,getLiteralText:()=>Bse,getLocalNameForExternalImport:()=>C2,getLocalSymbolForExportDefault:()=>QA,getLocaleSpecificMessage:()=>uo,getLocaleTimeString:()=>EN,getMappedContextSpan:()=>zhe,getMappedDocumentSpan:()=>uY,getMappedLocation:()=>WN,getMatchedFileSpec:()=>Nq,getMatchedIncludeSpec:()=>Pq,getMeaningFromDeclaration:()=>LN,getMeaningFromLocation:()=>ZT,getMembersOfDeclaration:()=>$se,getModeForFileReference:()=>mN,getModeForResolutionAtIndex:()=>aq,getModeForUsageLocation:()=>W_,getModifiedTime:()=>$1,getModifiers:()=>uT,getModuleInstanceState:()=>Gh,getModuleNameStringLiteralAt:()=>GF,getModuleSpecifierEndingPreference:()=>OW,getModuleSpecifierResolverHost:()=>oY,getNameForExportedSymbol:()=>j7,getNameFromIndexInfo:()=>Kse,getNameFromPropertyName:()=>VN,getNameOfAccessExpression:()=>ule,getNameOfCompilerOptionValue:()=>EJ,getNameOfDeclaration:()=>sa,getNameOfExpando:()=>wH,getNameOfJSDocTypedef:()=>Uoe,getNameOrArgument:()=>eR,getNameTable:()=>p$,getNamesForExportedSymbol:()=>mge,getNamespaceDeclarationNode:()=>VA,getNewLineCharacter:()=>db,getNewLineKind:()=>XN,getNewLineOrDefaultFromHost:()=>bb,getNewTargetContainer:()=>oce,getNextJSDocCommentLocation:()=>MH,getNodeForGeneratedName:()=>I3,getNodeId:()=>zo,getNodeKind:()=>aE,getNodeModifiers:()=>rk,getNodeModulePathParts:()=>jW,getNonAssignedNameOfDeclaration:()=>Sj,getNonAssignmentOperatorForCompoundAssignment:()=>WL,getNonAugmentationDeclaration:()=>dH,getNonDecoratorTokenPosOfNode:()=>aH,getNormalizedAbsolutePath:()=>_a,getNormalizedAbsolutePathWithoutRoot:()=>lj,getNormalizedPathComponents:()=>fw,getObjectFlags:()=>Ur,getOperator:()=>JH,getOperatorAssociativity:()=>zH,getOperatorPrecedence:()=>yR,getOptionFromName:()=>gJ,getOptionsNameMap:()=>w2,getOrCreateEmitNode:()=>Lu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>ade,getOrUpdate:()=>VD,getOriginalNode:()=>ec,getOriginalNodeId:()=>sc,getOriginalSourceFile:()=>wwe,getOutputDeclarationFileName:()=>qL,getOutputExtension:()=>zK,getOutputFileNames:()=>BMe,getOutputPathsFor:()=>KL,getOutputPathsForBundle:()=>JL,getOwnEmitOutputFilePath:()=>wce,getOwnKeys:()=>bh,getOwnValues:()=>H1,getPackageJsonInfo:()=>KS,getPackageJsonTypesVersionsPaths:()=>q3,getPackageJsonsVisibleToFile:()=>lge,getPackageNameFromTypesPackageName:()=>ZO,getPackageScopeForPath:()=>eF,getParameterSymbolFromJSDoc:()=>uR,getParameterTypeNode:()=>bRe,getParentNodeInSpan:()=>HN,getParseTreeNode:()=>ea,getParsedCommandLineOfConfigFile:()=>RO,getPathComponents:()=>Ou,getPathComponentsRelativeTo:()=>_j,getPathFromPathComponents:()=>T0,getPathUpdater:()=>jY,getPathsBasePath:()=>ZH,getPatternFromSpec:()=>kW,getPendingEmitKind:()=>G2,getPositionOfLineAndCharacter:()=>gw,getPossibleGenericSignatures:()=>XX,getPossibleOriginalInputExtensionForExtension:()=>Oce,getPossibleTypeArgumentsInfo:()=>YX,getPreEmitDiagnostics:()=>ZMe,getPrecedingNonSpaceCharacterPosition:()=>hY,getPrivateIdentifier:()=>kK,getProperties:()=>CK,getProperty:()=>zD,getPropertyArrayElementValue:()=>rce,getPropertyAssignment:()=>MA,getPropertyAssignmentAliasLikeExpression:()=>xce,getPropertyNameForPropertyNameNode:()=>M0,getPropertyNameForUniqueESSymbol:()=>kwe,getPropertyNameOfBindingOrAssignmentElement:()=>rJ,getPropertySymbolFromBindingElement:()=>I7,getPropertySymbolsFromContextualType:()=>_5,getQuoteFromPreference:()=>Hhe,getQuotePreference:()=>J_,getRangesWhere:()=>PU,getRefactorContextSpan:()=>QS,getReferencedFileLocation:()=>YL,getRegexFromPattern:()=>Qy,getRegularExpressionForWildcard:()=>eL,getRegularExpressionsForWildcards:()=>m4,getRelativePathFromDirectory:()=>Xp,getRelativePathFromFile:()=>_w,getRelativePathToDirectoryOrUrl:()=>Q1,getRenameLocation:()=>KN,getReplacementSpanForContextToken:()=>eY,getResolutionDiagnostic:()=>_q,getResolutionModeOverrideForClause:()=>qS,getResolveJsonModule:()=>RT,getResolvePackageJsonExports:()=>xW,getResolvePackageJsonImports:()=>oRe,getResolvedExternalModuleName:()=>Z6,getResolvedModule:()=>kA,getResolvedTypeReferenceDirective:()=>iwe,getRestIndicatorOfBindingOrAssignmentElement:()=>x3,getRestParameterElementType:()=>SH,getRightMostAssignedExpression:()=>Qw,getRootDeclaration:()=>nm,getRootLength:()=>_p,getScriptKind:()=>mY,getScriptKindFromFileName:()=>RW,getScriptTargetFeatures:()=>oH,getSelectedEffectiveModifierFlags:()=>hS,getSelectedSyntacticModifierFlags:()=>zce,getSemanticClassifications:()=>Cge,getSemanticJsxChildren:()=>bR,getSetAccessorTypeAnnotationNode:()=>Pce,getSetAccessorValueParameter:()=>VI,getSetExternalModuleIndicator:()=>OR,getShebang:()=>K8,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>NH,getSingleVariableOfVariableStatement:()=>HA,getSnapshotText:()=>E7,getSnippetElement:()=>bz,getSourceFileOfModule:()=>m6,getSourceFileOfNode:()=>Gn,getSourceFilePathInNewDir:()=>e4,getSourceFilePathInNewDirWorker:()=>tW,getSourceFileVersionAsHashFromText:()=>XF,getSourceFilesToEmit:()=>eW,getSourceMapRange:()=>pb,getSourceMapper:()=>Xge,getSourceTextOfNodeFromSourceFile:()=>k0,getSpanOfTokenAtPosition:()=>Pg,getSpellingSuggestion:()=>$C,getStartPositionOfLine:()=>Ky,getStartPositionOfRange:()=>KI,getStartsOnNewLine:()=>tO,getStaticPropertiesAndClassStaticBlock:()=>EF,getStrictOptionValue:()=>Uf,getStringComparer:()=>p8,getSuperCallFromStatement:()=>AK,getSuperContainer:()=>Ww,getSupportedCodeFixes:()=>Fye,getSupportedExtensions:()=>nL,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>FR,getSwitchedType:()=>TY,getSymbolId:()=>$a,getSymbolNameForPrivateIdentifier:()=>hR,getSymbolTarget:()=>ege,getSyntacticClassifications:()=>Dge,getSyntacticModifierFlags:()=>Yy,getSyntacticModifierFlagsNoCache:()=>sW,getSynthesizedDeepClone:()=>cc,getSynthesizedDeepCloneWithReplacements:()=>JN,getSynthesizedDeepClones:()=>oE,getSynthesizedDeepClonesWithReplacements:()=>gY,getSyntheticLeadingComments:()=>l2,getSyntheticTrailingComments:()=>rO,getTargetLabel:()=>s7,getTargetOfBindingOrAssignmentElement:()=>iv,getTemporaryModuleResolutionState:()=>Z3,getTextOfConstantValue:()=>Use,getTextOfIdentifierOrLiteral:()=>l_,getTextOfJSDocComment:()=>Cw,getTextOfNode:()=>Qc,getTextOfNodeFromSourceText:()=>AI,getTextOfPropertyName:()=>wA,getThisContainer:()=>Ku,getThisParameter:()=>F0,getTokenAtPosition:()=>Vi,getTokenPosOfNode:()=>gT,getTokenSourceMapRange:()=>FRe,getTouchingPropertyName:()=>ef,getTouchingToken:()=>nk,getTrailingCommentRanges:()=>eb,getTrailingSemicolonDeferringWriter:()=>XH,getTransformFlagsSubtreeExclusions:()=>uue,getTransformers:()=>jK,getTsBuildInfoEmitOutputFilePath:()=>Jg,getTsConfigObjectLiteralExpression:()=>LI,getTsConfigPropArray:()=>Hw,getTsConfigPropArrayElementValue:()=>w6,getTypeAnnotationNode:()=>Mce,getTypeArgumentOrTypeParameterList:()=>Ohe,getTypeKeywordOfTypeOnlyImport:()=>cY,getTypeNode:()=>vue,getTypeNodeIfAccessible:()=>lk,getTypeParameterFromJsDoc:()=>yce,getTypeParameterOwner:()=>BDe,getTypesPackageName:()=>rF,getUILocale:()=>xae,getUniqueName:()=>i1,getUniqueSymbolId:()=>tge,getUseDefineForClassFields:()=>MR,getWatchErrorSummaryDiagnosticMessage:()=>wq,getWatchFactory:()=>Upe,group:()=>YC,groupBy:()=>yae,guessIndentation:()=>xse,handleNoEmitOptions:()=>dq,hasAbstractModifier:()=>B0,hasAccessorModifier:()=>rm,hasAmbientModifier:()=>aW,hasChangesInResolutions:()=>nH,hasChildOfKind:()=>NN,hasContextSensitiveParameters:()=>b4,hasDecorators:()=>bf,hasDocComment:()=>Rhe,hasDynamicName:()=>Xy,hasEffectiveModifier:()=>cd,hasEffectiveModifiers:()=>n4,hasEffectiveReadonlyModifier:()=>jI,hasExtension:()=>gA,hasIndexSignature:()=>EY,hasInitializer:()=>Jy,hasInvalidEscape:()=>KH,hasJSDocNodes:()=>Kd,hasJSDocParameterTags:()=>Joe,hasJSFileExtension:()=>ES,hasJsonModuleEmitEnabled:()=>l4,hasOnlyExpressionInitializer:()=>mT,hasOverrideModifier:()=>iW,hasPossibleExternalModuleReference:()=>zse,hasProperty:()=>fs,hasPropertyAccessExpressionWithName:()=>kN,hasQuestionToken:()=>uS,hasRecordedExternalHelpers:()=>ide,hasRestParameter:()=>Yj,hasScopeMarker:()=>yse,hasStaticModifier:()=>zc,hasSyntacticModifier:()=>Mr,hasSyntacticModifiers:()=>Wce,hasTSFileExtension:()=>GR,hasTabstop:()=>jle,hasTrailingDirectorySeparator:()=>My,hasType:()=>f6,hasTypeArguments:()=>Awe,hasZeroOrOneAsteriskCharacter:()=>CW,helperString:()=>Sz,hostGetCanonicalFileName:()=>lb,hostUsesCaseSensitiveFileNames:()=>xR,idText:()=>vr,identifierIsThisKeyword:()=>rW,identifierToKeywordKind:()=>nb,identity:()=>Ks,identitySourceMapConsumer:()=>yF,ignoreSourceNewlines:()=>Tz,ignoredPaths:()=>uw,importDefaultHelper:()=>e3,importFromModuleSpecifier:()=>aR,importNameElisionDisabled:()=>u4,importStarHelper:()=>aO,indexOfAnyCharCode:()=>cae,indexOfNode:()=>DA,indicesOf:()=>jD,inferredTypesContainingFile:()=>VF,insertImports:()=>L7,insertLeadingStatement:()=>sOe,insertSorted:()=>Ny,insertStatementAfterCustomPrologue:()=>L0,insertStatementAfterStandardPrologue:()=>cwe,insertStatementsAfterCustomPrologue:()=>rH,insertStatementsAfterStandardPrologue:()=>em,intersperse:()=>DU,introducesArgumentsExoticObject:()=>tce,inverseJsxOptionMap:()=>NL,isAbstractConstructorSymbol:()=>cle,isAbstractModifier:()=>Rue,isAccessExpression:()=>Us,isAccessibilityModifier:()=>ZX,isAccessor:()=>rb,isAccessorModifier:()=>Nue,isAliasSymbolDeclaration:()=>Cwe,isAliasableExpression:()=>pR,isAmbientModule:()=>lu,isAmbientPropertyDeclaration:()=>_H,isAnonymousFunctionDefinition:()=>FI,isAnyDirectorySeparator:()=>sj,isAnyImportOrBareOrAccessedRequire:()=>Wse,isAnyImportOrReExport:()=>Uw,isAnyImportSyntax:()=>yT,isAnySupportedFileExtension:()=>mRe,isApplicableVersionedTypesKey:()=>QO,isArgumentExpressionOfElementAccess:()=>BX,isArray:()=>ba,isArrayBindingElement:()=>c6,isArrayBindingOrAssignmentElement:()=>ww,isArrayBindingOrAssignmentPattern:()=>Vj,isArrayBindingPattern:()=>g2,isArrayLiteralExpression:()=>fu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>qg,isArrayTypeNode:()=>wz,isArrowFunction:()=>xs,isAsExpression:()=>fO,isAssertClause:()=>p3,isAssertEntry:()=>jue,isAssertionExpression:()=>pT,isAssertionKey:()=>ase,isAssertsKeyword:()=>Due,isAssignmentDeclaration:()=>RI,isAssignmentExpression:()=>Iu,isAssignmentOperator:()=>Mg,isAssignmentPattern:()=>vI,isAssignmentTarget:()=>Um,isAsteriskToken:()=>cO,isAsyncFunction:()=>qA,isAsyncModifier:()=>mL,isAutoAccessorPropertyDeclaration:()=>Id,isAwaitExpression:()=>v2,isAwaitKeyword:()=>Dz,isBigIntLiteral:()=>a3,isBinaryExpression:()=>ar,isBinaryOperatorToken:()=>pde,isBindableObjectDefinePropertyCall:()=>sS,isBindableStaticAccessExpression:()=>ST,isBindableStaticElementAccessExpression:()=>H6,isBindableStaticNameExpression:()=>cS,isBindingElement:()=>Wo,isBindingElementOfBareOrAccessedRequire:()=>lce,isBindingName:()=>Mm,isBindingOrAssignmentElement:()=>use,isBindingOrAssignmentPattern:()=>kw,isBindingPattern:()=>La,isBlock:()=>Va,isBlockOrCatchScoped:()=>sH,isBlockScope:()=>pH,isBlockScopedContainerTopLevel:()=>Hse,isBooleanLiteral:()=>ose,isBreakOrContinueStatement:()=>hI,isBreakStatement:()=>qRe,isBuildInfoFile:()=>Ipe,isBuilderProgram:()=>gme,isBundle:()=>Bz,isBundleFileTextLike:()=>dle,isCallChain:()=>dT,isCallExpression:()=>Pa,isCallExpressionTarget:()=>NX,isCallLikeExpression:()=>rS,isCallOrNewExpression:()=>Ih,isCallOrNewExpressionTarget:()=>PX,isCallSignatureDeclaration:()=>_2,isCallToHelper:()=>pL,isCaseBlock:()=>hO,isCaseClause:()=>CL,isCaseKeyword:()=>Pue,isCaseOrDefaultClause:()=>Kj,isCatchClause:()=>E2,isCatchClauseVariableDeclaration:()=>Vle,isCatchClauseVariableDeclarationOrBindingElement:()=>cH,isCheckJsEnabledForFile:()=>HR,isChildOfNodeWithKind:()=>TH,isCircularBuildOrder:()=>YS,isClassDeclaration:()=>sl,isClassElement:()=>_l,isClassExpression:()=>_u,isClassLike:()=>Yr,isClassMemberModifier:()=>Gj,isClassOrTypeElement:()=>s6,isClassStaticBlockDeclaration:()=>oc,isCollapsedRange:()=>Hwe,isColonToken:()=>Iue,isCommaExpression:()=>TO,isCommaListExpression:()=>SL,isCommaSequence:()=>wL,isCommaToken:()=>Cue,isComment:()=>g7,isCommonJsExportPropertyAssignment:()=>k6,isCommonJsExportedExpression:()=>Zse,isCompoundAssignment:()=>oN,isComputedNonLiteralName:()=>Vw,isComputedPropertyName:()=>ts,isConciseBody:()=>u6,isConditionalExpression:()=>b2,isConditionalTypeNode:()=>m2,isConstTypeReference:()=>Ch,isConstructSignatureDeclaration:()=>uO,isConstructorDeclaration:()=>Ec,isConstructorTypeNode:()=>yL,isContextualKeyword:()=>K6,isContinueStatement:()=>KRe,isCustomPrologue:()=>A6,isDebuggerStatement:()=>XRe,isDeclaration:()=>Kl,isDeclarationBindingElement:()=>Lw,isDeclarationFileName:()=>Fu,isDeclarationName:()=>Rh,isDeclarationNameOfEnumOrNamespace:()=>wR,isDeclarationReadonly:()=>x6,isDeclarationStatement:()=>bse,isDeclarationWithTypeParameterChildren:()=>hH,isDeclarationWithTypeParameters:()=>mH,isDecorator:()=>du,isDecoratorTarget:()=>mhe,isDefaultClause:()=>yO,isDefaultImport:()=>lS,isDefaultModifier:()=>kue,isDefaultedExpandoInitializer:()=>dce,isDeleteExpression:()=>Gue,isDeleteTarget:()=>GH,isDeprecatedDeclaration:()=>H7,isDestructuringAssignment:()=>Fg,isDiagnosticWithLocation:()=>CY,isDiskPathRoot:()=>TDe,isDoStatement:()=>zRe,isDotDotDotToken:()=>o3,isDottedName:()=>WI,isDynamicName:()=>Y6,isESSymbolIdentifier:()=>Dwe,isEffectiveExternalModule:()=>aS,isEffectiveModuleDeclaration:()=>jse,isEffectiveStrictModeSourceFile:()=>fH,isElementAccessChain:()=>Dj,isElementAccessExpression:()=>Vs,isEmittedFileOfProgram:()=>Bpe,isEmptyArrayLiteral:()=>Zce,isEmptyBindingElement:()=>Goe,isEmptyBindingPattern:()=>Foe,isEmptyObjectLiteral:()=>dW,isEmptyStatement:()=>Pz,isEmptyStringLiteral:()=>CH,isEndOfDeclarationMarker:()=>QRe,isEntityName:()=>Cd,isEntityNameExpression:()=>bc,isEnumConst:()=>R0,isEnumDeclaration:()=>hb,isEnumMember:()=>q0,isEqualityOperatorKind:()=>R7,isEqualsGreaterThanToken:()=>Lue,isExclamationToken:()=>lO,isExcludedFile:()=>gfe,isExclusivelyTypeOnlyImportOrExport:()=>oq,isExportAssignment:()=>pc,isExportDeclaration:()=>Il,isExportModifier:()=>c3,isExportName:()=>E3,isExportNamespaceAsDefaultDeclaration:()=>v6,isExportOrDefaultModifier:()=>oJ,isExportSpecifier:()=>Mu,isExportsIdentifier:()=>TT,isExportsOrModuleExportsOrAlias:()=>$0,isExpression:()=>ot,isExpressionNode:()=>Dh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>vhe,isExpressionOfOptionalChainRoot:()=>r6,isExpressionStatement:()=>Ol,isExpressionWithTypeArguments:()=>Vg,isExpressionWithTypeArgumentsInClassExtendsClause:()=>IR,isExternalModule:()=>Lc,isExternalModuleAugmentation:()=>D0,isExternalModuleImportEqualsDeclaration:()=>ab,isExternalModuleIndicator:()=>Rw,isExternalModuleNameRelative:()=>fl,isExternalModuleReference:()=>um,isExternalModuleSymbol:()=>BN,isExternalOrCommonJsModule:()=>kd,isFileLevelUniqueName:()=>g6,isFileProbablyExternalModule:()=>LO,isFirstDeclarationOfSymbolParameter:()=>dY,isFixablePromiseHandler:()=>ZY,isForInOrOfStatement:()=>CA,isForInStatement:()=>Mz,isForInitializer:()=>pp,isForOfStatement:()=>_O,isForStatement:()=>FT,isFunctionBlock:()=>bT,isFunctionBody:()=>Hj,isFunctionDeclaration:()=>Jc,isFunctionExpression:()=>ms,isFunctionExpressionOrArrowFunction:()=>a2,isFunctionLike:()=>Ia,isFunctionLikeDeclaration:()=>Ds,isFunctionLikeKind:()=>nS,isFunctionLikeOrClassStaticBlockDeclaration:()=>SA,isFunctionOrConstructorTypeNode:()=>lse,isFunctionOrModuleBlock:()=>Bj,isFunctionSymbol:()=>_ce,isFunctionTypeNode:()=>Jm,isFutureReservedKeyword:()=>Iwe,isGeneratedIdentifier:()=>tc,isGeneratedPrivateIdentifier:()=>tS,isGetAccessor:()=>zy,isGetAccessorDeclaration:()=>p_,isGetOrSetAccessorDeclaration:()=>t6,isGlobalDeclaration:()=>J6e,isGlobalScopeAugmentation:()=>mp,isGrammarError:()=>Nse,isHeritageClause:()=>dd,isHoistedFunction:()=>C6,isHoistedVariableStatement:()=>I6,isIdentifier:()=>Re,isIdentifierANonContextualKeyword:()=>q6,isIdentifierName:()=>Sce,isIdentifierOrThisTypeNode:()=>ude,isIdentifierPart:()=>tb,isIdentifierStart:()=>Pm,isIdentifierText:()=>i_,isIdentifierTypePredicate:()=>nce,isIdentifierTypeReference:()=>Mle,isIfStatement:()=>MT,isIgnoredFileFromWildCardWatching:()=>DF,isImplicitGlob:()=>LW,isImportCall:()=>Dd,isImportClause:()=>lm,isImportDeclaration:()=>gl,isImportEqualsDeclaration:()=>Nl,isImportKeyword:()=>gL,isImportMeta:()=>NA,isImportOrExportSpecifier:()=>eS,isImportOrExportSpecifierName:()=>Zhe,isImportSpecifier:()=>$u,isImportTypeAssertionContainer:()=>Vue,isImportTypeNode:()=>Mh,isImportableFile:()=>PY,isInComment:()=>Kg,isInExpressionContext:()=>F6,isInJSDoc:()=>qw,isInJSFile:()=>Yn,isInJSXText:()=>Dhe,isInJsonFile:()=>B6,isInNonReferenceComment:()=>Ghe,isInReferenceComment:()=>Fhe,isInRightSideOfInternalImportEqualsDeclaration:()=>i7,isInString:()=>n1,isInTemplateString:()=>qX,isInTopLevelContext:()=>O6,isIncrementalCompilation:()=>NR,isIndexSignatureDeclaration:()=>kS,isIndexedAccessTypeNode:()=>OS,isInferTypeNode:()=>h2,isInfinityOrNaNString:()=>cL,isInitializedProperty:()=>sN,isInitializedVariable:()=>mW,isInsideJsxElement:()=>m7,isInsideJsxElementOrAttribute:()=>khe,isInsideNodeModules:()=>dge,isInsideTemplateLiteral:()=>FN,isInstantiatedModule:()=>fK,isInterfaceDeclaration:()=>ku,isInternalDeclaration:()=>BK,isInternalModuleImportEqualsDeclaration:()=>GA,isInternalName:()=>eJ,isIntersectionTypeNode:()=>dO,isIntrinsicJsxName:()=>GI,isIterationStatement:()=>Wy,isJSDoc:()=>dm,isJSDocAllType:()=>Kue,isJSDocAugmentsTag:()=>x2,isJSDocAuthorTag:()=>tOe,isJSDocCallbackTag:()=>Vz,isJSDocClassTag:()=>Xue,isJSDocCommentContainingNode:()=>qj,isJSDocConstructSignature:()=>jA,isJSDocDeprecatedTag:()=>Jz,isJSDocEnumTag:()=>vO,isJSDocFunctionType:()=>S2,isJSDocImplementsTag:()=>qz,isJSDocIndexSignature:()=>U6,isJSDocLikeText:()=>cJ,isJSDocLink:()=>zue,isJSDocLinkCode:()=>Jue,isJSDocLinkLike:()=>iS,isJSDocLinkPlain:()=>ZRe,isJSDocMemberName:()=>gb,isJSDocNameReference:()=>IL,isJSDocNamepathType:()=>eOe,isJSDocNamespaceBody:()=>ZDe,isJSDocNode:()=>IA,isJSDocNonNullableType:()=>m3,isJSDocNullableType:()=>T2,isJSDocOptionalParameter:()=>JR,isJSDocOptionalType:()=>Uz,isJSDocOverloadTag:()=>kL,isJSDocOverrideTag:()=>g3,isJSDocParameterTag:()=>xp,isJSDocPrivateTag:()=>Hz,isJSDocPropertyLikeTag:()=>a6,isJSDocPropertyTag:()=>$ue,isJSDocProtectedTag:()=>Wz,isJSDocPublicTag:()=>jz,isJSDocReadonlyTag:()=>zz,isJSDocReturnTag:()=>y3,isJSDocSatisfiesExpression:()=>zW,isJSDocSatisfiesTag:()=>v3,isJSDocSeeTag:()=>nOe,isJSDocSignature:()=>X0,isJSDocTag:()=>EI,isJSDocTemplateTag:()=>H_,isJSDocThisTag:()=>Yue,isJSDocThrowsTag:()=>iOe,isJSDocTypeAlias:()=>Ff,isJSDocTypeAssertion:()=>RL,isJSDocTypeExpression:()=>UT,isJSDocTypeLiteral:()=>LL,isJSDocTypeTag:()=>DL,isJSDocTypedefTag:()=>Kz,isJSDocUnknownTag:()=>rOe,isJSDocUnknownType:()=>que,isJSDocVariadicType:()=>h3,isJSXTagName:()=>DI,isJsonEqual:()=>GW,isJsonSourceFile:()=>Mf,isJsxAttribute:()=>Sp,isJsxAttributeLike:()=>d6,isJsxAttributes:()=>K0,isJsxChild:()=>Pw,isJsxClosingElement:()=>GS,isJsxClosingFragment:()=>Hue,isJsxElement:()=>Hg,isJsxExpression:()=>AL,isJsxFragment:()=>BS,isJsxOpeningElement:()=>Xm,isJsxOpeningFragment:()=>US,isJsxOpeningLikeElement:()=>Au,isJsxOpeningLikeElementTagName:()=>hhe,isJsxSelfClosingElement:()=>FS,isJsxSpreadAttribute:()=>GT,isJsxTagNameExpression:()=>bI,isJsxText:()=>CS,isJumpStatementTarget:()=>DN,isKeyword:()=>Xu,isKnownSymbol:()=>gR,isLabelName:()=>FX,isLabelOfLabeledStatement:()=>MX,isLabeledStatement:()=>J0,isLateVisibilityPaintedStatement:()=>E6,isLeftHandSideExpression:()=>Ju,isLeftHandSideOfAssignment:()=>Bwe,isLet:()=>II,isLineBreak:()=>Wl,isLiteralComputedPropertyDeclarationName:()=>_R,isLiteralExpression:()=>fT,isLiteralExpressionOfObject:()=>Pj,isLiteralImportTypeNode:()=>ib,isLiteralKind:()=>gI,isLiteralLikeAccess:()=>j6,isLiteralLikeElementAccess:()=>Zw,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>c7,isLiteralTypeLikeExpression:()=>hOe,isLiteralTypeLiteral:()=>hse,isLiteralTypeNode:()=>mb,isLocalName:()=>rv,isLogicalOperator:()=>Yce,isLogicalOrCoalescingAssignmentExpression:()=>cW,isLogicalOrCoalescingAssignmentOperator:()=>HI,isLogicalOrCoalescingBinaryExpression:()=>CR,isLogicalOrCoalescingBinaryOperator:()=>AR,isMappedTypeNode:()=>EL,isMemberName:()=>Ah,isMergeDeclarationMarker:()=>$Re,isMetaProperty:()=>TL,isMethodDeclaration:()=>Nc,isMethodOrAccessor:()=>xA,isMethodSignature:()=>zm,isMinusToken:()=>kz,isMissingDeclaration:()=>YRe,isModifier:()=>Ha,isModifierKind:()=>Rg,isModifierLike:()=>Ns,isModuleAugmentationExternal:()=>uH,isModuleBlock:()=>Tp,isModuleBody:()=>vse,isModuleDeclaration:()=>Tc,isModuleExportsAccessExpression:()=>Bm,isModuleIdentifier:()=>RH,isModuleName:()=>_de,isModuleOrEnumDeclaration:()=>Ow,isModuleReference:()=>Tse,isModuleSpecifierLike:()=>C7,isModuleWithStringLiteralName:()=>b6,isNameOfFunctionDeclaration:()=>VX,isNameOfModuleDeclaration:()=>UX,isNamedClassElement:()=>cse,isNamedDeclaration:()=>zl,isNamedEvaluation:()=>vf,isNamedEvaluationSource:()=>VH,isNamedExportBindings:()=>Rj,isNamedExports:()=>h_,isNamedImportBindings:()=>Wj,isNamedImports:()=>jg,isNamedImportsOrExports:()=>bW,isNamedTupleMember:()=>bL,isNamespaceBody:()=>QDe,isNamespaceExport:()=>qm,isNamespaceExportDeclaration:()=>gO,isNamespaceImport:()=>nv,isNamespaceReexportDeclaration:()=>cce,isNewExpression:()=>z0,isNewExpressionTarget:()=>ZL,isNightly:()=>TR,isNoSubstitutionTemplateLiteral:()=>IS,isNode:()=>XDe,isNodeArray:()=>C0,isNodeArrayMultiLine:()=>ale,isNodeDescendantOf:()=>AT,isNodeKind:()=>Iw,isNodeLikeSystem:()=>qU,isNodeModulesDirectory:()=>H8,isNodeWithPossibleHoistedDeclaration:()=>vce,isNonContextualKeyword:()=>Ace,isNonExportDefaultModifier:()=>NOe,isNonGlobalAmbientModule:()=>lH,isNonGlobalDeclaration:()=>vge,isNonNullAccess:()=>Hle,isNonNullChain:()=>i6,isNonNullExpression:()=>PS,isNonStaticMethodOrAccessorWithPrivateName:()=>K_e,isNotEmittedOrPartiallyEmittedNode:()=>$De,isNotEmittedStatement:()=>Gz,isNullishCoalesce:()=>wj,isNumber:()=>Cg,isNumericLiteral:()=>Vf,isNumericLiteralName:()=>Wm,isObjectBindingElementWithoutPropertyName:()=>jN,isObjectBindingOrAssignmentElement:()=>Dw,isObjectBindingOrAssignmentPattern:()=>Uj,isObjectBindingPattern:()=>cm,isObjectLiteralElement:()=>Xj,isObjectLiteralElementLike:()=>Og,isObjectLiteralExpression:()=>rs,isObjectLiteralMethod:()=>s_,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>D6,isObjectTypeDeclaration:()=>yS,isOctalDigit:()=>hj,isOmittedExpression:()=>ol,isOptionalChain:()=>Jl,isOptionalChainRoot:()=>pI,isOptionalDeclaration:()=>WW,isOptionalJSDocPropertyLikeTag:()=>zR,isOptionalTypeNode:()=>Rz,isOuterExpression:()=>S3,isOutermostOptionalChain:()=>mI,isOverrideModifier:()=>Oue,isPackedArrayLiteral:()=>UW,isParameter:()=>ha,isParameterDeclaration:()=>CT,isParameterOrCatchClauseVariable:()=>VW,isParameterPropertyDeclaration:()=>Ad,isParameterPropertyModifier:()=>yI,isParenthesizedExpression:()=>ud,isParenthesizedTypeNode:()=>wS,isParseTreeNode:()=>dI,isPartOfTypeNode:()=>Gm,isPartOfTypeQuery:()=>G6,isPartiallyEmittedExpression:()=>_3,isPatternMatch:()=>h8,isPinnedComment:()=>y6,isPlainJsFile:()=>h6,isPlusToken:()=>Lz,isPossiblyTypeArgumentPosition:()=>MN,isPostfixUnaryExpression:()=>Nz,isPrefixUnaryExpression:()=>tv,isPrivateIdentifier:()=>pi,isPrivateIdentifierClassElementDeclaration:()=>xu,isPrivateIdentifierPropertyAccessExpression:()=>TA,isPrivateIdentifierSymbol:()=>Cce,isProgramBundleEmitBuildInfo:()=>ame,isProgramUptoDate:()=>lq,isPrologueDirective:()=>B_,isPropertyAccessChain:()=>n6,isPropertyAccessEntityNameExpression:()=>LR,isPropertyAccessExpression:()=>br,isPropertyAccessOrQualifiedName:()=>fse,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>dse,isPropertyAssignment:()=>yl,isPropertyDeclaration:()=>Na,isPropertyName:()=>Ys,isPropertyNameLiteral:()=>c_,isPropertySignature:()=>$d,isProtoSetter:()=>Ice,isPrototypeAccess:()=>ub,isPrototypePropertyAssignment:()=>nR,isPunctuation:()=>Phe,isPushOrUnshiftIdentifier:()=>jH,isQualifiedName:()=>Yu,isQuestionDotToken:()=>s3,isQuestionOrExclamationToken:()=>lde,isQuestionOrPlusOrMinusToken:()=>fde,isQuestionToken:()=>ev,isRawSourceMap:()=>B_e,isReadonlyKeyword:()=>wue,isReadonlyKeywordOrPlusOrMinusToken:()=>dde,isRecognizedTripleSlashComment:()=>iH,isReferenceFileLocation:()=>F2,isReferencedFile:()=>vb,isRegularExpressionLiteral:()=>Cz,isRequireCall:()=>qu,isRequireVariableStatement:()=>DH,isRestParameter:()=>Fm,isRestTypeNode:()=>Oz,isReturnStatement:()=>j_,isReturnStatementWithFixablePromiseHandler:()=>r5,isRightSideOfAccessExpression:()=>$ce,isRightSideOfPropertyAccess:()=>j2,isRightSideOfQualifiedName:()=>yhe,isRightSideOfQualifiedNameOrPropertyAccess:()=>zI,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Qce,isRootedDiskPath:()=>qp,isSameEntityName:()=>BA,isSatisfiesExpression:()=>HRe,isScopeMarker:()=>gse,isSemicolonClassElement:()=>Bue,isSetAccessor:()=>Ng,isSetAccessorDeclaration:()=>Sf,isShebangTrivia:()=>gj,isShorthandAmbientModuleSymbol:()=>CI,isShorthandPropertyAssignment:()=>xf,isSignedNumericLiteral:()=>X6,isSimpleCopiableExpression:()=>Z0,isSimpleInlineableExpression:()=>Ap,isSingleOrDoubleQuote:()=>Xw,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>dk,isSourceFileJS:()=>Cu,isSourceFileNotJS:()=>vwe,isSourceFileNotJson:()=>LH,isSourceMapping:()=>U_e,isSpecialPropertyDeclaration:()=>fce,isSpreadAssignment:()=>VS,isSpreadElement:()=>Km,isStatement:()=>ca,isStatementButNotDeclaration:()=>Nw,isStatementOrBlock:()=>Ese,isStatementWithLocals:()=>Ose,isStatic:()=>Ca,isStaticModifier:()=>LS,isString:()=>Ta,isStringAKeyword:()=>Lwe,isStringANonContextualKeyword:()=>fS,isStringAndEmptyAnonymousObjectIntersection:()=>Nhe,isStringDoubleQuoted:()=>V6,isStringLiteral:()=>yo,isStringLiteralLike:()=>es,isStringLiteralOrJsxExpression:()=>Sse,isStringLiteralOrTemplate:()=>age,isStringOrNumericLiteralLike:()=>yf,isStringOrRegularExpressionOrTemplateLiteral:()=>QX,isStringTextContainingNode:()=>Fj,isSuperCall:()=>OA,isSuperKeyword:()=>hL,isSuperOrSuperProperty:()=>ywe,isSuperProperty:()=>Pu,isSupportedSourceFileName:()=>wle,isSwitchStatement:()=>pO,isSyntaxList:()=>A2,isSyntheticExpression:()=>WRe,isSyntheticReference:()=>MS,isTagName:()=>GX,isTaggedTemplateExpression:()=>PT,isTaggedTemplateTag:()=>phe,isTemplateExpression:()=>d3,isTemplateHead:()=>f2,isTemplateLiteral:()=>AA,isTemplateLiteralKind:()=>Hy,isTemplateLiteralToken:()=>rse,isTemplateLiteralTypeNode:()=>jRe,isTemplateLiteralTypeSpan:()=>Mue,isTemplateMiddle:()=>Aue,isTemplateMiddleOrTemplateTail:()=>o6,isTemplateSpan:()=>xL,isTemplateTail:()=>Iz,isTextWhiteSpaceLike:()=>Whe,isThis:()=>H2,isThisContainerOrFunctionBlock:()=>ace,isThisIdentifier:()=>LT,isThisInTypeQuery:()=>mS,isThisInitializedDeclaration:()=>N6,isThisInitializedObjectBindingExpression:()=>sce,isThisProperty:()=>zw,isThisTypeNode:()=>u3,isThisTypeParameter:()=>lL,isThisTypePredicate:()=>hwe,isThrowStatement:()=>Fz,isToken:()=>Z1,isTokenKind:()=>Nj,isTraceEnabled:()=>ov,isTransientSymbol:()=>Zp,isTrivia:()=>KA,isTryStatement:()=>mO,isTupleTypeNode:()=>p2,isTypeAlias:()=>sR,isTypeAliasDeclaration:()=>Ep,isTypeAssertionExpression:()=>Fue,isTypeDeclaration:()=>o2,isTypeElement:()=>_T,isTypeKeyword:()=>ik,isTypeKeywordToken:()=>rY,isTypeKeywordTokenOrIdentifier:()=>b7,isTypeLiteralNode:()=>Rd,isTypeNode:()=>bi,isTypeNodeKind:()=>vW,isTypeOfExpression:()=>y2,isTypeOnlyExportDeclaration:()=>ise,isTypeOnlyImportDeclaration:()=>Mj,isTypeOnlyImportOrExportDeclaration:()=>I0,isTypeOperatorNode:()=>RS,isTypeParameterDeclaration:()=>_c,isTypePredicateNode:()=>l3,isTypeQueryNode:()=>vL,isTypeReferenceNode:()=>m_,isTypeReferenceType:()=>_6,isUMDExportSymbol:()=>o4,isUnaryExpression:()=>jj,isUnaryExpressionWithWrite:()=>mse,isUnicodeIdentifierStart:()=>W8,isUnionTypeNode:()=>DS,isUnparsedNode:()=>Oj,isUnparsedPrepend:()=>Wue,isUnparsedSource:()=>BT,isUnparsedTextLike:()=>nse,isUrl:()=>doe,isValidBigIntString:()=>v4,isValidESSymbolDeclaration:()=>ece,isValidTypeOnlyAliasUseSite:()=>TS,isValueSignatureDeclaration:()=>bce,isVarConst:()=>kh,isVariableDeclaration:()=>wi,isVariableDeclarationInVariableStatement:()=>L6,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>N0,isVariableDeclarationInitializedToRequire:()=>kH,isVariableDeclarationList:()=>pu,isVariableLike:()=>PA,isVariableLikeOrAccessor:()=>Qse,isVariableStatement:()=>Bc,isVoidExpression:()=>NS,isWatchSet:()=>Jwe,isWhileStatement:()=>JRe,isWhiteSpaceLike:()=>xh,isWhiteSpaceSingleLine:()=>Yp,isWithStatement:()=>Uue,isWriteAccess:()=>YI,isWriteOnlyAccess:()=>hW,isYieldExpression:()=>f3,jsxModeNeedsExplicitImport:()=>wY,keywordPart:()=>_d,last:()=>To,lastOrUndefined:()=>Os,length:()=>Fn,libMap:()=>jO,libs:()=>VO,lineBreakPart:()=>K2,linkNamePart:()=>$he,linkPart:()=>_Y,linkTextPart:()=>k7,listFiles:()=>Rq,loadModuleFromGlobalCache:()=>s_e,loadWithModeAwareCache:()=>hN,makeIdentifierFromModuleName:()=>Vse,makeImport:()=>Xg,makeImportIfNecessary:()=>jhe,makeStringLiteral:()=>S7,mangleScopedPackageName:()=>UL,map:()=>on,mapAllOrFail:()=>NU,mapDefined:()=>Zi,mapDefinedEntries:()=>bke,mapDefinedIterator:()=>UD,mapEntries:()=>uae,mapIterator:()=>RU,mapOneOrMany:()=>pge,mapToDisplayParts:()=>uv,matchFiles:()=>wW,matchPatternOrExact:()=>NW,matchedText:()=>Dae,matchesExclude:()=>G3,maybeBind:()=>ho,maybeSetLocalizedDiagnosticMessages:()=>mle,memoize:()=>zu,memoizeCached:()=>Eae,memoizeOne:()=>Jp,memoizeWeak:()=>wke,metadataHelper:()=>P4,min:()=>WU,minAndMax:()=>Nle,missingFileModifiedTime:()=>Eh,modifierToFlag:()=>gS,modifiersToFlags:()=>im,moduleOptionDeclaration:()=>NJ,moduleResolutionIsEqualTo:()=>wse,moduleResolutionNameAndModeGetter:()=>QL,moduleResolutionOptionDeclarations:()=>U3,moduleResolutionSupportsPackageJsonExportsAndImports:()=>bS,moduleResolutionUsesNodeModules:()=>T7,moduleSpecifiers:()=>Q0,moveEmitHelpers:()=>gue,moveRangeEnd:()=>i4,moveRangePastDecorators:()=>$y,moveRangePastModifiers:()=>yp,moveRangePos:()=>fb,moveSyntheticComments:()=>pue,mutateMap:()=>e2,mutateMapSkippingNewValues:()=>Oh,needsParentheses:()=>bY,needsScopeMarker:()=>l6,newCaseClauseTracker:()=>J7,newPrivateEnvironment:()=>Y_e,noEmitNotification:()=>cN,noEmitSubstitution:()=>zL,noTransformers:()=>HK,noTruncationMaximumTruncationLength:()=>x4,nodeCanBeDecorated:()=>M6,nodeHasName:()=>xw,nodeIsDecorated:()=>FA,nodeIsMissing:()=>rc,nodeIsPresent:()=>Pf,nodeIsSynthesized:()=>ws,nodeModuleNameResolver:()=>zfe,nodeModulesPathPart:()=>Wg,nodeNextJsonConfigResolver:()=>Jfe,nodeOrChildIsDecorated:()=>Kw,nodeOverlapsWithStartEnd:()=>HX,nodePosToString:()=>swe,nodeSeenTracker:()=>W2,nodeStartsNewLexicalEnvironment:()=>HH,nodeToDisplayParts:()=>B6e,noop:()=>Ba,noopFileWatcher:()=>B2,noopPush:()=>E8,normalizePath:()=>So,normalizeSlashes:()=>Al,not:()=>y8,notImplemented:()=>Sa,notImplementedResolver:()=>LF,nullNodeConverters:()=>dz,nullParenthesizerRules:()=>uz,nullTransformationContext:()=>Bh,objectAllocator:()=>ml,operatorPart:()=>ak,optionDeclarations:()=>Fh,optionMapToObject:()=>bJ,optionsAffectingProgramStructure:()=>GJ,optionsForBuild:()=>UJ,optionsForWatch:()=>HO,optionsHaveChanges:()=>LA,optionsHaveModuleResolutionChanges:()=>Cse,or:()=>Kp,orderedRemoveItem:()=>m8,orderedRemoveItemAt:()=>y0,outFile:()=>Ss,packageIdToPackageName:()=>p6,packageIdToString:()=>hT,padLeft:()=>J1,padRight:()=>Mke,paramHelper:()=>M4,parameterIsThisKeyword:()=>G0,parameterNamePart:()=>Khe,parseBaseNodeFactory:()=>_J,parseBigInt:()=>Ple,parseBuildCommand:()=>QOe,parseCommandLine:()=>$Oe,parseCommandLineWorker:()=>hJ,parseConfigFileTextToJson:()=>vJ,parseConfigFileWithSystem:()=>L8e,parseConfigHostFromCompilerHostLike:()=>FF,parseCustomTypeOption:()=>O3,parseIsolatedEntityName:()=>zS,parseIsolatedJSDocComment:()=>Mde,parseJSDocTypeExpressionForTests:()=>zOe,parseJsonConfigFileContent:()=>cNe,parseJsonSourceFileConfigFileContent:()=>MO,parseJsonText:()=>wO,parseListTypeOption:()=>Kde,parseNodeFactory:()=>fm,parseNodeModuleFromPath:()=>XJ,parsePackageName:()=>ZJ,parsePseudoBigInt:()=>iL,parseValidBigInt:()=>BW,patchWriteFileEnsuringDirectory:()=>uoe,pathContainsNodeModules:()=>JS,pathIsAbsolute:()=>nI,pathIsBareSpecifier:()=>cj,pathIsRelative:()=>Jd,patternText:()=>kae,perfLogger:()=>fp,performIncrementalCompilation:()=>D8e,performance:()=>ZD,plainJSErrors:()=>jF,positionBelongsToNode:()=>WX,positionIsASICandidate:()=>N7,positionIsSynthesized:()=>vp,positionsAreOnSameLine:()=>Bf,preProcessFile:()=>qge,probablyUsesSemicolons:()=>P7,processCommentPragmas:()=>dJ,processPragmasIntoFields:()=>fJ,processTaggedTemplateExpression:()=>OK,programContainsEsModules:()=>Vhe,programContainsModules:()=>Uhe,projectReferenceIsEqualTo:()=>tH,propKeyHelper:()=>X4,propertyNamePart:()=>qhe,pseudoBigIntToString:()=>j0,punctuationPart:()=>Yl,pushIfUnique:()=>Of,quote:()=>ck,quotePreferenceFromString:()=>sY,rangeContainsPosition:()=>wN,rangeContainsPositionExclusive:()=>RN,rangeContainsRange:()=>Od,rangeContainsRangeExclusive:()=>bhe,rangeContainsStartEnd:()=>ON,rangeEndIsOnSameLineAsRangeStart:()=>DR,rangeEndPositionsAreOnSameLine:()=>rle,rangeEquals:()=>GU,rangeIsOnSingleLine:()=>DT,rangeOfNode:()=>MW,rangeOfTypeParameters:()=>FW,rangeOverlapsWithStartEnd:()=>tk,rangeStartIsOnSameLineAsRangeEnd:()=>ile,rangeStartPositionsAreOnSameLine:()=>a4,readBuilderProgram:()=>QF,readConfigFile:()=>OO,readHelper:()=>K4,readJson:()=>JI,readJsonConfigFile:()=>$de,readJsonOrUndefined:()=>fW,realizeDiagnostics:()=>b$,reduceEachLeadingCommentRange:()=>goe,reduceEachTrailingCommentRange:()=>yoe,reduceLeft:()=>ou,reduceLeftIterator:()=>yke,reducePathComponents:()=>oT,refactor:()=>Ok,regExpEscape:()=>lRe,relativeComplement:()=>fae,removeAllComments:()=>ZR,removeEmitHelper:()=>GRe,removeExtension:()=>UR,removeFileExtension:()=>ld,removeIgnoredPath:()=>Dq,removeMinAndVersionNumbers:()=>Lae,removeOptionality:()=>whe,removePrefix:()=>QC,removeSuffix:()=>pA,removeTrailingDirectorySeparator:()=>sT,repeatString:()=>UN,replaceElement:()=>UU,resolutionExtensionIsTSOrJson:()=>VR,resolveConfigFileProjectName:()=>Hq,resolveJSModule:()=>jfe,resolveModuleName:()=>FL,resolveModuleNameFromCache:()=>FNe,resolvePackageNameToPackageJson:()=>wNe,resolvePath:()=>Fy,resolveProjectReferencePath:()=>$L,resolveTripleslashReference:()=>wF,resolveTypeReferenceDirective:()=>HJ,resolvingEmptyArray:()=>S4,restHelper:()=>H4,returnFalse:()=>m0,returnNoopFileWatcher:()=>TN,returnTrue:()=>h0,returnUndefined:()=>Qv,returnsPromise:()=>QY,runInitializersHelper:()=>G4,sameFlatMap:()=>lae,sameMap:()=>Tl,sameMapping:()=>APe,scanShebangTrivia:()=>yj,scanTokenAtPosition:()=>Xse,scanner:()=>$l,screenStartingMessageCodes:()=>$F,semanticDiagnosticsOptionDeclarations:()=>PJ,serializeCompilerOptions:()=>TJ,server:()=>dhe,servicesVersion:()=>m$,setCommentRange:()=>hl,setConfigFileInOptions:()=>xJ,setConstantValue:()=>hue,setEachParent:()=>i2,setEmitFlags:()=>Jn,setFunctionNameHelper:()=>Y4,setGetSourceFileAsHashVersioned:()=>YF,setIdentifierAutoGenerate:()=>iO,setIdentifierGeneratedImportReference:()=>bue,setIdentifierTypeArguments:()=>Ug,setInternalEmitFlags:()=>eO,setLocalizedDiagnosticMessages:()=>ple,setModuleDefaultHelper:()=>Z4,setNodeFlags:()=>Gle,setObjectAllocator:()=>_le,setOriginalNode:()=>Ir,setParent:()=>go,setParentRecursive:()=>Zy,setPrivateIdentifier:()=>JT,setResolvedModule:()=>kse,setResolvedTypeReferenceDirective:()=>Dse,setSnippetElement:()=>Ez,setSourceMapRange:()=>Ho,setStackTraceLimit:()=>dDe,setStartsOnNewLine:()=>vz,setSyntheticLeadingComments:()=>W0,setSyntheticTrailingComments:()=>u2,setSys:()=>bDe,setSysLog:()=>ooe,setTextRange:()=>it,setTextRangeEnd:()=>r2,setTextRangePos:()=>aL,setTextRangePosEnd:()=>om,setTextRangePosWidth:()=>oL,setTokenSourceMapRange:()=>_ue,setTypeNode:()=>yue,setUILocale:()=>Aae,setValueDeclaration:()=>rR,shouldAllowImportingTsExtension:()=>VL,shouldPreserveConstEnums:()=>U0,shouldUseUriStyleNodeCoreModules:()=>W7,showModuleSpecifier:()=>lle,signatureHasLiteralTypes:()=>_K,signatureHasRestParameter:()=>Xl,signatureToDisplayParts:()=>pY,single:()=>BU,singleElementArray:()=>aT,singleIterator:()=>Eke,singleOrMany:()=>zp,singleOrUndefined:()=>Wp,skipAlias:()=>wd,skipAssertions:()=>fOe,skipConstraint:()=>iY,skipOuterExpressions:()=>ql,skipParentheses:()=>vs,skipPartiallyEmittedExpressions:()=>a_,skipTrivia:()=>xo,skipTypeChecking:()=>rL,skipTypeParentheses:()=>FH,skipWhile:()=>Nae,sliceAfter:()=>PW,some:()=>vt,sort:()=>XC,sortAndDeduplicate:()=>HD,sortAndDeduplicateDiagnostics:()=>vA,sourceFileAffectingCompilerOptions:()=>V3,sourceFileMayBeEmitted:()=>pS,sourceMapCommentRegExp:()=>hF,sourceMapCommentRegExpDontCareLineStart:()=>TK,spacePart:()=>Qs,spanMap:()=>c8,spreadArrayHelper:()=>q4,stableSort:()=>Ag,startEndContainsRange:()=>jX,startEndOverlapsWithStartEnd:()=>l7,startOnNewLine:()=>mu,startTracing:()=>eoe,startsWith:()=>na,startsWithDirectory:()=>fj,startsWithUnderscore:()=>DY,startsWithUseStrict:()=>nde,stringContains:()=>jl,stringContainsAt:()=>yge,stringToToken:()=>lT,stripQuotes:()=>u_,supportedDeclarationExtensions:()=>I4,supportedJSExtensions:()=>cz,supportedJSExtensionsFlat:()=>dL,supportedLocaleDirectories:()=>Qj,supportedTSExtensions:()=>c2,supportedTSExtensionsFlat:()=>sz,supportedTSImplementationExtensions:()=>L4,suppressLeadingAndTrailingTrivia:()=>pd,suppressLeadingTrivia:()=>D7,suppressTrailingTrivia:()=>ige,symbolEscapedNameNoDefault:()=>A7,symbolName:()=>fc,symbolNameNoDefault:()=>x7,symbolPart:()=>Jhe,symbolToDisplayParts:()=>ok,syntaxMayBeASICandidate:()=>NY,syntaxRequiresTrailingSemicolonOrASI:()=>O7,sys:()=>xl,sysLog:()=>ow,tagNamesAreEquivalent:()=>yb,takeWhile:()=>v8,targetOptionDeclaration:()=>zO,templateObjectHelper:()=>J4,testFormatSettings:()=>_he,textChangeRangeIsUnchanged:()=>Moe,textChangeRangeNewSpan:()=>uI,textChanges:()=>nr,textOrKeywordPart:()=>fY,textPart:()=>tf,textRangeContainsPositionInclusive:()=>Y8,textSpanContainsPosition:()=>bj,textSpanContainsTextSpan:()=>Roe,textSpanEnd:()=>wl,textSpanIntersection:()=>Poe,textSpanIntersectsWith:()=>$8,textSpanIntersectsWithPosition:()=>Noe,textSpanIntersectsWithTextSpan:()=>FDe,textSpanIsEmpty:()=>woe,textSpanOverlap:()=>Ooe,textSpanOverlapsWith:()=>MDe,textSpansEqual:()=>J2,textToKeywordObj:()=>Ew,timestamp:()=>Ms,toArray:()=>qD,toBuilderFileEmit:()=>lme,toBuilderStateFileInfoForMultiEmit:()=>cme,toEditorSettings:()=>tP,toFileNameLowerCase:()=>n_,toLowerCase:()=>bae,toPath:()=>Ts,toProgramEmitPending:()=>ume,tokenIsIdentifierOrKeyword:()=>Su,tokenIsIdentifierOrKeywordOrGreaterThan:()=>moe,tokenToString:()=>Xa,trace:()=>Xi,tracing:()=>ai,tracingEnabled:()=>ew,transform:()=>p3e,transformClassFields:()=>tpe,transformDeclarations:()=>UK,transformECMAScriptModule:()=>GK,transformES2015:()=>mpe,transformES2016:()=>_pe,transformES2017:()=>ape,transformES2018:()=>ope,transformES2019:()=>spe,transformES2020:()=>cpe,transformES2021:()=>lpe,transformES5:()=>hpe,transformESDecorators:()=>ipe,transformESNext:()=>upe,transformGenerators:()=>gpe,transformJsx:()=>dpe,transformLegacyDecorators:()=>rpe,transformModule:()=>FK,transformNodeModule:()=>bpe,transformNodes:()=>lN,transformSystemModule:()=>vpe,transformTypeScript:()=>Z_e,transpile:()=>U4e,transpileModule:()=>iye,transpileOptionValueCompilerOptions:()=>BJ,trimString:()=>v0,trimStringEnd:()=>$D,trimStringStart:()=>ZC,tryAddToSet:()=>_0,tryAndIgnoreErrors:()=>B7,tryCast:()=>zr,tryDirectoryExists:()=>G7,tryExtractTSExtension:()=>r4,tryFileExists:()=>F7,tryGetClassExtendingExpressionWithTypeArguments:()=>lW,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>uW,tryGetDirectories:()=>M7,tryGetExtensionFromPath:()=>Hm,tryGetImportFromModuleSpecifier:()=>oR,tryGetJSDocSatisfiesTypeNode:()=>T4,tryGetModuleNameFromFile:()=>xO,tryGetModuleSpecifierFromDeclaration:()=>iR,tryGetNativePerformanceHooks:()=>Yae,tryGetPropertyAccessOrIdentifierToString:()=>kR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>A3,tryGetSourceMappingURL:()=>G_e,tryGetTextOfPropertyName:()=>T6,tryIOAndConsumeErrors:()=>U7,tryParsePattern:()=>n2,tryParsePatterns:()=>g4,tryParseRawSourceMap:()=>bK,tryReadDirectory:()=>xY,tryReadFile:()=>NO,tryRemoveDirectoryPrefix:()=>IW,tryRemoveExtension:()=>Ole,tryRemovePrefix:()=>KU,tryRemoveSuffix:()=>Iae,typeAcquisitionDeclarations:()=>H3,typeAliasNamePart:()=>Xhe,typeDirectiveIsEqualTo:()=>Rse,typeKeywords:()=>K7,typeParameterNamePart:()=>Yhe,typeReferenceResolutionNameAndModeGetter:()=>yN,typeToDisplayParts:()=>zN,unchangedPollThresholds:()=>lw,unchangedTextChangeRange:()=>$j,unescapeLeadingUnderscores:()=>Gi,unmangleScopedPackageName:()=>iF,unorderedRemoveItem:()=>YD,unorderedRemoveItemAt:()=>zU,unreachableCodeIsError:()=>Tle,unusedLabelIsError:()=>Sle,unwrapInnermostStatementOfLabel:()=>xH,updateErrorForNoInputFiles:()=>CJ,updateLanguageServiceSourceFile:()=>_$,updateMissingFilePathsWatch:()=>Gpe,updatePackageJsonWatch:()=>YMe,updateResolutionField:()=>N2,updateSharedExtendedConfigFileWatcher:()=>YK,updateSourceFile:()=>uJ,updateWatchingWildcardDirectories:()=>kF,usesExtensionsOnImports:()=>Dle,usingSingleLineStringWriter:()=>SI,utf16EncodeAsString:()=>lI,validateLocaleAndSetLanguage:()=>UDe,valuesHelper:()=>$4,version:()=>Rf,versionMajorMinor:()=>Sg,visitArray:()=>vK,visitCommaListElements:()=>aN,visitEachChild:()=>xn,visitFunctionBody:()=>Zd,visitIterationBody:()=>jf,visitLexicalEnvironment:()=>mF,visitNode:()=>$e,visitNodes:()=>On,visitParameterList:()=>Sc,walkUpBindingElementsAndPatterns:()=>bA,walkUpLexicalEnvironments:()=>X_e,walkUpOuterExpressions:()=>rde,walkUpParenthesizedExpressions:()=>qy,walkUpParenthesizedTypes:()=>dR,walkUpParenthesizedTypesAndGetParentAndChild:()=>Tce,whitespaceOrMapCommentRegExp:()=>gF,writeCommentRange:()=>$A,writeFile:()=>BI,writeFileEnsuringDirectories:()=>nW,zipToModeAwareCache:()=>qJ,zipWith:()=>kU});var uxe=gt({"src/typescript/_namespaces/ts.ts"(){"use strict";fa(),r7(),Fr(),HG()}}),dJe=hs({"src/typescript/typescript.ts"(e,t){uxe(),uxe(),typeof console<"u"&&(L.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=lxe}});return dJe()})();typeof IU<"u"&&IU.exports&&(IU.exports=f0);var Eit=f0.createClassifier,iae=f0.createLanguageService,Tit=f0.displayPartsToString,Sit=f0.EndOfLineState,xit=f0.flattenDiagnosticMessageText,Ait=f0.IndentStyle,uA=f0.ScriptKind,Cit=f0.ScriptTarget,Iit=f0.TokenClass,aae=f0;var $i={};$i["lib.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es5" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| `;$i["lib.decorators.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /**
| * The decorator context types provided to class element decorators.
| */
| type ClassMemberDecoratorContext =
| | ClassMethodDecoratorContext
| | ClassGetterDecoratorContext
| | ClassSetterDecoratorContext
| | ClassFieldDecoratorContext
| | ClassAccessorDecoratorContext
| ;
|
| /**
| * The decorator context types provided to any decorator.
| */
| type DecoratorContext =
| | ClassDecoratorContext
| | ClassMemberDecoratorContext
| ;
|
| /**
| * Context provided to a class decorator.
| * @template Class The type of the decorated class associated with this context.
| */
| interface ClassDecoratorContext<
| Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
| > {
| /** The kind of element that was decorated. */
| readonly kind: "class";
|
| /** The name of the decorated class. */
| readonly name: string | undefined;
|
| /**
| * Adds a callback to be invoked after the class definition has been finalized.
| *
| * @example
| * \`\`\`ts
| * function customElement(name: string): ClassDecoratorFunction {
| * return (target, context) => {
| * context.addInitializer(function () {
| * customElements.define(name, this);
| * });
| * }
| * }
| *
| * @customElement("my-element")
| * class MyElement {}
| * \`\`\`
| */
| addInitializer(initializer: (this: Class) => void): void;
| }
|
| /**
| * Context provided to a class method decorator.
| * @template This The type on which the class element will be defined. For a static class element, this will be
| * the type of the constructor. For a non-static class element, this will be the type of the instance.
| * @template Value The type of the decorated class method.
| */
| interface ClassMethodDecoratorContext<
| This = unknown,
| Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
| > {
| /** The kind of class element that was decorated. */
| readonly kind: "method";
|
| /** The name of the decorated class element. */
| readonly name: string | symbol;
|
| /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
| readonly static: boolean;
|
| /** A value indicating whether the class element has a private name. */
| readonly private: boolean;
|
| /** An object that can be used to access the current value of the class element at runtime. */
| readonly access: {
| /**
| * Determines whether an object has a property with the same name as the decorated element.
| */
| has(object: This): boolean;
| /**
| * Gets the current value of the method from the provided object.
| *
| * @example
| * let fn = context.access.get(instance);
| */
| get(object: This): Value;
| };
|
| /**
| * Adds a callback to be invoked either before static initializers are run (when
| * decorating a \`static\` element), or before instance initializers are run (when
| * decorating a non-\`static\` element).
| *
| * @example
| * \`\`\`ts
| * const bound: ClassMethodDecoratorFunction = (value, context) {
| * if (context.private) throw new TypeError("Not supported on private methods.");
| * context.addInitializer(function () {
| * this[context.name] = this[context.name].bind(this);
| * });
| * }
| *
| * class C {
| * message = "Hello";
| *
| * @bound
| * m() {
| * console.log(this.message);
| * }
| * }
| * \`\`\`
| */
| addInitializer(initializer: (this: This) => void): void;
| }
|
| /**
| * Context provided to a class getter decorator.
| * @template This The type on which the class element will be defined. For a static class element, this will be
| * the type of the constructor. For a non-static class element, this will be the type of the instance.
| * @template Value The property type of the decorated class getter.
| */
| interface ClassGetterDecoratorContext<
| This = unknown,
| Value = unknown,
| > {
| /** The kind of class element that was decorated. */
| readonly kind: "getter";
|
| /** The name of the decorated class element. */
| readonly name: string | symbol;
|
| /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
| readonly static: boolean;
|
| /** A value indicating whether the class element has a private name. */
| readonly private: boolean;
|
| /** An object that can be used to access the current value of the class element at runtime. */
| readonly access: {
| /**
| * Determines whether an object has a property with the same name as the decorated element.
| */
| has(object: This): boolean;
| /**
| * Invokes the getter on the provided object.
| *
| * @example
| * let value = context.access.get(instance);
| */
| get(object: This): Value;
| };
|
| /**
| * Adds a callback to be invoked either before static initializers are run (when
| * decorating a \`static\` element), or before instance initializers are run (when
| * decorating a non-\`static\` element).
| */
| addInitializer(initializer: (this: This) => void): void;
| }
|
| /**
| * Context provided to a class setter decorator.
| * @template This The type on which the class element will be defined. For a static class element, this will be
| * the type of the constructor. For a non-static class element, this will be the type of the instance.
| * @template Value The type of the decorated class setter.
| */
| interface ClassSetterDecoratorContext<
| This = unknown,
| Value = unknown,
| > {
| /** The kind of class element that was decorated. */
| readonly kind: "setter";
|
| /** The name of the decorated class element. */
| readonly name: string | symbol;
|
| /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
| readonly static: boolean;
|
| /** A value indicating whether the class element has a private name. */
| readonly private: boolean;
|
| /** An object that can be used to access the current value of the class element at runtime. */
| readonly access: {
| /**
| * Determines whether an object has a property with the same name as the decorated element.
| */
| has(object: This): boolean;
| /**
| * Invokes the setter on the provided object.
| *
| * @example
| * context.access.set(instance, value);
| */
| set(object: This, value: Value): void;
| };
|
| /**
| * Adds a callback to be invoked either before static initializers are run (when
| * decorating a \`static\` element), or before instance initializers are run (when
| * decorating a non-\`static\` element).
| */
| addInitializer(initializer: (this: This) => void): void;
| }
|
| /**
| * Context provided to a class \`accessor\` field decorator.
| * @template This The type on which the class element will be defined. For a static class element, this will be
| * the type of the constructor. For a non-static class element, this will be the type of the instance.
| * @template Value The type of decorated class field.
| */
| interface ClassAccessorDecoratorContext<
| This = unknown,
| Value = unknown,
| > {
| /** The kind of class element that was decorated. */
| readonly kind: "accessor";
|
| /** The name of the decorated class element. */
| readonly name: string | symbol;
|
| /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
| readonly static: boolean;
|
| /** A value indicating whether the class element has a private name. */
| readonly private: boolean;
|
| /** An object that can be used to access the current value of the class element at runtime. */
| readonly access: {
| /**
| * Determines whether an object has a property with the same name as the decorated element.
| */
| has(object: This): boolean;
|
| /**
| * Invokes the getter on the provided object.
| *
| * @example
| * let value = context.access.get(instance);
| */
| get(object: This): Value;
|
| /**
| * Invokes the setter on the provided object.
| *
| * @example
| * context.access.set(instance, value);
| */
| set(object: This, value: Value): void;
| };
|
| /**
| * Adds a callback to be invoked either before static initializers are run (when
| * decorating a \`static\` element), or before instance initializers are run (when
| * decorating a non-\`static\` element).
| */
| addInitializer(initializer: (this: This) => void): void;
| }
|
| /**
| * Describes the target provided to class \`accessor\` field decorators.
| * @template This The \`this\` type to which the target applies.
| * @template Value The property type for the class \`accessor\` field.
| */
| interface ClassAccessorDecoratorTarget<This, Value> {
| /**
| * Invokes the getter that was defined prior to decorator application.
| *
| * @example
| * let value = target.get.call(instance);
| */
| get(this: This): Value;
|
| /**
| * Invokes the setter that was defined prior to decorator application.
| *
| * @example
| * target.set.call(instance, value);
| */
| set(this: This, value: Value): void;
| }
|
| /**
| * Describes the allowed return value from a class \`accessor\` field decorator.
| * @template This The \`this\` type to which the target applies.
| * @template Value The property type for the class \`accessor\` field.
| */
| interface ClassAccessorDecoratorResult<This, Value> {
| /**
| * An optional replacement getter function. If not provided, the existing getter function is used instead.
| */
| get?(this: This): Value;
|
| /**
| * An optional replacement setter function. If not provided, the existing setter function is used instead.
| */
| set?(this: This, value: Value): void;
|
| /**
| * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
| * @param value The incoming initializer value.
| * @returns The replacement initializer value.
| */
| init?(this: This, value: Value): Value;
| }
|
| /**
| * Context provided to a class field decorator.
| * @template This The type on which the class element will be defined. For a static class element, this will be
| * the type of the constructor. For a non-static class element, this will be the type of the instance.
| * @template Value The type of the decorated class field.
| */
| interface ClassFieldDecoratorContext<
| This = unknown,
| Value = unknown,
| > {
| /** The kind of class element that was decorated. */
| readonly kind: "field";
|
| /** The name of the decorated class element. */
| readonly name: string | symbol;
|
| /** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
| readonly static: boolean;
|
| /** A value indicating whether the class element has a private name. */
| readonly private: boolean;
|
| /** An object that can be used to access the current value of the class element at runtime. */
| readonly access: {
| /**
| * Determines whether an object has a property with the same name as the decorated element.
| */
| has(object: This): boolean;
|
| /**
| * Gets the value of the field on the provided object.
| */
| get(object: This): Value;
|
| /**
| * Sets the value of the field on the provided object.
| */
| set(object: This, value: Value): void;
| };
|
| /**
| * Adds a callback to be invoked either before static initializers are run (when
| * decorating a \`static\` element), or before instance initializers are run (when
| * decorating a non-\`static\` element).
| */
| addInitializer(initializer: (this: This) => void): void;
| }
| `;$i["lib.decorators.legacy.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
| declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
| declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
| declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
| `;$i["lib.dom.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /////////////////////////////
| /// Window APIs
| /////////////////////////////
|
| interface AddEventListenerOptions extends EventListenerOptions {
| once?: boolean;
| passive?: boolean;
| signal?: AbortSignal;
| }
|
| interface AesCbcParams extends Algorithm {
| iv: BufferSource;
| }
|
| interface AesCtrParams extends Algorithm {
| counter: BufferSource;
| length: number;
| }
|
| interface AesDerivedKeyParams extends Algorithm {
| length: number;
| }
|
| interface AesGcmParams extends Algorithm {
| additionalData?: BufferSource;
| iv: BufferSource;
| tagLength?: number;
| }
|
| interface AesKeyAlgorithm extends KeyAlgorithm {
| length: number;
| }
|
| interface AesKeyGenParams extends Algorithm {
| length: number;
| }
|
| interface Algorithm {
| name: string;
| }
|
| interface AnalyserOptions extends AudioNodeOptions {
| fftSize?: number;
| maxDecibels?: number;
| minDecibels?: number;
| smoothingTimeConstant?: number;
| }
|
| interface AnimationEventInit extends EventInit {
| animationName?: string;
| elapsedTime?: number;
| pseudoElement?: string;
| }
|
| interface AnimationPlaybackEventInit extends EventInit {
| currentTime?: CSSNumberish | null;
| timelineTime?: CSSNumberish | null;
| }
|
| interface AssignedNodesOptions {
| flatten?: boolean;
| }
|
| interface AudioBufferOptions {
| length: number;
| numberOfChannels?: number;
| sampleRate: number;
| }
|
| interface AudioBufferSourceOptions {
| buffer?: AudioBuffer | null;
| detune?: number;
| loop?: boolean;
| loopEnd?: number;
| loopStart?: number;
| playbackRate?: number;
| }
|
| interface AudioConfiguration {
| bitrate?: number;
| channels?: string;
| contentType: string;
| samplerate?: number;
| spatialRendering?: boolean;
| }
|
| interface AudioContextOptions {
| latencyHint?: AudioContextLatencyCategory | number;
| sampleRate?: number;
| }
|
| interface AudioNodeOptions {
| channelCount?: number;
| channelCountMode?: ChannelCountMode;
| channelInterpretation?: ChannelInterpretation;
| }
|
| interface AudioProcessingEventInit extends EventInit {
| inputBuffer: AudioBuffer;
| outputBuffer: AudioBuffer;
| playbackTime: number;
| }
|
| interface AudioTimestamp {
| contextTime?: number;
| performanceTime?: DOMHighResTimeStamp;
| }
|
| interface AudioWorkletNodeOptions extends AudioNodeOptions {
| numberOfInputs?: number;
| numberOfOutputs?: number;
| outputChannelCount?: number[];
| parameterData?: Record<string, number>;
| processorOptions?: any;
| }
|
| interface AuthenticationExtensionsClientInputs {
| appid?: string;
| credProps?: boolean;
| hmacCreateSecret?: boolean;
| }
|
| interface AuthenticationExtensionsClientOutputs {
| appid?: boolean;
| credProps?: CredentialPropertiesOutput;
| hmacCreateSecret?: boolean;
| }
|
| interface AuthenticatorSelectionCriteria {
| authenticatorAttachment?: AuthenticatorAttachment;
| requireResidentKey?: boolean;
| residentKey?: ResidentKeyRequirement;
| userVerification?: UserVerificationRequirement;
| }
|
| interface BiquadFilterOptions extends AudioNodeOptions {
| Q?: number;
| detune?: number;
| frequency?: number;
| gain?: number;
| type?: BiquadFilterType;
| }
|
| interface BlobEventInit {
| data: Blob;
| timecode?: DOMHighResTimeStamp;
| }
|
| interface BlobPropertyBag {
| endings?: EndingType;
| type?: string;
| }
|
| interface CSSStyleSheetInit {
| baseURL?: string;
| disabled?: boolean;
| media?: MediaList | string;
| }
|
| interface CacheQueryOptions {
| ignoreMethod?: boolean;
| ignoreSearch?: boolean;
| ignoreVary?: boolean;
| }
|
| interface CanvasRenderingContext2DSettings {
| alpha?: boolean;
| colorSpace?: PredefinedColorSpace;
| desynchronized?: boolean;
| willReadFrequently?: boolean;
| }
|
| interface ChannelMergerOptions extends AudioNodeOptions {
| numberOfInputs?: number;
| }
|
| interface ChannelSplitterOptions extends AudioNodeOptions {
| numberOfOutputs?: number;
| }
|
| interface CheckVisibilityOptions {
| checkOpacity?: boolean;
| checkVisibilityCSS?: boolean;
| }
|
| interface ClientQueryOptions {
| includeUncontrolled?: boolean;
| type?: ClientTypes;
| }
|
| interface ClipboardEventInit extends EventInit {
| clipboardData?: DataTransfer | null;
| }
|
| interface ClipboardItemOptions {
| presentationStyle?: PresentationStyle;
| }
|
| interface CloseEventInit extends EventInit {
| code?: number;
| reason?: string;
| wasClean?: boolean;
| }
|
| interface CompositionEventInit extends UIEventInit {
| data?: string;
| }
|
| interface ComputedEffectTiming extends EffectTiming {
| activeDuration?: CSSNumberish;
| currentIteration?: number | null;
| endTime?: CSSNumberish;
| localTime?: CSSNumberish | null;
| progress?: number | null;
| startTime?: CSSNumberish;
| }
|
| interface ComputedKeyframe {
| composite: CompositeOperationOrAuto;
| computedOffset: number;
| easing: string;
| offset: number | null;
| [property: string]: string | number | null | undefined;
| }
|
| interface ConstantSourceOptions {
| offset?: number;
| }
|
| interface ConstrainBooleanParameters {
| exact?: boolean;
| ideal?: boolean;
| }
|
| interface ConstrainDOMStringParameters {
| exact?: string | string[];
| ideal?: string | string[];
| }
|
| interface ConstrainDoubleRange extends DoubleRange {
| exact?: number;
| ideal?: number;
| }
|
| interface ConstrainULongRange extends ULongRange {
| exact?: number;
| ideal?: number;
| }
|
| interface ConvolverOptions extends AudioNodeOptions {
| buffer?: AudioBuffer | null;
| disableNormalization?: boolean;
| }
|
| interface CredentialCreationOptions {
| publicKey?: PublicKeyCredentialCreationOptions;
| signal?: AbortSignal;
| }
|
| interface CredentialPropertiesOutput {
| rk?: boolean;
| }
|
| interface CredentialRequestOptions {
| mediation?: CredentialMediationRequirement;
| publicKey?: PublicKeyCredentialRequestOptions;
| signal?: AbortSignal;
| }
|
| interface CryptoKeyPair {
| privateKey: CryptoKey;
| publicKey: CryptoKey;
| }
|
| interface CustomEventInit<T = any> extends EventInit {
| detail?: T;
| }
|
| interface DOMMatrix2DInit {
| a?: number;
| b?: number;
| c?: number;
| d?: number;
| e?: number;
| f?: number;
| m11?: number;
| m12?: number;
| m21?: number;
| m22?: number;
| m41?: number;
| m42?: number;
| }
|
| interface DOMMatrixInit extends DOMMatrix2DInit {
| is2D?: boolean;
| m13?: number;
| m14?: number;
| m23?: number;
| m24?: number;
| m31?: number;
| m32?: number;
| m33?: number;
| m34?: number;
| m43?: number;
| m44?: number;
| }
|
| interface DOMPointInit {
| w?: number;
| x?: number;
| y?: number;
| z?: number;
| }
|
| interface DOMQuadInit {
| p1?: DOMPointInit;
| p2?: DOMPointInit;
| p3?: DOMPointInit;
| p4?: DOMPointInit;
| }
|
| interface DOMRectInit {
| height?: number;
| width?: number;
| x?: number;
| y?: number;
| }
|
| interface DelayOptions extends AudioNodeOptions {
| delayTime?: number;
| maxDelayTime?: number;
| }
|
| interface DeviceMotionEventAccelerationInit {
| x?: number | null;
| y?: number | null;
| z?: number | null;
| }
|
| interface DeviceMotionEventInit extends EventInit {
| acceleration?: DeviceMotionEventAccelerationInit;
| accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
| interval?: number;
| rotationRate?: DeviceMotionEventRotationRateInit;
| }
|
| interface DeviceMotionEventRotationRateInit {
| alpha?: number | null;
| beta?: number | null;
| gamma?: number | null;
| }
|
| interface DeviceOrientationEventInit extends EventInit {
| absolute?: boolean;
| alpha?: number | null;
| beta?: number | null;
| gamma?: number | null;
| }
|
| interface DisplayMediaStreamOptions {
| audio?: boolean | MediaTrackConstraints;
| video?: boolean | MediaTrackConstraints;
| }
|
| interface DocumentTimelineOptions {
| originTime?: DOMHighResTimeStamp;
| }
|
| interface DoubleRange {
| max?: number;
| min?: number;
| }
|
| interface DragEventInit extends MouseEventInit {
| dataTransfer?: DataTransfer | null;
| }
|
| interface DynamicsCompressorOptions extends AudioNodeOptions {
| attack?: number;
| knee?: number;
| ratio?: number;
| release?: number;
| threshold?: number;
| }
|
| interface EcKeyAlgorithm extends KeyAlgorithm {
| namedCurve: NamedCurve;
| }
|
| interface EcKeyGenParams extends Algorithm {
| namedCurve: NamedCurve;
| }
|
| interface EcKeyImportParams extends Algorithm {
| namedCurve: NamedCurve;
| }
|
| interface EcdhKeyDeriveParams extends Algorithm {
| public: CryptoKey;
| }
|
| interface EcdsaParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| }
|
| interface EffectTiming {
| delay?: number;
| direction?: PlaybackDirection;
| duration?: number | string;
| easing?: string;
| endDelay?: number;
| fill?: FillMode;
| iterationStart?: number;
| iterations?: number;
| playbackRate?: number;
| }
|
| interface ElementCreationOptions {
| is?: string;
| }
|
| interface ElementDefinitionOptions {
| extends?: string;
| }
|
| interface ErrorEventInit extends EventInit {
| colno?: number;
| error?: any;
| filename?: string;
| lineno?: number;
| message?: string;
| }
|
| interface EventInit {
| bubbles?: boolean;
| cancelable?: boolean;
| composed?: boolean;
| }
|
| interface EventListenerOptions {
| capture?: boolean;
| }
|
| interface EventModifierInit extends UIEventInit {
| altKey?: boolean;
| ctrlKey?: boolean;
| metaKey?: boolean;
| modifierAltGraph?: boolean;
| modifierCapsLock?: boolean;
| modifierFn?: boolean;
| modifierFnLock?: boolean;
| modifierHyper?: boolean;
| modifierNumLock?: boolean;
| modifierScrollLock?: boolean;
| modifierSuper?: boolean;
| modifierSymbol?: boolean;
| modifierSymbolLock?: boolean;
| shiftKey?: boolean;
| }
|
| interface EventSourceInit {
| withCredentials?: boolean;
| }
|
| interface FilePropertyBag extends BlobPropertyBag {
| lastModified?: number;
| }
|
| interface FileSystemFlags {
| create?: boolean;
| exclusive?: boolean;
| }
|
| interface FileSystemGetDirectoryOptions {
| create?: boolean;
| }
|
| interface FileSystemGetFileOptions {
| create?: boolean;
| }
|
| interface FileSystemRemoveOptions {
| recursive?: boolean;
| }
|
| interface FocusEventInit extends UIEventInit {
| relatedTarget?: EventTarget | null;
| }
|
| interface FocusOptions {
| preventScroll?: boolean;
| }
|
| interface FontFaceDescriptors {
| ascentOverride?: string;
| descentOverride?: string;
| display?: FontDisplay;
| featureSettings?: string;
| lineGapOverride?: string;
| stretch?: string;
| style?: string;
| unicodeRange?: string;
| variant?: string;
| weight?: string;
| }
|
| interface FontFaceSetLoadEventInit extends EventInit {
| fontfaces?: FontFace[];
| }
|
| interface FormDataEventInit extends EventInit {
| formData: FormData;
| }
|
| interface FullscreenOptions {
| navigationUI?: FullscreenNavigationUI;
| }
|
| interface GainOptions extends AudioNodeOptions {
| gain?: number;
| }
|
| interface GamepadEventInit extends EventInit {
| gamepad: Gamepad;
| }
|
| interface GetAnimationsOptions {
| subtree?: boolean;
| }
|
| interface GetNotificationOptions {
| tag?: string;
| }
|
| interface GetRootNodeOptions {
| composed?: boolean;
| }
|
| interface HashChangeEventInit extends EventInit {
| newURL?: string;
| oldURL?: string;
| }
|
| interface HkdfParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| info: BufferSource;
| salt: BufferSource;
| }
|
| interface HmacImportParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| length?: number;
| }
|
| interface HmacKeyAlgorithm extends KeyAlgorithm {
| hash: KeyAlgorithm;
| length: number;
| }
|
| interface HmacKeyGenParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| length?: number;
| }
|
| interface IDBDatabaseInfo {
| name?: string;
| version?: number;
| }
|
| interface IDBIndexParameters {
| multiEntry?: boolean;
| unique?: boolean;
| }
|
| interface IDBObjectStoreParameters {
| autoIncrement?: boolean;
| keyPath?: string | string[] | null;
| }
|
| interface IDBTransactionOptions {
| durability?: IDBTransactionDurability;
| }
|
| interface IDBVersionChangeEventInit extends EventInit {
| newVersion?: number | null;
| oldVersion?: number;
| }
|
| interface IIRFilterOptions extends AudioNodeOptions {
| feedback: number[];
| feedforward: number[];
| }
|
| interface IdleRequestOptions {
| timeout?: number;
| }
|
| interface ImageBitmapOptions {
| colorSpaceConversion?: ColorSpaceConversion;
| imageOrientation?: ImageOrientation;
| premultiplyAlpha?: PremultiplyAlpha;
| resizeHeight?: number;
| resizeQuality?: ResizeQuality;
| resizeWidth?: number;
| }
|
| interface ImageBitmapRenderingContextSettings {
| alpha?: boolean;
| }
|
| interface ImageDataSettings {
| colorSpace?: PredefinedColorSpace;
| }
|
| interface ImageEncodeOptions {
| quality?: number;
| type?: string;
| }
|
| interface ImportMeta {
| url: string;
| }
|
| interface InputEventInit extends UIEventInit {
| data?: string | null;
| dataTransfer?: DataTransfer | null;
| inputType?: string;
| isComposing?: boolean;
| targetRanges?: StaticRange[];
| }
|
| interface IntersectionObserverEntryInit {
| boundingClientRect: DOMRectInit;
| intersectionRatio: number;
| intersectionRect: DOMRectInit;
| isIntersecting: boolean;
| rootBounds: DOMRectInit | null;
| target: Element;
| time: DOMHighResTimeStamp;
| }
|
| interface IntersectionObserverInit {
| root?: Element | Document | null;
| rootMargin?: string;
| threshold?: number | number[];
| }
|
| interface JsonWebKey {
| alg?: string;
| crv?: string;
| d?: string;
| dp?: string;
| dq?: string;
| e?: string;
| ext?: boolean;
| k?: string;
| key_ops?: string[];
| kty?: string;
| n?: string;
| oth?: RsaOtherPrimesInfo[];
| p?: string;
| q?: string;
| qi?: string;
| use?: string;
| x?: string;
| y?: string;
| }
|
| interface KeyAlgorithm {
| name: string;
| }
|
| interface KeyboardEventInit extends EventModifierInit {
| /** @deprecated */
| charCode?: number;
| code?: string;
| isComposing?: boolean;
| key?: string;
| /** @deprecated */
| keyCode?: number;
| location?: number;
| repeat?: boolean;
| }
|
| interface Keyframe {
| composite?: CompositeOperationOrAuto;
| easing?: string;
| offset?: number | null;
| [property: string]: string | number | null | undefined;
| }
|
| interface KeyframeAnimationOptions extends KeyframeEffectOptions {
| id?: string;
| }
|
| interface KeyframeEffectOptions extends EffectTiming {
| composite?: CompositeOperation;
| iterationComposite?: IterationCompositeOperation;
| pseudoElement?: string | null;
| }
|
| interface LockInfo {
| clientId?: string;
| mode?: LockMode;
| name?: string;
| }
|
| interface LockManagerSnapshot {
| held?: LockInfo[];
| pending?: LockInfo[];
| }
|
| interface LockOptions {
| ifAvailable?: boolean;
| mode?: LockMode;
| signal?: AbortSignal;
| steal?: boolean;
| }
|
| interface MIDIConnectionEventInit extends EventInit {
| port?: MIDIPort;
| }
|
| interface MIDIMessageEventInit extends EventInit {
| data?: Uint8Array;
| }
|
| interface MIDIOptions {
| software?: boolean;
| sysex?: boolean;
| }
|
| interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
| configuration?: MediaDecodingConfiguration;
| }
|
| interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
| configuration?: MediaEncodingConfiguration;
| }
|
| interface MediaCapabilitiesInfo {
| powerEfficient: boolean;
| smooth: boolean;
| supported: boolean;
| }
|
| interface MediaConfiguration {
| audio?: AudioConfiguration;
| video?: VideoConfiguration;
| }
|
| interface MediaDecodingConfiguration extends MediaConfiguration {
| type: MediaDecodingType;
| }
|
| interface MediaElementAudioSourceOptions {
| mediaElement: HTMLMediaElement;
| }
|
| interface MediaEncodingConfiguration extends MediaConfiguration {
| type: MediaEncodingType;
| }
|
| interface MediaEncryptedEventInit extends EventInit {
| initData?: ArrayBuffer | null;
| initDataType?: string;
| }
|
| interface MediaImage {
| sizes?: string;
| src: string;
| type?: string;
| }
|
| interface MediaKeyMessageEventInit extends EventInit {
| message: ArrayBuffer;
| messageType: MediaKeyMessageType;
| }
|
| interface MediaKeySystemConfiguration {
| audioCapabilities?: MediaKeySystemMediaCapability[];
| distinctiveIdentifier?: MediaKeysRequirement;
| initDataTypes?: string[];
| label?: string;
| persistentState?: MediaKeysRequirement;
| sessionTypes?: string[];
| videoCapabilities?: MediaKeySystemMediaCapability[];
| }
|
| interface MediaKeySystemMediaCapability {
| contentType?: string;
| encryptionScheme?: string | null;
| robustness?: string;
| }
|
| interface MediaMetadataInit {
| album?: string;
| artist?: string;
| artwork?: MediaImage[];
| title?: string;
| }
|
| interface MediaPositionState {
| duration?: number;
| playbackRate?: number;
| position?: number;
| }
|
| interface MediaQueryListEventInit extends EventInit {
| matches?: boolean;
| media?: string;
| }
|
| interface MediaRecorderOptions {
| audioBitsPerSecond?: number;
| bitsPerSecond?: number;
| mimeType?: string;
| videoBitsPerSecond?: number;
| }
|
| interface MediaSessionActionDetails {
| action: MediaSessionAction;
| fastSeek?: boolean;
| seekOffset?: number;
| seekTime?: number;
| }
|
| interface MediaStreamAudioSourceOptions {
| mediaStream: MediaStream;
| }
|
| interface MediaStreamConstraints {
| audio?: boolean | MediaTrackConstraints;
| peerIdentity?: string;
| preferCurrentTab?: boolean;
| video?: boolean | MediaTrackConstraints;
| }
|
| interface MediaStreamTrackEventInit extends EventInit {
| track: MediaStreamTrack;
| }
|
| interface MediaTrackCapabilities {
| aspectRatio?: DoubleRange;
| autoGainControl?: boolean[];
| channelCount?: ULongRange;
| deviceId?: string;
| displaySurface?: string;
| echoCancellation?: boolean[];
| facingMode?: string[];
| frameRate?: DoubleRange;
| groupId?: string;
| height?: ULongRange;
| noiseSuppression?: boolean[];
| sampleRate?: ULongRange;
| sampleSize?: ULongRange;
| width?: ULongRange;
| }
|
| interface MediaTrackConstraintSet {
| aspectRatio?: ConstrainDouble;
| autoGainControl?: ConstrainBoolean;
| channelCount?: ConstrainULong;
| deviceId?: ConstrainDOMString;
| displaySurface?: ConstrainDOMString;
| echoCancellation?: ConstrainBoolean;
| facingMode?: ConstrainDOMString;
| frameRate?: ConstrainDouble;
| groupId?: ConstrainDOMString;
| height?: ConstrainULong;
| noiseSuppression?: ConstrainBoolean;
| sampleRate?: ConstrainULong;
| sampleSize?: ConstrainULong;
| width?: ConstrainULong;
| }
|
| interface MediaTrackConstraints extends MediaTrackConstraintSet {
| advanced?: MediaTrackConstraintSet[];
| }
|
| interface MediaTrackSettings {
| aspectRatio?: number;
| autoGainControl?: boolean;
| channelCount?: number;
| deviceId?: string;
| displaySurface?: string;
| echoCancellation?: boolean;
| facingMode?: string;
| frameRate?: number;
| groupId?: string;
| height?: number;
| noiseSuppression?: boolean;
| sampleRate?: number;
| sampleSize?: number;
| width?: number;
| }
|
| interface MediaTrackSupportedConstraints {
| aspectRatio?: boolean;
| autoGainControl?: boolean;
| channelCount?: boolean;
| deviceId?: boolean;
| displaySurface?: boolean;
| echoCancellation?: boolean;
| facingMode?: boolean;
| frameRate?: boolean;
| groupId?: boolean;
| height?: boolean;
| noiseSuppression?: boolean;
| sampleRate?: boolean;
| sampleSize?: boolean;
| width?: boolean;
| }
|
| interface MessageEventInit<T = any> extends EventInit {
| data?: T;
| lastEventId?: string;
| origin?: string;
| ports?: MessagePort[];
| source?: MessageEventSource | null;
| }
|
| interface MouseEventInit extends EventModifierInit {
| button?: number;
| buttons?: number;
| clientX?: number;
| clientY?: number;
| movementX?: number;
| movementY?: number;
| relatedTarget?: EventTarget | null;
| screenX?: number;
| screenY?: number;
| }
|
| interface MultiCacheQueryOptions extends CacheQueryOptions {
| cacheName?: string;
| }
|
| interface MutationObserverInit {
| /** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */
| attributeFilter?: string[];
| /** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
| attributeOldValue?: boolean;
| /** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
| attributes?: boolean;
| /** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
| characterData?: boolean;
| /** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
| characterDataOldValue?: boolean;
| /** Set to true if mutations to target's children are to be observed. */
| childList?: boolean;
| /** Set to true if mutations to not just target, but also target's descendants are to be observed. */
| subtree?: boolean;
| }
|
| interface NavigationPreloadState {
| enabled?: boolean;
| headerValue?: string;
| }
|
| interface NotificationAction {
| action: string;
| icon?: string;
| title: string;
| }
|
| interface NotificationOptions {
| actions?: NotificationAction[];
| badge?: string;
| body?: string;
| data?: any;
| dir?: NotificationDirection;
| icon?: string;
| image?: string;
| lang?: string;
| renotify?: boolean;
| requireInteraction?: boolean;
| silent?: boolean;
| tag?: string;
| timestamp?: EpochTimeStamp;
| vibrate?: VibratePattern;
| }
|
| interface OfflineAudioCompletionEventInit extends EventInit {
| renderedBuffer: AudioBuffer;
| }
|
| interface OfflineAudioContextOptions {
| length: number;
| numberOfChannels?: number;
| sampleRate: number;
| }
|
| interface OptionalEffectTiming {
| delay?: number;
| direction?: PlaybackDirection;
| duration?: number | string;
| easing?: string;
| endDelay?: number;
| fill?: FillMode;
| iterationStart?: number;
| iterations?: number;
| playbackRate?: number;
| }
|
| interface OscillatorOptions extends AudioNodeOptions {
| detune?: number;
| frequency?: number;
| periodicWave?: PeriodicWave;
| type?: OscillatorType;
| }
|
| interface PageTransitionEventInit extends EventInit {
| persisted?: boolean;
| }
|
| interface PannerOptions extends AudioNodeOptions {
| coneInnerAngle?: number;
| coneOuterAngle?: number;
| coneOuterGain?: number;
| distanceModel?: DistanceModelType;
| maxDistance?: number;
| orientationX?: number;
| orientationY?: number;
| orientationZ?: number;
| panningModel?: PanningModelType;
| positionX?: number;
| positionY?: number;
| positionZ?: number;
| refDistance?: number;
| rolloffFactor?: number;
| }
|
| interface PaymentCurrencyAmount {
| currency: string;
| value: string;
| }
|
| interface PaymentDetailsBase {
| displayItems?: PaymentItem[];
| modifiers?: PaymentDetailsModifier[];
| }
|
| interface PaymentDetailsInit extends PaymentDetailsBase {
| id?: string;
| total: PaymentItem;
| }
|
| interface PaymentDetailsModifier {
| additionalDisplayItems?: PaymentItem[];
| data?: any;
| supportedMethods: string;
| total?: PaymentItem;
| }
|
| interface PaymentDetailsUpdate extends PaymentDetailsBase {
| paymentMethodErrors?: any;
| total?: PaymentItem;
| }
|
| interface PaymentItem {
| amount: PaymentCurrencyAmount;
| label: string;
| pending?: boolean;
| }
|
| interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
| methodDetails?: any;
| methodName?: string;
| }
|
| interface PaymentMethodData {
| data?: any;
| supportedMethods: string;
| }
|
| interface PaymentRequestUpdateEventInit extends EventInit {
| }
|
| interface PaymentValidationErrors {
| error?: string;
| paymentMethod?: any;
| }
|
| interface Pbkdf2Params extends Algorithm {
| hash: HashAlgorithmIdentifier;
| iterations: number;
| salt: BufferSource;
| }
|
| interface PerformanceMarkOptions {
| detail?: any;
| startTime?: DOMHighResTimeStamp;
| }
|
| interface PerformanceMeasureOptions {
| detail?: any;
| duration?: DOMHighResTimeStamp;
| end?: string | DOMHighResTimeStamp;
| start?: string | DOMHighResTimeStamp;
| }
|
| interface PerformanceObserverInit {
| buffered?: boolean;
| entryTypes?: string[];
| type?: string;
| }
|
| interface PeriodicWaveConstraints {
| disableNormalization?: boolean;
| }
|
| interface PeriodicWaveOptions extends PeriodicWaveConstraints {
| imag?: number[] | Float32Array;
| real?: number[] | Float32Array;
| }
|
| interface PermissionDescriptor {
| name: PermissionName;
| }
|
| interface PictureInPictureEventInit extends EventInit {
| pictureInPictureWindow: PictureInPictureWindow;
| }
|
| interface PointerEventInit extends MouseEventInit {
| coalescedEvents?: PointerEvent[];
| height?: number;
| isPrimary?: boolean;
| pointerId?: number;
| pointerType?: string;
| predictedEvents?: PointerEvent[];
| pressure?: number;
| tangentialPressure?: number;
| tiltX?: number;
| tiltY?: number;
| twist?: number;
| width?: number;
| }
|
| interface PopStateEventInit extends EventInit {
| state?: any;
| }
|
| interface PositionOptions {
| enableHighAccuracy?: boolean;
| maximumAge?: number;
| timeout?: number;
| }
|
| interface ProgressEventInit extends EventInit {
| lengthComputable?: boolean;
| loaded?: number;
| total?: number;
| }
|
| interface PromiseRejectionEventInit extends EventInit {
| promise: Promise<any>;
| reason?: any;
| }
|
| interface PropertyIndexedKeyframes {
| composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
| easing?: string | string[];
| offset?: number | (number | null)[];
| [property: string]: string | string[] | number | null | (number | null)[] | undefined;
| }
|
| interface PublicKeyCredentialCreationOptions {
| attestation?: AttestationConveyancePreference;
| authenticatorSelection?: AuthenticatorSelectionCriteria;
| challenge: BufferSource;
| excludeCredentials?: PublicKeyCredentialDescriptor[];
| extensions?: AuthenticationExtensionsClientInputs;
| pubKeyCredParams: PublicKeyCredentialParameters[];
| rp: PublicKeyCredentialRpEntity;
| timeout?: number;
| user: PublicKeyCredentialUserEntity;
| }
|
| interface PublicKeyCredentialDescriptor {
| id: BufferSource;
| transports?: AuthenticatorTransport[];
| type: PublicKeyCredentialType;
| }
|
| interface PublicKeyCredentialEntity {
| name: string;
| }
|
| interface PublicKeyCredentialParameters {
| alg: COSEAlgorithmIdentifier;
| type: PublicKeyCredentialType;
| }
|
| interface PublicKeyCredentialRequestOptions {
| allowCredentials?: PublicKeyCredentialDescriptor[];
| challenge: BufferSource;
| extensions?: AuthenticationExtensionsClientInputs;
| rpId?: string;
| timeout?: number;
| userVerification?: UserVerificationRequirement;
| }
|
| interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
| id?: string;
| }
|
| interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
| displayName: string;
| id: BufferSource;
| }
|
| interface PushSubscriptionJSON {
| endpoint?: string;
| expirationTime?: EpochTimeStamp | null;
| keys?: Record<string, string>;
| }
|
| interface PushSubscriptionOptionsInit {
| applicationServerKey?: BufferSource | string | null;
| userVisibleOnly?: boolean;
| }
|
| interface QueuingStrategy<T = any> {
| highWaterMark?: number;
| size?: QueuingStrategySize<T>;
| }
|
| interface QueuingStrategyInit {
| /**
| * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
| *
| * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
| */
| highWaterMark: number;
| }
|
| interface RTCAnswerOptions extends RTCOfferAnswerOptions {
| }
|
| interface RTCCertificateExpiration {
| expires?: number;
| }
|
| interface RTCConfiguration {
| bundlePolicy?: RTCBundlePolicy;
| certificates?: RTCCertificate[];
| iceCandidatePoolSize?: number;
| iceServers?: RTCIceServer[];
| iceTransportPolicy?: RTCIceTransportPolicy;
| rtcpMuxPolicy?: RTCRtcpMuxPolicy;
| }
|
| interface RTCDTMFToneChangeEventInit extends EventInit {
| tone?: string;
| }
|
| interface RTCDataChannelEventInit extends EventInit {
| channel: RTCDataChannel;
| }
|
| interface RTCDataChannelInit {
| id?: number;
| maxPacketLifeTime?: number;
| maxRetransmits?: number;
| negotiated?: boolean;
| ordered?: boolean;
| protocol?: string;
| }
|
| interface RTCDtlsFingerprint {
| algorithm?: string;
| value?: string;
| }
|
| interface RTCEncodedAudioFrameMetadata {
| contributingSources?: number[];
| synchronizationSource?: number;
| }
|
| interface RTCEncodedVideoFrameMetadata {
| contributingSources?: number[];
| dependencies?: number[];
| frameId?: number;
| height?: number;
| spatialIndex?: number;
| synchronizationSource?: number;
| temporalIndex?: number;
| width?: number;
| }
|
| interface RTCErrorEventInit extends EventInit {
| error: RTCError;
| }
|
| interface RTCErrorInit {
| errorDetail: RTCErrorDetailType;
| httpRequestStatusCode?: number;
| receivedAlert?: number;
| sctpCauseCode?: number;
| sdpLineNumber?: number;
| sentAlert?: number;
| }
|
| interface RTCIceCandidateInit {
| candidate?: string;
| sdpMLineIndex?: number | null;
| sdpMid?: string | null;
| usernameFragment?: string | null;
| }
|
| interface RTCIceCandidatePairStats extends RTCStats {
| availableIncomingBitrate?: number;
| availableOutgoingBitrate?: number;
| bytesReceived?: number;
| bytesSent?: number;
| currentRoundTripTime?: number;
| lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
| lastPacketSentTimestamp?: DOMHighResTimeStamp;
| localCandidateId: string;
| nominated?: boolean;
| remoteCandidateId: string;
| requestsReceived?: number;
| requestsSent?: number;
| responsesReceived?: number;
| responsesSent?: number;
| state: RTCStatsIceCandidatePairState;
| totalRoundTripTime?: number;
| transportId: string;
| }
|
| interface RTCIceServer {
| credential?: string;
| urls: string | string[];
| username?: string;
| }
|
| interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
| audioLevel?: number;
| bytesReceived?: number;
| concealedSamples?: number;
| concealmentEvents?: number;
| decoderImplementation?: string;
| estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
| fecPacketsDiscarded?: number;
| fecPacketsReceived?: number;
| firCount?: number;
| frameHeight?: number;
| frameWidth?: number;
| framesDecoded?: number;
| framesDropped?: number;
| framesPerSecond?: number;
| framesReceived?: number;
| headerBytesReceived?: number;
| insertedSamplesForDeceleration?: number;
| jitterBufferDelay?: number;
| jitterBufferEmittedCount?: number;
| keyFramesDecoded?: number;
| kind: string;
| lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
| nackCount?: number;
| packetsDiscarded?: number;
| pliCount?: number;
| qpSum?: number;
| remoteId?: string;
| removedSamplesForAcceleration?: number;
| silentConcealedSamples?: number;
| totalAudioEnergy?: number;
| totalDecodeTime?: number;
| totalInterFrameDelay?: number;
| totalProcessingDelay?: number;
| totalSamplesDuration?: number;
| totalSamplesReceived?: number;
| totalSquaredInterFrameDelay?: number;
| }
|
| interface RTCLocalSessionDescriptionInit {
| sdp?: string;
| type?: RTCSdpType;
| }
|
| interface RTCOfferAnswerOptions {
| }
|
| interface RTCOfferOptions extends RTCOfferAnswerOptions {
| iceRestart?: boolean;
| offerToReceiveAudio?: boolean;
| offerToReceiveVideo?: boolean;
| }
|
| interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
| firCount?: number;
| frameHeight?: number;
| frameWidth?: number;
| framesEncoded?: number;
| framesPerSecond?: number;
| framesSent?: number;
| headerBytesSent?: number;
| hugeFramesSent?: number;
| keyFramesEncoded?: number;
| mediaSourceId?: string;
| nackCount?: number;
| pliCount?: number;
| qpSum?: number;
| qualityLimitationResolutionChanges?: number;
| remoteId?: string;
| retransmittedBytesSent?: number;
| retransmittedPacketsSent?: number;
| rid?: string;
| targetBitrate?: number;
| totalEncodeTime?: number;
| totalEncodedBytesTarget?: number;
| totalPacketSendDelay?: number;
| }
|
| interface RTCPeerConnectionIceErrorEventInit extends EventInit {
| address?: string | null;
| errorCode: number;
| errorText?: string;
| port?: number | null;
| url?: string;
| }
|
| interface RTCPeerConnectionIceEventInit extends EventInit {
| candidate?: RTCIceCandidate | null;
| url?: string | null;
| }
|
| interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
| jitter?: number;
| packetsLost?: number;
| packetsReceived?: number;
| }
|
| interface RTCRtcpParameters {
| cname?: string;
| reducedSize?: boolean;
| }
|
| interface RTCRtpCapabilities {
| codecs: RTCRtpCodecCapability[];
| headerExtensions: RTCRtpHeaderExtensionCapability[];
| }
|
| interface RTCRtpCodecCapability {
| channels?: number;
| clockRate: number;
| mimeType: string;
| sdpFmtpLine?: string;
| }
|
| interface RTCRtpCodecParameters {
| channels?: number;
| clockRate: number;
| mimeType: string;
| payloadType: number;
| sdpFmtpLine?: string;
| }
|
| interface RTCRtpCodingParameters {
| rid?: string;
| }
|
| interface RTCRtpContributingSource {
| audioLevel?: number;
| rtpTimestamp: number;
| source: number;
| timestamp: DOMHighResTimeStamp;
| }
|
| interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
| active?: boolean;
| maxBitrate?: number;
| maxFramerate?: number;
| networkPriority?: RTCPriorityType;
| priority?: RTCPriorityType;
| scaleResolutionDownBy?: number;
| }
|
| interface RTCRtpHeaderExtensionCapability {
| uri?: string;
| }
|
| interface RTCRtpHeaderExtensionParameters {
| encrypted?: boolean;
| id: number;
| uri: string;
| }
|
| interface RTCRtpParameters {
| codecs: RTCRtpCodecParameters[];
| headerExtensions: RTCRtpHeaderExtensionParameters[];
| rtcp: RTCRtcpParameters;
| }
|
| interface RTCRtpReceiveParameters extends RTCRtpParameters {
| }
|
| interface RTCRtpSendParameters extends RTCRtpParameters {
| degradationPreference?: RTCDegradationPreference;
| encodings: RTCRtpEncodingParameters[];
| transactionId: string;
| }
|
| interface RTCRtpStreamStats extends RTCStats {
| codecId?: string;
| kind: string;
| ssrc: number;
| transportId?: string;
| }
|
| interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
| }
|
| interface RTCRtpTransceiverInit {
| direction?: RTCRtpTransceiverDirection;
| sendEncodings?: RTCRtpEncodingParameters[];
| streams?: MediaStream[];
| }
|
| interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
| bytesSent?: number;
| packetsSent?: number;
| }
|
| interface RTCSessionDescriptionInit {
| sdp?: string;
| type: RTCSdpType;
| }
|
| interface RTCStats {
| id: string;
| timestamp: DOMHighResTimeStamp;
| type: RTCStatsType;
| }
|
| interface RTCTrackEventInit extends EventInit {
| receiver: RTCRtpReceiver;
| streams?: MediaStream[];
| track: MediaStreamTrack;
| transceiver: RTCRtpTransceiver;
| }
|
| interface RTCTransportStats extends RTCStats {
| bytesReceived?: number;
| bytesSent?: number;
| dtlsCipher?: string;
| dtlsState: RTCDtlsTransportState;
| localCertificateId?: string;
| remoteCertificateId?: string;
| selectedCandidatePairId?: string;
| srtpCipher?: string;
| tlsVersion?: string;
| }
|
| interface ReadableStreamGetReaderOptions {
| /**
| * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
| *
| * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
| */
| mode?: ReadableStreamReaderMode;
| }
|
| interface ReadableStreamReadDoneResult<T> {
| done: true;
| value?: T;
| }
|
| interface ReadableStreamReadValueResult<T> {
| done: false;
| value: T;
| }
|
| interface ReadableWritablePair<R = any, W = any> {
| readable: ReadableStream<R>;
| /**
| * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
| *
| * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
| */
| writable: WritableStream<W>;
| }
|
| interface RegistrationOptions {
| scope?: string;
| type?: WorkerType;
| updateViaCache?: ServiceWorkerUpdateViaCache;
| }
|
| interface RequestInit {
| /** A BodyInit object or null to set request's body. */
| body?: BodyInit | null;
| /** A string indicating how the request will interact with the browser's cache to set request's cache. */
| cache?: RequestCache;
| /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
| credentials?: RequestCredentials;
| /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
| headers?: HeadersInit;
| /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
| integrity?: string;
| /** A boolean to set request's keepalive. */
| keepalive?: boolean;
| /** A string to set request's method. */
| method?: string;
| /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
| mode?: RequestMode;
| /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
| redirect?: RequestRedirect;
| /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
| referrer?: string;
| /** A referrer policy to set request's referrerPolicy. */
| referrerPolicy?: ReferrerPolicy;
| /** An AbortSignal to set request's signal. */
| signal?: AbortSignal | null;
| /** Can only be null. Used to disassociate request from any Window. */
| window?: null;
| }
|
| interface ResizeObserverOptions {
| box?: ResizeObserverBoxOptions;
| }
|
| interface ResponseInit {
| headers?: HeadersInit;
| status?: number;
| statusText?: string;
| }
|
| interface RsaHashedImportParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| }
|
| interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
| hash: KeyAlgorithm;
| }
|
| interface RsaHashedKeyGenParams extends RsaKeyGenParams {
| hash: HashAlgorithmIdentifier;
| }
|
| interface RsaKeyAlgorithm extends KeyAlgorithm {
| modulusLength: number;
| publicExponent: BigInteger;
| }
|
| interface RsaKeyGenParams extends Algorithm {
| modulusLength: number;
| publicExponent: BigInteger;
| }
|
| interface RsaOaepParams extends Algorithm {
| label?: BufferSource;
| }
|
| interface RsaOtherPrimesInfo {
| d?: string;
| r?: string;
| t?: string;
| }
|
| interface RsaPssParams extends Algorithm {
| saltLength: number;
| }
|
| interface SVGBoundingBoxOptions {
| clipped?: boolean;
| fill?: boolean;
| markers?: boolean;
| stroke?: boolean;
| }
|
| interface ScrollIntoViewOptions extends ScrollOptions {
| block?: ScrollLogicalPosition;
| inline?: ScrollLogicalPosition;
| }
|
| interface ScrollOptions {
| behavior?: ScrollBehavior;
| }
|
| interface ScrollToOptions extends ScrollOptions {
| left?: number;
| top?: number;
| }
|
| interface SecurityPolicyViolationEventInit extends EventInit {
| blockedURI?: string;
| columnNumber?: number;
| disposition: SecurityPolicyViolationEventDisposition;
| documentURI: string;
| effectiveDirective: string;
| lineNumber?: number;
| originalPolicy: string;
| referrer?: string;
| sample?: string;
| sourceFile?: string;
| statusCode: number;
| violatedDirective: string;
| }
|
| interface ShadowRootInit {
| delegatesFocus?: boolean;
| mode: ShadowRootMode;
| slotAssignment?: SlotAssignmentMode;
| }
|
| interface ShareData {
| files?: File[];
| text?: string;
| title?: string;
| url?: string;
| }
|
| interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
| error: SpeechSynthesisErrorCode;
| }
|
| interface SpeechSynthesisEventInit extends EventInit {
| charIndex?: number;
| charLength?: number;
| elapsedTime?: number;
| name?: string;
| utterance: SpeechSynthesisUtterance;
| }
|
| interface StaticRangeInit {
| endContainer: Node;
| endOffset: number;
| startContainer: Node;
| startOffset: number;
| }
|
| interface StereoPannerOptions extends AudioNodeOptions {
| pan?: number;
| }
|
| interface StorageEstimate {
| quota?: number;
| usage?: number;
| }
|
| interface StorageEventInit extends EventInit {
| key?: string | null;
| newValue?: string | null;
| oldValue?: string | null;
| storageArea?: Storage | null;
| url?: string;
| }
|
| interface StreamPipeOptions {
| preventAbort?: boolean;
| preventCancel?: boolean;
| /**
| * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
| *
| * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
| *
| * Errors and closures of the source and destination streams propagate as follows:
| *
| * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
| *
| * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
| *
| * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
| *
| * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
| *
| * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
| */
| preventClose?: boolean;
| signal?: AbortSignal;
| }
|
| interface StructuredSerializeOptions {
| transfer?: Transferable[];
| }
|
| interface SubmitEventInit extends EventInit {
| submitter?: HTMLElement | null;
| }
|
| interface TextDecodeOptions {
| stream?: boolean;
| }
|
| interface TextDecoderOptions {
| fatal?: boolean;
| ignoreBOM?: boolean;
| }
|
| interface TextEncoderEncodeIntoResult {
| read?: number;
| written?: number;
| }
|
| interface TouchEventInit extends EventModifierInit {
| changedTouches?: Touch[];
| targetTouches?: Touch[];
| touches?: Touch[];
| }
|
| interface TouchInit {
| altitudeAngle?: number;
| azimuthAngle?: number;
| clientX?: number;
| clientY?: number;
| force?: number;
| identifier: number;
| pageX?: number;
| pageY?: number;
| radiusX?: number;
| radiusY?: number;
| rotationAngle?: number;
| screenX?: number;
| screenY?: number;
| target: EventTarget;
| touchType?: TouchType;
| }
|
| interface TrackEventInit extends EventInit {
| track?: TextTrack | null;
| }
|
| interface Transformer<I = any, O = any> {
| flush?: TransformerFlushCallback<O>;
| readableType?: undefined;
| start?: TransformerStartCallback<O>;
| transform?: TransformerTransformCallback<I, O>;
| writableType?: undefined;
| }
|
| interface TransitionEventInit extends EventInit {
| elapsedTime?: number;
| propertyName?: string;
| pseudoElement?: string;
| }
|
| interface UIEventInit extends EventInit {
| detail?: number;
| view?: Window | null;
| /** @deprecated */
| which?: number;
| }
|
| interface ULongRange {
| max?: number;
| min?: number;
| }
|
| interface UnderlyingByteSource {
| autoAllocateChunkSize?: number;
| cancel?: UnderlyingSourceCancelCallback;
| pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
| start?: (controller: ReadableByteStreamController) => any;
| type: "bytes";
| }
|
| interface UnderlyingDefaultSource<R = any> {
| cancel?: UnderlyingSourceCancelCallback;
| pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
| start?: (controller: ReadableStreamDefaultController<R>) => any;
| type?: undefined;
| }
|
| interface UnderlyingSink<W = any> {
| abort?: UnderlyingSinkAbortCallback;
| close?: UnderlyingSinkCloseCallback;
| start?: UnderlyingSinkStartCallback;
| type?: undefined;
| write?: UnderlyingSinkWriteCallback<W>;
| }
|
| interface UnderlyingSource<R = any> {
| autoAllocateChunkSize?: number;
| cancel?: UnderlyingSourceCancelCallback;
| pull?: UnderlyingSourcePullCallback<R>;
| start?: UnderlyingSourceStartCallback<R>;
| type?: ReadableStreamType;
| }
|
| interface ValidityStateFlags {
| badInput?: boolean;
| customError?: boolean;
| patternMismatch?: boolean;
| rangeOverflow?: boolean;
| rangeUnderflow?: boolean;
| stepMismatch?: boolean;
| tooLong?: boolean;
| tooShort?: boolean;
| typeMismatch?: boolean;
| valueMissing?: boolean;
| }
|
| interface VideoColorSpaceInit {
| fullRange?: boolean | null;
| matrix?: VideoMatrixCoefficients | null;
| primaries?: VideoColorPrimaries | null;
| transfer?: VideoTransferCharacteristics | null;
| }
|
| interface VideoConfiguration {
| bitrate: number;
| colorGamut?: ColorGamut;
| contentType: string;
| framerate: number;
| hdrMetadataType?: HdrMetadataType;
| height: number;
| scalabilityMode?: string;
| transferFunction?: TransferFunction;
| width: number;
| }
|
| interface VideoFrameCallbackMetadata {
| captureTime?: DOMHighResTimeStamp;
| expectedDisplayTime: DOMHighResTimeStamp;
| height: number;
| mediaTime: number;
| presentationTime: DOMHighResTimeStamp;
| presentedFrames: number;
| processingDuration?: number;
| receiveTime?: DOMHighResTimeStamp;
| rtpTimestamp?: number;
| width: number;
| }
|
| interface WaveShaperOptions extends AudioNodeOptions {
| curve?: number[] | Float32Array;
| oversample?: OverSampleType;
| }
|
| interface WebGLContextAttributes {
| alpha?: boolean;
| antialias?: boolean;
| depth?: boolean;
| desynchronized?: boolean;
| failIfMajorPerformanceCaveat?: boolean;
| powerPreference?: WebGLPowerPreference;
| premultipliedAlpha?: boolean;
| preserveDrawingBuffer?: boolean;
| stencil?: boolean;
| }
|
| interface WebGLContextEventInit extends EventInit {
| statusMessage?: string;
| }
|
| interface WheelEventInit extends MouseEventInit {
| deltaMode?: number;
| deltaX?: number;
| deltaY?: number;
| deltaZ?: number;
| }
|
| interface WindowPostMessageOptions extends StructuredSerializeOptions {
| targetOrigin?: string;
| }
|
| interface WorkerOptions {
| credentials?: RequestCredentials;
| name?: string;
| type?: WorkerType;
| }
|
| interface WorkletOptions {
| credentials?: RequestCredentials;
| }
|
| type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
|
| declare var NodeFilter: {
| readonly FILTER_ACCEPT: 1;
| readonly FILTER_REJECT: 2;
| readonly FILTER_SKIP: 3;
| readonly SHOW_ALL: 0xFFFFFFFF;
| readonly SHOW_ELEMENT: 0x1;
| readonly SHOW_ATTRIBUTE: 0x2;
| readonly SHOW_TEXT: 0x4;
| readonly SHOW_CDATA_SECTION: 0x8;
| readonly SHOW_ENTITY_REFERENCE: 0x10;
| readonly SHOW_ENTITY: 0x20;
| readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
| readonly SHOW_COMMENT: 0x80;
| readonly SHOW_DOCUMENT: 0x100;
| readonly SHOW_DOCUMENT_TYPE: 0x200;
| readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
| readonly SHOW_NOTATION: 0x800;
| };
|
| type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
|
| /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
| interface ANGLE_instanced_arrays {
| drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
| drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
| vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
| }
|
| interface ARIAMixin {
| ariaAtomic: string | null;
| ariaAutoComplete: string | null;
| ariaBusy: string | null;
| ariaChecked: string | null;
| ariaColCount: string | null;
| ariaColIndex: string | null;
| ariaColSpan: string | null;
| ariaCurrent: string | null;
| ariaDisabled: string | null;
| ariaExpanded: string | null;
| ariaHasPopup: string | null;
| ariaHidden: string | null;
| ariaInvalid: string | null;
| ariaKeyShortcuts: string | null;
| ariaLabel: string | null;
| ariaLevel: string | null;
| ariaLive: string | null;
| ariaModal: string | null;
| ariaMultiLine: string | null;
| ariaMultiSelectable: string | null;
| ariaOrientation: string | null;
| ariaPlaceholder: string | null;
| ariaPosInSet: string | null;
| ariaPressed: string | null;
| ariaReadOnly: string | null;
| ariaRequired: string | null;
| ariaRoleDescription: string | null;
| ariaRowCount: string | null;
| ariaRowIndex: string | null;
| ariaRowSpan: string | null;
| ariaSelected: string | null;
| ariaSetSize: string | null;
| ariaSort: string | null;
| ariaValueMax: string | null;
| ariaValueMin: string | null;
| ariaValueNow: string | null;
| ariaValueText: string | null;
| role: string | null;
| }
|
| /** A controller object that allows you to abort one or more DOM requests as and when desired. */
| interface AbortController {
| /** Returns the AbortSignal object associated with this object. */
| readonly signal: AbortSignal;
| /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
| abort(reason?: any): void;
| }
|
| declare var AbortController: {
| prototype: AbortController;
| new(): AbortController;
| };
|
| interface AbortSignalEventMap {
| "abort": Event;
| }
|
| /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
| interface AbortSignal extends EventTarget {
| /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
| readonly aborted: boolean;
| onabort: ((this: AbortSignal, ev: Event) => any) | null;
| readonly reason: any;
| throwIfAborted(): void;
| addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AbortSignal: {
| prototype: AbortSignal;
| new(): AbortSignal;
| abort(reason?: any): AbortSignal;
| timeout(milliseconds: number): AbortSignal;
| };
|
| interface AbstractRange {
| /** Returns true if range is collapsed, and false otherwise. */
| readonly collapsed: boolean;
| /** Returns range's end node. */
| readonly endContainer: Node;
| /** Returns range's end offset. */
| readonly endOffset: number;
| /** Returns range's start node. */
| readonly startContainer: Node;
| /** Returns range's start offset. */
| readonly startOffset: number;
| }
|
| declare var AbstractRange: {
| prototype: AbstractRange;
| new(): AbstractRange;
| };
|
| interface AbstractWorkerEventMap {
| "error": ErrorEvent;
| }
|
| interface AbstractWorker {
| onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
| addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
| interface AnalyserNode extends AudioNode {
| fftSize: number;
| readonly frequencyBinCount: number;
| maxDecibels: number;
| minDecibels: number;
| smoothingTimeConstant: number;
| getByteFrequencyData(array: Uint8Array): void;
| getByteTimeDomainData(array: Uint8Array): void;
| getFloatFrequencyData(array: Float32Array): void;
| getFloatTimeDomainData(array: Float32Array): void;
| }
|
| declare var AnalyserNode: {
| prototype: AnalyserNode;
| new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
| };
|
| interface Animatable {
| animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
| getAnimations(options?: GetAnimationsOptions): Animation[];
| }
|
| interface AnimationEventMap {
| "cancel": AnimationPlaybackEvent;
| "finish": AnimationPlaybackEvent;
| "remove": Event;
| }
|
| interface Animation extends EventTarget {
| currentTime: CSSNumberish | null;
| effect: AnimationEffect | null;
| readonly finished: Promise<Animation>;
| id: string;
| oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
| onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
| onremove: ((this: Animation, ev: Event) => any) | null;
| readonly pending: boolean;
| readonly playState: AnimationPlayState;
| playbackRate: number;
| readonly ready: Promise<Animation>;
| readonly replaceState: AnimationReplaceState;
| startTime: CSSNumberish | null;
| timeline: AnimationTimeline | null;
| cancel(): void;
| commitStyles(): void;
| finish(): void;
| pause(): void;
| persist(): void;
| play(): void;
| reverse(): void;
| updatePlaybackRate(playbackRate: number): void;
| addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Animation: {
| prototype: Animation;
| new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
| };
|
| interface AnimationEffect {
| getComputedTiming(): ComputedEffectTiming;
| getTiming(): EffectTiming;
| updateTiming(timing?: OptionalEffectTiming): void;
| }
|
| declare var AnimationEffect: {
| prototype: AnimationEffect;
| new(): AnimationEffect;
| };
|
| /** Events providing information related to animations. */
| interface AnimationEvent extends Event {
| readonly animationName: string;
| readonly elapsedTime: number;
| readonly pseudoElement: string;
| }
|
| declare var AnimationEvent: {
| prototype: AnimationEvent;
| new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
| };
|
| interface AnimationFrameProvider {
| cancelAnimationFrame(handle: number): void;
| requestAnimationFrame(callback: FrameRequestCallback): number;
| }
|
| interface AnimationPlaybackEvent extends Event {
| readonly currentTime: CSSNumberish | null;
| readonly timelineTime: CSSNumberish | null;
| }
|
| declare var AnimationPlaybackEvent: {
| prototype: AnimationPlaybackEvent;
| new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
| };
|
| interface AnimationTimeline {
| readonly currentTime: number | null;
| }
|
| declare var AnimationTimeline: {
| prototype: AnimationTimeline;
| new(): AnimationTimeline;
| };
|
| /** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
| interface Attr extends Node {
| readonly localName: string;
| readonly name: string;
| readonly namespaceURI: string | null;
| readonly ownerDocument: Document;
| readonly ownerElement: Element | null;
| readonly prefix: string | null;
| /** @deprecated */
| readonly specified: boolean;
| value: string;
| }
|
| declare var Attr: {
| prototype: Attr;
| new(): Attr;
| };
|
| /** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
| interface AudioBuffer {
| readonly duration: number;
| readonly length: number;
| readonly numberOfChannels: number;
| readonly sampleRate: number;
| copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
| copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
| getChannelData(channel: number): Float32Array;
| }
|
| declare var AudioBuffer: {
| prototype: AudioBuffer;
| new(options: AudioBufferOptions): AudioBuffer;
| };
|
| /** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
| interface AudioBufferSourceNode extends AudioScheduledSourceNode {
| buffer: AudioBuffer | null;
| readonly detune: AudioParam;
| loop: boolean;
| loopEnd: number;
| loopStart: number;
| readonly playbackRate: AudioParam;
| start(when?: number, offset?: number, duration?: number): void;
| addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AudioBufferSourceNode: {
| prototype: AudioBufferSourceNode;
| new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
| };
|
| /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
| interface AudioContext extends BaseAudioContext {
| readonly baseLatency: number;
| readonly outputLatency: number;
| close(): Promise<void>;
| createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
| createMediaStreamDestination(): MediaStreamAudioDestinationNode;
| createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
| getOutputTimestamp(): AudioTimestamp;
| resume(): Promise<void>;
| suspend(): Promise<void>;
| addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AudioContext: {
| prototype: AudioContext;
| new(contextOptions?: AudioContextOptions): AudioContext;
| };
|
| /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
| interface AudioDestinationNode extends AudioNode {
| readonly maxChannelCount: number;
| }
|
| declare var AudioDestinationNode: {
| prototype: AudioDestinationNode;
| new(): AudioDestinationNode;
| };
|
| /** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
| interface AudioListener {
| readonly forwardX: AudioParam;
| readonly forwardY: AudioParam;
| readonly forwardZ: AudioParam;
| readonly positionX: AudioParam;
| readonly positionY: AudioParam;
| readonly positionZ: AudioParam;
| readonly upX: AudioParam;
| readonly upY: AudioParam;
| readonly upZ: AudioParam;
| /** @deprecated */
| setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
| /** @deprecated */
| setPosition(x: number, y: number, z: number): void;
| }
|
| declare var AudioListener: {
| prototype: AudioListener;
| new(): AudioListener;
| };
|
| /** A generic interface for representing an audio processing module. Examples include: */
| interface AudioNode extends EventTarget {
| channelCount: number;
| channelCountMode: ChannelCountMode;
| channelInterpretation: ChannelInterpretation;
| readonly context: BaseAudioContext;
| readonly numberOfInputs: number;
| readonly numberOfOutputs: number;
| connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
| connect(destinationParam: AudioParam, output?: number): void;
| disconnect(): void;
| disconnect(output: number): void;
| disconnect(destinationNode: AudioNode): void;
| disconnect(destinationNode: AudioNode, output: number): void;
| disconnect(destinationNode: AudioNode, output: number, input: number): void;
| disconnect(destinationParam: AudioParam): void;
| disconnect(destinationParam: AudioParam, output: number): void;
| }
|
| declare var AudioNode: {
| prototype: AudioNode;
| new(): AudioNode;
| };
|
| /** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
| interface AudioParam {
| automationRate: AutomationRate;
| readonly defaultValue: number;
| readonly maxValue: number;
| readonly minValue: number;
| value: number;
| cancelAndHoldAtTime(cancelTime: number): AudioParam;
| cancelScheduledValues(cancelTime: number): AudioParam;
| exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
| linearRampToValueAtTime(value: number, endTime: number): AudioParam;
| setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
| setValueAtTime(value: number, startTime: number): AudioParam;
| setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
| }
|
| declare var AudioParam: {
| prototype: AudioParam;
| new(): AudioParam;
| };
|
| interface AudioParamMap {
| forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
| }
|
| declare var AudioParamMap: {
| prototype: AudioParamMap;
| new(): AudioParamMap;
| };
|
| /**
| * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
| * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
| */
| interface AudioProcessingEvent extends Event {
| /** @deprecated */
| readonly inputBuffer: AudioBuffer;
| /** @deprecated */
| readonly outputBuffer: AudioBuffer;
| /** @deprecated */
| readonly playbackTime: number;
| }
|
| /** @deprecated */
| declare var AudioProcessingEvent: {
| prototype: AudioProcessingEvent;
| new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
| };
|
| interface AudioScheduledSourceNodeEventMap {
| "ended": Event;
| }
|
| interface AudioScheduledSourceNode extends AudioNode {
| onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
| start(when?: number): void;
| stop(when?: number): void;
| addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AudioScheduledSourceNode: {
| prototype: AudioScheduledSourceNode;
| new(): AudioScheduledSourceNode;
| };
|
| /** Available only in secure contexts. */
| interface AudioWorklet extends Worklet {
| }
|
| declare var AudioWorklet: {
| prototype: AudioWorklet;
| new(): AudioWorklet;
| };
|
| interface AudioWorkletNodeEventMap {
| "processorerror": Event;
| }
|
| /** Available only in secure contexts. */
| interface AudioWorkletNode extends AudioNode {
| onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
| readonly parameters: AudioParamMap;
| readonly port: MessagePort;
| addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AudioWorkletNode: {
| prototype: AudioWorkletNode;
| new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
| };
|
| /** Available only in secure contexts. */
| interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
| readonly authenticatorData: ArrayBuffer;
| readonly signature: ArrayBuffer;
| readonly userHandle: ArrayBuffer | null;
| }
|
| declare var AuthenticatorAssertionResponse: {
| prototype: AuthenticatorAssertionResponse;
| new(): AuthenticatorAssertionResponse;
| };
|
| /** Available only in secure contexts. */
| interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
| readonly attestationObject: ArrayBuffer;
| getAuthenticatorData(): ArrayBuffer;
| getPublicKey(): ArrayBuffer | null;
| getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
| getTransports(): string[];
| }
|
| declare var AuthenticatorAttestationResponse: {
| prototype: AuthenticatorAttestationResponse;
| new(): AuthenticatorAttestationResponse;
| };
|
| /** Available only in secure contexts. */
| interface AuthenticatorResponse {
| readonly clientDataJSON: ArrayBuffer;
| }
|
| declare var AuthenticatorResponse: {
| prototype: AuthenticatorResponse;
| new(): AuthenticatorResponse;
| };
|
| interface BarProp {
| readonly visible: boolean;
| }
|
| declare var BarProp: {
| prototype: BarProp;
| new(): BarProp;
| };
|
| interface BaseAudioContextEventMap {
| "statechange": Event;
| }
|
| interface BaseAudioContext extends EventTarget {
| /** Available only in secure contexts. */
| readonly audioWorklet: AudioWorklet;
| readonly currentTime: number;
| readonly destination: AudioDestinationNode;
| readonly listener: AudioListener;
| onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
| readonly sampleRate: number;
| readonly state: AudioContextState;
| createAnalyser(): AnalyserNode;
| createBiquadFilter(): BiquadFilterNode;
| createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
| createBufferSource(): AudioBufferSourceNode;
| createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
| createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
| createConstantSource(): ConstantSourceNode;
| createConvolver(): ConvolverNode;
| createDelay(maxDelayTime?: number): DelayNode;
| createDynamicsCompressor(): DynamicsCompressorNode;
| createGain(): GainNode;
| createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
| createOscillator(): OscillatorNode;
| createPanner(): PannerNode;
| createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
| /** @deprecated */
| createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
| createStereoPanner(): StereoPannerNode;
| createWaveShaper(): WaveShaperNode;
| decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
| addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var BaseAudioContext: {
| prototype: BaseAudioContext;
| new(): BaseAudioContext;
| };
|
| /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
| interface BeforeUnloadEvent extends Event {
| returnValue: any;
| }
|
| declare var BeforeUnloadEvent: {
| prototype: BeforeUnloadEvent;
| new(): BeforeUnloadEvent;
| };
|
| /** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
| interface BiquadFilterNode extends AudioNode {
| readonly Q: AudioParam;
| readonly detune: AudioParam;
| readonly frequency: AudioParam;
| readonly gain: AudioParam;
| type: BiquadFilterType;
| getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
| }
|
| declare var BiquadFilterNode: {
| prototype: BiquadFilterNode;
| new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
| };
|
| /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
| interface Blob {
| readonly size: number;
| readonly type: string;
| arrayBuffer(): Promise<ArrayBuffer>;
| slice(start?: number, end?: number, contentType?: string): Blob;
| stream(): ReadableStream<Uint8Array>;
| text(): Promise<string>;
| }
|
| declare var Blob: {
| prototype: Blob;
| new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
| };
|
| interface BlobEvent extends Event {
| readonly data: Blob;
| readonly timecode: DOMHighResTimeStamp;
| }
|
| declare var BlobEvent: {
| prototype: BlobEvent;
| new(type: string, eventInitDict: BlobEventInit): BlobEvent;
| };
|
| interface Body {
| readonly body: ReadableStream<Uint8Array> | null;
| readonly bodyUsed: boolean;
| arrayBuffer(): Promise<ArrayBuffer>;
| blob(): Promise<Blob>;
| formData(): Promise<FormData>;
| json(): Promise<any>;
| text(): Promise<string>;
| }
|
| interface BroadcastChannelEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| interface BroadcastChannel extends EventTarget {
| /** Returns the channel name (as passed to the constructor). */
| readonly name: string;
| onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
| /** Closes the BroadcastChannel object, opening it up to garbage collection. */
| close(): void;
| /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
| postMessage(message: any): void;
| addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var BroadcastChannel: {
| prototype: BroadcastChannel;
| new(name: string): BroadcastChannel;
| };
|
| /** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
| interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
| readonly highWaterMark: number;
| readonly size: QueuingStrategySize<ArrayBufferView>;
| }
|
| declare var ByteLengthQueuingStrategy: {
| prototype: ByteLengthQueuingStrategy;
| new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
| };
|
| /** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
| interface CDATASection extends Text {
| }
|
| declare var CDATASection: {
| prototype: CDATASection;
| new(): CDATASection;
| };
|
| interface CSSAnimation extends Animation {
| readonly animationName: string;
| addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var CSSAnimation: {
| prototype: CSSAnimation;
| new(): CSSAnimation;
| };
|
| /** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
| interface CSSConditionRule extends CSSGroupingRule {
| readonly conditionText: string;
| }
|
| declare var CSSConditionRule: {
| prototype: CSSConditionRule;
| new(): CSSConditionRule;
| };
|
| interface CSSContainerRule extends CSSConditionRule {
| }
|
| declare var CSSContainerRule: {
| prototype: CSSContainerRule;
| new(): CSSContainerRule;
| };
|
| interface CSSCounterStyleRule extends CSSRule {
| additiveSymbols: string;
| fallback: string;
| name: string;
| negative: string;
| pad: string;
| prefix: string;
| range: string;
| speakAs: string;
| suffix: string;
| symbols: string;
| system: string;
| }
|
| declare var CSSCounterStyleRule: {
| prototype: CSSCounterStyleRule;
| new(): CSSCounterStyleRule;
| };
|
| interface CSSFontFaceRule extends CSSRule {
| readonly style: CSSStyleDeclaration;
| }
|
| declare var CSSFontFaceRule: {
| prototype: CSSFontFaceRule;
| new(): CSSFontFaceRule;
| };
|
| interface CSSFontFeatureValuesRule extends CSSRule {
| fontFamily: string;
| }
|
| declare var CSSFontFeatureValuesRule: {
| prototype: CSSFontFeatureValuesRule;
| new(): CSSFontFeatureValuesRule;
| };
|
| interface CSSFontPaletteValuesRule extends CSSRule {
| readonly basePalette: string;
| readonly fontFamily: string;
| readonly name: string;
| readonly overrideColors: string;
| }
|
| declare var CSSFontPaletteValuesRule: {
| prototype: CSSFontPaletteValuesRule;
| new(): CSSFontPaletteValuesRule;
| };
|
| /** Any CSS at-rule that contains other rules nested within it. */
| interface CSSGroupingRule extends CSSRule {
| readonly cssRules: CSSRuleList;
| deleteRule(index: number): void;
| insertRule(rule: string, index?: number): number;
| }
|
| declare var CSSGroupingRule: {
| prototype: CSSGroupingRule;
| new(): CSSGroupingRule;
| };
|
| interface CSSImportRule extends CSSRule {
| readonly href: string;
| readonly layerName: string | null;
| readonly media: MediaList;
| readonly styleSheet: CSSStyleSheet;
| }
|
| declare var CSSImportRule: {
| prototype: CSSImportRule;
| new(): CSSImportRule;
| };
|
| /** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
| interface CSSKeyframeRule extends CSSRule {
| keyText: string;
| readonly style: CSSStyleDeclaration;
| }
|
| declare var CSSKeyframeRule: {
| prototype: CSSKeyframeRule;
| new(): CSSKeyframeRule;
| };
|
| /** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
| interface CSSKeyframesRule extends CSSRule {
| readonly cssRules: CSSRuleList;
| name: string;
| appendRule(rule: string): void;
| deleteRule(select: string): void;
| findRule(select: string): CSSKeyframeRule | null;
| [index: number]: CSSKeyframeRule;
| }
|
| declare var CSSKeyframesRule: {
| prototype: CSSKeyframesRule;
| new(): CSSKeyframesRule;
| };
|
| interface CSSLayerBlockRule extends CSSGroupingRule {
| readonly name: string;
| }
|
| declare var CSSLayerBlockRule: {
| prototype: CSSLayerBlockRule;
| new(): CSSLayerBlockRule;
| };
|
| interface CSSLayerStatementRule extends CSSRule {
| readonly nameList: ReadonlyArray<string>;
| }
|
| declare var CSSLayerStatementRule: {
| prototype: CSSLayerStatementRule;
| new(): CSSLayerStatementRule;
| };
|
| /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
| interface CSSMediaRule extends CSSConditionRule {
| readonly media: MediaList;
| }
|
| declare var CSSMediaRule: {
| prototype: CSSMediaRule;
| new(): CSSMediaRule;
| };
|
| /** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
| interface CSSNamespaceRule extends CSSRule {
| readonly namespaceURI: string;
| readonly prefix: string;
| }
|
| declare var CSSNamespaceRule: {
| prototype: CSSNamespaceRule;
| new(): CSSNamespaceRule;
| };
|
| /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
| interface CSSPageRule extends CSSGroupingRule {
| selectorText: string;
| readonly style: CSSStyleDeclaration;
| }
|
| declare var CSSPageRule: {
| prototype: CSSPageRule;
| new(): CSSPageRule;
| };
|
| /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
| interface CSSRule {
| cssText: string;
| readonly parentRule: CSSRule | null;
| readonly parentStyleSheet: CSSStyleSheet | null;
| /** @deprecated */
| readonly type: number;
| readonly STYLE_RULE: 1;
| readonly CHARSET_RULE: 2;
| readonly IMPORT_RULE: 3;
| readonly MEDIA_RULE: 4;
| readonly FONT_FACE_RULE: 5;
| readonly PAGE_RULE: 6;
| readonly NAMESPACE_RULE: 10;
| readonly KEYFRAMES_RULE: 7;
| readonly KEYFRAME_RULE: 8;
| readonly SUPPORTS_RULE: 12;
| }
|
| declare var CSSRule: {
| prototype: CSSRule;
| new(): CSSRule;
| readonly STYLE_RULE: 1;
| readonly CHARSET_RULE: 2;
| readonly IMPORT_RULE: 3;
| readonly MEDIA_RULE: 4;
| readonly FONT_FACE_RULE: 5;
| readonly PAGE_RULE: 6;
| readonly NAMESPACE_RULE: 10;
| readonly KEYFRAMES_RULE: 7;
| readonly KEYFRAME_RULE: 8;
| readonly SUPPORTS_RULE: 12;
| };
|
| /** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
| interface CSSRuleList {
| readonly length: number;
| item(index: number): CSSRule | null;
| [index: number]: CSSRule;
| }
|
| declare var CSSRuleList: {
| prototype: CSSRuleList;
| new(): CSSRuleList;
| };
|
| /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
| interface CSSStyleDeclaration {
| accentColor: string;
| alignContent: string;
| alignItems: string;
| alignSelf: string;
| alignmentBaseline: string;
| all: string;
| animation: string;
| animationDelay: string;
| animationDirection: string;
| animationDuration: string;
| animationFillMode: string;
| animationIterationCount: string;
| animationName: string;
| animationPlayState: string;
| animationTimingFunction: string;
| appearance: string;
| aspectRatio: string;
| backdropFilter: string;
| backfaceVisibility: string;
| background: string;
| backgroundAttachment: string;
| backgroundBlendMode: string;
| backgroundClip: string;
| backgroundColor: string;
| backgroundImage: string;
| backgroundOrigin: string;
| backgroundPosition: string;
| backgroundPositionX: string;
| backgroundPositionY: string;
| backgroundRepeat: string;
| backgroundSize: string;
| baselineShift: string;
| blockSize: string;
| border: string;
| borderBlock: string;
| borderBlockColor: string;
| borderBlockEnd: string;
| borderBlockEndColor: string;
| borderBlockEndStyle: string;
| borderBlockEndWidth: string;
| borderBlockStart: string;
| borderBlockStartColor: string;
| borderBlockStartStyle: string;
| borderBlockStartWidth: string;
| borderBlockStyle: string;
| borderBlockWidth: string;
| borderBottom: string;
| borderBottomColor: string;
| borderBottomLeftRadius: string;
| borderBottomRightRadius: string;
| borderBottomStyle: string;
| borderBottomWidth: string;
| borderCollapse: string;
| borderColor: string;
| borderEndEndRadius: string;
| borderEndStartRadius: string;
| borderImage: string;
| borderImageOutset: string;
| borderImageRepeat: string;
| borderImageSlice: string;
| borderImageSource: string;
| borderImageWidth: string;
| borderInline: string;
| borderInlineColor: string;
| borderInlineEnd: string;
| borderInlineEndColor: string;
| borderInlineEndStyle: string;
| borderInlineEndWidth: string;
| borderInlineStart: string;
| borderInlineStartColor: string;
| borderInlineStartStyle: string;
| borderInlineStartWidth: string;
| borderInlineStyle: string;
| borderInlineWidth: string;
| borderLeft: string;
| borderLeftColor: string;
| borderLeftStyle: string;
| borderLeftWidth: string;
| borderRadius: string;
| borderRight: string;
| borderRightColor: string;
| borderRightStyle: string;
| borderRightWidth: string;
| borderSpacing: string;
| borderStartEndRadius: string;
| borderStartStartRadius: string;
| borderStyle: string;
| borderTop: string;
| borderTopColor: string;
| borderTopLeftRadius: string;
| borderTopRightRadius: string;
| borderTopStyle: string;
| borderTopWidth: string;
| borderWidth: string;
| bottom: string;
| boxShadow: string;
| boxSizing: string;
| breakAfter: string;
| breakBefore: string;
| breakInside: string;
| captionSide: string;
| caretColor: string;
| clear: string;
| /** @deprecated */
| clip: string;
| clipPath: string;
| clipRule: string;
| color: string;
| colorInterpolation: string;
| colorInterpolationFilters: string;
| colorScheme: string;
| columnCount: string;
| columnFill: string;
| columnGap: string;
| columnRule: string;
| columnRuleColor: string;
| columnRuleStyle: string;
| columnRuleWidth: string;
| columnSpan: string;
| columnWidth: string;
| columns: string;
| contain: string;
| containIntrinsicBlockSize: string;
| containIntrinsicHeight: string;
| containIntrinsicInlineSize: string;
| containIntrinsicSize: string;
| containIntrinsicWidth: string;
| container: string;
| containerName: string;
| containerType: string;
| content: string;
| contentVisibility: string;
| counterIncrement: string;
| counterReset: string;
| counterSet: string;
| cssFloat: string;
| cssText: string;
| cursor: string;
| direction: string;
| display: string;
| dominantBaseline: string;
| emptyCells: string;
| fill: string;
| fillOpacity: string;
| fillRule: string;
| filter: string;
| flex: string;
| flexBasis: string;
| flexDirection: string;
| flexFlow: string;
| flexGrow: string;
| flexShrink: string;
| flexWrap: string;
| float: string;
| floodColor: string;
| floodOpacity: string;
| font: string;
| fontFamily: string;
| fontFeatureSettings: string;
| fontKerning: string;
| fontOpticalSizing: string;
| fontPalette: string;
| fontSize: string;
| fontSizeAdjust: string;
| fontStretch: string;
| fontStyle: string;
| fontSynthesis: string;
| fontVariant: string;
| fontVariantAlternates: string;
| fontVariantCaps: string;
| fontVariantEastAsian: string;
| fontVariantLigatures: string;
| fontVariantNumeric: string;
| fontVariantPosition: string;
| fontVariationSettings: string;
| fontWeight: string;
| gap: string;
| grid: string;
| gridArea: string;
| gridAutoColumns: string;
| gridAutoFlow: string;
| gridAutoRows: string;
| gridColumn: string;
| gridColumnEnd: string;
| /** @deprecated This is a legacy alias of \`columnGap\`. */
| gridColumnGap: string;
| gridColumnStart: string;
| /** @deprecated This is a legacy alias of \`gap\`. */
| gridGap: string;
| gridRow: string;
| gridRowEnd: string;
| /** @deprecated This is a legacy alias of \`rowGap\`. */
| gridRowGap: string;
| gridRowStart: string;
| gridTemplate: string;
| gridTemplateAreas: string;
| gridTemplateColumns: string;
| gridTemplateRows: string;
| height: string;
| hyphenateCharacter: string;
| hyphens: string;
| /** @deprecated */
| imageOrientation: string;
| imageRendering: string;
| inlineSize: string;
| inset: string;
| insetBlock: string;
| insetBlockEnd: string;
| insetBlockStart: string;
| insetInline: string;
| insetInlineEnd: string;
| insetInlineStart: string;
| isolation: string;
| justifyContent: string;
| justifyItems: string;
| justifySelf: string;
| left: string;
| readonly length: number;
| letterSpacing: string;
| lightingColor: string;
| lineBreak: string;
| lineHeight: string;
| listStyle: string;
| listStyleImage: string;
| listStylePosition: string;
| listStyleType: string;
| margin: string;
| marginBlock: string;
| marginBlockEnd: string;
| marginBlockStart: string;
| marginBottom: string;
| marginInline: string;
| marginInlineEnd: string;
| marginInlineStart: string;
| marginLeft: string;
| marginRight: string;
| marginTop: string;
| marker: string;
| markerEnd: string;
| markerMid: string;
| markerStart: string;
| mask: string;
| maskClip: string;
| maskComposite: string;
| maskImage: string;
| maskMode: string;
| maskOrigin: string;
| maskPosition: string;
| maskRepeat: string;
| maskSize: string;
| maskType: string;
| mathStyle: string;
| maxBlockSize: string;
| maxHeight: string;
| maxInlineSize: string;
| maxWidth: string;
| minBlockSize: string;
| minHeight: string;
| minInlineSize: string;
| minWidth: string;
| mixBlendMode: string;
| objectFit: string;
| objectPosition: string;
| offset: string;
| offsetDistance: string;
| offsetPath: string;
| offsetRotate: string;
| opacity: string;
| order: string;
| orphans: string;
| outline: string;
| outlineColor: string;
| outlineOffset: string;
| outlineStyle: string;
| outlineWidth: string;
| overflow: string;
| overflowAnchor: string;
| overflowClipMargin: string;
| overflowWrap: string;
| overflowX: string;
| overflowY: string;
| overscrollBehavior: string;
| overscrollBehaviorBlock: string;
| overscrollBehaviorInline: string;
| overscrollBehaviorX: string;
| overscrollBehaviorY: string;
| padding: string;
| paddingBlock: string;
| paddingBlockEnd: string;
| paddingBlockStart: string;
| paddingBottom: string;
| paddingInline: string;
| paddingInlineEnd: string;
| paddingInlineStart: string;
| paddingLeft: string;
| paddingRight: string;
| paddingTop: string;
| pageBreakAfter: string;
| pageBreakBefore: string;
| pageBreakInside: string;
| paintOrder: string;
| readonly parentRule: CSSRule | null;
| perspective: string;
| perspectiveOrigin: string;
| placeContent: string;
| placeItems: string;
| placeSelf: string;
| pointerEvents: string;
| position: string;
| printColorAdjust: string;
| quotes: string;
| resize: string;
| right: string;
| rotate: string;
| rowGap: string;
| rubyPosition: string;
| scale: string;
| scrollBehavior: string;
| scrollMargin: string;
| scrollMarginBlock: string;
| scrollMarginBlockEnd: string;
| scrollMarginBlockStart: string;
| scrollMarginBottom: string;
| scrollMarginInline: string;
| scrollMarginInlineEnd: string;
| scrollMarginInlineStart: string;
| scrollMarginLeft: string;
| scrollMarginRight: string;
| scrollMarginTop: string;
| scrollPadding: string;
| scrollPaddingBlock: string;
| scrollPaddingBlockEnd: string;
| scrollPaddingBlockStart: string;
| scrollPaddingBottom: string;
| scrollPaddingInline: string;
| scrollPaddingInlineEnd: string;
| scrollPaddingInlineStart: string;
| scrollPaddingLeft: string;
| scrollPaddingRight: string;
| scrollPaddingTop: string;
| scrollSnapAlign: string;
| scrollSnapStop: string;
| scrollSnapType: string;
| scrollbarGutter: string;
| shapeImageThreshold: string;
| shapeMargin: string;
| shapeOutside: string;
| shapeRendering: string;
| stopColor: string;
| stopOpacity: string;
| stroke: string;
| strokeDasharray: string;
| strokeDashoffset: string;
| strokeLinecap: string;
| strokeLinejoin: string;
| strokeMiterlimit: string;
| strokeOpacity: string;
| strokeWidth: string;
| tabSize: string;
| tableLayout: string;
| textAlign: string;
| textAlignLast: string;
| textAnchor: string;
| textCombineUpright: string;
| textDecoration: string;
| textDecorationColor: string;
| textDecorationLine: string;
| textDecorationSkipInk: string;
| textDecorationStyle: string;
| textDecorationThickness: string;
| textEmphasis: string;
| textEmphasisColor: string;
| textEmphasisPosition: string;
| textEmphasisStyle: string;
| textIndent: string;
| textOrientation: string;
| textOverflow: string;
| textRendering: string;
| textShadow: string;
| textTransform: string;
| textUnderlineOffset: string;
| textUnderlinePosition: string;
| top: string;
| touchAction: string;
| transform: string;
| transformBox: string;
| transformOrigin: string;
| transformStyle: string;
| transition: string;
| transitionDelay: string;
| transitionDuration: string;
| transitionProperty: string;
| transitionTimingFunction: string;
| translate: string;
| unicodeBidi: string;
| userSelect: string;
| verticalAlign: string;
| visibility: string;
| /** @deprecated This is a legacy alias of \`alignContent\`. */
| webkitAlignContent: string;
| /** @deprecated This is a legacy alias of \`alignItems\`. */
| webkitAlignItems: string;
| /** @deprecated This is a legacy alias of \`alignSelf\`. */
| webkitAlignSelf: string;
| /** @deprecated This is a legacy alias of \`animation\`. */
| webkitAnimation: string;
| /** @deprecated This is a legacy alias of \`animationDelay\`. */
| webkitAnimationDelay: string;
| /** @deprecated This is a legacy alias of \`animationDirection\`. */
| webkitAnimationDirection: string;
| /** @deprecated This is a legacy alias of \`animationDuration\`. */
| webkitAnimationDuration: string;
| /** @deprecated This is a legacy alias of \`animationFillMode\`. */
| webkitAnimationFillMode: string;
| /** @deprecated This is a legacy alias of \`animationIterationCount\`. */
| webkitAnimationIterationCount: string;
| /** @deprecated This is a legacy alias of \`animationName\`. */
| webkitAnimationName: string;
| /** @deprecated This is a legacy alias of \`animationPlayState\`. */
| webkitAnimationPlayState: string;
| /** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
| webkitAnimationTimingFunction: string;
| /** @deprecated This is a legacy alias of \`appearance\`. */
| webkitAppearance: string;
| /** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
| webkitBackfaceVisibility: string;
| /** @deprecated This is a legacy alias of \`backgroundClip\`. */
| webkitBackgroundClip: string;
| /** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
| webkitBackgroundOrigin: string;
| /** @deprecated This is a legacy alias of \`backgroundSize\`. */
| webkitBackgroundSize: string;
| /** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
| webkitBorderBottomLeftRadius: string;
| /** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
| webkitBorderBottomRightRadius: string;
| /** @deprecated This is a legacy alias of \`borderRadius\`. */
| webkitBorderRadius: string;
| /** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
| webkitBorderTopLeftRadius: string;
| /** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
| webkitBorderTopRightRadius: string;
| /** @deprecated This is a legacy alias of \`boxAlign\`. */
| webkitBoxAlign: string;
| /** @deprecated This is a legacy alias of \`boxFlex\`. */
| webkitBoxFlex: string;
| /** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
| webkitBoxOrdinalGroup: string;
| /** @deprecated This is a legacy alias of \`boxOrient\`. */
| webkitBoxOrient: string;
| /** @deprecated This is a legacy alias of \`boxPack\`. */
| webkitBoxPack: string;
| /** @deprecated This is a legacy alias of \`boxShadow\`. */
| webkitBoxShadow: string;
| /** @deprecated This is a legacy alias of \`boxSizing\`. */
| webkitBoxSizing: string;
| /** @deprecated This is a legacy alias of \`filter\`. */
| webkitFilter: string;
| /** @deprecated This is a legacy alias of \`flex\`. */
| webkitFlex: string;
| /** @deprecated This is a legacy alias of \`flexBasis\`. */
| webkitFlexBasis: string;
| /** @deprecated This is a legacy alias of \`flexDirection\`. */
| webkitFlexDirection: string;
| /** @deprecated This is a legacy alias of \`flexFlow\`. */
| webkitFlexFlow: string;
| /** @deprecated This is a legacy alias of \`flexGrow\`. */
| webkitFlexGrow: string;
| /** @deprecated This is a legacy alias of \`flexShrink\`. */
| webkitFlexShrink: string;
| /** @deprecated This is a legacy alias of \`flexWrap\`. */
| webkitFlexWrap: string;
| /** @deprecated This is a legacy alias of \`justifyContent\`. */
| webkitJustifyContent: string;
| webkitLineClamp: string;
| /** @deprecated This is a legacy alias of \`mask\`. */
| webkitMask: string;
| /** @deprecated This is a legacy alias of \`maskBorder\`. */
| webkitMaskBoxImage: string;
| /** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
| webkitMaskBoxImageOutset: string;
| /** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
| webkitMaskBoxImageRepeat: string;
| /** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
| webkitMaskBoxImageSlice: string;
| /** @deprecated This is a legacy alias of \`maskBorderSource\`. */
| webkitMaskBoxImageSource: string;
| /** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
| webkitMaskBoxImageWidth: string;
| /** @deprecated This is a legacy alias of \`maskClip\`. */
| webkitMaskClip: string;
| webkitMaskComposite: string;
| /** @deprecated This is a legacy alias of \`maskImage\`. */
| webkitMaskImage: string;
| /** @deprecated This is a legacy alias of \`maskOrigin\`. */
| webkitMaskOrigin: string;
| /** @deprecated This is a legacy alias of \`maskPosition\`. */
| webkitMaskPosition: string;
| /** @deprecated This is a legacy alias of \`maskRepeat\`. */
| webkitMaskRepeat: string;
| /** @deprecated This is a legacy alias of \`maskSize\`. */
| webkitMaskSize: string;
| /** @deprecated This is a legacy alias of \`order\`. */
| webkitOrder: string;
| /** @deprecated This is a legacy alias of \`perspective\`. */
| webkitPerspective: string;
| /** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
| webkitPerspectiveOrigin: string;
| webkitTextFillColor: string;
| /** @deprecated This is a legacy alias of \`textSizeAdjust\`. */
| webkitTextSizeAdjust: string;
| webkitTextStroke: string;
| webkitTextStrokeColor: string;
| webkitTextStrokeWidth: string;
| /** @deprecated This is a legacy alias of \`transform\`. */
| webkitTransform: string;
| /** @deprecated This is a legacy alias of \`transformOrigin\`. */
| webkitTransformOrigin: string;
| /** @deprecated This is a legacy alias of \`transformStyle\`. */
| webkitTransformStyle: string;
| /** @deprecated This is a legacy alias of \`transition\`. */
| webkitTransition: string;
| /** @deprecated This is a legacy alias of \`transitionDelay\`. */
| webkitTransitionDelay: string;
| /** @deprecated This is a legacy alias of \`transitionDuration\`. */
| webkitTransitionDuration: string;
| /** @deprecated This is a legacy alias of \`transitionProperty\`. */
| webkitTransitionProperty: string;
| /** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
| webkitTransitionTimingFunction: string;
| /** @deprecated This is a legacy alias of \`userSelect\`. */
| webkitUserSelect: string;
| whiteSpace: string;
| widows: string;
| width: string;
| willChange: string;
| wordBreak: string;
| wordSpacing: string;
| /** @deprecated */
| wordWrap: string;
| writingMode: string;
| zIndex: string;
| getPropertyPriority(property: string): string;
| getPropertyValue(property: string): string;
| item(index: number): string;
| removeProperty(property: string): string;
| setProperty(property: string, value: string | null, priority?: string): void;
| [index: number]: string;
| }
|
| declare var CSSStyleDeclaration: {
| prototype: CSSStyleDeclaration;
| new(): CSSStyleDeclaration;
| };
|
| /** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
| interface CSSStyleRule extends CSSRule {
| selectorText: string;
| readonly style: CSSStyleDeclaration;
| }
|
| declare var CSSStyleRule: {
| prototype: CSSStyleRule;
| new(): CSSStyleRule;
| };
|
| /** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
| interface CSSStyleSheet extends StyleSheet {
| readonly cssRules: CSSRuleList;
| readonly ownerRule: CSSRule | null;
| /** @deprecated */
| readonly rules: CSSRuleList;
| /** @deprecated */
| addRule(selector?: string, style?: string, index?: number): number;
| deleteRule(index: number): void;
| insertRule(rule: string, index?: number): number;
| /** @deprecated */
| removeRule(index?: number): void;
| replace(text: string): Promise<CSSStyleSheet>;
| replaceSync(text: string): void;
| }
|
| declare var CSSStyleSheet: {
| prototype: CSSStyleSheet;
| new(options?: CSSStyleSheetInit): CSSStyleSheet;
| };
|
| /** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
| interface CSSSupportsRule extends CSSConditionRule {
| }
|
| declare var CSSSupportsRule: {
| prototype: CSSSupportsRule;
| new(): CSSSupportsRule;
| };
|
| interface CSSTransition extends Animation {
| readonly transitionProperty: string;
| addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var CSSTransition: {
| prototype: CSSTransition;
| new(): CSSTransition;
| };
|
| /**
| * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
| * Available only in secure contexts.
| */
| interface Cache {
| add(request: RequestInfo | URL): Promise<void>;
| addAll(requests: RequestInfo[]): Promise<void>;
| delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
| keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
| match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
| matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
| put(request: RequestInfo | URL, response: Response): Promise<void>;
| }
|
| declare var Cache: {
| prototype: Cache;
| new(): Cache;
| };
|
| /**
| * The storage for Cache objects.
| * Available only in secure contexts.
| */
| interface CacheStorage {
| delete(cacheName: string): Promise<boolean>;
| has(cacheName: string): Promise<boolean>;
| keys(): Promise<string[]>;
| match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
| open(cacheName: string): Promise<Cache>;
| }
|
| declare var CacheStorage: {
| prototype: CacheStorage;
| new(): CacheStorage;
| };
|
| interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
| readonly canvas: HTMLCanvasElement;
| requestFrame(): void;
| addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var CanvasCaptureMediaStreamTrack: {
| prototype: CanvasCaptureMediaStreamTrack;
| new(): CanvasCaptureMediaStreamTrack;
| };
|
| interface CanvasCompositing {
| globalAlpha: number;
| globalCompositeOperation: GlobalCompositeOperation;
| }
|
| interface CanvasDrawImage {
| drawImage(image: CanvasImageSource, dx: number, dy: number): void;
| drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
| drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
| }
|
| interface CanvasDrawPath {
| beginPath(): void;
| clip(fillRule?: CanvasFillRule): void;
| clip(path: Path2D, fillRule?: CanvasFillRule): void;
| fill(fillRule?: CanvasFillRule): void;
| fill(path: Path2D, fillRule?: CanvasFillRule): void;
| isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
| isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
| isPointInStroke(x: number, y: number): boolean;
| isPointInStroke(path: Path2D, x: number, y: number): boolean;
| stroke(): void;
| stroke(path: Path2D): void;
| }
|
| interface CanvasFillStrokeStyles {
| fillStyle: string | CanvasGradient | CanvasPattern;
| strokeStyle: string | CanvasGradient | CanvasPattern;
| createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
| createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
| createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
| createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
| }
|
| interface CanvasFilters {
| filter: string;
| }
|
| /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
| interface CanvasGradient {
| /**
| * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
| *
| * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
| */
| addColorStop(offset: number, color: string): void;
| }
|
| declare var CanvasGradient: {
| prototype: CanvasGradient;
| new(): CanvasGradient;
| };
|
| interface CanvasImageData {
| createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| createImageData(imagedata: ImageData): ImageData;
| getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| putImageData(imagedata: ImageData, dx: number, dy: number): void;
| putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
| }
|
| interface CanvasImageSmoothing {
| imageSmoothingEnabled: boolean;
| imageSmoothingQuality: ImageSmoothingQuality;
| }
|
| interface CanvasPath {
| arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
| arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
| bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
| closePath(): void;
| ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
| lineTo(x: number, y: number): void;
| moveTo(x: number, y: number): void;
| quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
| rect(x: number, y: number, w: number, h: number): void;
| roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
| }
|
| interface CanvasPathDrawingStyles {
| lineCap: CanvasLineCap;
| lineDashOffset: number;
| lineJoin: CanvasLineJoin;
| lineWidth: number;
| miterLimit: number;
| getLineDash(): number[];
| setLineDash(segments: number[]): void;
| }
|
| /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
| interface CanvasPattern {
| /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
| setTransform(transform?: DOMMatrix2DInit): void;
| }
|
| declare var CanvasPattern: {
| prototype: CanvasPattern;
| new(): CanvasPattern;
| };
|
| interface CanvasRect {
| clearRect(x: number, y: number, w: number, h: number): void;
| fillRect(x: number, y: number, w: number, h: number): void;
| strokeRect(x: number, y: number, w: number, h: number): void;
| }
|
| /** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
| interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
| readonly canvas: HTMLCanvasElement;
| getContextAttributes(): CanvasRenderingContext2DSettings;
| }
|
| declare var CanvasRenderingContext2D: {
| prototype: CanvasRenderingContext2D;
| new(): CanvasRenderingContext2D;
| };
|
| interface CanvasShadowStyles {
| shadowBlur: number;
| shadowColor: string;
| shadowOffsetX: number;
| shadowOffsetY: number;
| }
|
| interface CanvasState {
| restore(): void;
| save(): void;
| }
|
| interface CanvasText {
| fillText(text: string, x: number, y: number, maxWidth?: number): void;
| measureText(text: string): TextMetrics;
| strokeText(text: string, x: number, y: number, maxWidth?: number): void;
| }
|
| interface CanvasTextDrawingStyles {
| direction: CanvasDirection;
| font: string;
| fontKerning: CanvasFontKerning;
| textAlign: CanvasTextAlign;
| textBaseline: CanvasTextBaseline;
| }
|
| interface CanvasTransform {
| getTransform(): DOMMatrix;
| resetTransform(): void;
| rotate(angle: number): void;
| scale(x: number, y: number): void;
| setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
| setTransform(transform?: DOMMatrix2DInit): void;
| transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
| translate(x: number, y: number): void;
| }
|
| interface CanvasUserInterface {
| drawFocusIfNeeded(element: Element): void;
| drawFocusIfNeeded(path: Path2D, element: Element): void;
| }
|
| /** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
| interface ChannelMergerNode extends AudioNode {
| }
|
| declare var ChannelMergerNode: {
| prototype: ChannelMergerNode;
| new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
| };
|
| /** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
| interface ChannelSplitterNode extends AudioNode {
| }
|
| declare var ChannelSplitterNode: {
| prototype: ChannelSplitterNode;
| new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
| };
|
| /** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
| interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
| data: string;
| readonly length: number;
| readonly ownerDocument: Document;
| appendData(data: string): void;
| deleteData(offset: number, count: number): void;
| insertData(offset: number, data: string): void;
| replaceData(offset: number, count: number, data: string): void;
| substringData(offset: number, count: number): string;
| }
|
| declare var CharacterData: {
| prototype: CharacterData;
| new(): CharacterData;
| };
|
| interface ChildNode extends Node {
| /**
| * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| after(...nodes: (Node | string)[]): void;
| /**
| * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| before(...nodes: (Node | string)[]): void;
| /** Removes node. */
| remove(): void;
| /**
| * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| replaceWith(...nodes: (Node | string)[]): void;
| }
|
| /** @deprecated */
| interface ClientRect extends DOMRect {
| }
|
| /** Available only in secure contexts. */
| interface Clipboard extends EventTarget {
| read(): Promise<ClipboardItems>;
| readText(): Promise<string>;
| write(data: ClipboardItems): Promise<void>;
| writeText(data: string): Promise<void>;
| }
|
| declare var Clipboard: {
| prototype: Clipboard;
| new(): Clipboard;
| };
|
| /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
| interface ClipboardEvent extends Event {
| readonly clipboardData: DataTransfer | null;
| }
|
| declare var ClipboardEvent: {
| prototype: ClipboardEvent;
| new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
| };
|
| /** Available only in secure contexts. */
| interface ClipboardItem {
| readonly presentationStyle: PresentationStyle;
| readonly types: ReadonlyArray<string>;
| getType(type: string): Promise<Blob>;
| }
|
| declare var ClipboardItem: {
| prototype: ClipboardItem;
| new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
| };
|
| /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
| interface CloseEvent extends Event {
| /** Returns the WebSocket connection close code provided by the server. */
| readonly code: number;
| /** Returns the WebSocket connection close reason provided by the server. */
| readonly reason: string;
| /** Returns true if the connection closed cleanly; false otherwise. */
| readonly wasClean: boolean;
| }
|
| declare var CloseEvent: {
| prototype: CloseEvent;
| new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
| };
|
| /** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
| interface Comment extends CharacterData {
| }
|
| declare var Comment: {
| prototype: Comment;
| new(data?: string): Comment;
| };
|
| /** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
| interface CompositionEvent extends UIEvent {
| readonly data: string;
| /** @deprecated */
| initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
| }
|
| declare var CompositionEvent: {
| prototype: CompositionEvent;
| new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
| };
|
| interface ConstantSourceNode extends AudioScheduledSourceNode {
| readonly offset: AudioParam;
| addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ConstantSourceNode: {
| prototype: ConstantSourceNode;
| new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
| };
|
| /** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
| interface ConvolverNode extends AudioNode {
| buffer: AudioBuffer | null;
| normalize: boolean;
| }
|
| declare var ConvolverNode: {
| prototype: ConvolverNode;
| new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
| };
|
| /** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
| interface CountQueuingStrategy extends QueuingStrategy {
| readonly highWaterMark: number;
| readonly size: QueuingStrategySize;
| }
|
| declare var CountQueuingStrategy: {
| prototype: CountQueuingStrategy;
| new(init: QueuingStrategyInit): CountQueuingStrategy;
| };
|
| /** Available only in secure contexts. */
| interface Credential {
| readonly id: string;
| readonly type: string;
| }
|
| declare var Credential: {
| prototype: Credential;
| new(): Credential;
| };
|
| /** Available only in secure contexts. */
| interface CredentialsContainer {
| create(options?: CredentialCreationOptions): Promise<Credential | null>;
| get(options?: CredentialRequestOptions): Promise<Credential | null>;
| preventSilentAccess(): Promise<void>;
| store(credential: Credential): Promise<Credential>;
| }
|
| declare var CredentialsContainer: {
| prototype: CredentialsContainer;
| new(): CredentialsContainer;
| };
|
| /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
| interface Crypto {
| /** Available only in secure contexts. */
| readonly subtle: SubtleCrypto;
| getRandomValues<T extends ArrayBufferView | null>(array: T): T;
| /** Available only in secure contexts. */
| randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
| }
|
| declare var Crypto: {
| prototype: Crypto;
| new(): Crypto;
| };
|
| /**
| * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
| * Available only in secure contexts.
| */
| interface CryptoKey {
| readonly algorithm: KeyAlgorithm;
| readonly extractable: boolean;
| readonly type: KeyType;
| readonly usages: KeyUsage[];
| }
|
| declare var CryptoKey: {
| prototype: CryptoKey;
| new(): CryptoKey;
| };
|
| interface CustomElementRegistry {
| define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
| get(name: string): CustomElementConstructor | undefined;
| upgrade(root: Node): void;
| whenDefined(name: string): Promise<CustomElementConstructor>;
| }
|
| declare var CustomElementRegistry: {
| prototype: CustomElementRegistry;
| new(): CustomElementRegistry;
| };
|
| interface CustomEvent<T = any> extends Event {
| /** Returns any custom data event was created with. Typically used for synthetic events. */
| readonly detail: T;
| /** @deprecated */
| initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
| }
|
| declare var CustomEvent: {
| prototype: CustomEvent;
| new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
| };
|
| /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
| interface DOMException extends Error {
| /** @deprecated */
| readonly code: number;
| readonly message: string;
| readonly name: string;
| readonly INDEX_SIZE_ERR: 1;
| readonly DOMSTRING_SIZE_ERR: 2;
| readonly HIERARCHY_REQUEST_ERR: 3;
| readonly WRONG_DOCUMENT_ERR: 4;
| readonly INVALID_CHARACTER_ERR: 5;
| readonly NO_DATA_ALLOWED_ERR: 6;
| readonly NO_MODIFICATION_ALLOWED_ERR: 7;
| readonly NOT_FOUND_ERR: 8;
| readonly NOT_SUPPORTED_ERR: 9;
| readonly INUSE_ATTRIBUTE_ERR: 10;
| readonly INVALID_STATE_ERR: 11;
| readonly SYNTAX_ERR: 12;
| readonly INVALID_MODIFICATION_ERR: 13;
| readonly NAMESPACE_ERR: 14;
| readonly INVALID_ACCESS_ERR: 15;
| readonly VALIDATION_ERR: 16;
| readonly TYPE_MISMATCH_ERR: 17;
| readonly SECURITY_ERR: 18;
| readonly NETWORK_ERR: 19;
| readonly ABORT_ERR: 20;
| readonly URL_MISMATCH_ERR: 21;
| readonly QUOTA_EXCEEDED_ERR: 22;
| readonly TIMEOUT_ERR: 23;
| readonly INVALID_NODE_TYPE_ERR: 24;
| readonly DATA_CLONE_ERR: 25;
| }
|
| declare var DOMException: {
| prototype: DOMException;
| new(message?: string, name?: string): DOMException;
| readonly INDEX_SIZE_ERR: 1;
| readonly DOMSTRING_SIZE_ERR: 2;
| readonly HIERARCHY_REQUEST_ERR: 3;
| readonly WRONG_DOCUMENT_ERR: 4;
| readonly INVALID_CHARACTER_ERR: 5;
| readonly NO_DATA_ALLOWED_ERR: 6;
| readonly NO_MODIFICATION_ALLOWED_ERR: 7;
| readonly NOT_FOUND_ERR: 8;
| readonly NOT_SUPPORTED_ERR: 9;
| readonly INUSE_ATTRIBUTE_ERR: 10;
| readonly INVALID_STATE_ERR: 11;
| readonly SYNTAX_ERR: 12;
| readonly INVALID_MODIFICATION_ERR: 13;
| readonly NAMESPACE_ERR: 14;
| readonly INVALID_ACCESS_ERR: 15;
| readonly VALIDATION_ERR: 16;
| readonly TYPE_MISMATCH_ERR: 17;
| readonly SECURITY_ERR: 18;
| readonly NETWORK_ERR: 19;
| readonly ABORT_ERR: 20;
| readonly URL_MISMATCH_ERR: 21;
| readonly QUOTA_EXCEEDED_ERR: 22;
| readonly TIMEOUT_ERR: 23;
| readonly INVALID_NODE_TYPE_ERR: 24;
| readonly DATA_CLONE_ERR: 25;
| };
|
| /** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
| interface DOMImplementation {
| createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
| createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
| createHTMLDocument(title?: string): Document;
| /** @deprecated */
| hasFeature(...args: any[]): true;
| }
|
| declare var DOMImplementation: {
| prototype: DOMImplementation;
| new(): DOMImplementation;
| };
|
| interface DOMMatrix extends DOMMatrixReadOnly {
| a: number;
| b: number;
| c: number;
| d: number;
| e: number;
| f: number;
| m11: number;
| m12: number;
| m13: number;
| m14: number;
| m21: number;
| m22: number;
| m23: number;
| m24: number;
| m31: number;
| m32: number;
| m33: number;
| m34: number;
| m41: number;
| m42: number;
| m43: number;
| m44: number;
| invertSelf(): DOMMatrix;
| multiplySelf(other?: DOMMatrixInit): DOMMatrix;
| preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
| rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
| rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
| rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
| scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| setMatrixValue(transformList: string): DOMMatrix;
| skewXSelf(sx?: number): DOMMatrix;
| skewYSelf(sy?: number): DOMMatrix;
| translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
| }
|
| declare var DOMMatrix: {
| prototype: DOMMatrix;
| new(init?: string | number[]): DOMMatrix;
| fromFloat32Array(array32: Float32Array): DOMMatrix;
| fromFloat64Array(array64: Float64Array): DOMMatrix;
| fromMatrix(other?: DOMMatrixInit): DOMMatrix;
| };
|
| type SVGMatrix = DOMMatrix;
| declare var SVGMatrix: typeof DOMMatrix;
|
| type WebKitCSSMatrix = DOMMatrix;
| declare var WebKitCSSMatrix: typeof DOMMatrix;
|
| interface DOMMatrixReadOnly {
| readonly a: number;
| readonly b: number;
| readonly c: number;
| readonly d: number;
| readonly e: number;
| readonly f: number;
| readonly is2D: boolean;
| readonly isIdentity: boolean;
| readonly m11: number;
| readonly m12: number;
| readonly m13: number;
| readonly m14: number;
| readonly m21: number;
| readonly m22: number;
| readonly m23: number;
| readonly m24: number;
| readonly m31: number;
| readonly m32: number;
| readonly m33: number;
| readonly m34: number;
| readonly m41: number;
| readonly m42: number;
| readonly m43: number;
| readonly m44: number;
| flipX(): DOMMatrix;
| flipY(): DOMMatrix;
| inverse(): DOMMatrix;
| multiply(other?: DOMMatrixInit): DOMMatrix;
| rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
| rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
| rotateFromVector(x?: number, y?: number): DOMMatrix;
| scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| /** @deprecated */
| scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
| skewX(sx?: number): DOMMatrix;
| skewY(sy?: number): DOMMatrix;
| toFloat32Array(): Float32Array;
| toFloat64Array(): Float64Array;
| toJSON(): any;
| transformPoint(point?: DOMPointInit): DOMPoint;
| translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
| toString(): string;
| }
|
| declare var DOMMatrixReadOnly: {
| prototype: DOMMatrixReadOnly;
| new(init?: string | number[]): DOMMatrixReadOnly;
| fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
| fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
| fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
| toString(): string;
| };
|
| /** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
| interface DOMParser {
| /**
| * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
| *
| * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
| *
| * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
| *
| * Values other than the above for type will cause a TypeError exception to be thrown.
| */
| parseFromString(string: string, type: DOMParserSupportedType): Document;
| }
|
| declare var DOMParser: {
| prototype: DOMParser;
| new(): DOMParser;
| };
|
| interface DOMPoint extends DOMPointReadOnly {
| w: number;
| x: number;
| y: number;
| z: number;
| }
|
| declare var DOMPoint: {
| prototype: DOMPoint;
| new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
| fromPoint(other?: DOMPointInit): DOMPoint;
| };
|
| type SVGPoint = DOMPoint;
| declare var SVGPoint: typeof DOMPoint;
|
| interface DOMPointReadOnly {
| readonly w: number;
| readonly x: number;
| readonly y: number;
| readonly z: number;
| matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
| toJSON(): any;
| }
|
| declare var DOMPointReadOnly: {
| prototype: DOMPointReadOnly;
| new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
| fromPoint(other?: DOMPointInit): DOMPointReadOnly;
| };
|
| interface DOMQuad {
| readonly p1: DOMPoint;
| readonly p2: DOMPoint;
| readonly p3: DOMPoint;
| readonly p4: DOMPoint;
| getBounds(): DOMRect;
| toJSON(): any;
| }
|
| declare var DOMQuad: {
| prototype: DOMQuad;
| new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
| fromQuad(other?: DOMQuadInit): DOMQuad;
| fromRect(other?: DOMRectInit): DOMQuad;
| };
|
| interface DOMRect extends DOMRectReadOnly {
| height: number;
| width: number;
| x: number;
| y: number;
| }
|
| declare var DOMRect: {
| prototype: DOMRect;
| new(x?: number, y?: number, width?: number, height?: number): DOMRect;
| fromRect(other?: DOMRectInit): DOMRect;
| };
|
| type SVGRect = DOMRect;
| declare var SVGRect: typeof DOMRect;
|
| interface DOMRectList {
| readonly length: number;
| item(index: number): DOMRect | null;
| [index: number]: DOMRect;
| }
|
| declare var DOMRectList: {
| prototype: DOMRectList;
| new(): DOMRectList;
| };
|
| interface DOMRectReadOnly {
| readonly bottom: number;
| readonly height: number;
| readonly left: number;
| readonly right: number;
| readonly top: number;
| readonly width: number;
| readonly x: number;
| readonly y: number;
| toJSON(): any;
| }
|
| declare var DOMRectReadOnly: {
| prototype: DOMRectReadOnly;
| new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
| fromRect(other?: DOMRectInit): DOMRectReadOnly;
| };
|
| /** A type returned by some APIs which contains a list of DOMString (strings). */
| interface DOMStringList {
| /** Returns the number of strings in strings. */
| readonly length: number;
| /** Returns true if strings contains string, and false otherwise. */
| contains(string: string): boolean;
| /** Returns the string with index index from strings. */
| item(index: number): string | null;
| [index: number]: string;
| }
|
| declare var DOMStringList: {
| prototype: DOMStringList;
| new(): DOMStringList;
| };
|
| /** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
| interface DOMStringMap {
| [name: string]: string | undefined;
| }
|
| declare var DOMStringMap: {
| prototype: DOMStringMap;
| new(): DOMStringMap;
| };
|
| /** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
| interface DOMTokenList {
| /** Returns the number of tokens. */
| readonly length: number;
| /**
| * Returns the associated set as string.
| *
| * Can be set, to change the associated attribute.
| */
| value: string;
| toString(): string;
| /**
| * Adds all arguments passed, except those already present.
| *
| * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
| *
| * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
| */
| add(...tokens: string[]): void;
| /** Returns true if token is present, and false otherwise. */
| contains(token: string): boolean;
| /** Returns the token with index index. */
| item(index: number): string | null;
| /**
| * Removes arguments passed, if they are present.
| *
| * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
| *
| * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
| */
| remove(...tokens: string[]): void;
| /**
| * Replaces token with newToken.
| *
| * Returns true if token was replaced with newToken, and false otherwise.
| *
| * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
| *
| * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
| */
| replace(token: string, newToken: string): boolean;
| /**
| * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
| *
| * Throws a TypeError if the associated attribute has no supported tokens defined.
| */
| supports(token: string): boolean;
| /**
| * If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
| *
| * Returns true if token is now present, and false otherwise.
| *
| * Throws a "SyntaxError" DOMException if token is empty.
| *
| * Throws an "InvalidCharacterError" DOMException if token contains any spaces.
| */
| toggle(token: string, force?: boolean): boolean;
| forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
| [index: number]: string;
| }
|
| declare var DOMTokenList: {
| prototype: DOMTokenList;
| new(): DOMTokenList;
| };
|
| /** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
| interface DataTransfer {
| /**
| * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
| *
| * Can be set, to change the selected operation.
| *
| * The possible values are "none", "copy", "link", and "move".
| */
| dropEffect: "none" | "copy" | "link" | "move";
| /**
| * Returns the kinds of operations that are to be allowed.
| *
| * Can be set (during the dragstart event), to change the allowed operations.
| *
| * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
| */
| effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
| /** Returns a FileList of the files being dragged, if any. */
| readonly files: FileList;
| /** Returns a DataTransferItemList object, with the drag data. */
| readonly items: DataTransferItemList;
| /** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */
| readonly types: ReadonlyArray<string>;
| /** Removes the data of the specified formats. Removes all data if the argument is omitted. */
| clearData(format?: string): void;
| /** Returns the specified data. If there is no such data, returns the empty string. */
| getData(format: string): string;
| /** Adds the specified data. */
| setData(format: string, data: string): void;
| /** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
| setDragImage(image: Element, x: number, y: number): void;
| }
|
| declare var DataTransfer: {
| prototype: DataTransfer;
| new(): DataTransfer;
| };
|
| /** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
| interface DataTransferItem {
| /** Returns the drag data item kind, one of: "string", "file". */
| readonly kind: string;
| /** Returns the drag data item type string. */
| readonly type: string;
| /** Returns a File object, if the drag data item kind is File. */
| getAsFile(): File | null;
| /** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
| getAsString(callback: FunctionStringCallback | null): void;
| webkitGetAsEntry(): FileSystemEntry | null;
| }
|
| declare var DataTransferItem: {
| prototype: DataTransferItem;
| new(): DataTransferItem;
| };
|
| /** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
| interface DataTransferItemList {
| /** Returns the number of items in the drag data store. */
| readonly length: number;
| /** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */
| add(data: string, type: string): DataTransferItem | null;
| add(data: File): DataTransferItem | null;
| /** Removes all the entries in the drag data store. */
| clear(): void;
| /** Removes the indexth entry in the drag data store. */
| remove(index: number): void;
| [index: number]: DataTransferItem;
| }
|
| declare var DataTransferItemList: {
| prototype: DataTransferItemList;
| new(): DataTransferItemList;
| };
|
| /** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
| interface DelayNode extends AudioNode {
| readonly delayTime: AudioParam;
| }
|
| declare var DelayNode: {
| prototype: DelayNode;
| new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
| };
|
| /**
| * The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
| * Available only in secure contexts.
| */
| interface DeviceMotionEvent extends Event {
| readonly acceleration: DeviceMotionEventAcceleration | null;
| readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
| readonly interval: number;
| readonly rotationRate: DeviceMotionEventRotationRate | null;
| }
|
| declare var DeviceMotionEvent: {
| prototype: DeviceMotionEvent;
| new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
| };
|
| /** Available only in secure contexts. */
| interface DeviceMotionEventAcceleration {
| readonly x: number | null;
| readonly y: number | null;
| readonly z: number | null;
| }
|
| /** Available only in secure contexts. */
| interface DeviceMotionEventRotationRate {
| readonly alpha: number | null;
| readonly beta: number | null;
| readonly gamma: number | null;
| }
|
| /**
| * The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
| * Available only in secure contexts.
| */
| interface DeviceOrientationEvent extends Event {
| readonly absolute: boolean;
| readonly alpha: number | null;
| readonly beta: number | null;
| readonly gamma: number | null;
| }
|
| declare var DeviceOrientationEvent: {
| prototype: DeviceOrientationEvent;
| new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
| };
|
| interface DocumentEventMap extends GlobalEventHandlersEventMap {
| "DOMContentLoaded": Event;
| "fullscreenchange": Event;
| "fullscreenerror": Event;
| "pointerlockchange": Event;
| "pointerlockerror": Event;
| "readystatechange": Event;
| "visibilitychange": Event;
| }
|
| /** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
| interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
| /** Sets or gets the URL for the current document. */
| readonly URL: string;
| /**
| * Sets or gets the color of all active links in the document.
| * @deprecated
| */
| alinkColor: string;
| /**
| * Returns a reference to the collection of elements contained by the object.
| * @deprecated
| */
| readonly all: HTMLAllCollection;
| /**
| * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
| * @deprecated
| */
| readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
| /**
| * Retrieves a collection of all applet objects in the document.
| * @deprecated
| */
| readonly applets: HTMLCollection;
| /**
| * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
| * @deprecated
| */
| bgColor: string;
| /** Specifies the beginning and end of the document body. */
| body: HTMLElement;
| /** Returns document's encoding. */
| readonly characterSet: string;
| /**
| * Gets or sets the character set used to encode the object.
| * @deprecated This is a legacy alias of \`characterSet\`.
| */
| readonly charset: string;
| /** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
| readonly compatMode: string;
| /** Returns document's content type. */
| readonly contentType: string;
| /**
| * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
| *
| * Can be set, to add a new cookie to the element's set of HTTP cookies.
| *
| * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
| */
| cookie: string;
| /**
| * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
| *
| * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
| */
| readonly currentScript: HTMLOrSVGScriptElement | null;
| /** Returns the Window object of the active document. */
| readonly defaultView: (WindowProxy & typeof globalThis) | null;
| /** Sets or gets a value that indicates whether the document can be edited. */
| designMode: string;
| /** Sets or retrieves a value that indicates the reading order of the object. */
| dir: string;
| /** Gets an object representing the document type declaration associated with the current document. */
| readonly doctype: DocumentType | null;
| /** Gets a reference to the root node of the document. */
| readonly documentElement: HTMLElement;
| /** Returns document's URL. */
| readonly documentURI: string;
| /**
| * Sets or gets the security domain of the document.
| * @deprecated
| */
| domain: string;
| /** Retrieves a collection of all embed objects in the document. */
| readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
| /**
| * Sets or gets the foreground (text) color of the document.
| * @deprecated
| */
| fgColor: string;
| /** Retrieves a collection, in source order, of all form objects in the document. */
| readonly forms: HTMLCollectionOf<HTMLFormElement>;
| /** @deprecated */
| readonly fullscreen: boolean;
| /** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
| readonly fullscreenEnabled: boolean;
| /** Returns the head element. */
| readonly head: HTMLHeadElement;
| readonly hidden: boolean;
| /** Retrieves a collection, in source order, of img objects in the document. */
| readonly images: HTMLCollectionOf<HTMLImageElement>;
| /** Gets the implementation object of the current document. */
| readonly implementation: DOMImplementation;
| /**
| * Returns the character encoding used to create the webpage that is loaded into the document object.
| * @deprecated This is a legacy alias of \`characterSet\`.
| */
| readonly inputEncoding: string;
| /** Gets the date that the page was last modified, if the page supplies one. */
| readonly lastModified: string;
| /**
| * Sets or gets the color of the document links.
| * @deprecated
| */
| linkColor: string;
| /** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
| readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
| /** Contains information about the current URL. */
| get location(): Location;
| set location(href: string | Location);
| onfullscreenchange: ((this: Document, ev: Event) => any) | null;
| onfullscreenerror: ((this: Document, ev: Event) => any) | null;
| onpointerlockchange: ((this: Document, ev: Event) => any) | null;
| onpointerlockerror: ((this: Document, ev: Event) => any) | null;
| /**
| * Fires when the state of the object has changed.
| * @param ev The event
| */
| onreadystatechange: ((this: Document, ev: Event) => any) | null;
| onvisibilitychange: ((this: Document, ev: Event) => any) | null;
| readonly ownerDocument: null;
| readonly pictureInPictureEnabled: boolean;
| /** Return an HTMLCollection of the embed elements in the Document. */
| readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
| /** Retrieves a value that indicates the current state of the object. */
| readonly readyState: DocumentReadyState;
| /** Gets the URL of the location that referred the user to the current page. */
| readonly referrer: string;
| /** @deprecated */
| readonly rootElement: SVGSVGElement | null;
| /** Retrieves a collection of all script objects in the document. */
| readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
| readonly scrollingElement: Element | null;
| readonly timeline: DocumentTimeline;
| /** Contains the title of the document. */
| title: string;
| readonly visibilityState: DocumentVisibilityState;
| /**
| * Sets or gets the color of the links that the user has visited.
| * @deprecated
| */
| vlinkColor: string;
| /**
| * Moves node from another document and returns it.
| *
| * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
| */
| adoptNode<T extends Node>(node: T): T;
| /** @deprecated */
| captureEvents(): void;
| /** @deprecated */
| caretRangeFromPoint(x: number, y: number): Range | null;
| /** @deprecated */
| clear(): void;
| /** Closes an output stream and forces the sent data to display. */
| close(): void;
| /**
| * Creates an attribute object with a specified name.
| * @param name String that sets the attribute object's name.
| */
| createAttribute(localName: string): Attr;
| createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
| /** Returns a CDATASection node whose data is data. */
| createCDATASection(data: string): CDATASection;
| /**
| * Creates a comment object with the specified data.
| * @param data Sets the comment object's data.
| */
| createComment(data: string): Comment;
| /** Creates a new document. */
| createDocumentFragment(): DocumentFragment;
| /**
| * Creates an instance of the element for the specified tag.
| * @param tagName The name of an element.
| */
| createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
| /** @deprecated */
| createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
| createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
| /**
| * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
| *
| * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
| *
| * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
| *
| * localName does not match the QName production.
| * Namespace prefix is not null and namespace is the empty string.
| * Namespace prefix is "xml" and namespace is not the XML namespace.
| * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
| * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
| *
| * When supplied, options's is can be used to create a customized built-in element.
| */
| createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
| createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
| createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
| createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
| createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
| createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
| createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
| createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
| createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
| createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
| createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
| createEvent(eventInterface: "BlobEvent"): BlobEvent;
| createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
| createEvent(eventInterface: "CloseEvent"): CloseEvent;
| createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
| createEvent(eventInterface: "CustomEvent"): CustomEvent;
| createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
| createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
| createEvent(eventInterface: "DragEvent"): DragEvent;
| createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
| createEvent(eventInterface: "Event"): Event;
| createEvent(eventInterface: "Events"): Event;
| createEvent(eventInterface: "FocusEvent"): FocusEvent;
| createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
| createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
| createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
| createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
| createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
| createEvent(eventInterface: "InputEvent"): InputEvent;
| createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
| createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
| createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
| createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
| createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
| createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
| createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
| createEvent(eventInterface: "MessageEvent"): MessageEvent;
| createEvent(eventInterface: "MouseEvent"): MouseEvent;
| createEvent(eventInterface: "MouseEvents"): MouseEvent;
| createEvent(eventInterface: "MutationEvent"): MutationEvent;
| createEvent(eventInterface: "MutationEvents"): MutationEvent;
| createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
| createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
| createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
| createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
| createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
| createEvent(eventInterface: "PointerEvent"): PointerEvent;
| createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
| createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
| createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
| createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
| createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
| createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
| createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
| createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
| createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
| createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
| createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
| createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
| createEvent(eventInterface: "StorageEvent"): StorageEvent;
| createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
| createEvent(eventInterface: "TouchEvent"): TouchEvent;
| createEvent(eventInterface: "TrackEvent"): TrackEvent;
| createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
| createEvent(eventInterface: "UIEvent"): UIEvent;
| createEvent(eventInterface: "UIEvents"): UIEvent;
| createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
| createEvent(eventInterface: "WheelEvent"): WheelEvent;
| createEvent(eventInterface: string): Event;
| /**
| * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
| * @param root The root element or node to start traversing on.
| * @param whatToShow The type of nodes or elements to appear in the node list
| * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
| */
| createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
| /** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */
| createProcessingInstruction(target: string, data: string): ProcessingInstruction;
| /** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */
| createRange(): Range;
| /**
| * Creates a text string from the specified value.
| * @param data String that specifies the nodeValue property of the text node.
| */
| createTextNode(data: string): Text;
| /**
| * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
| * @param root The root element or node to start traversing on.
| * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
| * @param filter A custom NodeFilter function to use.
| */
| createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
| /**
| * Executes a command on the current document, current selection, or the given range.
| * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
| * @param showUI Display the user interface, defaults to false.
| * @param value Value to assign.
| * @deprecated
| */
| execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
| /** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
| exitFullscreen(): Promise<void>;
| exitPictureInPicture(): Promise<void>;
| exitPointerLock(): void;
| /**
| * Returns a reference to the first object with the specified value of the ID attribute.
| * @param elementId String that specifies the ID value.
| */
| getElementById(elementId: string): HTMLElement | null;
| /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
| getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
| /**
| * Gets a collection of objects based on the value of the NAME or ID attribute.
| * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
| */
| getElementsByName(elementName: string): NodeListOf<HTMLElement>;
| /**
| * Retrieves a collection of objects based on the specified element name.
| * @param name Specifies the name of an element.
| */
| getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
| getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
| getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
| /** @deprecated */
| getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
| getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
| /**
| * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
| *
| * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
| *
| * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
| *
| * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
| */
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
| getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
| /** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
| getSelection(): Selection | null;
| /** Gets a value indicating whether the object currently has focus. */
| hasFocus(): boolean;
| hasStorageAccess(): Promise<boolean>;
| /**
| * Returns a copy of node. If deep is true, the copy also includes the node's descendants.
| *
| * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
| */
| importNode<T extends Node>(node: T, deep?: boolean): T;
| /**
| * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
| * @param url Specifies a MIME type for the document.
| * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
| * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
| * @param replace Specifies whether the existing entry for the document is replaced in the history list.
| */
| open(unused1?: string, unused2?: string): Document;
| open(url: string | URL, name: string, features: string): WindowProxy | null;
| /**
| * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
| * @param commandId Specifies a command identifier.
| * @deprecated
| */
| queryCommandEnabled(commandId: string): boolean;
| /**
| * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
| * @param commandId String that specifies a command identifier.
| * @deprecated
| */
| queryCommandIndeterm(commandId: string): boolean;
| /**
| * Returns a Boolean value that indicates the current state of the command.
| * @param commandId String that specifies a command identifier.
| * @deprecated
| */
| queryCommandState(commandId: string): boolean;
| /**
| * Returns a Boolean value that indicates whether the current command is supported on the current range.
| * @param commandId Specifies a command identifier.
| * @deprecated
| */
| queryCommandSupported(commandId: string): boolean;
| /**
| * Returns the current value of the document, range, or current selection for the given command.
| * @param commandId String that specifies a command identifier.
| * @deprecated
| */
| queryCommandValue(commandId: string): string;
| /** @deprecated */
| releaseEvents(): void;
| requestStorageAccess(): Promise<void>;
| /**
| * Writes one or more HTML expressions to a document in the specified window.
| * @param content Specifies the text and HTML tags to write.
| */
| write(...text: string[]): void;
| /**
| * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
| * @param content The text and HTML tags to write.
| */
| writeln(...text: string[]): void;
| addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Document: {
| prototype: Document;
| new(): Document;
| };
|
| /** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
| interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
| readonly ownerDocument: Document;
| getElementById(elementId: string): HTMLElement | null;
| }
|
| declare var DocumentFragment: {
| prototype: DocumentFragment;
| new(): DocumentFragment;
| };
|
| interface DocumentOrShadowRoot {
| /**
| * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
| *
| * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
| *
| * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
| */
| readonly activeElement: Element | null;
| adoptedStyleSheets: CSSStyleSheet[];
| /** Returns document's fullscreen element. */
| readonly fullscreenElement: Element | null;
| readonly pictureInPictureElement: Element | null;
| readonly pointerLockElement: Element | null;
| /** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
| readonly styleSheets: StyleSheetList;
| /**
| * Returns the element for the specified x coordinate and the specified y coordinate.
| * @param x The x-offset
| * @param y The y-offset
| */
| elementFromPoint(x: number, y: number): Element | null;
| elementsFromPoint(x: number, y: number): Element[];
| getAnimations(): Animation[];
| }
|
| interface DocumentTimeline extends AnimationTimeline {
| }
|
| declare var DocumentTimeline: {
| prototype: DocumentTimeline;
| new(options?: DocumentTimelineOptions): DocumentTimeline;
| };
|
| /** A Node containing a doctype. */
| interface DocumentType extends Node, ChildNode {
| readonly name: string;
| readonly ownerDocument: Document;
| readonly publicId: string;
| readonly systemId: string;
| }
|
| declare var DocumentType: {
| prototype: DocumentType;
| new(): DocumentType;
| };
|
| /** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
| interface DragEvent extends MouseEvent {
| /** Returns the DataTransfer object for the event. */
| readonly dataTransfer: DataTransfer | null;
| }
|
| declare var DragEvent: {
| prototype: DragEvent;
| new(type: string, eventInitDict?: DragEventInit): DragEvent;
| };
|
| /** Inherits properties from its parent, AudioNode. */
| interface DynamicsCompressorNode extends AudioNode {
| readonly attack: AudioParam;
| readonly knee: AudioParam;
| readonly ratio: AudioParam;
| readonly reduction: number;
| readonly release: AudioParam;
| readonly threshold: AudioParam;
| }
|
| declare var DynamicsCompressorNode: {
| prototype: DynamicsCompressorNode;
| new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
| };
|
| interface EXT_blend_minmax {
| readonly MIN_EXT: 0x8007;
| readonly MAX_EXT: 0x8008;
| }
|
| interface EXT_color_buffer_float {
| }
|
| interface EXT_color_buffer_half_float {
| readonly RGBA16F_EXT: 0x881A;
| readonly RGB16F_EXT: 0x881B;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
| readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
| }
|
| interface EXT_float_blend {
| }
|
| /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
| interface EXT_frag_depth {
| }
|
| interface EXT_sRGB {
| readonly SRGB_EXT: 0x8C40;
| readonly SRGB_ALPHA_EXT: 0x8C42;
| readonly SRGB8_ALPHA8_EXT: 0x8C43;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
| }
|
| interface EXT_shader_texture_lod {
| }
|
| interface EXT_texture_compression_bptc {
| readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
| readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
| readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
| readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
| }
|
| interface EXT_texture_compression_rgtc {
| readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
| readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
| readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
| readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
| }
|
| /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
| interface EXT_texture_filter_anisotropic {
| readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
| readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
| }
|
| interface EXT_texture_norm16 {
| readonly R16_EXT: 0x822A;
| readonly RG16_EXT: 0x822C;
| readonly RGB16_EXT: 0x8054;
| readonly RGBA16_EXT: 0x805B;
| readonly R16_SNORM_EXT: 0x8F98;
| readonly RG16_SNORM_EXT: 0x8F99;
| readonly RGB16_SNORM_EXT: 0x8F9A;
| readonly RGBA16_SNORM_EXT: 0x8F9B;
| }
|
| interface ElementEventMap {
| "fullscreenchange": Event;
| "fullscreenerror": Event;
| }
|
| /** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
| interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
| readonly attributes: NamedNodeMap;
| /** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
| readonly classList: DOMTokenList;
| /** Returns the value of element's class content attribute. Can be set to change it. */
| className: string;
| readonly clientHeight: number;
| readonly clientLeft: number;
| readonly clientTop: number;
| readonly clientWidth: number;
| /** Returns the value of element's id content attribute. Can be set to change it. */
| id: string;
| /** Returns the local name. */
| readonly localName: string;
| /** Returns the namespace. */
| readonly namespaceURI: string | null;
| onfullscreenchange: ((this: Element, ev: Event) => any) | null;
| onfullscreenerror: ((this: Element, ev: Event) => any) | null;
| outerHTML: string;
| readonly ownerDocument: Document;
| readonly part: DOMTokenList;
| /** Returns the namespace prefix. */
| readonly prefix: string | null;
| readonly scrollHeight: number;
| scrollLeft: number;
| scrollTop: number;
| readonly scrollWidth: number;
| /** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
| readonly shadowRoot: ShadowRoot | null;
| /** Returns the value of element's slot content attribute. Can be set to change it. */
| slot: string;
| /** Returns the HTML-uppercased qualified name. */
| readonly tagName: string;
| /** Creates a shadow root for element and returns it. */
| attachShadow(init: ShadowRootInit): ShadowRoot;
| checkVisibility(options?: CheckVisibilityOptions): boolean;
| /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
| closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
| closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
| closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
| closest<E extends Element = Element>(selectors: string): E | null;
| /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
| getAttribute(qualifiedName: string): string | null;
| /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
| getAttributeNS(namespace: string | null, localName: string): string | null;
| /** Returns the qualified names of all element's attributes. Can contain duplicates. */
| getAttributeNames(): string[];
| getAttributeNode(qualifiedName: string): Attr | null;
| getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
| getBoundingClientRect(): DOMRect;
| getClientRects(): DOMRectList;
| /** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
| getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
| getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
| getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
| getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
| /** @deprecated */
| getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
| getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
| getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
| getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
| /** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
| hasAttribute(qualifiedName: string): boolean;
| /** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
| hasAttributeNS(namespace: string | null, localName: string): boolean;
| /** Returns true if element has attributes, and false otherwise. */
| hasAttributes(): boolean;
| hasPointerCapture(pointerId: number): boolean;
| insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
| insertAdjacentHTML(position: InsertPosition, text: string): void;
| insertAdjacentText(where: InsertPosition, data: string): void;
| /** Returns true if matching selectors against element's root yields element, and false otherwise. */
| matches(selectors: string): boolean;
| releasePointerCapture(pointerId: number): void;
| /** Removes element's first attribute whose qualified name is qualifiedName. */
| removeAttribute(qualifiedName: string): void;
| /** Removes element's attribute whose namespace is namespace and local name is localName. */
| removeAttributeNS(namespace: string | null, localName: string): void;
| removeAttributeNode(attr: Attr): Attr;
| /**
| * Displays element fullscreen and resolves promise when done.
| *
| * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
| */
| requestFullscreen(options?: FullscreenOptions): Promise<void>;
| requestPointerLock(): void;
| scroll(options?: ScrollToOptions): void;
| scroll(x: number, y: number): void;
| scrollBy(options?: ScrollToOptions): void;
| scrollBy(x: number, y: number): void;
| scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
| scrollTo(options?: ScrollToOptions): void;
| scrollTo(x: number, y: number): void;
| /** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */
| setAttribute(qualifiedName: string, value: string): void;
| /** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
| setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
| setAttributeNode(attr: Attr): Attr | null;
| setAttributeNodeNS(attr: Attr): Attr | null;
| setPointerCapture(pointerId: number): void;
| /**
| * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
| *
| * Returns true if qualifiedName is now present, and false otherwise.
| */
| toggleAttribute(qualifiedName: string, force?: boolean): boolean;
| /** @deprecated This is a legacy alias of \`matches\`. */
| webkitMatchesSelector(selectors: string): boolean;
| addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Element: {
| prototype: Element;
| new(): Element;
| };
|
| interface ElementCSSInlineStyle {
| readonly style: CSSStyleDeclaration;
| }
|
| interface ElementContentEditable {
| contentEditable: string;
| enterKeyHint: string;
| inputMode: string;
| readonly isContentEditable: boolean;
| }
|
| interface ElementInternals extends ARIAMixin {
| /** Returns the form owner of internals's target element. */
| readonly form: HTMLFormElement | null;
| /** Returns a NodeList of all the label elements that internals's target element is associated with. */
| readonly labels: NodeList;
| /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
| readonly shadowRoot: ShadowRoot | null;
| /** Returns the error message that would be shown to the user if internals's target element was to be checked for validity. */
| readonly validationMessage: string;
| /** Returns the ValidityState object for internals's target element. */
| readonly validity: ValidityState;
| /** Returns true if internals's target element will be validated when the form is submitted; false otherwise. */
| readonly willValidate: boolean;
| /** Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case. */
| checkValidity(): boolean;
| /** Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user. */
| reportValidity(): boolean;
| /**
| * Sets both the state and submission value of internals's target element to value.
| *
| * If value is null, the element won't participate in form submission.
| */
| setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
| /** Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called. */
| setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
| }
|
| declare var ElementInternals: {
| prototype: ElementInternals;
| new(): ElementInternals;
| };
|
| /** Events providing information related to errors in scripts or in files. */
| interface ErrorEvent extends Event {
| readonly colno: number;
| readonly error: any;
| readonly filename: string;
| readonly lineno: number;
| readonly message: string;
| }
|
| declare var ErrorEvent: {
| prototype: ErrorEvent;
| new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
| };
|
| /** An event which takes place in the DOM. */
| interface Event {
| /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
| readonly bubbles: boolean;
| /** @deprecated */
| cancelBubble: boolean;
| /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
| readonly cancelable: boolean;
| /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
| readonly composed: boolean;
| /** Returns the object whose event listener's callback is currently being invoked. */
| readonly currentTarget: EventTarget | null;
| /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
| readonly defaultPrevented: boolean;
| /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
| readonly eventPhase: number;
| /** Returns true if event was dispatched by the user agent, and false otherwise. */
| readonly isTrusted: boolean;
| /** @deprecated */
| returnValue: boolean;
| /** @deprecated */
| readonly srcElement: EventTarget | null;
| /** Returns the object to which event is dispatched (its target). */
| readonly target: EventTarget | null;
| /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
| readonly timeStamp: DOMHighResTimeStamp;
| /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
| readonly type: string;
| /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
| composedPath(): EventTarget[];
| /** @deprecated */
| initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
| /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
| preventDefault(): void;
| /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
| stopImmediatePropagation(): void;
| /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
| stopPropagation(): void;
| readonly NONE: 0;
| readonly CAPTURING_PHASE: 1;
| readonly AT_TARGET: 2;
| readonly BUBBLING_PHASE: 3;
| }
|
| declare var Event: {
| prototype: Event;
| new(type: string, eventInitDict?: EventInit): Event;
| readonly NONE: 0;
| readonly CAPTURING_PHASE: 1;
| readonly AT_TARGET: 2;
| readonly BUBBLING_PHASE: 3;
| };
|
| interface EventCounts {
| forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
| }
|
| declare var EventCounts: {
| prototype: EventCounts;
| new(): EventCounts;
| };
|
| interface EventListener {
| (evt: Event): void;
| }
|
| interface EventListenerObject {
| handleEvent(object: Event): void;
| }
|
| interface EventSourceEventMap {
| "error": Event;
| "message": MessageEvent;
| "open": Event;
| }
|
| interface EventSource extends EventTarget {
| onerror: ((this: EventSource, ev: Event) => any) | null;
| onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
| onopen: ((this: EventSource, ev: Event) => any) | null;
| /** Returns the state of this EventSource object's connection. It can have the values described below. */
| readonly readyState: number;
| /** Returns the URL providing the event stream. */
| readonly url: string;
| /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
| readonly withCredentials: boolean;
| /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
| close(): void;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSED: 2;
| addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var EventSource: {
| prototype: EventSource;
| new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSED: 2;
| };
|
| /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
| interface EventTarget {
| /**
| * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
| *
| * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
| *
| * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
| *
| * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
| *
| * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
| *
| * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
| *
| * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
| */
| addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
| /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
| dispatchEvent(event: Event): boolean;
| /** Removes the event listener in target's event listener list with the same type, callback, and options. */
| removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
| }
|
| declare var EventTarget: {
| prototype: EventTarget;
| new(): EventTarget;
| };
|
| /** @deprecated */
| interface External {
| /** @deprecated */
| AddSearchProvider(): void;
| /** @deprecated */
| IsSearchProviderInstalled(): void;
| }
|
| /** @deprecated */
| declare var External: {
| prototype: External;
| new(): External;
| };
|
| /** Provides information about files and allows JavaScript in a web page to access their content. */
| interface File extends Blob {
| readonly lastModified: number;
| readonly name: string;
| readonly webkitRelativePath: string;
| }
|
| declare var File: {
| prototype: File;
| new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
| };
|
| /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
| interface FileList {
| readonly length: number;
| item(index: number): File | null;
| [index: number]: File;
| }
|
| declare var FileList: {
| prototype: FileList;
| new(): FileList;
| };
|
| interface FileReaderEventMap {
| "abort": ProgressEvent<FileReader>;
| "error": ProgressEvent<FileReader>;
| "load": ProgressEvent<FileReader>;
| "loadend": ProgressEvent<FileReader>;
| "loadstart": ProgressEvent<FileReader>;
| "progress": ProgressEvent<FileReader>;
| }
|
| /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
| interface FileReader extends EventTarget {
| readonly error: DOMException | null;
| onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
| readonly result: string | ArrayBuffer | null;
| abort(): void;
| readAsArrayBuffer(blob: Blob): void;
| readAsBinaryString(blob: Blob): void;
| readAsDataURL(blob: Blob): void;
| readAsText(blob: Blob, encoding?: string): void;
| readonly EMPTY: 0;
| readonly LOADING: 1;
| readonly DONE: 2;
| addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var FileReader: {
| prototype: FileReader;
| new(): FileReader;
| readonly EMPTY: 0;
| readonly LOADING: 1;
| readonly DONE: 2;
| };
|
| interface FileSystem {
| readonly name: string;
| readonly root: FileSystemDirectoryEntry;
| }
|
| declare var FileSystem: {
| prototype: FileSystem;
| new(): FileSystem;
| };
|
| interface FileSystemDirectoryEntry extends FileSystemEntry {
| createReader(): FileSystemDirectoryReader;
| getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
| getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
| }
|
| declare var FileSystemDirectoryEntry: {
| prototype: FileSystemDirectoryEntry;
| new(): FileSystemDirectoryEntry;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemDirectoryHandle extends FileSystemHandle {
| readonly kind: "directory";
| getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
| getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
| removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
| resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
| }
|
| declare var FileSystemDirectoryHandle: {
| prototype: FileSystemDirectoryHandle;
| new(): FileSystemDirectoryHandle;
| };
|
| interface FileSystemDirectoryReader {
| readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
| }
|
| declare var FileSystemDirectoryReader: {
| prototype: FileSystemDirectoryReader;
| new(): FileSystemDirectoryReader;
| };
|
| interface FileSystemEntry {
| readonly filesystem: FileSystem;
| readonly fullPath: string;
| readonly isDirectory: boolean;
| readonly isFile: boolean;
| readonly name: string;
| getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
| }
|
| declare var FileSystemEntry: {
| prototype: FileSystemEntry;
| new(): FileSystemEntry;
| };
|
| interface FileSystemFileEntry extends FileSystemEntry {
| file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
| }
|
| declare var FileSystemFileEntry: {
| prototype: FileSystemFileEntry;
| new(): FileSystemFileEntry;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemFileHandle extends FileSystemHandle {
| readonly kind: "file";
| getFile(): Promise<File>;
| }
|
| declare var FileSystemFileHandle: {
| prototype: FileSystemFileHandle;
| new(): FileSystemFileHandle;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemHandle {
| readonly kind: FileSystemHandleKind;
| readonly name: string;
| isSameEntry(other: FileSystemHandle): Promise<boolean>;
| }
|
| declare var FileSystemHandle: {
| prototype: FileSystemHandle;
| new(): FileSystemHandle;
| };
|
| /** Focus-related events like focus, blur, focusin, or focusout. */
| interface FocusEvent extends UIEvent {
| readonly relatedTarget: EventTarget | null;
| }
|
| declare var FocusEvent: {
| prototype: FocusEvent;
| new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
| };
|
| interface FontFace {
| ascentOverride: string;
| descentOverride: string;
| display: FontDisplay;
| family: string;
| featureSettings: string;
| lineGapOverride: string;
| readonly loaded: Promise<FontFace>;
| readonly status: FontFaceLoadStatus;
| stretch: string;
| style: string;
| unicodeRange: string;
| variant: string;
| weight: string;
| load(): Promise<FontFace>;
| }
|
| declare var FontFace: {
| prototype: FontFace;
| new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
| };
|
| interface FontFaceSetEventMap {
| "loading": Event;
| "loadingdone": Event;
| "loadingerror": Event;
| }
|
| interface FontFaceSet extends EventTarget {
| onloading: ((this: FontFaceSet, ev: Event) => any) | null;
| onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
| onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
| readonly ready: Promise<FontFaceSet>;
| readonly status: FontFaceSetLoadStatus;
| check(font: string, text?: string): boolean;
| load(font: string, text?: string): Promise<FontFace[]>;
| forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
| addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var FontFaceSet: {
| prototype: FontFaceSet;
| new(initialFaces: FontFace[]): FontFaceSet;
| };
|
| interface FontFaceSetLoadEvent extends Event {
| readonly fontfaces: ReadonlyArray<FontFace>;
| }
|
| declare var FontFaceSetLoadEvent: {
| prototype: FontFaceSetLoadEvent;
| new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
| };
|
| interface FontFaceSource {
| readonly fonts: FontFaceSet;
| }
|
| /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
| interface FormData {
| append(name: string, value: string | Blob, fileName?: string): void;
| delete(name: string): void;
| get(name: string): FormDataEntryValue | null;
| getAll(name: string): FormDataEntryValue[];
| has(name: string): boolean;
| set(name: string, value: string | Blob, fileName?: string): void;
| forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
| }
|
| declare var FormData: {
| prototype: FormData;
| new(form?: HTMLFormElement): FormData;
| };
|
| interface FormDataEvent extends Event {
| /** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */
| readonly formData: FormData;
| }
|
| declare var FormDataEvent: {
| prototype: FormDataEvent;
| new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
| };
|
| /** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
| interface GainNode extends AudioNode {
| readonly gain: AudioParam;
| }
|
| declare var GainNode: {
| prototype: GainNode;
| new(context: BaseAudioContext, options?: GainOptions): GainNode;
| };
|
| /**
| * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
| * Available only in secure contexts.
| */
| interface Gamepad {
| readonly axes: ReadonlyArray<number>;
| readonly buttons: ReadonlyArray<GamepadButton>;
| readonly connected: boolean;
| readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
| readonly id: string;
| readonly index: number;
| readonly mapping: GamepadMappingType;
| readonly timestamp: DOMHighResTimeStamp;
| }
|
| declare var Gamepad: {
| prototype: Gamepad;
| new(): Gamepad;
| };
|
| /**
| * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
| * Available only in secure contexts.
| */
| interface GamepadButton {
| readonly pressed: boolean;
| readonly touched: boolean;
| readonly value: number;
| }
|
| declare var GamepadButton: {
| prototype: GamepadButton;
| new(): GamepadButton;
| };
|
| /**
| * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
| * Available only in secure contexts.
| */
| interface GamepadEvent extends Event {
| readonly gamepad: Gamepad;
| }
|
| declare var GamepadEvent: {
| prototype: GamepadEvent;
| new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
| };
|
| /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
| interface GamepadHapticActuator {
| readonly type: GamepadHapticActuatorType;
| }
|
| declare var GamepadHapticActuator: {
| prototype: GamepadHapticActuator;
| new(): GamepadHapticActuator;
| };
|
| interface GenericTransformStream {
| readonly readable: ReadableStream;
| readonly writable: WritableStream;
| }
|
| /** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
| interface Geolocation {
| clearWatch(watchId: number): void;
| getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
| watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
| }
|
| declare var Geolocation: {
| prototype: Geolocation;
| new(): Geolocation;
| };
|
| /** Available only in secure contexts. */
| interface GeolocationCoordinates {
| readonly accuracy: number;
| readonly altitude: number | null;
| readonly altitudeAccuracy: number | null;
| readonly heading: number | null;
| readonly latitude: number;
| readonly longitude: number;
| readonly speed: number | null;
| }
|
| declare var GeolocationCoordinates: {
| prototype: GeolocationCoordinates;
| new(): GeolocationCoordinates;
| };
|
| /** Available only in secure contexts. */
| interface GeolocationPosition {
| readonly coords: GeolocationCoordinates;
| readonly timestamp: EpochTimeStamp;
| }
|
| declare var GeolocationPosition: {
| prototype: GeolocationPosition;
| new(): GeolocationPosition;
| };
|
| interface GeolocationPositionError {
| readonly code: number;
| readonly message: string;
| readonly PERMISSION_DENIED: 1;
| readonly POSITION_UNAVAILABLE: 2;
| readonly TIMEOUT: 3;
| }
|
| declare var GeolocationPositionError: {
| prototype: GeolocationPositionError;
| new(): GeolocationPositionError;
| readonly PERMISSION_DENIED: 1;
| readonly POSITION_UNAVAILABLE: 2;
| readonly TIMEOUT: 3;
| };
|
| interface GlobalEventHandlersEventMap {
| "abort": UIEvent;
| "animationcancel": AnimationEvent;
| "animationend": AnimationEvent;
| "animationiteration": AnimationEvent;
| "animationstart": AnimationEvent;
| "auxclick": MouseEvent;
| "beforeinput": InputEvent;
| "blur": FocusEvent;
| "cancel": Event;
| "canplay": Event;
| "canplaythrough": Event;
| "change": Event;
| "click": MouseEvent;
| "close": Event;
| "compositionend": CompositionEvent;
| "compositionstart": CompositionEvent;
| "compositionupdate": CompositionEvent;
| "contextmenu": MouseEvent;
| "copy": ClipboardEvent;
| "cuechange": Event;
| "cut": ClipboardEvent;
| "dblclick": MouseEvent;
| "drag": DragEvent;
| "dragend": DragEvent;
| "dragenter": DragEvent;
| "dragleave": DragEvent;
| "dragover": DragEvent;
| "dragstart": DragEvent;
| "drop": DragEvent;
| "durationchange": Event;
| "emptied": Event;
| "ended": Event;
| "error": ErrorEvent;
| "focus": FocusEvent;
| "focusin": FocusEvent;
| "focusout": FocusEvent;
| "formdata": FormDataEvent;
| "gotpointercapture": PointerEvent;
| "input": Event;
| "invalid": Event;
| "keydown": KeyboardEvent;
| "keypress": KeyboardEvent;
| "keyup": KeyboardEvent;
| "load": Event;
| "loadeddata": Event;
| "loadedmetadata": Event;
| "loadstart": Event;
| "lostpointercapture": PointerEvent;
| "mousedown": MouseEvent;
| "mouseenter": MouseEvent;
| "mouseleave": MouseEvent;
| "mousemove": MouseEvent;
| "mouseout": MouseEvent;
| "mouseover": MouseEvent;
| "mouseup": MouseEvent;
| "paste": ClipboardEvent;
| "pause": Event;
| "play": Event;
| "playing": Event;
| "pointercancel": PointerEvent;
| "pointerdown": PointerEvent;
| "pointerenter": PointerEvent;
| "pointerleave": PointerEvent;
| "pointermove": PointerEvent;
| "pointerout": PointerEvent;
| "pointerover": PointerEvent;
| "pointerup": PointerEvent;
| "progress": ProgressEvent;
| "ratechange": Event;
| "reset": Event;
| "resize": UIEvent;
| "scroll": Event;
| "securitypolicyviolation": SecurityPolicyViolationEvent;
| "seeked": Event;
| "seeking": Event;
| "select": Event;
| "selectionchange": Event;
| "selectstart": Event;
| "slotchange": Event;
| "stalled": Event;
| "submit": SubmitEvent;
| "suspend": Event;
| "timeupdate": Event;
| "toggle": Event;
| "touchcancel": TouchEvent;
| "touchend": TouchEvent;
| "touchmove": TouchEvent;
| "touchstart": TouchEvent;
| "transitioncancel": TransitionEvent;
| "transitionend": TransitionEvent;
| "transitionrun": TransitionEvent;
| "transitionstart": TransitionEvent;
| "volumechange": Event;
| "waiting": Event;
| "webkitanimationend": Event;
| "webkitanimationiteration": Event;
| "webkitanimationstart": Event;
| "webkittransitionend": Event;
| "wheel": WheelEvent;
| }
|
| interface GlobalEventHandlers {
| /**
| * Fires when the user aborts the download.
| * @param ev The event.
| */
| onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
| onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
| onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
| onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
| onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
| onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
| /**
| * Fires when the object loses the input focus.
| * @param ev The focus event.
| */
| onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
| oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when playback is possible, but would require further buffering.
| * @param ev The event.
| */
| oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the contents of the object or selection have changed.
| * @param ev The event.
| */
| onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the user clicks the left mouse button on the object
| * @param ev The mouse event.
| */
| onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the user clicks the right mouse button in the client area, opening the context menu.
| * @param ev The mouse event.
| */
| oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
| oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
| /**
| * Fires when the user double-clicks the object.
| * @param ev The mouse event.
| */
| ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| /**
| * Fires on the source object continuously during a drag operation.
| * @param ev The event.
| */
| ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Fires on the source object when the user releases the mouse at the close of a drag operation.
| * @param ev The event.
| */
| ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Fires on the target element when the user drags the object to a valid drop target.
| * @param ev The drag event.
| */
| ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
| * @param ev The drag event.
| */
| ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Fires on the target element continuously while the user drags the object over a valid drop target.
| * @param ev The event.
| */
| ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Fires on the source object when the user starts to drag a text selection or selected object.
| * @param ev The event.
| */
| ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
| /**
| * Occurs when the duration attribute is updated.
| * @param ev The event.
| */
| ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the media element is reset to its initial state.
| * @param ev The event.
| */
| onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the end of playback is reached.
| * @param ev The event
| */
| onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when an error occurs during object loading.
| * @param ev The event.
| */
| onerror: OnErrorEventHandler;
| /**
| * Fires when the object receives focus.
| * @param ev The event.
| */
| onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
| onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
| ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the user presses a key.
| * @param ev The keyboard event
| */
| onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
| /**
| * Fires when the user presses an alphanumeric key.
| * @param ev The event.
| * @deprecated
| */
| onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
| /**
| * Fires when the user releases a key.
| * @param ev The keyboard event
| */
| onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
| /**
| * Fires immediately after the browser loads the object.
| * @param ev The event.
| */
| onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when media data is loaded at the current playback position.
| * @param ev The event.
| */
| onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the duration and dimensions of the media have been determined.
| * @param ev The event.
| */
| onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when Internet Explorer begins looking for media data.
| * @param ev The event.
| */
| onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| /**
| * Fires when the user clicks the object with either mouse button.
| * @param ev The mouse event.
| */
| onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse over the object.
| * @param ev The mouse event.
| */
| onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse pointer outside the boundaries of the object.
| * @param ev The mouse event.
| */
| onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse pointer into the object.
| * @param ev The mouse event.
| */
| onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user releases a mouse button while the mouse is over the object.
| * @param ev The mouse event.
| */
| onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
| onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
| /**
| * Occurs when playback is paused.
| * @param ev The event.
| */
| onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the play method is requested.
| * @param ev The event.
| */
| onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the audio or video has started playing.
| * @param ev The event.
| */
| onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
| /**
| * Occurs to indicate progress while downloading media data.
| * @param ev The event.
| */
| onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
| /**
| * Occurs when the playback rate is increased or decreased.
| * @param ev The event.
| */
| onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the user resets a form.
| * @param ev The event.
| */
| onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
| /**
| * Fires when the user repositions the scroll box in the scroll bar on the object.
| * @param ev The event.
| */
| onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
| /**
| * Occurs when the seek operation ends.
| * @param ev The event.
| */
| onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the current playback position is moved.
| * @param ev The event.
| */
| onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Fires when the current selection changes.
| * @param ev The event.
| */
| onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when the download has stopped.
| * @param ev The event.
| */
| onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
| /**
| * Occurs if the load operation has been intentionally halted.
| * @param ev The event.
| */
| onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs to indicate the current playback position.
| * @param ev The event.
| */
| ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
| ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
| ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
| ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
| ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
| ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
| ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
| ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
| /**
| * Occurs when the volume is changed, or playback is muted or unmuted.
| * @param ev The event.
| */
| onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /**
| * Occurs when playback stops because the next frame of a video resource is not available.
| * @param ev The event.
| */
| onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationend\`. */
| onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
| onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationstart\`. */
| onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`ontransitionend\`. */
| onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
| onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
| addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| interface HTMLAllCollection {
| /** Returns the number of elements in the collection. */
| readonly length: number;
| /** Returns the item with index index from the collection (determined by tree order). */
| item(nameOrIndex?: string): HTMLCollection | Element | null;
| /**
| * Returns the item with ID or name name from the collection.
| *
| * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
| *
| * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
| */
| namedItem(name: string): HTMLCollection | Element | null;
| [index: number]: Element;
| }
|
| declare var HTMLAllCollection: {
| prototype: HTMLAllCollection;
| new(): HTMLAllCollection;
| };
|
| /** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
| interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
| /**
| * Sets or retrieves the character set used to encode the object.
| * @deprecated
| */
| charset: string;
| /**
| * Sets or retrieves the coordinates of the object.
| * @deprecated
| */
| coords: string;
| download: string;
| /** Sets or retrieves the language code of the object. */
| hreflang: string;
| /**
| * Sets or retrieves the shape of the object.
| * @deprecated
| */
| name: string;
| ping: string;
| referrerPolicy: string;
| /** Sets or retrieves the relationship between the object and the destination of the link. */
| rel: string;
| readonly relList: DOMTokenList;
| /**
| * Sets or retrieves the relationship between the object and the destination of the link.
| * @deprecated
| */
| rev: string;
| /**
| * Sets or retrieves the shape of the object.
| * @deprecated
| */
| shape: string;
| /** Sets or retrieves the window or frame at which to target content. */
| target: string;
| /** Retrieves or sets the text of the object as a string. */
| text: string;
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLAnchorElement: {
| prototype: HTMLAnchorElement;
| new(): HTMLAnchorElement;
| };
|
| /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
| interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
| /** Sets or retrieves a text alternative to the graphic. */
| alt: string;
| /** Sets or retrieves the coordinates of the object. */
| coords: string;
| download: string;
| /**
| * Sets or gets whether clicks in this region cause action.
| * @deprecated
| */
| noHref: boolean;
| ping: string;
| referrerPolicy: string;
| rel: string;
| readonly relList: DOMTokenList;
| /** Sets or retrieves the shape of the object. */
| shape: string;
| /** Sets or retrieves the window or frame at which to target content. */
| target: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLAreaElement: {
| prototype: HTMLAreaElement;
| new(): HTMLAreaElement;
| };
|
| /** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
| interface HTMLAudioElement extends HTMLMediaElement {
| addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLAudioElement: {
| prototype: HTMLAudioElement;
| new(): HTMLAudioElement;
| };
|
| /** A HTML line break element (<br>). It inherits from HTMLElement. */
| interface HTMLBRElement extends HTMLElement {
| /**
| * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
| * @deprecated
| */
| clear: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLBRElement: {
| prototype: HTMLBRElement;
| new(): HTMLBRElement;
| };
|
| /** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
| interface HTMLBaseElement extends HTMLElement {
| /** Gets or sets the baseline URL on which relative links are based. */
| href: string;
| /** Sets or retrieves the window or frame at which to target content. */
| target: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLBaseElement: {
| prototype: HTMLBaseElement;
| new(): HTMLBaseElement;
| };
|
| interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
| }
|
| /** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
| interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
| /** @deprecated */
| aLink: string;
| /** @deprecated */
| background: string;
| /** @deprecated */
| bgColor: string;
| /** @deprecated */
| link: string;
| /** @deprecated */
| text: string;
| /** @deprecated */
| vLink: string;
| addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLBodyElement: {
| prototype: HTMLBodyElement;
| new(): HTMLBodyElement;
| };
|
| /** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
| interface HTMLButtonElement extends HTMLElement {
| disabled: boolean;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
| formAction: string;
| /** Used to override the encoding (formEnctype attribute) specified on the form element. */
| formEnctype: string;
| /** Overrides the submit method attribute previously specified on a form element. */
| formMethod: string;
| /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
| formNoValidate: boolean;
| /** Overrides the target attribute on a form element. */
| formTarget: string;
| readonly labels: NodeListOf<HTMLLabelElement>;
| /** Sets or retrieves the name of the object. */
| name: string;
| /** Gets the classification and default behavior of the button. */
| type: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** Sets or retrieves the default or selected value of the control. */
| value: string;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| reportValidity(): boolean;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLButtonElement: {
| prototype: HTMLButtonElement;
| new(): HTMLButtonElement;
| };
|
| /** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
| interface HTMLCanvasElement extends HTMLElement {
| /** Gets or sets the height of a canvas element on a document. */
| height: number;
| /** Gets or sets the width of a canvas element on a document. */
| width: number;
| captureStream(frameRequestRate?: number): MediaStream;
| /**
| * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
| * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
| */
| getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
| getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
| getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
| getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
| getContext(contextId: string, options?: any): RenderingContext | null;
| toBlob(callback: BlobCallback, type?: string, quality?: any): void;
| /**
| * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
| * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
| */
| toDataURL(type?: string, quality?: any): string;
| transferControlToOffscreen(): OffscreenCanvas;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLCanvasElement: {
| prototype: HTMLCanvasElement;
| new(): HTMLCanvasElement;
| };
|
| /** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
| interface HTMLCollectionBase {
| /** Sets or retrieves the number of objects in a collection. */
| readonly length: number;
| /** Retrieves an object from various collections. */
| item(index: number): Element | null;
| [index: number]: Element;
| }
|
| interface HTMLCollection extends HTMLCollectionBase {
| /** Retrieves a select object or an object from an options collection. */
| namedItem(name: string): Element | null;
| }
|
| declare var HTMLCollection: {
| prototype: HTMLCollection;
| new(): HTMLCollection;
| };
|
| interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
| item(index: number): T | null;
| namedItem(name: string): T | null;
| [index: number]: T;
| }
|
| /** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
| interface HTMLDListElement extends HTMLElement {
| /** @deprecated */
| compact: boolean;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDListElement: {
| prototype: HTMLDListElement;
| new(): HTMLDListElement;
| };
|
| /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
| interface HTMLDataElement extends HTMLElement {
| value: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDataElement: {
| prototype: HTMLDataElement;
| new(): HTMLDataElement;
| };
|
| /** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
| interface HTMLDataListElement extends HTMLElement {
| /** Returns an HTMLCollection of the option elements of the datalist element. */
| readonly options: HTMLCollectionOf<HTMLOptionElement>;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDataListElement: {
| prototype: HTMLDataListElement;
| new(): HTMLDataListElement;
| };
|
| interface HTMLDetailsElement extends HTMLElement {
| open: boolean;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDetailsElement: {
| prototype: HTMLDetailsElement;
| new(): HTMLDetailsElement;
| };
|
| interface HTMLDialogElement extends HTMLElement {
| open: boolean;
| returnValue: string;
| /**
| * Closes the dialog element.
| *
| * The argument, if provided, provides a return value.
| */
| close(returnValue?: string): void;
| /** Displays the dialog element. */
| show(): void;
| showModal(): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDialogElement: {
| prototype: HTMLDialogElement;
| new(): HTMLDialogElement;
| };
|
| /** @deprecated */
| interface HTMLDirectoryElement extends HTMLElement {
| /** @deprecated */
| compact: boolean;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLDirectoryElement: {
| prototype: HTMLDirectoryElement;
| new(): HTMLDirectoryElement;
| };
|
| /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
| interface HTMLDivElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLDivElement: {
| prototype: HTMLDivElement;
| new(): HTMLDivElement;
| };
|
| /** @deprecated use Document */
| interface HTMLDocument extends Document {
| addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLDocument: {
| prototype: HTMLDocument;
| new(): HTMLDocument;
| };
|
| interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
| }
|
| /** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
| interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
| accessKey: string;
| readonly accessKeyLabel: string;
| autocapitalize: string;
| dir: string;
| draggable: boolean;
| hidden: boolean;
| inert: boolean;
| innerText: string;
| lang: string;
| readonly offsetHeight: number;
| readonly offsetLeft: number;
| readonly offsetParent: Element | null;
| readonly offsetTop: number;
| readonly offsetWidth: number;
| outerText: string;
| spellcheck: boolean;
| title: string;
| translate: boolean;
| attachInternals(): ElementInternals;
| click(): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLElement: {
| prototype: HTMLElement;
| new(): HTMLElement;
| };
|
| /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
| interface HTMLEmbedElement extends HTMLElement {
| /** @deprecated */
| align: string;
| /** Sets or retrieves the height of the object. */
| height: string;
| /**
| * Sets or retrieves the name of the object.
| * @deprecated
| */
| name: string;
| /** Sets or retrieves a URL to be loaded by the object. */
| src: string;
| type: string;
| /** Sets or retrieves the width of the object. */
| width: string;
| getSVGDocument(): Document | null;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLEmbedElement: {
| prototype: HTMLEmbedElement;
| new(): HTMLEmbedElement;
| };
|
| /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
| interface HTMLFieldSetElement extends HTMLElement {
| disabled: boolean;
| /** Returns an HTMLCollection of the form controls in the element. */
| readonly elements: HTMLCollection;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| name: string;
| /** Returns the string "fieldset". */
| readonly type: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| reportValidity(): boolean;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLFieldSetElement: {
| prototype: HTMLFieldSetElement;
| new(): HTMLFieldSetElement;
| };
|
| /**
| * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
| * @deprecated
| */
| interface HTMLFontElement extends HTMLElement {
| /** @deprecated */
| color: string;
| /**
| * Sets or retrieves the current typeface family.
| * @deprecated
| */
| face: string;
| /** @deprecated */
| size: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLFontElement: {
| prototype: HTMLFontElement;
| new(): HTMLFontElement;
| };
|
| /** A collection of HTML form control elements. */
| interface HTMLFormControlsCollection extends HTMLCollectionBase {
| /**
| * Returns the item with ID or name name from the collection.
| *
| * If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
| */
| namedItem(name: string): RadioNodeList | Element | null;
| }
|
| declare var HTMLFormControlsCollection: {
| prototype: HTMLFormControlsCollection;
| new(): HTMLFormControlsCollection;
| };
|
| /** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
| interface HTMLFormElement extends HTMLElement {
| /** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
| acceptCharset: string;
| /** Sets or retrieves the URL to which the form content is sent for processing. */
| action: string;
| /** Specifies whether autocomplete is applied to an editable text field. */
| autocomplete: string;
| /** Retrieves a collection, in source order, of all controls in a given form. */
| readonly elements: HTMLFormControlsCollection;
| /** Sets or retrieves the MIME encoding for the form. */
| encoding: string;
| /** Sets or retrieves the encoding type for the form. */
| enctype: string;
| /** Sets or retrieves the number of objects in a collection. */
| readonly length: number;
| /** Sets or retrieves how to send the form data to the server. */
| method: string;
| /** Sets or retrieves the name of the object. */
| name: string;
| /** Designates a form that is not validated when submitted. */
| noValidate: boolean;
| rel: string;
| readonly relList: DOMTokenList;
| /** Sets or retrieves the window or frame at which to target content. */
| target: string;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| reportValidity(): boolean;
| requestSubmit(submitter?: HTMLElement | null): void;
| /** Fires when the user resets a form. */
| reset(): void;
| /** Fires when a FORM is about to be submitted. */
| submit(): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| [index: number]: Element;
| [name: string]: any;
| }
|
| declare var HTMLFormElement: {
| prototype: HTMLFormElement;
| new(): HTMLFormElement;
| };
|
| /** @deprecated */
| interface HTMLFrameElement extends HTMLElement {
| /**
| * Retrieves the document object of the page or frame.
| * @deprecated
| */
| readonly contentDocument: Document | null;
| /**
| * Retrieves the object of the specified.
| * @deprecated
| */
| readonly contentWindow: WindowProxy | null;
| /**
| * Sets or retrieves whether to display a border for the frame.
| * @deprecated
| */
| frameBorder: string;
| /**
| * Sets or retrieves a URI to a long description of the object.
| * @deprecated
| */
| longDesc: string;
| /**
| * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
| * @deprecated
| */
| marginHeight: string;
| /**
| * Sets or retrieves the left and right margin widths before displaying the text in a frame.
| * @deprecated
| */
| marginWidth: string;
| /**
| * Sets or retrieves the frame name.
| * @deprecated
| */
| name: string;
| /**
| * Sets or retrieves whether the user can resize the frame.
| * @deprecated
| */
| noResize: boolean;
| /**
| * Sets or retrieves whether the frame can be scrolled.
| * @deprecated
| */
| scrolling: string;
| /**
| * Sets or retrieves a URL to be loaded by the object.
| * @deprecated
| */
| src: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLFrameElement: {
| prototype: HTMLFrameElement;
| new(): HTMLFrameElement;
| };
|
| interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
| }
|
| /**
| * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
| * @deprecated
| */
| interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
| /**
| * Sets or retrieves the frame widths of the object.
| * @deprecated
| */
| cols: string;
| /**
| * Sets or retrieves the frame heights of the object.
| * @deprecated
| */
| rows: string;
| addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLFrameSetElement: {
| prototype: HTMLFrameSetElement;
| new(): HTMLFrameSetElement;
| };
|
| /** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
| interface HTMLHRElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| /** @deprecated */
| color: string;
| /**
| * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
| * @deprecated
| */
| noShade: boolean;
| /** @deprecated */
| size: string;
| /**
| * Sets or retrieves the width of the object.
| * @deprecated
| */
| width: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLHRElement: {
| prototype: HTMLHRElement;
| new(): HTMLHRElement;
| };
|
| /** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
| interface HTMLHeadElement extends HTMLElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLHeadElement: {
| prototype: HTMLHeadElement;
| new(): HTMLHeadElement;
| };
|
| /** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
| interface HTMLHeadingElement extends HTMLElement {
| /**
| * Sets or retrieves a value that indicates the table alignment.
| * @deprecated
| */
| align: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLHeadingElement: {
| prototype: HTMLHeadingElement;
| new(): HTMLHeadingElement;
| };
|
| /** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
| interface HTMLHtmlElement extends HTMLElement {
| /**
| * Sets or retrieves the DTD version that governs the current document.
| * @deprecated
| */
| version: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLHtmlElement: {
| prototype: HTMLHtmlElement;
| new(): HTMLHtmlElement;
| };
|
| interface HTMLHyperlinkElementUtils {
| /**
| * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
| *
| * Can be set, to change the URL's fragment (ignores leading "#").
| */
| hash: string;
| /**
| * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
| *
| * Can be set, to change the URL's host and port.
| */
| host: string;
| /**
| * Returns the hyperlink's URL's host.
| *
| * Can be set, to change the URL's host.
| */
| hostname: string;
| /**
| * Returns the hyperlink's URL.
| *
| * Can be set, to change the URL.
| */
| href: string;
| toString(): string;
| /** Returns the hyperlink's URL's origin. */
| readonly origin: string;
| /**
| * Returns the hyperlink's URL's password.
| *
| * Can be set, to change the URL's password.
| */
| password: string;
| /**
| * Returns the hyperlink's URL's path.
| *
| * Can be set, to change the URL's path.
| */
| pathname: string;
| /**
| * Returns the hyperlink's URL's port.
| *
| * Can be set, to change the URL's port.
| */
| port: string;
| /**
| * Returns the hyperlink's URL's scheme.
| *
| * Can be set, to change the URL's scheme.
| */
| protocol: string;
| /**
| * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
| *
| * Can be set, to change the URL's query (ignores leading "?").
| */
| search: string;
| /**
| * Returns the hyperlink's URL's username.
| *
| * Can be set, to change the URL's username.
| */
| username: string;
| }
|
| /** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
| interface HTMLIFrameElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| allow: string;
| allowFullscreen: boolean;
| /** Retrieves the document object of the page or frame. */
| readonly contentDocument: Document | null;
| /** Retrieves the object of the specified. */
| readonly contentWindow: WindowProxy | null;
| /**
| * Sets or retrieves whether to display a border for the frame.
| * @deprecated
| */
| frameBorder: string;
| /** Sets or retrieves the height of the object. */
| height: string;
| /**
| * Sets or retrieves a URI to a long description of the object.
| * @deprecated
| */
| longDesc: string;
| /**
| * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
| * @deprecated
| */
| marginHeight: string;
| /**
| * Sets or retrieves the left and right margin widths before displaying the text in a frame.
| * @deprecated
| */
| marginWidth: string;
| /** Sets or retrieves the frame name. */
| name: string;
| referrerPolicy: ReferrerPolicy;
| readonly sandbox: DOMTokenList;
| /**
| * Sets or retrieves whether the frame can be scrolled.
| * @deprecated
| */
| scrolling: string;
| /** Sets or retrieves a URL to be loaded by the object. */
| src: string;
| /** Sets or retrives the content of the page that is to contain. */
| srcdoc: string;
| /** Sets or retrieves the width of the object. */
| width: string;
| getSVGDocument(): Document | null;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLIFrameElement: {
| prototype: HTMLIFrameElement;
| new(): HTMLIFrameElement;
| };
|
| /** Provides special properties and methods for manipulating <img> elements. */
| interface HTMLImageElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| /** Sets or retrieves a text alternative to the graphic. */
| alt: string;
| /**
| * Specifies the properties of a border drawn around an object.
| * @deprecated
| */
| border: string;
| /** Retrieves whether the object is fully loaded. */
| readonly complete: boolean;
| crossOrigin: string | null;
| readonly currentSrc: string;
| decoding: "async" | "sync" | "auto";
| /** Sets or retrieves the height of the object. */
| height: number;
| /**
| * Sets or retrieves the width of the border to draw around the object.
| * @deprecated
| */
| hspace: number;
| /** Sets or retrieves whether the image is a server-side image map. */
| isMap: boolean;
| /** Sets or retrieves the policy for loading image elements that are outside the viewport. */
| loading: "eager" | "lazy";
| /**
| * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
| * @deprecated
| */
| longDesc: string;
| /** @deprecated */
| lowsrc: string;
| /**
| * Sets or retrieves the name of the object.
| * @deprecated
| */
| name: string;
| /** The original height of the image resource before sizing. */
| readonly naturalHeight: number;
| /** The original width of the image resource before sizing. */
| readonly naturalWidth: number;
| referrerPolicy: string;
| sizes: string;
| /** The address or URL of the a media resource that is to be considered. */
| src: string;
| srcset: string;
| /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
| useMap: string;
| /**
| * Sets or retrieves the vertical margin for the object.
| * @deprecated
| */
| vspace: number;
| /** Sets or retrieves the width of the object. */
| width: number;
| readonly x: number;
| readonly y: number;
| decode(): Promise<void>;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLImageElement: {
| prototype: HTMLImageElement;
| new(): HTMLImageElement;
| };
|
| /** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
| interface HTMLInputElement extends HTMLElement {
| /** Sets or retrieves a comma-separated list of content types. */
| accept: string;
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| /** Sets or retrieves a text alternative to the graphic. */
| alt: string;
| /** Specifies whether autocomplete is applied to an editable text field. */
| autocomplete: string;
| capture: string;
| /** Sets or retrieves the state of the check box or radio button. */
| checked: boolean;
| /** Sets or retrieves the state of the check box or radio button. */
| defaultChecked: boolean;
| /** Sets or retrieves the initial contents of the object. */
| defaultValue: string;
| dirName: string;
| disabled: boolean;
| /** Returns a FileList object on a file type input object. */
| files: FileList | null;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| /** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
| formAction: string;
| /** Used to override the encoding (formEnctype attribute) specified on the form element. */
| formEnctype: string;
| /** Overrides the submit method attribute previously specified on a form element. */
| formMethod: string;
| /** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
| formNoValidate: boolean;
| /** Overrides the target attribute on a form element. */
| formTarget: string;
| /** Sets or retrieves the height of the object. */
| height: number;
| /** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
| indeterminate: boolean;
| readonly labels: NodeListOf<HTMLLabelElement> | null;
| /** Specifies the ID of a pre-defined datalist of options for an input element. */
| readonly list: HTMLDataListElement | null;
| /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
| max: string;
| /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
| maxLength: number;
| /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
| min: string;
| minLength: number;
| /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
| multiple: boolean;
| /** Sets or retrieves the name of the object. */
| name: string;
| /** Gets or sets a string containing a regular expression that the user's input must match. */
| pattern: string;
| /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
| placeholder: string;
| readOnly: boolean;
| /** When present, marks an element that can't be submitted without a value. */
| required: boolean;
| selectionDirection: "forward" | "backward" | "none" | null;
| /** Gets or sets the end position or offset of a text selection. */
| selectionEnd: number | null;
| /** Gets or sets the starting position or offset of a text selection. */
| selectionStart: number | null;
| size: number;
| /** The address or URL of the a media resource that is to be considered. */
| src: string;
| /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
| step: string;
| /** Returns the content type of the object. */
| type: string;
| /**
| * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
| * @deprecated
| */
| useMap: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** Returns the value of the data at the cursor's current position. */
| value: string;
| /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
| valueAsDate: Date | null;
| /** Returns the input field value as a number. */
| valueAsNumber: number;
| readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
| webkitdirectory: boolean;
| /** Sets or retrieves the width of the object. */
| width: number;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| reportValidity(): boolean;
| /** Makes the selection equal to the current object. */
| select(): void;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| setRangeText(replacement: string): void;
| setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
| /**
| * Sets the start and end positions of a selection in a text field.
| * @param start The offset into the text field for the start of the selection.
| * @param end The offset into the text field for the end of the selection.
| * @param direction The direction in which the selection is performed.
| */
| setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
| showPicker(): void;
| /**
| * Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
| * @param n Value to decrement the value by.
| */
| stepDown(n?: number): void;
| /**
| * Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
| * @param n Value to increment the value by.
| */
| stepUp(n?: number): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLInputElement: {
| prototype: HTMLInputElement;
| new(): HTMLInputElement;
| };
|
| /** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
| interface HTMLLIElement extends HTMLElement {
| /** @deprecated */
| type: string;
| /** Sets or retrieves the value of a list item. */
| value: number;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLLIElement: {
| prototype: HTMLLIElement;
| new(): HTMLLIElement;
| };
|
| /** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
| interface HTMLLabelElement extends HTMLElement {
| /** Returns the form control that is associated with this element. */
| readonly control: HTMLElement | null;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| /** Sets or retrieves the object to which the given label object is assigned. */
| htmlFor: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLLabelElement: {
| prototype: HTMLLabelElement;
| new(): HTMLLabelElement;
| };
|
| /** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
| interface HTMLLegendElement extends HTMLElement {
| /** @deprecated */
| align: string;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLLegendElement: {
| prototype: HTMLLegendElement;
| new(): HTMLLegendElement;
| };
|
| /** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
| interface HTMLLinkElement extends HTMLElement, LinkStyle {
| as: string;
| /**
| * Sets or retrieves the character set used to encode the object.
| * @deprecated
| */
| charset: string;
| crossOrigin: string | null;
| disabled: boolean;
| /** Sets or retrieves a destination URL or an anchor point. */
| href: string;
| /** Sets or retrieves the language code of the object. */
| hreflang: string;
| imageSizes: string;
| imageSrcset: string;
| integrity: string;
| /** Sets or retrieves the media type. */
| media: string;
| referrerPolicy: string;
| /** Sets or retrieves the relationship between the object and the destination of the link. */
| rel: string;
| readonly relList: DOMTokenList;
| /**
| * Sets or retrieves the relationship between the object and the destination of the link.
| * @deprecated
| */
| rev: string;
| readonly sizes: DOMTokenList;
| /**
| * Sets or retrieves the window or frame at which to target content.
| * @deprecated
| */
| target: string;
| /** Sets or retrieves the MIME type of the object. */
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLLinkElement: {
| prototype: HTMLLinkElement;
| new(): HTMLLinkElement;
| };
|
| /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements. */
| interface HTMLMapElement extends HTMLElement {
| /** Retrieves a collection of the area objects defined for the given map object. */
| readonly areas: HTMLCollection;
| /** Sets or retrieves the name of the object. */
| name: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLMapElement: {
| prototype: HTMLMapElement;
| new(): HTMLMapElement;
| };
|
| /**
| * Provides methods to manipulate <marquee> elements.
| * @deprecated
| */
| interface HTMLMarqueeElement extends HTMLElement {
| /** @deprecated */
| behavior: string;
| /** @deprecated */
| bgColor: string;
| /** @deprecated */
| direction: string;
| /** @deprecated */
| height: string;
| /** @deprecated */
| hspace: number;
| /** @deprecated */
| loop: number;
| /** @deprecated */
| scrollAmount: number;
| /** @deprecated */
| scrollDelay: number;
| /** @deprecated */
| trueSpeed: boolean;
| /** @deprecated */
| vspace: number;
| /** @deprecated */
| width: string;
| /** @deprecated */
| start(): void;
| /** @deprecated */
| stop(): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLMarqueeElement: {
| prototype: HTMLMarqueeElement;
| new(): HTMLMarqueeElement;
| };
|
| interface HTMLMediaElementEventMap extends HTMLElementEventMap {
| "encrypted": MediaEncryptedEvent;
| "waitingforkey": Event;
| }
|
| /** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
| interface HTMLMediaElement extends HTMLElement {
| /** Gets or sets a value that indicates whether to start playing the media automatically. */
| autoplay: boolean;
| /** Gets a collection of buffered time ranges. */
| readonly buffered: TimeRanges;
| /** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */
| controls: boolean;
| crossOrigin: string | null;
| /** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
| readonly currentSrc: string;
| /** Gets or sets the current playback position, in seconds. */
| currentTime: number;
| defaultMuted: boolean;
| /** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
| defaultPlaybackRate: number;
| disableRemotePlayback: boolean;
| /** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */
| readonly duration: number;
| /** Gets information about whether the playback has ended or not. */
| readonly ended: boolean;
| /** Returns an object representing the current error state of the audio or video element. */
| readonly error: MediaError | null;
| /** Gets or sets a flag to specify whether playback should restart after it completes. */
| loop: boolean;
| /** Available only in secure contexts. */
| readonly mediaKeys: MediaKeys | null;
| /** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
| muted: boolean;
| /** Gets the current network activity for the element. */
| readonly networkState: number;
| onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
| onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
| /** Gets a flag that specifies whether playback is paused. */
| readonly paused: boolean;
| /** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */
| playbackRate: number;
| /** Gets TimeRanges for the current media resource that has been played. */
| readonly played: TimeRanges;
| /** Gets or sets a value indicating what data should be preloaded, if any. */
| preload: "none" | "metadata" | "auto" | "";
| preservesPitch: boolean;
| readonly readyState: number;
| readonly remote: RemotePlayback;
| /** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
| readonly seekable: TimeRanges;
| /** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
| readonly seeking: boolean;
| /** The address or URL of the a media resource that is to be considered. */
| src: string;
| srcObject: MediaProvider | null;
| readonly textTracks: TextTrackList;
| /** Gets or sets the volume level for audio portions of the media element. */
| volume: number;
| addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
| /** Returns a string that specifies whether the client can play a given media resource type. */
| canPlayType(type: string): CanPlayTypeResult;
| fastSeek(time: number): void;
| /** Resets the audio or video object and loads a new media resource. */
| load(): void;
| /** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
| pause(): void;
| /** Loads and starts playback of a media resource. */
| play(): Promise<void>;
| /** Available only in secure contexts. */
| setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
| readonly NETWORK_EMPTY: 0;
| readonly NETWORK_IDLE: 1;
| readonly NETWORK_LOADING: 2;
| readonly NETWORK_NO_SOURCE: 3;
| readonly HAVE_NOTHING: 0;
| readonly HAVE_METADATA: 1;
| readonly HAVE_CURRENT_DATA: 2;
| readonly HAVE_FUTURE_DATA: 3;
| readonly HAVE_ENOUGH_DATA: 4;
| addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLMediaElement: {
| prototype: HTMLMediaElement;
| new(): HTMLMediaElement;
| readonly NETWORK_EMPTY: 0;
| readonly NETWORK_IDLE: 1;
| readonly NETWORK_LOADING: 2;
| readonly NETWORK_NO_SOURCE: 3;
| readonly HAVE_NOTHING: 0;
| readonly HAVE_METADATA: 1;
| readonly HAVE_CURRENT_DATA: 2;
| readonly HAVE_FUTURE_DATA: 3;
| readonly HAVE_ENOUGH_DATA: 4;
| };
|
| interface HTMLMenuElement extends HTMLElement {
| /** @deprecated */
| compact: boolean;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLMenuElement: {
| prototype: HTMLMenuElement;
| new(): HTMLMenuElement;
| };
|
| /** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
| interface HTMLMetaElement extends HTMLElement {
| /** Gets or sets meta-information to associate with httpEquiv or name. */
| content: string;
| /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
| httpEquiv: string;
| media: string;
| /** Sets or retrieves the value specified in the content attribute of the meta object. */
| name: string;
| /**
| * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
| * @deprecated
| */
| scheme: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLMetaElement: {
| prototype: HTMLMetaElement;
| new(): HTMLMetaElement;
| };
|
| /** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
| interface HTMLMeterElement extends HTMLElement {
| high: number;
| readonly labels: NodeListOf<HTMLLabelElement>;
| low: number;
| max: number;
| min: number;
| optimum: number;
| value: number;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLMeterElement: {
| prototype: HTMLMeterElement;
| new(): HTMLMeterElement;
| };
|
| /** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
| interface HTMLModElement extends HTMLElement {
| /** Sets or retrieves reference information about the object. */
| cite: string;
| /** Sets or retrieves the date and time of a modification to the object. */
| dateTime: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLModElement: {
| prototype: HTMLModElement;
| new(): HTMLModElement;
| };
|
| /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
| interface HTMLOListElement extends HTMLElement {
| /** @deprecated */
| compact: boolean;
| reversed: boolean;
| /** The starting number. */
| start: number;
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLOListElement: {
| prototype: HTMLOListElement;
| new(): HTMLOListElement;
| };
|
| /** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
| interface HTMLObjectElement extends HTMLElement {
| /** @deprecated */
| align: string;
| /**
| * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
| * @deprecated
| */
| archive: string;
| /** @deprecated */
| border: string;
| /**
| * Sets or retrieves the URL of the file containing the compiled Java class.
| * @deprecated
| */
| code: string;
| /**
| * Sets or retrieves the URL of the component.
| * @deprecated
| */
| codeBase: string;
| /**
| * Sets or retrieves the Internet media type for the code associated with the object.
| * @deprecated
| */
| codeType: string;
| /** Retrieves the document object of the page or frame. */
| readonly contentDocument: Document | null;
| readonly contentWindow: WindowProxy | null;
| /** Sets or retrieves the URL that references the data of the object. */
| data: string;
| /** @deprecated */
| declare: boolean;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| /** Sets or retrieves the height of the object. */
| height: string;
| /** @deprecated */
| hspace: number;
| /** Sets or retrieves the name of the object. */
| name: string;
| /**
| * Sets or retrieves a message to be displayed while an object is loading.
| * @deprecated
| */
| standby: string;
| /** Sets or retrieves the MIME type of the object. */
| type: string;
| /** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
| useMap: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** @deprecated */
| vspace: number;
| /** Sets or retrieves the width of the object. */
| width: string;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| getSVGDocument(): Document | null;
| reportValidity(): boolean;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLObjectElement: {
| prototype: HTMLObjectElement;
| new(): HTMLObjectElement;
| };
|
| /** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
| interface HTMLOptGroupElement extends HTMLElement {
| disabled: boolean;
| /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
| label: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLOptGroupElement: {
| prototype: HTMLOptGroupElement;
| new(): HTMLOptGroupElement;
| };
|
| /** <option> elements and inherits all classes and methods of the HTMLElement interface. */
| interface HTMLOptionElement extends HTMLElement {
| /** Sets or retrieves the status of an option. */
| defaultSelected: boolean;
| disabled: boolean;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| /** Sets or retrieves the ordinal position of an option in a list box. */
| readonly index: number;
| /** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
| label: string;
| /** Sets or retrieves whether the option in the list box is the default item. */
| selected: boolean;
| /** Sets or retrieves the text string specified by the option tag. */
| text: string;
| /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
| value: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLOptionElement: {
| prototype: HTMLOptionElement;
| new(): HTMLOptionElement;
| };
|
| /** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
| interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
| /**
| * Returns the number of elements in the collection.
| *
| * When set to a smaller number, truncates the number of option elements in the corresponding container.
| *
| * When set to a greater number, adds new blank option elements to that container.
| */
| length: number;
| /**
| * Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
| *
| * Can be set, to change the selection.
| */
| selectedIndex: number;
| /**
| * Inserts element before the node given by before.
| *
| * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
| *
| * If before is omitted, null, or a number out of range, then element will be added at the end of the list.
| *
| * This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
| */
| add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
| /** Removes the item with index index from the collection. */
| remove(index: number): void;
| }
|
| declare var HTMLOptionsCollection: {
| prototype: HTMLOptionsCollection;
| new(): HTMLOptionsCollection;
| };
|
| interface HTMLOrSVGElement {
| autofocus: boolean;
| readonly dataset: DOMStringMap;
| nonce?: string;
| tabIndex: number;
| blur(): void;
| focus(options?: FocusOptions): void;
| }
|
| /** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
| interface HTMLOutputElement extends HTMLElement {
| defaultValue: string;
| readonly form: HTMLFormElement | null;
| readonly htmlFor: DOMTokenList;
| readonly labels: NodeListOf<HTMLLabelElement>;
| name: string;
| /** Returns the string "output". */
| readonly type: string;
| readonly validationMessage: string;
| readonly validity: ValidityState;
| /**
| * Returns the element's current value.
| *
| * Can be set, to change the value.
| */
| value: string;
| readonly willValidate: boolean;
| checkValidity(): boolean;
| reportValidity(): boolean;
| setCustomValidity(error: string): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLOutputElement: {
| prototype: HTMLOutputElement;
| new(): HTMLOutputElement;
| };
|
| /** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
| interface HTMLParagraphElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLParagraphElement: {
| prototype: HTMLParagraphElement;
| new(): HTMLParagraphElement;
| };
|
| /**
| * Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
| * @deprecated
| */
| interface HTMLParamElement extends HTMLElement {
| /**
| * Sets or retrieves the name of an input parameter for an element.
| * @deprecated
| */
| name: string;
| /**
| * Sets or retrieves the content type of the resource designated by the value attribute.
| * @deprecated
| */
| type: string;
| /**
| * Sets or retrieves the value of an input parameter for an element.
| * @deprecated
| */
| value: string;
| /**
| * Sets or retrieves the data type of the value attribute.
| * @deprecated
| */
| valueType: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var HTMLParamElement: {
| prototype: HTMLParamElement;
| new(): HTMLParamElement;
| };
|
| /** A <picture> HTML element. It doesn't implement specific properties or methods. */
| interface HTMLPictureElement extends HTMLElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLPictureElement: {
| prototype: HTMLPictureElement;
| new(): HTMLPictureElement;
| };
|
| /** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
| interface HTMLPreElement extends HTMLElement {
| /**
| * Sets or gets a value that you can use to implement your own width functionality for the object.
| * @deprecated
| */
| width: number;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLPreElement: {
| prototype: HTMLPreElement;
| new(): HTMLPreElement;
| };
|
| /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
| interface HTMLProgressElement extends HTMLElement {
| readonly labels: NodeListOf<HTMLLabelElement>;
| /** Defines the maximum, or "done" value for a progress element. */
| max: number;
| /** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */
| readonly position: number;
| /** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
| value: number;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLProgressElement: {
| prototype: HTMLProgressElement;
| new(): HTMLProgressElement;
| };
|
| /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
| interface HTMLQuoteElement extends HTMLElement {
| /** Sets or retrieves reference information about the object. */
| cite: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLQuoteElement: {
| prototype: HTMLQuoteElement;
| new(): HTMLQuoteElement;
| };
|
| /** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
| interface HTMLScriptElement extends HTMLElement {
| async: boolean;
| /**
| * Sets or retrieves the character set used to encode the object.
| * @deprecated
| */
| charset: string;
| crossOrigin: string | null;
| /** Sets or retrieves the status of the script. */
| defer: boolean;
| /**
| * Sets or retrieves the event for which the script is written.
| * @deprecated
| */
| event: string;
| /**
| * Sets or retrieves the object that is bound to the event script.
| * @deprecated
| */
| htmlFor: string;
| integrity: string;
| noModule: boolean;
| referrerPolicy: string;
| /** Retrieves the URL to an external file that contains the source code or data. */
| src: string;
| /** Retrieves or sets the text of the object as a string. */
| text: string;
| /** Sets or retrieves the MIME type for the associated scripting engine. */
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLScriptElement: {
| prototype: HTMLScriptElement;
| new(): HTMLScriptElement;
| supports(type: string): boolean;
| };
|
| /** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
| interface HTMLSelectElement extends HTMLElement {
| autocomplete: string;
| disabled: boolean;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| readonly labels: NodeListOf<HTMLLabelElement>;
| /** Sets or retrieves the number of objects in a collection. */
| length: number;
| /** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
| multiple: boolean;
| /** Sets or retrieves the name of the object. */
| name: string;
| /** Returns an HTMLOptionsCollection of the list of options. */
| readonly options: HTMLOptionsCollection;
| /** When present, marks an element that can't be submitted without a value. */
| required: boolean;
| /** Sets or retrieves the index of the selected option in a select object. */
| selectedIndex: number;
| readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
| /** Sets or retrieves the number of rows in the list box. */
| size: number;
| /** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
| readonly type: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** Sets or retrieves the value which is returned to the server when the form control is submitted. */
| value: string;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /**
| * Adds an element to the areas, controlRange, or options collection.
| * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
| * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
| */
| add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| /**
| * Retrieves a select object or an object from an options collection.
| * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
| * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
| */
| item(index: number): HTMLOptionElement | null;
| /**
| * Retrieves a select object or an object from an options collection.
| * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
| */
| namedItem(name: string): HTMLOptionElement | null;
| /**
| * Removes an element from the collection.
| * @param index Number that specifies the zero-based index of the element to remove from the collection.
| */
| remove(): void;
| remove(index: number): void;
| reportValidity(): boolean;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| [name: number]: HTMLOptionElement | HTMLOptGroupElement;
| }
|
| declare var HTMLSelectElement: {
| prototype: HTMLSelectElement;
| new(): HTMLSelectElement;
| };
|
| interface HTMLSlotElement extends HTMLElement {
| name: string;
| assign(...nodes: (Element | Text)[]): void;
| assignedElements(options?: AssignedNodesOptions): Element[];
| assignedNodes(options?: AssignedNodesOptions): Node[];
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLSlotElement: {
| prototype: HTMLSlotElement;
| new(): HTMLSlotElement;
| };
|
| /** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
| interface HTMLSourceElement extends HTMLElement {
| height: number;
| /** Gets or sets the intended media type of the media source. */
| media: string;
| sizes: string;
| /** The address or URL of the a media resource that is to be considered. */
| src: string;
| srcset: string;
| /** Gets or sets the MIME type of a media resource. */
| type: string;
| width: number;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLSourceElement: {
| prototype: HTMLSourceElement;
| new(): HTMLSourceElement;
| };
|
| /** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
| interface HTMLSpanElement extends HTMLElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLSpanElement: {
| prototype: HTMLSpanElement;
| new(): HTMLSpanElement;
| };
|
| /** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
| interface HTMLStyleElement extends HTMLElement, LinkStyle {
| /** Enables or disables the style sheet. */
| disabled: boolean;
| /** Sets or retrieves the media type. */
| media: string;
| /**
| * Retrieves the CSS language in which the style sheet is written.
| * @deprecated
| */
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLStyleElement: {
| prototype: HTMLStyleElement;
| new(): HTMLStyleElement;
| };
|
| /** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
| interface HTMLTableCaptionElement extends HTMLElement {
| /**
| * Sets or retrieves the alignment of the caption or legend.
| * @deprecated
| */
| align: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableCaptionElement: {
| prototype: HTMLTableCaptionElement;
| new(): HTMLTableCaptionElement;
| };
|
| /** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
| interface HTMLTableCellElement extends HTMLElement {
| /** Sets or retrieves abbreviated text for the object. */
| abbr: string;
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| /**
| * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
| * @deprecated
| */
| axis: string;
| /** @deprecated */
| bgColor: string;
| /** Retrieves the position of the object in the cells collection of a row. */
| readonly cellIndex: number;
| /** @deprecated */
| ch: string;
| /** @deprecated */
| chOff: string;
| /** Sets or retrieves the number columns in the table that the object should span. */
| colSpan: number;
| /** Sets or retrieves a list of header cells that provide information for the object. */
| headers: string;
| /**
| * Sets or retrieves the height of the object.
| * @deprecated
| */
| height: string;
| /**
| * Sets or retrieves whether the browser automatically performs wordwrap.
| * @deprecated
| */
| noWrap: boolean;
| /** Sets or retrieves how many rows in a table the cell should span. */
| rowSpan: number;
| /** Sets or retrieves the group of cells in a table to which the object's information applies. */
| scope: string;
| /** @deprecated */
| vAlign: string;
| /**
| * Sets or retrieves the width of the object.
| * @deprecated
| */
| width: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableCellElement: {
| prototype: HTMLTableCellElement;
| new(): HTMLTableCellElement;
| };
|
| /** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
| interface HTMLTableColElement extends HTMLElement {
| /**
| * Sets or retrieves the alignment of the object relative to the display or table.
| * @deprecated
| */
| align: string;
| /** @deprecated */
| ch: string;
| /** @deprecated */
| chOff: string;
| /** Sets or retrieves the number of columns in the group. */
| span: number;
| /** @deprecated */
| vAlign: string;
| /**
| * Sets or retrieves the width of the object.
| * @deprecated
| */
| width: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableColElement: {
| prototype: HTMLTableColElement;
| new(): HTMLTableColElement;
| };
|
| /** @deprecated prefer HTMLTableCellElement */
| interface HTMLTableDataCellElement extends HTMLTableCellElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
| interface HTMLTableElement extends HTMLElement {
| /**
| * Sets or retrieves a value that indicates the table alignment.
| * @deprecated
| */
| align: string;
| /** @deprecated */
| bgColor: string;
| /**
| * Sets or retrieves the width of the border to draw around the object.
| * @deprecated
| */
| border: string;
| /** Retrieves the caption object of a table. */
| caption: HTMLTableCaptionElement | null;
| /**
| * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
| * @deprecated
| */
| cellPadding: string;
| /**
| * Sets or retrieves the amount of space between cells in a table.
| * @deprecated
| */
| cellSpacing: string;
| /**
| * Sets or retrieves the way the border frame around the table is displayed.
| * @deprecated
| */
| frame: string;
| /** Sets or retrieves the number of horizontal rows contained in the object. */
| readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
| /**
| * Sets or retrieves which dividing lines (inner borders) are displayed.
| * @deprecated
| */
| rules: string;
| /**
| * Sets or retrieves a description and/or structure of the object.
| * @deprecated
| */
| summary: string;
| /** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
| readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
| /** Retrieves the tFoot object of the table. */
| tFoot: HTMLTableSectionElement | null;
| /** Retrieves the tHead object of the table. */
| tHead: HTMLTableSectionElement | null;
| /**
| * Sets or retrieves the width of the object.
| * @deprecated
| */
| width: string;
| /** Creates an empty caption element in the table. */
| createCaption(): HTMLTableCaptionElement;
| /** Creates an empty tBody element in the table. */
| createTBody(): HTMLTableSectionElement;
| /** Creates an empty tFoot element in the table. */
| createTFoot(): HTMLTableSectionElement;
| /** Returns the tHead element object if successful, or null otherwise. */
| createTHead(): HTMLTableSectionElement;
| /** Deletes the caption element and its contents from the table. */
| deleteCaption(): void;
| /**
| * Removes the specified row (tr) from the element and from the rows collection.
| * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
| */
| deleteRow(index: number): void;
| /** Deletes the tFoot element and its contents from the table. */
| deleteTFoot(): void;
| /** Deletes the tHead element and its contents from the table. */
| deleteTHead(): void;
| /**
| * Creates a new row (tr) in the table, and adds the row to the rows collection.
| * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
| */
| insertRow(index?: number): HTMLTableRowElement;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableElement: {
| prototype: HTMLTableElement;
| new(): HTMLTableElement;
| };
|
| /** @deprecated prefer HTMLTableCellElement */
| interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
| interface HTMLTableRowElement extends HTMLElement {
| /**
| * Sets or retrieves how the object is aligned with adjacent text.
| * @deprecated
| */
| align: string;
| /** @deprecated */
| bgColor: string;
| /** Retrieves a collection of all cells in the table row. */
| readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
| /** @deprecated */
| ch: string;
| /** @deprecated */
| chOff: string;
| /** Retrieves the position of the object in the rows collection for the table. */
| readonly rowIndex: number;
| /** Retrieves the position of the object in the collection. */
| readonly sectionRowIndex: number;
| /** @deprecated */
| vAlign: string;
| /**
| * Removes the specified cell from the table row, as well as from the cells collection.
| * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
| */
| deleteCell(index: number): void;
| /**
| * Creates a new cell in the table row, and adds the cell to the cells collection.
| * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
| */
| insertCell(index?: number): HTMLTableCellElement;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableRowElement: {
| prototype: HTMLTableRowElement;
| new(): HTMLTableRowElement;
| };
|
| /** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
| interface HTMLTableSectionElement extends HTMLElement {
| /**
| * Sets or retrieves a value that indicates the table alignment.
| * @deprecated
| */
| align: string;
| /** @deprecated */
| ch: string;
| /** @deprecated */
| chOff: string;
| /** Sets or retrieves the number of horizontal rows contained in the object. */
| readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
| /** @deprecated */
| vAlign: string;
| /**
| * Removes the specified row (tr) from the element and from the rows collection.
| * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
| */
| deleteRow(index: number): void;
| /**
| * Creates a new row (tr) in the table, and adds the row to the rows collection.
| * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
| */
| insertRow(index?: number): HTMLTableRowElement;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTableSectionElement: {
| prototype: HTMLTableSectionElement;
| new(): HTMLTableSectionElement;
| };
|
| /** Enables access to the contents of an HTML <template> element. */
| interface HTMLTemplateElement extends HTMLElement {
| /** Returns the template contents (a DocumentFragment). */
| readonly content: DocumentFragment;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTemplateElement: {
| prototype: HTMLTemplateElement;
| new(): HTMLTemplateElement;
| };
|
| /** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
| interface HTMLTextAreaElement extends HTMLElement {
| autocomplete: string;
| /** Sets or retrieves the width of the object. */
| cols: number;
| /** Sets or retrieves the initial contents of the object. */
| defaultValue: string;
| dirName: string;
| disabled: boolean;
| /** Retrieves a reference to the form that the object is embedded in. */
| readonly form: HTMLFormElement | null;
| readonly labels: NodeListOf<HTMLLabelElement>;
| /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
| maxLength: number;
| minLength: number;
| /** Sets or retrieves the name of the object. */
| name: string;
| /** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
| placeholder: string;
| /** Sets or retrieves the value indicated whether the content of the object is read-only. */
| readOnly: boolean;
| /** When present, marks an element that can't be submitted without a value. */
| required: boolean;
| /** Sets or retrieves the number of horizontal rows contained in the object. */
| rows: number;
| selectionDirection: "forward" | "backward" | "none";
| /** Gets or sets the end position or offset of a text selection. */
| selectionEnd: number;
| /** Gets or sets the starting position or offset of a text selection. */
| selectionStart: number;
| readonly textLength: number;
| /** Retrieves the type of control. */
| readonly type: string;
| /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
| readonly validationMessage: string;
| /** Returns a ValidityState object that represents the validity states of an element. */
| readonly validity: ValidityState;
| /** Retrieves or sets the text in the entry field of the textArea element. */
| value: string;
| /** Returns whether an element will successfully validate based on forms validation rules and constraints. */
| readonly willValidate: boolean;
| /** Sets or retrieves how to handle wordwrapping in the object. */
| wrap: string;
| /** Returns whether a form will validate when it is submitted, without having to submit it. */
| checkValidity(): boolean;
| reportValidity(): boolean;
| /** Highlights the input area of a form element. */
| select(): void;
| /**
| * Sets a custom error message that is displayed when a form is submitted.
| * @param error Sets a custom error message that is displayed when a form is submitted.
| */
| setCustomValidity(error: string): void;
| setRangeText(replacement: string): void;
| setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
| /**
| * Sets the start and end positions of a selection in a text field.
| * @param start The offset into the text field for the start of the selection.
| * @param end The offset into the text field for the end of the selection.
| * @param direction The direction in which the selection is performed.
| */
| setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTextAreaElement: {
| prototype: HTMLTextAreaElement;
| new(): HTMLTextAreaElement;
| };
|
| /** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
| interface HTMLTimeElement extends HTMLElement {
| dateTime: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTimeElement: {
| prototype: HTMLTimeElement;
| new(): HTMLTimeElement;
| };
|
| /** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
| interface HTMLTitleElement extends HTMLElement {
| /** Retrieves or sets the text of the object as a string. */
| text: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTitleElement: {
| prototype: HTMLTitleElement;
| new(): HTMLTitleElement;
| };
|
| /** The HTMLTrackElement */
| interface HTMLTrackElement extends HTMLElement {
| default: boolean;
| kind: string;
| label: string;
| readonly readyState: number;
| src: string;
| srclang: string;
| /** Returns the TextTrack object corresponding to the text track of the track element. */
| readonly track: TextTrack;
| readonly NONE: 0;
| readonly LOADING: 1;
| readonly LOADED: 2;
| readonly ERROR: 3;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLTrackElement: {
| prototype: HTMLTrackElement;
| new(): HTMLTrackElement;
| readonly NONE: 0;
| readonly LOADING: 1;
| readonly LOADED: 2;
| readonly ERROR: 3;
| };
|
| /** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
| interface HTMLUListElement extends HTMLElement {
| /** @deprecated */
| compact: boolean;
| /** @deprecated */
| type: string;
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLUListElement: {
| prototype: HTMLUListElement;
| new(): HTMLUListElement;
| };
|
| /** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
| interface HTMLUnknownElement extends HTMLElement {
| addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLUnknownElement: {
| prototype: HTMLUnknownElement;
| new(): HTMLUnknownElement;
| };
|
| interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
| "enterpictureinpicture": Event;
| "leavepictureinpicture": Event;
| }
|
| /** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
| interface HTMLVideoElement extends HTMLMediaElement {
| disablePictureInPicture: boolean;
| /** Gets or sets the height of the video element. */
| height: number;
| onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
| onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
| /** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
| playsInline: boolean;
| /** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */
| poster: string;
| /** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
| readonly videoHeight: number;
| /** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
| readonly videoWidth: number;
| /** Gets or sets the width of the video element. */
| width: number;
| cancelVideoFrameCallback(handle: number): void;
| getVideoPlaybackQuality(): VideoPlaybackQuality;
| requestPictureInPicture(): Promise<PictureInPictureWindow>;
| requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
| addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var HTMLVideoElement: {
| prototype: HTMLVideoElement;
| new(): HTMLVideoElement;
| };
|
| /** Events that fire when the fragment identifier of the URL has changed. */
| interface HashChangeEvent extends Event {
| /** Returns the URL of the session history entry that is now current. */
| readonly newURL: string;
| /** Returns the URL of the session history entry that was previously current. */
| readonly oldURL: string;
| }
|
| declare var HashChangeEvent: {
| prototype: HashChangeEvent;
| new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
| };
|
| /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
| interface Headers {
| append(name: string, value: string): void;
| delete(name: string): void;
| get(name: string): string | null;
| has(name: string): boolean;
| set(name: string, value: string): void;
| forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
| }
|
| declare var Headers: {
| prototype: Headers;
| new(init?: HeadersInit): Headers;
| };
|
| /** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
| interface History {
| readonly length: number;
| scrollRestoration: ScrollRestoration;
| readonly state: any;
| back(): void;
| forward(): void;
| go(delta?: number): void;
| pushState(data: any, unused: string, url?: string | URL | null): void;
| replaceState(data: any, unused: string, url?: string | URL | null): void;
| }
|
| declare var History: {
| prototype: History;
| new(): History;
| };
|
| /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
| interface IDBCursor {
| /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
| readonly direction: IDBCursorDirection;
| /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
| readonly key: IDBValidKey;
| /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
| readonly primaryKey: IDBValidKey;
| readonly request: IDBRequest;
| /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
| readonly source: IDBObjectStore | IDBIndex;
| /** Advances the cursor through the next count records in range. */
| advance(count: number): void;
| /** Advances the cursor to the next record in range. */
| continue(key?: IDBValidKey): void;
| /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
| continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
| /**
| * Delete the record pointed at by the cursor with a new value.
| *
| * If successful, request's result will be undefined.
| */
| delete(): IDBRequest<undefined>;
| /**
| * Updated the record pointed at by the cursor with a new value.
| *
| * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
| *
| * If successful, request's result will be the record's key.
| */
| update(value: any): IDBRequest<IDBValidKey>;
| }
|
| declare var IDBCursor: {
| prototype: IDBCursor;
| new(): IDBCursor;
| };
|
| /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
| interface IDBCursorWithValue extends IDBCursor {
| /** Returns the cursor's current value. */
| readonly value: any;
| }
|
| declare var IDBCursorWithValue: {
| prototype: IDBCursorWithValue;
| new(): IDBCursorWithValue;
| };
|
| interface IDBDatabaseEventMap {
| "abort": Event;
| "close": Event;
| "error": Event;
| "versionchange": IDBVersionChangeEvent;
| }
|
| /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
| interface IDBDatabase extends EventTarget {
| /** Returns the name of the database. */
| readonly name: string;
| /** Returns a list of the names of object stores in the database. */
| readonly objectStoreNames: DOMStringList;
| onabort: ((this: IDBDatabase, ev: Event) => any) | null;
| onclose: ((this: IDBDatabase, ev: Event) => any) | null;
| onerror: ((this: IDBDatabase, ev: Event) => any) | null;
| onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
| /** Returns the version of the database. */
| readonly version: number;
| /** Closes the connection once all running transactions have finished. */
| close(): void;
| /**
| * Creates a new object store with the given name and options and returns a new IDBObjectStore.
| *
| * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
| /**
| * Deletes the object store with the given name.
| *
| * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| deleteObjectStore(name: string): void;
| /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
| transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
| addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBDatabase: {
| prototype: IDBDatabase;
| new(): IDBDatabase;
| };
|
| /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
| interface IDBFactory {
| /**
| * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
| *
| * Throws a "DataError" DOMException if either input is not a valid key.
| */
| cmp(first: any, second: any): number;
| databases(): Promise<IDBDatabaseInfo[]>;
| /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
| deleteDatabase(name: string): IDBOpenDBRequest;
| /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
| open(name: string, version?: number): IDBOpenDBRequest;
| }
|
| declare var IDBFactory: {
| prototype: IDBFactory;
| new(): IDBFactory;
| };
|
| /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
| interface IDBIndex {
| readonly keyPath: string | string[];
| readonly multiEntry: boolean;
| /** Returns the name of the index. */
| name: string;
| /** Returns the IDBObjectStore the index belongs to. */
| readonly objectStore: IDBObjectStore;
| readonly unique: boolean;
| /**
| * Retrieves the number of records matching the given key or key range in query.
| *
| * If successful, request's result will be the count.
| */
| count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
| /**
| * Retrieves the value of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the value, or undefined if there was no matching record.
| */
| get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
| /**
| * Retrieves the values of the records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the values.
| */
| getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
| /**
| * Retrieves the keys of records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the keys.
| */
| getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
| /**
| * Retrieves the key of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the key, or undefined if there was no matching record.
| */
| getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
| /**
| * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
| *
| * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
| */
| openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
| /**
| * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
| *
| * If successful, request's result will be an IDBCursor, or null if there were no matching records.
| */
| openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
| }
|
| declare var IDBIndex: {
| prototype: IDBIndex;
| new(): IDBIndex;
| };
|
| /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
| interface IDBKeyRange {
| /** Returns lower bound, or undefined if none. */
| readonly lower: any;
| /** Returns true if the lower open flag is set, and false otherwise. */
| readonly lowerOpen: boolean;
| /** Returns upper bound, or undefined if none. */
| readonly upper: any;
| /** Returns true if the upper open flag is set, and false otherwise. */
| readonly upperOpen: boolean;
| /** Returns true if key is included in the range, and false otherwise. */
| includes(key: any): boolean;
| }
|
| declare var IDBKeyRange: {
| prototype: IDBKeyRange;
| new(): IDBKeyRange;
| /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
| bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
| /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
| lowerBound(lower: any, open?: boolean): IDBKeyRange;
| /** Returns a new IDBKeyRange spanning only key. */
| only(value: any): IDBKeyRange;
| /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
| upperBound(upper: any, open?: boolean): IDBKeyRange;
| };
|
| /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
| interface IDBObjectStore {
| /** Returns true if the store has a key generator, and false otherwise. */
| readonly autoIncrement: boolean;
| /** Returns a list of the names of indexes in the store. */
| readonly indexNames: DOMStringList;
| /** Returns the key path of the store, or null if none. */
| readonly keyPath: string | string[];
| /** Returns the name of the store. */
| name: string;
| /** Returns the associated transaction. */
| readonly transaction: IDBTransaction;
| /**
| * Adds or updates a record in store with the given value and key.
| *
| * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
| *
| * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
| *
| * If successful, request's result will be the record's key.
| */
| add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
| /**
| * Deletes all records in store.
| *
| * If successful, request's result will be undefined.
| */
| clear(): IDBRequest<undefined>;
| /**
| * Retrieves the number of records matching the given key or key range in query.
| *
| * If successful, request's result will be the count.
| */
| count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
| /**
| * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
| /**
| * Deletes records in store with the given key or in the given key range in query.
| *
| * If successful, request's result will be undefined.
| */
| delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
| /**
| * Deletes the index in store with the given name.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| deleteIndex(name: string): void;
| /**
| * Retrieves the value of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the value, or undefined if there was no matching record.
| */
| get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
| /**
| * Retrieves the values of the records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the values.
| */
| getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
| /**
| * Retrieves the keys of records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the keys.
| */
| getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
| /**
| * Retrieves the key of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the key, or undefined if there was no matching record.
| */
| getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
| index(name: string): IDBIndex;
| /**
| * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
| *
| * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
| */
| openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
| /**
| * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
| *
| * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
| */
| openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
| /**
| * Adds or updates a record in store with the given value and key.
| *
| * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
| *
| * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
| *
| * If successful, request's result will be the record's key.
| */
| put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
| }
|
| declare var IDBObjectStore: {
| prototype: IDBObjectStore;
| new(): IDBObjectStore;
| };
|
| interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
| "blocked": IDBVersionChangeEvent;
| "upgradeneeded": IDBVersionChangeEvent;
| }
|
| /** Also inherits methods from its parents IDBRequest and EventTarget. */
| interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
| onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
| onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
| addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBOpenDBRequest: {
| prototype: IDBOpenDBRequest;
| new(): IDBOpenDBRequest;
| };
|
| interface IDBRequestEventMap {
| "error": Event;
| "success": Event;
| }
|
| /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
| interface IDBRequest<T = any> extends EventTarget {
| /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
| readonly error: DOMException | null;
| onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
| onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
| /** Returns "pending" until a request is complete, then returns "done". */
| readonly readyState: IDBRequestReadyState;
| /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
| readonly result: T;
| /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
| readonly source: IDBObjectStore | IDBIndex | IDBCursor;
| /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
| readonly transaction: IDBTransaction | null;
| addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBRequest: {
| prototype: IDBRequest;
| new(): IDBRequest;
| };
|
| interface IDBTransactionEventMap {
| "abort": Event;
| "complete": Event;
| "error": Event;
| }
|
| interface IDBTransaction extends EventTarget {
| /** Returns the transaction's connection. */
| readonly db: IDBDatabase;
| readonly durability: IDBTransactionDurability;
| /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
| readonly error: DOMException | null;
| /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
| readonly mode: IDBTransactionMode;
| /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
| readonly objectStoreNames: DOMStringList;
| onabort: ((this: IDBTransaction, ev: Event) => any) | null;
| oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
| onerror: ((this: IDBTransaction, ev: Event) => any) | null;
| /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
| abort(): void;
| commit(): void;
| /** Returns an IDBObjectStore in the transaction's scope. */
| objectStore(name: string): IDBObjectStore;
| addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBTransaction: {
| prototype: IDBTransaction;
| new(): IDBTransaction;
| };
|
| /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
| interface IDBVersionChangeEvent extends Event {
| readonly newVersion: number | null;
| readonly oldVersion: number;
| }
|
| declare var IDBVersionChangeEvent: {
| prototype: IDBVersionChangeEvent;
| new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
| };
|
| /** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
| interface IIRFilterNode extends AudioNode {
| getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
| }
|
| declare var IIRFilterNode: {
| prototype: IIRFilterNode;
| new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
| };
|
| interface IdleDeadline {
| readonly didTimeout: boolean;
| timeRemaining(): DOMHighResTimeStamp;
| }
|
| declare var IdleDeadline: {
| prototype: IdleDeadline;
| new(): IdleDeadline;
| };
|
| interface ImageBitmap {
| /** Returns the intrinsic height of the image, in CSS pixels. */
| readonly height: number;
| /** Returns the intrinsic width of the image, in CSS pixels. */
| readonly width: number;
| /** Releases imageBitmap's underlying bitmap data. */
| close(): void;
| }
|
| declare var ImageBitmap: {
| prototype: ImageBitmap;
| new(): ImageBitmap;
| };
|
| interface ImageBitmapRenderingContext {
| /** Returns the canvas element that the context is bound to. */
| readonly canvas: HTMLCanvasElement | OffscreenCanvas;
| /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
| transferFromImageBitmap(bitmap: ImageBitmap | null): void;
| }
|
| declare var ImageBitmapRenderingContext: {
| prototype: ImageBitmapRenderingContext;
| new(): ImageBitmapRenderingContext;
| };
|
| /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
| interface ImageData {
| readonly colorSpace: PredefinedColorSpace;
| /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
| readonly data: Uint8ClampedArray;
| /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
| readonly height: number;
| /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
| readonly width: number;
| }
|
| declare var ImageData: {
| prototype: ImageData;
| new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
| };
|
| interface InnerHTML {
| innerHTML: string;
| }
|
| /** Available only in secure contexts. */
| interface InputDeviceInfo extends MediaDeviceInfo {
| }
|
| declare var InputDeviceInfo: {
| prototype: InputDeviceInfo;
| new(): InputDeviceInfo;
| };
|
| interface InputEvent extends UIEvent {
| readonly data: string | null;
| readonly dataTransfer: DataTransfer | null;
| readonly inputType: string;
| readonly isComposing: boolean;
| getTargetRanges(): StaticRange[];
| }
|
| declare var InputEvent: {
| prototype: InputEvent;
| new(type: string, eventInitDict?: InputEventInit): InputEvent;
| };
|
| /** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
| interface IntersectionObserver {
| readonly root: Element | Document | null;
| readonly rootMargin: string;
| readonly thresholds: ReadonlyArray<number>;
| disconnect(): void;
| observe(target: Element): void;
| takeRecords(): IntersectionObserverEntry[];
| unobserve(target: Element): void;
| }
|
| declare var IntersectionObserver: {
| prototype: IntersectionObserver;
| new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
| };
|
| /** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
| interface IntersectionObserverEntry {
| readonly boundingClientRect: DOMRectReadOnly;
| readonly intersectionRatio: number;
| readonly intersectionRect: DOMRectReadOnly;
| readonly isIntersecting: boolean;
| readonly rootBounds: DOMRectReadOnly | null;
| readonly target: Element;
| readonly time: DOMHighResTimeStamp;
| }
|
| declare var IntersectionObserverEntry: {
| prototype: IntersectionObserverEntry;
| new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
| };
|
| interface KHR_parallel_shader_compile {
| readonly COMPLETION_STATUS_KHR: 0x91B1;
| }
|
| /** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
| interface KeyboardEvent extends UIEvent {
| readonly altKey: boolean;
| /** @deprecated */
| readonly charCode: number;
| readonly code: string;
| readonly ctrlKey: boolean;
| readonly isComposing: boolean;
| readonly key: string;
| /** @deprecated */
| readonly keyCode: number;
| readonly location: number;
| readonly metaKey: boolean;
| readonly repeat: boolean;
| readonly shiftKey: boolean;
| getModifierState(keyArg: string): boolean;
| /** @deprecated */
| initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
| readonly DOM_KEY_LOCATION_STANDARD: 0x00;
| readonly DOM_KEY_LOCATION_LEFT: 0x01;
| readonly DOM_KEY_LOCATION_RIGHT: 0x02;
| readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
| }
|
| declare var KeyboardEvent: {
| prototype: KeyboardEvent;
| new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
| readonly DOM_KEY_LOCATION_STANDARD: 0x00;
| readonly DOM_KEY_LOCATION_LEFT: 0x01;
| readonly DOM_KEY_LOCATION_RIGHT: 0x02;
| readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
| };
|
| interface KeyframeEffect extends AnimationEffect {
| composite: CompositeOperation;
| iterationComposite: IterationCompositeOperation;
| pseudoElement: string | null;
| target: Element | null;
| getKeyframes(): ComputedKeyframe[];
| setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
| }
|
| declare var KeyframeEffect: {
| prototype: KeyframeEffect;
| new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
| new(source: KeyframeEffect): KeyframeEffect;
| };
|
| interface LinkStyle {
| readonly sheet: CSSStyleSheet | null;
| }
|
| /** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
| interface Location {
| /** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
| readonly ancestorOrigins: DOMStringList;
| /**
| * Returns the Location object's URL's fragment (includes leading "#" if non-empty).
| *
| * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
| */
| hash: string;
| /**
| * Returns the Location object's URL's host and port (if different from the default port for the scheme).
| *
| * Can be set, to navigate to the same URL with a changed host and port.
| */
| host: string;
| /**
| * Returns the Location object's URL's host.
| *
| * Can be set, to navigate to the same URL with a changed host.
| */
| hostname: string;
| /**
| * Returns the Location object's URL.
| *
| * Can be set, to navigate to the given URL.
| */
| href: string;
| toString(): string;
| /** Returns the Location object's URL's origin. */
| readonly origin: string;
| /**
| * Returns the Location object's URL's path.
| *
| * Can be set, to navigate to the same URL with a changed path.
| */
| pathname: string;
| /**
| * Returns the Location object's URL's port.
| *
| * Can be set, to navigate to the same URL with a changed port.
| */
| port: string;
| /**
| * Returns the Location object's URL's scheme.
| *
| * Can be set, to navigate to the same URL with a changed scheme.
| */
| protocol: string;
| /**
| * Returns the Location object's URL's query (includes leading "?" if non-empty).
| *
| * Can be set, to navigate to the same URL with a changed query (ignores leading "?").
| */
| search: string;
| /** Navigates to the given URL. */
| assign(url: string | URL): void;
| /** Reloads the current page. */
| reload(): void;
| /** Removes the current page from the session history and navigates to the given URL. */
| replace(url: string | URL): void;
| }
|
| declare var Location: {
| prototype: Location;
| new(): Location;
| };
|
| /** Available only in secure contexts. */
| interface Lock {
| readonly mode: LockMode;
| readonly name: string;
| }
|
| declare var Lock: {
| prototype: Lock;
| new(): Lock;
| };
|
| /** Available only in secure contexts. */
| interface LockManager {
| query(): Promise<LockManagerSnapshot>;
| request(name: string, callback: LockGrantedCallback): Promise<any>;
| request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
| }
|
| declare var LockManager: {
| prototype: LockManager;
| new(): LockManager;
| };
|
| interface MIDIAccessEventMap {
| "statechange": Event;
| }
|
| /** Available only in secure contexts. */
| interface MIDIAccess extends EventTarget {
| readonly inputs: MIDIInputMap;
| onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
| readonly outputs: MIDIOutputMap;
| readonly sysexEnabled: boolean;
| addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MIDIAccess: {
| prototype: MIDIAccess;
| new(): MIDIAccess;
| };
|
| /** Available only in secure contexts. */
| interface MIDIConnectionEvent extends Event {
| readonly port: MIDIPort;
| }
|
| declare var MIDIConnectionEvent: {
| prototype: MIDIConnectionEvent;
| new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
| };
|
| interface MIDIInputEventMap extends MIDIPortEventMap {
| "midimessage": Event;
| }
|
| /** Available only in secure contexts. */
| interface MIDIInput extends MIDIPort {
| onmidimessage: ((this: MIDIInput, ev: Event) => any) | null;
| addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MIDIInput: {
| prototype: MIDIInput;
| new(): MIDIInput;
| };
|
| /** Available only in secure contexts. */
| interface MIDIInputMap {
| forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
| }
|
| declare var MIDIInputMap: {
| prototype: MIDIInputMap;
| new(): MIDIInputMap;
| };
|
| /** Available only in secure contexts. */
| interface MIDIMessageEvent extends Event {
| readonly data: Uint8Array;
| }
|
| declare var MIDIMessageEvent: {
| prototype: MIDIMessageEvent;
| new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
| };
|
| /** Available only in secure contexts. */
| interface MIDIOutput extends MIDIPort {
| send(data: number[], timestamp?: DOMHighResTimeStamp): void;
| addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MIDIOutput: {
| prototype: MIDIOutput;
| new(): MIDIOutput;
| };
|
| /** Available only in secure contexts. */
| interface MIDIOutputMap {
| forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
| }
|
| declare var MIDIOutputMap: {
| prototype: MIDIOutputMap;
| new(): MIDIOutputMap;
| };
|
| interface MIDIPortEventMap {
| "statechange": Event;
| }
|
| /** Available only in secure contexts. */
| interface MIDIPort extends EventTarget {
| readonly connection: MIDIPortConnectionState;
| readonly id: string;
| readonly manufacturer: string | null;
| readonly name: string | null;
| onstatechange: ((this: MIDIPort, ev: Event) => any) | null;
| readonly state: MIDIPortDeviceState;
| readonly type: MIDIPortType;
| readonly version: string | null;
| close(): Promise<MIDIPort>;
| open(): Promise<MIDIPort>;
| addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MIDIPort: {
| prototype: MIDIPort;
| new(): MIDIPort;
| };
|
| interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
| }
|
| interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
| addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MathMLElement: {
| prototype: MathMLElement;
| new(): MathMLElement;
| };
|
| interface MediaCapabilities {
| decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
| encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
| }
|
| declare var MediaCapabilities: {
| prototype: MediaCapabilities;
| new(): MediaCapabilities;
| };
|
| /**
| * The MediaDevicesInfo interface contains information that describes a single media input or output device.
| * Available only in secure contexts.
| */
| interface MediaDeviceInfo {
| readonly deviceId: string;
| readonly groupId: string;
| readonly kind: MediaDeviceKind;
| readonly label: string;
| toJSON(): any;
| }
|
| declare var MediaDeviceInfo: {
| prototype: MediaDeviceInfo;
| new(): MediaDeviceInfo;
| };
|
| interface MediaDevicesEventMap {
| "devicechange": Event;
| }
|
| /**
| * Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
| * Available only in secure contexts.
| */
| interface MediaDevices extends EventTarget {
| ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
| enumerateDevices(): Promise<MediaDeviceInfo[]>;
| getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
| getSupportedConstraints(): MediaTrackSupportedConstraints;
| getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
| addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaDevices: {
| prototype: MediaDevices;
| new(): MediaDevices;
| };
|
| /** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
| interface MediaElementAudioSourceNode extends AudioNode {
| readonly mediaElement: HTMLMediaElement;
| }
|
| declare var MediaElementAudioSourceNode: {
| prototype: MediaElementAudioSourceNode;
| new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
| };
|
| interface MediaEncryptedEvent extends Event {
| readonly initData: ArrayBuffer | null;
| readonly initDataType: string;
| }
|
| declare var MediaEncryptedEvent: {
| prototype: MediaEncryptedEvent;
| new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
| };
|
| /** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
| interface MediaError {
| readonly code: number;
| readonly message: string;
| readonly MEDIA_ERR_ABORTED: 1;
| readonly MEDIA_ERR_NETWORK: 2;
| readonly MEDIA_ERR_DECODE: 3;
| readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
| }
|
| declare var MediaError: {
| prototype: MediaError;
| new(): MediaError;
| readonly MEDIA_ERR_ABORTED: 1;
| readonly MEDIA_ERR_NETWORK: 2;
| readonly MEDIA_ERR_DECODE: 3;
| readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
| };
|
| /**
| * This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
| * Available only in secure contexts.
| */
| interface MediaKeyMessageEvent extends Event {
| readonly message: ArrayBuffer;
| readonly messageType: MediaKeyMessageType;
| }
|
| declare var MediaKeyMessageEvent: {
| prototype: MediaKeyMessageEvent;
| new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
| };
|
| interface MediaKeySessionEventMap {
| "keystatuseschange": Event;
| "message": MediaKeyMessageEvent;
| }
|
| /**
| * This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
| * Available only in secure contexts.
| */
| interface MediaKeySession extends EventTarget {
| readonly closed: Promise<MediaKeySessionClosedReason>;
| readonly expiration: number;
| readonly keyStatuses: MediaKeyStatusMap;
| onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
| onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
| readonly sessionId: string;
| close(): Promise<void>;
| generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
| load(sessionId: string): Promise<boolean>;
| remove(): Promise<void>;
| update(response: BufferSource): Promise<void>;
| addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaKeySession: {
| prototype: MediaKeySession;
| new(): MediaKeySession;
| };
|
| /**
| * This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
| * Available only in secure contexts.
| */
| interface MediaKeyStatusMap {
| readonly size: number;
| get(keyId: BufferSource): MediaKeyStatus | undefined;
| has(keyId: BufferSource): boolean;
| forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
| }
|
| declare var MediaKeyStatusMap: {
| prototype: MediaKeyStatusMap;
| new(): MediaKeyStatusMap;
| };
|
| /**
| * This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
| * Available only in secure contexts.
| */
| interface MediaKeySystemAccess {
| readonly keySystem: string;
| createMediaKeys(): Promise<MediaKeys>;
| getConfiguration(): MediaKeySystemConfiguration;
| }
|
| declare var MediaKeySystemAccess: {
| prototype: MediaKeySystemAccess;
| new(): MediaKeySystemAccess;
| };
|
| /**
| * This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
| * Available only in secure contexts.
| */
| interface MediaKeys {
| createSession(sessionType?: MediaKeySessionType): MediaKeySession;
| setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
| }
|
| declare var MediaKeys: {
| prototype: MediaKeys;
| new(): MediaKeys;
| };
|
| interface MediaList {
| readonly length: number;
| mediaText: string;
| toString(): string;
| appendMedium(medium: string): void;
| deleteMedium(medium: string): void;
| item(index: number): string | null;
| [index: number]: string;
| }
|
| declare var MediaList: {
| prototype: MediaList;
| new(): MediaList;
| };
|
| interface MediaMetadata {
| album: string;
| artist: string;
| artwork: ReadonlyArray<MediaImage>;
| title: string;
| }
|
| declare var MediaMetadata: {
| prototype: MediaMetadata;
| new(init?: MediaMetadataInit): MediaMetadata;
| };
|
| interface MediaQueryListEventMap {
| "change": MediaQueryListEvent;
| }
|
| /** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
| interface MediaQueryList extends EventTarget {
| readonly matches: boolean;
| readonly media: string;
| onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
| /** @deprecated */
| addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
| /** @deprecated */
| removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
| addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaQueryList: {
| prototype: MediaQueryList;
| new(): MediaQueryList;
| };
|
| interface MediaQueryListEvent extends Event {
| readonly matches: boolean;
| readonly media: string;
| }
|
| declare var MediaQueryListEvent: {
| prototype: MediaQueryListEvent;
| new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
| };
|
| interface MediaRecorderEventMap {
| "dataavailable": BlobEvent;
| "error": Event;
| "pause": Event;
| "resume": Event;
| "start": Event;
| "stop": Event;
| }
|
| interface MediaRecorder extends EventTarget {
| readonly audioBitsPerSecond: number;
| readonly mimeType: string;
| ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
| onerror: ((this: MediaRecorder, ev: Event) => any) | null;
| onpause: ((this: MediaRecorder, ev: Event) => any) | null;
| onresume: ((this: MediaRecorder, ev: Event) => any) | null;
| onstart: ((this: MediaRecorder, ev: Event) => any) | null;
| onstop: ((this: MediaRecorder, ev: Event) => any) | null;
| readonly state: RecordingState;
| readonly stream: MediaStream;
| readonly videoBitsPerSecond: number;
| pause(): void;
| requestData(): void;
| resume(): void;
| start(timeslice?: number): void;
| stop(): void;
| addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaRecorder: {
| prototype: MediaRecorder;
| new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
| isTypeSupported(type: string): boolean;
| };
|
| interface MediaSession {
| metadata: MediaMetadata | null;
| playbackState: MediaSessionPlaybackState;
| setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
| setPositionState(state?: MediaPositionState): void;
| }
|
| declare var MediaSession: {
| prototype: MediaSession;
| new(): MediaSession;
| };
|
| interface MediaSourceEventMap {
| "sourceclose": Event;
| "sourceended": Event;
| "sourceopen": Event;
| }
|
| /** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
| interface MediaSource extends EventTarget {
| readonly activeSourceBuffers: SourceBufferList;
| duration: number;
| onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
| onsourceended: ((this: MediaSource, ev: Event) => any) | null;
| onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
| readonly readyState: ReadyState;
| readonly sourceBuffers: SourceBufferList;
| addSourceBuffer(type: string): SourceBuffer;
| clearLiveSeekableRange(): void;
| endOfStream(error?: EndOfStreamError): void;
| removeSourceBuffer(sourceBuffer: SourceBuffer): void;
| setLiveSeekableRange(start: number, end: number): void;
| addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaSource: {
| prototype: MediaSource;
| new(): MediaSource;
| isTypeSupported(type: string): boolean;
| };
|
| interface MediaStreamEventMap {
| "addtrack": MediaStreamTrackEvent;
| "removetrack": MediaStreamTrackEvent;
| }
|
| /** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
| interface MediaStream extends EventTarget {
| readonly active: boolean;
| readonly id: string;
| onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
| onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
| addTrack(track: MediaStreamTrack): void;
| clone(): MediaStream;
| getAudioTracks(): MediaStreamTrack[];
| getTrackById(trackId: string): MediaStreamTrack | null;
| getTracks(): MediaStreamTrack[];
| getVideoTracks(): MediaStreamTrack[];
| removeTrack(track: MediaStreamTrack): void;
| addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaStream: {
| prototype: MediaStream;
| new(): MediaStream;
| new(stream: MediaStream): MediaStream;
| new(tracks: MediaStreamTrack[]): MediaStream;
| };
|
| interface MediaStreamAudioDestinationNode extends AudioNode {
| readonly stream: MediaStream;
| }
|
| declare var MediaStreamAudioDestinationNode: {
| prototype: MediaStreamAudioDestinationNode;
| new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
| };
|
| /** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
| interface MediaStreamAudioSourceNode extends AudioNode {
| readonly mediaStream: MediaStream;
| }
|
| declare var MediaStreamAudioSourceNode: {
| prototype: MediaStreamAudioSourceNode;
| new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
| };
|
| interface MediaStreamTrackEventMap {
| "ended": Event;
| "mute": Event;
| "unmute": Event;
| }
|
| /** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
| interface MediaStreamTrack extends EventTarget {
| contentHint: string;
| enabled: boolean;
| readonly id: string;
| readonly kind: string;
| readonly label: string;
| readonly muted: boolean;
| onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
| onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
| onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
| readonly readyState: MediaStreamTrackState;
| applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
| clone(): MediaStreamTrack;
| getCapabilities(): MediaTrackCapabilities;
| getConstraints(): MediaTrackConstraints;
| getSettings(): MediaTrackSettings;
| stop(): void;
| addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MediaStreamTrack: {
| prototype: MediaStreamTrack;
| new(): MediaStreamTrack;
| };
|
| /** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
| interface MediaStreamTrackEvent extends Event {
| readonly track: MediaStreamTrack;
| }
|
| declare var MediaStreamTrackEvent: {
| prototype: MediaStreamTrackEvent;
| new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
| };
|
| /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
| interface MessageChannel {
| /** Returns the first MessagePort object. */
| readonly port1: MessagePort;
| /** Returns the second MessagePort object. */
| readonly port2: MessagePort;
| }
|
| declare var MessageChannel: {
| prototype: MessageChannel;
| new(): MessageChannel;
| };
|
| /** A message received by a target object. */
| interface MessageEvent<T = any> extends Event {
| /** Returns the data of the message. */
| readonly data: T;
| /** Returns the last event ID string, for server-sent events. */
| readonly lastEventId: string;
| /** Returns the origin of the message, for server-sent events and cross-document messaging. */
| readonly origin: string;
| /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
| readonly ports: ReadonlyArray<MessagePort>;
| /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
| readonly source: MessageEventSource | null;
| /** @deprecated */
| initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
| }
|
| declare var MessageEvent: {
| prototype: MessageEvent;
| new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
| };
|
| interface MessagePortEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
| interface MessagePort extends EventTarget {
| onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
| /** Disconnects the port, so that it is no longer active. */
| close(): void;
| /**
| * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
| *
| * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
| */
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| /** Begins dispatching messages received on the port. */
| start(): void;
| addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MessagePort: {
| prototype: MessagePort;
| new(): MessagePort;
| };
|
| /**
| * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
| * @deprecated
| */
| interface MimeType {
| /**
| * Returns the MIME type's description.
| * @deprecated
| */
| readonly description: string;
| /**
| * Returns the Plugin object that implements this MIME type.
| * @deprecated
| */
| readonly enabledPlugin: Plugin;
| /**
| * Returns the MIME type's typical file extensions, in a comma-separated list.
| * @deprecated
| */
| readonly suffixes: string;
| /**
| * Returns the MIME type.
| * @deprecated
| */
| readonly type: string;
| }
|
| /** @deprecated */
| declare var MimeType: {
| prototype: MimeType;
| new(): MimeType;
| };
|
| /**
| * Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
| * @deprecated
| */
| interface MimeTypeArray {
| /** @deprecated */
| readonly length: number;
| /** @deprecated */
| item(index: number): MimeType | null;
| /** @deprecated */
| namedItem(name: string): MimeType | null;
| [index: number]: MimeType;
| }
|
| /** @deprecated */
| declare var MimeTypeArray: {
| prototype: MimeTypeArray;
| new(): MimeTypeArray;
| };
|
| /** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
| interface MouseEvent extends UIEvent {
| readonly altKey: boolean;
| readonly button: number;
| readonly buttons: number;
| readonly clientX: number;
| readonly clientY: number;
| readonly ctrlKey: boolean;
| readonly metaKey: boolean;
| readonly movementX: number;
| readonly movementY: number;
| readonly offsetX: number;
| readonly offsetY: number;
| readonly pageX: number;
| readonly pageY: number;
| readonly relatedTarget: EventTarget | null;
| readonly screenX: number;
| readonly screenY: number;
| readonly shiftKey: boolean;
| readonly x: number;
| readonly y: number;
| getModifierState(keyArg: string): boolean;
| /** @deprecated */
| initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
| }
|
| declare var MouseEvent: {
| prototype: MouseEvent;
| new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
| };
|
| /**
| * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
| * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
| */
| interface MutationEvent extends Event {
| /** @deprecated */
| readonly attrChange: number;
| /** @deprecated */
| readonly attrName: string;
| /** @deprecated */
| readonly newValue: string;
| /** @deprecated */
| readonly prevValue: string;
| /** @deprecated */
| readonly relatedNode: Node | null;
| /** @deprecated */
| initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
| readonly MODIFICATION: 1;
| readonly ADDITION: 2;
| readonly REMOVAL: 3;
| }
|
| /** @deprecated */
| declare var MutationEvent: {
| prototype: MutationEvent;
| new(): MutationEvent;
| readonly MODIFICATION: 1;
| readonly ADDITION: 2;
| readonly REMOVAL: 3;
| };
|
| /** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
| interface MutationObserver {
| /** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
| disconnect(): void;
| /**
| * Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
| *
| * The options argument allows for setting mutation observation options via object members.
| */
| observe(target: Node, options?: MutationObserverInit): void;
| /** Empties the record queue and returns what was in there. */
| takeRecords(): MutationRecord[];
| }
|
| declare var MutationObserver: {
| prototype: MutationObserver;
| new(callback: MutationCallback): MutationObserver;
| };
|
| /** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
| interface MutationRecord {
| /** Return the nodes added and removed respectively. */
| readonly addedNodes: NodeList;
| /** Returns the local name of the changed attribute, and null otherwise. */
| readonly attributeName: string | null;
| /** Returns the namespace of the changed attribute, and null otherwise. */
| readonly attributeNamespace: string | null;
| /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
| readonly nextSibling: Node | null;
| /** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */
| readonly oldValue: string | null;
| /** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
| readonly previousSibling: Node | null;
| /** Return the nodes added and removed respectively. */
| readonly removedNodes: NodeList;
| /** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */
| readonly target: Node;
| /** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */
| readonly type: MutationRecordType;
| }
|
| declare var MutationRecord: {
| prototype: MutationRecord;
| new(): MutationRecord;
| };
|
| /** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
| interface NamedNodeMap {
| readonly length: number;
| getNamedItem(qualifiedName: string): Attr | null;
| getNamedItemNS(namespace: string | null, localName: string): Attr | null;
| item(index: number): Attr | null;
| removeNamedItem(qualifiedName: string): Attr;
| removeNamedItemNS(namespace: string | null, localName: string): Attr;
| setNamedItem(attr: Attr): Attr | null;
| setNamedItemNS(attr: Attr): Attr | null;
| [index: number]: Attr;
| }
|
| declare var NamedNodeMap: {
| prototype: NamedNodeMap;
| new(): NamedNodeMap;
| };
|
| /** Available only in secure contexts. */
| interface NavigationPreloadManager {
| disable(): Promise<void>;
| enable(): Promise<void>;
| getState(): Promise<NavigationPreloadState>;
| setHeaderValue(value: string): Promise<void>;
| }
|
| declare var NavigationPreloadManager: {
| prototype: NavigationPreloadManager;
| new(): NavigationPreloadManager;
| };
|
| /** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
| interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
| /** Available only in secure contexts. */
| readonly clipboard: Clipboard;
| /** Available only in secure contexts. */
| readonly credentials: CredentialsContainer;
| readonly doNotTrack: string | null;
| readonly geolocation: Geolocation;
| readonly maxTouchPoints: number;
| readonly mediaCapabilities: MediaCapabilities;
| /** Available only in secure contexts. */
| readonly mediaDevices: MediaDevices;
| readonly mediaSession: MediaSession;
| readonly permissions: Permissions;
| /** Available only in secure contexts. */
| readonly serviceWorker: ServiceWorkerContainer;
| /** Available only in secure contexts. */
| canShare(data?: ShareData): boolean;
| getGamepads(): (Gamepad | null)[];
| /** Available only in secure contexts. */
| requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
| /** Available only in secure contexts. */
| requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
| sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
| /** Available only in secure contexts. */
| share(data?: ShareData): Promise<void>;
| vibrate(pattern: VibratePattern): boolean;
| }
|
| declare var Navigator: {
| prototype: Navigator;
| new(): Navigator;
| };
|
| interface NavigatorAutomationInformation {
| readonly webdriver: boolean;
| }
|
| interface NavigatorConcurrentHardware {
| readonly hardwareConcurrency: number;
| }
|
| interface NavigatorContentUtils {
| /** Available only in secure contexts. */
| registerProtocolHandler(scheme: string, url: string | URL): void;
| }
|
| interface NavigatorCookies {
| readonly cookieEnabled: boolean;
| }
|
| interface NavigatorID {
| /** @deprecated */
| readonly appCodeName: string;
| /** @deprecated */
| readonly appName: string;
| /** @deprecated */
| readonly appVersion: string;
| /** @deprecated */
| readonly platform: string;
| /** @deprecated */
| readonly product: string;
| /** @deprecated */
| readonly productSub: string;
| readonly userAgent: string;
| /** @deprecated */
| readonly vendor: string;
| /** @deprecated */
| readonly vendorSub: string;
| }
|
| interface NavigatorLanguage {
| readonly language: string;
| readonly languages: ReadonlyArray<string>;
| }
|
| /** Available only in secure contexts. */
| interface NavigatorLocks {
| readonly locks: LockManager;
| }
|
| interface NavigatorOnLine {
| readonly onLine: boolean;
| }
|
| interface NavigatorPlugins {
| /** @deprecated */
| readonly mimeTypes: MimeTypeArray;
| readonly pdfViewerEnabled: boolean;
| /** @deprecated */
| readonly plugins: PluginArray;
| /** @deprecated */
| javaEnabled(): boolean;
| }
|
| /** Available only in secure contexts. */
| interface NavigatorStorage {
| readonly storage: StorageManager;
| }
|
| /** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
| interface Node extends EventTarget {
| /** Returns node's node document's document base URL. */
| readonly baseURI: string;
| /** Returns the children. */
| readonly childNodes: NodeListOf<ChildNode>;
| /** Returns the first child. */
| readonly firstChild: ChildNode | null;
| /** Returns true if node is connected and false otherwise. */
| readonly isConnected: boolean;
| /** Returns the last child. */
| readonly lastChild: ChildNode | null;
| /** Returns the next sibling. */
| readonly nextSibling: ChildNode | null;
| /** Returns a string appropriate for the type of node. */
| readonly nodeName: string;
| /** Returns the type of node. */
| readonly nodeType: number;
| nodeValue: string | null;
| /** Returns the node document. Returns null for documents. */
| readonly ownerDocument: Document | null;
| /** Returns the parent element. */
| readonly parentElement: HTMLElement | null;
| /** Returns the parent. */
| readonly parentNode: ParentNode | null;
| /** Returns the previous sibling. */
| readonly previousSibling: ChildNode | null;
| textContent: string | null;
| appendChild<T extends Node>(node: T): T;
| /** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
| cloneNode(deep?: boolean): Node;
| /** Returns a bitmask indicating the position of other relative to node. */
| compareDocumentPosition(other: Node): number;
| /** Returns true if other is an inclusive descendant of node, and false otherwise. */
| contains(other: Node | null): boolean;
| /** Returns node's root. */
| getRootNode(options?: GetRootNodeOptions): Node;
| /** Returns whether node has children. */
| hasChildNodes(): boolean;
| insertBefore<T extends Node>(node: T, child: Node | null): T;
| isDefaultNamespace(namespace: string | null): boolean;
| /** Returns whether node and otherNode have the same properties. */
| isEqualNode(otherNode: Node | null): boolean;
| isSameNode(otherNode: Node | null): boolean;
| lookupNamespaceURI(prefix: string | null): string | null;
| lookupPrefix(namespace: string | null): string | null;
| /** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
| normalize(): void;
| removeChild<T extends Node>(child: T): T;
| replaceChild<T extends Node>(node: Node, child: T): T;
| /** node is an element. */
| readonly ELEMENT_NODE: 1;
| readonly ATTRIBUTE_NODE: 2;
| /** node is a Text node. */
| readonly TEXT_NODE: 3;
| /** node is a CDATASection node. */
| readonly CDATA_SECTION_NODE: 4;
| readonly ENTITY_REFERENCE_NODE: 5;
| readonly ENTITY_NODE: 6;
| /** node is a ProcessingInstruction node. */
| readonly PROCESSING_INSTRUCTION_NODE: 7;
| /** node is a Comment node. */
| readonly COMMENT_NODE: 8;
| /** node is a document. */
| readonly DOCUMENT_NODE: 9;
| /** node is a doctype. */
| readonly DOCUMENT_TYPE_NODE: 10;
| /** node is a DocumentFragment node. */
| readonly DOCUMENT_FRAGMENT_NODE: 11;
| readonly NOTATION_NODE: 12;
| /** Set when node and other are not in the same tree. */
| readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
| /** Set when other is preceding node. */
| readonly DOCUMENT_POSITION_PRECEDING: 0x02;
| /** Set when other is following node. */
| readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
| /** Set when other is an ancestor of node. */
| readonly DOCUMENT_POSITION_CONTAINS: 0x08;
| /** Set when other is a descendant of node. */
| readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
| readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
| }
|
| declare var Node: {
| prototype: Node;
| new(): Node;
| /** node is an element. */
| readonly ELEMENT_NODE: 1;
| readonly ATTRIBUTE_NODE: 2;
| /** node is a Text node. */
| readonly TEXT_NODE: 3;
| /** node is a CDATASection node. */
| readonly CDATA_SECTION_NODE: 4;
| readonly ENTITY_REFERENCE_NODE: 5;
| readonly ENTITY_NODE: 6;
| /** node is a ProcessingInstruction node. */
| readonly PROCESSING_INSTRUCTION_NODE: 7;
| /** node is a Comment node. */
| readonly COMMENT_NODE: 8;
| /** node is a document. */
| readonly DOCUMENT_NODE: 9;
| /** node is a doctype. */
| readonly DOCUMENT_TYPE_NODE: 10;
| /** node is a DocumentFragment node. */
| readonly DOCUMENT_FRAGMENT_NODE: 11;
| readonly NOTATION_NODE: 12;
| /** Set when node and other are not in the same tree. */
| readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
| /** Set when other is preceding node. */
| readonly DOCUMENT_POSITION_PRECEDING: 0x02;
| /** Set when other is following node. */
| readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
| /** Set when other is an ancestor of node. */
| readonly DOCUMENT_POSITION_CONTAINS: 0x08;
| /** Set when other is a descendant of node. */
| readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
| readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
| };
|
| /** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
| interface NodeIterator {
| readonly filter: NodeFilter | null;
| readonly pointerBeforeReferenceNode: boolean;
| readonly referenceNode: Node;
| readonly root: Node;
| readonly whatToShow: number;
| /** @deprecated */
| detach(): void;
| nextNode(): Node | null;
| previousNode(): Node | null;
| }
|
| declare var NodeIterator: {
| prototype: NodeIterator;
| new(): NodeIterator;
| };
|
| /** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
| interface NodeList {
| /** Returns the number of nodes in the collection. */
| readonly length: number;
| /** Returns the node with index index from the collection. The nodes are sorted in tree order. */
| item(index: number): Node | null;
| /**
| * Performs the specified action for each node in an list.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
| [index: number]: Node;
| }
|
| declare var NodeList: {
| prototype: NodeList;
| new(): NodeList;
| };
|
| interface NodeListOf<TNode extends Node> extends NodeList {
| item(index: number): TNode;
| /**
| * Performs the specified action for each node in an list.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
| [index: number]: TNode;
| }
|
| interface NonDocumentTypeChildNode {
| /** Returns the first following sibling that is an element, and null otherwise. */
| readonly nextElementSibling: Element | null;
| /** Returns the first preceding sibling that is an element, and null otherwise. */
| readonly previousElementSibling: Element | null;
| }
|
| interface NonElementParentNode {
| /** Returns the first element within node's descendants whose ID is elementId. */
| getElementById(elementId: string): Element | null;
| }
|
| interface NotificationEventMap {
| "click": Event;
| "close": Event;
| "error": Event;
| "show": Event;
| }
|
| /** This Notifications API interface is used to configure and display desktop notifications to the user. */
| interface Notification extends EventTarget {
| readonly body: string;
| readonly data: any;
| readonly dir: NotificationDirection;
| readonly icon: string;
| readonly lang: string;
| onclick: ((this: Notification, ev: Event) => any) | null;
| onclose: ((this: Notification, ev: Event) => any) | null;
| onerror: ((this: Notification, ev: Event) => any) | null;
| onshow: ((this: Notification, ev: Event) => any) | null;
| readonly tag: string;
| readonly title: string;
| close(): void;
| addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Notification: {
| prototype: Notification;
| new(title: string, options?: NotificationOptions): Notification;
| readonly permission: NotificationPermission;
| requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
| };
|
| interface OES_draw_buffers_indexed {
| blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
| blendEquationiOES(buf: GLuint, mode: GLenum): void;
| blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
| blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
| colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
| disableiOES(target: GLenum, index: GLuint): void;
| enableiOES(target: GLenum, index: GLuint): void;
| }
|
| /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
| interface OES_element_index_uint {
| }
|
| interface OES_fbo_render_mipmap {
| }
|
| /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
| interface OES_standard_derivatives {
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
| }
|
| /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
| interface OES_texture_float {
| }
|
| /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
| interface OES_texture_float_linear {
| }
|
| /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
| interface OES_texture_half_float {
| readonly HALF_FLOAT_OES: 0x8D61;
| }
|
| /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
| interface OES_texture_half_float_linear {
| }
|
| interface OES_vertex_array_object {
| bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
| createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
| deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
| isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
| readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
| }
|
| interface OVR_multiview2 {
| framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
| readonly MAX_VIEWS_OVR: 0x9631;
| readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
| }
|
| /** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
| interface OfflineAudioCompletionEvent extends Event {
| readonly renderedBuffer: AudioBuffer;
| }
|
| declare var OfflineAudioCompletionEvent: {
| prototype: OfflineAudioCompletionEvent;
| new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
| };
|
| interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
| "complete": OfflineAudioCompletionEvent;
| }
|
| /** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
| interface OfflineAudioContext extends BaseAudioContext {
| readonly length: number;
| oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
| resume(): Promise<void>;
| startRendering(): Promise<AudioBuffer>;
| suspend(suspendTime: number): Promise<void>;
| addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var OfflineAudioContext: {
| prototype: OfflineAudioContext;
| new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
| new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
| };
|
| interface OffscreenCanvasEventMap {
| "contextlost": Event;
| "contextrestored": Event;
| }
|
| interface OffscreenCanvas extends EventTarget {
| /**
| * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
| *
| * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
| */
| height: number;
| oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
| oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
| /**
| * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
| *
| * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
| */
| width: number;
| /**
| * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
| *
| * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
| */
| convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
| /**
| * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
| *
| * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
| *
| * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
| */
| getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
| getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
| getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
| getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
| getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
| /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
| transferToImageBitmap(): ImageBitmap;
| addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var OffscreenCanvas: {
| prototype: OffscreenCanvas;
| new(width: number, height: number): OffscreenCanvas;
| };
|
| interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
| readonly canvas: OffscreenCanvas;
| commit(): void;
| }
|
| declare var OffscreenCanvasRenderingContext2D: {
| prototype: OffscreenCanvasRenderingContext2D;
| new(): OffscreenCanvasRenderingContext2D;
| };
|
| /** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
| interface OscillatorNode extends AudioScheduledSourceNode {
| readonly detune: AudioParam;
| readonly frequency: AudioParam;
| type: OscillatorType;
| setPeriodicWave(periodicWave: PeriodicWave): void;
| addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var OscillatorNode: {
| prototype: OscillatorNode;
| new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
| };
|
| interface OverconstrainedError extends Error {
| readonly constraint: string;
| }
|
| declare var OverconstrainedError: {
| prototype: OverconstrainedError;
| new(constraint: string, message?: string): OverconstrainedError;
| };
|
| /** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
| interface PageTransitionEvent extends Event {
| /**
| * For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
| *
| * For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
| *
| * Things that can cause the page to be unsalvageable include:
| *
| * The user agent decided to not keep the Document alive in a session history entry after unload
| * Having iframes that are not salvageable
| * Active WebSocket objects
| * Aborting a Document
| */
| readonly persisted: boolean;
| }
|
| declare var PageTransitionEvent: {
| prototype: PageTransitionEvent;
| new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
| };
|
| /** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
| interface PannerNode extends AudioNode {
| coneInnerAngle: number;
| coneOuterAngle: number;
| coneOuterGain: number;
| distanceModel: DistanceModelType;
| maxDistance: number;
| readonly orientationX: AudioParam;
| readonly orientationY: AudioParam;
| readonly orientationZ: AudioParam;
| panningModel: PanningModelType;
| readonly positionX: AudioParam;
| readonly positionY: AudioParam;
| readonly positionZ: AudioParam;
| refDistance: number;
| rolloffFactor: number;
| /** @deprecated */
| setOrientation(x: number, y: number, z: number): void;
| /** @deprecated */
| setPosition(x: number, y: number, z: number): void;
| }
|
| declare var PannerNode: {
| prototype: PannerNode;
| new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
| };
|
| interface ParentNode extends Node {
| readonly childElementCount: number;
| /** Returns the child elements. */
| readonly children: HTMLCollection;
| /** Returns the first child that is an element, and null otherwise. */
| readonly firstElementChild: Element | null;
| /** Returns the last child that is an element, and null otherwise. */
| readonly lastElementChild: Element | null;
| /**
| * Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| append(...nodes: (Node | string)[]): void;
| /**
| * Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| prepend(...nodes: (Node | string)[]): void;
| /** Returns the first element that is a descendant of node that matches selectors. */
| querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
| querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
| querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
| /** @deprecated */
| querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
| querySelector<E extends Element = Element>(selectors: string): E | null;
| /** Returns all element descendants of node that match selectors. */
| querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
| querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
| querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
| /** @deprecated */
| querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
| querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
| /**
| * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
| *
| * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
| */
| replaceChildren(...nodes: (Node | string)[]): void;
| }
|
| /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
| interface Path2D extends CanvasPath {
| /** Adds to the path the path given by the argument. */
| addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
| }
|
| declare var Path2D: {
| prototype: Path2D;
| new(path?: Path2D | string): Path2D;
| };
|
| /** Available only in secure contexts. */
| interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
| readonly methodDetails: any;
| readonly methodName: string;
| }
|
| declare var PaymentMethodChangeEvent: {
| prototype: PaymentMethodChangeEvent;
| new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
| };
|
| interface PaymentRequestEventMap {
| "paymentmethodchange": Event;
| }
|
| /**
| * This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
| * Available only in secure contexts.
| */
| interface PaymentRequest extends EventTarget {
| readonly id: string;
| onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
| abort(): Promise<void>;
| canMakePayment(): Promise<boolean>;
| show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
| addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var PaymentRequest: {
| prototype: PaymentRequest;
| new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
| };
|
| /**
| * This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
| * Available only in secure contexts.
| */
| interface PaymentRequestUpdateEvent extends Event {
| updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
| }
|
| declare var PaymentRequestUpdateEvent: {
| prototype: PaymentRequestUpdateEvent;
| new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
| };
|
| /**
| * This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
| * Available only in secure contexts.
| */
| interface PaymentResponse extends EventTarget {
| readonly details: any;
| readonly methodName: string;
| readonly requestId: string;
| complete(result?: PaymentComplete): Promise<void>;
| retry(errorFields?: PaymentValidationErrors): Promise<void>;
| toJSON(): any;
| }
|
| declare var PaymentResponse: {
| prototype: PaymentResponse;
| new(): PaymentResponse;
| };
|
| interface PerformanceEventMap {
| "resourcetimingbufferfull": Event;
| }
|
| /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
| interface Performance extends EventTarget {
| readonly eventCounts: EventCounts;
| /** @deprecated */
| readonly navigation: PerformanceNavigation;
| onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
| readonly timeOrigin: DOMHighResTimeStamp;
| /** @deprecated */
| readonly timing: PerformanceTiming;
| clearMarks(markName?: string): void;
| clearMeasures(measureName?: string): void;
| clearResourceTimings(): void;
| getEntries(): PerformanceEntryList;
| getEntriesByName(name: string, type?: string): PerformanceEntryList;
| getEntriesByType(type: string): PerformanceEntryList;
| mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
| measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
| now(): DOMHighResTimeStamp;
| setResourceTimingBufferSize(maxSize: number): void;
| toJSON(): any;
| addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Performance: {
| prototype: Performance;
| new(): Performance;
| };
|
| /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
| interface PerformanceEntry {
| readonly duration: DOMHighResTimeStamp;
| readonly entryType: string;
| readonly name: string;
| readonly startTime: DOMHighResTimeStamp;
| toJSON(): any;
| }
|
| declare var PerformanceEntry: {
| prototype: PerformanceEntry;
| new(): PerformanceEntry;
| };
|
| interface PerformanceEventTiming extends PerformanceEntry {
| readonly cancelable: boolean;
| readonly processingEnd: DOMHighResTimeStamp;
| readonly processingStart: DOMHighResTimeStamp;
| readonly target: Node | null;
| toJSON(): any;
| }
|
| declare var PerformanceEventTiming: {
| prototype: PerformanceEventTiming;
| new(): PerformanceEventTiming;
| };
|
| /** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
| interface PerformanceMark extends PerformanceEntry {
| readonly detail: any;
| }
|
| declare var PerformanceMark: {
| prototype: PerformanceMark;
| new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
| };
|
| /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
| interface PerformanceMeasure extends PerformanceEntry {
| readonly detail: any;
| }
|
| declare var PerformanceMeasure: {
| prototype: PerformanceMeasure;
| new(): PerformanceMeasure;
| };
|
| /**
| * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
| * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
| */
| interface PerformanceNavigation {
| /** @deprecated */
| readonly redirectCount: number;
| /** @deprecated */
| readonly type: number;
| /** @deprecated */
| toJSON(): any;
| readonly TYPE_NAVIGATE: 0;
| readonly TYPE_RELOAD: 1;
| readonly TYPE_BACK_FORWARD: 2;
| readonly TYPE_RESERVED: 255;
| }
|
| /** @deprecated */
| declare var PerformanceNavigation: {
| prototype: PerformanceNavigation;
| new(): PerformanceNavigation;
| readonly TYPE_NAVIGATE: 0;
| readonly TYPE_RELOAD: 1;
| readonly TYPE_BACK_FORWARD: 2;
| readonly TYPE_RESERVED: 255;
| };
|
| /** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
| interface PerformanceNavigationTiming extends PerformanceResourceTiming {
| readonly domComplete: DOMHighResTimeStamp;
| readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
| readonly domContentLoadedEventStart: DOMHighResTimeStamp;
| readonly domInteractive: DOMHighResTimeStamp;
| readonly loadEventEnd: DOMHighResTimeStamp;
| readonly loadEventStart: DOMHighResTimeStamp;
| readonly redirectCount: number;
| readonly type: NavigationTimingType;
| readonly unloadEventEnd: DOMHighResTimeStamp;
| readonly unloadEventStart: DOMHighResTimeStamp;
| toJSON(): any;
| }
|
| declare var PerformanceNavigationTiming: {
| prototype: PerformanceNavigationTiming;
| new(): PerformanceNavigationTiming;
| };
|
| interface PerformanceObserver {
| disconnect(): void;
| observe(options?: PerformanceObserverInit): void;
| takeRecords(): PerformanceEntryList;
| }
|
| declare var PerformanceObserver: {
| prototype: PerformanceObserver;
| new(callback: PerformanceObserverCallback): PerformanceObserver;
| readonly supportedEntryTypes: ReadonlyArray<string>;
| };
|
| interface PerformanceObserverEntryList {
| getEntries(): PerformanceEntryList;
| getEntriesByName(name: string, type?: string): PerformanceEntryList;
| getEntriesByType(type: string): PerformanceEntryList;
| }
|
| declare var PerformanceObserverEntryList: {
| prototype: PerformanceObserverEntryList;
| new(): PerformanceObserverEntryList;
| };
|
| interface PerformancePaintTiming extends PerformanceEntry {
| }
|
| declare var PerformancePaintTiming: {
| prototype: PerformancePaintTiming;
| new(): PerformancePaintTiming;
| };
|
| /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
| interface PerformanceResourceTiming extends PerformanceEntry {
| readonly connectEnd: DOMHighResTimeStamp;
| readonly connectStart: DOMHighResTimeStamp;
| readonly decodedBodySize: number;
| readonly domainLookupEnd: DOMHighResTimeStamp;
| readonly domainLookupStart: DOMHighResTimeStamp;
| readonly encodedBodySize: number;
| readonly fetchStart: DOMHighResTimeStamp;
| readonly initiatorType: string;
| readonly nextHopProtocol: string;
| readonly redirectEnd: DOMHighResTimeStamp;
| readonly redirectStart: DOMHighResTimeStamp;
| readonly requestStart: DOMHighResTimeStamp;
| readonly responseEnd: DOMHighResTimeStamp;
| readonly responseStart: DOMHighResTimeStamp;
| readonly secureConnectionStart: DOMHighResTimeStamp;
| readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
| readonly transferSize: number;
| readonly workerStart: DOMHighResTimeStamp;
| toJSON(): any;
| }
|
| declare var PerformanceResourceTiming: {
| prototype: PerformanceResourceTiming;
| new(): PerformanceResourceTiming;
| };
|
| interface PerformanceServerTiming {
| readonly description: string;
| readonly duration: DOMHighResTimeStamp;
| readonly name: string;
| toJSON(): any;
| }
|
| declare var PerformanceServerTiming: {
| prototype: PerformanceServerTiming;
| new(): PerformanceServerTiming;
| };
|
| /**
| * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
| * @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
| */
| interface PerformanceTiming {
| /** @deprecated */
| readonly connectEnd: number;
| /** @deprecated */
| readonly connectStart: number;
| /** @deprecated */
| readonly domComplete: number;
| /** @deprecated */
| readonly domContentLoadedEventEnd: number;
| /** @deprecated */
| readonly domContentLoadedEventStart: number;
| /** @deprecated */
| readonly domInteractive: number;
| /** @deprecated */
| readonly domLoading: number;
| /** @deprecated */
| readonly domainLookupEnd: number;
| /** @deprecated */
| readonly domainLookupStart: number;
| /** @deprecated */
| readonly fetchStart: number;
| /** @deprecated */
| readonly loadEventEnd: number;
| /** @deprecated */
| readonly loadEventStart: number;
| /** @deprecated */
| readonly navigationStart: number;
| /** @deprecated */
| readonly redirectEnd: number;
| /** @deprecated */
| readonly redirectStart: number;
| /** @deprecated */
| readonly requestStart: number;
| /** @deprecated */
| readonly responseEnd: number;
| /** @deprecated */
| readonly responseStart: number;
| /** @deprecated */
| readonly secureConnectionStart: number;
| /** @deprecated */
| readonly unloadEventEnd: number;
| /** @deprecated */
| readonly unloadEventStart: number;
| /** @deprecated */
| toJSON(): any;
| }
|
| /** @deprecated */
| declare var PerformanceTiming: {
| prototype: PerformanceTiming;
| new(): PerformanceTiming;
| };
|
| /** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
| interface PeriodicWave {
| }
|
| declare var PeriodicWave: {
| prototype: PeriodicWave;
| new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
| };
|
| interface PermissionStatusEventMap {
| "change": Event;
| }
|
| interface PermissionStatus extends EventTarget {
| readonly name: string;
| onchange: ((this: PermissionStatus, ev: Event) => any) | null;
| readonly state: PermissionState;
| addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var PermissionStatus: {
| prototype: PermissionStatus;
| new(): PermissionStatus;
| };
|
| interface Permissions {
| query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
| }
|
| declare var Permissions: {
| prototype: Permissions;
| new(): Permissions;
| };
|
| interface PictureInPictureEvent extends Event {
| readonly pictureInPictureWindow: PictureInPictureWindow;
| }
|
| declare var PictureInPictureEvent: {
| prototype: PictureInPictureEvent;
| new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
| };
|
| interface PictureInPictureWindowEventMap {
| "resize": Event;
| }
|
| interface PictureInPictureWindow extends EventTarget {
| readonly height: number;
| onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
| readonly width: number;
| addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var PictureInPictureWindow: {
| prototype: PictureInPictureWindow;
| new(): PictureInPictureWindow;
| };
|
| /**
| * Provides information about a browser plugin.
| * @deprecated
| */
| interface Plugin {
| /**
| * Returns the plugin's description.
| * @deprecated
| */
| readonly description: string;
| /**
| * Returns the plugin library's filename, if applicable on the current platform.
| * @deprecated
| */
| readonly filename: string;
| /**
| * Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
| * @deprecated
| */
| readonly length: number;
| /**
| * Returns the plugin's name.
| * @deprecated
| */
| readonly name: string;
| /**
| * Returns the specified MimeType object.
| * @deprecated
| */
| item(index: number): MimeType | null;
| /** @deprecated */
| namedItem(name: string): MimeType | null;
| [index: number]: MimeType;
| }
|
| /** @deprecated */
| declare var Plugin: {
| prototype: Plugin;
| new(): Plugin;
| };
|
| /**
| * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
| * @deprecated
| */
| interface PluginArray {
| /** @deprecated */
| readonly length: number;
| /** @deprecated */
| item(index: number): Plugin | null;
| /** @deprecated */
| namedItem(name: string): Plugin | null;
| /** @deprecated */
| refresh(): void;
| [index: number]: Plugin;
| }
|
| /** @deprecated */
| declare var PluginArray: {
| prototype: PluginArray;
| new(): PluginArray;
| };
|
| /** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
| interface PointerEvent extends MouseEvent {
| readonly height: number;
| readonly isPrimary: boolean;
| readonly pointerId: number;
| readonly pointerType: string;
| readonly pressure: number;
| readonly tangentialPressure: number;
| readonly tiltX: number;
| readonly tiltY: number;
| readonly twist: number;
| readonly width: number;
| /** Available only in secure contexts. */
| getCoalescedEvents(): PointerEvent[];
| getPredictedEvents(): PointerEvent[];
| }
|
| declare var PointerEvent: {
| prototype: PointerEvent;
| new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
| };
|
| /** PopStateEvent is an event handler for the popstate event on the window. */
| interface PopStateEvent extends Event {
| /** Returns a copy of the information that was provided to pushState() or replaceState(). */
| readonly state: any;
| }
|
| declare var PopStateEvent: {
| prototype: PopStateEvent;
| new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
| };
|
| /** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
| interface ProcessingInstruction extends CharacterData, LinkStyle {
| readonly ownerDocument: Document;
| readonly target: string;
| }
|
| declare var ProcessingInstruction: {
| prototype: ProcessingInstruction;
| new(): ProcessingInstruction;
| };
|
| /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
| interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
| readonly lengthComputable: boolean;
| readonly loaded: number;
| readonly target: T | null;
| readonly total: number;
| }
|
| declare var ProgressEvent: {
| prototype: ProgressEvent;
| new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
| };
|
| interface PromiseRejectionEvent extends Event {
| readonly promise: Promise<any>;
| readonly reason: any;
| }
|
| declare var PromiseRejectionEvent: {
| prototype: PromiseRejectionEvent;
| new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
| };
|
| /** Available only in secure contexts. */
| interface PublicKeyCredential extends Credential {
| readonly authenticatorAttachment: string | null;
| readonly rawId: ArrayBuffer;
| readonly response: AuthenticatorResponse;
| getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
| }
|
| declare var PublicKeyCredential: {
| prototype: PublicKeyCredential;
| new(): PublicKeyCredential;
| isConditionalMediationAvailable(): Promise<boolean>;
| isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
| };
|
| /**
| * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
| * Available only in secure contexts.
| */
| interface PushManager {
| getSubscription(): Promise<PushSubscription | null>;
| permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
| subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
| }
|
| declare var PushManager: {
| prototype: PushManager;
| new(): PushManager;
| readonly supportedContentEncodings: ReadonlyArray<string>;
| };
|
| /**
| * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
| * Available only in secure contexts.
| */
| interface PushSubscription {
| readonly endpoint: string;
| readonly expirationTime: EpochTimeStamp | null;
| readonly options: PushSubscriptionOptions;
| getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
| toJSON(): PushSubscriptionJSON;
| unsubscribe(): Promise<boolean>;
| }
|
| declare var PushSubscription: {
| prototype: PushSubscription;
| new(): PushSubscription;
| };
|
| /** Available only in secure contexts. */
| interface PushSubscriptionOptions {
| readonly applicationServerKey: ArrayBuffer | null;
| readonly userVisibleOnly: boolean;
| }
|
| declare var PushSubscriptionOptions: {
| prototype: PushSubscriptionOptions;
| new(): PushSubscriptionOptions;
| };
|
| interface RTCCertificate {
| readonly expires: EpochTimeStamp;
| getFingerprints(): RTCDtlsFingerprint[];
| }
|
| declare var RTCCertificate: {
| prototype: RTCCertificate;
| new(): RTCCertificate;
| };
|
| interface RTCDTMFSenderEventMap {
| "tonechange": RTCDTMFToneChangeEvent;
| }
|
| interface RTCDTMFSender extends EventTarget {
| readonly canInsertDTMF: boolean;
| ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
| readonly toneBuffer: string;
| insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
| addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCDTMFSender: {
| prototype: RTCDTMFSender;
| new(): RTCDTMFSender;
| };
|
| /** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
| interface RTCDTMFToneChangeEvent extends Event {
| readonly tone: string;
| }
|
| declare var RTCDTMFToneChangeEvent: {
| prototype: RTCDTMFToneChangeEvent;
| new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
| };
|
| interface RTCDataChannelEventMap {
| "bufferedamountlow": Event;
| "close": Event;
| "closing": Event;
| "error": Event;
| "message": MessageEvent;
| "open": Event;
| }
|
| interface RTCDataChannel extends EventTarget {
| binaryType: BinaryType;
| readonly bufferedAmount: number;
| bufferedAmountLowThreshold: number;
| readonly id: number | null;
| readonly label: string;
| readonly maxPacketLifeTime: number | null;
| readonly maxRetransmits: number | null;
| readonly negotiated: boolean;
| onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
| onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
| onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
| onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
| onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
| onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
| readonly ordered: boolean;
| readonly protocol: string;
| readonly readyState: RTCDataChannelState;
| close(): void;
| send(data: string): void;
| send(data: Blob): void;
| send(data: ArrayBuffer): void;
| send(data: ArrayBufferView): void;
| addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCDataChannel: {
| prototype: RTCDataChannel;
| new(): RTCDataChannel;
| };
|
| interface RTCDataChannelEvent extends Event {
| readonly channel: RTCDataChannel;
| }
|
| declare var RTCDataChannelEvent: {
| prototype: RTCDataChannelEvent;
| new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
| };
|
| interface RTCDtlsTransportEventMap {
| "error": Event;
| "statechange": Event;
| }
|
| interface RTCDtlsTransport extends EventTarget {
| readonly iceTransport: RTCIceTransport;
| onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
| onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
| readonly state: RTCDtlsTransportState;
| getRemoteCertificates(): ArrayBuffer[];
| addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCDtlsTransport: {
| prototype: RTCDtlsTransport;
| new(): RTCDtlsTransport;
| };
|
| interface RTCEncodedAudioFrame {
| data: ArrayBuffer;
| readonly timestamp: number;
| getMetadata(): RTCEncodedAudioFrameMetadata;
| }
|
| declare var RTCEncodedAudioFrame: {
| prototype: RTCEncodedAudioFrame;
| new(): RTCEncodedAudioFrame;
| };
|
| interface RTCEncodedVideoFrame {
| data: ArrayBuffer;
| readonly timestamp: number;
| readonly type: RTCEncodedVideoFrameType;
| getMetadata(): RTCEncodedVideoFrameMetadata;
| }
|
| declare var RTCEncodedVideoFrame: {
| prototype: RTCEncodedVideoFrame;
| new(): RTCEncodedVideoFrame;
| };
|
| interface RTCError extends DOMException {
| readonly errorDetail: RTCErrorDetailType;
| readonly receivedAlert: number | null;
| readonly sctpCauseCode: number | null;
| readonly sdpLineNumber: number | null;
| readonly sentAlert: number | null;
| }
|
| declare var RTCError: {
| prototype: RTCError;
| new(init: RTCErrorInit, message?: string): RTCError;
| };
|
| interface RTCErrorEvent extends Event {
| readonly error: RTCError;
| }
|
| declare var RTCErrorEvent: {
| prototype: RTCErrorEvent;
| new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
| };
|
| /** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
| interface RTCIceCandidate {
| readonly address: string | null;
| readonly candidate: string;
| readonly component: RTCIceComponent | null;
| readonly foundation: string | null;
| readonly port: number | null;
| readonly priority: number | null;
| readonly protocol: RTCIceProtocol | null;
| readonly relatedAddress: string | null;
| readonly relatedPort: number | null;
| readonly sdpMLineIndex: number | null;
| readonly sdpMid: string | null;
| readonly tcpType: RTCIceTcpCandidateType | null;
| readonly type: RTCIceCandidateType | null;
| readonly usernameFragment: string | null;
| toJSON(): RTCIceCandidateInit;
| }
|
| declare var RTCIceCandidate: {
| prototype: RTCIceCandidate;
| new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
| };
|
| interface RTCIceTransportEventMap {
| "gatheringstatechange": Event;
| "statechange": Event;
| }
|
| /** Provides access to information about the ICE transport layer over which the data is being sent and received. */
| interface RTCIceTransport extends EventTarget {
| readonly gatheringState: RTCIceGathererState;
| ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
| onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
| readonly state: RTCIceTransportState;
| addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCIceTransport: {
| prototype: RTCIceTransport;
| new(): RTCIceTransport;
| };
|
| interface RTCPeerConnectionEventMap {
| "connectionstatechange": Event;
| "datachannel": RTCDataChannelEvent;
| "icecandidate": RTCPeerConnectionIceEvent;
| "icecandidateerror": Event;
| "iceconnectionstatechange": Event;
| "icegatheringstatechange": Event;
| "negotiationneeded": Event;
| "signalingstatechange": Event;
| "track": RTCTrackEvent;
| }
|
| /** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
| interface RTCPeerConnection extends EventTarget {
| readonly canTrickleIceCandidates: boolean | null;
| readonly connectionState: RTCPeerConnectionState;
| readonly currentLocalDescription: RTCSessionDescription | null;
| readonly currentRemoteDescription: RTCSessionDescription | null;
| readonly iceConnectionState: RTCIceConnectionState;
| readonly iceGatheringState: RTCIceGatheringState;
| readonly localDescription: RTCSessionDescription | null;
| onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
| ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
| onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
| onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
| oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
| onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
| onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
| onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
| ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
| readonly pendingLocalDescription: RTCSessionDescription | null;
| readonly pendingRemoteDescription: RTCSessionDescription | null;
| readonly remoteDescription: RTCSessionDescription | null;
| readonly sctp: RTCSctpTransport | null;
| readonly signalingState: RTCSignalingState;
| addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
| /** @deprecated */
| addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
| addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
| addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
| close(): void;
| createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
| /** @deprecated */
| createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
| createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
| createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
| /** @deprecated */
| createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
| getConfiguration(): RTCConfiguration;
| getReceivers(): RTCRtpReceiver[];
| getSenders(): RTCRtpSender[];
| getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
| getTransceivers(): RTCRtpTransceiver[];
| removeTrack(sender: RTCRtpSender): void;
| restartIce(): void;
| setConfiguration(configuration?: RTCConfiguration): void;
| setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
| /** @deprecated */
| setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
| setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
| /** @deprecated */
| setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
| addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCPeerConnection: {
| prototype: RTCPeerConnection;
| new(configuration?: RTCConfiguration): RTCPeerConnection;
| generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
| };
|
| interface RTCPeerConnectionIceErrorEvent extends Event {
| readonly address: string | null;
| readonly errorCode: number;
| readonly errorText: string;
| readonly port: number | null;
| readonly url: string;
| }
|
| declare var RTCPeerConnectionIceErrorEvent: {
| prototype: RTCPeerConnectionIceErrorEvent;
| new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
| };
|
| /** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
| interface RTCPeerConnectionIceEvent extends Event {
| readonly candidate: RTCIceCandidate | null;
| }
|
| declare var RTCPeerConnectionIceEvent: {
| prototype: RTCPeerConnectionIceEvent;
| new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
| };
|
| /** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
| interface RTCRtpReceiver {
| readonly track: MediaStreamTrack;
| readonly transport: RTCDtlsTransport | null;
| getContributingSources(): RTCRtpContributingSource[];
| getParameters(): RTCRtpReceiveParameters;
| getStats(): Promise<RTCStatsReport>;
| getSynchronizationSources(): RTCRtpSynchronizationSource[];
| }
|
| declare var RTCRtpReceiver: {
| prototype: RTCRtpReceiver;
| new(): RTCRtpReceiver;
| getCapabilities(kind: string): RTCRtpCapabilities | null;
| };
|
| /** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
| interface RTCRtpSender {
| readonly dtmf: RTCDTMFSender | null;
| readonly track: MediaStreamTrack | null;
| readonly transport: RTCDtlsTransport | null;
| getParameters(): RTCRtpSendParameters;
| getStats(): Promise<RTCStatsReport>;
| replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
| setParameters(parameters: RTCRtpSendParameters): Promise<void>;
| setStreams(...streams: MediaStream[]): void;
| }
|
| declare var RTCRtpSender: {
| prototype: RTCRtpSender;
| new(): RTCRtpSender;
| getCapabilities(kind: string): RTCRtpCapabilities | null;
| };
|
| interface RTCRtpTransceiver {
| readonly currentDirection: RTCRtpTransceiverDirection | null;
| direction: RTCRtpTransceiverDirection;
| readonly mid: string | null;
| readonly receiver: RTCRtpReceiver;
| readonly sender: RTCRtpSender;
| setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
| stop(): void;
| }
|
| declare var RTCRtpTransceiver: {
| prototype: RTCRtpTransceiver;
| new(): RTCRtpTransceiver;
| };
|
| interface RTCSctpTransportEventMap {
| "statechange": Event;
| }
|
| interface RTCSctpTransport extends EventTarget {
| readonly maxChannels: number | null;
| readonly maxMessageSize: number;
| onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
| readonly state: RTCSctpTransportState;
| readonly transport: RTCDtlsTransport;
| addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RTCSctpTransport: {
| prototype: RTCSctpTransport;
| new(): RTCSctpTransport;
| };
|
| /** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
| interface RTCSessionDescription {
| readonly sdp: string;
| readonly type: RTCSdpType;
| toJSON(): any;
| }
|
| declare var RTCSessionDescription: {
| prototype: RTCSessionDescription;
| new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
| };
|
| interface RTCStatsReport {
| forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
| }
|
| declare var RTCStatsReport: {
| prototype: RTCStatsReport;
| new(): RTCStatsReport;
| };
|
| interface RTCTrackEvent extends Event {
| readonly receiver: RTCRtpReceiver;
| readonly streams: ReadonlyArray<MediaStream>;
| readonly track: MediaStreamTrack;
| readonly transceiver: RTCRtpTransceiver;
| }
|
| declare var RTCTrackEvent: {
| prototype: RTCTrackEvent;
| new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
| };
|
| interface RadioNodeList extends NodeList {
| value: string;
| }
|
| declare var RadioNodeList: {
| prototype: RadioNodeList;
| new(): RadioNodeList;
| };
|
| /** A fragment of a document that can contain nodes and parts of text nodes. */
| interface Range extends AbstractRange {
| /** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
| readonly commonAncestorContainer: Node;
| cloneContents(): DocumentFragment;
| cloneRange(): Range;
| collapse(toStart?: boolean): void;
| compareBoundaryPoints(how: number, sourceRange: Range): number;
| /** Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */
| comparePoint(node: Node, offset: number): number;
| createContextualFragment(fragment: string): DocumentFragment;
| deleteContents(): void;
| detach(): void;
| extractContents(): DocumentFragment;
| getBoundingClientRect(): DOMRect;
| getClientRects(): DOMRectList;
| insertNode(node: Node): void;
| /** Returns whether range intersects node. */
| intersectsNode(node: Node): boolean;
| isPointInRange(node: Node, offset: number): boolean;
| selectNode(node: Node): void;
| selectNodeContents(node: Node): void;
| setEnd(node: Node, offset: number): void;
| setEndAfter(node: Node): void;
| setEndBefore(node: Node): void;
| setStart(node: Node, offset: number): void;
| setStartAfter(node: Node): void;
| setStartBefore(node: Node): void;
| surroundContents(newParent: Node): void;
| toString(): string;
| readonly START_TO_START: 0;
| readonly START_TO_END: 1;
| readonly END_TO_END: 2;
| readonly END_TO_START: 3;
| }
|
| declare var Range: {
| prototype: Range;
| new(): Range;
| readonly START_TO_START: 0;
| readonly START_TO_END: 1;
| readonly END_TO_END: 2;
| readonly END_TO_START: 3;
| toString(): string;
| };
|
| interface ReadableByteStreamController {
| readonly byobRequest: ReadableStreamBYOBRequest | null;
| readonly desiredSize: number | null;
| close(): void;
| enqueue(chunk: ArrayBufferView): void;
| error(e?: any): void;
| }
|
| declare var ReadableByteStreamController: {
| prototype: ReadableByteStreamController;
| new(): ReadableByteStreamController;
| };
|
| /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
| interface ReadableStream<R = any> {
| readonly locked: boolean;
| cancel(reason?: any): Promise<void>;
| getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
| getReader(): ReadableStreamDefaultReader<R>;
| getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
| pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
| pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
| tee(): [ReadableStream<R>, ReadableStream<R>];
| }
|
| declare var ReadableStream: {
| prototype: ReadableStream;
| new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
| new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
| new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
| };
|
| interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
| read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
| releaseLock(): void;
| }
|
| declare var ReadableStreamBYOBReader: {
| prototype: ReadableStreamBYOBReader;
| new(stream: ReadableStream): ReadableStreamBYOBReader;
| };
|
| interface ReadableStreamBYOBRequest {
| readonly view: ArrayBufferView | null;
| respond(bytesWritten: number): void;
| respondWithNewView(view: ArrayBufferView): void;
| }
|
| declare var ReadableStreamBYOBRequest: {
| prototype: ReadableStreamBYOBRequest;
| new(): ReadableStreamBYOBRequest;
| };
|
| interface ReadableStreamDefaultController<R = any> {
| readonly desiredSize: number | null;
| close(): void;
| enqueue(chunk?: R): void;
| error(e?: any): void;
| }
|
| declare var ReadableStreamDefaultController: {
| prototype: ReadableStreamDefaultController;
| new(): ReadableStreamDefaultController;
| };
|
| interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
| read(): Promise<ReadableStreamReadResult<R>>;
| releaseLock(): void;
| }
|
| declare var ReadableStreamDefaultReader: {
| prototype: ReadableStreamDefaultReader;
| new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
| };
|
| interface ReadableStreamGenericReader {
| readonly closed: Promise<undefined>;
| cancel(reason?: any): Promise<void>;
| }
|
| interface RemotePlaybackEventMap {
| "connect": Event;
| "connecting": Event;
| "disconnect": Event;
| }
|
| interface RemotePlayback extends EventTarget {
| onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
| onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
| ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
| readonly state: RemotePlaybackState;
| cancelWatchAvailability(id?: number): Promise<void>;
| prompt(): Promise<void>;
| watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
| addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var RemotePlayback: {
| prototype: RemotePlayback;
| new(): RemotePlayback;
| };
|
| /** This Fetch API interface represents a resource request. */
| interface Request extends Body {
| /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
| readonly cache: RequestCache;
| /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
| readonly credentials: RequestCredentials;
| /** Returns the kind of resource requested by request, e.g., "document" or "script". */
| readonly destination: RequestDestination;
| /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
| readonly headers: Headers;
| /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
| readonly integrity: string;
| /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
| readonly keepalive: boolean;
| /** Returns request's HTTP method, which is "GET" by default. */
| readonly method: string;
| /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
| readonly mode: RequestMode;
| /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
| readonly redirect: RequestRedirect;
| /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
| readonly referrer: string;
| /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
| readonly referrerPolicy: ReferrerPolicy;
| /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
| readonly signal: AbortSignal;
| /** Returns the URL of request as a string. */
| readonly url: string;
| clone(): Request;
| }
|
| declare var Request: {
| prototype: Request;
| new(input: RequestInfo | URL, init?: RequestInit): Request;
| };
|
| interface ResizeObserver {
| disconnect(): void;
| observe(target: Element, options?: ResizeObserverOptions): void;
| unobserve(target: Element): void;
| }
|
| declare var ResizeObserver: {
| prototype: ResizeObserver;
| new(callback: ResizeObserverCallback): ResizeObserver;
| };
|
| interface ResizeObserverEntry {
| readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
| readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
| readonly contentRect: DOMRectReadOnly;
| readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
| readonly target: Element;
| }
|
| declare var ResizeObserverEntry: {
| prototype: ResizeObserverEntry;
| new(): ResizeObserverEntry;
| };
|
| interface ResizeObserverSize {
| readonly blockSize: number;
| readonly inlineSize: number;
| }
|
| declare var ResizeObserverSize: {
| prototype: ResizeObserverSize;
| new(): ResizeObserverSize;
| };
|
| /** This Fetch API interface represents the response to a request. */
| interface Response extends Body {
| readonly headers: Headers;
| readonly ok: boolean;
| readonly redirected: boolean;
| readonly status: number;
| readonly statusText: string;
| readonly type: ResponseType;
| readonly url: string;
| clone(): Response;
| }
|
| declare var Response: {
| prototype: Response;
| new(body?: BodyInit | null, init?: ResponseInit): Response;
| error(): Response;
| redirect(url: string | URL, status?: number): Response;
| };
|
| /** Provides access to the properties of <a> element, as well as methods to manipulate them. */
| interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
| rel: string;
| readonly relList: DOMTokenList;
| readonly target: SVGAnimatedString;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGAElement: {
| prototype: SVGAElement;
| new(): SVGAElement;
| };
|
| /** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
| interface SVGAngle {
| readonly unitType: number;
| value: number;
| valueAsString: string;
| valueInSpecifiedUnits: number;
| convertToSpecifiedUnits(unitType: number): void;
| newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
| readonly SVG_ANGLETYPE_UNKNOWN: 0;
| readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
| readonly SVG_ANGLETYPE_DEG: 2;
| readonly SVG_ANGLETYPE_RAD: 3;
| readonly SVG_ANGLETYPE_GRAD: 4;
| }
|
| declare var SVGAngle: {
| prototype: SVGAngle;
| new(): SVGAngle;
| readonly SVG_ANGLETYPE_UNKNOWN: 0;
| readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
| readonly SVG_ANGLETYPE_DEG: 2;
| readonly SVG_ANGLETYPE_RAD: 3;
| readonly SVG_ANGLETYPE_GRAD: 4;
| };
|
| interface SVGAnimateElement extends SVGAnimationElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGAnimateElement: {
| prototype: SVGAnimateElement;
| new(): SVGAnimateElement;
| };
|
| interface SVGAnimateMotionElement extends SVGAnimationElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGAnimateMotionElement: {
| prototype: SVGAnimateMotionElement;
| new(): SVGAnimateMotionElement;
| };
|
| interface SVGAnimateTransformElement extends SVGAnimationElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGAnimateTransformElement: {
| prototype: SVGAnimateTransformElement;
| new(): SVGAnimateTransformElement;
| };
|
| /** Used for attributes of basic type <angle> which can be animated. */
| interface SVGAnimatedAngle {
| readonly animVal: SVGAngle;
| readonly baseVal: SVGAngle;
| }
|
| declare var SVGAnimatedAngle: {
| prototype: SVGAnimatedAngle;
| new(): SVGAnimatedAngle;
| };
|
| /** Used for attributes of type boolean which can be animated. */
| interface SVGAnimatedBoolean {
| readonly animVal: boolean;
| baseVal: boolean;
| }
|
| declare var SVGAnimatedBoolean: {
| prototype: SVGAnimatedBoolean;
| new(): SVGAnimatedBoolean;
| };
|
| /** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
| interface SVGAnimatedEnumeration {
| readonly animVal: number;
| baseVal: number;
| }
|
| declare var SVGAnimatedEnumeration: {
| prototype: SVGAnimatedEnumeration;
| new(): SVGAnimatedEnumeration;
| };
|
| /** Used for attributes of basic type <integer> which can be animated. */
| interface SVGAnimatedInteger {
| readonly animVal: number;
| baseVal: number;
| }
|
| declare var SVGAnimatedInteger: {
| prototype: SVGAnimatedInteger;
| new(): SVGAnimatedInteger;
| };
|
| /** Used for attributes of basic type <length> which can be animated. */
| interface SVGAnimatedLength {
| readonly animVal: SVGLength;
| readonly baseVal: SVGLength;
| }
|
| declare var SVGAnimatedLength: {
| prototype: SVGAnimatedLength;
| new(): SVGAnimatedLength;
| };
|
| /** Used for attributes of type SVGLengthList which can be animated. */
| interface SVGAnimatedLengthList {
| readonly animVal: SVGLengthList;
| readonly baseVal: SVGLengthList;
| }
|
| declare var SVGAnimatedLengthList: {
| prototype: SVGAnimatedLengthList;
| new(): SVGAnimatedLengthList;
| };
|
| /** Used for attributes of basic type <Number> which can be animated. */
| interface SVGAnimatedNumber {
| readonly animVal: number;
| baseVal: number;
| }
|
| declare var SVGAnimatedNumber: {
| prototype: SVGAnimatedNumber;
| new(): SVGAnimatedNumber;
| };
|
| /** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
| interface SVGAnimatedNumberList {
| readonly animVal: SVGNumberList;
| readonly baseVal: SVGNumberList;
| }
|
| declare var SVGAnimatedNumberList: {
| prototype: SVGAnimatedNumberList;
| new(): SVGAnimatedNumberList;
| };
|
| interface SVGAnimatedPoints {
| readonly animatedPoints: SVGPointList;
| readonly points: SVGPointList;
| }
|
| /** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
| interface SVGAnimatedPreserveAspectRatio {
| readonly animVal: SVGPreserveAspectRatio;
| readonly baseVal: SVGPreserveAspectRatio;
| }
|
| declare var SVGAnimatedPreserveAspectRatio: {
| prototype: SVGAnimatedPreserveAspectRatio;
| new(): SVGAnimatedPreserveAspectRatio;
| };
|
| /** Used for attributes of basic SVGRect which can be animated. */
| interface SVGAnimatedRect {
| readonly animVal: DOMRectReadOnly;
| readonly baseVal: DOMRect;
| }
|
| declare var SVGAnimatedRect: {
| prototype: SVGAnimatedRect;
| new(): SVGAnimatedRect;
| };
|
| /** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
| interface SVGAnimatedString {
| readonly animVal: string;
| baseVal: string;
| }
|
| declare var SVGAnimatedString: {
| prototype: SVGAnimatedString;
| new(): SVGAnimatedString;
| };
|
| /** Used for attributes which take a list of numbers and which can be animated. */
| interface SVGAnimatedTransformList {
| readonly animVal: SVGTransformList;
| readonly baseVal: SVGTransformList;
| }
|
| declare var SVGAnimatedTransformList: {
| prototype: SVGAnimatedTransformList;
| new(): SVGAnimatedTransformList;
| };
|
| interface SVGAnimationElement extends SVGElement, SVGTests {
| readonly targetElement: SVGElement | null;
| beginElement(): void;
| beginElementAt(offset: number): void;
| endElement(): void;
| endElementAt(offset: number): void;
| getCurrentTime(): number;
| getSimpleDuration(): number;
| getStartTime(): number;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGAnimationElement: {
| prototype: SVGAnimationElement;
| new(): SVGAnimationElement;
| };
|
| /** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
| interface SVGCircleElement extends SVGGeometryElement {
| readonly cx: SVGAnimatedLength;
| readonly cy: SVGAnimatedLength;
| readonly r: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGCircleElement: {
| prototype: SVGCircleElement;
| new(): SVGCircleElement;
| };
|
| /** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
| interface SVGClipPathElement extends SVGElement {
| readonly clipPathUnits: SVGAnimatedEnumeration;
| readonly transform: SVGAnimatedTransformList;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGClipPathElement: {
| prototype: SVGClipPathElement;
| new(): SVGClipPathElement;
| };
|
| /** A base interface used by the component transfer function interfaces. */
| interface SVGComponentTransferFunctionElement extends SVGElement {
| readonly amplitude: SVGAnimatedNumber;
| readonly exponent: SVGAnimatedNumber;
| readonly intercept: SVGAnimatedNumber;
| readonly offset: SVGAnimatedNumber;
| readonly slope: SVGAnimatedNumber;
| readonly tableValues: SVGAnimatedNumberList;
| readonly type: SVGAnimatedEnumeration;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGComponentTransferFunctionElement: {
| prototype: SVGComponentTransferFunctionElement;
| new(): SVGComponentTransferFunctionElement;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
| readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
| };
|
| /** Corresponds to the <defs> element. */
| interface SVGDefsElement extends SVGGraphicsElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGDefsElement: {
| prototype: SVGDefsElement;
| new(): SVGDefsElement;
| };
|
| /** Corresponds to the <desc> element. */
| interface SVGDescElement extends SVGElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGDescElement: {
| prototype: SVGDescElement;
| new(): SVGDescElement;
| };
|
| interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
| }
|
| /** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
| interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
| /** @deprecated */
| readonly className: any;
| readonly ownerSVGElement: SVGSVGElement | null;
| readonly viewportElement: SVGElement | null;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGElement: {
| prototype: SVGElement;
| new(): SVGElement;
| };
|
| /** Provides access to the properties of <ellipse> elements. */
| interface SVGEllipseElement extends SVGGeometryElement {
| readonly cx: SVGAnimatedLength;
| readonly cy: SVGAnimatedLength;
| readonly rx: SVGAnimatedLength;
| readonly ry: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGEllipseElement: {
| prototype: SVGEllipseElement;
| new(): SVGEllipseElement;
| };
|
| /** Corresponds to the <feBlend> element. */
| interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly in2: SVGAnimatedString;
| readonly mode: SVGAnimatedEnumeration;
| readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
| readonly SVG_FEBLEND_MODE_NORMAL: 1;
| readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
| readonly SVG_FEBLEND_MODE_SCREEN: 3;
| readonly SVG_FEBLEND_MODE_DARKEN: 4;
| readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
| readonly SVG_FEBLEND_MODE_OVERLAY: 6;
| readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
| readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
| readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
| readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
| readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
| readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
| readonly SVG_FEBLEND_MODE_HUE: 13;
| readonly SVG_FEBLEND_MODE_SATURATION: 14;
| readonly SVG_FEBLEND_MODE_COLOR: 15;
| readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEBlendElement: {
| prototype: SVGFEBlendElement;
| new(): SVGFEBlendElement;
| readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
| readonly SVG_FEBLEND_MODE_NORMAL: 1;
| readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
| readonly SVG_FEBLEND_MODE_SCREEN: 3;
| readonly SVG_FEBLEND_MODE_DARKEN: 4;
| readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
| readonly SVG_FEBLEND_MODE_OVERLAY: 6;
| readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
| readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
| readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
| readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
| readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
| readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
| readonly SVG_FEBLEND_MODE_HUE: 13;
| readonly SVG_FEBLEND_MODE_SATURATION: 14;
| readonly SVG_FEBLEND_MODE_COLOR: 15;
| readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
| };
|
| /** Corresponds to the <feColorMatrix> element. */
| interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly type: SVGAnimatedEnumeration;
| readonly values: SVGAnimatedNumberList;
| readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
| readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
| readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
| readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
| readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEColorMatrixElement: {
| prototype: SVGFEColorMatrixElement;
| new(): SVGFEColorMatrixElement;
| readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
| readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
| readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
| readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
| readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
| };
|
| /** Corresponds to the <feComponentTransfer> element. */
| interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEComponentTransferElement: {
| prototype: SVGFEComponentTransferElement;
| new(): SVGFEComponentTransferElement;
| };
|
| /** Corresponds to the <feComposite> element. */
| interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly in2: SVGAnimatedString;
| readonly k1: SVGAnimatedNumber;
| readonly k2: SVGAnimatedNumber;
| readonly k3: SVGAnimatedNumber;
| readonly k4: SVGAnimatedNumber;
| readonly operator: SVGAnimatedEnumeration;
| readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
| readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
| readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
| readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
| readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
| readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
| readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFECompositeElement: {
| prototype: SVGFECompositeElement;
| new(): SVGFECompositeElement;
| readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
| readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
| readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
| readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
| readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
| readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
| readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
| };
|
| /** Corresponds to the <feConvolveMatrix> element. */
| interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly bias: SVGAnimatedNumber;
| readonly divisor: SVGAnimatedNumber;
| readonly edgeMode: SVGAnimatedEnumeration;
| readonly in1: SVGAnimatedString;
| readonly kernelMatrix: SVGAnimatedNumberList;
| readonly kernelUnitLengthX: SVGAnimatedNumber;
| readonly kernelUnitLengthY: SVGAnimatedNumber;
| readonly orderX: SVGAnimatedInteger;
| readonly orderY: SVGAnimatedInteger;
| readonly preserveAlpha: SVGAnimatedBoolean;
| readonly targetX: SVGAnimatedInteger;
| readonly targetY: SVGAnimatedInteger;
| readonly SVG_EDGEMODE_UNKNOWN: 0;
| readonly SVG_EDGEMODE_DUPLICATE: 1;
| readonly SVG_EDGEMODE_WRAP: 2;
| readonly SVG_EDGEMODE_NONE: 3;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEConvolveMatrixElement: {
| prototype: SVGFEConvolveMatrixElement;
| new(): SVGFEConvolveMatrixElement;
| readonly SVG_EDGEMODE_UNKNOWN: 0;
| readonly SVG_EDGEMODE_DUPLICATE: 1;
| readonly SVG_EDGEMODE_WRAP: 2;
| readonly SVG_EDGEMODE_NONE: 3;
| };
|
| /** Corresponds to the <feDiffuseLighting> element. */
| interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly diffuseConstant: SVGAnimatedNumber;
| readonly in1: SVGAnimatedString;
| readonly kernelUnitLengthX: SVGAnimatedNumber;
| readonly kernelUnitLengthY: SVGAnimatedNumber;
| readonly surfaceScale: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEDiffuseLightingElement: {
| prototype: SVGFEDiffuseLightingElement;
| new(): SVGFEDiffuseLightingElement;
| };
|
| /** Corresponds to the <feDisplacementMap> element. */
| interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly in2: SVGAnimatedString;
| readonly scale: SVGAnimatedNumber;
| readonly xChannelSelector: SVGAnimatedEnumeration;
| readonly yChannelSelector: SVGAnimatedEnumeration;
| readonly SVG_CHANNEL_UNKNOWN: 0;
| readonly SVG_CHANNEL_R: 1;
| readonly SVG_CHANNEL_G: 2;
| readonly SVG_CHANNEL_B: 3;
| readonly SVG_CHANNEL_A: 4;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEDisplacementMapElement: {
| prototype: SVGFEDisplacementMapElement;
| new(): SVGFEDisplacementMapElement;
| readonly SVG_CHANNEL_UNKNOWN: 0;
| readonly SVG_CHANNEL_R: 1;
| readonly SVG_CHANNEL_G: 2;
| readonly SVG_CHANNEL_B: 3;
| readonly SVG_CHANNEL_A: 4;
| };
|
| /** Corresponds to the <feDistantLight> element. */
| interface SVGFEDistantLightElement extends SVGElement {
| readonly azimuth: SVGAnimatedNumber;
| readonly elevation: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEDistantLightElement: {
| prototype: SVGFEDistantLightElement;
| new(): SVGFEDistantLightElement;
| };
|
| interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly dx: SVGAnimatedNumber;
| readonly dy: SVGAnimatedNumber;
| readonly in1: SVGAnimatedString;
| readonly stdDeviationX: SVGAnimatedNumber;
| readonly stdDeviationY: SVGAnimatedNumber;
| setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEDropShadowElement: {
| prototype: SVGFEDropShadowElement;
| new(): SVGFEDropShadowElement;
| };
|
| /** Corresponds to the <feFlood> element. */
| interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEFloodElement: {
| prototype: SVGFEFloodElement;
| new(): SVGFEFloodElement;
| };
|
| /** Corresponds to the <feFuncA> element. */
| interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEFuncAElement: {
| prototype: SVGFEFuncAElement;
| new(): SVGFEFuncAElement;
| };
|
| /** Corresponds to the <feFuncB> element. */
| interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEFuncBElement: {
| prototype: SVGFEFuncBElement;
| new(): SVGFEFuncBElement;
| };
|
| /** Corresponds to the <feFuncG> element. */
| interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEFuncGElement: {
| prototype: SVGFEFuncGElement;
| new(): SVGFEFuncGElement;
| };
|
| /** Corresponds to the <feFuncR> element. */
| interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEFuncRElement: {
| prototype: SVGFEFuncRElement;
| new(): SVGFEFuncRElement;
| };
|
| /** Corresponds to the <feGaussianBlur> element. */
| interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly stdDeviationX: SVGAnimatedNumber;
| readonly stdDeviationY: SVGAnimatedNumber;
| setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEGaussianBlurElement: {
| prototype: SVGFEGaussianBlurElement;
| new(): SVGFEGaussianBlurElement;
| };
|
| /** Corresponds to the <feImage> element. */
| interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
| readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEImageElement: {
| prototype: SVGFEImageElement;
| new(): SVGFEImageElement;
| };
|
| /** Corresponds to the <feMerge> element. */
| interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEMergeElement: {
| prototype: SVGFEMergeElement;
| new(): SVGFEMergeElement;
| };
|
| /** Corresponds to the <feMergeNode> element. */
| interface SVGFEMergeNodeElement extends SVGElement {
| readonly in1: SVGAnimatedString;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEMergeNodeElement: {
| prototype: SVGFEMergeNodeElement;
| new(): SVGFEMergeNodeElement;
| };
|
| /** Corresponds to the <feMorphology> element. */
| interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly operator: SVGAnimatedEnumeration;
| readonly radiusX: SVGAnimatedNumber;
| readonly radiusY: SVGAnimatedNumber;
| readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
| readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
| readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEMorphologyElement: {
| prototype: SVGFEMorphologyElement;
| new(): SVGFEMorphologyElement;
| readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
| readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
| readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
| };
|
| /** Corresponds to the <feOffset> element. */
| interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly dx: SVGAnimatedNumber;
| readonly dy: SVGAnimatedNumber;
| readonly in1: SVGAnimatedString;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEOffsetElement: {
| prototype: SVGFEOffsetElement;
| new(): SVGFEOffsetElement;
| };
|
| /** Corresponds to the <fePointLight> element. */
| interface SVGFEPointLightElement extends SVGElement {
| readonly x: SVGAnimatedNumber;
| readonly y: SVGAnimatedNumber;
| readonly z: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFEPointLightElement: {
| prototype: SVGFEPointLightElement;
| new(): SVGFEPointLightElement;
| };
|
| /** Corresponds to the <feSpecularLighting> element. */
| interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| readonly kernelUnitLengthX: SVGAnimatedNumber;
| readonly kernelUnitLengthY: SVGAnimatedNumber;
| readonly specularConstant: SVGAnimatedNumber;
| readonly specularExponent: SVGAnimatedNumber;
| readonly surfaceScale: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFESpecularLightingElement: {
| prototype: SVGFESpecularLightingElement;
| new(): SVGFESpecularLightingElement;
| };
|
| /** Corresponds to the <feSpotLight> element. */
| interface SVGFESpotLightElement extends SVGElement {
| readonly limitingConeAngle: SVGAnimatedNumber;
| readonly pointsAtX: SVGAnimatedNumber;
| readonly pointsAtY: SVGAnimatedNumber;
| readonly pointsAtZ: SVGAnimatedNumber;
| readonly specularExponent: SVGAnimatedNumber;
| readonly x: SVGAnimatedNumber;
| readonly y: SVGAnimatedNumber;
| readonly z: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFESpotLightElement: {
| prototype: SVGFESpotLightElement;
| new(): SVGFESpotLightElement;
| };
|
| /** Corresponds to the <feTile> element. */
| interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly in1: SVGAnimatedString;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFETileElement: {
| prototype: SVGFETileElement;
| new(): SVGFETileElement;
| };
|
| /** Corresponds to the <feTurbulence> element. */
| interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
| readonly baseFrequencyX: SVGAnimatedNumber;
| readonly baseFrequencyY: SVGAnimatedNumber;
| readonly numOctaves: SVGAnimatedInteger;
| readonly seed: SVGAnimatedNumber;
| readonly stitchTiles: SVGAnimatedEnumeration;
| readonly type: SVGAnimatedEnumeration;
| readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
| readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
| readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
| readonly SVG_STITCHTYPE_UNKNOWN: 0;
| readonly SVG_STITCHTYPE_STITCH: 1;
| readonly SVG_STITCHTYPE_NOSTITCH: 2;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFETurbulenceElement: {
| prototype: SVGFETurbulenceElement;
| new(): SVGFETurbulenceElement;
| readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
| readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
| readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
| readonly SVG_STITCHTYPE_UNKNOWN: 0;
| readonly SVG_STITCHTYPE_STITCH: 1;
| readonly SVG_STITCHTYPE_NOSTITCH: 2;
| };
|
| /** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
| interface SVGFilterElement extends SVGElement, SVGURIReference {
| readonly filterUnits: SVGAnimatedEnumeration;
| readonly height: SVGAnimatedLength;
| readonly primitiveUnits: SVGAnimatedEnumeration;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGFilterElement: {
| prototype: SVGFilterElement;
| new(): SVGFilterElement;
| };
|
| interface SVGFilterPrimitiveStandardAttributes {
| readonly height: SVGAnimatedLength;
| readonly result: SVGAnimatedString;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| }
|
| interface SVGFitToViewBox {
| readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
| readonly viewBox: SVGAnimatedRect;
| }
|
| /** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
| interface SVGForeignObjectElement extends SVGGraphicsElement {
| readonly height: SVGAnimatedLength;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGForeignObjectElement: {
| prototype: SVGForeignObjectElement;
| new(): SVGForeignObjectElement;
| };
|
| /** Corresponds to the <g> element. */
| interface SVGGElement extends SVGGraphicsElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGGElement: {
| prototype: SVGGElement;
| new(): SVGGElement;
| };
|
| interface SVGGeometryElement extends SVGGraphicsElement {
| readonly pathLength: SVGAnimatedNumber;
| getPointAtLength(distance: number): DOMPoint;
| getTotalLength(): number;
| isPointInFill(point?: DOMPointInit): boolean;
| isPointInStroke(point?: DOMPointInit): boolean;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGGeometryElement: {
| prototype: SVGGeometryElement;
| new(): SVGGeometryElement;
| };
|
| /** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
| interface SVGGradientElement extends SVGElement, SVGURIReference {
| readonly gradientTransform: SVGAnimatedTransformList;
| readonly gradientUnits: SVGAnimatedEnumeration;
| readonly spreadMethod: SVGAnimatedEnumeration;
| readonly SVG_SPREADMETHOD_UNKNOWN: 0;
| readonly SVG_SPREADMETHOD_PAD: 1;
| readonly SVG_SPREADMETHOD_REFLECT: 2;
| readonly SVG_SPREADMETHOD_REPEAT: 3;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGGradientElement: {
| prototype: SVGGradientElement;
| new(): SVGGradientElement;
| readonly SVG_SPREADMETHOD_UNKNOWN: 0;
| readonly SVG_SPREADMETHOD_PAD: 1;
| readonly SVG_SPREADMETHOD_REFLECT: 2;
| readonly SVG_SPREADMETHOD_REPEAT: 3;
| };
|
| /** SVG elements whose primary purpose is to directly render graphics into a group. */
| interface SVGGraphicsElement extends SVGElement, SVGTests {
| readonly transform: SVGAnimatedTransformList;
| getBBox(options?: SVGBoundingBoxOptions): DOMRect;
| getCTM(): DOMMatrix | null;
| getScreenCTM(): DOMMatrix | null;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGGraphicsElement: {
| prototype: SVGGraphicsElement;
| new(): SVGGraphicsElement;
| };
|
| /** Corresponds to the <image> element. */
| interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
| readonly height: SVGAnimatedLength;
| readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGImageElement: {
| prototype: SVGImageElement;
| new(): SVGImageElement;
| };
|
| /** Correspond to the <length> basic data type. */
| interface SVGLength {
| readonly unitType: number;
| value: number;
| valueAsString: string;
| valueInSpecifiedUnits: number;
| convertToSpecifiedUnits(unitType: number): void;
| newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
| readonly SVG_LENGTHTYPE_UNKNOWN: 0;
| readonly SVG_LENGTHTYPE_NUMBER: 1;
| readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
| readonly SVG_LENGTHTYPE_EMS: 3;
| readonly SVG_LENGTHTYPE_EXS: 4;
| readonly SVG_LENGTHTYPE_PX: 5;
| readonly SVG_LENGTHTYPE_CM: 6;
| readonly SVG_LENGTHTYPE_MM: 7;
| readonly SVG_LENGTHTYPE_IN: 8;
| readonly SVG_LENGTHTYPE_PT: 9;
| readonly SVG_LENGTHTYPE_PC: 10;
| }
|
| declare var SVGLength: {
| prototype: SVGLength;
| new(): SVGLength;
| readonly SVG_LENGTHTYPE_UNKNOWN: 0;
| readonly SVG_LENGTHTYPE_NUMBER: 1;
| readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
| readonly SVG_LENGTHTYPE_EMS: 3;
| readonly SVG_LENGTHTYPE_EXS: 4;
| readonly SVG_LENGTHTYPE_PX: 5;
| readonly SVG_LENGTHTYPE_CM: 6;
| readonly SVG_LENGTHTYPE_MM: 7;
| readonly SVG_LENGTHTYPE_IN: 8;
| readonly SVG_LENGTHTYPE_PT: 9;
| readonly SVG_LENGTHTYPE_PC: 10;
| };
|
| /** The SVGLengthList defines a list of SVGLength objects. */
| interface SVGLengthList {
| readonly length: number;
| readonly numberOfItems: number;
| appendItem(newItem: SVGLength): SVGLength;
| clear(): void;
| getItem(index: number): SVGLength;
| initialize(newItem: SVGLength): SVGLength;
| insertItemBefore(newItem: SVGLength, index: number): SVGLength;
| removeItem(index: number): SVGLength;
| replaceItem(newItem: SVGLength, index: number): SVGLength;
| [index: number]: SVGLength;
| }
|
| declare var SVGLengthList: {
| prototype: SVGLengthList;
| new(): SVGLengthList;
| };
|
| /** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
| interface SVGLineElement extends SVGGeometryElement {
| readonly x1: SVGAnimatedLength;
| readonly x2: SVGAnimatedLength;
| readonly y1: SVGAnimatedLength;
| readonly y2: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGLineElement: {
| prototype: SVGLineElement;
| new(): SVGLineElement;
| };
|
| /** Corresponds to the <linearGradient> element. */
| interface SVGLinearGradientElement extends SVGGradientElement {
| readonly x1: SVGAnimatedLength;
| readonly x2: SVGAnimatedLength;
| readonly y1: SVGAnimatedLength;
| readonly y2: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGLinearGradientElement: {
| prototype: SVGLinearGradientElement;
| new(): SVGLinearGradientElement;
| };
|
| interface SVGMPathElement extends SVGElement, SVGURIReference {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGMPathElement: {
| prototype: SVGMPathElement;
| new(): SVGMPathElement;
| };
|
| interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
| readonly markerHeight: SVGAnimatedLength;
| readonly markerUnits: SVGAnimatedEnumeration;
| readonly markerWidth: SVGAnimatedLength;
| readonly orientAngle: SVGAnimatedAngle;
| readonly orientType: SVGAnimatedEnumeration;
| readonly refX: SVGAnimatedLength;
| readonly refY: SVGAnimatedLength;
| setOrientToAngle(angle: SVGAngle): void;
| setOrientToAuto(): void;
| readonly SVG_MARKERUNITS_UNKNOWN: 0;
| readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
| readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
| readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
| readonly SVG_MARKER_ORIENT_AUTO: 1;
| readonly SVG_MARKER_ORIENT_ANGLE: 2;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGMarkerElement: {
| prototype: SVGMarkerElement;
| new(): SVGMarkerElement;
| readonly SVG_MARKERUNITS_UNKNOWN: 0;
| readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
| readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
| readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
| readonly SVG_MARKER_ORIENT_AUTO: 1;
| readonly SVG_MARKER_ORIENT_ANGLE: 2;
| };
|
| /** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
| interface SVGMaskElement extends SVGElement {
| readonly height: SVGAnimatedLength;
| readonly maskContentUnits: SVGAnimatedEnumeration;
| readonly maskUnits: SVGAnimatedEnumeration;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGMaskElement: {
| prototype: SVGMaskElement;
| new(): SVGMaskElement;
| };
|
| /** Corresponds to the <metadata> element. */
| interface SVGMetadataElement extends SVGElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGMetadataElement: {
| prototype: SVGMetadataElement;
| new(): SVGMetadataElement;
| };
|
| /** Corresponds to the <number> basic data type. */
| interface SVGNumber {
| value: number;
| }
|
| declare var SVGNumber: {
| prototype: SVGNumber;
| new(): SVGNumber;
| };
|
| /** The SVGNumberList defines a list of SVGNumber objects. */
| interface SVGNumberList {
| readonly length: number;
| readonly numberOfItems: number;
| appendItem(newItem: SVGNumber): SVGNumber;
| clear(): void;
| getItem(index: number): SVGNumber;
| initialize(newItem: SVGNumber): SVGNumber;
| insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
| removeItem(index: number): SVGNumber;
| replaceItem(newItem: SVGNumber, index: number): SVGNumber;
| [index: number]: SVGNumber;
| }
|
| declare var SVGNumberList: {
| prototype: SVGNumberList;
| new(): SVGNumberList;
| };
|
| /** Corresponds to the <path> element. */
| interface SVGPathElement extends SVGGeometryElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGPathElement: {
| prototype: SVGPathElement;
| new(): SVGPathElement;
| };
|
| /** Corresponds to the <pattern> element. */
| interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
| readonly height: SVGAnimatedLength;
| readonly patternContentUnits: SVGAnimatedEnumeration;
| readonly patternTransform: SVGAnimatedTransformList;
| readonly patternUnits: SVGAnimatedEnumeration;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGPatternElement: {
| prototype: SVGPatternElement;
| new(): SVGPatternElement;
| };
|
| interface SVGPointList {
| readonly length: number;
| readonly numberOfItems: number;
| appendItem(newItem: DOMPoint): DOMPoint;
| clear(): void;
| getItem(index: number): DOMPoint;
| initialize(newItem: DOMPoint): DOMPoint;
| insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
| removeItem(index: number): DOMPoint;
| replaceItem(newItem: DOMPoint, index: number): DOMPoint;
| [index: number]: DOMPoint;
| }
|
| declare var SVGPointList: {
| prototype: SVGPointList;
| new(): SVGPointList;
| };
|
| /** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
| interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGPolygonElement: {
| prototype: SVGPolygonElement;
| new(): SVGPolygonElement;
| };
|
| /** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
| interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGPolylineElement: {
| prototype: SVGPolylineElement;
| new(): SVGPolylineElement;
| };
|
| /** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
| interface SVGPreserveAspectRatio {
| align: number;
| meetOrSlice: number;
| readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
| readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
| readonly SVG_MEETORSLICE_UNKNOWN: 0;
| readonly SVG_MEETORSLICE_MEET: 1;
| readonly SVG_MEETORSLICE_SLICE: 2;
| }
|
| declare var SVGPreserveAspectRatio: {
| prototype: SVGPreserveAspectRatio;
| new(): SVGPreserveAspectRatio;
| readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
| readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
| readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
| readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
| readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
| readonly SVG_MEETORSLICE_UNKNOWN: 0;
| readonly SVG_MEETORSLICE_MEET: 1;
| readonly SVG_MEETORSLICE_SLICE: 2;
| };
|
| /** Corresponds to the <RadialGradient> element. */
| interface SVGRadialGradientElement extends SVGGradientElement {
| readonly cx: SVGAnimatedLength;
| readonly cy: SVGAnimatedLength;
| readonly fr: SVGAnimatedLength;
| readonly fx: SVGAnimatedLength;
| readonly fy: SVGAnimatedLength;
| readonly r: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGRadialGradientElement: {
| prototype: SVGRadialGradientElement;
| new(): SVGRadialGradientElement;
| };
|
| /** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
| interface SVGRectElement extends SVGGeometryElement {
| readonly height: SVGAnimatedLength;
| readonly rx: SVGAnimatedLength;
| readonly ry: SVGAnimatedLength;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGRectElement: {
| prototype: SVGRectElement;
| new(): SVGRectElement;
| };
|
| interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
| }
|
| /** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
| interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
| currentScale: number;
| readonly currentTranslate: DOMPointReadOnly;
| readonly height: SVGAnimatedLength;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| animationsPaused(): boolean;
| checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
| checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
| createSVGAngle(): SVGAngle;
| createSVGLength(): SVGLength;
| createSVGMatrix(): DOMMatrix;
| createSVGNumber(): SVGNumber;
| createSVGPoint(): DOMPoint;
| createSVGRect(): DOMRect;
| createSVGTransform(): SVGTransform;
| createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
| deselectAll(): void;
| /** @deprecated */
| forceRedraw(): void;
| getCurrentTime(): number;
| getElementById(elementId: string): Element;
| getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
| getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
| pauseAnimations(): void;
| setCurrentTime(seconds: number): void;
| /** @deprecated */
| suspendRedraw(maxWaitMilliseconds: number): number;
| unpauseAnimations(): void;
| /** @deprecated */
| unsuspendRedraw(suspendHandleID: number): void;
| /** @deprecated */
| unsuspendRedrawAll(): void;
| addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGSVGElement: {
| prototype: SVGSVGElement;
| new(): SVGSVGElement;
| };
|
| /** Corresponds to the SVG <script> element. */
| interface SVGScriptElement extends SVGElement, SVGURIReference {
| type: string;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGScriptElement: {
| prototype: SVGScriptElement;
| new(): SVGScriptElement;
| };
|
| interface SVGSetElement extends SVGAnimationElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGSetElement: {
| prototype: SVGSetElement;
| new(): SVGSetElement;
| };
|
| /** Corresponds to the <stop> element. */
| interface SVGStopElement extends SVGElement {
| readonly offset: SVGAnimatedNumber;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGStopElement: {
| prototype: SVGStopElement;
| new(): SVGStopElement;
| };
|
| /** The SVGStringList defines a list of DOMString objects. */
| interface SVGStringList {
| readonly length: number;
| readonly numberOfItems: number;
| appendItem(newItem: string): string;
| clear(): void;
| getItem(index: number): string;
| initialize(newItem: string): string;
| insertItemBefore(newItem: string, index: number): string;
| removeItem(index: number): string;
| replaceItem(newItem: string, index: number): string;
| [index: number]: string;
| }
|
| declare var SVGStringList: {
| prototype: SVGStringList;
| new(): SVGStringList;
| };
|
| /** Corresponds to the SVG <style> element. */
| interface SVGStyleElement extends SVGElement, LinkStyle {
| disabled: boolean;
| media: string;
| title: string;
| /** @deprecated */
| type: string;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGStyleElement: {
| prototype: SVGStyleElement;
| new(): SVGStyleElement;
| };
|
| /** Corresponds to the <switch> element. */
| interface SVGSwitchElement extends SVGGraphicsElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGSwitchElement: {
| prototype: SVGSwitchElement;
| new(): SVGSwitchElement;
| };
|
| /** Corresponds to the <symbol> element. */
| interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGSymbolElement: {
| prototype: SVGSymbolElement;
| new(): SVGSymbolElement;
| };
|
| /** A <tspan> element. */
| interface SVGTSpanElement extends SVGTextPositioningElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTSpanElement: {
| prototype: SVGTSpanElement;
| new(): SVGTSpanElement;
| };
|
| interface SVGTests {
| readonly requiredExtensions: SVGStringList;
| readonly systemLanguage: SVGStringList;
| }
|
| /** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
| interface SVGTextContentElement extends SVGGraphicsElement {
| readonly lengthAdjust: SVGAnimatedEnumeration;
| readonly textLength: SVGAnimatedLength;
| getCharNumAtPosition(point?: DOMPointInit): number;
| getComputedTextLength(): number;
| getEndPositionOfChar(charnum: number): DOMPoint;
| getExtentOfChar(charnum: number): DOMRect;
| getNumberOfChars(): number;
| getRotationOfChar(charnum: number): number;
| getStartPositionOfChar(charnum: number): DOMPoint;
| getSubStringLength(charnum: number, nchars: number): number;
| /** @deprecated */
| selectSubString(charnum: number, nchars: number): void;
| readonly LENGTHADJUST_UNKNOWN: 0;
| readonly LENGTHADJUST_SPACING: 1;
| readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTextContentElement: {
| prototype: SVGTextContentElement;
| new(): SVGTextContentElement;
| readonly LENGTHADJUST_UNKNOWN: 0;
| readonly LENGTHADJUST_SPACING: 1;
| readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
| };
|
| /** Corresponds to the <text> elements. */
| interface SVGTextElement extends SVGTextPositioningElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTextElement: {
| prototype: SVGTextElement;
| new(): SVGTextElement;
| };
|
| /** Corresponds to the <textPath> element. */
| interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
| readonly method: SVGAnimatedEnumeration;
| readonly spacing: SVGAnimatedEnumeration;
| readonly startOffset: SVGAnimatedLength;
| readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
| readonly TEXTPATH_METHODTYPE_ALIGN: 1;
| readonly TEXTPATH_METHODTYPE_STRETCH: 2;
| readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
| readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
| readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTextPathElement: {
| prototype: SVGTextPathElement;
| new(): SVGTextPathElement;
| readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
| readonly TEXTPATH_METHODTYPE_ALIGN: 1;
| readonly TEXTPATH_METHODTYPE_STRETCH: 2;
| readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
| readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
| readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
| };
|
| /** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
| interface SVGTextPositioningElement extends SVGTextContentElement {
| readonly dx: SVGAnimatedLengthList;
| readonly dy: SVGAnimatedLengthList;
| readonly rotate: SVGAnimatedNumberList;
| readonly x: SVGAnimatedLengthList;
| readonly y: SVGAnimatedLengthList;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTextPositioningElement: {
| prototype: SVGTextPositioningElement;
| new(): SVGTextPositioningElement;
| };
|
| /** Corresponds to the <title> element. */
| interface SVGTitleElement extends SVGElement {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGTitleElement: {
| prototype: SVGTitleElement;
| new(): SVGTitleElement;
| };
|
| /** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
| interface SVGTransform {
| readonly angle: number;
| readonly matrix: DOMMatrix;
| readonly type: number;
| setMatrix(matrix?: DOMMatrix2DInit): void;
| setRotate(angle: number, cx: number, cy: number): void;
| setScale(sx: number, sy: number): void;
| setSkewX(angle: number): void;
| setSkewY(angle: number): void;
| setTranslate(tx: number, ty: number): void;
| readonly SVG_TRANSFORM_UNKNOWN: 0;
| readonly SVG_TRANSFORM_MATRIX: 1;
| readonly SVG_TRANSFORM_TRANSLATE: 2;
| readonly SVG_TRANSFORM_SCALE: 3;
| readonly SVG_TRANSFORM_ROTATE: 4;
| readonly SVG_TRANSFORM_SKEWX: 5;
| readonly SVG_TRANSFORM_SKEWY: 6;
| }
|
| declare var SVGTransform: {
| prototype: SVGTransform;
| new(): SVGTransform;
| readonly SVG_TRANSFORM_UNKNOWN: 0;
| readonly SVG_TRANSFORM_MATRIX: 1;
| readonly SVG_TRANSFORM_TRANSLATE: 2;
| readonly SVG_TRANSFORM_SCALE: 3;
| readonly SVG_TRANSFORM_ROTATE: 4;
| readonly SVG_TRANSFORM_SKEWX: 5;
| readonly SVG_TRANSFORM_SKEWY: 6;
| };
|
| /** The SVGTransformList defines a list of SVGTransform objects. */
| interface SVGTransformList {
| readonly length: number;
| readonly numberOfItems: number;
| appendItem(newItem: SVGTransform): SVGTransform;
| clear(): void;
| consolidate(): SVGTransform | null;
| createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
| getItem(index: number): SVGTransform;
| initialize(newItem: SVGTransform): SVGTransform;
| insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
| removeItem(index: number): SVGTransform;
| replaceItem(newItem: SVGTransform, index: number): SVGTransform;
| [index: number]: SVGTransform;
| }
|
| declare var SVGTransformList: {
| prototype: SVGTransformList;
| new(): SVGTransformList;
| };
|
| interface SVGURIReference {
| readonly href: SVGAnimatedString;
| }
|
| /** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
| interface SVGUnitTypes {
| readonly SVG_UNIT_TYPE_UNKNOWN: 0;
| readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
| readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
| }
|
| declare var SVGUnitTypes: {
| prototype: SVGUnitTypes;
| new(): SVGUnitTypes;
| readonly SVG_UNIT_TYPE_UNKNOWN: 0;
| readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
| readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
| };
|
| /** Corresponds to the <use> element. */
| interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
| readonly height: SVGAnimatedLength;
| readonly width: SVGAnimatedLength;
| readonly x: SVGAnimatedLength;
| readonly y: SVGAnimatedLength;
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGUseElement: {
| prototype: SVGUseElement;
| new(): SVGUseElement;
| };
|
| /** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
| interface SVGViewElement extends SVGElement, SVGFitToViewBox {
| addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SVGViewElement: {
| prototype: SVGViewElement;
| new(): SVGViewElement;
| };
|
| /** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
| interface Screen {
| readonly availHeight: number;
| readonly availWidth: number;
| readonly colorDepth: number;
| readonly height: number;
| readonly orientation: ScreenOrientation;
| readonly pixelDepth: number;
| readonly width: number;
| }
|
| declare var Screen: {
| prototype: Screen;
| new(): Screen;
| };
|
| interface ScreenOrientationEventMap {
| "change": Event;
| }
|
| interface ScreenOrientation extends EventTarget {
| readonly angle: number;
| onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
| readonly type: OrientationType;
| lock(orientation: OrientationLockType): Promise<void>;
| unlock(): void;
| addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ScreenOrientation: {
| prototype: ScreenOrientation;
| new(): ScreenOrientation;
| };
|
| interface ScriptProcessorNodeEventMap {
| "audioprocess": AudioProcessingEvent;
| }
|
| /**
| * Allows the generation, processing, or analyzing of audio using JavaScript.
| * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
| */
| interface ScriptProcessorNode extends AudioNode {
| /** @deprecated */
| readonly bufferSize: number;
| /** @deprecated */
| onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
| addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| /** @deprecated */
| declare var ScriptProcessorNode: {
| prototype: ScriptProcessorNode;
| new(): ScriptProcessorNode;
| };
|
| /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
| interface SecurityPolicyViolationEvent extends Event {
| readonly blockedURI: string;
| readonly columnNumber: number;
| readonly disposition: SecurityPolicyViolationEventDisposition;
| readonly documentURI: string;
| readonly effectiveDirective: string;
| readonly lineNumber: number;
| readonly originalPolicy: string;
| readonly referrer: string;
| readonly sample: string;
| readonly sourceFile: string;
| readonly statusCode: number;
| readonly violatedDirective: string;
| }
|
| declare var SecurityPolicyViolationEvent: {
| prototype: SecurityPolicyViolationEvent;
| new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
| };
|
| /** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
| interface Selection {
| readonly anchorNode: Node | null;
| readonly anchorOffset: number;
| readonly focusNode: Node | null;
| readonly focusOffset: number;
| readonly isCollapsed: boolean;
| readonly rangeCount: number;
| readonly type: string;
| addRange(range: Range): void;
| collapse(node: Node | null, offset?: number): void;
| collapseToEnd(): void;
| collapseToStart(): void;
| containsNode(node: Node, allowPartialContainment?: boolean): boolean;
| deleteFromDocument(): void;
| empty(): void;
| extend(node: Node, offset?: number): void;
| getRangeAt(index: number): Range;
| modify(alter?: string, direction?: string, granularity?: string): void;
| removeAllRanges(): void;
| removeRange(range: Range): void;
| selectAllChildren(node: Node): void;
| setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
| setPosition(node: Node | null, offset?: number): void;
| toString(): string;
| }
|
| declare var Selection: {
| prototype: Selection;
| new(): Selection;
| toString(): string;
| };
|
| interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
| "statechange": Event;
| }
|
| /**
| * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
| * Available only in secure contexts.
| */
| interface ServiceWorker extends EventTarget, AbstractWorker {
| onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
| readonly scriptURL: string;
| readonly state: ServiceWorkerState;
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorker: {
| prototype: ServiceWorker;
| new(): ServiceWorker;
| };
|
| interface ServiceWorkerContainerEventMap {
| "controllerchange": Event;
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /**
| * The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
| * Available only in secure contexts.
| */
| interface ServiceWorkerContainer extends EventTarget {
| readonly controller: ServiceWorker | null;
| oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
| onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
| readonly ready: Promise<ServiceWorkerRegistration>;
| getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
| getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
| register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
| startMessages(): void;
| addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorkerContainer: {
| prototype: ServiceWorkerContainer;
| new(): ServiceWorkerContainer;
| };
|
| interface ServiceWorkerRegistrationEventMap {
| "updatefound": Event;
| }
|
| /**
| * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
| * Available only in secure contexts.
| */
| interface ServiceWorkerRegistration extends EventTarget {
| readonly active: ServiceWorker | null;
| readonly installing: ServiceWorker | null;
| readonly navigationPreload: NavigationPreloadManager;
| onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
| readonly pushManager: PushManager;
| readonly scope: string;
| readonly updateViaCache: ServiceWorkerUpdateViaCache;
| readonly waiting: ServiceWorker | null;
| getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
| showNotification(title: string, options?: NotificationOptions): Promise<void>;
| unregister(): Promise<boolean>;
| update(): Promise<void>;
| addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorkerRegistration: {
| prototype: ServiceWorkerRegistration;
| new(): ServiceWorkerRegistration;
| };
|
| interface ShadowRootEventMap {
| "slotchange": Event;
| }
|
| interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
| readonly delegatesFocus: boolean;
| readonly host: Element;
| readonly mode: ShadowRootMode;
| onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
| readonly slotAssignment: SlotAssignmentMode;
| /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
| addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ShadowRoot: {
| prototype: ShadowRoot;
| new(): ShadowRoot;
| };
|
| interface SharedWorker extends EventTarget, AbstractWorker {
| /** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
| readonly port: MessagePort;
| addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SharedWorker: {
| prototype: SharedWorker;
| new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
| };
|
| interface Slottable {
| readonly assignedSlot: HTMLSlotElement | null;
| }
|
| interface SourceBufferEventMap {
| "abort": Event;
| "error": Event;
| "update": Event;
| "updateend": Event;
| "updatestart": Event;
| }
|
| /** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
| interface SourceBuffer extends EventTarget {
| appendWindowEnd: number;
| appendWindowStart: number;
| readonly buffered: TimeRanges;
| mode: AppendMode;
| onabort: ((this: SourceBuffer, ev: Event) => any) | null;
| onerror: ((this: SourceBuffer, ev: Event) => any) | null;
| onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
| onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
| onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
| timestampOffset: number;
| readonly updating: boolean;
| abort(): void;
| appendBuffer(data: BufferSource): void;
| changeType(type: string): void;
| remove(start: number, end: number): void;
| addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SourceBuffer: {
| prototype: SourceBuffer;
| new(): SourceBuffer;
| };
|
| interface SourceBufferListEventMap {
| "addsourcebuffer": Event;
| "removesourcebuffer": Event;
| }
|
| /** A simple container list for multiple SourceBuffer objects. */
| interface SourceBufferList extends EventTarget {
| readonly length: number;
| onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
| onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
| addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| [index: number]: SourceBuffer;
| }
|
| declare var SourceBufferList: {
| prototype: SourceBufferList;
| new(): SourceBufferList;
| };
|
| interface SpeechRecognitionAlternative {
| readonly confidence: number;
| readonly transcript: string;
| }
|
| declare var SpeechRecognitionAlternative: {
| prototype: SpeechRecognitionAlternative;
| new(): SpeechRecognitionAlternative;
| };
|
| interface SpeechRecognitionResult {
| readonly isFinal: boolean;
| readonly length: number;
| item(index: number): SpeechRecognitionAlternative;
| [index: number]: SpeechRecognitionAlternative;
| }
|
| declare var SpeechRecognitionResult: {
| prototype: SpeechRecognitionResult;
| new(): SpeechRecognitionResult;
| };
|
| interface SpeechRecognitionResultList {
| readonly length: number;
| item(index: number): SpeechRecognitionResult;
| [index: number]: SpeechRecognitionResult;
| }
|
| declare var SpeechRecognitionResultList: {
| prototype: SpeechRecognitionResultList;
| new(): SpeechRecognitionResultList;
| };
|
| interface SpeechSynthesisEventMap {
| "voiceschanged": Event;
| }
|
| /** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
| interface SpeechSynthesis extends EventTarget {
| onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
| readonly paused: boolean;
| readonly pending: boolean;
| readonly speaking: boolean;
| cancel(): void;
| getVoices(): SpeechSynthesisVoice[];
| pause(): void;
| resume(): void;
| speak(utterance: SpeechSynthesisUtterance): void;
| addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SpeechSynthesis: {
| prototype: SpeechSynthesis;
| new(): SpeechSynthesis;
| };
|
| interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
| readonly error: SpeechSynthesisErrorCode;
| }
|
| declare var SpeechSynthesisErrorEvent: {
| prototype: SpeechSynthesisErrorEvent;
| new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
| };
|
| /** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
| interface SpeechSynthesisEvent extends Event {
| readonly charIndex: number;
| readonly charLength: number;
| readonly elapsedTime: number;
| readonly name: string;
| readonly utterance: SpeechSynthesisUtterance;
| }
|
| declare var SpeechSynthesisEvent: {
| prototype: SpeechSynthesisEvent;
| new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
| };
|
| interface SpeechSynthesisUtteranceEventMap {
| "boundary": SpeechSynthesisEvent;
| "end": SpeechSynthesisEvent;
| "error": SpeechSynthesisErrorEvent;
| "mark": SpeechSynthesisEvent;
| "pause": SpeechSynthesisEvent;
| "resume": SpeechSynthesisEvent;
| "start": SpeechSynthesisEvent;
| }
|
| /** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
| interface SpeechSynthesisUtterance extends EventTarget {
| lang: string;
| onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
| onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
| pitch: number;
| rate: number;
| text: string;
| voice: SpeechSynthesisVoice | null;
| volume: number;
| addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SpeechSynthesisUtterance: {
| prototype: SpeechSynthesisUtterance;
| new(text?: string): SpeechSynthesisUtterance;
| };
|
| /** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
| interface SpeechSynthesisVoice {
| readonly default: boolean;
| readonly lang: string;
| readonly localService: boolean;
| readonly name: string;
| readonly voiceURI: string;
| }
|
| declare var SpeechSynthesisVoice: {
| prototype: SpeechSynthesisVoice;
| new(): SpeechSynthesisVoice;
| };
|
| interface StaticRange extends AbstractRange {
| }
|
| declare var StaticRange: {
| prototype: StaticRange;
| new(init: StaticRangeInit): StaticRange;
| };
|
| /** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
| interface StereoPannerNode extends AudioNode {
| readonly pan: AudioParam;
| }
|
| declare var StereoPannerNode: {
| prototype: StereoPannerNode;
| new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
| };
|
| /** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
| interface Storage {
| /** Returns the number of key/value pairs. */
| readonly length: number;
| /**
| * Removes all key/value pairs, if there are any.
| *
| * Dispatches a storage event on Window objects holding an equivalent Storage object.
| */
| clear(): void;
| /** Returns the current value associated with the given key, or null if the given key does not exist. */
| getItem(key: string): string | null;
| /** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
| key(index: number): string | null;
| /**
| * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
| *
| * Dispatches a storage event on Window objects holding an equivalent Storage object.
| */
| removeItem(key: string): void;
| /**
| * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
| *
| * Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
| *
| * Dispatches a storage event on Window objects holding an equivalent Storage object.
| */
| setItem(key: string, value: string): void;
| [name: string]: any;
| }
|
| declare var Storage: {
| prototype: Storage;
| new(): Storage;
| };
|
| /** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
| interface StorageEvent extends Event {
| /** Returns the key of the storage item being changed. */
| readonly key: string | null;
| /** Returns the new value of the key of the storage item whose value is being changed. */
| readonly newValue: string | null;
| /** Returns the old value of the key of the storage item whose value is being changed. */
| readonly oldValue: string | null;
| /** Returns the Storage object that was affected. */
| readonly storageArea: Storage | null;
| /** Returns the URL of the document whose storage item changed. */
| readonly url: string;
| /** @deprecated */
| initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
| }
|
| declare var StorageEvent: {
| prototype: StorageEvent;
| new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
| };
|
| /** Available only in secure contexts. */
| interface StorageManager {
| estimate(): Promise<StorageEstimate>;
| getDirectory(): Promise<FileSystemDirectoryHandle>;
| persist(): Promise<boolean>;
| persisted(): Promise<boolean>;
| }
|
| declare var StorageManager: {
| prototype: StorageManager;
| new(): StorageManager;
| };
|
| /** @deprecated */
| interface StyleMedia {
| type: string;
| matchMedium(mediaquery: string): boolean;
| }
|
| /** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
| interface StyleSheet {
| disabled: boolean;
| readonly href: string | null;
| readonly media: MediaList;
| readonly ownerNode: Element | ProcessingInstruction | null;
| readonly parentStyleSheet: CSSStyleSheet | null;
| readonly title: string | null;
| readonly type: string;
| }
|
| declare var StyleSheet: {
| prototype: StyleSheet;
| new(): StyleSheet;
| };
|
| /** A list of StyleSheet. */
| interface StyleSheetList {
| readonly length: number;
| item(index: number): CSSStyleSheet | null;
| [index: number]: CSSStyleSheet;
| }
|
| declare var StyleSheetList: {
| prototype: StyleSheetList;
| new(): StyleSheetList;
| };
|
| interface SubmitEvent extends Event {
| /** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
| readonly submitter: HTMLElement | null;
| }
|
| declare var SubmitEvent: {
| prototype: SubmitEvent;
| new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
| };
|
| /**
| * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
| * Available only in secure contexts.
| */
| interface SubtleCrypto {
| decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
| deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
| encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
| exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
| generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
| generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
| importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
| wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
| }
|
| declare var SubtleCrypto: {
| prototype: SubtleCrypto;
| new(): SubtleCrypto;
| };
|
| /** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
| interface Text extends CharacterData, Slottable {
| /** Returns the combined data of all direct Text node siblings. */
| readonly wholeText: string;
| /** Splits data at the given offset and returns the remainder as Text node. */
| splitText(offset: number): Text;
| }
|
| declare var Text: {
| prototype: Text;
| new(data?: string): Text;
| };
|
| /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
| interface TextDecoder extends TextDecoderCommon {
| /**
| * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
| *
| * \`\`\`
| * var string = "", decoder = new TextDecoder(encoding), buffer;
| * while(buffer = next_chunk()) {
| * string += decoder.decode(buffer, {stream:true});
| * }
| * string += decoder.decode(); // end-of-queue
| * \`\`\`
| *
| * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
| */
| decode(input?: BufferSource, options?: TextDecodeOptions): string;
| }
|
| declare var TextDecoder: {
| prototype: TextDecoder;
| new(label?: string, options?: TextDecoderOptions): TextDecoder;
| };
|
| interface TextDecoderCommon {
| /** Returns encoding's name, lowercased. */
| readonly encoding: string;
| /** Returns true if error mode is "fatal", otherwise false. */
| readonly fatal: boolean;
| /** Returns the value of ignore BOM. */
| readonly ignoreBOM: boolean;
| }
|
| interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
| readonly readable: ReadableStream<string>;
| readonly writable: WritableStream<BufferSource>;
| }
|
| declare var TextDecoderStream: {
| prototype: TextDecoderStream;
| new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
| };
|
| /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
| interface TextEncoder extends TextEncoderCommon {
| /** Returns the result of running UTF-8's encoder. */
| encode(input?: string): Uint8Array;
| /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
| encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
| }
|
| declare var TextEncoder: {
| prototype: TextEncoder;
| new(): TextEncoder;
| };
|
| interface TextEncoderCommon {
| /** Returns "utf-8". */
| readonly encoding: string;
| }
|
| interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
| readonly readable: ReadableStream<Uint8Array>;
| readonly writable: WritableStream<string>;
| }
|
| declare var TextEncoderStream: {
| prototype: TextEncoderStream;
| new(): TextEncoderStream;
| };
|
| /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
| interface TextMetrics {
| /** Returns the measurement described below. */
| readonly actualBoundingBoxAscent: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxDescent: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxLeft: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxRight: number;
| /** Returns the measurement described below. */
| readonly fontBoundingBoxAscent: number;
| /** Returns the measurement described below. */
| readonly fontBoundingBoxDescent: number;
| /** Returns the measurement described below. */
| readonly width: number;
| }
|
| declare var TextMetrics: {
| prototype: TextMetrics;
| new(): TextMetrics;
| };
|
| interface TextTrackEventMap {
| "cuechange": Event;
| }
|
| /** This interface also inherits properties from EventTarget. */
| interface TextTrack extends EventTarget {
| /** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */
| readonly activeCues: TextTrackCueList | null;
| /** Returns the text track list of cues, as a TextTrackCueList object. */
| readonly cues: TextTrackCueList | null;
| /**
| * Returns the ID of the given track.
| *
| * For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
| *
| * For TextTrack objects corresponding to track elements, this is the ID of the track element.
| */
| readonly id: string;
| /** Returns the text track in-band metadata track dispatch type string. */
| readonly inBandMetadataTrackDispatchType: string;
| /** Returns the text track kind string. */
| readonly kind: TextTrackKind;
| /** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */
| readonly label: string;
| /** Returns the text track language string. */
| readonly language: string;
| /**
| * Returns the text track mode, represented by a string from the following list:
| *
| * Can be set, to change the mode.
| */
| mode: TextTrackMode;
| oncuechange: ((this: TextTrack, ev: Event) => any) | null;
| /** Adds the given cue to textTrack's text track list of cues. */
| addCue(cue: TextTrackCue): void;
| /** Removes the given cue from textTrack's text track list of cues. */
| removeCue(cue: TextTrackCue): void;
| addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var TextTrack: {
| prototype: TextTrack;
| new(): TextTrack;
| };
|
| interface TextTrackCueEventMap {
| "enter": Event;
| "exit": Event;
| }
|
| /** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
| interface TextTrackCue extends EventTarget {
| /**
| * Returns the text track cue end time, in seconds.
| *
| * Can be set.
| */
| endTime: number;
| /**
| * Returns the text track cue identifier.
| *
| * Can be set.
| */
| id: string;
| onenter: ((this: TextTrackCue, ev: Event) => any) | null;
| onexit: ((this: TextTrackCue, ev: Event) => any) | null;
| /**
| * Returns true if the text track cue pause-on-exit flag is set, false otherwise.
| *
| * Can be set.
| */
| pauseOnExit: boolean;
| /**
| * Returns the text track cue start time, in seconds.
| *
| * Can be set.
| */
| startTime: number;
| /** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
| readonly track: TextTrack | null;
| addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var TextTrackCue: {
| prototype: TextTrackCue;
| new(): TextTrackCue;
| };
|
| interface TextTrackCueList {
| /** Returns the number of cues in the list. */
| readonly length: number;
| /**
| * Returns the first text track cue (in text track cue order) with text track cue identifier id.
| *
| * Returns null if none of the cues have the given identifier or if the argument is the empty string.
| */
| getCueById(id: string): TextTrackCue | null;
| [index: number]: TextTrackCue;
| }
|
| declare var TextTrackCueList: {
| prototype: TextTrackCueList;
| new(): TextTrackCueList;
| };
|
| interface TextTrackListEventMap {
| "addtrack": TrackEvent;
| "change": Event;
| "removetrack": TrackEvent;
| }
|
| interface TextTrackList extends EventTarget {
| readonly length: number;
| onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
| onchange: ((this: TextTrackList, ev: Event) => any) | null;
| onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
| getTrackById(id: string): TextTrack | null;
| addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| [index: number]: TextTrack;
| }
|
| declare var TextTrackList: {
| prototype: TextTrackList;
| new(): TextTrackList;
| };
|
| /** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
| interface TimeRanges {
| /** Returns the number of ranges in the object. */
| readonly length: number;
| /**
| * Returns the time for the end of the range with the given index.
| *
| * Throws an "IndexSizeError" DOMException if the index is out of range.
| */
| end(index: number): number;
| /**
| * Returns the time for the start of the range with the given index.
| *
| * Throws an "IndexSizeError" DOMException if the index is out of range.
| */
| start(index: number): number;
| }
|
| declare var TimeRanges: {
| prototype: TimeRanges;
| new(): TimeRanges;
| };
|
| /** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
| interface Touch {
| readonly clientX: number;
| readonly clientY: number;
| readonly force: number;
| readonly identifier: number;
| readonly pageX: number;
| readonly pageY: number;
| readonly radiusX: number;
| readonly radiusY: number;
| readonly rotationAngle: number;
| readonly screenX: number;
| readonly screenY: number;
| readonly target: EventTarget;
| }
|
| declare var Touch: {
| prototype: Touch;
| new(touchInitDict: TouchInit): Touch;
| };
|
| /** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
| interface TouchEvent extends UIEvent {
| readonly altKey: boolean;
| readonly changedTouches: TouchList;
| readonly ctrlKey: boolean;
| readonly metaKey: boolean;
| readonly shiftKey: boolean;
| readonly targetTouches: TouchList;
| readonly touches: TouchList;
| }
|
| declare var TouchEvent: {
| prototype: TouchEvent;
| new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
| };
|
| /** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
| interface TouchList {
| readonly length: number;
| item(index: number): Touch | null;
| [index: number]: Touch;
| }
|
| declare var TouchList: {
| prototype: TouchList;
| new(): TouchList;
| };
|
| /** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
| interface TrackEvent extends Event {
| /** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
| readonly track: TextTrack | null;
| }
|
| declare var TrackEvent: {
| prototype: TrackEvent;
| new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
| };
|
| interface TransformStream<I = any, O = any> {
| readonly readable: ReadableStream<O>;
| readonly writable: WritableStream<I>;
| }
|
| declare var TransformStream: {
| prototype: TransformStream;
| new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
| };
|
| interface TransformStreamDefaultController<O = any> {
| readonly desiredSize: number | null;
| enqueue(chunk?: O): void;
| error(reason?: any): void;
| terminate(): void;
| }
|
| declare var TransformStreamDefaultController: {
| prototype: TransformStreamDefaultController;
| new(): TransformStreamDefaultController;
| };
|
| /** Events providing information related to transitions. */
| interface TransitionEvent extends Event {
| readonly elapsedTime: number;
| readonly propertyName: string;
| readonly pseudoElement: string;
| }
|
| declare var TransitionEvent: {
| prototype: TransitionEvent;
| new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
| };
|
| /** The nodes of a document subtree and a position within them. */
| interface TreeWalker {
| currentNode: Node;
| readonly filter: NodeFilter | null;
| readonly root: Node;
| readonly whatToShow: number;
| firstChild(): Node | null;
| lastChild(): Node | null;
| nextNode(): Node | null;
| nextSibling(): Node | null;
| parentNode(): Node | null;
| previousNode(): Node | null;
| previousSibling(): Node | null;
| }
|
| declare var TreeWalker: {
| prototype: TreeWalker;
| new(): TreeWalker;
| };
|
| /** Simple user interface events. */
| interface UIEvent extends Event {
| readonly detail: number;
| readonly view: Window | null;
| /** @deprecated */
| readonly which: number;
| /** @deprecated */
| initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
| }
|
| declare var UIEvent: {
| prototype: UIEvent;
| new(type: string, eventInitDict?: UIEventInit): UIEvent;
| };
|
| /** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
| interface URL {
| hash: string;
| host: string;
| hostname: string;
| href: string;
| toString(): string;
| readonly origin: string;
| password: string;
| pathname: string;
| port: string;
| protocol: string;
| search: string;
| readonly searchParams: URLSearchParams;
| username: string;
| toJSON(): string;
| }
|
| declare var URL: {
| prototype: URL;
| new(url: string | URL, base?: string | URL): URL;
| createObjectURL(obj: Blob | MediaSource): string;
| revokeObjectURL(url: string): void;
| };
|
| type webkitURL = URL;
| declare var webkitURL: typeof URL;
|
| interface URLSearchParams {
| /** Appends a specified key/value pair as a new search parameter. */
| append(name: string, value: string): void;
| /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
| delete(name: string): void;
| /** Returns the first value associated to the given search parameter. */
| get(name: string): string | null;
| /** Returns all the values association with a given search parameter. */
| getAll(name: string): string[];
| /** Returns a Boolean indicating if such a search parameter exists. */
| has(name: string): boolean;
| /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
| set(name: string, value: string): void;
| sort(): void;
| /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
| toString(): string;
| forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
| }
|
| declare var URLSearchParams: {
| prototype: URLSearchParams;
| new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
| toString(): string;
| };
|
| interface VTTCue extends TextTrackCue {
| align: AlignSetting;
| line: LineAndPositionSetting;
| lineAlign: LineAlignSetting;
| position: LineAndPositionSetting;
| positionAlign: PositionAlignSetting;
| region: VTTRegion | null;
| size: number;
| snapToLines: boolean;
| text: string;
| vertical: DirectionSetting;
| getCueAsHTML(): DocumentFragment;
| addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var VTTCue: {
| prototype: VTTCue;
| new(startTime: number, endTime: number, text: string): VTTCue;
| };
|
| interface VTTRegion {
| id: string;
| lines: number;
| regionAnchorX: number;
| regionAnchorY: number;
| scroll: ScrollSetting;
| viewportAnchorX: number;
| viewportAnchorY: number;
| width: number;
| }
|
| declare var VTTRegion: {
| prototype: VTTRegion;
| new(): VTTRegion;
| };
|
| /** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
| interface ValidityState {
| readonly badInput: boolean;
| readonly customError: boolean;
| readonly patternMismatch: boolean;
| readonly rangeOverflow: boolean;
| readonly rangeUnderflow: boolean;
| readonly stepMismatch: boolean;
| readonly tooLong: boolean;
| readonly tooShort: boolean;
| readonly typeMismatch: boolean;
| readonly valid: boolean;
| readonly valueMissing: boolean;
| }
|
| declare var ValidityState: {
| prototype: ValidityState;
| new(): ValidityState;
| };
|
| interface VideoColorSpace {
| readonly fullRange: boolean | null;
| readonly matrix: VideoMatrixCoefficients | null;
| readonly primaries: VideoColorPrimaries | null;
| readonly transfer: VideoTransferCharacteristics | null;
| toJSON(): VideoColorSpaceInit;
| }
|
| declare var VideoColorSpace: {
| prototype: VideoColorSpace;
| new(init?: VideoColorSpaceInit): VideoColorSpace;
| };
|
| /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
| interface VideoPlaybackQuality {
| /** @deprecated */
| readonly corruptedVideoFrames: number;
| readonly creationTime: DOMHighResTimeStamp;
| readonly droppedVideoFrames: number;
| readonly totalVideoFrames: number;
| }
|
| declare var VideoPlaybackQuality: {
| prototype: VideoPlaybackQuality;
| new(): VideoPlaybackQuality;
| };
|
| interface VisualViewportEventMap {
| "resize": Event;
| "scroll": Event;
| }
|
| interface VisualViewport extends EventTarget {
| readonly height: number;
| readonly offsetLeft: number;
| readonly offsetTop: number;
| onresize: ((this: VisualViewport, ev: Event) => any) | null;
| onscroll: ((this: VisualViewport, ev: Event) => any) | null;
| readonly pageLeft: number;
| readonly pageTop: number;
| readonly scale: number;
| readonly width: number;
| addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var VisualViewport: {
| prototype: VisualViewport;
| new(): VisualViewport;
| };
|
| interface WEBGL_color_buffer_float {
| readonly RGBA32F_EXT: 0x8814;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
| readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
| }
|
| interface WEBGL_compressed_texture_astc {
| getSupportedProfiles(): string[];
| readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
| readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
| readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
| readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
| readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
| readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
| readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
| readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
| readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
| readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
| readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
| readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
| readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
| readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
| }
|
| interface WEBGL_compressed_texture_etc {
| readonly COMPRESSED_R11_EAC: 0x9270;
| readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
| readonly COMPRESSED_RG11_EAC: 0x9272;
| readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
| readonly COMPRESSED_RGB8_ETC2: 0x9274;
| readonly COMPRESSED_SRGB8_ETC2: 0x9275;
| readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
| readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
| readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
| readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
| }
|
| interface WEBGL_compressed_texture_etc1 {
| readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
| }
|
| /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
| interface WEBGL_compressed_texture_s3tc {
| readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
| readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
| readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
| readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
| }
|
| interface WEBGL_compressed_texture_s3tc_srgb {
| readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
| }
|
| /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
| interface WEBGL_debug_renderer_info {
| readonly UNMASKED_VENDOR_WEBGL: 0x9245;
| readonly UNMASKED_RENDERER_WEBGL: 0x9246;
| }
|
| interface WEBGL_debug_shaders {
| getTranslatedShaderSource(shader: WebGLShader): string;
| }
|
| /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
| interface WEBGL_depth_texture {
| readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
| }
|
| interface WEBGL_draw_buffers {
| drawBuffersWEBGL(buffers: GLenum[]): void;
| readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
| readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
| readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
| readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
| readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
| readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
| readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
| readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
| readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
| readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
| readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
| readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
| readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
| readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
| readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
| readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
| readonly DRAW_BUFFER0_WEBGL: 0x8825;
| readonly DRAW_BUFFER1_WEBGL: 0x8826;
| readonly DRAW_BUFFER2_WEBGL: 0x8827;
| readonly DRAW_BUFFER3_WEBGL: 0x8828;
| readonly DRAW_BUFFER4_WEBGL: 0x8829;
| readonly DRAW_BUFFER5_WEBGL: 0x882A;
| readonly DRAW_BUFFER6_WEBGL: 0x882B;
| readonly DRAW_BUFFER7_WEBGL: 0x882C;
| readonly DRAW_BUFFER8_WEBGL: 0x882D;
| readonly DRAW_BUFFER9_WEBGL: 0x882E;
| readonly DRAW_BUFFER10_WEBGL: 0x882F;
| readonly DRAW_BUFFER11_WEBGL: 0x8830;
| readonly DRAW_BUFFER12_WEBGL: 0x8831;
| readonly DRAW_BUFFER13_WEBGL: 0x8832;
| readonly DRAW_BUFFER14_WEBGL: 0x8833;
| readonly DRAW_BUFFER15_WEBGL: 0x8834;
| readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
| readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
| }
|
| interface WEBGL_lose_context {
| loseContext(): void;
| restoreContext(): void;
| }
|
| interface WEBGL_multi_draw {
| multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
| }
|
| /** A WaveShaperNode always has exactly one input and one output. */
| interface WaveShaperNode extends AudioNode {
| curve: Float32Array | null;
| oversample: OverSampleType;
| }
|
| declare var WaveShaperNode: {
| prototype: WaveShaperNode;
| new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
| };
|
| interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
| }
|
| declare var WebGL2RenderingContext: {
| prototype: WebGL2RenderingContext;
| new(): WebGL2RenderingContext;
| readonly READ_BUFFER: 0x0C02;
| readonly UNPACK_ROW_LENGTH: 0x0CF2;
| readonly UNPACK_SKIP_ROWS: 0x0CF3;
| readonly UNPACK_SKIP_PIXELS: 0x0CF4;
| readonly PACK_ROW_LENGTH: 0x0D02;
| readonly PACK_SKIP_ROWS: 0x0D03;
| readonly PACK_SKIP_PIXELS: 0x0D04;
| readonly COLOR: 0x1800;
| readonly DEPTH: 0x1801;
| readonly STENCIL: 0x1802;
| readonly RED: 0x1903;
| readonly RGB8: 0x8051;
| readonly RGBA8: 0x8058;
| readonly RGB10_A2: 0x8059;
| readonly TEXTURE_BINDING_3D: 0x806A;
| readonly UNPACK_SKIP_IMAGES: 0x806D;
| readonly UNPACK_IMAGE_HEIGHT: 0x806E;
| readonly TEXTURE_3D: 0x806F;
| readonly TEXTURE_WRAP_R: 0x8072;
| readonly MAX_3D_TEXTURE_SIZE: 0x8073;
| readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
| readonly MAX_ELEMENTS_VERTICES: 0x80E8;
| readonly MAX_ELEMENTS_INDICES: 0x80E9;
| readonly TEXTURE_MIN_LOD: 0x813A;
| readonly TEXTURE_MAX_LOD: 0x813B;
| readonly TEXTURE_BASE_LEVEL: 0x813C;
| readonly TEXTURE_MAX_LEVEL: 0x813D;
| readonly MIN: 0x8007;
| readonly MAX: 0x8008;
| readonly DEPTH_COMPONENT24: 0x81A6;
| readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
| readonly TEXTURE_COMPARE_MODE: 0x884C;
| readonly TEXTURE_COMPARE_FUNC: 0x884D;
| readonly CURRENT_QUERY: 0x8865;
| readonly QUERY_RESULT: 0x8866;
| readonly QUERY_RESULT_AVAILABLE: 0x8867;
| readonly STREAM_READ: 0x88E1;
| readonly STREAM_COPY: 0x88E2;
| readonly STATIC_READ: 0x88E5;
| readonly STATIC_COPY: 0x88E6;
| readonly DYNAMIC_READ: 0x88E9;
| readonly DYNAMIC_COPY: 0x88EA;
| readonly MAX_DRAW_BUFFERS: 0x8824;
| readonly DRAW_BUFFER0: 0x8825;
| readonly DRAW_BUFFER1: 0x8826;
| readonly DRAW_BUFFER2: 0x8827;
| readonly DRAW_BUFFER3: 0x8828;
| readonly DRAW_BUFFER4: 0x8829;
| readonly DRAW_BUFFER5: 0x882A;
| readonly DRAW_BUFFER6: 0x882B;
| readonly DRAW_BUFFER7: 0x882C;
| readonly DRAW_BUFFER8: 0x882D;
| readonly DRAW_BUFFER9: 0x882E;
| readonly DRAW_BUFFER10: 0x882F;
| readonly DRAW_BUFFER11: 0x8830;
| readonly DRAW_BUFFER12: 0x8831;
| readonly DRAW_BUFFER13: 0x8832;
| readonly DRAW_BUFFER14: 0x8833;
| readonly DRAW_BUFFER15: 0x8834;
| readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
| readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
| readonly SAMPLER_3D: 0x8B5F;
| readonly SAMPLER_2D_SHADOW: 0x8B62;
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
| readonly PIXEL_PACK_BUFFER: 0x88EB;
| readonly PIXEL_UNPACK_BUFFER: 0x88EC;
| readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
| readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
| readonly FLOAT_MAT2x3: 0x8B65;
| readonly FLOAT_MAT2x4: 0x8B66;
| readonly FLOAT_MAT3x2: 0x8B67;
| readonly FLOAT_MAT3x4: 0x8B68;
| readonly FLOAT_MAT4x2: 0x8B69;
| readonly FLOAT_MAT4x3: 0x8B6A;
| readonly SRGB: 0x8C40;
| readonly SRGB8: 0x8C41;
| readonly SRGB8_ALPHA8: 0x8C43;
| readonly COMPARE_REF_TO_TEXTURE: 0x884E;
| readonly RGBA32F: 0x8814;
| readonly RGB32F: 0x8815;
| readonly RGBA16F: 0x881A;
| readonly RGB16F: 0x881B;
| readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
| readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
| readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
| readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
| readonly MAX_VARYING_COMPONENTS: 0x8B4B;
| readonly TEXTURE_2D_ARRAY: 0x8C1A;
| readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
| readonly R11F_G11F_B10F: 0x8C3A;
| readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
| readonly RGB9_E5: 0x8C3D;
| readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
| readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
| readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
| readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
| readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
| readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
| readonly RASTERIZER_DISCARD: 0x8C89;
| readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
| readonly INTERLEAVED_ATTRIBS: 0x8C8C;
| readonly SEPARATE_ATTRIBS: 0x8C8D;
| readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
| readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
| readonly RGBA32UI: 0x8D70;
| readonly RGB32UI: 0x8D71;
| readonly RGBA16UI: 0x8D76;
| readonly RGB16UI: 0x8D77;
| readonly RGBA8UI: 0x8D7C;
| readonly RGB8UI: 0x8D7D;
| readonly RGBA32I: 0x8D82;
| readonly RGB32I: 0x8D83;
| readonly RGBA16I: 0x8D88;
| readonly RGB16I: 0x8D89;
| readonly RGBA8I: 0x8D8E;
| readonly RGB8I: 0x8D8F;
| readonly RED_INTEGER: 0x8D94;
| readonly RGB_INTEGER: 0x8D98;
| readonly RGBA_INTEGER: 0x8D99;
| readonly SAMPLER_2D_ARRAY: 0x8DC1;
| readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
| readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
| readonly UNSIGNED_INT_VEC2: 0x8DC6;
| readonly UNSIGNED_INT_VEC3: 0x8DC7;
| readonly UNSIGNED_INT_VEC4: 0x8DC8;
| readonly INT_SAMPLER_2D: 0x8DCA;
| readonly INT_SAMPLER_3D: 0x8DCB;
| readonly INT_SAMPLER_CUBE: 0x8DCC;
| readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
| readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
| readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
| readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
| readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
| readonly DEPTH_COMPONENT32F: 0x8CAC;
| readonly DEPTH32F_STENCIL8: 0x8CAD;
| readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
| readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
| readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
| readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
| readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
| readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
| readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
| readonly FRAMEBUFFER_DEFAULT: 0x8218;
| readonly UNSIGNED_INT_24_8: 0x84FA;
| readonly DEPTH24_STENCIL8: 0x88F0;
| readonly UNSIGNED_NORMALIZED: 0x8C17;
| readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
| readonly READ_FRAMEBUFFER: 0x8CA8;
| readonly DRAW_FRAMEBUFFER: 0x8CA9;
| readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
| readonly RENDERBUFFER_SAMPLES: 0x8CAB;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
| readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
| readonly COLOR_ATTACHMENT1: 0x8CE1;
| readonly COLOR_ATTACHMENT2: 0x8CE2;
| readonly COLOR_ATTACHMENT3: 0x8CE3;
| readonly COLOR_ATTACHMENT4: 0x8CE4;
| readonly COLOR_ATTACHMENT5: 0x8CE5;
| readonly COLOR_ATTACHMENT6: 0x8CE6;
| readonly COLOR_ATTACHMENT7: 0x8CE7;
| readonly COLOR_ATTACHMENT8: 0x8CE8;
| readonly COLOR_ATTACHMENT9: 0x8CE9;
| readonly COLOR_ATTACHMENT10: 0x8CEA;
| readonly COLOR_ATTACHMENT11: 0x8CEB;
| readonly COLOR_ATTACHMENT12: 0x8CEC;
| readonly COLOR_ATTACHMENT13: 0x8CED;
| readonly COLOR_ATTACHMENT14: 0x8CEE;
| readonly COLOR_ATTACHMENT15: 0x8CEF;
| readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
| readonly MAX_SAMPLES: 0x8D57;
| readonly HALF_FLOAT: 0x140B;
| readonly RG: 0x8227;
| readonly RG_INTEGER: 0x8228;
| readonly R8: 0x8229;
| readonly RG8: 0x822B;
| readonly R16F: 0x822D;
| readonly R32F: 0x822E;
| readonly RG16F: 0x822F;
| readonly RG32F: 0x8230;
| readonly R8I: 0x8231;
| readonly R8UI: 0x8232;
| readonly R16I: 0x8233;
| readonly R16UI: 0x8234;
| readonly R32I: 0x8235;
| readonly R32UI: 0x8236;
| readonly RG8I: 0x8237;
| readonly RG8UI: 0x8238;
| readonly RG16I: 0x8239;
| readonly RG16UI: 0x823A;
| readonly RG32I: 0x823B;
| readonly RG32UI: 0x823C;
| readonly VERTEX_ARRAY_BINDING: 0x85B5;
| readonly R8_SNORM: 0x8F94;
| readonly RG8_SNORM: 0x8F95;
| readonly RGB8_SNORM: 0x8F96;
| readonly RGBA8_SNORM: 0x8F97;
| readonly SIGNED_NORMALIZED: 0x8F9C;
| readonly COPY_READ_BUFFER: 0x8F36;
| readonly COPY_WRITE_BUFFER: 0x8F37;
| readonly COPY_READ_BUFFER_BINDING: 0x8F36;
| readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
| readonly UNIFORM_BUFFER: 0x8A11;
| readonly UNIFORM_BUFFER_BINDING: 0x8A28;
| readonly UNIFORM_BUFFER_START: 0x8A29;
| readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
| readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
| readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
| readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
| readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
| readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
| readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
| readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
| readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
| readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
| readonly UNIFORM_TYPE: 0x8A37;
| readonly UNIFORM_SIZE: 0x8A38;
| readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
| readonly UNIFORM_OFFSET: 0x8A3B;
| readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
| readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
| readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
| readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
| readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
| readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
| readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
| readonly INVALID_INDEX: 0xFFFFFFFF;
| readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
| readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
| readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
| readonly OBJECT_TYPE: 0x9112;
| readonly SYNC_CONDITION: 0x9113;
| readonly SYNC_STATUS: 0x9114;
| readonly SYNC_FLAGS: 0x9115;
| readonly SYNC_FENCE: 0x9116;
| readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
| readonly UNSIGNALED: 0x9118;
| readonly SIGNALED: 0x9119;
| readonly ALREADY_SIGNALED: 0x911A;
| readonly TIMEOUT_EXPIRED: 0x911B;
| readonly CONDITION_SATISFIED: 0x911C;
| readonly WAIT_FAILED: 0x911D;
| readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
| readonly ANY_SAMPLES_PASSED: 0x8C2F;
| readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
| readonly SAMPLER_BINDING: 0x8919;
| readonly RGB10_A2UI: 0x906F;
| readonly INT_2_10_10_10_REV: 0x8D9F;
| readonly TRANSFORM_FEEDBACK: 0x8E22;
| readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
| readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
| readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
| readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
| readonly MAX_ELEMENT_INDEX: 0x8D6B;
| readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
| readonly TIMEOUT_IGNORED: -1;
| readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| };
|
| interface WebGL2RenderingContextBase {
| beginQuery(target: GLenum, query: WebGLQuery): void;
| beginTransformFeedback(primitiveMode: GLenum): void;
| bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
| bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
| bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
| bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
| bindVertexArray(array: WebGLVertexArrayObject | null): void;
| blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
| clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
| clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
| clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
| clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
| clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
| compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
| copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| createQuery(): WebGLQuery | null;
| createSampler(): WebGLSampler | null;
| createTransformFeedback(): WebGLTransformFeedback | null;
| createVertexArray(): WebGLVertexArrayObject | null;
| deleteQuery(query: WebGLQuery | null): void;
| deleteSampler(sampler: WebGLSampler | null): void;
| deleteSync(sync: WebGLSync | null): void;
| deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
| deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
| drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
| drawBuffers(buffers: GLenum[]): void;
| drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
| drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
| endQuery(target: GLenum): void;
| endTransformFeedback(): void;
| fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
| framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
| getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
| getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
| getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
| getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
| getFragDataLocation(program: WebGLProgram, name: string): GLint;
| getIndexedParameter(target: GLenum, index: GLuint): any;
| getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
| getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
| getQueryParameter(query: WebGLQuery, pname: GLenum): any;
| getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
| getSyncParameter(sync: WebGLSync, pname: GLenum): any;
| getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
| getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
| invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
| invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| isQuery(query: WebGLQuery | null): GLboolean;
| isSampler(sampler: WebGLSampler | null): GLboolean;
| isSync(sync: WebGLSync | null): GLboolean;
| isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
| isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
| pauseTransformFeedback(): void;
| readBuffer(src: GLenum): void;
| renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| resumeTransformFeedback(): void;
| samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
| samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
| transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
| uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
| uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
| uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
| uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
| uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
| uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
| vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
| vertexAttribI4iv(index: GLuint, values: Int32List): void;
| vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
| vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
| vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
| waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
| readonly READ_BUFFER: 0x0C02;
| readonly UNPACK_ROW_LENGTH: 0x0CF2;
| readonly UNPACK_SKIP_ROWS: 0x0CF3;
| readonly UNPACK_SKIP_PIXELS: 0x0CF4;
| readonly PACK_ROW_LENGTH: 0x0D02;
| readonly PACK_SKIP_ROWS: 0x0D03;
| readonly PACK_SKIP_PIXELS: 0x0D04;
| readonly COLOR: 0x1800;
| readonly DEPTH: 0x1801;
| readonly STENCIL: 0x1802;
| readonly RED: 0x1903;
| readonly RGB8: 0x8051;
| readonly RGBA8: 0x8058;
| readonly RGB10_A2: 0x8059;
| readonly TEXTURE_BINDING_3D: 0x806A;
| readonly UNPACK_SKIP_IMAGES: 0x806D;
| readonly UNPACK_IMAGE_HEIGHT: 0x806E;
| readonly TEXTURE_3D: 0x806F;
| readonly TEXTURE_WRAP_R: 0x8072;
| readonly MAX_3D_TEXTURE_SIZE: 0x8073;
| readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
| readonly MAX_ELEMENTS_VERTICES: 0x80E8;
| readonly MAX_ELEMENTS_INDICES: 0x80E9;
| readonly TEXTURE_MIN_LOD: 0x813A;
| readonly TEXTURE_MAX_LOD: 0x813B;
| readonly TEXTURE_BASE_LEVEL: 0x813C;
| readonly TEXTURE_MAX_LEVEL: 0x813D;
| readonly MIN: 0x8007;
| readonly MAX: 0x8008;
| readonly DEPTH_COMPONENT24: 0x81A6;
| readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
| readonly TEXTURE_COMPARE_MODE: 0x884C;
| readonly TEXTURE_COMPARE_FUNC: 0x884D;
| readonly CURRENT_QUERY: 0x8865;
| readonly QUERY_RESULT: 0x8866;
| readonly QUERY_RESULT_AVAILABLE: 0x8867;
| readonly STREAM_READ: 0x88E1;
| readonly STREAM_COPY: 0x88E2;
| readonly STATIC_READ: 0x88E5;
| readonly STATIC_COPY: 0x88E6;
| readonly DYNAMIC_READ: 0x88E9;
| readonly DYNAMIC_COPY: 0x88EA;
| readonly MAX_DRAW_BUFFERS: 0x8824;
| readonly DRAW_BUFFER0: 0x8825;
| readonly DRAW_BUFFER1: 0x8826;
| readonly DRAW_BUFFER2: 0x8827;
| readonly DRAW_BUFFER3: 0x8828;
| readonly DRAW_BUFFER4: 0x8829;
| readonly DRAW_BUFFER5: 0x882A;
| readonly DRAW_BUFFER6: 0x882B;
| readonly DRAW_BUFFER7: 0x882C;
| readonly DRAW_BUFFER8: 0x882D;
| readonly DRAW_BUFFER9: 0x882E;
| readonly DRAW_BUFFER10: 0x882F;
| readonly DRAW_BUFFER11: 0x8830;
| readonly DRAW_BUFFER12: 0x8831;
| readonly DRAW_BUFFER13: 0x8832;
| readonly DRAW_BUFFER14: 0x8833;
| readonly DRAW_BUFFER15: 0x8834;
| readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
| readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
| readonly SAMPLER_3D: 0x8B5F;
| readonly SAMPLER_2D_SHADOW: 0x8B62;
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
| readonly PIXEL_PACK_BUFFER: 0x88EB;
| readonly PIXEL_UNPACK_BUFFER: 0x88EC;
| readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
| readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
| readonly FLOAT_MAT2x3: 0x8B65;
| readonly FLOAT_MAT2x4: 0x8B66;
| readonly FLOAT_MAT3x2: 0x8B67;
| readonly FLOAT_MAT3x4: 0x8B68;
| readonly FLOAT_MAT4x2: 0x8B69;
| readonly FLOAT_MAT4x3: 0x8B6A;
| readonly SRGB: 0x8C40;
| readonly SRGB8: 0x8C41;
| readonly SRGB8_ALPHA8: 0x8C43;
| readonly COMPARE_REF_TO_TEXTURE: 0x884E;
| readonly RGBA32F: 0x8814;
| readonly RGB32F: 0x8815;
| readonly RGBA16F: 0x881A;
| readonly RGB16F: 0x881B;
| readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
| readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
| readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
| readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
| readonly MAX_VARYING_COMPONENTS: 0x8B4B;
| readonly TEXTURE_2D_ARRAY: 0x8C1A;
| readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
| readonly R11F_G11F_B10F: 0x8C3A;
| readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
| readonly RGB9_E5: 0x8C3D;
| readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
| readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
| readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
| readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
| readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
| readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
| readonly RASTERIZER_DISCARD: 0x8C89;
| readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
| readonly INTERLEAVED_ATTRIBS: 0x8C8C;
| readonly SEPARATE_ATTRIBS: 0x8C8D;
| readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
| readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
| readonly RGBA32UI: 0x8D70;
| readonly RGB32UI: 0x8D71;
| readonly RGBA16UI: 0x8D76;
| readonly RGB16UI: 0x8D77;
| readonly RGBA8UI: 0x8D7C;
| readonly RGB8UI: 0x8D7D;
| readonly RGBA32I: 0x8D82;
| readonly RGB32I: 0x8D83;
| readonly RGBA16I: 0x8D88;
| readonly RGB16I: 0x8D89;
| readonly RGBA8I: 0x8D8E;
| readonly RGB8I: 0x8D8F;
| readonly RED_INTEGER: 0x8D94;
| readonly RGB_INTEGER: 0x8D98;
| readonly RGBA_INTEGER: 0x8D99;
| readonly SAMPLER_2D_ARRAY: 0x8DC1;
| readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
| readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
| readonly UNSIGNED_INT_VEC2: 0x8DC6;
| readonly UNSIGNED_INT_VEC3: 0x8DC7;
| readonly UNSIGNED_INT_VEC4: 0x8DC8;
| readonly INT_SAMPLER_2D: 0x8DCA;
| readonly INT_SAMPLER_3D: 0x8DCB;
| readonly INT_SAMPLER_CUBE: 0x8DCC;
| readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
| readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
| readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
| readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
| readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
| readonly DEPTH_COMPONENT32F: 0x8CAC;
| readonly DEPTH32F_STENCIL8: 0x8CAD;
| readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
| readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
| readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
| readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
| readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
| readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
| readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
| readonly FRAMEBUFFER_DEFAULT: 0x8218;
| readonly UNSIGNED_INT_24_8: 0x84FA;
| readonly DEPTH24_STENCIL8: 0x88F0;
| readonly UNSIGNED_NORMALIZED: 0x8C17;
| readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
| readonly READ_FRAMEBUFFER: 0x8CA8;
| readonly DRAW_FRAMEBUFFER: 0x8CA9;
| readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
| readonly RENDERBUFFER_SAMPLES: 0x8CAB;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
| readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
| readonly COLOR_ATTACHMENT1: 0x8CE1;
| readonly COLOR_ATTACHMENT2: 0x8CE2;
| readonly COLOR_ATTACHMENT3: 0x8CE3;
| readonly COLOR_ATTACHMENT4: 0x8CE4;
| readonly COLOR_ATTACHMENT5: 0x8CE5;
| readonly COLOR_ATTACHMENT6: 0x8CE6;
| readonly COLOR_ATTACHMENT7: 0x8CE7;
| readonly COLOR_ATTACHMENT8: 0x8CE8;
| readonly COLOR_ATTACHMENT9: 0x8CE9;
| readonly COLOR_ATTACHMENT10: 0x8CEA;
| readonly COLOR_ATTACHMENT11: 0x8CEB;
| readonly COLOR_ATTACHMENT12: 0x8CEC;
| readonly COLOR_ATTACHMENT13: 0x8CED;
| readonly COLOR_ATTACHMENT14: 0x8CEE;
| readonly COLOR_ATTACHMENT15: 0x8CEF;
| readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
| readonly MAX_SAMPLES: 0x8D57;
| readonly HALF_FLOAT: 0x140B;
| readonly RG: 0x8227;
| readonly RG_INTEGER: 0x8228;
| readonly R8: 0x8229;
| readonly RG8: 0x822B;
| readonly R16F: 0x822D;
| readonly R32F: 0x822E;
| readonly RG16F: 0x822F;
| readonly RG32F: 0x8230;
| readonly R8I: 0x8231;
| readonly R8UI: 0x8232;
| readonly R16I: 0x8233;
| readonly R16UI: 0x8234;
| readonly R32I: 0x8235;
| readonly R32UI: 0x8236;
| readonly RG8I: 0x8237;
| readonly RG8UI: 0x8238;
| readonly RG16I: 0x8239;
| readonly RG16UI: 0x823A;
| readonly RG32I: 0x823B;
| readonly RG32UI: 0x823C;
| readonly VERTEX_ARRAY_BINDING: 0x85B5;
| readonly R8_SNORM: 0x8F94;
| readonly RG8_SNORM: 0x8F95;
| readonly RGB8_SNORM: 0x8F96;
| readonly RGBA8_SNORM: 0x8F97;
| readonly SIGNED_NORMALIZED: 0x8F9C;
| readonly COPY_READ_BUFFER: 0x8F36;
| readonly COPY_WRITE_BUFFER: 0x8F37;
| readonly COPY_READ_BUFFER_BINDING: 0x8F36;
| readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
| readonly UNIFORM_BUFFER: 0x8A11;
| readonly UNIFORM_BUFFER_BINDING: 0x8A28;
| readonly UNIFORM_BUFFER_START: 0x8A29;
| readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
| readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
| readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
| readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
| readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
| readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
| readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
| readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
| readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
| readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
| readonly UNIFORM_TYPE: 0x8A37;
| readonly UNIFORM_SIZE: 0x8A38;
| readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
| readonly UNIFORM_OFFSET: 0x8A3B;
| readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
| readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
| readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
| readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
| readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
| readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
| readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
| readonly INVALID_INDEX: 0xFFFFFFFF;
| readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
| readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
| readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
| readonly OBJECT_TYPE: 0x9112;
| readonly SYNC_CONDITION: 0x9113;
| readonly SYNC_STATUS: 0x9114;
| readonly SYNC_FLAGS: 0x9115;
| readonly SYNC_FENCE: 0x9116;
| readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
| readonly UNSIGNALED: 0x9118;
| readonly SIGNALED: 0x9119;
| readonly ALREADY_SIGNALED: 0x911A;
| readonly TIMEOUT_EXPIRED: 0x911B;
| readonly CONDITION_SATISFIED: 0x911C;
| readonly WAIT_FAILED: 0x911D;
| readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
| readonly ANY_SAMPLES_PASSED: 0x8C2F;
| readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
| readonly SAMPLER_BINDING: 0x8919;
| readonly RGB10_A2UI: 0x906F;
| readonly INT_2_10_10_10_REV: 0x8D9F;
| readonly TRANSFORM_FEEDBACK: 0x8E22;
| readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
| readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
| readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
| readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
| readonly MAX_ELEMENT_INDEX: 0x8D6B;
| readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
| readonly TIMEOUT_IGNORED: -1;
| readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
| }
|
| interface WebGL2RenderingContextOverloads {
| bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
| bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
| bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
| bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
| bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| }
|
| /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
| interface WebGLActiveInfo {
| readonly name: string;
| readonly size: GLint;
| readonly type: GLenum;
| }
|
| declare var WebGLActiveInfo: {
| prototype: WebGLActiveInfo;
| new(): WebGLActiveInfo;
| };
|
| /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
| interface WebGLBuffer {
| }
|
| declare var WebGLBuffer: {
| prototype: WebGLBuffer;
| new(): WebGLBuffer;
| };
|
| /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
| interface WebGLContextEvent extends Event {
| readonly statusMessage: string;
| }
|
| declare var WebGLContextEvent: {
| prototype: WebGLContextEvent;
| new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
| };
|
| /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
| interface WebGLFramebuffer {
| }
|
| declare var WebGLFramebuffer: {
| prototype: WebGLFramebuffer;
| new(): WebGLFramebuffer;
| };
|
| /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
| interface WebGLProgram {
| }
|
| declare var WebGLProgram: {
| prototype: WebGLProgram;
| new(): WebGLProgram;
| };
|
| interface WebGLQuery {
| }
|
| declare var WebGLQuery: {
| prototype: WebGLQuery;
| new(): WebGLQuery;
| };
|
| /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
| interface WebGLRenderbuffer {
| }
|
| declare var WebGLRenderbuffer: {
| prototype: WebGLRenderbuffer;
| new(): WebGLRenderbuffer;
| };
|
| /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
| interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
| }
|
| declare var WebGLRenderingContext: {
| prototype: WebGLRenderingContext;
| new(): WebGLRenderingContext;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| };
|
| interface WebGLRenderingContextBase {
| readonly canvas: HTMLCanvasElement | OffscreenCanvas;
| readonly drawingBufferHeight: GLsizei;
| readonly drawingBufferWidth: GLsizei;
| activeTexture(texture: GLenum): void;
| attachShader(program: WebGLProgram, shader: WebGLShader): void;
| bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
| bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
| bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
| bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
| bindTexture(target: GLenum, texture: WebGLTexture | null): void;
| blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
| blendEquation(mode: GLenum): void;
| blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
| blendFunc(sfactor: GLenum, dfactor: GLenum): void;
| blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
| checkFramebufferStatus(target: GLenum): GLenum;
| clear(mask: GLbitfield): void;
| clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
| clearDepth(depth: GLclampf): void;
| clearStencil(s: GLint): void;
| colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
| compileShader(shader: WebGLShader): void;
| copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
| copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| createBuffer(): WebGLBuffer | null;
| createFramebuffer(): WebGLFramebuffer | null;
| createProgram(): WebGLProgram | null;
| createRenderbuffer(): WebGLRenderbuffer | null;
| createShader(type: GLenum): WebGLShader | null;
| createTexture(): WebGLTexture | null;
| cullFace(mode: GLenum): void;
| deleteBuffer(buffer: WebGLBuffer | null): void;
| deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
| deleteProgram(program: WebGLProgram | null): void;
| deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
| deleteShader(shader: WebGLShader | null): void;
| deleteTexture(texture: WebGLTexture | null): void;
| depthFunc(func: GLenum): void;
| depthMask(flag: GLboolean): void;
| depthRange(zNear: GLclampf, zFar: GLclampf): void;
| detachShader(program: WebGLProgram, shader: WebGLShader): void;
| disable(cap: GLenum): void;
| disableVertexAttribArray(index: GLuint): void;
| drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
| drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
| enable(cap: GLenum): void;
| enableVertexAttribArray(index: GLuint): void;
| finish(): void;
| flush(): void;
| framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
| framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
| frontFace(mode: GLenum): void;
| generateMipmap(target: GLenum): void;
| getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
| getAttribLocation(program: WebGLProgram, name: string): GLint;
| getBufferParameter(target: GLenum, pname: GLenum): any;
| getContextAttributes(): WebGLContextAttributes | null;
| getError(): GLenum;
| getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
| getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
| getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
| getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
| getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
| getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
| getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
| getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
| getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
| getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
| getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
| getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
| getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
| getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
| getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
| getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
| getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
| getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
| getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
| getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
| getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
| getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
| getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
| getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
| getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
| getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
| getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
| getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
| getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
| getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
| getExtension(name: string): any;
| getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
| getParameter(pname: GLenum): any;
| getProgramInfoLog(program: WebGLProgram): string | null;
| getProgramParameter(program: WebGLProgram, pname: GLenum): any;
| getRenderbufferParameter(target: GLenum, pname: GLenum): any;
| getShaderInfoLog(shader: WebGLShader): string | null;
| getShaderParameter(shader: WebGLShader, pname: GLenum): any;
| getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
| getShaderSource(shader: WebGLShader): string | null;
| getSupportedExtensions(): string[] | null;
| getTexParameter(target: GLenum, pname: GLenum): any;
| getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
| getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
| getVertexAttrib(index: GLuint, pname: GLenum): any;
| getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
| hint(target: GLenum, mode: GLenum): void;
| isBuffer(buffer: WebGLBuffer | null): GLboolean;
| isContextLost(): boolean;
| isEnabled(cap: GLenum): GLboolean;
| isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
| isProgram(program: WebGLProgram | null): GLboolean;
| isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
| isShader(shader: WebGLShader | null): GLboolean;
| isTexture(texture: WebGLTexture | null): GLboolean;
| lineWidth(width: GLfloat): void;
| linkProgram(program: WebGLProgram): void;
| pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
| polygonOffset(factor: GLfloat, units: GLfloat): void;
| renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| sampleCoverage(value: GLclampf, invert: GLboolean): void;
| scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| shaderSource(shader: WebGLShader, source: string): void;
| stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
| stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
| stencilMask(mask: GLuint): void;
| stencilMaskSeparate(face: GLenum, mask: GLuint): void;
| stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
| stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
| texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
| texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
| uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
| uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
| uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
| uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
| uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
| uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
| uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
| uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
| useProgram(program: WebGLProgram | null): void;
| validateProgram(program: WebGLProgram): void;
| vertexAttrib1f(index: GLuint, x: GLfloat): void;
| vertexAttrib1fv(index: GLuint, values: Float32List): void;
| vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
| vertexAttrib2fv(index: GLuint, values: Float32List): void;
| vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
| vertexAttrib3fv(index: GLuint, values: Float32List): void;
| vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
| vertexAttrib4fv(index: GLuint, values: Float32List): void;
| vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
| viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| }
|
| interface WebGLRenderingContextOverloads {
| bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
| bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
| bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| }
|
| interface WebGLSampler {
| }
|
| declare var WebGLSampler: {
| prototype: WebGLSampler;
| new(): WebGLSampler;
| };
|
| /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
| interface WebGLShader {
| }
|
| declare var WebGLShader: {
| prototype: WebGLShader;
| new(): WebGLShader;
| };
|
| /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
| interface WebGLShaderPrecisionFormat {
| readonly precision: GLint;
| readonly rangeMax: GLint;
| readonly rangeMin: GLint;
| }
|
| declare var WebGLShaderPrecisionFormat: {
| prototype: WebGLShaderPrecisionFormat;
| new(): WebGLShaderPrecisionFormat;
| };
|
| interface WebGLSync {
| }
|
| declare var WebGLSync: {
| prototype: WebGLSync;
| new(): WebGLSync;
| };
|
| /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
| interface WebGLTexture {
| }
|
| declare var WebGLTexture: {
| prototype: WebGLTexture;
| new(): WebGLTexture;
| };
|
| interface WebGLTransformFeedback {
| }
|
| declare var WebGLTransformFeedback: {
| prototype: WebGLTransformFeedback;
| new(): WebGLTransformFeedback;
| };
|
| /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
| interface WebGLUniformLocation {
| }
|
| declare var WebGLUniformLocation: {
| prototype: WebGLUniformLocation;
| new(): WebGLUniformLocation;
| };
|
| interface WebGLVertexArrayObject {
| }
|
| declare var WebGLVertexArrayObject: {
| prototype: WebGLVertexArrayObject;
| new(): WebGLVertexArrayObject;
| };
|
| interface WebGLVertexArrayObjectOES {
| }
|
| interface WebSocketEventMap {
| "close": CloseEvent;
| "error": Event;
| "message": MessageEvent;
| "open": Event;
| }
|
| /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
| interface WebSocket extends EventTarget {
| /**
| * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
| *
| * Can be set, to change how binary data is returned. The default is "blob".
| */
| binaryType: BinaryType;
| /**
| * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
| *
| * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
| */
| readonly bufferedAmount: number;
| /** Returns the extensions selected by the server, if any. */
| readonly extensions: string;
| onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
| onerror: ((this: WebSocket, ev: Event) => any) | null;
| onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
| onopen: ((this: WebSocket, ev: Event) => any) | null;
| /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
| readonly protocol: string;
| /** Returns the state of the WebSocket object's connection. It can have the values described below. */
| readonly readyState: number;
| /** Returns the URL that was used to establish the WebSocket connection. */
| readonly url: string;
| /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
| close(code?: number, reason?: string): void;
| /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
| send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSING: 2;
| readonly CLOSED: 3;
| addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var WebSocket: {
| prototype: WebSocket;
| new(url: string | URL, protocols?: string | string[]): WebSocket;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSING: 2;
| readonly CLOSED: 3;
| };
|
| /** Events that occur due to the user moving a mouse wheel or similar input device. */
| interface WheelEvent extends MouseEvent {
| readonly deltaMode: number;
| readonly deltaX: number;
| readonly deltaY: number;
| readonly deltaZ: number;
| readonly DOM_DELTA_PIXEL: 0x00;
| readonly DOM_DELTA_LINE: 0x01;
| readonly DOM_DELTA_PAGE: 0x02;
| }
|
| declare var WheelEvent: {
| prototype: WheelEvent;
| new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
| readonly DOM_DELTA_PIXEL: 0x00;
| readonly DOM_DELTA_LINE: 0x01;
| readonly DOM_DELTA_PAGE: 0x02;
| };
|
| interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
| "DOMContentLoaded": Event;
| "devicemotion": DeviceMotionEvent;
| "deviceorientation": DeviceOrientationEvent;
| "gamepadconnected": GamepadEvent;
| "gamepaddisconnected": GamepadEvent;
| "orientationchange": Event;
| }
|
| /** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
| interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
| /** @deprecated This is a legacy alias of \`navigator\`. */
| readonly clientInformation: Navigator;
| /** Returns true if the window has been closed, false otherwise. */
| readonly closed: boolean;
| /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
| readonly customElements: CustomElementRegistry;
| readonly devicePixelRatio: number;
| readonly document: Document;
| /** @deprecated */
| readonly event: Event | undefined;
| /** @deprecated */
| readonly external: External;
| readonly frameElement: Element | null;
| readonly frames: WindowProxy;
| readonly history: History;
| readonly innerHeight: number;
| readonly innerWidth: number;
| readonly length: number;
| get location(): Location;
| set location(href: string | Location);
| /** Returns true if the location bar is visible; otherwise, returns false. */
| readonly locationbar: BarProp;
| /** Returns true if the menu bar is visible; otherwise, returns false. */
| readonly menubar: BarProp;
| name: string;
| readonly navigator: Navigator;
| /** Available only in secure contexts. */
| ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
| /** Available only in secure contexts. */
| ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
| /** @deprecated */
| onorientationchange: ((this: Window, ev: Event) => any) | null;
| opener: any;
| /** @deprecated */
| readonly orientation: number;
| readonly outerHeight: number;
| readonly outerWidth: number;
| /** @deprecated This is a legacy alias of \`scrollX\`. */
| readonly pageXOffset: number;
| /** @deprecated This is a legacy alias of \`scrollY\`. */
| readonly pageYOffset: number;
| /**
| * Refers to either the parent WindowProxy, or itself.
| *
| * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
| */
| readonly parent: WindowProxy;
| /** Returns true if the personal bar is visible; otherwise, returns false. */
| readonly personalbar: BarProp;
| readonly screen: Screen;
| readonly screenLeft: number;
| readonly screenTop: number;
| readonly screenX: number;
| readonly screenY: number;
| readonly scrollX: number;
| readonly scrollY: number;
| /** Returns true if the scrollbars are visible; otherwise, returns false. */
| readonly scrollbars: BarProp;
| readonly self: Window & typeof globalThis;
| readonly speechSynthesis: SpeechSynthesis;
| /** @deprecated */
| status: string;
| /** Returns true if the status bar is visible; otherwise, returns false. */
| readonly statusbar: BarProp;
| /** Returns true if the toolbar is visible; otherwise, returns false. */
| readonly toolbar: BarProp;
| readonly top: WindowProxy | null;
| readonly visualViewport: VisualViewport | null;
| readonly window: Window & typeof globalThis;
| alert(message?: any): void;
| blur(): void;
| cancelIdleCallback(handle: number): void;
| /** @deprecated */
| captureEvents(): void;
| /** Closes the window. */
| close(): void;
| confirm(message?: string): boolean;
| /** Moves the focus to the window's browsing context, if any. */
| focus(): void;
| getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
| getSelection(): Selection | null;
| matchMedia(query: string): MediaQueryList;
| moveBy(x: number, y: number): void;
| moveTo(x: number, y: number): void;
| open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
| /**
| * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
| *
| * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
| *
| * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
| *
| * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
| *
| * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
| */
| postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
| postMessage(message: any, options?: WindowPostMessageOptions): void;
| print(): void;
| prompt(message?: string, _default?: string): string | null;
| /** @deprecated */
| releaseEvents(): void;
| requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
| resizeBy(x: number, y: number): void;
| resizeTo(width: number, height: number): void;
| scroll(options?: ScrollToOptions): void;
| scroll(x: number, y: number): void;
| scrollBy(options?: ScrollToOptions): void;
| scrollBy(x: number, y: number): void;
| scrollTo(options?: ScrollToOptions): void;
| scrollTo(x: number, y: number): void;
| /** Cancels the document load. */
| stop(): void;
| addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| [index: number]: Window;
| }
|
| declare var Window: {
| prototype: Window;
| new(): Window;
| };
|
| interface WindowEventHandlersEventMap {
| "afterprint": Event;
| "beforeprint": Event;
| "beforeunload": BeforeUnloadEvent;
| "gamepadconnected": GamepadEvent;
| "gamepaddisconnected": GamepadEvent;
| "hashchange": HashChangeEvent;
| "languagechange": Event;
| "message": MessageEvent;
| "messageerror": MessageEvent;
| "offline": Event;
| "online": Event;
| "pagehide": PageTransitionEvent;
| "pageshow": PageTransitionEvent;
| "popstate": PopStateEvent;
| "rejectionhandled": PromiseRejectionEvent;
| "storage": StorageEvent;
| "unhandledrejection": PromiseRejectionEvent;
| "unload": Event;
| }
|
| interface WindowEventHandlers {
| onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
| onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
| onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
| ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
| ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
| onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
| onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
| onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
| onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
| ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
| onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
| onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
| onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
| onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
| onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
| onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
| onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
| addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| interface WindowLocalStorage {
| readonly localStorage: Storage;
| }
|
| interface WindowOrWorkerGlobalScope {
| /** Available only in secure contexts. */
| readonly caches: CacheStorage;
| readonly crossOriginIsolated: boolean;
| readonly crypto: Crypto;
| readonly indexedDB: IDBFactory;
| readonly isSecureContext: boolean;
| readonly origin: string;
| readonly performance: Performance;
| atob(data: string): string;
| btoa(data: string): string;
| clearInterval(id: number | undefined): void;
| clearTimeout(id: number | undefined): void;
| createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
| queueMicrotask(callback: VoidFunction): void;
| reportError(e: any): void;
| setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| structuredClone(value: any, options?: StructuredSerializeOptions): any;
| }
|
| interface WindowSessionStorage {
| readonly sessionStorage: Storage;
| }
|
| interface WorkerEventMap extends AbstractWorkerEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
| interface Worker extends EventTarget, AbstractWorker {
| onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
| /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| /** Aborts worker's associated global environment. */
| terminate(): void;
| addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Worker: {
| prototype: Worker;
| new(scriptURL: string | URL, options?: WorkerOptions): Worker;
| };
|
| /** Available only in secure contexts. */
| interface Worklet {
| /**
| * Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
| *
| * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
| *
| * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
| */
| addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
| }
|
| declare var Worklet: {
| prototype: Worklet;
| new(): Worklet;
| };
|
| /** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
| interface WritableStream<W = any> {
| readonly locked: boolean;
| abort(reason?: any): Promise<void>;
| close(): Promise<void>;
| getWriter(): WritableStreamDefaultWriter<W>;
| }
|
| declare var WritableStream: {
| prototype: WritableStream;
| new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
| };
|
| /** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
| interface WritableStreamDefaultController {
| readonly signal: AbortSignal;
| error(e?: any): void;
| }
|
| declare var WritableStreamDefaultController: {
| prototype: WritableStreamDefaultController;
| new(): WritableStreamDefaultController;
| };
|
| /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
| interface WritableStreamDefaultWriter<W = any> {
| readonly closed: Promise<undefined>;
| readonly desiredSize: number | null;
| readonly ready: Promise<undefined>;
| abort(reason?: any): Promise<void>;
| close(): Promise<void>;
| releaseLock(): void;
| write(chunk?: W): Promise<void>;
| }
|
| declare var WritableStreamDefaultWriter: {
| prototype: WritableStreamDefaultWriter;
| new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
| };
|
| /** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
| interface XMLDocument extends Document {
| addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLDocument: {
| prototype: XMLDocument;
| new(): XMLDocument;
| };
|
| interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
| "readystatechange": Event;
| }
|
| /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
| interface XMLHttpRequest extends XMLHttpRequestEventTarget {
| onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
| /** Returns client's state. */
| readonly readyState: number;
| /** Returns the response body. */
| readonly response: any;
| /**
| * Returns response as text.
| *
| * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
| */
| readonly responseText: string;
| /**
| * Returns the response type.
| *
| * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
| *
| * When set: setting to "document" is ignored if current global object is not a Window object.
| *
| * When set: throws an "InvalidStateError" DOMException if state is loading or done.
| *
| * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
| */
| responseType: XMLHttpRequestResponseType;
| readonly responseURL: string;
| /**
| * Returns the response as document.
| *
| * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
| */
| readonly responseXML: Document | null;
| readonly status: number;
| readonly statusText: string;
| /**
| * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
| *
| * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
| */
| timeout: number;
| /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
| readonly upload: XMLHttpRequestUpload;
| /**
| * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
| *
| * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
| */
| withCredentials: boolean;
| /** Cancels any network activity. */
| abort(): void;
| getAllResponseHeaders(): string;
| getResponseHeader(name: string): string | null;
| /**
| * Sets the request method, request URL, and synchronous flag.
| *
| * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
| *
| * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
| *
| * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
| */
| open(method: string, url: string | URL): void;
| open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
| /**
| * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
| *
| * Throws an "InvalidStateError" DOMException if state is loading or done.
| */
| overrideMimeType(mime: string): void;
| /**
| * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
| *
| * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
| */
| send(body?: Document | XMLHttpRequestBodyInit | null): void;
| /**
| * Combines a header in author request headers.
| *
| * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
| *
| * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
| */
| setRequestHeader(name: string, value: string): void;
| readonly UNSENT: 0;
| readonly OPENED: 1;
| readonly HEADERS_RECEIVED: 2;
| readonly LOADING: 3;
| readonly DONE: 4;
| addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequest: {
| prototype: XMLHttpRequest;
| new(): XMLHttpRequest;
| readonly UNSENT: 0;
| readonly OPENED: 1;
| readonly HEADERS_RECEIVED: 2;
| readonly LOADING: 3;
| readonly DONE: 4;
| };
|
| interface XMLHttpRequestEventTargetEventMap {
| "abort": ProgressEvent<XMLHttpRequestEventTarget>;
| "error": ProgressEvent<XMLHttpRequestEventTarget>;
| "load": ProgressEvent<XMLHttpRequestEventTarget>;
| "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
| "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
| "progress": ProgressEvent<XMLHttpRequestEventTarget>;
| "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
| }
|
| interface XMLHttpRequestEventTarget extends EventTarget {
| onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequestEventTarget: {
| prototype: XMLHttpRequestEventTarget;
| new(): XMLHttpRequestEventTarget;
| };
|
| interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
| addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequestUpload: {
| prototype: XMLHttpRequestUpload;
| new(): XMLHttpRequestUpload;
| };
|
| /** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
| interface XMLSerializer {
| serializeToString(root: Node): string;
| }
|
| declare var XMLSerializer: {
| prototype: XMLSerializer;
| new(): XMLSerializer;
| };
|
| /** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
| interface XPathEvaluator extends XPathEvaluatorBase {
| }
|
| declare var XPathEvaluator: {
| prototype: XPathEvaluator;
| new(): XPathEvaluator;
| };
|
| interface XPathEvaluatorBase {
| createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
| createNSResolver(nodeResolver: Node): XPathNSResolver;
| evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
| }
|
| /** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
| interface XPathExpression {
| evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
| }
|
| declare var XPathExpression: {
| prototype: XPathExpression;
| new(): XPathExpression;
| };
|
| /** The results generated by evaluating an XPath expression within the context of a given node. */
| interface XPathResult {
| readonly booleanValue: boolean;
| readonly invalidIteratorState: boolean;
| readonly numberValue: number;
| readonly resultType: number;
| readonly singleNodeValue: Node | null;
| readonly snapshotLength: number;
| readonly stringValue: string;
| iterateNext(): Node | null;
| snapshotItem(index: number): Node | null;
| readonly ANY_TYPE: 0;
| readonly NUMBER_TYPE: 1;
| readonly STRING_TYPE: 2;
| readonly BOOLEAN_TYPE: 3;
| readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
| readonly ORDERED_NODE_ITERATOR_TYPE: 5;
| readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
| readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
| readonly ANY_UNORDERED_NODE_TYPE: 8;
| readonly FIRST_ORDERED_NODE_TYPE: 9;
| }
|
| declare var XPathResult: {
| prototype: XPathResult;
| new(): XPathResult;
| readonly ANY_TYPE: 0;
| readonly NUMBER_TYPE: 1;
| readonly STRING_TYPE: 2;
| readonly BOOLEAN_TYPE: 3;
| readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
| readonly ORDERED_NODE_ITERATOR_TYPE: 5;
| readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
| readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
| readonly ANY_UNORDERED_NODE_TYPE: 8;
| readonly FIRST_ORDERED_NODE_TYPE: 9;
| };
|
| /** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
| interface XSLTProcessor {
| clearParameters(): void;
| getParameter(namespaceURI: string | null, localName: string): any;
| importStylesheet(style: Node): void;
| removeParameter(namespaceURI: string | null, localName: string): void;
| reset(): void;
| setParameter(namespaceURI: string | null, localName: string, value: any): void;
| transformToDocument(source: Node): Document;
| transformToFragment(source: Node, output: Document): DocumentFragment;
| }
|
| declare var XSLTProcessor: {
| prototype: XSLTProcessor;
| new(): XSLTProcessor;
| };
|
| interface Console {
| assert(condition?: boolean, ...data: any[]): void;
| clear(): void;
| count(label?: string): void;
| countReset(label?: string): void;
| debug(...data: any[]): void;
| dir(item?: any, options?: any): void;
| dirxml(...data: any[]): void;
| error(...data: any[]): void;
| group(...data: any[]): void;
| groupCollapsed(...data: any[]): void;
| groupEnd(): void;
| info(...data: any[]): void;
| log(...data: any[]): void;
| table(tabularData?: any, properties?: string[]): void;
| time(label?: string): void;
| timeEnd(label?: string): void;
| timeLog(label?: string, ...data: any[]): void;
| timeStamp(label?: string): void;
| trace(...data: any[]): void;
| warn(...data: any[]): void;
| }
|
| declare var console: Console;
|
| /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
| declare namespace CSS {
| function escape(ident: string): string;
| function supports(property: string, value: string): boolean;
| function supports(conditionText: string): boolean;
| }
|
| declare namespace WebAssembly {
| interface CompileError extends Error {
| }
|
| var CompileError: {
| prototype: CompileError;
| new(message?: string): CompileError;
| (message?: string): CompileError;
| };
|
| interface Global {
| value: any;
| valueOf(): any;
| }
|
| var Global: {
| prototype: Global;
| new(descriptor: GlobalDescriptor, v?: any): Global;
| };
|
| interface Instance {
| readonly exports: Exports;
| }
|
| var Instance: {
| prototype: Instance;
| new(module: Module, importObject?: Imports): Instance;
| };
|
| interface LinkError extends Error {
| }
|
| var LinkError: {
| prototype: LinkError;
| new(message?: string): LinkError;
| (message?: string): LinkError;
| };
|
| interface Memory {
| readonly buffer: ArrayBuffer;
| grow(delta: number): number;
| }
|
| var Memory: {
| prototype: Memory;
| new(descriptor: MemoryDescriptor): Memory;
| };
|
| interface Module {
| }
|
| var Module: {
| prototype: Module;
| new(bytes: BufferSource): Module;
| customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
| exports(moduleObject: Module): ModuleExportDescriptor[];
| imports(moduleObject: Module): ModuleImportDescriptor[];
| };
|
| interface RuntimeError extends Error {
| }
|
| var RuntimeError: {
| prototype: RuntimeError;
| new(message?: string): RuntimeError;
| (message?: string): RuntimeError;
| };
|
| interface Table {
| readonly length: number;
| get(index: number): any;
| grow(delta: number, value?: any): number;
| set(index: number, value?: any): void;
| }
|
| var Table: {
| prototype: Table;
| new(descriptor: TableDescriptor, value?: any): Table;
| };
|
| interface GlobalDescriptor {
| mutable?: boolean;
| value: ValueType;
| }
|
| interface MemoryDescriptor {
| initial: number;
| maximum?: number;
| shared?: boolean;
| }
|
| interface ModuleExportDescriptor {
| kind: ImportExportKind;
| name: string;
| }
|
| interface ModuleImportDescriptor {
| kind: ImportExportKind;
| module: string;
| name: string;
| }
|
| interface TableDescriptor {
| element: TableKind;
| initial: number;
| maximum?: number;
| }
|
| interface WebAssemblyInstantiatedSource {
| instance: Instance;
| module: Module;
| }
|
| type ImportExportKind = "function" | "global" | "memory" | "table";
| type TableKind = "anyfunc" | "externref";
| type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
| type ExportValue = Function | Global | Memory | Table;
| type Exports = Record<string, ExportValue>;
| type ImportValue = ExportValue | number;
| type Imports = Record<string, ModuleImports>;
| type ModuleImports = Record<string, ImportValue>;
| function compile(bytes: BufferSource): Promise<Module>;
| function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
| function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
| function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
| function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
| function validate(bytes: BufferSource): boolean;
| }
|
| interface BlobCallback {
| (blob: Blob | null): void;
| }
|
| interface CustomElementConstructor {
| new (...params: any[]): HTMLElement;
| }
|
| interface DecodeErrorCallback {
| (error: DOMException): void;
| }
|
| interface DecodeSuccessCallback {
| (decodedData: AudioBuffer): void;
| }
|
| interface ErrorCallback {
| (err: DOMException): void;
| }
|
| interface FileCallback {
| (file: File): void;
| }
|
| interface FileSystemEntriesCallback {
| (entries: FileSystemEntry[]): void;
| }
|
| interface FileSystemEntryCallback {
| (entry: FileSystemEntry): void;
| }
|
| interface FrameRequestCallback {
| (time: DOMHighResTimeStamp): void;
| }
|
| interface FunctionStringCallback {
| (data: string): void;
| }
|
| interface IdleRequestCallback {
| (deadline: IdleDeadline): void;
| }
|
| interface IntersectionObserverCallback {
| (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
| }
|
| interface LockGrantedCallback {
| (lock: Lock | null): any;
| }
|
| interface MediaSessionActionHandler {
| (details: MediaSessionActionDetails): void;
| }
|
| interface MutationCallback {
| (mutations: MutationRecord[], observer: MutationObserver): void;
| }
|
| interface NotificationPermissionCallback {
| (permission: NotificationPermission): void;
| }
|
| interface OnBeforeUnloadEventHandlerNonNull {
| (event: Event): string | null;
| }
|
| interface OnErrorEventHandlerNonNull {
| (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
| }
|
| interface PerformanceObserverCallback {
| (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
| }
|
| interface PositionCallback {
| (position: GeolocationPosition): void;
| }
|
| interface PositionErrorCallback {
| (positionError: GeolocationPositionError): void;
| }
|
| interface QueuingStrategySize<T = any> {
| (chunk: T): number;
| }
|
| interface RTCPeerConnectionErrorCallback {
| (error: DOMException): void;
| }
|
| interface RTCSessionDescriptionCallback {
| (description: RTCSessionDescriptionInit): void;
| }
|
| interface RemotePlaybackAvailabilityCallback {
| (available: boolean): void;
| }
|
| interface ResizeObserverCallback {
| (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
| }
|
| interface TransformerFlushCallback<O> {
| (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
| }
|
| interface TransformerStartCallback<O> {
| (controller: TransformStreamDefaultController<O>): any;
| }
|
| interface TransformerTransformCallback<I, O> {
| (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkAbortCallback {
| (reason?: any): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkCloseCallback {
| (): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkStartCallback {
| (controller: WritableStreamDefaultController): any;
| }
|
| interface UnderlyingSinkWriteCallback<W> {
| (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourceCancelCallback {
| (reason?: any): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourcePullCallback<R> {
| (controller: ReadableStreamController<R>): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourceStartCallback<R> {
| (controller: ReadableStreamController<R>): any;
| }
|
| interface VideoFrameRequestCallback {
| (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
| }
|
| interface VoidFunction {
| (): void;
| }
|
| interface HTMLElementTagNameMap {
| "a": HTMLAnchorElement;
| "abbr": HTMLElement;
| "address": HTMLElement;
| "area": HTMLAreaElement;
| "article": HTMLElement;
| "aside": HTMLElement;
| "audio": HTMLAudioElement;
| "b": HTMLElement;
| "base": HTMLBaseElement;
| "bdi": HTMLElement;
| "bdo": HTMLElement;
| "blockquote": HTMLQuoteElement;
| "body": HTMLBodyElement;
| "br": HTMLBRElement;
| "button": HTMLButtonElement;
| "canvas": HTMLCanvasElement;
| "caption": HTMLTableCaptionElement;
| "cite": HTMLElement;
| "code": HTMLElement;
| "col": HTMLTableColElement;
| "colgroup": HTMLTableColElement;
| "data": HTMLDataElement;
| "datalist": HTMLDataListElement;
| "dd": HTMLElement;
| "del": HTMLModElement;
| "details": HTMLDetailsElement;
| "dfn": HTMLElement;
| "dialog": HTMLDialogElement;
| "div": HTMLDivElement;
| "dl": HTMLDListElement;
| "dt": HTMLElement;
| "em": HTMLElement;
| "embed": HTMLEmbedElement;
| "fieldset": HTMLFieldSetElement;
| "figcaption": HTMLElement;
| "figure": HTMLElement;
| "footer": HTMLElement;
| "form": HTMLFormElement;
| "h1": HTMLHeadingElement;
| "h2": HTMLHeadingElement;
| "h3": HTMLHeadingElement;
| "h4": HTMLHeadingElement;
| "h5": HTMLHeadingElement;
| "h6": HTMLHeadingElement;
| "head": HTMLHeadElement;
| "header": HTMLElement;
| "hgroup": HTMLElement;
| "hr": HTMLHRElement;
| "html": HTMLHtmlElement;
| "i": HTMLElement;
| "iframe": HTMLIFrameElement;
| "img": HTMLImageElement;
| "input": HTMLInputElement;
| "ins": HTMLModElement;
| "kbd": HTMLElement;
| "label": HTMLLabelElement;
| "legend": HTMLLegendElement;
| "li": HTMLLIElement;
| "link": HTMLLinkElement;
| "main": HTMLElement;
| "map": HTMLMapElement;
| "mark": HTMLElement;
| "menu": HTMLMenuElement;
| "meta": HTMLMetaElement;
| "meter": HTMLMeterElement;
| "nav": HTMLElement;
| "noscript": HTMLElement;
| "object": HTMLObjectElement;
| "ol": HTMLOListElement;
| "optgroup": HTMLOptGroupElement;
| "option": HTMLOptionElement;
| "output": HTMLOutputElement;
| "p": HTMLParagraphElement;
| "picture": HTMLPictureElement;
| "pre": HTMLPreElement;
| "progress": HTMLProgressElement;
| "q": HTMLQuoteElement;
| "rp": HTMLElement;
| "rt": HTMLElement;
| "ruby": HTMLElement;
| "s": HTMLElement;
| "samp": HTMLElement;
| "script": HTMLScriptElement;
| "section": HTMLElement;
| "select": HTMLSelectElement;
| "slot": HTMLSlotElement;
| "small": HTMLElement;
| "source": HTMLSourceElement;
| "span": HTMLSpanElement;
| "strong": HTMLElement;
| "style": HTMLStyleElement;
| "sub": HTMLElement;
| "summary": HTMLElement;
| "sup": HTMLElement;
| "table": HTMLTableElement;
| "tbody": HTMLTableSectionElement;
| "td": HTMLTableCellElement;
| "template": HTMLTemplateElement;
| "textarea": HTMLTextAreaElement;
| "tfoot": HTMLTableSectionElement;
| "th": HTMLTableCellElement;
| "thead": HTMLTableSectionElement;
| "time": HTMLTimeElement;
| "title": HTMLTitleElement;
| "tr": HTMLTableRowElement;
| "track": HTMLTrackElement;
| "u": HTMLElement;
| "ul": HTMLUListElement;
| "var": HTMLElement;
| "video": HTMLVideoElement;
| "wbr": HTMLElement;
| }
|
| interface HTMLElementDeprecatedTagNameMap {
| "acronym": HTMLElement;
| "applet": HTMLUnknownElement;
| "basefont": HTMLElement;
| "bgsound": HTMLUnknownElement;
| "big": HTMLElement;
| "blink": HTMLUnknownElement;
| "center": HTMLElement;
| "dir": HTMLDirectoryElement;
| "font": HTMLFontElement;
| "frame": HTMLFrameElement;
| "frameset": HTMLFrameSetElement;
| "isindex": HTMLUnknownElement;
| "keygen": HTMLUnknownElement;
| "listing": HTMLPreElement;
| "marquee": HTMLMarqueeElement;
| "menuitem": HTMLElement;
| "multicol": HTMLUnknownElement;
| "nextid": HTMLUnknownElement;
| "nobr": HTMLElement;
| "noembed": HTMLElement;
| "noframes": HTMLElement;
| "param": HTMLParamElement;
| "plaintext": HTMLElement;
| "rb": HTMLElement;
| "rtc": HTMLElement;
| "spacer": HTMLUnknownElement;
| "strike": HTMLElement;
| "tt": HTMLElement;
| "xmp": HTMLPreElement;
| }
|
| interface SVGElementTagNameMap {
| "a": SVGAElement;
| "animate": SVGAnimateElement;
| "animateMotion": SVGAnimateMotionElement;
| "animateTransform": SVGAnimateTransformElement;
| "circle": SVGCircleElement;
| "clipPath": SVGClipPathElement;
| "defs": SVGDefsElement;
| "desc": SVGDescElement;
| "ellipse": SVGEllipseElement;
| "feBlend": SVGFEBlendElement;
| "feColorMatrix": SVGFEColorMatrixElement;
| "feComponentTransfer": SVGFEComponentTransferElement;
| "feComposite": SVGFECompositeElement;
| "feConvolveMatrix": SVGFEConvolveMatrixElement;
| "feDiffuseLighting": SVGFEDiffuseLightingElement;
| "feDisplacementMap": SVGFEDisplacementMapElement;
| "feDistantLight": SVGFEDistantLightElement;
| "feDropShadow": SVGFEDropShadowElement;
| "feFlood": SVGFEFloodElement;
| "feFuncA": SVGFEFuncAElement;
| "feFuncB": SVGFEFuncBElement;
| "feFuncG": SVGFEFuncGElement;
| "feFuncR": SVGFEFuncRElement;
| "feGaussianBlur": SVGFEGaussianBlurElement;
| "feImage": SVGFEImageElement;
| "feMerge": SVGFEMergeElement;
| "feMergeNode": SVGFEMergeNodeElement;
| "feMorphology": SVGFEMorphologyElement;
| "feOffset": SVGFEOffsetElement;
| "fePointLight": SVGFEPointLightElement;
| "feSpecularLighting": SVGFESpecularLightingElement;
| "feSpotLight": SVGFESpotLightElement;
| "feTile": SVGFETileElement;
| "feTurbulence": SVGFETurbulenceElement;
| "filter": SVGFilterElement;
| "foreignObject": SVGForeignObjectElement;
| "g": SVGGElement;
| "image": SVGImageElement;
| "line": SVGLineElement;
| "linearGradient": SVGLinearGradientElement;
| "marker": SVGMarkerElement;
| "mask": SVGMaskElement;
| "metadata": SVGMetadataElement;
| "mpath": SVGMPathElement;
| "path": SVGPathElement;
| "pattern": SVGPatternElement;
| "polygon": SVGPolygonElement;
| "polyline": SVGPolylineElement;
| "radialGradient": SVGRadialGradientElement;
| "rect": SVGRectElement;
| "script": SVGScriptElement;
| "set": SVGSetElement;
| "stop": SVGStopElement;
| "style": SVGStyleElement;
| "svg": SVGSVGElement;
| "switch": SVGSwitchElement;
| "symbol": SVGSymbolElement;
| "text": SVGTextElement;
| "textPath": SVGTextPathElement;
| "title": SVGTitleElement;
| "tspan": SVGTSpanElement;
| "use": SVGUseElement;
| "view": SVGViewElement;
| }
|
| interface MathMLElementTagNameMap {
| "annotation": MathMLElement;
| "annotation-xml": MathMLElement;
| "maction": MathMLElement;
| "math": MathMLElement;
| "merror": MathMLElement;
| "mfrac": MathMLElement;
| "mi": MathMLElement;
| "mmultiscripts": MathMLElement;
| "mn": MathMLElement;
| "mo": MathMLElement;
| "mover": MathMLElement;
| "mpadded": MathMLElement;
| "mphantom": MathMLElement;
| "mprescripts": MathMLElement;
| "mroot": MathMLElement;
| "mrow": MathMLElement;
| "ms": MathMLElement;
| "mspace": MathMLElement;
| "msqrt": MathMLElement;
| "mstyle": MathMLElement;
| "msub": MathMLElement;
| "msubsup": MathMLElement;
| "msup": MathMLElement;
| "mtable": MathMLElement;
| "mtd": MathMLElement;
| "mtext": MathMLElement;
| "mtr": MathMLElement;
| "munder": MathMLElement;
| "munderover": MathMLElement;
| "semantics": MathMLElement;
| }
|
| /** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
| type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
|
| declare var Audio: {
| new(src?: string): HTMLAudioElement;
| };
| declare var Image: {
| new(width?: number, height?: number): HTMLImageElement;
| };
| declare var Option: {
| new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
| };
| /** @deprecated This is a legacy alias of \`navigator\`. */
| declare var clientInformation: Navigator;
| /** Returns true if the window has been closed, false otherwise. */
| declare var closed: boolean;
| /** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
| declare var customElements: CustomElementRegistry;
| declare var devicePixelRatio: number;
| declare var document: Document;
| /** @deprecated */
| declare var event: Event | undefined;
| /** @deprecated */
| declare var external: External;
| declare var frameElement: Element | null;
| declare var frames: WindowProxy;
| declare var history: History;
| declare var innerHeight: number;
| declare var innerWidth: number;
| declare var length: number;
| declare var location: Location;
| /** Returns true if the location bar is visible; otherwise, returns false. */
| declare var locationbar: BarProp;
| /** Returns true if the menu bar is visible; otherwise, returns false. */
| declare var menubar: BarProp;
| /** @deprecated */
| declare const name: void;
| declare var navigator: Navigator;
| /** Available only in secure contexts. */
| declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
| /** Available only in secure contexts. */
| declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
| /** @deprecated */
| declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
| declare var opener: any;
| /** @deprecated */
| declare var orientation: number;
| declare var outerHeight: number;
| declare var outerWidth: number;
| /** @deprecated This is a legacy alias of \`scrollX\`. */
| declare var pageXOffset: number;
| /** @deprecated This is a legacy alias of \`scrollY\`. */
| declare var pageYOffset: number;
| /**
| * Refers to either the parent WindowProxy, or itself.
| *
| * It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
| */
| declare var parent: WindowProxy;
| /** Returns true if the personal bar is visible; otherwise, returns false. */
| declare var personalbar: BarProp;
| declare var screen: Screen;
| declare var screenLeft: number;
| declare var screenTop: number;
| declare var screenX: number;
| declare var screenY: number;
| declare var scrollX: number;
| declare var scrollY: number;
| /** Returns true if the scrollbars are visible; otherwise, returns false. */
| declare var scrollbars: BarProp;
| declare var self: Window & typeof globalThis;
| declare var speechSynthesis: SpeechSynthesis;
| /** @deprecated */
| declare var status: string;
| /** Returns true if the status bar is visible; otherwise, returns false. */
| declare var statusbar: BarProp;
| /** Returns true if the toolbar is visible; otherwise, returns false. */
| declare var toolbar: BarProp;
| declare var top: WindowProxy | null;
| declare var visualViewport: VisualViewport | null;
| declare var window: Window & typeof globalThis;
| declare function alert(message?: any): void;
| declare function blur(): void;
| declare function cancelIdleCallback(handle: number): void;
| /** @deprecated */
| declare function captureEvents(): void;
| /** Closes the window. */
| declare function close(): void;
| declare function confirm(message?: string): boolean;
| /** Moves the focus to the window's browsing context, if any. */
| declare function focus(): void;
| declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
| declare function getSelection(): Selection | null;
| declare function matchMedia(query: string): MediaQueryList;
| declare function moveBy(x: number, y: number): void;
| declare function moveTo(x: number, y: number): void;
| declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
| /**
| * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
| *
| * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
| *
| * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
| *
| * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
| *
| * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
| */
| declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
| declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
| declare function print(): void;
| declare function prompt(message?: string, _default?: string): string | null;
| /** @deprecated */
| declare function releaseEvents(): void;
| declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
| declare function resizeBy(x: number, y: number): void;
| declare function resizeTo(width: number, height: number): void;
| declare function scroll(options?: ScrollToOptions): void;
| declare function scroll(x: number, y: number): void;
| declare function scrollBy(options?: ScrollToOptions): void;
| declare function scrollBy(x: number, y: number): void;
| declare function scrollTo(options?: ScrollToOptions): void;
| declare function scrollTo(x: number, y: number): void;
| /** Cancels the document load. */
| declare function stop(): void;
| declare function toString(): string;
| /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
| declare function dispatchEvent(event: Event): boolean;
| declare function cancelAnimationFrame(handle: number): void;
| declare function requestAnimationFrame(callback: FrameRequestCallback): number;
| /**
| * Fires when the user aborts the download.
| * @param ev The event.
| */
| declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
| declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
| declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
| declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
| declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
| declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
| declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
| /**
| * Fires when the object loses the input focus.
| * @param ev The focus event.
| */
| declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
| declare var oncancel: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when playback is possible, but would require further buffering.
| * @param ev The event.
| */
| declare var oncanplay: ((this: Window, ev: Event) => any) | null;
| declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the contents of the object or selection have changed.
| * @param ev The event.
| */
| declare var onchange: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the user clicks the left mouse button on the object
| * @param ev The mouse event.
| */
| declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
| declare var onclose: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the user clicks the right mouse button in the client area, opening the context menu.
| * @param ev The mouse event.
| */
| declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
| declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
| declare var oncuechange: ((this: Window, ev: Event) => any) | null;
| declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
| /**
| * Fires when the user double-clicks the object.
| * @param ev The mouse event.
| */
| declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
| /**
| * Fires on the source object continuously during a drag operation.
| * @param ev The event.
| */
| declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Fires on the source object when the user releases the mouse at the close of a drag operation.
| * @param ev The event.
| */
| declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Fires on the target element when the user drags the object to a valid drop target.
| * @param ev The drag event.
| */
| declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
| * @param ev The drag event.
| */
| declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Fires on the target element continuously while the user drags the object over a valid drop target.
| * @param ev The event.
| */
| declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Fires on the source object when the user starts to drag a text selection or selected object.
| * @param ev The event.
| */
| declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
| declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
| /**
| * Occurs when the duration attribute is updated.
| * @param ev The event.
| */
| declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the media element is reset to its initial state.
| * @param ev The event.
| */
| declare var onemptied: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the end of playback is reached.
| * @param ev The event
| */
| declare var onended: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when an error occurs during object loading.
| * @param ev The event.
| */
| declare var onerror: OnErrorEventHandler;
| /**
| * Fires when the object receives focus.
| * @param ev The event.
| */
| declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
| declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
| declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
| declare var oninput: ((this: Window, ev: Event) => any) | null;
| declare var oninvalid: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the user presses a key.
| * @param ev The keyboard event
| */
| declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
| /**
| * Fires when the user presses an alphanumeric key.
| * @param ev The event.
| * @deprecated
| */
| declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
| /**
| * Fires when the user releases a key.
| * @param ev The keyboard event
| */
| declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
| /**
| * Fires immediately after the browser loads the object.
| * @param ev The event.
| */
| declare var onload: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when media data is loaded at the current playback position.
| * @param ev The event.
| */
| declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the duration and dimensions of the media have been determined.
| * @param ev The event.
| */
| declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when Internet Explorer begins looking for media data.
| * @param ev The event.
| */
| declare var onloadstart: ((this: Window, ev: Event) => any) | null;
| declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
| /**
| * Fires when the user clicks the object with either mouse button.
| * @param ev The mouse event.
| */
| declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
| declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
| declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse over the object.
| * @param ev The mouse event.
| */
| declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse pointer outside the boundaries of the object.
| * @param ev The mouse event.
| */
| declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user moves the mouse pointer into the object.
| * @param ev The mouse event.
| */
| declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
| /**
| * Fires when the user releases a mouse button while the mouse is over the object.
| * @param ev The mouse event.
| */
| declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
| declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
| /**
| * Occurs when playback is paused.
| * @param ev The event.
| */
| declare var onpause: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the play method is requested.
| * @param ev The event.
| */
| declare var onplay: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the audio or video has started playing.
| * @param ev The event.
| */
| declare var onplaying: ((this: Window, ev: Event) => any) | null;
| declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
| declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
| /**
| * Occurs to indicate progress while downloading media data.
| * @param ev The event.
| */
| declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
| /**
| * Occurs when the playback rate is increased or decreased.
| * @param ev The event.
| */
| declare var onratechange: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the user resets a form.
| * @param ev The event.
| */
| declare var onreset: ((this: Window, ev: Event) => any) | null;
| declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
| /**
| * Fires when the user repositions the scroll box in the scroll bar on the object.
| * @param ev The event.
| */
| declare var onscroll: ((this: Window, ev: Event) => any) | null;
| declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
| /**
| * Occurs when the seek operation ends.
| * @param ev The event.
| */
| declare var onseeked: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the current playback position is moved.
| * @param ev The event.
| */
| declare var onseeking: ((this: Window, ev: Event) => any) | null;
| /**
| * Fires when the current selection changes.
| * @param ev The event.
| */
| declare var onselect: ((this: Window, ev: Event) => any) | null;
| declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
| declare var onselectstart: ((this: Window, ev: Event) => any) | null;
| declare var onslotchange: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when the download has stopped.
| * @param ev The event.
| */
| declare var onstalled: ((this: Window, ev: Event) => any) | null;
| declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
| /**
| * Occurs if the load operation has been intentionally halted.
| * @param ev The event.
| */
| declare var onsuspend: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs to indicate the current playback position.
| * @param ev The event.
| */
| declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
| declare var ontoggle: ((this: Window, ev: Event) => any) | null;
| declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
| declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
| declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
| declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
| declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
| declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
| declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
| declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
| /**
| * Occurs when the volume is changed, or playback is muted or unmuted.
| * @param ev The event.
| */
| declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
| /**
| * Occurs when playback stops because the next frame of a video resource is not available.
| * @param ev The event.
| */
| declare var onwaiting: ((this: Window, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationend\`. */
| declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationiteration\`. */
| declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`onanimationstart\`. */
| declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
| /** @deprecated This is a legacy alias of \`ontransitionend\`. */
| declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
| declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
| declare var onafterprint: ((this: Window, ev: Event) => any) | null;
| declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
| declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
| declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
| declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
| declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
| declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
| declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
| declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
| declare var onoffline: ((this: Window, ev: Event) => any) | null;
| declare var ononline: ((this: Window, ev: Event) => any) | null;
| declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
| declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
| declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
| declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
| declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
| declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
| declare var onunload: ((this: Window, ev: Event) => any) | null;
| declare var localStorage: Storage;
| /** Available only in secure contexts. */
| declare var caches: CacheStorage;
| declare var crossOriginIsolated: boolean;
| declare var crypto: Crypto;
| declare var indexedDB: IDBFactory;
| declare var isSecureContext: boolean;
| declare var origin: string;
| declare var performance: Performance;
| declare function atob(data: string): string;
| declare function btoa(data: string): string;
| declare function clearInterval(id: number | undefined): void;
| declare function clearTimeout(id: number | undefined): void;
| declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
| declare function queueMicrotask(callback: VoidFunction): void;
| declare function reportError(e: any): void;
| declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
| declare var sessionStorage: Storage;
| declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| type AlgorithmIdentifier = Algorithm | string;
| type BigInteger = Uint8Array;
| type BinaryData = ArrayBuffer | ArrayBufferView;
| type BlobPart = BufferSource | Blob | string;
| type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
| type BufferSource = ArrayBufferView | ArrayBuffer;
| type COSEAlgorithmIdentifier = number;
| type CSSNumberish = number;
| type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
| type ClipboardItemData = Promise<string | Blob>;
| type ClipboardItems = ClipboardItem[];
| type ConstrainBoolean = boolean | ConstrainBooleanParameters;
| type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
| type ConstrainDouble = number | ConstrainDoubleRange;
| type ConstrainULong = number | ConstrainULongRange;
| type DOMHighResTimeStamp = number;
| type EpochTimeStamp = number;
| type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
| type Float32List = Float32Array | GLfloat[];
| type FormDataEntryValue = File | string;
| type GLbitfield = number;
| type GLboolean = boolean;
| type GLclampf = number;
| type GLenum = number;
| type GLfloat = number;
| type GLint = number;
| type GLint64 = number;
| type GLintptr = number;
| type GLsizei = number;
| type GLsizeiptr = number;
| type GLuint = number;
| type GLuint64 = number;
| type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
| type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
| type HashAlgorithmIdentifier = AlgorithmIdentifier;
| type HeadersInit = [string, string][] | Record<string, string> | Headers;
| type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
| type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
| type Int32List = Int32Array | GLint[];
| type LineAndPositionSetting = number | AutoKeyword;
| type MediaProvider = MediaStream | MediaSource | Blob;
| type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
| type MutationRecordType = "attributes" | "characterData" | "childList";
| type NamedCurve = string;
| type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
| type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
| type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
| type PerformanceEntryList = PerformanceEntry[];
| type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
| type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
| type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
| type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
| type RequestInfo = Request | string;
| type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
| type TimerHandler = string | Function;
| type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
| type Uint32List = Uint32Array | GLuint[];
| type VibratePattern = number | number[];
| type WindowProxy = Window;
| type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
| type AlignSetting = "center" | "end" | "left" | "right" | "start";
| type AnimationPlayState = "finished" | "idle" | "paused" | "running";
| type AnimationReplaceState = "active" | "persisted" | "removed";
| type AppendMode = "segments" | "sequence";
| type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
| type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
| type AudioContextState = "closed" | "running" | "suspended";
| type AuthenticatorAttachment = "cross-platform" | "platform";
| type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
| type AutoKeyword = "auto";
| type AutomationRate = "a-rate" | "k-rate";
| type BinaryType = "arraybuffer" | "blob";
| type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
| type CanPlayTypeResult = "" | "maybe" | "probably";
| type CanvasDirection = "inherit" | "ltr" | "rtl";
| type CanvasFillRule = "evenodd" | "nonzero";
| type CanvasFontKerning = "auto" | "none" | "normal";
| type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
| type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
| type CanvasLineCap = "butt" | "round" | "square";
| type CanvasLineJoin = "bevel" | "miter" | "round";
| type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
| type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
| type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
| type ChannelCountMode = "clamped-max" | "explicit" | "max";
| type ChannelInterpretation = "discrete" | "speakers";
| type ClientTypes = "all" | "sharedworker" | "window" | "worker";
| type ColorGamut = "p3" | "rec2020" | "srgb";
| type ColorSpaceConversion = "default" | "none";
| type CompositeOperation = "accumulate" | "add" | "replace";
| type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
| type CredentialMediationRequirement = "optional" | "required" | "silent";
| type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
| type DirectionSetting = "" | "lr" | "rl";
| type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
| type DistanceModelType = "exponential" | "inverse" | "linear";
| type DocumentReadyState = "complete" | "interactive" | "loading";
| type DocumentVisibilityState = "hidden" | "visible";
| type EndOfStreamError = "decode" | "network";
| type EndingType = "native" | "transparent";
| type FileSystemHandleKind = "directory" | "file";
| type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
| type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
| type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
| type FontFaceSetLoadStatus = "loaded" | "loading";
| type FullscreenNavigationUI = "auto" | "hide" | "show";
| type GamepadHapticActuatorType = "vibration";
| type GamepadMappingType = "" | "standard" | "xr-standard";
| type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
| type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
| type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
| type IDBRequestReadyState = "done" | "pending";
| type IDBTransactionDurability = "default" | "relaxed" | "strict";
| type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
| type ImageOrientation = "flipY" | "from-image";
| type ImageSmoothingQuality = "high" | "low" | "medium";
| type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
| type IterationCompositeOperation = "accumulate" | "replace";
| type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
| type KeyType = "private" | "public" | "secret";
| type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
| type LineAlignSetting = "center" | "end" | "start";
| type LockMode = "exclusive" | "shared";
| type MIDIPortConnectionState = "closed" | "open" | "pending";
| type MIDIPortDeviceState = "connected" | "disconnected";
| type MIDIPortType = "input" | "output";
| type MediaDecodingType = "file" | "media-source" | "webrtc";
| type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
| type MediaEncodingType = "record" | "webrtc";
| type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
| type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
| type MediaKeySessionType = "persistent-license" | "temporary";
| type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
| type MediaKeysRequirement = "not-allowed" | "optional" | "required";
| type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
| type MediaSessionPlaybackState = "none" | "paused" | "playing";
| type MediaStreamTrackState = "ended" | "live";
| type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
| type NotificationDirection = "auto" | "ltr" | "rtl";
| type NotificationPermission = "default" | "denied" | "granted";
| type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
| type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
| type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
| type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
| type OverSampleType = "2x" | "4x" | "none";
| type PanningModelType = "HRTF" | "equalpower";
| type PaymentComplete = "fail" | "success" | "unknown";
| type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
| type PermissionState = "denied" | "granted" | "prompt";
| type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
| type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
| type PredefinedColorSpace = "display-p3" | "srgb";
| type PremultiplyAlpha = "default" | "none" | "premultiply";
| type PresentationStyle = "attachment" | "inline" | "unspecified";
| type PublicKeyCredentialType = "public-key";
| type PushEncryptionKeyName = "auth" | "p256dh";
| type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
| type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
| type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
| type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
| type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
| type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
| type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
| type RTCIceComponent = "rtcp" | "rtp";
| type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
| type RTCIceGathererState = "complete" | "gathering" | "new";
| type RTCIceGatheringState = "complete" | "gathering" | "new";
| type RTCIceProtocol = "tcp" | "udp";
| type RTCIceTcpCandidateType = "active" | "passive" | "so";
| type RTCIceTransportPolicy = "all" | "relay";
| type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
| type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
| type RTCPriorityType = "high" | "low" | "medium" | "very-low";
| type RTCRtcpMuxPolicy = "require";
| type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
| type RTCSctpTransportState = "closed" | "connected" | "connecting";
| type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
| type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
| type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
| type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
| type ReadableStreamReaderMode = "byob";
| type ReadableStreamType = "bytes";
| type ReadyState = "closed" | "ended" | "open";
| type RecordingState = "inactive" | "paused" | "recording";
| type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
| type RemotePlaybackState = "connected" | "connecting" | "disconnected";
| type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
| type RequestCredentials = "include" | "omit" | "same-origin";
| type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
| type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
| type RequestRedirect = "error" | "follow" | "manual";
| type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
| type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
| type ResizeQuality = "high" | "low" | "medium" | "pixelated";
| type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
| type ScrollBehavior = "auto" | "smooth";
| type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
| type ScrollRestoration = "auto" | "manual";
| type ScrollSetting = "" | "up";
| type SecurityPolicyViolationEventDisposition = "enforce" | "report";
| type SelectionMode = "end" | "preserve" | "select" | "start";
| type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
| type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
| type ShadowRootMode = "closed" | "open";
| type SlotAssignmentMode = "manual" | "named";
| type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
| type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
| type TextTrackMode = "disabled" | "hidden" | "showing";
| type TouchType = "direct" | "stylus";
| type TransferFunction = "hlg" | "pq" | "srgb";
| type UserVerificationRequirement = "discouraged" | "preferred" | "required";
| type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
| type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
| type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
| type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
| type WebGLPowerPreference = "default" | "high-performance" | "low-power";
| type WorkerType = "classic" | "module";
| type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
| `;$i["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /////////////////////////////
| /// Window Iterable APIs
| /////////////////////////////
|
| interface AudioParam {
| setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
| }
|
| interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
| }
|
| interface BaseAudioContext {
| createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
| createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
| }
|
| interface CSSKeyframesRule {
| [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
| }
|
| interface CSSRuleList {
| [Symbol.iterator](): IterableIterator<CSSRule>;
| }
|
| interface CSSStyleDeclaration {
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface Cache {
| addAll(requests: Iterable<RequestInfo>): Promise<void>;
| }
|
| interface CanvasPath {
| roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
| }
|
| interface CanvasPathDrawingStyles {
| setLineDash(segments: Iterable<number>): void;
| }
|
| interface DOMRectList {
| [Symbol.iterator](): IterableIterator<DOMRect>;
| }
|
| interface DOMStringList {
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface DOMTokenList {
| [Symbol.iterator](): IterableIterator<string>;
| entries(): IterableIterator<[number, string]>;
| keys(): IterableIterator<number>;
| values(): IterableIterator<string>;
| }
|
| interface DataTransferItemList {
| [Symbol.iterator](): IterableIterator<DataTransferItem>;
| }
|
| interface EventCounts extends ReadonlyMap<string, number> {
| }
|
| interface FileList {
| [Symbol.iterator](): IterableIterator<File>;
| }
|
| interface FontFaceSet extends Set<FontFace> {
| }
|
| interface FormData {
| [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
| /** Returns an array of key, value pairs for every entry in the list. */
| entries(): IterableIterator<[string, FormDataEntryValue]>;
| /** Returns a list of keys in the list. */
| keys(): IterableIterator<string>;
| /** Returns a list of values in the list. */
| values(): IterableIterator<FormDataEntryValue>;
| }
|
| interface HTMLAllCollection {
| [Symbol.iterator](): IterableIterator<Element>;
| }
|
| interface HTMLCollectionBase {
| [Symbol.iterator](): IterableIterator<Element>;
| }
|
| interface HTMLCollectionOf<T extends Element> {
| [Symbol.iterator](): IterableIterator<T>;
| }
|
| interface HTMLFormElement {
| [Symbol.iterator](): IterableIterator<Element>;
| }
|
| interface HTMLSelectElement {
| [Symbol.iterator](): IterableIterator<HTMLOptionElement>;
| }
|
| interface Headers {
| [Symbol.iterator](): IterableIterator<[string, string]>;
| /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
| entries(): IterableIterator<[string, string]>;
| /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
| keys(): IterableIterator<string>;
| /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
| values(): IterableIterator<string>;
| }
|
| interface IDBDatabase {
| /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
| transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
| }
|
| interface IDBObjectStore {
| /**
| * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
| }
|
| interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
| }
|
| interface MIDIOutput {
| send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
| }
|
| interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
| }
|
| interface MediaKeyStatusMap {
| [Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
| entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
| keys(): IterableIterator<BufferSource>;
| values(): IterableIterator<MediaKeyStatus>;
| }
|
| interface MediaList {
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface MessageEvent<T = any> {
| /** @deprecated */
| initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
| }
|
| interface MimeTypeArray {
| [Symbol.iterator](): IterableIterator<MimeType>;
| }
|
| interface NamedNodeMap {
| [Symbol.iterator](): IterableIterator<Attr>;
| }
|
| interface Navigator {
| /** Available only in secure contexts. */
| requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
| vibrate(pattern: Iterable<number>): boolean;
| }
|
| interface NodeList {
| [Symbol.iterator](): IterableIterator<Node>;
| /** Returns an array of key, value pairs for every entry in the list. */
| entries(): IterableIterator<[number, Node]>;
| /** Returns an list of keys in the list. */
| keys(): IterableIterator<number>;
| /** Returns an list of values in the list. */
| values(): IterableIterator<Node>;
| }
|
| interface NodeListOf<TNode extends Node> {
| [Symbol.iterator](): IterableIterator<TNode>;
| /** Returns an array of key, value pairs for every entry in the list. */
| entries(): IterableIterator<[number, TNode]>;
| /** Returns an list of keys in the list. */
| keys(): IterableIterator<number>;
| /** Returns an list of values in the list. */
| values(): IterableIterator<TNode>;
| }
|
| interface Plugin {
| [Symbol.iterator](): IterableIterator<MimeType>;
| }
|
| interface PluginArray {
| [Symbol.iterator](): IterableIterator<Plugin>;
| }
|
| interface RTCRtpTransceiver {
| setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
| }
|
| interface RTCStatsReport extends ReadonlyMap<string, any> {
| }
|
| interface SVGLengthList {
| [Symbol.iterator](): IterableIterator<SVGLength>;
| }
|
| interface SVGNumberList {
| [Symbol.iterator](): IterableIterator<SVGNumber>;
| }
|
| interface SVGPointList {
| [Symbol.iterator](): IterableIterator<DOMPoint>;
| }
|
| interface SVGStringList {
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface SVGTransformList {
| [Symbol.iterator](): IterableIterator<SVGTransform>;
| }
|
| interface SourceBufferList {
| [Symbol.iterator](): IterableIterator<SourceBuffer>;
| }
|
| interface SpeechRecognitionResult {
| [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
| }
|
| interface SpeechRecognitionResultList {
| [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
| }
|
| interface StyleSheetList {
| [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
| }
|
| interface SubtleCrypto {
| deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
| generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
| importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| }
|
| interface TextTrackCueList {
| [Symbol.iterator](): IterableIterator<TextTrackCue>;
| }
|
| interface TextTrackList {
| [Symbol.iterator](): IterableIterator<TextTrack>;
| }
|
| interface TouchList {
| [Symbol.iterator](): IterableIterator<Touch>;
| }
|
| interface URLSearchParams {
| [Symbol.iterator](): IterableIterator<[string, string]>;
| /** Returns an array of key, value pairs for every entry in the search params. */
| entries(): IterableIterator<[string, string]>;
| /** Returns a list of keys in the search params. */
| keys(): IterableIterator<string>;
| /** Returns a list of values in the search params. */
| values(): IterableIterator<string>;
| }
|
| interface WEBGL_draw_buffers {
| drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
| }
|
| interface WEBGL_multi_draw {
| multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
| }
|
| interface WebGL2RenderingContextBase {
| clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
| clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
| clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
| drawBuffers(buffers: Iterable<GLenum>): void;
| getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
| getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
| invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
| invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
| uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
| vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
| }
|
| interface WebGL2RenderingContextOverloads {
| uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| }
|
| interface WebGLRenderingContextBase {
| vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
| }
|
| interface WebGLRenderingContextOverloads {
| uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| }
| `;$i["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Map<K, V> {
|
| clear(): void;
| /**
| * @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
| */
| delete(key: K): boolean;
| /**
| * Executes a provided function once per each key/value pair in the Map, in insertion order.
| */
| forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
| /**
| * Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
| * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
| */
| get(key: K): V | undefined;
| /**
| * @returns boolean indicating whether an element with the specified key exists or not.
| */
| has(key: K): boolean;
| /**
| * Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
| */
| set(key: K, value: V): this;
| /**
| * @returns the number of elements in the Map.
| */
| readonly size: number;
| }
|
| interface MapConstructor {
| new(): Map<any, any>;
| new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
| readonly prototype: Map<any, any>;
| }
| declare var Map: MapConstructor;
|
| interface ReadonlyMap<K, V> {
| forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
| get(key: K): V | undefined;
| has(key: K): boolean;
| readonly size: number;
| }
|
| interface WeakMap<K extends object, V> {
| /**
| * Removes the specified element from the WeakMap.
| * @returns true if the element was successfully removed, or false if it was not present.
| */
| delete(key: K): boolean;
| /**
| * @returns a specified element.
| */
| get(key: K): V | undefined;
| /**
| * @returns a boolean indicating whether an element with the specified key exists or not.
| */
| has(key: K): boolean;
| /**
| * Adds a new element with a specified key and value.
| * @param key Must be an object.
| */
| set(key: K, value: V): this;
| }
|
| interface WeakMapConstructor {
| new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
| readonly prototype: WeakMap<object, any>;
| }
| declare var WeakMap: WeakMapConstructor;
|
| interface Set<T> {
| /**
| * Appends a new element with a specified value to the end of the Set.
| */
| add(value: T): this;
|
| clear(): void;
| /**
| * Removes a specified value from the Set.
| * @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
| */
| delete(value: T): boolean;
| /**
| * Executes a provided function once per each value in the Set object, in insertion order.
| */
| forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
| /**
| * @returns a boolean indicating whether an element with the specified value exists in the Set or not.
| */
| has(value: T): boolean;
| /**
| * @returns the number of (unique) elements in Set.
| */
| readonly size: number;
| }
|
| interface SetConstructor {
| new <T = any>(values?: readonly T[] | null): Set<T>;
| readonly prototype: Set<any>;
| }
| declare var Set: SetConstructor;
|
| interface ReadonlySet<T> {
| forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
| has(value: T): boolean;
| readonly size: number;
| }
|
| interface WeakSet<T extends object> {
| /**
| * Appends a new object to the end of the WeakSet.
| */
| add(value: T): this;
| /**
| * Removes the specified element from the WeakSet.
| * @returns Returns true if the element existed and has been removed, or false if the element does not exist.
| */
| delete(value: T): boolean;
| /**
| * @returns a boolean indicating whether an object exists in the WeakSet or not.
| */
| has(value: T): boolean;
| }
|
| interface WeakSetConstructor {
| new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
| readonly prototype: WeakSet<object>;
| }
| declare var WeakSet: WeakSetConstructor;
| `;$i["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Array<T> {
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
| find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: T, start?: number, end?: number): this;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
| }
|
| interface ArrayConstructor {
| /**
| * Creates an array from an array-like object.
| * @param arrayLike An array-like object to convert to an array.
| */
| from<T>(arrayLike: ArrayLike<T>): T[];
|
| /**
| * Creates an array from an iterable object.
| * @param arrayLike An array-like object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of<T>(...items: T[]): T[];
| }
|
| interface DateConstructor {
| new (value: number | string | Date): Date;
| }
|
| interface Function {
| /**
| * Returns the name of the function. Function names are read-only and can not be changed.
| */
| readonly name: string;
| }
|
| interface Math {
| /**
| * Returns the number of leading zero bits in the 32-bit binary representation of a number.
| * @param x A numeric expression.
| */
| clz32(x: number): number;
|
| /**
| * Returns the result of 32-bit multiplication of two numbers.
| * @param x First number
| * @param y Second number
| */
| imul(x: number, y: number): number;
|
| /**
| * Returns the sign of the x, indicating whether x is positive, negative or zero.
| * @param x The numeric expression to test
| */
| sign(x: number): number;
|
| /**
| * Returns the base 10 logarithm of a number.
| * @param x A numeric expression.
| */
| log10(x: number): number;
|
| /**
| * Returns the base 2 logarithm of a number.
| * @param x A numeric expression.
| */
| log2(x: number): number;
|
| /**
| * Returns the natural logarithm of 1 + x.
| * @param x A numeric expression.
| */
| log1p(x: number): number;
|
| /**
| * Returns the result of (e^x - 1), which is an implementation-dependent approximation to
| * subtracting 1 from the exponential function of x (e raised to the power of x, where e
| * is the base of the natural logarithms).
| * @param x A numeric expression.
| */
| expm1(x: number): number;
|
| /**
| * Returns the hyperbolic cosine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| cosh(x: number): number;
|
| /**
| * Returns the hyperbolic sine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| sinh(x: number): number;
|
| /**
| * Returns the hyperbolic tangent of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| tanh(x: number): number;
|
| /**
| * Returns the inverse hyperbolic cosine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| acosh(x: number): number;
|
| /**
| * Returns the inverse hyperbolic sine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| asinh(x: number): number;
|
| /**
| * Returns the inverse hyperbolic tangent of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| atanh(x: number): number;
|
| /**
| * Returns the square root of the sum of squares of its arguments.
| * @param values Values to compute the square root for.
| * If no arguments are passed, the result is +0.
| * If there is only one argument, the result is the absolute value.
| * If any argument is +Infinity or -Infinity, the result is +Infinity.
| * If any argument is NaN, the result is NaN.
| * If all arguments are either +0 or \u22120, the result is +0.
| */
| hypot(...values: number[]): number;
|
| /**
| * Returns the integral part of the a numeric expression, x, removing any fractional digits.
| * If x is already an integer, the result is x.
| * @param x A numeric expression.
| */
| trunc(x: number): number;
|
| /**
| * Returns the nearest single precision float representation of a number.
| * @param x A numeric expression.
| */
| fround(x: number): number;
|
| /**
| * Returns an implementation-dependent approximation to the cube root of number.
| * @param x A numeric expression.
| */
| cbrt(x: number): number;
| }
|
| interface NumberConstructor {
| /**
| * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
| * that is representable as a Number value, which is approximately:
| * 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
| */
| readonly EPSILON: number;
|
| /**
| * Returns true if passed value is finite.
| * Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
| * number. Only finite values of the type number, result in true.
| * @param number A numeric value.
| */
| isFinite(number: unknown): boolean;
|
| /**
| * Returns true if the value passed is an integer, false otherwise.
| * @param number A numeric value.
| */
| isInteger(number: unknown): boolean;
|
| /**
| * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
| * number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
| * to a number. Only values of the type number, that are also NaN, result in true.
| * @param number A numeric value.
| */
| isNaN(number: unknown): boolean;
|
| /**
| * Returns true if the value passed is a safe integer.
| * @param number A numeric value.
| */
| isSafeInteger(number: unknown): boolean;
|
| /**
| * The value of the largest integer n such that n and n + 1 are both exactly representable as
| * a Number value.
| * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
| */
| readonly MAX_SAFE_INTEGER: number;
|
| /**
| * The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
| * a Number value.
| * The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
| */
| readonly MIN_SAFE_INTEGER: number;
|
| /**
| * Converts a string to a floating-point number.
| * @param string A string that contains a floating-point number.
| */
| parseFloat(string: string): number;
|
| /**
| * Converts A string to an integer.
| * @param string A string to convert into a number.
| * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
| * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
| * All other strings are considered decimal.
| */
| parseInt(string: string, radix?: number): number;
| }
|
| interface ObjectConstructor {
| /**
| * Copy the values of all of the enumerable own properties from one or more source objects to a
| * target object. Returns the target object.
| * @param target The target object to copy to.
| * @param source The source object from which to copy properties.
| */
| assign<T extends {}, U>(target: T, source: U): T & U;
|
| /**
| * Copy the values of all of the enumerable own properties from one or more source objects to a
| * target object. Returns the target object.
| * @param target The target object to copy to.
| * @param source1 The first source object from which to copy properties.
| * @param source2 The second source object from which to copy properties.
| */
| assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
| /**
| * Copy the values of all of the enumerable own properties from one or more source objects to a
| * target object. Returns the target object.
| * @param target The target object to copy to.
| * @param source1 The first source object from which to copy properties.
| * @param source2 The second source object from which to copy properties.
| * @param source3 The third source object from which to copy properties.
| */
| assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
| /**
| * Copy the values of all of the enumerable own properties from one or more source objects to a
| * target object. Returns the target object.
| * @param target The target object to copy to.
| * @param sources One or more source objects from which to copy properties
| */
| assign(target: object, ...sources: any[]): any;
|
| /**
| * Returns an array of all symbol properties found directly on object o.
| * @param o Object to retrieve the symbols from.
| */
| getOwnPropertySymbols(o: any): symbol[];
|
| /**
| * Returns the names of the enumerable string properties and methods of an object.
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| keys(o: {}): string[];
|
| /**
| * Returns true if the values are the same value, false otherwise.
| * @param value1 The first value.
| * @param value2 The second value.
| */
| is(value1: any, value2: any): boolean;
|
| /**
| * Sets the prototype of a specified object o to object proto or null. Returns the object o.
| * @param o The object to change its prototype.
| * @param proto The value of the new prototype or null.
| */
| setPrototypeOf(o: any, proto: object | null): any;
| }
|
| interface ReadonlyArray<T> {
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
| find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
| }
|
| interface RegExp {
| /**
| * Returns a string indicating the flags of the regular expression in question. This field is read-only.
| * The characters in this string are sequenced and concatenated in the following order:
| *
| * - "g" for global
| * - "i" for ignoreCase
| * - "m" for multiline
| * - "u" for unicode
| * - "y" for sticky
| *
| * If no flags are set, the value is the empty string.
| */
| readonly flags: string;
|
| /**
| * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
| * expression. Default is false. Read-only.
| */
| readonly sticky: boolean;
|
| /**
| * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
| * expression. Default is false. Read-only.
| */
| readonly unicode: boolean;
| }
|
| interface RegExpConstructor {
| new (pattern: RegExp | string, flags?: string): RegExp;
| (pattern: RegExp | string, flags?: string): RegExp;
| }
|
| interface String {
| /**
| * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
| * value of the UTF-16 encoded code point starting at the string element at position pos in
| * the String resulting from converting this object to a String.
| * If there is no element at that position, the result is undefined.
| * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
| */
| codePointAt(pos: number): number | undefined;
|
| /**
| * Returns true if searchString appears as a substring of the result of converting this
| * object to a String, at one or more positions that are
| * greater than or equal to position; otherwise, returns false.
| * @param searchString search string
| * @param position If position is undefined, 0 is assumed, so as to search all of the String.
| */
| includes(searchString: string, position?: number): boolean;
|
| /**
| * Returns true if the sequence of elements of searchString converted to a String is the
| * same as the corresponding elements of this object (converted to a String) starting at
| * endPosition \u2013 length(this). Otherwise returns false.
| */
| endsWith(searchString: string, endPosition?: number): boolean;
|
| /**
| * Returns the String value result of normalizing the string into the normalization form
| * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
| * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
| * is "NFC"
| */
| normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
| /**
| * Returns the String value result of normalizing the string into the normalization form
| * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
| * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
| * is "NFC"
| */
| normalize(form?: string): string;
|
| /**
| * Returns a String value that is made from count copies appended together. If count is 0,
| * the empty string is returned.
| * @param count number of copies to append
| */
| repeat(count: number): string;
|
| /**
| * Returns true if the sequence of elements of searchString converted to a String is the
| * same as the corresponding elements of this object (converted to a String) starting at
| * position. Otherwise returns false.
| */
| startsWith(searchString: string, position?: number): boolean;
|
| /**
| * Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
| * @deprecated A legacy feature for browser compatibility
| * @param name
| */
| anchor(name: string): string;
|
| /**
| * Returns a \`<big>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| big(): string;
|
| /**
| * Returns a \`<blink>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| blink(): string;
|
| /**
| * Returns a \`<b>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| bold(): string;
|
| /**
| * Returns a \`<tt>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| fixed(): string;
|
| /**
| * Returns a \`<font>\` HTML element and sets the color attribute value
| * @deprecated A legacy feature for browser compatibility
| */
| fontcolor(color: string): string;
|
| /**
| * Returns a \`<font>\` HTML element and sets the size attribute value
| * @deprecated A legacy feature for browser compatibility
| */
| fontsize(size: number): string;
|
| /**
| * Returns a \`<font>\` HTML element and sets the size attribute value
| * @deprecated A legacy feature for browser compatibility
| */
| fontsize(size: string): string;
|
| /**
| * Returns an \`<i>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| italics(): string;
|
| /**
| * Returns an \`<a>\` HTML element and sets the href attribute value
| * @deprecated A legacy feature for browser compatibility
| */
| link(url: string): string;
|
| /**
| * Returns a \`<small>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| small(): string;
|
| /**
| * Returns a \`<strike>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| strike(): string;
|
| /**
| * Returns a \`<sub>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| sub(): string;
|
| /**
| * Returns a \`<sup>\` HTML element
| * @deprecated A legacy feature for browser compatibility
| */
| sup(): string;
| }
|
| interface StringConstructor {
| /**
| * Return the String value whose elements are, in order, the elements in the List elements.
| * If length is 0, the empty string is returned.
| */
| fromCodePoint(...codePoints: number[]): string;
|
| /**
| * String.raw is usually used as a tag function of a Tagged Template String. When called as
| * such, the first argument will be a well formed template call site object and the rest
| * parameter will contain the substitution values. It can also be called directly, for example,
| * to interleave strings and values from your own tag function, and in this case the only thing
| * it needs from the first argument is the raw property.
| * @param template A well-formed template string call site representation.
| * @param substitutions A set of substitution values.
| */
| raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
| }
| `;$i["lib.es2015.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es5" />
| /// <reference lib="es2015.core" />
| /// <reference lib="es2015.collection" />
| /// <reference lib="es2015.iterable" />
| /// <reference lib="es2015.generator" />
| /// <reference lib="es2015.promise" />
| /// <reference lib="es2015.proxy" />
| /// <reference lib="es2015.reflect" />
| /// <reference lib="es2015.symbol" />
| /// <reference lib="es2015.symbol.wellknown" />
| `;$i["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.iterable" />
|
| interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
| // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
| next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
| return(value: TReturn): IteratorResult<T, TReturn>;
| throw(e: any): IteratorResult<T, TReturn>;
| [Symbol.iterator](): Generator<T, TReturn, TNext>;
| }
|
| interface GeneratorFunction {
| /**
| * Creates a new Generator object.
| * @param args A list of arguments the function accepts.
| */
| new (...args: any[]): Generator;
| /**
| * Creates a new Generator object.
| * @param args A list of arguments the function accepts.
| */
| (...args: any[]): Generator;
| /**
| * The length of the arguments.
| */
| readonly length: number;
| /**
| * Returns the name of the function.
| */
| readonly name: string;
| /**
| * A reference to the prototype.
| */
| readonly prototype: Generator;
| }
|
| interface GeneratorFunctionConstructor {
| /**
| * Creates a new Generator function.
| * @param args A list of arguments the function accepts.
| */
| new (...args: string[]): GeneratorFunction;
| /**
| * Creates a new Generator function.
| * @param args A list of arguments the function accepts.
| */
| (...args: string[]): GeneratorFunction;
| /**
| * The length of the arguments.
| */
| readonly length: number;
| /**
| * Returns the name of the function.
| */
| readonly name: string;
| /**
| * A reference to the prototype.
| */
| readonly prototype: GeneratorFunction;
| }
| `;$i["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.symbol" />
|
| interface SymbolConstructor {
| /**
| * A method that returns the default iterator for an object. Called by the semantics of the
| * for-of statement.
| */
| readonly iterator: unique symbol;
| }
|
| interface IteratorYieldResult<TYield> {
| done?: false;
| value: TYield;
| }
|
| interface IteratorReturnResult<TReturn> {
| done: true;
| value: TReturn;
| }
|
| type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
|
| interface Iterator<T, TReturn = any, TNext = undefined> {
| // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
| next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
| return?(value?: TReturn): IteratorResult<T, TReturn>;
| throw?(e?: any): IteratorResult<T, TReturn>;
| }
|
| interface Iterable<T> {
| [Symbol.iterator](): Iterator<T>;
| }
|
| interface IterableIterator<T> extends Iterator<T> {
| [Symbol.iterator](): IterableIterator<T>;
| }
|
| interface Array<T> {
| /** Iterator */
| [Symbol.iterator](): IterableIterator<T>;
|
| /**
| * Returns an iterable of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, T]>;
|
| /**
| * Returns an iterable of keys in the array
| */
| keys(): IterableIterator<number>;
|
| /**
| * Returns an iterable of values in the array
| */
| values(): IterableIterator<T>;
| }
|
| interface ArrayConstructor {
| /**
| * Creates an array from an iterable object.
| * @param iterable An iterable object to convert to an array.
| */
| from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
| /**
| * Creates an array from an iterable object.
| * @param iterable An iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
| }
|
| interface ReadonlyArray<T> {
| /** Iterator of values in the array. */
| [Symbol.iterator](): IterableIterator<T>;
|
| /**
| * Returns an iterable of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, T]>;
|
| /**
| * Returns an iterable of keys in the array
| */
| keys(): IterableIterator<number>;
|
| /**
| * Returns an iterable of values in the array
| */
| values(): IterableIterator<T>;
| }
|
| interface IArguments {
| /** Iterator */
| [Symbol.iterator](): IterableIterator<any>;
| }
|
| interface Map<K, V> {
| /** Returns an iterable of entries in the map. */
| [Symbol.iterator](): IterableIterator<[K, V]>;
|
| /**
| * Returns an iterable of key, value pairs for every entry in the map.
| */
| entries(): IterableIterator<[K, V]>;
|
| /**
| * Returns an iterable of keys in the map
| */
| keys(): IterableIterator<K>;
|
| /**
| * Returns an iterable of values in the map
| */
| values(): IterableIterator<V>;
| }
|
| interface ReadonlyMap<K, V> {
| /** Returns an iterable of entries in the map. */
| [Symbol.iterator](): IterableIterator<[K, V]>;
|
| /**
| * Returns an iterable of key, value pairs for every entry in the map.
| */
| entries(): IterableIterator<[K, V]>;
|
| /**
| * Returns an iterable of keys in the map
| */
| keys(): IterableIterator<K>;
|
| /**
| * Returns an iterable of values in the map
| */
| values(): IterableIterator<V>;
| }
|
| interface MapConstructor {
| new(): Map<any, any>;
| new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
| }
|
| interface WeakMap<K extends object, V> { }
|
| interface WeakMapConstructor {
| new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
| }
|
| interface Set<T> {
| /** Iterates over values in the set. */
| [Symbol.iterator](): IterableIterator<T>;
| /**
| * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
| */
| entries(): IterableIterator<[T, T]>;
| /**
| * Despite its name, returns an iterable of the values in the set.
| */
| keys(): IterableIterator<T>;
|
| /**
| * Returns an iterable of values in the set.
| */
| values(): IterableIterator<T>;
| }
|
| interface ReadonlySet<T> {
| /** Iterates over values in the set. */
| [Symbol.iterator](): IterableIterator<T>;
|
| /**
| * Returns an iterable of [v,v] pairs for every value \`v\` in the set.
| */
| entries(): IterableIterator<[T, T]>;
|
| /**
| * Despite its name, returns an iterable of the values in the set.
| */
| keys(): IterableIterator<T>;
|
| /**
| * Returns an iterable of values in the set.
| */
| values(): IterableIterator<T>;
| }
|
| interface SetConstructor {
| new <T>(iterable?: Iterable<T> | null): Set<T>;
| }
|
| interface WeakSet<T extends object> { }
|
| interface WeakSetConstructor {
| new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
| }
|
| interface Promise<T> { }
|
| interface PromiseConstructor {
| /**
| * Creates a Promise that is resolved with an array of results when all of the provided Promises
| * resolve, or rejected when any Promise is rejected.
| * @param values An iterable of Promises.
| * @returns A new Promise.
| */
| all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
| /**
| * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
| * or rejected.
| * @param values An iterable of Promises.
| * @returns A new Promise.
| */
| race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
| }
|
| interface String {
| /** Iterator */
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface Int8Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Int8ArrayConstructor {
| new (elements: Iterable<number>): Int8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
| }
|
| interface Uint8Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Uint8ArrayConstructor {
| new (elements: Iterable<number>): Uint8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
| }
|
| interface Uint8ClampedArray {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
|
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
|
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Uint8ClampedArrayConstructor {
| new (elements: Iterable<number>): Uint8ClampedArray;
|
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
| }
|
| interface Int16Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
|
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
|
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Int16ArrayConstructor {
| new (elements: Iterable<number>): Int16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
| }
|
| interface Uint16Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Uint16ArrayConstructor {
| new (elements: Iterable<number>): Uint16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
| }
|
| interface Int32Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Int32ArrayConstructor {
| new (elements: Iterable<number>): Int32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
| }
|
| interface Uint32Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Uint32ArrayConstructor {
| new (elements: Iterable<number>): Uint32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
| }
|
| interface Float32Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Float32ArrayConstructor {
| new (elements: Iterable<number>): Float32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
| }
|
| interface Float64Array {
| [Symbol.iterator](): IterableIterator<number>;
| /**
| * Returns an array of key, value pairs for every entry in the array
| */
| entries(): IterableIterator<[number, number]>;
| /**
| * Returns an list of keys in the array
| */
| keys(): IterableIterator<number>;
| /**
| * Returns an list of values in the array
| */
| values(): IterableIterator<number>;
| }
|
| interface Float64ArrayConstructor {
| new (elements: Iterable<number>): Float64Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
| }
| `;$i["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface PromiseConstructor {
| /**
| * A reference to the prototype.
| */
| readonly prototype: Promise<any>;
|
| /**
| * Creates a new Promise.
| * @param executor A callback used to initialize the promise. This callback is passed two arguments:
| * a resolve callback used to resolve the promise with a value or the result of another promise,
| * and a reject callback used to reject the promise with a provided reason or error.
| */
| new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
|
| /**
| * Creates a Promise that is resolved with an array of results when all of the provided Promises
| * resolve, or rejected when any Promise is rejected.
| * @param values An array of Promises.
| * @returns A new Promise.
| */
| all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
|
| // see: lib.es2015.iterable.d.ts
| // all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
| /**
| * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
| * or rejected.
| * @param values An array of Promises.
| * @returns A new Promise.
| */
| race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
|
| // see: lib.es2015.iterable.d.ts
| // race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
|
| /**
| * Creates a new rejected promise for the provided reason.
| * @param reason The reason the promise was rejected.
| * @returns A new rejected Promise.
| */
| reject<T = never>(reason?: any): Promise<T>;
|
| /**
| * Creates a new resolved promise.
| * @returns A resolved promise.
| */
| resolve(): Promise<void>;
| /**
| * Creates a new resolved promise for the provided value.
| * @param value A promise.
| * @returns A promise whose internal state matches the provided promise.
| */
| resolve<T>(value: T): Promise<Awaited<T>>;
| /**
| * Creates a new resolved promise for the provided value.
| * @param value A promise.
| * @returns A promise whose internal state matches the provided promise.
| */
| resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
| }
|
| declare var Promise: PromiseConstructor;
| `;$i["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface ProxyHandler<T extends object> {
| /**
| * A trap method for a function call.
| * @param target The original callable object which is being proxied.
| */
| apply?(target: T, thisArg: any, argArray: any[]): any;
|
| /**
| * A trap for the \`new\` operator.
| * @param target The original object which is being proxied.
| * @param newTarget The constructor that was originally called.
| */
| construct?(target: T, argArray: any[], newTarget: Function): object;
|
| /**
| * A trap for \`Object.defineProperty()\`.
| * @param target The original object which is being proxied.
| * @returns A \`Boolean\` indicating whether or not the property has been defined.
| */
| defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
|
| /**
| * A trap for the \`delete\` operator.
| * @param target The original object which is being proxied.
| * @param p The name or \`Symbol\` of the property to delete.
| * @returns A \`Boolean\` indicating whether or not the property was deleted.
| */
| deleteProperty?(target: T, p: string | symbol): boolean;
|
| /**
| * A trap for getting a property value.
| * @param target The original object which is being proxied.
| * @param p The name or \`Symbol\` of the property to get.
| * @param receiver The proxy or an object that inherits from the proxy.
| */
| get?(target: T, p: string | symbol, receiver: any): any;
|
| /**
| * A trap for \`Object.getOwnPropertyDescriptor()\`.
| * @param target The original object which is being proxied.
| * @param p The name of the property whose description should be retrieved.
| */
| getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
|
| /**
| * A trap for the \`[[GetPrototypeOf]]\` internal method.
| * @param target The original object which is being proxied.
| */
| getPrototypeOf?(target: T): object | null;
|
| /**
| * A trap for the \`in\` operator.
| * @param target The original object which is being proxied.
| * @param p The name or \`Symbol\` of the property to check for existence.
| */
| has?(target: T, p: string | symbol): boolean;
|
| /**
| * A trap for \`Object.isExtensible()\`.
| * @param target The original object which is being proxied.
| */
| isExtensible?(target: T): boolean;
|
| /**
| * A trap for \`Reflect.ownKeys()\`.
| * @param target The original object which is being proxied.
| */
| ownKeys?(target: T): ArrayLike<string | symbol>;
|
| /**
| * A trap for \`Object.preventExtensions()\`.
| * @param target The original object which is being proxied.
| */
| preventExtensions?(target: T): boolean;
|
| /**
| * A trap for setting a property value.
| * @param target The original object which is being proxied.
| * @param p The name or \`Symbol\` of the property to set.
| * @param receiver The object to which the assignment was originally directed.
| * @returns A \`Boolean\` indicating whether or not the property was set.
| */
| set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
|
| /**
| * A trap for \`Object.setPrototypeOf()\`.
| * @param target The original object which is being proxied.
| * @param newPrototype The object's new prototype or \`null\`.
| */
| setPrototypeOf?(target: T, v: object | null): boolean;
| }
|
| interface ProxyConstructor {
| /**
| * Creates a revocable Proxy object.
| * @param target A target object to wrap with Proxy.
| * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
| */
| revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
|
| /**
| * Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
| * original object, but which may redefine fundamental Object operations like getting, setting, and defining
| * properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
| * @param target A target object to wrap with Proxy.
| * @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
| */
| new <T extends object>(target: T, handler: ProxyHandler<T>): T;
| }
| declare var Proxy: ProxyConstructor;
| `;$i["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Reflect {
| /**
| * Calls the function with the specified object as the this value
| * and the elements of specified array as the arguments.
| * @param target The function to call.
| * @param thisArgument The object to be used as the this object.
| * @param argumentsList An array of argument values to be passed to the function.
| */
| function apply<T, A extends readonly any[], R>(
| target: (this: T, ...args: A) => R,
| thisArgument: T,
| argumentsList: Readonly<A>,
| ): R;
| function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
|
| /**
| * Constructs the target with the elements of specified array as the arguments
| * and the specified constructor as the \`new.target\` value.
| * @param target The constructor to invoke.
| * @param argumentsList An array of argument values to be passed to the constructor.
| * @param newTarget The constructor to be used as the \`new.target\` object.
| */
| function construct<A extends readonly any[], R>(
| target: new (...args: A) => R,
| argumentsList: Readonly<A>,
| newTarget?: new (...args: any) => any,
| ): R;
| function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
|
| /**
| * Adds a property to an object, or modifies attributes of an existing property.
| * @param target Object on which to add or modify the property. This can be a native JavaScript object
| * (that is, a user-defined object or a built in object) or a DOM object.
| * @param propertyKey The property name.
| * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
| */
| function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
|
| /**
| * Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
| * except it won't throw if \`target[propertyKey]\` is non-configurable.
| * @param target Object from which to remove the own property.
| * @param propertyKey The property name.
| */
| function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
|
| /**
| * Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
| * @param target Object that contains the property on itself or in its prototype chain.
| * @param propertyKey The property name.
| * @param receiver The reference to use as the \`this\` value in the getter function,
| * if \`target[propertyKey]\` is an accessor property.
| */
| function get<T extends object, P extends PropertyKey>(
| target: T,
| propertyKey: P,
| receiver?: unknown,
| ): P extends keyof T ? T[P] : any;
|
| /**
| * Gets the own property descriptor of the specified object.
| * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
| * @param target Object that contains the property.
| * @param propertyKey The property name.
| */
| function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
| target: T,
| propertyKey: P,
| ): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
|
| /**
| * Returns the prototype of an object.
| * @param target The object that references the prototype.
| */
| function getPrototypeOf(target: object): object | null;
|
| /**
| * Equivalent to \`propertyKey in target\`.
| * @param target Object that contains the property on itself or in its prototype chain.
| * @param propertyKey Name of the property.
| */
| function has(target: object, propertyKey: PropertyKey): boolean;
|
| /**
| * Returns a value that indicates whether new properties can be added to an object.
| * @param target Object to test.
| */
| function isExtensible(target: object): boolean;
|
| /**
| * Returns the string and symbol keys of the own properties of an object. The own properties of an object
| * are those that are defined directly on that object, and are not inherited from the object's prototype.
| * @param target Object that contains the own properties.
| */
| function ownKeys(target: object): (string | symbol)[];
|
| /**
| * Prevents the addition of new properties to an object.
| * @param target Object to make non-extensible.
| * @return Whether the object has been made non-extensible.
| */
| function preventExtensions(target: object): boolean;
|
| /**
| * Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
| * @param target Object that contains the property on itself or in its prototype chain.
| * @param propertyKey Name of the property.
| * @param receiver The reference to use as the \`this\` value in the setter function,
| * if \`target[propertyKey]\` is an accessor property.
| */
| function set<T extends object, P extends PropertyKey>(
| target: T,
| propertyKey: P,
| value: P extends keyof T ? T[P] : any,
| receiver?: any,
| ): boolean;
| function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
|
| /**
| * Sets the prototype of a specified object o to object proto or null.
| * @param target The object to change its prototype.
| * @param proto The value of the new prototype or null.
| * @return Whether setting the prototype was successful.
| */
| function setPrototypeOf(target: object, proto: object | null): boolean;
| }
| `;$i["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface SymbolConstructor {
| /**
| * A reference to the prototype.
| */
| readonly prototype: Symbol;
|
| /**
| * Returns a new unique Symbol value.
| * @param description Description of the new Symbol object.
| */
| (description?: string | number): symbol;
|
| /**
| * Returns a Symbol object from the global symbol registry matching the given key if found.
| * Otherwise, returns a new symbol with this key.
| * @param key key to search for.
| */
| for(key: string): symbol;
|
| /**
| * Returns a key from the global symbol registry matching the given Symbol if found.
| * Otherwise, returns a undefined.
| * @param sym Symbol to find the key for.
| */
| keyFor(sym: symbol): string | undefined;
| }
|
| declare var Symbol: SymbolConstructor;`;$i["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.symbol" />
|
| interface SymbolConstructor {
| /**
| * A method that determines if a constructor object recognizes an object as one of the
| * constructor\u2019s instances. Called by the semantics of the instanceof operator.
| */
| readonly hasInstance: unique symbol;
|
| /**
| * A Boolean value that if true indicates that an object should flatten to its array elements
| * by Array.prototype.concat.
| */
| readonly isConcatSpreadable: unique symbol;
|
| /**
| * A regular expression method that matches the regular expression against a string. Called
| * by the String.prototype.match method.
| */
| readonly match: unique symbol;
|
| /**
| * A regular expression method that replaces matched substrings of a string. Called by the
| * String.prototype.replace method.
| */
| readonly replace: unique symbol;
|
| /**
| * A regular expression method that returns the index within a string that matches the
| * regular expression. Called by the String.prototype.search method.
| */
| readonly search: unique symbol;
|
| /**
| * A function valued property that is the constructor function that is used to create
| * derived objects.
| */
| readonly species: unique symbol;
|
| /**
| * A regular expression method that splits a string at the indices that match the regular
| * expression. Called by the String.prototype.split method.
| */
| readonly split: unique symbol;
|
| /**
| * A method that converts an object to a corresponding primitive value.
| * Called by the ToPrimitive abstract operation.
| */
| readonly toPrimitive: unique symbol;
|
| /**
| * A String value that is used in the creation of the default string description of an object.
| * Called by the built-in method Object.prototype.toString.
| */
| readonly toStringTag: unique symbol;
|
| /**
| * An Object whose truthy properties are properties that are excluded from the 'with'
| * environment bindings of the associated objects.
| */
| readonly unscopables: unique symbol;
| }
|
| interface Symbol {
| /**
| * Converts a Symbol object to a symbol.
| */
| [Symbol.toPrimitive](hint: string): symbol;
|
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Array<T> {
| /**
| * Is an object whose properties have the value 'true'
| * when they will be absent when used in a 'with' statement.
| */
| readonly [Symbol.unscopables]: {
| [K in keyof any[]]?: boolean;
| };
| }
|
| interface ReadonlyArray<T> {
| /**
| * Is an object whose properties have the value 'true'
| * when they will be absent when used in a 'with' statement.
| */
| readonly [Symbol.unscopables]: {
| [K in keyof readonly any[]]?: boolean;
| };
| }
|
| interface Date {
| /**
| * Converts a Date object to a string.
| */
| [Symbol.toPrimitive](hint: "default"): string;
| /**
| * Converts a Date object to a string.
| */
| [Symbol.toPrimitive](hint: "string"): string;
| /**
| * Converts a Date object to a number.
| */
| [Symbol.toPrimitive](hint: "number"): number;
| /**
| * Converts a Date object to a string or number.
| *
| * @param hint The strings "number", "string", or "default" to specify what primitive to return.
| *
| * @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
| * @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
| */
| [Symbol.toPrimitive](hint: string): string | number;
| }
|
| interface Map<K, V> {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface WeakMap<K extends object, V> {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Set<T> {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface WeakSet<T extends object> {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface JSON {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Function {
| /**
| * Determines whether the given value inherits from this function if this function was used
| * as a constructor function.
| *
| * A constructor function can control which objects are recognized as its instances by
| * 'instanceof' by overriding this method.
| */
| [Symbol.hasInstance](value: any): boolean;
| }
|
| interface GeneratorFunction {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Math {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Promise<T> {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface PromiseConstructor {
| readonly [Symbol.species]: PromiseConstructor;
| }
|
| interface RegExp {
| /**
| * Matches a string with this regular expression, and returns an array containing the results of
| * that search.
| * @param string A string to search within.
| */
| [Symbol.match](string: string): RegExpMatchArray | null;
|
| /**
| * Replaces text in a string, using this regular expression.
| * @param string A String object or string literal whose contents matching against
| * this regular expression will be replaced
| * @param replaceValue A String object or string literal containing the text to replace for every
| * successful match of this regular expression.
| */
| [Symbol.replace](string: string, replaceValue: string): string;
|
| /**
| * Replaces text in a string, using this regular expression.
| * @param string A String object or string literal whose contents matching against
| * this regular expression will be replaced
| * @param replacer A function that returns the replacement text.
| */
| [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
| /**
| * Finds the position beginning first substring match in a regular expression search
| * using this regular expression.
| *
| * @param string The string to search within.
| */
| [Symbol.search](string: string): number;
|
| /**
| * Returns an array of substrings that were delimited by strings in the original input that
| * match against this regular expression.
| *
| * If the regular expression contains capturing parentheses, then each time this
| * regular expression matches, the results (including any undefined results) of the
| * capturing parentheses are spliced.
| *
| * @param string string value to split
| * @param limit if not undefined, the output array is truncated so that it contains no more
| * than 'limit' elements.
| */
| [Symbol.split](string: string, limit?: number): string[];
| }
|
| interface RegExpConstructor {
| readonly [Symbol.species]: RegExpConstructor;
| }
|
| interface String {
| /**
| * Matches a string or an object that supports being matched against, and returns an array
| * containing the results of that search, or null if no matches are found.
| * @param matcher An object that supports being matched against.
| */
| match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
|
| /**
| * Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
| * @param searchValue An object that supports searching for and replacing matches within a string.
| * @param replaceValue The replacement text.
| */
| replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
|
| /**
| * Replaces text in a string, using an object that supports replacement within a string.
| * @param searchValue A object can search for and replace matches within a string.
| * @param replacer A function that returns the replacement text.
| */
| replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
|
| /**
| * Finds the first substring match in a regular expression search.
| * @param searcher An object which supports searching within a string.
| */
| search(searcher: { [Symbol.search](string: string): number; }): number;
|
| /**
| * Split a string into substrings using the specified separator and return them as an array.
| * @param splitter An object that can split a string.
| * @param limit A value used to limit the number of elements returned in the array.
| */
| split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
| }
|
| interface ArrayBuffer {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface DataView {
| readonly [Symbol.toStringTag]: string;
| }
|
| interface Int8Array {
| readonly [Symbol.toStringTag]: "Int8Array";
| }
|
| interface Uint8Array {
| readonly [Symbol.toStringTag]: "Uint8Array";
| }
|
| interface Uint8ClampedArray {
| readonly [Symbol.toStringTag]: "Uint8ClampedArray";
| }
|
| interface Int16Array {
| readonly [Symbol.toStringTag]: "Int16Array";
| }
|
| interface Uint16Array {
| readonly [Symbol.toStringTag]: "Uint16Array";
| }
|
| interface Int32Array {
| readonly [Symbol.toStringTag]: "Int32Array";
| }
|
| interface Uint32Array {
| readonly [Symbol.toStringTag]: "Uint32Array";
| }
|
| interface Float32Array {
| readonly [Symbol.toStringTag]: "Float32Array";
| }
|
| interface Float64Array {
| readonly [Symbol.toStringTag]: "Float64Array";
| }
|
| interface ArrayConstructor {
| readonly [Symbol.species]: ArrayConstructor;
| }
| interface MapConstructor {
| readonly [Symbol.species]: MapConstructor;
| }
| interface SetConstructor {
| readonly [Symbol.species]: SetConstructor;
| }
| interface ArrayBufferConstructor {
| readonly [Symbol.species]: ArrayBufferConstructor;
| }
| `;$i["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Array<T> {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: T, fromIndex?: number): boolean;
| }
|
| interface ReadonlyArray<T> {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: T, fromIndex?: number): boolean;
| }
|
| interface Int8Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Uint8Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Uint8ClampedArray {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Int16Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Uint16Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Int32Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Uint32Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Float32Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }
|
| interface Float64Array {
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: number, fromIndex?: number): boolean;
| }`;$i["lib.es2016.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015" />
| /// <reference lib="es2016.array.include" />`;$i["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2016" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />`;$i["lib.es2017.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2016" />
| /// <reference lib="es2017.object" />
| /// <reference lib="es2017.sharedmemory" />
| /// <reference lib="es2017.string" />
| /// <reference lib="es2017.intl" />
| /// <reference lib="es2017.typedarrays" />
| `;$i["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2017" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />`;$i["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
|
| interface DateTimeFormatPartTypesRegistry {
| day: any
| dayPeriod: any
| era: any
| hour: any
| literal: any
| minute: any
| month: any
| second: any
| timeZoneName: any
| weekday: any
| year: any
| }
|
| type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
|
| interface DateTimeFormatPart {
| type: DateTimeFormatPartTypes;
| value: string;
| }
|
| interface DateTimeFormat {
| formatToParts(date?: Date | number): DateTimeFormatPart[];
| }
| }
| `;$i["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface ObjectConstructor {
| /**
| * Returns an array of values of the enumerable properties of an object
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
|
| /**
| * Returns an array of values of the enumerable properties of an object
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| values(o: {}): any[];
|
| /**
| * Returns an array of key/values of the enumerable properties of an object
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
|
| /**
| * Returns an array of key/values of the enumerable properties of an object
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| entries(o: {}): [string, any][];
|
| /**
| * Returns an object containing all own property descriptors of an object
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
| }
| `;$i["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.symbol" />
| /// <reference lib="es2015.symbol.wellknown" />
|
| interface SharedArrayBuffer {
| /**
| * Read-only. The length of the ArrayBuffer (in bytes).
| */
| readonly byteLength: number;
|
| /**
| * Returns a section of an SharedArrayBuffer.
| */
| slice(begin: number, end?: number): SharedArrayBuffer;
| readonly [Symbol.species]: SharedArrayBuffer;
| readonly [Symbol.toStringTag]: "SharedArrayBuffer";
| }
|
| interface SharedArrayBufferConstructor {
| readonly prototype: SharedArrayBuffer;
| new (byteLength: number): SharedArrayBuffer;
| }
| declare var SharedArrayBuffer: SharedArrayBufferConstructor;
|
| interface ArrayBufferTypes {
| SharedArrayBuffer: SharedArrayBuffer;
| }
|
| interface Atomics {
| /**
| * Adds a value to the value at the given position in the array, returning the original value.
| * Until this atomic operation completes, any other read or write operation against the array
| * will block.
| */
| add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * Stores the bitwise AND of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or
| * write operation against the array will block.
| */
| and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * Replaces the value at the given position in the array if the original value equals the given
| * expected value, returning the original value. Until this atomic operation completes, any
| * other read or write operation against the array will block.
| */
| compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
|
| /**
| * Replaces the value at the given position in the array, returning the original value. Until
| * this atomic operation completes, any other read or write operation against the array will
| * block.
| */
| exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * Returns a value indicating whether high-performance algorithms can use atomic operations
| * (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
| * array.
| */
| isLockFree(size: number): boolean;
|
| /**
| * Returns the value at the given position in the array. Until this atomic operation completes,
| * any other read or write operation against the array will block.
| */
| load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
|
| /**
| * Stores the bitwise OR of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or write
| * operation against the array will block.
| */
| or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * Stores a value at the given position in the array, returning the new value. Until this
| * atomic operation completes, any other read or write operation against the array will block.
| */
| store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * Subtracts a value from the value at the given position in the array, returning the original
| * value. Until this atomic operation completes, any other read or write operation against the
| * array will block.
| */
| sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| /**
| * If the value at the given position in the array is equal to the provided value, the current
| * agent is put to sleep causing execution to suspend until the timeout expires (returning
| * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
| * \`"not-equal"\`.
| */
| wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
|
| /**
| * Wakes up sleeping agents that are waiting on the given index of the array, returning the
| * number of agents that were awoken.
| * @param typedArray A shared Int32Array.
| * @param index The position in the typedArray to wake up on.
| * @param count The number of sleeping agents to notify. Defaults to +Infinity.
| */
| notify(typedArray: Int32Array, index: number, count?: number): number;
|
| /**
| * Stores the bitwise XOR of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or write
| * operation against the array will block.
| */
| xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
|
| readonly [Symbol.toStringTag]: "Atomics";
| }
|
| declare var Atomics: Atomics;
| `;$i["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface String {
| /**
| * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
| * The padding is applied from the start (left) of the current string.
| *
| * @param maxLength The length of the resulting string once the current string has been padded.
| * If this parameter is smaller than the current string's length, the current string will be returned as it is.
| *
| * @param fillString The string to pad the current string with.
| * If this string is too long, it will be truncated and the left-most part will be applied.
| * The default value for this parameter is " " (U+0020).
| */
| padStart(maxLength: number, fillString?: string): string;
|
| /**
| * Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
| * The padding is applied from the end (right) of the current string.
| *
| * @param maxLength The length of the resulting string once the current string has been padded.
| * If this parameter is smaller than the current string's length, the current string will be returned as it is.
| *
| * @param fillString The string to pad the current string with.
| * If this string is too long, it will be truncated and the left-most part will be applied.
| * The default value for this parameter is " " (U+0020).
| */
| padEnd(maxLength: number, fillString?: string): string;
| }
| `;$i["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Int8ArrayConstructor {
| new (): Int8Array;
| }
|
| interface Uint8ArrayConstructor {
| new (): Uint8Array;
| }
|
| interface Uint8ClampedArrayConstructor {
| new (): Uint8ClampedArray;
| }
|
| interface Int16ArrayConstructor {
| new (): Int16Array;
| }
|
| interface Uint16ArrayConstructor {
| new (): Uint16Array;
| }
|
| interface Int32ArrayConstructor {
| new (): Int32Array;
| }
|
| interface Uint32ArrayConstructor {
| new (): Uint32Array;
| }
|
| interface Float32ArrayConstructor {
| new (): Float32Array;
| }
|
| interface Float64ArrayConstructor {
| new (): Float64Array;
| }
| `;$i["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2018.asynciterable" />
|
| interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
| // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
| next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
| return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
| throw(e: any): Promise<IteratorResult<T, TReturn>>;
| [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
| }
|
| interface AsyncGeneratorFunction {
| /**
| * Creates a new AsyncGenerator object.
| * @param args A list of arguments the function accepts.
| */
| new (...args: any[]): AsyncGenerator;
| /**
| * Creates a new AsyncGenerator object.
| * @param args A list of arguments the function accepts.
| */
| (...args: any[]): AsyncGenerator;
| /**
| * The length of the arguments.
| */
| readonly length: number;
| /**
| * Returns the name of the function.
| */
| readonly name: string;
| /**
| * A reference to the prototype.
| */
| readonly prototype: AsyncGenerator;
| }
|
| interface AsyncGeneratorFunctionConstructor {
| /**
| * Creates a new AsyncGenerator function.
| * @param args A list of arguments the function accepts.
| */
| new (...args: string[]): AsyncGeneratorFunction;
| /**
| * Creates a new AsyncGenerator function.
| * @param args A list of arguments the function accepts.
| */
| (...args: string[]): AsyncGeneratorFunction;
| /**
| * The length of the arguments.
| */
| readonly length: number;
| /**
| * Returns the name of the function.
| */
| readonly name: string;
| /**
| * A reference to the prototype.
| */
| readonly prototype: AsyncGeneratorFunction;
| }
| `;$i["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.symbol" />
| /// <reference lib="es2015.iterable" />
|
| interface SymbolConstructor {
| /**
| * A method that returns the default async iterator for an object. Called by the semantics of
| * the for-await-of statement.
| */
| readonly asyncIterator: unique symbol;
| }
|
| interface AsyncIterator<T, TReturn = any, TNext = undefined> {
| // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
| next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
| return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
| throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
| }
|
| interface AsyncIterable<T> {
| [Symbol.asyncIterator](): AsyncIterator<T>;
| }
|
| interface AsyncIterableIterator<T> extends AsyncIterator<T> {
| [Symbol.asyncIterator](): AsyncIterableIterator<T>;
| }`;$i["lib.es2018.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2017" />
| /// <reference lib="es2018.asynciterable" />
| /// <reference lib="es2018.asyncgenerator" />
| /// <reference lib="es2018.promise" />
| /// <reference lib="es2018.regexp" />
| /// <reference lib="es2018.intl" />
| `;$i["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2018" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />`;$i["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
|
| // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
| type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
| type PluralRuleType = "cardinal" | "ordinal";
|
| interface PluralRulesOptions {
| localeMatcher?: "lookup" | "best fit" | undefined;
| type?: PluralRuleType | undefined;
| minimumIntegerDigits?: number | undefined;
| minimumFractionDigits?: number | undefined;
| maximumFractionDigits?: number | undefined;
| minimumSignificantDigits?: number | undefined;
| maximumSignificantDigits?: number | undefined;
| }
|
| interface ResolvedPluralRulesOptions {
| locale: string;
| pluralCategories: LDMLPluralRule[];
| type: PluralRuleType;
| minimumIntegerDigits: number;
| minimumFractionDigits: number;
| maximumFractionDigits: number;
| minimumSignificantDigits?: number;
| maximumSignificantDigits?: number;
| }
|
| interface PluralRules {
| resolvedOptions(): ResolvedPluralRulesOptions;
| select(n: number): LDMLPluralRule;
| }
|
| const PluralRules: {
| new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
| (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
| supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
| };
|
| // We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
| type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
| type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
| type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
| interface NumberFormatPart {
| type: NumberFormatPartTypes;
| value: string;
| }
|
| interface NumberFormat {
| formatToParts(number?: number | bigint): NumberFormatPart[];
| }
| }
| `;$i["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /**
| * Represents the completion of an asynchronous operation
| */
| interface Promise<T> {
| /**
| * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
| * resolved value cannot be modified from the callback.
| * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
| * @returns A Promise for the completion of the callback.
| */
| finally(onfinally?: (() => void) | undefined | null): Promise<T>
| }
| `;$i["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface RegExpMatchArray {
| groups?: {
| [key: string]: string
| }
| }
|
| interface RegExpExecArray {
| groups?: {
| [key: string]: string
| }
| }
|
| interface RegExp {
| /**
| * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
| * Default is false. Read-only.
| */
| readonly dotAll: boolean;
| }`;$i["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| type FlatArray<Arr, Depth extends number> = {
| "done": Arr,
| "recur": Arr extends ReadonlyArray<infer InnerArr>
| ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
| : Arr
| }[Depth extends -1 ? "done" : "recur"];
|
| interface ReadonlyArray<T> {
|
| /**
| * Calls a defined callback function on each element of an array. Then, flattens the result into
| * a new array.
| * This is identical to a map followed by flat with depth 1.
| *
| * @param callback A function that accepts up to three arguments. The flatMap method calls the
| * callback function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callback function. If
| * thisArg is omitted, undefined is used as the this value.
| */
| flatMap<U, This = undefined> (
| callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
| thisArg?: This
| ): U[]
|
|
| /**
| * Returns a new array with all sub-array elements concatenated into it recursively up to the
| * specified depth.
| *
| * @param depth The maximum recursion depth
| */
| flat<A, D extends number = 1>(
| this: A,
| depth?: D
| ): FlatArray<A, D>[]
| }
|
| interface Array<T> {
|
| /**
| * Calls a defined callback function on each element of an array. Then, flattens the result into
| * a new array.
| * This is identical to a map followed by flat with depth 1.
| *
| * @param callback A function that accepts up to three arguments. The flatMap method calls the
| * callback function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callback function. If
| * thisArg is omitted, undefined is used as the this value.
| */
| flatMap<U, This = undefined> (
| callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
| thisArg?: This
| ): U[]
|
| /**
| * Returns a new array with all sub-array elements concatenated into it recursively up to the
| * specified depth.
| *
| * @param depth The maximum recursion depth
| */
| flat<A, D extends number = 1>(
| this: A,
| depth?: D
| ): FlatArray<A, D>[]
| }
| `;$i["lib.es2019.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2018" />
| /// <reference lib="es2019.array" />
| /// <reference lib="es2019.object" />
| /// <reference lib="es2019.string" />
| /// <reference lib="es2019.symbol" />
| /// <reference lib="es2019.intl" />
| `;$i["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2019" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />
| `;$i["lib.es2019.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
| interface DateTimeFormatPartTypesRegistry {
| unknown: any
| }
| }
| `;$i["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.iterable" />
|
| interface ObjectConstructor {
| /**
| * Returns an object created by key-value entries for properties and methods
| * @param entries An iterable object that contains key-value entries for properties and methods.
| */
| fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
|
| /**
| * Returns an object created by key-value entries for properties and methods
| * @param entries An iterable object that contains key-value entries for properties and methods.
| */
| fromEntries(entries: Iterable<readonly any[]>): any;
| }
| `;$i["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface String {
| /** Removes the trailing white space and line terminator characters from a string. */
| trimEnd(): string;
|
| /** Removes the leading white space and line terminator characters from a string. */
| trimStart(): string;
|
| /**
| * Removes the leading white space and line terminator characters from a string.
| * @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
| */
| trimLeft(): string;
|
| /**
| * Removes the trailing white space and line terminator characters from a string.
| * @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
| */
| trimRight(): string;
| }
| `;$i["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Symbol {
| /**
| * Expose the [[Description]] internal slot of a symbol directly.
| */
| readonly description: string | undefined;
| }
| `;$i["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2020.intl" />
|
| interface BigIntToLocaleStringOptions {
| /**
| * The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
| */
| localeMatcher?: string;
| /**
| * The formatting style to use , the default is "decimal".
| */
| style?: string;
|
| numberingSystem?: string;
| /**
| * The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
| */
| unit?: string;
|
| /**
| * The unit formatting style to use in unit formatting, the defaults is "short".
| */
| unitDisplay?: string;
|
| /**
| * The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
| */
| currency?: string;
|
| /**
| * How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
| *
| * "symbol" to use a localized currency symbol such as \u20AC,
| *
| * "code" to use the ISO currency code,
| *
| * "name" to use a localized currency name such as "dollar"
| */
| currencyDisplay?: string;
|
| /**
| * Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
| */
| useGrouping?: boolean;
|
| /**
| * The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
| */
| minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
|
| /**
| * The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
| */
| minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
| /**
| * The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
| */
| maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
|
| /**
| * The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
| */
| minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
|
| /**
| * The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
| */
| maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
|
| /**
| * The formatting that should be displayed for the number, the defaults is "standard"
| *
| * "standard" plain number formatting
| *
| * "scientific" return the order-of-magnitude for formatted number.
| *
| * "engineering" return the exponent of ten when divisible by three
| *
| * "compact" string representing exponent, defaults is using the "short" form
| */
| notation?: string;
|
| /**
| * used only when notation is "compact"
| */
| compactDisplay?: string;
| }
|
| interface BigInt {
| /**
| * Returns a string representation of an object.
| * @param radix Specifies a radix for converting numeric values to strings.
| */
| toString(radix?: number): string;
|
| /** Returns a string representation appropriate to the host environment's current locale. */
| toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): bigint;
|
| readonly [Symbol.toStringTag]: "BigInt";
| }
|
| interface BigIntConstructor {
| (value: bigint | boolean | number | string): bigint;
| readonly prototype: BigInt;
|
| /**
| * Interprets the low bits of a BigInt as a 2's-complement signed integer.
| * All higher bits are discarded.
| * @param bits The number of low bits to use
| * @param int The BigInt whose bits to extract
| */
| asIntN(bits: number, int: bigint): bigint;
| /**
| * Interprets the low bits of a BigInt as an unsigned integer.
| * All higher bits are discarded.
| * @param bits The number of low bits to use
| * @param int The BigInt whose bits to extract
| */
| asUintN(bits: number, int: bigint): bigint;
| }
|
| declare var BigInt: BigIntConstructor;
|
| /**
| * A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated, an exception is raised.
| */
| interface BigInt64Array {
| /** The size in bytes of each element in the array. */
| readonly BYTES_PER_ELEMENT: number;
|
| /** The ArrayBuffer instance referenced by the array. */
| readonly buffer: ArrayBufferLike;
|
| /** The length in bytes of the array. */
| readonly byteLength: number;
|
| /** The offset in bytes of the array. */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /** Yields index, value pairs for every entry in the array. */
| entries(): IterableIterator<[number, bigint]>;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns false,
| * or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: bigint, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
|
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: bigint, fromIndex?: number): boolean;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: bigint, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /** Yields each index in the array. */
| keys(): IterableIterator<number>;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: bigint, fromIndex?: number): number;
|
| /** The length of the array. */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
|
| /** Reverses the elements in the array. */
| reverse(): this;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<bigint>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array.
| */
| slice(start?: number, end?: number): BigInt64Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls the
| * predicate function for each element in the array until the predicate returns true, or until
| * the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
|
| /**
| * Sorts the array.
| * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
| */
| sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
|
| /**
| * Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): BigInt64Array;
|
| /** Converts the array to a string by using the current locale. */
| toLocaleString(): string;
|
| /** Returns a string representation of the array. */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): BigInt64Array;
|
| /** Yields each value in the array. */
| values(): IterableIterator<bigint>;
|
| [Symbol.iterator](): IterableIterator<bigint>;
|
| readonly [Symbol.toStringTag]: "BigInt64Array";
|
| [index: number]: bigint;
| }
|
| interface BigInt64ArrayConstructor {
| readonly prototype: BigInt64Array;
| new(length?: number): BigInt64Array;
| new(array: Iterable<bigint>): BigInt64Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
|
| /** The size in bytes of each element in the array. */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: bigint[]): BigInt64Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: ArrayLike<bigint>): BigInt64Array;
| from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
| }
|
| declare var BigInt64Array: BigInt64ArrayConstructor;
|
| /**
| * A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated, an exception is raised.
| */
| interface BigUint64Array {
| /** The size in bytes of each element in the array. */
| readonly BYTES_PER_ELEMENT: number;
|
| /** The ArrayBuffer instance referenced by the array. */
| readonly buffer: ArrayBufferLike;
|
| /** The length in bytes of the array. */
| readonly byteLength: number;
|
| /** The offset in bytes of the array. */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /** Yields index, value pairs for every entry in the array. */
| entries(): IterableIterator<[number, bigint]>;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns false,
| * or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: bigint, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
|
| /**
| * Determines whether an array includes a certain element, returning true or false as appropriate.
| * @param searchElement The element to search for.
| * @param fromIndex The position in this array at which to begin searching for searchElement.
| */
| includes(searchElement: bigint, fromIndex?: number): boolean;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: bigint, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /** Yields each index in the array. */
| keys(): IterableIterator<number>;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: bigint, fromIndex?: number): number;
|
| /** The length of the array. */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
|
| /** Reverses the elements in the array. */
| reverse(): this;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<bigint>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array.
| */
| slice(start?: number, end?: number): BigUint64Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls the
| * predicate function for each element in the array until the predicate returns true, or until
| * the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
|
| /**
| * Sorts the array.
| * @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
| */
| sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
|
| /**
| * Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): BigUint64Array;
|
| /** Converts the array to a string by using the current locale. */
| toLocaleString(): string;
|
| /** Returns a string representation of the array. */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): BigUint64Array;
|
| /** Yields each value in the array. */
| values(): IterableIterator<bigint>;
|
| [Symbol.iterator](): IterableIterator<bigint>;
|
| readonly [Symbol.toStringTag]: "BigUint64Array";
|
| [index: number]: bigint;
| }
|
| interface BigUint64ArrayConstructor {
| readonly prototype: BigUint64Array;
| new(length?: number): BigUint64Array;
| new(array: Iterable<bigint>): BigUint64Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
|
| /** The size in bytes of each element in the array. */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: bigint[]): BigUint64Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from(arrayLike: ArrayLike<bigint>): BigUint64Array;
| from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
| }
|
| declare var BigUint64Array: BigUint64ArrayConstructor;
|
| interface DataView {
| /**
| * Gets the BigInt64 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
|
| /**
| * Gets the BigUint64 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
|
| /**
| * Stores a BigInt64 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
|
| /**
| * Stores a BigUint64 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
| }
|
| declare namespace Intl{
| interface NumberFormat {
| format(value: number | bigint): string;
| resolvedOptions(): ResolvedNumberFormatOptions;
| }
| }
| `;$i["lib.es2020.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2019" />
| /// <reference lib="es2020.bigint" />
| /// <reference lib="es2020.date" />
| /// <reference lib="es2020.number" />
| /// <reference lib="es2020.promise" />
| /// <reference lib="es2020.sharedmemory" />
| /// <reference lib="es2020.string" />
| /// <reference lib="es2020.symbol.wellknown" />
| /// <reference lib="es2020.intl" />
| `;$i["lib.es2020.date.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2020.intl" />
|
| interface Date {
| /**
| * Converts a date and time to a string by using the current or specified locale.
| * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
| /**
| * Converts a date to a string by using the current or specified locale.
| * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
| /**
| * Converts a time to a string by using the current or specified locale.
| * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
| }`;$i["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2020" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />
| `;$i["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2018.intl" />
| declare namespace Intl {
|
| /**
| * [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
| */
| type UnicodeBCP47LocaleIdentifier = string;
|
| /**
| * Unit to use in the relative time internationalized message.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
| */
| type RelativeTimeFormatUnit =
| | "year"
| | "years"
| | "quarter"
| | "quarters"
| | "month"
| | "months"
| | "week"
| | "weeks"
| | "day"
| | "days"
| | "hour"
| | "hours"
| | "minute"
| | "minutes"
| | "second"
| | "seconds";
|
| /**
| * Value of the \`unit\` property in objects returned by
| * \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
| * \`format\` methods accept either singular or plural unit names as input,
| * but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
| * "days").
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
| */
| type RelativeTimeFormatUnitSingular =
| | "year"
| | "quarter"
| | "month"
| | "week"
| | "day"
| | "hour"
| | "minute"
| | "second";
|
| /**
| * The locale matching algorithm to use.
| *
| * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
| */
| type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
|
| /**
| * The format of output message.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
| */
| type RelativeTimeFormatNumeric = "always" | "auto";
|
| /**
| * The length of the internationalized message.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
| */
| type RelativeTimeFormatStyle = "long" | "short" | "narrow";
|
| /**
| * [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
| */
| type BCP47LanguageTag = string;
|
| /**
| * The locale(s) to use
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
| */
| type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
|
| /**
| * An object with some or all of properties of \`options\` parameter
| * of \`Intl.RelativeTimeFormat\` constructor.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
| */
| interface RelativeTimeFormatOptions {
| /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
| localeMatcher?: RelativeTimeFormatLocaleMatcher;
| /** The format of output message. */
| numeric?: RelativeTimeFormatNumeric;
| /** The length of the internationalized message. */
| style?: RelativeTimeFormatStyle;
| }
|
| /**
| * An object with properties reflecting the locale
| * and formatting options computed during initialization
| * of the \`Intl.RelativeTimeFormat\` object
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
| */
| interface ResolvedRelativeTimeFormatOptions {
| locale: UnicodeBCP47LocaleIdentifier;
| style: RelativeTimeFormatStyle;
| numeric: RelativeTimeFormatNumeric;
| numberingSystem: string;
| }
|
| /**
| * An object representing the relative time format in parts
| * that can be used for custom locale-aware formatting.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
| */
| type RelativeTimeFormatPart =
| | {
| type: "literal";
| value: string;
| }
| | {
| type: Exclude<NumberFormatPartTypes, "literal">;
| value: string;
| unit: RelativeTimeFormatUnitSingular;
| };
|
| interface RelativeTimeFormat {
| /**
| * Formats a value and a unit according to the locale
| * and formatting options of the given
| * [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
| * object.
| *
| * While this method automatically provides the correct plural forms,
| * the grammatical form is otherwise as neutral as possible.
| *
| * It is the caller's responsibility to handle cut-off logic
| * such as deciding between displaying "in 7 days" or "in 1 week".
| * This API does not support relative dates involving compound units.
| * e.g "in 5 days and 4 hours".
| *
| * @param value - Numeric value to use in the internationalized relative time message
| *
| * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
| *
| * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
| *
| * @returns {string} Internationalized relative time message as string
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
| */
| format(value: number, unit: RelativeTimeFormatUnit): string;
|
| /**
| * Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
| *
| * @param value - Numeric value to use in the internationalized relative time message
| *
| * @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
| *
| * @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
| */
| formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
|
| /**
| * Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
| */
| resolvedOptions(): ResolvedRelativeTimeFormatOptions;
| }
|
| /**
| * The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
| * object is a constructor for objects that enable language-sensitive relative time formatting.
| *
| * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
| */
| const RelativeTimeFormat: {
| /**
| * Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the locales argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
| * with some or all of options of \`RelativeTimeFormatOptions\`.
| *
| * @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
| */
| new(
| locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
| options?: RelativeTimeFormatOptions,
| ): RelativeTimeFormat;
|
| /**
| * Returns an array containing those of the provided locales
| * that are supported in date and time formatting
| * without having to fall back to the runtime's default locale.
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the locales argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
| * with some or all of options of the formatting.
| *
| * @returns An array containing those of the provided locales
| * that are supported in date and time formatting
| * without having to fall back to the runtime's default locale.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
| */
| supportedLocalesOf(
| locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
| options?: RelativeTimeFormatOptions,
| ): UnicodeBCP47LocaleIdentifier[];
| };
|
| interface NumberFormatOptions {
| compactDisplay?: "short" | "long" | undefined;
| notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
| signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
| unit?: string | undefined;
| unitDisplay?: "short" | "long" | "narrow" | undefined;
| currencyDisplay?: string | undefined;
| currencySign?: string | undefined;
| }
|
| interface ResolvedNumberFormatOptions {
| compactDisplay?: "short" | "long";
| notation?: "standard" | "scientific" | "engineering" | "compact";
| signDisplay?: "auto" | "never" | "always" | "exceptZero";
| unit?: string;
| unitDisplay?: "short" | "long" | "narrow";
| currencyDisplay?: string;
| currencySign?: string;
| }
|
| interface DateTimeFormatOptions {
| calendar?: string | undefined;
| dayPeriod?: "narrow" | "short" | "long" | undefined;
| numberingSystem?: string | undefined;
|
| dateStyle?: "full" | "long" | "medium" | "short" | undefined;
| timeStyle?: "full" | "long" | "medium" | "short" | undefined;
| hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
| }
|
| type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
| type LocaleCollationCaseFirst = "upper" | "lower" | "false";
|
| interface LocaleOptions {
| /** A string containing the language, and the script and region if available. */
| baseName?: string;
| /** The part of the Locale that indicates the locale's calendar era. */
| calendar?: string;
| /** Flag that defines whether case is taken into account for the locale's collation rules. */
| caseFirst?: LocaleCollationCaseFirst;
| /** The collation type used for sorting */
| collation?: string;
| /** The time keeping format convention used by the locale. */
| hourCycle?: LocaleHourCycleKey;
| /** The primary language subtag associated with the locale. */
| language?: string;
| /** The numeral system used by the locale. */
| numberingSystem?: string;
| /** Flag that defines whether the locale has special collation handling for numeric characters. */
| numeric?: boolean;
| /** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
| region?: string;
| /** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
| script?: string;
| }
|
| interface Locale extends LocaleOptions {
| /** A string containing the language, and the script and region if available. */
| baseName: string;
| /** The primary language subtag associated with the locale. */
| language: string;
| /** Gets the most likely values for the language, script, and region of the locale based on existing values. */
| maximize(): Locale;
| /** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
| minimize(): Locale;
| /** Returns the locale's full locale identifier string. */
| toString(): BCP47LanguageTag;
| }
|
| /**
| * Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
| * objects
| *
| * @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
| * For the general form and interpretation of the locales argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
| *
| * @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
| */
| const Locale: {
| new (tag: BCP47LanguageTag | Locale, options?: LocaleOptions): Locale;
| };
|
| type DisplayNamesFallback =
| | "code"
| | "none";
|
| type DisplayNamesType =
| | "language"
| | "region"
| | "script"
| | "calendar"
| | "dateTimeField"
| | "currency";
|
| type DisplayNamesLanguageDisplay =
| | "dialect"
| | "standard";
|
| interface DisplayNamesOptions {
| localeMatcher?: RelativeTimeFormatLocaleMatcher;
| style?: RelativeTimeFormatStyle;
| type: DisplayNamesType;
| languageDisplay?: DisplayNamesLanguageDisplay;
| fallback?: DisplayNamesFallback;
| }
|
| interface ResolvedDisplayNamesOptions {
| locale: UnicodeBCP47LocaleIdentifier;
| style: RelativeTimeFormatStyle;
| type: DisplayNamesType;
| fallback: DisplayNamesFallback;
| languageDisplay?: DisplayNamesLanguageDisplay;
| }
|
| interface DisplayNames {
| /**
| * Receives a code and returns a string based on the locale and options provided when instantiating
| * [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
| *
| * @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
| * - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
| * or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
| * - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
| * - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
| * subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
| * \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
| * - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
| */
| of(code: string): string | undefined;
| /**
| * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
| * [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
| */
| resolvedOptions(): ResolvedDisplayNamesOptions;
| }
|
| /**
| * The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
| * object enables the consistent translation of language, region and script display names.
| *
| * [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
| */
| const DisplayNames: {
| prototype: DisplayNames;
|
| /**
| * @param locales A string with a BCP 47 language tag, or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
| * page.
| *
| * @param options An object for setting up a display name.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
| */
| new(locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
|
| /**
| * Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
| *
| * @param locales A string with a BCP 47 language tag, or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
| * page.
| *
| * @param options An object with a locale matcher.
| *
| * @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
| */
| supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher }): BCP47LanguageTag[];
| };
|
| }
| `;$i["lib.es2020.number.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2020.intl" />
|
| interface Number {
| /**
| * Converts a number to a string by using the current or specified locale.
| * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
| }
| `;$i["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface PromiseFulfilledResult<T> {
| status: "fulfilled";
| value: T;
| }
|
| interface PromiseRejectedResult {
| status: "rejected";
| reason: any;
| }
|
| type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
|
| interface PromiseConstructor {
| /**
| * Creates a Promise that is resolved with an array of results when all
| * of the provided Promises resolve or reject.
| * @param values An array of Promises.
| * @returns A new Promise.
| */
| allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
|
| /**
| * Creates a Promise that is resolved with an array of results when all
| * of the provided Promises resolve or reject.
| * @param values An array of Promises.
| * @returns A new Promise.
| */
| allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
| }
| `;$i["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Atomics {
| /**
| * Adds a value to the value at the given position in the array, returning the original value.
| * Until this atomic operation completes, any other read or write operation against the array
| * will block.
| */
| add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * Stores the bitwise AND of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or
| * write operation against the array will block.
| */
| and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * Replaces the value at the given position in the array if the original value equals the given
| * expected value, returning the original value. Until this atomic operation completes, any
| * other read or write operation against the array will block.
| */
| compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
|
| /**
| * Replaces the value at the given position in the array, returning the original value. Until
| * this atomic operation completes, any other read or write operation against the array will
| * block.
| */
| exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * Returns the value at the given position in the array. Until this atomic operation completes,
| * any other read or write operation against the array will block.
| */
| load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
|
| /**
| * Stores the bitwise OR of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or write
| * operation against the array will block.
| */
| or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * Stores a value at the given position in the array, returning the new value. Until this
| * atomic operation completes, any other read or write operation against the array will block.
| */
| store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * Subtracts a value from the value at the given position in the array, returning the original
| * value. Until this atomic operation completes, any other read or write operation against the
| * array will block.
| */
| sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
|
| /**
| * If the value at the given position in the array is equal to the provided value, the current
| * agent is put to sleep causing execution to suspend until the timeout expires (returning
| * \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
| * \`"not-equal"\`.
| */
| wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
|
| /**
| * Wakes up sleeping agents that are waiting on the given index of the array, returning the
| * number of agents that were awoken.
| * @param typedArray A shared BigInt64Array.
| * @param index The position in the typedArray to wake up on.
| * @param count The number of sleeping agents to notify. Defaults to +Infinity.
| */
| notify(typedArray: BigInt64Array, index: number, count?: number): number;
|
| /**
| * Stores the bitwise XOR of a value with the value at the given position in the array,
| * returning the original value. Until this atomic operation completes, any other read or write
| * operation against the array will block.
| */
| xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
| }
| `;$i["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.iterable" />
|
| interface String {
| /**
| * Matches a string with a regular expression, and returns an iterable of matches
| * containing the results of that search.
| * @param regexp A variable name or string literal containing the regular expression pattern and flags.
| */
| matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
| }
| `;$i["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015.iterable" />
| /// <reference lib="es2015.symbol" />
|
| interface SymbolConstructor {
| /**
| * A regular expression method that matches the regular expression against a string. Called
| * by the String.prototype.matchAll method.
| */
| readonly matchAll: unique symbol;
| }
|
| interface RegExp {
| /**
| * Matches a string with this regular expression, and returns an iterable of matches
| * containing the results of that search.
| * @param string A string to search within.
| */
| [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
| }
| `;$i["lib.es2021.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2020" />
| /// <reference lib="es2021.promise" />
| /// <reference lib="es2021.string" />
| /// <reference lib="es2021.weakref" />
| /// <reference lib="es2021.intl" />
| `;$i["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2021" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />
| `;$i["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
|
| interface DateTimeFormatPartTypesRegistry {
| fractionalSecond: any
| }
|
| interface DateTimeFormatOptions {
| formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
| dateStyle?: "full" | "long" | "medium" | "short" | undefined;
| timeStyle?: "full" | "long" | "medium" | "short" | undefined;
| dayPeriod?: "narrow" | "short" | "long" | undefined;
| fractionalSecondDigits?: 1 | 2 | 3 | undefined;
| }
|
| interface DateTimeRangeFormatPart extends DateTimeFormatPart {
| source: "startRange" | "endRange" | "shared"
| }
|
| interface DateTimeFormat {
| formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
| formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
| }
|
| interface ResolvedDateTimeFormatOptions {
| formatMatcher?: "basic" | "best fit" | "best fit";
| dateStyle?: "full" | "long" | "medium" | "short";
| timeStyle?: "full" | "long" | "medium" | "short";
| hourCycle?: "h11" | "h12" | "h23" | "h24";
| dayPeriod?: "narrow" | "short" | "long";
| fractionalSecondDigits?: 1 | 2 | 3;
| }
|
| /**
| * The locale matching algorithm to use.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
| */
| type ListFormatLocaleMatcher = "lookup" | "best fit";
|
| /**
| * The format of output message.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
| */
| type ListFormatType = "conjunction" | "disjunction" | "unit";
|
| /**
| * The length of the formatted message.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
| */
| type ListFormatStyle = "long" | "short" | "narrow";
|
| /**
| * An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
| */
| interface ListFormatOptions {
| /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
| localeMatcher?: ListFormatLocaleMatcher | undefined;
| /** The format of output message. */
| type?: ListFormatType | undefined;
| /** The length of the internationalized message. */
| style?: ListFormatStyle | undefined;
| }
|
| interface ResolvedListFormatOptions {
| locale: string;
| style: ListFormatStyle;
| type: ListFormatType;
| }
|
| interface ListFormat {
| /**
| * Returns a string with a language-specific representation of the list.
| *
| * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
| *
| * @throws \`TypeError\` if \`list\` includes something other than the possible values.
| *
| * @returns {string} A language-specific formatted string representing the elements of the list.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
| */
| format(list: Iterable<string>): string;
|
| /**
| * Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
| *
| * @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
| *
| * @throws \`TypeError\` if \`list\` includes something other than the possible values.
| *
| * @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
| */
| formatToParts(list: Iterable<string>): { type: "element" | "literal", value: string; }[];
|
| /**
| * Returns a new object with properties reflecting the locale and style
| * formatting options computed during the construction of the current
| * \`Intl.ListFormat\` object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
| */
| resolvedOptions(): ResolvedListFormatOptions;
| }
|
| const ListFormat: {
| prototype: ListFormat;
|
| /**
| * Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
| * enable language-sensitive list formatting.
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
| * with some or all options of \`ListFormatOptions\`.
| *
| * @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
| */
| new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: ListFormatOptions): ListFormat;
|
| /**
| * Returns an array containing those of the provided locales that are
| * supported in list formatting without having to fall back to the runtime's default locale.
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
| * with some or all possible options.
| *
| * @returns An array of strings representing a subset of the given locale tags that are supported in list
| * formatting without having to fall back to the runtime's default locale.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
| */
| supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<ListFormatOptions, "localeMatcher">): BCP47LanguageTag[];
| };
| }
| `;$i["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface AggregateError extends Error {
| errors: any[]
| }
|
| interface AggregateErrorConstructor {
| new(errors: Iterable<any>, message?: string): AggregateError;
| (errors: Iterable<any>, message?: string): AggregateError;
| readonly prototype: AggregateError;
| }
|
| declare var AggregateError: AggregateErrorConstructor;
|
| /**
| * Represents the completion of an asynchronous operation
| */
| interface PromiseConstructor {
| /**
| * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
| * @param values An array or iterable of Promises.
| * @returns A new Promise.
| */
| any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
|
| /**
| * The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
| * @param values An array or iterable of Promises.
| * @returns A new Promise.
| */
| any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
| }
| `;$i["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface String {
| /**
| * Replace all instances of a substring in a string, using a regular expression or search string.
| * @param searchValue A string to search for.
| * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
| */
| replaceAll(searchValue: string | RegExp, replaceValue: string): string;
|
| /**
| * Replace all instances of a substring in a string, using a regular expression or search string.
| * @param searchValue A string to search for.
| * @param replacer A function that returns the replacement text.
| */
| replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
| }
| `;$i["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface WeakRef<T extends object> {
| readonly [Symbol.toStringTag]: "WeakRef";
|
| /**
| * Returns the WeakRef instance's target object, or undefined if the target object has been
| * reclaimed.
| */
| deref(): T | undefined;
| }
|
| interface WeakRefConstructor {
| readonly prototype: WeakRef<any>;
|
| /**
| * Creates a WeakRef instance for the given target object.
| * @param target The target object for the WeakRef instance.
| */
| new<T extends object>(target: T): WeakRef<T>;
| }
|
| declare var WeakRef: WeakRefConstructor;
|
| interface FinalizationRegistry<T> {
| readonly [Symbol.toStringTag]: "FinalizationRegistry";
|
| /**
| * Registers an object with the registry.
| * @param target The target object to register.
| * @param heldValue The value to pass to the finalizer for this object. This cannot be the
| * target object.
| * @param unregisterToken The token to pass to the unregister method to unregister the target
| * object. If provided (and not undefined), this must be an object. If not provided, the target
| * cannot be unregistered.
| */
| register(target: object, heldValue: T, unregisterToken?: object): void;
|
| /**
| * Unregisters an object from the registry.
| * @param unregisterToken The token that was used as the unregisterToken argument when calling
| * register to register the target object.
| */
| unregister(unregisterToken: object): void;
| }
|
| interface FinalizationRegistryConstructor {
| readonly prototype: FinalizationRegistry<any>;
|
| /**
| * Creates a finalization registry with an associated cleanup callback
| * @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
| */
| new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
| }
|
| declare var FinalizationRegistry: FinalizationRegistryConstructor;
| `;$i["lib.es2022.array.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Array<T> {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): T | undefined;
| }
|
| interface ReadonlyArray<T> {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): T | undefined;
| }
|
| interface Int8Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Uint8Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Uint8ClampedArray {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Int16Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Uint16Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Int32Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Uint32Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Float32Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface Float64Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): number | undefined;
| }
|
| interface BigInt64Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): bigint | undefined;
| }
|
| interface BigUint64Array {
| /**
| * Returns the item located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): bigint | undefined;
| }
| `;$i["lib.es2022.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2021" />
| /// <reference lib="es2022.array" />
| /// <reference lib="es2022.error" />
| /// <reference lib="es2022.intl" />
| /// <reference lib="es2022.object" />
| /// <reference lib="es2022.sharedmemory" />
| /// <reference lib="es2022.string" />
| /// <reference lib="es2022.regexp" />
| `;$i["lib.es2022.error.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface ErrorOptions {
| cause?: unknown;
| }
|
| interface Error {
| cause?: unknown;
| }
|
| interface ErrorConstructor {
| new (message?: string, options?: ErrorOptions): Error;
| (message?: string, options?: ErrorOptions): Error;
| }
|
| interface EvalErrorConstructor {
| new (message?: string, options?: ErrorOptions): EvalError;
| (message?: string, options?: ErrorOptions): EvalError;
| }
|
| interface RangeErrorConstructor {
| new (message?: string, options?: ErrorOptions): RangeError;
| (message?: string, options?: ErrorOptions): RangeError;
| }
|
| interface ReferenceErrorConstructor {
| new (message?: string, options?: ErrorOptions): ReferenceError;
| (message?: string, options?: ErrorOptions): ReferenceError;
| }
|
| interface SyntaxErrorConstructor {
| new (message?: string, options?: ErrorOptions): SyntaxError;
| (message?: string, options?: ErrorOptions): SyntaxError;
| }
|
| interface TypeErrorConstructor {
| new (message?: string, options?: ErrorOptions): TypeError;
| (message?: string, options?: ErrorOptions): TypeError;
| }
|
| interface URIErrorConstructor {
| new (message?: string, options?: ErrorOptions): URIError;
| (message?: string, options?: ErrorOptions): URIError;
| }
|
| interface AggregateErrorConstructor {
| new (
| errors: Iterable<any>,
| message?: string,
| options?: ErrorOptions
| ): AggregateError;
| (
| errors: Iterable<any>,
| message?: string,
| options?: ErrorOptions
| ): AggregateError;
| }
| `;$i["lib.es2022.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2022" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />
| `;$i["lib.es2022.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
|
| /**
| * An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
| */
| interface SegmenterOptions {
| /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
| localeMatcher?: "best fit" | "lookup" | undefined;
| /** The type of input to be split */
| granularity?: "grapheme" | "word" | "sentence" | undefined;
| }
|
| interface Segmenter {
| /**
| * Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
| *
| * @param input - The text to be segmented as a \`string\`.
| *
| * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
| */
| segment(input: string): Segments;
| resolvedOptions(): ResolvedSegmenterOptions;
| }
|
| interface ResolvedSegmenterOptions {
| locale: string;
| granularity: "grapheme" | "word" | "sentence";
| }
|
| interface Segments {
| /**
| * Returns an object describing the segment in the original string that includes the code unit at a specified index.
| *
| * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
| */
| containing(codeUnitIndex?: number): SegmentData;
|
| /** Returns an iterator to iterate over the segments. */
| [Symbol.iterator](): IterableIterator<SegmentData>;
| }
|
| interface SegmentData {
| /** A string containing the segment extracted from the original input string. */
| segment: string;
| /** The code unit index in the original input string at which the segment begins. */
| index: number;
| /** The complete input string that was segmented. */
| input: string;
| /**
| * A boolean value only if granularity is "word"; otherwise, undefined.
| * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
| */
| isWordLike?: boolean;
| }
|
| const Segmenter: {
| prototype: Segmenter;
|
| /**
| * Creates a new \`Intl.Segmenter\` object.
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
| * with some or all options of \`SegmenterOptions\`.
| *
| * @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
| */
| new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: SegmenterOptions): Segmenter;
|
| /**
| * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
| *
| * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
| * For the general form and interpretation of the \`locales\` argument,
| * see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
| *
| * @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
| * with some or all possible options.
| *
| * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
| */
| supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: Pick<SegmenterOptions, "localeMatcher">): BCP47LanguageTag[];
| };
| }
| `;$i["lib.es2022.object.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface ObjectConstructor {
| /**
| * Determines whether an object has a property with the specified name.
| * @param o An object.
| * @param v A property name.
| */
| hasOwn(o: object, v: PropertyKey): boolean;
| }
| `;$i["lib.es2022.regexp.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface RegExpMatchArray {
| indices?: RegExpIndicesArray;
| }
|
| interface RegExpExecArray {
| indices?: RegExpIndicesArray;
| }
|
| interface RegExpIndicesArray extends Array<[number, number]> {
| groups?: {
| [key: string]: [number, number];
| };
| }
|
| interface RegExp {
| /**
| * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
| * Default is false. Read-only.
| */
| readonly hasIndices: boolean;
| }
| `;$i["lib.es2022.sharedmemory.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Atomics {
| /**
| * A non-blocking, asynchronous version of wait which is usable on the main thread.
| * Waits asynchronously on a shared memory location and returns a Promise
| * @param typedArray A shared Int32Array or BigInt64Array.
| * @param index The position in the typedArray to wait on.
| * @param value The expected value to test.
| * @param [timeout] The expected value to test.
| */
| waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
|
| /**
| * A non-blocking, asynchronous version of wait which is usable on the main thread.
| * Waits asynchronously on a shared memory location and returns a Promise
| * @param typedArray A shared Int32Array or BigInt64Array.
| * @param index The position in the typedArray to wait on.
| * @param value The expected value to test.
| * @param [timeout] The expected value to test.
| */
| waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false, value: "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "timed-out"> };
| }
| `;$i["lib.es2022.string.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface String {
| /**
| * Returns a new String consisting of the single UTF-16 code unit located at the specified index.
| * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
| */
| at(index: number): string | undefined;
| }
| `;$i["lib.es2023.array.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| interface Array<T> {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
| }
|
| interface ReadonlyArray<T> {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
| }
|
| interface Int8Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
| }
|
| interface Uint8Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
| }
|
| interface Uint8ClampedArray {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): number;
| }
|
| interface Int16Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
| }
|
| interface Uint16Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
| }
|
| interface Int32Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
| }
|
| interface Uint32Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
| }
|
| interface Float32Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
| }
|
| interface Float64Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
| }
|
| interface BigInt64Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
| }
|
| interface BigUint64Array {
| /**
| * Returns the value of the last element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate findLast calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found, findLast
| * immediately returns that element value. Otherwise, findLast returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
| findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
|
| /**
| * Returns the index of the last element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate findLastIndex calls predicate once for each element of the array, in descending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
| }
| `;$i["lib.es2023.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2022" />
| /// <reference lib="es2023.array" />
| `;$i["lib.es2023.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2023" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />
| `;$i["lib.es5.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="decorators" />
| /// <reference lib="decorators.legacy" />
|
| /////////////////////////////
| /// ECMAScript APIs
| /////////////////////////////
|
| declare var NaN: number;
| declare var Infinity: number;
|
| /**
| * Evaluates JavaScript code and executes it.
| * @param x A String value that contains valid JavaScript code.
| */
| declare function eval(x: string): any;
|
| /**
| * Converts a string to an integer.
| * @param string A string to convert into a number.
| * @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
| * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
| * All other strings are considered decimal.
| */
| declare function parseInt(string: string, radix?: number): number;
|
| /**
| * Converts a string to a floating-point number.
| * @param string A string that contains a floating-point number.
| */
| declare function parseFloat(string: string): number;
|
| /**
| * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
| * @param number A numeric value.
| */
| declare function isNaN(number: number): boolean;
|
| /**
| * Determines whether a supplied number is finite.
| * @param number Any numeric value.
| */
| declare function isFinite(number: number): boolean;
|
| /**
| * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
| * @param encodedURI A value representing an encoded URI.
| */
| declare function decodeURI(encodedURI: string): string;
|
| /**
| * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
| * @param encodedURIComponent A value representing an encoded URI component.
| */
| declare function decodeURIComponent(encodedURIComponent: string): string;
|
| /**
| * Encodes a text string as a valid Uniform Resource Identifier (URI)
| * @param uri A value representing an unencoded URI.
| */
| declare function encodeURI(uri: string): string;
|
| /**
| * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
| * @param uriComponent A value representing an unencoded URI component.
| */
| declare function encodeURIComponent(uriComponent: string | number | boolean): string;
|
| /**
| * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
| * @deprecated A legacy feature for browser compatibility
| * @param string A string value
| */
| declare function escape(string: string): string;
|
| /**
| * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
| * @deprecated A legacy feature for browser compatibility
| * @param string A string value
| */
| declare function unescape(string: string): string;
|
| interface Symbol {
| /** Returns a string representation of an object. */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): symbol;
| }
|
| declare type PropertyKey = string | number | symbol;
|
| interface PropertyDescriptor {
| configurable?: boolean;
| enumerable?: boolean;
| value?: any;
| writable?: boolean;
| get?(): any;
| set?(v: any): void;
| }
|
| interface PropertyDescriptorMap {
| [key: PropertyKey]: PropertyDescriptor;
| }
|
| interface Object {
| /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
| constructor: Function;
|
| /** Returns a string representation of an object. */
| toString(): string;
|
| /** Returns a date converted to a string using the current locale. */
| toLocaleString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Object;
|
| /**
| * Determines whether an object has a property with the specified name.
| * @param v A property name.
| */
| hasOwnProperty(v: PropertyKey): boolean;
|
| /**
| * Determines whether an object exists in another object's prototype chain.
| * @param v Another object whose prototype chain is to be checked.
| */
| isPrototypeOf(v: Object): boolean;
|
| /**
| * Determines whether a specified property is enumerable.
| * @param v A property name.
| */
| propertyIsEnumerable(v: PropertyKey): boolean;
| }
|
| interface ObjectConstructor {
| new(value?: any): Object;
| (): any;
| (value: any): any;
|
| /** A reference to the prototype for a class of objects. */
| readonly prototype: Object;
|
| /**
| * Returns the prototype of an object.
| * @param o The object that references the prototype.
| */
| getPrototypeOf(o: any): any;
|
| /**
| * Gets the own property descriptor of the specified object.
| * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
| * @param o Object that contains the property.
| * @param p Name of the property.
| */
| getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
|
| /**
| * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
| * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
| * @param o Object that contains the own properties.
| */
| getOwnPropertyNames(o: any): string[];
|
| /**
| * Creates an object that has the specified prototype or that has null prototype.
| * @param o Object to use as a prototype. May be null.
| */
| create(o: object | null): any;
|
| /**
| * Creates an object that has the specified prototype, and that optionally contains specified properties.
| * @param o Object to use as a prototype. May be null
| * @param properties JavaScript object that contains one or more property descriptors.
| */
| create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
| /**
| * Adds a property to an object, or modifies attributes of an existing property.
| * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
| * @param p The property name.
| * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
| */
| defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
|
| /**
| * Adds one or more properties to an object, and/or modifies attributes of existing properties.
| * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
| * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
| */
| defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
|
| /**
| * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
| * @param o Object on which to lock the attributes.
| */
| seal<T>(o: T): T;
|
| /**
| * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
| * @param f Object on which to lock the attributes.
| */
| freeze<T extends Function>(f: T): T;
|
| /**
| * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
| * @param o Object on which to lock the attributes.
| */
| freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
|
| /**
| * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
| * @param o Object on which to lock the attributes.
| */
| freeze<T>(o: T): Readonly<T>;
|
| /**
| * Prevents the addition of new properties to an object.
| * @param o Object to make non-extensible.
| */
| preventExtensions<T>(o: T): T;
|
| /**
| * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
| * @param o Object to test.
| */
| isSealed(o: any): boolean;
|
| /**
| * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
| * @param o Object to test.
| */
| isFrozen(o: any): boolean;
|
| /**
| * Returns a value that indicates whether new properties can be added to an object.
| * @param o Object to test.
| */
| isExtensible(o: any): boolean;
|
| /**
| * Returns the names of the enumerable string properties and methods of an object.
| * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
| */
| keys(o: object): string[];
| }
|
| /**
| * Provides functionality common to all JavaScript objects.
| */
| declare var Object: ObjectConstructor;
|
| /**
| * Creates a new function.
| */
| interface Function {
| /**
| * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
| * @param thisArg The object to be used as the this object.
| * @param argArray A set of arguments to be passed to the function.
| */
| apply(this: Function, thisArg: any, argArray?: any): any;
|
| /**
| * Calls a method of an object, substituting another object for the current object.
| * @param thisArg The object to be used as the current object.
| * @param argArray A list of arguments to be passed to the method.
| */
| call(this: Function, thisArg: any, ...argArray: any[]): any;
|
| /**
| * For a given function, creates a bound function that has the same body as the original function.
| * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
| * @param thisArg An object to which the this keyword can refer inside the new function.
| * @param argArray A list of arguments to be passed to the new function.
| */
| bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
| /** Returns a string representation of a function. */
| toString(): string;
|
| prototype: any;
| readonly length: number;
|
| // Non-standard extensions
| arguments: any;
| caller: Function;
| }
|
| interface FunctionConstructor {
| /**
| * Creates a new function.
| * @param args A list of arguments the function accepts.
| */
| new(...args: string[]): Function;
| (...args: string[]): Function;
| readonly prototype: Function;
| }
|
| declare var Function: FunctionConstructor;
|
| /**
| * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
| */
| type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
|
| /**
| * Removes the 'this' parameter from a function type.
| */
| type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
|
| interface CallableFunction extends Function {
| /**
| * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
| * @param thisArg The object to be used as the this object.
| * @param args An array of argument values to be passed to the function.
| */
| apply<T, R>(this: (this: T) => R, thisArg: T): R;
| apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
|
| /**
| * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
| * @param thisArg The object to be used as the this object.
| * @param args Argument values to be passed to the function.
| */
| call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
|
| /**
| * For a given function, creates a bound function that has the same body as the original function.
| * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
| * @param thisArg The object to be used as the this object.
| * @param args Arguments to bind to the parameters of the function.
| */
| bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
| bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
| bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
| bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
| bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
| bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
| }
|
| interface NewableFunction extends Function {
| /**
| * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
| * @param thisArg The object to be used as the this object.
| * @param args An array of argument values to be passed to the function.
| */
| apply<T>(this: new () => T, thisArg: T): void;
| apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
|
| /**
| * Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
| * @param thisArg The object to be used as the this object.
| * @param args Argument values to be passed to the function.
| */
| call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
|
| /**
| * For a given function, creates a bound function that has the same body as the original function.
| * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
| * @param thisArg The object to be used as the this object.
| * @param args Arguments to bind to the parameters of the function.
| */
| bind<T>(this: T, thisArg: any): T;
| bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
| bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
| bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
| bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
| bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
| }
|
| interface IArguments {
| [index: number]: any;
| length: number;
| callee: Function;
| }
|
| interface String {
| /** Returns a string representation of a string. */
| toString(): string;
|
| /**
| * Returns the character at the specified index.
| * @param pos The zero-based index of the desired character.
| */
| charAt(pos: number): string;
|
| /**
| * Returns the Unicode value of the character at the specified location.
| * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
| */
| charCodeAt(index: number): number;
|
| /**
| * Returns a string that contains the concatenation of two or more strings.
| * @param strings The strings to append to the end of the string.
| */
| concat(...strings: string[]): string;
|
| /**
| * Returns the position of the first occurrence of a substring.
| * @param searchString The substring to search for in the string
| * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
| */
| indexOf(searchString: string, position?: number): number;
|
| /**
| * Returns the last occurrence of a substring in the string.
| * @param searchString The substring to search for.
| * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
| */
| lastIndexOf(searchString: string, position?: number): number;
|
| /**
| * Determines whether two strings are equivalent in the current locale.
| * @param that String to compare to target string
| */
| localeCompare(that: string): number;
|
| /**
| * Matches a string with a regular expression, and returns an array containing the results of that search.
| * @param regexp A variable name or string literal containing the regular expression pattern and flags.
| */
| match(regexp: string | RegExp): RegExpMatchArray | null;
|
| /**
| * Replaces text in a string, using a regular expression or search string.
| * @param searchValue A string or regular expression to search for.
| * @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
| */
| replace(searchValue: string | RegExp, replaceValue: string): string;
|
| /**
| * Replaces text in a string, using a regular expression or search string.
| * @param searchValue A string to search for.
| * @param replacer A function that returns the replacement text.
| */
| replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
| /**
| * Finds the first substring match in a regular expression search.
| * @param regexp The regular expression pattern and applicable flags.
| */
| search(regexp: string | RegExp): number;
|
| /**
| * Returns a section of a string.
| * @param start The index to the beginning of the specified portion of stringObj.
| * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
| * If this value is not specified, the substring continues to the end of stringObj.
| */
| slice(start?: number, end?: number): string;
|
| /**
| * Split a string into substrings using the specified separator and return them as an array.
| * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
| * @param limit A value used to limit the number of elements returned in the array.
| */
| split(separator: string | RegExp, limit?: number): string[];
|
| /**
| * Returns the substring at the specified location within a String object.
| * @param start The zero-based index number indicating the beginning of the substring.
| * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
| * If end is omitted, the characters from start through the end of the original string are returned.
| */
| substring(start: number, end?: number): string;
|
| /** Converts all the alphabetic characters in a string to lowercase. */
| toLowerCase(): string;
|
| /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
| toLocaleLowerCase(locales?: string | string[]): string;
|
| /** Converts all the alphabetic characters in a string to uppercase. */
| toUpperCase(): string;
|
| /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
| toLocaleUpperCase(locales?: string | string[]): string;
|
| /** Removes the leading and trailing white space and line terminator characters from a string. */
| trim(): string;
|
| /** Returns the length of a String object. */
| readonly length: number;
|
| // IE extensions
| /**
| * Gets a substring beginning at the specified location and having the specified length.
| * @deprecated A legacy feature for browser compatibility
| * @param from The starting position of the desired substring. The index of the first character in the string is zero.
| * @param length The number of characters to include in the returned substring.
| */
| substr(from: number, length?: number): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): string;
|
| readonly [index: number]: string;
| }
|
| interface StringConstructor {
| new(value?: any): String;
| (value?: any): string;
| readonly prototype: String;
| fromCharCode(...codes: number[]): string;
| }
|
| /**
| * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
| */
| declare var String: StringConstructor;
|
| interface Boolean {
| /** Returns the primitive value of the specified object. */
| valueOf(): boolean;
| }
|
| interface BooleanConstructor {
| new(value?: any): Boolean;
| <T>(value?: T): boolean;
| readonly prototype: Boolean;
| }
|
| declare var Boolean: BooleanConstructor;
|
| interface Number {
| /**
| * Returns a string representation of an object.
| * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
| */
| toString(radix?: number): string;
|
| /**
| * Returns a string representing a number in fixed-point notation.
| * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
| */
| toFixed(fractionDigits?: number): string;
|
| /**
| * Returns a string containing a number represented in exponential notation.
| * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
| */
| toExponential(fractionDigits?: number): string;
|
| /**
| * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
| * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
| */
| toPrecision(precision?: number): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): number;
| }
|
| interface NumberConstructor {
| new(value?: any): Number;
| (value?: any): number;
| readonly prototype: Number;
|
| /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
| readonly MAX_VALUE: number;
|
| /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
| readonly MIN_VALUE: number;
|
| /**
| * A value that is not a number.
| * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
| */
| readonly NaN: number;
|
| /**
| * A value that is less than the largest negative number that can be represented in JavaScript.
| * JavaScript displays NEGATIVE_INFINITY values as -infinity.
| */
| readonly NEGATIVE_INFINITY: number;
|
| /**
| * A value greater than the largest number that can be represented in JavaScript.
| * JavaScript displays POSITIVE_INFINITY values as infinity.
| */
| readonly POSITIVE_INFINITY: number;
| }
|
| /** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
| declare var Number: NumberConstructor;
|
| interface TemplateStringsArray extends ReadonlyArray<string> {
| readonly raw: readonly string[];
| }
|
| /**
| * The type of \`import.meta\`.
| *
| * If you need to declare that a given property exists on \`import.meta\`,
| * this type may be augmented via interface merging.
| */
| interface ImportMeta {
| }
|
| /**
| * The type for the optional second argument to \`import()\`.
| *
| * If your host environment supports additional options, this type may be
| * augmented via interface merging.
| */
| interface ImportCallOptions {
| assert?: ImportAssertions;
| }
|
| /**
| * The type for the \`assert\` property of the optional second argument to \`import()\`.
| */
| interface ImportAssertions {
| [key: string]: string;
| }
|
| interface Math {
| /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
| readonly E: number;
| /** The natural logarithm of 10. */
| readonly LN10: number;
| /** The natural logarithm of 2. */
| readonly LN2: number;
| /** The base-2 logarithm of e. */
| readonly LOG2E: number;
| /** The base-10 logarithm of e. */
| readonly LOG10E: number;
| /** Pi. This is the ratio of the circumference of a circle to its diameter. */
| readonly PI: number;
| /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
| readonly SQRT1_2: number;
| /** The square root of 2. */
| readonly SQRT2: number;
| /**
| * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
| * For example, the absolute value of -5 is the same as the absolute value of 5.
| * @param x A numeric expression for which the absolute value is needed.
| */
| abs(x: number): number;
| /**
| * Returns the arc cosine (or inverse cosine) of a number.
| * @param x A numeric expression.
| */
| acos(x: number): number;
| /**
| * Returns the arcsine of a number.
| * @param x A numeric expression.
| */
| asin(x: number): number;
| /**
| * Returns the arctangent of a number.
| * @param x A numeric expression for which the arctangent is needed.
| */
| atan(x: number): number;
| /**
| * Returns the angle (in radians) from the X axis to a point.
| * @param y A numeric expression representing the cartesian y-coordinate.
| * @param x A numeric expression representing the cartesian x-coordinate.
| */
| atan2(y: number, x: number): number;
| /**
| * Returns the smallest integer greater than or equal to its numeric argument.
| * @param x A numeric expression.
| */
| ceil(x: number): number;
| /**
| * Returns the cosine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| cos(x: number): number;
| /**
| * Returns e (the base of natural logarithms) raised to a power.
| * @param x A numeric expression representing the power of e.
| */
| exp(x: number): number;
| /**
| * Returns the greatest integer less than or equal to its numeric argument.
| * @param x A numeric expression.
| */
| floor(x: number): number;
| /**
| * Returns the natural logarithm (base e) of a number.
| * @param x A numeric expression.
| */
| log(x: number): number;
| /**
| * Returns the larger of a set of supplied numeric expressions.
| * @param values Numeric expressions to be evaluated.
| */
| max(...values: number[]): number;
| /**
| * Returns the smaller of a set of supplied numeric expressions.
| * @param values Numeric expressions to be evaluated.
| */
| min(...values: number[]): number;
| /**
| * Returns the value of a base expression taken to a specified power.
| * @param x The base value of the expression.
| * @param y The exponent value of the expression.
| */
| pow(x: number, y: number): number;
| /** Returns a pseudorandom number between 0 and 1. */
| random(): number;
| /**
| * Returns a supplied numeric expression rounded to the nearest integer.
| * @param x The value to be rounded to the nearest integer.
| */
| round(x: number): number;
| /**
| * Returns the sine of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| sin(x: number): number;
| /**
| * Returns the square root of a number.
| * @param x A numeric expression.
| */
| sqrt(x: number): number;
| /**
| * Returns the tangent of a number.
| * @param x A numeric expression that contains an angle measured in radians.
| */
| tan(x: number): number;
| }
| /** An intrinsic object that provides basic mathematics functionality and constants. */
| declare var Math: Math;
|
| /** Enables basic storage and retrieval of dates and times. */
| interface Date {
| /** Returns a string representation of a date. The format of the string depends on the locale. */
| toString(): string;
| /** Returns a date as a string value. */
| toDateString(): string;
| /** Returns a time as a string value. */
| toTimeString(): string;
| /** Returns a value as a string value appropriate to the host environment's current locale. */
| toLocaleString(): string;
| /** Returns a date as a string value appropriate to the host environment's current locale. */
| toLocaleDateString(): string;
| /** Returns a time as a string value appropriate to the host environment's current locale. */
| toLocaleTimeString(): string;
| /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
| valueOf(): number;
| /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
| getTime(): number;
| /** Gets the year, using local time. */
| getFullYear(): number;
| /** Gets the year using Universal Coordinated Time (UTC). */
| getUTCFullYear(): number;
| /** Gets the month, using local time. */
| getMonth(): number;
| /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
| getUTCMonth(): number;
| /** Gets the day-of-the-month, using local time. */
| getDate(): number;
| /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
| getUTCDate(): number;
| /** Gets the day of the week, using local time. */
| getDay(): number;
| /** Gets the day of the week using Universal Coordinated Time (UTC). */
| getUTCDay(): number;
| /** Gets the hours in a date, using local time. */
| getHours(): number;
| /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
| getUTCHours(): number;
| /** Gets the minutes of a Date object, using local time. */
| getMinutes(): number;
| /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
| getUTCMinutes(): number;
| /** Gets the seconds of a Date object, using local time. */
| getSeconds(): number;
| /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
| getUTCSeconds(): number;
| /** Gets the milliseconds of a Date, using local time. */
| getMilliseconds(): number;
| /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
| getUTCMilliseconds(): number;
| /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
| getTimezoneOffset(): number;
| /**
| * Sets the date and time value in the Date object.
| * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
| */
| setTime(time: number): number;
| /**
| * Sets the milliseconds value in the Date object using local time.
| * @param ms A numeric value equal to the millisecond value.
| */
| setMilliseconds(ms: number): number;
| /**
| * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
| * @param ms A numeric value equal to the millisecond value.
| */
| setUTCMilliseconds(ms: number): number;
|
| /**
| * Sets the seconds value in the Date object using local time.
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setSeconds(sec: number, ms?: number): number;
| /**
| * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setUTCSeconds(sec: number, ms?: number): number;
| /**
| * Sets the minutes value in the Date object using local time.
| * @param min A numeric value equal to the minutes value.
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setMinutes(min: number, sec?: number, ms?: number): number;
| /**
| * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
| * @param min A numeric value equal to the minutes value.
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setUTCMinutes(min: number, sec?: number, ms?: number): number;
| /**
| * Sets the hour value in the Date object using local time.
| * @param hours A numeric value equal to the hours value.
| * @param min A numeric value equal to the minutes value.
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setHours(hours: number, min?: number, sec?: number, ms?: number): number;
| /**
| * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
| * @param hours A numeric value equal to the hours value.
| * @param min A numeric value equal to the minutes value.
| * @param sec A numeric value equal to the seconds value.
| * @param ms A numeric value equal to the milliseconds value.
| */
| setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
| /**
| * Sets the numeric day-of-the-month value of the Date object using local time.
| * @param date A numeric value equal to the day of the month.
| */
| setDate(date: number): number;
| /**
| * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
| * @param date A numeric value equal to the day of the month.
| */
| setUTCDate(date: number): number;
| /**
| * Sets the month value in the Date object using local time.
| * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
| * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
| */
| setMonth(month: number, date?: number): number;
| /**
| * Sets the month value in the Date object using Universal Coordinated Time (UTC).
| * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
| * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
| */
| setUTCMonth(month: number, date?: number): number;
| /**
| * Sets the year of the Date object using local time.
| * @param year A numeric value for the year.
| * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
| * @param date A numeric value equal for the day of the month.
| */
| setFullYear(year: number, month?: number, date?: number): number;
| /**
| * Sets the year value in the Date object using Universal Coordinated Time (UTC).
| * @param year A numeric value equal to the year.
| * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
| * @param date A numeric value equal to the day of the month.
| */
| setUTCFullYear(year: number, month?: number, date?: number): number;
| /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
| toUTCString(): string;
| /** Returns a date as a string value in ISO format. */
| toISOString(): string;
| /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
| toJSON(key?: any): string;
| }
|
| interface DateConstructor {
| new(): Date;
| new(value: number | string): Date;
| /**
| * Creates a new Date.
| * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
| * @param monthIndex The month as a number between 0 and 11 (January to December).
| * @param date The date as a number between 1 and 31.
| * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
| * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
| * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
| * @param ms A number from 0 to 999 that specifies the milliseconds.
| */
| new(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
| (): string;
| readonly prototype: Date;
| /**
| * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
| * @param s A date string
| */
| parse(s: string): number;
| /**
| * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
| * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
| * @param monthIndex The month as a number between 0 and 11 (January to December).
| * @param date The date as a number between 1 and 31.
| * @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
| * @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
| * @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
| * @param ms A number from 0 to 999 that specifies the milliseconds.
| */
| UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
| /** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
| now(): number;
| }
|
| declare var Date: DateConstructor;
|
| interface RegExpMatchArray extends Array<string> {
| /**
| * The index of the search at which the result was found.
| */
| index?: number;
| /**
| * A copy of the search string.
| */
| input?: string;
| /**
| * The first match. This will always be present because \`null\` will be returned if there are no matches.
| */
| 0: string;
| }
|
| interface RegExpExecArray extends Array<string> {
| /**
| * The index of the search at which the result was found.
| */
| index: number;
| /**
| * A copy of the search string.
| */
| input: string;
| /**
| * The first match. This will always be present because \`null\` will be returned if there are no matches.
| */
| 0: string;
| }
|
| interface RegExp {
| /**
| * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
| * @param string The String object or string literal on which to perform the search.
| */
| exec(string: string): RegExpExecArray | null;
|
| /**
| * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
| * @param string String on which to perform the search.
| */
| test(string: string): boolean;
|
| /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
| readonly source: string;
|
| /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
| readonly global: boolean;
|
| /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
| readonly ignoreCase: boolean;
|
| /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
| readonly multiline: boolean;
|
| lastIndex: number;
|
| // Non-standard extensions
| /** @deprecated A legacy feature for browser compatibility */
| compile(pattern: string, flags?: string): this;
| }
|
| interface RegExpConstructor {
| new(pattern: RegExp | string): RegExp;
| new(pattern: string, flags?: string): RegExp;
| (pattern: RegExp | string): RegExp;
| (pattern: string, flags?: string): RegExp;
| readonly prototype: RegExp;
|
| // Non-standard extensions
| /** @deprecated A legacy feature for browser compatibility */
| $1: string;
| /** @deprecated A legacy feature for browser compatibility */
| $2: string;
| /** @deprecated A legacy feature for browser compatibility */
| $3: string;
| /** @deprecated A legacy feature for browser compatibility */
| $4: string;
| /** @deprecated A legacy feature for browser compatibility */
| $5: string;
| /** @deprecated A legacy feature for browser compatibility */
| $6: string;
| /** @deprecated A legacy feature for browser compatibility */
| $7: string;
| /** @deprecated A legacy feature for browser compatibility */
| $8: string;
| /** @deprecated A legacy feature for browser compatibility */
| $9: string;
| /** @deprecated A legacy feature for browser compatibility */
| input: string;
| /** @deprecated A legacy feature for browser compatibility */
| $_: string;
| /** @deprecated A legacy feature for browser compatibility */
| lastMatch: string;
| /** @deprecated A legacy feature for browser compatibility */
| "$&": string;
| /** @deprecated A legacy feature for browser compatibility */
| lastParen: string;
| /** @deprecated A legacy feature for browser compatibility */
| "$+": string;
| /** @deprecated A legacy feature for browser compatibility */
| leftContext: string;
| /** @deprecated A legacy feature for browser compatibility */
| "$\`": string;
| /** @deprecated A legacy feature for browser compatibility */
| rightContext: string;
| /** @deprecated A legacy feature for browser compatibility */
| "$'": string;
| }
|
| declare var RegExp: RegExpConstructor;
|
| interface Error {
| name: string;
| message: string;
| stack?: string;
| }
|
| interface ErrorConstructor {
| new(message?: string): Error;
| (message?: string): Error;
| readonly prototype: Error;
| }
|
| declare var Error: ErrorConstructor;
|
| interface EvalError extends Error {
| }
|
| interface EvalErrorConstructor extends ErrorConstructor {
| new(message?: string): EvalError;
| (message?: string): EvalError;
| readonly prototype: EvalError;
| }
|
| declare var EvalError: EvalErrorConstructor;
|
| interface RangeError extends Error {
| }
|
| interface RangeErrorConstructor extends ErrorConstructor {
| new(message?: string): RangeError;
| (message?: string): RangeError;
| readonly prototype: RangeError;
| }
|
| declare var RangeError: RangeErrorConstructor;
|
| interface ReferenceError extends Error {
| }
|
| interface ReferenceErrorConstructor extends ErrorConstructor {
| new(message?: string): ReferenceError;
| (message?: string): ReferenceError;
| readonly prototype: ReferenceError;
| }
|
| declare var ReferenceError: ReferenceErrorConstructor;
|
| interface SyntaxError extends Error {
| }
|
| interface SyntaxErrorConstructor extends ErrorConstructor {
| new(message?: string): SyntaxError;
| (message?: string): SyntaxError;
| readonly prototype: SyntaxError;
| }
|
| declare var SyntaxError: SyntaxErrorConstructor;
|
| interface TypeError extends Error {
| }
|
| interface TypeErrorConstructor extends ErrorConstructor {
| new(message?: string): TypeError;
| (message?: string): TypeError;
| readonly prototype: TypeError;
| }
|
| declare var TypeError: TypeErrorConstructor;
|
| interface URIError extends Error {
| }
|
| interface URIErrorConstructor extends ErrorConstructor {
| new(message?: string): URIError;
| (message?: string): URIError;
| readonly prototype: URIError;
| }
|
| declare var URIError: URIErrorConstructor;
|
| interface JSON {
| /**
| * Converts a JavaScript Object Notation (JSON) string into an object.
| * @param text A valid JSON string.
| * @param reviver A function that transforms the results. This function is called for each member of the object.
| * If a member contains nested objects, the nested objects are transformed before the parent object is.
| */
| parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
| /**
| * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
| * @param value A JavaScript value, usually an object or array, to be converted.
| * @param replacer A function that transforms the results.
| * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
| */
| stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
| /**
| * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
| * @param value A JavaScript value, usually an object or array, to be converted.
| * @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
| * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
| */
| stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
| }
|
| /**
| * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
| */
| declare var JSON: JSON;
|
|
| /////////////////////////////
| /// ECMAScript Array API (specially handled by compiler)
| /////////////////////////////
|
| interface ReadonlyArray<T> {
| /**
| * Gets the length of the array. This is a number one higher than the highest element defined in an array.
| */
| readonly length: number;
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
| /**
| * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
| */
| toLocaleString(): string;
| /**
| * Combines two or more arrays.
| * @param items Additional items to add to the end of array1.
| */
| concat(...items: ConcatArray<T>[]): T[];
| /**
| * Combines two or more arrays.
| * @param items Additional items to add to the end of array1.
| */
| concat(...items: (T | ConcatArray<T>)[]): T[];
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): T[];
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
| */
| indexOf(searchElement: T, fromIndex?: number): number;
| /**
| * Returns the index of the last occurrence of a specified value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
| */
| lastIndexOf(searchElement: T, fromIndex?: number): number;
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
| /**
| * Calls a defined callback function on each element of an array, and returns an array that contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
| */
| filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
| /**
| * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
| reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
| /**
| * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
| /**
| * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
| reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
| /**
| * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
|
| readonly [n: number]: T;
| }
|
| interface ConcatArray<T> {
| readonly length: number;
| readonly [n: number]: T;
| join(separator?: string): string;
| slice(start?: number, end?: number): T[];
| }
|
| interface Array<T> {
| /**
| * Gets or sets the length of the array. This is a number one higher than the highest index in the array.
| */
| length: number;
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
| /**
| * Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
| */
| toLocaleString(): string;
| /**
| * Removes the last element from an array and returns it.
| * If the array is empty, undefined is returned and the array is not modified.
| */
| pop(): T | undefined;
| /**
| * Appends new elements to the end of an array, and returns the new length of the array.
| * @param items New elements to add to the array.
| */
| push(...items: T[]): number;
| /**
| * Combines two or more arrays.
| * This method returns a new array without modifying any existing arrays.
| * @param items Additional arrays and/or items to add to the end of the array.
| */
| concat(...items: ConcatArray<T>[]): T[];
| /**
| * Combines two or more arrays.
| * This method returns a new array without modifying any existing arrays.
| * @param items Additional arrays and/or items to add to the end of the array.
| */
| concat(...items: (T | ConcatArray<T>)[]): T[];
| /**
| * Adds all the elements of an array into a string, separated by the specified separator string.
| * @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
| /**
| * Reverses the elements in an array in place.
| * This method mutates the array and returns a reference to the same array.
| */
| reverse(): T[];
| /**
| * Removes the first element from an array and returns it.
| * If the array is empty, undefined is returned and the array is not modified.
| */
| shift(): T | undefined;
| /**
| * Returns a copy of a section of an array.
| * For both start and end, a negative index can be used to indicate an offset from the end of the array.
| * For example, -2 refers to the second to last element of the array.
| * @param start The beginning index of the specified portion of the array.
| * If start is undefined, then the slice begins at index 0.
| * @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
| * If end is undefined, then the slice extends to the end of the array.
| */
| slice(start?: number, end?: number): T[];
| /**
| * Sorts an array in place.
| * This method mutates the array and returns a reference to the same array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
| * value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: T, b: T) => number): this;
| /**
| * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
| * @param start The zero-based location in the array from which to start removing elements.
| * @param deleteCount The number of elements to remove.
| * @returns An array containing the elements that were deleted.
| */
| splice(start: number, deleteCount?: number): T[];
| /**
| * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
| * @param start The zero-based location in the array from which to start removing elements.
| * @param deleteCount The number of elements to remove.
| * @param items Elements to insert into the array in place of the deleted elements.
| * @returns An array containing the elements that were deleted.
| */
| splice(start: number, deleteCount: number, ...items: T[]): T[];
| /**
| * Inserts new elements at the start of an array, and returns the new length of the array.
| * @param items Elements to insert at the start of the array.
| */
| unshift(...items: T[]): number;
| /**
| * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
| */
| indexOf(searchElement: T, fromIndex?: number): number;
| /**
| * Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
| */
| lastIndexOf(searchElement: T, fromIndex?: number): number;
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
| /**
| * Calls a defined callback function on each element of an array, and returns an array that contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
| */
| map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
| */
| filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
| /**
| * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
| reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
| /**
| * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
| /**
| * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
| reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
| /**
| * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
|
| [n: number]: T;
| }
|
| interface ArrayConstructor {
| new(arrayLength?: number): any[];
| new <T>(arrayLength: number): T[];
| new <T>(...items: T[]): T[];
| (arrayLength?: number): any[];
| <T>(arrayLength: number): T[];
| <T>(...items: T[]): T[];
| isArray(arg: any): arg is any[];
| readonly prototype: any[];
| }
|
| declare var Array: ArrayConstructor;
|
| interface TypedPropertyDescriptor<T> {
| enumerable?: boolean;
| configurable?: boolean;
| writable?: boolean;
| value?: T;
| get?: () => T;
| set?: (value: T) => void;
| }
|
| declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
|
| interface PromiseLike<T> {
| /**
| * Attaches callbacks for the resolution and/or rejection of the Promise.
| * @param onfulfilled The callback to execute when the Promise is resolved.
| * @param onrejected The callback to execute when the Promise is rejected.
| * @returns A Promise for the completion of which ever callback is executed.
| */
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
| }
|
| /**
| * Represents the completion of an asynchronous operation
| */
| interface Promise<T> {
| /**
| * Attaches callbacks for the resolution and/or rejection of the Promise.
| * @param onfulfilled The callback to execute when the Promise is resolved.
| * @param onrejected The callback to execute when the Promise is rejected.
| * @returns A Promise for the completion of which ever callback is executed.
| */
| then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
| /**
| * Attaches a callback for only the rejection of the Promise.
| * @param onrejected The callback to execute when the Promise is rejected.
| * @returns A Promise for the completion of the callback.
| */
| catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
| }
|
| /**
| * Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
| */
| type Awaited<T> =
| T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
| T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
| F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
| Awaited<V> : // recursively unwrap the value
| never : // the argument to \`then\` was not callable
| T; // non-object or non-thenable
|
| interface ArrayLike<T> {
| readonly length: number;
| readonly [n: number]: T;
| }
|
| /**
| * Make all properties in T optional
| */
| type Partial<T> = {
| [P in keyof T]?: T[P];
| };
|
| /**
| * Make all properties in T required
| */
| type Required<T> = {
| [P in keyof T]-?: T[P];
| };
|
| /**
| * Make all properties in T readonly
| */
| type Readonly<T> = {
| readonly [P in keyof T]: T[P];
| };
|
| /**
| * From T, pick a set of properties whose keys are in the union K
| */
| type Pick<T, K extends keyof T> = {
| [P in K]: T[P];
| };
|
| /**
| * Construct a type with a set of properties K of type T
| */
| type Record<K extends keyof any, T> = {
| [P in K]: T;
| };
|
| /**
| * Exclude from T those types that are assignable to U
| */
| type Exclude<T, U> = T extends U ? never : T;
|
| /**
| * Extract from T those types that are assignable to U
| */
| type Extract<T, U> = T extends U ? T : never;
|
| /**
| * Construct a type with the properties of T except for those in type K.
| */
| type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
| /**
| * Exclude null and undefined from T
| */
| type NonNullable<T> = T & {};
|
| /**
| * Obtain the parameters of a function type in a tuple
| */
| type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
|
| /**
| * Obtain the parameters of a constructor function type in a tuple
| */
| type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
|
| /**
| * Obtain the return type of a function type
| */
| type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
|
| /**
| * Obtain the return type of a constructor function type
| */
| type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
|
| /**
| * Convert string literal type to uppercase
| */
| type Uppercase<S extends string> = intrinsic;
|
| /**
| * Convert string literal type to lowercase
| */
| type Lowercase<S extends string> = intrinsic;
|
| /**
| * Convert first character of string literal type to uppercase
| */
| type Capitalize<S extends string> = intrinsic;
|
| /**
| * Convert first character of string literal type to lowercase
| */
| type Uncapitalize<S extends string> = intrinsic;
|
| /**
| * Marker for contextual 'this' type
| */
| interface ThisType<T> { }
|
| /**
| * Represents a raw buffer of binary data, which is used to store data for the
| * different typed arrays. ArrayBuffers cannot be read from or written to directly,
| * but can be passed to a typed array or DataView Object to interpret the raw
| * buffer as needed.
| */
| interface ArrayBuffer {
| /**
| * Read-only. The length of the ArrayBuffer (in bytes).
| */
| readonly byteLength: number;
|
| /**
| * Returns a section of an ArrayBuffer.
| */
| slice(begin: number, end?: number): ArrayBuffer;
| }
|
| /**
| * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
| */
| interface ArrayBufferTypes {
| ArrayBuffer: ArrayBuffer;
| }
| type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
|
| interface ArrayBufferConstructor {
| readonly prototype: ArrayBuffer;
| new(byteLength: number): ArrayBuffer;
| isView(arg: any): arg is ArrayBufferView;
| }
| declare var ArrayBuffer: ArrayBufferConstructor;
|
| interface ArrayBufferView {
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| byteOffset: number;
| }
|
| interface DataView {
| readonly buffer: ArrayBuffer;
| readonly byteLength: number;
| readonly byteOffset: number;
| /**
| * Gets the Float32 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getFloat32(byteOffset: number, littleEndian?: boolean): number;
|
| /**
| * Gets the Float64 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getFloat64(byteOffset: number, littleEndian?: boolean): number;
|
| /**
| * Gets the Int8 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| */
| getInt8(byteOffset: number): number;
|
| /**
| * Gets the Int16 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getInt16(byteOffset: number, littleEndian?: boolean): number;
| /**
| * Gets the Int32 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getInt32(byteOffset: number, littleEndian?: boolean): number;
|
| /**
| * Gets the Uint8 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| */
| getUint8(byteOffset: number): number;
|
| /**
| * Gets the Uint16 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getUint16(byteOffset: number, littleEndian?: boolean): number;
|
| /**
| * Gets the Uint32 value at the specified byte offset from the start of the view. There is
| * no alignment constraint; multi-byte values may be fetched from any offset.
| * @param byteOffset The place in the buffer at which the value should be retrieved.
| * @param littleEndian If false or undefined, a big-endian value should be read.
| */
| getUint32(byteOffset: number, littleEndian?: boolean): number;
|
| /**
| * Stores an Float32 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
| /**
| * Stores an Float64 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
|
| /**
| * Stores an Int8 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| */
| setInt8(byteOffset: number, value: number): void;
|
| /**
| * Stores an Int16 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
| /**
| * Stores an Int32 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
|
| /**
| * Stores an Uint8 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| */
| setUint8(byteOffset: number, value: number): void;
|
| /**
| * Stores an Uint16 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
|
| /**
| * Stores an Uint32 value at the specified byte offset from the start of the view.
| * @param byteOffset The place in the buffer at which the value should be set.
| * @param value The value to set.
| * @param littleEndian If false or undefined, a big-endian value should be written.
| */
| setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
| }
|
| interface DataViewConstructor {
| readonly prototype: DataView;
| new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
| }
| declare var DataView: DataViewConstructor;
|
| /**
| * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
| * number of bytes could not be allocated an exception is raised.
| */
| interface Int8Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Int8Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Int8Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Int8Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Int8Array;
|
| [index: number]: number;
| }
| interface Int8ArrayConstructor {
| readonly prototype: Int8Array;
| new(length: number): Int8Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Int8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Int8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
|
|
| }
| declare var Int8Array: Int8ArrayConstructor;
|
| /**
| * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated an exception is raised.
| */
| interface Uint8Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Uint8Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Uint8Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Uint8Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Uint8Array;
|
| [index: number]: number;
| }
|
| interface Uint8ArrayConstructor {
| readonly prototype: Uint8Array;
| new(length: number): Uint8Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Uint8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Uint8Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
|
| }
| declare var Uint8Array: Uint8ArrayConstructor;
|
| /**
| * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
| * If the requested number of bytes could not be allocated an exception is raised.
| */
| interface Uint8ClampedArray {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Uint8ClampedArray;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Uint8ClampedArray;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Uint8ClampedArray;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Uint8ClampedArray;
|
| [index: number]: number;
| }
|
| interface Uint8ClampedArrayConstructor {
| readonly prototype: Uint8ClampedArray;
| new(length: number): Uint8ClampedArray;
| new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Uint8ClampedArray;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
| }
| declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
|
| /**
| * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated an exception is raised.
| */
| interface Int16Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Int16Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Int16Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Int16Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Int16Array;
|
| [index: number]: number;
| }
|
| interface Int16ArrayConstructor {
| readonly prototype: Int16Array;
| new(length: number): Int16Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Int16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Int16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
|
|
| }
| declare var Int16Array: Int16ArrayConstructor;
|
| /**
| * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated an exception is raised.
| */
| interface Uint16Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Uint16Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Uint16Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Uint16Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Uint16Array;
|
| [index: number]: number;
| }
|
| interface Uint16ArrayConstructor {
| readonly prototype: Uint16Array;
| new(length: number): Uint16Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Uint16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Uint16Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
|
|
| }
| declare var Uint16Array: Uint16ArrayConstructor;
| /**
| * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated an exception is raised.
| */
| interface Int32Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Int32Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Int32Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Int32Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Int32Array;
|
| [index: number]: number;
| }
|
| interface Int32ArrayConstructor {
| readonly prototype: Int32Array;
| new(length: number): Int32Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Int32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Int32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
|
| }
| declare var Int32Array: Int32ArrayConstructor;
|
| /**
| * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
| * requested number of bytes could not be allocated an exception is raised.
| */
| interface Uint32Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Uint32Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Uint32Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Uint32Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Uint32Array;
|
| [index: number]: number;
| }
|
| interface Uint32ArrayConstructor {
| readonly prototype: Uint32Array;
| new(length: number): Uint32Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Uint32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Uint32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
|
| }
| declare var Uint32Array: Uint32ArrayConstructor;
|
| /**
| * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
| * of bytes could not be allocated an exception is raised.
| */
| interface Float32Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Float32Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Float32Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Float32Array;
|
| /**
| * Converts a number to a string by using the current locale.
| */
| toLocaleString(): string;
|
| /**
| * Returns a string representation of an array.
| */
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Float32Array;
|
| [index: number]: number;
| }
|
| interface Float32ArrayConstructor {
| readonly prototype: Float32Array;
| new(length: number): Float32Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Float32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Float32Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
|
|
| }
| declare var Float32Array: Float32ArrayConstructor;
|
| /**
| * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
| * number of bytes could not be allocated an exception is raised.
| */
| interface Float64Array {
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * The ArrayBuffer instance referenced by the array.
| */
| readonly buffer: ArrayBufferLike;
|
| /**
| * The length in bytes of the array.
| */
| readonly byteLength: number;
|
| /**
| * The offset in bytes of the array.
| */
| readonly byteOffset: number;
|
| /**
| * Returns the this object after copying a section of the array identified by start and end
| * to the same array starting at position target
| * @param target If target is negative, it is treated as length+target where length is the
| * length of the array.
| * @param start If start is negative, it is treated as length+start. If end is negative, it
| * is treated as length+end.
| * @param end If not specified, length of the this object is used as its default value.
| */
| copyWithin(target: number, start: number, end?: number): this;
|
| /**
| * Determines whether all the members of an array satisfy the specified test.
| * @param predicate A function that accepts up to three arguments. The every method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value false, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
| * @param value value to fill array section with
| * @param start index to start filling the array at. If start is negative, it is treated as
| * length+start where length is the length of the array.
| * @param end index to stop filling the array at. If end is negative, it is treated as
| * length+end.
| */
| fill(value: number, start?: number, end?: number): this;
|
| /**
| * Returns the elements of an array that meet the condition specified in a callback function.
| * @param predicate A function that accepts up to three arguments. The filter method calls
| * the predicate function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
|
| /**
| * Returns the value of the first element in the array where predicate is true, and undefined
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found, find
| * immediately returns that element value. Otherwise, find returns undefined.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
|
| /**
| * Returns the index of the first element in the array where predicate is true, and -1
| * otherwise.
| * @param predicate find calls predicate once for each element of the array, in ascending
| * order, until it finds one where predicate returns true. If such an element is found,
| * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
| * @param thisArg If provided, it will be used as the this value for each invocation of
| * predicate. If it is not provided, undefined is used instead.
| */
| findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
|
| /**
| * Performs the specified action for each element in an array.
| * @param callbackfn A function that accepts up to three arguments. forEach calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
|
| /**
| * Returns the index of the first occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| indexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * Adds all the elements of an array separated by the specified separator string.
| * @param separator A string used to separate one element of an array from the next in the
| * resulting String. If omitted, the array elements are separated with a comma.
| */
| join(separator?: string): string;
|
| /**
| * Returns the index of the last occurrence of a value in an array.
| * @param searchElement The value to locate in the array.
| * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
| * search starts at index 0.
| */
| lastIndexOf(searchElement: number, fromIndex?: number): number;
|
| /**
| * The length of the array.
| */
| readonly length: number;
|
| /**
| * Calls a defined callback function on each element of an array, and returns an array that
| * contains the results.
| * @param callbackfn A function that accepts up to three arguments. The map method calls the
| * callbackfn function one time for each element in the array.
| * @param thisArg An object to which the this keyword can refer in the callbackfn function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
| reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array. The return value of
| * the callback function is the accumulated result, and is provided as an argument in the next
| * call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduce method calls the
| * callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an
| * argument instead of an array value.
| */
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
| reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
|
| /**
| * Calls the specified callback function for all the elements in an array, in descending order.
| * The return value of the callback function is the accumulated result, and is provided as an
| * argument in the next call to the callback function.
| * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
| * the callbackfn function one time for each element in the array.
| * @param initialValue If initialValue is specified, it is used as the initial value to start
| * the accumulation. The first call to the callbackfn function provides this value as an argument
| * instead of an array value.
| */
| reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
|
| /**
| * Reverses the elements in an Array.
| */
| reverse(): Float64Array;
|
| /**
| * Sets a value or an array of values.
| * @param array A typed or untyped array of values to set.
| * @param offset The index in the current array at which the values are to be written.
| */
| set(array: ArrayLike<number>, offset?: number): void;
|
| /**
| * Returns a section of an array.
| * @param start The beginning of the specified portion of the array.
| * @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
| */
| slice(start?: number, end?: number): Float64Array;
|
| /**
| * Determines whether the specified callback function returns true for any element of an array.
| * @param predicate A function that accepts up to three arguments. The some method calls
| * the predicate function for each element in the array until the predicate returns a value
| * which is coercible to the Boolean value true, or until the end of the array.
| * @param thisArg An object to which the this keyword can refer in the predicate function.
| * If thisArg is omitted, undefined is used as the this value.
| */
| some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
|
| /**
| * Sorts an array.
| * @param compareFn Function used to determine the order of the elements. It is expected to return
| * a negative value if first argument is less than second argument, zero if they're equal and a positive
| * value otherwise. If omitted, the elements are sorted in ascending order.
| * \`\`\`ts
| * [11,2,22,1].sort((a, b) => a - b)
| * \`\`\`
| */
| sort(compareFn?: (a: number, b: number) => number): this;
|
| /**
| * at begin, inclusive, up to end, exclusive.
| * @param begin The index of the beginning of the array.
| * @param end The index of the end of the array.
| */
| subarray(begin?: number, end?: number): Float64Array;
|
| toString(): string;
|
| /** Returns the primitive value of the specified object. */
| valueOf(): Float64Array;
|
| [index: number]: number;
| }
|
| interface Float64ArrayConstructor {
| readonly prototype: Float64Array;
| new(length: number): Float64Array;
| new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
| new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
|
| /**
| * The size in bytes of each element in the array.
| */
| readonly BYTES_PER_ELEMENT: number;
|
| /**
| * Returns a new array from a set of elements.
| * @param items A set of elements to include in the new array object.
| */
| of(...items: number[]): Float64Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| */
| from(arrayLike: ArrayLike<number>): Float64Array;
|
| /**
| * Creates an array from an array-like or iterable object.
| * @param arrayLike An array-like or iterable object to convert to an array.
| * @param mapfn A mapping function to call on every element of the array.
| * @param thisArg Value of 'this' used to invoke the mapfn.
| */
| from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
|
| }
| declare var Float64Array: Float64ArrayConstructor;
|
| /////////////////////////////
| /// ECMAScript Internationalization API
| /////////////////////////////
|
| declare namespace Intl {
| interface CollatorOptions {
| usage?: string | undefined;
| localeMatcher?: string | undefined;
| numeric?: boolean | undefined;
| caseFirst?: string | undefined;
| sensitivity?: string | undefined;
| ignorePunctuation?: boolean | undefined;
| }
|
| interface ResolvedCollatorOptions {
| locale: string;
| usage: string;
| sensitivity: string;
| ignorePunctuation: boolean;
| collation: string;
| caseFirst: string;
| numeric: boolean;
| }
|
| interface Collator {
| compare(x: string, y: string): number;
| resolvedOptions(): ResolvedCollatorOptions;
| }
| var Collator: {
| new(locales?: string | string[], options?: CollatorOptions): Collator;
| (locales?: string | string[], options?: CollatorOptions): Collator;
| supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
| };
|
| interface NumberFormatOptions {
| localeMatcher?: string | undefined;
| style?: string | undefined;
| currency?: string | undefined;
| currencySign?: string | undefined;
| useGrouping?: boolean | undefined;
| minimumIntegerDigits?: number | undefined;
| minimumFractionDigits?: number | undefined;
| maximumFractionDigits?: number | undefined;
| minimumSignificantDigits?: number | undefined;
| maximumSignificantDigits?: number | undefined;
| }
|
| interface ResolvedNumberFormatOptions {
| locale: string;
| numberingSystem: string;
| style: string;
| currency?: string;
| minimumIntegerDigits: number;
| minimumFractionDigits: number;
| maximumFractionDigits: number;
| minimumSignificantDigits?: number;
| maximumSignificantDigits?: number;
| useGrouping: boolean;
| }
|
| interface NumberFormat {
| format(value: number): string;
| resolvedOptions(): ResolvedNumberFormatOptions;
| }
| var NumberFormat: {
| new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
| (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
| supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
| readonly prototype: NumberFormat;
| };
|
| interface DateTimeFormatOptions {
| localeMatcher?: "best fit" | "lookup" | undefined;
| weekday?: "long" | "short" | "narrow" | undefined;
| era?: "long" | "short" | "narrow" | undefined;
| year?: "numeric" | "2-digit" | undefined;
| month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
| day?: "numeric" | "2-digit" | undefined;
| hour?: "numeric" | "2-digit" | undefined;
| minute?: "numeric" | "2-digit" | undefined;
| second?: "numeric" | "2-digit" | undefined;
| timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
| formatMatcher?: "best fit" | "basic" | undefined;
| hour12?: boolean | undefined;
| timeZone?: string | undefined;
| }
|
| interface ResolvedDateTimeFormatOptions {
| locale: string;
| calendar: string;
| numberingSystem: string;
| timeZone: string;
| hour12?: boolean;
| weekday?: string;
| era?: string;
| year?: string;
| month?: string;
| day?: string;
| hour?: string;
| minute?: string;
| second?: string;
| timeZoneName?: string;
| }
|
| interface DateTimeFormat {
| format(date?: Date | number): string;
| resolvedOptions(): ResolvedDateTimeFormatOptions;
| }
| var DateTimeFormat: {
| new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
| (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
| supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
| readonly prototype: DateTimeFormat;
| };
| }
|
| interface String {
| /**
| * Determines whether two strings are equivalent in the current or specified locale.
| * @param that String to compare to target string
| * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
| * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
| */
| localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
| }
|
| interface Number {
| /**
| * Converts a number to a string by using the current or specified locale.
| * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
| }
|
| interface Date {
| /**
| * Converts a date and time to a string by using the current or specified locale.
| * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
| /**
| * Converts a date to a string by using the current or specified locale.
| * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
| /**
| * Converts a time to a string by using the current or specified locale.
| * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
| * @param options An object that contains one or more properties that specify comparison options.
| */
| toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
| }
| `;$i["lib.es6.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2015" />
| /// <reference lib="dom" />
| /// <reference lib="dom.iterable" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| `;$i["lib.esnext.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="es2023" />
| /// <reference lib="esnext.intl" />
| `;$i["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /// <reference lib="esnext" />
| /// <reference lib="dom" />
| /// <reference lib="webworker.importscripts" />
| /// <reference lib="scripthost" />
| /// <reference lib="dom.iterable" />`;$i["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| declare namespace Intl {
| interface NumberRangeFormatPart extends NumberFormatPart {
| source: "startRange" | "endRange" | "shared"
| }
|
| interface NumberFormat {
| formatRange(start: number | bigint, end: number | bigint): string;
| formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
| }
| }
| `;$i["lib.scripthost.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
|
|
| /////////////////////////////
| /// Windows Script Host APIS
| /////////////////////////////
|
|
| interface ActiveXObject {
| new (s: string): any;
| }
| declare var ActiveXObject: ActiveXObject;
|
| interface ITextWriter {
| Write(s: string): void;
| WriteLine(s: string): void;
| Close(): void;
| }
|
| interface TextStreamBase {
| /**
| * The column number of the current character position in an input stream.
| */
| Column: number;
|
| /**
| * The current line number in an input stream.
| */
| Line: number;
|
| /**
| * Closes a text stream.
| * It is not necessary to close standard streams; they close automatically when the process ends. If
| * you close a standard stream, be aware that any other pointers to that standard stream become invalid.
| */
| Close(): void;
| }
|
| interface TextStreamWriter extends TextStreamBase {
| /**
| * Sends a string to an output stream.
| */
| Write(s: string): void;
|
| /**
| * Sends a specified number of blank lines (newline characters) to an output stream.
| */
| WriteBlankLines(intLines: number): void;
|
| /**
| * Sends a string followed by a newline character to an output stream.
| */
| WriteLine(s: string): void;
| }
|
| interface TextStreamReader extends TextStreamBase {
| /**
| * Returns a specified number of characters from an input stream, starting at the current pointer position.
| * Does not return until the ENTER key is pressed.
| * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
| */
| Read(characters: number): string;
|
| /**
| * Returns all characters from an input stream.
| * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
| */
| ReadAll(): string;
|
| /**
| * Returns an entire line from an input stream.
| * Although this method extracts the newline character, it does not add it to the returned string.
| * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
| */
| ReadLine(): string;
|
| /**
| * Skips a specified number of characters when reading from an input text stream.
| * Can only be used on a stream in reading mode; causes an error in writing or appending mode.
| * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
| */
| Skip(characters: number): void;
|
| /**
| * Skips the next line when reading from an input text stream.
| * Can only be used on a stream in reading mode, not writing or appending mode.
| */
| SkipLine(): void;
|
| /**
| * Indicates whether the stream pointer position is at the end of a line.
| */
| AtEndOfLine: boolean;
|
| /**
| * Indicates whether the stream pointer position is at the end of a stream.
| */
| AtEndOfStream: boolean;
| }
|
| declare var WScript: {
| /**
| * Outputs text to either a message box (under WScript.exe) or the command console window followed by
| * a newline (under CScript.exe).
| */
| Echo(s: any): void;
|
| /**
| * Exposes the write-only error output stream for the current script.
| * Can be accessed only while using CScript.exe.
| */
| StdErr: TextStreamWriter;
|
| /**
| * Exposes the write-only output stream for the current script.
| * Can be accessed only while using CScript.exe.
| */
| StdOut: TextStreamWriter;
| Arguments: { length: number; Item(n: number): string; };
|
| /**
| * The full path of the currently running script.
| */
| ScriptFullName: string;
|
| /**
| * Forces the script to stop immediately, with an optional exit code.
| */
| Quit(exitCode?: number): number;
|
| /**
| * The Windows Script Host build version number.
| */
| BuildVersion: number;
|
| /**
| * Fully qualified path of the host executable.
| */
| FullName: string;
|
| /**
| * Gets/sets the script mode - interactive(true) or batch(false).
| */
| Interactive: boolean;
|
| /**
| * The name of the host executable (WScript.exe or CScript.exe).
| */
| Name: string;
|
| /**
| * Path of the directory containing the host executable.
| */
| Path: string;
|
| /**
| * The filename of the currently running script.
| */
| ScriptName: string;
|
| /**
| * Exposes the read-only input stream for the current script.
| * Can be accessed only while using CScript.exe.
| */
| StdIn: TextStreamReader;
|
| /**
| * Windows Script Host version
| */
| Version: string;
|
| /**
| * Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
| */
| ConnectObject(objEventSource: any, strPrefix: string): void;
|
| /**
| * Creates a COM object.
| * @param strProgiID
| * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
| */
| CreateObject(strProgID: string, strPrefix?: string): any;
|
| /**
| * Disconnects a COM object from its event sources.
| */
| DisconnectObject(obj: any): void;
|
| /**
| * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
| * @param strPathname Fully qualified path to the file containing the object persisted to disk.
| * For objects in memory, pass a zero-length string.
| * @param strProgID
| * @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
| */
| GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
|
| /**
| * Suspends script execution for a specified length of time, then continues execution.
| * @param intTime Interval (in milliseconds) to suspend script execution.
| */
| Sleep(intTime: number): void;
| };
|
| /**
| * WSH is an alias for WScript under Windows Script Host
| */
| declare var WSH: typeof WScript;
|
| /**
| * Represents an Automation SAFEARRAY
| */
| declare class SafeArray<T = any> {
| private constructor();
| private SafeArray_typekey: SafeArray<T>;
| }
|
| /**
| * Allows enumerating over a COM collection, which may not have indexed item access.
| */
| interface Enumerator<T = any> {
| /**
| * Returns true if the current item is the last one in the collection, or the collection is empty,
| * or the current item is undefined.
| */
| atEnd(): boolean;
|
| /**
| * Returns the current item in the collection
| */
| item(): T;
|
| /**
| * Resets the current item in the collection to the first item. If there are no items in the collection,
| * the current item is set to undefined.
| */
| moveFirst(): void;
|
| /**
| * Moves the current item to the next item in the collection. If the enumerator is at the end of
| * the collection or the collection is empty, the current item is set to undefined.
| */
| moveNext(): void;
| }
|
| interface EnumeratorConstructor {
| new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
| new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
| new <T = any>(collection: any): Enumerator<T>;
| }
|
| declare var Enumerator: EnumeratorConstructor;
|
| /**
| * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
| */
| interface VBArray<T = any> {
| /**
| * Returns the number of dimensions (1-based).
| */
| dimensions(): number;
|
| /**
| * Takes an index for each dimension in the array, and returns the item at the corresponding location.
| */
| getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
|
| /**
| * Returns the smallest available index for a given dimension.
| * @param dimension 1-based dimension (defaults to 1)
| */
| lbound(dimension?: number): number;
|
| /**
| * Returns the largest available index for a given dimension.
| * @param dimension 1-based dimension (defaults to 1)
| */
| ubound(dimension?: number): number;
|
| /**
| * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
| * each successive dimension is appended to the end of the array.
| * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
| */
| toArray(): T[];
| }
|
| interface VBArrayConstructor {
| new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
| }
|
| declare var VBArray: VBArrayConstructor;
|
| /**
| * Automation date (VT_DATE)
| */
| declare class VarDate {
| private constructor();
| private VarDate_typekey: VarDate;
| }
|
| interface DateConstructor {
| new (vd: VarDate): Date;
| }
|
| interface Date {
| getVarDate: () => VarDate;
| }
| `;$i["lib.webworker.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /////////////////////////////
| /// Worker APIs
| /////////////////////////////
|
| interface AddEventListenerOptions extends EventListenerOptions {
| once?: boolean;
| passive?: boolean;
| signal?: AbortSignal;
| }
|
| interface AesCbcParams extends Algorithm {
| iv: BufferSource;
| }
|
| interface AesCtrParams extends Algorithm {
| counter: BufferSource;
| length: number;
| }
|
| interface AesDerivedKeyParams extends Algorithm {
| length: number;
| }
|
| interface AesGcmParams extends Algorithm {
| additionalData?: BufferSource;
| iv: BufferSource;
| tagLength?: number;
| }
|
| interface AesKeyAlgorithm extends KeyAlgorithm {
| length: number;
| }
|
| interface AesKeyGenParams extends Algorithm {
| length: number;
| }
|
| interface Algorithm {
| name: string;
| }
|
| interface AudioConfiguration {
| bitrate?: number;
| channels?: string;
| contentType: string;
| samplerate?: number;
| spatialRendering?: boolean;
| }
|
| interface BlobPropertyBag {
| endings?: EndingType;
| type?: string;
| }
|
| interface CacheQueryOptions {
| ignoreMethod?: boolean;
| ignoreSearch?: boolean;
| ignoreVary?: boolean;
| }
|
| interface ClientQueryOptions {
| includeUncontrolled?: boolean;
| type?: ClientTypes;
| }
|
| interface CloseEventInit extends EventInit {
| code?: number;
| reason?: string;
| wasClean?: boolean;
| }
|
| interface CryptoKeyPair {
| privateKey: CryptoKey;
| publicKey: CryptoKey;
| }
|
| interface CustomEventInit<T = any> extends EventInit {
| detail?: T;
| }
|
| interface DOMMatrix2DInit {
| a?: number;
| b?: number;
| c?: number;
| d?: number;
| e?: number;
| f?: number;
| m11?: number;
| m12?: number;
| m21?: number;
| m22?: number;
| m41?: number;
| m42?: number;
| }
|
| interface DOMMatrixInit extends DOMMatrix2DInit {
| is2D?: boolean;
| m13?: number;
| m14?: number;
| m23?: number;
| m24?: number;
| m31?: number;
| m32?: number;
| m33?: number;
| m34?: number;
| m43?: number;
| m44?: number;
| }
|
| interface DOMPointInit {
| w?: number;
| x?: number;
| y?: number;
| z?: number;
| }
|
| interface DOMQuadInit {
| p1?: DOMPointInit;
| p2?: DOMPointInit;
| p3?: DOMPointInit;
| p4?: DOMPointInit;
| }
|
| interface DOMRectInit {
| height?: number;
| width?: number;
| x?: number;
| y?: number;
| }
|
| interface EcKeyGenParams extends Algorithm {
| namedCurve: NamedCurve;
| }
|
| interface EcKeyImportParams extends Algorithm {
| namedCurve: NamedCurve;
| }
|
| interface EcdhKeyDeriveParams extends Algorithm {
| public: CryptoKey;
| }
|
| interface EcdsaParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| }
|
| interface ErrorEventInit extends EventInit {
| colno?: number;
| error?: any;
| filename?: string;
| lineno?: number;
| message?: string;
| }
|
| interface EventInit {
| bubbles?: boolean;
| cancelable?: boolean;
| composed?: boolean;
| }
|
| interface EventListenerOptions {
| capture?: boolean;
| }
|
| interface EventSourceInit {
| withCredentials?: boolean;
| }
|
| interface ExtendableEventInit extends EventInit {
| }
|
| interface ExtendableMessageEventInit extends ExtendableEventInit {
| data?: any;
| lastEventId?: string;
| origin?: string;
| ports?: MessagePort[];
| source?: Client | ServiceWorker | MessagePort | null;
| }
|
| interface FetchEventInit extends ExtendableEventInit {
| clientId?: string;
| handled?: Promise<undefined>;
| preloadResponse?: Promise<any>;
| replacesClientId?: string;
| request: Request;
| resultingClientId?: string;
| }
|
| interface FilePropertyBag extends BlobPropertyBag {
| lastModified?: number;
| }
|
| interface FileSystemGetDirectoryOptions {
| create?: boolean;
| }
|
| interface FileSystemGetFileOptions {
| create?: boolean;
| }
|
| interface FileSystemReadWriteOptions {
| at?: number;
| }
|
| interface FileSystemRemoveOptions {
| recursive?: boolean;
| }
|
| interface FontFaceDescriptors {
| ascentOverride?: string;
| descentOverride?: string;
| display?: FontDisplay;
| featureSettings?: string;
| lineGapOverride?: string;
| stretch?: string;
| style?: string;
| unicodeRange?: string;
| variant?: string;
| weight?: string;
| }
|
| interface FontFaceSetLoadEventInit extends EventInit {
| fontfaces?: FontFace[];
| }
|
| interface GetNotificationOptions {
| tag?: string;
| }
|
| interface HkdfParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| info: BufferSource;
| salt: BufferSource;
| }
|
| interface HmacImportParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| length?: number;
| }
|
| interface HmacKeyGenParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| length?: number;
| }
|
| interface IDBDatabaseInfo {
| name?: string;
| version?: number;
| }
|
| interface IDBIndexParameters {
| multiEntry?: boolean;
| unique?: boolean;
| }
|
| interface IDBObjectStoreParameters {
| autoIncrement?: boolean;
| keyPath?: string | string[] | null;
| }
|
| interface IDBTransactionOptions {
| durability?: IDBTransactionDurability;
| }
|
| interface IDBVersionChangeEventInit extends EventInit {
| newVersion?: number | null;
| oldVersion?: number;
| }
|
| interface ImageBitmapOptions {
| colorSpaceConversion?: ColorSpaceConversion;
| imageOrientation?: ImageOrientation;
| premultiplyAlpha?: PremultiplyAlpha;
| resizeHeight?: number;
| resizeQuality?: ResizeQuality;
| resizeWidth?: number;
| }
|
| interface ImageBitmapRenderingContextSettings {
| alpha?: boolean;
| }
|
| interface ImageDataSettings {
| colorSpace?: PredefinedColorSpace;
| }
|
| interface ImageEncodeOptions {
| quality?: number;
| type?: string;
| }
|
| interface ImportMeta {
| url: string;
| }
|
| interface JsonWebKey {
| alg?: string;
| crv?: string;
| d?: string;
| dp?: string;
| dq?: string;
| e?: string;
| ext?: boolean;
| k?: string;
| key_ops?: string[];
| kty?: string;
| n?: string;
| oth?: RsaOtherPrimesInfo[];
| p?: string;
| q?: string;
| qi?: string;
| use?: string;
| x?: string;
| y?: string;
| }
|
| interface KeyAlgorithm {
| name: string;
| }
|
| interface LockInfo {
| clientId?: string;
| mode?: LockMode;
| name?: string;
| }
|
| interface LockManagerSnapshot {
| held?: LockInfo[];
| pending?: LockInfo[];
| }
|
| interface LockOptions {
| ifAvailable?: boolean;
| mode?: LockMode;
| signal?: AbortSignal;
| steal?: boolean;
| }
|
| interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
| configuration?: MediaDecodingConfiguration;
| }
|
| interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
| configuration?: MediaEncodingConfiguration;
| }
|
| interface MediaCapabilitiesInfo {
| powerEfficient: boolean;
| smooth: boolean;
| supported: boolean;
| }
|
| interface MediaConfiguration {
| audio?: AudioConfiguration;
| video?: VideoConfiguration;
| }
|
| interface MediaDecodingConfiguration extends MediaConfiguration {
| type: MediaDecodingType;
| }
|
| interface MediaEncodingConfiguration extends MediaConfiguration {
| type: MediaEncodingType;
| }
|
| interface MessageEventInit<T = any> extends EventInit {
| data?: T;
| lastEventId?: string;
| origin?: string;
| ports?: MessagePort[];
| source?: MessageEventSource | null;
| }
|
| interface MultiCacheQueryOptions extends CacheQueryOptions {
| cacheName?: string;
| }
|
| interface NavigationPreloadState {
| enabled?: boolean;
| headerValue?: string;
| }
|
| interface NotificationAction {
| action: string;
| icon?: string;
| title: string;
| }
|
| interface NotificationEventInit extends ExtendableEventInit {
| action?: string;
| notification: Notification;
| }
|
| interface NotificationOptions {
| actions?: NotificationAction[];
| badge?: string;
| body?: string;
| data?: any;
| dir?: NotificationDirection;
| icon?: string;
| image?: string;
| lang?: string;
| renotify?: boolean;
| requireInteraction?: boolean;
| silent?: boolean;
| tag?: string;
| timestamp?: EpochTimeStamp;
| vibrate?: VibratePattern;
| }
|
| interface Pbkdf2Params extends Algorithm {
| hash: HashAlgorithmIdentifier;
| iterations: number;
| salt: BufferSource;
| }
|
| interface PerformanceMarkOptions {
| detail?: any;
| startTime?: DOMHighResTimeStamp;
| }
|
| interface PerformanceMeasureOptions {
| detail?: any;
| duration?: DOMHighResTimeStamp;
| end?: string | DOMHighResTimeStamp;
| start?: string | DOMHighResTimeStamp;
| }
|
| interface PerformanceObserverInit {
| buffered?: boolean;
| entryTypes?: string[];
| type?: string;
| }
|
| interface PermissionDescriptor {
| name: PermissionName;
| }
|
| interface ProgressEventInit extends EventInit {
| lengthComputable?: boolean;
| loaded?: number;
| total?: number;
| }
|
| interface PromiseRejectionEventInit extends EventInit {
| promise: Promise<any>;
| reason?: any;
| }
|
| interface PushEventInit extends ExtendableEventInit {
| data?: PushMessageDataInit;
| }
|
| interface PushSubscriptionJSON {
| endpoint?: string;
| expirationTime?: EpochTimeStamp | null;
| keys?: Record<string, string>;
| }
|
| interface PushSubscriptionOptionsInit {
| applicationServerKey?: BufferSource | string | null;
| userVisibleOnly?: boolean;
| }
|
| interface QueuingStrategy<T = any> {
| highWaterMark?: number;
| size?: QueuingStrategySize<T>;
| }
|
| interface QueuingStrategyInit {
| /**
| * Creates a new ByteLengthQueuingStrategy with the provided high water mark.
| *
| * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
| */
| highWaterMark: number;
| }
|
| interface RTCEncodedAudioFrameMetadata {
| contributingSources?: number[];
| synchronizationSource?: number;
| }
|
| interface RTCEncodedVideoFrameMetadata {
| contributingSources?: number[];
| dependencies?: number[];
| frameId?: number;
| height?: number;
| spatialIndex?: number;
| synchronizationSource?: number;
| temporalIndex?: number;
| width?: number;
| }
|
| interface ReadableStreamGetReaderOptions {
| /**
| * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
| *
| * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
| */
| mode?: ReadableStreamReaderMode;
| }
|
| interface ReadableStreamReadDoneResult<T> {
| done: true;
| value?: T;
| }
|
| interface ReadableStreamReadValueResult<T> {
| done: false;
| value: T;
| }
|
| interface ReadableWritablePair<R = any, W = any> {
| readable: ReadableStream<R>;
| /**
| * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
| *
| * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
| */
| writable: WritableStream<W>;
| }
|
| interface RegistrationOptions {
| scope?: string;
| type?: WorkerType;
| updateViaCache?: ServiceWorkerUpdateViaCache;
| }
|
| interface RequestInit {
| /** A BodyInit object or null to set request's body. */
| body?: BodyInit | null;
| /** A string indicating how the request will interact with the browser's cache to set request's cache. */
| cache?: RequestCache;
| /** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
| credentials?: RequestCredentials;
| /** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
| headers?: HeadersInit;
| /** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
| integrity?: string;
| /** A boolean to set request's keepalive. */
| keepalive?: boolean;
| /** A string to set request's method. */
| method?: string;
| /** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
| mode?: RequestMode;
| /** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
| redirect?: RequestRedirect;
| /** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
| referrer?: string;
| /** A referrer policy to set request's referrerPolicy. */
| referrerPolicy?: ReferrerPolicy;
| /** An AbortSignal to set request's signal. */
| signal?: AbortSignal | null;
| /** Can only be null. Used to disassociate request from any Window. */
| window?: null;
| }
|
| interface ResponseInit {
| headers?: HeadersInit;
| status?: number;
| statusText?: string;
| }
|
| interface RsaHashedImportParams extends Algorithm {
| hash: HashAlgorithmIdentifier;
| }
|
| interface RsaHashedKeyGenParams extends RsaKeyGenParams {
| hash: HashAlgorithmIdentifier;
| }
|
| interface RsaKeyGenParams extends Algorithm {
| modulusLength: number;
| publicExponent: BigInteger;
| }
|
| interface RsaOaepParams extends Algorithm {
| label?: BufferSource;
| }
|
| interface RsaOtherPrimesInfo {
| d?: string;
| r?: string;
| t?: string;
| }
|
| interface RsaPssParams extends Algorithm {
| saltLength: number;
| }
|
| interface SecurityPolicyViolationEventInit extends EventInit {
| blockedURI?: string;
| columnNumber?: number;
| disposition: SecurityPolicyViolationEventDisposition;
| documentURI: string;
| effectiveDirective: string;
| lineNumber?: number;
| originalPolicy: string;
| referrer?: string;
| sample?: string;
| sourceFile?: string;
| statusCode: number;
| violatedDirective: string;
| }
|
| interface StorageEstimate {
| quota?: number;
| usage?: number;
| }
|
| interface StreamPipeOptions {
| preventAbort?: boolean;
| preventCancel?: boolean;
| /**
| * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
| *
| * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
| *
| * Errors and closures of the source and destination streams propagate as follows:
| *
| * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
| *
| * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
| *
| * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
| *
| * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
| *
| * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
| */
| preventClose?: boolean;
| signal?: AbortSignal;
| }
|
| interface StructuredSerializeOptions {
| transfer?: Transferable[];
| }
|
| interface TextDecodeOptions {
| stream?: boolean;
| }
|
| interface TextDecoderOptions {
| fatal?: boolean;
| ignoreBOM?: boolean;
| }
|
| interface TextEncoderEncodeIntoResult {
| read?: number;
| written?: number;
| }
|
| interface Transformer<I = any, O = any> {
| flush?: TransformerFlushCallback<O>;
| readableType?: undefined;
| start?: TransformerStartCallback<O>;
| transform?: TransformerTransformCallback<I, O>;
| writableType?: undefined;
| }
|
| interface UnderlyingByteSource {
| autoAllocateChunkSize?: number;
| cancel?: UnderlyingSourceCancelCallback;
| pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
| start?: (controller: ReadableByteStreamController) => any;
| type: "bytes";
| }
|
| interface UnderlyingDefaultSource<R = any> {
| cancel?: UnderlyingSourceCancelCallback;
| pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
| start?: (controller: ReadableStreamDefaultController<R>) => any;
| type?: undefined;
| }
|
| interface UnderlyingSink<W = any> {
| abort?: UnderlyingSinkAbortCallback;
| close?: UnderlyingSinkCloseCallback;
| start?: UnderlyingSinkStartCallback;
| type?: undefined;
| write?: UnderlyingSinkWriteCallback<W>;
| }
|
| interface UnderlyingSource<R = any> {
| autoAllocateChunkSize?: number;
| cancel?: UnderlyingSourceCancelCallback;
| pull?: UnderlyingSourcePullCallback<R>;
| start?: UnderlyingSourceStartCallback<R>;
| type?: ReadableStreamType;
| }
|
| interface VideoColorSpaceInit {
| fullRange?: boolean | null;
| matrix?: VideoMatrixCoefficients | null;
| primaries?: VideoColorPrimaries | null;
| transfer?: VideoTransferCharacteristics | null;
| }
|
| interface VideoConfiguration {
| bitrate: number;
| colorGamut?: ColorGamut;
| contentType: string;
| framerate: number;
| hdrMetadataType?: HdrMetadataType;
| height: number;
| scalabilityMode?: string;
| transferFunction?: TransferFunction;
| width: number;
| }
|
| interface WebGLContextAttributes {
| alpha?: boolean;
| antialias?: boolean;
| depth?: boolean;
| desynchronized?: boolean;
| failIfMajorPerformanceCaveat?: boolean;
| powerPreference?: WebGLPowerPreference;
| premultipliedAlpha?: boolean;
| preserveDrawingBuffer?: boolean;
| stencil?: boolean;
| }
|
| interface WebGLContextEventInit extends EventInit {
| statusMessage?: string;
| }
|
| interface WorkerOptions {
| credentials?: RequestCredentials;
| name?: string;
| type?: WorkerType;
| }
|
| /** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */
| interface ANGLE_instanced_arrays {
| drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
| drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
| vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
| }
|
| /** A controller object that allows you to abort one or more DOM requests as and when desired. */
| interface AbortController {
| /** Returns the AbortSignal object associated with this object. */
| readonly signal: AbortSignal;
| /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
| abort(reason?: any): void;
| }
|
| declare var AbortController: {
| prototype: AbortController;
| new(): AbortController;
| };
|
| interface AbortSignalEventMap {
| "abort": Event;
| }
|
| /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
| interface AbortSignal extends EventTarget {
| /** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
| readonly aborted: boolean;
| onabort: ((this: AbortSignal, ev: Event) => any) | null;
| readonly reason: any;
| throwIfAborted(): void;
| addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var AbortSignal: {
| prototype: AbortSignal;
| new(): AbortSignal;
| abort(reason?: any): AbortSignal;
| timeout(milliseconds: number): AbortSignal;
| };
|
| interface AbstractWorkerEventMap {
| "error": ErrorEvent;
| }
|
| interface AbstractWorker {
| onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
| addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| interface AnimationFrameProvider {
| cancelAnimationFrame(handle: number): void;
| requestAnimationFrame(callback: FrameRequestCallback): number;
| }
|
| /** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
| interface Blob {
| readonly size: number;
| readonly type: string;
| arrayBuffer(): Promise<ArrayBuffer>;
| slice(start?: number, end?: number, contentType?: string): Blob;
| stream(): ReadableStream<Uint8Array>;
| text(): Promise<string>;
| }
|
| declare var Blob: {
| prototype: Blob;
| new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
| };
|
| interface Body {
| readonly body: ReadableStream<Uint8Array> | null;
| readonly bodyUsed: boolean;
| arrayBuffer(): Promise<ArrayBuffer>;
| blob(): Promise<Blob>;
| formData(): Promise<FormData>;
| json(): Promise<any>;
| text(): Promise<string>;
| }
|
| interface BroadcastChannelEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| interface BroadcastChannel extends EventTarget {
| /** Returns the channel name (as passed to the constructor). */
| readonly name: string;
| onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
| /** Closes the BroadcastChannel object, opening it up to garbage collection. */
| close(): void;
| /** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
| postMessage(message: any): void;
| addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var BroadcastChannel: {
| prototype: BroadcastChannel;
| new(name: string): BroadcastChannel;
| };
|
| /** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
| interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
| readonly highWaterMark: number;
| readonly size: QueuingStrategySize<ArrayBufferView>;
| }
|
| declare var ByteLengthQueuingStrategy: {
| prototype: ByteLengthQueuingStrategy;
| new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
| };
|
| /**
| * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
| * Available only in secure contexts.
| */
| interface Cache {
| add(request: RequestInfo | URL): Promise<void>;
| addAll(requests: RequestInfo[]): Promise<void>;
| delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
| keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
| match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
| matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
| put(request: RequestInfo | URL, response: Response): Promise<void>;
| }
|
| declare var Cache: {
| prototype: Cache;
| new(): Cache;
| };
|
| /**
| * The storage for Cache objects.
| * Available only in secure contexts.
| */
| interface CacheStorage {
| delete(cacheName: string): Promise<boolean>;
| has(cacheName: string): Promise<boolean>;
| keys(): Promise<string[]>;
| match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
| open(cacheName: string): Promise<Cache>;
| }
|
| declare var CacheStorage: {
| prototype: CacheStorage;
| new(): CacheStorage;
| };
|
| interface CanvasCompositing {
| globalAlpha: number;
| globalCompositeOperation: GlobalCompositeOperation;
| }
|
| interface CanvasDrawImage {
| drawImage(image: CanvasImageSource, dx: number, dy: number): void;
| drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
| drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
| }
|
| interface CanvasDrawPath {
| beginPath(): void;
| clip(fillRule?: CanvasFillRule): void;
| clip(path: Path2D, fillRule?: CanvasFillRule): void;
| fill(fillRule?: CanvasFillRule): void;
| fill(path: Path2D, fillRule?: CanvasFillRule): void;
| isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
| isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
| isPointInStroke(x: number, y: number): boolean;
| isPointInStroke(path: Path2D, x: number, y: number): boolean;
| stroke(): void;
| stroke(path: Path2D): void;
| }
|
| interface CanvasFillStrokeStyles {
| fillStyle: string | CanvasGradient | CanvasPattern;
| strokeStyle: string | CanvasGradient | CanvasPattern;
| createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
| createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
| createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
| createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
| }
|
| interface CanvasFilters {
| filter: string;
| }
|
| /** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
| interface CanvasGradient {
| /**
| * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
| *
| * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
| */
| addColorStop(offset: number, color: string): void;
| }
|
| declare var CanvasGradient: {
| prototype: CanvasGradient;
| new(): CanvasGradient;
| };
|
| interface CanvasImageData {
| createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| createImageData(imagedata: ImageData): ImageData;
| getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| putImageData(imagedata: ImageData, dx: number, dy: number): void;
| putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
| }
|
| interface CanvasImageSmoothing {
| imageSmoothingEnabled: boolean;
| imageSmoothingQuality: ImageSmoothingQuality;
| }
|
| interface CanvasPath {
| arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
| arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
| bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
| closePath(): void;
| ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
| lineTo(x: number, y: number): void;
| moveTo(x: number, y: number): void;
| quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
| rect(x: number, y: number, w: number, h: number): void;
| roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
| }
|
| interface CanvasPathDrawingStyles {
| lineCap: CanvasLineCap;
| lineDashOffset: number;
| lineJoin: CanvasLineJoin;
| lineWidth: number;
| miterLimit: number;
| getLineDash(): number[];
| setLineDash(segments: number[]): void;
| }
|
| /** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
| interface CanvasPattern {
| /** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
| setTransform(transform?: DOMMatrix2DInit): void;
| }
|
| declare var CanvasPattern: {
| prototype: CanvasPattern;
| new(): CanvasPattern;
| };
|
| interface CanvasRect {
| clearRect(x: number, y: number, w: number, h: number): void;
| fillRect(x: number, y: number, w: number, h: number): void;
| strokeRect(x: number, y: number, w: number, h: number): void;
| }
|
| interface CanvasShadowStyles {
| shadowBlur: number;
| shadowColor: string;
| shadowOffsetX: number;
| shadowOffsetY: number;
| }
|
| interface CanvasState {
| restore(): void;
| save(): void;
| }
|
| interface CanvasText {
| fillText(text: string, x: number, y: number, maxWidth?: number): void;
| measureText(text: string): TextMetrics;
| strokeText(text: string, x: number, y: number, maxWidth?: number): void;
| }
|
| interface CanvasTextDrawingStyles {
| direction: CanvasDirection;
| font: string;
| fontKerning: CanvasFontKerning;
| textAlign: CanvasTextAlign;
| textBaseline: CanvasTextBaseline;
| }
|
| interface CanvasTransform {
| getTransform(): DOMMatrix;
| resetTransform(): void;
| rotate(angle: number): void;
| scale(x: number, y: number): void;
| setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
| setTransform(transform?: DOMMatrix2DInit): void;
| transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
| translate(x: number, y: number): void;
| }
|
| /** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
| interface Client {
| readonly frameType: FrameType;
| readonly id: string;
| readonly type: ClientTypes;
| readonly url: string;
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| }
|
| declare var Client: {
| prototype: Client;
| new(): Client;
| };
|
| /** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
| interface Clients {
| claim(): Promise<void>;
| get(id: string): Promise<Client | undefined>;
| matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
| openWindow(url: string | URL): Promise<WindowClient | null>;
| }
|
| declare var Clients: {
| prototype: Clients;
| new(): Clients;
| };
|
| /** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
| interface CloseEvent extends Event {
| /** Returns the WebSocket connection close code provided by the server. */
| readonly code: number;
| /** Returns the WebSocket connection close reason provided by the server. */
| readonly reason: string;
| /** Returns true if the connection closed cleanly; false otherwise. */
| readonly wasClean: boolean;
| }
|
| declare var CloseEvent: {
| prototype: CloseEvent;
| new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
| };
|
| /** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
| interface CountQueuingStrategy extends QueuingStrategy {
| readonly highWaterMark: number;
| readonly size: QueuingStrategySize;
| }
|
| declare var CountQueuingStrategy: {
| prototype: CountQueuingStrategy;
| new(init: QueuingStrategyInit): CountQueuingStrategy;
| };
|
| /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
| interface Crypto {
| /** Available only in secure contexts. */
| readonly subtle: SubtleCrypto;
| getRandomValues<T extends ArrayBufferView | null>(array: T): T;
| /** Available only in secure contexts. */
| randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
| }
|
| declare var Crypto: {
| prototype: Crypto;
| new(): Crypto;
| };
|
| /**
| * The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
| * Available only in secure contexts.
| */
| interface CryptoKey {
| readonly algorithm: KeyAlgorithm;
| readonly extractable: boolean;
| readonly type: KeyType;
| readonly usages: KeyUsage[];
| }
|
| declare var CryptoKey: {
| prototype: CryptoKey;
| new(): CryptoKey;
| };
|
| interface CustomEvent<T = any> extends Event {
| /** Returns any custom data event was created with. Typically used for synthetic events. */
| readonly detail: T;
| /** @deprecated */
| initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
| }
|
| declare var CustomEvent: {
| prototype: CustomEvent;
| new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
| };
|
| /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
| interface DOMException extends Error {
| /** @deprecated */
| readonly code: number;
| readonly message: string;
| readonly name: string;
| readonly INDEX_SIZE_ERR: 1;
| readonly DOMSTRING_SIZE_ERR: 2;
| readonly HIERARCHY_REQUEST_ERR: 3;
| readonly WRONG_DOCUMENT_ERR: 4;
| readonly INVALID_CHARACTER_ERR: 5;
| readonly NO_DATA_ALLOWED_ERR: 6;
| readonly NO_MODIFICATION_ALLOWED_ERR: 7;
| readonly NOT_FOUND_ERR: 8;
| readonly NOT_SUPPORTED_ERR: 9;
| readonly INUSE_ATTRIBUTE_ERR: 10;
| readonly INVALID_STATE_ERR: 11;
| readonly SYNTAX_ERR: 12;
| readonly INVALID_MODIFICATION_ERR: 13;
| readonly NAMESPACE_ERR: 14;
| readonly INVALID_ACCESS_ERR: 15;
| readonly VALIDATION_ERR: 16;
| readonly TYPE_MISMATCH_ERR: 17;
| readonly SECURITY_ERR: 18;
| readonly NETWORK_ERR: 19;
| readonly ABORT_ERR: 20;
| readonly URL_MISMATCH_ERR: 21;
| readonly QUOTA_EXCEEDED_ERR: 22;
| readonly TIMEOUT_ERR: 23;
| readonly INVALID_NODE_TYPE_ERR: 24;
| readonly DATA_CLONE_ERR: 25;
| }
|
| declare var DOMException: {
| prototype: DOMException;
| new(message?: string, name?: string): DOMException;
| readonly INDEX_SIZE_ERR: 1;
| readonly DOMSTRING_SIZE_ERR: 2;
| readonly HIERARCHY_REQUEST_ERR: 3;
| readonly WRONG_DOCUMENT_ERR: 4;
| readonly INVALID_CHARACTER_ERR: 5;
| readonly NO_DATA_ALLOWED_ERR: 6;
| readonly NO_MODIFICATION_ALLOWED_ERR: 7;
| readonly NOT_FOUND_ERR: 8;
| readonly NOT_SUPPORTED_ERR: 9;
| readonly INUSE_ATTRIBUTE_ERR: 10;
| readonly INVALID_STATE_ERR: 11;
| readonly SYNTAX_ERR: 12;
| readonly INVALID_MODIFICATION_ERR: 13;
| readonly NAMESPACE_ERR: 14;
| readonly INVALID_ACCESS_ERR: 15;
| readonly VALIDATION_ERR: 16;
| readonly TYPE_MISMATCH_ERR: 17;
| readonly SECURITY_ERR: 18;
| readonly NETWORK_ERR: 19;
| readonly ABORT_ERR: 20;
| readonly URL_MISMATCH_ERR: 21;
| readonly QUOTA_EXCEEDED_ERR: 22;
| readonly TIMEOUT_ERR: 23;
| readonly INVALID_NODE_TYPE_ERR: 24;
| readonly DATA_CLONE_ERR: 25;
| };
|
| interface DOMMatrix extends DOMMatrixReadOnly {
| a: number;
| b: number;
| c: number;
| d: number;
| e: number;
| f: number;
| m11: number;
| m12: number;
| m13: number;
| m14: number;
| m21: number;
| m22: number;
| m23: number;
| m24: number;
| m31: number;
| m32: number;
| m33: number;
| m34: number;
| m41: number;
| m42: number;
| m43: number;
| m44: number;
| invertSelf(): DOMMatrix;
| multiplySelf(other?: DOMMatrixInit): DOMMatrix;
| preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
| rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
| rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
| rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
| scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| skewXSelf(sx?: number): DOMMatrix;
| skewYSelf(sy?: number): DOMMatrix;
| translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
| }
|
| declare var DOMMatrix: {
| prototype: DOMMatrix;
| new(init?: string | number[]): DOMMatrix;
| fromFloat32Array(array32: Float32Array): DOMMatrix;
| fromFloat64Array(array64: Float64Array): DOMMatrix;
| fromMatrix(other?: DOMMatrixInit): DOMMatrix;
| };
|
| interface DOMMatrixReadOnly {
| readonly a: number;
| readonly b: number;
| readonly c: number;
| readonly d: number;
| readonly e: number;
| readonly f: number;
| readonly is2D: boolean;
| readonly isIdentity: boolean;
| readonly m11: number;
| readonly m12: number;
| readonly m13: number;
| readonly m14: number;
| readonly m21: number;
| readonly m22: number;
| readonly m23: number;
| readonly m24: number;
| readonly m31: number;
| readonly m32: number;
| readonly m33: number;
| readonly m34: number;
| readonly m41: number;
| readonly m42: number;
| readonly m43: number;
| readonly m44: number;
| flipX(): DOMMatrix;
| flipY(): DOMMatrix;
| inverse(): DOMMatrix;
| multiply(other?: DOMMatrixInit): DOMMatrix;
| rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
| rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
| rotateFromVector(x?: number, y?: number): DOMMatrix;
| scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
| /** @deprecated */
| scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
| skewX(sx?: number): DOMMatrix;
| skewY(sy?: number): DOMMatrix;
| toFloat32Array(): Float32Array;
| toFloat64Array(): Float64Array;
| toJSON(): any;
| transformPoint(point?: DOMPointInit): DOMPoint;
| translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
| }
|
| declare var DOMMatrixReadOnly: {
| prototype: DOMMatrixReadOnly;
| new(init?: string | number[]): DOMMatrixReadOnly;
| fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
| fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
| fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
| };
|
| interface DOMPoint extends DOMPointReadOnly {
| w: number;
| x: number;
| y: number;
| z: number;
| }
|
| declare var DOMPoint: {
| prototype: DOMPoint;
| new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
| fromPoint(other?: DOMPointInit): DOMPoint;
| };
|
| interface DOMPointReadOnly {
| readonly w: number;
| readonly x: number;
| readonly y: number;
| readonly z: number;
| matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
| toJSON(): any;
| }
|
| declare var DOMPointReadOnly: {
| prototype: DOMPointReadOnly;
| new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
| fromPoint(other?: DOMPointInit): DOMPointReadOnly;
| };
|
| interface DOMQuad {
| readonly p1: DOMPoint;
| readonly p2: DOMPoint;
| readonly p3: DOMPoint;
| readonly p4: DOMPoint;
| getBounds(): DOMRect;
| toJSON(): any;
| }
|
| declare var DOMQuad: {
| prototype: DOMQuad;
| new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
| fromQuad(other?: DOMQuadInit): DOMQuad;
| fromRect(other?: DOMRectInit): DOMQuad;
| };
|
| interface DOMRect extends DOMRectReadOnly {
| height: number;
| width: number;
| x: number;
| y: number;
| }
|
| declare var DOMRect: {
| prototype: DOMRect;
| new(x?: number, y?: number, width?: number, height?: number): DOMRect;
| fromRect(other?: DOMRectInit): DOMRect;
| };
|
| interface DOMRectReadOnly {
| readonly bottom: number;
| readonly height: number;
| readonly left: number;
| readonly right: number;
| readonly top: number;
| readonly width: number;
| readonly x: number;
| readonly y: number;
| toJSON(): any;
| }
|
| declare var DOMRectReadOnly: {
| prototype: DOMRectReadOnly;
| new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
| fromRect(other?: DOMRectInit): DOMRectReadOnly;
| };
|
| /** A type returned by some APIs which contains a list of DOMString (strings). */
| interface DOMStringList {
| /** Returns the number of strings in strings. */
| readonly length: number;
| /** Returns true if strings contains string, and false otherwise. */
| contains(string: string): boolean;
| /** Returns the string with index index from strings. */
| item(index: number): string | null;
| [index: number]: string;
| }
|
| declare var DOMStringList: {
| prototype: DOMStringList;
| new(): DOMStringList;
| };
|
| interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
| interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
| /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
| readonly name: string;
| onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
| /** Aborts dedicatedWorkerGlobal. */
| close(): void;
| /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var DedicatedWorkerGlobalScope: {
| prototype: DedicatedWorkerGlobalScope;
| new(): DedicatedWorkerGlobalScope;
| };
|
| interface EXT_blend_minmax {
| readonly MIN_EXT: 0x8007;
| readonly MAX_EXT: 0x8008;
| }
|
| interface EXT_color_buffer_float {
| }
|
| interface EXT_color_buffer_half_float {
| readonly RGBA16F_EXT: 0x881A;
| readonly RGB16F_EXT: 0x881B;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
| readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
| }
|
| interface EXT_float_blend {
| }
|
| /** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
| interface EXT_frag_depth {
| }
|
| interface EXT_sRGB {
| readonly SRGB_EXT: 0x8C40;
| readonly SRGB_ALPHA_EXT: 0x8C42;
| readonly SRGB8_ALPHA8_EXT: 0x8C43;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
| }
|
| interface EXT_shader_texture_lod {
| }
|
| interface EXT_texture_compression_bptc {
| readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
| readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
| readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
| readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
| }
|
| interface EXT_texture_compression_rgtc {
| readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
| readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
| readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
| readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
| }
|
| /** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
| interface EXT_texture_filter_anisotropic {
| readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
| readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
| }
|
| interface EXT_texture_norm16 {
| readonly R16_EXT: 0x822A;
| readonly RG16_EXT: 0x822C;
| readonly RGB16_EXT: 0x8054;
| readonly RGBA16_EXT: 0x805B;
| readonly R16_SNORM_EXT: 0x8F98;
| readonly RG16_SNORM_EXT: 0x8F99;
| readonly RGB16_SNORM_EXT: 0x8F9A;
| readonly RGBA16_SNORM_EXT: 0x8F9B;
| }
|
| /** Events providing information related to errors in scripts or in files. */
| interface ErrorEvent extends Event {
| readonly colno: number;
| readonly error: any;
| readonly filename: string;
| readonly lineno: number;
| readonly message: string;
| }
|
| declare var ErrorEvent: {
| prototype: ErrorEvent;
| new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
| };
|
| /** An event which takes place in the DOM. */
| interface Event {
| /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
| readonly bubbles: boolean;
| /** @deprecated */
| cancelBubble: boolean;
| /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
| readonly cancelable: boolean;
| /** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
| readonly composed: boolean;
| /** Returns the object whose event listener's callback is currently being invoked. */
| readonly currentTarget: EventTarget | null;
| /** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
| readonly defaultPrevented: boolean;
| /** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
| readonly eventPhase: number;
| /** Returns true if event was dispatched by the user agent, and false otherwise. */
| readonly isTrusted: boolean;
| /** @deprecated */
| returnValue: boolean;
| /** @deprecated */
| readonly srcElement: EventTarget | null;
| /** Returns the object to which event is dispatched (its target). */
| readonly target: EventTarget | null;
| /** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
| readonly timeStamp: DOMHighResTimeStamp;
| /** Returns the type of event, e.g. "click", "hashchange", or "submit". */
| readonly type: string;
| /** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
| composedPath(): EventTarget[];
| /** @deprecated */
| initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
| /** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
| preventDefault(): void;
| /** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
| stopImmediatePropagation(): void;
| /** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
| stopPropagation(): void;
| readonly NONE: 0;
| readonly CAPTURING_PHASE: 1;
| readonly AT_TARGET: 2;
| readonly BUBBLING_PHASE: 3;
| }
|
| declare var Event: {
| prototype: Event;
| new(type: string, eventInitDict?: EventInit): Event;
| readonly NONE: 0;
| readonly CAPTURING_PHASE: 1;
| readonly AT_TARGET: 2;
| readonly BUBBLING_PHASE: 3;
| };
|
| interface EventListener {
| (evt: Event): void;
| }
|
| interface EventListenerObject {
| handleEvent(object: Event): void;
| }
|
| interface EventSourceEventMap {
| "error": Event;
| "message": MessageEvent;
| "open": Event;
| }
|
| interface EventSource extends EventTarget {
| onerror: ((this: EventSource, ev: Event) => any) | null;
| onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
| onopen: ((this: EventSource, ev: Event) => any) | null;
| /** Returns the state of this EventSource object's connection. It can have the values described below. */
| readonly readyState: number;
| /** Returns the URL providing the event stream. */
| readonly url: string;
| /** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
| readonly withCredentials: boolean;
| /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
| close(): void;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSED: 2;
| addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var EventSource: {
| prototype: EventSource;
| new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSED: 2;
| };
|
| /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
| interface EventTarget {
| /**
| * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
| *
| * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
| *
| * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
| *
| * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
| *
| * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
| *
| * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
| *
| * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
| */
| addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
| /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
| dispatchEvent(event: Event): boolean;
| /** Removes the event listener in target's event listener list with the same type, callback, and options. */
| removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
| }
|
| declare var EventTarget: {
| prototype: EventTarget;
| new(): EventTarget;
| };
|
| /** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
| interface ExtendableEvent extends Event {
| waitUntil(f: Promise<any>): void;
| }
|
| declare var ExtendableEvent: {
| prototype: ExtendableEvent;
| new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
| };
|
| /** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */
| interface ExtendableMessageEvent extends ExtendableEvent {
| readonly data: any;
| readonly lastEventId: string;
| readonly origin: string;
| readonly ports: ReadonlyArray<MessagePort>;
| readonly source: Client | ServiceWorker | MessagePort | null;
| }
|
| declare var ExtendableMessageEvent: {
| prototype: ExtendableMessageEvent;
| new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
| };
|
| /** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
| interface FetchEvent extends ExtendableEvent {
| readonly clientId: string;
| readonly handled: Promise<undefined>;
| readonly preloadResponse: Promise<any>;
| readonly request: Request;
| readonly resultingClientId: string;
| respondWith(r: Response | PromiseLike<Response>): void;
| }
|
| declare var FetchEvent: {
| prototype: FetchEvent;
| new(type: string, eventInitDict: FetchEventInit): FetchEvent;
| };
|
| /** Provides information about files and allows JavaScript in a web page to access their content. */
| interface File extends Blob {
| readonly lastModified: number;
| readonly name: string;
| readonly webkitRelativePath: string;
| }
|
| declare var File: {
| prototype: File;
| new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
| };
|
| /** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
| interface FileList {
| readonly length: number;
| item(index: number): File | null;
| [index: number]: File;
| }
|
| declare var FileList: {
| prototype: FileList;
| new(): FileList;
| };
|
| interface FileReaderEventMap {
| "abort": ProgressEvent<FileReader>;
| "error": ProgressEvent<FileReader>;
| "load": ProgressEvent<FileReader>;
| "loadend": ProgressEvent<FileReader>;
| "loadstart": ProgressEvent<FileReader>;
| "progress": ProgressEvent<FileReader>;
| }
|
| /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */
| interface FileReader extends EventTarget {
| readonly error: DOMException | null;
| onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
| readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
| readonly result: string | ArrayBuffer | null;
| abort(): void;
| readAsArrayBuffer(blob: Blob): void;
| readAsBinaryString(blob: Blob): void;
| readAsDataURL(blob: Blob): void;
| readAsText(blob: Blob, encoding?: string): void;
| readonly EMPTY: 0;
| readonly LOADING: 1;
| readonly DONE: 2;
| addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var FileReader: {
| prototype: FileReader;
| new(): FileReader;
| readonly EMPTY: 0;
| readonly LOADING: 1;
| readonly DONE: 2;
| };
|
| /** Allows to read File or Blob objects in a synchronous way. */
| interface FileReaderSync {
| readAsArrayBuffer(blob: Blob): ArrayBuffer;
| /** @deprecated */
| readAsBinaryString(blob: Blob): string;
| readAsDataURL(blob: Blob): string;
| readAsText(blob: Blob, encoding?: string): string;
| }
|
| declare var FileReaderSync: {
| prototype: FileReaderSync;
| new(): FileReaderSync;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemDirectoryHandle extends FileSystemHandle {
| readonly kind: "directory";
| getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
| getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
| removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
| resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
| }
|
| declare var FileSystemDirectoryHandle: {
| prototype: FileSystemDirectoryHandle;
| new(): FileSystemDirectoryHandle;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemFileHandle extends FileSystemHandle {
| readonly kind: "file";
| createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
| getFile(): Promise<File>;
| }
|
| declare var FileSystemFileHandle: {
| prototype: FileSystemFileHandle;
| new(): FileSystemFileHandle;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemHandle {
| readonly kind: FileSystemHandleKind;
| readonly name: string;
| isSameEntry(other: FileSystemHandle): Promise<boolean>;
| }
|
| declare var FileSystemHandle: {
| prototype: FileSystemHandle;
| new(): FileSystemHandle;
| };
|
| /** Available only in secure contexts. */
| interface FileSystemSyncAccessHandle {
| close(): void;
| flush(): void;
| getSize(): number;
| read(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
| truncate(newSize: number): void;
| write(buffer: BufferSource, options?: FileSystemReadWriteOptions): number;
| }
|
| declare var FileSystemSyncAccessHandle: {
| prototype: FileSystemSyncAccessHandle;
| new(): FileSystemSyncAccessHandle;
| };
|
| interface FontFace {
| ascentOverride: string;
| descentOverride: string;
| display: FontDisplay;
| family: string;
| featureSettings: string;
| lineGapOverride: string;
| readonly loaded: Promise<FontFace>;
| readonly status: FontFaceLoadStatus;
| stretch: string;
| style: string;
| unicodeRange: string;
| variant: string;
| weight: string;
| load(): Promise<FontFace>;
| }
|
| declare var FontFace: {
| prototype: FontFace;
| new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
| };
|
| interface FontFaceSetEventMap {
| "loading": Event;
| "loadingdone": Event;
| "loadingerror": Event;
| }
|
| interface FontFaceSet extends EventTarget {
| onloading: ((this: FontFaceSet, ev: Event) => any) | null;
| onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
| onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
| readonly ready: Promise<FontFaceSet>;
| readonly status: FontFaceSetLoadStatus;
| check(font: string, text?: string): boolean;
| load(font: string, text?: string): Promise<FontFace[]>;
| forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
| addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var FontFaceSet: {
| prototype: FontFaceSet;
| new(initialFaces: FontFace[]): FontFaceSet;
| };
|
| interface FontFaceSetLoadEvent extends Event {
| readonly fontfaces: ReadonlyArray<FontFace>;
| }
|
| declare var FontFaceSetLoadEvent: {
| prototype: FontFaceSetLoadEvent;
| new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
| };
|
| interface FontFaceSource {
| readonly fonts: FontFaceSet;
| }
|
| /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
| interface FormData {
| append(name: string, value: string | Blob, fileName?: string): void;
| delete(name: string): void;
| get(name: string): FormDataEntryValue | null;
| getAll(name: string): FormDataEntryValue[];
| has(name: string): boolean;
| set(name: string, value: string | Blob, fileName?: string): void;
| forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
| }
|
| declare var FormData: {
| prototype: FormData;
| new(): FormData;
| };
|
| interface GenericTransformStream {
| readonly readable: ReadableStream;
| readonly writable: WritableStream;
| }
|
| /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
| interface Headers {
| append(name: string, value: string): void;
| delete(name: string): void;
| get(name: string): string | null;
| has(name: string): boolean;
| set(name: string, value: string): void;
| forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
| }
|
| declare var Headers: {
| prototype: Headers;
| new(init?: HeadersInit): Headers;
| };
|
| /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
| interface IDBCursor {
| /** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
| readonly direction: IDBCursorDirection;
| /** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
| readonly key: IDBValidKey;
| /** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
| readonly primaryKey: IDBValidKey;
| readonly request: IDBRequest;
| /** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
| readonly source: IDBObjectStore | IDBIndex;
| /** Advances the cursor through the next count records in range. */
| advance(count: number): void;
| /** Advances the cursor to the next record in range. */
| continue(key?: IDBValidKey): void;
| /** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
| continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
| /**
| * Delete the record pointed at by the cursor with a new value.
| *
| * If successful, request's result will be undefined.
| */
| delete(): IDBRequest<undefined>;
| /**
| * Updated the record pointed at by the cursor with a new value.
| *
| * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
| *
| * If successful, request's result will be the record's key.
| */
| update(value: any): IDBRequest<IDBValidKey>;
| }
|
| declare var IDBCursor: {
| prototype: IDBCursor;
| new(): IDBCursor;
| };
|
| /** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
| interface IDBCursorWithValue extends IDBCursor {
| /** Returns the cursor's current value. */
| readonly value: any;
| }
|
| declare var IDBCursorWithValue: {
| prototype: IDBCursorWithValue;
| new(): IDBCursorWithValue;
| };
|
| interface IDBDatabaseEventMap {
| "abort": Event;
| "close": Event;
| "error": Event;
| "versionchange": IDBVersionChangeEvent;
| }
|
| /** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
| interface IDBDatabase extends EventTarget {
| /** Returns the name of the database. */
| readonly name: string;
| /** Returns a list of the names of object stores in the database. */
| readonly objectStoreNames: DOMStringList;
| onabort: ((this: IDBDatabase, ev: Event) => any) | null;
| onclose: ((this: IDBDatabase, ev: Event) => any) | null;
| onerror: ((this: IDBDatabase, ev: Event) => any) | null;
| onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
| /** Returns the version of the database. */
| readonly version: number;
| /** Closes the connection once all running transactions have finished. */
| close(): void;
| /**
| * Creates a new object store with the given name and options and returns a new IDBObjectStore.
| *
| * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
| /**
| * Deletes the object store with the given name.
| *
| * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| deleteObjectStore(name: string): void;
| /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
| transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
| addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBDatabase: {
| prototype: IDBDatabase;
| new(): IDBDatabase;
| };
|
| /** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
| interface IDBFactory {
| /**
| * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
| *
| * Throws a "DataError" DOMException if either input is not a valid key.
| */
| cmp(first: any, second: any): number;
| databases(): Promise<IDBDatabaseInfo[]>;
| /** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
| deleteDatabase(name: string): IDBOpenDBRequest;
| /** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
| open(name: string, version?: number): IDBOpenDBRequest;
| }
|
| declare var IDBFactory: {
| prototype: IDBFactory;
| new(): IDBFactory;
| };
|
| /** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
| interface IDBIndex {
| readonly keyPath: string | string[];
| readonly multiEntry: boolean;
| /** Returns the name of the index. */
| name: string;
| /** Returns the IDBObjectStore the index belongs to. */
| readonly objectStore: IDBObjectStore;
| readonly unique: boolean;
| /**
| * Retrieves the number of records matching the given key or key range in query.
| *
| * If successful, request's result will be the count.
| */
| count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
| /**
| * Retrieves the value of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the value, or undefined if there was no matching record.
| */
| get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
| /**
| * Retrieves the values of the records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the values.
| */
| getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
| /**
| * Retrieves the keys of records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the keys.
| */
| getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
| /**
| * Retrieves the key of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the key, or undefined if there was no matching record.
| */
| getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
| /**
| * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
| *
| * If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
| */
| openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
| /**
| * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
| *
| * If successful, request's result will be an IDBCursor, or null if there were no matching records.
| */
| openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
| }
|
| declare var IDBIndex: {
| prototype: IDBIndex;
| new(): IDBIndex;
| };
|
| /** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
| interface IDBKeyRange {
| /** Returns lower bound, or undefined if none. */
| readonly lower: any;
| /** Returns true if the lower open flag is set, and false otherwise. */
| readonly lowerOpen: boolean;
| /** Returns upper bound, or undefined if none. */
| readonly upper: any;
| /** Returns true if the upper open flag is set, and false otherwise. */
| readonly upperOpen: boolean;
| /** Returns true if key is included in the range, and false otherwise. */
| includes(key: any): boolean;
| }
|
| declare var IDBKeyRange: {
| prototype: IDBKeyRange;
| new(): IDBKeyRange;
| /** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
| bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
| /** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
| lowerBound(lower: any, open?: boolean): IDBKeyRange;
| /** Returns a new IDBKeyRange spanning only key. */
| only(value: any): IDBKeyRange;
| /** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
| upperBound(upper: any, open?: boolean): IDBKeyRange;
| };
|
| /** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
| interface IDBObjectStore {
| /** Returns true if the store has a key generator, and false otherwise. */
| readonly autoIncrement: boolean;
| /** Returns a list of the names of indexes in the store. */
| readonly indexNames: DOMStringList;
| /** Returns the key path of the store, or null if none. */
| readonly keyPath: string | string[];
| /** Returns the name of the store. */
| name: string;
| /** Returns the associated transaction. */
| readonly transaction: IDBTransaction;
| /**
| * Adds or updates a record in store with the given value and key.
| *
| * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
| *
| * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
| *
| * If successful, request's result will be the record's key.
| */
| add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
| /**
| * Deletes all records in store.
| *
| * If successful, request's result will be undefined.
| */
| clear(): IDBRequest<undefined>;
| /**
| * Retrieves the number of records matching the given key or key range in query.
| *
| * If successful, request's result will be the count.
| */
| count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
| /**
| * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
| /**
| * Deletes records in store with the given key or in the given key range in query.
| *
| * If successful, request's result will be undefined.
| */
| delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
| /**
| * Deletes the index in store with the given name.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| deleteIndex(name: string): void;
| /**
| * Retrieves the value of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the value, or undefined if there was no matching record.
| */
| get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
| /**
| * Retrieves the values of the records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the values.
| */
| getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
| /**
| * Retrieves the keys of records matching the given key or key range in query (up to count if given).
| *
| * If successful, request's result will be an Array of the keys.
| */
| getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
| /**
| * Retrieves the key of the first record matching the given key or key range in query.
| *
| * If successful, request's result will be the key, or undefined if there was no matching record.
| */
| getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
| index(name: string): IDBIndex;
| /**
| * Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
| *
| * If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
| */
| openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
| /**
| * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
| *
| * If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
| */
| openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
| /**
| * Adds or updates a record in store with the given value and key.
| *
| * If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
| *
| * If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
| *
| * If successful, request's result will be the record's key.
| */
| put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
| }
|
| declare var IDBObjectStore: {
| prototype: IDBObjectStore;
| new(): IDBObjectStore;
| };
|
| interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
| "blocked": IDBVersionChangeEvent;
| "upgradeneeded": IDBVersionChangeEvent;
| }
|
| /** Also inherits methods from its parents IDBRequest and EventTarget. */
| interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
| onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
| onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
| addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBOpenDBRequest: {
| prototype: IDBOpenDBRequest;
| new(): IDBOpenDBRequest;
| };
|
| interface IDBRequestEventMap {
| "error": Event;
| "success": Event;
| }
|
| /** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
| interface IDBRequest<T = any> extends EventTarget {
| /** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
| readonly error: DOMException | null;
| onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
| onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
| /** Returns "pending" until a request is complete, then returns "done". */
| readonly readyState: IDBRequestReadyState;
| /** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
| readonly result: T;
| /** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
| readonly source: IDBObjectStore | IDBIndex | IDBCursor;
| /** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
| readonly transaction: IDBTransaction | null;
| addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBRequest: {
| prototype: IDBRequest;
| new(): IDBRequest;
| };
|
| interface IDBTransactionEventMap {
| "abort": Event;
| "complete": Event;
| "error": Event;
| }
|
| interface IDBTransaction extends EventTarget {
| /** Returns the transaction's connection. */
| readonly db: IDBDatabase;
| readonly durability: IDBTransactionDurability;
| /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
| readonly error: DOMException | null;
| /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
| readonly mode: IDBTransactionMode;
| /** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
| readonly objectStoreNames: DOMStringList;
| onabort: ((this: IDBTransaction, ev: Event) => any) | null;
| oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
| onerror: ((this: IDBTransaction, ev: Event) => any) | null;
| /** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
| abort(): void;
| commit(): void;
| /** Returns an IDBObjectStore in the transaction's scope. */
| objectStore(name: string): IDBObjectStore;
| addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var IDBTransaction: {
| prototype: IDBTransaction;
| new(): IDBTransaction;
| };
|
| /** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
| interface IDBVersionChangeEvent extends Event {
| readonly newVersion: number | null;
| readonly oldVersion: number;
| }
|
| declare var IDBVersionChangeEvent: {
| prototype: IDBVersionChangeEvent;
| new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
| };
|
| interface ImageBitmap {
| /** Returns the intrinsic height of the image, in CSS pixels. */
| readonly height: number;
| /** Returns the intrinsic width of the image, in CSS pixels. */
| readonly width: number;
| /** Releases imageBitmap's underlying bitmap data. */
| close(): void;
| }
|
| declare var ImageBitmap: {
| prototype: ImageBitmap;
| new(): ImageBitmap;
| };
|
| interface ImageBitmapRenderingContext {
| /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
| transferFromImageBitmap(bitmap: ImageBitmap | null): void;
| }
|
| declare var ImageBitmapRenderingContext: {
| prototype: ImageBitmapRenderingContext;
| new(): ImageBitmapRenderingContext;
| };
|
| /** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
| interface ImageData {
| readonly colorSpace: PredefinedColorSpace;
| /** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
| readonly data: Uint8ClampedArray;
| /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
| readonly height: number;
| /** Returns the actual dimensions of the data in the ImageData object, in pixels. */
| readonly width: number;
| }
|
| declare var ImageData: {
| prototype: ImageData;
| new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
| new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
| };
|
| interface KHR_parallel_shader_compile {
| readonly COMPLETION_STATUS_KHR: 0x91B1;
| }
|
| /** Available only in secure contexts. */
| interface Lock {
| readonly mode: LockMode;
| readonly name: string;
| }
|
| declare var Lock: {
| prototype: Lock;
| new(): Lock;
| };
|
| /** Available only in secure contexts. */
| interface LockManager {
| query(): Promise<LockManagerSnapshot>;
| request(name: string, callback: LockGrantedCallback): Promise<any>;
| request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
| }
|
| declare var LockManager: {
| prototype: LockManager;
| new(): LockManager;
| };
|
| interface MediaCapabilities {
| decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
| encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
| }
|
| declare var MediaCapabilities: {
| prototype: MediaCapabilities;
| new(): MediaCapabilities;
| };
|
| /** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
| interface MessageChannel {
| /** Returns the first MessagePort object. */
| readonly port1: MessagePort;
| /** Returns the second MessagePort object. */
| readonly port2: MessagePort;
| }
|
| declare var MessageChannel: {
| prototype: MessageChannel;
| new(): MessageChannel;
| };
|
| /** A message received by a target object. */
| interface MessageEvent<T = any> extends Event {
| /** Returns the data of the message. */
| readonly data: T;
| /** Returns the last event ID string, for server-sent events. */
| readonly lastEventId: string;
| /** Returns the origin of the message, for server-sent events and cross-document messaging. */
| readonly origin: string;
| /** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
| readonly ports: ReadonlyArray<MessagePort>;
| /** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
| readonly source: MessageEventSource | null;
| /** @deprecated */
| initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
| }
|
| declare var MessageEvent: {
| prototype: MessageEvent;
| new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
| };
|
| interface MessagePortEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
| interface MessagePort extends EventTarget {
| onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
| /** Disconnects the port, so that it is no longer active. */
| close(): void;
| /**
| * Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
| *
| * Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
| */
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| /** Begins dispatching messages received on the port. */
| start(): void;
| addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var MessagePort: {
| prototype: MessagePort;
| new(): MessagePort;
| };
|
| /** Available only in secure contexts. */
| interface NavigationPreloadManager {
| disable(): Promise<void>;
| enable(): Promise<void>;
| getState(): Promise<NavigationPreloadState>;
| setHeaderValue(value: string): Promise<void>;
| }
|
| declare var NavigationPreloadManager: {
| prototype: NavigationPreloadManager;
| new(): NavigationPreloadManager;
| };
|
| interface NavigatorConcurrentHardware {
| readonly hardwareConcurrency: number;
| }
|
| interface NavigatorID {
| /** @deprecated */
| readonly appCodeName: string;
| /** @deprecated */
| readonly appName: string;
| /** @deprecated */
| readonly appVersion: string;
| /** @deprecated */
| readonly platform: string;
| /** @deprecated */
| readonly product: string;
| readonly userAgent: string;
| }
|
| interface NavigatorLanguage {
| readonly language: string;
| readonly languages: ReadonlyArray<string>;
| }
|
| /** Available only in secure contexts. */
| interface NavigatorLocks {
| readonly locks: LockManager;
| }
|
| interface NavigatorOnLine {
| readonly onLine: boolean;
| }
|
| /** Available only in secure contexts. */
| interface NavigatorStorage {
| readonly storage: StorageManager;
| }
|
| interface NotificationEventMap {
| "click": Event;
| "close": Event;
| "error": Event;
| "show": Event;
| }
|
| /** This Notifications API interface is used to configure and display desktop notifications to the user. */
| interface Notification extends EventTarget {
| readonly body: string;
| readonly data: any;
| readonly dir: NotificationDirection;
| readonly icon: string;
| readonly lang: string;
| onclick: ((this: Notification, ev: Event) => any) | null;
| onclose: ((this: Notification, ev: Event) => any) | null;
| onerror: ((this: Notification, ev: Event) => any) | null;
| onshow: ((this: Notification, ev: Event) => any) | null;
| readonly tag: string;
| readonly title: string;
| close(): void;
| addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Notification: {
| prototype: Notification;
| new(title: string, options?: NotificationOptions): Notification;
| readonly permission: NotificationPermission;
| };
|
| /** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
| interface NotificationEvent extends ExtendableEvent {
| readonly action: string;
| readonly notification: Notification;
| }
|
| declare var NotificationEvent: {
| prototype: NotificationEvent;
| new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
| };
|
| interface OES_draw_buffers_indexed {
| blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
| blendEquationiOES(buf: GLuint, mode: GLenum): void;
| blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
| blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
| colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
| disableiOES(target: GLenum, index: GLuint): void;
| enableiOES(target: GLenum, index: GLuint): void;
| }
|
| /** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
| interface OES_element_index_uint {
| }
|
| interface OES_fbo_render_mipmap {
| }
|
| /** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
| interface OES_standard_derivatives {
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
| }
|
| /** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
| interface OES_texture_float {
| }
|
| /** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
| interface OES_texture_float_linear {
| }
|
| /** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
| interface OES_texture_half_float {
| readonly HALF_FLOAT_OES: 0x8D61;
| }
|
| /** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
| interface OES_texture_half_float_linear {
| }
|
| interface OES_vertex_array_object {
| bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
| createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
| deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
| isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
| readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
| }
|
| interface OVR_multiview2 {
| framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
| readonly MAX_VIEWS_OVR: 0x9631;
| readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
| }
|
| interface OffscreenCanvasEventMap {
| "contextlost": Event;
| "contextrestored": Event;
| }
|
| interface OffscreenCanvas extends EventTarget {
| /**
| * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
| *
| * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
| */
| height: number;
| oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
| oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
| /**
| * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
| *
| * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
| */
| width: number;
| /**
| * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
| *
| * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
| */
| convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
| /**
| * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
| *
| * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
| *
| * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
| */
| getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
| getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
| getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
| getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
| getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
| /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
| transferToImageBitmap(): ImageBitmap;
| addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var OffscreenCanvas: {
| prototype: OffscreenCanvas;
| new(width: number, height: number): OffscreenCanvas;
| };
|
| interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
| readonly canvas: OffscreenCanvas;
| commit(): void;
| }
|
| declare var OffscreenCanvasRenderingContext2D: {
| prototype: OffscreenCanvasRenderingContext2D;
| new(): OffscreenCanvasRenderingContext2D;
| };
|
| /** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
| interface Path2D extends CanvasPath {
| /** Adds to the path the path given by the argument. */
| addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
| }
|
| declare var Path2D: {
| prototype: Path2D;
| new(path?: Path2D | string): Path2D;
| };
|
| interface PerformanceEventMap {
| "resourcetimingbufferfull": Event;
| }
|
| /** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
| interface Performance extends EventTarget {
| onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
| readonly timeOrigin: DOMHighResTimeStamp;
| clearMarks(markName?: string): void;
| clearMeasures(measureName?: string): void;
| clearResourceTimings(): void;
| getEntries(): PerformanceEntryList;
| getEntriesByName(name: string, type?: string): PerformanceEntryList;
| getEntriesByType(type: string): PerformanceEntryList;
| mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
| measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
| now(): DOMHighResTimeStamp;
| setResourceTimingBufferSize(maxSize: number): void;
| toJSON(): any;
| addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Performance: {
| prototype: Performance;
| new(): Performance;
| };
|
| /** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
| interface PerformanceEntry {
| readonly duration: DOMHighResTimeStamp;
| readonly entryType: string;
| readonly name: string;
| readonly startTime: DOMHighResTimeStamp;
| toJSON(): any;
| }
|
| declare var PerformanceEntry: {
| prototype: PerformanceEntry;
| new(): PerformanceEntry;
| };
|
| /** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
| interface PerformanceMark extends PerformanceEntry {
| readonly detail: any;
| }
|
| declare var PerformanceMark: {
| prototype: PerformanceMark;
| new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
| };
|
| /** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
| interface PerformanceMeasure extends PerformanceEntry {
| readonly detail: any;
| }
|
| declare var PerformanceMeasure: {
| prototype: PerformanceMeasure;
| new(): PerformanceMeasure;
| };
|
| interface PerformanceObserver {
| disconnect(): void;
| observe(options?: PerformanceObserverInit): void;
| takeRecords(): PerformanceEntryList;
| }
|
| declare var PerformanceObserver: {
| prototype: PerformanceObserver;
| new(callback: PerformanceObserverCallback): PerformanceObserver;
| readonly supportedEntryTypes: ReadonlyArray<string>;
| };
|
| interface PerformanceObserverEntryList {
| getEntries(): PerformanceEntryList;
| getEntriesByName(name: string, type?: string): PerformanceEntryList;
| getEntriesByType(type: string): PerformanceEntryList;
| }
|
| declare var PerformanceObserverEntryList: {
| prototype: PerformanceObserverEntryList;
| new(): PerformanceObserverEntryList;
| };
|
| /** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
| interface PerformanceResourceTiming extends PerformanceEntry {
| readonly connectEnd: DOMHighResTimeStamp;
| readonly connectStart: DOMHighResTimeStamp;
| readonly decodedBodySize: number;
| readonly domainLookupEnd: DOMHighResTimeStamp;
| readonly domainLookupStart: DOMHighResTimeStamp;
| readonly encodedBodySize: number;
| readonly fetchStart: DOMHighResTimeStamp;
| readonly initiatorType: string;
| readonly nextHopProtocol: string;
| readonly redirectEnd: DOMHighResTimeStamp;
| readonly redirectStart: DOMHighResTimeStamp;
| readonly requestStart: DOMHighResTimeStamp;
| readonly responseEnd: DOMHighResTimeStamp;
| readonly responseStart: DOMHighResTimeStamp;
| readonly secureConnectionStart: DOMHighResTimeStamp;
| readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
| readonly transferSize: number;
| readonly workerStart: DOMHighResTimeStamp;
| toJSON(): any;
| }
|
| declare var PerformanceResourceTiming: {
| prototype: PerformanceResourceTiming;
| new(): PerformanceResourceTiming;
| };
|
| interface PerformanceServerTiming {
| readonly description: string;
| readonly duration: DOMHighResTimeStamp;
| readonly name: string;
| toJSON(): any;
| }
|
| declare var PerformanceServerTiming: {
| prototype: PerformanceServerTiming;
| new(): PerformanceServerTiming;
| };
|
| interface PermissionStatusEventMap {
| "change": Event;
| }
|
| interface PermissionStatus extends EventTarget {
| readonly name: string;
| onchange: ((this: PermissionStatus, ev: Event) => any) | null;
| readonly state: PermissionState;
| addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var PermissionStatus: {
| prototype: PermissionStatus;
| new(): PermissionStatus;
| };
|
| interface Permissions {
| query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
| }
|
| declare var Permissions: {
| prototype: Permissions;
| new(): Permissions;
| };
|
| /** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
| interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
| readonly lengthComputable: boolean;
| readonly loaded: number;
| readonly target: T | null;
| readonly total: number;
| }
|
| declare var ProgressEvent: {
| prototype: ProgressEvent;
| new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
| };
|
| interface PromiseRejectionEvent extends Event {
| readonly promise: Promise<any>;
| readonly reason: any;
| }
|
| declare var PromiseRejectionEvent: {
| prototype: PromiseRejectionEvent;
| new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
| };
|
| /**
| * This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
| * Available only in secure contexts.
| */
| interface PushEvent extends ExtendableEvent {
| readonly data: PushMessageData | null;
| }
|
| declare var PushEvent: {
| prototype: PushEvent;
| new(type: string, eventInitDict?: PushEventInit): PushEvent;
| };
|
| /**
| * This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
| * Available only in secure contexts.
| */
| interface PushManager {
| getSubscription(): Promise<PushSubscription | null>;
| permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
| subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
| }
|
| declare var PushManager: {
| prototype: PushManager;
| new(): PushManager;
| readonly supportedContentEncodings: ReadonlyArray<string>;
| };
|
| /**
| * This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
| * Available only in secure contexts.
| */
| interface PushMessageData {
| arrayBuffer(): ArrayBuffer;
| blob(): Blob;
| json(): any;
| text(): string;
| }
|
| declare var PushMessageData: {
| prototype: PushMessageData;
| new(): PushMessageData;
| };
|
| /**
| * This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
| * Available only in secure contexts.
| */
| interface PushSubscription {
| readonly endpoint: string;
| readonly expirationTime: EpochTimeStamp | null;
| readonly options: PushSubscriptionOptions;
| getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
| toJSON(): PushSubscriptionJSON;
| unsubscribe(): Promise<boolean>;
| }
|
| declare var PushSubscription: {
| prototype: PushSubscription;
| new(): PushSubscription;
| };
|
| /** Available only in secure contexts. */
| interface PushSubscriptionOptions {
| readonly applicationServerKey: ArrayBuffer | null;
| readonly userVisibleOnly: boolean;
| }
|
| declare var PushSubscriptionOptions: {
| prototype: PushSubscriptionOptions;
| new(): PushSubscriptionOptions;
| };
|
| interface RTCEncodedAudioFrame {
| data: ArrayBuffer;
| readonly timestamp: number;
| getMetadata(): RTCEncodedAudioFrameMetadata;
| }
|
| declare var RTCEncodedAudioFrame: {
| prototype: RTCEncodedAudioFrame;
| new(): RTCEncodedAudioFrame;
| };
|
| interface RTCEncodedVideoFrame {
| data: ArrayBuffer;
| readonly timestamp: number;
| readonly type: RTCEncodedVideoFrameType;
| getMetadata(): RTCEncodedVideoFrameMetadata;
| }
|
| declare var RTCEncodedVideoFrame: {
| prototype: RTCEncodedVideoFrame;
| new(): RTCEncodedVideoFrame;
| };
|
| interface ReadableByteStreamController {
| readonly byobRequest: ReadableStreamBYOBRequest | null;
| readonly desiredSize: number | null;
| close(): void;
| enqueue(chunk: ArrayBufferView): void;
| error(e?: any): void;
| }
|
| declare var ReadableByteStreamController: {
| prototype: ReadableByteStreamController;
| new(): ReadableByteStreamController;
| };
|
| /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
| interface ReadableStream<R = any> {
| readonly locked: boolean;
| cancel(reason?: any): Promise<void>;
| getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
| getReader(): ReadableStreamDefaultReader<R>;
| getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
| pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
| pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
| tee(): [ReadableStream<R>, ReadableStream<R>];
| }
|
| declare var ReadableStream: {
| prototype: ReadableStream;
| new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
| new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
| new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
| };
|
| interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
| read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
| releaseLock(): void;
| }
|
| declare var ReadableStreamBYOBReader: {
| prototype: ReadableStreamBYOBReader;
| new(stream: ReadableStream): ReadableStreamBYOBReader;
| };
|
| interface ReadableStreamBYOBRequest {
| readonly view: ArrayBufferView | null;
| respond(bytesWritten: number): void;
| respondWithNewView(view: ArrayBufferView): void;
| }
|
| declare var ReadableStreamBYOBRequest: {
| prototype: ReadableStreamBYOBRequest;
| new(): ReadableStreamBYOBRequest;
| };
|
| interface ReadableStreamDefaultController<R = any> {
| readonly desiredSize: number | null;
| close(): void;
| enqueue(chunk?: R): void;
| error(e?: any): void;
| }
|
| declare var ReadableStreamDefaultController: {
| prototype: ReadableStreamDefaultController;
| new(): ReadableStreamDefaultController;
| };
|
| interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
| read(): Promise<ReadableStreamReadResult<R>>;
| releaseLock(): void;
| }
|
| declare var ReadableStreamDefaultReader: {
| prototype: ReadableStreamDefaultReader;
| new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
| };
|
| interface ReadableStreamGenericReader {
| readonly closed: Promise<undefined>;
| cancel(reason?: any): Promise<void>;
| }
|
| /** This Fetch API interface represents a resource request. */
| interface Request extends Body {
| /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
| readonly cache: RequestCache;
| /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
| readonly credentials: RequestCredentials;
| /** Returns the kind of resource requested by request, e.g., "document" or "script". */
| readonly destination: RequestDestination;
| /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
| readonly headers: Headers;
| /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
| readonly integrity: string;
| /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
| readonly keepalive: boolean;
| /** Returns request's HTTP method, which is "GET" by default. */
| readonly method: string;
| /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
| readonly mode: RequestMode;
| /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
| readonly redirect: RequestRedirect;
| /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
| readonly referrer: string;
| /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
| readonly referrerPolicy: ReferrerPolicy;
| /** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
| readonly signal: AbortSignal;
| /** Returns the URL of request as a string. */
| readonly url: string;
| clone(): Request;
| }
|
| declare var Request: {
| prototype: Request;
| new(input: RequestInfo | URL, init?: RequestInit): Request;
| };
|
| /** This Fetch API interface represents the response to a request. */
| interface Response extends Body {
| readonly headers: Headers;
| readonly ok: boolean;
| readonly redirected: boolean;
| readonly status: number;
| readonly statusText: string;
| readonly type: ResponseType;
| readonly url: string;
| clone(): Response;
| }
|
| declare var Response: {
| prototype: Response;
| new(body?: BodyInit | null, init?: ResponseInit): Response;
| error(): Response;
| redirect(url: string | URL, status?: number): Response;
| };
|
| /** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
| interface SecurityPolicyViolationEvent extends Event {
| readonly blockedURI: string;
| readonly columnNumber: number;
| readonly disposition: SecurityPolicyViolationEventDisposition;
| readonly documentURI: string;
| readonly effectiveDirective: string;
| readonly lineNumber: number;
| readonly originalPolicy: string;
| readonly referrer: string;
| readonly sample: string;
| readonly sourceFile: string;
| readonly statusCode: number;
| readonly violatedDirective: string;
| }
|
| declare var SecurityPolicyViolationEvent: {
| prototype: SecurityPolicyViolationEvent;
| new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
| };
|
| interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
| "statechange": Event;
| }
|
| /**
| * This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
| * Available only in secure contexts.
| */
| interface ServiceWorker extends EventTarget, AbstractWorker {
| onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
| readonly scriptURL: string;
| readonly state: ServiceWorkerState;
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorker: {
| prototype: ServiceWorker;
| new(): ServiceWorker;
| };
|
| interface ServiceWorkerContainerEventMap {
| "controllerchange": Event;
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /**
| * The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
| * Available only in secure contexts.
| */
| interface ServiceWorkerContainer extends EventTarget {
| readonly controller: ServiceWorker | null;
| oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
| onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
| readonly ready: Promise<ServiceWorkerRegistration>;
| getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
| getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
| register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
| startMessages(): void;
| addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorkerContainer: {
| prototype: ServiceWorkerContainer;
| new(): ServiceWorkerContainer;
| };
|
| interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
| "activate": ExtendableEvent;
| "fetch": FetchEvent;
| "install": ExtendableEvent;
| "message": ExtendableMessageEvent;
| "messageerror": MessageEvent;
| "notificationclick": NotificationEvent;
| "notificationclose": NotificationEvent;
| "push": PushEvent;
| "pushsubscriptionchange": Event;
| }
|
| /** This ServiceWorker API interface represents the global execution context of a service worker. */
| interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
| readonly clients: Clients;
| onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
| onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
| oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
| onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
| onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
| onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
| onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
| onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
| onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
| readonly registration: ServiceWorkerRegistration;
| readonly serviceWorker: ServiceWorker;
| skipWaiting(): Promise<void>;
| addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorkerGlobalScope: {
| prototype: ServiceWorkerGlobalScope;
| new(): ServiceWorkerGlobalScope;
| };
|
| interface ServiceWorkerRegistrationEventMap {
| "updatefound": Event;
| }
|
| /**
| * This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
| * Available only in secure contexts.
| */
| interface ServiceWorkerRegistration extends EventTarget {
| readonly active: ServiceWorker | null;
| readonly installing: ServiceWorker | null;
| readonly navigationPreload: NavigationPreloadManager;
| onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
| readonly pushManager: PushManager;
| readonly scope: string;
| readonly updateViaCache: ServiceWorkerUpdateViaCache;
| readonly waiting: ServiceWorker | null;
| getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
| showNotification(title: string, options?: NotificationOptions): Promise<void>;
| unregister(): Promise<boolean>;
| update(): Promise<void>;
| addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var ServiceWorkerRegistration: {
| prototype: ServiceWorkerRegistration;
| new(): ServiceWorkerRegistration;
| };
|
| interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
| "connect": MessageEvent;
| }
|
| interface SharedWorkerGlobalScope extends WorkerGlobalScope {
| /** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
| readonly name: string;
| onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
| /** Aborts sharedWorkerGlobal. */
| close(): void;
| addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var SharedWorkerGlobalScope: {
| prototype: SharedWorkerGlobalScope;
| new(): SharedWorkerGlobalScope;
| };
|
| /** Available only in secure contexts. */
| interface StorageManager {
| estimate(): Promise<StorageEstimate>;
| getDirectory(): Promise<FileSystemDirectoryHandle>;
| persisted(): Promise<boolean>;
| }
|
| declare var StorageManager: {
| prototype: StorageManager;
| new(): StorageManager;
| };
|
| /**
| * This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
| * Available only in secure contexts.
| */
| interface SubtleCrypto {
| decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
| deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
| encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
| exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
| generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
| generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
| importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
| unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
| verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
| wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
| }
|
| declare var SubtleCrypto: {
| prototype: SubtleCrypto;
| new(): SubtleCrypto;
| };
|
| /** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
| interface TextDecoder extends TextDecoderCommon {
| /**
| * Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
| *
| * \`\`\`
| * var string = "", decoder = new TextDecoder(encoding), buffer;
| * while(buffer = next_chunk()) {
| * string += decoder.decode(buffer, {stream:true});
| * }
| * string += decoder.decode(); // end-of-queue
| * \`\`\`
| *
| * If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
| */
| decode(input?: BufferSource, options?: TextDecodeOptions): string;
| }
|
| declare var TextDecoder: {
| prototype: TextDecoder;
| new(label?: string, options?: TextDecoderOptions): TextDecoder;
| };
|
| interface TextDecoderCommon {
| /** Returns encoding's name, lowercased. */
| readonly encoding: string;
| /** Returns true if error mode is "fatal", otherwise false. */
| readonly fatal: boolean;
| /** Returns the value of ignore BOM. */
| readonly ignoreBOM: boolean;
| }
|
| interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
| readonly readable: ReadableStream<string>;
| readonly writable: WritableStream<BufferSource>;
| }
|
| declare var TextDecoderStream: {
| prototype: TextDecoderStream;
| new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
| };
|
| /** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
| interface TextEncoder extends TextEncoderCommon {
| /** Returns the result of running UTF-8's encoder. */
| encode(input?: string): Uint8Array;
| /** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
| encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
| }
|
| declare var TextEncoder: {
| prototype: TextEncoder;
| new(): TextEncoder;
| };
|
| interface TextEncoderCommon {
| /** Returns "utf-8". */
| readonly encoding: string;
| }
|
| interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
| readonly readable: ReadableStream<Uint8Array>;
| readonly writable: WritableStream<string>;
| }
|
| declare var TextEncoderStream: {
| prototype: TextEncoderStream;
| new(): TextEncoderStream;
| };
|
| /** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
| interface TextMetrics {
| /** Returns the measurement described below. */
| readonly actualBoundingBoxAscent: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxDescent: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxLeft: number;
| /** Returns the measurement described below. */
| readonly actualBoundingBoxRight: number;
| /** Returns the measurement described below. */
| readonly fontBoundingBoxAscent: number;
| /** Returns the measurement described below. */
| readonly fontBoundingBoxDescent: number;
| /** Returns the measurement described below. */
| readonly width: number;
| }
|
| declare var TextMetrics: {
| prototype: TextMetrics;
| new(): TextMetrics;
| };
|
| interface TransformStream<I = any, O = any> {
| readonly readable: ReadableStream<O>;
| readonly writable: WritableStream<I>;
| }
|
| declare var TransformStream: {
| prototype: TransformStream;
| new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
| };
|
| interface TransformStreamDefaultController<O = any> {
| readonly desiredSize: number | null;
| enqueue(chunk?: O): void;
| error(reason?: any): void;
| terminate(): void;
| }
|
| declare var TransformStreamDefaultController: {
| prototype: TransformStreamDefaultController;
| new(): TransformStreamDefaultController;
| };
|
| /** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
| interface URL {
| hash: string;
| host: string;
| hostname: string;
| href: string;
| toString(): string;
| readonly origin: string;
| password: string;
| pathname: string;
| port: string;
| protocol: string;
| search: string;
| readonly searchParams: URLSearchParams;
| username: string;
| toJSON(): string;
| }
|
| declare var URL: {
| prototype: URL;
| new(url: string | URL, base?: string | URL): URL;
| createObjectURL(obj: Blob): string;
| revokeObjectURL(url: string): void;
| };
|
| interface URLSearchParams {
| /** Appends a specified key/value pair as a new search parameter. */
| append(name: string, value: string): void;
| /** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
| delete(name: string): void;
| /** Returns the first value associated to the given search parameter. */
| get(name: string): string | null;
| /** Returns all the values association with a given search parameter. */
| getAll(name: string): string[];
| /** Returns a Boolean indicating if such a search parameter exists. */
| has(name: string): boolean;
| /** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
| set(name: string, value: string): void;
| sort(): void;
| /** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
| toString(): string;
| forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
| }
|
| declare var URLSearchParams: {
| prototype: URLSearchParams;
| new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
| toString(): string;
| };
|
| interface VideoColorSpace {
| readonly fullRange: boolean | null;
| readonly matrix: VideoMatrixCoefficients | null;
| readonly primaries: VideoColorPrimaries | null;
| readonly transfer: VideoTransferCharacteristics | null;
| toJSON(): VideoColorSpaceInit;
| }
|
| declare var VideoColorSpace: {
| prototype: VideoColorSpace;
| new(init?: VideoColorSpaceInit): VideoColorSpace;
| };
|
| interface WEBGL_color_buffer_float {
| readonly RGBA32F_EXT: 0x8814;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
| readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
| }
|
| interface WEBGL_compressed_texture_astc {
| getSupportedProfiles(): string[];
| readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
| readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
| readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
| readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
| readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
| readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
| readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
| readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
| readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
| readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
| readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
| readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
| readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
| readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
| readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
| }
|
| interface WEBGL_compressed_texture_etc {
| readonly COMPRESSED_R11_EAC: 0x9270;
| readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
| readonly COMPRESSED_RG11_EAC: 0x9272;
| readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
| readonly COMPRESSED_RGB8_ETC2: 0x9274;
| readonly COMPRESSED_SRGB8_ETC2: 0x9275;
| readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
| readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
| readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
| readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
| }
|
| interface WEBGL_compressed_texture_etc1 {
| readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
| }
|
| /** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
| interface WEBGL_compressed_texture_s3tc {
| readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
| readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
| readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
| readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
| }
|
| interface WEBGL_compressed_texture_s3tc_srgb {
| readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
| readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
| }
|
| /** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
| interface WEBGL_debug_renderer_info {
| readonly UNMASKED_VENDOR_WEBGL: 0x9245;
| readonly UNMASKED_RENDERER_WEBGL: 0x9246;
| }
|
| interface WEBGL_debug_shaders {
| getTranslatedShaderSource(shader: WebGLShader): string;
| }
|
| /** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
| interface WEBGL_depth_texture {
| readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
| }
|
| interface WEBGL_draw_buffers {
| drawBuffersWEBGL(buffers: GLenum[]): void;
| readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
| readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
| readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
| readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
| readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
| readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
| readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
| readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
| readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
| readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
| readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
| readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
| readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
| readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
| readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
| readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
| readonly DRAW_BUFFER0_WEBGL: 0x8825;
| readonly DRAW_BUFFER1_WEBGL: 0x8826;
| readonly DRAW_BUFFER2_WEBGL: 0x8827;
| readonly DRAW_BUFFER3_WEBGL: 0x8828;
| readonly DRAW_BUFFER4_WEBGL: 0x8829;
| readonly DRAW_BUFFER5_WEBGL: 0x882A;
| readonly DRAW_BUFFER6_WEBGL: 0x882B;
| readonly DRAW_BUFFER7_WEBGL: 0x882C;
| readonly DRAW_BUFFER8_WEBGL: 0x882D;
| readonly DRAW_BUFFER9_WEBGL: 0x882E;
| readonly DRAW_BUFFER10_WEBGL: 0x882F;
| readonly DRAW_BUFFER11_WEBGL: 0x8830;
| readonly DRAW_BUFFER12_WEBGL: 0x8831;
| readonly DRAW_BUFFER13_WEBGL: 0x8832;
| readonly DRAW_BUFFER14_WEBGL: 0x8833;
| readonly DRAW_BUFFER15_WEBGL: 0x8834;
| readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
| readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
| }
|
| interface WEBGL_lose_context {
| loseContext(): void;
| restoreContext(): void;
| }
|
| interface WEBGL_multi_draw {
| multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
| }
|
| interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
| }
|
| declare var WebGL2RenderingContext: {
| prototype: WebGL2RenderingContext;
| new(): WebGL2RenderingContext;
| readonly READ_BUFFER: 0x0C02;
| readonly UNPACK_ROW_LENGTH: 0x0CF2;
| readonly UNPACK_SKIP_ROWS: 0x0CF3;
| readonly UNPACK_SKIP_PIXELS: 0x0CF4;
| readonly PACK_ROW_LENGTH: 0x0D02;
| readonly PACK_SKIP_ROWS: 0x0D03;
| readonly PACK_SKIP_PIXELS: 0x0D04;
| readonly COLOR: 0x1800;
| readonly DEPTH: 0x1801;
| readonly STENCIL: 0x1802;
| readonly RED: 0x1903;
| readonly RGB8: 0x8051;
| readonly RGBA8: 0x8058;
| readonly RGB10_A2: 0x8059;
| readonly TEXTURE_BINDING_3D: 0x806A;
| readonly UNPACK_SKIP_IMAGES: 0x806D;
| readonly UNPACK_IMAGE_HEIGHT: 0x806E;
| readonly TEXTURE_3D: 0x806F;
| readonly TEXTURE_WRAP_R: 0x8072;
| readonly MAX_3D_TEXTURE_SIZE: 0x8073;
| readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
| readonly MAX_ELEMENTS_VERTICES: 0x80E8;
| readonly MAX_ELEMENTS_INDICES: 0x80E9;
| readonly TEXTURE_MIN_LOD: 0x813A;
| readonly TEXTURE_MAX_LOD: 0x813B;
| readonly TEXTURE_BASE_LEVEL: 0x813C;
| readonly TEXTURE_MAX_LEVEL: 0x813D;
| readonly MIN: 0x8007;
| readonly MAX: 0x8008;
| readonly DEPTH_COMPONENT24: 0x81A6;
| readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
| readonly TEXTURE_COMPARE_MODE: 0x884C;
| readonly TEXTURE_COMPARE_FUNC: 0x884D;
| readonly CURRENT_QUERY: 0x8865;
| readonly QUERY_RESULT: 0x8866;
| readonly QUERY_RESULT_AVAILABLE: 0x8867;
| readonly STREAM_READ: 0x88E1;
| readonly STREAM_COPY: 0x88E2;
| readonly STATIC_READ: 0x88E5;
| readonly STATIC_COPY: 0x88E6;
| readonly DYNAMIC_READ: 0x88E9;
| readonly DYNAMIC_COPY: 0x88EA;
| readonly MAX_DRAW_BUFFERS: 0x8824;
| readonly DRAW_BUFFER0: 0x8825;
| readonly DRAW_BUFFER1: 0x8826;
| readonly DRAW_BUFFER2: 0x8827;
| readonly DRAW_BUFFER3: 0x8828;
| readonly DRAW_BUFFER4: 0x8829;
| readonly DRAW_BUFFER5: 0x882A;
| readonly DRAW_BUFFER6: 0x882B;
| readonly DRAW_BUFFER7: 0x882C;
| readonly DRAW_BUFFER8: 0x882D;
| readonly DRAW_BUFFER9: 0x882E;
| readonly DRAW_BUFFER10: 0x882F;
| readonly DRAW_BUFFER11: 0x8830;
| readonly DRAW_BUFFER12: 0x8831;
| readonly DRAW_BUFFER13: 0x8832;
| readonly DRAW_BUFFER14: 0x8833;
| readonly DRAW_BUFFER15: 0x8834;
| readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
| readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
| readonly SAMPLER_3D: 0x8B5F;
| readonly SAMPLER_2D_SHADOW: 0x8B62;
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
| readonly PIXEL_PACK_BUFFER: 0x88EB;
| readonly PIXEL_UNPACK_BUFFER: 0x88EC;
| readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
| readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
| readonly FLOAT_MAT2x3: 0x8B65;
| readonly FLOAT_MAT2x4: 0x8B66;
| readonly FLOAT_MAT3x2: 0x8B67;
| readonly FLOAT_MAT3x4: 0x8B68;
| readonly FLOAT_MAT4x2: 0x8B69;
| readonly FLOAT_MAT4x3: 0x8B6A;
| readonly SRGB: 0x8C40;
| readonly SRGB8: 0x8C41;
| readonly SRGB8_ALPHA8: 0x8C43;
| readonly COMPARE_REF_TO_TEXTURE: 0x884E;
| readonly RGBA32F: 0x8814;
| readonly RGB32F: 0x8815;
| readonly RGBA16F: 0x881A;
| readonly RGB16F: 0x881B;
| readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
| readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
| readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
| readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
| readonly MAX_VARYING_COMPONENTS: 0x8B4B;
| readonly TEXTURE_2D_ARRAY: 0x8C1A;
| readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
| readonly R11F_G11F_B10F: 0x8C3A;
| readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
| readonly RGB9_E5: 0x8C3D;
| readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
| readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
| readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
| readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
| readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
| readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
| readonly RASTERIZER_DISCARD: 0x8C89;
| readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
| readonly INTERLEAVED_ATTRIBS: 0x8C8C;
| readonly SEPARATE_ATTRIBS: 0x8C8D;
| readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
| readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
| readonly RGBA32UI: 0x8D70;
| readonly RGB32UI: 0x8D71;
| readonly RGBA16UI: 0x8D76;
| readonly RGB16UI: 0x8D77;
| readonly RGBA8UI: 0x8D7C;
| readonly RGB8UI: 0x8D7D;
| readonly RGBA32I: 0x8D82;
| readonly RGB32I: 0x8D83;
| readonly RGBA16I: 0x8D88;
| readonly RGB16I: 0x8D89;
| readonly RGBA8I: 0x8D8E;
| readonly RGB8I: 0x8D8F;
| readonly RED_INTEGER: 0x8D94;
| readonly RGB_INTEGER: 0x8D98;
| readonly RGBA_INTEGER: 0x8D99;
| readonly SAMPLER_2D_ARRAY: 0x8DC1;
| readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
| readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
| readonly UNSIGNED_INT_VEC2: 0x8DC6;
| readonly UNSIGNED_INT_VEC3: 0x8DC7;
| readonly UNSIGNED_INT_VEC4: 0x8DC8;
| readonly INT_SAMPLER_2D: 0x8DCA;
| readonly INT_SAMPLER_3D: 0x8DCB;
| readonly INT_SAMPLER_CUBE: 0x8DCC;
| readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
| readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
| readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
| readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
| readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
| readonly DEPTH_COMPONENT32F: 0x8CAC;
| readonly DEPTH32F_STENCIL8: 0x8CAD;
| readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
| readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
| readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
| readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
| readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
| readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
| readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
| readonly FRAMEBUFFER_DEFAULT: 0x8218;
| readonly UNSIGNED_INT_24_8: 0x84FA;
| readonly DEPTH24_STENCIL8: 0x88F0;
| readonly UNSIGNED_NORMALIZED: 0x8C17;
| readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
| readonly READ_FRAMEBUFFER: 0x8CA8;
| readonly DRAW_FRAMEBUFFER: 0x8CA9;
| readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
| readonly RENDERBUFFER_SAMPLES: 0x8CAB;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
| readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
| readonly COLOR_ATTACHMENT1: 0x8CE1;
| readonly COLOR_ATTACHMENT2: 0x8CE2;
| readonly COLOR_ATTACHMENT3: 0x8CE3;
| readonly COLOR_ATTACHMENT4: 0x8CE4;
| readonly COLOR_ATTACHMENT5: 0x8CE5;
| readonly COLOR_ATTACHMENT6: 0x8CE6;
| readonly COLOR_ATTACHMENT7: 0x8CE7;
| readonly COLOR_ATTACHMENT8: 0x8CE8;
| readonly COLOR_ATTACHMENT9: 0x8CE9;
| readonly COLOR_ATTACHMENT10: 0x8CEA;
| readonly COLOR_ATTACHMENT11: 0x8CEB;
| readonly COLOR_ATTACHMENT12: 0x8CEC;
| readonly COLOR_ATTACHMENT13: 0x8CED;
| readonly COLOR_ATTACHMENT14: 0x8CEE;
| readonly COLOR_ATTACHMENT15: 0x8CEF;
| readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
| readonly MAX_SAMPLES: 0x8D57;
| readonly HALF_FLOAT: 0x140B;
| readonly RG: 0x8227;
| readonly RG_INTEGER: 0x8228;
| readonly R8: 0x8229;
| readonly RG8: 0x822B;
| readonly R16F: 0x822D;
| readonly R32F: 0x822E;
| readonly RG16F: 0x822F;
| readonly RG32F: 0x8230;
| readonly R8I: 0x8231;
| readonly R8UI: 0x8232;
| readonly R16I: 0x8233;
| readonly R16UI: 0x8234;
| readonly R32I: 0x8235;
| readonly R32UI: 0x8236;
| readonly RG8I: 0x8237;
| readonly RG8UI: 0x8238;
| readonly RG16I: 0x8239;
| readonly RG16UI: 0x823A;
| readonly RG32I: 0x823B;
| readonly RG32UI: 0x823C;
| readonly VERTEX_ARRAY_BINDING: 0x85B5;
| readonly R8_SNORM: 0x8F94;
| readonly RG8_SNORM: 0x8F95;
| readonly RGB8_SNORM: 0x8F96;
| readonly RGBA8_SNORM: 0x8F97;
| readonly SIGNED_NORMALIZED: 0x8F9C;
| readonly COPY_READ_BUFFER: 0x8F36;
| readonly COPY_WRITE_BUFFER: 0x8F37;
| readonly COPY_READ_BUFFER_BINDING: 0x8F36;
| readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
| readonly UNIFORM_BUFFER: 0x8A11;
| readonly UNIFORM_BUFFER_BINDING: 0x8A28;
| readonly UNIFORM_BUFFER_START: 0x8A29;
| readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
| readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
| readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
| readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
| readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
| readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
| readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
| readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
| readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
| readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
| readonly UNIFORM_TYPE: 0x8A37;
| readonly UNIFORM_SIZE: 0x8A38;
| readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
| readonly UNIFORM_OFFSET: 0x8A3B;
| readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
| readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
| readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
| readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
| readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
| readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
| readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
| readonly INVALID_INDEX: 0xFFFFFFFF;
| readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
| readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
| readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
| readonly OBJECT_TYPE: 0x9112;
| readonly SYNC_CONDITION: 0x9113;
| readonly SYNC_STATUS: 0x9114;
| readonly SYNC_FLAGS: 0x9115;
| readonly SYNC_FENCE: 0x9116;
| readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
| readonly UNSIGNALED: 0x9118;
| readonly SIGNALED: 0x9119;
| readonly ALREADY_SIGNALED: 0x911A;
| readonly TIMEOUT_EXPIRED: 0x911B;
| readonly CONDITION_SATISFIED: 0x911C;
| readonly WAIT_FAILED: 0x911D;
| readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
| readonly ANY_SAMPLES_PASSED: 0x8C2F;
| readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
| readonly SAMPLER_BINDING: 0x8919;
| readonly RGB10_A2UI: 0x906F;
| readonly INT_2_10_10_10_REV: 0x8D9F;
| readonly TRANSFORM_FEEDBACK: 0x8E22;
| readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
| readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
| readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
| readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
| readonly MAX_ELEMENT_INDEX: 0x8D6B;
| readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
| readonly TIMEOUT_IGNORED: -1;
| readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| };
|
| interface WebGL2RenderingContextBase {
| beginQuery(target: GLenum, query: WebGLQuery): void;
| beginTransformFeedback(primitiveMode: GLenum): void;
| bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
| bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
| bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
| bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
| bindVertexArray(array: WebGLVertexArrayObject | null): void;
| blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
| clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
| clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
| clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
| clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
| clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
| compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
| copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| createQuery(): WebGLQuery | null;
| createSampler(): WebGLSampler | null;
| createTransformFeedback(): WebGLTransformFeedback | null;
| createVertexArray(): WebGLVertexArrayObject | null;
| deleteQuery(query: WebGLQuery | null): void;
| deleteSampler(sampler: WebGLSampler | null): void;
| deleteSync(sync: WebGLSync | null): void;
| deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
| deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
| drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
| drawBuffers(buffers: GLenum[]): void;
| drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
| drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
| endQuery(target: GLenum): void;
| endTransformFeedback(): void;
| fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
| framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
| getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
| getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
| getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
| getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
| getFragDataLocation(program: WebGLProgram, name: string): GLint;
| getIndexedParameter(target: GLenum, index: GLuint): any;
| getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
| getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
| getQueryParameter(query: WebGLQuery, pname: GLenum): any;
| getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
| getSyncParameter(sync: WebGLSync, pname: GLenum): any;
| getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
| getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
| invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
| invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| isQuery(query: WebGLQuery | null): GLboolean;
| isSampler(sampler: WebGLSampler | null): GLboolean;
| isSync(sync: WebGLSync | null): GLboolean;
| isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
| isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
| pauseTransformFeedback(): void;
| readBuffer(src: GLenum): void;
| renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| resumeTransformFeedback(): void;
| samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
| samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
| texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
| transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
| uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
| uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
| uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
| uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
| uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
| uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
| vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
| vertexAttribI4iv(index: GLuint, values: Int32List): void;
| vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
| vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
| vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
| waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
| readonly READ_BUFFER: 0x0C02;
| readonly UNPACK_ROW_LENGTH: 0x0CF2;
| readonly UNPACK_SKIP_ROWS: 0x0CF3;
| readonly UNPACK_SKIP_PIXELS: 0x0CF4;
| readonly PACK_ROW_LENGTH: 0x0D02;
| readonly PACK_SKIP_ROWS: 0x0D03;
| readonly PACK_SKIP_PIXELS: 0x0D04;
| readonly COLOR: 0x1800;
| readonly DEPTH: 0x1801;
| readonly STENCIL: 0x1802;
| readonly RED: 0x1903;
| readonly RGB8: 0x8051;
| readonly RGBA8: 0x8058;
| readonly RGB10_A2: 0x8059;
| readonly TEXTURE_BINDING_3D: 0x806A;
| readonly UNPACK_SKIP_IMAGES: 0x806D;
| readonly UNPACK_IMAGE_HEIGHT: 0x806E;
| readonly TEXTURE_3D: 0x806F;
| readonly TEXTURE_WRAP_R: 0x8072;
| readonly MAX_3D_TEXTURE_SIZE: 0x8073;
| readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
| readonly MAX_ELEMENTS_VERTICES: 0x80E8;
| readonly MAX_ELEMENTS_INDICES: 0x80E9;
| readonly TEXTURE_MIN_LOD: 0x813A;
| readonly TEXTURE_MAX_LOD: 0x813B;
| readonly TEXTURE_BASE_LEVEL: 0x813C;
| readonly TEXTURE_MAX_LEVEL: 0x813D;
| readonly MIN: 0x8007;
| readonly MAX: 0x8008;
| readonly DEPTH_COMPONENT24: 0x81A6;
| readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
| readonly TEXTURE_COMPARE_MODE: 0x884C;
| readonly TEXTURE_COMPARE_FUNC: 0x884D;
| readonly CURRENT_QUERY: 0x8865;
| readonly QUERY_RESULT: 0x8866;
| readonly QUERY_RESULT_AVAILABLE: 0x8867;
| readonly STREAM_READ: 0x88E1;
| readonly STREAM_COPY: 0x88E2;
| readonly STATIC_READ: 0x88E5;
| readonly STATIC_COPY: 0x88E6;
| readonly DYNAMIC_READ: 0x88E9;
| readonly DYNAMIC_COPY: 0x88EA;
| readonly MAX_DRAW_BUFFERS: 0x8824;
| readonly DRAW_BUFFER0: 0x8825;
| readonly DRAW_BUFFER1: 0x8826;
| readonly DRAW_BUFFER2: 0x8827;
| readonly DRAW_BUFFER3: 0x8828;
| readonly DRAW_BUFFER4: 0x8829;
| readonly DRAW_BUFFER5: 0x882A;
| readonly DRAW_BUFFER6: 0x882B;
| readonly DRAW_BUFFER7: 0x882C;
| readonly DRAW_BUFFER8: 0x882D;
| readonly DRAW_BUFFER9: 0x882E;
| readonly DRAW_BUFFER10: 0x882F;
| readonly DRAW_BUFFER11: 0x8830;
| readonly DRAW_BUFFER12: 0x8831;
| readonly DRAW_BUFFER13: 0x8832;
| readonly DRAW_BUFFER14: 0x8833;
| readonly DRAW_BUFFER15: 0x8834;
| readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
| readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
| readonly SAMPLER_3D: 0x8B5F;
| readonly SAMPLER_2D_SHADOW: 0x8B62;
| readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
| readonly PIXEL_PACK_BUFFER: 0x88EB;
| readonly PIXEL_UNPACK_BUFFER: 0x88EC;
| readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
| readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
| readonly FLOAT_MAT2x3: 0x8B65;
| readonly FLOAT_MAT2x4: 0x8B66;
| readonly FLOAT_MAT3x2: 0x8B67;
| readonly FLOAT_MAT3x4: 0x8B68;
| readonly FLOAT_MAT4x2: 0x8B69;
| readonly FLOAT_MAT4x3: 0x8B6A;
| readonly SRGB: 0x8C40;
| readonly SRGB8: 0x8C41;
| readonly SRGB8_ALPHA8: 0x8C43;
| readonly COMPARE_REF_TO_TEXTURE: 0x884E;
| readonly RGBA32F: 0x8814;
| readonly RGB32F: 0x8815;
| readonly RGBA16F: 0x881A;
| readonly RGB16F: 0x881B;
| readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
| readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
| readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
| readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
| readonly MAX_VARYING_COMPONENTS: 0x8B4B;
| readonly TEXTURE_2D_ARRAY: 0x8C1A;
| readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
| readonly R11F_G11F_B10F: 0x8C3A;
| readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
| readonly RGB9_E5: 0x8C3D;
| readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
| readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
| readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
| readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
| readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
| readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
| readonly RASTERIZER_DISCARD: 0x8C89;
| readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
| readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
| readonly INTERLEAVED_ATTRIBS: 0x8C8C;
| readonly SEPARATE_ATTRIBS: 0x8C8D;
| readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
| readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
| readonly RGBA32UI: 0x8D70;
| readonly RGB32UI: 0x8D71;
| readonly RGBA16UI: 0x8D76;
| readonly RGB16UI: 0x8D77;
| readonly RGBA8UI: 0x8D7C;
| readonly RGB8UI: 0x8D7D;
| readonly RGBA32I: 0x8D82;
| readonly RGB32I: 0x8D83;
| readonly RGBA16I: 0x8D88;
| readonly RGB16I: 0x8D89;
| readonly RGBA8I: 0x8D8E;
| readonly RGB8I: 0x8D8F;
| readonly RED_INTEGER: 0x8D94;
| readonly RGB_INTEGER: 0x8D98;
| readonly RGBA_INTEGER: 0x8D99;
| readonly SAMPLER_2D_ARRAY: 0x8DC1;
| readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
| readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
| readonly UNSIGNED_INT_VEC2: 0x8DC6;
| readonly UNSIGNED_INT_VEC3: 0x8DC7;
| readonly UNSIGNED_INT_VEC4: 0x8DC8;
| readonly INT_SAMPLER_2D: 0x8DCA;
| readonly INT_SAMPLER_3D: 0x8DCB;
| readonly INT_SAMPLER_CUBE: 0x8DCC;
| readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
| readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
| readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
| readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
| readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
| readonly DEPTH_COMPONENT32F: 0x8CAC;
| readonly DEPTH32F_STENCIL8: 0x8CAD;
| readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
| readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
| readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
| readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
| readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
| readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
| readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
| readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
| readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
| readonly FRAMEBUFFER_DEFAULT: 0x8218;
| readonly UNSIGNED_INT_24_8: 0x84FA;
| readonly DEPTH24_STENCIL8: 0x88F0;
| readonly UNSIGNED_NORMALIZED: 0x8C17;
| readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
| readonly READ_FRAMEBUFFER: 0x8CA8;
| readonly DRAW_FRAMEBUFFER: 0x8CA9;
| readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
| readonly RENDERBUFFER_SAMPLES: 0x8CAB;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
| readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
| readonly COLOR_ATTACHMENT1: 0x8CE1;
| readonly COLOR_ATTACHMENT2: 0x8CE2;
| readonly COLOR_ATTACHMENT3: 0x8CE3;
| readonly COLOR_ATTACHMENT4: 0x8CE4;
| readonly COLOR_ATTACHMENT5: 0x8CE5;
| readonly COLOR_ATTACHMENT6: 0x8CE6;
| readonly COLOR_ATTACHMENT7: 0x8CE7;
| readonly COLOR_ATTACHMENT8: 0x8CE8;
| readonly COLOR_ATTACHMENT9: 0x8CE9;
| readonly COLOR_ATTACHMENT10: 0x8CEA;
| readonly COLOR_ATTACHMENT11: 0x8CEB;
| readonly COLOR_ATTACHMENT12: 0x8CEC;
| readonly COLOR_ATTACHMENT13: 0x8CED;
| readonly COLOR_ATTACHMENT14: 0x8CEE;
| readonly COLOR_ATTACHMENT15: 0x8CEF;
| readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
| readonly MAX_SAMPLES: 0x8D57;
| readonly HALF_FLOAT: 0x140B;
| readonly RG: 0x8227;
| readonly RG_INTEGER: 0x8228;
| readonly R8: 0x8229;
| readonly RG8: 0x822B;
| readonly R16F: 0x822D;
| readonly R32F: 0x822E;
| readonly RG16F: 0x822F;
| readonly RG32F: 0x8230;
| readonly R8I: 0x8231;
| readonly R8UI: 0x8232;
| readonly R16I: 0x8233;
| readonly R16UI: 0x8234;
| readonly R32I: 0x8235;
| readonly R32UI: 0x8236;
| readonly RG8I: 0x8237;
| readonly RG8UI: 0x8238;
| readonly RG16I: 0x8239;
| readonly RG16UI: 0x823A;
| readonly RG32I: 0x823B;
| readonly RG32UI: 0x823C;
| readonly VERTEX_ARRAY_BINDING: 0x85B5;
| readonly R8_SNORM: 0x8F94;
| readonly RG8_SNORM: 0x8F95;
| readonly RGB8_SNORM: 0x8F96;
| readonly RGBA8_SNORM: 0x8F97;
| readonly SIGNED_NORMALIZED: 0x8F9C;
| readonly COPY_READ_BUFFER: 0x8F36;
| readonly COPY_WRITE_BUFFER: 0x8F37;
| readonly COPY_READ_BUFFER_BINDING: 0x8F36;
| readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
| readonly UNIFORM_BUFFER: 0x8A11;
| readonly UNIFORM_BUFFER_BINDING: 0x8A28;
| readonly UNIFORM_BUFFER_START: 0x8A29;
| readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
| readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
| readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
| readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
| readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
| readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
| readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
| readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
| readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
| readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
| readonly UNIFORM_TYPE: 0x8A37;
| readonly UNIFORM_SIZE: 0x8A38;
| readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
| readonly UNIFORM_OFFSET: 0x8A3B;
| readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
| readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
| readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
| readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
| readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
| readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
| readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
| readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
| readonly INVALID_INDEX: 0xFFFFFFFF;
| readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
| readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
| readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
| readonly OBJECT_TYPE: 0x9112;
| readonly SYNC_CONDITION: 0x9113;
| readonly SYNC_STATUS: 0x9114;
| readonly SYNC_FLAGS: 0x9115;
| readonly SYNC_FENCE: 0x9116;
| readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
| readonly UNSIGNALED: 0x9118;
| readonly SIGNALED: 0x9119;
| readonly ALREADY_SIGNALED: 0x911A;
| readonly TIMEOUT_EXPIRED: 0x911B;
| readonly CONDITION_SATISFIED: 0x911C;
| readonly WAIT_FAILED: 0x911D;
| readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
| readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
| readonly ANY_SAMPLES_PASSED: 0x8C2F;
| readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
| readonly SAMPLER_BINDING: 0x8919;
| readonly RGB10_A2UI: 0x906F;
| readonly INT_2_10_10_10_REV: 0x8D9F;
| readonly TRANSFORM_FEEDBACK: 0x8E22;
| readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
| readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
| readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
| readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
| readonly MAX_ELEMENT_INDEX: 0x8D6B;
| readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
| readonly TIMEOUT_IGNORED: -1;
| readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
| }
|
| interface WebGL2RenderingContextOverloads {
| bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
| bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
| bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
| bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
| bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
| uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
| }
|
| /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
| interface WebGLActiveInfo {
| readonly name: string;
| readonly size: GLint;
| readonly type: GLenum;
| }
|
| declare var WebGLActiveInfo: {
| prototype: WebGLActiveInfo;
| new(): WebGLActiveInfo;
| };
|
| /** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
| interface WebGLBuffer {
| }
|
| declare var WebGLBuffer: {
| prototype: WebGLBuffer;
| new(): WebGLBuffer;
| };
|
| /** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
| interface WebGLContextEvent extends Event {
| readonly statusMessage: string;
| }
|
| declare var WebGLContextEvent: {
| prototype: WebGLContextEvent;
| new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
| };
|
| /** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
| interface WebGLFramebuffer {
| }
|
| declare var WebGLFramebuffer: {
| prototype: WebGLFramebuffer;
| new(): WebGLFramebuffer;
| };
|
| /** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
| interface WebGLProgram {
| }
|
| declare var WebGLProgram: {
| prototype: WebGLProgram;
| new(): WebGLProgram;
| };
|
| interface WebGLQuery {
| }
|
| declare var WebGLQuery: {
| prototype: WebGLQuery;
| new(): WebGLQuery;
| };
|
| /** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
| interface WebGLRenderbuffer {
| }
|
| declare var WebGLRenderbuffer: {
| prototype: WebGLRenderbuffer;
| new(): WebGLRenderbuffer;
| };
|
| /** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
| interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
| }
|
| declare var WebGLRenderingContext: {
| prototype: WebGLRenderingContext;
| new(): WebGLRenderingContext;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| };
|
| interface WebGLRenderingContextBase {
| readonly drawingBufferHeight: GLsizei;
| readonly drawingBufferWidth: GLsizei;
| activeTexture(texture: GLenum): void;
| attachShader(program: WebGLProgram, shader: WebGLShader): void;
| bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
| bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
| bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
| bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
| bindTexture(target: GLenum, texture: WebGLTexture | null): void;
| blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
| blendEquation(mode: GLenum): void;
| blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
| blendFunc(sfactor: GLenum, dfactor: GLenum): void;
| blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
| checkFramebufferStatus(target: GLenum): GLenum;
| clear(mask: GLbitfield): void;
| clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
| clearDepth(depth: GLclampf): void;
| clearStencil(s: GLint): void;
| colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
| compileShader(shader: WebGLShader): void;
| copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
| copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| createBuffer(): WebGLBuffer | null;
| createFramebuffer(): WebGLFramebuffer | null;
| createProgram(): WebGLProgram | null;
| createRenderbuffer(): WebGLRenderbuffer | null;
| createShader(type: GLenum): WebGLShader | null;
| createTexture(): WebGLTexture | null;
| cullFace(mode: GLenum): void;
| deleteBuffer(buffer: WebGLBuffer | null): void;
| deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
| deleteProgram(program: WebGLProgram | null): void;
| deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
| deleteShader(shader: WebGLShader | null): void;
| deleteTexture(texture: WebGLTexture | null): void;
| depthFunc(func: GLenum): void;
| depthMask(flag: GLboolean): void;
| depthRange(zNear: GLclampf, zFar: GLclampf): void;
| detachShader(program: WebGLProgram, shader: WebGLShader): void;
| disable(cap: GLenum): void;
| disableVertexAttribArray(index: GLuint): void;
| drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
| drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
| enable(cap: GLenum): void;
| enableVertexAttribArray(index: GLuint): void;
| finish(): void;
| flush(): void;
| framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
| framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
| frontFace(mode: GLenum): void;
| generateMipmap(target: GLenum): void;
| getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
| getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
| getAttribLocation(program: WebGLProgram, name: string): GLint;
| getBufferParameter(target: GLenum, pname: GLenum): any;
| getContextAttributes(): WebGLContextAttributes | null;
| getError(): GLenum;
| getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
| getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
| getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
| getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
| getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
| getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
| getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
| getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
| getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
| getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
| getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
| getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
| getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
| getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
| getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
| getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
| getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
| getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
| getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
| getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
| getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
| getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
| getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
| getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
| getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
| getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
| getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
| getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
| getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
| getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
| getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
| getExtension(name: string): any;
| getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
| getParameter(pname: GLenum): any;
| getProgramInfoLog(program: WebGLProgram): string | null;
| getProgramParameter(program: WebGLProgram, pname: GLenum): any;
| getRenderbufferParameter(target: GLenum, pname: GLenum): any;
| getShaderInfoLog(shader: WebGLShader): string | null;
| getShaderParameter(shader: WebGLShader, pname: GLenum): any;
| getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
| getShaderSource(shader: WebGLShader): string | null;
| getSupportedExtensions(): string[] | null;
| getTexParameter(target: GLenum, pname: GLenum): any;
| getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
| getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
| getVertexAttrib(index: GLuint, pname: GLenum): any;
| getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
| hint(target: GLenum, mode: GLenum): void;
| isBuffer(buffer: WebGLBuffer | null): GLboolean;
| isContextLost(): boolean;
| isEnabled(cap: GLenum): GLboolean;
| isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
| isProgram(program: WebGLProgram | null): GLboolean;
| isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
| isShader(shader: WebGLShader | null): GLboolean;
| isTexture(texture: WebGLTexture | null): GLboolean;
| lineWidth(width: GLfloat): void;
| linkProgram(program: WebGLProgram): void;
| pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
| polygonOffset(factor: GLfloat, units: GLfloat): void;
| renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
| sampleCoverage(value: GLclampf, invert: GLboolean): void;
| scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| shaderSource(shader: WebGLShader, source: string): void;
| stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
| stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
| stencilMask(mask: GLuint): void;
| stencilMaskSeparate(face: GLenum, mask: GLuint): void;
| stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
| stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
| texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
| texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
| uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
| uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
| uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
| uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
| uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
| uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
| uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
| uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
| useProgram(program: WebGLProgram | null): void;
| validateProgram(program: WebGLProgram): void;
| vertexAttrib1f(index: GLuint, x: GLfloat): void;
| vertexAttrib1fv(index: GLuint, values: Float32List): void;
| vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
| vertexAttrib2fv(index: GLuint, values: Float32List): void;
| vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
| vertexAttrib3fv(index: GLuint, values: Float32List): void;
| vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
| vertexAttrib4fv(index: GLuint, values: Float32List): void;
| vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
| viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| readonly DEPTH_BUFFER_BIT: 0x00000100;
| readonly STENCIL_BUFFER_BIT: 0x00000400;
| readonly COLOR_BUFFER_BIT: 0x00004000;
| readonly POINTS: 0x0000;
| readonly LINES: 0x0001;
| readonly LINE_LOOP: 0x0002;
| readonly LINE_STRIP: 0x0003;
| readonly TRIANGLES: 0x0004;
| readonly TRIANGLE_STRIP: 0x0005;
| readonly TRIANGLE_FAN: 0x0006;
| readonly ZERO: 0;
| readonly ONE: 1;
| readonly SRC_COLOR: 0x0300;
| readonly ONE_MINUS_SRC_COLOR: 0x0301;
| readonly SRC_ALPHA: 0x0302;
| readonly ONE_MINUS_SRC_ALPHA: 0x0303;
| readonly DST_ALPHA: 0x0304;
| readonly ONE_MINUS_DST_ALPHA: 0x0305;
| readonly DST_COLOR: 0x0306;
| readonly ONE_MINUS_DST_COLOR: 0x0307;
| readonly SRC_ALPHA_SATURATE: 0x0308;
| readonly FUNC_ADD: 0x8006;
| readonly BLEND_EQUATION: 0x8009;
| readonly BLEND_EQUATION_RGB: 0x8009;
| readonly BLEND_EQUATION_ALPHA: 0x883D;
| readonly FUNC_SUBTRACT: 0x800A;
| readonly FUNC_REVERSE_SUBTRACT: 0x800B;
| readonly BLEND_DST_RGB: 0x80C8;
| readonly BLEND_SRC_RGB: 0x80C9;
| readonly BLEND_DST_ALPHA: 0x80CA;
| readonly BLEND_SRC_ALPHA: 0x80CB;
| readonly CONSTANT_COLOR: 0x8001;
| readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
| readonly CONSTANT_ALPHA: 0x8003;
| readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
| readonly BLEND_COLOR: 0x8005;
| readonly ARRAY_BUFFER: 0x8892;
| readonly ELEMENT_ARRAY_BUFFER: 0x8893;
| readonly ARRAY_BUFFER_BINDING: 0x8894;
| readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
| readonly STREAM_DRAW: 0x88E0;
| readonly STATIC_DRAW: 0x88E4;
| readonly DYNAMIC_DRAW: 0x88E8;
| readonly BUFFER_SIZE: 0x8764;
| readonly BUFFER_USAGE: 0x8765;
| readonly CURRENT_VERTEX_ATTRIB: 0x8626;
| readonly FRONT: 0x0404;
| readonly BACK: 0x0405;
| readonly FRONT_AND_BACK: 0x0408;
| readonly CULL_FACE: 0x0B44;
| readonly BLEND: 0x0BE2;
| readonly DITHER: 0x0BD0;
| readonly STENCIL_TEST: 0x0B90;
| readonly DEPTH_TEST: 0x0B71;
| readonly SCISSOR_TEST: 0x0C11;
| readonly POLYGON_OFFSET_FILL: 0x8037;
| readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
| readonly SAMPLE_COVERAGE: 0x80A0;
| readonly NO_ERROR: 0;
| readonly INVALID_ENUM: 0x0500;
| readonly INVALID_VALUE: 0x0501;
| readonly INVALID_OPERATION: 0x0502;
| readonly OUT_OF_MEMORY: 0x0505;
| readonly CW: 0x0900;
| readonly CCW: 0x0901;
| readonly LINE_WIDTH: 0x0B21;
| readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
| readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
| readonly CULL_FACE_MODE: 0x0B45;
| readonly FRONT_FACE: 0x0B46;
| readonly DEPTH_RANGE: 0x0B70;
| readonly DEPTH_WRITEMASK: 0x0B72;
| readonly DEPTH_CLEAR_VALUE: 0x0B73;
| readonly DEPTH_FUNC: 0x0B74;
| readonly STENCIL_CLEAR_VALUE: 0x0B91;
| readonly STENCIL_FUNC: 0x0B92;
| readonly STENCIL_FAIL: 0x0B94;
| readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
| readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
| readonly STENCIL_REF: 0x0B97;
| readonly STENCIL_VALUE_MASK: 0x0B93;
| readonly STENCIL_WRITEMASK: 0x0B98;
| readonly STENCIL_BACK_FUNC: 0x8800;
| readonly STENCIL_BACK_FAIL: 0x8801;
| readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
| readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
| readonly STENCIL_BACK_REF: 0x8CA3;
| readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
| readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
| readonly VIEWPORT: 0x0BA2;
| readonly SCISSOR_BOX: 0x0C10;
| readonly COLOR_CLEAR_VALUE: 0x0C22;
| readonly COLOR_WRITEMASK: 0x0C23;
| readonly UNPACK_ALIGNMENT: 0x0CF5;
| readonly PACK_ALIGNMENT: 0x0D05;
| readonly MAX_TEXTURE_SIZE: 0x0D33;
| readonly MAX_VIEWPORT_DIMS: 0x0D3A;
| readonly SUBPIXEL_BITS: 0x0D50;
| readonly RED_BITS: 0x0D52;
| readonly GREEN_BITS: 0x0D53;
| readonly BLUE_BITS: 0x0D54;
| readonly ALPHA_BITS: 0x0D55;
| readonly DEPTH_BITS: 0x0D56;
| readonly STENCIL_BITS: 0x0D57;
| readonly POLYGON_OFFSET_UNITS: 0x2A00;
| readonly POLYGON_OFFSET_FACTOR: 0x8038;
| readonly TEXTURE_BINDING_2D: 0x8069;
| readonly SAMPLE_BUFFERS: 0x80A8;
| readonly SAMPLES: 0x80A9;
| readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
| readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
| readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
| readonly DONT_CARE: 0x1100;
| readonly FASTEST: 0x1101;
| readonly NICEST: 0x1102;
| readonly GENERATE_MIPMAP_HINT: 0x8192;
| readonly BYTE: 0x1400;
| readonly UNSIGNED_BYTE: 0x1401;
| readonly SHORT: 0x1402;
| readonly UNSIGNED_SHORT: 0x1403;
| readonly INT: 0x1404;
| readonly UNSIGNED_INT: 0x1405;
| readonly FLOAT: 0x1406;
| readonly DEPTH_COMPONENT: 0x1902;
| readonly ALPHA: 0x1906;
| readonly RGB: 0x1907;
| readonly RGBA: 0x1908;
| readonly LUMINANCE: 0x1909;
| readonly LUMINANCE_ALPHA: 0x190A;
| readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
| readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
| readonly UNSIGNED_SHORT_5_6_5: 0x8363;
| readonly FRAGMENT_SHADER: 0x8B30;
| readonly VERTEX_SHADER: 0x8B31;
| readonly MAX_VERTEX_ATTRIBS: 0x8869;
| readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
| readonly MAX_VARYING_VECTORS: 0x8DFC;
| readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
| readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
| readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
| readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
| readonly SHADER_TYPE: 0x8B4F;
| readonly DELETE_STATUS: 0x8B80;
| readonly LINK_STATUS: 0x8B82;
| readonly VALIDATE_STATUS: 0x8B83;
| readonly ATTACHED_SHADERS: 0x8B85;
| readonly ACTIVE_UNIFORMS: 0x8B86;
| readonly ACTIVE_ATTRIBUTES: 0x8B89;
| readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
| readonly CURRENT_PROGRAM: 0x8B8D;
| readonly NEVER: 0x0200;
| readonly LESS: 0x0201;
| readonly EQUAL: 0x0202;
| readonly LEQUAL: 0x0203;
| readonly GREATER: 0x0204;
| readonly NOTEQUAL: 0x0205;
| readonly GEQUAL: 0x0206;
| readonly ALWAYS: 0x0207;
| readonly KEEP: 0x1E00;
| readonly REPLACE: 0x1E01;
| readonly INCR: 0x1E02;
| readonly DECR: 0x1E03;
| readonly INVERT: 0x150A;
| readonly INCR_WRAP: 0x8507;
| readonly DECR_WRAP: 0x8508;
| readonly VENDOR: 0x1F00;
| readonly RENDERER: 0x1F01;
| readonly VERSION: 0x1F02;
| readonly NEAREST: 0x2600;
| readonly LINEAR: 0x2601;
| readonly NEAREST_MIPMAP_NEAREST: 0x2700;
| readonly LINEAR_MIPMAP_NEAREST: 0x2701;
| readonly NEAREST_MIPMAP_LINEAR: 0x2702;
| readonly LINEAR_MIPMAP_LINEAR: 0x2703;
| readonly TEXTURE_MAG_FILTER: 0x2800;
| readonly TEXTURE_MIN_FILTER: 0x2801;
| readonly TEXTURE_WRAP_S: 0x2802;
| readonly TEXTURE_WRAP_T: 0x2803;
| readonly TEXTURE_2D: 0x0DE1;
| readonly TEXTURE: 0x1702;
| readonly TEXTURE_CUBE_MAP: 0x8513;
| readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
| readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
| readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
| readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
| readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
| readonly TEXTURE0: 0x84C0;
| readonly TEXTURE1: 0x84C1;
| readonly TEXTURE2: 0x84C2;
| readonly TEXTURE3: 0x84C3;
| readonly TEXTURE4: 0x84C4;
| readonly TEXTURE5: 0x84C5;
| readonly TEXTURE6: 0x84C6;
| readonly TEXTURE7: 0x84C7;
| readonly TEXTURE8: 0x84C8;
| readonly TEXTURE9: 0x84C9;
| readonly TEXTURE10: 0x84CA;
| readonly TEXTURE11: 0x84CB;
| readonly TEXTURE12: 0x84CC;
| readonly TEXTURE13: 0x84CD;
| readonly TEXTURE14: 0x84CE;
| readonly TEXTURE15: 0x84CF;
| readonly TEXTURE16: 0x84D0;
| readonly TEXTURE17: 0x84D1;
| readonly TEXTURE18: 0x84D2;
| readonly TEXTURE19: 0x84D3;
| readonly TEXTURE20: 0x84D4;
| readonly TEXTURE21: 0x84D5;
| readonly TEXTURE22: 0x84D6;
| readonly TEXTURE23: 0x84D7;
| readonly TEXTURE24: 0x84D8;
| readonly TEXTURE25: 0x84D9;
| readonly TEXTURE26: 0x84DA;
| readonly TEXTURE27: 0x84DB;
| readonly TEXTURE28: 0x84DC;
| readonly TEXTURE29: 0x84DD;
| readonly TEXTURE30: 0x84DE;
| readonly TEXTURE31: 0x84DF;
| readonly ACTIVE_TEXTURE: 0x84E0;
| readonly REPEAT: 0x2901;
| readonly CLAMP_TO_EDGE: 0x812F;
| readonly MIRRORED_REPEAT: 0x8370;
| readonly FLOAT_VEC2: 0x8B50;
| readonly FLOAT_VEC3: 0x8B51;
| readonly FLOAT_VEC4: 0x8B52;
| readonly INT_VEC2: 0x8B53;
| readonly INT_VEC3: 0x8B54;
| readonly INT_VEC4: 0x8B55;
| readonly BOOL: 0x8B56;
| readonly BOOL_VEC2: 0x8B57;
| readonly BOOL_VEC3: 0x8B58;
| readonly BOOL_VEC4: 0x8B59;
| readonly FLOAT_MAT2: 0x8B5A;
| readonly FLOAT_MAT3: 0x8B5B;
| readonly FLOAT_MAT4: 0x8B5C;
| readonly SAMPLER_2D: 0x8B5E;
| readonly SAMPLER_CUBE: 0x8B60;
| readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
| readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
| readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
| readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
| readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
| readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
| readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
| readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
| readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
| readonly COMPILE_STATUS: 0x8B81;
| readonly LOW_FLOAT: 0x8DF0;
| readonly MEDIUM_FLOAT: 0x8DF1;
| readonly HIGH_FLOAT: 0x8DF2;
| readonly LOW_INT: 0x8DF3;
| readonly MEDIUM_INT: 0x8DF4;
| readonly HIGH_INT: 0x8DF5;
| readonly FRAMEBUFFER: 0x8D40;
| readonly RENDERBUFFER: 0x8D41;
| readonly RGBA4: 0x8056;
| readonly RGB5_A1: 0x8057;
| readonly RGB565: 0x8D62;
| readonly DEPTH_COMPONENT16: 0x81A5;
| readonly STENCIL_INDEX8: 0x8D48;
| readonly DEPTH_STENCIL: 0x84F9;
| readonly RENDERBUFFER_WIDTH: 0x8D42;
| readonly RENDERBUFFER_HEIGHT: 0x8D43;
| readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
| readonly RENDERBUFFER_RED_SIZE: 0x8D50;
| readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
| readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
| readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
| readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
| readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
| readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
| readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
| readonly COLOR_ATTACHMENT0: 0x8CE0;
| readonly DEPTH_ATTACHMENT: 0x8D00;
| readonly STENCIL_ATTACHMENT: 0x8D20;
| readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
| readonly NONE: 0;
| readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
| readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
| readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
| readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
| readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
| readonly FRAMEBUFFER_BINDING: 0x8CA6;
| readonly RENDERBUFFER_BINDING: 0x8CA7;
| readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
| readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
| readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
| readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
| readonly CONTEXT_LOST_WEBGL: 0x9242;
| readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
| readonly BROWSER_DEFAULT_WEBGL: 0x9244;
| }
|
| interface WebGLRenderingContextOverloads {
| bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
| bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
| bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
| compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
| compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
| readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
| texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
| uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
| uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
| }
|
| interface WebGLSampler {
| }
|
| declare var WebGLSampler: {
| prototype: WebGLSampler;
| new(): WebGLSampler;
| };
|
| /** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
| interface WebGLShader {
| }
|
| declare var WebGLShader: {
| prototype: WebGLShader;
| new(): WebGLShader;
| };
|
| /** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
| interface WebGLShaderPrecisionFormat {
| readonly precision: GLint;
| readonly rangeMax: GLint;
| readonly rangeMin: GLint;
| }
|
| declare var WebGLShaderPrecisionFormat: {
| prototype: WebGLShaderPrecisionFormat;
| new(): WebGLShaderPrecisionFormat;
| };
|
| interface WebGLSync {
| }
|
| declare var WebGLSync: {
| prototype: WebGLSync;
| new(): WebGLSync;
| };
|
| /** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
| interface WebGLTexture {
| }
|
| declare var WebGLTexture: {
| prototype: WebGLTexture;
| new(): WebGLTexture;
| };
|
| interface WebGLTransformFeedback {
| }
|
| declare var WebGLTransformFeedback: {
| prototype: WebGLTransformFeedback;
| new(): WebGLTransformFeedback;
| };
|
| /** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
| interface WebGLUniformLocation {
| }
|
| declare var WebGLUniformLocation: {
| prototype: WebGLUniformLocation;
| new(): WebGLUniformLocation;
| };
|
| interface WebGLVertexArrayObject {
| }
|
| declare var WebGLVertexArrayObject: {
| prototype: WebGLVertexArrayObject;
| new(): WebGLVertexArrayObject;
| };
|
| interface WebGLVertexArrayObjectOES {
| }
|
| interface WebSocketEventMap {
| "close": CloseEvent;
| "error": Event;
| "message": MessageEvent;
| "open": Event;
| }
|
| /** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
| interface WebSocket extends EventTarget {
| /**
| * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
| *
| * Can be set, to change how binary data is returned. The default is "blob".
| */
| binaryType: BinaryType;
| /**
| * Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
| *
| * If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
| */
| readonly bufferedAmount: number;
| /** Returns the extensions selected by the server, if any. */
| readonly extensions: string;
| onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
| onerror: ((this: WebSocket, ev: Event) => any) | null;
| onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
| onopen: ((this: WebSocket, ev: Event) => any) | null;
| /** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
| readonly protocol: string;
| /** Returns the state of the WebSocket object's connection. It can have the values described below. */
| readonly readyState: number;
| /** Returns the URL that was used to establish the WebSocket connection. */
| readonly url: string;
| /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
| close(code?: number, reason?: string): void;
| /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
| send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSING: 2;
| readonly CLOSED: 3;
| addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var WebSocket: {
| prototype: WebSocket;
| new(url: string | URL, protocols?: string | string[]): WebSocket;
| readonly CONNECTING: 0;
| readonly OPEN: 1;
| readonly CLOSING: 2;
| readonly CLOSED: 3;
| };
|
| /** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
| interface WindowClient extends Client {
| readonly focused: boolean;
| readonly visibilityState: DocumentVisibilityState;
| focus(): Promise<WindowClient>;
| navigate(url: string | URL): Promise<WindowClient | null>;
| }
|
| declare var WindowClient: {
| prototype: WindowClient;
| new(): WindowClient;
| };
|
| interface WindowOrWorkerGlobalScope {
| /** Available only in secure contexts. */
| readonly caches: CacheStorage;
| readonly crossOriginIsolated: boolean;
| readonly crypto: Crypto;
| readonly indexedDB: IDBFactory;
| readonly isSecureContext: boolean;
| readonly origin: string;
| readonly performance: Performance;
| atob(data: string): string;
| btoa(data: string): string;
| clearInterval(id: number | undefined): void;
| clearTimeout(id: number | undefined): void;
| createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
| queueMicrotask(callback: VoidFunction): void;
| reportError(e: any): void;
| setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| structuredClone(value: any, options?: StructuredSerializeOptions): any;
| }
|
| interface WorkerEventMap extends AbstractWorkerEventMap {
| "message": MessageEvent;
| "messageerror": MessageEvent;
| }
|
| /** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
| interface Worker extends EventTarget, AbstractWorker {
| onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
| onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
| /** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
| postMessage(message: any, transfer: Transferable[]): void;
| postMessage(message: any, options?: StructuredSerializeOptions): void;
| /** Aborts worker's associated global environment. */
| terminate(): void;
| addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var Worker: {
| prototype: Worker;
| new(scriptURL: string | URL, options?: WorkerOptions): Worker;
| };
|
| interface WorkerGlobalScopeEventMap {
| "error": ErrorEvent;
| "languagechange": Event;
| "offline": Event;
| "online": Event;
| "rejectionhandled": PromiseRejectionEvent;
| "unhandledrejection": PromiseRejectionEvent;
| }
|
| /** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
| interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
| /** Returns workerGlobal's WorkerLocation object. */
| readonly location: WorkerLocation;
| /** Returns workerGlobal's WorkerNavigator object. */
| readonly navigator: WorkerNavigator;
| onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
| onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
| onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
| ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
| onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
| onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
| /** Returns workerGlobal. */
| readonly self: WorkerGlobalScope & typeof globalThis;
| /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
| importScripts(...urls: (string | URL)[]): void;
| addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var WorkerGlobalScope: {
| prototype: WorkerGlobalScope;
| new(): WorkerGlobalScope;
| };
|
| /** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
| interface WorkerLocation {
| readonly hash: string;
| readonly host: string;
| readonly hostname: string;
| readonly href: string;
| toString(): string;
| readonly origin: string;
| readonly pathname: string;
| readonly port: string;
| readonly protocol: string;
| readonly search: string;
| }
|
| declare var WorkerLocation: {
| prototype: WorkerLocation;
| new(): WorkerLocation;
| };
|
| /** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
| interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
| readonly mediaCapabilities: MediaCapabilities;
| }
|
| declare var WorkerNavigator: {
| prototype: WorkerNavigator;
| new(): WorkerNavigator;
| };
|
| /** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
| interface WritableStream<W = any> {
| readonly locked: boolean;
| abort(reason?: any): Promise<void>;
| close(): Promise<void>;
| getWriter(): WritableStreamDefaultWriter<W>;
| }
|
| declare var WritableStream: {
| prototype: WritableStream;
| new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
| };
|
| /** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
| interface WritableStreamDefaultController {
| readonly signal: AbortSignal;
| error(e?: any): void;
| }
|
| declare var WritableStreamDefaultController: {
| prototype: WritableStreamDefaultController;
| new(): WritableStreamDefaultController;
| };
|
| /** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
| interface WritableStreamDefaultWriter<W = any> {
| readonly closed: Promise<undefined>;
| readonly desiredSize: number | null;
| readonly ready: Promise<undefined>;
| abort(reason?: any): Promise<void>;
| close(): Promise<void>;
| releaseLock(): void;
| write(chunk?: W): Promise<void>;
| }
|
| declare var WritableStreamDefaultWriter: {
| prototype: WritableStreamDefaultWriter;
| new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
| };
|
| interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
| "readystatechange": Event;
| }
|
| /** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
| interface XMLHttpRequest extends XMLHttpRequestEventTarget {
| onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
| /** Returns client's state. */
| readonly readyState: number;
| /** Returns the response body. */
| readonly response: any;
| /**
| * Returns response as text.
| *
| * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
| */
| readonly responseText: string;
| /**
| * Returns the response type.
| *
| * Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
| *
| * When set: setting to "document" is ignored if current global object is not a Window object.
| *
| * When set: throws an "InvalidStateError" DOMException if state is loading or done.
| *
| * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
| */
| responseType: XMLHttpRequestResponseType;
| readonly responseURL: string;
| readonly status: number;
| readonly statusText: string;
| /**
| * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
| *
| * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
| */
| timeout: number;
| /** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
| readonly upload: XMLHttpRequestUpload;
| /**
| * True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
| *
| * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
| */
| withCredentials: boolean;
| /** Cancels any network activity. */
| abort(): void;
| getAllResponseHeaders(): string;
| getResponseHeader(name: string): string | null;
| /**
| * Sets the request method, request URL, and synchronous flag.
| *
| * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
| *
| * Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
| *
| * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
| */
| open(method: string, url: string | URL): void;
| open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
| /**
| * Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
| *
| * Throws an "InvalidStateError" DOMException if state is loading or done.
| */
| overrideMimeType(mime: string): void;
| /**
| * Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
| *
| * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
| */
| send(body?: XMLHttpRequestBodyInit | null): void;
| /**
| * Combines a header in author request headers.
| *
| * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
| *
| * Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
| */
| setRequestHeader(name: string, value: string): void;
| readonly UNSENT: 0;
| readonly OPENED: 1;
| readonly HEADERS_RECEIVED: 2;
| readonly LOADING: 3;
| readonly DONE: 4;
| addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequest: {
| prototype: XMLHttpRequest;
| new(): XMLHttpRequest;
| readonly UNSENT: 0;
| readonly OPENED: 1;
| readonly HEADERS_RECEIVED: 2;
| readonly LOADING: 3;
| readonly DONE: 4;
| };
|
| interface XMLHttpRequestEventTargetEventMap {
| "abort": ProgressEvent<XMLHttpRequestEventTarget>;
| "error": ProgressEvent<XMLHttpRequestEventTarget>;
| "load": ProgressEvent<XMLHttpRequestEventTarget>;
| "loadend": ProgressEvent<XMLHttpRequestEventTarget>;
| "loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
| "progress": ProgressEvent<XMLHttpRequestEventTarget>;
| "timeout": ProgressEvent<XMLHttpRequestEventTarget>;
| }
|
| interface XMLHttpRequestEventTarget extends EventTarget {
| onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
| addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequestEventTarget: {
| prototype: XMLHttpRequestEventTarget;
| new(): XMLHttpRequestEventTarget;
| };
|
| interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
| addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| }
|
| declare var XMLHttpRequestUpload: {
| prototype: XMLHttpRequestUpload;
| new(): XMLHttpRequestUpload;
| };
|
| interface Console {
| assert(condition?: boolean, ...data: any[]): void;
| clear(): void;
| count(label?: string): void;
| countReset(label?: string): void;
| debug(...data: any[]): void;
| dir(item?: any, options?: any): void;
| dirxml(...data: any[]): void;
| error(...data: any[]): void;
| group(...data: any[]): void;
| groupCollapsed(...data: any[]): void;
| groupEnd(): void;
| info(...data: any[]): void;
| log(...data: any[]): void;
| table(tabularData?: any, properties?: string[]): void;
| time(label?: string): void;
| timeEnd(label?: string): void;
| timeLog(label?: string, ...data: any[]): void;
| timeStamp(label?: string): void;
| trace(...data: any[]): void;
| warn(...data: any[]): void;
| }
|
| declare var console: Console;
|
| declare namespace WebAssembly {
| interface CompileError extends Error {
| }
|
| var CompileError: {
| prototype: CompileError;
| new(message?: string): CompileError;
| (message?: string): CompileError;
| };
|
| interface Global {
| value: any;
| valueOf(): any;
| }
|
| var Global: {
| prototype: Global;
| new(descriptor: GlobalDescriptor, v?: any): Global;
| };
|
| interface Instance {
| readonly exports: Exports;
| }
|
| var Instance: {
| prototype: Instance;
| new(module: Module, importObject?: Imports): Instance;
| };
|
| interface LinkError extends Error {
| }
|
| var LinkError: {
| prototype: LinkError;
| new(message?: string): LinkError;
| (message?: string): LinkError;
| };
|
| interface Memory {
| readonly buffer: ArrayBuffer;
| grow(delta: number): number;
| }
|
| var Memory: {
| prototype: Memory;
| new(descriptor: MemoryDescriptor): Memory;
| };
|
| interface Module {
| }
|
| var Module: {
| prototype: Module;
| new(bytes: BufferSource): Module;
| customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
| exports(moduleObject: Module): ModuleExportDescriptor[];
| imports(moduleObject: Module): ModuleImportDescriptor[];
| };
|
| interface RuntimeError extends Error {
| }
|
| var RuntimeError: {
| prototype: RuntimeError;
| new(message?: string): RuntimeError;
| (message?: string): RuntimeError;
| };
|
| interface Table {
| readonly length: number;
| get(index: number): any;
| grow(delta: number, value?: any): number;
| set(index: number, value?: any): void;
| }
|
| var Table: {
| prototype: Table;
| new(descriptor: TableDescriptor, value?: any): Table;
| };
|
| interface GlobalDescriptor {
| mutable?: boolean;
| value: ValueType;
| }
|
| interface MemoryDescriptor {
| initial: number;
| maximum?: number;
| shared?: boolean;
| }
|
| interface ModuleExportDescriptor {
| kind: ImportExportKind;
| name: string;
| }
|
| interface ModuleImportDescriptor {
| kind: ImportExportKind;
| module: string;
| name: string;
| }
|
| interface TableDescriptor {
| element: TableKind;
| initial: number;
| maximum?: number;
| }
|
| interface WebAssemblyInstantiatedSource {
| instance: Instance;
| module: Module;
| }
|
| type ImportExportKind = "function" | "global" | "memory" | "table";
| type TableKind = "anyfunc" | "externref";
| type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
| type ExportValue = Function | Global | Memory | Table;
| type Exports = Record<string, ExportValue>;
| type ImportValue = ExportValue | number;
| type Imports = Record<string, ModuleImports>;
| type ModuleImports = Record<string, ImportValue>;
| function compile(bytes: BufferSource): Promise<Module>;
| function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
| function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
| function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
| function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
| function validate(bytes: BufferSource): boolean;
| }
|
| interface FrameRequestCallback {
| (time: DOMHighResTimeStamp): void;
| }
|
| interface LockGrantedCallback {
| (lock: Lock | null): any;
| }
|
| interface OnErrorEventHandlerNonNull {
| (event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
| }
|
| interface PerformanceObserverCallback {
| (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
| }
|
| interface QueuingStrategySize<T = any> {
| (chunk: T): number;
| }
|
| interface TransformerFlushCallback<O> {
| (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
| }
|
| interface TransformerStartCallback<O> {
| (controller: TransformStreamDefaultController<O>): any;
| }
|
| interface TransformerTransformCallback<I, O> {
| (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkAbortCallback {
| (reason?: any): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkCloseCallback {
| (): void | PromiseLike<void>;
| }
|
| interface UnderlyingSinkStartCallback {
| (controller: WritableStreamDefaultController): any;
| }
|
| interface UnderlyingSinkWriteCallback<W> {
| (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourceCancelCallback {
| (reason?: any): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourcePullCallback<R> {
| (controller: ReadableStreamController<R>): void | PromiseLike<void>;
| }
|
| interface UnderlyingSourceStartCallback<R> {
| (controller: ReadableStreamController<R>): any;
| }
|
| interface VoidFunction {
| (): void;
| }
|
| /** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
| declare var name: string;
| declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
| declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
| /** Aborts dedicatedWorkerGlobal. */
| declare function close(): void;
| /** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
| declare function postMessage(message: any, transfer: Transferable[]): void;
| declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
| /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
| declare function dispatchEvent(event: Event): boolean;
| /** Returns workerGlobal's WorkerLocation object. */
| declare var location: WorkerLocation;
| /** Returns workerGlobal's WorkerNavigator object. */
| declare var navigator: WorkerNavigator;
| declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
| declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
| declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
| declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
| declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
| declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
| /** Returns workerGlobal. */
| declare var self: WorkerGlobalScope & typeof globalThis;
| /** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
| declare function importScripts(...urls: (string | URL)[]): void;
| /** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
| declare function dispatchEvent(event: Event): boolean;
| declare var fonts: FontFaceSet;
| /** Available only in secure contexts. */
| declare var caches: CacheStorage;
| declare var crossOriginIsolated: boolean;
| declare var crypto: Crypto;
| declare var indexedDB: IDBFactory;
| declare var isSecureContext: boolean;
| declare var origin: string;
| declare var performance: Performance;
| declare function atob(data: string): string;
| declare function btoa(data: string): string;
| declare function clearInterval(id: number | undefined): void;
| declare function clearTimeout(id: number | undefined): void;
| declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
| declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
| declare function queueMicrotask(callback: VoidFunction): void;
| declare function reportError(e: any): void;
| declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
| declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
| declare function cancelAnimationFrame(handle: number): void;
| declare function requestAnimationFrame(callback: FrameRequestCallback): number;
| declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
| declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
| declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
| declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
| type AlgorithmIdentifier = Algorithm | string;
| type BigInteger = Uint8Array;
| type BinaryData = ArrayBuffer | ArrayBufferView;
| type BlobPart = BufferSource | Blob | string;
| type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
| type BufferSource = ArrayBufferView | ArrayBuffer;
| type CanvasImageSource = ImageBitmap | OffscreenCanvas;
| type DOMHighResTimeStamp = number;
| type EpochTimeStamp = number;
| type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
| type Float32List = Float32Array | GLfloat[];
| type FormDataEntryValue = File | string;
| type GLbitfield = number;
| type GLboolean = boolean;
| type GLclampf = number;
| type GLenum = number;
| type GLfloat = number;
| type GLint = number;
| type GLint64 = number;
| type GLintptr = number;
| type GLsizei = number;
| type GLsizeiptr = number;
| type GLuint = number;
| type GLuint64 = number;
| type HashAlgorithmIdentifier = AlgorithmIdentifier;
| type HeadersInit = [string, string][] | Record<string, string> | Headers;
| type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
| type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
| type Int32List = Int32Array | GLint[];
| type MessageEventSource = MessagePort | ServiceWorker;
| type NamedCurve = string;
| type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
| type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
| type PerformanceEntryList = PerformanceEntry[];
| type PushMessageDataInit = BufferSource | string;
| type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
| type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
| type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
| type RequestInfo = Request | string;
| type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
| type TimerHandler = string | Function;
| type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
| type Uint32List = Uint32Array | GLuint[];
| type VibratePattern = number | number[];
| type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
| type BinaryType = "arraybuffer" | "blob";
| type CanvasDirection = "inherit" | "ltr" | "rtl";
| type CanvasFillRule = "evenodd" | "nonzero";
| type CanvasFontKerning = "auto" | "none" | "normal";
| type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
| type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
| type CanvasLineCap = "butt" | "round" | "square";
| type CanvasLineJoin = "bevel" | "miter" | "round";
| type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
| type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
| type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
| type ClientTypes = "all" | "sharedworker" | "window" | "worker";
| type ColorGamut = "p3" | "rec2020" | "srgb";
| type ColorSpaceConversion = "default" | "none";
| type DocumentVisibilityState = "hidden" | "visible";
| type EndingType = "native" | "transparent";
| type FileSystemHandleKind = "directory" | "file";
| type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
| type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
| type FontFaceSetLoadStatus = "loaded" | "loading";
| type FrameType = "auxiliary" | "nested" | "none" | "top-level";
| type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
| type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
| type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
| type IDBRequestReadyState = "done" | "pending";
| type IDBTransactionDurability = "default" | "relaxed" | "strict";
| type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
| type ImageOrientation = "flipY" | "from-image";
| type ImageSmoothingQuality = "high" | "low" | "medium";
| type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
| type KeyType = "private" | "public" | "secret";
| type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
| type LockMode = "exclusive" | "shared";
| type MediaDecodingType = "file" | "media-source" | "webrtc";
| type MediaEncodingType = "record" | "webrtc";
| type NotificationDirection = "auto" | "ltr" | "rtl";
| type NotificationPermission = "default" | "denied" | "granted";
| type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
| type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
| type PermissionState = "denied" | "granted" | "prompt";
| type PredefinedColorSpace = "display-p3" | "srgb";
| type PremultiplyAlpha = "default" | "none" | "premultiply";
| type PushEncryptionKeyName = "auth" | "p256dh";
| type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
| type ReadableStreamReaderMode = "byob";
| type ReadableStreamType = "bytes";
| type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
| type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
| type RequestCredentials = "include" | "omit" | "same-origin";
| type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
| type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
| type RequestRedirect = "error" | "follow" | "manual";
| type ResizeQuality = "high" | "low" | "medium" | "pixelated";
| type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
| type SecurityPolicyViolationEventDisposition = "enforce" | "report";
| type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
| type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
| type TransferFunction = "hlg" | "pq" | "srgb";
| type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
| type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
| type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
| type WebGLPowerPreference = "default" | "high-performance" | "low-power";
| type WorkerType = "classic" | "module";
| type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
| `;$i["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
|
| /////////////////////////////
| /// WorkerGlobalScope APIs
| /////////////////////////////
| // These are only available in a Web Worker
| declare function importScripts(...urls: string[]): void;
| `;$i["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
| Copyright (c) Microsoft Corporation. All rights reserved.
| Licensed under the Apache License, Version 2.0 (the "License"); you may not use
| this file except in compliance with the License. You may obtain a copy of the
| License at http://www.apache.org/licenses/LICENSE-2.0
|
| THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
| KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
| WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
| MERCHANTABLITY OR NON-INFRINGEMENT.
|
| See the Apache Version 2.0 License for specific language governing permissions
| and limitations under the License.
| ***************************************************************************** */
|
|
| /// <reference no-default-lib="true"/>
|
| /////////////////////////////
| /// Worker Iterable APIs
| /////////////////////////////
|
| interface Cache {
| addAll(requests: Iterable<RequestInfo>): Promise<void>;
| }
|
| interface CanvasPath {
| roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
| }
|
| interface CanvasPathDrawingStyles {
| setLineDash(segments: Iterable<number>): void;
| }
|
| interface DOMStringList {
| [Symbol.iterator](): IterableIterator<string>;
| }
|
| interface FileList {
| [Symbol.iterator](): IterableIterator<File>;
| }
|
| interface FontFaceSet extends Set<FontFace> {
| }
|
| interface FormData {
| [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
| /** Returns an array of key, value pairs for every entry in the list. */
| entries(): IterableIterator<[string, FormDataEntryValue]>;
| /** Returns a list of keys in the list. */
| keys(): IterableIterator<string>;
| /** Returns a list of values in the list. */
| values(): IterableIterator<FormDataEntryValue>;
| }
|
| interface Headers {
| [Symbol.iterator](): IterableIterator<[string, string]>;
| /** Returns an iterator allowing to go through all key/value pairs contained in this object. */
| entries(): IterableIterator<[string, string]>;
| /** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
| keys(): IterableIterator<string>;
| /** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
| values(): IterableIterator<string>;
| }
|
| interface IDBDatabase {
| /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
| transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
| }
|
| interface IDBObjectStore {
| /**
| * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
| *
| * Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
| */
| createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
| }
|
| interface MessageEvent<T = any> {
| /** @deprecated */
| initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
| }
|
| interface SubtleCrypto {
| deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
| generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
| importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
| importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
| }
|
| interface URLSearchParams {
| [Symbol.iterator](): IterableIterator<[string, string]>;
| /** Returns an array of key, value pairs for every entry in the search params. */
| entries(): IterableIterator<[string, string]>;
| /** Returns a list of keys in the search params. */
| keys(): IterableIterator<string>;
| /** Returns a list of values in the search params. */
| values(): IterableIterator<string>;
| }
|
| interface WEBGL_draw_buffers {
| drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
| }
|
| interface WEBGL_multi_draw {
| multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
| multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
| }
|
| interface WebGL2RenderingContextBase {
| clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
| clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
| clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
| drawBuffers(buffers: Iterable<GLenum>): void;
| getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
| getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
| invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
| invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
| transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
| uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
| vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
| }
|
| interface WebGL2RenderingContextOverloads {
| uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
| }
|
| interface WebGLRenderingContextBase {
| vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
| vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
| }
|
| interface WebGLRenderingContextOverloads {
| uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
| uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
| uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
| }
| `;function e_(zd){return typeof zd=="string"?/^file:\/\/\//.test(zd)?!!$i[zd.substr(8)]:!1:zd.path.indexOf("/lib.")===0?!!$i[zd.path.slice(1)]:!1}var o8=class zd{constructor(ti,gt){this._extraLibs=Object.create(null);this._languageService=iae(this);this._ctx=ti,this._compilerOptions=gt.compilerOptions,this._extraLibs=gt.extraLibs,this._inlayHintsOptions=gt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(hs=>hs.uri).filter(hs=>!e_(hs)).map(hs=>hs.toString()).concat(Object.keys(this._extraLibs))}_getModel(ti){let gt=this._ctx.getMirrorModels();for(let hs=0;hs<gt.length;hs++){let Mo=gt[hs].uri;if(Mo.toString()===ti||Mo.toString(!0)===ti)return gt[hs]}return null}getScriptVersion(ti){let gt=this._getModel(ti);return gt?gt.version.toString():this.isDefaultLibFileName(ti)?"1":ti in this._extraLibs?String(this._extraLibs[ti].version):""}async getScriptText(ti){return this._getScriptText(ti)}_getScriptText(ti){let gt,hs=this._getModel(ti),Mo="lib."+ti+".d.ts";if(hs)gt=hs.getValue();else if(ti in $i)gt=$i[ti];else if(Mo in $i)gt=$i[Mo];else if(ti in this._extraLibs)gt=this._extraLibs[ti].content;else return;return gt}getScriptSnapshot(ti){let gt=this._getScriptText(ti);if(gt!==void 0)return{getText:(hs,Mo)=>gt.substring(hs,Mo),getLength:()=>gt.length,getChangeRange:()=>{}}}getScriptKind(ti){switch(ti.substr(ti.lastIndexOf(".")+1)){case"ts":return uA.TS;case"tsx":return uA.TSX;case"js":return uA.JS;case"jsx":return uA.JSX;default:return this.getCompilationSettings().allowJs?uA.JS:uA.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(ti){switch(ti.target){case 99:let gt="lib.esnext.full.d.ts";if(gt in $i||gt in this._extraLibs)return gt;case 7:case 6:case 5:case 4:case 3:case 2:default:let hs=`lib.es${2013+(ti.target||99)}.full.d.ts`;return hs in $i||hs in this._extraLibs?hs:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(ti){return ti===this.getDefaultLibFileName(this._compilerOptions)}readFile(ti){return this._getScriptText(ti)}fileExists(ti){return this._getScriptText(ti)!==void 0}async getLibFiles(){return $i}static clearFiles(ti){let gt=[];for(let hs of ti){let Mo={...hs};if(Mo.file=Mo.file?{fileName:Mo.file.fileName}:void 0,hs.relatedInformation){Mo.relatedInformation=[];for(let Sg of hs.relatedInformation){let Rf={...Sg};Rf.file=Rf.file?{fileName:Rf.file.fileName}:void 0,Mo.relatedInformation.push(Rf)}}gt.push(Mo)}return gt}async getSyntacticDiagnostics(ti){if(e_(ti))return[];let gt=this._languageService.getSyntacticDiagnostics(ti);return zd.clearFiles(gt)}async getSemanticDiagnostics(ti){if(e_(ti))return[];let gt=this._languageService.getSemanticDiagnostics(ti);return zd.clearFiles(gt)}async getSuggestionDiagnostics(ti){if(e_(ti))return[];let gt=this._languageService.getSuggestionDiagnostics(ti);return zd.clearFiles(gt)}async getCompilerOptionsDiagnostics(ti){if(e_(ti))return[];let gt=this._languageService.getCompilerOptionsDiagnostics();return zd.clearFiles(gt)}async getCompletionsAtPosition(ti,gt){if(!e_(ti))return this._languageService.getCompletionsAtPosition(ti,gt,void 0)}async getCompletionEntryDetails(ti,gt,hs){return this._languageService.getCompletionEntryDetails(ti,gt,hs,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(ti,gt,hs){if(!e_(ti))return this._languageService.getSignatureHelpItems(ti,gt,hs)}async getQuickInfoAtPosition(ti,gt){if(!e_(ti))return this._languageService.getQuickInfoAtPosition(ti,gt)}async getDocumentHighlights(ti,gt,hs){if(!e_(ti))return this._languageService.getDocumentHighlights(ti,gt,hs)}async getDefinitionAtPosition(ti,gt){if(!e_(ti))return this._languageService.getDefinitionAtPosition(ti,gt)}async getReferencesAtPosition(ti,gt){if(!e_(ti))return this._languageService.getReferencesAtPosition(ti,gt)}async getNavigationTree(ti){if(!e_(ti))return this._languageService.getNavigationTree(ti)}async getFormattingEditsForDocument(ti,gt){return e_(ti)?[]:this._languageService.getFormattingEditsForDocument(ti,gt)}async getFormattingEditsForRange(ti,gt,hs,Mo){return e_(ti)?[]:this._languageService.getFormattingEditsForRange(ti,gt,hs,Mo)}async getFormattingEditsAfterKeystroke(ti,gt,hs,Mo){return e_(ti)?[]:this._languageService.getFormattingEditsAfterKeystroke(ti,gt,hs,Mo)}async findRenameLocations(ti,gt,hs,Mo,Sg){if(!e_(ti))return this._languageService.findRenameLocations(ti,gt,hs,Mo,Sg)}async getRenameInfo(ti,gt,hs){return e_(ti)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(ti,gt,hs)}async getEmitOutput(ti){return e_(ti)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(ti)}async getCodeFixesAtPosition(ti,gt,hs,Mo,Sg){if(e_(ti))return[];let Rf={};try{return this._languageService.getCodeFixesAtPosition(ti,gt,hs,Mo,Sg,Rf)}catch{return[]}}async updateExtraLibs(ti){this._extraLibs=ti}async provideInlayHints(ti,gt,hs){if(e_(ti))return[];let Mo=this._inlayHintsOptions??{},Sg={start:gt,length:hs-gt};try{return this._languageService.provideInlayHints(ti,Sg,Mo)}catch{return[]}}};function Lit(zd,ti){let gt=o8;if(ti.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(ti.customWorkerPath);let hs=self.customTSWorkerFactory;if(!hs)throw new Error(`The script at ${ti.customWorkerPath} does not add customTSWorkerFactory to self`);gt=hs(o8,oae,$i)}return new gt(zd,ti)}globalThis.ts=aae;return bit(kit);})();
| /*! *****************************************************************************
| 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.
| ***************************************************************************** */
| return moduleExports;
| });
|
|