All files / prettier/plugins angular.mjs

77.02% Statements 3742/4858
90.06% Branches 798/886
64.67% Functions 271/419
77.02% Lines 3742/4858

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 48593x 3x   3x 3x 6x 6x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x                                           3x 3x 3x 3x 3x 3x 3x 3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x     3x 3x 3x 3x 3x 3x 3x 3x     3x     3x     3x     3x     3x 3x                                   3x 3x                                                   3x 3x                                           3x 3x                                           3x 3x                                                   3x 3x                                       3x 3x                                   3x 3x                                       3x 3x                                             3x 3x                                           3x 3x                                                     3x 3x                                             3x 3x                                   3x 3x                                             3x 3x 3x 3x 3x 3x 3x 3x 3x 3x                               3x 3x                               3x 3x                       3x 3x 3x 3x 3x 3x 3x 3x                                                             3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 17x 17x 17x 17x 17x 17x 17x 17x 17x 17x 3x 3x 21362x 21362x 21362x 21362x 21362x 21362x 21362x 10502x 10502x 3x 3x 11712x 11712x 11712x 11712x 11712x 11712x 11712x     3x 3x 3824x 3824x 3824x 3824x 3824x 3x 3x 3x   3x 3x 3x     3x 3x 3x       3x 3x 5x 5x 5x 5x 5x 5x     3x 3x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x     3x 3x 3445x 3445x 3445x 3445x 3445x 3445x 3445x 3445x     3x 3x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x     3x 3x 65x 65x 65x 65x 65x 65x 65x 65x     3x 3x 37x 37x 37x 37x 37x 37x 37x 37x     3x 3x 11x 11x 11x 11x 11x 11x 11x 11x     3x 3x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x     3x 3x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x     3x 3x 789x 789x 789x 789x 789x 789x     3x 3x 41x 41x 41x 41x 41x 41x     3x 3x 129x 129x 129x 129x 129x 129x 129x 129x     3x 3x 724x 724x 724x 724x 724x 724x 724x 724x     3x 3x 328x 328x 328x 328x 328x 328x 328x 328x 328x 328x     3x 3x 17x 17x 17x 17x 17x 17x 17x 17x 17x 17x 17x 12x 12x 17x 17x 17x 17x 5x 5x 17x 17x 17x 17x 17x 17x 17x 17x 17x 17x           3x 3x 99x 99x 99x 99x 99x 99x     3x 3x 10x 10x 10x 10x 10x 10x     3x 3x 1x 1x 1x 1x 1x 1x     3x 3x 16x 16x 16x 16x 16x 16x     3x 3x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x     3x 3x                         3x 3x 1x 1x 1x 1x 1x 1x 1x 1x     3x 3x 9x 9x 9x 9x 9x 9x 9x 9x     3x 3x 19x 19x 19x 19x 19x 19x     3x 3x 90x 90x 90x 90x 90x 90x     3x 3x 14229x 14229x 14229x 14229x 14229x 14229x 3x 3x 2248x 2248x 2248x 2248x 2248x 2248x 2248x 2248x 2248x 2248x 2248x 2248x           2248x     3x 3x 175x 175x 175x 175x 175x 175x 175x 175x 175x 175x 175x 175x 175x 3x 3x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 541x 3x 3x 3x     3x     3x       3x     3x         3x       3x   3x   3x     3x       3x         3x     3x     3x   3x     3x     3x     3x     3x     3x       3x     3x       3x       3x       3x                 3x   3x       3x     3x 3x         3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x                           3x 3x 3x 3x             3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x       10486x 10486x 10486x 28499x 28499x 28499x 81936x 81936x 81936x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x                       3x 3x 3x     3x 3x                                                     3x 3x                                                                                                                       3x 3x                                                                         3x 3x                                                                     3x 3x 3x 3x 3x 3x     3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 2149x 2149x 3x 3x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 9276x 32024x 32024x 9276x 690x 690x 9276x 8968x 8968x 9276x 30337x 30337x 9276x 7916x 7916x 9276x 2x 2x 9276x 72x 72x 9276x 918x 918x 9276x 1312x 1312x 9276x 3796x 3796x 9276x 3785x 3785x 9276x 3773x 3773x 9276x 3730x 3730x 9276x 3704x 3704x 9276x 3895x 3895x 9276x 3885x 3885x 9276x 3704x 3704x 9276x 28x 28x 9276x 409x 409x 9276x 4205x 4205x 9276x 4214x 4214x 9276x 20x 20x 9276x     9276x 4680x 4680x 4680x 4680x 4680x 4680x 4680x 4680x 4680x 4680x   4680x   4680x 4680x 3x 3x 342x 342x 342x 342x 342x 3x 2872x 2872x 2872x 4334x 4334x 4334x       314x 314x 314x 1002x 1002x 1002x 409x 409x 409x       3x 3x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 9253x 9253x 9253x 2149x 2149x 2149x 39449x 39449x 2149x 11402x 11402x 11402x 11402x 11402x 9329x 2149x 2149x 9329x 7180x 7180x 9329x 11402x 11402x 11402x 2149x 2149x 11402x 4648x 4648x 11402x 409x 409x 4196x 4196x 11402x 556x 556x 11402x 11402x 11402x 11402x 11402x 11402x 11402x 2058x 11402x 129x 11402x 139x 11402x 11402x 323x 11402x 9x 9x 11402x   11402x 11402x 11402x 11402x 11402x 85x 11402x 1x 11402x 185x 11402x 11402x 1x 11402x 11402x 346x 11402x 53x 11402x 311x 11402x       11402x     11402x 2149x 2058x 2058x 2058x 2149x 85x 85x 85x 2149x 129x 129x 129x 129x 2149x 139x 139x 139x 10x 10x 10x 129x 139x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 712x 712x 712x 240x 240x 240x 712x 39x 39x 39x 712x 712x 2149x 4648x 4648x 4648x 4648x 4648x 4648x 4648x 2149x 2149x                     2149x 409x 409x 409x 409x 645x 409x         409x   409x             409x 409x 409x 236x 236x 409x 409x     409x 409x 409x 2149x 323x 323x 323x 323x 323x 323x 323x 3156x 13x 13x     13x 13x 3156x   3143x 3143x 3143x 3156x 323x 323x 323x 323x 2149x 185x 185x 185x 77x 77x 77x 185x 185x 2149x 19x 19x 19x 86x 3x 3x     3x 3x 86x 10x 10x 10x 10x 10x 10x 10x 10x 83x   73x 73x 73x 86x 9x 9x 9x 19x 2149x       2149x 16x 16x 16x 16x 1x 1x 1x 1x     1x 5x 5x 16x 15x 15x 15x 16x 16x 16x 3x 9253x 9253x 9253x 28499x 28499x 28499x 409x 409x 409x       15x 15x 15x   15x   15x   15x   15x   15x 15x 15x 15x 409x 409x 409x     409x 409x 3x                 3x 3x 314x 314x 314x 314x 314x 314x 314x 314x 3x 3x 2152x 2152x 2152x 2152x 2152x 2152x 295x 295x 295x 295x 295x 295x 2152x 816x 816x 816x 2152x         2152x 2152x               2152x     2152x 816x 816x 816x 816x 816x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 314x 2152x                           2152x 2152x 2152x 2152x 2152x 2152x 724x 724x 724x 724x 724x 724x 2152x 724x 724x 724x 724x 2152x 2152x 2152x 2152x 2152x 2152x 2152x 2152x                                                                                                       2152x       2152x 1835x 1835x 1835x 2152x 3670x 3670x 67790x 67790x 67790x 67790x 67790x 466x 67790x 600x 600x 67790x 3650x 3670x 2152x 1111x 1111x 1111x 19303x 19303x     19303x           19303x 1111x     1111x 2152x 2152x 2152x 2152x 2152x                     2152x 2152x 2152x 2152x 2152x 2152x 1111x 1111x 1111x 20862x 20862x 316x 20862x 19303x 19303x 20862x 20862x 1111x 3x 3x 3x 3x 3x 3x 3x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 230837x 230837x 230837x 2149x 210861x 210861x 2149x 2149x 65236x 65236x 2149x 2149x 2149x 2149x 2149x 65236x 65236x 2149x 2149x 2149x 2149x 2149x 23186x 19976x 19976x 19976x 23186x 30x 30x 3180x 23186x 2149x 2149x 2149x 2149x 1838x 1838x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 18390x 18390x 64x 64x 18390x 1482x 1482x 1482x 1482x 18390x 18390x 2149x 12326x 12326x 9521x 9521x 12326x 12326x 2149x 9273x 9273x 2149x 2149x 2149x 2149x 3508x 3508x 3508x 3508x 3508x 2149x 27766x 2866x 2866x 27766x 24900x 24900x 27766x 2149x 918x 918x 2149x 1312x 1312x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 631x 631x   631x 2149x 30289x 659x 659x 30289x 29630x 29630x 30289x 2149x         2149x     2149x 3714x 3714x               3714x 3714x 3714x 2149x 678x 678x               678x 678x 678x 2149x 1835x 1835x 1835x 1835x 1835x 1835x 5x     5x   1835x 15x 15x 15x     15x 1835x 1835x 5x 5x 5x 5x 1830x 1835x 5x 1835x 2149x 3182x 3182x 3182x 249x     249x 259x 259x 259x 259x 259x 259x 259x         259x 259x 333x 333x 259x 249x 249x 3182x 3182x 2149x 3515x 3515x 2149x 3575x 3575x 3575x 108x 108x 108x         108x 108x 108x 108x 3575x 3467x 3467x 3575x 2149x 3575x 3575x 3575x 52x 52x 52x 3575x 3575x 2149x 3627x 3627x 3627x 53x 53x 53x 3627x 3627x 2149x 3680x 3680x 3680x 1x 1x 1x 3680x 3680x 2149x 3681x 3681x 3681x 608x 608x 608x 608x 608x 608x 134x 134x 134x 134x 608x 474x 474x 3681x 3681x 2149x 3815x 3815x 3815x 3817x 3817x 3817x 3817x 3817x 3817x 3817x 2x 2x 2x 2x 3817x 3815x 3815x 3815x 3815x 2149x 3817x 3817x 3817x 677x 677x 677x 677x 68x 68x 68x 68x 677x 609x 609x 3817x 3817x 2149x 3885x 3885x 3885x 677x 677x 677x 677x 677x         677x 677x 677x 3885x 3885x 2149x 3886x 3886x 3886x 1x     1x 1x 1x 1x 3886x 3886x 2149x 4013x 118x 118x 118x 118x 118x 5x 5x 5x 118x 12x 12x 12x 118x 99x 99x 99x 118x 4013x 10x 10x 10x 10x 3895x 1x 1x 1x 1x 1x 3886x 4013x 2149x 3886x 3886x 3886x 4834x 556x 4834x 76x   76x 76x 76x 4278x 42x 4202x 257x 4160x 16x 3903x   3887x 1x 3887x 3886x 3886x 4834x 3886x 2149x 3886x 3886x 90x 90x 90x       90x 90x 3886x 11x 11x 3796x 12x 12x 3785x 43x 43x 3773x 26x 26x 3730x     3704x 10x 10x 3704x 41x 41x 41x 41x 41x 3694x 129x 3653x 2834x 3518x 409x 409x 409x 690x 1x 281x 7x 280x 271x 271x 271x 271x     2x     2x 2x 2x 2x 3886x 2149x 41x 41x 184x 175x 184x 9x 9x 41x 41x 41x 2149x 129x 129x 129x 129x 129x 104x 104x 229x 229x 229x 229x 229x 229x 47x 47x 229x 72x 182x 110x 110x 110x 110x 110x 104x 104x 104x 104x 129x 129x 2149x 3455x 3455x 3455x 3455x     3455x 3455x 3455x 3455x 3455x 65x     65x 65x 65x 3455x 3390x 55x       55x 55x 3390x 3335x 3335x 3390x 3455x 3455x 2149x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 2149x 257x 257x 145x 252x 271x 252x 145x 257x 2149x 2149x 2149x 2149x 2149x 449x 449x 449x 449x 449x 449x 449x     449x 449x 449x 449x 449x 449x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 314x 314x 314x 387x 387x 147x 387x 240x 240x 240x 13x 240x 227x 227x 227x 240x 387x 387x 314x 314x 2149x 53x 53x 53x 53x     53x 53x 53x 5x   5x 5x 5x 5x 53x 48x 48x   53x 53x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 541x 541x 541x 541x 541x 541x 526x 526x 526x 541x 541x 541x 15x 15x 541x 541x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 541x 128x 128x 413x 413x 413x 413x 541x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 781x 753x 753x 28x 28x 28x 28x 28x 781x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 387x 240x 240x 147x 147x 147x 147x 387x 34x 34x 147x 147x 147x 387x 2149x       2149x 1x 1x 1x 1x 1x 1x 1x 2149x 1x 1x 1x 2149x 8x 8x 8x 8x 38x 38x 18x 18x 18x 18x 8x 8x 38x 10x 10x 10x   10x 10x 10x 10x 10x 10x 38x 8x 8x 2149x 2149x 2149x 2149x 1088x 1088x 2149x 2149x 2149x 2149x 2149x 17x 17x 17x 2149x 17x 17x 17x 17x 2149x 2149x 2149x 2149x 2149x 2149x             2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 2149x 17x 17x 28x     28x 28x 28x 17x 3x 3x         3x                                           3x 3x 3x 3x 3x 3x 3x 3x 3x 18x 18x 3x 3x 27x 27x 27x 15x 15x   15x 15x       3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x       3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x           3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 17152x 17152x 17152x 17152x 32x 32x 17152x 32x 32x 17152x 17152x 8777x 8777x 8777x 8777x 5033x 5033x 8777x 7570x 7570x 8777x 8777x 8777x 8777x 8777x 8576x 8576x 8576x 8576x 8777x 8777x 8777x 8576x 8576x 201x 201x 201x 201x 8576x 8576x 8576x 8576x 8576x 8576x 4716x 4716x 563x 563x 4153x 4716x 3839x 3839x 3839x 3988x 3988x 3839x 3839x 3988x   3839x 877x 877x 877x 1909x 1909x 877x 877x 1909x   877x 223x 223x 223x 8635x 8635x 8635x 8635x 8635x 8635x 8635x 8635x 3x 3x 3x 1835x 1835x 3x 2149x 2149x 2149x 2129x 2129x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 2149x 15x 15x 2149x 2149x 2149x 2149x 2149x 16x 16x 16x 2133x 15x 15x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 466x     466x 466x 466x   3x 3x 3x 3x 3x 2133x 2133x 2133x 2133x 2133x 877x 877x 2133x 3839x 3839x 2133x 8615x 39x 39x 8576x 8576x 8615x 75x 75x 75x 75x 75x 75x 8576x 8615x 2133x 8595x 8595x 8595x 8595x 8595x 8595x 8595x 8595x 8595x 8595x 8595x 727x 727x 727x 727x 727x 8595x 229x 229x 110x 110x 229x 229x 8595x 8595x 8595x 3x 3x 3x 3x 7238x 7238x 7238x 7238x 2197x 2197x 2197x 5012x 5012x 5012x 930x 930x 930x 7090x 7090x 7090x 7090x 3x 3x 3x 2133x 2133x 2133x 2133x 2133x 2133x 2133x 3x 1820x 1820x 3x 408x 408x 3x 3x 3x 3x 3x 7065x 3x 3x 3599x 2926x 2926x 673x 673x 673x 3599x 3599x 3599x 3599x 3599x 3599x 3599x 3599x 3x 3x 5974x 3x 3x 6472x 6472x 6472x 6472x 6472x 714x 714x     714x 714x 6472x 17x 17x 17x 17x 17x 17x 17x 17x 6472x 311x 311x 311x 311x 311x 311x 311x 106x 106x 106x 106x 106x 106x 205x 205x 205x 205x 205x 205x 6472x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 259x 153x 153x 153x 153x 153x 259x 259x 259x 6472x 5x 5x 5x 5x 5x 5x 6472x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 108x 6472x 5x 5x 6472x 10x 10x 6472x 48x 48x 48x 48x 48x 48x 48x 48x 6472x 41x 41x 41x 41x 41x 41x 6472x 129x 129x 129x 229x 229x 229x 229x 229x 229x 229x 47x 47x 47x 229x 182x 182x 182x 229x 229x 229x 229x 229x 229x 229x 229x 229x 229x 229x 129x 129x 129x 129x 129x 129x 129x 6472x 772x 772x 772x 69x 772x 409x 772x 11x 772x 271x 772x 12x 1x 1x 1x 1x 1x 6472x 257x 257x 257x 111x 111x 111x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 257x 6472x 16x 16x 16x 16x 16x 16x 16x 16x 16x 6472x 110x 1x 1x 110x 110x     110x 110x 11x 11x     11x 11x 110x 110x 110x 110x 110x 110x 110x 110x 110x 110x 6472x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 3491x 6472x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 5x 6472x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 55x 6472x 1x 1x 1x 1x 1x 1x 1x 6472x 9x 9x 9x 9x 9x 9x 9x 9x 6472x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 90x 90x 90x   3x 1820x 1820x 1820x 3x 3x 852x 852x 852x 858x 858x 858x 3x 3x 3x 313x 313x 313x 313x 313x 313x 313x 708x 708x 313x 3x 313x 313x 3x 3x 3x 3x 3x 223x 3x 3x 1530x 3x 3x 408x 3x 3x 223x 3x 3x 3x 3x 3x 3x 767x 767x 747x 747x 20x 20x 674x 140x 140x 20x 20x 20x 20x 140x 140x 120x 120x 140x     140x 140x 3x 3x 708x 708x 59x 59x 3x 3x 3x 3x 3x 13x 13x 13x           3x 3x 313x 313x 313x 313x 313x 313x 590x 15x 15x 15x 15x 15x 15x 20x 20x 15x 15x 15x 15x 15x 15x 15x 10x 15x 5x 5x 5x     590x 575x 575x 590x 590x 313x 313x 313x 313x 313x 313x 313x 313x 313x 313x 3x 3x 575x 418x 418x 10x 10x 10x 10x 10x 418x 195x 195x 195x 195x 195x 195x 408x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 213x 575x 157x 157x 157x 144x 144x 144x 144x 144x 144x 144x 144x 144x 31x 31x 31x 144x 144x 144x 144x 157x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 13x 157x 3x 313x 313x 313x 3x 3x 1820x 1820x 1820x 313x 313x 313x 3x 3x 3x 3x 3x 3x 3x 3x                                         3x 3x 12x 12x 12x 12x 2149x 2149x 2149x 2149x 2149x 12x 12x 12x 12x 12x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x 3x  
var __defProp = Object.defineProperty;
var __typeError = (msg) => {
  throw TypeError(msg);
};
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
 
// src/plugins/angular.js
var angular_exports2 = {};
__export(angular_exports2, {
  parsers: () => angular_exports
});
 
// src/language-js/parse/angular.js
var angular_exports = {};
__export(angular_exports, {
  __ng_action: () => __ng_action,
  __ng_binding: () => __ng_binding,
  __ng_directive: () => __ng_directive,
  __ng_interpolation: () => __ng_interpolation
});
 
// node_modules/@angular/compiler/fesm2022/compiler.mjs
var _SELECTOR_REGEXP = new RegExp(
  `(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
  // 8: ","
  "g"
);
var ViewEncapsulation$1;
(function(ViewEncapsulation2) {
  ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
  ViewEncapsulation2[ViewEncapsulation2["None"] = 2] = "None";
  ViewEncapsulation2[ViewEncapsulation2["ShadowDom"] = 3] = "ShadowDom";
})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
var ChangeDetectionStrategy;
(function(ChangeDetectionStrategy2) {
  ChangeDetectionStrategy2[ChangeDetectionStrategy2["OnPush"] = 0] = "OnPush";
  ChangeDetectionStrategy2[ChangeDetectionStrategy2["Default"] = 1] = "Default";
})(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
var InputFlags;
(function(InputFlags2) {
  InputFlags2[InputFlags2["None"] = 0] = "None";
  InputFlags2[InputFlags2["SignalBased"] = 1] = "SignalBased";
  InputFlags2[InputFlags2["HasDecoratorInputTransform"] = 2] = "HasDecoratorInputTransform";
})(InputFlags || (InputFlags = {}));
var SecurityContext;
(function(SecurityContext2) {
  SecurityContext2[SecurityContext2["NONE"] = 0] = "NONE";
  SecurityContext2[SecurityContext2["HTML"] = 1] = "HTML";
  SecurityContext2[SecurityContext2["STYLE"] = 2] = "STYLE";
  SecurityContext2[SecurityContext2["SCRIPT"] = 3] = "SCRIPT";
  SecurityContext2[SecurityContext2["URL"] = 4] = "URL";
  SecurityContext2[SecurityContext2["RESOURCE_URL"] = 5] = "RESOURCE_URL";
})(SecurityContext || (SecurityContext = {}));
var MissingTranslationStrategy;
(function(MissingTranslationStrategy2) {
  MissingTranslationStrategy2[MissingTranslationStrategy2["Error"] = 0] = "Error";
  MissingTranslationStrategy2[MissingTranslationStrategy2["Warning"] = 1] = "Warning";
  MissingTranslationStrategy2[MissingTranslationStrategy2["Ignore"] = 2] = "Ignore";
})(MissingTranslationStrategy || (MissingTranslationStrategy = {}));
var FactoryTarget;
(function(FactoryTarget2) {
  FactoryTarget2[FactoryTarget2["Directive"] = 0] = "Directive";
  FactoryTarget2[FactoryTarget2["Component"] = 1] = "Component";
  FactoryTarget2[FactoryTarget2["Injectable"] = 2] = "Injectable";
  FactoryTarget2[FactoryTarget2["Pipe"] = 3] = "Pipe";
  FactoryTarget2[FactoryTarget2["NgModule"] = 4] = "NgModule";
})(FactoryTarget || (FactoryTarget = {}));
var R3TemplateDependencyKind$1;
(function(R3TemplateDependencyKind2) {
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Pipe"] = 1] = "Pipe";
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
})(R3TemplateDependencyKind$1 || (R3TemplateDependencyKind$1 = {}));
var ViewEncapsulation;
(function(ViewEncapsulation2) {
  ViewEncapsulation2[ViewEncapsulation2["Emulated"] = 0] = "Emulated";
  ViewEncapsulation2[ViewEncapsulation2["None"] = 2] = "None";
  ViewEncapsulation2[ViewEncapsulation2["ShadowDom"] = 3] = "ShadowDom";
})(ViewEncapsulation || (ViewEncapsulation = {}));
var Endian;
(function(Endian2) {
  Endian2[Endian2["Little"] = 0] = "Little";
  Endian2[Endian2["Big"] = 1] = "Big";
})(Endian || (Endian = {}));
var TypeModifier;
(function(TypeModifier2) {
  TypeModifier2[TypeModifier2["None"] = 0] = "None";
  TypeModifier2[TypeModifier2["Const"] = 1] = "Const";
})(TypeModifier || (TypeModifier = {}));
var BuiltinTypeName;
(function(BuiltinTypeName2) {
  BuiltinTypeName2[BuiltinTypeName2["Dynamic"] = 0] = "Dynamic";
  BuiltinTypeName2[BuiltinTypeName2["Bool"] = 1] = "Bool";
  BuiltinTypeName2[BuiltinTypeName2["String"] = 2] = "String";
  BuiltinTypeName2[BuiltinTypeName2["Int"] = 3] = "Int";
  BuiltinTypeName2[BuiltinTypeName2["Number"] = 4] = "Number";
  BuiltinTypeName2[BuiltinTypeName2["Function"] = 5] = "Function";
  BuiltinTypeName2[BuiltinTypeName2["Inferred"] = 6] = "Inferred";
  BuiltinTypeName2[BuiltinTypeName2["None"] = 7] = "None";
})(BuiltinTypeName || (BuiltinTypeName = {}));
var INFERRED_TYPE = void 0;
var UnaryOperator;
(function(UnaryOperator2) {
  UnaryOperator2[UnaryOperator2["Minus"] = 0] = "Minus";
  UnaryOperator2[UnaryOperator2["Plus"] = 1] = "Plus";
})(UnaryOperator || (UnaryOperator = {}));
var BinaryOperator;
(function(BinaryOperator2) {
  BinaryOperator2[BinaryOperator2["Equals"] = 0] = "Equals";
  BinaryOperator2[BinaryOperator2["NotEquals"] = 1] = "NotEquals";
  BinaryOperator2[BinaryOperator2["Identical"] = 2] = "Identical";
  BinaryOperator2[BinaryOperator2["NotIdentical"] = 3] = "NotIdentical";
  BinaryOperator2[BinaryOperator2["Minus"] = 4] = "Minus";
  BinaryOperator2[BinaryOperator2["Plus"] = 5] = "Plus";
  BinaryOperator2[BinaryOperator2["Divide"] = 6] = "Divide";
  BinaryOperator2[BinaryOperator2["Multiply"] = 7] = "Multiply";
  BinaryOperator2[BinaryOperator2["Modulo"] = 8] = "Modulo";
  BinaryOperator2[BinaryOperator2["And"] = 9] = "And";
  BinaryOperator2[BinaryOperator2["Or"] = 10] = "Or";
  BinaryOperator2[BinaryOperator2["BitwiseOr"] = 11] = "BitwiseOr";
  BinaryOperator2[BinaryOperator2["BitwiseAnd"] = 12] = "BitwiseAnd";
  BinaryOperator2[BinaryOperator2["Lower"] = 13] = "Lower";
  BinaryOperator2[BinaryOperator2["LowerEquals"] = 14] = "LowerEquals";
  BinaryOperator2[BinaryOperator2["Bigger"] = 15] = "Bigger";
  BinaryOperator2[BinaryOperator2["BiggerEquals"] = 16] = "BiggerEquals";
  BinaryOperator2[BinaryOperator2["NullishCoalesce"] = 17] = "NullishCoalesce";
  BinaryOperator2[BinaryOperator2["Exponentiation"] = 18] = "Exponentiation";
  BinaryOperator2[BinaryOperator2["In"] = 19] = "In";
})(BinaryOperator || (BinaryOperator = {}));
function nullSafeIsEquivalent(base, other) {
  if (base == null || other == null) {
    return base == other;
  }
  return base.isEquivalent(other);
}
function areAllEquivalentPredicate(base, other, equivalentPredicate) {
  const len = base.length;
  if (len !== other.length) {
    return false;
  }
  for (let i = 0; i < len; i++) {
    if (!equivalentPredicate(base[i], other[i])) {
      return false;
    }
  }
  return true;
}
function areAllEquivalent(base, other) {
  return areAllEquivalentPredicate(base, other, (baseElement, otherElement) => baseElement.isEquivalent(otherElement));
}
var Expression = class {
  type;
  sourceSpan;
  constructor(type, sourceSpan) {
    this.type = type || null;
    this.sourceSpan = sourceSpan || null;
  }
  prop(name, sourceSpan) {
    return new ReadPropExpr(this, name, null, sourceSpan);
  }
  key(index, type, sourceSpan) {
    return new ReadKeyExpr(this, index, type, sourceSpan);
  }
  callFn(params, sourceSpan, pure) {
    return new InvokeFunctionExpr(this, params, null, sourceSpan, pure);
  }
  instantiate(params, type, sourceSpan) {
    return new InstantiateExpr(this, params, type, sourceSpan);
  }
  conditional(trueCase, falseCase = null, sourceSpan) {
    return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);
  }
  equals(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);
  }
  notEquals(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);
  }
  identical(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);
  }
  notIdentical(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);
  }
  minus(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);
  }
  plus(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);
  }
  divide(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);
  }
  multiply(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);
  }
  modulo(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);
  }
  power(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Exponentiation, this, rhs, null, sourceSpan);
  }
  and(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);
  }
  bitwiseOr(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.BitwiseOr, this, rhs, null, sourceSpan);
  }
  bitwiseAnd(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan);
  }
  or(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);
  }
  lower(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);
  }
  lowerEquals(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);
  }
  bigger(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);
  }
  biggerEquals(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);
  }
  isBlank(sourceSpan) {
    return this.equals(TYPED_NULL_EXPR, sourceSpan);
  }
  nullishCoalesce(rhs, sourceSpan) {
    return new BinaryOperatorExpr(BinaryOperator.NullishCoalesce, this, rhs, null, sourceSpan);
  }
  toStmt() {
    return new ExpressionStatement(this, null);
  }
};
var ReadVarExpr = class _ReadVarExpr extends Expression {
  name;
  constructor(name, type, sourceSpan) {
    super(type, sourceSpan);
    this.name = name;
  }
  isEquivalent(e) {
    return e instanceof _ReadVarExpr && this.name === e.name;
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitReadVarExpr(this, context);
  }
  clone() {
    return new _ReadVarExpr(this.name, this.type, this.sourceSpan);
  }
  set(value) {
    return new WriteVarExpr(this.name, value, null, this.sourceSpan);
  }
};
var TypeofExpr = class _TypeofExpr extends Expression {
  expr;
  constructor(expr, type, sourceSpan) {
    super(type, sourceSpan);
    this.expr = expr;
  }
  visitExpression(visitor, context) {
    return visitor.visitTypeofExpr(this, context);
  }
  isEquivalent(e) {
    return e instanceof _TypeofExpr && e.expr.isEquivalent(this.expr);
  }
  isConstant() {
    return this.expr.isConstant();
  }
  clone() {
    return new _TypeofExpr(this.expr.clone());
  }
};
var WriteVarExpr = class _WriteVarExpr extends Expression {
  name;
  value;
  constructor(name, value, type, sourceSpan) {
    super(type || value.type, sourceSpan);
    this.name = name;
    this.value = value;
  }
  isEquivalent(e) {
    return e instanceof _WriteVarExpr && this.name === e.name && this.value.isEquivalent(e.value);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitWriteVarExpr(this, context);
  }
  clone() {
    return new _WriteVarExpr(this.name, this.value.clone(), this.type, this.sourceSpan);
  }
  toDeclStmt(type, modifiers) {
    return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);
  }
  toConstDecl() {
    return this.toDeclStmt(INFERRED_TYPE, StmtModifier.Final);
  }
};
var WriteKeyExpr = class _WriteKeyExpr extends Expression {
  receiver;
  index;
  value;
  constructor(receiver, index, value, type, sourceSpan) {
    super(type || value.type, sourceSpan);
    this.receiver = receiver;
    this.index = index;
    this.value = value;
  }
  isEquivalent(e) {
    return e instanceof _WriteKeyExpr && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitWriteKeyExpr(this, context);
  }
  clone() {
    return new _WriteKeyExpr(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);
  }
};
var WritePropExpr = class _WritePropExpr extends Expression {
  receiver;
  name;
  value;
  constructor(receiver, name, value, type, sourceSpan) {
    super(type || value.type, sourceSpan);
    this.receiver = receiver;
    this.name = name;
    this.value = value;
  }
  isEquivalent(e) {
    return e instanceof _WritePropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitWritePropExpr(this, context);
  }
  clone() {
    return new _WritePropExpr(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);
  }
};
var InvokeFunctionExpr = class _InvokeFunctionExpr extends Expression {
  fn;
  args;
  pure;
  constructor(fn, args, type, sourceSpan, pure = false) {
    super(type, sourceSpan);
    this.fn = fn;
    this.args = args;
    this.pure = pure;
  }
  // An alias for fn, which allows other logic to handle calls and property reads together.
  get receiver() {
    return this.fn;
  }
  isEquivalent(e) {
    return e instanceof _InvokeFunctionExpr && this.fn.isEquivalent(e.fn) && areAllEquivalent(this.args, e.args) && this.pure === e.pure;
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitInvokeFunctionExpr(this, context);
  }
  clone() {
    return new _InvokeFunctionExpr(this.fn.clone(), this.args.map((arg) => arg.clone()), this.type, this.sourceSpan, this.pure);
  }
};
var InstantiateExpr = class _InstantiateExpr extends Expression {
  classExpr;
  args;
  constructor(classExpr, args, type, sourceSpan) {
    super(type, sourceSpan);
    this.classExpr = classExpr;
    this.args = args;
  }
  isEquivalent(e) {
    return e instanceof _InstantiateExpr && this.classExpr.isEquivalent(e.classExpr) && areAllEquivalent(this.args, e.args);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitInstantiateExpr(this, context);
  }
  clone() {
    return new _InstantiateExpr(this.classExpr.clone(), this.args.map((arg) => arg.clone()), this.type, this.sourceSpan);
  }
};
var LiteralExpr = class _LiteralExpr extends Expression {
  value;
  constructor(value, type, sourceSpan) {
    super(type, sourceSpan);
    this.value = value;
  }
  isEquivalent(e) {
    return e instanceof _LiteralExpr && this.value === e.value;
  }
  isConstant() {
    return true;
  }
  visitExpression(visitor, context) {
    return visitor.visitLiteralExpr(this, context);
  }
  clone() {
    return new _LiteralExpr(this.value, this.type, this.sourceSpan);
  }
};
var ExternalExpr = class _ExternalExpr extends Expression {
  value;
  typeParams;
  constructor(value, type, typeParams = null, sourceSpan) {
    super(type, sourceSpan);
    this.value = value;
    this.typeParams = typeParams;
  }
  isEquivalent(e) {
    return e instanceof _ExternalExpr && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitExternalExpr(this, context);
  }
  clone() {
    return new _ExternalExpr(this.value, this.type, this.typeParams, this.sourceSpan);
  }
};
var ConditionalExpr = class _ConditionalExpr extends Expression {
  condition;
  falseCase;
  trueCase;
  constructor(condition, trueCase, falseCase = null, type, sourceSpan) {
    super(type || trueCase.type, sourceSpan);
    this.condition = condition;
    this.falseCase = falseCase;
    this.trueCase = trueCase;
  }
  isEquivalent(e) {
    return e instanceof _ConditionalExpr && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && nullSafeIsEquivalent(this.falseCase, e.falseCase);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitConditionalExpr(this, context);
  }
  clone() {
    var _a;
    return new _ConditionalExpr(this.condition.clone(), this.trueCase.clone(), (_a = this.falseCase) == null ? void 0 : _a.clone(), this.type, this.sourceSpan);
  }
};
var BinaryOperatorExpr = class _BinaryOperatorExpr extends Expression {
  operator;
  rhs;
  lhs;
  constructor(operator, lhs, rhs, type, sourceSpan) {
    super(type || lhs.type, sourceSpan);
    this.operator = operator;
    this.rhs = rhs;
    this.lhs = lhs;
  }
  isEquivalent(e) {
    return e instanceof _BinaryOperatorExpr && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitBinaryOperatorExpr(this, context);
  }
  clone() {
    return new _BinaryOperatorExpr(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
  }
};
var ReadPropExpr = class _ReadPropExpr extends Expression {
  receiver;
  name;
  constructor(receiver, name, type, sourceSpan) {
    super(type, sourceSpan);
    this.receiver = receiver;
    this.name = name;
  }
  // An alias for name, which allows other logic to handle property reads and keyed reads together.
  get index() {
    return this.name;
  }
  isEquivalent(e) {
    return e instanceof _ReadPropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitReadPropExpr(this, context);
  }
  set(value) {
    return new WritePropExpr(this.receiver, this.name, value, null, this.sourceSpan);
  }
  clone() {
    return new _ReadPropExpr(this.receiver.clone(), this.name, this.type, this.sourceSpan);
  }
};
var ReadKeyExpr = class _ReadKeyExpr extends Expression {
  receiver;
  index;
  constructor(receiver, index, type, sourceSpan) {
    super(type, sourceSpan);
    this.receiver = receiver;
    this.index = index;
  }
  isEquivalent(e) {
    return e instanceof _ReadKeyExpr && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
  }
  isConstant() {
    return false;
  }
  visitExpression(visitor, context) {
    return visitor.visitReadKeyExpr(this, context);
  }
  set(value) {
    return new WriteKeyExpr(this.receiver, this.index, value, null, this.sourceSpan);
  }
  clone() {
    return new _ReadKeyExpr(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
  }
};
var LiteralArrayExpr = class _LiteralArrayExpr extends Expression {
  entries;
  constructor(entries, type, sourceSpan) {
    super(type, sourceSpan);
    this.entries = entries;
  }
  isConstant() {
    return this.entries.every((e) => e.isConstant());
  }
  isEquivalent(e) {
    return e instanceof _LiteralArrayExpr && areAllEquivalent(this.entries, e.entries);
  }
  visitExpression(visitor, context) {
    return visitor.visitLiteralArrayExpr(this, context);
  }
  clone() {
    return new _LiteralArrayExpr(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
  }
};
var LiteralMapExpr = class _LiteralMapExpr extends Expression {
  entries;
  valueType = null;
  constructor(entries, type, sourceSpan) {
    super(type, sourceSpan);
    this.entries = entries;
    if (type) {
      this.valueType = type.valueType;
    }
  }
  isEquivalent(e) {
    return e instanceof _LiteralMapExpr && areAllEquivalent(this.entries, e.entries);
  }
  isConstant() {
    return this.entries.every((e) => e.value.isConstant());
  }
  visitExpression(visitor, context) {
    return visitor.visitLiteralMapExpr(this, context);
  }
  clone() {
    const entriesClone = this.entries.map((entry) => entry.clone());
    return new _LiteralMapExpr(entriesClone, this.type, this.sourceSpan);
  }
};
var StmtModifier;
(function(StmtModifier2) {
  StmtModifier2[StmtModifier2["None"] = 0] = "None";
  StmtModifier2[StmtModifier2["Final"] = 1] = "Final";
  StmtModifier2[StmtModifier2["Private"] = 2] = "Private";
  StmtModifier2[StmtModifier2["Exported"] = 4] = "Exported";
  StmtModifier2[StmtModifier2["Static"] = 8] = "Static";
})(StmtModifier || (StmtModifier = {}));
var Statement = class {
  modifiers;
  sourceSpan;
  leadingComments;
  constructor(modifiers = StmtModifier.None, sourceSpan = null, leadingComments) {
    this.modifiers = modifiers;
    this.sourceSpan = sourceSpan;
    this.leadingComments = leadingComments;
  }
  hasModifier(modifier) {
    return (this.modifiers & modifier) !== 0;
  }
  addLeadingComment(leadingComment) {
    this.leadingComments = this.leadingComments ?? [];
    this.leadingComments.push(leadingComment);
  }
};
var DeclareVarStmt = class _DeclareVarStmt extends Statement {
  name;
  value;
  type;
  constructor(name, value, type, modifiers, sourceSpan, leadingComments) {
    super(modifiers, sourceSpan, leadingComments);
    this.name = name;
    this.value = value;
    this.type = type || value && value.type || null;
  }
  isEquivalent(stmt) {
    return stmt instanceof _DeclareVarStmt && this.name === stmt.name && (this.value ? !!stmt.value && this.value.isEquivalent(stmt.value) : !stmt.value);
  }
  visitStatement(visitor, context) {
    return visitor.visitDeclareVarStmt(this, context);
  }
};
var ExpressionStatement = class _ExpressionStatement extends Statement {
  expr;
  constructor(expr, sourceSpan, leadingComments) {
    super(StmtModifier.None, sourceSpan, leadingComments);
    this.expr = expr;
  }
  isEquivalent(stmt) {
    return stmt instanceof _ExpressionStatement && this.expr.isEquivalent(stmt.expr);
  }
  visitStatement(visitor, context) {
    return visitor.visitExpressionStmt(this, context);
  }
};
function variable(name, type, sourceSpan) {
  return new ReadVarExpr(name, type, sourceSpan);
}
var UNKNOWN_VALUE_KEY = variable("<unknown>");
var GenericKeyFn = class _GenericKeyFn {
  static INSTANCE = new _GenericKeyFn();
  keyOf(expr) {
    if (expr instanceof LiteralExpr && typeof expr.value === "string") {
      return `"${expr.value}"`;
    } else if (expr instanceof LiteralExpr) {
      return String(expr.value);
    } else if (expr instanceof LiteralArrayExpr) {
      const entries = [];
      for (const entry of expr.entries) {
        entries.push(this.keyOf(entry));
      }
      return `[${entries.join(",")}]`;
    } else if (expr instanceof LiteralMapExpr) {
      const entries = [];
      for (const entry of expr.entries) {
        let key = entry.key;
        if (entry.quoted) {
          key = `"${key}"`;
        }
        entries.push(key + ":" + this.keyOf(entry.value));
      }
      return `{${entries.join(",")}}`;
    } else if (expr instanceof ExternalExpr) {
      return `import("${expr.value.moduleName}", ${expr.value.name})`;
    } else if (expr instanceof ReadVarExpr) {
      return `read(${expr.name})`;
    } else if (expr instanceof TypeofExpr) {
      return `typeof(${this.keyOf(expr.expr)})`;
    } else {
      throw new Error(`${this.constructor.name} does not handle expressions of type ${expr.constructor.name}`);
    }
  }
};
var CORE = "@angular/core";
var Identifiers = class {
  /* Methods */
  static NEW_METHOD = "factory";
  static TRANSFORM_METHOD = "transform";
  static PATCH_DEPS = "patchedDeps";
  static core = { name: null, moduleName: CORE };
  /* Instructions */
  static namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: CORE };
  static namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: CORE };
  static namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: CORE };
  static element = { name: "\u0275\u0275element", moduleName: CORE };
  static elementStart = { name: "\u0275\u0275elementStart", moduleName: CORE };
  static elementEnd = { name: "\u0275\u0275elementEnd", moduleName: CORE };
  static advance = { name: "\u0275\u0275advance", moduleName: CORE };
  static syntheticHostProperty = {
    name: "\u0275\u0275syntheticHostProperty",
    moduleName: CORE
  };
  static syntheticHostListener = {
    name: "\u0275\u0275syntheticHostListener",
    moduleName: CORE
  };
  static attribute = { name: "\u0275\u0275attribute", moduleName: CORE };
  static classProp = { name: "\u0275\u0275classProp", moduleName: CORE };
  static elementContainerStart = {
    name: "\u0275\u0275elementContainerStart",
    moduleName: CORE
  };
  static elementContainerEnd = {
    name: "\u0275\u0275elementContainerEnd",
    moduleName: CORE
  };
  static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: CORE };
  static styleMap = { name: "\u0275\u0275styleMap", moduleName: CORE };
  static classMap = { name: "\u0275\u0275classMap", moduleName: CORE };
  static styleProp = { name: "\u0275\u0275styleProp", moduleName: CORE };
  static interpolate = {
    name: "\u0275\u0275interpolate",
    moduleName: CORE
  };
  static interpolate1 = {
    name: "\u0275\u0275interpolate1",
    moduleName: CORE
  };
  static interpolate2 = {
    name: "\u0275\u0275interpolate2",
    moduleName: CORE
  };
  static interpolate3 = {
    name: "\u0275\u0275interpolate3",
    moduleName: CORE
  };
  static interpolate4 = {
    name: "\u0275\u0275interpolate4",
    moduleName: CORE
  };
  static interpolate5 = {
    name: "\u0275\u0275interpolate5",
    moduleName: CORE
  };
  static interpolate6 = {
    name: "\u0275\u0275interpolate6",
    moduleName: CORE
  };
  static interpolate7 = {
    name: "\u0275\u0275interpolate7",
    moduleName: CORE
  };
  static interpolate8 = {
    name: "\u0275\u0275interpolate8",
    moduleName: CORE
  };
  static interpolateV = {
    name: "\u0275\u0275interpolateV",
    moduleName: CORE
  };
  static nextContext = { name: "\u0275\u0275nextContext", moduleName: CORE };
  static resetView = { name: "\u0275\u0275resetView", moduleName: CORE };
  static templateCreate = { name: "\u0275\u0275template", moduleName: CORE };
  static defer = { name: "\u0275\u0275defer", moduleName: CORE };
  static deferWhen = { name: "\u0275\u0275deferWhen", moduleName: CORE };
  static deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: CORE };
  static deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: CORE };
  static deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: CORE };
  static deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: CORE };
  static deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: CORE };
  static deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: CORE };
  static deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: CORE };
  static deferPrefetchOnIdle = {
    name: "\u0275\u0275deferPrefetchOnIdle",
    moduleName: CORE
  };
  static deferPrefetchOnImmediate = {
    name: "\u0275\u0275deferPrefetchOnImmediate",
    moduleName: CORE
  };
  static deferPrefetchOnTimer = {
    name: "\u0275\u0275deferPrefetchOnTimer",
    moduleName: CORE
  };
  static deferPrefetchOnHover = {
    name: "\u0275\u0275deferPrefetchOnHover",
    moduleName: CORE
  };
  static deferPrefetchOnInteraction = {
    name: "\u0275\u0275deferPrefetchOnInteraction",
    moduleName: CORE
  };
  static deferPrefetchOnViewport = {
    name: "\u0275\u0275deferPrefetchOnViewport",
    moduleName: CORE
  };
  static deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: CORE };
  static deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: CORE };
  static deferHydrateOnIdle = {
    name: "\u0275\u0275deferHydrateOnIdle",
    moduleName: CORE
  };
  static deferHydrateOnImmediate = {
    name: "\u0275\u0275deferHydrateOnImmediate",
    moduleName: CORE
  };
  static deferHydrateOnTimer = {
    name: "\u0275\u0275deferHydrateOnTimer",
    moduleName: CORE
  };
  static deferHydrateOnHover = {
    name: "\u0275\u0275deferHydrateOnHover",
    moduleName: CORE
  };
  static deferHydrateOnInteraction = {
    name: "\u0275\u0275deferHydrateOnInteraction",
    moduleName: CORE
  };
  static deferHydrateOnViewport = {
    name: "\u0275\u0275deferHydrateOnViewport",
    moduleName: CORE
  };
  static deferEnableTimerScheduling = {
    name: "\u0275\u0275deferEnableTimerScheduling",
    moduleName: CORE
  };
  static conditionalCreate = { name: "\u0275\u0275conditionalCreate", moduleName: CORE };
  static conditionalBranchCreate = {
    name: "\u0275\u0275conditionalBranchCreate",
    moduleName: CORE
  };
  static conditional = { name: "\u0275\u0275conditional", moduleName: CORE };
  static repeater = { name: "\u0275\u0275repeater", moduleName: CORE };
  static repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: CORE };
  static repeaterTrackByIndex = {
    name: "\u0275\u0275repeaterTrackByIndex",
    moduleName: CORE
  };
  static repeaterTrackByIdentity = {
    name: "\u0275\u0275repeaterTrackByIdentity",
    moduleName: CORE
  };
  static componentInstance = { name: "\u0275\u0275componentInstance", moduleName: CORE };
  static text = { name: "\u0275\u0275text", moduleName: CORE };
  static enableBindings = { name: "\u0275\u0275enableBindings", moduleName: CORE };
  static disableBindings = { name: "\u0275\u0275disableBindings", moduleName: CORE };
  static getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: CORE };
  static textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: CORE };
  static textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: CORE };
  static textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: CORE };
  static textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: CORE };
  static textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: CORE };
  static textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: CORE };
  static textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: CORE };
  static textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: CORE };
  static textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: CORE };
  static textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: CORE };
  static restoreView = { name: "\u0275\u0275restoreView", moduleName: CORE };
  static pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: CORE };
  static pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: CORE };
  static pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: CORE };
  static pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: CORE };
  static pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: CORE };
  static pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: CORE };
  static pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: CORE };
  static pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: CORE };
  static pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: CORE };
  static pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: CORE };
  static pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: CORE };
  static pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: CORE };
  static pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: CORE };
  static pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: CORE };
  static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: CORE };
  static domProperty = { name: "\u0275\u0275domProperty", moduleName: CORE };
  static property = { name: "\u0275\u0275property", moduleName: CORE };
  static i18n = { name: "\u0275\u0275i18n", moduleName: CORE };
  static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: CORE };
  static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: CORE };
  static i18nStart = { name: "\u0275\u0275i18nStart", moduleName: CORE };
  static i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: CORE };
  static i18nApply = { name: "\u0275\u0275i18nApply", moduleName: CORE };
  static i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: CORE };
  static pipe = { name: "\u0275\u0275pipe", moduleName: CORE };
  static projection = { name: "\u0275\u0275projection", moduleName: CORE };
  static projectionDef = { name: "\u0275\u0275projectionDef", moduleName: CORE };
  static reference = { name: "\u0275\u0275reference", moduleName: CORE };
  static inject = { name: "\u0275\u0275inject", moduleName: CORE };
  static injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: CORE };
  static directiveInject = { name: "\u0275\u0275directiveInject", moduleName: CORE };
  static invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: CORE };
  static invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: CORE };
  static templateRefExtractor = {
    name: "\u0275\u0275templateRefExtractor",
    moduleName: CORE
  };
  static forwardRef = { name: "forwardRef", moduleName: CORE };
  static resolveForwardRef = { name: "resolveForwardRef", moduleName: CORE };
  static replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: CORE };
  static getReplaceMetadataURL = {
    name: "\u0275\u0275getReplaceMetadataURL",
    moduleName: CORE
  };
  static \u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: CORE };
  static declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: CORE };
  static InjectableDeclaration = {
    name: "\u0275\u0275InjectableDeclaration",
    moduleName: CORE
  };
  static resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: CORE };
  static resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: CORE };
  static resolveBody = { name: "\u0275\u0275resolveBody", moduleName: CORE };
  static getComponentDepsFactory = {
    name: "\u0275\u0275getComponentDepsFactory",
    moduleName: CORE
  };
  static defineComponent = { name: "\u0275\u0275defineComponent", moduleName: CORE };
  static declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: CORE };
  static setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: CORE };
  static ChangeDetectionStrategy = {
    name: "ChangeDetectionStrategy",
    moduleName: CORE
  };
  static ViewEncapsulation = {
    name: "ViewEncapsulation",
    moduleName: CORE
  };
  static ComponentDeclaration = {
    name: "\u0275\u0275ComponentDeclaration",
    moduleName: CORE
  };
  static FactoryDeclaration = {
    name: "\u0275\u0275FactoryDeclaration",
    moduleName: CORE
  };
  static declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: CORE };
  static FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: CORE };
  static defineDirective = { name: "\u0275\u0275defineDirective", moduleName: CORE };
  static declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: CORE };
  static DirectiveDeclaration = {
    name: "\u0275\u0275DirectiveDeclaration",
    moduleName: CORE
  };
  static InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: CORE };
  static InjectorDeclaration = {
    name: "\u0275\u0275InjectorDeclaration",
    moduleName: CORE
  };
  static defineInjector = { name: "\u0275\u0275defineInjector", moduleName: CORE };
  static declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: CORE };
  static NgModuleDeclaration = {
    name: "\u0275\u0275NgModuleDeclaration",
    moduleName: CORE
  };
  static ModuleWithProviders = {
    name: "ModuleWithProviders",
    moduleName: CORE
  };
  static defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: CORE };
  static declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: CORE };
  static setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: CORE };
  static registerNgModuleType = {
    name: "\u0275\u0275registerNgModuleType",
    moduleName: CORE
  };
  static PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: CORE };
  static definePipe = { name: "\u0275\u0275definePipe", moduleName: CORE };
  static declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: CORE };
  static declareClassMetadata = {
    name: "\u0275\u0275ngDeclareClassMetadata",
    moduleName: CORE
  };
  static declareClassMetadataAsync = {
    name: "\u0275\u0275ngDeclareClassMetadataAsync",
    moduleName: CORE
  };
  static setClassMetadata = { name: "\u0275setClassMetadata", moduleName: CORE };
  static setClassMetadataAsync = {
    name: "\u0275setClassMetadataAsync",
    moduleName: CORE
  };
  static setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: CORE };
  static queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: CORE };
  static viewQuery = { name: "\u0275\u0275viewQuery", moduleName: CORE };
  static loadQuery = { name: "\u0275\u0275loadQuery", moduleName: CORE };
  static contentQuery = { name: "\u0275\u0275contentQuery", moduleName: CORE };
  // Signal queries
  static viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: CORE };
  static contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: CORE };
  static queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: CORE };
  // Two-way bindings
  static twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: CORE };
  static twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: CORE };
  static twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: CORE };
  static declareLet = { name: "\u0275\u0275declareLet", moduleName: CORE };
  static storeLet = { name: "\u0275\u0275storeLet", moduleName: CORE };
  static readContextLet = { name: "\u0275\u0275readContextLet", moduleName: CORE };
  static attachSourceLocations = {
    name: "\u0275\u0275attachSourceLocations",
    moduleName: CORE
  };
  static NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: CORE };
  static InheritDefinitionFeature = {
    name: "\u0275\u0275InheritDefinitionFeature",
    moduleName: CORE
  };
  static CopyDefinitionFeature = {
    name: "\u0275\u0275CopyDefinitionFeature",
    moduleName: CORE
  };
  static ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: CORE };
  static HostDirectivesFeature = {
    name: "\u0275\u0275HostDirectivesFeature",
    moduleName: CORE
  };
  static ExternalStylesFeature = {
    name: "\u0275\u0275ExternalStylesFeature",
    moduleName: CORE
  };
  static listener = { name: "\u0275\u0275listener", moduleName: CORE };
  static getInheritedFactory = {
    name: "\u0275\u0275getInheritedFactory",
    moduleName: CORE
  };
  // sanitization-related functions
  static sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: CORE };
  static sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: CORE };
  static sanitizeResourceUrl = {
    name: "\u0275\u0275sanitizeResourceUrl",
    moduleName: CORE
  };
  static sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: CORE };
  static sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: CORE };
  static sanitizeUrlOrResourceUrl = {
    name: "\u0275\u0275sanitizeUrlOrResourceUrl",
    moduleName: CORE
  };
  static trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: CORE };
  static trustConstantResourceUrl = {
    name: "\u0275\u0275trustConstantResourceUrl",
    moduleName: CORE
  };
  static validateIframeAttribute = {
    name: "\u0275\u0275validateIframeAttribute",
    moduleName: CORE
  };
  // type-checking
  static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: CORE };
  static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: CORE };
  static unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: CORE };
};
var Version = class {
  full;
  major;
  minor;
  patch;
  constructor(full) {
    this.full = full;
    const splits = full.split(".");
    this.major = splits[0];
    this.minor = splits[1];
    this.patch = splits.slice(2).join(".");
  }
};
var R3FactoryDelegateType;
(function(R3FactoryDelegateType2) {
  R3FactoryDelegateType2[R3FactoryDelegateType2["Class"] = 0] = "Class";
  R3FactoryDelegateType2[R3FactoryDelegateType2["Function"] = 1] = "Function";
})(R3FactoryDelegateType || (R3FactoryDelegateType = {}));
var ParserError = class {
  input;
  errLocation;
  ctxLocation;
  message;
  constructor(message, input, errLocation, ctxLocation) {
    this.input = input;
    this.errLocation = errLocation;
    this.ctxLocation = ctxLocation;
    this.message = `Parser Error: ${message} ${errLocation} [${input}] in ${ctxLocation}`;
  }
};
var ParseSpan = class {
  start;
  end;
  constructor(start, end) {
    this.start = start;
    this.end = end;
  }
  toAbsolute(absoluteOffset) {
    return new AbsoluteSourceSpan(absoluteOffset + this.start, absoluteOffset + this.end);
  }
};
var AST = class {
  span;
  sourceSpan;
  constructor(span, sourceSpan) {
    this.span = span;
    this.sourceSpan = sourceSpan;
  }
  toString() {
    return "AST";
  }
};
var ASTWithName = class extends AST {
  nameSpan;
  constructor(span, sourceSpan, nameSpan) {
    super(span, sourceSpan);
    this.nameSpan = nameSpan;
  }
};
var EmptyExpr$1 = class EmptyExpr extends AST {
  visit(visitor, context = null) {
  }
};
var ImplicitReceiver = class extends AST {
  visit(visitor, context = null) {
    return visitor.visitImplicitReceiver(this, context);
  }
};
var ThisReceiver = class extends ImplicitReceiver {
  visit(visitor, context = null) {
    var _a;
    return (_a = visitor.visitThisReceiver) == null ? void 0 : _a.call(visitor, this, context);
  }
};
var Chain = class extends AST {
  expressions;
  constructor(span, sourceSpan, expressions) {
    super(span, sourceSpan);
    this.expressions = expressions;
  }
  visit(visitor, context = null) {
    return visitor.visitChain(this, context);
  }
};
var Conditional = class extends AST {
  condition;
  trueExp;
  falseExp;
  constructor(span, sourceSpan, condition, trueExp, falseExp) {
    super(span, sourceSpan);
    this.condition = condition;
    this.trueExp = trueExp;
    this.falseExp = falseExp;
  }
  visit(visitor, context = null) {
    return visitor.visitConditional(this, context);
  }
};
var PropertyRead = class extends ASTWithName {
  receiver;
  name;
  constructor(span, sourceSpan, nameSpan, receiver, name) {
    super(span, sourceSpan, nameSpan);
    this.receiver = receiver;
    this.name = name;
  }
  visit(visitor, context = null) {
    return visitor.visitPropertyRead(this, context);
  }
};
var PropertyWrite = class extends ASTWithName {
  receiver;
  name;
  value;
  constructor(span, sourceSpan, nameSpan, receiver, name, value) {
    super(span, sourceSpan, nameSpan);
    this.receiver = receiver;
    this.name = name;
    this.value = value;
  }
  visit(visitor, context = null) {
    return visitor.visitPropertyWrite(this, context);
  }
};
var SafePropertyRead = class extends ASTWithName {
  receiver;
  name;
  constructor(span, sourceSpan, nameSpan, receiver, name) {
    super(span, sourceSpan, nameSpan);
    this.receiver = receiver;
    this.name = name;
  }
  visit(visitor, context = null) {
    return visitor.visitSafePropertyRead(this, context);
  }
};
var KeyedRead = class extends AST {
  receiver;
  key;
  constructor(span, sourceSpan, receiver, key) {
    super(span, sourceSpan);
    this.receiver = receiver;
    this.key = key;
  }
  visit(visitor, context = null) {
    return visitor.visitKeyedRead(this, context);
  }
};
var SafeKeyedRead = class extends AST {
  receiver;
  key;
  constructor(span, sourceSpan, receiver, key) {
    super(span, sourceSpan);
    this.receiver = receiver;
    this.key = key;
  }
  visit(visitor, context = null) {
    return visitor.visitSafeKeyedRead(this, context);
  }
};
var KeyedWrite = class extends AST {
  receiver;
  key;
  value;
  constructor(span, sourceSpan, receiver, key, value) {
    super(span, sourceSpan);
    this.receiver = receiver;
    this.key = key;
    this.value = value;
  }
  visit(visitor, context = null) {
    return visitor.visitKeyedWrite(this, context);
  }
};
var BindingPipe = class extends ASTWithName {
  exp;
  name;
  args;
  constructor(span, sourceSpan, exp, name, args, nameSpan) {
    super(span, sourceSpan, nameSpan);
    this.exp = exp;
    this.name = name;
    this.args = args;
  }
  visit(visitor, context = null) {
    return visitor.visitPipe(this, context);
  }
};
var LiteralPrimitive = class extends AST {
  value;
  constructor(span, sourceSpan, value) {
    super(span, sourceSpan);
    this.value = value;
  }
  visit(visitor, context = null) {
    return visitor.visitLiteralPrimitive(this, context);
  }
};
var LiteralArray = class extends AST {
  expressions;
  constructor(span, sourceSpan, expressions) {
    super(span, sourceSpan);
    this.expressions = expressions;
  }
  visit(visitor, context = null) {
    return visitor.visitLiteralArray(this, context);
  }
};
var LiteralMap = class extends AST {
  keys;
  values;
  constructor(span, sourceSpan, keys, values) {
    super(span, sourceSpan);
    this.keys = keys;
    this.values = values;
  }
  visit(visitor, context = null) {
    return visitor.visitLiteralMap(this, context);
  }
};
var Interpolation$1 = class Interpolation extends AST {
  strings;
  expressions;
  constructor(span, sourceSpan, strings, expressions) {
    super(span, sourceSpan);
    this.strings = strings;
    this.expressions = expressions;
  }
  visit(visitor, context = null) {
    return visitor.visitInterpolation(this, context);
  }
};
var Binary = class extends AST {
  operation;
  left;
  right;
  constructor(span, sourceSpan, operation, left, right) {
    super(span, sourceSpan);
    this.operation = operation;
    this.left = left;
    this.right = right;
  }
  visit(visitor, context = null) {
    return visitor.visitBinary(this, context);
  }
};
var Unary = class _Unary extends Binary {
  operator;
  expr;
  // Redeclare the properties that are inherited from `Binary` as `never`, as consumers should not
  // depend on these fields when operating on `Unary`.
  left = null;
  right = null;
  operation = null;
  /**
   * Creates a unary minus expression "-x", represented as `Binary` using "0 - x".
   */
  static createMinus(span, sourceSpan, expr) {
    return new _Unary(span, sourceSpan, "-", expr, "-", new LiteralPrimitive(span, sourceSpan, 0), expr);
  }
  /**
   * Creates a unary plus expression "+x", represented as `Binary` using "x - 0".
   */
  static createPlus(span, sourceSpan, expr) {
    return new _Unary(span, sourceSpan, "+", expr, "-", expr, new LiteralPrimitive(span, sourceSpan, 0));
  }
  /**
   * During the deprecation period this constructor is private, to avoid consumers from creating
   * a `Unary` with the fallback properties for `Binary`.
   */
  constructor(span, sourceSpan, operator, expr, binaryOp, binaryLeft, binaryRight) {
    super(span, sourceSpan, binaryOp, binaryLeft, binaryRight);
    this.operator = operator;
    this.expr = expr;
  }
  visit(visitor, context = null) {
    if (visitor.visitUnary !== void 0) {
      return visitor.visitUnary(this, context);
    }
    return visitor.visitBinary(this, context);
  }
};
var PrefixNot = class extends AST {
  expression;
  constructor(span, sourceSpan, expression) {
    super(span, sourceSpan);
    this.expression = expression;
  }
  visit(visitor, context = null) {
    return visitor.visitPrefixNot(this, context);
  }
};
var TypeofExpression = class extends AST {
  expression;
  constructor(span, sourceSpan, expression) {
    super(span, sourceSpan);
    this.expression = expression;
  }
  visit(visitor, context = null) {
    return visitor.visitTypeofExpression(this, context);
  }
};
var VoidExpression = class extends AST {
  expression;
  constructor(span, sourceSpan, expression) {
    super(span, sourceSpan);
    this.expression = expression;
  }
  visit(visitor, context = null) {
    return visitor.visitVoidExpression(this, context);
  }
};
var NonNullAssert = class extends AST {
  expression;
  constructor(span, sourceSpan, expression) {
    super(span, sourceSpan);
    this.expression = expression;
  }
  visit(visitor, context = null) {
    return visitor.visitNonNullAssert(this, context);
  }
};
var Call = class extends AST {
  receiver;
  args;
  argumentSpan;
  constructor(span, sourceSpan, receiver, args, argumentSpan) {
    super(span, sourceSpan);
    this.receiver = receiver;
    this.args = args;
    this.argumentSpan = argumentSpan;
  }
  visit(visitor, context = null) {
    return visitor.visitCall(this, context);
  }
};
var SafeCall = class extends AST {
  receiver;
  args;
  argumentSpan;
  constructor(span, sourceSpan, receiver, args, argumentSpan) {
    super(span, sourceSpan);
    this.receiver = receiver;
    this.args = args;
    this.argumentSpan = argumentSpan;
  }
  visit(visitor, context = null) {
    return visitor.visitSafeCall(this, context);
  }
};
var TaggedTemplateLiteral = class extends AST {
  tag;
  template;
  constructor(span, sourceSpan, tag, template) {
    super(span, sourceSpan);
    this.tag = tag;
    this.template = template;
  }
  visit(visitor, context) {
    return visitor.visitTaggedTemplateLiteral(this, context);
  }
};
var TemplateLiteral = class extends AST {
  elements;
  expressions;
  constructor(span, sourceSpan, elements, expressions) {
    super(span, sourceSpan);
    this.elements = elements;
    this.expressions = expressions;
  }
  visit(visitor, context) {
    return visitor.visitTemplateLiteral(this, context);
  }
};
var TemplateLiteralElement = class extends AST {
  text;
  constructor(span, sourceSpan, text) {
    super(span, sourceSpan);
    this.text = text;
  }
  visit(visitor, context) {
    return visitor.visitTemplateLiteralElement(this, context);
  }
};
var ParenthesizedExpression = class extends AST {
  expression;
  constructor(span, sourceSpan, expression) {
    super(span, sourceSpan);
    this.expression = expression;
  }
  visit(visitor, context) {
    return visitor.visitParenthesizedExpression(this, context);
  }
};
var AbsoluteSourceSpan = class {
  start;
  end;
  constructor(start, end) {
    this.start = start;
    this.end = end;
  }
};
var ASTWithSource = class extends AST {
  ast;
  source;
  location;
  errors;
  constructor(ast, source, location, absoluteOffset, errors) {
    super(new ParseSpan(0, source === null ? 0 : source.length), new AbsoluteSourceSpan(absoluteOffset, source === null ? absoluteOffset : absoluteOffset + source.length));
    this.ast = ast;
    this.source = source;
    this.location = location;
    this.errors = errors;
  }
  visit(visitor, context = null) {
    if (visitor.visitASTWithSource) {
      return visitor.visitASTWithSource(this, context);
    }
    return this.ast.visit(visitor, context);
  }
  toString() {
    return `${this.source} in ${this.location}`;
  }
};
var VariableBinding = class {
  sourceSpan;
  key;
  value;
  /**
   * @param sourceSpan entire span of the binding.
   * @param key name of the LHS along with its span.
   * @param value optional value for the RHS along with its span.
   */
  constructor(sourceSpan, key, value) {
    this.sourceSpan = sourceSpan;
    this.key = key;
    this.value = value;
  }
};
var ExpressionBinding = class {
  sourceSpan;
  key;
  value;
  /**
   * @param sourceSpan entire span of the binding.
   * @param key binding name, like ngForOf, ngForTrackBy, ngIf, along with its
   * span. Note that the length of the span may not be the same as
   * `key.source.length`. For example,
   * 1. key.source = ngFor, key.span is for "ngFor"
   * 2. key.source = ngForOf, key.span is for "of"
   * 3. key.source = ngForTrackBy, key.span is for "trackBy"
   * @param value optional expression for the RHS.
   */
  constructor(sourceSpan, key, value) {
    this.sourceSpan = sourceSpan;
    this.key = key;
    this.value = value;
  }
};
var RecursiveAstVisitor = class {
  visit(ast, context) {
    ast.visit(this, context);
  }
  visitUnary(ast, context) {
    this.visit(ast.expr, context);
  }
  visitBinary(ast, context) {
    this.visit(ast.left, context);
    this.visit(ast.right, context);
  }
  visitChain(ast, context) {
    this.visitAll(ast.expressions, context);
  }
  visitConditional(ast, context) {
    this.visit(ast.condition, context);
    this.visit(ast.trueExp, context);
    this.visit(ast.falseExp, context);
  }
  visitPipe(ast, context) {
    this.visit(ast.exp, context);
    this.visitAll(ast.args, context);
  }
  visitImplicitReceiver(ast, context) {
  }
  visitThisReceiver(ast, context) {
  }
  visitInterpolation(ast, context) {
    this.visitAll(ast.expressions, context);
  }
  visitKeyedRead(ast, context) {
    this.visit(ast.receiver, context);
    this.visit(ast.key, context);
  }
  visitKeyedWrite(ast, context) {
    this.visit(ast.receiver, context);
    this.visit(ast.key, context);
    this.visit(ast.value, context);
  }
  visitLiteralArray(ast, context) {
    this.visitAll(ast.expressions, context);
  }
  visitLiteralMap(ast, context) {
    this.visitAll(ast.values, context);
  }
  visitLiteralPrimitive(ast, context) {
  }
  visitPrefixNot(ast, context) {
    this.visit(ast.expression, context);
  }
  visitTypeofExpression(ast, context) {
    this.visit(ast.expression, context);
  }
  visitVoidExpression(ast, context) {
    this.visit(ast.expression, context);
  }
  visitNonNullAssert(ast, context) {
    this.visit(ast.expression, context);
  }
  visitPropertyRead(ast, context) {
    this.visit(ast.receiver, context);
  }
  visitPropertyWrite(ast, context) {
    this.visit(ast.receiver, context);
    this.visit(ast.value, context);
  }
  visitSafePropertyRead(ast, context) {
    this.visit(ast.receiver, context);
  }
  visitSafeKeyedRead(ast, context) {
    this.visit(ast.receiver, context);
    this.visit(ast.key, context);
  }
  visitCall(ast, context) {
    this.visit(ast.receiver, context);
    this.visitAll(ast.args, context);
  }
  visitSafeCall(ast, context) {
    this.visit(ast.receiver, context);
    this.visitAll(ast.args, context);
  }
  visitTemplateLiteral(ast, context) {
    for (let i = 0; i < ast.elements.length; i++) {
      this.visit(ast.elements[i], context);
      const expression = i < ast.expressions.length ? ast.expressions[i] : null;
      if (expression !== null) {
        this.visit(expression, context);
      }
    }
  }
  visitTemplateLiteralElement(ast, context) {
  }
  visitTaggedTemplateLiteral(ast, context) {
    this.visit(ast.tag, context);
    this.visit(ast.template, context);
  }
  visitParenthesizedExpression(ast, context) {
    this.visit(ast.expression, context);
  }
  // This is not part of the AstVisitor interface, just a helper method
  visitAll(asts, context) {
    for (const ast of asts) {
      this.visit(ast, context);
    }
  }
};
var ParsedPropertyType;
(function(ParsedPropertyType2) {
  ParsedPropertyType2[ParsedPropertyType2["DEFAULT"] = 0] = "DEFAULT";
  ParsedPropertyType2[ParsedPropertyType2["LITERAL_ATTR"] = 1] = "LITERAL_ATTR";
  ParsedPropertyType2[ParsedPropertyType2["ANIMATION"] = 2] = "ANIMATION";
  ParsedPropertyType2[ParsedPropertyType2["TWO_WAY"] = 3] = "TWO_WAY";
})(ParsedPropertyType || (ParsedPropertyType = {}));
var ParsedEventType;
(function(ParsedEventType2) {
  ParsedEventType2[ParsedEventType2["Regular"] = 0] = "Regular";
  ParsedEventType2[ParsedEventType2["Animation"] = 1] = "Animation";
  ParsedEventType2[ParsedEventType2["TwoWay"] = 2] = "TwoWay";
})(ParsedEventType || (ParsedEventType = {}));
var BindingType;
(function(BindingType2) {
  BindingType2[BindingType2["Property"] = 0] = "Property";
  BindingType2[BindingType2["Attribute"] = 1] = "Attribute";
  BindingType2[BindingType2["Class"] = 2] = "Class";
  BindingType2[BindingType2["Style"] = 3] = "Style";
  BindingType2[BindingType2["Animation"] = 4] = "Animation";
  BindingType2[BindingType2["TwoWay"] = 5] = "TwoWay";
})(BindingType || (BindingType = {}));
var TagContentType;
(function(TagContentType2) {
  TagContentType2[TagContentType2["RAW_TEXT"] = 0] = "RAW_TEXT";
  TagContentType2[TagContentType2["ESCAPABLE_RAW_TEXT"] = 1] = "ESCAPABLE_RAW_TEXT";
  TagContentType2[TagContentType2["PARSABLE_DATA"] = 2] = "PARSABLE_DATA";
})(TagContentType || (TagContentType = {}));
var UNUSABLE_INTERPOLATION_REGEXPS = [
  /@/,
  // control flow reserved symbol
  /^\s*$/,
  // empty
  /[<>]/,
  // html tag
  /^[{}]$/,
  // i18n expansion
  /&(#|[a-z])/i,
  // character reference,
  /^\/\//
  // comment
];
function assertInterpolationSymbols(identifier, value) {
  if (value != null && !(Array.isArray(value) && value.length == 2)) {
    throw new Error(`Expected '${identifier}' to be an array, [start, end].`);
  } else if (value != null) {
    const start = value[0];
    const end = value[1];
    UNUSABLE_INTERPOLATION_REGEXPS.forEach((regexp) => {
      if (regexp.test(start) || regexp.test(end)) {
        throw new Error(`['${start}', '${end}'] contains unusable interpolation symbol.`);
      }
    });
  }
}
var InterpolationConfig = class _InterpolationConfig {
  start;
  end;
  static fromArray(markers) {
    if (!markers) {
      return DEFAULT_INTERPOLATION_CONFIG;
    }
    assertInterpolationSymbols("interpolation", markers);
    return new _InterpolationConfig(markers[0], markers[1]);
  }
  constructor(start, end) {
    this.start = start;
    this.end = end;
  }
};
var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig("{{", "}}");
var $EOF = 0;
var $TAB = 9;
var $LF = 10;
var $VTAB = 11;
var $FF = 12;
var $CR = 13;
var $SPACE = 32;
var $BANG = 33;
var $DQ = 34;
var $HASH = 35;
var $$ = 36;
var $PERCENT = 37;
var $AMPERSAND = 38;
var $SQ = 39;
var $LPAREN = 40;
var $RPAREN = 41;
var $STAR = 42;
var $PLUS = 43;
var $COMMA = 44;
var $MINUS = 45;
var $PERIOD = 46;
var $SLASH = 47;
var $COLON = 58;
var $SEMICOLON = 59;
var $LT = 60;
var $EQ = 61;
var $GT = 62;
var $QUESTION = 63;
var $0 = 48;
var $9 = 57;
var $A = 65;
var $E = 69;
var $Z = 90;
var $LBRACKET = 91;
var $BACKSLASH = 92;
var $RBRACKET = 93;
var $CARET = 94;
var $_ = 95;
var $a = 97;
var $e = 101;
var $f = 102;
var $n = 110;
var $r = 114;
var $t = 116;
var $u = 117;
var $v = 118;
var $z = 122;
var $LBRACE = 123;
var $BAR = 124;
var $RBRACE = 125;
var $NBSP = 160;
var $BT = 96;
function isWhitespace(code) {
  return code >= $TAB && code <= $SPACE || code == $NBSP;
}
function isDigit(code) {
  return $0 <= code && code <= $9;
}
function isAsciiLetter(code) {
  return code >= $a && code <= $z || code >= $A && code <= $Z;
}
function isQuote(code) {
  return code === $SQ || code === $DQ || code === $BT;
}
var ParseErrorLevel;
(function(ParseErrorLevel2) {
  ParseErrorLevel2[ParseErrorLevel2["WARNING"] = 0] = "WARNING";
  ParseErrorLevel2[ParseErrorLevel2["ERROR"] = 1] = "ERROR";
})(ParseErrorLevel || (ParseErrorLevel = {}));
var R3SelectorScopeMode;
(function(R3SelectorScopeMode2) {
  R3SelectorScopeMode2[R3SelectorScopeMode2["Inline"] = 0] = "Inline";
  R3SelectorScopeMode2[R3SelectorScopeMode2["SideEffect"] = 1] = "SideEffect";
  R3SelectorScopeMode2[R3SelectorScopeMode2["Omit"] = 2] = "Omit";
})(R3SelectorScopeMode || (R3SelectorScopeMode = {}));
var R3NgModuleMetadataKind;
(function(R3NgModuleMetadataKind2) {
  R3NgModuleMetadataKind2[R3NgModuleMetadataKind2["Global"] = 0] = "Global";
  R3NgModuleMetadataKind2[R3NgModuleMetadataKind2["Local"] = 1] = "Local";
})(R3NgModuleMetadataKind || (R3NgModuleMetadataKind = {}));
var R3TemplateDependencyKind;
(function(R3TemplateDependencyKind2) {
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Directive"] = 0] = "Directive";
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["Pipe"] = 1] = "Pipe";
  R3TemplateDependencyKind2[R3TemplateDependencyKind2["NgModule"] = 2] = "NgModule";
})(R3TemplateDependencyKind || (R3TemplateDependencyKind = {}));
var _cssScopedPseudoFunctionPrefix = "(:(where|is)\\()?";
var _polyfillHost = "-shadowcsshost";
var _polyfillHostContext = "-shadowcsscontext";
var _parenSuffix = "(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))";
var _cssColonHostRe = new RegExp(_polyfillHost + _parenSuffix + "?([^,{]*)", "gim");
var _hostContextPattern = _polyfillHostContext + _parenSuffix + "?([^{]*)";
var _cssColonHostContextReGlobal = new RegExp(`${_cssScopedPseudoFunctionPrefix}(${_hostContextPattern})`, "gim");
var _cssColonHostContextRe = new RegExp(_hostContextPattern, "im");
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
var _polyfillHostNoCombinatorOutsidePseudoFunction = new RegExp(`${_polyfillHostNoCombinator}(?![^(]*\\))`, "g");
var COMMENT_PLACEHOLDER = "%COMMENT%";
var _commentWithHashPlaceHolderRe = new RegExp(COMMENT_PLACEHOLDER, "g");
var _ruleRe = new RegExp(`(\\s*(?:${COMMENT_PLACEHOLDER}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
var COMMA_IN_PLACEHOLDER = "%COMMA_IN_PLACEHOLDER%";
var SEMI_IN_PLACEHOLDER = "%SEMI_IN_PLACEHOLDER%";
var COLON_IN_PLACEHOLDER = "%COLON_IN_PLACEHOLDER%";
var _cssCommaInPlaceholderReGlobal = new RegExp(COMMA_IN_PLACEHOLDER, "g");
var _cssSemiInPlaceholderReGlobal = new RegExp(SEMI_IN_PLACEHOLDER, "g");
var _cssColonInPlaceholderReGlobal = new RegExp(COLON_IN_PLACEHOLDER, "g");
var OpKind;
(function(OpKind2) {
  OpKind2[OpKind2["ListEnd"] = 0] = "ListEnd";
  OpKind2[OpKind2["Statement"] = 1] = "Statement";
  OpKind2[OpKind2["Variable"] = 2] = "Variable";
  OpKind2[OpKind2["ElementStart"] = 3] = "ElementStart";
  OpKind2[OpKind2["Element"] = 4] = "Element";
  OpKind2[OpKind2["Template"] = 5] = "Template";
  OpKind2[OpKind2["ElementEnd"] = 6] = "ElementEnd";
  OpKind2[OpKind2["ContainerStart"] = 7] = "ContainerStart";
  OpKind2[OpKind2["Container"] = 8] = "Container";
  OpKind2[OpKind2["ContainerEnd"] = 9] = "ContainerEnd";
  OpKind2[OpKind2["DisableBindings"] = 10] = "DisableBindings";
  OpKind2[OpKind2["ConditionalCreate"] = 11] = "ConditionalCreate";
  OpKind2[OpKind2["ConditionalBranchCreate"] = 12] = "ConditionalBranchCreate";
  OpKind2[OpKind2["Conditional"] = 13] = "Conditional";
  OpKind2[OpKind2["EnableBindings"] = 14] = "EnableBindings";
  OpKind2[OpKind2["Text"] = 15] = "Text";
  OpKind2[OpKind2["Listener"] = 16] = "Listener";
  OpKind2[OpKind2["InterpolateText"] = 17] = "InterpolateText";
  OpKind2[OpKind2["Binding"] = 18] = "Binding";
  OpKind2[OpKind2["Property"] = 19] = "Property";
  OpKind2[OpKind2["StyleProp"] = 20] = "StyleProp";
  OpKind2[OpKind2["ClassProp"] = 21] = "ClassProp";
  OpKind2[OpKind2["StyleMap"] = 22] = "StyleMap";
  OpKind2[OpKind2["ClassMap"] = 23] = "ClassMap";
  OpKind2[OpKind2["Advance"] = 24] = "Advance";
  OpKind2[OpKind2["Pipe"] = 25] = "Pipe";
  OpKind2[OpKind2["Attribute"] = 26] = "Attribute";
  OpKind2[OpKind2["ExtractedAttribute"] = 27] = "ExtractedAttribute";
  OpKind2[OpKind2["Defer"] = 28] = "Defer";
  OpKind2[OpKind2["DeferOn"] = 29] = "DeferOn";
  OpKind2[OpKind2["DeferWhen"] = 30] = "DeferWhen";
  OpKind2[OpKind2["I18nMessage"] = 31] = "I18nMessage";
  OpKind2[OpKind2["DomProperty"] = 32] = "DomProperty";
  OpKind2[OpKind2["Namespace"] = 33] = "Namespace";
  OpKind2[OpKind2["ProjectionDef"] = 34] = "ProjectionDef";
  OpKind2[OpKind2["Projection"] = 35] = "Projection";
  OpKind2[OpKind2["RepeaterCreate"] = 36] = "RepeaterCreate";
  OpKind2[OpKind2["Repeater"] = 37] = "Repeater";
  OpKind2[OpKind2["TwoWayProperty"] = 38] = "TwoWayProperty";
  OpKind2[OpKind2["TwoWayListener"] = 39] = "TwoWayListener";
  OpKind2[OpKind2["DeclareLet"] = 40] = "DeclareLet";
  OpKind2[OpKind2["StoreLet"] = 41] = "StoreLet";
  OpKind2[OpKind2["I18nStart"] = 42] = "I18nStart";
  OpKind2[OpKind2["I18n"] = 43] = "I18n";
  OpKind2[OpKind2["I18nEnd"] = 44] = "I18nEnd";
  OpKind2[OpKind2["I18nExpression"] = 45] = "I18nExpression";
  OpKind2[OpKind2["I18nApply"] = 46] = "I18nApply";
  OpKind2[OpKind2["IcuStart"] = 47] = "IcuStart";
  OpKind2[OpKind2["IcuEnd"] = 48] = "IcuEnd";
  OpKind2[OpKind2["IcuPlaceholder"] = 49] = "IcuPlaceholder";
  OpKind2[OpKind2["I18nContext"] = 50] = "I18nContext";
  OpKind2[OpKind2["I18nAttributes"] = 51] = "I18nAttributes";
  OpKind2[OpKind2["SourceLocation"] = 52] = "SourceLocation";
})(OpKind || (OpKind = {}));
var ExpressionKind;
(function(ExpressionKind2) {
  ExpressionKind2[ExpressionKind2["LexicalRead"] = 0] = "LexicalRead";
  ExpressionKind2[ExpressionKind2["Context"] = 1] = "Context";
  ExpressionKind2[ExpressionKind2["TrackContext"] = 2] = "TrackContext";
  ExpressionKind2[ExpressionKind2["ReadVariable"] = 3] = "ReadVariable";
  ExpressionKind2[ExpressionKind2["NextContext"] = 4] = "NextContext";
  ExpressionKind2[ExpressionKind2["Reference"] = 5] = "Reference";
  ExpressionKind2[ExpressionKind2["StoreLet"] = 6] = "StoreLet";
  ExpressionKind2[ExpressionKind2["ContextLetReference"] = 7] = "ContextLetReference";
  ExpressionKind2[ExpressionKind2["GetCurrentView"] = 8] = "GetCurrentView";
  ExpressionKind2[ExpressionKind2["RestoreView"] = 9] = "RestoreView";
  ExpressionKind2[ExpressionKind2["ResetView"] = 10] = "ResetView";
  ExpressionKind2[ExpressionKind2["PureFunctionExpr"] = 11] = "PureFunctionExpr";
  ExpressionKind2[ExpressionKind2["PureFunctionParameterExpr"] = 12] = "PureFunctionParameterExpr";
  ExpressionKind2[ExpressionKind2["PipeBinding"] = 13] = "PipeBinding";
  ExpressionKind2[ExpressionKind2["PipeBindingVariadic"] = 14] = "PipeBindingVariadic";
  ExpressionKind2[ExpressionKind2["SafePropertyRead"] = 15] = "SafePropertyRead";
  ExpressionKind2[ExpressionKind2["SafeKeyedRead"] = 16] = "SafeKeyedRead";
  ExpressionKind2[ExpressionKind2["SafeInvokeFunction"] = 17] = "SafeInvokeFunction";
  ExpressionKind2[ExpressionKind2["SafeTernaryExpr"] = 18] = "SafeTernaryExpr";
  ExpressionKind2[ExpressionKind2["EmptyExpr"] = 19] = "EmptyExpr";
  ExpressionKind2[ExpressionKind2["AssignTemporaryExpr"] = 20] = "AssignTemporaryExpr";
  ExpressionKind2[ExpressionKind2["ReadTemporaryExpr"] = 21] = "ReadTemporaryExpr";
  ExpressionKind2[ExpressionKind2["SlotLiteralExpr"] = 22] = "SlotLiteralExpr";
  ExpressionKind2[ExpressionKind2["ConditionalCase"] = 23] = "ConditionalCase";
  ExpressionKind2[ExpressionKind2["ConstCollected"] = 24] = "ConstCollected";
  ExpressionKind2[ExpressionKind2["TwoWayBindingSet"] = 25] = "TwoWayBindingSet";
})(ExpressionKind || (ExpressionKind = {}));
var VariableFlags;
(function(VariableFlags2) {
  VariableFlags2[VariableFlags2["None"] = 0] = "None";
  VariableFlags2[VariableFlags2["AlwaysInline"] = 1] = "AlwaysInline";
})(VariableFlags || (VariableFlags = {}));
var SemanticVariableKind;
(function(SemanticVariableKind2) {
  SemanticVariableKind2[SemanticVariableKind2["Context"] = 0] = "Context";
  SemanticVariableKind2[SemanticVariableKind2["Identifier"] = 1] = "Identifier";
  SemanticVariableKind2[SemanticVariableKind2["SavedView"] = 2] = "SavedView";
  SemanticVariableKind2[SemanticVariableKind2["Alias"] = 3] = "Alias";
})(SemanticVariableKind || (SemanticVariableKind = {}));
var CompatibilityMode;
(function(CompatibilityMode2) {
  CompatibilityMode2[CompatibilityMode2["Normal"] = 0] = "Normal";
  CompatibilityMode2[CompatibilityMode2["TemplateDefinitionBuilder"] = 1] = "TemplateDefinitionBuilder";
})(CompatibilityMode || (CompatibilityMode = {}));
var BindingKind;
(function(BindingKind2) {
  BindingKind2[BindingKind2["Attribute"] = 0] = "Attribute";
  BindingKind2[BindingKind2["ClassName"] = 1] = "ClassName";
  BindingKind2[BindingKind2["StyleProperty"] = 2] = "StyleProperty";
  BindingKind2[BindingKind2["Property"] = 3] = "Property";
  BindingKind2[BindingKind2["Template"] = 4] = "Template";
  BindingKind2[BindingKind2["I18n"] = 5] = "I18n";
  BindingKind2[BindingKind2["Animation"] = 6] = "Animation";
  BindingKind2[BindingKind2["TwoWayProperty"] = 7] = "TwoWayProperty";
})(BindingKind || (BindingKind = {}));
var I18nParamResolutionTime;
(function(I18nParamResolutionTime2) {
  I18nParamResolutionTime2[I18nParamResolutionTime2["Creation"] = 0] = "Creation";
  I18nParamResolutionTime2[I18nParamResolutionTime2["Postproccessing"] = 1] = "Postproccessing";
})(I18nParamResolutionTime || (I18nParamResolutionTime = {}));
var I18nExpressionFor;
(function(I18nExpressionFor2) {
  I18nExpressionFor2[I18nExpressionFor2["I18nText"] = 0] = "I18nText";
  I18nExpressionFor2[I18nExpressionFor2["I18nAttribute"] = 1] = "I18nAttribute";
})(I18nExpressionFor || (I18nExpressionFor = {}));
var I18nParamValueFlags;
(function(I18nParamValueFlags2) {
  I18nParamValueFlags2[I18nParamValueFlags2["None"] = 0] = "None";
  I18nParamValueFlags2[I18nParamValueFlags2["ElementTag"] = 1] = "ElementTag";
  I18nParamValueFlags2[I18nParamValueFlags2["TemplateTag"] = 2] = "TemplateTag";
  I18nParamValueFlags2[I18nParamValueFlags2["OpenTag"] = 4] = "OpenTag";
  I18nParamValueFlags2[I18nParamValueFlags2["CloseTag"] = 8] = "CloseTag";
  I18nParamValueFlags2[I18nParamValueFlags2["ExpressionIndex"] = 16] = "ExpressionIndex";
})(I18nParamValueFlags || (I18nParamValueFlags = {}));
var Namespace;
(function(Namespace2) {
  Namespace2[Namespace2["HTML"] = 0] = "HTML";
  Namespace2[Namespace2["SVG"] = 1] = "SVG";
  Namespace2[Namespace2["Math"] = 2] = "Math";
})(Namespace || (Namespace = {}));
var DeferTriggerKind;
(function(DeferTriggerKind2) {
  DeferTriggerKind2[DeferTriggerKind2["Idle"] = 0] = "Idle";
  DeferTriggerKind2[DeferTriggerKind2["Immediate"] = 1] = "Immediate";
  DeferTriggerKind2[DeferTriggerKind2["Timer"] = 2] = "Timer";
  DeferTriggerKind2[DeferTriggerKind2["Hover"] = 3] = "Hover";
  DeferTriggerKind2[DeferTriggerKind2["Interaction"] = 4] = "Interaction";
  DeferTriggerKind2[DeferTriggerKind2["Viewport"] = 5] = "Viewport";
  DeferTriggerKind2[DeferTriggerKind2["Never"] = 6] = "Never";
})(DeferTriggerKind || (DeferTriggerKind = {}));
var I18nContextKind;
(function(I18nContextKind2) {
  I18nContextKind2[I18nContextKind2["RootI18n"] = 0] = "RootI18n";
  I18nContextKind2[I18nContextKind2["Icu"] = 1] = "Icu";
  I18nContextKind2[I18nContextKind2["Attr"] = 2] = "Attr";
})(I18nContextKind || (I18nContextKind = {}));
var TemplateKind;
(function(TemplateKind2) {
  TemplateKind2[TemplateKind2["NgTemplate"] = 0] = "NgTemplate";
  TemplateKind2[TemplateKind2["Structural"] = 1] = "Structural";
  TemplateKind2[TemplateKind2["Block"] = 2] = "Block";
})(TemplateKind || (TemplateKind = {}));
var ConsumesSlot = Symbol("ConsumesSlot");
var DependsOnSlotContext = Symbol("DependsOnSlotContext");
var ConsumesVarsTrait = Symbol("ConsumesVars");
var UsesVarOffset = Symbol("UsesVarOffset");
var TRAIT_CONSUMES_SLOT = {
  [ConsumesSlot]: true,
  numSlotsUsed: 1
};
var TRAIT_DEPENDS_ON_SLOT_CONTEXT = {
  [DependsOnSlotContext]: true
};
var TRAIT_CONSUMES_VARS = {
  [ConsumesVarsTrait]: true
};
var Interpolation2 = class {
  strings;
  expressions;
  i18nPlaceholders;
  constructor(strings, expressions, i18nPlaceholders) {
    this.strings = strings;
    this.expressions = expressions;
    this.i18nPlaceholders = i18nPlaceholders;
    if (i18nPlaceholders.length !== 0 && i18nPlaceholders.length !== expressions.length) {
      throw new Error(`Expected ${expressions.length} placeholders to match interpolation expression count, but got ${i18nPlaceholders.length}`);
    }
  }
};
var ExpressionBase = class extends Expression {
  constructor(sourceSpan = null) {
    super(null, sourceSpan);
  }
};
var StoreLetExpr = class _StoreLetExpr extends ExpressionBase {
  target;
  value;
  sourceSpan;
  kind = ExpressionKind.StoreLet;
  [ConsumesVarsTrait] = true;
  [DependsOnSlotContext] = true;
  constructor(target, value, sourceSpan) {
    super();
    this.target = target;
    this.value = value;
    this.sourceSpan = sourceSpan;
  }
  visitExpression() {
  }
  isEquivalent(e) {
    return e instanceof _StoreLetExpr && e.target === this.target && e.value.isEquivalent(this.value);
  }
  isConstant() {
    return false;
  }
  transformInternalExpressions(transform3, flags) {
    this.value = transformExpressionsInExpression(this.value, transform3, flags);
  }
  clone() {
    return new _StoreLetExpr(this.target, this.value, this.sourceSpan);
  }
};
var PureFunctionExpr = class _PureFunctionExpr extends ExpressionBase {
  kind = ExpressionKind.PureFunctionExpr;
  [ConsumesVarsTrait] = true;
  [UsesVarOffset] = true;
  varOffset = null;
  /**
   * The expression which should be memoized as a pure computation.
   *
   * This expression contains internal `PureFunctionParameterExpr`s, which are placeholders for the
   * positional argument expressions in `args.
   */
  body;
  /**
   * Positional arguments to the pure function which will memoize the `body` expression, which act
   * as memoization keys.
   */
  args;
  /**
   * Once extracted to the `ConstantPool`, a reference to the function which defines the computation
   * of `body`.
   */
  fn = null;
  constructor(expression, args) {
    super();
    this.body = expression;
    this.args = args;
  }
  visitExpression(visitor, context) {
    var _a;
    (_a = this.body) == null ? void 0 : _a.visitExpression(visitor, context);
    for (const arg of this.args) {
      arg.visitExpression(visitor, context);
    }
  }
  isEquivalent(other) {
    if (!(other instanceof _PureFunctionExpr) || other.args.length !== this.args.length) {
      return false;
    }
    return other.body !== null && this.body !== null && other.body.isEquivalent(this.body) && other.args.every((arg, idx) => arg.isEquivalent(this.args[idx]));
  }
  isConstant() {
    return false;
  }
  transformInternalExpressions(transform3, flags) {
    if (this.body !== null) {
      this.body = transformExpressionsInExpression(this.body, transform3, flags | VisitorContextFlag.InChildOperation);
    } else if (this.fn !== null) {
      this.fn = transformExpressionsInExpression(this.fn, transform3, flags);
    }
    for (let i = 0; i < this.args.length; i++) {
      this.args[i] = transformExpressionsInExpression(this.args[i], transform3, flags);
    }
  }
  clone() {
    var _a, _b;
    const expr = new _PureFunctionExpr(((_a = this.body) == null ? void 0 : _a.clone()) ?? null, this.args.map((arg) => arg.clone()));
    expr.fn = ((_b = this.fn) == null ? void 0 : _b.clone()) ?? null;
    expr.varOffset = this.varOffset;
    return expr;
  }
};
var PipeBindingExpr = class _PipeBindingExpr extends ExpressionBase {
  target;
  targetSlot;
  name;
  args;
  kind = ExpressionKind.PipeBinding;
  [ConsumesVarsTrait] = true;
  [UsesVarOffset] = true;
  varOffset = null;
  constructor(target, targetSlot, name, args) {
    super();
    this.target = target;
    this.targetSlot = targetSlot;
    this.name = name;
    this.args = args;
  }
  visitExpression(visitor, context) {
    for (const arg of this.args) {
      arg.visitExpression(visitor, context);
    }
  }
  isEquivalent() {
    return false;
  }
  isConstant() {
    return false;
  }
  transformInternalExpressions(transform3, flags) {
    for (let idx = 0; idx < this.args.length; idx++) {
      this.args[idx] = transformExpressionsInExpression(this.args[idx], transform3, flags);
    }
  }
  clone() {
    const r = new _PipeBindingExpr(this.target, this.targetSlot, this.name, this.args.map((a) => a.clone()));
    r.varOffset = this.varOffset;
    return r;
  }
};
var PipeBindingVariadicExpr = class _PipeBindingVariadicExpr extends ExpressionBase {
  target;
  targetSlot;
  name;
  args;
  numArgs;
  kind = ExpressionKind.PipeBindingVariadic;
  [ConsumesVarsTrait] = true;
  [UsesVarOffset] = true;
  varOffset = null;
  constructor(target, targetSlot, name, args, numArgs) {
    super();
    this.target = target;
    this.targetSlot = targetSlot;
    this.name = name;
    this.args = args;
    this.numArgs = numArgs;
  }
  visitExpression(visitor, context) {
    this.args.visitExpression(visitor, context);
  }
  isEquivalent() {
    return false;
  }
  isConstant() {
    return false;
  }
  transformInternalExpressions(transform3, flags) {
    this.args = transformExpressionsInExpression(this.args, transform3, flags);
  }
  clone() {
    const r = new _PipeBindingVariadicExpr(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
    r.varOffset = this.varOffset;
    return r;
  }
};
var VisitorContextFlag;
(function(VisitorContextFlag2) {
  VisitorContextFlag2[VisitorContextFlag2["None"] = 0] = "None";
  VisitorContextFlag2[VisitorContextFlag2["InChildOperation"] = 1] = "InChildOperation";
})(VisitorContextFlag || (VisitorContextFlag = {}));
function transformExpressionsInExpression() {
}
var elementContainerOpKinds = /* @__PURE__ */ new Set([
  OpKind.Element,
  OpKind.ElementStart,
  OpKind.Container,
  OpKind.ContainerStart,
  OpKind.Template,
  OpKind.RepeaterCreate,
  OpKind.ConditionalCreate,
  OpKind.ConditionalBranchCreate
]);
var CompilationJobKind;
(function(CompilationJobKind2) {
  CompilationJobKind2[CompilationJobKind2["Tmpl"] = 0] = "Tmpl";
  CompilationJobKind2[CompilationJobKind2["Host"] = 1] = "Host";
  CompilationJobKind2[CompilationJobKind2["Both"] = 2] = "Both";
})(CompilationJobKind || (CompilationJobKind = {}));
var CHAIN_COMPATIBILITY = /* @__PURE__ */ new Map([
  [Identifiers.attribute, Identifiers.attribute],
  [Identifiers.classProp, Identifiers.classProp],
  [Identifiers.element, Identifiers.element],
  [Identifiers.elementContainer, Identifiers.elementContainer],
  [Identifiers.elementContainerEnd, Identifiers.elementContainerEnd],
  [Identifiers.elementContainerStart, Identifiers.elementContainerStart],
  [Identifiers.elementEnd, Identifiers.elementEnd],
  [Identifiers.elementStart, Identifiers.elementStart],
  [Identifiers.domProperty, Identifiers.domProperty],
  [Identifiers.i18nExp, Identifiers.i18nExp],
  [Identifiers.listener, Identifiers.listener],
  [Identifiers.listener, Identifiers.listener],
  [Identifiers.property, Identifiers.property],
  [Identifiers.styleProp, Identifiers.styleProp],
  [Identifiers.syntheticHostListener, Identifiers.syntheticHostListener],
  [Identifiers.syntheticHostProperty, Identifiers.syntheticHostProperty],
  [Identifiers.templateCreate, Identifiers.templateCreate],
  [Identifiers.twoWayProperty, Identifiers.twoWayProperty],
  [Identifiers.twoWayListener, Identifiers.twoWayListener],
  [Identifiers.declareLet, Identifiers.declareLet],
  [Identifiers.conditionalCreate, Identifiers.conditionalBranchCreate],
  [Identifiers.conditionalBranchCreate, Identifiers.conditionalBranchCreate]
]);
var FLYWEIGHT_ARRAY = Object.freeze([]);
var REPLACEMENTS = /* @__PURE__ */ new Map([
  [OpKind.ElementEnd, [OpKind.ElementStart, OpKind.Element]],
  [OpKind.ContainerEnd, [OpKind.ContainerStart, OpKind.Container]],
  [OpKind.I18nEnd, [OpKind.I18nStart, OpKind.I18n]]
]);
var IGNORED_OP_KINDS = /* @__PURE__ */ new Set([OpKind.Pipe]);
var NAMED_ENTITIES = {};
var NGSP_UNICODE = "\uE500";
NAMED_ENTITIES["ngsp"] = NGSP_UNICODE;
var CharacterReferenceType;
(function(CharacterReferenceType2) {
  CharacterReferenceType2["HEX"] = "hexadecimal";
  CharacterReferenceType2["DEC"] = "decimal";
})(CharacterReferenceType || (CharacterReferenceType = {}));
var WS_CHARS = " \f\n\r	\v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
var NO_WS_REGEXP = new RegExp(`[^${WS_CHARS}]`);
var WS_REPLACE_REGEXP = new RegExp(`[${WS_CHARS}]{2,}`, "g");
var TokenType;
(function(TokenType2) {
  TokenType2[TokenType2["Character"] = 0] = "Character";
  TokenType2[TokenType2["Identifier"] = 1] = "Identifier";
  TokenType2[TokenType2["PrivateIdentifier"] = 2] = "PrivateIdentifier";
  TokenType2[TokenType2["Keyword"] = 3] = "Keyword";
  TokenType2[TokenType2["String"] = 4] = "String";
  TokenType2[TokenType2["Operator"] = 5] = "Operator";
  TokenType2[TokenType2["Number"] = 6] = "Number";
  TokenType2[TokenType2["Error"] = 7] = "Error";
})(TokenType || (TokenType = {}));
var StringTokenKind;
(function(StringTokenKind2) {
  StringTokenKind2[StringTokenKind2["Plain"] = 0] = "Plain";
  StringTokenKind2[StringTokenKind2["TemplateLiteralPart"] = 1] = "TemplateLiteralPart";
  StringTokenKind2[StringTokenKind2["TemplateLiteralEnd"] = 2] = "TemplateLiteralEnd";
})(StringTokenKind || (StringTokenKind = {}));
var KEYWORDS = [
  "var",
  "let",
  "as",
  "null",
  "undefined",
  "true",
  "false",
  "if",
  "else",
  "this",
  "typeof",
  "void",
  "in"
];
var Lexer = class {
  tokenize(text) {
    return new _Scanner(text).scan();
  }
};
var Token = class {
  index;
  end;
  type;
  numValue;
  strValue;
  constructor(index, end, type, numValue, strValue) {
    this.index = index;
    this.end = end;
    this.type = type;
    this.numValue = numValue;
    this.strValue = strValue;
  }
  isCharacter(code) {
    return this.type === TokenType.Character && this.numValue === code;
  }
  isNumber() {
    return this.type === TokenType.Number;
  }
  isString() {
    return this.type === TokenType.String;
  }
  isOperator(operator) {
    return this.type === TokenType.Operator && this.strValue === operator;
  }
  isIdentifier() {
    return this.type === TokenType.Identifier;
  }
  isPrivateIdentifier() {
    return this.type === TokenType.PrivateIdentifier;
  }
  isKeyword() {
    return this.type === TokenType.Keyword;
  }
  isKeywordLet() {
    return this.type === TokenType.Keyword && this.strValue === "let";
  }
  isKeywordAs() {
    return this.type === TokenType.Keyword && this.strValue === "as";
  }
  isKeywordNull() {
    return this.type === TokenType.Keyword && this.strValue === "null";
  }
  isKeywordUndefined() {
    return this.type === TokenType.Keyword && this.strValue === "undefined";
  }
  isKeywordTrue() {
    return this.type === TokenType.Keyword && this.strValue === "true";
  }
  isKeywordFalse() {
    return this.type === TokenType.Keyword && this.strValue === "false";
  }
  isKeywordThis() {
    return this.type === TokenType.Keyword && this.strValue === "this";
  }
  isKeywordTypeof() {
    return this.type === TokenType.Keyword && this.strValue === "typeof";
  }
  isKeywordVoid() {
    return this.type === TokenType.Keyword && this.strValue === "void";
  }
  isKeywordIn() {
    return this.type === TokenType.Keyword && this.strValue === "in";
  }
  isError() {
    return this.type === TokenType.Error;
  }
  toNumber() {
    return this.type === TokenType.Number ? this.numValue : -1;
  }
  isTemplateLiteralPart() {
    return this.isString() && this.kind === StringTokenKind.TemplateLiteralPart;
  }
  isTemplateLiteralEnd() {
    return this.isString() && this.kind === StringTokenKind.TemplateLiteralEnd;
  }
  isTemplateLiteralInterpolationStart() {
    return this.isOperator("${");
  }
  isTemplateLiteralInterpolationEnd() {
    return this.isOperator("}");
  }
  toString() {
    switch (this.type) {
      case TokenType.Character:
      case TokenType.Identifier:
      case TokenType.Keyword:
      case TokenType.Operator:
      case TokenType.PrivateIdentifier:
      case TokenType.String:
      case TokenType.Error:
        return this.strValue;
      case TokenType.Number:
        return this.numValue.toString();
      default:
        return null;
    }
  }
};
var StringToken = class extends Token {
  kind;
  constructor(index, end, strValue, kind) {
    super(index, end, TokenType.String, 0, strValue);
    this.kind = kind;
  }
};
function newCharacterToken(index, end, code) {
  return new Token(index, end, TokenType.Character, code, String.fromCharCode(code));
}
function newIdentifierToken(index, end, text) {
  return new Token(index, end, TokenType.Identifier, 0, text);
}
function newPrivateIdentifierToken(index, end, text) {
  return new Token(index, end, TokenType.PrivateIdentifier, 0, text);
}
function newKeywordToken(index, end, text) {
  return new Token(index, end, TokenType.Keyword, 0, text);
}
function newOperatorToken(index, end, text) {
  return new Token(index, end, TokenType.Operator, 0, text);
}
function newNumberToken(index, end, n) {
  return new Token(index, end, TokenType.Number, n, "");
}
function newErrorToken(index, end, message) {
  return new Token(index, end, TokenType.Error, 0, message);
}
var EOF = new Token(-1, -1, TokenType.Character, 0, "");
var _Scanner = class {
  input;
  tokens = [];
  length;
  peek = 0;
  index = -1;
  braceStack = [];
  constructor(input) {
    this.input = input;
    this.length = input.length;
    this.advance();
  }
  scan() {
    let token = this.scanToken();
    while (token !== null) {
      this.tokens.push(token);
      token = this.scanToken();
    }
    return this.tokens;
  }
  advance() {
    this.peek = ++this.index >= this.length ? $EOF : this.input.charCodeAt(this.index);
  }
  scanToken() {
    const input = this.input;
    const length = this.length;
    let peek = this.peek;
    let index = this.index;
    while (peek <= $SPACE) {
      if (++index >= length) {
        peek = $EOF;
        break;
      } else {
        peek = input.charCodeAt(index);
      }
    }
    this.peek = peek;
    this.index = index;
    if (index >= length) {
      return null;
    }
    if (isIdentifierStart(peek)) {
      return this.scanIdentifier();
    }
    if (isDigit(peek)) {
      return this.scanNumber(index);
    }
    const start = index;
    switch (peek) {
      case $PERIOD:
        this.advance();
        return isDigit(this.peek) ? this.scanNumber(start) : newCharacterToken(start, this.index, $PERIOD);
      case $LPAREN:
      case $RPAREN:
      case $LBRACKET:
      case $RBRACKET:
      case $COMMA:
      case $COLON:
      case $SEMICOLON:
        return this.scanCharacter(start, peek);
      case $LBRACE:
        return this.scanOpenBrace(start, peek);
      case $RBRACE:
        return this.scanCloseBrace(start, peek);
      case $SQ:
      case $DQ:
        return this.scanString();
      case $BT:
        this.advance();
        return this.scanTemplateLiteralPart(start);
      case $HASH:
        return this.scanPrivateIdentifier();
      case $PLUS:
      case $MINUS:
      case $SLASH:
      case $PERCENT:
      case $CARET:
        return this.scanOperator(start, String.fromCharCode(peek));
      case $STAR:
        return this.scanComplexOperator(start, "*", $STAR, "*");
      case $QUESTION:
        return this.scanQuestion(start);
      case $LT:
      case $GT:
        return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, "=");
      case $BANG:
      case $EQ:
        return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, "=", $EQ, "=");
      case $AMPERSAND:
        return this.scanComplexOperator(start, "&", $AMPERSAND, "&");
      case $BAR:
        return this.scanComplexOperator(start, "|", $BAR, "|");
      case $NBSP:
        while (isWhitespace(this.peek))
          this.advance();
        return this.scanToken();
    }
    this.advance();
    return this.error(`Unexpected character [${String.fromCharCode(peek)}]`, 0);
  }
  scanCharacter(start, code) {
    this.advance();
    return newCharacterToken(start, this.index, code);
  }
  scanOperator(start, str) {
    this.advance();
    return newOperatorToken(start, this.index, str);
  }
  scanOpenBrace(start, code) {
    this.braceStack.push("expression");
    this.advance();
    return newCharacterToken(start, this.index, code);
  }
  scanCloseBrace(start, code) {
    this.advance();
    const currentBrace = this.braceStack.pop();
    if (currentBrace === "interpolation") {
      this.tokens.push(newOperatorToken(start, this.index, "}"));
      return this.scanTemplateLiteralPart(this.index);
    }
    return newCharacterToken(start, this.index, code);
  }
  /**
   * Tokenize a 2/3 char long operator
   *
   * @param start start index in the expression
   * @param one first symbol (always part of the operator)
   * @param twoCode code point for the second symbol
   * @param two second symbol (part of the operator when the second code point matches)
   * @param threeCode code point for the third symbol
   * @param three third symbol (part of the operator when provided and matches source expression)
   */
  scanComplexOperator(start, one, twoCode, two, threeCode, three) {
    this.advance();
    let str = one;
    if (this.peek == twoCode) {
      this.advance();
      str += two;
    }
    if (threeCode != null && this.peek == threeCode) {
      this.advance();
      str += three;
    }
    return newOperatorToken(start, this.index, str);
  }
  scanIdentifier() {
    const start = this.index;
    this.advance();
    while (isIdentifierPart(this.peek))
      this.advance();
    const str = this.input.substring(start, this.index);
    return KEYWORDS.indexOf(str) > -1 ? newKeywordToken(start, this.index, str) : newIdentifierToken(start, this.index, str);
  }
  /** Scans an ECMAScript private identifier. */
  scanPrivateIdentifier() {
    const start = this.index;
    this.advance();
    if (!isIdentifierStart(this.peek)) {
      return this.error("Invalid character [#]", -1);
    }
    while (isIdentifierPart(this.peek))
      this.advance();
    const identifierName = this.input.substring(start, this.index);
    return newPrivateIdentifierToken(start, this.index, identifierName);
  }
  scanNumber(start) {
    let simple = this.index === start;
    let hasSeparators = false;
    this.advance();
    while (true) {
      if (isDigit(this.peek)) ;
      else if (this.peek === $_) {
        if (!isDigit(this.input.charCodeAt(this.index - 1)) || !isDigit(this.input.charCodeAt(this.index + 1))) {
          return this.error("Invalid numeric separator", 0);
        }
        hasSeparators = true;
      } else if (this.peek === $PERIOD) {
        simple = false;
      } else if (isExponentStart(this.peek)) {
        this.advance();
        if (isExponentSign(this.peek))
          this.advance();
        if (!isDigit(this.peek))
          return this.error("Invalid exponent", -1);
        simple = false;
      } else {
        break;
      }
      this.advance();
    }
    let str = this.input.substring(start, this.index);
    if (hasSeparators) {
      str = str.replace(/_/g, "");
    }
    const value = simple ? parseIntAutoRadix(str) : parseFloat(str);
    return newNumberToken(start, this.index, value);
  }
  scanString() {
    const start = this.index;
    const quote = this.peek;
    this.advance();
    let buffer = "";
    let marker = this.index;
    const input = this.input;
    while (this.peek != quote) {
      if (this.peek == $BACKSLASH) {
        const result = this.scanStringBackslash(buffer, marker);
        if (typeof result !== "string") {
          return result;
        }
        buffer = result;
        marker = this.index;
      } else if (this.peek == $EOF) {
        return this.error("Unterminated quote", 0);
      } else {
        this.advance();
      }
    }
    const last = input.substring(marker, this.index);
    this.advance();
    return new StringToken(start, this.index, buffer + last, StringTokenKind.Plain);
  }
  scanQuestion(start) {
    this.advance();
    let str = "?";
    if (this.peek === $QUESTION || this.peek === $PERIOD) {
      str += this.peek === $PERIOD ? "." : "?";
      this.advance();
    }
    return newOperatorToken(start, this.index, str);
  }
  scanTemplateLiteralPart(start) {
    let buffer = "";
    let marker = this.index;
    while (this.peek !== $BT) {
      if (this.peek === $BACKSLASH) {
        const result = this.scanStringBackslash(buffer, marker);
        if (typeof result !== "string") {
          return result;
        }
        buffer = result;
        marker = this.index;
      } else if (this.peek === $$) {
        const dollar = this.index;
        this.advance();
        if (this.peek === $LBRACE) {
          this.braceStack.push("interpolation");
          this.tokens.push(new StringToken(start, dollar, buffer + this.input.substring(marker, dollar), StringTokenKind.TemplateLiteralPart));
          this.advance();
          return newOperatorToken(dollar, this.index, this.input.substring(dollar, this.index));
        }
      } else if (this.peek === $EOF) {
        return this.error("Unterminated template literal", 0);
      } else {
        this.advance();
      }
    }
    const last = this.input.substring(marker, this.index);
    this.advance();
    return new StringToken(start, this.index, buffer + last, StringTokenKind.TemplateLiteralEnd);
  }
  error(message, offset) {
    const position = this.index + offset;
    return newErrorToken(position, this.index, `Lexer Error: ${message} at column ${position} in expression [${this.input}]`);
  }
  scanStringBackslash(buffer, marker) {
    buffer += this.input.substring(marker, this.index);
    let unescapedCode;
    this.advance();
    if (this.peek === $u) {
      const hex = this.input.substring(this.index + 1, this.index + 5);
      if (/^[0-9a-f]+$/i.test(hex)) {
        unescapedCode = parseInt(hex, 16);
      } else {
        return this.error(`Invalid unicode escape [\\u${hex}]`, 0);
      }
      for (let i = 0; i < 5; i++) {
        this.advance();
      }
    } else {
      unescapedCode = unescape(this.peek);
      this.advance();
    }
    buffer += String.fromCharCode(unescapedCode);
    return buffer;
  }
};
function isIdentifierStart(code) {
  return $a <= code && code <= $z || $A <= code && code <= $Z || code == $_ || code == $$;
}
function isIdentifierPart(code) {
  return isAsciiLetter(code) || isDigit(code) || code == $_ || code == $$;
}
function isExponentStart(code) {
  return code == $e || code == $E;
}
function isExponentSign(code) {
  return code == $MINUS || code == $PLUS;
}
function unescape(code) {
  switch (code) {
    case $n:
      return $LF;
    case $f:
      return $FF;
    case $r:
      return $CR;
    case $t:
      return $TAB;
    case $v:
      return $VTAB;
    default:
      return code;
  }
}
function parseIntAutoRadix(text) {
  const result = parseInt(text);
  if (isNaN(result)) {
    throw new Error("Invalid integer literal when parsing " + text);
  }
  return result;
}
var SplitInterpolation = class {
  strings;
  expressions;
  offsets;
  constructor(strings, expressions, offsets) {
    this.strings = strings;
    this.expressions = expressions;
    this.offsets = offsets;
  }
};
var TemplateBindingParseResult = class {
  templateBindings;
  warnings;
  errors;
  constructor(templateBindings, warnings, errors) {
    this.templateBindings = templateBindings;
    this.warnings = warnings;
    this.errors = errors;
  }
};
var Parser = class {
  _lexer;
  errors = [];
  constructor(_lexer) {
    this._lexer = _lexer;
  }
  parseAction(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
    this._checkNoInterpolation(input, location, interpolationConfig);
    const sourceToLex = this._stripComments(input);
    const tokens = this._lexer.tokenize(sourceToLex);
    const ast = new _ParseAST(input, location, absoluteOffset, tokens, 1, this.errors, 0).parseChain();
    return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
  }
  parseBinding(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
    const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);
    return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
  }
  checkSimpleExpression(ast) {
    const checker = new SimpleExpressionChecker();
    ast.visit(checker);
    return checker.errors;
  }
  // Host bindings parsed here
  parseSimpleBinding(input, location, absoluteOffset, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
    const ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);
    const errors = this.checkSimpleExpression(ast);
    if (errors.length > 0) {
      this._reportError(`Host binding expression cannot contain ${errors.join(" ")}`, input, location);
    }
    return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
  }
  _reportError(message, input, errLocation, ctxLocation) {
    this.errors.push(new ParserError(message, input, errLocation, ctxLocation));
  }
  _parseBindingAst(input, location, absoluteOffset, interpolationConfig) {
    this._checkNoInterpolation(input, location, interpolationConfig);
    const sourceToLex = this._stripComments(input);
    const tokens = this._lexer.tokenize(sourceToLex);
    return new _ParseAST(input, location, absoluteOffset, tokens, 0, this.errors, 0).parseChain();
  }
  /**
   * Parse microsyntax template expression and return a list of bindings or
   * parsing errors in case the given expression is invalid.
   *
   * For example,
   * ```html
   *   <div *ngFor="let item of items">
   *         ^      ^ absoluteValueOffset for `templateValue`
   *         absoluteKeyOffset for `templateKey`
   * ```
   * contains three bindings:
   * 1. ngFor -> null
   * 2. item -> NgForOfContext.$implicit
   * 3. ngForOf -> items
   *
   * This is apparent from the de-sugared template:
   * ```html
   *   <ng-template ngFor let-item [ngForOf]="items">
   * ```
   *
   * @param templateKey name of directive, without the * prefix. For example: ngIf, ngFor
   * @param templateValue RHS of the microsyntax attribute
   * @param templateUrl template filename if it's external, component filename if it's inline
   * @param absoluteKeyOffset start of the `templateKey`
   * @param absoluteValueOffset start of the `templateValue`
   */
  parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) {
    const tokens = this._lexer.tokenize(templateValue);
    const parser = new _ParseAST(
      templateValue,
      templateUrl,
      absoluteValueOffset,
      tokens,
      0,
      this.errors,
      0
      /* relative offset */
    );
    return parser.parseTemplateBindings({
      source: templateKey,
      span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length)
    });
  }
  parseInterpolation(input, location, absoluteOffset, interpolatedTokens, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
    const { strings, expressions, offsets } = this.splitInterpolation(input, location, interpolatedTokens, interpolationConfig);
    if (expressions.length === 0)
      return null;
    const expressionNodes = [];
    for (let i = 0; i < expressions.length; ++i) {
      const expressionText = expressions[i].text;
      const sourceToLex = this._stripComments(expressionText);
      const tokens = this._lexer.tokenize(sourceToLex);
      const ast = new _ParseAST(input, location, absoluteOffset, tokens, 0, this.errors, offsets[i]).parseChain();
      expressionNodes.push(ast);
    }
    return this.createInterpolationAst(strings.map((s) => s.text), expressionNodes, input, location, absoluteOffset);
  }
  /**
   * Similar to `parseInterpolation`, but treats the provided string as a single expression
   * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
   * This is used for parsing the switch expression in ICUs.
   */
  parseInterpolationExpression(expression, location, absoluteOffset) {
    const sourceToLex = this._stripComments(expression);
    const tokens = this._lexer.tokenize(sourceToLex);
    const ast = new _ParseAST(expression, location, absoluteOffset, tokens, 0, this.errors, 0).parseChain();
    const strings = ["", ""];
    return this.createInterpolationAst(strings, [ast], expression, location, absoluteOffset);
  }
  createInterpolationAst(strings, expressions, input, location, absoluteOffset) {
    const span = new ParseSpan(0, input.length);
    const interpolation = new Interpolation$1(span, span.toAbsolute(absoluteOffset), strings, expressions);
    return new ASTWithSource(interpolation, input, location, absoluteOffset, this.errors);
  }
  /**
   * Splits a string of text into "raw" text segments and expressions present in interpolations in
   * the string.
   * Returns `null` if there are no interpolations, otherwise a
   * `SplitInterpolation` with splits that look like
   *   <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>
   */
  splitInterpolation(input, location, interpolatedTokens, interpolationConfig = DEFAULT_INTERPOLATION_CONFIG) {
    const strings = [];
    const expressions = [];
    const offsets = [];
    const inputToTemplateIndexMap = interpolatedTokens ? getIndexMapForOriginalTemplate(interpolatedTokens) : null;
    let i = 0;
    let atInterpolation = false;
    let extendLastString = false;
    let { start: interpStart, end: interpEnd } = interpolationConfig;
    while (i < input.length) {
      if (!atInterpolation) {
        const start = i;
        i = input.indexOf(interpStart, i);
        if (i === -1) {
          i = input.length;
        }
        const text = input.substring(start, i);
        strings.push({ text, start, end: i });
        atInterpolation = true;
      } else {
        const fullStart = i;
        const exprStart = fullStart + interpStart.length;
        const exprEnd = this._getInterpolationEndIndex(input, interpEnd, exprStart);
        if (exprEnd === -1) {
          atInterpolation = false;
          extendLastString = true;
          break;
        }
        const fullEnd = exprEnd + interpEnd.length;
        const text = input.substring(exprStart, exprEnd);
        if (text.trim().length === 0) {
          this._reportError("Blank expressions are not allowed in interpolated strings", input, `at column ${i} in`, location);
        }
        expressions.push({ text, start: fullStart, end: fullEnd });
        const startInOriginalTemplate = (inputToTemplateIndexMap == null ? void 0 : inputToTemplateIndexMap.get(fullStart)) ?? fullStart;
        const offset = startInOriginalTemplate + interpStart.length;
        offsets.push(offset);
        i = fullEnd;
        atInterpolation = false;
      }
    }
    if (!atInterpolation) {
      if (extendLastString) {
        const piece = strings[strings.length - 1];
        piece.text += input.substring(i);
        piece.end = input.length;
      } else {
        strings.push({ text: input.substring(i), start: i, end: input.length });
      }
    }
    return new SplitInterpolation(strings, expressions, offsets);
  }
  wrapLiteralPrimitive(input, location, absoluteOffset) {
    const span = new ParseSpan(0, input == null ? 0 : input.length);
    return new ASTWithSource(new LiteralPrimitive(span, span.toAbsolute(absoluteOffset), input), input, location, absoluteOffset, this.errors);
  }
  _stripComments(input) {
    const i = this._commentStart(input);
    return i != null ? input.substring(0, i) : input;
  }
  _commentStart(input) {
    let outerQuote = null;
    for (let i = 0; i < input.length - 1; i++) {
      const char = input.charCodeAt(i);
      const nextChar = input.charCodeAt(i + 1);
      if (char === $SLASH && nextChar == $SLASH && outerQuote == null)
        return i;
      if (outerQuote === char) {
        outerQuote = null;
      } else if (outerQuote == null && isQuote(char)) {
        outerQuote = char;
      }
    }
    return null;
  }
  _checkNoInterpolation(input, location, { start, end }) {
    let startIndex = -1;
    let endIndex = -1;
    for (const charIndex of this._forEachUnquotedChar(input, 0)) {
      if (startIndex === -1) {
        if (input.startsWith(start)) {
          startIndex = charIndex;
        }
      } else {
        endIndex = this._getInterpolationEndIndex(input, end, charIndex);
        if (endIndex > -1) {
          break;
        }
      }
    }
    if (startIndex > -1 && endIndex > -1) {
      this._reportError(`Got interpolation (${start}${end}) where expression was expected`, input, `at column ${startIndex} in`, location);
    }
  }
  /**
   * Finds the index of the end of an interpolation expression
   * while ignoring comments and quoted content.
   */
  _getInterpolationEndIndex(input, expressionEnd, start) {
    for (const charIndex of this._forEachUnquotedChar(input, start)) {
      if (input.startsWith(expressionEnd, charIndex)) {
        return charIndex;
      }
      if (input.startsWith("//", charIndex)) {
        return input.indexOf(expressionEnd, charIndex);
      }
    }
    return -1;
  }
  /**
   * Generator used to iterate over the character indexes of a string that are outside of quotes.
   * @param input String to loop through.
   * @param start Index within the string at which to start.
   */
  *_forEachUnquotedChar(input, start) {
    let currentQuote = null;
    let escapeCount = 0;
    for (let i = start; i < input.length; i++) {
      const char = input[i];
      if (isQuote(input.charCodeAt(i)) && (currentQuote === null || currentQuote === char) && escapeCount % 2 === 0) {
        currentQuote = currentQuote === null ? char : null;
      } else if (currentQuote === null) {
        yield i;
      }
      escapeCount = char === "\\" ? escapeCount + 1 : 0;
    }
  }
};
var ParseContextFlags;
(function(ParseContextFlags2) {
  ParseContextFlags2[ParseContextFlags2["None"] = 0] = "None";
  ParseContextFlags2[ParseContextFlags2["Writable"] = 1] = "Writable";
})(ParseContextFlags || (ParseContextFlags = {}));
var _ParseAST = class {
  input;
  location;
  absoluteOffset;
  tokens;
  parseFlags;
  errors;
  offset;
  rparensExpected = 0;
  rbracketsExpected = 0;
  rbracesExpected = 0;
  context = ParseContextFlags.None;
  // Cache of expression start and input indeces to the absolute source span they map to, used to
  // prevent creating superfluous source spans in `sourceSpan`.
  // A serial of the expression start and input index is used for mapping because both are stateful
  // and may change for subsequent expressions visited by the parser.
  sourceSpanCache = /* @__PURE__ */ new Map();
  index = 0;
  constructor(input, location, absoluteOffset, tokens, parseFlags, errors, offset) {
    this.input = input;
    this.location = location;
    this.absoluteOffset = absoluteOffset;
    this.tokens = tokens;
    this.parseFlags = parseFlags;
    this.errors = errors;
    this.offset = offset;
  }
  peek(offset) {
    const i = this.index + offset;
    return i < this.tokens.length ? this.tokens[i] : EOF;
  }
  get next() {
    return this.peek(0);
  }
  /** Whether all the parser input has been processed. */
  get atEOF() {
    return this.index >= this.tokens.length;
  }
  /**
   * Index of the next token to be processed, or the end of the last token if all have been
   * processed.
   */
  get inputIndex() {
    return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
  }
  /**
   * End index of the last processed token, or the start of the first token if none have been
   * processed.
   */
  get currentEndIndex() {
    if (this.index > 0) {
      const curToken = this.peek(-1);
      return curToken.end + this.offset;
    }
    if (this.tokens.length === 0) {
      return this.input.length + this.offset;
    }
    return this.next.index + this.offset;
  }
  /**
   * Returns the absolute offset of the start of the current token.
   */
  get currentAbsoluteOffset() {
    return this.absoluteOffset + this.inputIndex;
  }
  /**
   * Retrieve a `ParseSpan` from `start` to the current position (or to `artificialEndIndex` if
   * provided).
   *
   * @param start Position from which the `ParseSpan` will start.
   * @param artificialEndIndex Optional ending index to be used if provided (and if greater than the
   *     natural ending index)
   */
  span(start, artificialEndIndex) {
    let endIndex = this.currentEndIndex;
    if (artificialEndIndex !== void 0 && artificialEndIndex > this.currentEndIndex) {
      endIndex = artificialEndIndex;
    }
    if (start > endIndex) {
      const tmp = endIndex;
      endIndex = start;
      start = tmp;
    }
    return new ParseSpan(start, endIndex);
  }
  sourceSpan(start, artificialEndIndex) {
    const serial = `${start}@${this.inputIndex}:${artificialEndIndex}`;
    if (!this.sourceSpanCache.has(serial)) {
      this.sourceSpanCache.set(serial, this.span(start, artificialEndIndex).toAbsolute(this.absoluteOffset));
    }
    return this.sourceSpanCache.get(serial);
  }
  advance() {
    this.index++;
  }
  /**
   * Executes a callback in the provided context.
   */
  withContext(context, cb) {
    this.context |= context;
    const ret = cb();
    this.context ^= context;
    return ret;
  }
  consumeOptionalCharacter(code) {
    if (this.next.isCharacter(code)) {
      this.advance();
      return true;
    } else {
      return false;
    }
  }
  peekKeywordLet() {
    return this.next.isKeywordLet();
  }
  peekKeywordAs() {
    return this.next.isKeywordAs();
  }
  /**
   * Consumes an expected character, otherwise emits an error about the missing expected character
   * and skips over the token stream until reaching a recoverable point.
   *
   * See `this.error` and `this.skip` for more details.
   */
  expectCharacter(code) {
    if (this.consumeOptionalCharacter(code))
      return;
    this.error(`Missing expected ${String.fromCharCode(code)}`);
  }
  consumeOptionalOperator(op) {
    if (this.next.isOperator(op)) {
      this.advance();
      return true;
    } else {
      return false;
    }
  }
  expectOperator(operator) {
    if (this.consumeOptionalOperator(operator))
      return;
    this.error(`Missing expected operator ${operator}`);
  }
  prettyPrintToken(tok) {
    return tok === EOF ? "end of input" : `token ${tok}`;
  }
  expectIdentifierOrKeyword() {
    const n = this.next;
    if (!n.isIdentifier() && !n.isKeyword()) {
      if (n.isPrivateIdentifier()) {
        this._reportErrorForPrivateIdentifier(n, "expected identifier or keyword");
      } else {
        this.error(`Unexpected ${this.prettyPrintToken(n)}, expected identifier or keyword`);
      }
      return null;
    }
    this.advance();
    return n.toString();
  }
  expectIdentifierOrKeywordOrString() {
    const n = this.next;
    if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {
      if (n.isPrivateIdentifier()) {
        this._reportErrorForPrivateIdentifier(n, "expected identifier, keyword or string");
      } else {
        this.error(`Unexpected ${this.prettyPrintToken(n)}, expected identifier, keyword, or string`);
      }
      return "";
    }
    this.advance();
    return n.toString();
  }
  parseChain() {
    const exprs = [];
    const start = this.inputIndex;
    while (this.index < this.tokens.length) {
      const expr = this.parsePipe();
      exprs.push(expr);
      if (this.consumeOptionalCharacter($SEMICOLON)) {
        if (!(this.parseFlags & 1)) {
          this.error("Binding expression cannot contain chained expression");
        }
        while (this.consumeOptionalCharacter($SEMICOLON)) {
        }
      } else if (this.index < this.tokens.length) {
        const errorIndex = this.index;
        this.error(`Unexpected token '${this.next}'`);
        if (this.index === errorIndex) {
          break;
        }
      }
    }
    if (exprs.length === 0) {
      const artificialStart = this.offset;
      const artificialEnd = this.offset + this.input.length;
      return new EmptyExpr$1(this.span(artificialStart, artificialEnd), this.sourceSpan(artificialStart, artificialEnd));
    }
    if (exprs.length == 1)
      return exprs[0];
    return new Chain(this.span(start), this.sourceSpan(start), exprs);
  }
  parsePipe() {
    const start = this.inputIndex;
    let result = this.parseExpression();
    if (this.consumeOptionalOperator("|")) {
      if (this.parseFlags & 1) {
        this.error(`Cannot have a pipe in an action expression`);
      }
      do {
        const nameStart = this.inputIndex;
        let nameId = this.expectIdentifierOrKeyword();
        let nameSpan;
        let fullSpanEnd = void 0;
        if (nameId !== null) {
          nameSpan = this.sourceSpan(nameStart);
        } else {
          nameId = "";
          fullSpanEnd = this.next.index !== -1 ? this.next.index : this.input.length + this.offset;
          nameSpan = new ParseSpan(fullSpanEnd, fullSpanEnd).toAbsolute(this.absoluteOffset);
        }
        const args = [];
        while (this.consumeOptionalCharacter($COLON)) {
          args.push(this.parseExpression());
        }
        result = new BindingPipe(this.span(start), this.sourceSpan(start, fullSpanEnd), result, nameId, args, nameSpan);
      } while (this.consumeOptionalOperator("|"));
    }
    return result;
  }
  parseExpression() {
    return this.parseConditional();
  }
  parseConditional() {
    const start = this.inputIndex;
    const result = this.parseLogicalOr();
    if (this.consumeOptionalOperator("?")) {
      const yes = this.parsePipe();
      let no;
      if (!this.consumeOptionalCharacter($COLON)) {
        const end = this.inputIndex;
        const expression = this.input.substring(start, end);
        this.error(`Conditional expression ${expression} requires all 3 expressions`);
        no = new EmptyExpr$1(this.span(start), this.sourceSpan(start));
      } else {
        no = this.parsePipe();
      }
      return new Conditional(this.span(start), this.sourceSpan(start), result, yes, no);
    } else {
      return result;
    }
  }
  parseLogicalOr() {
    const start = this.inputIndex;
    let result = this.parseLogicalAnd();
    while (this.consumeOptionalOperator("||")) {
      const right = this.parseLogicalAnd();
      result = new Binary(this.span(start), this.sourceSpan(start), "||", result, right);
    }
    return result;
  }
  parseLogicalAnd() {
    const start = this.inputIndex;
    let result = this.parseNullishCoalescing();
    while (this.consumeOptionalOperator("&&")) {
      const right = this.parseNullishCoalescing();
      result = new Binary(this.span(start), this.sourceSpan(start), "&&", result, right);
    }
    return result;
  }
  parseNullishCoalescing() {
    const start = this.inputIndex;
    let result = this.parseEquality();
    while (this.consumeOptionalOperator("??")) {
      const right = this.parseEquality();
      result = new Binary(this.span(start), this.sourceSpan(start), "??", result, right);
    }
    return result;
  }
  parseEquality() {
    const start = this.inputIndex;
    let result = this.parseRelational();
    while (this.next.type == TokenType.Operator) {
      const operator = this.next.strValue;
      switch (operator) {
        case "==":
        case "===":
        case "!=":
        case "!==":
          this.advance();
          const right = this.parseRelational();
          result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);
          continue;
      }
      break;
    }
    return result;
  }
  parseRelational() {
    const start = this.inputIndex;
    let result = this.parseAdditive();
    while (this.next.type == TokenType.Operator || this.next.isKeywordIn) {
      const operator = this.next.strValue;
      switch (operator) {
        case "<":
        case ">":
        case "<=":
        case ">=":
        case "in":
          this.advance();
          const right = this.parseAdditive();
          result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);
          continue;
      }
      break;
    }
    return result;
  }
  parseAdditive() {
    const start = this.inputIndex;
    let result = this.parseMultiplicative();
    while (this.next.type == TokenType.Operator) {
      const operator = this.next.strValue;
      switch (operator) {
        case "+":
        case "-":
          this.advance();
          let right = this.parseMultiplicative();
          result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);
          continue;
      }
      break;
    }
    return result;
  }
  parseMultiplicative() {
    const start = this.inputIndex;
    let result = this.parseExponentiation();
    while (this.next.type == TokenType.Operator) {
      const operator = this.next.strValue;
      switch (operator) {
        case "*":
        case "%":
        case "/":
          this.advance();
          const right = this.parseExponentiation();
          result = new Binary(this.span(start), this.sourceSpan(start), operator, result, right);
          continue;
      }
      break;
    }
    return result;
  }
  parseExponentiation() {
    const start = this.inputIndex;
    let result = this.parsePrefix();
    while (this.next.type == TokenType.Operator && this.next.strValue === "**") {
      if (result instanceof Unary || result instanceof PrefixNot || result instanceof TypeofExpression || result instanceof VoidExpression) {
        this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence");
      }
      this.advance();
      const right = this.parseExponentiation();
      result = new Binary(this.span(start), this.sourceSpan(start), "**", result, right);
    }
    return result;
  }
  parsePrefix() {
    if (this.next.type == TokenType.Operator) {
      const start = this.inputIndex;
      const operator = this.next.strValue;
      let result;
      switch (operator) {
        case "+":
          this.advance();
          result = this.parsePrefix();
          return Unary.createPlus(this.span(start), this.sourceSpan(start), result);
        case "-":
          this.advance();
          result = this.parsePrefix();
          return Unary.createMinus(this.span(start), this.sourceSpan(start), result);
        case "!":
          this.advance();
          result = this.parsePrefix();
          return new PrefixNot(this.span(start), this.sourceSpan(start), result);
      }
    } else if (this.next.isKeywordTypeof()) {
      this.advance();
      const start = this.inputIndex;
      let result = this.parsePrefix();
      return new TypeofExpression(this.span(start), this.sourceSpan(start), result);
    } else if (this.next.isKeywordVoid()) {
      this.advance();
      const start = this.inputIndex;
      let result = this.parsePrefix();
      return new VoidExpression(this.span(start), this.sourceSpan(start), result);
    }
    return this.parseCallChain();
  }
  parseCallChain() {
    const start = this.inputIndex;
    let result = this.parsePrimary();
    while (true) {
      if (this.consumeOptionalCharacter($PERIOD)) {
        result = this.parseAccessMember(result, start, false);
      } else if (this.consumeOptionalOperator("?.")) {
        if (this.consumeOptionalCharacter($LPAREN)) {
          result = this.parseCall(result, start, true);
        } else {
          result = this.consumeOptionalCharacter($LBRACKET) ? this.parseKeyedReadOrWrite(result, start, true) : this.parseAccessMember(result, start, true);
        }
      } else if (this.consumeOptionalCharacter($LBRACKET)) {
        result = this.parseKeyedReadOrWrite(result, start, false);
      } else if (this.consumeOptionalCharacter($LPAREN)) {
        result = this.parseCall(result, start, false);
      } else if (this.consumeOptionalOperator("!")) {
        result = new NonNullAssert(this.span(start), this.sourceSpan(start), result);
      } else if (this.next.isTemplateLiteralEnd()) {
        result = this.parseNoInterpolationTaggedTemplateLiteral(result, start);
      } else if (this.next.isTemplateLiteralPart()) {
        result = this.parseTaggedTemplateLiteral(result, start);
      } else {
        return result;
      }
    }
  }
  parsePrimary() {
    const start = this.inputIndex;
    if (this.consumeOptionalCharacter($LPAREN)) {
      this.rparensExpected++;
      const result = this.parsePipe();
      if (!this.consumeOptionalCharacter($RPAREN)) {
        this.error("Missing closing parentheses");
        this.consumeOptionalCharacter($RPAREN);
      }
      this.rparensExpected--;
      return new ParenthesizedExpression(this.span(start), this.sourceSpan(start), result);
    } else if (this.next.isKeywordNull()) {
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), null);
    } else if (this.next.isKeywordUndefined()) {
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), void 0);
    } else if (this.next.isKeywordTrue()) {
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), true);
    } else if (this.next.isKeywordFalse()) {
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), false);
    } else if (this.next.isKeywordIn()) {
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), "in");
    } else if (this.next.isKeywordThis()) {
      this.advance();
      return new ThisReceiver(this.span(start), this.sourceSpan(start));
    } else if (this.consumeOptionalCharacter($LBRACKET)) {
      this.rbracketsExpected++;
      const elements = this.parseExpressionList($RBRACKET);
      this.rbracketsExpected--;
      this.expectCharacter($RBRACKET);
      return new LiteralArray(this.span(start), this.sourceSpan(start), elements);
    } else if (this.next.isCharacter($LBRACE)) {
      return this.parseLiteralMap();
    } else if (this.next.isIdentifier()) {
      return this.parseAccessMember(new ImplicitReceiver(this.span(start), this.sourceSpan(start)), start, false);
    } else if (this.next.isNumber()) {
      const value = this.next.toNumber();
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), value);
    } else if (this.next.isTemplateLiteralEnd()) {
      return this.parseNoInterpolationTemplateLiteral();
    } else if (this.next.isTemplateLiteralPart()) {
      return this.parseTemplateLiteral();
    } else if (this.next.isString() && this.next.kind === StringTokenKind.Plain) {
      const literalValue = this.next.toString();
      this.advance();
      return new LiteralPrimitive(this.span(start), this.sourceSpan(start), literalValue);
    } else if (this.next.isPrivateIdentifier()) {
      this._reportErrorForPrivateIdentifier(this.next, null);
      return new EmptyExpr$1(this.span(start), this.sourceSpan(start));
    } else if (this.index >= this.tokens.length) {
      this.error(`Unexpected end of expression: ${this.input}`);
      return new EmptyExpr$1(this.span(start), this.sourceSpan(start));
    } else {
      this.error(`Unexpected token ${this.next}`);
      return new EmptyExpr$1(this.span(start), this.sourceSpan(start));
    }
  }
  parseExpressionList(terminator) {
    const result = [];
    do {
      if (!this.next.isCharacter(terminator)) {
        result.push(this.parsePipe());
      } else {
        break;
      }
    } while (this.consumeOptionalCharacter($COMMA));
    return result;
  }
  parseLiteralMap() {
    const keys = [];
    const values = [];
    const start = this.inputIndex;
    this.expectCharacter($LBRACE);
    if (!this.consumeOptionalCharacter($RBRACE)) {
      this.rbracesExpected++;
      do {
        const keyStart = this.inputIndex;
        const quoted = this.next.isString();
        const key = this.expectIdentifierOrKeywordOrString();
        const literalMapKey = { key, quoted };
        keys.push(literalMapKey);
        if (quoted) {
          this.expectCharacter($COLON);
          values.push(this.parsePipe());
        } else if (this.consumeOptionalCharacter($COLON)) {
          values.push(this.parsePipe());
        } else {
          literalMapKey.isShorthandInitialized = true;
          const span = this.span(keyStart);
          const sourceSpan = this.sourceSpan(keyStart);
          values.push(new PropertyRead(span, sourceSpan, sourceSpan, new ImplicitReceiver(span, sourceSpan), key));
        }
      } while (this.consumeOptionalCharacter($COMMA) && !this.next.isCharacter($RBRACE));
      this.rbracesExpected--;
      this.expectCharacter($RBRACE);
    }
    return new LiteralMap(this.span(start), this.sourceSpan(start), keys, values);
  }
  parseAccessMember(readReceiver, start, isSafe) {
    const nameStart = this.inputIndex;
    const id = this.withContext(ParseContextFlags.Writable, () => {
      const id2 = this.expectIdentifierOrKeyword() ?? "";
      if (id2.length === 0) {
        this.error(`Expected identifier for property access`, readReceiver.span.end);
      }
      return id2;
    });
    const nameSpan = this.sourceSpan(nameStart);
    let receiver;
    if (isSafe) {
      if (this.consumeOptionalOperator("=")) {
        this.error("The '?.' operator cannot be used in the assignment");
        receiver = new EmptyExpr$1(this.span(start), this.sourceSpan(start));
      } else {
        receiver = new SafePropertyRead(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);
      }
    } else {
      if (this.consumeOptionalOperator("=")) {
        if (!(this.parseFlags & 1)) {
          this.error("Bindings cannot contain assignments");
          return new EmptyExpr$1(this.span(start), this.sourceSpan(start));
        }
        const value = this.parseConditional();
        receiver = new PropertyWrite(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id, value);
      } else {
        receiver = new PropertyRead(this.span(start), this.sourceSpan(start), nameSpan, readReceiver, id);
      }
    }
    return receiver;
  }
  parseCall(receiver, start, isSafe) {
    const argumentStart = this.inputIndex;
    this.rparensExpected++;
    const args = this.parseCallArguments();
    const argumentSpan = this.span(argumentStart, this.inputIndex).toAbsolute(this.absoluteOffset);
    this.expectCharacter($RPAREN);
    this.rparensExpected--;
    const span = this.span(start);
    const sourceSpan = this.sourceSpan(start);
    return isSafe ? new SafeCall(span, sourceSpan, receiver, args, argumentSpan) : new Call(span, sourceSpan, receiver, args, argumentSpan);
  }
  parseCallArguments() {
    if (this.next.isCharacter($RPAREN))
      return [];
    const positionals = [];
    do {
      positionals.push(this.parsePipe());
    } while (this.consumeOptionalCharacter($COMMA));
    return positionals;
  }
  /**
   * Parses an identifier, a keyword, a string with an optional `-` in between,
   * and returns the string along with its absolute source span.
   */
  expectTemplateBindingKey() {
    let result = "";
    let operatorFound = false;
    const start = this.currentAbsoluteOffset;
    do {
      result += this.expectIdentifierOrKeywordOrString();
      operatorFound = this.consumeOptionalOperator("-");
      if (operatorFound) {
        result += "-";
      }
    } while (operatorFound);
    return {
      source: result,
      span: new AbsoluteSourceSpan(start, start + result.length)
    };
  }
  /**
   * Parse microsyntax template expression and return a list of bindings or
   * parsing errors in case the given expression is invalid.
   *
   * For example,
   * ```html
   *   <div *ngFor="let item of items; index as i; trackBy: func">
   * ```
   * contains five bindings:
   * 1. ngFor -> null
   * 2. item -> NgForOfContext.$implicit
   * 3. ngForOf -> items
   * 4. i -> NgForOfContext.index
   * 5. ngForTrackBy -> func
   *
   * For a full description of the microsyntax grammar, see
   * https://gist.github.com/mhevery/d3530294cff2e4a1b3fe15ff75d08855
   *
   * @param templateKey name of the microsyntax directive, like ngIf, ngFor,
   * without the *, along with its absolute span.
   */
  parseTemplateBindings(templateKey) {
    const bindings = [];
    bindings.push(...this.parseDirectiveKeywordBindings(templateKey));
    while (this.index < this.tokens.length) {
      const letBinding = this.parseLetBinding();
      if (letBinding) {
        bindings.push(letBinding);
      } else {
        const key = this.expectTemplateBindingKey();
        const binding = this.parseAsBinding(key);
        if (binding) {
          bindings.push(binding);
        } else {
          key.source = templateKey.source + key.source.charAt(0).toUpperCase() + key.source.substring(1);
          bindings.push(...this.parseDirectiveKeywordBindings(key));
        }
      }
      this.consumeStatementTerminator();
    }
    return new TemplateBindingParseResult(bindings, [], this.errors);
  }
  parseKeyedReadOrWrite(receiver, start, isSafe) {
    return this.withContext(ParseContextFlags.Writable, () => {
      this.rbracketsExpected++;
      const key = this.parsePipe();
      if (key instanceof EmptyExpr$1) {
        this.error(`Key access cannot be empty`);
      }
      this.rbracketsExpected--;
      this.expectCharacter($RBRACKET);
      if (this.consumeOptionalOperator("=")) {
        if (isSafe) {
          this.error("The '?.' operator cannot be used in the assignment");
        } else {
          const value = this.parseConditional();
          return new KeyedWrite(this.span(start), this.sourceSpan(start), receiver, key, value);
        }
      } else {
        return isSafe ? new SafeKeyedRead(this.span(start), this.sourceSpan(start), receiver, key) : new KeyedRead(this.span(start), this.sourceSpan(start), receiver, key);
      }
      return new EmptyExpr$1(this.span(start), this.sourceSpan(start));
    });
  }
  /**
   * Parse a directive keyword, followed by a mandatory expression.
   * For example, "of items", "trackBy: func".
   * The bindings are: ngForOf -> items, ngForTrackBy -> func
   * There could be an optional "as" binding that follows the expression.
   * For example,
   * ```
   *   *ngFor="let item of items | slice:0:1 as collection".
   *                    ^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
   *               keyword    bound target   optional 'as' binding
   * ```
   *
   * @param key binding key, for example, ngFor, ngIf, ngForOf, along with its
   * absolute span.
   */
  parseDirectiveKeywordBindings(key) {
    const bindings = [];
    this.consumeOptionalCharacter($COLON);
    const value = this.getDirectiveBoundTarget();
    let spanEnd = this.currentAbsoluteOffset;
    const asBinding = this.parseAsBinding(key);
    if (!asBinding) {
      this.consumeStatementTerminator();
      spanEnd = this.currentAbsoluteOffset;
    }
    const sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);
    bindings.push(new ExpressionBinding(sourceSpan, key, value));
    if (asBinding) {
      bindings.push(asBinding);
    }
    return bindings;
  }
  /**
   * Return the expression AST for the bound target of a directive keyword
   * binding. For example,
   * ```
   *   *ngIf="condition | pipe"
   *          ^^^^^^^^^^^^^^^^ bound target for "ngIf"
   *   *ngFor="let item of items"
   *                       ^^^^^ bound target for "ngForOf"
   * ```
   */
  getDirectiveBoundTarget() {
    if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {
      return null;
    }
    const ast = this.parsePipe();
    const { start, end } = ast.span;
    const value = this.input.substring(start, end);
    return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);
  }
  /**
   * Return the binding for a variable declared using `as`. Note that the order
   * of the key-value pair in this declaration is reversed. For example,
   * ```
   *   *ngFor="let item of items; index as i"
   *                              ^^^^^    ^
   *                              value    key
   * ```
   *
   * @param value name of the value in the declaration, "ngIf" in the example
   * above, along with its absolute span.
   */
  parseAsBinding(value) {
    if (!this.peekKeywordAs()) {
      return null;
    }
    this.advance();
    const key = this.expectTemplateBindingKey();
    this.consumeStatementTerminator();
    const sourceSpan = new AbsoluteSourceSpan(value.span.start, this.currentAbsoluteOffset);
    return new VariableBinding(sourceSpan, key, value);
  }
  /**
   * Return the binding for a variable declared using `let`. For example,
   * ```
   *   *ngFor="let item of items; let i=index;"
   *           ^^^^^^^^           ^^^^^^^^^^^
   * ```
   * In the first binding, `item` is bound to `NgForOfContext.$implicit`.
   * In the second binding, `i` is bound to `NgForOfContext.index`.
   */
  parseLetBinding() {
    if (!this.peekKeywordLet()) {
      return null;
    }
    const spanStart = this.currentAbsoluteOffset;
    this.advance();
    const key = this.expectTemplateBindingKey();
    let value = null;
    if (this.consumeOptionalOperator("=")) {
      value = this.expectTemplateBindingKey();
    }
    this.consumeStatementTerminator();
    const sourceSpan = new AbsoluteSourceSpan(spanStart, this.currentAbsoluteOffset);
    return new VariableBinding(sourceSpan, key, value);
  }
  parseNoInterpolationTaggedTemplateLiteral(tag, start) {
    const template = this.parseNoInterpolationTemplateLiteral();
    return new TaggedTemplateLiteral(this.span(start), this.sourceSpan(start), tag, template);
  }
  parseNoInterpolationTemplateLiteral() {
    const text = this.next.strValue;
    const start = this.inputIndex;
    this.advance();
    const span = this.span(start);
    const sourceSpan = this.sourceSpan(start);
    return new TemplateLiteral(span, sourceSpan, [new TemplateLiteralElement(span, sourceSpan, text)], []);
  }
  parseTaggedTemplateLiteral(tag, start) {
    const template = this.parseTemplateLiteral();
    return new TaggedTemplateLiteral(this.span(start), this.sourceSpan(start), tag, template);
  }
  parseTemplateLiteral() {
    const elements = [];
    const expressions = [];
    const start = this.inputIndex;
    while (this.next !== EOF) {
      const token = this.next;
      if (token.isTemplateLiteralPart() || token.isTemplateLiteralEnd()) {
        const partStart = this.inputIndex;
        this.advance();
        elements.push(new TemplateLiteralElement(this.span(partStart), this.sourceSpan(partStart), token.strValue));
        if (token.isTemplateLiteralEnd()) {
          break;
        }
      } else if (token.isTemplateLiteralInterpolationStart()) {
        this.advance();
        const expression = this.parsePipe();
        if (expression instanceof EmptyExpr$1) {
          this.error("Template literal interpolation cannot be empty");
        } else {
          expressions.push(expression);
        }
      } else {
        this.advance();
      }
    }
    return new TemplateLiteral(this.span(start), this.sourceSpan(start), elements, expressions);
  }
  /**
   * Consume the optional statement terminator: semicolon or comma.
   */
  consumeStatementTerminator() {
    this.consumeOptionalCharacter($SEMICOLON) || this.consumeOptionalCharacter($COMMA);
  }
  /**
   * Records an error and skips over the token stream until reaching a recoverable point. See
   * `this.skip` for more details on token skipping.
   */
  error(message, index = null) {
    this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));
    this.skip();
  }
  locationText(index = null) {
    if (index == null)
      index = this.index;
    return index < this.tokens.length ? `at column ${this.tokens[index].index + 1} in` : `at the end of the expression`;
  }
  /**
   * Records an error for an unexpected private identifier being discovered.
   * @param token Token representing a private identifier.
   * @param extraMessage Optional additional message being appended to the error.
   */
  _reportErrorForPrivateIdentifier(token, extraMessage) {
    let errorMessage = `Private identifiers are not supported. Unexpected private identifier: ${token}`;
    if (extraMessage !== null) {
      errorMessage += `, ${extraMessage}`;
    }
    this.error(errorMessage);
  }
  /**
   * Error recovery should skip tokens until it encounters a recovery point.
   *
   * The following are treated as unconditional recovery points:
   *   - end of input
   *   - ';' (parseChain() is always the root production, and it expects a ';')
   *   - '|' (since pipes may be chained and each pipe expression may be treated independently)
   *
   * The following are conditional recovery points:
   *   - ')', '}', ']' if one of calling productions is expecting one of these symbols
   *     - This allows skip() to recover from errors such as '(a.) + 1' allowing more of the AST to
   *       be retained (it doesn't skip any tokens as the ')' is retained because of the '(' begins
   *       an '(' <expr> ')' production).
   *       The recovery points of grouping symbols must be conditional as they must be skipped if
   *       none of the calling productions are not expecting the closing token else we will never
   *       make progress in the case of an extraneous group closing symbol (such as a stray ')').
   *       That is, we skip a closing symbol if we are not in a grouping production.
   *   - '=' in a `Writable` context
   *     - In this context, we are able to recover after seeing the `=` operator, which
   *       signals the presence of an independent rvalue expression following the `=` operator.
   *
   * If a production expects one of these token it increments the corresponding nesting count,
   * and then decrements it just prior to checking if the token is in the input.
   */
  skip() {
    let n = this.next;
    while (this.index < this.tokens.length && !n.isCharacter($SEMICOLON) && !n.isOperator("|") && (this.rparensExpected <= 0 || !n.isCharacter($RPAREN)) && (this.rbracesExpected <= 0 || !n.isCharacter($RBRACE)) && (this.rbracketsExpected <= 0 || !n.isCharacter($RBRACKET)) && (!(this.context & ParseContextFlags.Writable) || !n.isOperator("="))) {
      if (this.next.isError()) {
        this.errors.push(new ParserError(this.next.toString(), this.input, this.locationText(), this.location));
      }
      this.advance();
      n = this.next;
    }
  }
};
var SimpleExpressionChecker = class extends RecursiveAstVisitor {
  errors = [];
  visitPipe() {
    this.errors.push("pipes");
  }
};
function getIndexMapForOriginalTemplate(interpolatedTokens) {
  let offsetMap = /* @__PURE__ */ new Map();
  let consumedInOriginalTemplate = 0;
  let consumedInInput = 0;
  let tokenIndex = 0;
  while (tokenIndex < interpolatedTokens.length) {
    const currentToken = interpolatedTokens[tokenIndex];
    if (currentToken.type === 9) {
      const [decoded, encoded] = currentToken.parts;
      consumedInOriginalTemplate += encoded.length;
      consumedInInput += decoded.length;
    } else {
      const lengthOfParts = currentToken.parts.reduce((sum, current) => sum + current.length, 0);
      consumedInInput += lengthOfParts;
      consumedInOriginalTemplate += lengthOfParts;
    }
    offsetMap.set(consumedInInput, consumedInOriginalTemplate);
    tokenIndex++;
  }
  return offsetMap;
}
var _ATTR_TO_PROP = new Map(Object.entries({
  "class": "className",
  "for": "htmlFor",
  "formaction": "formAction",
  "innerHtml": "innerHTML",
  "readonly": "readOnly",
  "tabindex": "tabIndex"
}));
var _PROP_TO_ATTR = Array.from(_ATTR_TO_PROP).reduce((inverted, [propertyName, attributeName]) => {
  inverted.set(propertyName, attributeName);
  return inverted;
}, /* @__PURE__ */ new Map());
var _expParser = new Parser(new Lexer());
function kindTest(kind) {
  return (op) => op.kind === kind;
}
function kindWithInterpolationTest(kind, interpolation) {
  return (op) => {
    return op.kind === kind && interpolation === op.expression instanceof Interpolation2;
  };
}
function nonInterpolationPropertyKindTest(op) {
  return (op.kind === OpKind.Property || op.kind === OpKind.TwoWayProperty) && !(op.expression instanceof Interpolation2);
}
var UPDATE_ORDERING = [
  { test: kindTest(OpKind.StyleMap), transform: keepLast },
  { test: kindTest(OpKind.ClassMap), transform: keepLast },
  { test: kindTest(OpKind.StyleProp) },
  { test: kindTest(OpKind.ClassProp) },
  { test: kindWithInterpolationTest(OpKind.Attribute, true) },
  { test: kindWithInterpolationTest(OpKind.Property, true) },
  { test: nonInterpolationPropertyKindTest },
  { test: kindWithInterpolationTest(OpKind.Attribute, false) }
];
var UPDATE_HOST_ORDERING = [
  { test: kindWithInterpolationTest(OpKind.DomProperty, true) },
  { test: kindWithInterpolationTest(OpKind.DomProperty, false) },
  { test: kindTest(OpKind.Attribute) },
  { test: kindTest(OpKind.StyleMap), transform: keepLast },
  { test: kindTest(OpKind.ClassMap), transform: keepLast },
  { test: kindTest(OpKind.StyleProp) },
  { test: kindTest(OpKind.ClassProp) }
];
var handledOpKinds = /* @__PURE__ */ new Set([
  OpKind.Listener,
  OpKind.TwoWayListener,
  OpKind.StyleMap,
  OpKind.ClassMap,
  OpKind.StyleProp,
  OpKind.ClassProp,
  OpKind.Property,
  OpKind.TwoWayProperty,
  OpKind.DomProperty,
  OpKind.Attribute
]);
function keepLast(ops) {
  return ops.slice(ops.length - 1);
}
var VALUE_INTERPOLATE_CONFIG = {
  constant: [
    Identifiers.interpolate,
    Identifiers.interpolate1,
    Identifiers.interpolate2,
    Identifiers.interpolate3,
    Identifiers.interpolate4,
    Identifiers.interpolate5,
    Identifiers.interpolate6,
    Identifiers.interpolate7,
    Identifiers.interpolate8
  ],
  variable: Identifiers.interpolateV,
  mapping: (n) => {
    if (n % 2 === 0) {
      throw new Error(`Expected odd number of arguments`);
    }
    return (n - 1) / 2;
  }
};
var GLOBAL_TARGET_RESOLVERS = /* @__PURE__ */ new Map([
  ["window", Identifiers.resolveWindow],
  ["document", Identifiers.resolveDocument],
  ["body", Identifiers.resolveBody]
]);
var sanitizerFns = /* @__PURE__ */ new Map([
  [SecurityContext.HTML, Identifiers.sanitizeHtml],
  [SecurityContext.RESOURCE_URL, Identifiers.sanitizeResourceUrl],
  [SecurityContext.SCRIPT, Identifiers.sanitizeScript],
  [SecurityContext.STYLE, Identifiers.sanitizeStyle],
  [SecurityContext.URL, Identifiers.sanitizeUrl]
]);
var trustedValueFns = /* @__PURE__ */ new Map([
  [SecurityContext.HTML, Identifiers.trustConstantHtml],
  [SecurityContext.RESOURCE_URL, Identifiers.trustConstantResourceUrl]
]);
var Fence;
(function(Fence2) {
  Fence2[Fence2["None"] = 0] = "None";
  Fence2[Fence2["ViewContextRead"] = 1] = "ViewContextRead";
  Fence2[Fence2["ViewContextWrite"] = 2] = "ViewContextWrite";
  Fence2[Fence2["SideEffectful"] = 4] = "SideEffectful";
})(Fence || (Fence = {}));
var BINDING_KINDS = /* @__PURE__ */ new Map([
  [BindingType.Property, BindingKind.Property],
  [BindingType.TwoWay, BindingKind.TwoWayProperty],
  [BindingType.Attribute, BindingKind.Attribute],
  [BindingType.Class, BindingKind.ClassName],
  [BindingType.Style, BindingKind.StyleProperty],
  [BindingType.Animation, BindingKind.Animation]
]);
var queryAdvancePlaceholder = Symbol("queryAdvancePlaceholder");
var PreparsedElementType;
(function(PreparsedElementType2) {
  PreparsedElementType2[PreparsedElementType2["NG_CONTENT"] = 0] = "NG_CONTENT";
  PreparsedElementType2[PreparsedElementType2["STYLE"] = 1] = "STYLE";
  PreparsedElementType2[PreparsedElementType2["STYLESHEET"] = 2] = "STYLESHEET";
  PreparsedElementType2[PreparsedElementType2["SCRIPT"] = 3] = "SCRIPT";
  PreparsedElementType2[PreparsedElementType2["OTHER"] = 4] = "OTHER";
})(PreparsedElementType || (PreparsedElementType = {}));
var OnTriggerType;
(function(OnTriggerType2) {
  OnTriggerType2["IDLE"] = "idle";
  OnTriggerType2["TIMER"] = "timer";
  OnTriggerType2["INTERACTION"] = "interaction";
  OnTriggerType2["IMMEDIATE"] = "immediate";
  OnTriggerType2["HOVER"] = "hover";
  OnTriggerType2["VIEWPORT"] = "viewport";
  OnTriggerType2["NEVER"] = "never";
})(OnTriggerType || (OnTriggerType = {}));
var COMPONENT_VARIABLE = "%COMP%";
var HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
var CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
var _VisitorMode;
(function(_VisitorMode2) {
  _VisitorMode2[_VisitorMode2["Extract"] = 0] = "Extract";
  _VisitorMode2[_VisitorMode2["Merge"] = 1] = "Merge";
})(_VisitorMode || (_VisitorMode = {}));
var VERSION = new Version("20.0.4");
 
// node_modules/angular-estree-parser/lib/utils.js
function stripSurroundingSpaces({ start: startIndex, end: endIndex }, text) {
  let start = startIndex;
  let end = endIndex;
  while (end !== start && /\s/.test(text[end - 1])) {
    end--;
  }
  while (start !== end && /\s/.test(text[start])) {
    start++;
  }
  return { start, end };
}
function expandSurroundingSpaces({ start: startIndex, end: endIndex }, text) {
  let start = startIndex;
  let end = endIndex;
  while (end !== text.length && /\s/.test(text[end])) {
    end++;
  }
  while (start !== 0 && /\s/.test(text[start - 1])) {
    start--;
  }
  return { start, end };
}
function expandSurroundingParens(span, text) {
  return text[span.start - 1] === "(" && text[span.end] === ")" ? { start: span.start - 1, end: span.end + 1 } : span;
}
function fitSpans(span, text, hasParentParens) {
  let parensCount = 0;
  const outerSpan = { start: span.start, end: span.end };
  while (true) {
    const spacesExpandedSpan = expandSurroundingSpaces(outerSpan, text);
    const parensExpandedSpan = expandSurroundingParens(spacesExpandedSpan, text);
    if (spacesExpandedSpan.start === parensExpandedSpan.start && spacesExpandedSpan.end === parensExpandedSpan.end) {
      break;
    }
    outerSpan.start = parensExpandedSpan.start;
    outerSpan.end = parensExpandedSpan.end;
    parensCount++;
  }
  return {
    hasParens: (hasParentParens ? parensCount - 1 : parensCount) !== 0,
    outerSpan: stripSurroundingSpaces(hasParentParens ? { start: outerSpan.start + 1, end: outerSpan.end - 1 } : outerSpan, text),
    innerSpan: stripSurroundingSpaces(span, text)
  };
}
function getCharacterSearchTestFunction(pattern) {
  if (typeof pattern === "string") {
    return (character) => character === pattern;
  }
  return (character) => pattern.test(character);
}
function getCharacterLastIndex(text, pattern, fromIndex) {
  const test = getCharacterSearchTestFunction(pattern);
  for (let index = fromIndex; index >= 0; index--) {
    const character = text[index];
    if (test(character)) {
      return index;
    }
  }
  throw new Error(`Cannot find front char ${pattern} from index ${fromIndex} in ${JSON.stringify(text)}`);
}
function getCharacterIndex(text, pattern, fromIndex) {
  const test = getCharacterSearchTestFunction(pattern);
  for (let index = fromIndex; index < text.length; index++) {
    const character = text[index];
    if (test(character)) {
      return index;
    }
  }
  throw new Error(`Cannot find character ${pattern} from index ${fromIndex} in ${JSON.stringify(text)}`);
}
function lowercaseFirst(str) {
  return str.slice(0, 1).toLowerCase() + str.slice(1);
}
function sourceSpanToLocationInformation(span) {
  const { start, end } = span;
  return {
    start,
    end,
    range: [start, end]
  };
}
 
// node_modules/angular-estree-parser/lib/angular-parser.js
var getCommentStart = (text) => (
  // @ts-expect-error -- need to call private _commentStart
  Parser.prototype._commentStart(text)
);
function extractComments(text, shouldExtractComment) {
  const commentStart = shouldExtractComment ? getCommentStart(text) : null;
  if (commentStart === null) {
    return { text, comments: [] };
  }
  const comment = {
    type: "CommentLine",
    value: text.slice(commentStart + "//".length),
    ...sourceSpanToLocationInformation({
      start: commentStart,
      end: text.length
    })
  };
  return {
    text: text.slice(0, commentStart),
    comments: [comment]
  };
}
function createAngularParseFunction(parse, shouldExtractComment = true) {
  return (originalText) => {
    const lexer = new Lexer();
    const parser = new Parser(lexer);
    const { text, comments } = extractComments(originalText, shouldExtractComment);
    const result = parse(text, parser);
    if (result.errors.length !== 0) {
      const [{ message }] = result.errors;
      throw new SyntaxError(message.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
    }
    return { result, comments, text };
  };
}
var parseBinding = createAngularParseFunction((text, parser) => parser.parseBinding(text, "", 0));
var parseSimpleBinding = createAngularParseFunction((text, parser) => parser.parseSimpleBinding(text, "", 0));
var parseAction = createAngularParseFunction((text, parser) => parser.parseAction(text, "", 0));
var parseInterpolationExpression = createAngularParseFunction((text, parser) => parser.parseInterpolationExpression(text, "", 0));
var parseTemplateBindings = createAngularParseFunction(
  (text, parser) => parser.parseTemplateBindings("", text, "", 0, 0),
  /* shouldExtractComment */
  false
);
 
// scripts/build/shims/at.js
var at = (isOptionalObject, object, index) => {
  if (isOptionalObject && (object === void 0 || object === null)) {
    return;
  }
  if (Array.isArray(object) || typeof object === "string") {
    return object[index < 0 ? object.length + index : index];
  }
  return object.at(index);
};
var at_default = at;
 
// node_modules/angular-estree-parser/lib/source.js
var Source = class {
  text;
  constructor(text) {
    this.text = text;
  }
  getCharacterIndex(pattern, index) {
    return getCharacterIndex(this.text, pattern, index);
  }
  getCharacterLastIndex(pattern, index) {
    return getCharacterLastIndex(this.text, pattern, index);
  }
  transformSpan(span, { stripSpaces = false, hasParentParens = false } = {}) {
    if (!stripSpaces) {
      return sourceSpanToLocationInformation(span);
    }
    const { outerSpan, innerSpan, hasParens } = fitSpans(span, this.text, hasParentParens);
    const locationInformation = sourceSpanToLocationInformation(innerSpan);
    if (hasParens) {
      locationInformation.extra = {
        parenthesized: true,
        parenStart: outerSpan.start,
        parenEnd: outerSpan.end
      };
    }
    return locationInformation;
  }
  createNode(properties, { stripSpaces = true, hasParentParens = false } = {}) {
    const { type, start, end } = properties;
    const node = {
      ...properties,
      ...this.transformSpan({ start, end }, {
        stripSpaces,
        hasParentParens
      })
    };
    switch (type) {
      case "NumericLiteral":
      case "StringLiteral": {
        const raw = this.text.slice(node.start, node.end);
        const { value } = node;
        node.extra = { ...node.extra, raw, rawValue: value };
        break;
      }
      case "ObjectProperty": {
        const { shorthand } = node;
        if (shorthand) {
          node.extra = { ...node.extra, shorthand };
        }
        break;
      }
    }
    return node;
  }
};
var source_default = Source;
 
// node_modules/angular-estree-parser/lib/transform-node.js
function isParenthesized(node) {
  var _a;
  return Boolean((_a = node.extra) == null ? void 0 : _a.parenthesized);
}
function getOuterStart(node) {
  return isParenthesized(node) ? node.extra.parenStart : node.start;
}
function getOuterEnd(node) {
  return isParenthesized(node) ? node.extra.parenEnd : node.end;
}
function isOptionalObjectOrCallee(node) {
  return (node.type === "OptionalCallExpression" || node.type === "OptionalMemberExpression") && !isParenthesized(node);
}
function isImplicitThis(node, text) {
  const { start, end } = node.sourceSpan;
  return start >= end || /^\s+$/.test(text.slice(start, end));
}
var _node, _text, _Transformer_instances, create_fn, transformReceiverAndName_fn, transform_fn, transformNode_fn;
var Transformer = class extends source_default {
  constructor(ast, text) {
    super(text);
    __privateAdd(this, _Transformer_instances);
    __privateAdd(this, _node);
    __privateAdd(this, _text);
    __privateSet(this, _node, ast);
    __privateSet(this, _text, text);
  }
  get node() {
    return __privateMethod(this, _Transformer_instances, transform_fn).call(this, __privateGet(this, _node));
  }
  transformNode(node) {
    return __privateMethod(this, _Transformer_instances, transformNode_fn).call(this, node);
  }
};
_node = new WeakMap();
_text = new WeakMap();
_Transformer_instances = new WeakSet();
create_fn = function(properties, { stripSpaces = true, hasParentParens = false } = {}) {
  return this.createNode(properties, { stripSpaces, hasParentParens });
};
transformReceiverAndName_fn = function(receiver, property, { computed, optional, end = getOuterEnd(property), hasParentParens = false }) {
  if (isImplicitThis(receiver, __privateGet(this, _text)) || receiver.sourceSpan.start === property.start) {
    return property;
  }
  const object = __privateMethod(this, _Transformer_instances, transform_fn).call(this, receiver);
  const isOptionalObject = isOptionalObjectOrCallee(object);
  return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
    type: optional || isOptionalObject ? "OptionalMemberExpression" : "MemberExpression",
    object,
    property,
    computed,
    ...optional ? { optional: true } : isOptionalObject ? { optional: false } : void 0,
    start: getOuterStart(object),
    end
  }, { hasParentParens });
};
transform_fn = function(node, options) {
  return __privateMethod(this, _Transformer_instances, transformNode_fn).call(this, node, options);
};
transformNode_fn = function(node, options) {
  const { isInParentParens } = {
    isInParentParens: false,
    ...options
  };
  if (node instanceof Interpolation$1) {
    const { expressions } = node;
    if (expressions.length !== 1) {
      throw new Error("Unexpected 'Interpolation'");
    }
    return __privateMethod(this, _Transformer_instances, transform_fn).call(this, expressions[0]);
  }
  if (node instanceof Unary) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "UnaryExpression",
      prefix: true,
      argument: __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.expr),
      operator: node.operator,
      ...node.sourceSpan
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof Binary) {
    const { left: originalLeft, operation: operator, right: originalRight } = node;
    const left = __privateMethod(this, _Transformer_instances, transform_fn).call(this, originalLeft);
    const right = __privateMethod(this, _Transformer_instances, transform_fn).call(this, originalRight);
    const start = getOuterStart(left);
    const end = getOuterEnd(right);
    const properties = { left, right, start, end };
    if (operator === "&&" || operator === "||" || operator === "??") {
      return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
        ...properties,
        type: "LogicalExpression",
        operator
      }, { hasParentParens: isInParentParens });
    }
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      ...properties,
      type: "BinaryExpression",
      operator
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof BindingPipe) {
    const { exp: expressionNode, name, args: originalArguments } = node;
    const left = __privateMethod(this, _Transformer_instances, transform_fn).call(this, expressionNode);
    const start = getOuterStart(left);
    const leftEnd = getOuterEnd(left);
    const rightStart = this.getCharacterIndex(/\S/, this.getCharacterIndex("|", leftEnd) + 1);
    const right = __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "Identifier",
      name,
      start: rightStart,
      end: rightStart + name.length
    });
    const argumentNodes = originalArguments.map((node2) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, node2));
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "NGPipeExpression",
      left,
      right,
      arguments: argumentNodes,
      start,
      end: getOuterEnd(
        // TODO[@fisker]: End seems not correct, since there should be `()`
        argumentNodes.length === 0 ? right : at_default(
          /* isOptionalObject */
          false,
          argumentNodes,
          -1
        )
      )
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof Chain) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "NGChainedExpression",
      expressions: node.expressions.map((node2) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, node2)),
      ...node.sourceSpan
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof Conditional) {
    const { condition, trueExp, falseExp } = node;
    const test = __privateMethod(this, _Transformer_instances, transform_fn).call(this, condition);
    const consequent = __privateMethod(this, _Transformer_instances, transform_fn).call(this, trueExp);
    const alternate = __privateMethod(this, _Transformer_instances, transform_fn).call(this, falseExp);
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "ConditionalExpression",
      test,
      consequent,
      alternate,
      start: getOuterStart(test),
      end: getOuterEnd(alternate)
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof EmptyExpr$1) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "NGEmptyExpression", ...node.sourceSpan }, { hasParentParens: isInParentParens });
  }
  if (node instanceof ImplicitReceiver) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "ThisExpression", ...node.sourceSpan }, { hasParentParens: isInParentParens });
  }
  if (node instanceof KeyedRead || node instanceof SafeKeyedRead) {
    return __privateMethod(this, _Transformer_instances, transformReceiverAndName_fn).call(this, node.receiver, __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.key), {
      computed: true,
      optional: node instanceof SafeKeyedRead,
      end: node.sourceSpan.end,
      // ]
      hasParentParens: isInParentParens
    });
  }
  if (node instanceof LiteralArray) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "ArrayExpression",
      elements: node.expressions.map((node2) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, node2)),
      ...node.sourceSpan
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof LiteralMap) {
    const { keys, values } = node;
    const tValues = values.map((value) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, value));
    const tProperties = keys.map(({ key, quoted }, index) => {
      const tValue = tValues[index];
      const valueStart = getOuterStart(tValue);
      const valueEnd = getOuterEnd(tValue);
      const keyStart = this.getCharacterIndex(/\S/, index === 0 ? node.sourceSpan.start + 1 : this.getCharacterIndex(",", getOuterEnd(tValues[index - 1])) + 1);
      const keyEnd = valueStart === keyStart ? valueEnd : this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex(":", valueStart - 1) - 1) + 1;
      const keySpan = { start: keyStart, end: keyEnd };
      const tKey = quoted ? __privateMethod(this, _Transformer_instances, create_fn).call(this, {
        type: "StringLiteral",
        value: key,
        ...keySpan
      }) : __privateMethod(this, _Transformer_instances, create_fn).call(this, {
        type: "Identifier",
        name: key,
        ...keySpan
      });
      const shorthand = tKey.end < tKey.start || keyStart === valueStart;
      return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
        type: "ObjectProperty",
        key: tKey,
        value: tValue,
        shorthand,
        computed: false,
        start: getOuterStart(tKey),
        end: valueEnd
      });
    });
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "ObjectExpression",
      properties: tProperties,
      ...node.sourceSpan
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof LiteralPrimitive) {
    const { value } = node;
    switch (typeof value) {
      case "boolean":
        return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "BooleanLiteral", value, ...node.sourceSpan }, { hasParentParens: isInParentParens });
      case "number":
        return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "NumericLiteral", value, ...node.sourceSpan }, { hasParentParens: isInParentParens });
      case "object":
        return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "NullLiteral", ...node.sourceSpan }, { hasParentParens: isInParentParens });
      case "string":
        return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "StringLiteral", value, ...node.sourceSpan }, { hasParentParens: isInParentParens });
      case "undefined":
        return __privateMethod(this, _Transformer_instances, create_fn).call(this, { type: "Identifier", name: "undefined", ...node.sourceSpan }, { hasParentParens: isInParentParens });
      /* c8 ignore next 4 */
      default:
        throw new Error(`Unexpected LiteralPrimitive value type ${typeof value}`);
    }
  }
  if (node instanceof Call || node instanceof SafeCall) {
    const isOptionalType = node instanceof SafeCall;
    const { receiver, args } = node;
    const tArgs = args.length === 1 ? [
      __privateMethod(this, _Transformer_instances, transform_fn).call(this, args[0], {
        isInParentParens: true
      })
    ] : args.map((node2) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, node2));
    const tReceiver = __privateMethod(this, _Transformer_instances, transform_fn).call(this, receiver);
    const isOptionalReceiver = isOptionalObjectOrCallee(tReceiver);
    const nodeType = isOptionalType || isOptionalReceiver ? "OptionalCallExpression" : "CallExpression";
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: nodeType,
      callee: tReceiver,
      arguments: tArgs,
      ...nodeType === "OptionalCallExpression" ? { optional: isOptionalType } : void 0,
      start: getOuterStart(tReceiver),
      end: node.sourceSpan.end
      // `)`
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof NonNullAssert) {
    const expression = __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.expression);
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "TSNonNullExpression",
      expression,
      start: getOuterStart(expression),
      end: node.sourceSpan.end
      // `!`
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof PrefixNot || node instanceof TypeofExpression || node instanceof VoidExpression) {
    const operator = node instanceof PrefixNot ? "!" : node instanceof TypeofExpression ? "typeof" : node instanceof VoidExpression ? "void" : (
      /* c8 ignore next */
      void 0
    );
    if (!operator) {
      throw new Error("Unexpected expression.");
    }
    let { start } = node.sourceSpan;
    if (operator === "typeof" || operator === "void") {
      const index = this.text.lastIndexOf(operator, start);
      if (index === -1) {
        throw new Error(`Cannot find operator '${operator}' from index ${start} in ${JSON.stringify(this.text)}`);
      }
      start = index;
    }
    const expression = __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.expression);
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "UnaryExpression",
      prefix: true,
      operator,
      argument: expression,
      start,
      end: getOuterEnd(expression)
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof PropertyRead || node instanceof SafePropertyRead) {
    const { receiver, name } = node;
    const nameEnd = this.getCharacterLastIndex(/\S/, node.sourceSpan.end - 1) + 1;
    const tName = __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "Identifier",
      name,
      start: nameEnd - name.length,
      end: nameEnd
    }, isImplicitThis(receiver, __privateGet(this, _text)) ? { hasParentParens: isInParentParens } : {});
    return __privateMethod(this, _Transformer_instances, transformReceiverAndName_fn).call(this, receiver, tName, {
      computed: false,
      optional: node instanceof SafePropertyRead,
      hasParentParens: isInParentParens
    });
  }
  if (node instanceof KeyedWrite) {
    const key = __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.key);
    const right = __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.value);
    const left = __privateMethod(this, _Transformer_instances, transformReceiverAndName_fn).call(this, node.receiver, key, {
      computed: true,
      optional: false,
      end: this.getCharacterIndex("]", getOuterEnd(key)) + 1
    });
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "AssignmentExpression",
      left,
      operator: "=",
      right,
      start: getOuterStart(left),
      end: getOuterEnd(right)
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof PropertyWrite) {
    const { receiver, name, value } = node;
    const tValue = __privateMethod(this, _Transformer_instances, transform_fn).call(this, value);
    const nameEnd = this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex("=", getOuterStart(tValue) - 1) - 1) + 1;
    const tName = __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "Identifier",
      name,
      start: nameEnd - name.length,
      end: nameEnd
    });
    const tReceiverAndName = __privateMethod(this, _Transformer_instances, transformReceiverAndName_fn).call(this, receiver, tName, {
      computed: false,
      optional: false
    });
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "AssignmentExpression",
      left: tReceiverAndName,
      operator: "=",
      right: tValue,
      start: getOuterStart(tReceiverAndName),
      end: getOuterEnd(tValue)
    }, { hasParentParens: isInParentParens });
  }
  if (node instanceof TaggedTemplateLiteral) {
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "TaggedTemplateExpression",
      tag: __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.tag),
      quasi: __privateMethod(this, _Transformer_instances, transform_fn).call(this, node.template),
      ...node.sourceSpan
    });
  }
  if (node instanceof TemplateLiteral) {
    const { elements, expressions } = node;
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "TemplateLiteral",
      quasis: elements.map((element) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, element, { parent: node })),
      expressions: expressions.map((expression) => __privateMethod(this, _Transformer_instances, transform_fn).call(this, expression)),
      ...node.sourceSpan
    });
  }
  if (node instanceof TemplateLiteralElement) {
    const { elements } = options.parent;
    const elementIndex = elements.indexOf(node);
    const isFirst = elementIndex === 0;
    const isLast = elementIndex === elements.length - 1;
    const end = node.sourceSpan.end - (isLast ? 1 : 0);
    const start = node.sourceSpan.start + (isFirst ? 1 : 0);
    const raw = this.text.slice(start, end);
    return __privateMethod(this, _Transformer_instances, create_fn).call(this, {
      type: "TemplateElement",
      value: {
        cooked: node.text,
        raw
      },
      start,
      end,
      tail: isLast
    }, { stripSpaces: false });
  }
  if (node instanceof ParenthesizedExpression) {
    return __privateMethod(this, _Transformer_instances, transformNode_fn).call(this, node.expression);
  }
  throw new Error(`Unexpected node type '${node.constructor.name}'`);
};
function transform(node, text) {
  return new Transformer(node, text).node;
}
 
// node_modules/angular-estree-parser/lib/transform-template-binding.js
function isExpressionBinding(templateBinding) {
  return templateBinding instanceof ExpressionBinding;
}
function isVariableBinding(templateBinding) {
  return templateBinding instanceof VariableBinding;
}
var _rawTemplateBindings, _text2, _Transformer_instances2, prefix_get, create_fn2, transform_fn2, removePrefix_fn, fixSpan_fn, fixTemplateBindingSpan_fn, getAsVariableBindingValue_fn, transformTemplateBindings_fn, transformTemplateBinding_fn;
var Transformer2 = class extends Transformer {
  constructor(rawTemplateBindings, text) {
    super(void 0, text);
    __privateAdd(this, _Transformer_instances2);
    __privateAdd(this, _rawTemplateBindings);
    __privateAdd(this, _text2);
    __privateSet(this, _rawTemplateBindings, rawTemplateBindings);
    __privateSet(this, _text2, text);
    for (const expression of rawTemplateBindings) {
      __privateMethod(this, _Transformer_instances2, fixTemplateBindingSpan_fn).call(this, expression);
    }
  }
  get expressions() {
    return __privateMethod(this, _Transformer_instances2, transformTemplateBindings_fn).call(this);
  }
};
_rawTemplateBindings = new WeakMap();
_text2 = new WeakMap();
_Transformer_instances2 = new WeakSet();
prefix_get = function() {
  return __privateGet(this, _rawTemplateBindings)[0].key;
};
create_fn2 = function(properties, { stripSpaces = true } = {}) {
  return this.createNode(properties, { stripSpaces });
};
transform_fn2 = function(node) {
  return this.transformNode(node);
};
removePrefix_fn = function(string) {
  return lowercaseFirst(string.slice(__privateGet(this, _Transformer_instances2, prefix_get).source.length));
};
/**
 * - "a"  (start=0 end=1) -> (start=0 end=3)
 * - '\'' (start=0 end=1) -> (start=0 end=4)
 */
fixSpan_fn = function(span) {
  const text = __privateGet(this, _text2);
  if (text[span.start] !== '"' && text[span.start] !== "'") {
    return;
  }
  const quote = text[span.start];
  let hasBackSlash = false;
  for (let i = span.start + 1; i < text.length; i++) {
    switch (text[i]) {
      case quote:
        if (!hasBackSlash) {
          span.end = i + 1;
          return;
        }
      // fall through
      default:
        hasBackSlash = false;
        break;
      case "\\":
        hasBackSlash = !hasBackSlash;
        break;
    }
  }
};
fixTemplateBindingSpan_fn = function(templateBinding) {
  __privateMethod(this, _Transformer_instances2, fixSpan_fn).call(this, templateBinding.key.span);
  if (isVariableBinding(templateBinding) && templateBinding.value) {
    __privateMethod(this, _Transformer_instances2, fixSpan_fn).call(this, templateBinding.value.span);
  }
};
/**
 * - "as b" (value="NgEstreeParser" key="b") -> (value="$implicit" key="b")
 */
getAsVariableBindingValue_fn = function(variableBinding) {
  if (!variableBinding.value || variableBinding.value.source) {
    return variableBinding.value;
  }
  const index = this.getCharacterIndex(/\S/, variableBinding.sourceSpan.start);
  return {
    source: "$implicit",
    span: { start: index, end: index }
  };
};
transformTemplateBindings_fn = function() {
  const rawTemplateBindings = __privateGet(this, _rawTemplateBindings);
  const [firstTemplateBinding] = rawTemplateBindings;
  const templateBindings = __privateGet(this, _text2).slice(firstTemplateBinding.sourceSpan.start, firstTemplateBinding.sourceSpan.end).trim().length === 0 ? rawTemplateBindings.slice(1) : rawTemplateBindings;
  const body = [];
  let lastTemplateBinding = null;
  for (const [index, templateBinding] of templateBindings.entries()) {
    if (lastTemplateBinding && isExpressionBinding(lastTemplateBinding) && isVariableBinding(templateBinding) && templateBinding.value && templateBinding.value.source === lastTemplateBinding.key.source) {
      const alias = __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxKey",
        name: templateBinding.key.source,
        ...templateBinding.key.span
      });
      const updateSpanEnd = (node, end) => ({
        ...node,
        ...this.transformSpan({ start: node.start, end })
      });
      const updateExpressionAlias = (expression) => ({
        ...updateSpanEnd(expression, alias.end),
        alias
      });
      const lastNode = body.pop();
      if (lastNode.type === "NGMicrosyntaxExpression") {
        body.push(updateExpressionAlias(lastNode));
      } else if (lastNode.type === "NGMicrosyntaxKeyedExpression") {
        const expression = updateExpressionAlias(lastNode.expression);
        body.push(updateSpanEnd({ ...lastNode, expression }, expression.end));
      } else {
        throw new Error(`Unexpected type ${lastNode.type}`);
      }
    } else {
      body.push(__privateMethod(this, _Transformer_instances2, transformTemplateBinding_fn).call(this, templateBinding, index));
    }
    lastTemplateBinding = templateBinding;
  }
  return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
    type: "NGMicrosyntax",
    body,
    ...body.length === 0 ? rawTemplateBindings[0].sourceSpan : { start: body[0].start, end: at_default(
      /* isOptionalObject */
      false,
      body,
      -1
    ).end }
  });
};
transformTemplateBinding_fn = function(templateBinding, index) {
  if (isExpressionBinding(templateBinding)) {
    const { key, value } = templateBinding;
    if (!value) {
      return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxKey",
        name: __privateMethod(this, _Transformer_instances2, removePrefix_fn).call(this, key.source),
        ...key.span
      });
    } else if (index === 0) {
      return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxExpression",
        expression: __privateMethod(this, _Transformer_instances2, transform_fn2).call(this, value.ast),
        alias: null,
        ...value.sourceSpan
      });
    } else {
      return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxKeyedExpression",
        key: __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxKey",
          name: __privateMethod(this, _Transformer_instances2, removePrefix_fn).call(this, key.source),
          ...key.span
        }),
        expression: __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxExpression",
          expression: __privateMethod(this, _Transformer_instances2, transform_fn2).call(this, value.ast),
          alias: null,
          ...value.sourceSpan
        }),
        start: key.span.start,
        end: value.sourceSpan.end
      });
    }
  } else {
    const { key, sourceSpan } = templateBinding;
    const startsWithLet = /^let\s$/.test(__privateGet(this, _text2).slice(sourceSpan.start, sourceSpan.start + 4));
    if (startsWithLet) {
      const { value } = templateBinding;
      return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxLet",
        key: __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxKey",
          name: key.source,
          ...key.span
        }),
        value: !value ? null : __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxKey",
          name: value.source,
          ...value.span
        }),
        start: sourceSpan.start,
        end: value ? value.span.end : key.span.end
      });
    } else {
      const value = __privateMethod(this, _Transformer_instances2, getAsVariableBindingValue_fn).call(this, templateBinding);
      return __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
        type: "NGMicrosyntaxAs",
        key: __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxKey",
          name: value.source,
          ...value.span
        }),
        alias: __privateMethod(this, _Transformer_instances2, create_fn2).call(this, {
          type: "NGMicrosyntaxKey",
          name: key.source,
          ...key.span
        }),
        start: value.span.start,
        end: key.span.end
      });
    }
  }
};
function transform2(rawTemplateBindings, text) {
  return new Transformer2(rawTemplateBindings, text).expressions;
}
 
// node_modules/angular-estree-parser/lib/transform.js
function transformAstResult({ result: { ast }, text, comments }) {
  return Object.assign(transform(ast, text), { comments });
}
function transformMicrosyntaxResult({ result: { templateBindings }, text }) {
  return transform2(templateBindings, text);
}
 
// node_modules/angular-estree-parser/lib/estree-parser.js
var parseBinding2 = (text) => transformAstResult(parseBinding(text));
var parseInterpolationExpression2 = (text) => transformAstResult(parseInterpolationExpression(text));
var parseAction2 = (text) => transformAstResult(parseAction(text));
var parseTemplateBindings2 = (text) => transformMicrosyntaxResult(parseTemplateBindings(text));
 
// src/language-js/loc.js
function locStart(node) {
  var _a, _b, _c;
  const start = ((_a = node.range) == null ? void 0 : _a[0]) ?? node.start;
  if (false) {
    throw new TypeError("Can't not locate node.");
  }
  const firstDecorator = (_c = ((_b = node.declaration) == null ? void 0 : _b.decorators) ?? node.decorators) == null ? void 0 : _c[0];
  if (firstDecorator) {
    return Math.min(locStart(firstDecorator), start);
  }
  return start;
}
function locEnd(node) {
  var _a;
  const end = ((_a = node.range) == null ? void 0 : _a[1]) ?? node.end;
  if (false) {
    throw new TypeError("Can't not locate node.");
  }
  return end;
}
 
// src/language-js/parse/angular.js
function createParser(parseMethod) {
  return {
    astFormat: "estree",
    parse(text) {
      const node = parseMethod(text);
      return {
        type: "NGRoot",
        node: parseMethod === parseAction2 && node.type !== "NGChainedExpression" ? { ...node, type: "NGChainedExpression", expressions: [node] } : node
      };
    },
    locStart,
    locEnd
  };
}
var __ng_action = createParser(parseAction2);
var __ng_binding = createParser(parseBinding2);
var __ng_interpolation = createParser(parseInterpolationExpression2);
var __ng_directive = createParser(parseTemplateBindings2);
 
// with-default-export:src/plugins/angular.js
var angular_default = angular_exports2;
export {
  angular_default as default,
  angular_exports as parsers
};