@leed-ai/cli 0.0.0-stage → 6.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/LICENSE.md +57 -0
  2. package/README.md +125 -2
  3. package/dist/LICENSE.md +57 -0
  4. package/dist/acorn-DAgDT1om.js +5087 -0
  5. package/dist/angular-l0_4PK8N.js +3598 -0
  6. package/dist/authShared-Dray38Ls.js +1161 -0
  7. package/dist/babel-CJeRQd5u.js +10038 -0
  8. package/dist/buildResults-tiq1nugP.js +21180 -0
  9. package/dist/chunk-1VJ9lAw7.js +42 -0
  10. package/dist/cliAuth-38JjD6hw.js +15 -0
  11. package/dist/env-B0bHiXJJ.js +29 -0
  12. package/dist/errors-CqKamGCu.js +481 -0
  13. package/dist/estree-E8WG8UHj.js +6930 -0
  14. package/dist/flow-6xaRIbPQ.js +52255 -0
  15. package/dist/glimmer-aJPjsfbT.js +7272 -0
  16. package/dist/graphql-mcgtPEiZ.js +1901 -0
  17. package/dist/html--eeea3Kl.js +6553 -0
  18. package/dist/leed.eleventy.mjs +6525 -0
  19. package/dist/leed.mjs +88952 -0
  20. package/dist/leed.sources.json +798 -0
  21. package/dist/leedLogger-Zkada5aO.js +78 -0
  22. package/dist/markdown-D73jNKwx.js +6836 -0
  23. package/dist/meriyah-CMp1nDDW.js +8932 -0
  24. package/dist/package.json +101 -0
  25. package/dist/postcss-h4fBr2Fn.js +6760 -0
  26. package/dist/prettier-CwFSKxfN.js +16821 -0
  27. package/dist/static/customer-site-worker/package.json +9 -0
  28. package/dist/static/customer-site-worker/src/assetsHydration.ts +55 -0
  29. package/dist/static/customer-site-worker/src/constants.ts +20 -0
  30. package/dist/static/customer-site-worker/src/cors.ts +120 -0
  31. package/dist/static/customer-site-worker/src/index.ts +242 -0
  32. package/dist/static/customer-site-worker/src/mcp-proxy.ts +98 -0
  33. package/dist/static/customer-site-worker/src/proxy.ts +92 -0
  34. package/dist/static/customer-site-worker/src/proxyHeaders.ts +47 -0
  35. package/dist/static/customer-site-worker/src/tier.ts +40 -0
  36. package/dist/static/customer-site-worker/src/types.ts +82 -0
  37. package/dist/static/customer-site-worker/test/functions-mock.worker.js +50 -0
  38. package/dist/static/customer-site-worker/tsconfig.json +19 -0
  39. package/dist/static/customer-site-worker/vitest.workers.config.ts +61 -0
  40. package/dist/static/install/husky/colors.mjs +5 -0
  41. package/dist/static/install/husky/hooks/commit-msg +1 -0
  42. package/dist/static/install/husky/hooks/pre-commit +1 -0
  43. package/dist/static/install/husky/hooks/pre-push +1 -0
  44. package/dist/static/install/husky/valid-command.mjs +29 -0
  45. package/dist/static/install/husky/valid-commit-msg.mjs +20 -0
  46. package/dist/static/install/package.json +10 -0
  47. package/dist/static/install/packages.txt +4 -0
  48. package/dist/static/install/tasks.json +111 -0
  49. package/dist/static/javascript/detectIncognito.js +195 -0
  50. package/dist/static/javascript/documentation.js +2781 -0
  51. package/dist/static/javascript/fp/fp.esm.js +2896 -0
  52. package/dist/static/javascript/fp/fp.js +3067 -0
  53. package/dist/static/javascript/live-search.js +986 -0
  54. package/dist/static/javascript/lunr-search.js +843 -0
  55. package/dist/static/javascript/timeme.js +451 -0
  56. package/dist/static/javascript/tracker/webmcp.js +67 -0
  57. package/dist/static/javascript/tracker/whisper.js +1 -0
  58. package/dist/static/javascript/utilities.js +819 -0
  59. package/dist/static/javascript/versions.json +74 -0
  60. package/dist/static/javascript/zoomable.js +488 -0
  61. package/dist/static/site/_data/eleventyComputed.js +228 -0
  62. package/dist/static/site/_data/leed-form-data.json +253 -0
  63. package/dist/static/site/_includes/leed/api/bits/array-type.hbs +24 -0
  64. package/dist/static/site/_includes/leed/api/bits/badges.hbs +9 -0
  65. package/dist/static/site/_includes/leed/api/bits/description.hbs +9 -0
  66. package/dist/static/site/_includes/leed/api/bits/examples.hbs +42 -0
  67. package/dist/static/site/_includes/leed/api/bits/scopes.hbs +28 -0
  68. package/dist/static/site/_includes/leed/api/object.hbs +110 -0
  69. package/dist/static/site/_includes/leed/api/parameters.hbs +11 -0
  70. package/dist/static/site/_includes/leed/api/property.hbs +153 -0
  71. package/dist/static/site/_includes/leed/api/request-body.hbs +51 -0
  72. package/dist/static/site/_includes/leed/api/responses.hbs +89 -0
  73. package/dist/static/site/_includes/leed/api/security-constraints.hbs +59 -0
  74. package/dist/static/site/_includes/leed/api/security.hbs +75 -0
  75. package/dist/static/site/_includes/leed/components/pagination.hbs +45 -0
  76. package/dist/static/site/_includes/leed/components/scroll-status-indicator-horizontal.hbs +22 -0
  77. package/dist/static/site/_includes/leed/docs/alpha/api.hbs +6 -0
  78. package/dist/static/site/_includes/leed/docs/alpha/base.hbs +26 -0
  79. package/dist/static/site/_includes/leed/docs/alpha/documentation.hbs +7 -0
  80. package/dist/static/site/_includes/leed/docs/api-article.hbs +75 -0
  81. package/dist/static/site/_includes/leed/docs/bravo/api.hbs +5 -0
  82. package/dist/static/site/_includes/leed/docs/bravo/base.hbs +31 -0
  83. package/dist/static/site/_includes/leed/docs/bravo/documentation.hbs +7 -0
  84. package/dist/static/site/_includes/leed/docs/charlie/api.hbs +6 -0
  85. package/dist/static/site/_includes/leed/docs/charlie/base.hbs +27 -0
  86. package/dist/static/site/_includes/leed/docs/charlie/documentation.hbs +10 -0
  87. package/dist/static/site/_includes/leed/docs/doc-article.hbs +40 -0
  88. package/dist/static/site/_includes/leed/docs/docs-footer.hbs +35 -0
  89. package/dist/static/site/_includes/leed/docs/docs-header.hbs +59 -0
  90. package/dist/static/site/_includes/leed/docs/document-search-modal.hbs +36 -0
  91. package/dist/static/site/_includes/leed/docs/document-search.hbs +23 -0
  92. package/dist/static/site/_includes/leed/docs/footer.hbs +12 -0
  93. package/dist/static/site/_includes/leed/docs/header/brand.hbs +19 -0
  94. package/dist/static/site/_includes/leed/docs/header/chrome.hbs +33 -0
  95. package/dist/static/site/_includes/leed/docs/header/compact.hbs +19 -0
  96. package/dist/static/site/_includes/leed/docs/header/cta.hbs +15 -0
  97. package/dist/static/site/_includes/leed/docs/header/nav.hbs +18 -0
  98. package/dist/static/site/_includes/leed/docs/header/top-search.hbs +15 -0
  99. package/dist/static/site/_includes/leed/docs/mini-bar.hbs +53 -0
  100. package/dist/static/site/_includes/leed/docs/pagination.hbs +19 -0
  101. package/dist/static/site/_includes/leed/docs/shell.hbs +56 -0
  102. package/dist/static/site/_includes/leed/docs/sidebar.hbs +52 -0
  103. package/dist/static/site/_includes/leed/docs/social-icons.hbs +81 -0
  104. package/dist/static/site/_includes/leed/docs/style.hbs +17 -0
  105. package/dist/static/site/_includes/leed/docs/toc.hbs +7 -0
  106. package/dist/static/site/_includes/leed/form.hbs +266 -0
  107. package/dist/static/site/_includes/leed/head.hbs +67 -0
  108. package/dist/static/site/_includes/leed/menu/builder.hbs +35 -0
  109. package/dist/static/site/_includes/leed/menu/item.hbs +67 -0
  110. package/dist/static/site/_includes/leed/menu/link.hbs +59 -0
  111. package/dist/static/site/_includes/leed/metadata/ogCard.hbs +40 -0
  112. package/dist/static/site/_includes/leed/metadata/siteMetadata.hbs +24 -0
  113. package/dist/static/site/_includes/leed/metadata/twitterCard.hbs +34 -0
  114. package/dist/static/site/_includes/leed/popup-video.hbs +21 -0
  115. package/dist/static/site/_includes/leed/stub-template.hbs +17 -0
  116. package/dist/static/site/_includes/leed/unsubscribe-form.hbs +30 -0
  117. package/dist/static/site/_layouts/leed-documentation.hbs +12 -0
  118. package/dist/static/site/leed-feed-atom.hbs +42 -0
  119. package/dist/static/site/leed-feed-json.hbs +56 -0
  120. package/dist/static/site/leed-feed-rss.hbs +39 -0
  121. package/dist/static/site/leed-headers.hbs +38 -0
  122. package/dist/static/site/leed-redirects.hbs +10 -0
  123. package/dist/static/site/leed-sitemap-pageType.hbs +28 -0
  124. package/dist/static/site/leed-sitemap.hbs +19 -0
  125. package/dist/static/site/leed-unsubscribe.hbs +44 -0
  126. package/dist/static/site/leed-unsubscribed.hbs +40 -0
  127. package/dist/static/tailwind/components/alerts.css +132 -0
  128. package/dist/static/tailwind/components/api-methods.css +39 -0
  129. package/dist/static/tailwind/components/breadcrumbs.css +31 -0
  130. package/dist/static/tailwind/components/code.css +88 -0
  131. package/dist/static/tailwind/components/collapsible.css +38 -0
  132. package/dist/static/tailwind/components/document-search.css +222 -0
  133. package/dist/static/tailwind/components/form.css +185 -0
  134. package/dist/static/tailwind/components/kbd.css +7 -0
  135. package/dist/static/tailwind/components/pagination.css +81 -0
  136. package/dist/static/tailwind/components/scroll-status-indicator.css +5 -0
  137. package/dist/static/tailwind/components/tab-groups.css +117 -0
  138. package/dist/static/tailwind/components/tables.css +0 -0
  139. package/dist/static/tailwind/components/toc.css +60 -0
  140. package/dist/static/tailwind/components.css +248 -0
  141. package/dist/static/tailwind/defaults.css +260 -0
  142. package/dist/static/tailwind/docs/api.css +701 -0
  143. package/dist/static/tailwind/docs/components/blockquote.css +5 -0
  144. package/dist/static/tailwind/docs/components/button.css +11 -0
  145. package/dist/static/tailwind/docs/components/docs-pagination.css +71 -0
  146. package/dist/static/tailwind/docs/components/mobile-bar.css +83 -0
  147. package/dist/static/tailwind/docs/components/navigation.css +279 -0
  148. package/dist/static/tailwind/docs/components/table.css +54 -0
  149. package/dist/static/tailwind/docs/components.css +6 -0
  150. package/dist/static/tailwind/docs/docs.css +427 -0
  151. package/dist/static/tailwind/docs/layouts/alpha.css +108 -0
  152. package/dist/static/tailwind/docs/layouts/bravo.css +218 -0
  153. package/dist/static/tailwind/docs/layouts/charlie.css +105 -0
  154. package/dist/static/tailwind/docs/layouts.css +3 -0
  155. package/dist/static/tailwind/docs/themes/amber.css +113 -0
  156. package/dist/static/tailwind/docs/themes/blue.css +94 -0
  157. package/dist/static/tailwind/docs/themes/cyan.css +111 -0
  158. package/dist/static/tailwind/docs/themes/emerald.css +111 -0
  159. package/dist/static/tailwind/docs/themes/fuchsia.css +111 -0
  160. package/dist/static/tailwind/docs/themes/green.css +95 -0
  161. package/dist/static/tailwind/docs/themes/indigo.css +111 -0
  162. package/dist/static/tailwind/docs/themes/lime.css +111 -0
  163. package/dist/static/tailwind/docs/themes/orange.css +111 -0
  164. package/dist/static/tailwind/docs/themes/pink.css +111 -0
  165. package/dist/static/tailwind/docs/themes/purple.css +111 -0
  166. package/dist/static/tailwind/docs/themes/red.css +111 -0
  167. package/dist/static/tailwind/docs/themes/rose.css +111 -0
  168. package/dist/static/tailwind/docs/themes/sky.css +111 -0
  169. package/dist/static/tailwind/docs/themes/teal.css +111 -0
  170. package/dist/static/tailwind/docs/themes/violet.css +111 -0
  171. package/dist/static/tailwind/docs/themes/yellow.css +111 -0
  172. package/dist/static/tailwind/docs/themes.css +84 -0
  173. package/dist/static/tailwind/font-awesome/free-7.3.1/brands.css +2455 -0
  174. package/dist/static/tailwind/font-awesome/free-7.3.1/fontawesome.css +8997 -0
  175. package/dist/static/tailwind/font-awesome/free-7.3.1/fonts.css +45 -0
  176. package/dist/static/tailwind/font-awesome/free-7.3.1/icons.json +2608 -0
  177. package/dist/static/tailwind/font-awesome/free-7.3.1.css +3 -0
  178. package/dist/static/tailwind/font-awesome/pro-7.0.0/brands.css +2215 -0
  179. package/dist/static/tailwind/font-awesome/pro-7.0.0/fontawesome.css +19281 -0
  180. package/dist/static/tailwind/font-awesome/pro-7.0.0/fonts.css +445 -0
  181. package/dist/static/tailwind/font-awesome/pro-7.0.0.css +3 -0
  182. package/dist/static/tailwind/font-awesome/pro-7.3.1/brands.css +2455 -0
  183. package/dist/static/tailwind/font-awesome/pro-7.3.1/fontawesome.css +20365 -0
  184. package/dist/static/tailwind/font-awesome/pro-7.3.1/fonts.css +589 -0
  185. package/dist/static/tailwind/font-awesome/pro-7.3.1.css +3 -0
  186. package/dist/static/tailwind/fonts/all.css +6 -0
  187. package/dist/static/tailwind/fonts/config.jsonc +31 -0
  188. package/dist/static/tailwind/fonts/geist-mono.css +142 -0
  189. package/dist/static/tailwind/fonts/geist.css +142 -0
  190. package/dist/static/tailwind/fonts/inter.css +215 -0
  191. package/dist/static/tailwind/fonts/jetbrains-mono.css +126 -0
  192. package/dist/static/tailwind/fonts/noto-sans.css +134 -0
  193. package/dist/static/tailwind/fonts/open-sans.css +89 -0
  194. package/dist/static/tailwind/highlighters.css +14 -0
  195. package/dist/static/tailwind/hljs/README.md +53 -0
  196. package/dist/static/tailwind/hljs/a11y.css +96 -0
  197. package/dist/static/tailwind/hljs/atom-fruit.css +90 -0
  198. package/dist/static/tailwind/hljs/atom-one.css +164 -0
  199. package/dist/static/tailwind/hljs/default.css +164 -0
  200. package/dist/static/tailwind/hljs/github.css +101 -0
  201. package/dist/static/tailwind/hljs/google-code.css +112 -0
  202. package/dist/static/tailwind/hljs/grayscale.css +115 -0
  203. package/dist/static/tailwind/hljs/gruvbox-hard.css +115 -0
  204. package/dist/static/tailwind/hljs/gruvbox-medium.css +115 -0
  205. package/dist/static/tailwind/hljs/gruvbox-soft.css +115 -0
  206. package/dist/static/tailwind/hljs/papercolor.css +120 -0
  207. package/dist/static/tailwind/hljs/qt-creator.css +91 -0
  208. package/dist/static/tailwind/hljs/summerfruit.css +115 -0
  209. package/dist/static/tailwind/hljs/tomorrow.css +115 -0
  210. package/dist/static/tailwind/leed.css +170 -0
  211. package/dist/static/tailwind/site-tokens.reference.css +105 -0
  212. package/dist/static/tailwind/utils/icons.css +102 -0
  213. package/dist/static/tailwind/utils/utilities.css +105 -0
  214. package/dist/static/templates/pages/PAGE.hbs +27 -0
  215. package/dist/static/templates/pages/PAGE_LAYOUT.hbs +19 -0
  216. package/dist/static/templates/pages/PAGE_TYPE_INDEX.hbs +89 -0
  217. package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_ITEM.hbs +52 -0
  218. package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_LIST.hbs +39 -0
  219. package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_PAGINATION.hbs +11 -0
  220. package/dist/static/templates/raw-content/.ci/build.sh +58 -0
  221. package/dist/static/templates/raw-content/README.md +179 -0
  222. package/dist/static/templates/raw-content/_gitignore +50 -0
  223. package/dist/static/templates/raw-content/src/404.hbs +21 -0
  224. package/dist/static/templates/raw-content/src/_data/autolink.json +1 -0
  225. package/dist/static/templates/raw-content/src/_data/ctaList.json +1 -0
  226. package/dist/static/templates/raw-content/src/_data/leedForms.json +1 -0
  227. package/dist/static/templates/raw-content/src/_data/menu.json +1 -0
  228. package/dist/static/templates/raw-content/src/_includes/footer.hbs +18 -0
  229. package/dist/static/templates/raw-content/src/_includes/header-includes.hbs +25 -0
  230. package/dist/static/templates/raw-content/src/_includes/header.hbs +5 -0
  231. package/dist/static/templates/raw-content/src/_includes/site-template.hbs +23 -0
  232. package/dist/static/templates/raw-content/src/_includes/unsubscribe-DISABLED.hbs +17 -0
  233. package/dist/static/templates/raw-content/src/_includes/unsubscribed-DISABLED.hbs +13 -0
  234. package/dist/static/templates/raw-content/src/_layouts/empty.hbs +2 -0
  235. package/dist/static/templates/raw-content/src/index.hbs +21 -0
  236. package/dist/static/templates/raw-content/src/robots.hbs +9 -0
  237. package/dist/static/templates/raw-content/tailwind/site/base.css +44 -0
  238. package/dist/static/templates/raw-content/tailwind/site.config.css +3 -0
  239. package/dist/static/templates/sandbox/_gitignore +50 -0
  240. package/dist/static/templates/sandbox/identity.json +1 -0
  241. package/dist/static/templates/sandbox/src/404.hbs +21 -0
  242. package/dist/static/templates/sandbox/src/_data/autolink.json +1 -0
  243. package/dist/static/templates/sandbox/src/_data/ctaList.json +1 -0
  244. package/dist/static/templates/sandbox/src/_data/labelList.json +9 -0
  245. package/dist/static/templates/sandbox/src/_data/leedForms.json +20 -0
  246. package/dist/static/templates/sandbox/src/_data/menu.json +19 -0
  247. package/dist/static/templates/sandbox/src/_data/pageTypeList.json +14 -0
  248. package/dist/static/templates/sandbox/src/_data/searchIndexList.json +1 -0
  249. package/dist/static/templates/sandbox/src/_data/userList.json +11 -0
  250. package/dist/static/templates/sandbox/src/_includes/footer.hbs +18 -0
  251. package/dist/static/templates/sandbox/src/_includes/header-includes.hbs +25 -0
  252. package/dist/static/templates/sandbox/src/_includes/header.hbs +5 -0
  253. package/dist/static/templates/sandbox/src/_includes/site-template.hbs +23 -0
  254. package/dist/static/templates/sandbox/src/_layouts/empty.hbs +2 -0
  255. package/dist/static/templates/sandbox/src/index.hbs +20 -0
  256. package/dist/static/templates/sandbox/src/robots.hbs +9 -0
  257. package/dist/static/templates/sandbox/src/src.11tydata.json +39 -0
  258. package/dist/static/templates/sandbox/tailwind/site/base.css +44 -0
  259. package/dist/static/templates/sandbox/tailwind/site.config.css +3 -0
  260. package/dist/thrown-sukVkp_1.js +113 -0
  261. package/dist/typescript-D4T0V_Hn.js +23004 -0
  262. package/dist/yaml-9wR8GxF_.js +5236 -0
  263. package/package.json +157 -4
@@ -0,0 +1,3598 @@
1
+ /**
2
+ * SPDX-FileCopyrightText: © 2024-2025 Leed, Inc.
3
+ * SPDX-License-Identifier: LicenseRef-Leed-EULA
4
+ */
5
+ import { n as __esmMin } from "./chunk-1VJ9lAw7.js";
6
+ //#region ../../node_modules/prettier/plugins/angular.mjs
7
+ function zs(n, e) {
8
+ return n == null || e == null ? n == e : n.isEquivalent(e);
9
+ }
10
+ function Gs(n, e, t) {
11
+ let s = n.length;
12
+ if (s !== e.length) return !1;
13
+ for (let r = 0; r < s; r++) if (!t(n[r], e[r])) return !1;
14
+ return !0;
15
+ }
16
+ function ct(n, e) {
17
+ return Gs(n, e, (t, s) => t.isEquivalent(s));
18
+ }
19
+ function Xs(n, e, t) {
20
+ return new st(n, e, t);
21
+ }
22
+ function Ys(n, e) {
23
+ if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${n}' to be an array, [start, end].`);
24
+ if (e != null) {
25
+ let t = e[0], s = e[1];
26
+ Js.forEach((r) => {
27
+ if (r.test(t) || r.test(s)) throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`);
28
+ });
29
+ }
30
+ }
31
+ function vr(n) {
32
+ return n >= Kn && n <= Zn || n == ls;
33
+ }
34
+ function z(n) {
35
+ return or <= n && n <= ar;
36
+ }
37
+ function wr(n) {
38
+ return n >= os && n <= as || n >= rs && n <= is;
39
+ }
40
+ function Tn(n) {
41
+ return n === ts || n === es || n === $t;
42
+ }
43
+ function Ze(n, e, t) {
44
+ return new M(n, e, m.Character, t, String.fromCharCode(t));
45
+ }
46
+ function Nr(n, e, t) {
47
+ return new M(n, e, m.Identifier, 0, t);
48
+ }
49
+ function Ar(n, e, t) {
50
+ return new M(n, e, m.PrivateIdentifier, 0, t);
51
+ }
52
+ function Pr(n, e, t) {
53
+ return new M(n, e, m.Keyword, 0, t);
54
+ }
55
+ function _e(n, e, t) {
56
+ return new M(n, e, m.Operator, 0, t);
57
+ }
58
+ function Lr(n, e, t) {
59
+ return new M(n, e, m.Number, t, "");
60
+ }
61
+ function Mr(n, e, t) {
62
+ return new M(n, e, m.Error, 0, t);
63
+ }
64
+ function zn(n) {
65
+ return os <= n && n <= as || rs <= n && n <= is || n == Ht || n == Ut;
66
+ }
67
+ function Gn(n) {
68
+ return wr(n) || z(n) || n == Ht || n == Ut;
69
+ }
70
+ function $r(n) {
71
+ return n == ur || n == lr;
72
+ }
73
+ function Rr(n) {
74
+ return n == ss || n == ns;
75
+ }
76
+ function Dr(n) {
77
+ switch (n) {
78
+ case hr: return Qs;
79
+ case pr: return Zs;
80
+ case fr: return er;
81
+ case dr: return Kn;
82
+ case gr: return Ks;
83
+ default: return n;
84
+ }
85
+ }
86
+ function Br(n) {
87
+ let e = parseInt(n);
88
+ if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + n);
89
+ return e;
90
+ }
91
+ function Or(n) {
92
+ let e = /* @__PURE__ */ new Map(), t = 0, s = 0, r = 0;
93
+ for (; r < n.length;) {
94
+ let i = n[r];
95
+ if (i.type === 9) {
96
+ let [a, l] = i.parts;
97
+ t += l.length, s += a.length;
98
+ } else {
99
+ let a = i.parts.reduce((l, h) => l + h.length, 0);
100
+ s += a, t += a;
101
+ }
102
+ e.set(s, t), r++;
103
+ }
104
+ return e;
105
+ }
106
+ function B(n) {
107
+ return (e) => e.kind === n;
108
+ }
109
+ function Ne(n, e) {
110
+ return (t) => t.kind === n && e === t.expression instanceof at;
111
+ }
112
+ function gs({ start: n, end: e }, t) {
113
+ let s = n, r = e;
114
+ for (; r !== s && /\s/.test(t[r - 1]);) r--;
115
+ for (; s !== r && /\s/.test(t[s]);) s++;
116
+ return {
117
+ start: s,
118
+ end: r
119
+ };
120
+ }
121
+ function Hr({ start: n, end: e }, t) {
122
+ let s = n, r = e;
123
+ for (; r !== t.length && /\s/.test(t[r]);) r++;
124
+ for (; s !== 0 && /\s/.test(t[s - 1]);) s--;
125
+ return {
126
+ start: s,
127
+ end: r
128
+ };
129
+ }
130
+ function Wr(n, e) {
131
+ return e[n.start - 1] === "(" && e[n.end] === ")" ? {
132
+ start: n.start - 1,
133
+ end: n.end + 1
134
+ } : n;
135
+ }
136
+ function vs(n, e, t) {
137
+ let s = 0, r = {
138
+ start: n.start,
139
+ end: n.end
140
+ };
141
+ for (;;) {
142
+ let i = Hr(r, e), a = Wr(i, e);
143
+ if (i.start === a.start && i.end === a.end) break;
144
+ r.start = a.start, r.end = a.end, s++;
145
+ }
146
+ return {
147
+ hasParens: (t ? s - 1 : s) !== 0,
148
+ outerSpan: gs(t ? {
149
+ start: r.start + 1,
150
+ end: r.end - 1
151
+ } : r, e),
152
+ innerSpan: gs(n, e)
153
+ };
154
+ }
155
+ function ws(n) {
156
+ return typeof n == "string" ? (e) => e === n : (e) => n.test(e);
157
+ }
158
+ function xs(n, e, t) {
159
+ let s = ws(e);
160
+ for (let r = t; r >= 0; r--) {
161
+ let i = n[r];
162
+ if (s(i)) return r;
163
+ }
164
+ throw new Error(`Cannot find front char ${e} from index ${t} in ${JSON.stringify(n)}`);
165
+ }
166
+ function Ss(n, e, t) {
167
+ let s = ws(e);
168
+ for (let r = t; r < n.length; r++) {
169
+ let i = n[r];
170
+ if (s(i)) return r;
171
+ }
172
+ throw new Error(`Cannot find character ${e} from index ${t} in ${JSON.stringify(n)}`);
173
+ }
174
+ function Es(n) {
175
+ return n.slice(0, 1).toLowerCase() + n.slice(1);
176
+ }
177
+ function ze(n) {
178
+ let { start: e, end: t } = n;
179
+ return {
180
+ start: e,
181
+ end: t,
182
+ range: [e, t]
183
+ };
184
+ }
185
+ function jr(n, e) {
186
+ let t = e ? qr(n) : null;
187
+ if (t === null) return {
188
+ text: n,
189
+ comments: []
190
+ };
191
+ let s = {
192
+ type: "CommentLine",
193
+ value: n.slice(t + 2),
194
+ ...ze({
195
+ start: t,
196
+ end: n.length
197
+ })
198
+ };
199
+ return {
200
+ text: n.slice(0, t),
201
+ comments: [s]
202
+ };
203
+ }
204
+ function Ge(n, e = !0) {
205
+ return (t) => {
206
+ let r = new we(new qe()), { text: i, comments: a } = jr(t, e), l = n(i, r);
207
+ if (l.errors.length !== 0) {
208
+ let [{ message: h }] = l.errors;
209
+ throw new SyntaxError(h.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
210
+ }
211
+ return {
212
+ result: l,
213
+ comments: a,
214
+ text: i
215
+ };
216
+ };
217
+ }
218
+ function jt(n) {
219
+ var e;
220
+ return !!((e = n.extra) != null && e.parenthesized);
221
+ }
222
+ function $(n) {
223
+ return jt(n) ? n.extra.parenStart : n.start;
224
+ }
225
+ function R(n) {
226
+ return jt(n) ? n.extra.parenEnd : n.end;
227
+ }
228
+ function bs(n) {
229
+ return (n.type === "OptionalCallExpression" || n.type === "OptionalMemberExpression") && !jt(n);
230
+ }
231
+ function Is(n, e) {
232
+ let { start: t, end: s } = n.sourceSpan;
233
+ return t >= s || /^\s+$/.test(e.slice(t, s));
234
+ }
235
+ function Ns(n, e) {
236
+ return new Je(n, e).node;
237
+ }
238
+ function As(n) {
239
+ return n instanceof We;
240
+ }
241
+ function Ps(n) {
242
+ return n instanceof me;
243
+ }
244
+ function Bs(n, e) {
245
+ return new zt(n, e).expressions;
246
+ }
247
+ function ht({ result: { ast: n }, text: e, comments: t }) {
248
+ return Object.assign(Ns(n, e), { comments: t });
249
+ }
250
+ function Os({ result: { templateBindings: n }, text: e }) {
251
+ return Bs(n, e);
252
+ }
253
+ function Qt(n) {
254
+ var s, r, i;
255
+ let e = ((s = n.range) == null ? void 0 : s[0]) ?? n.start, t = (i = ((r = n.declaration) == null ? void 0 : r.decorators) ?? n.decorators) == null ? void 0 : i[0];
256
+ return t ? Math.min(Qt(t), e) : e;
257
+ }
258
+ function Hs(n) {
259
+ var t;
260
+ return ((t = n.range) == null ? void 0 : t[1]) ?? n.end;
261
+ }
262
+ function ft(n) {
263
+ return {
264
+ astFormat: "estree",
265
+ parse(e) {
266
+ let t = n(e);
267
+ return {
268
+ type: "NGRoot",
269
+ node: n === Yt && t.type !== "NGChainedExpression" ? {
270
+ ...t,
271
+ type: "NGChainedExpression",
272
+ expressions: [t]
273
+ } : t
274
+ };
275
+ },
276
+ locStart: Qt,
277
+ locEnd: Hs
278
+ };
279
+ }
280
+ var qs, tn, nn, dt, L, V, te, c, Zt, Kt, sn, rn, on, D, an, ln, cn, un, pn, hn, fn, js, dn, _, b, st, mt, gt, vt, wt, xt, St, rt, Et, yt, C, _t, Ct, Tt, kt, Ae, it, bt, It, o, p, Nt, gn, Pe, J, S, ae, P, Y, At, Le, Me, le, $e, ce, Re, ue, De, Be, I, Oe, Fe, Vt, A, X, Q, K, Z, Ve, Ue, pe, he, fe, de, He, O, W, me, We, Pt, vn, wn, U, xn, Js, ne, Qe, Kn, Qs, Ks, Zs, er, Zn, tr, es, nr, Ut, sr, Sn, ts, tt, se, En, ns, Ce, ss, re, Mt, ie, Te, rr, Ke, ir, yn, or, ar, rs, lr, is, nt, _n, ke, cr, Ht, os, ur, pr, hr, fr, dr, mr, gr, as, ot, Cn, be, ls, $t, kn, bn, In, Nn, xr, cs, Sr, us, ps, Er, hs, yr, _r, Cr, d, ge, An, Pn, Ln, H, Mn, $n, Rn, Dn, Bn, On, Fn, at, Rt, qn, kr, jn, ds, m, q, Ir, qe, M, Ie, et, Dt, Bt, Ot, we, oe, G, Ft, Fr, Xn, Jn, Yn, ms, Qn, qr, ys, _s, Cs, Ts, Xr, ut, qt, ks, Ye, xe, u, w, Xe, x, pt, Je, Se, ee, g, Ls, N, Gt, Xt, Jt, Ms, $s, Rs, Ds, zt, Fs, Vs, Yt, Us, Jr, Yr, Qr, Kr, ho;
281
+ //#endregion
282
+ __esmMin((() => {
283
+ qs = Object.defineProperty;
284
+ tn = (n) => {
285
+ throw TypeError(n);
286
+ };
287
+ nn = (n, e) => {
288
+ for (var t in e) qs(n, t, {
289
+ get: e[t],
290
+ enumerable: !0
291
+ });
292
+ };
293
+ dt = (n, e, t) => e.has(n) || tn("Cannot " + t);
294
+ L = (n, e, t) => (dt(n, e, "read from private field"), t ? t.call(n) : e.get(n)), V = (n, e, t) => e.has(n) ? tn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), te = (n, e, t, s) => (dt(n, e, "write to private field"), s ? s.call(n, t) : e.set(n, t), t), c = (n, e, t) => (dt(n, e, "access private method"), t);
295
+ Zt = {};
296
+ nn(Zt, { parsers: () => Kt });
297
+ Kt = {};
298
+ nn(Kt, {
299
+ __ng_action: () => Jr,
300
+ __ng_binding: () => Yr,
301
+ __ng_directive: () => Kr,
302
+ __ng_interpolation: () => Qr
303
+ });
304
+ new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
305
+ (function(n) {
306
+ n[n.Emulated = 0] = "Emulated", n[n.None = 2] = "None", n[n.ShadowDom = 3] = "ShadowDom";
307
+ })(sn || (sn = {}));
308
+ (function(n) {
309
+ n[n.OnPush = 0] = "OnPush", n[n.Default = 1] = "Default";
310
+ })(rn || (rn = {}));
311
+ (function(n) {
312
+ n[n.None = 0] = "None", n[n.SignalBased = 1] = "SignalBased", n[n.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
313
+ })(on || (on = {}));
314
+ (function(n) {
315
+ n[n.NONE = 0] = "NONE", n[n.HTML = 1] = "HTML", n[n.STYLE = 2] = "STYLE", n[n.SCRIPT = 3] = "SCRIPT", n[n.URL = 4] = "URL", n[n.RESOURCE_URL = 5] = "RESOURCE_URL";
316
+ })(D || (D = {}));
317
+ (function(n) {
318
+ n[n.Error = 0] = "Error", n[n.Warning = 1] = "Warning", n[n.Ignore = 2] = "Ignore";
319
+ })(an || (an = {}));
320
+ (function(n) {
321
+ n[n.Directive = 0] = "Directive", n[n.Component = 1] = "Component", n[n.Injectable = 2] = "Injectable", n[n.Pipe = 3] = "Pipe", n[n.NgModule = 4] = "NgModule";
322
+ })(ln || (ln = {}));
323
+ (function(n) {
324
+ n[n.Directive = 0] = "Directive", n[n.Pipe = 1] = "Pipe", n[n.NgModule = 2] = "NgModule";
325
+ })(cn || (cn = {}));
326
+ (function(n) {
327
+ n[n.Emulated = 0] = "Emulated", n[n.None = 2] = "None", n[n.ShadowDom = 3] = "ShadowDom";
328
+ })(un || (un = {}));
329
+ (function(n) {
330
+ n[n.Little = 0] = "Little", n[n.Big = 1] = "Big";
331
+ })(pn || (pn = {}));
332
+ (function(n) {
333
+ n[n.None = 0] = "None", n[n.Const = 1] = "Const";
334
+ })(hn || (hn = {}));
335
+ (function(n) {
336
+ n[n.Dynamic = 0] = "Dynamic", n[n.Bool = 1] = "Bool", n[n.String = 2] = "String", n[n.Int = 3] = "Int", n[n.Number = 4] = "Number", n[n.Function = 5] = "Function", n[n.Inferred = 6] = "Inferred", n[n.None = 7] = "None";
337
+ })(fn || (fn = {}));
338
+ js = void 0;
339
+ (function(n) {
340
+ n[n.Minus = 0] = "Minus", n[n.Plus = 1] = "Plus";
341
+ })(dn || (dn = {}));
342
+ (function(n) {
343
+ n[n.Equals = 0] = "Equals", n[n.NotEquals = 1] = "NotEquals", n[n.Identical = 2] = "Identical", n[n.NotIdentical = 3] = "NotIdentical", n[n.Minus = 4] = "Minus", n[n.Plus = 5] = "Plus", n[n.Divide = 6] = "Divide", n[n.Multiply = 7] = "Multiply", n[n.Modulo = 8] = "Modulo", n[n.And = 9] = "And", n[n.Or = 10] = "Or", n[n.BitwiseOr = 11] = "BitwiseOr", n[n.BitwiseAnd = 12] = "BitwiseAnd", n[n.Lower = 13] = "Lower", n[n.LowerEquals = 14] = "LowerEquals", n[n.Bigger = 15] = "Bigger", n[n.BiggerEquals = 16] = "BiggerEquals", n[n.NullishCoalesce = 17] = "NullishCoalesce", n[n.Exponentiation = 18] = "Exponentiation", n[n.In = 19] = "In";
344
+ })(_ || (_ = {}));
345
+ b = class {
346
+ type;
347
+ sourceSpan;
348
+ constructor(e, t) {
349
+ this.type = e || null, this.sourceSpan = t || null;
350
+ }
351
+ prop(e, t) {
352
+ return new _t(this, e, null, t);
353
+ }
354
+ key(e, t, s) {
355
+ return new Ct(this, e, t, s);
356
+ }
357
+ callFn(e, t, s) {
358
+ return new xt(this, e, null, t, s);
359
+ }
360
+ instantiate(e, t, s) {
361
+ return new St(this, e, t, s);
362
+ }
363
+ conditional(e, t = null, s) {
364
+ return new yt(this, e, t, null, s);
365
+ }
366
+ equals(e, t) {
367
+ return new C(_.Equals, this, e, null, t);
368
+ }
369
+ notEquals(e, t) {
370
+ return new C(_.NotEquals, this, e, null, t);
371
+ }
372
+ identical(e, t) {
373
+ return new C(_.Identical, this, e, null, t);
374
+ }
375
+ notIdentical(e, t) {
376
+ return new C(_.NotIdentical, this, e, null, t);
377
+ }
378
+ minus(e, t) {
379
+ return new C(_.Minus, this, e, null, t);
380
+ }
381
+ plus(e, t) {
382
+ return new C(_.Plus, this, e, null, t);
383
+ }
384
+ divide(e, t) {
385
+ return new C(_.Divide, this, e, null, t);
386
+ }
387
+ multiply(e, t) {
388
+ return new C(_.Multiply, this, e, null, t);
389
+ }
390
+ modulo(e, t) {
391
+ return new C(_.Modulo, this, e, null, t);
392
+ }
393
+ power(e, t) {
394
+ return new C(_.Exponentiation, this, e, null, t);
395
+ }
396
+ and(e, t) {
397
+ return new C(_.And, this, e, null, t);
398
+ }
399
+ bitwiseOr(e, t) {
400
+ return new C(_.BitwiseOr, this, e, null, t);
401
+ }
402
+ bitwiseAnd(e, t) {
403
+ return new C(_.BitwiseAnd, this, e, null, t);
404
+ }
405
+ or(e, t) {
406
+ return new C(_.Or, this, e, null, t);
407
+ }
408
+ lower(e, t) {
409
+ return new C(_.Lower, this, e, null, t);
410
+ }
411
+ lowerEquals(e, t) {
412
+ return new C(_.LowerEquals, this, e, null, t);
413
+ }
414
+ bigger(e, t) {
415
+ return new C(_.Bigger, this, e, null, t);
416
+ }
417
+ biggerEquals(e, t) {
418
+ return new C(_.BiggerEquals, this, e, null, t);
419
+ }
420
+ isBlank(e) {
421
+ return this.equals(TYPED_NULL_EXPR, e);
422
+ }
423
+ nullishCoalesce(e, t) {
424
+ return new C(_.NullishCoalesce, this, e, null, t);
425
+ }
426
+ toStmt() {
427
+ return new It(this, null);
428
+ }
429
+ }, st = class n extends b {
430
+ name;
431
+ constructor(e, t, s) {
432
+ super(t, s), this.name = e;
433
+ }
434
+ isEquivalent(e) {
435
+ return e instanceof n && this.name === e.name;
436
+ }
437
+ isConstant() {
438
+ return !1;
439
+ }
440
+ visitExpression(e, t) {
441
+ return e.visitReadVarExpr(this, t);
442
+ }
443
+ clone() {
444
+ return new n(this.name, this.type, this.sourceSpan);
445
+ }
446
+ set(e) {
447
+ return new gt(this.name, e, null, this.sourceSpan);
448
+ }
449
+ }, mt = class n extends b {
450
+ expr;
451
+ constructor(e, t, s) {
452
+ super(t, s), this.expr = e;
453
+ }
454
+ visitExpression(e, t) {
455
+ return e.visitTypeofExpr(this, t);
456
+ }
457
+ isEquivalent(e) {
458
+ return e instanceof n && e.expr.isEquivalent(this.expr);
459
+ }
460
+ isConstant() {
461
+ return this.expr.isConstant();
462
+ }
463
+ clone() {
464
+ return new n(this.expr.clone());
465
+ }
466
+ };
467
+ gt = class n extends b {
468
+ name;
469
+ value;
470
+ constructor(e, t, s, r) {
471
+ super(s || t.type, r), this.name = e, this.value = t;
472
+ }
473
+ isEquivalent(e) {
474
+ return e instanceof n && this.name === e.name && this.value.isEquivalent(e.value);
475
+ }
476
+ isConstant() {
477
+ return !1;
478
+ }
479
+ visitExpression(e, t) {
480
+ return e.visitWriteVarExpr(this, t);
481
+ }
482
+ clone() {
483
+ return new n(this.name, this.value.clone(), this.type, this.sourceSpan);
484
+ }
485
+ toDeclStmt(e, t) {
486
+ return new bt(this.name, this.value, e, t, this.sourceSpan);
487
+ }
488
+ toConstDecl() {
489
+ return this.toDeclStmt(js, Ae.Final);
490
+ }
491
+ }, vt = class n extends b {
492
+ receiver;
493
+ index;
494
+ value;
495
+ constructor(e, t, s, r, i) {
496
+ super(r || s.type, i), this.receiver = e, this.index = t, this.value = s;
497
+ }
498
+ isEquivalent(e) {
499
+ return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
500
+ }
501
+ isConstant() {
502
+ return !1;
503
+ }
504
+ visitExpression(e, t) {
505
+ return e.visitWriteKeyExpr(this, t);
506
+ }
507
+ clone() {
508
+ return new n(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);
509
+ }
510
+ }, wt = class n extends b {
511
+ receiver;
512
+ name;
513
+ value;
514
+ constructor(e, t, s, r, i) {
515
+ super(r || s.type, i), this.receiver = e, this.name = t, this.value = s;
516
+ }
517
+ isEquivalent(e) {
518
+ return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
519
+ }
520
+ isConstant() {
521
+ return !1;
522
+ }
523
+ visitExpression(e, t) {
524
+ return e.visitWritePropExpr(this, t);
525
+ }
526
+ clone() {
527
+ return new n(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);
528
+ }
529
+ }, xt = class n extends b {
530
+ fn;
531
+ args;
532
+ pure;
533
+ constructor(e, t, s, r, i = !1) {
534
+ super(s, r), this.fn = e, this.args = t, this.pure = i;
535
+ }
536
+ get receiver() {
537
+ return this.fn;
538
+ }
539
+ isEquivalent(e) {
540
+ return e instanceof n && this.fn.isEquivalent(e.fn) && ct(this.args, e.args) && this.pure === e.pure;
541
+ }
542
+ isConstant() {
543
+ return !1;
544
+ }
545
+ visitExpression(e, t) {
546
+ return e.visitInvokeFunctionExpr(this, t);
547
+ }
548
+ clone() {
549
+ return new n(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
550
+ }
551
+ };
552
+ St = class n extends b {
553
+ classExpr;
554
+ args;
555
+ constructor(e, t, s, r) {
556
+ super(s, r), this.classExpr = e, this.args = t;
557
+ }
558
+ isEquivalent(e) {
559
+ return e instanceof n && this.classExpr.isEquivalent(e.classExpr) && ct(this.args, e.args);
560
+ }
561
+ isConstant() {
562
+ return !1;
563
+ }
564
+ visitExpression(e, t) {
565
+ return e.visitInstantiateExpr(this, t);
566
+ }
567
+ clone() {
568
+ return new n(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
569
+ }
570
+ }, rt = class n extends b {
571
+ value;
572
+ constructor(e, t, s) {
573
+ super(t, s), this.value = e;
574
+ }
575
+ isEquivalent(e) {
576
+ return e instanceof n && this.value === e.value;
577
+ }
578
+ isConstant() {
579
+ return !0;
580
+ }
581
+ visitExpression(e, t) {
582
+ return e.visitLiteralExpr(this, t);
583
+ }
584
+ clone() {
585
+ return new n(this.value, this.type, this.sourceSpan);
586
+ }
587
+ };
588
+ Et = class n extends b {
589
+ value;
590
+ typeParams;
591
+ constructor(e, t, s = null, r) {
592
+ super(t, r), this.value = e, this.typeParams = s;
593
+ }
594
+ isEquivalent(e) {
595
+ return e instanceof n && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
596
+ }
597
+ isConstant() {
598
+ return !1;
599
+ }
600
+ visitExpression(e, t) {
601
+ return e.visitExternalExpr(this, t);
602
+ }
603
+ clone() {
604
+ return new n(this.value, this.type, this.typeParams, this.sourceSpan);
605
+ }
606
+ };
607
+ yt = class n extends b {
608
+ condition;
609
+ falseCase;
610
+ trueCase;
611
+ constructor(e, t, s = null, r, i) {
612
+ super(r || t.type, i), this.condition = e, this.falseCase = s, this.trueCase = t;
613
+ }
614
+ isEquivalent(e) {
615
+ return e instanceof n && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && zs(this.falseCase, e.falseCase);
616
+ }
617
+ isConstant() {
618
+ return !1;
619
+ }
620
+ visitExpression(e, t) {
621
+ return e.visitConditionalExpr(this, t);
622
+ }
623
+ clone() {
624
+ var e;
625
+ return new n(this.condition.clone(), this.trueCase.clone(), (e = this.falseCase) == null ? void 0 : e.clone(), this.type, this.sourceSpan);
626
+ }
627
+ };
628
+ C = class n extends b {
629
+ operator;
630
+ rhs;
631
+ lhs;
632
+ constructor(e, t, s, r, i) {
633
+ super(r || t.type, i), this.operator = e, this.rhs = s, this.lhs = t;
634
+ }
635
+ isEquivalent(e) {
636
+ return e instanceof n && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
637
+ }
638
+ isConstant() {
639
+ return !1;
640
+ }
641
+ visitExpression(e, t) {
642
+ return e.visitBinaryOperatorExpr(this, t);
643
+ }
644
+ clone() {
645
+ return new n(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
646
+ }
647
+ }, _t = class n extends b {
648
+ receiver;
649
+ name;
650
+ constructor(e, t, s, r) {
651
+ super(s, r), this.receiver = e, this.name = t;
652
+ }
653
+ get index() {
654
+ return this.name;
655
+ }
656
+ isEquivalent(e) {
657
+ return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
658
+ }
659
+ isConstant() {
660
+ return !1;
661
+ }
662
+ visitExpression(e, t) {
663
+ return e.visitReadPropExpr(this, t);
664
+ }
665
+ set(e) {
666
+ return new wt(this.receiver, this.name, e, null, this.sourceSpan);
667
+ }
668
+ clone() {
669
+ return new n(this.receiver.clone(), this.name, this.type, this.sourceSpan);
670
+ }
671
+ }, Ct = class n extends b {
672
+ receiver;
673
+ index;
674
+ constructor(e, t, s, r) {
675
+ super(s, r), this.receiver = e, this.index = t;
676
+ }
677
+ isEquivalent(e) {
678
+ return e instanceof n && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
679
+ }
680
+ isConstant() {
681
+ return !1;
682
+ }
683
+ visitExpression(e, t) {
684
+ return e.visitReadKeyExpr(this, t);
685
+ }
686
+ set(e) {
687
+ return new vt(this.receiver, this.index, e, null, this.sourceSpan);
688
+ }
689
+ clone() {
690
+ return new n(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
691
+ }
692
+ }, Tt = class n extends b {
693
+ entries;
694
+ constructor(e, t, s) {
695
+ super(t, s), this.entries = e;
696
+ }
697
+ isConstant() {
698
+ return this.entries.every((e) => e.isConstant());
699
+ }
700
+ isEquivalent(e) {
701
+ return e instanceof n && ct(this.entries, e.entries);
702
+ }
703
+ visitExpression(e, t) {
704
+ return e.visitLiteralArrayExpr(this, t);
705
+ }
706
+ clone() {
707
+ return new n(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
708
+ }
709
+ };
710
+ kt = class n extends b {
711
+ entries;
712
+ valueType = null;
713
+ constructor(e, t, s) {
714
+ super(t, s), this.entries = e, t && (this.valueType = t.valueType);
715
+ }
716
+ isEquivalent(e) {
717
+ return e instanceof n && ct(this.entries, e.entries);
718
+ }
719
+ isConstant() {
720
+ return this.entries.every((e) => e.value.isConstant());
721
+ }
722
+ visitExpression(e, t) {
723
+ return e.visitLiteralMapExpr(this, t);
724
+ }
725
+ clone() {
726
+ return new n(this.entries.map((t) => t.clone()), this.type, this.sourceSpan);
727
+ }
728
+ };
729
+ (function(n) {
730
+ n[n.None = 0] = "None", n[n.Final = 1] = "Final", n[n.Private = 2] = "Private", n[n.Exported = 4] = "Exported", n[n.Static = 8] = "Static";
731
+ })(Ae || (Ae = {}));
732
+ it = class {
733
+ modifiers;
734
+ sourceSpan;
735
+ leadingComments;
736
+ constructor(e = Ae.None, t = null, s) {
737
+ this.modifiers = e, this.sourceSpan = t, this.leadingComments = s;
738
+ }
739
+ hasModifier(e) {
740
+ return (this.modifiers & e) !== 0;
741
+ }
742
+ addLeadingComment(e) {
743
+ this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
744
+ }
745
+ }, bt = class n extends it {
746
+ name;
747
+ value;
748
+ type;
749
+ constructor(e, t, s, r, i, a) {
750
+ super(r, i, a), this.name = e, this.value = t, this.type = s || t && t.type || null;
751
+ }
752
+ isEquivalent(e) {
753
+ return e instanceof n && this.name === e.name && (this.value ? !!e.value && this.value.isEquivalent(e.value) : !e.value);
754
+ }
755
+ visitStatement(e, t) {
756
+ return e.visitDeclareVarStmt(this, t);
757
+ }
758
+ };
759
+ It = class n extends it {
760
+ expr;
761
+ constructor(e, t, s) {
762
+ super(Ae.None, t, s), this.expr = e;
763
+ }
764
+ isEquivalent(e) {
765
+ return e instanceof n && this.expr.isEquivalent(e.expr);
766
+ }
767
+ visitStatement(e, t) {
768
+ return e.visitExpressionStmt(this, t);
769
+ }
770
+ };
771
+ Xs("<unknown>");
772
+ (class n {
773
+ static INSTANCE = new n();
774
+ keyOf(e) {
775
+ if (e instanceof rt && typeof e.value == "string") return `"${e.value}"`;
776
+ if (e instanceof rt) return String(e.value);
777
+ if (e instanceof Tt) {
778
+ let t = [];
779
+ for (let s of e.entries) t.push(this.keyOf(s));
780
+ return `[${t.join(",")}]`;
781
+ } else if (e instanceof kt) {
782
+ let t = [];
783
+ for (let s of e.entries) {
784
+ let r = s.key;
785
+ s.quoted && (r = `"${r}"`), t.push(r + ":" + this.keyOf(s.value));
786
+ }
787
+ return `{${t.join(",")}}`;
788
+ } else {
789
+ if (e instanceof Et) return `import("${e.value.moduleName}", ${e.value.name})`;
790
+ if (e instanceof st) return `read(${e.name})`;
791
+ if (e instanceof mt) return `typeof(${this.keyOf(e.expr)})`;
792
+ throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
793
+ }
794
+ }
795
+ });
796
+ o = "@angular/core", p = class {
797
+ static NEW_METHOD = "factory";
798
+ static TRANSFORM_METHOD = "transform";
799
+ static PATCH_DEPS = "patchedDeps";
800
+ static core = {
801
+ name: null,
802
+ moduleName: o
803
+ };
804
+ static namespaceHTML = {
805
+ name: "ɵɵnamespaceHTML",
806
+ moduleName: o
807
+ };
808
+ static namespaceMathML = {
809
+ name: "ɵɵnamespaceMathML",
810
+ moduleName: o
811
+ };
812
+ static namespaceSVG = {
813
+ name: "ɵɵnamespaceSVG",
814
+ moduleName: o
815
+ };
816
+ static element = {
817
+ name: "ɵɵelement",
818
+ moduleName: o
819
+ };
820
+ static elementStart = {
821
+ name: "ɵɵelementStart",
822
+ moduleName: o
823
+ };
824
+ static elementEnd = {
825
+ name: "ɵɵelementEnd",
826
+ moduleName: o
827
+ };
828
+ static advance = {
829
+ name: "ɵɵadvance",
830
+ moduleName: o
831
+ };
832
+ static syntheticHostProperty = {
833
+ name: "ɵɵsyntheticHostProperty",
834
+ moduleName: o
835
+ };
836
+ static syntheticHostListener = {
837
+ name: "ɵɵsyntheticHostListener",
838
+ moduleName: o
839
+ };
840
+ static attribute = {
841
+ name: "ɵɵattribute",
842
+ moduleName: o
843
+ };
844
+ static classProp = {
845
+ name: "ɵɵclassProp",
846
+ moduleName: o
847
+ };
848
+ static elementContainerStart = {
849
+ name: "ɵɵelementContainerStart",
850
+ moduleName: o
851
+ };
852
+ static elementContainerEnd = {
853
+ name: "ɵɵelementContainerEnd",
854
+ moduleName: o
855
+ };
856
+ static elementContainer = {
857
+ name: "ɵɵelementContainer",
858
+ moduleName: o
859
+ };
860
+ static styleMap = {
861
+ name: "ɵɵstyleMap",
862
+ moduleName: o
863
+ };
864
+ static classMap = {
865
+ name: "ɵɵclassMap",
866
+ moduleName: o
867
+ };
868
+ static styleProp = {
869
+ name: "ɵɵstyleProp",
870
+ moduleName: o
871
+ };
872
+ static interpolate = {
873
+ name: "ɵɵinterpolate",
874
+ moduleName: o
875
+ };
876
+ static interpolate1 = {
877
+ name: "ɵɵinterpolate1",
878
+ moduleName: o
879
+ };
880
+ static interpolate2 = {
881
+ name: "ɵɵinterpolate2",
882
+ moduleName: o
883
+ };
884
+ static interpolate3 = {
885
+ name: "ɵɵinterpolate3",
886
+ moduleName: o
887
+ };
888
+ static interpolate4 = {
889
+ name: "ɵɵinterpolate4",
890
+ moduleName: o
891
+ };
892
+ static interpolate5 = {
893
+ name: "ɵɵinterpolate5",
894
+ moduleName: o
895
+ };
896
+ static interpolate6 = {
897
+ name: "ɵɵinterpolate6",
898
+ moduleName: o
899
+ };
900
+ static interpolate7 = {
901
+ name: "ɵɵinterpolate7",
902
+ moduleName: o
903
+ };
904
+ static interpolate8 = {
905
+ name: "ɵɵinterpolate8",
906
+ moduleName: o
907
+ };
908
+ static interpolateV = {
909
+ name: "ɵɵinterpolateV",
910
+ moduleName: o
911
+ };
912
+ static nextContext = {
913
+ name: "ɵɵnextContext",
914
+ moduleName: o
915
+ };
916
+ static resetView = {
917
+ name: "ɵɵresetView",
918
+ moduleName: o
919
+ };
920
+ static templateCreate = {
921
+ name: "ɵɵtemplate",
922
+ moduleName: o
923
+ };
924
+ static defer = {
925
+ name: "ɵɵdefer",
926
+ moduleName: o
927
+ };
928
+ static deferWhen = {
929
+ name: "ɵɵdeferWhen",
930
+ moduleName: o
931
+ };
932
+ static deferOnIdle = {
933
+ name: "ɵɵdeferOnIdle",
934
+ moduleName: o
935
+ };
936
+ static deferOnImmediate = {
937
+ name: "ɵɵdeferOnImmediate",
938
+ moduleName: o
939
+ };
940
+ static deferOnTimer = {
941
+ name: "ɵɵdeferOnTimer",
942
+ moduleName: o
943
+ };
944
+ static deferOnHover = {
945
+ name: "ɵɵdeferOnHover",
946
+ moduleName: o
947
+ };
948
+ static deferOnInteraction = {
949
+ name: "ɵɵdeferOnInteraction",
950
+ moduleName: o
951
+ };
952
+ static deferOnViewport = {
953
+ name: "ɵɵdeferOnViewport",
954
+ moduleName: o
955
+ };
956
+ static deferPrefetchWhen = {
957
+ name: "ɵɵdeferPrefetchWhen",
958
+ moduleName: o
959
+ };
960
+ static deferPrefetchOnIdle = {
961
+ name: "ɵɵdeferPrefetchOnIdle",
962
+ moduleName: o
963
+ };
964
+ static deferPrefetchOnImmediate = {
965
+ name: "ɵɵdeferPrefetchOnImmediate",
966
+ moduleName: o
967
+ };
968
+ static deferPrefetchOnTimer = {
969
+ name: "ɵɵdeferPrefetchOnTimer",
970
+ moduleName: o
971
+ };
972
+ static deferPrefetchOnHover = {
973
+ name: "ɵɵdeferPrefetchOnHover",
974
+ moduleName: o
975
+ };
976
+ static deferPrefetchOnInteraction = {
977
+ name: "ɵɵdeferPrefetchOnInteraction",
978
+ moduleName: o
979
+ };
980
+ static deferPrefetchOnViewport = {
981
+ name: "ɵɵdeferPrefetchOnViewport",
982
+ moduleName: o
983
+ };
984
+ static deferHydrateWhen = {
985
+ name: "ɵɵdeferHydrateWhen",
986
+ moduleName: o
987
+ };
988
+ static deferHydrateNever = {
989
+ name: "ɵɵdeferHydrateNever",
990
+ moduleName: o
991
+ };
992
+ static deferHydrateOnIdle = {
993
+ name: "ɵɵdeferHydrateOnIdle",
994
+ moduleName: o
995
+ };
996
+ static deferHydrateOnImmediate = {
997
+ name: "ɵɵdeferHydrateOnImmediate",
998
+ moduleName: o
999
+ };
1000
+ static deferHydrateOnTimer = {
1001
+ name: "ɵɵdeferHydrateOnTimer",
1002
+ moduleName: o
1003
+ };
1004
+ static deferHydrateOnHover = {
1005
+ name: "ɵɵdeferHydrateOnHover",
1006
+ moduleName: o
1007
+ };
1008
+ static deferHydrateOnInteraction = {
1009
+ name: "ɵɵdeferHydrateOnInteraction",
1010
+ moduleName: o
1011
+ };
1012
+ static deferHydrateOnViewport = {
1013
+ name: "ɵɵdeferHydrateOnViewport",
1014
+ moduleName: o
1015
+ };
1016
+ static deferEnableTimerScheduling = {
1017
+ name: "ɵɵdeferEnableTimerScheduling",
1018
+ moduleName: o
1019
+ };
1020
+ static conditionalCreate = {
1021
+ name: "ɵɵconditionalCreate",
1022
+ moduleName: o
1023
+ };
1024
+ static conditionalBranchCreate = {
1025
+ name: "ɵɵconditionalBranchCreate",
1026
+ moduleName: o
1027
+ };
1028
+ static conditional = {
1029
+ name: "ɵɵconditional",
1030
+ moduleName: o
1031
+ };
1032
+ static repeater = {
1033
+ name: "ɵɵrepeater",
1034
+ moduleName: o
1035
+ };
1036
+ static repeaterCreate = {
1037
+ name: "ɵɵrepeaterCreate",
1038
+ moduleName: o
1039
+ };
1040
+ static repeaterTrackByIndex = {
1041
+ name: "ɵɵrepeaterTrackByIndex",
1042
+ moduleName: o
1043
+ };
1044
+ static repeaterTrackByIdentity = {
1045
+ name: "ɵɵrepeaterTrackByIdentity",
1046
+ moduleName: o
1047
+ };
1048
+ static componentInstance = {
1049
+ name: "ɵɵcomponentInstance",
1050
+ moduleName: o
1051
+ };
1052
+ static text = {
1053
+ name: "ɵɵtext",
1054
+ moduleName: o
1055
+ };
1056
+ static enableBindings = {
1057
+ name: "ɵɵenableBindings",
1058
+ moduleName: o
1059
+ };
1060
+ static disableBindings = {
1061
+ name: "ɵɵdisableBindings",
1062
+ moduleName: o
1063
+ };
1064
+ static getCurrentView = {
1065
+ name: "ɵɵgetCurrentView",
1066
+ moduleName: o
1067
+ };
1068
+ static textInterpolate = {
1069
+ name: "ɵɵtextInterpolate",
1070
+ moduleName: o
1071
+ };
1072
+ static textInterpolate1 = {
1073
+ name: "ɵɵtextInterpolate1",
1074
+ moduleName: o
1075
+ };
1076
+ static textInterpolate2 = {
1077
+ name: "ɵɵtextInterpolate2",
1078
+ moduleName: o
1079
+ };
1080
+ static textInterpolate3 = {
1081
+ name: "ɵɵtextInterpolate3",
1082
+ moduleName: o
1083
+ };
1084
+ static textInterpolate4 = {
1085
+ name: "ɵɵtextInterpolate4",
1086
+ moduleName: o
1087
+ };
1088
+ static textInterpolate5 = {
1089
+ name: "ɵɵtextInterpolate5",
1090
+ moduleName: o
1091
+ };
1092
+ static textInterpolate6 = {
1093
+ name: "ɵɵtextInterpolate6",
1094
+ moduleName: o
1095
+ };
1096
+ static textInterpolate7 = {
1097
+ name: "ɵɵtextInterpolate7",
1098
+ moduleName: o
1099
+ };
1100
+ static textInterpolate8 = {
1101
+ name: "ɵɵtextInterpolate8",
1102
+ moduleName: o
1103
+ };
1104
+ static textInterpolateV = {
1105
+ name: "ɵɵtextInterpolateV",
1106
+ moduleName: o
1107
+ };
1108
+ static restoreView = {
1109
+ name: "ɵɵrestoreView",
1110
+ moduleName: o
1111
+ };
1112
+ static pureFunction0 = {
1113
+ name: "ɵɵpureFunction0",
1114
+ moduleName: o
1115
+ };
1116
+ static pureFunction1 = {
1117
+ name: "ɵɵpureFunction1",
1118
+ moduleName: o
1119
+ };
1120
+ static pureFunction2 = {
1121
+ name: "ɵɵpureFunction2",
1122
+ moduleName: o
1123
+ };
1124
+ static pureFunction3 = {
1125
+ name: "ɵɵpureFunction3",
1126
+ moduleName: o
1127
+ };
1128
+ static pureFunction4 = {
1129
+ name: "ɵɵpureFunction4",
1130
+ moduleName: o
1131
+ };
1132
+ static pureFunction5 = {
1133
+ name: "ɵɵpureFunction5",
1134
+ moduleName: o
1135
+ };
1136
+ static pureFunction6 = {
1137
+ name: "ɵɵpureFunction6",
1138
+ moduleName: o
1139
+ };
1140
+ static pureFunction7 = {
1141
+ name: "ɵɵpureFunction7",
1142
+ moduleName: o
1143
+ };
1144
+ static pureFunction8 = {
1145
+ name: "ɵɵpureFunction8",
1146
+ moduleName: o
1147
+ };
1148
+ static pureFunctionV = {
1149
+ name: "ɵɵpureFunctionV",
1150
+ moduleName: o
1151
+ };
1152
+ static pipeBind1 = {
1153
+ name: "ɵɵpipeBind1",
1154
+ moduleName: o
1155
+ };
1156
+ static pipeBind2 = {
1157
+ name: "ɵɵpipeBind2",
1158
+ moduleName: o
1159
+ };
1160
+ static pipeBind3 = {
1161
+ name: "ɵɵpipeBind3",
1162
+ moduleName: o
1163
+ };
1164
+ static pipeBind4 = {
1165
+ name: "ɵɵpipeBind4",
1166
+ moduleName: o
1167
+ };
1168
+ static pipeBindV = {
1169
+ name: "ɵɵpipeBindV",
1170
+ moduleName: o
1171
+ };
1172
+ static domProperty = {
1173
+ name: "ɵɵdomProperty",
1174
+ moduleName: o
1175
+ };
1176
+ static property = {
1177
+ name: "ɵɵproperty",
1178
+ moduleName: o
1179
+ };
1180
+ static i18n = {
1181
+ name: "ɵɵi18n",
1182
+ moduleName: o
1183
+ };
1184
+ static i18nAttributes = {
1185
+ name: "ɵɵi18nAttributes",
1186
+ moduleName: o
1187
+ };
1188
+ static i18nExp = {
1189
+ name: "ɵɵi18nExp",
1190
+ moduleName: o
1191
+ };
1192
+ static i18nStart = {
1193
+ name: "ɵɵi18nStart",
1194
+ moduleName: o
1195
+ };
1196
+ static i18nEnd = {
1197
+ name: "ɵɵi18nEnd",
1198
+ moduleName: o
1199
+ };
1200
+ static i18nApply = {
1201
+ name: "ɵɵi18nApply",
1202
+ moduleName: o
1203
+ };
1204
+ static i18nPostprocess = {
1205
+ name: "ɵɵi18nPostprocess",
1206
+ moduleName: o
1207
+ };
1208
+ static pipe = {
1209
+ name: "ɵɵpipe",
1210
+ moduleName: o
1211
+ };
1212
+ static projection = {
1213
+ name: "ɵɵprojection",
1214
+ moduleName: o
1215
+ };
1216
+ static projectionDef = {
1217
+ name: "ɵɵprojectionDef",
1218
+ moduleName: o
1219
+ };
1220
+ static reference = {
1221
+ name: "ɵɵreference",
1222
+ moduleName: o
1223
+ };
1224
+ static inject = {
1225
+ name: "ɵɵinject",
1226
+ moduleName: o
1227
+ };
1228
+ static injectAttribute = {
1229
+ name: "ɵɵinjectAttribute",
1230
+ moduleName: o
1231
+ };
1232
+ static directiveInject = {
1233
+ name: "ɵɵdirectiveInject",
1234
+ moduleName: o
1235
+ };
1236
+ static invalidFactory = {
1237
+ name: "ɵɵinvalidFactory",
1238
+ moduleName: o
1239
+ };
1240
+ static invalidFactoryDep = {
1241
+ name: "ɵɵinvalidFactoryDep",
1242
+ moduleName: o
1243
+ };
1244
+ static templateRefExtractor = {
1245
+ name: "ɵɵtemplateRefExtractor",
1246
+ moduleName: o
1247
+ };
1248
+ static forwardRef = {
1249
+ name: "forwardRef",
1250
+ moduleName: o
1251
+ };
1252
+ static resolveForwardRef = {
1253
+ name: "resolveForwardRef",
1254
+ moduleName: o
1255
+ };
1256
+ static replaceMetadata = {
1257
+ name: "ɵɵreplaceMetadata",
1258
+ moduleName: o
1259
+ };
1260
+ static getReplaceMetadataURL = {
1261
+ name: "ɵɵgetReplaceMetadataURL",
1262
+ moduleName: o
1263
+ };
1264
+ static ɵɵdefineInjectable = {
1265
+ name: "ɵɵdefineInjectable",
1266
+ moduleName: o
1267
+ };
1268
+ static declareInjectable = {
1269
+ name: "ɵɵngDeclareInjectable",
1270
+ moduleName: o
1271
+ };
1272
+ static InjectableDeclaration = {
1273
+ name: "ɵɵInjectableDeclaration",
1274
+ moduleName: o
1275
+ };
1276
+ static resolveWindow = {
1277
+ name: "ɵɵresolveWindow",
1278
+ moduleName: o
1279
+ };
1280
+ static resolveDocument = {
1281
+ name: "ɵɵresolveDocument",
1282
+ moduleName: o
1283
+ };
1284
+ static resolveBody = {
1285
+ name: "ɵɵresolveBody",
1286
+ moduleName: o
1287
+ };
1288
+ static getComponentDepsFactory = {
1289
+ name: "ɵɵgetComponentDepsFactory",
1290
+ moduleName: o
1291
+ };
1292
+ static defineComponent = {
1293
+ name: "ɵɵdefineComponent",
1294
+ moduleName: o
1295
+ };
1296
+ static declareComponent = {
1297
+ name: "ɵɵngDeclareComponent",
1298
+ moduleName: o
1299
+ };
1300
+ static setComponentScope = {
1301
+ name: "ɵɵsetComponentScope",
1302
+ moduleName: o
1303
+ };
1304
+ static ChangeDetectionStrategy = {
1305
+ name: "ChangeDetectionStrategy",
1306
+ moduleName: o
1307
+ };
1308
+ static ViewEncapsulation = {
1309
+ name: "ViewEncapsulation",
1310
+ moduleName: o
1311
+ };
1312
+ static ComponentDeclaration = {
1313
+ name: "ɵɵComponentDeclaration",
1314
+ moduleName: o
1315
+ };
1316
+ static FactoryDeclaration = {
1317
+ name: "ɵɵFactoryDeclaration",
1318
+ moduleName: o
1319
+ };
1320
+ static declareFactory = {
1321
+ name: "ɵɵngDeclareFactory",
1322
+ moduleName: o
1323
+ };
1324
+ static FactoryTarget = {
1325
+ name: "ɵɵFactoryTarget",
1326
+ moduleName: o
1327
+ };
1328
+ static defineDirective = {
1329
+ name: "ɵɵdefineDirective",
1330
+ moduleName: o
1331
+ };
1332
+ static declareDirective = {
1333
+ name: "ɵɵngDeclareDirective",
1334
+ moduleName: o
1335
+ };
1336
+ static DirectiveDeclaration = {
1337
+ name: "ɵɵDirectiveDeclaration",
1338
+ moduleName: o
1339
+ };
1340
+ static InjectorDef = {
1341
+ name: "ɵɵInjectorDef",
1342
+ moduleName: o
1343
+ };
1344
+ static InjectorDeclaration = {
1345
+ name: "ɵɵInjectorDeclaration",
1346
+ moduleName: o
1347
+ };
1348
+ static defineInjector = {
1349
+ name: "ɵɵdefineInjector",
1350
+ moduleName: o
1351
+ };
1352
+ static declareInjector = {
1353
+ name: "ɵɵngDeclareInjector",
1354
+ moduleName: o
1355
+ };
1356
+ static NgModuleDeclaration = {
1357
+ name: "ɵɵNgModuleDeclaration",
1358
+ moduleName: o
1359
+ };
1360
+ static ModuleWithProviders = {
1361
+ name: "ModuleWithProviders",
1362
+ moduleName: o
1363
+ };
1364
+ static defineNgModule = {
1365
+ name: "ɵɵdefineNgModule",
1366
+ moduleName: o
1367
+ };
1368
+ static declareNgModule = {
1369
+ name: "ɵɵngDeclareNgModule",
1370
+ moduleName: o
1371
+ };
1372
+ static setNgModuleScope = {
1373
+ name: "ɵɵsetNgModuleScope",
1374
+ moduleName: o
1375
+ };
1376
+ static registerNgModuleType = {
1377
+ name: "ɵɵregisterNgModuleType",
1378
+ moduleName: o
1379
+ };
1380
+ static PipeDeclaration = {
1381
+ name: "ɵɵPipeDeclaration",
1382
+ moduleName: o
1383
+ };
1384
+ static definePipe = {
1385
+ name: "ɵɵdefinePipe",
1386
+ moduleName: o
1387
+ };
1388
+ static declarePipe = {
1389
+ name: "ɵɵngDeclarePipe",
1390
+ moduleName: o
1391
+ };
1392
+ static declareClassMetadata = {
1393
+ name: "ɵɵngDeclareClassMetadata",
1394
+ moduleName: o
1395
+ };
1396
+ static declareClassMetadataAsync = {
1397
+ name: "ɵɵngDeclareClassMetadataAsync",
1398
+ moduleName: o
1399
+ };
1400
+ static setClassMetadata = {
1401
+ name: "ɵsetClassMetadata",
1402
+ moduleName: o
1403
+ };
1404
+ static setClassMetadataAsync = {
1405
+ name: "ɵsetClassMetadataAsync",
1406
+ moduleName: o
1407
+ };
1408
+ static setClassDebugInfo = {
1409
+ name: "ɵsetClassDebugInfo",
1410
+ moduleName: o
1411
+ };
1412
+ static queryRefresh = {
1413
+ name: "ɵɵqueryRefresh",
1414
+ moduleName: o
1415
+ };
1416
+ static viewQuery = {
1417
+ name: "ɵɵviewQuery",
1418
+ moduleName: o
1419
+ };
1420
+ static loadQuery = {
1421
+ name: "ɵɵloadQuery",
1422
+ moduleName: o
1423
+ };
1424
+ static contentQuery = {
1425
+ name: "ɵɵcontentQuery",
1426
+ moduleName: o
1427
+ };
1428
+ static viewQuerySignal = {
1429
+ name: "ɵɵviewQuerySignal",
1430
+ moduleName: o
1431
+ };
1432
+ static contentQuerySignal = {
1433
+ name: "ɵɵcontentQuerySignal",
1434
+ moduleName: o
1435
+ };
1436
+ static queryAdvance = {
1437
+ name: "ɵɵqueryAdvance",
1438
+ moduleName: o
1439
+ };
1440
+ static twoWayProperty = {
1441
+ name: "ɵɵtwoWayProperty",
1442
+ moduleName: o
1443
+ };
1444
+ static twoWayBindingSet = {
1445
+ name: "ɵɵtwoWayBindingSet",
1446
+ moduleName: o
1447
+ };
1448
+ static twoWayListener = {
1449
+ name: "ɵɵtwoWayListener",
1450
+ moduleName: o
1451
+ };
1452
+ static declareLet = {
1453
+ name: "ɵɵdeclareLet",
1454
+ moduleName: o
1455
+ };
1456
+ static storeLet = {
1457
+ name: "ɵɵstoreLet",
1458
+ moduleName: o
1459
+ };
1460
+ static readContextLet = {
1461
+ name: "ɵɵreadContextLet",
1462
+ moduleName: o
1463
+ };
1464
+ static attachSourceLocations = {
1465
+ name: "ɵɵattachSourceLocations",
1466
+ moduleName: o
1467
+ };
1468
+ static NgOnChangesFeature = {
1469
+ name: "ɵɵNgOnChangesFeature",
1470
+ moduleName: o
1471
+ };
1472
+ static InheritDefinitionFeature = {
1473
+ name: "ɵɵInheritDefinitionFeature",
1474
+ moduleName: o
1475
+ };
1476
+ static CopyDefinitionFeature = {
1477
+ name: "ɵɵCopyDefinitionFeature",
1478
+ moduleName: o
1479
+ };
1480
+ static ProvidersFeature = {
1481
+ name: "ɵɵProvidersFeature",
1482
+ moduleName: o
1483
+ };
1484
+ static HostDirectivesFeature = {
1485
+ name: "ɵɵHostDirectivesFeature",
1486
+ moduleName: o
1487
+ };
1488
+ static ExternalStylesFeature = {
1489
+ name: "ɵɵExternalStylesFeature",
1490
+ moduleName: o
1491
+ };
1492
+ static listener = {
1493
+ name: "ɵɵlistener",
1494
+ moduleName: o
1495
+ };
1496
+ static getInheritedFactory = {
1497
+ name: "ɵɵgetInheritedFactory",
1498
+ moduleName: o
1499
+ };
1500
+ static sanitizeHtml = {
1501
+ name: "ɵɵsanitizeHtml",
1502
+ moduleName: o
1503
+ };
1504
+ static sanitizeStyle = {
1505
+ name: "ɵɵsanitizeStyle",
1506
+ moduleName: o
1507
+ };
1508
+ static sanitizeResourceUrl = {
1509
+ name: "ɵɵsanitizeResourceUrl",
1510
+ moduleName: o
1511
+ };
1512
+ static sanitizeScript = {
1513
+ name: "ɵɵsanitizeScript",
1514
+ moduleName: o
1515
+ };
1516
+ static sanitizeUrl = {
1517
+ name: "ɵɵsanitizeUrl",
1518
+ moduleName: o
1519
+ };
1520
+ static sanitizeUrlOrResourceUrl = {
1521
+ name: "ɵɵsanitizeUrlOrResourceUrl",
1522
+ moduleName: o
1523
+ };
1524
+ static trustConstantHtml = {
1525
+ name: "ɵɵtrustConstantHtml",
1526
+ moduleName: o
1527
+ };
1528
+ static trustConstantResourceUrl = {
1529
+ name: "ɵɵtrustConstantResourceUrl",
1530
+ moduleName: o
1531
+ };
1532
+ static validateIframeAttribute = {
1533
+ name: "ɵɵvalidateIframeAttribute",
1534
+ moduleName: o
1535
+ };
1536
+ static InputSignalBrandWriteType = {
1537
+ name: "ɵINPUT_SIGNAL_BRAND_WRITE_TYPE",
1538
+ moduleName: o
1539
+ };
1540
+ static UnwrapDirectiveSignalInputs = {
1541
+ name: "ɵUnwrapDirectiveSignalInputs",
1542
+ moduleName: o
1543
+ };
1544
+ static unwrapWritableSignal = {
1545
+ name: "ɵunwrapWritableSignal",
1546
+ moduleName: o
1547
+ };
1548
+ };
1549
+ Nt = class {
1550
+ full;
1551
+ major;
1552
+ minor;
1553
+ patch;
1554
+ constructor(e) {
1555
+ this.full = e;
1556
+ let t = e.split(".");
1557
+ this.major = t[0], this.minor = t[1], this.patch = t.slice(2).join(".");
1558
+ }
1559
+ };
1560
+ (function(n) {
1561
+ n[n.Class = 0] = "Class", n[n.Function = 1] = "Function";
1562
+ })(gn || (gn = {}));
1563
+ Pe = class {
1564
+ input;
1565
+ errLocation;
1566
+ ctxLocation;
1567
+ message;
1568
+ constructor(e, t, s, r) {
1569
+ this.input = t, this.errLocation = s, this.ctxLocation = r, this.message = `Parser Error: ${e} ${s} [${t}] in ${r}`;
1570
+ }
1571
+ }, J = class {
1572
+ start;
1573
+ end;
1574
+ constructor(e, t) {
1575
+ this.start = e, this.end = t;
1576
+ }
1577
+ toAbsolute(e) {
1578
+ return new O(e + this.start, e + this.end);
1579
+ }
1580
+ }, S = class {
1581
+ span;
1582
+ sourceSpan;
1583
+ constructor(e, t) {
1584
+ this.span = e, this.sourceSpan = t;
1585
+ }
1586
+ toString() {
1587
+ return "AST";
1588
+ }
1589
+ }, ae = class extends S {
1590
+ nameSpan;
1591
+ constructor(e, t, s) {
1592
+ super(e, t), this.nameSpan = s;
1593
+ }
1594
+ }, P = class extends S {
1595
+ visit(e, t = null) {}
1596
+ }, Y = class extends S {
1597
+ visit(e, t = null) {
1598
+ return e.visitImplicitReceiver(this, t);
1599
+ }
1600
+ }, At = class extends Y {
1601
+ visit(e, t = null) {
1602
+ var s;
1603
+ return (s = e.visitThisReceiver) == null ? void 0 : s.call(e, this, t);
1604
+ }
1605
+ }, Le = class extends S {
1606
+ expressions;
1607
+ constructor(e, t, s) {
1608
+ super(e, t), this.expressions = s;
1609
+ }
1610
+ visit(e, t = null) {
1611
+ return e.visitChain(this, t);
1612
+ }
1613
+ }, Me = class extends S {
1614
+ condition;
1615
+ trueExp;
1616
+ falseExp;
1617
+ constructor(e, t, s, r, i) {
1618
+ super(e, t), this.condition = s, this.trueExp = r, this.falseExp = i;
1619
+ }
1620
+ visit(e, t = null) {
1621
+ return e.visitConditional(this, t);
1622
+ }
1623
+ }, le = class extends ae {
1624
+ receiver;
1625
+ name;
1626
+ constructor(e, t, s, r, i) {
1627
+ super(e, t, s), this.receiver = r, this.name = i;
1628
+ }
1629
+ visit(e, t = null) {
1630
+ return e.visitPropertyRead(this, t);
1631
+ }
1632
+ }, $e = class extends ae {
1633
+ receiver;
1634
+ name;
1635
+ value;
1636
+ constructor(e, t, s, r, i, a) {
1637
+ super(e, t, s), this.receiver = r, this.name = i, this.value = a;
1638
+ }
1639
+ visit(e, t = null) {
1640
+ return e.visitPropertyWrite(this, t);
1641
+ }
1642
+ }, ce = class extends ae {
1643
+ receiver;
1644
+ name;
1645
+ constructor(e, t, s, r, i) {
1646
+ super(e, t, s), this.receiver = r, this.name = i;
1647
+ }
1648
+ visit(e, t = null) {
1649
+ return e.visitSafePropertyRead(this, t);
1650
+ }
1651
+ }, Re = class extends S {
1652
+ receiver;
1653
+ key;
1654
+ constructor(e, t, s, r) {
1655
+ super(e, t), this.receiver = s, this.key = r;
1656
+ }
1657
+ visit(e, t = null) {
1658
+ return e.visitKeyedRead(this, t);
1659
+ }
1660
+ }, ue = class extends S {
1661
+ receiver;
1662
+ key;
1663
+ constructor(e, t, s, r) {
1664
+ super(e, t), this.receiver = s, this.key = r;
1665
+ }
1666
+ visit(e, t = null) {
1667
+ return e.visitSafeKeyedRead(this, t);
1668
+ }
1669
+ }, De = class extends S {
1670
+ receiver;
1671
+ key;
1672
+ value;
1673
+ constructor(e, t, s, r, i) {
1674
+ super(e, t), this.receiver = s, this.key = r, this.value = i;
1675
+ }
1676
+ visit(e, t = null) {
1677
+ return e.visitKeyedWrite(this, t);
1678
+ }
1679
+ }, Be = class extends ae {
1680
+ exp;
1681
+ name;
1682
+ args;
1683
+ constructor(e, t, s, r, i, a) {
1684
+ super(e, t, a), this.exp = s, this.name = r, this.args = i;
1685
+ }
1686
+ visit(e, t = null) {
1687
+ return e.visitPipe(this, t);
1688
+ }
1689
+ }, I = class extends S {
1690
+ value;
1691
+ constructor(e, t, s) {
1692
+ super(e, t), this.value = s;
1693
+ }
1694
+ visit(e, t = null) {
1695
+ return e.visitLiteralPrimitive(this, t);
1696
+ }
1697
+ }, Oe = class extends S {
1698
+ expressions;
1699
+ constructor(e, t, s) {
1700
+ super(e, t), this.expressions = s;
1701
+ }
1702
+ visit(e, t = null) {
1703
+ return e.visitLiteralArray(this, t);
1704
+ }
1705
+ }, Fe = class extends S {
1706
+ keys;
1707
+ values;
1708
+ constructor(e, t, s, r) {
1709
+ super(e, t), this.keys = s, this.values = r;
1710
+ }
1711
+ visit(e, t = null) {
1712
+ return e.visitLiteralMap(this, t);
1713
+ }
1714
+ }, Vt = class extends S {
1715
+ strings;
1716
+ expressions;
1717
+ constructor(e, t, s, r) {
1718
+ super(e, t), this.strings = s, this.expressions = r;
1719
+ }
1720
+ visit(e, t = null) {
1721
+ return e.visitInterpolation(this, t);
1722
+ }
1723
+ }, A = class extends S {
1724
+ operation;
1725
+ left;
1726
+ right;
1727
+ constructor(e, t, s, r, i) {
1728
+ super(e, t), this.operation = s, this.left = r, this.right = i;
1729
+ }
1730
+ visit(e, t = null) {
1731
+ return e.visitBinary(this, t);
1732
+ }
1733
+ }, X = class n extends A {
1734
+ operator;
1735
+ expr;
1736
+ left = null;
1737
+ right = null;
1738
+ operation = null;
1739
+ static createMinus(e, t, s) {
1740
+ return new n(e, t, "-", s, "-", new I(e, t, 0), s);
1741
+ }
1742
+ static createPlus(e, t, s) {
1743
+ return new n(e, t, "+", s, "-", s, new I(e, t, 0));
1744
+ }
1745
+ constructor(e, t, s, r, i, a, l) {
1746
+ super(e, t, i, a, l), this.operator = s, this.expr = r;
1747
+ }
1748
+ visit(e, t = null) {
1749
+ return e.visitUnary !== void 0 ? e.visitUnary(this, t) : e.visitBinary(this, t);
1750
+ }
1751
+ }, Q = class extends S {
1752
+ expression;
1753
+ constructor(e, t, s) {
1754
+ super(e, t), this.expression = s;
1755
+ }
1756
+ visit(e, t = null) {
1757
+ return e.visitPrefixNot(this, t);
1758
+ }
1759
+ }, K = class extends S {
1760
+ expression;
1761
+ constructor(e, t, s) {
1762
+ super(e, t), this.expression = s;
1763
+ }
1764
+ visit(e, t = null) {
1765
+ return e.visitTypeofExpression(this, t);
1766
+ }
1767
+ }, Z = class extends S {
1768
+ expression;
1769
+ constructor(e, t, s) {
1770
+ super(e, t), this.expression = s;
1771
+ }
1772
+ visit(e, t = null) {
1773
+ return e.visitVoidExpression(this, t);
1774
+ }
1775
+ }, Ve = class extends S {
1776
+ expression;
1777
+ constructor(e, t, s) {
1778
+ super(e, t), this.expression = s;
1779
+ }
1780
+ visit(e, t = null) {
1781
+ return e.visitNonNullAssert(this, t);
1782
+ }
1783
+ }, Ue = class extends S {
1784
+ receiver;
1785
+ args;
1786
+ argumentSpan;
1787
+ constructor(e, t, s, r, i) {
1788
+ super(e, t), this.receiver = s, this.args = r, this.argumentSpan = i;
1789
+ }
1790
+ visit(e, t = null) {
1791
+ return e.visitCall(this, t);
1792
+ }
1793
+ }, pe = class extends S {
1794
+ receiver;
1795
+ args;
1796
+ argumentSpan;
1797
+ constructor(e, t, s, r, i) {
1798
+ super(e, t), this.receiver = s, this.args = r, this.argumentSpan = i;
1799
+ }
1800
+ visit(e, t = null) {
1801
+ return e.visitSafeCall(this, t);
1802
+ }
1803
+ }, he = class extends S {
1804
+ tag;
1805
+ template;
1806
+ constructor(e, t, s, r) {
1807
+ super(e, t), this.tag = s, this.template = r;
1808
+ }
1809
+ visit(e, t) {
1810
+ return e.visitTaggedTemplateLiteral(this, t);
1811
+ }
1812
+ }, fe = class extends S {
1813
+ elements;
1814
+ expressions;
1815
+ constructor(e, t, s, r) {
1816
+ super(e, t), this.elements = s, this.expressions = r;
1817
+ }
1818
+ visit(e, t) {
1819
+ return e.visitTemplateLiteral(this, t);
1820
+ }
1821
+ }, de = class extends S {
1822
+ text;
1823
+ constructor(e, t, s) {
1824
+ super(e, t), this.text = s;
1825
+ }
1826
+ visit(e, t) {
1827
+ return e.visitTemplateLiteralElement(this, t);
1828
+ }
1829
+ }, He = class extends S {
1830
+ expression;
1831
+ constructor(e, t, s) {
1832
+ super(e, t), this.expression = s;
1833
+ }
1834
+ visit(e, t) {
1835
+ return e.visitParenthesizedExpression(this, t);
1836
+ }
1837
+ }, O = class {
1838
+ start;
1839
+ end;
1840
+ constructor(e, t) {
1841
+ this.start = e, this.end = t;
1842
+ }
1843
+ }, W = class extends S {
1844
+ ast;
1845
+ source;
1846
+ location;
1847
+ errors;
1848
+ constructor(e, t, s, r, i) {
1849
+ super(new J(0, t === null ? 0 : t.length), new O(r, t === null ? r : r + t.length)), this.ast = e, this.source = t, this.location = s, this.errors = i;
1850
+ }
1851
+ visit(e, t = null) {
1852
+ return e.visitASTWithSource ? e.visitASTWithSource(this, t) : this.ast.visit(e, t);
1853
+ }
1854
+ toString() {
1855
+ return `${this.source} in ${this.location}`;
1856
+ }
1857
+ }, me = class {
1858
+ sourceSpan;
1859
+ key;
1860
+ value;
1861
+ constructor(e, t, s) {
1862
+ this.sourceSpan = e, this.key = t, this.value = s;
1863
+ }
1864
+ }, We = class {
1865
+ sourceSpan;
1866
+ key;
1867
+ value;
1868
+ constructor(e, t, s) {
1869
+ this.sourceSpan = e, this.key = t, this.value = s;
1870
+ }
1871
+ }, Pt = class {
1872
+ visit(e, t) {
1873
+ e.visit(this, t);
1874
+ }
1875
+ visitUnary(e, t) {
1876
+ this.visit(e.expr, t);
1877
+ }
1878
+ visitBinary(e, t) {
1879
+ this.visit(e.left, t), this.visit(e.right, t);
1880
+ }
1881
+ visitChain(e, t) {
1882
+ this.visitAll(e.expressions, t);
1883
+ }
1884
+ visitConditional(e, t) {
1885
+ this.visit(e.condition, t), this.visit(e.trueExp, t), this.visit(e.falseExp, t);
1886
+ }
1887
+ visitPipe(e, t) {
1888
+ this.visit(e.exp, t), this.visitAll(e.args, t);
1889
+ }
1890
+ visitImplicitReceiver(e, t) {}
1891
+ visitThisReceiver(e, t) {}
1892
+ visitInterpolation(e, t) {
1893
+ this.visitAll(e.expressions, t);
1894
+ }
1895
+ visitKeyedRead(e, t) {
1896
+ this.visit(e.receiver, t), this.visit(e.key, t);
1897
+ }
1898
+ visitKeyedWrite(e, t) {
1899
+ this.visit(e.receiver, t), this.visit(e.key, t), this.visit(e.value, t);
1900
+ }
1901
+ visitLiteralArray(e, t) {
1902
+ this.visitAll(e.expressions, t);
1903
+ }
1904
+ visitLiteralMap(e, t) {
1905
+ this.visitAll(e.values, t);
1906
+ }
1907
+ visitLiteralPrimitive(e, t) {}
1908
+ visitPrefixNot(e, t) {
1909
+ this.visit(e.expression, t);
1910
+ }
1911
+ visitTypeofExpression(e, t) {
1912
+ this.visit(e.expression, t);
1913
+ }
1914
+ visitVoidExpression(e, t) {
1915
+ this.visit(e.expression, t);
1916
+ }
1917
+ visitNonNullAssert(e, t) {
1918
+ this.visit(e.expression, t);
1919
+ }
1920
+ visitPropertyRead(e, t) {
1921
+ this.visit(e.receiver, t);
1922
+ }
1923
+ visitPropertyWrite(e, t) {
1924
+ this.visit(e.receiver, t), this.visit(e.value, t);
1925
+ }
1926
+ visitSafePropertyRead(e, t) {
1927
+ this.visit(e.receiver, t);
1928
+ }
1929
+ visitSafeKeyedRead(e, t) {
1930
+ this.visit(e.receiver, t), this.visit(e.key, t);
1931
+ }
1932
+ visitCall(e, t) {
1933
+ this.visit(e.receiver, t), this.visitAll(e.args, t);
1934
+ }
1935
+ visitSafeCall(e, t) {
1936
+ this.visit(e.receiver, t), this.visitAll(e.args, t);
1937
+ }
1938
+ visitTemplateLiteral(e, t) {
1939
+ for (let s = 0; s < e.elements.length; s++) {
1940
+ this.visit(e.elements[s], t);
1941
+ let r = s < e.expressions.length ? e.expressions[s] : null;
1942
+ r !== null && this.visit(r, t);
1943
+ }
1944
+ }
1945
+ visitTemplateLiteralElement(e, t) {}
1946
+ visitTaggedTemplateLiteral(e, t) {
1947
+ this.visit(e.tag, t), this.visit(e.template, t);
1948
+ }
1949
+ visitParenthesizedExpression(e, t) {
1950
+ this.visit(e.expression, t);
1951
+ }
1952
+ visitAll(e, t) {
1953
+ for (let s of e) this.visit(s, t);
1954
+ }
1955
+ };
1956
+ (function(n) {
1957
+ n[n.DEFAULT = 0] = "DEFAULT", n[n.LITERAL_ATTR = 1] = "LITERAL_ATTR", n[n.ANIMATION = 2] = "ANIMATION", n[n.TWO_WAY = 3] = "TWO_WAY";
1958
+ })(vn || (vn = {}));
1959
+ (function(n) {
1960
+ n[n.Regular = 0] = "Regular", n[n.Animation = 1] = "Animation", n[n.TwoWay = 2] = "TwoWay";
1961
+ })(wn || (wn = {}));
1962
+ (function(n) {
1963
+ n[n.Property = 0] = "Property", n[n.Attribute = 1] = "Attribute", n[n.Class = 2] = "Class", n[n.Style = 3] = "Style", n[n.Animation = 4] = "Animation", n[n.TwoWay = 5] = "TwoWay";
1964
+ })(U || (U = {}));
1965
+ (function(n) {
1966
+ n[n.RAW_TEXT = 0] = "RAW_TEXT", n[n.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", n[n.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1967
+ })(xn || (xn = {}));
1968
+ Js = [
1969
+ /@/,
1970
+ /^\s*$/,
1971
+ /[<>]/,
1972
+ /^[{}]$/,
1973
+ /&(#|[a-z])/i,
1974
+ /^\/\//
1975
+ ];
1976
+ ne = new class n {
1977
+ start;
1978
+ end;
1979
+ static fromArray(e) {
1980
+ return e ? (Ys("interpolation", e), new n(e[0], e[1])) : ne;
1981
+ }
1982
+ constructor(e, t) {
1983
+ this.start = e, this.end = t;
1984
+ }
1985
+ }("{{", "}}");
1986
+ Qe = 0;
1987
+ Kn = 9, Qs = 10, Ks = 11, Zs = 12, er = 13, Zn = 32, tr = 33, es = 34, nr = 35, Ut = 36, sr = 37, Sn = 38, ts = 39, tt = 40, se = 41, En = 42, ns = 43, Ce = 44, ss = 45, re = 46, Mt = 47, ie = 58, Te = 59, rr = 60, Ke = 61, ir = 62, yn = 63, or = 48;
1988
+ ar = 57, rs = 65, lr = 69;
1989
+ is = 90, nt = 91, _n = 92, ke = 93, cr = 94, Ht = 95, os = 97;
1990
+ ur = 101, pr = 102, hr = 110, fr = 114, dr = 116, mr = 117, gr = 118;
1991
+ as = 122, ot = 123, Cn = 124, be = 125, ls = 160;
1992
+ $t = 96;
1993
+ (function(n) {
1994
+ n[n.WARNING = 0] = "WARNING", n[n.ERROR = 1] = "ERROR";
1995
+ })(kn || (kn = {}));
1996
+ (function(n) {
1997
+ n[n.Inline = 0] = "Inline", n[n.SideEffect = 1] = "SideEffect", n[n.Omit = 2] = "Omit";
1998
+ })(bn || (bn = {}));
1999
+ (function(n) {
2000
+ n[n.Global = 0] = "Global", n[n.Local = 1] = "Local";
2001
+ })(In || (In = {}));
2002
+ (function(n) {
2003
+ n[n.Directive = 0] = "Directive", n[n.Pipe = 1] = "Pipe", n[n.NgModule = 2] = "NgModule";
2004
+ })(Nn || (Nn = {}));
2005
+ xr = "(:(where|is)\\()?", cs = "-shadowcsshost", Sr = "-shadowcsscontext", us = "(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))";
2006
+ new RegExp(cs + us + "?([^,{]*)", "gim");
2007
+ ps = Sr + us + "?([^{]*)";
2008
+ new RegExp(`${xr}(${ps})`, "gim");
2009
+ new RegExp(ps, "im");
2010
+ Er = cs + "-no-combinator";
2011
+ new RegExp(`${Er}(?![^(]*\\))`, "g");
2012
+ hs = "%COMMENT%";
2013
+ new RegExp(hs, "g");
2014
+ new RegExp(`(\\s*(?:${hs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
2015
+ yr = "%COMMA_IN_PLACEHOLDER%", _r = "%SEMI_IN_PLACEHOLDER%", Cr = "%COLON_IN_PLACEHOLDER%";
2016
+ new RegExp(yr, "g");
2017
+ new RegExp(_r, "g");
2018
+ new RegExp(Cr, "g");
2019
+ (function(n) {
2020
+ n[n.ListEnd = 0] = "ListEnd", n[n.Statement = 1] = "Statement", n[n.Variable = 2] = "Variable", n[n.ElementStart = 3] = "ElementStart", n[n.Element = 4] = "Element", n[n.Template = 5] = "Template", n[n.ElementEnd = 6] = "ElementEnd", n[n.ContainerStart = 7] = "ContainerStart", n[n.Container = 8] = "Container", n[n.ContainerEnd = 9] = "ContainerEnd", n[n.DisableBindings = 10] = "DisableBindings", n[n.ConditionalCreate = 11] = "ConditionalCreate", n[n.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", n[n.Conditional = 13] = "Conditional", n[n.EnableBindings = 14] = "EnableBindings", n[n.Text = 15] = "Text", n[n.Listener = 16] = "Listener", n[n.InterpolateText = 17] = "InterpolateText", n[n.Binding = 18] = "Binding", n[n.Property = 19] = "Property", n[n.StyleProp = 20] = "StyleProp", n[n.ClassProp = 21] = "ClassProp", n[n.StyleMap = 22] = "StyleMap", n[n.ClassMap = 23] = "ClassMap", n[n.Advance = 24] = "Advance", n[n.Pipe = 25] = "Pipe", n[n.Attribute = 26] = "Attribute", n[n.ExtractedAttribute = 27] = "ExtractedAttribute", n[n.Defer = 28] = "Defer", n[n.DeferOn = 29] = "DeferOn", n[n.DeferWhen = 30] = "DeferWhen", n[n.I18nMessage = 31] = "I18nMessage", n[n.DomProperty = 32] = "DomProperty", n[n.Namespace = 33] = "Namespace", n[n.ProjectionDef = 34] = "ProjectionDef", n[n.Projection = 35] = "Projection", n[n.RepeaterCreate = 36] = "RepeaterCreate", n[n.Repeater = 37] = "Repeater", n[n.TwoWayProperty = 38] = "TwoWayProperty", n[n.TwoWayListener = 39] = "TwoWayListener", n[n.DeclareLet = 40] = "DeclareLet", n[n.StoreLet = 41] = "StoreLet", n[n.I18nStart = 42] = "I18nStart", n[n.I18n = 43] = "I18n", n[n.I18nEnd = 44] = "I18nEnd", n[n.I18nExpression = 45] = "I18nExpression", n[n.I18nApply = 46] = "I18nApply", n[n.IcuStart = 47] = "IcuStart", n[n.IcuEnd = 48] = "IcuEnd", n[n.IcuPlaceholder = 49] = "IcuPlaceholder", n[n.I18nContext = 50] = "I18nContext", n[n.I18nAttributes = 51] = "I18nAttributes", n[n.SourceLocation = 52] = "SourceLocation";
2021
+ })(d || (d = {}));
2022
+ (function(n) {
2023
+ n[n.LexicalRead = 0] = "LexicalRead", n[n.Context = 1] = "Context", n[n.TrackContext = 2] = "TrackContext", n[n.ReadVariable = 3] = "ReadVariable", n[n.NextContext = 4] = "NextContext", n[n.Reference = 5] = "Reference", n[n.StoreLet = 6] = "StoreLet", n[n.ContextLetReference = 7] = "ContextLetReference", n[n.GetCurrentView = 8] = "GetCurrentView", n[n.RestoreView = 9] = "RestoreView", n[n.ResetView = 10] = "ResetView", n[n.PureFunctionExpr = 11] = "PureFunctionExpr", n[n.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", n[n.PipeBinding = 13] = "PipeBinding", n[n.PipeBindingVariadic = 14] = "PipeBindingVariadic", n[n.SafePropertyRead = 15] = "SafePropertyRead", n[n.SafeKeyedRead = 16] = "SafeKeyedRead", n[n.SafeInvokeFunction = 17] = "SafeInvokeFunction", n[n.SafeTernaryExpr = 18] = "SafeTernaryExpr", n[n.EmptyExpr = 19] = "EmptyExpr", n[n.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", n[n.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", n[n.SlotLiteralExpr = 22] = "SlotLiteralExpr", n[n.ConditionalCase = 23] = "ConditionalCase", n[n.ConstCollected = 24] = "ConstCollected", n[n.TwoWayBindingSet = 25] = "TwoWayBindingSet";
2024
+ })(ge || (ge = {}));
2025
+ (function(n) {
2026
+ n[n.None = 0] = "None", n[n.AlwaysInline = 1] = "AlwaysInline";
2027
+ })(An || (An = {}));
2028
+ (function(n) {
2029
+ n[n.Context = 0] = "Context", n[n.Identifier = 1] = "Identifier", n[n.SavedView = 2] = "SavedView", n[n.Alias = 3] = "Alias";
2030
+ })(Pn || (Pn = {}));
2031
+ (function(n) {
2032
+ n[n.Normal = 0] = "Normal", n[n.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
2033
+ })(Ln || (Ln = {}));
2034
+ (function(n) {
2035
+ n[n.Attribute = 0] = "Attribute", n[n.ClassName = 1] = "ClassName", n[n.StyleProperty = 2] = "StyleProperty", n[n.Property = 3] = "Property", n[n.Template = 4] = "Template", n[n.I18n = 5] = "I18n", n[n.Animation = 6] = "Animation", n[n.TwoWayProperty = 7] = "TwoWayProperty";
2036
+ })(H || (H = {}));
2037
+ (function(n) {
2038
+ n[n.Creation = 0] = "Creation", n[n.Postproccessing = 1] = "Postproccessing";
2039
+ })(Mn || (Mn = {}));
2040
+ (function(n) {
2041
+ n[n.I18nText = 0] = "I18nText", n[n.I18nAttribute = 1] = "I18nAttribute";
2042
+ })($n || ($n = {}));
2043
+ (function(n) {
2044
+ n[n.None = 0] = "None", n[n.ElementTag = 1] = "ElementTag", n[n.TemplateTag = 2] = "TemplateTag", n[n.OpenTag = 4] = "OpenTag", n[n.CloseTag = 8] = "CloseTag", n[n.ExpressionIndex = 16] = "ExpressionIndex";
2045
+ })(Rn || (Rn = {}));
2046
+ (function(n) {
2047
+ n[n.HTML = 0] = "HTML", n[n.SVG = 1] = "SVG", n[n.Math = 2] = "Math";
2048
+ })(Dn || (Dn = {}));
2049
+ (function(n) {
2050
+ n[n.Idle = 0] = "Idle", n[n.Immediate = 1] = "Immediate", n[n.Timer = 2] = "Timer", n[n.Hover = 3] = "Hover", n[n.Interaction = 4] = "Interaction", n[n.Viewport = 5] = "Viewport", n[n.Never = 6] = "Never";
2051
+ })(Bn || (Bn = {}));
2052
+ (function(n) {
2053
+ n[n.RootI18n = 0] = "RootI18n", n[n.Icu = 1] = "Icu", n[n.Attr = 2] = "Attr";
2054
+ })(On || (On = {}));
2055
+ (function(n) {
2056
+ n[n.NgTemplate = 0] = "NgTemplate", n[n.Structural = 1] = "Structural", n[n.Block = 2] = "Block";
2057
+ })(Fn || (Fn = {}));
2058
+ at = class {
2059
+ strings;
2060
+ expressions;
2061
+ i18nPlaceholders;
2062
+ constructor(e, t, s) {
2063
+ if (this.strings = e, this.expressions = t, this.i18nPlaceholders = s, s.length !== 0 && s.length !== t.length) throw new Error(`Expected ${t.length} placeholders to match interpolation expression count, but got ${s.length}`);
2064
+ }
2065
+ };
2066
+ (function(n) {
2067
+ n[n.None = 0] = "None", n[n.InChildOperation = 1] = "InChildOperation";
2068
+ })(Rt || (Rt = {}));
2069
+ new Set([
2070
+ d.Element,
2071
+ d.ElementStart,
2072
+ d.Container,
2073
+ d.ContainerStart,
2074
+ d.Template,
2075
+ d.RepeaterCreate,
2076
+ d.ConditionalCreate,
2077
+ d.ConditionalBranchCreate
2078
+ ]);
2079
+ (function(n) {
2080
+ n[n.Tmpl = 0] = "Tmpl", n[n.Host = 1] = "Host", n[n.Both = 2] = "Both";
2081
+ })(qn || (qn = {}));
2082
+ new Map([
2083
+ [p.attribute, p.attribute],
2084
+ [p.classProp, p.classProp],
2085
+ [p.element, p.element],
2086
+ [p.elementContainer, p.elementContainer],
2087
+ [p.elementContainerEnd, p.elementContainerEnd],
2088
+ [p.elementContainerStart, p.elementContainerStart],
2089
+ [p.elementEnd, p.elementEnd],
2090
+ [p.elementStart, p.elementStart],
2091
+ [p.domProperty, p.domProperty],
2092
+ [p.i18nExp, p.i18nExp],
2093
+ [p.listener, p.listener],
2094
+ [p.listener, p.listener],
2095
+ [p.property, p.property],
2096
+ [p.styleProp, p.styleProp],
2097
+ [p.syntheticHostListener, p.syntheticHostListener],
2098
+ [p.syntheticHostProperty, p.syntheticHostProperty],
2099
+ [p.templateCreate, p.templateCreate],
2100
+ [p.twoWayProperty, p.twoWayProperty],
2101
+ [p.twoWayListener, p.twoWayListener],
2102
+ [p.declareLet, p.declareLet],
2103
+ [p.conditionalCreate, p.conditionalBranchCreate],
2104
+ [p.conditionalBranchCreate, p.conditionalBranchCreate]
2105
+ ]);
2106
+ Object.freeze([]);
2107
+ new Map([
2108
+ [d.ElementEnd, [d.ElementStart, d.Element]],
2109
+ [d.ContainerEnd, [d.ContainerStart, d.Container]],
2110
+ [d.I18nEnd, [d.I18nStart, d.I18n]]
2111
+ ]);
2112
+ new Set([d.Pipe]);
2113
+ kr = {};
2114
+ kr.ngsp = "";
2115
+ (function(n) {
2116
+ n.HEX = "hexadecimal", n.DEC = "decimal";
2117
+ })(jn || (jn = {}));
2118
+ ds = ` \f
2119
+ \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
2120
+ new RegExp(`[^${ds}]`);
2121
+ new RegExp(`[${ds}]{2,}`, "g");
2122
+ (function(n) {
2123
+ n[n.Character = 0] = "Character", n[n.Identifier = 1] = "Identifier", n[n.PrivateIdentifier = 2] = "PrivateIdentifier", n[n.Keyword = 3] = "Keyword", n[n.String = 4] = "String", n[n.Operator = 5] = "Operator", n[n.Number = 6] = "Number", n[n.Error = 7] = "Error";
2124
+ })(m || (m = {}));
2125
+ (function(n) {
2126
+ n[n.Plain = 0] = "Plain", n[n.TemplateLiteralPart = 1] = "TemplateLiteralPart", n[n.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
2127
+ })(q || (q = {}));
2128
+ Ir = [
2129
+ "var",
2130
+ "let",
2131
+ "as",
2132
+ "null",
2133
+ "undefined",
2134
+ "true",
2135
+ "false",
2136
+ "if",
2137
+ "else",
2138
+ "this",
2139
+ "typeof",
2140
+ "void",
2141
+ "in"
2142
+ ], qe = class {
2143
+ tokenize(e) {
2144
+ return new Dt(e).scan();
2145
+ }
2146
+ }, M = class {
2147
+ index;
2148
+ end;
2149
+ type;
2150
+ numValue;
2151
+ strValue;
2152
+ constructor(e, t, s, r, i) {
2153
+ this.index = e, this.end = t, this.type = s, this.numValue = r, this.strValue = i;
2154
+ }
2155
+ isCharacter(e) {
2156
+ return this.type === m.Character && this.numValue === e;
2157
+ }
2158
+ isNumber() {
2159
+ return this.type === m.Number;
2160
+ }
2161
+ isString() {
2162
+ return this.type === m.String;
2163
+ }
2164
+ isOperator(e) {
2165
+ return this.type === m.Operator && this.strValue === e;
2166
+ }
2167
+ isIdentifier() {
2168
+ return this.type === m.Identifier;
2169
+ }
2170
+ isPrivateIdentifier() {
2171
+ return this.type === m.PrivateIdentifier;
2172
+ }
2173
+ isKeyword() {
2174
+ return this.type === m.Keyword;
2175
+ }
2176
+ isKeywordLet() {
2177
+ return this.type === m.Keyword && this.strValue === "let";
2178
+ }
2179
+ isKeywordAs() {
2180
+ return this.type === m.Keyword && this.strValue === "as";
2181
+ }
2182
+ isKeywordNull() {
2183
+ return this.type === m.Keyword && this.strValue === "null";
2184
+ }
2185
+ isKeywordUndefined() {
2186
+ return this.type === m.Keyword && this.strValue === "undefined";
2187
+ }
2188
+ isKeywordTrue() {
2189
+ return this.type === m.Keyword && this.strValue === "true";
2190
+ }
2191
+ isKeywordFalse() {
2192
+ return this.type === m.Keyword && this.strValue === "false";
2193
+ }
2194
+ isKeywordThis() {
2195
+ return this.type === m.Keyword && this.strValue === "this";
2196
+ }
2197
+ isKeywordTypeof() {
2198
+ return this.type === m.Keyword && this.strValue === "typeof";
2199
+ }
2200
+ isKeywordVoid() {
2201
+ return this.type === m.Keyword && this.strValue === "void";
2202
+ }
2203
+ isKeywordIn() {
2204
+ return this.type === m.Keyword && this.strValue === "in";
2205
+ }
2206
+ isError() {
2207
+ return this.type === m.Error;
2208
+ }
2209
+ toNumber() {
2210
+ return this.type === m.Number ? this.numValue : -1;
2211
+ }
2212
+ isTemplateLiteralPart() {
2213
+ return this.isString() && this.kind === q.TemplateLiteralPart;
2214
+ }
2215
+ isTemplateLiteralEnd() {
2216
+ return this.isString() && this.kind === q.TemplateLiteralEnd;
2217
+ }
2218
+ isTemplateLiteralInterpolationStart() {
2219
+ return this.isOperator("${");
2220
+ }
2221
+ isTemplateLiteralInterpolationEnd() {
2222
+ return this.isOperator("}");
2223
+ }
2224
+ toString() {
2225
+ switch (this.type) {
2226
+ case m.Character:
2227
+ case m.Identifier:
2228
+ case m.Keyword:
2229
+ case m.Operator:
2230
+ case m.PrivateIdentifier:
2231
+ case m.String:
2232
+ case m.Error: return this.strValue;
2233
+ case m.Number: return this.numValue.toString();
2234
+ default: return null;
2235
+ }
2236
+ }
2237
+ }, Ie = class extends M {
2238
+ kind;
2239
+ constructor(e, t, s, r) {
2240
+ super(e, t, m.String, 0, s), this.kind = r;
2241
+ }
2242
+ };
2243
+ et = new M(-1, -1, m.Character, 0, ""), Dt = class {
2244
+ input;
2245
+ tokens = [];
2246
+ length;
2247
+ peek = 0;
2248
+ index = -1;
2249
+ braceStack = [];
2250
+ constructor(e) {
2251
+ this.input = e, this.length = e.length, this.advance();
2252
+ }
2253
+ scan() {
2254
+ let e = this.scanToken();
2255
+ for (; e !== null;) this.tokens.push(e), e = this.scanToken();
2256
+ return this.tokens;
2257
+ }
2258
+ advance() {
2259
+ this.peek = ++this.index >= this.length ? Qe : this.input.charCodeAt(this.index);
2260
+ }
2261
+ scanToken() {
2262
+ let e = this.input, t = this.length, s = this.peek, r = this.index;
2263
+ for (; s <= Zn;) if (++r >= t) {
2264
+ s = Qe;
2265
+ break;
2266
+ } else s = e.charCodeAt(r);
2267
+ if (this.peek = s, this.index = r, r >= t) return null;
2268
+ if (zn(s)) return this.scanIdentifier();
2269
+ if (z(s)) return this.scanNumber(r);
2270
+ let i = r;
2271
+ switch (s) {
2272
+ case re: return this.advance(), z(this.peek) ? this.scanNumber(i) : Ze(i, this.index, re);
2273
+ case tt:
2274
+ case se:
2275
+ case nt:
2276
+ case ke:
2277
+ case Ce:
2278
+ case ie:
2279
+ case Te: return this.scanCharacter(i, s);
2280
+ case ot: return this.scanOpenBrace(i, s);
2281
+ case be: return this.scanCloseBrace(i, s);
2282
+ case ts:
2283
+ case es: return this.scanString();
2284
+ case $t: return this.advance(), this.scanTemplateLiteralPart(i);
2285
+ case nr: return this.scanPrivateIdentifier();
2286
+ case ns:
2287
+ case ss:
2288
+ case Mt:
2289
+ case sr:
2290
+ case cr: return this.scanOperator(i, String.fromCharCode(s));
2291
+ case En: return this.scanComplexOperator(i, "*", En, "*");
2292
+ case yn: return this.scanQuestion(i);
2293
+ case rr:
2294
+ case ir: return this.scanComplexOperator(i, String.fromCharCode(s), Ke, "=");
2295
+ case tr:
2296
+ case Ke: return this.scanComplexOperator(i, String.fromCharCode(s), Ke, "=", Ke, "=");
2297
+ case Sn: return this.scanComplexOperator(i, "&", Sn, "&");
2298
+ case Cn: return this.scanComplexOperator(i, "|", Cn, "|");
2299
+ case ls:
2300
+ for (; vr(this.peek);) this.advance();
2301
+ return this.scanToken();
2302
+ }
2303
+ return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
2304
+ }
2305
+ scanCharacter(e, t) {
2306
+ return this.advance(), Ze(e, this.index, t);
2307
+ }
2308
+ scanOperator(e, t) {
2309
+ return this.advance(), _e(e, this.index, t);
2310
+ }
2311
+ scanOpenBrace(e, t) {
2312
+ return this.braceStack.push("expression"), this.advance(), Ze(e, this.index, t);
2313
+ }
2314
+ scanCloseBrace(e, t) {
2315
+ return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(_e(e, this.index, "}")), this.scanTemplateLiteralPart(this.index)) : Ze(e, this.index, t);
2316
+ }
2317
+ scanComplexOperator(e, t, s, r, i, a) {
2318
+ this.advance();
2319
+ let l = t;
2320
+ return this.peek == s && (this.advance(), l += r), i != null && this.peek == i && (this.advance(), l += a), _e(e, this.index, l);
2321
+ }
2322
+ scanIdentifier() {
2323
+ let e = this.index;
2324
+ for (this.advance(); Gn(this.peek);) this.advance();
2325
+ let t = this.input.substring(e, this.index);
2326
+ return Ir.indexOf(t) > -1 ? Pr(e, this.index, t) : Nr(e, this.index, t);
2327
+ }
2328
+ scanPrivateIdentifier() {
2329
+ let e = this.index;
2330
+ if (this.advance(), !zn(this.peek)) return this.error("Invalid character [#]", -1);
2331
+ for (; Gn(this.peek);) this.advance();
2332
+ let t = this.input.substring(e, this.index);
2333
+ return Ar(e, this.index, t);
2334
+ }
2335
+ scanNumber(e) {
2336
+ let t = this.index === e, s = !1;
2337
+ for (this.advance();;) {
2338
+ if (!z(this.peek)) if (this.peek === Ht) {
2339
+ if (!z(this.input.charCodeAt(this.index - 1)) || !z(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
2340
+ s = !0;
2341
+ } else if (this.peek === re) t = !1;
2342
+ else if ($r(this.peek)) {
2343
+ if (this.advance(), Rr(this.peek) && this.advance(), !z(this.peek)) return this.error("Invalid exponent", -1);
2344
+ t = !1;
2345
+ } else break;
2346
+ this.advance();
2347
+ }
2348
+ let r = this.input.substring(e, this.index);
2349
+ s && (r = r.replace(/_/g, ""));
2350
+ let i = t ? Br(r) : parseFloat(r);
2351
+ return Lr(e, this.index, i);
2352
+ }
2353
+ scanString() {
2354
+ let e = this.index, t = this.peek;
2355
+ this.advance();
2356
+ let s = "", r = this.index, i = this.input;
2357
+ for (; this.peek != t;) if (this.peek == _n) {
2358
+ let l = this.scanStringBackslash(s, r);
2359
+ if (typeof l != "string") return l;
2360
+ s = l, r = this.index;
2361
+ } else {
2362
+ if (this.peek == Qe) return this.error("Unterminated quote", 0);
2363
+ this.advance();
2364
+ }
2365
+ let a = i.substring(r, this.index);
2366
+ return this.advance(), new Ie(e, this.index, s + a, q.Plain);
2367
+ }
2368
+ scanQuestion(e) {
2369
+ this.advance();
2370
+ let t = "?";
2371
+ return (this.peek === yn || this.peek === re) && (t += this.peek === re ? "." : "?", this.advance()), _e(e, this.index, t);
2372
+ }
2373
+ scanTemplateLiteralPart(e) {
2374
+ let t = "", s = this.index;
2375
+ for (; this.peek !== $t;) if (this.peek === _n) {
2376
+ let i = this.scanStringBackslash(t, s);
2377
+ if (typeof i != "string") return i;
2378
+ t = i, s = this.index;
2379
+ } else if (this.peek === Ut) {
2380
+ let i = this.index;
2381
+ if (this.advance(), this.peek === ot) return this.braceStack.push("interpolation"), this.tokens.push(new Ie(e, i, t + this.input.substring(s, i), q.TemplateLiteralPart)), this.advance(), _e(i, this.index, this.input.substring(i, this.index));
2382
+ } else {
2383
+ if (this.peek === Qe) return this.error("Unterminated template literal", 0);
2384
+ this.advance();
2385
+ }
2386
+ let r = this.input.substring(s, this.index);
2387
+ return this.advance(), new Ie(e, this.index, t + r, q.TemplateLiteralEnd);
2388
+ }
2389
+ error(e, t) {
2390
+ let s = this.index + t;
2391
+ return Mr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
2392
+ }
2393
+ scanStringBackslash(e, t) {
2394
+ e += this.input.substring(t, this.index);
2395
+ let s;
2396
+ if (this.advance(), this.peek === mr) {
2397
+ let r = this.input.substring(this.index + 1, this.index + 5);
2398
+ if (/^[0-9a-f]+$/i.test(r)) s = parseInt(r, 16);
2399
+ else return this.error(`Invalid unicode escape [\\u${r}]`, 0);
2400
+ for (let i = 0; i < 5; i++) this.advance();
2401
+ } else s = Dr(this.peek), this.advance();
2402
+ return e += String.fromCharCode(s), e;
2403
+ }
2404
+ };
2405
+ Bt = class {
2406
+ strings;
2407
+ expressions;
2408
+ offsets;
2409
+ constructor(e, t, s) {
2410
+ this.strings = e, this.expressions = t, this.offsets = s;
2411
+ }
2412
+ }, Ot = class {
2413
+ templateBindings;
2414
+ warnings;
2415
+ errors;
2416
+ constructor(e, t, s) {
2417
+ this.templateBindings = e, this.warnings = t, this.errors = s;
2418
+ }
2419
+ }, we = class {
2420
+ _lexer;
2421
+ errors = [];
2422
+ constructor(e) {
2423
+ this._lexer = e;
2424
+ }
2425
+ parseAction(e, t, s, r = ne) {
2426
+ this._checkNoInterpolation(e, t, r);
2427
+ let i = this._stripComments(e);
2428
+ return new W(new G(e, t, s, this._lexer.tokenize(i), 1, this.errors, 0).parseChain(), e, t, s, this.errors);
2429
+ }
2430
+ parseBinding(e, t, s, r = ne) {
2431
+ return new W(this._parseBindingAst(e, t, s, r), e, t, s, this.errors);
2432
+ }
2433
+ checkSimpleExpression(e) {
2434
+ let t = new Ft();
2435
+ return e.visit(t), t.errors;
2436
+ }
2437
+ parseSimpleBinding(e, t, s, r = ne) {
2438
+ let i = this._parseBindingAst(e, t, s, r), a = this.checkSimpleExpression(i);
2439
+ return a.length > 0 && this._reportError(`Host binding expression cannot contain ${a.join(" ")}`, e, t), new W(i, e, t, s, this.errors);
2440
+ }
2441
+ _reportError(e, t, s, r) {
2442
+ this.errors.push(new Pe(e, t, s, r));
2443
+ }
2444
+ _parseBindingAst(e, t, s, r) {
2445
+ this._checkNoInterpolation(e, t, r);
2446
+ let i = this._stripComments(e);
2447
+ return new G(e, t, s, this._lexer.tokenize(i), 0, this.errors, 0).parseChain();
2448
+ }
2449
+ parseTemplateBindings(e, t, s, r, i) {
2450
+ return new G(t, s, i, this._lexer.tokenize(t), 0, this.errors, 0).parseTemplateBindings({
2451
+ source: e,
2452
+ span: new O(r, r + e.length)
2453
+ });
2454
+ }
2455
+ parseInterpolation(e, t, s, r, i = ne) {
2456
+ let { strings: a, expressions: l, offsets: h } = this.splitInterpolation(e, t, r, i);
2457
+ if (l.length === 0) return null;
2458
+ let f = [];
2459
+ for (let v = 0; v < l.length; ++v) {
2460
+ let E = l[v].text, y = this._stripComments(E), k = new G(e, t, s, this._lexer.tokenize(y), 0, this.errors, h[v]).parseChain();
2461
+ f.push(k);
2462
+ }
2463
+ return this.createInterpolationAst(a.map((v) => v.text), f, e, t, s);
2464
+ }
2465
+ parseInterpolationExpression(e, t, s) {
2466
+ let r = this._stripComments(e), a = new G(e, t, s, this._lexer.tokenize(r), 0, this.errors, 0).parseChain();
2467
+ return this.createInterpolationAst(["", ""], [a], e, t, s);
2468
+ }
2469
+ createInterpolationAst(e, t, s, r, i) {
2470
+ let a = new J(0, s.length);
2471
+ return new W(new Vt(a, a.toAbsolute(i), e, t), s, r, i, this.errors);
2472
+ }
2473
+ splitInterpolation(e, t, s, r = ne) {
2474
+ let i = [], a = [], l = [], h = s ? Or(s) : null, f = 0, v = !1, E = !1, { start: y, end: T } = r;
2475
+ for (; f < e.length;) if (v) {
2476
+ let k = f, F = k + y.length, Ee = this._getInterpolationEndIndex(e, T, F);
2477
+ if (Ee === -1) {
2478
+ v = !1, E = !0;
2479
+ break;
2480
+ }
2481
+ let ye = Ee + T.length, j = e.substring(F, Ee);
2482
+ j.trim().length === 0 && this._reportError("Blank expressions are not allowed in interpolated strings", e, `at column ${f} in`, t), a.push({
2483
+ text: j,
2484
+ start: k,
2485
+ end: ye
2486
+ });
2487
+ let Ws = ((h == null ? void 0 : h.get(k)) ?? k) + y.length;
2488
+ l.push(Ws), f = ye, v = !1;
2489
+ } else {
2490
+ let k = f;
2491
+ f = e.indexOf(y, f), f === -1 && (f = e.length);
2492
+ let F = e.substring(k, f);
2493
+ i.push({
2494
+ text: F,
2495
+ start: k,
2496
+ end: f
2497
+ }), v = !0;
2498
+ }
2499
+ if (!v) if (E) {
2500
+ let k = i[i.length - 1];
2501
+ k.text += e.substring(f), k.end = e.length;
2502
+ } else i.push({
2503
+ text: e.substring(f),
2504
+ start: f,
2505
+ end: e.length
2506
+ });
2507
+ return new Bt(i, a, l);
2508
+ }
2509
+ wrapLiteralPrimitive(e, t, s) {
2510
+ let r = new J(0, e == null ? 0 : e.length);
2511
+ return new W(new I(r, r.toAbsolute(s), e), e, t, s, this.errors);
2512
+ }
2513
+ _stripComments(e) {
2514
+ let t = this._commentStart(e);
2515
+ return t != null ? e.substring(0, t) : e;
2516
+ }
2517
+ _commentStart(e) {
2518
+ let t = null;
2519
+ for (let s = 0; s < e.length - 1; s++) {
2520
+ let r = e.charCodeAt(s), i = e.charCodeAt(s + 1);
2521
+ if (r === Mt && i == Mt && t == null) return s;
2522
+ t === r ? t = null : t == null && Tn(r) && (t = r);
2523
+ }
2524
+ return null;
2525
+ }
2526
+ _checkNoInterpolation(e, t, { start: s, end: r }) {
2527
+ let i = -1, a = -1;
2528
+ for (let l of this._forEachUnquotedChar(e, 0)) if (i === -1) e.startsWith(s) && (i = l);
2529
+ else if (a = this._getInterpolationEndIndex(e, r, l), a > -1) break;
2530
+ i > -1 && a > -1 && this._reportError(`Got interpolation (${s}${r}) where expression was expected`, e, `at column ${i} in`, t);
2531
+ }
2532
+ _getInterpolationEndIndex(e, t, s) {
2533
+ for (let r of this._forEachUnquotedChar(e, s)) {
2534
+ if (e.startsWith(t, r)) return r;
2535
+ if (e.startsWith("//", r)) return e.indexOf(t, r);
2536
+ }
2537
+ return -1;
2538
+ }
2539
+ *_forEachUnquotedChar(e, t) {
2540
+ let s = null, r = 0;
2541
+ for (let i = t; i < e.length; i++) {
2542
+ let a = e[i];
2543
+ Tn(e.charCodeAt(i)) && (s === null || s === a) && r % 2 === 0 ? s = s === null ? a : null : s === null && (yield i), r = a === "\\" ? r + 1 : 0;
2544
+ }
2545
+ }
2546
+ };
2547
+ (function(n) {
2548
+ n[n.None = 0] = "None", n[n.Writable = 1] = "Writable";
2549
+ })(oe || (oe = {}));
2550
+ G = class {
2551
+ input;
2552
+ location;
2553
+ absoluteOffset;
2554
+ tokens;
2555
+ parseFlags;
2556
+ errors;
2557
+ offset;
2558
+ rparensExpected = 0;
2559
+ rbracketsExpected = 0;
2560
+ rbracesExpected = 0;
2561
+ context = oe.None;
2562
+ sourceSpanCache = /* @__PURE__ */ new Map();
2563
+ index = 0;
2564
+ constructor(e, t, s, r, i, a, l) {
2565
+ this.input = e, this.location = t, this.absoluteOffset = s, this.tokens = r, this.parseFlags = i, this.errors = a, this.offset = l;
2566
+ }
2567
+ peek(e) {
2568
+ let t = this.index + e;
2569
+ return t < this.tokens.length ? this.tokens[t] : et;
2570
+ }
2571
+ get next() {
2572
+ return this.peek(0);
2573
+ }
2574
+ get atEOF() {
2575
+ return this.index >= this.tokens.length;
2576
+ }
2577
+ get inputIndex() {
2578
+ return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
2579
+ }
2580
+ get currentEndIndex() {
2581
+ return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
2582
+ }
2583
+ get currentAbsoluteOffset() {
2584
+ return this.absoluteOffset + this.inputIndex;
2585
+ }
2586
+ span(e, t) {
2587
+ let s = this.currentEndIndex;
2588
+ if (t !== void 0 && t > this.currentEndIndex && (s = t), e > s) {
2589
+ let r = s;
2590
+ s = e, e = r;
2591
+ }
2592
+ return new J(e, s);
2593
+ }
2594
+ sourceSpan(e, t) {
2595
+ let s = `${e}@${this.inputIndex}:${t}`;
2596
+ return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, t).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
2597
+ }
2598
+ advance() {
2599
+ this.index++;
2600
+ }
2601
+ withContext(e, t) {
2602
+ this.context |= e;
2603
+ let s = t();
2604
+ return this.context ^= e, s;
2605
+ }
2606
+ consumeOptionalCharacter(e) {
2607
+ return this.next.isCharacter(e) ? (this.advance(), !0) : !1;
2608
+ }
2609
+ peekKeywordLet() {
2610
+ return this.next.isKeywordLet();
2611
+ }
2612
+ peekKeywordAs() {
2613
+ return this.next.isKeywordAs();
2614
+ }
2615
+ expectCharacter(e) {
2616
+ this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
2617
+ }
2618
+ consumeOptionalOperator(e) {
2619
+ return this.next.isOperator(e) ? (this.advance(), !0) : !1;
2620
+ }
2621
+ expectOperator(e) {
2622
+ this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
2623
+ }
2624
+ prettyPrintToken(e) {
2625
+ return e === et ? "end of input" : `token ${e}`;
2626
+ }
2627
+ expectIdentifierOrKeyword() {
2628
+ let e = this.next;
2629
+ return !e.isIdentifier() && !e.isKeyword() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier or keyword") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`), null) : (this.advance(), e.toString());
2630
+ }
2631
+ expectIdentifierOrKeywordOrString() {
2632
+ let e = this.next;
2633
+ return !e.isIdentifier() && !e.isKeyword() && !e.isString() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier, keyword or string") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`), "") : (this.advance(), e.toString());
2634
+ }
2635
+ parseChain() {
2636
+ let e = [], t = this.inputIndex;
2637
+ for (; this.index < this.tokens.length;) {
2638
+ let s = this.parsePipe();
2639
+ if (e.push(s), this.consumeOptionalCharacter(Te)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(Te););
2640
+ else if (this.index < this.tokens.length) {
2641
+ let r = this.index;
2642
+ if (this.error(`Unexpected token '${this.next}'`), this.index === r) break;
2643
+ }
2644
+ }
2645
+ if (e.length === 0) {
2646
+ let s = this.offset, r = this.offset + this.input.length;
2647
+ return new P(this.span(s, r), this.sourceSpan(s, r));
2648
+ }
2649
+ return e.length == 1 ? e[0] : new Le(this.span(t), this.sourceSpan(t), e);
2650
+ }
2651
+ parsePipe() {
2652
+ let e = this.inputIndex, t = this.parseExpression();
2653
+ if (this.consumeOptionalOperator("|")) {
2654
+ this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
2655
+ do {
2656
+ let s = this.inputIndex, r = this.expectIdentifierOrKeyword(), i, a;
2657
+ r !== null ? i = this.sourceSpan(s) : (r = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, i = new J(a, a).toAbsolute(this.absoluteOffset));
2658
+ let l = [];
2659
+ for (; this.consumeOptionalCharacter(ie);) l.push(this.parseExpression());
2660
+ t = new Be(this.span(e), this.sourceSpan(e, a), t, r, l, i);
2661
+ } while (this.consumeOptionalOperator("|"));
2662
+ }
2663
+ return t;
2664
+ }
2665
+ parseExpression() {
2666
+ return this.parseConditional();
2667
+ }
2668
+ parseConditional() {
2669
+ let e = this.inputIndex, t = this.parseLogicalOr();
2670
+ if (this.consumeOptionalOperator("?")) {
2671
+ let s = this.parsePipe(), r;
2672
+ if (this.consumeOptionalCharacter(ie)) r = this.parsePipe();
2673
+ else {
2674
+ let i = this.inputIndex, a = this.input.substring(e, i);
2675
+ this.error(`Conditional expression ${a} requires all 3 expressions`), r = new P(this.span(e), this.sourceSpan(e));
2676
+ }
2677
+ return new Me(this.span(e), this.sourceSpan(e), t, s, r);
2678
+ } else return t;
2679
+ }
2680
+ parseLogicalOr() {
2681
+ let e = this.inputIndex, t = this.parseLogicalAnd();
2682
+ for (; this.consumeOptionalOperator("||");) {
2683
+ let s = this.parseLogicalAnd();
2684
+ t = new A(this.span(e), this.sourceSpan(e), "||", t, s);
2685
+ }
2686
+ return t;
2687
+ }
2688
+ parseLogicalAnd() {
2689
+ let e = this.inputIndex, t = this.parseNullishCoalescing();
2690
+ for (; this.consumeOptionalOperator("&&");) {
2691
+ let s = this.parseNullishCoalescing();
2692
+ t = new A(this.span(e), this.sourceSpan(e), "&&", t, s);
2693
+ }
2694
+ return t;
2695
+ }
2696
+ parseNullishCoalescing() {
2697
+ let e = this.inputIndex, t = this.parseEquality();
2698
+ for (; this.consumeOptionalOperator("??");) {
2699
+ let s = this.parseEquality();
2700
+ t = new A(this.span(e), this.sourceSpan(e), "??", t, s);
2701
+ }
2702
+ return t;
2703
+ }
2704
+ parseEquality() {
2705
+ let e = this.inputIndex, t = this.parseRelational();
2706
+ for (; this.next.type == m.Operator;) {
2707
+ let s = this.next.strValue;
2708
+ switch (s) {
2709
+ case "==":
2710
+ case "===":
2711
+ case "!=":
2712
+ case "!==":
2713
+ this.advance();
2714
+ let r = this.parseRelational();
2715
+ t = new A(this.span(e), this.sourceSpan(e), s, t, r);
2716
+ continue;
2717
+ }
2718
+ break;
2719
+ }
2720
+ return t;
2721
+ }
2722
+ parseRelational() {
2723
+ let e = this.inputIndex, t = this.parseAdditive();
2724
+ for (; this.next.type == m.Operator || this.next.isKeywordIn;) {
2725
+ let s = this.next.strValue;
2726
+ switch (s) {
2727
+ case "<":
2728
+ case ">":
2729
+ case "<=":
2730
+ case ">=":
2731
+ case "in":
2732
+ this.advance();
2733
+ let r = this.parseAdditive();
2734
+ t = new A(this.span(e), this.sourceSpan(e), s, t, r);
2735
+ continue;
2736
+ }
2737
+ break;
2738
+ }
2739
+ return t;
2740
+ }
2741
+ parseAdditive() {
2742
+ let e = this.inputIndex, t = this.parseMultiplicative();
2743
+ for (; this.next.type == m.Operator;) {
2744
+ let s = this.next.strValue;
2745
+ switch (s) {
2746
+ case "+":
2747
+ case "-":
2748
+ this.advance();
2749
+ let r = this.parseMultiplicative();
2750
+ t = new A(this.span(e), this.sourceSpan(e), s, t, r);
2751
+ continue;
2752
+ }
2753
+ break;
2754
+ }
2755
+ return t;
2756
+ }
2757
+ parseMultiplicative() {
2758
+ let e = this.inputIndex, t = this.parseExponentiation();
2759
+ for (; this.next.type == m.Operator;) {
2760
+ let s = this.next.strValue;
2761
+ switch (s) {
2762
+ case "*":
2763
+ case "%":
2764
+ case "/":
2765
+ this.advance();
2766
+ let r = this.parseExponentiation();
2767
+ t = new A(this.span(e), this.sourceSpan(e), s, t, r);
2768
+ continue;
2769
+ }
2770
+ break;
2771
+ }
2772
+ return t;
2773
+ }
2774
+ parseExponentiation() {
2775
+ let e = this.inputIndex, t = this.parsePrefix();
2776
+ for (; this.next.type == m.Operator && this.next.strValue === "**";) {
2777
+ (t instanceof X || t instanceof Q || t instanceof K || t instanceof Z) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
2778
+ let s = this.parseExponentiation();
2779
+ t = new A(this.span(e), this.sourceSpan(e), "**", t, s);
2780
+ }
2781
+ return t;
2782
+ }
2783
+ parsePrefix() {
2784
+ if (this.next.type == m.Operator) {
2785
+ let e = this.inputIndex, t = this.next.strValue, s;
2786
+ switch (t) {
2787
+ case "+": return this.advance(), s = this.parsePrefix(), X.createPlus(this.span(e), this.sourceSpan(e), s);
2788
+ case "-": return this.advance(), s = this.parsePrefix(), X.createMinus(this.span(e), this.sourceSpan(e), s);
2789
+ case "!": return this.advance(), s = this.parsePrefix(), new Q(this.span(e), this.sourceSpan(e), s);
2790
+ }
2791
+ } else if (this.next.isKeywordTypeof()) {
2792
+ this.advance();
2793
+ let e = this.inputIndex, t = this.parsePrefix();
2794
+ return new K(this.span(e), this.sourceSpan(e), t);
2795
+ } else if (this.next.isKeywordVoid()) {
2796
+ this.advance();
2797
+ let e = this.inputIndex, t = this.parsePrefix();
2798
+ return new Z(this.span(e), this.sourceSpan(e), t);
2799
+ }
2800
+ return this.parseCallChain();
2801
+ }
2802
+ parseCallChain() {
2803
+ let e = this.inputIndex, t = this.parsePrimary();
2804
+ for (;;) if (this.consumeOptionalCharacter(re)) t = this.parseAccessMember(t, e, !1);
2805
+ else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(tt) ? t = this.parseCall(t, e, !0) : t = this.consumeOptionalCharacter(nt) ? this.parseKeyedReadOrWrite(t, e, !0) : this.parseAccessMember(t, e, !0);
2806
+ else if (this.consumeOptionalCharacter(nt)) t = this.parseKeyedReadOrWrite(t, e, !1);
2807
+ else if (this.consumeOptionalCharacter(tt)) t = this.parseCall(t, e, !1);
2808
+ else if (this.consumeOptionalOperator("!")) t = new Ve(this.span(e), this.sourceSpan(e), t);
2809
+ else if (this.next.isTemplateLiteralEnd()) t = this.parseNoInterpolationTaggedTemplateLiteral(t, e);
2810
+ else if (this.next.isTemplateLiteralPart()) t = this.parseTaggedTemplateLiteral(t, e);
2811
+ else return t;
2812
+ }
2813
+ parsePrimary() {
2814
+ let e = this.inputIndex;
2815
+ if (this.consumeOptionalCharacter(tt)) {
2816
+ this.rparensExpected++;
2817
+ let t = this.parsePipe();
2818
+ return this.consumeOptionalCharacter(se) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(se)), this.rparensExpected--, new He(this.span(e), this.sourceSpan(e), t);
2819
+ } else {
2820
+ if (this.next.isKeywordNull()) return this.advance(), new I(this.span(e), this.sourceSpan(e), null);
2821
+ if (this.next.isKeywordUndefined()) return this.advance(), new I(this.span(e), this.sourceSpan(e), void 0);
2822
+ if (this.next.isKeywordTrue()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !0);
2823
+ if (this.next.isKeywordFalse()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !1);
2824
+ if (this.next.isKeywordIn()) return this.advance(), new I(this.span(e), this.sourceSpan(e), "in");
2825
+ if (this.next.isKeywordThis()) return this.advance(), new At(this.span(e), this.sourceSpan(e));
2826
+ if (this.consumeOptionalCharacter(nt)) {
2827
+ this.rbracketsExpected++;
2828
+ let t = this.parseExpressionList(ke);
2829
+ return this.rbracketsExpected--, this.expectCharacter(ke), new Oe(this.span(e), this.sourceSpan(e), t);
2830
+ } else {
2831
+ if (this.next.isCharacter(ot)) return this.parseLiteralMap();
2832
+ if (this.next.isIdentifier()) return this.parseAccessMember(new Y(this.span(e), this.sourceSpan(e)), e, !1);
2833
+ if (this.next.isNumber()) {
2834
+ let t = this.next.toNumber();
2835
+ return this.advance(), new I(this.span(e), this.sourceSpan(e), t);
2836
+ } else {
2837
+ if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
2838
+ if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
2839
+ if (this.next.isString() && this.next.kind === q.Plain) {
2840
+ let t = this.next.toString();
2841
+ return this.advance(), new I(this.span(e), this.sourceSpan(e), t);
2842
+ } else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new P(this.span(e), this.sourceSpan(e))) : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new P(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new P(this.span(e), this.sourceSpan(e)));
2843
+ }
2844
+ }
2845
+ }
2846
+ }
2847
+ parseExpressionList(e) {
2848
+ let t = [];
2849
+ do
2850
+ if (!this.next.isCharacter(e)) t.push(this.parsePipe());
2851
+ else break;
2852
+ while (this.consumeOptionalCharacter(Ce));
2853
+ return t;
2854
+ }
2855
+ parseLiteralMap() {
2856
+ let e = [], t = [], s = this.inputIndex;
2857
+ if (this.expectCharacter(ot), !this.consumeOptionalCharacter(be)) {
2858
+ this.rbracesExpected++;
2859
+ do {
2860
+ let r = this.inputIndex, i = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), l = {
2861
+ key: a,
2862
+ quoted: i
2863
+ };
2864
+ if (e.push(l), i) this.expectCharacter(ie), t.push(this.parsePipe());
2865
+ else if (this.consumeOptionalCharacter(ie)) t.push(this.parsePipe());
2866
+ else {
2867
+ l.isShorthandInitialized = !0;
2868
+ let h = this.span(r), f = this.sourceSpan(r);
2869
+ t.push(new le(h, f, f, new Y(h, f), a));
2870
+ }
2871
+ } while (this.consumeOptionalCharacter(Ce) && !this.next.isCharacter(be));
2872
+ this.rbracesExpected--, this.expectCharacter(be);
2873
+ }
2874
+ return new Fe(this.span(s), this.sourceSpan(s), e, t);
2875
+ }
2876
+ parseAccessMember(e, t, s) {
2877
+ let r = this.inputIndex, i = this.withContext(oe.Writable, () => {
2878
+ let h = this.expectIdentifierOrKeyword() ?? "";
2879
+ return h.length === 0 && this.error("Expected identifier for property access", e.span.end), h;
2880
+ }), a = this.sourceSpan(r), l;
2881
+ if (s) this.consumeOptionalOperator("=") ? (this.error("The '?.' operator cannot be used in the assignment"), l = new P(this.span(t), this.sourceSpan(t))) : l = new ce(this.span(t), this.sourceSpan(t), a, e, i);
2882
+ else if (this.consumeOptionalOperator("=")) {
2883
+ if (!(this.parseFlags & 1)) return this.error("Bindings cannot contain assignments"), new P(this.span(t), this.sourceSpan(t));
2884
+ let h = this.parseConditional();
2885
+ l = new $e(this.span(t), this.sourceSpan(t), a, e, i, h);
2886
+ } else l = new le(this.span(t), this.sourceSpan(t), a, e, i);
2887
+ return l;
2888
+ }
2889
+ parseCall(e, t, s) {
2890
+ let r = this.inputIndex;
2891
+ this.rparensExpected++;
2892
+ let i = this.parseCallArguments(), a = this.span(r, this.inputIndex).toAbsolute(this.absoluteOffset);
2893
+ this.expectCharacter(se), this.rparensExpected--;
2894
+ let l = this.span(t), h = this.sourceSpan(t);
2895
+ return s ? new pe(l, h, e, i, a) : new Ue(l, h, e, i, a);
2896
+ }
2897
+ parseCallArguments() {
2898
+ if (this.next.isCharacter(se)) return [];
2899
+ let e = [];
2900
+ do
2901
+ e.push(this.parsePipe());
2902
+ while (this.consumeOptionalCharacter(Ce));
2903
+ return e;
2904
+ }
2905
+ expectTemplateBindingKey() {
2906
+ let e = "", t = !1, s = this.currentAbsoluteOffset;
2907
+ do
2908
+ e += this.expectIdentifierOrKeywordOrString(), t = this.consumeOptionalOperator("-"), t && (e += "-");
2909
+ while (t);
2910
+ return {
2911
+ source: e,
2912
+ span: new O(s, s + e.length)
2913
+ };
2914
+ }
2915
+ parseTemplateBindings(e) {
2916
+ let t = [];
2917
+ for (t.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length;) {
2918
+ let s = this.parseLetBinding();
2919
+ if (s) t.push(s);
2920
+ else {
2921
+ let r = this.expectTemplateBindingKey(), i = this.parseAsBinding(r);
2922
+ i ? t.push(i) : (r.source = e.source + r.source.charAt(0).toUpperCase() + r.source.substring(1), t.push(...this.parseDirectiveKeywordBindings(r)));
2923
+ }
2924
+ this.consumeStatementTerminator();
2925
+ }
2926
+ return new Ot(t, [], this.errors);
2927
+ }
2928
+ parseKeyedReadOrWrite(e, t, s) {
2929
+ return this.withContext(oe.Writable, () => {
2930
+ this.rbracketsExpected++;
2931
+ let r = this.parsePipe();
2932
+ if (r instanceof P && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(ke), this.consumeOptionalOperator("=")) if (s) this.error("The '?.' operator cannot be used in the assignment");
2933
+ else {
2934
+ let i = this.parseConditional();
2935
+ return new De(this.span(t), this.sourceSpan(t), e, r, i);
2936
+ }
2937
+ else return s ? new ue(this.span(t), this.sourceSpan(t), e, r) : new Re(this.span(t), this.sourceSpan(t), e, r);
2938
+ return new P(this.span(t), this.sourceSpan(t));
2939
+ });
2940
+ }
2941
+ parseDirectiveKeywordBindings(e) {
2942
+ let t = [];
2943
+ this.consumeOptionalCharacter(ie);
2944
+ let s = this.getDirectiveBoundTarget(), r = this.currentAbsoluteOffset, i = this.parseAsBinding(e);
2945
+ i || (this.consumeStatementTerminator(), r = this.currentAbsoluteOffset);
2946
+ let a = new O(e.span.start, r);
2947
+ return t.push(new We(a, e, s)), i && t.push(i), t;
2948
+ }
2949
+ getDirectiveBoundTarget() {
2950
+ if (this.next === et || this.peekKeywordAs() || this.peekKeywordLet()) return null;
2951
+ let e = this.parsePipe(), { start: t, end: s } = e.span;
2952
+ return new W(e, this.input.substring(t, s), this.location, this.absoluteOffset + t, this.errors);
2953
+ }
2954
+ parseAsBinding(e) {
2955
+ if (!this.peekKeywordAs()) return null;
2956
+ this.advance();
2957
+ let t = this.expectTemplateBindingKey();
2958
+ this.consumeStatementTerminator();
2959
+ return new me(new O(e.span.start, this.currentAbsoluteOffset), t, e);
2960
+ }
2961
+ parseLetBinding() {
2962
+ if (!this.peekKeywordLet()) return null;
2963
+ let e = this.currentAbsoluteOffset;
2964
+ this.advance();
2965
+ let t = this.expectTemplateBindingKey(), s = null;
2966
+ this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
2967
+ return new me(new O(e, this.currentAbsoluteOffset), t, s);
2968
+ }
2969
+ parseNoInterpolationTaggedTemplateLiteral(e, t) {
2970
+ let s = this.parseNoInterpolationTemplateLiteral();
2971
+ return new he(this.span(t), this.sourceSpan(t), e, s);
2972
+ }
2973
+ parseNoInterpolationTemplateLiteral() {
2974
+ let e = this.next.strValue, t = this.inputIndex;
2975
+ this.advance();
2976
+ let s = this.span(t), r = this.sourceSpan(t);
2977
+ return new fe(s, r, [new de(s, r, e)], []);
2978
+ }
2979
+ parseTaggedTemplateLiteral(e, t) {
2980
+ let s = this.parseTemplateLiteral();
2981
+ return new he(this.span(t), this.sourceSpan(t), e, s);
2982
+ }
2983
+ parseTemplateLiteral() {
2984
+ let e = [], t = [], s = this.inputIndex;
2985
+ for (; this.next !== et;) {
2986
+ let r = this.next;
2987
+ if (r.isTemplateLiteralPart() || r.isTemplateLiteralEnd()) {
2988
+ let i = this.inputIndex;
2989
+ if (this.advance(), e.push(new de(this.span(i), this.sourceSpan(i), r.strValue)), r.isTemplateLiteralEnd()) break;
2990
+ } else if (r.isTemplateLiteralInterpolationStart()) {
2991
+ this.advance();
2992
+ let i = this.parsePipe();
2993
+ i instanceof P ? this.error("Template literal interpolation cannot be empty") : t.push(i);
2994
+ } else this.advance();
2995
+ }
2996
+ return new fe(this.span(s), this.sourceSpan(s), e, t);
2997
+ }
2998
+ consumeStatementTerminator() {
2999
+ this.consumeOptionalCharacter(Te) || this.consumeOptionalCharacter(Ce);
3000
+ }
3001
+ error(e, t = null) {
3002
+ this.errors.push(new Pe(e, this.input, this.locationText(t), this.location)), this.skip();
3003
+ }
3004
+ locationText(e = null) {
3005
+ return e ??= this.index, e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
3006
+ }
3007
+ _reportErrorForPrivateIdentifier(e, t) {
3008
+ let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
3009
+ t !== null && (s += `, ${t}`), this.error(s);
3010
+ }
3011
+ skip() {
3012
+ let e = this.next;
3013
+ for (; this.index < this.tokens.length && !e.isCharacter(Te) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(se)) && (this.rbracesExpected <= 0 || !e.isCharacter(be)) && (this.rbracketsExpected <= 0 || !e.isCharacter(ke)) && (!(this.context & oe.Writable) || !e.isOperator("="));) this.next.isError() && this.errors.push(new Pe(this.next.toString(), this.input, this.locationText(), this.location)), this.advance(), e = this.next;
3014
+ }
3015
+ }, Ft = class extends Pt {
3016
+ errors = [];
3017
+ visitPipe() {
3018
+ this.errors.push("pipes");
3019
+ }
3020
+ };
3021
+ Fr = new Map(Object.entries({
3022
+ class: "className",
3023
+ for: "htmlFor",
3024
+ formaction: "formAction",
3025
+ innerHtml: "innerHTML",
3026
+ readonly: "readOnly",
3027
+ tabindex: "tabIndex"
3028
+ }));
3029
+ Array.from(Fr).reduce((n, [e, t]) => (n.set(e, t), n), /* @__PURE__ */ new Map());
3030
+ new we(new qe());
3031
+ B(d.StyleMap), B(d.ClassMap), B(d.StyleProp), B(d.ClassProp), Ne(d.Attribute, !0), Ne(d.Property, !0), Ne(d.Attribute, !1);
3032
+ Ne(d.DomProperty, !0), Ne(d.DomProperty, !1), B(d.Attribute), B(d.StyleMap), B(d.ClassMap), B(d.StyleProp), B(d.ClassProp);
3033
+ new Set([
3034
+ d.Listener,
3035
+ d.TwoWayListener,
3036
+ d.StyleMap,
3037
+ d.ClassMap,
3038
+ d.StyleProp,
3039
+ d.ClassProp,
3040
+ d.Property,
3041
+ d.TwoWayProperty,
3042
+ d.DomProperty,
3043
+ d.Attribute
3044
+ ]);
3045
+ p.interpolate, p.interpolate1, p.interpolate2, p.interpolate3, p.interpolate4, p.interpolate5, p.interpolate6, p.interpolate7, p.interpolate8, p.interpolateV;
3046
+ new Map([
3047
+ ["window", p.resolveWindow],
3048
+ ["document", p.resolveDocument],
3049
+ ["body", p.resolveBody]
3050
+ ]);
3051
+ new Map([
3052
+ [D.HTML, p.sanitizeHtml],
3053
+ [D.RESOURCE_URL, p.sanitizeResourceUrl],
3054
+ [D.SCRIPT, p.sanitizeScript],
3055
+ [D.STYLE, p.sanitizeStyle],
3056
+ [D.URL, p.sanitizeUrl]
3057
+ ]);
3058
+ new Map([[D.HTML, p.trustConstantHtml], [D.RESOURCE_URL, p.trustConstantResourceUrl]]);
3059
+ (function(n) {
3060
+ n[n.None = 0] = "None", n[n.ViewContextRead = 1] = "ViewContextRead", n[n.ViewContextWrite = 2] = "ViewContextWrite", n[n.SideEffectful = 4] = "SideEffectful";
3061
+ })(Xn || (Xn = {}));
3062
+ new Map([
3063
+ [U.Property, H.Property],
3064
+ [U.TwoWay, H.TwoWayProperty],
3065
+ [U.Attribute, H.Attribute],
3066
+ [U.Class, H.ClassName],
3067
+ [U.Style, H.StyleProperty],
3068
+ [U.Animation, H.Animation]
3069
+ ]);
3070
+ (function(n) {
3071
+ n[n.NG_CONTENT = 0] = "NG_CONTENT", n[n.STYLE = 1] = "STYLE", n[n.STYLESHEET = 2] = "STYLESHEET", n[n.SCRIPT = 3] = "SCRIPT", n[n.OTHER = 4] = "OTHER";
3072
+ })(Jn || (Jn = {}));
3073
+ (function(n) {
3074
+ n.IDLE = "idle", n.TIMER = "timer", n.INTERACTION = "interaction", n.IMMEDIATE = "immediate", n.HOVER = "hover", n.VIEWPORT = "viewport", n.NEVER = "never";
3075
+ })(Yn || (Yn = {}));
3076
+ ms = "%COMP%";
3077
+ `${ms}`;
3078
+ `${ms}`;
3079
+ (function(n) {
3080
+ n[n.Extract = 0] = "Extract", n[n.Merge = 1] = "Merge";
3081
+ })(Qn || (Qn = {}));
3082
+ new Nt("20.0.5");
3083
+ qr = (n) => we.prototype._commentStart(n);
3084
+ ys = Ge((n, e) => e.parseBinding(n, "", 0));
3085
+ Ge((n, e) => e.parseSimpleBinding(n, "", 0));
3086
+ _s = Ge((n, e) => e.parseAction(n, "", 0)), Cs = Ge((n, e) => e.parseInterpolationExpression(n, "", 0)), Ts = Ge((n, e) => e.parseTemplateBindings("", n, "", 0, 0), !1);
3087
+ Xr = (n, e, t) => {
3088
+ if (!(n && e == null)) return Array.isArray(e) || typeof e == "string" ? e[t < 0 ? e.length + t : t] : e.at(t);
3089
+ }, ut = Xr;
3090
+ qt = class {
3091
+ text;
3092
+ constructor(e) {
3093
+ this.text = e;
3094
+ }
3095
+ getCharacterIndex(e, t) {
3096
+ return Ss(this.text, e, t);
3097
+ }
3098
+ getCharacterLastIndex(e, t) {
3099
+ return xs(this.text, e, t);
3100
+ }
3101
+ transformSpan(e, { stripSpaces: t = !1, hasParentParens: s = !1 } = {}) {
3102
+ if (!t) return ze(e);
3103
+ let { outerSpan: r, innerSpan: i, hasParens: a } = vs(e, this.text, s), l = ze(i);
3104
+ return a && (l.extra = {
3105
+ parenthesized: !0,
3106
+ parenStart: r.start,
3107
+ parenEnd: r.end
3108
+ }), l;
3109
+ }
3110
+ createNode(e, { stripSpaces: t = !0, hasParentParens: s = !1 } = {}) {
3111
+ let { type: r, start: i, end: a } = e, l = {
3112
+ ...e,
3113
+ ...this.transformSpan({
3114
+ start: i,
3115
+ end: a
3116
+ }, {
3117
+ stripSpaces: t,
3118
+ hasParentParens: s
3119
+ })
3120
+ };
3121
+ switch (r) {
3122
+ case "NumericLiteral":
3123
+ case "StringLiteral": {
3124
+ let h = this.text.slice(l.start, l.end), { value: f } = l;
3125
+ l.extra = {
3126
+ ...l.extra,
3127
+ raw: h,
3128
+ rawValue: f
3129
+ };
3130
+ break;
3131
+ }
3132
+ case "ObjectProperty": {
3133
+ let { shorthand: h } = l;
3134
+ h && (l.extra = {
3135
+ ...l.extra,
3136
+ shorthand: h
3137
+ });
3138
+ break;
3139
+ }
3140
+ }
3141
+ return l;
3142
+ }
3143
+ }, ks = qt;
3144
+ Je = class extends ks {
3145
+ constructor(t, s) {
3146
+ super(s);
3147
+ V(this, u);
3148
+ V(this, Ye);
3149
+ V(this, xe);
3150
+ te(this, Ye, t), te(this, xe, s);
3151
+ }
3152
+ get node() {
3153
+ return c(this, u, x).call(this, L(this, Ye));
3154
+ }
3155
+ transformNode(t) {
3156
+ return c(this, u, pt).call(this, t);
3157
+ }
3158
+ };
3159
+ Ye = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakSet(), w = function(t, { stripSpaces: s = !0, hasParentParens: r = !1 } = {}) {
3160
+ return this.createNode(t, {
3161
+ stripSpaces: s,
3162
+ hasParentParens: r
3163
+ });
3164
+ }, Xe = function(t, s, { computed: r, optional: i, end: a = R(s), hasParentParens: l = !1 }) {
3165
+ if (Is(t, L(this, xe)) || t.sourceSpan.start === s.start) return s;
3166
+ let h = c(this, u, x).call(this, t), f = bs(h);
3167
+ return c(this, u, w).call(this, {
3168
+ type: i || f ? "OptionalMemberExpression" : "MemberExpression",
3169
+ object: h,
3170
+ property: s,
3171
+ computed: r,
3172
+ ...i ? { optional: !0 } : f ? { optional: !1 } : void 0,
3173
+ start: $(h),
3174
+ end: a
3175
+ }, { hasParentParens: l });
3176
+ }, x = function(t, s) {
3177
+ return c(this, u, pt).call(this, t, s);
3178
+ }, pt = function(t, s) {
3179
+ let { isInParentParens: r } = {
3180
+ isInParentParens: !1,
3181
+ ...s
3182
+ };
3183
+ if (t instanceof Vt) {
3184
+ let { expressions: i } = t;
3185
+ if (i.length !== 1) throw new Error("Unexpected 'Interpolation'");
3186
+ return c(this, u, x).call(this, i[0]);
3187
+ }
3188
+ if (t instanceof X) return c(this, u, w).call(this, {
3189
+ type: "UnaryExpression",
3190
+ prefix: !0,
3191
+ argument: c(this, u, x).call(this, t.expr),
3192
+ operator: t.operator,
3193
+ ...t.sourceSpan
3194
+ }, { hasParentParens: r });
3195
+ if (t instanceof A) {
3196
+ let { left: i, operation: a, right: l } = t, h = c(this, u, x).call(this, i), f = c(this, u, x).call(this, l), y = {
3197
+ left: h,
3198
+ right: f,
3199
+ start: $(h),
3200
+ end: R(f)
3201
+ };
3202
+ return a === "&&" || a === "||" || a === "??" ? c(this, u, w).call(this, {
3203
+ ...y,
3204
+ type: "LogicalExpression",
3205
+ operator: a
3206
+ }, { hasParentParens: r }) : c(this, u, w).call(this, {
3207
+ ...y,
3208
+ type: "BinaryExpression",
3209
+ operator: a
3210
+ }, { hasParentParens: r });
3211
+ }
3212
+ if (t instanceof Be) {
3213
+ let { exp: i, name: a, args: l } = t, h = c(this, u, x).call(this, i), f = $(h), v = R(h), E = this.getCharacterIndex(/\S/, this.getCharacterIndex("|", v) + 1), y = c(this, u, w).call(this, {
3214
+ type: "Identifier",
3215
+ name: a,
3216
+ start: E,
3217
+ end: E + a.length
3218
+ }), T = l.map((k) => c(this, u, x).call(this, k));
3219
+ return c(this, u, w).call(this, {
3220
+ type: "NGPipeExpression",
3221
+ left: h,
3222
+ right: y,
3223
+ arguments: T,
3224
+ start: f,
3225
+ end: R(T.length === 0 ? y : ut(!1, T, -1))
3226
+ }, { hasParentParens: r });
3227
+ }
3228
+ if (t instanceof Le) return c(this, u, w).call(this, {
3229
+ type: "NGChainedExpression",
3230
+ expressions: t.expressions.map((i) => c(this, u, x).call(this, i)),
3231
+ ...t.sourceSpan
3232
+ }, { hasParentParens: r });
3233
+ if (t instanceof Me) {
3234
+ let { condition: i, trueExp: a, falseExp: l } = t, h = c(this, u, x).call(this, i), f = c(this, u, x).call(this, a), v = c(this, u, x).call(this, l);
3235
+ return c(this, u, w).call(this, {
3236
+ type: "ConditionalExpression",
3237
+ test: h,
3238
+ consequent: f,
3239
+ alternate: v,
3240
+ start: $(h),
3241
+ end: R(v)
3242
+ }, { hasParentParens: r });
3243
+ }
3244
+ if (t instanceof P) return c(this, u, w).call(this, {
3245
+ type: "NGEmptyExpression",
3246
+ ...t.sourceSpan
3247
+ }, { hasParentParens: r });
3248
+ if (t instanceof Y) return c(this, u, w).call(this, {
3249
+ type: "ThisExpression",
3250
+ ...t.sourceSpan
3251
+ }, { hasParentParens: r });
3252
+ if (t instanceof Re || t instanceof ue) return c(this, u, Xe).call(this, t.receiver, c(this, u, x).call(this, t.key), {
3253
+ computed: !0,
3254
+ optional: t instanceof ue,
3255
+ end: t.sourceSpan.end,
3256
+ hasParentParens: r
3257
+ });
3258
+ if (t instanceof Oe) return c(this, u, w).call(this, {
3259
+ type: "ArrayExpression",
3260
+ elements: t.expressions.map((i) => c(this, u, x).call(this, i)),
3261
+ ...t.sourceSpan
3262
+ }, { hasParentParens: r });
3263
+ if (t instanceof Fe) {
3264
+ let { keys: i, values: a } = t, l = a.map((f) => c(this, u, x).call(this, f)), h = i.map(({ key: f, quoted: v }, E) => {
3265
+ let y = l[E], T = $(y), k = R(y), F = this.getCharacterIndex(/\S/, E === 0 ? t.sourceSpan.start + 1 : this.getCharacterIndex(",", R(l[E - 1])) + 1), ye = {
3266
+ start: F,
3267
+ end: T === F ? k : this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex(":", T - 1) - 1) + 1
3268
+ }, j = v ? c(this, u, w).call(this, {
3269
+ type: "StringLiteral",
3270
+ value: f,
3271
+ ...ye
3272
+ }) : c(this, u, w).call(this, {
3273
+ type: "Identifier",
3274
+ name: f,
3275
+ ...ye
3276
+ }), en = j.end < j.start || F === T;
3277
+ return c(this, u, w).call(this, {
3278
+ type: "ObjectProperty",
3279
+ key: j,
3280
+ value: y,
3281
+ shorthand: en,
3282
+ computed: !1,
3283
+ start: $(j),
3284
+ end: k
3285
+ });
3286
+ });
3287
+ return c(this, u, w).call(this, {
3288
+ type: "ObjectExpression",
3289
+ properties: h,
3290
+ ...t.sourceSpan
3291
+ }, { hasParentParens: r });
3292
+ }
3293
+ if (t instanceof I) {
3294
+ let { value: i } = t;
3295
+ switch (typeof i) {
3296
+ case "boolean": return c(this, u, w).call(this, {
3297
+ type: "BooleanLiteral",
3298
+ value: i,
3299
+ ...t.sourceSpan
3300
+ }, { hasParentParens: r });
3301
+ case "number": return c(this, u, w).call(this, {
3302
+ type: "NumericLiteral",
3303
+ value: i,
3304
+ ...t.sourceSpan
3305
+ }, { hasParentParens: r });
3306
+ case "object": return c(this, u, w).call(this, {
3307
+ type: "NullLiteral",
3308
+ ...t.sourceSpan
3309
+ }, { hasParentParens: r });
3310
+ case "string": return c(this, u, w).call(this, {
3311
+ type: "StringLiteral",
3312
+ value: i,
3313
+ ...t.sourceSpan
3314
+ }, { hasParentParens: r });
3315
+ case "undefined": return c(this, u, w).call(this, {
3316
+ type: "Identifier",
3317
+ name: "undefined",
3318
+ ...t.sourceSpan
3319
+ }, { hasParentParens: r });
3320
+ default: throw new Error(`Unexpected LiteralPrimitive value type ${typeof i}`);
3321
+ }
3322
+ }
3323
+ if (t instanceof Ue || t instanceof pe) {
3324
+ let i = t instanceof pe, { receiver: a, args: l } = t, h = l.length === 1 ? [c(this, u, x).call(this, l[0], { isInParentParens: !0 })] : l.map((y) => c(this, u, x).call(this, y)), f = c(this, u, x).call(this, a), v = bs(f), E = i || v ? "OptionalCallExpression" : "CallExpression";
3325
+ return c(this, u, w).call(this, {
3326
+ type: E,
3327
+ callee: f,
3328
+ arguments: h,
3329
+ ...E === "OptionalCallExpression" ? { optional: i } : void 0,
3330
+ start: $(f),
3331
+ end: t.sourceSpan.end
3332
+ }, { hasParentParens: r });
3333
+ }
3334
+ if (t instanceof Ve) {
3335
+ let i = c(this, u, x).call(this, t.expression);
3336
+ return c(this, u, w).call(this, {
3337
+ type: "TSNonNullExpression",
3338
+ expression: i,
3339
+ start: $(i),
3340
+ end: t.sourceSpan.end
3341
+ }, { hasParentParens: r });
3342
+ }
3343
+ if (t instanceof Q || t instanceof K || t instanceof Z) {
3344
+ let i = t instanceof Q ? "!" : t instanceof K ? "typeof" : t instanceof Z ? "void" : void 0;
3345
+ if (!i) throw new Error("Unexpected expression.");
3346
+ let { start: a } = t.sourceSpan;
3347
+ if (i === "typeof" || i === "void") {
3348
+ let h = this.text.lastIndexOf(i, a);
3349
+ if (h === -1) throw new Error(`Cannot find operator '${i}' from index ${a} in ${JSON.stringify(this.text)}`);
3350
+ a = h;
3351
+ }
3352
+ let l = c(this, u, x).call(this, t.expression);
3353
+ return c(this, u, w).call(this, {
3354
+ type: "UnaryExpression",
3355
+ prefix: !0,
3356
+ operator: i,
3357
+ argument: l,
3358
+ start: a,
3359
+ end: R(l)
3360
+ }, { hasParentParens: r });
3361
+ }
3362
+ if (t instanceof le || t instanceof ce) {
3363
+ let { receiver: i, name: a } = t, l = this.getCharacterLastIndex(/\S/, t.sourceSpan.end - 1) + 1, h = c(this, u, w).call(this, {
3364
+ type: "Identifier",
3365
+ name: a,
3366
+ start: l - a.length,
3367
+ end: l
3368
+ }, Is(i, L(this, xe)) ? { hasParentParens: r } : {});
3369
+ return c(this, u, Xe).call(this, i, h, {
3370
+ computed: !1,
3371
+ optional: t instanceof ce,
3372
+ hasParentParens: r
3373
+ });
3374
+ }
3375
+ if (t instanceof De) {
3376
+ let i = c(this, u, x).call(this, t.key), a = c(this, u, x).call(this, t.value), l = c(this, u, Xe).call(this, t.receiver, i, {
3377
+ computed: !0,
3378
+ optional: !1,
3379
+ end: this.getCharacterIndex("]", R(i)) + 1
3380
+ });
3381
+ return c(this, u, w).call(this, {
3382
+ type: "AssignmentExpression",
3383
+ left: l,
3384
+ operator: "=",
3385
+ right: a,
3386
+ start: $(l),
3387
+ end: R(a)
3388
+ }, { hasParentParens: r });
3389
+ }
3390
+ if (t instanceof $e) {
3391
+ let { receiver: i, name: a, value: l } = t, h = c(this, u, x).call(this, l), f = this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex("=", $(h) - 1) - 1) + 1, v = c(this, u, w).call(this, {
3392
+ type: "Identifier",
3393
+ name: a,
3394
+ start: f - a.length,
3395
+ end: f
3396
+ }), E = c(this, u, Xe).call(this, i, v, {
3397
+ computed: !1,
3398
+ optional: !1
3399
+ });
3400
+ return c(this, u, w).call(this, {
3401
+ type: "AssignmentExpression",
3402
+ left: E,
3403
+ operator: "=",
3404
+ right: h,
3405
+ start: $(E),
3406
+ end: R(h)
3407
+ }, { hasParentParens: r });
3408
+ }
3409
+ if (t instanceof he) return c(this, u, w).call(this, {
3410
+ type: "TaggedTemplateExpression",
3411
+ tag: c(this, u, x).call(this, t.tag),
3412
+ quasi: c(this, u, x).call(this, t.template),
3413
+ ...t.sourceSpan
3414
+ });
3415
+ if (t instanceof fe) {
3416
+ let { elements: i, expressions: a } = t;
3417
+ return c(this, u, w).call(this, {
3418
+ type: "TemplateLiteral",
3419
+ quasis: i.map((l) => c(this, u, x).call(this, l, { parent: t })),
3420
+ expressions: a.map((l) => c(this, u, x).call(this, l)),
3421
+ ...t.sourceSpan
3422
+ });
3423
+ }
3424
+ if (t instanceof de) {
3425
+ let { elements: i } = s.parent, a = i.indexOf(t), l = a === 0, h = a === i.length - 1, f = t.sourceSpan.end - (h ? 1 : 0), v = t.sourceSpan.start + (l ? 1 : 0), E = this.text.slice(v, f);
3426
+ return c(this, u, w).call(this, {
3427
+ type: "TemplateElement",
3428
+ value: {
3429
+ cooked: t.text,
3430
+ raw: E
3431
+ },
3432
+ start: v,
3433
+ end: f,
3434
+ tail: h
3435
+ }, { stripSpaces: !1 });
3436
+ }
3437
+ if (t instanceof He) return c(this, u, pt).call(this, t.expression);
3438
+ throw new Error(`Unexpected node type '${t.constructor.name}'`);
3439
+ };
3440
+ zt = class extends Je {
3441
+ constructor(t, s) {
3442
+ super(void 0, s);
3443
+ V(this, g);
3444
+ V(this, Se);
3445
+ V(this, ee);
3446
+ te(this, Se, t), te(this, ee, s);
3447
+ for (let r of t) c(this, g, Ms).call(this, r);
3448
+ }
3449
+ get expressions() {
3450
+ return c(this, g, Rs).call(this);
3451
+ }
3452
+ };
3453
+ Se = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakSet(), Ls = function() {
3454
+ return L(this, Se)[0].key;
3455
+ }, N = function(t, { stripSpaces: s = !0 } = {}) {
3456
+ return this.createNode(t, { stripSpaces: s });
3457
+ }, Gt = function(t) {
3458
+ return this.transformNode(t);
3459
+ }, Xt = function(t) {
3460
+ return Es(t.slice(L(this, g, Ls).source.length));
3461
+ }, Jt = function(t) {
3462
+ let s = L(this, ee);
3463
+ if (s[t.start] !== "\"" && s[t.start] !== "'") return;
3464
+ let r = s[t.start], i = !1;
3465
+ for (let a = t.start + 1; a < s.length; a++) switch (s[a]) {
3466
+ case r: if (!i) {
3467
+ t.end = a + 1;
3468
+ return;
3469
+ }
3470
+ default:
3471
+ i = !1;
3472
+ break;
3473
+ case "\\":
3474
+ i = !i;
3475
+ break;
3476
+ }
3477
+ }, Ms = function(t) {
3478
+ c(this, g, Jt).call(this, t.key.span), Ps(t) && t.value && c(this, g, Jt).call(this, t.value.span);
3479
+ }, $s = function(t) {
3480
+ if (!t.value || t.value.source) return t.value;
3481
+ let s = this.getCharacterIndex(/\S/, t.sourceSpan.start);
3482
+ return {
3483
+ source: "$implicit",
3484
+ span: {
3485
+ start: s,
3486
+ end: s
3487
+ }
3488
+ };
3489
+ }, Rs = function() {
3490
+ let t = L(this, Se), [s] = t, r = L(this, ee).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? t.slice(1) : t, i = [], a = null;
3491
+ for (let [l, h] of r.entries()) {
3492
+ if (a && As(a) && Ps(h) && h.value && h.value.source === a.key.source) {
3493
+ let f = c(this, g, N).call(this, {
3494
+ type: "NGMicrosyntaxKey",
3495
+ name: h.key.source,
3496
+ ...h.key.span
3497
+ }), v = (T, k) => ({
3498
+ ...T,
3499
+ ...this.transformSpan({
3500
+ start: T.start,
3501
+ end: k
3502
+ })
3503
+ }), E = (T) => ({
3504
+ ...v(T, f.end),
3505
+ alias: f
3506
+ }), y = i.pop();
3507
+ if (y.type === "NGMicrosyntaxExpression") i.push(E(y));
3508
+ else if (y.type === "NGMicrosyntaxKeyedExpression") {
3509
+ let T = E(y.expression);
3510
+ i.push(v({
3511
+ ...y,
3512
+ expression: T
3513
+ }, T.end));
3514
+ } else throw new Error(`Unexpected type ${y.type}`);
3515
+ } else i.push(c(this, g, Ds).call(this, h, l));
3516
+ a = h;
3517
+ }
3518
+ return c(this, g, N).call(this, {
3519
+ type: "NGMicrosyntax",
3520
+ body: i,
3521
+ ...i.length === 0 ? t[0].sourceSpan : {
3522
+ start: i[0].start,
3523
+ end: ut(!1, i, -1).end
3524
+ }
3525
+ });
3526
+ }, Ds = function(t, s) {
3527
+ if (As(t)) {
3528
+ let { key: r, value: i } = t;
3529
+ return i ? s === 0 ? c(this, g, N).call(this, {
3530
+ type: "NGMicrosyntaxExpression",
3531
+ expression: c(this, g, Gt).call(this, i.ast),
3532
+ alias: null,
3533
+ ...i.sourceSpan
3534
+ }) : c(this, g, N).call(this, {
3535
+ type: "NGMicrosyntaxKeyedExpression",
3536
+ key: c(this, g, N).call(this, {
3537
+ type: "NGMicrosyntaxKey",
3538
+ name: c(this, g, Xt).call(this, r.source),
3539
+ ...r.span
3540
+ }),
3541
+ expression: c(this, g, N).call(this, {
3542
+ type: "NGMicrosyntaxExpression",
3543
+ expression: c(this, g, Gt).call(this, i.ast),
3544
+ alias: null,
3545
+ ...i.sourceSpan
3546
+ }),
3547
+ start: r.span.start,
3548
+ end: i.sourceSpan.end
3549
+ }) : c(this, g, N).call(this, {
3550
+ type: "NGMicrosyntaxKey",
3551
+ name: c(this, g, Xt).call(this, r.source),
3552
+ ...r.span
3553
+ });
3554
+ } else {
3555
+ let { key: r, sourceSpan: i } = t;
3556
+ if (/^let\s$/.test(L(this, ee).slice(i.start, i.start + 4))) {
3557
+ let { value: l } = t;
3558
+ return c(this, g, N).call(this, {
3559
+ type: "NGMicrosyntaxLet",
3560
+ key: c(this, g, N).call(this, {
3561
+ type: "NGMicrosyntaxKey",
3562
+ name: r.source,
3563
+ ...r.span
3564
+ }),
3565
+ value: l ? c(this, g, N).call(this, {
3566
+ type: "NGMicrosyntaxKey",
3567
+ name: l.source,
3568
+ ...l.span
3569
+ }) : null,
3570
+ start: i.start,
3571
+ end: l ? l.span.end : r.span.end
3572
+ });
3573
+ } else {
3574
+ let l = c(this, g, $s).call(this, t);
3575
+ return c(this, g, N).call(this, {
3576
+ type: "NGMicrosyntaxAs",
3577
+ key: c(this, g, N).call(this, {
3578
+ type: "NGMicrosyntaxKey",
3579
+ name: l.source,
3580
+ ...l.span
3581
+ }),
3582
+ alias: c(this, g, N).call(this, {
3583
+ type: "NGMicrosyntaxKey",
3584
+ name: r.source,
3585
+ ...r.span
3586
+ }),
3587
+ start: l.span.start,
3588
+ end: r.span.end
3589
+ });
3590
+ }
3591
+ }
3592
+ };
3593
+ Fs = (n) => ht(ys(n));
3594
+ Vs = (n) => ht(Cs(n)), Yt = (n) => ht(_s(n)), Us = (n) => Os(Ts(n));
3595
+ Jr = ft(Yt), Yr = ft(Fs), Qr = ft(Vs), Kr = ft(Us);
3596
+ ho = Zt;
3597
+ }))();
3598
+ export { ho as default, Kt as parsers };