@shopify/create-app 4.0.0 → 4.2.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 (65) hide show
  1. package/README.md +2 -2
  2. package/dist/{acorn-B7Z74OJ7.js → acorn-7AGUHU7X.js} +3 -3
  3. package/dist/{analytics-XUVDQAYG.js → analytics-DXTA2BTW.js} +13 -13
  4. package/dist/{analytics-XLT3JDGP.js → analytics-VN37446T.js} +13 -13
  5. package/dist/angular-WQAMH4CA.js +3117 -0
  6. package/dist/{babel-CJ53QMMG.js → babel-ANYZPGZG.js} +3 -3
  7. package/dist/{chunk-UX6FRPFM.js → chunk-325YJ3GA.js} +588 -347
  8. package/dist/{chunk-JUV7D377.js → chunk-6ZCMRIIK.js} +4 -4
  9. package/dist/{chunk-6OOTYTVB.js → chunk-7FVFOTP5.js} +218 -109
  10. package/dist/{chunk-YUPQUA3D.js → chunk-AJMNFS2U.js} +138 -138
  11. package/dist/{chunk-QN5KFM2B.js → chunk-BGBNK6AD.js} +2 -2
  12. package/dist/{chunk-CE4S2SGM.js → chunk-CJMNB2EJ.js} +232 -151
  13. package/dist/{chunk-4CS37CS5.js → chunk-EYELFNC7.js} +29 -33
  14. package/dist/{chunk-DNF3EUMN.js → chunk-F6LQTIYO.js} +8 -5
  15. package/dist/{chunk-YIHECXVH.js → chunk-HDGI2UBV.js} +60 -86
  16. package/dist/{chunk-ANIFE3UR.js → chunk-IEVOZUJ7.js} +2 -2
  17. package/dist/{chunk-37G3KLO2.js → chunk-KAVGZDPZ.js} +3 -3
  18. package/dist/{chunk-UMSYG5WJ.js → chunk-M2UQMZTP.js} +24 -17
  19. package/dist/{chunk-IGDZPTDH.js → chunk-RWI7QPAN.js} +8 -8
  20. package/dist/{chunk-LNOZTAML.js → chunk-RXMZPVTQ.js} +559 -898
  21. package/dist/{chunk-DHAC6KEL.js → chunk-S2C3LKO2.js} +30 -29
  22. package/dist/{chunk-DWGHKWV5.js → chunk-SAVFAAHX.js} +20 -20
  23. package/dist/{chunk-QMXFPY46.js → chunk-W3I47I43.js} +3 -3
  24. package/dist/{chunk-STHW3YIX.js → chunk-ZPFFIMXV.js} +10894 -2147
  25. package/dist/{conf-store-RAVX2WFV.js → conf-store-A3JOFSUU.js} +7 -7
  26. package/dist/{custom-oclif-loader-354VAVF4.js → custom-oclif-loader-5SWH4GTV.js} +3 -3
  27. package/dist/{deprecations-2QTB3736.js → deprecations-2ELX7ROT.js} +9 -9
  28. package/dist/{devtools-4EY2MEDN.js → devtools-FXOPST2H.js} +2 -2
  29. package/dist/dist-U3FLPMJE.js +510 -0
  30. package/dist/{environments-LTWWRWCC.js → environments-XMNHPGBO.js} +10 -10
  31. package/dist/{error-handler-KHJE653Z.js → error-handler-YHPBH53J.js} +13 -13
  32. package/dist/{estree-UBDGCTT2.js → estree-E53K34OK.js} +4 -4
  33. package/dist/{flow-FUOSTAYW.js → flow-LFBHZSUI.js} +3 -3
  34. package/dist/{fs-XENRLBMU.js → fs-O3X2BDXD.js} +3 -3
  35. package/dist/{glimmer-XBFG6K3P.js → glimmer-CVQMANCJ.js} +3 -3
  36. package/dist/{graphql-C5WOGPMM.js → graphql-ZOTIIZAG.js} +3 -3
  37. package/dist/hooks/postrun.js +4 -4
  38. package/dist/hooks/prerun.js +6 -6
  39. package/dist/{html-QRIT6TOU.js → html-WQ23J64T.js} +924 -830
  40. package/dist/index.js +5847 -4583
  41. package/dist/index.test.js +7251 -8136
  42. package/dist/{is-global-KZMSAFQT.js → is-global-ET3YL7TT.js} +3 -3
  43. package/dist/{is-wsl-YAJ3DFN7.js → is-wsl-BJRAPRQU.js} +6 -5
  44. package/dist/{latest-version-3PFKLJZM.js → latest-version-KKU2QQZW.js} +2 -2
  45. package/dist/{lib-HWIFANCM.js → lib-QBGNJ3PZ.js} +3 -3
  46. package/dist/{local-NQALOHJX.js → local-QWRI6OFV.js} +2 -4
  47. package/dist/{markdown-M5KQ3F3U.js → markdown-OIW6O7KK.js} +4 -4
  48. package/dist/{meriyah-QX42RF3Q.js → meriyah-KMVSYB54.js} +3 -3
  49. package/dist/{metadata-FXCUDE5I.js → metadata-VZBMAQQC.js} +3 -3
  50. package/dist/{node-package-manager-7R7HDW4R.js → node-package-manager-W33EW2VU.js} +11 -11
  51. package/dist/{notifications-system-7QMDSL5Y.js → notifications-system-ZFKFHX3O.js} +14 -14
  52. package/dist/{output-PQSQ7U45.js → output-5PDIDYKG.js} +3 -3
  53. package/dist/{postcss-4PDU7IQT.js → postcss-WSM6XINW.js} +7 -5
  54. package/dist/{prettier-UAG5TKE4.js → prettier-3LMT6EEA.js} +2 -2
  55. package/dist/{system-W4MMMHEV.js → system-X6HCVR7P.js} +9 -9
  56. package/dist/tsconfig.tsbuildinfo +1 -1
  57. package/dist/{typescript-LCSPQIRD.js → typescript-Q4XZM2A4.js} +3 -3
  58. package/dist/{ui-2FROV2IT.js → ui-IN56X5S4.js} +9 -9
  59. package/dist/{upgrade-FAUZ7VAF.js → upgrade-OAFAJX4I.js} +15 -15
  60. package/dist/{version-HKPHVW5M.js → version-D3H6OPFX.js} +10 -10
  61. package/dist/{version-T73ZLUJK.js → version-QYHHSKFX.js} +2 -2
  62. package/dist/{yaml-VGESS2QB.js → yaml-NI5GGQLI.js} +3 -3
  63. package/oclif.manifest.json +1 -1
  64. package/package.json +4 -4
  65. package/dist/angular-IKHE4H7C.js +0 -2771
@@ -1,2771 +0,0 @@
1
- import {
2
- __esm,
3
- init_cjs_shims
4
- } from "./chunk-PKR7KJ6P.js";
5
-
6
- // ../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/angular.mjs
7
- function ki(t24) {
8
- return typeof t24 == "string" ? (e) => e === t24 : (e) => t24.test(e);
9
- }
10
- function pn(t24, e, n) {
11
- let s = ki(e);
12
- for (let i = n; i < t24.length; i++) {
13
- let r = t24[i];
14
- if (s(r)) return i;
15
- }
16
- throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t24)}`);
17
- }
18
- function hn(t24) {
19
- return t24.slice(0, 1).toLowerCase() + t24.slice(1);
20
- }
21
- function be(t24) {
22
- let { start: e, end: n } = t24;
23
- return { start: e, end: n, range: [e, n] };
24
- }
25
- function un(t24) {
26
- return !!t24.extra?.parenthesized;
27
- }
28
- function ue(t24) {
29
- return t24.type === "TSNonNullExpression" && !un(t24) ? ue(t24.expression) : (t24.type === "OptionalCallExpression" || t24.type === "OptionalMemberExpression") && !un(t24);
30
- }
31
- function bi(t24, e) {
32
- return t24 == null || e == null ? t24 == e : t24.isEquivalent(e);
33
- }
34
- function Ai(t24, e, n) {
35
- let s = t24.length;
36
- if (s !== e.length) return !1;
37
- for (let i = 0; i < s; i++) if (!n(t24[i], e[i])) return !1;
38
- return !0;
39
- }
40
- function Ge(t24, e) {
41
- return Ai(t24, e, (n, s) => n.isEquivalent(s));
42
- }
43
- function Ji(t24) {
44
- return t24 >= os && t24 <= as || t24 == ds;
45
- }
46
- function W(t24) {
47
- return Oi <= t24 && t24 <= Fi;
48
- }
49
- function Dt(t24) {
50
- return t24 >= hs && t24 <= fs || t24 >= qt && t24 <= jt;
51
- }
52
- function Mn(t24) {
53
- return t24 === cs || t24 === ls || t24 === $t;
54
- }
55
- function he(t24, e, n) {
56
- return new A(t24, e, h.Character, n, String.fromCharCode(n));
57
- }
58
- function cr(t24, e, n) {
59
- return new A(t24, e, h.Identifier, 0, n);
60
- }
61
- function ur(t24, e, n) {
62
- return new A(t24, e, h.PrivateIdentifier, 0, n);
63
- }
64
- function pr(t24, e, n) {
65
- return new A(t24, e, h.Keyword, 0, n);
66
- }
67
- function Y(t24, e, n) {
68
- return new A(t24, e, h.Operator, 0, n);
69
- }
70
- function hr(t24, e, n) {
71
- return new A(t24, e, h.Number, n, "");
72
- }
73
- function fr(t24, e, n) {
74
- return new A(t24, e, h.Error, 0, n);
75
- }
76
- function dr(t24, e, n) {
77
- return new A(t24, e, h.RegExpBody, 0, n);
78
- }
79
- function mr(t24, e, n) {
80
- return new A(t24, e, h.RegExpFlags, 0, n);
81
- }
82
- function Zn(t24) {
83
- return hs <= t24 && t24 <= fs || qt <= t24 && t24 <= jt || t24 == Xe || t24 == Wt;
84
- }
85
- function es(t24) {
86
- return Dt(t24) || W(t24) || t24 == Xe || t24 == Wt;
87
- }
88
- function gr(t24) {
89
- return t24 == Hi || t24 == Vi;
90
- }
91
- function vr(t24) {
92
- return t24 == ps || t24 == us;
93
- }
94
- function xr(t24) {
95
- switch (t24) {
96
- case qi:
97
- return Ie;
98
- case Wi:
99
- return Pi;
100
- case ji:
101
- return Li;
102
- case zi:
103
- return os;
104
- case Xi:
105
- return Ni;
106
- default:
107
- return t24;
108
- }
109
- }
110
- function wr(t24) {
111
- let e = parseInt(t24);
112
- if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t24);
113
- return e;
114
- }
115
- function B(t24) {
116
- return t24.start.toString() || "(unknown)";
117
- }
118
- function ee(t24, e, n, s) {
119
- n.length > 0 && (n = ` ${n} `);
120
- let i = B(s), r = `Parser Error: ${t24}${n}[${e}] in ${i}`;
121
- return new Ce(s, r);
122
- }
123
- function Sr(t24) {
124
- let e = /* @__PURE__ */ new Map(), n = 0, s = 0, i = 0;
125
- for (; i < t24.length; ) {
126
- let r = t24[i];
127
- if (r.type === 9) {
128
- let [a, u] = r.parts;
129
- n += u.length, s += a.length;
130
- } else {
131
- let a = r.parts.reduce((u, p) => u + p.length, 0);
132
- s += a, n += a;
133
- }
134
- e.set(s, n), i++;
135
- }
136
- return e;
137
- }
138
- function P(t24) {
139
- return (e) => e.kind === t24;
140
- }
141
- function we(t24, e) {
142
- return (n) => n.kind === t24 && e === n.expression instanceof je;
143
- }
144
- function yr(t24) {
145
- return (t24.kind === f.Property || t24.kind === f.TwoWayProperty) && !(t24.expression instanceof je);
146
- }
147
- function ze(t24) {
148
- return t24.slice(t24.length - 1);
149
- }
150
- function Ss(t24) {
151
- let e = new He(t24, Cr), n = new Ue(e, 0, 0, 0), s = n.moveBy(t24.length);
152
- return { text: t24, file: e, start: n, end: s, sourceSpan: new We(n, s) };
153
- }
154
- function Es() {
155
- return _r ?? (_r = new oe(new _e()));
156
- }
157
- function kr(t24) {
158
- let e = Tr(t24);
159
- return e === null ? [] : [{ type: "CommentLine", value: t24.slice(e + 2), ...be({ start: e, end: t24.length }) }];
160
- }
161
- function ys(t24) {
162
- let { result: e } = t24;
163
- if (e.errors.length !== 0) {
164
- let [n] = e.errors;
165
- if (!(n instanceof Ce)) throw n;
166
- let { message: s } = n;
167
- {
168
- let a = s.match(/ in .*?@\d+:\d+$/);
169
- a && (s = s.slice(0, a.index));
170
- }
171
- let i = t24.start;
172
- {
173
- let a = s.match(/at column (?<index>\d+)/);
174
- a && (s = s.slice(0, a.index), i = i.moveBy(Number(a.groups.index)));
175
- }
176
- let r = new SyntaxError(s.trim(), { cause: n });
177
- throw Object.assign(r, { location: i, span: n.span }), r.cause ?? (r.cause = n), r;
178
- }
179
- return t24;
180
- }
181
- function $r(t24) {
182
- return this[t24 < 0 ? this.length + t24 : t24];
183
- }
184
- function hi(t24) {
185
- return t24 instanceof ye;
186
- }
187
- function fi(t24) {
188
- return t24 instanceof se;
189
- }
190
- function wi(t24, e) {
191
- return new Br(t24, e).expressions;
192
- }
193
- function nn(t24) {
194
- let e = t24.range?.[0] ?? t24.start, n = (t24.declaration?.decorators ?? t24.decorators)?.[0];
195
- return n ? Math.min(nn(n), e) : e;
196
- }
197
- function Si(t24) {
198
- return t24.range?.[1] ?? t24.end;
199
- }
200
- function tt(t24) {
201
- return { astFormat: "estree", parse(e) {
202
- let n = t24(e), { comments: s } = n;
203
- return delete n.comments, t24 === et && n.type !== "NGChainedExpression" && (n = { ...n, type: "NGChainedExpression", expressions: [n] }), { type: "NGRoot", node: n, comments: s };
204
- }, locStart: nn, locEnd: Si };
205
- }
206
- var Ci, _i, Ti, an, ln, nt, U, ke, st, v, cn, Ei, sn, zr, fn, dn, mn, N, gn, vn, xn, wn, Sn, En, yn, Cn, c, S, rt, ot, at, lt, ct, Ne, ut, pt, x, ht, ft, dt, mt, gt, vt, Pe, xt, wt, _n, o, l, St, Gr, Tn, X, g, Se, b, ne, Et, yt, Ct, de, _t, Le, Tt, me, kt, I, bt, At, It, Ii, E, ge, Me, Re, $e, Nt, Pt, Lt, De, Be, Oe, Ee, Mt, $, O, se, ye, Rt, kn, bn, L, An, pe, os, Ie, Ni, Pi, Li, as, Mi, ls, Ri, Wt, $i, In, cs, ve, q, Nn, us, Q, ps, H, Fe, j, fe, Di, k, Bi, Pn, Oi, Fi, qt, Vi, jt, te, it, G, Ui, Xe, hs, Hi, Wi, qi, ji, zi, Gi, Xi, fs, Ve, Ln, K, ds, $t, Ue, He, We, qe, Ce, Rn, $n, Dn, Yi, ms, Qi, Bt, Ki, Zi, zt, Yr, Qr, er, Kr, tr, Zr, gs, eo, to, nr, sr, ir, no, so, io, f, ie, Bn, On, Fn, M, Vn, Un, Hn, Wn, R, qn, jn, rr, vs, Te, Gt, ro, oo, ao, je, re, zn, Gn, Xn, Jn, Ot, lo, Yn, Qn, co, uo, po, ho, fo, or, ar, Kn, xs, mo, go, h, F, lr, _e, A, xe, Ae, Ft, Vt, Ut, oe, Z, ts, z, Ht, Er, vo, xo, wo, So, Eo, yo, Co, _o, To, ko, bo, ns, Ao, ss, is, ws, No, Po, rs, Lo, Cr, _r, Tr, Je, Cs, _s, Ts, ks, bs, Ye, As, Is, Ns, Ps, br, Ls, Ar, Ir, Ms, Rs, $s, Ds, Bs, Os, Fs, Vs, Nr, Pr, Lr, Mr, Qe, Us, Hs, Ws, qs, js, zs, Gs, Xs, Js, Ys, Qs, Ks, Zs, Xt, ei, ti, ni, si, Rr, ii, ri, oi, Ke, ai, li, ci, ui, Dr, pi, ae, J, m, di, C, Yt, Qt, Kt, mi, gi, vi, xi, le, Br, Ze, et, Zt, Or, en, tn, Fr, Vr, Ur, Hr, init_angular = __esm({
207
- "../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/angular.mjs"() {
208
- init_cjs_shims();
209
- Ci = Object.defineProperty, _i = Object.getPrototypeOf, Ti = Reflect.get, an = (t24) => {
210
- throw TypeError(t24);
211
- }, ln = (t24, e) => {
212
- for (var n in e) Ci(t24, n, { get: e[n], enumerable: !0 });
213
- }, nt = (t24, e, n) => e.has(t24) || an("Cannot " + n), U = (t24, e, n) => (nt(t24, e, "read from private field"), n ? n.call(t24) : e.get(t24)), ke = (t24, e, n) => e.has(t24) ? an("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t24) : e.set(t24, n), st = (t24, e, n, s) => (nt(t24, e, "write to private field"), s ? s.call(t24, n) : e.set(t24, n), n), v = (t24, e, n) => (nt(t24, e, "access private method"), n), cn = (t24, e, n) => Ti(_i(t24), n, e), Ei = {};
214
- ln(Ei, { parsers: () => sn });
215
- sn = {};
216
- ln(sn, { __ng_action: () => Fr, __ng_binding: () => Vr, __ng_directive: () => Hr, __ng_interpolation: () => Ur });
217
- zr = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
218
- (function(t24) {
219
- t24[t24.Emulated = 0] = "Emulated", t24[t24.None = 2] = "None", t24[t24.ShadowDom = 3] = "ShadowDom", t24[t24.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
220
- })(fn || (fn = {}));
221
- (function(t24) {
222
- t24[t24.OnPush = 0] = "OnPush", t24[t24.Default = 1] = "Default";
223
- })(dn || (dn = {}));
224
- (function(t24) {
225
- t24[t24.None = 0] = "None", t24[t24.SignalBased = 1] = "SignalBased", t24[t24.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
226
- })(mn || (mn = {}));
227
- (function(t24) {
228
- t24[t24.NONE = 0] = "NONE", t24[t24.HTML = 1] = "HTML", t24[t24.STYLE = 2] = "STYLE", t24[t24.SCRIPT = 3] = "SCRIPT", t24[t24.URL = 4] = "URL", t24[t24.RESOURCE_URL = 5] = "RESOURCE_URL", t24[t24.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
229
- })(N || (N = {}));
230
- (function(t24) {
231
- t24[t24.Error = 0] = "Error", t24[t24.Warning = 1] = "Warning", t24[t24.Ignore = 2] = "Ignore";
232
- })(gn || (gn = {}));
233
- (function(t24) {
234
- t24[t24.Directive = 0] = "Directive", t24[t24.Component = 1] = "Component", t24[t24.Injectable = 2] = "Injectable", t24[t24.Pipe = 3] = "Pipe", t24[t24.NgModule = 4] = "NgModule";
235
- })(vn || (vn = {}));
236
- (function(t24) {
237
- t24[t24.Directive = 0] = "Directive", t24[t24.Pipe = 1] = "Pipe", t24[t24.NgModule = 2] = "NgModule";
238
- })(xn || (xn = {}));
239
- (function(t24) {
240
- t24[t24.Emulated = 0] = "Emulated", t24[t24.None = 2] = "None", t24[t24.ShadowDom = 3] = "ShadowDom", t24[t24.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
241
- })(wn || (wn = {}));
242
- (function(t24) {
243
- t24[t24.Little = 0] = "Little", t24[t24.Big = 1] = "Big";
244
- })(Sn || (Sn = {}));
245
- (function(t24) {
246
- t24[t24.None = 0] = "None", t24[t24.Const = 1] = "Const";
247
- })(En || (En = {}));
248
- (function(t24) {
249
- t24[t24.Dynamic = 0] = "Dynamic", t24[t24.Bool = 1] = "Bool", t24[t24.String = 2] = "String", t24[t24.Int = 3] = "Int", t24[t24.Number = 4] = "Number", t24[t24.Function = 5] = "Function", t24[t24.Inferred = 6] = "Inferred", t24[t24.None = 7] = "None";
250
- })(yn || (yn = {}));
251
- (function(t24) {
252
- t24[t24.Minus = 0] = "Minus", t24[t24.Plus = 1] = "Plus";
253
- })(Cn || (Cn = {}));
254
- (function(t24) {
255
- t24[t24.Equals = 0] = "Equals", t24[t24.NotEquals = 1] = "NotEquals", t24[t24.Assign = 2] = "Assign", t24[t24.Identical = 3] = "Identical", t24[t24.NotIdentical = 4] = "NotIdentical", t24[t24.Minus = 5] = "Minus", t24[t24.Plus = 6] = "Plus", t24[t24.Divide = 7] = "Divide", t24[t24.Multiply = 8] = "Multiply", t24[t24.Modulo = 9] = "Modulo", t24[t24.And = 10] = "And", t24[t24.Or = 11] = "Or", t24[t24.BitwiseOr = 12] = "BitwiseOr", t24[t24.BitwiseAnd = 13] = "BitwiseAnd", t24[t24.Lower = 14] = "Lower", t24[t24.LowerEquals = 15] = "LowerEquals", t24[t24.Bigger = 16] = "Bigger", t24[t24.BiggerEquals = 17] = "BiggerEquals", t24[t24.NullishCoalesce = 18] = "NullishCoalesce", t24[t24.Exponentiation = 19] = "Exponentiation", t24[t24.In = 20] = "In", t24[t24.AdditionAssignment = 21] = "AdditionAssignment", t24[t24.SubtractionAssignment = 22] = "SubtractionAssignment", t24[t24.MultiplicationAssignment = 23] = "MultiplicationAssignment", t24[t24.DivisionAssignment = 24] = "DivisionAssignment", t24[t24.RemainderAssignment = 25] = "RemainderAssignment", t24[t24.ExponentiationAssignment = 26] = "ExponentiationAssignment", t24[t24.AndAssignment = 27] = "AndAssignment", t24[t24.OrAssignment = 28] = "OrAssignment", t24[t24.NullishCoalesceAssignment = 29] = "NullishCoalesceAssignment";
256
- })(c || (c = {}));
257
- S = class {
258
- type;
259
- sourceSpan;
260
- constructor(e, n) {
261
- this.type = e || null, this.sourceSpan = n || null;
262
- }
263
- prop(e, n) {
264
- return new ht(this, e, null, n);
265
- }
266
- key(e, n, s) {
267
- return new ft(this, e, n, s);
268
- }
269
- callFn(e, n, s) {
270
- return new at(this, e, null, n, s);
271
- }
272
- instantiate(e, n, s) {
273
- return new lt(this, e, n, s);
274
- }
275
- conditional(e, n = null, s) {
276
- return new pt(this, e, n, null, s);
277
- }
278
- equals(e, n) {
279
- return new x(c.Equals, this, e, null, n);
280
- }
281
- notEquals(e, n) {
282
- return new x(c.NotEquals, this, e, null, n);
283
- }
284
- identical(e, n) {
285
- return new x(c.Identical, this, e, null, n);
286
- }
287
- notIdentical(e, n) {
288
- return new x(c.NotIdentical, this, e, null, n);
289
- }
290
- minus(e, n) {
291
- return new x(c.Minus, this, e, null, n);
292
- }
293
- plus(e, n) {
294
- return new x(c.Plus, this, e, null, n);
295
- }
296
- divide(e, n) {
297
- return new x(c.Divide, this, e, null, n);
298
- }
299
- multiply(e, n) {
300
- return new x(c.Multiply, this, e, null, n);
301
- }
302
- modulo(e, n) {
303
- return new x(c.Modulo, this, e, null, n);
304
- }
305
- power(e, n) {
306
- return new x(c.Exponentiation, this, e, null, n);
307
- }
308
- and(e, n) {
309
- return new x(c.And, this, e, null, n);
310
- }
311
- bitwiseOr(e, n) {
312
- return new x(c.BitwiseOr, this, e, null, n);
313
- }
314
- bitwiseAnd(e, n) {
315
- return new x(c.BitwiseAnd, this, e, null, n);
316
- }
317
- or(e, n) {
318
- return new x(c.Or, this, e, null, n);
319
- }
320
- lower(e, n) {
321
- return new x(c.Lower, this, e, null, n);
322
- }
323
- lowerEquals(e, n) {
324
- return new x(c.LowerEquals, this, e, null, n);
325
- }
326
- bigger(e, n) {
327
- return new x(c.Bigger, this, e, null, n);
328
- }
329
- biggerEquals(e, n) {
330
- return new x(c.BiggerEquals, this, e, null, n);
331
- }
332
- isBlank(e) {
333
- return this.equals(TYPED_NULL_EXPR, e);
334
- }
335
- nullishCoalesce(e, n) {
336
- return new x(c.NullishCoalesce, this, e, null, n);
337
- }
338
- toStmt() {
339
- return new wt(this, null);
340
- }
341
- }, rt = class t extends S {
342
- name;
343
- constructor(e, n, s) {
344
- super(n, s), this.name = e;
345
- }
346
- isEquivalent(e) {
347
- return e instanceof t && this.name === e.name;
348
- }
349
- isConstant() {
350
- return !1;
351
- }
352
- visitExpression(e, n) {
353
- return e.visitReadVarExpr(this, n);
354
- }
355
- clone() {
356
- return new t(this.name, this.type, this.sourceSpan);
357
- }
358
- set(e) {
359
- return new x(c.Assign, this, e, null, this.sourceSpan);
360
- }
361
- }, ot = class t2 extends S {
362
- expr;
363
- constructor(e, n, s) {
364
- super(n, s), this.expr = e;
365
- }
366
- visitExpression(e, n) {
367
- return e.visitTypeofExpr(this, n);
368
- }
369
- isEquivalent(e) {
370
- return e instanceof t2 && e.expr.isEquivalent(this.expr);
371
- }
372
- isConstant() {
373
- return this.expr.isConstant();
374
- }
375
- clone() {
376
- return new t2(this.expr.clone());
377
- }
378
- }, at = class t3 extends S {
379
- fn;
380
- args;
381
- pure;
382
- constructor(e, n, s, i, r = !1) {
383
- super(s, i), this.fn = e, this.args = n, this.pure = r;
384
- }
385
- get receiver() {
386
- return this.fn;
387
- }
388
- isEquivalent(e) {
389
- return e instanceof t3 && this.fn.isEquivalent(e.fn) && Ge(this.args, e.args) && this.pure === e.pure;
390
- }
391
- isConstant() {
392
- return !1;
393
- }
394
- visitExpression(e, n) {
395
- return e.visitInvokeFunctionExpr(this, n);
396
- }
397
- clone() {
398
- return new t3(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
399
- }
400
- }, lt = class t4 extends S {
401
- classExpr;
402
- args;
403
- constructor(e, n, s, i) {
404
- super(s, i), this.classExpr = e, this.args = n;
405
- }
406
- isEquivalent(e) {
407
- return e instanceof t4 && this.classExpr.isEquivalent(e.classExpr) && Ge(this.args, e.args);
408
- }
409
- isConstant() {
410
- return !1;
411
- }
412
- visitExpression(e, n) {
413
- return e.visitInstantiateExpr(this, n);
414
- }
415
- clone() {
416
- return new t4(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
417
- }
418
- }, ct = class t5 extends S {
419
- body;
420
- flags;
421
- constructor(e, n, s) {
422
- super(null, s), this.body = e, this.flags = n;
423
- }
424
- isEquivalent(e) {
425
- return e instanceof t5 && this.body === e.body && this.flags === e.flags;
426
- }
427
- isConstant() {
428
- return !0;
429
- }
430
- visitExpression(e, n) {
431
- return e.visitRegularExpressionLiteral(this, n);
432
- }
433
- clone() {
434
- return new t5(this.body, this.flags, this.sourceSpan);
435
- }
436
- }, Ne = class t6 extends S {
437
- value;
438
- constructor(e, n, s) {
439
- super(n, s), this.value = e;
440
- }
441
- isEquivalent(e) {
442
- return e instanceof t6 && this.value === e.value;
443
- }
444
- isConstant() {
445
- return !0;
446
- }
447
- visitExpression(e, n) {
448
- return e.visitLiteralExpr(this, n);
449
- }
450
- clone() {
451
- return new t6(this.value, this.type, this.sourceSpan);
452
- }
453
- }, ut = class t7 extends S {
454
- value;
455
- typeParams;
456
- constructor(e, n, s = null, i) {
457
- super(n, i), this.value = e, this.typeParams = s;
458
- }
459
- isEquivalent(e) {
460
- return e instanceof t7 && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
461
- }
462
- isConstant() {
463
- return !1;
464
- }
465
- visitExpression(e, n) {
466
- return e.visitExternalExpr(this, n);
467
- }
468
- clone() {
469
- return new t7(this.value, this.type, this.typeParams, this.sourceSpan);
470
- }
471
- }, pt = class t8 extends S {
472
- condition;
473
- falseCase;
474
- trueCase;
475
- constructor(e, n, s = null, i, r) {
476
- super(i || n.type, r), this.condition = e, this.falseCase = s, this.trueCase = n;
477
- }
478
- isEquivalent(e) {
479
- return e instanceof t8 && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && bi(this.falseCase, e.falseCase);
480
- }
481
- isConstant() {
482
- return !1;
483
- }
484
- visitExpression(e, n) {
485
- return e.visitConditionalExpr(this, n);
486
- }
487
- clone() {
488
- return new t8(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);
489
- }
490
- }, x = class t9 extends S {
491
- operator;
492
- rhs;
493
- lhs;
494
- constructor(e, n, s, i, r) {
495
- super(i || n.type, r), this.operator = e, this.rhs = s, this.lhs = n;
496
- }
497
- isEquivalent(e) {
498
- return e instanceof t9 && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
499
- }
500
- isConstant() {
501
- return !1;
502
- }
503
- visitExpression(e, n) {
504
- return e.visitBinaryOperatorExpr(this, n);
505
- }
506
- clone() {
507
- return new t9(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
508
- }
509
- isAssignment() {
510
- let e = this.operator;
511
- return e === c.Assign || e === c.AdditionAssignment || e === c.SubtractionAssignment || e === c.MultiplicationAssignment || e === c.DivisionAssignment || e === c.RemainderAssignment || e === c.ExponentiationAssignment || e === c.AndAssignment || e === c.OrAssignment || e === c.NullishCoalesceAssignment;
512
- }
513
- }, ht = class t10 extends S {
514
- receiver;
515
- name;
516
- constructor(e, n, s, i) {
517
- super(s, i), this.receiver = e, this.name = n;
518
- }
519
- get index() {
520
- return this.name;
521
- }
522
- isEquivalent(e) {
523
- return e instanceof t10 && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
524
- }
525
- isConstant() {
526
- return !1;
527
- }
528
- visitExpression(e, n) {
529
- return e.visitReadPropExpr(this, n);
530
- }
531
- set(e) {
532
- return new x(c.Assign, this.receiver.prop(this.name), e, null, this.sourceSpan);
533
- }
534
- clone() {
535
- return new t10(this.receiver.clone(), this.name, this.type, this.sourceSpan);
536
- }
537
- }, ft = class t11 extends S {
538
- receiver;
539
- index;
540
- constructor(e, n, s, i) {
541
- super(s, i), this.receiver = e, this.index = n;
542
- }
543
- isEquivalent(e) {
544
- return e instanceof t11 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
545
- }
546
- isConstant() {
547
- return !1;
548
- }
549
- visitExpression(e, n) {
550
- return e.visitReadKeyExpr(this, n);
551
- }
552
- set(e) {
553
- return new x(c.Assign, this.receiver.key(this.index), e, null, this.sourceSpan);
554
- }
555
- clone() {
556
- return new t11(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
557
- }
558
- }, dt = class t12 extends S {
559
- entries;
560
- constructor(e, n, s) {
561
- super(n, s), this.entries = e;
562
- }
563
- isConstant() {
564
- return this.entries.every((e) => e.isConstant());
565
- }
566
- isEquivalent(e) {
567
- return e instanceof t12 && Ge(this.entries, e.entries);
568
- }
569
- visitExpression(e, n) {
570
- return e.visitLiteralArrayExpr(this, n);
571
- }
572
- clone() {
573
- return new t12(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
574
- }
575
- }, mt = class t13 {
576
- expression;
577
- constructor(e) {
578
- this.expression = e;
579
- }
580
- isEquivalent(e) {
581
- return e instanceof t13 && this.expression.isEquivalent(e.expression);
582
- }
583
- clone() {
584
- return new t13(this.expression.clone());
585
- }
586
- isConstant() {
587
- return this.expression.isConstant();
588
- }
589
- }, gt = class t14 extends S {
590
- entries;
591
- valueType = null;
592
- constructor(e, n, s) {
593
- super(n, s), this.entries = e, n && (this.valueType = n.valueType);
594
- }
595
- isEquivalent(e) {
596
- return e instanceof t14 && Ge(this.entries, e.entries);
597
- }
598
- isConstant() {
599
- return this.entries.every((e) => e.isConstant());
600
- }
601
- visitExpression(e, n) {
602
- return e.visitLiteralMapExpr(this, n);
603
- }
604
- clone() {
605
- let e = this.entries.map((n) => n.clone());
606
- return new t14(e, this.type, this.sourceSpan);
607
- }
608
- }, vt = class t15 extends S {
609
- expression;
610
- constructor(e, n) {
611
- super(null, n), this.expression = e;
612
- }
613
- isEquivalent(e) {
614
- return e instanceof t15 && this.expression.isEquivalent(e.expression);
615
- }
616
- isConstant() {
617
- return this.expression.isConstant();
618
- }
619
- visitExpression(e, n) {
620
- return e.visitSpreadElementExpr(this, n);
621
- }
622
- clone() {
623
- return new t15(this.expression.clone(), this.sourceSpan);
624
- }
625
- };
626
- (function(t24) {
627
- t24[t24.None = 0] = "None", t24[t24.Final = 1] = "Final", t24[t24.Private = 2] = "Private", t24[t24.Exported = 4] = "Exported", t24[t24.Static = 8] = "Static";
628
- })(Pe || (Pe = {}));
629
- xt = class {
630
- modifiers;
631
- sourceSpan;
632
- leadingComments;
633
- constructor(e = Pe.None, n = null, s) {
634
- this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
635
- }
636
- hasModifier(e) {
637
- return (this.modifiers & e) !== 0;
638
- }
639
- addLeadingComment(e) {
640
- this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
641
- }
642
- }, wt = class t16 extends xt {
643
- expr;
644
- constructor(e, n, s) {
645
- super(Pe.None, n, s), this.expr = e;
646
- }
647
- isEquivalent(e) {
648
- return e instanceof t16 && this.expr.isEquivalent(e.expr);
649
- }
650
- visitStatement(e, n) {
651
- return e.visitExpressionStmt(this, n);
652
- }
653
- }, _n = class t17 {
654
- static INSTANCE = new t17();
655
- keyOf(e) {
656
- if (e instanceof Ne && typeof e.value == "string") return `"${e.value}"`;
657
- if (e instanceof Ne) return String(e.value);
658
- if (e instanceof ct) return `/${e.body}/${e.flags ?? ""}`;
659
- if (e instanceof dt) {
660
- let n = [];
661
- for (let s of e.entries) n.push(this.keyOf(s));
662
- return `[${n.join(",")}]`;
663
- } else if (e instanceof gt) {
664
- let n = [];
665
- for (let s of e.entries) if (s instanceof mt) n.push("..." + this.keyOf(s.expression));
666
- else {
667
- let i = s.key;
668
- s.quoted && (i = `"${i}"`), n.push(i + ":" + this.keyOf(s.value));
669
- }
670
- return `{${n.join(",")}}`;
671
- } else {
672
- if (e instanceof ut) return `import("${e.value.moduleName}", ${e.value.name})`;
673
- if (e instanceof rt) return `read(${e.name})`;
674
- if (e instanceof ot) return `typeof(${this.keyOf(e.expr)})`;
675
- if (e instanceof vt) return `...${this.keyOf(e.expression)}`;
676
- throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
677
- }
678
- }
679
- }, o = "@angular/core", l = class {
680
- static NEW_METHOD = "factory";
681
- static TRANSFORM_METHOD = "transform";
682
- static PATCH_DEPS = "patchedDeps";
683
- static core = { name: null, moduleName: o };
684
- static namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: o };
685
- static namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: o };
686
- static namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: o };
687
- static element = { name: "\u0275\u0275element", moduleName: o };
688
- static elementStart = { name: "\u0275\u0275elementStart", moduleName: o };
689
- static elementEnd = { name: "\u0275\u0275elementEnd", moduleName: o };
690
- static domElement = { name: "\u0275\u0275domElement", moduleName: o };
691
- static domElementStart = { name: "\u0275\u0275domElementStart", moduleName: o };
692
- static domElementEnd = { name: "\u0275\u0275domElementEnd", moduleName: o };
693
- static domElementContainer = { name: "\u0275\u0275domElementContainer", moduleName: o };
694
- static domElementContainerStart = { name: "\u0275\u0275domElementContainerStart", moduleName: o };
695
- static domElementContainerEnd = { name: "\u0275\u0275domElementContainerEnd", moduleName: o };
696
- static domTemplate = { name: "\u0275\u0275domTemplate", moduleName: o };
697
- static domListener = { name: "\u0275\u0275domListener", moduleName: o };
698
- static advance = { name: "\u0275\u0275advance", moduleName: o };
699
- static syntheticHostProperty = { name: "\u0275\u0275syntheticHostProperty", moduleName: o };
700
- static syntheticHostListener = { name: "\u0275\u0275syntheticHostListener", moduleName: o };
701
- static attribute = { name: "\u0275\u0275attribute", moduleName: o };
702
- static classProp = { name: "\u0275\u0275classProp", moduleName: o };
703
- static elementContainerStart = { name: "\u0275\u0275elementContainerStart", moduleName: o };
704
- static elementContainerEnd = { name: "\u0275\u0275elementContainerEnd", moduleName: o };
705
- static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: o };
706
- static styleMap = { name: "\u0275\u0275styleMap", moduleName: o };
707
- static classMap = { name: "\u0275\u0275classMap", moduleName: o };
708
- static styleProp = { name: "\u0275\u0275styleProp", moduleName: o };
709
- static interpolate = { name: "\u0275\u0275interpolate", moduleName: o };
710
- static interpolate1 = { name: "\u0275\u0275interpolate1", moduleName: o };
711
- static interpolate2 = { name: "\u0275\u0275interpolate2", moduleName: o };
712
- static interpolate3 = { name: "\u0275\u0275interpolate3", moduleName: o };
713
- static interpolate4 = { name: "\u0275\u0275interpolate4", moduleName: o };
714
- static interpolate5 = { name: "\u0275\u0275interpolate5", moduleName: o };
715
- static interpolate6 = { name: "\u0275\u0275interpolate6", moduleName: o };
716
- static interpolate7 = { name: "\u0275\u0275interpolate7", moduleName: o };
717
- static interpolate8 = { name: "\u0275\u0275interpolate8", moduleName: o };
718
- static interpolateV = { name: "\u0275\u0275interpolateV", moduleName: o };
719
- static nextContext = { name: "\u0275\u0275nextContext", moduleName: o };
720
- static resetView = { name: "\u0275\u0275resetView", moduleName: o };
721
- static templateCreate = { name: "\u0275\u0275template", moduleName: o };
722
- static defer = { name: "\u0275\u0275defer", moduleName: o };
723
- static deferWhen = { name: "\u0275\u0275deferWhen", moduleName: o };
724
- static deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: o };
725
- static deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: o };
726
- static deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: o };
727
- static deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: o };
728
- static deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: o };
729
- static deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: o };
730
- static deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: o };
731
- static deferPrefetchOnIdle = { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: o };
732
- static deferPrefetchOnImmediate = { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: o };
733
- static deferPrefetchOnTimer = { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: o };
734
- static deferPrefetchOnHover = { name: "\u0275\u0275deferPrefetchOnHover", moduleName: o };
735
- static deferPrefetchOnInteraction = { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: o };
736
- static deferPrefetchOnViewport = { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: o };
737
- static deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: o };
738
- static deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: o };
739
- static deferHydrateOnIdle = { name: "\u0275\u0275deferHydrateOnIdle", moduleName: o };
740
- static deferHydrateOnImmediate = { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: o };
741
- static deferHydrateOnTimer = { name: "\u0275\u0275deferHydrateOnTimer", moduleName: o };
742
- static deferHydrateOnHover = { name: "\u0275\u0275deferHydrateOnHover", moduleName: o };
743
- static deferHydrateOnInteraction = { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: o };
744
- static deferHydrateOnViewport = { name: "\u0275\u0275deferHydrateOnViewport", moduleName: o };
745
- static deferEnableTimerScheduling = { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: o };
746
- static conditionalCreate = { name: "\u0275\u0275conditionalCreate", moduleName: o };
747
- static conditionalBranchCreate = { name: "\u0275\u0275conditionalBranchCreate", moduleName: o };
748
- static conditional = { name: "\u0275\u0275conditional", moduleName: o };
749
- static repeater = { name: "\u0275\u0275repeater", moduleName: o };
750
- static repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: o };
751
- static repeaterTrackByIndex = { name: "\u0275\u0275repeaterTrackByIndex", moduleName: o };
752
- static repeaterTrackByIdentity = { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: o };
753
- static componentInstance = { name: "\u0275\u0275componentInstance", moduleName: o };
754
- static text = { name: "\u0275\u0275text", moduleName: o };
755
- static enableBindings = { name: "\u0275\u0275enableBindings", moduleName: o };
756
- static disableBindings = { name: "\u0275\u0275disableBindings", moduleName: o };
757
- static getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: o };
758
- static textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: o };
759
- static textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: o };
760
- static textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: o };
761
- static textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: o };
762
- static textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: o };
763
- static textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: o };
764
- static textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: o };
765
- static textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: o };
766
- static textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: o };
767
- static textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: o };
768
- static restoreView = { name: "\u0275\u0275restoreView", moduleName: o };
769
- static pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: o };
770
- static pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: o };
771
- static pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: o };
772
- static pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: o };
773
- static pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: o };
774
- static pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: o };
775
- static pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: o };
776
- static pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: o };
777
- static pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: o };
778
- static pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: o };
779
- static pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: o };
780
- static pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: o };
781
- static pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: o };
782
- static pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: o };
783
- static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: o };
784
- static domProperty = { name: "\u0275\u0275domProperty", moduleName: o };
785
- static ariaProperty = { name: "\u0275\u0275ariaProperty", moduleName: o };
786
- static property = { name: "\u0275\u0275property", moduleName: o };
787
- static control = { name: "\u0275\u0275control", moduleName: o };
788
- static controlCreate = { name: "\u0275\u0275controlCreate", moduleName: o };
789
- static animationEnterListener = { name: "\u0275\u0275animateEnterListener", moduleName: o };
790
- static animationLeaveListener = { name: "\u0275\u0275animateLeaveListener", moduleName: o };
791
- static animationEnter = { name: "\u0275\u0275animateEnter", moduleName: o };
792
- static animationLeave = { name: "\u0275\u0275animateLeave", moduleName: o };
793
- static i18n = { name: "\u0275\u0275i18n", moduleName: o };
794
- static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: o };
795
- static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: o };
796
- static i18nStart = { name: "\u0275\u0275i18nStart", moduleName: o };
797
- static i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: o };
798
- static i18nApply = { name: "\u0275\u0275i18nApply", moduleName: o };
799
- static i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: o };
800
- static pipe = { name: "\u0275\u0275pipe", moduleName: o };
801
- static projection = { name: "\u0275\u0275projection", moduleName: o };
802
- static projectionDef = { name: "\u0275\u0275projectionDef", moduleName: o };
803
- static reference = { name: "\u0275\u0275reference", moduleName: o };
804
- static inject = { name: "\u0275\u0275inject", moduleName: o };
805
- static injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: o };
806
- static directiveInject = { name: "\u0275\u0275directiveInject", moduleName: o };
807
- static invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: o };
808
- static invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: o };
809
- static templateRefExtractor = { name: "\u0275\u0275templateRefExtractor", moduleName: o };
810
- static forwardRef = { name: "forwardRef", moduleName: o };
811
- static resolveForwardRef = { name: "resolveForwardRef", moduleName: o };
812
- static replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: o };
813
- static getReplaceMetadataURL = { name: "\u0275\u0275getReplaceMetadataURL", moduleName: o };
814
- static \u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: o };
815
- static declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: o };
816
- static InjectableDeclaration = { name: "\u0275\u0275InjectableDeclaration", moduleName: o };
817
- static resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: o };
818
- static resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: o };
819
- static resolveBody = { name: "\u0275\u0275resolveBody", moduleName: o };
820
- static getComponentDepsFactory = { name: "\u0275\u0275getComponentDepsFactory", moduleName: o };
821
- static defineComponent = { name: "\u0275\u0275defineComponent", moduleName: o };
822
- static declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: o };
823
- static setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: o };
824
- static ChangeDetectionStrategy = { name: "ChangeDetectionStrategy", moduleName: o };
825
- static ViewEncapsulation = { name: "ViewEncapsulation", moduleName: o };
826
- static ComponentDeclaration = { name: "\u0275\u0275ComponentDeclaration", moduleName: o };
827
- static FactoryDeclaration = { name: "\u0275\u0275FactoryDeclaration", moduleName: o };
828
- static declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: o };
829
- static FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: o };
830
- static defineDirective = { name: "\u0275\u0275defineDirective", moduleName: o };
831
- static declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: o };
832
- static DirectiveDeclaration = { name: "\u0275\u0275DirectiveDeclaration", moduleName: o };
833
- static InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: o };
834
- static InjectorDeclaration = { name: "\u0275\u0275InjectorDeclaration", moduleName: o };
835
- static defineInjector = { name: "\u0275\u0275defineInjector", moduleName: o };
836
- static declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: o };
837
- static NgModuleDeclaration = { name: "\u0275\u0275NgModuleDeclaration", moduleName: o };
838
- static ModuleWithProviders = { name: "ModuleWithProviders", moduleName: o };
839
- static defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: o };
840
- static declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: o };
841
- static setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: o };
842
- static registerNgModuleType = { name: "\u0275\u0275registerNgModuleType", moduleName: o };
843
- static PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: o };
844
- static definePipe = { name: "\u0275\u0275definePipe", moduleName: o };
845
- static declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: o };
846
- static declareClassMetadata = { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: o };
847
- static declareClassMetadataAsync = { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: o };
848
- static setClassMetadata = { name: "\u0275setClassMetadata", moduleName: o };
849
- static setClassMetadataAsync = { name: "\u0275setClassMetadataAsync", moduleName: o };
850
- static setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: o };
851
- static queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: o };
852
- static viewQuery = { name: "\u0275\u0275viewQuery", moduleName: o };
853
- static loadQuery = { name: "\u0275\u0275loadQuery", moduleName: o };
854
- static contentQuery = { name: "\u0275\u0275contentQuery", moduleName: o };
855
- static viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: o };
856
- static contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: o };
857
- static queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: o };
858
- static twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: o };
859
- static twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: o };
860
- static twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: o };
861
- static declareLet = { name: "\u0275\u0275declareLet", moduleName: o };
862
- static storeLet = { name: "\u0275\u0275storeLet", moduleName: o };
863
- static readContextLet = { name: "\u0275\u0275readContextLet", moduleName: o };
864
- static attachSourceLocations = { name: "\u0275\u0275attachSourceLocations", moduleName: o };
865
- static NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: o };
866
- static InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFeature", moduleName: o };
867
- static ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: o };
868
- static HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: o };
869
- static ExternalStylesFeature = { name: "\u0275\u0275ExternalStylesFeature", moduleName: o };
870
- static listener = { name: "\u0275\u0275listener", moduleName: o };
871
- static getInheritedFactory = { name: "\u0275\u0275getInheritedFactory", moduleName: o };
872
- static sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: o };
873
- static sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: o };
874
- static validateAttribute = { name: "\u0275\u0275validateAttribute", moduleName: o };
875
- static sanitizeResourceUrl = { name: "\u0275\u0275sanitizeResourceUrl", moduleName: o };
876
- static sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: o };
877
- static sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: o };
878
- static sanitizeUrlOrResourceUrl = { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: o };
879
- static trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: o };
880
- static trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: o };
881
- static inputDecorator = { name: "Input", moduleName: o };
882
- static outputDecorator = { name: "Output", moduleName: o };
883
- static viewChildDecorator = { name: "ViewChild", moduleName: o };
884
- static viewChildrenDecorator = { name: "ViewChildren", moduleName: o };
885
- static contentChildDecorator = { name: "ContentChild", moduleName: o };
886
- static contentChildrenDecorator = { name: "ContentChildren", moduleName: o };
887
- static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: o };
888
- static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: o };
889
- static unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: o };
890
- static assertType = { name: "\u0275assertType", moduleName: o };
891
- }, St = class {
892
- full;
893
- major;
894
- minor;
895
- patch;
896
- constructor(e) {
897
- this.full = e;
898
- let n = e.split(".");
899
- this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
900
- }
901
- }, Gr = /* @__PURE__ */ new Map([[c.And, "&&"], [c.Bigger, ">"], [c.BiggerEquals, ">="], [c.BitwiseOr, "|"], [c.BitwiseAnd, "&"], [c.Divide, "/"], [c.Assign, "="], [c.Equals, "=="], [c.Identical, "==="], [c.Lower, "<"], [c.LowerEquals, "<="], [c.Minus, "-"], [c.Modulo, "%"], [c.Exponentiation, "**"], [c.Multiply, "*"], [c.NotEquals, "!="], [c.NotIdentical, "!=="], [c.NullishCoalesce, "??"], [c.Or, "||"], [c.Plus, "+"], [c.In, "in"], [c.AdditionAssignment, "+="], [c.SubtractionAssignment, "-="], [c.MultiplicationAssignment, "*="], [c.DivisionAssignment, "/="], [c.RemainderAssignment, "%="], [c.ExponentiationAssignment, "**="], [c.AndAssignment, "&&="], [c.OrAssignment, "||="], [c.NullishCoalesceAssignment, "??="]]);
902
- (function(t24) {
903
- t24[t24.Class = 0] = "Class", t24[t24.Function = 1] = "Function";
904
- })(Tn || (Tn = {}));
905
- X = class {
906
- start;
907
- end;
908
- constructor(e, n) {
909
- this.start = e, this.end = n;
910
- }
911
- toAbsolute(e) {
912
- return new $(e + this.start, e + this.end);
913
- }
914
- }, g = class {
915
- span;
916
- sourceSpan;
917
- constructor(e, n) {
918
- this.span = e, this.sourceSpan = n;
919
- }
920
- toString() {
921
- return "AST";
922
- }
923
- }, Se = class extends g {
924
- nameSpan;
925
- constructor(e, n, s) {
926
- super(e, n), this.nameSpan = s;
927
- }
928
- }, b = class extends g {
929
- visit(e, n = null) {
930
- }
931
- }, ne = class extends g {
932
- visit(e, n = null) {
933
- return e.visitImplicitReceiver(this, n);
934
- }
935
- }, Et = class extends g {
936
- visit(e, n = null) {
937
- return e.visitThisReceiver?.(this, n);
938
- }
939
- }, yt = class extends g {
940
- expressions;
941
- constructor(e, n, s) {
942
- super(e, n), this.expressions = s;
943
- }
944
- visit(e, n = null) {
945
- return e.visitChain(this, n);
946
- }
947
- }, Ct = class extends g {
948
- condition;
949
- trueExp;
950
- falseExp;
951
- constructor(e, n, s, i, r) {
952
- super(e, n), this.condition = s, this.trueExp = i, this.falseExp = r;
953
- }
954
- visit(e, n = null) {
955
- return e.visitConditional(this, n);
956
- }
957
- }, de = class extends Se {
958
- receiver;
959
- name;
960
- constructor(e, n, s, i, r) {
961
- super(e, n, s), this.receiver = i, this.name = r;
962
- }
963
- visit(e, n = null) {
964
- return e.visitPropertyRead(this, n);
965
- }
966
- }, _t = class extends Se {
967
- receiver;
968
- name;
969
- constructor(e, n, s, i, r) {
970
- super(e, n, s), this.receiver = i, this.name = r;
971
- }
972
- visit(e, n = null) {
973
- return e.visitSafePropertyRead(this, n);
974
- }
975
- }, Le = class extends g {
976
- receiver;
977
- key;
978
- constructor(e, n, s, i) {
979
- super(e, n), this.receiver = s, this.key = i;
980
- }
981
- visit(e, n = null) {
982
- return e.visitKeyedRead(this, n);
983
- }
984
- }, Tt = class extends g {
985
- receiver;
986
- key;
987
- constructor(e, n, s, i) {
988
- super(e, n), this.receiver = s, this.key = i;
989
- }
990
- visit(e, n = null) {
991
- return e.visitSafeKeyedRead(this, n);
992
- }
993
- };
994
- (function(t24) {
995
- t24[t24.ReferencedByName = 0] = "ReferencedByName", t24[t24.ReferencedDirectly = 1] = "ReferencedDirectly";
996
- })(me || (me = {}));
997
- kt = class extends Se {
998
- exp;
999
- name;
1000
- args;
1001
- type;
1002
- constructor(e, n, s, i, r, a, u) {
1003
- super(e, n, u), this.exp = s, this.name = i, this.args = r, this.type = a;
1004
- }
1005
- visit(e, n = null) {
1006
- return e.visitPipe(this, n);
1007
- }
1008
- }, I = class extends g {
1009
- value;
1010
- constructor(e, n, s) {
1011
- super(e, n), this.value = s;
1012
- }
1013
- visit(e, n = null) {
1014
- return e.visitLiteralPrimitive(this, n);
1015
- }
1016
- }, bt = class extends g {
1017
- expressions;
1018
- constructor(e, n, s) {
1019
- super(e, n), this.expressions = s;
1020
- }
1021
- visit(e, n = null) {
1022
- return e.visitLiteralArray(this, n);
1023
- }
1024
- }, At = class extends g {
1025
- expression;
1026
- constructor(e, n, s) {
1027
- super(e, n), this.expression = s;
1028
- }
1029
- visit(e, n = null) {
1030
- return e.visitSpreadElement(this, n);
1031
- }
1032
- }, It = class extends g {
1033
- keys;
1034
- values;
1035
- constructor(e, n, s, i) {
1036
- super(e, n), this.keys = s, this.values = i;
1037
- }
1038
- visit(e, n = null) {
1039
- return e.visitLiteralMap(this, n);
1040
- }
1041
- }, Ii = class extends g {
1042
- strings;
1043
- expressions;
1044
- constructor(e, n, s, i) {
1045
- super(e, n), this.strings = s, this.expressions = i;
1046
- }
1047
- visit(e, n = null) {
1048
- return e.visitInterpolation(this, n);
1049
- }
1050
- }, E = class extends g {
1051
- operation;
1052
- left;
1053
- right;
1054
- constructor(e, n, s, i, r) {
1055
- super(e, n), this.operation = s, this.left = i, this.right = r;
1056
- }
1057
- visit(e, n = null) {
1058
- return e.visitBinary(this, n);
1059
- }
1060
- static isAssignmentOperation(e) {
1061
- return e === "=" || e === "+=" || e === "-=" || e === "*=" || e === "/=" || e === "%=" || e === "**=" || e === "&&=" || e === "||=" || e === "??=";
1062
- }
1063
- }, ge = class t18 extends E {
1064
- operator;
1065
- expr;
1066
- left = null;
1067
- right = null;
1068
- operation = null;
1069
- static createMinus(e, n, s) {
1070
- return new t18(e, n, "-", s, "-", new I(e, n, 0), s);
1071
- }
1072
- static createPlus(e, n, s) {
1073
- return new t18(e, n, "+", s, "-", s, new I(e, n, 0));
1074
- }
1075
- constructor(e, n, s, i, r, a, u) {
1076
- super(e, n, r, a, u), this.operator = s, this.expr = i;
1077
- }
1078
- visit(e, n = null) {
1079
- return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
1080
- }
1081
- }, Me = class extends g {
1082
- expression;
1083
- constructor(e, n, s) {
1084
- super(e, n), this.expression = s;
1085
- }
1086
- visit(e, n = null) {
1087
- return e.visitPrefixNot(this, n);
1088
- }
1089
- }, Re = class extends g {
1090
- expression;
1091
- constructor(e, n, s) {
1092
- super(e, n), this.expression = s;
1093
- }
1094
- visit(e, n = null) {
1095
- return e.visitTypeofExpression(this, n);
1096
- }
1097
- }, $e = class extends g {
1098
- expression;
1099
- constructor(e, n, s) {
1100
- super(e, n), this.expression = s;
1101
- }
1102
- visit(e, n = null) {
1103
- return e.visitVoidExpression(this, n);
1104
- }
1105
- }, Nt = class extends g {
1106
- expression;
1107
- constructor(e, n, s) {
1108
- super(e, n), this.expression = s;
1109
- }
1110
- visit(e, n = null) {
1111
- return e.visitNonNullAssert(this, n);
1112
- }
1113
- }, Pt = class extends g {
1114
- receiver;
1115
- args;
1116
- argumentSpan;
1117
- constructor(e, n, s, i, r) {
1118
- super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
1119
- }
1120
- visit(e, n = null) {
1121
- return e.visitCall(this, n);
1122
- }
1123
- }, Lt = class extends g {
1124
- receiver;
1125
- args;
1126
- argumentSpan;
1127
- constructor(e, n, s, i, r) {
1128
- super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
1129
- }
1130
- visit(e, n = null) {
1131
- return e.visitSafeCall(this, n);
1132
- }
1133
- }, De = class extends g {
1134
- tag;
1135
- template;
1136
- constructor(e, n, s, i) {
1137
- super(e, n), this.tag = s, this.template = i;
1138
- }
1139
- visit(e, n) {
1140
- return e.visitTaggedTemplateLiteral(this, n);
1141
- }
1142
- }, Be = class extends g {
1143
- elements;
1144
- expressions;
1145
- constructor(e, n, s, i) {
1146
- super(e, n), this.elements = s, this.expressions = i;
1147
- }
1148
- visit(e, n) {
1149
- return e.visitTemplateLiteral(this, n);
1150
- }
1151
- }, Oe = class extends g {
1152
- text;
1153
- constructor(e, n, s) {
1154
- super(e, n), this.text = s;
1155
- }
1156
- visit(e, n) {
1157
- return e.visitTemplateLiteralElement(this, n);
1158
- }
1159
- }, Ee = class extends g {
1160
- expression;
1161
- constructor(e, n, s) {
1162
- super(e, n), this.expression = s;
1163
- }
1164
- visit(e, n) {
1165
- return e.visitParenthesizedExpression(this, n);
1166
- }
1167
- }, Mt = class extends g {
1168
- body;
1169
- flags;
1170
- constructor(e, n, s, i) {
1171
- super(e, n), this.body = s, this.flags = i;
1172
- }
1173
- visit(e, n) {
1174
- return e.visitRegularExpressionLiteral(this, n);
1175
- }
1176
- }, $ = class {
1177
- start;
1178
- end;
1179
- constructor(e, n) {
1180
- this.start = e, this.end = n;
1181
- }
1182
- }, O = class extends g {
1183
- ast;
1184
- source;
1185
- location;
1186
- errors;
1187
- constructor(e, n, s, i, r) {
1188
- super(new X(0, n === null ? 0 : n.length), new $(i, n === null ? i : i + n.length)), this.ast = e, this.source = n, this.location = s, this.errors = r;
1189
- }
1190
- visit(e, n = null) {
1191
- return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
1192
- }
1193
- toString() {
1194
- return `${this.source} in ${this.location}`;
1195
- }
1196
- }, se = class {
1197
- sourceSpan;
1198
- key;
1199
- value;
1200
- constructor(e, n, s) {
1201
- this.sourceSpan = e, this.key = n, this.value = s;
1202
- }
1203
- }, ye = class {
1204
- sourceSpan;
1205
- key;
1206
- value;
1207
- constructor(e, n, s) {
1208
- this.sourceSpan = e, this.key = n, this.value = s;
1209
- }
1210
- }, Rt = class {
1211
- visit(e, n) {
1212
- e.visit(this, n);
1213
- }
1214
- visitUnary(e, n) {
1215
- this.visit(e.expr, n);
1216
- }
1217
- visitBinary(e, n) {
1218
- this.visit(e.left, n), this.visit(e.right, n);
1219
- }
1220
- visitChain(e, n) {
1221
- this.visitAll(e.expressions, n);
1222
- }
1223
- visitConditional(e, n) {
1224
- this.visit(e.condition, n), this.visit(e.trueExp, n), this.visit(e.falseExp, n);
1225
- }
1226
- visitPipe(e, n) {
1227
- this.visit(e.exp, n), this.visitAll(e.args, n);
1228
- }
1229
- visitImplicitReceiver(e, n) {
1230
- }
1231
- visitThisReceiver(e, n) {
1232
- }
1233
- visitInterpolation(e, n) {
1234
- this.visitAll(e.expressions, n);
1235
- }
1236
- visitKeyedRead(e, n) {
1237
- this.visit(e.receiver, n), this.visit(e.key, n);
1238
- }
1239
- visitLiteralArray(e, n) {
1240
- this.visitAll(e.expressions, n);
1241
- }
1242
- visitLiteralMap(e, n) {
1243
- this.visitAll(e.values, n);
1244
- }
1245
- visitLiteralPrimitive(e, n) {
1246
- }
1247
- visitPrefixNot(e, n) {
1248
- this.visit(e.expression, n);
1249
- }
1250
- visitTypeofExpression(e, n) {
1251
- this.visit(e.expression, n);
1252
- }
1253
- visitVoidExpression(e, n) {
1254
- this.visit(e.expression, n);
1255
- }
1256
- visitNonNullAssert(e, n) {
1257
- this.visit(e.expression, n);
1258
- }
1259
- visitPropertyRead(e, n) {
1260
- this.visit(e.receiver, n);
1261
- }
1262
- visitSafePropertyRead(e, n) {
1263
- this.visit(e.receiver, n);
1264
- }
1265
- visitSafeKeyedRead(e, n) {
1266
- this.visit(e.receiver, n), this.visit(e.key, n);
1267
- }
1268
- visitCall(e, n) {
1269
- this.visit(e.receiver, n), this.visitAll(e.args, n);
1270
- }
1271
- visitSafeCall(e, n) {
1272
- this.visit(e.receiver, n), this.visitAll(e.args, n);
1273
- }
1274
- visitTemplateLiteral(e, n) {
1275
- for (let s = 0; s < e.elements.length; s++) {
1276
- this.visit(e.elements[s], n);
1277
- let i = s < e.expressions.length ? e.expressions[s] : null;
1278
- i !== null && this.visit(i, n);
1279
- }
1280
- }
1281
- visitTemplateLiteralElement(e, n) {
1282
- }
1283
- visitTaggedTemplateLiteral(e, n) {
1284
- this.visit(e.tag, n), this.visit(e.template, n);
1285
- }
1286
- visitParenthesizedExpression(e, n) {
1287
- this.visit(e.expression, n);
1288
- }
1289
- visitRegularExpressionLiteral(e, n) {
1290
- }
1291
- visitSpreadElement(e, n) {
1292
- this.visit(e.expression, n);
1293
- }
1294
- visitAll(e, n) {
1295
- for (let s of e) this.visit(s, n);
1296
- }
1297
- };
1298
- (function(t24) {
1299
- t24[t24.DEFAULT = 0] = "DEFAULT", t24[t24.LITERAL_ATTR = 1] = "LITERAL_ATTR", t24[t24.LEGACY_ANIMATION = 2] = "LEGACY_ANIMATION", t24[t24.TWO_WAY = 3] = "TWO_WAY", t24[t24.ANIMATION = 4] = "ANIMATION";
1300
- })(kn || (kn = {}));
1301
- (function(t24) {
1302
- t24[t24.Regular = 0] = "Regular", t24[t24.LegacyAnimation = 1] = "LegacyAnimation", t24[t24.TwoWay = 2] = "TwoWay", t24[t24.Animation = 3] = "Animation";
1303
- })(bn || (bn = {}));
1304
- (function(t24) {
1305
- t24[t24.Property = 0] = "Property", t24[t24.Attribute = 1] = "Attribute", t24[t24.Class = 2] = "Class", t24[t24.Style = 3] = "Style", t24[t24.LegacyAnimation = 4] = "LegacyAnimation", t24[t24.TwoWay = 5] = "TwoWay", t24[t24.Animation = 6] = "Animation";
1306
- })(L || (L = {}));
1307
- (function(t24) {
1308
- t24[t24.RAW_TEXT = 0] = "RAW_TEXT", t24[t24.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t24[t24.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1309
- })(An || (An = {}));
1310
- pe = 0, os = 9, Ie = 10, Ni = 11, Pi = 12, Li = 13, as = 32, Mi = 33, ls = 34, Ri = 35, Wt = 36, $i = 37, In = 38, cs = 39, ve = 40, q = 41, Nn = 42, us = 43, Q = 44, ps = 45, H = 46, Fe = 47, j = 58, fe = 59, Di = 60, k = 61, Bi = 62, Pn = 63, Oi = 48, Fi = 57, qt = 65, Vi = 69, jt = 90, te = 91, it = 92, G = 93, Ui = 94, Xe = 95, hs = 97, Hi = 101, Wi = 102, qi = 110, ji = 114, zi = 116, Gi = 117, Xi = 118, fs = 122, Ve = 123, Ln = 124, K = 125, ds = 160, $t = 96;
1311
- Ue = class t19 {
1312
- file;
1313
- offset;
1314
- line;
1315
- col;
1316
- constructor(e, n, s, i) {
1317
- this.file = e, this.offset = n, this.line = s, this.col = i;
1318
- }
1319
- toString() {
1320
- return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;
1321
- }
1322
- moveBy(e) {
1323
- let n = this.file.content, s = n.length, i = this.offset, r = this.line, a = this.col;
1324
- for (; i > 0 && e < 0; ) if (i--, e++, n.charCodeAt(i) == Ie) {
1325
- r--;
1326
- let p = n.substring(0, i - 1).lastIndexOf(String.fromCharCode(Ie));
1327
- a = p > 0 ? i - p : i;
1328
- } else a--;
1329
- for (; i < s && e > 0; ) {
1330
- let u = n.charCodeAt(i);
1331
- i++, e--, u == Ie ? (r++, a = 0) : a++;
1332
- }
1333
- return new t19(this.file, i, r, a);
1334
- }
1335
- getContext(e, n) {
1336
- let s = this.file.content, i = this.offset;
1337
- if (i != null) {
1338
- i > s.length - 1 && (i = s.length - 1);
1339
- let r = i, a = 0, u = 0;
1340
- for (; a < e && i > 0 && (i--, a++, !(s[i] == `
1341
- ` && ++u == n)); ) ;
1342
- for (a = 0, u = 0; a < e && r < s.length - 1 && (r++, a++, !(s[r] == `
1343
- ` && ++u == n)); ) ;
1344
- return { before: s.substring(i, this.offset), after: s.substring(this.offset, r + 1) };
1345
- }
1346
- return null;
1347
- }
1348
- }, He = class {
1349
- content;
1350
- url;
1351
- constructor(e, n) {
1352
- this.content = e, this.url = n;
1353
- }
1354
- }, We = class {
1355
- start;
1356
- end;
1357
- fullStart;
1358
- details;
1359
- constructor(e, n, s = e, i = null) {
1360
- this.start = e, this.end = n, this.fullStart = s, this.details = i;
1361
- }
1362
- toString() {
1363
- return this.start.file.content.substring(this.start.offset, this.end.offset);
1364
- }
1365
- };
1366
- (function(t24) {
1367
- t24[t24.WARNING = 0] = "WARNING", t24[t24.ERROR = 1] = "ERROR";
1368
- })(qe || (qe = {}));
1369
- Ce = class extends Error {
1370
- span;
1371
- msg;
1372
- level;
1373
- relatedError;
1374
- constructor(e, n, s = qe.ERROR, i) {
1375
- super(n), this.span = e, this.msg = n, this.level = s, this.relatedError = i, Object.setPrototypeOf(this, new.target.prototype);
1376
- }
1377
- contextualMessage() {
1378
- let e = this.span.start.getContext(100, 3);
1379
- return e ? `${this.msg} ("${e.before}[${qe[this.level]} ->]${e.after}")` : this.msg;
1380
- }
1381
- toString() {
1382
- let e = this.span.details ? `, ${this.span.details}` : "";
1383
- return `${this.contextualMessage()}: ${this.span.start}${e}`;
1384
- }
1385
- };
1386
- (function(t24) {
1387
- t24[t24.Inline = 0] = "Inline", t24[t24.SideEffect = 1] = "SideEffect", t24[t24.Omit = 2] = "Omit";
1388
- })(Rn || (Rn = {}));
1389
- (function(t24) {
1390
- t24[t24.Global = 0] = "Global", t24[t24.Local = 1] = "Local";
1391
- })($n || ($n = {}));
1392
- (function(t24) {
1393
- t24[t24.Directive = 0] = "Directive", t24[t24.Pipe = 1] = "Pipe", t24[t24.NgModule = 2] = "NgModule";
1394
- })(Dn || (Dn = {}));
1395
- Yi = "(:(where|is)\\()?", ms = "-shadowcsshost", Qi = "-shadowcsscontext", Bt = "[^)(]*", Ki = `(?:\\(${Bt}\\)|${Bt})+?`, Zi = `(?:\\(${Ki}\\)|${Bt})+?`, zt = `(?:\\((${Zi})\\))`, Yr = new RegExp("(:nth-[-\\w]+)" + zt, "g"), Qr = new RegExp(ms + zt + "?([^,{]*)", "gim"), er = Qi + zt + "?([^{]*)", Kr = new RegExp(`${Yi}(${er})`, "gim"), tr = ms + "-no-combinator", Zr = new RegExp(`${tr}(?![^(]*\\))`, "g"), gs = "%COMMENT%", eo = new RegExp(gs, "g"), to = new RegExp(`(\\s*(?:${gs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g"), nr = "%COMMA_IN_PLACEHOLDER%", sr = "%SEMI_IN_PLACEHOLDER%", ir = "%COLON_IN_PLACEHOLDER%", no = new RegExp(nr, "g"), so = new RegExp(sr, "g"), io = new RegExp(ir, "g");
1396
- (function(t24) {
1397
- t24[t24.ListEnd = 0] = "ListEnd", t24[t24.Statement = 1] = "Statement", t24[t24.Variable = 2] = "Variable", t24[t24.ElementStart = 3] = "ElementStart", t24[t24.Element = 4] = "Element", t24[t24.Template = 5] = "Template", t24[t24.ElementEnd = 6] = "ElementEnd", t24[t24.ContainerStart = 7] = "ContainerStart", t24[t24.Container = 8] = "Container", t24[t24.ContainerEnd = 9] = "ContainerEnd", t24[t24.DisableBindings = 10] = "DisableBindings", t24[t24.ConditionalCreate = 11] = "ConditionalCreate", t24[t24.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t24[t24.Conditional = 13] = "Conditional", t24[t24.EnableBindings = 14] = "EnableBindings", t24[t24.Text = 15] = "Text", t24[t24.Listener = 16] = "Listener", t24[t24.InterpolateText = 17] = "InterpolateText", t24[t24.Binding = 18] = "Binding", t24[t24.Property = 19] = "Property", t24[t24.StyleProp = 20] = "StyleProp", t24[t24.ClassProp = 21] = "ClassProp", t24[t24.StyleMap = 22] = "StyleMap", t24[t24.ClassMap = 23] = "ClassMap", t24[t24.Advance = 24] = "Advance", t24[t24.Pipe = 25] = "Pipe", t24[t24.Attribute = 26] = "Attribute", t24[t24.ExtractedAttribute = 27] = "ExtractedAttribute", t24[t24.Defer = 28] = "Defer", t24[t24.DeferOn = 29] = "DeferOn", t24[t24.DeferWhen = 30] = "DeferWhen", t24[t24.I18nMessage = 31] = "I18nMessage", t24[t24.DomProperty = 32] = "DomProperty", t24[t24.Namespace = 33] = "Namespace", t24[t24.ProjectionDef = 34] = "ProjectionDef", t24[t24.Projection = 35] = "Projection", t24[t24.RepeaterCreate = 36] = "RepeaterCreate", t24[t24.Repeater = 37] = "Repeater", t24[t24.TwoWayProperty = 38] = "TwoWayProperty", t24[t24.TwoWayListener = 39] = "TwoWayListener", t24[t24.DeclareLet = 40] = "DeclareLet", t24[t24.StoreLet = 41] = "StoreLet", t24[t24.I18nStart = 42] = "I18nStart", t24[t24.I18n = 43] = "I18n", t24[t24.I18nEnd = 44] = "I18nEnd", t24[t24.I18nExpression = 45] = "I18nExpression", t24[t24.I18nApply = 46] = "I18nApply", t24[t24.IcuStart = 47] = "IcuStart", t24[t24.IcuEnd = 48] = "IcuEnd", t24[t24.IcuPlaceholder = 49] = "IcuPlaceholder", t24[t24.I18nContext = 50] = "I18nContext", t24[t24.I18nAttributes = 51] = "I18nAttributes", t24[t24.SourceLocation = 52] = "SourceLocation", t24[t24.Animation = 53] = "Animation", t24[t24.AnimationString = 54] = "AnimationString", t24[t24.AnimationBinding = 55] = "AnimationBinding", t24[t24.AnimationListener = 56] = "AnimationListener", t24[t24.Control = 57] = "Control", t24[t24.ControlCreate = 58] = "ControlCreate";
1398
- })(f || (f = {}));
1399
- (function(t24) {
1400
- t24[t24.LexicalRead = 0] = "LexicalRead", t24[t24.Context = 1] = "Context", t24[t24.TrackContext = 2] = "TrackContext", t24[t24.ReadVariable = 3] = "ReadVariable", t24[t24.NextContext = 4] = "NextContext", t24[t24.Reference = 5] = "Reference", t24[t24.StoreLet = 6] = "StoreLet", t24[t24.ContextLetReference = 7] = "ContextLetReference", t24[t24.GetCurrentView = 8] = "GetCurrentView", t24[t24.RestoreView = 9] = "RestoreView", t24[t24.ResetView = 10] = "ResetView", t24[t24.PureFunctionExpr = 11] = "PureFunctionExpr", t24[t24.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t24[t24.PipeBinding = 13] = "PipeBinding", t24[t24.PipeBindingVariadic = 14] = "PipeBindingVariadic", t24[t24.SafePropertyRead = 15] = "SafePropertyRead", t24[t24.SafeKeyedRead = 16] = "SafeKeyedRead", t24[t24.SafeInvokeFunction = 17] = "SafeInvokeFunction", t24[t24.SafeTernaryExpr = 18] = "SafeTernaryExpr", t24[t24.EmptyExpr = 19] = "EmptyExpr", t24[t24.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t24[t24.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t24[t24.SlotLiteralExpr = 22] = "SlotLiteralExpr", t24[t24.ConditionalCase = 23] = "ConditionalCase", t24[t24.ConstCollected = 24] = "ConstCollected", t24[t24.TwoWayBindingSet = 25] = "TwoWayBindingSet";
1401
- })(ie || (ie = {}));
1402
- (function(t24) {
1403
- t24[t24.None = 0] = "None", t24[t24.AlwaysInline = 1] = "AlwaysInline";
1404
- })(Bn || (Bn = {}));
1405
- (function(t24) {
1406
- t24[t24.Context = 0] = "Context", t24[t24.Identifier = 1] = "Identifier", t24[t24.SavedView = 2] = "SavedView", t24[t24.Alias = 3] = "Alias";
1407
- })(On || (On = {}));
1408
- (function(t24) {
1409
- t24[t24.Normal = 0] = "Normal", t24[t24.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
1410
- })(Fn || (Fn = {}));
1411
- (function(t24) {
1412
- t24[t24.Attribute = 0] = "Attribute", t24[t24.ClassName = 1] = "ClassName", t24[t24.StyleProperty = 2] = "StyleProperty", t24[t24.Property = 3] = "Property", t24[t24.Template = 4] = "Template", t24[t24.I18n = 5] = "I18n", t24[t24.LegacyAnimation = 6] = "LegacyAnimation", t24[t24.TwoWayProperty = 7] = "TwoWayProperty", t24[t24.Animation = 8] = "Animation";
1413
- })(M || (M = {}));
1414
- (function(t24) {
1415
- t24[t24.Creation = 0] = "Creation", t24[t24.Postproccessing = 1] = "Postproccessing";
1416
- })(Vn || (Vn = {}));
1417
- (function(t24) {
1418
- t24[t24.I18nText = 0] = "I18nText", t24[t24.I18nAttribute = 1] = "I18nAttribute";
1419
- })(Un || (Un = {}));
1420
- (function(t24) {
1421
- t24[t24.None = 0] = "None", t24[t24.ElementTag = 1] = "ElementTag", t24[t24.TemplateTag = 2] = "TemplateTag", t24[t24.OpenTag = 4] = "OpenTag", t24[t24.CloseTag = 8] = "CloseTag", t24[t24.ExpressionIndex = 16] = "ExpressionIndex";
1422
- })(Hn || (Hn = {}));
1423
- (function(t24) {
1424
- t24[t24.HTML = 0] = "HTML", t24[t24.SVG = 1] = "SVG", t24[t24.Math = 2] = "Math";
1425
- })(Wn || (Wn = {}));
1426
- (function(t24) {
1427
- t24[t24.Idle = 0] = "Idle", t24[t24.Immediate = 1] = "Immediate", t24[t24.Timer = 2] = "Timer", t24[t24.Hover = 3] = "Hover", t24[t24.Interaction = 4] = "Interaction", t24[t24.Viewport = 5] = "Viewport", t24[t24.Never = 6] = "Never";
1428
- })(R || (R = {}));
1429
- (function(t24) {
1430
- t24[t24.RootI18n = 0] = "RootI18n", t24[t24.Icu = 1] = "Icu", t24[t24.Attr = 2] = "Attr";
1431
- })(qn || (qn = {}));
1432
- (function(t24) {
1433
- t24[t24.NgTemplate = 0] = "NgTemplate", t24[t24.Structural = 1] = "Structural", t24[t24.Block = 2] = "Block";
1434
- })(jn || (jn = {}));
1435
- rr = /* @__PURE__ */ Symbol("ConsumesSlot"), vs = /* @__PURE__ */ Symbol("DependsOnSlotContext"), Te = /* @__PURE__ */ Symbol("ConsumesVars"), Gt = /* @__PURE__ */ Symbol("UsesVarOffset"), ro = { [rr]: !0, numSlotsUsed: 1 }, oo = { [vs]: !0 }, ao = { [Te]: !0 }, je = class {
1436
- strings;
1437
- expressions;
1438
- i18nPlaceholders;
1439
- constructor(e, n, s) {
1440
- if (this.strings = e, this.expressions = n, this.i18nPlaceholders = s, s.length !== 0 && s.length !== n.length) throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`);
1441
- }
1442
- }, re = class extends S {
1443
- constructor(e = null) {
1444
- super(null, e);
1445
- }
1446
- }, zn = class t20 extends re {
1447
- target;
1448
- value;
1449
- sourceSpan;
1450
- kind = ie.StoreLet;
1451
- [Te] = !0;
1452
- [vs] = !0;
1453
- constructor(e, n, s) {
1454
- super(), this.target = e, this.value = n, this.sourceSpan = s;
1455
- }
1456
- visitExpression() {
1457
- }
1458
- isEquivalent(e) {
1459
- return e instanceof t20 && e.target === this.target && e.value.isEquivalent(this.value);
1460
- }
1461
- isConstant() {
1462
- return !1;
1463
- }
1464
- transformInternalExpressions(e, n) {
1465
- this.value = (this.value, void 0);
1466
- }
1467
- clone() {
1468
- return new t20(this.target, this.value, this.sourceSpan);
1469
- }
1470
- }, Gn = class t21 extends re {
1471
- kind = ie.PureFunctionExpr;
1472
- [Te] = !0;
1473
- [Gt] = !0;
1474
- varOffset = null;
1475
- body;
1476
- args;
1477
- fn = null;
1478
- constructor(e, n) {
1479
- super(), this.body = e, this.args = n;
1480
- }
1481
- visitExpression(e, n) {
1482
- this.body?.visitExpression(e, n);
1483
- for (let s of this.args) s.visitExpression(e, n);
1484
- }
1485
- isEquivalent(e) {
1486
- return !(e instanceof t21) || e.args.length !== this.args.length ? !1 : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((n, s) => n.isEquivalent(this.args[s]));
1487
- }
1488
- isConstant() {
1489
- return !1;
1490
- }
1491
- transformInternalExpressions(e, n) {
1492
- this.body !== null ? this.body = (this.body, n | Ot.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
1493
- for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
1494
- }
1495
- clone() {
1496
- let e = new t21(this.body?.clone() ?? null, this.args.map((n) => n.clone()));
1497
- return e.fn = this.fn?.clone() ?? null, e.varOffset = this.varOffset, e;
1498
- }
1499
- }, Xn = class t22 extends re {
1500
- target;
1501
- targetSlot;
1502
- name;
1503
- args;
1504
- kind = ie.PipeBinding;
1505
- [Te] = !0;
1506
- [Gt] = !0;
1507
- varOffset = null;
1508
- constructor(e, n, s, i) {
1509
- super(), this.target = e, this.targetSlot = n, this.name = s, this.args = i;
1510
- }
1511
- visitExpression(e, n) {
1512
- for (let s of this.args) s.visitExpression(e, n);
1513
- }
1514
- isEquivalent() {
1515
- return !1;
1516
- }
1517
- isConstant() {
1518
- return !1;
1519
- }
1520
- transformInternalExpressions(e, n) {
1521
- for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
1522
- }
1523
- clone() {
1524
- let e = new t22(this.target, this.targetSlot, this.name, this.args.map((n) => n.clone()));
1525
- return e.varOffset = this.varOffset, e;
1526
- }
1527
- }, Jn = class t23 extends re {
1528
- target;
1529
- targetSlot;
1530
- name;
1531
- args;
1532
- numArgs;
1533
- kind = ie.PipeBindingVariadic;
1534
- [Te] = !0;
1535
- [Gt] = !0;
1536
- varOffset = null;
1537
- constructor(e, n, s, i, r) {
1538
- super(), this.target = e, this.targetSlot = n, this.name = s, this.args = i, this.numArgs = r;
1539
- }
1540
- visitExpression(e, n) {
1541
- this.args.visitExpression(e, n);
1542
- }
1543
- isEquivalent() {
1544
- return !1;
1545
- }
1546
- isConstant() {
1547
- return !1;
1548
- }
1549
- transformInternalExpressions(e, n) {
1550
- this.args = (this.args, void 0);
1551
- }
1552
- clone() {
1553
- let e = new t23(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
1554
- return e.varOffset = this.varOffset, e;
1555
- }
1556
- };
1557
- (function(t24) {
1558
- t24[t24.None = 0] = "None", t24[t24.InChildOperation = 1] = "InChildOperation";
1559
- })(Ot || (Ot = {}));
1560
- lo = /* @__PURE__ */ new Set([f.Element, f.ElementStart, f.Container, f.ContainerStart, f.Template, f.RepeaterCreate, f.ConditionalCreate, f.ConditionalBranchCreate]);
1561
- (function(t24) {
1562
- t24[t24.Tmpl = 0] = "Tmpl", t24[t24.Host = 1] = "Host", t24[t24.Both = 2] = "Both";
1563
- })(Yn || (Yn = {}));
1564
- (function(t24) {
1565
- t24[t24.Full = 0] = "Full", t24[t24.DomOnly = 1] = "DomOnly";
1566
- })(Qn || (Qn = {}));
1567
- co = /* @__PURE__ */ new Map([[l.ariaProperty, l.ariaProperty], [l.attribute, l.attribute], [l.classProp, l.classProp], [l.element, l.element], [l.elementContainer, l.elementContainer], [l.elementContainerEnd, l.elementContainerEnd], [l.elementContainerStart, l.elementContainerStart], [l.elementEnd, l.elementEnd], [l.elementStart, l.elementStart], [l.domProperty, l.domProperty], [l.i18nExp, l.i18nExp], [l.listener, l.listener], [l.listener, l.listener], [l.property, l.property], [l.styleProp, l.styleProp], [l.syntheticHostListener, l.syntheticHostListener], [l.syntheticHostProperty, l.syntheticHostProperty], [l.templateCreate, l.templateCreate], [l.twoWayProperty, l.twoWayProperty], [l.twoWayListener, l.twoWayListener], [l.declareLet, l.declareLet], [l.conditionalCreate, l.conditionalBranchCreate], [l.conditionalBranchCreate, l.conditionalBranchCreate], [l.domElement, l.domElement], [l.domElementStart, l.domElementStart], [l.domElementEnd, l.domElementEnd], [l.domElementContainer, l.domElementContainer], [l.domElementContainerStart, l.domElementContainerStart], [l.domElementContainerEnd, l.domElementContainerEnd], [l.domListener, l.domListener], [l.domTemplate, l.domTemplate], [l.animationEnter, l.animationEnter], [l.animationLeave, l.animationLeave], [l.animationEnterListener, l.animationEnterListener], [l.animationLeaveListener, l.animationLeaveListener]]), uo = /* @__PURE__ */ new Map([["&&", c.And], [">", c.Bigger], [">=", c.BiggerEquals], ["|", c.BitwiseOr], ["&", c.BitwiseAnd], ["/", c.Divide], ["=", c.Assign], ["==", c.Equals], ["===", c.Identical], ["<", c.Lower], ["<=", c.LowerEquals], ["-", c.Minus], ["%", c.Modulo], ["**", c.Exponentiation], ["*", c.Multiply], ["!=", c.NotEquals], ["!==", c.NotIdentical], ["??", c.NullishCoalesce], ["||", c.Or], ["+", c.Plus], ["in", c.In], ["+=", c.AdditionAssignment], ["-=", c.SubtractionAssignment], ["*=", c.MultiplicationAssignment], ["/=", c.DivisionAssignment], ["%=", c.RemainderAssignment], ["**=", c.ExponentiationAssignment], ["&&=", c.AndAssignment], ["||=", c.OrAssignment], ["??=", c.NullishCoalesceAssignment]]), po = Object.freeze([]), ho = /* @__PURE__ */ new Map([[f.ElementEnd, [f.ElementStart, f.Element]], [f.ContainerEnd, [f.ContainerStart, f.Container]], [f.I18nEnd, [f.I18nStart, f.I18n]]]), fo = /* @__PURE__ */ new Set([f.Pipe]), or = {}, ar = "\uE500";
1568
- or.ngsp = ar;
1569
- (function(t24) {
1570
- t24.HEX = "hexadecimal", t24.DEC = "decimal";
1571
- })(Kn || (Kn = {}));
1572
- xs = ` \f
1573
- \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`, mo = new RegExp(`[^${xs}]`), go = new RegExp(`[${xs}]{2,}`, "g");
1574
- (function(t24) {
1575
- t24[t24.Character = 0] = "Character", t24[t24.Identifier = 1] = "Identifier", t24[t24.PrivateIdentifier = 2] = "PrivateIdentifier", t24[t24.Keyword = 3] = "Keyword", t24[t24.String = 4] = "String", t24[t24.Operator = 5] = "Operator", t24[t24.Number = 6] = "Number", t24[t24.RegExpBody = 7] = "RegExpBody", t24[t24.RegExpFlags = 8] = "RegExpFlags", t24[t24.Error = 9] = "Error";
1576
- })(h || (h = {}));
1577
- (function(t24) {
1578
- t24[t24.Plain = 0] = "Plain", t24[t24.TemplateLiteralPart = 1] = "TemplateLiteralPart", t24[t24.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
1579
- })(F || (F = {}));
1580
- lr = ["var", "let", "as", "null", "undefined", "true", "false", "if", "else", "this", "typeof", "void", "in"], _e = class {
1581
- tokenize(e) {
1582
- return new Ft(e).scan();
1583
- }
1584
- }, A = class {
1585
- index;
1586
- end;
1587
- type;
1588
- numValue;
1589
- strValue;
1590
- constructor(e, n, s, i, r) {
1591
- this.index = e, this.end = n, this.type = s, this.numValue = i, this.strValue = r;
1592
- }
1593
- isCharacter(e) {
1594
- return this.type === h.Character && this.numValue === e;
1595
- }
1596
- isNumber() {
1597
- return this.type === h.Number;
1598
- }
1599
- isString() {
1600
- return this.type === h.String;
1601
- }
1602
- isOperator(e) {
1603
- return this.type === h.Operator && this.strValue === e;
1604
- }
1605
- isIdentifier() {
1606
- return this.type === h.Identifier;
1607
- }
1608
- isPrivateIdentifier() {
1609
- return this.type === h.PrivateIdentifier;
1610
- }
1611
- isKeyword() {
1612
- return this.type === h.Keyword;
1613
- }
1614
- isKeywordLet() {
1615
- return this.type === h.Keyword && this.strValue === "let";
1616
- }
1617
- isKeywordAs() {
1618
- return this.type === h.Keyword && this.strValue === "as";
1619
- }
1620
- isKeywordNull() {
1621
- return this.type === h.Keyword && this.strValue === "null";
1622
- }
1623
- isKeywordUndefined() {
1624
- return this.type === h.Keyword && this.strValue === "undefined";
1625
- }
1626
- isKeywordTrue() {
1627
- return this.type === h.Keyword && this.strValue === "true";
1628
- }
1629
- isKeywordFalse() {
1630
- return this.type === h.Keyword && this.strValue === "false";
1631
- }
1632
- isKeywordThis() {
1633
- return this.type === h.Keyword && this.strValue === "this";
1634
- }
1635
- isKeywordTypeof() {
1636
- return this.type === h.Keyword && this.strValue === "typeof";
1637
- }
1638
- isKeywordVoid() {
1639
- return this.type === h.Keyword && this.strValue === "void";
1640
- }
1641
- isKeywordIn() {
1642
- return this.type === h.Keyword && this.strValue === "in";
1643
- }
1644
- isError() {
1645
- return this.type === h.Error;
1646
- }
1647
- isRegExpBody() {
1648
- return this.type === h.RegExpBody;
1649
- }
1650
- isRegExpFlags() {
1651
- return this.type === h.RegExpFlags;
1652
- }
1653
- toNumber() {
1654
- return this.type === h.Number ? this.numValue : -1;
1655
- }
1656
- isTemplateLiteralPart() {
1657
- return this.isString() && this.kind === F.TemplateLiteralPart;
1658
- }
1659
- isTemplateLiteralEnd() {
1660
- return this.isString() && this.kind === F.TemplateLiteralEnd;
1661
- }
1662
- isTemplateLiteralInterpolationStart() {
1663
- return this.isOperator("${");
1664
- }
1665
- toString() {
1666
- switch (this.type) {
1667
- case h.Character:
1668
- case h.Identifier:
1669
- case h.Keyword:
1670
- case h.Operator:
1671
- case h.PrivateIdentifier:
1672
- case h.String:
1673
- case h.Error:
1674
- case h.RegExpBody:
1675
- case h.RegExpFlags:
1676
- return this.strValue;
1677
- case h.Number:
1678
- return this.numValue.toString();
1679
- default:
1680
- return null;
1681
- }
1682
- }
1683
- }, xe = class extends A {
1684
- kind;
1685
- constructor(e, n, s, i) {
1686
- super(e, n, h.String, 0, s), this.kind = i;
1687
- }
1688
- };
1689
- Ae = new A(-1, -1, h.Character, 0, ""), Ft = class {
1690
- input;
1691
- tokens = [];
1692
- length;
1693
- peek = 0;
1694
- index = -1;
1695
- braceStack = [];
1696
- constructor(e) {
1697
- this.input = e, this.length = e.length, this.advance();
1698
- }
1699
- scan() {
1700
- let e = this.scanToken();
1701
- for (; e !== null; ) this.tokens.push(e), e = this.scanToken();
1702
- return this.tokens;
1703
- }
1704
- advance() {
1705
- this.peek = ++this.index >= this.length ? pe : this.input.charCodeAt(this.index);
1706
- }
1707
- scanToken() {
1708
- let e = this.input, n = this.length, s = this.peek, i = this.index;
1709
- for (; s <= as; ) if (++i >= n) {
1710
- s = pe;
1711
- break;
1712
- } else s = e.charCodeAt(i);
1713
- if (this.peek = s, this.index = i, i >= n) return null;
1714
- if (Zn(s)) return this.scanIdentifier();
1715
- if (W(s)) return this.scanNumber(i);
1716
- let r = i;
1717
- switch (s) {
1718
- case H:
1719
- return this.advance(), W(this.peek) ? this.scanNumber(r) : this.peek !== H ? he(r, this.index, H) : (this.advance(), this.peek === H ? (this.advance(), Y(r, this.index, "...")) : this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0));
1720
- case ve:
1721
- case q:
1722
- case te:
1723
- case G:
1724
- case Q:
1725
- case j:
1726
- case fe:
1727
- return this.scanCharacter(r, s);
1728
- case Ve:
1729
- return this.scanOpenBrace(r, s);
1730
- case K:
1731
- return this.scanCloseBrace(r, s);
1732
- case cs:
1733
- case ls:
1734
- return this.scanString();
1735
- case $t:
1736
- return this.advance(), this.scanTemplateLiteralPart(r);
1737
- case Ri:
1738
- return this.scanPrivateIdentifier();
1739
- case us:
1740
- return this.scanComplexOperator(r, "+", k, "=");
1741
- case ps:
1742
- return this.scanComplexOperator(r, "-", k, "=");
1743
- case Fe:
1744
- return this.isStartOfRegex() ? this.scanRegex(i) : this.scanComplexOperator(r, "/", k, "=");
1745
- case $i:
1746
- return this.scanComplexOperator(r, "%", k, "=");
1747
- case Ui:
1748
- return this.scanOperator(r, "^");
1749
- case Nn:
1750
- return this.scanStar(r);
1751
- case Pn:
1752
- return this.scanQuestion(r);
1753
- case Di:
1754
- case Bi:
1755
- return this.scanComplexOperator(r, String.fromCharCode(s), k, "=");
1756
- case Mi:
1757
- case k:
1758
- return this.scanComplexOperator(r, String.fromCharCode(s), k, "=", k, "=");
1759
- case In:
1760
- return this.scanComplexOperator(r, "&", In, "&", k, "=");
1761
- case Ln:
1762
- return this.scanComplexOperator(r, "|", Ln, "|", k, "=");
1763
- case ds:
1764
- for (; Ji(this.peek); ) this.advance();
1765
- return this.scanToken();
1766
- }
1767
- return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
1768
- }
1769
- scanCharacter(e, n) {
1770
- return this.advance(), he(e, this.index, n);
1771
- }
1772
- scanOperator(e, n) {
1773
- return this.advance(), Y(e, this.index, n);
1774
- }
1775
- scanOpenBrace(e, n) {
1776
- return this.braceStack.push("expression"), this.advance(), he(e, this.index, n);
1777
- }
1778
- scanCloseBrace(e, n) {
1779
- return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(he(e, this.index, K)), this.scanTemplateLiteralPart(this.index)) : he(e, this.index, n);
1780
- }
1781
- scanComplexOperator(e, n, s, i, r, a) {
1782
- this.advance();
1783
- let u = n;
1784
- return this.peek == s && (this.advance(), u += i), r != null && this.peek == r && (this.advance(), u += a), Y(e, this.index, u);
1785
- }
1786
- scanIdentifier() {
1787
- let e = this.index;
1788
- for (this.advance(); es(this.peek); ) this.advance();
1789
- let n = this.input.substring(e, this.index);
1790
- return lr.indexOf(n) > -1 ? pr(e, this.index, n) : cr(e, this.index, n);
1791
- }
1792
- scanPrivateIdentifier() {
1793
- let e = this.index;
1794
- if (this.advance(), !Zn(this.peek)) return this.error("Invalid character [#]", -1);
1795
- for (; es(this.peek); ) this.advance();
1796
- let n = this.input.substring(e, this.index);
1797
- return ur(e, this.index, n);
1798
- }
1799
- scanNumber(e) {
1800
- let n = this.index === e, s = !1;
1801
- for (this.advance(); ; ) {
1802
- if (!W(this.peek)) if (this.peek === Xe) {
1803
- if (!W(this.input.charCodeAt(this.index - 1)) || !W(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
1804
- s = !0;
1805
- } else if (this.peek === H) n = !1;
1806
- else if (gr(this.peek)) {
1807
- if (this.advance(), vr(this.peek) && this.advance(), !W(this.peek)) return this.error("Invalid exponent", -1);
1808
- n = !1;
1809
- } else break;
1810
- this.advance();
1811
- }
1812
- let i = this.input.substring(e, this.index);
1813
- s && (i = i.replace(/_/g, ""));
1814
- let r = n ? wr(i) : parseFloat(i);
1815
- return hr(e, this.index, r);
1816
- }
1817
- scanString() {
1818
- let e = this.index, n = this.peek;
1819
- this.advance();
1820
- let s = "", i = this.index, r = this.input;
1821
- for (; this.peek != n; ) if (this.peek == it) {
1822
- let u = this.scanStringBackslash(s, i);
1823
- if (typeof u != "string") return u;
1824
- s = u, i = this.index;
1825
- } else {
1826
- if (this.peek == pe) return this.error("Unterminated quote", 0);
1827
- this.advance();
1828
- }
1829
- let a = r.substring(i, this.index);
1830
- return this.advance(), new xe(e, this.index, s + a, F.Plain);
1831
- }
1832
- scanQuestion(e) {
1833
- this.advance();
1834
- let n = "?";
1835
- return this.peek === Pn ? (n += "?", this.advance(), this.peek === k && (n += "=", this.advance())) : this.peek === H && (n += ".", this.advance()), Y(e, this.index, n);
1836
- }
1837
- scanTemplateLiteralPart(e) {
1838
- let n = "", s = this.index;
1839
- for (; this.peek !== $t; ) if (this.peek === it) {
1840
- let r = this.scanStringBackslash(n, s);
1841
- if (typeof r != "string") return r;
1842
- n = r, s = this.index;
1843
- } else if (this.peek === Wt) {
1844
- let r = this.index;
1845
- if (this.advance(), this.peek === Ve) return this.braceStack.push("interpolation"), this.tokens.push(new xe(e, r, n + this.input.substring(s, r), F.TemplateLiteralPart)), this.advance(), Y(r, this.index, this.input.substring(r, this.index));
1846
- } else {
1847
- if (this.peek === pe) return this.error("Unterminated template literal", 0);
1848
- this.advance();
1849
- }
1850
- let i = this.input.substring(s, this.index);
1851
- return this.advance(), new xe(e, this.index, n + i, F.TemplateLiteralEnd);
1852
- }
1853
- error(e, n) {
1854
- let s = this.index + n;
1855
- return fr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
1856
- }
1857
- scanStringBackslash(e, n) {
1858
- e += this.input.substring(n, this.index);
1859
- let s;
1860
- if (this.advance(), this.peek === Gi) {
1861
- let i = this.input.substring(this.index + 1, this.index + 5);
1862
- if (/^[0-9a-f]+$/i.test(i)) s = parseInt(i, 16);
1863
- else return this.error(`Invalid unicode escape [\\u${i}]`, 0);
1864
- for (let r = 0; r < 5; r++) this.advance();
1865
- } else s = xr(this.peek), this.advance();
1866
- return e += String.fromCharCode(s), e;
1867
- }
1868
- scanStar(e) {
1869
- this.advance();
1870
- let n = "*";
1871
- return this.peek === Nn ? (n += "*", this.advance(), this.peek === k && (n += "=", this.advance())) : this.peek === k && (n += "=", this.advance()), Y(e, this.index, n);
1872
- }
1873
- isStartOfRegex() {
1874
- if (this.tokens.length === 0) return !0;
1875
- let e = this.tokens[this.tokens.length - 1];
1876
- if (e.isOperator("!")) {
1877
- let n = this.tokens.length > 1 ? this.tokens[this.tokens.length - 2] : null;
1878
- return n === null || n.type !== h.Identifier && !n.isCharacter(q) && !n.isCharacter(G);
1879
- }
1880
- return e.type === h.Operator || e.isCharacter(ve) || e.isCharacter(te) || e.isCharacter(Q) || e.isCharacter(j);
1881
- }
1882
- scanRegex(e) {
1883
- this.advance();
1884
- let n = this.index, s = !1, i = !1;
1885
- for (; ; ) {
1886
- let p = this.peek;
1887
- if (p === pe) return this.error("Unterminated regular expression", 0);
1888
- if (s) s = !1;
1889
- else if (p === it) s = !0;
1890
- else if (p === te) i = !0;
1891
- else if (p === G) i = !1;
1892
- else if (p === Fe && !i) break;
1893
- this.advance();
1894
- }
1895
- let r = this.input.substring(n, this.index);
1896
- this.advance();
1897
- let a = dr(e, this.index, r), u = this.scanRegexFlags(this.index);
1898
- return u !== null ? (this.tokens.push(a), u) : a;
1899
- }
1900
- scanRegexFlags(e) {
1901
- if (!Dt(this.peek)) return null;
1902
- for (; Dt(this.peek); ) this.advance();
1903
- return mr(e, this.index, this.input.substring(e, this.index));
1904
- }
1905
- };
1906
- Vt = class {
1907
- strings;
1908
- expressions;
1909
- offsets;
1910
- constructor(e, n, s) {
1911
- this.strings = e, this.expressions = n, this.offsets = s;
1912
- }
1913
- }, Ut = class {
1914
- templateBindings;
1915
- warnings;
1916
- errors;
1917
- constructor(e, n, s) {
1918
- this.templateBindings = e, this.warnings = n, this.errors = s;
1919
- }
1920
- };
1921
- oe = class {
1922
- _lexer;
1923
- _supportsDirectPipeReferences;
1924
- constructor(e, n = !1) {
1925
- this._lexer = e, this._supportsDirectPipeReferences = n;
1926
- }
1927
- parseAction(e, n, s) {
1928
- let i = [];
1929
- this._checkNoInterpolation(i, e, n);
1930
- let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r), u = new z(e, n, s, a, 1, i, 0, this._supportsDirectPipeReferences).parseChain();
1931
- return new O(u, e, B(n), s, i);
1932
- }
1933
- parseBinding(e, n, s) {
1934
- let i = [], r = this._parseBindingAst(e, n, s, i);
1935
- return new O(r, e, B(n), s, i);
1936
- }
1937
- checkSimpleExpression(e) {
1938
- let n = new Ht();
1939
- return e.visit(n), n.errors;
1940
- }
1941
- parseSimpleBinding(e, n, s) {
1942
- let i = [], r = this._parseBindingAst(e, n, s, i), a = this.checkSimpleExpression(r);
1943
- return a.length > 0 && i.push(ee(`Host binding expression cannot contain ${a.join(" ")}`, e, "", n)), new O(r, e, B(n), s, i);
1944
- }
1945
- _parseBindingAst(e, n, s, i) {
1946
- this._checkNoInterpolation(i, e, n);
1947
- let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r);
1948
- return new z(e, n, s, a, 0, i, 0, this._supportsDirectPipeReferences).parseChain();
1949
- }
1950
- parseTemplateBindings(e, n, s, i, r) {
1951
- let a = this._lexer.tokenize(n), u = [];
1952
- return new z(n, s, r, a, 0, u, 0, this._supportsDirectPipeReferences).parseTemplateBindings({ source: e, span: new $(i, i + e.length) });
1953
- }
1954
- parseInterpolation(e, n, s, i) {
1955
- let r = [], { strings: a, expressions: u, offsets: p } = this.splitInterpolation(e, n, r, i);
1956
- if (u.length === 0) return null;
1957
- let d = [];
1958
- for (let w = 0; w < u.length; ++w) {
1959
- let D = i?.[w * 2 + 1]?.sourceSpan, _ = u[w].text, { stripped: T, hasComments: y } = this._stripComments(_), V = this._lexer.tokenize(T);
1960
- if (y && T.trim().length === 0 && V.length === 0) {
1961
- r.push(ee("Interpolation expression cannot only contain a comment", e, `at column ${u[w].start} in`, n));
1962
- continue;
1963
- }
1964
- let ce = new z(D ? _ : e, D || n, s, V, 0, r, p[w], this._supportsDirectPipeReferences).parseChain();
1965
- d.push(ce);
1966
- }
1967
- return this.createInterpolationAst(a.map((w) => w.text), d, e, B(n), s, r);
1968
- }
1969
- parseInterpolationExpression(e, n, s) {
1970
- let { stripped: i } = this._stripComments(e), r = this._lexer.tokenize(i), a = [], u = new z(e, n, s, r, 0, a, 0, this._supportsDirectPipeReferences).parseChain(), p = ["", ""];
1971
- return this.createInterpolationAst(p, [u], e, B(n), s, a);
1972
- }
1973
- createInterpolationAst(e, n, s, i, r, a) {
1974
- let u = new X(0, s.length), p = new Ii(u, u.toAbsolute(r), e, n);
1975
- return new O(p, s, i, r, a);
1976
- }
1977
- splitInterpolation(e, n, s, i) {
1978
- let r = [], a = [], u = [], p = i ? Sr(i) : null, d = 0, w = !1, D = !1, _ = "{{", T = "}}";
1979
- for (; d < e.length; ) if (w) {
1980
- let y = d, V = y + _.length, ce = this._getInterpolationEndIndex(e, T, V);
1981
- if (ce === -1) {
1982
- w = !1, D = !0;
1983
- break;
1984
- }
1985
- let rn = ce + T.length, on = e.substring(V, ce);
1986
- on.trim().length === 0 && s.push(ee("Blank expressions are not allowed in interpolated strings", e, `at column ${d} in`, n)), a.push({ text: on, start: y, end: rn });
1987
- let yi = (p?.get(y) ?? y) + _.length;
1988
- u.push(yi), d = rn, w = !1;
1989
- } else {
1990
- let y = d;
1991
- d = e.indexOf(_, d), d === -1 && (d = e.length);
1992
- let V = e.substring(y, d);
1993
- r.push({ text: V, start: y, end: d }), w = !0;
1994
- }
1995
- if (!w) if (D) {
1996
- let y = r[r.length - 1];
1997
- y.text += e.substring(d), y.end = e.length;
1998
- } else r.push({ text: e.substring(d), start: d, end: e.length });
1999
- return new Vt(r, a, u);
2000
- }
2001
- wrapLiteralPrimitive(e, n, s) {
2002
- let i = new X(0, e == null ? 0 : e.length);
2003
- return new O(new I(i, i.toAbsolute(s), e), e, typeof n == "string" ? n : B(n), s, []);
2004
- }
2005
- _stripComments(e) {
2006
- let n = this._commentStart(e);
2007
- return n != null ? { stripped: e.substring(0, n), hasComments: !0 } : { stripped: e, hasComments: !1 };
2008
- }
2009
- _commentStart(e) {
2010
- let n = null;
2011
- for (let s = 0; s < e.length - 1; s++) {
2012
- let i = e.charCodeAt(s), r = e.charCodeAt(s + 1);
2013
- if (i === Fe && r == Fe && n == null) return s;
2014
- n === i ? n = null : n == null && Mn(i) && (n = i);
2015
- }
2016
- return null;
2017
- }
2018
- _checkNoInterpolation(e, n, s) {
2019
- let i = -1, r = -1;
2020
- for (let a of this._forEachUnquotedChar(n, 0)) if (i === -1) n.startsWith("{{") && (i = a);
2021
- else if (r = this._getInterpolationEndIndex(n, "}}", a), r > -1) break;
2022
- i > -1 && r > -1 && e.push(ee("Got interpolation ({{}}) where expression was expected", n, `at column ${i} in`, s));
2023
- }
2024
- _getInterpolationEndIndex(e, n, s) {
2025
- for (let i of this._forEachUnquotedChar(e, s)) {
2026
- if (e.startsWith(n, i)) return i;
2027
- if (e.startsWith("//", i)) return e.indexOf(n, i);
2028
- }
2029
- return -1;
2030
- }
2031
- *_forEachUnquotedChar(e, n) {
2032
- let s = null, i = 0;
2033
- for (let r = n; r < e.length; r++) {
2034
- let a = e[r];
2035
- Mn(e.charCodeAt(r)) && (s === null || s === a) && i % 2 === 0 ? s = s === null ? a : null : s === null && (yield r), i = a === "\\" ? i + 1 : 0;
2036
- }
2037
- }
2038
- };
2039
- (function(t24) {
2040
- t24[t24.None = 0] = "None", t24[t24.Writable = 1] = "Writable";
2041
- })(Z || (Z = {}));
2042
- ts = /* @__PURE__ */ new Set(["d", "g", "i", "m", "s", "u", "v", "y"]), z = class {
2043
- input;
2044
- parseSourceSpan;
2045
- absoluteOffset;
2046
- tokens;
2047
- parseFlags;
2048
- errors;
2049
- offset;
2050
- supportsDirectPipeReferences;
2051
- rparensExpected = 0;
2052
- rbracketsExpected = 0;
2053
- rbracesExpected = 0;
2054
- context = Z.None;
2055
- sourceSpanCache = /* @__PURE__ */ new Map();
2056
- index = 0;
2057
- constructor(e, n, s, i, r, a, u, p) {
2058
- this.input = e, this.parseSourceSpan = n, this.absoluteOffset = s, this.tokens = i, this.parseFlags = r, this.errors = a, this.offset = u, this.supportsDirectPipeReferences = p;
2059
- }
2060
- peek(e) {
2061
- let n = this.index + e;
2062
- return n < this.tokens.length ? this.tokens[n] : Ae;
2063
- }
2064
- get next() {
2065
- return this.peek(0);
2066
- }
2067
- get atEOF() {
2068
- return this.index >= this.tokens.length;
2069
- }
2070
- get inputIndex() {
2071
- return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
2072
- }
2073
- get currentEndIndex() {
2074
- return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
2075
- }
2076
- get currentAbsoluteOffset() {
2077
- return this.absoluteOffset + this.inputIndex;
2078
- }
2079
- span(e, n) {
2080
- let s = this.currentEndIndex;
2081
- if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
2082
- let i = s;
2083
- s = e, e = i;
2084
- }
2085
- return new X(e, s);
2086
- }
2087
- sourceSpan(e, n) {
2088
- let s = `${e}@${this.inputIndex}:${n}`;
2089
- return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, n).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
2090
- }
2091
- advance() {
2092
- this.index++;
2093
- }
2094
- withContext(e, n) {
2095
- this.context |= e;
2096
- let s = n();
2097
- return this.context ^= e, s;
2098
- }
2099
- consumeOptionalCharacter(e) {
2100
- return this.next.isCharacter(e) ? (this.advance(), !0) : !1;
2101
- }
2102
- peekKeywordLet() {
2103
- return this.next.isKeywordLet();
2104
- }
2105
- peekKeywordAs() {
2106
- return this.next.isKeywordAs();
2107
- }
2108
- expectCharacter(e) {
2109
- this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
2110
- }
2111
- consumeOptionalOperator(e) {
2112
- return this.next.isOperator(e) ? (this.advance(), !0) : !1;
2113
- }
2114
- isAssignmentOperator(e) {
2115
- return e.type === h.Operator && E.isAssignmentOperation(e.strValue);
2116
- }
2117
- expectOperator(e) {
2118
- this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
2119
- }
2120
- prettyPrintToken(e) {
2121
- return e === Ae ? "end of input" : `token ${e}`;
2122
- }
2123
- expectIdentifierOrKeyword() {
2124
- let e = this.next;
2125
- 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());
2126
- }
2127
- expectIdentifierOrKeywordOrString() {
2128
- let e = this.next;
2129
- 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());
2130
- }
2131
- parseChain() {
2132
- let e = [], n = this.inputIndex;
2133
- for (; this.index < this.tokens.length; ) {
2134
- let s = this.parsePipe();
2135
- if (e.push(s), this.consumeOptionalCharacter(fe)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(fe); ) ;
2136
- else if (this.index < this.tokens.length) {
2137
- let i = this.index;
2138
- if (this.error(`Unexpected token '${this.next}'`), this.index === i) break;
2139
- }
2140
- }
2141
- if (e.length === 0) {
2142
- let s = this.offset, i = this.offset + this.input.length;
2143
- return new b(this.span(s, i), this.sourceSpan(s, i));
2144
- }
2145
- return e.length == 1 ? e[0] : new yt(this.span(n), this.sourceSpan(n), e);
2146
- }
2147
- parsePipe() {
2148
- let e = this.inputIndex, n = this.parseExpression();
2149
- if (this.consumeOptionalOperator("|")) {
2150
- this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
2151
- do {
2152
- let s = this.inputIndex, i = this.expectIdentifierOrKeyword(), r, a;
2153
- i !== null ? r = this.sourceSpan(s) : (i = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, r = new X(a, a).toAbsolute(this.absoluteOffset));
2154
- let u = [];
2155
- for (; this.consumeOptionalCharacter(j); ) u.push(this.parseExpression());
2156
- let p;
2157
- if (this.supportsDirectPipeReferences) {
2158
- let d = i.charCodeAt(0);
2159
- p = d === Xe || d >= qt && d <= jt ? me.ReferencedDirectly : me.ReferencedByName;
2160
- } else p = me.ReferencedByName;
2161
- n = new kt(this.span(e), this.sourceSpan(e, a), n, i, u, p, r);
2162
- } while (this.consumeOptionalOperator("|"));
2163
- }
2164
- return n;
2165
- }
2166
- parseExpression() {
2167
- return this.parseConditional();
2168
- }
2169
- parseConditional() {
2170
- let e = this.inputIndex, n = this.parseLogicalOr();
2171
- if (this.consumeOptionalOperator("?")) {
2172
- let s = this.parsePipe(), i;
2173
- if (this.consumeOptionalCharacter(j)) i = this.parsePipe();
2174
- else {
2175
- let r = this.inputIndex, a = this.input.substring(e, r);
2176
- this.error(`Conditional expression ${a} requires all 3 expressions`), i = new b(this.span(e), this.sourceSpan(e));
2177
- }
2178
- return new Ct(this.span(e), this.sourceSpan(e), n, s, i);
2179
- } else return n;
2180
- }
2181
- parseLogicalOr() {
2182
- let e = this.inputIndex, n = this.parseLogicalAnd();
2183
- for (; this.consumeOptionalOperator("||"); ) {
2184
- let s = this.parseLogicalAnd();
2185
- n = new E(this.span(e), this.sourceSpan(e), "||", n, s);
2186
- }
2187
- return n;
2188
- }
2189
- parseLogicalAnd() {
2190
- let e = this.inputIndex, n = this.parseNullishCoalescing();
2191
- for (; this.consumeOptionalOperator("&&"); ) {
2192
- let s = this.parseNullishCoalescing();
2193
- n = new E(this.span(e), this.sourceSpan(e), "&&", n, s);
2194
- }
2195
- return n;
2196
- }
2197
- parseNullishCoalescing() {
2198
- let e = this.inputIndex, n = this.parseEquality();
2199
- for (; this.consumeOptionalOperator("??"); ) {
2200
- let s = this.parseEquality();
2201
- n = new E(this.span(e), this.sourceSpan(e), "??", n, s);
2202
- }
2203
- return n;
2204
- }
2205
- parseEquality() {
2206
- let e = this.inputIndex, n = this.parseRelational();
2207
- for (; this.next.type == h.Operator; ) {
2208
- let s = this.next.strValue;
2209
- switch (s) {
2210
- case "==":
2211
- case "===":
2212
- case "!=":
2213
- case "!==":
2214
- this.advance();
2215
- let i = this.parseRelational();
2216
- n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2217
- continue;
2218
- }
2219
- break;
2220
- }
2221
- return n;
2222
- }
2223
- parseRelational() {
2224
- let e = this.inputIndex, n = this.parseAdditive();
2225
- for (; this.next.type == h.Operator || this.next.isKeywordIn; ) {
2226
- let s = this.next.strValue;
2227
- switch (s) {
2228
- case "<":
2229
- case ">":
2230
- case "<=":
2231
- case ">=":
2232
- case "in":
2233
- this.advance();
2234
- let i = this.parseAdditive();
2235
- n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2236
- continue;
2237
- }
2238
- break;
2239
- }
2240
- return n;
2241
- }
2242
- parseAdditive() {
2243
- let e = this.inputIndex, n = this.parseMultiplicative();
2244
- for (; this.next.type == h.Operator; ) {
2245
- let s = this.next.strValue;
2246
- switch (s) {
2247
- case "+":
2248
- case "-":
2249
- this.advance();
2250
- let i = this.parseMultiplicative();
2251
- n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2252
- continue;
2253
- }
2254
- break;
2255
- }
2256
- return n;
2257
- }
2258
- parseMultiplicative() {
2259
- let e = this.inputIndex, n = this.parseExponentiation();
2260
- for (; this.next.type == h.Operator; ) {
2261
- let s = this.next.strValue;
2262
- switch (s) {
2263
- case "*":
2264
- case "%":
2265
- case "/":
2266
- this.advance();
2267
- let i = this.parseExponentiation();
2268
- n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2269
- continue;
2270
- }
2271
- break;
2272
- }
2273
- return n;
2274
- }
2275
- parseExponentiation() {
2276
- let e = this.inputIndex, n = this.parsePrefix();
2277
- for (; this.next.type == h.Operator && this.next.strValue === "**"; ) {
2278
- (n instanceof ge || n instanceof Me || n instanceof Re || n instanceof $e) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
2279
- let s = this.parseExponentiation();
2280
- n = new E(this.span(e), this.sourceSpan(e), "**", n, s);
2281
- }
2282
- return n;
2283
- }
2284
- parsePrefix() {
2285
- if (this.next.type == h.Operator) {
2286
- let e = this.inputIndex, n = this.next.strValue, s;
2287
- switch (n) {
2288
- case "+":
2289
- return this.advance(), s = this.parsePrefix(), ge.createPlus(this.span(e), this.sourceSpan(e), s);
2290
- case "-":
2291
- return this.advance(), s = this.parsePrefix(), ge.createMinus(this.span(e), this.sourceSpan(e), s);
2292
- case "!":
2293
- return this.advance(), s = this.parsePrefix(), new Me(this.span(e), this.sourceSpan(e), s);
2294
- }
2295
- } else if (this.next.isKeywordTypeof()) {
2296
- let e = this.inputIndex;
2297
- this.advance();
2298
- let n = this.parsePrefix();
2299
- return new Re(this.span(e), this.sourceSpan(e), n);
2300
- } else if (this.next.isKeywordVoid()) {
2301
- let e = this.inputIndex;
2302
- this.advance();
2303
- let n = this.parsePrefix();
2304
- return new $e(this.span(e), this.sourceSpan(e), n);
2305
- }
2306
- return this.parseCallChain();
2307
- }
2308
- parseCallChain() {
2309
- let e = this.inputIndex, n = this.parsePrimary();
2310
- for (; ; ) if (this.consumeOptionalCharacter(H)) n = this.parseAccessMember(n, e, !1);
2311
- else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(ve) ? n = this.parseCall(n, e, !0) : n = this.consumeOptionalCharacter(te) ? this.parseKeyedReadOrWrite(n, e, !0) : this.parseAccessMember(n, e, !0);
2312
- else if (this.consumeOptionalCharacter(te)) n = this.parseKeyedReadOrWrite(n, e, !1);
2313
- else if (this.consumeOptionalCharacter(ve)) n = this.parseCall(n, e, !1);
2314
- else if (this.consumeOptionalOperator("!")) n = new Nt(this.span(e), this.sourceSpan(e), n);
2315
- else if (this.next.isTemplateLiteralEnd()) n = this.parseNoInterpolationTaggedTemplateLiteral(n, e);
2316
- else if (this.next.isTemplateLiteralPart()) n = this.parseTaggedTemplateLiteral(n, e);
2317
- else return n;
2318
- }
2319
- parsePrimary() {
2320
- let e = this.inputIndex;
2321
- if (this.consumeOptionalCharacter(ve)) {
2322
- this.rparensExpected++;
2323
- let n = this.parsePipe();
2324
- return this.consumeOptionalCharacter(q) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(q)), this.rparensExpected--, new Ee(this.span(e), this.sourceSpan(e), n);
2325
- } else {
2326
- if (this.next.isKeywordNull()) return this.advance(), new I(this.span(e), this.sourceSpan(e), null);
2327
- if (this.next.isKeywordUndefined()) return this.advance(), new I(this.span(e), this.sourceSpan(e), void 0);
2328
- if (this.next.isKeywordTrue()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !0);
2329
- if (this.next.isKeywordFalse()) return this.advance(), new I(this.span(e), this.sourceSpan(e), !1);
2330
- if (this.next.isKeywordIn()) return this.advance(), new I(this.span(e), this.sourceSpan(e), "in");
2331
- if (this.next.isKeywordThis()) return this.advance(), new Et(this.span(e), this.sourceSpan(e));
2332
- if (this.consumeOptionalCharacter(te)) return this.parseLiteralArray(e);
2333
- if (this.next.isCharacter(Ve)) return this.parseLiteralMap();
2334
- if (this.next.isIdentifier()) return this.parseAccessMember(new ne(this.span(e), this.sourceSpan(e)), e, !1);
2335
- if (this.next.isNumber()) {
2336
- let n = this.next.toNumber();
2337
- return this.advance(), new I(this.span(e), this.sourceSpan(e), n);
2338
- } else {
2339
- if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
2340
- if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
2341
- if (this.next.isString() && this.next.kind === F.Plain) {
2342
- let n = this.next.toString();
2343
- return this.advance(), new I(this.span(e), this.sourceSpan(e), n);
2344
- } else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new b(this.span(e), this.sourceSpan(e))) : this.next.isRegExpBody() ? this.parseRegularExpressionLiteral() : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new b(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new b(this.span(e), this.sourceSpan(e)));
2345
- }
2346
- }
2347
- }
2348
- parseLiteralArray(e) {
2349
- this.rbracketsExpected++;
2350
- let n = [];
2351
- do
2352
- if (this.next.isOperator("...")) n.push(this.parseSpreadElement());
2353
- else if (!this.next.isCharacter(G)) n.push(this.parsePipe());
2354
- else break;
2355
- while (this.consumeOptionalCharacter(Q));
2356
- return this.rbracketsExpected--, this.expectCharacter(G), new bt(this.span(e), this.sourceSpan(e), n);
2357
- }
2358
- parseLiteralMap() {
2359
- let e = [], n = [], s = this.inputIndex;
2360
- if (this.expectCharacter(Ve), !this.consumeOptionalCharacter(K)) {
2361
- this.rbracesExpected++;
2362
- do {
2363
- let i = this.inputIndex;
2364
- if (this.next.isOperator("...")) {
2365
- this.advance(), e.push({ kind: "spread", span: this.span(i), sourceSpan: this.sourceSpan(i) }), n.push(this.parsePipe());
2366
- continue;
2367
- }
2368
- let r = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), u = this.span(i), p = this.sourceSpan(i), d = { kind: "property", key: a, quoted: r, span: u, sourceSpan: p };
2369
- e.push(d), r ? (this.expectCharacter(j), n.push(this.parsePipe())) : this.consumeOptionalCharacter(j) ? n.push(this.parsePipe()) : (d.isShorthandInitialized = !0, n.push(new de(u, p, p, new ne(u, p), a)));
2370
- } while (this.consumeOptionalCharacter(Q) && !this.next.isCharacter(K));
2371
- this.rbracesExpected--, this.expectCharacter(K);
2372
- }
2373
- return new It(this.span(s), this.sourceSpan(s), e, n);
2374
- }
2375
- parseAccessMember(e, n, s) {
2376
- let i = this.inputIndex, r = this.withContext(Z.Writable, () => {
2377
- let u = this.expectIdentifierOrKeyword() ?? "";
2378
- return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
2379
- }), a = this.sourceSpan(i);
2380
- if (s) return this.isAssignmentOperator(this.next) ? (this.advance(), this.error("The '?.' operator cannot be used in the assignment"), new b(this.span(n), this.sourceSpan(n))) : new _t(this.span(n), this.sourceSpan(n), a, e, r);
2381
- if (this.isAssignmentOperator(this.next)) {
2382
- let u = this.next.strValue;
2383
- if (!(this.parseFlags & 1)) return this.advance(), this.error("Bindings cannot contain assignments"), new b(this.span(n), this.sourceSpan(n));
2384
- let p = new de(this.span(n), this.sourceSpan(n), a, e, r);
2385
- this.advance();
2386
- let d = this.parseConditional();
2387
- return new E(this.span(n), this.sourceSpan(n), u, p, d);
2388
- } else return new de(this.span(n), this.sourceSpan(n), a, e, r);
2389
- }
2390
- parseCall(e, n, s) {
2391
- let i = this.inputIndex;
2392
- this.rparensExpected++;
2393
- let r = this.parseCallArguments(), a = this.span(i, this.inputIndex).toAbsolute(this.absoluteOffset);
2394
- this.expectCharacter(q), this.rparensExpected--;
2395
- let u = this.span(n), p = this.sourceSpan(n);
2396
- return s ? new Lt(u, p, e, r, a) : new Pt(u, p, e, r, a);
2397
- }
2398
- parseCallArguments() {
2399
- if (this.next.isCharacter(q)) return [];
2400
- let e = [];
2401
- do
2402
- e.push(this.next.isOperator("...") ? this.parseSpreadElement() : this.parsePipe());
2403
- while (this.consumeOptionalCharacter(Q));
2404
- return e;
2405
- }
2406
- parseSpreadElement() {
2407
- this.next.isOperator("...") || this.error("Spread element must start with '...' operator");
2408
- let e = this.inputIndex;
2409
- this.advance();
2410
- let n = this.parsePipe(), s = this.span(e), i = this.sourceSpan(e);
2411
- return new At(s, i, n);
2412
- }
2413
- expectTemplateBindingKey() {
2414
- let e = "", n = !1, s = this.currentAbsoluteOffset;
2415
- do
2416
- e += this.expectIdentifierOrKeywordOrString(), n = this.consumeOptionalOperator("-"), n && (e += "-");
2417
- while (n);
2418
- return { source: e, span: new $(s, s + e.length) };
2419
- }
2420
- parseTemplateBindings(e) {
2421
- let n = [];
2422
- for (n.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length; ) {
2423
- let s = this.parseLetBinding();
2424
- if (s) n.push(s);
2425
- else {
2426
- let i = this.expectTemplateBindingKey(), r = this.parseAsBinding(i);
2427
- r ? n.push(r) : (i.source = e.source + i.source.charAt(0).toUpperCase() + i.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(i)));
2428
- }
2429
- this.consumeStatementTerminator();
2430
- }
2431
- return new Ut(n, [], this.errors);
2432
- }
2433
- parseKeyedReadOrWrite(e, n, s) {
2434
- return this.withContext(Z.Writable, () => {
2435
- this.rbracketsExpected++;
2436
- let i = this.parsePipe();
2437
- if (i instanceof b && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(G), this.isAssignmentOperator(this.next)) {
2438
- let r = this.next.strValue;
2439
- if (s) this.advance(), this.error("The '?.' operator cannot be used in the assignment");
2440
- else {
2441
- let a = new Le(this.span(n), this.sourceSpan(n), e, i);
2442
- this.advance();
2443
- let u = this.parseConditional();
2444
- return new E(this.span(n), this.sourceSpan(n), r, a, u);
2445
- }
2446
- } else return s ? new Tt(this.span(n), this.sourceSpan(n), e, i) : new Le(this.span(n), this.sourceSpan(n), e, i);
2447
- return new b(this.span(n), this.sourceSpan(n));
2448
- });
2449
- }
2450
- parseDirectiveKeywordBindings(e) {
2451
- let n = [];
2452
- this.consumeOptionalCharacter(j);
2453
- let s = this.getDirectiveBoundTarget(), i = this.currentAbsoluteOffset, r = this.parseAsBinding(e);
2454
- r || (this.consumeStatementTerminator(), i = this.currentAbsoluteOffset);
2455
- let a = new $(e.span.start, i);
2456
- return n.push(new ye(a, e, s)), r && n.push(r), n;
2457
- }
2458
- getDirectiveBoundTarget() {
2459
- if (this.next === Ae || this.peekKeywordAs() || this.peekKeywordLet()) return null;
2460
- let e = this.parsePipe(), { start: n, end: s } = e.span, i = this.input.substring(n, s);
2461
- return new O(e, i, B(this.parseSourceSpan), this.absoluteOffset + n, this.errors);
2462
- }
2463
- parseAsBinding(e) {
2464
- if (!this.peekKeywordAs()) return null;
2465
- this.advance();
2466
- let n = this.expectTemplateBindingKey();
2467
- this.consumeStatementTerminator();
2468
- let s = new $(e.span.start, this.currentAbsoluteOffset);
2469
- return new se(s, n, e);
2470
- }
2471
- parseLetBinding() {
2472
- if (!this.peekKeywordLet()) return null;
2473
- let e = this.currentAbsoluteOffset;
2474
- this.advance();
2475
- let n = this.expectTemplateBindingKey(), s = null;
2476
- this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
2477
- let i = new $(e, this.currentAbsoluteOffset);
2478
- return new se(i, n, s);
2479
- }
2480
- parseNoInterpolationTaggedTemplateLiteral(e, n) {
2481
- let s = this.parseNoInterpolationTemplateLiteral();
2482
- return new De(this.span(n), this.sourceSpan(n), e, s);
2483
- }
2484
- parseNoInterpolationTemplateLiteral() {
2485
- let e = this.next.strValue, n = this.inputIndex;
2486
- this.advance();
2487
- let s = this.span(n), i = this.sourceSpan(n);
2488
- return new Be(s, i, [new Oe(s, i, e)], []);
2489
- }
2490
- parseTaggedTemplateLiteral(e, n) {
2491
- let s = this.parseTemplateLiteral();
2492
- return new De(this.span(n), this.sourceSpan(n), e, s);
2493
- }
2494
- parseTemplateLiteral() {
2495
- let e = [], n = [], s = this.inputIndex;
2496
- for (; this.next !== Ae; ) {
2497
- let i = this.next;
2498
- if (i.isTemplateLiteralPart() || i.isTemplateLiteralEnd()) {
2499
- let r = this.inputIndex;
2500
- if (this.advance(), e.push(new Oe(this.span(r), this.sourceSpan(r), i.strValue)), i.isTemplateLiteralEnd()) break;
2501
- } else if (i.isTemplateLiteralInterpolationStart()) {
2502
- this.advance(), this.rbracesExpected++;
2503
- let r = this.parsePipe();
2504
- r instanceof b ? this.error("Template literal interpolation cannot be empty") : n.push(r), this.rbracesExpected--;
2505
- } else this.advance();
2506
- }
2507
- return new Be(this.span(s), this.sourceSpan(s), e, n);
2508
- }
2509
- parseRegularExpressionLiteral() {
2510
- let e = this.next;
2511
- if (this.advance(), !e.isRegExpBody()) return new b(this.span(this.inputIndex), this.sourceSpan(this.inputIndex));
2512
- let n = null;
2513
- if (this.next.isRegExpFlags()) {
2514
- n = this.next, this.advance();
2515
- let r = /* @__PURE__ */ new Set();
2516
- for (let a = 0; a < n.strValue.length; a++) {
2517
- let u = n.strValue[a];
2518
- ts.has(u) ? r.has(u) ? this.error(`Duplicate regular expression flag "${u}"`, n.index + a) : r.add(u) : this.error(`Unsupported regular expression flag "${u}". The supported flags are: ` + Array.from(ts, (p) => `"${p}"`).join(", "), n.index + a);
2519
- }
2520
- }
2521
- let s = e.index, i = n ? n.end : e.end;
2522
- return new Mt(this.span(s, i), this.sourceSpan(s, i), e.strValue, n ? n.strValue : null);
2523
- }
2524
- consumeStatementTerminator() {
2525
- this.consumeOptionalCharacter(fe) || this.consumeOptionalCharacter(Q);
2526
- }
2527
- error(e, n = this.index) {
2528
- this.errors.push(ee(e, this.input, this.getErrorLocationText(n), this.parseSourceSpan)), this.skip();
2529
- }
2530
- getErrorLocationText(e) {
2531
- return e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
2532
- }
2533
- _reportErrorForPrivateIdentifier(e, n) {
2534
- let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
2535
- n !== null && (s += `, ${n}`), this.error(s);
2536
- }
2537
- skip() {
2538
- let e = this.next;
2539
- for (; this.index < this.tokens.length && !e.isCharacter(fe) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(q)) && (this.rbracesExpected <= 0 || !e.isCharacter(K)) && (this.rbracketsExpected <= 0 || !e.isCharacter(G)) && (!(this.context & Z.Writable) || !this.isAssignmentOperator(e)); ) this.next.isError() && this.errors.push(ee(this.next.toString(), this.input, this.getErrorLocationText(this.next.index), this.parseSourceSpan)), this.advance(), e = this.next;
2540
- }
2541
- };
2542
- Ht = class extends Rt {
2543
- errors = [];
2544
- visitPipe() {
2545
- this.errors.push("pipes");
2546
- }
2547
- };
2548
- Er = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex", "aria-activedescendant": "ariaActiveDescendantElement", "aria-atomic": "ariaAtomic", "aria-autocomplete": "ariaAutoComplete", "aria-busy": "ariaBusy", "aria-checked": "ariaChecked", "aria-colcount": "ariaColCount", "aria-colindex": "ariaColIndex", "aria-colindextext": "ariaColIndexText", "aria-colspan": "ariaColSpan", "aria-controls": "ariaControlsElements", "aria-current": "ariaCurrent", "aria-describedby": "ariaDescribedByElements", "aria-description": "ariaDescription", "aria-details": "ariaDetailsElements", "aria-disabled": "ariaDisabled", "aria-errormessage": "ariaErrorMessageElements", "aria-expanded": "ariaExpanded", "aria-flowto": "ariaFlowToElements", "aria-haspopup": "ariaHasPopup", "aria-hidden": "ariaHidden", "aria-invalid": "ariaInvalid", "aria-keyshortcuts": "ariaKeyShortcuts", "aria-label": "ariaLabel", "aria-labelledby": "ariaLabelledByElements", "aria-level": "ariaLevel", "aria-live": "ariaLive", "aria-modal": "ariaModal", "aria-multiline": "ariaMultiLine", "aria-multiselectable": "ariaMultiSelectable", "aria-orientation": "ariaOrientation", "aria-owns": "ariaOwnsElements", "aria-placeholder": "ariaPlaceholder", "aria-posinset": "ariaPosInSet", "aria-pressed": "ariaPressed", "aria-readonly": "ariaReadOnly", "aria-required": "ariaRequired", "aria-roledescription": "ariaRoleDescription", "aria-rowcount": "ariaRowCount", "aria-rowindex": "ariaRowIndex", "aria-rowindextext": "ariaRowIndexText", "aria-rowspan": "ariaRowSpan", "aria-selected": "ariaSelected", "aria-setsize": "ariaSetSize", "aria-sort": "ariaSort", "aria-valuemax": "ariaValueMax", "aria-valuemin": "ariaValueMin", "aria-valuenow": "ariaValueNow", "aria-valuetext": "ariaValueText" })), vo = Array.from(Er).reduce((t24, [e, n]) => (t24.set(e, n), t24), /* @__PURE__ */ new Map()), xo = new oe(new _e());
2549
- wo = [{ test: P(f.StyleMap), transform: ze }, { test: P(f.ClassMap), transform: ze }, { test: P(f.StyleProp) }, { test: P(f.ClassProp) }, { test: we(f.Attribute, !0) }, { test: we(f.Property, !0) }, { test: yr }, { test: we(f.Attribute, !1) }, { test: P(f.Control) }], So = [{ test: we(f.DomProperty, !0) }, { test: we(f.DomProperty, !1) }, { test: P(f.Attribute) }, { test: P(f.StyleMap), transform: ze }, { test: P(f.ClassMap), transform: ze }, { test: P(f.StyleProp) }, { test: P(f.ClassProp) }], Eo = /* @__PURE__ */ new Set([f.Listener, f.TwoWayListener, f.AnimationListener, f.StyleMap, f.ClassMap, f.StyleProp, f.ClassProp, f.Property, f.TwoWayProperty, f.DomProperty, f.Attribute, f.Animation, f.Control]);
2550
- yo = /* @__PURE__ */ new Map([[R.Idle, { none: l.deferOnIdle, prefetch: l.deferPrefetchOnIdle, hydrate: l.deferHydrateOnIdle }], [R.Immediate, { none: l.deferOnImmediate, prefetch: l.deferPrefetchOnImmediate, hydrate: l.deferHydrateOnImmediate }], [R.Timer, { none: l.deferOnTimer, prefetch: l.deferPrefetchOnTimer, hydrate: l.deferHydrateOnTimer }], [R.Hover, { none: l.deferOnHover, prefetch: l.deferPrefetchOnHover, hydrate: l.deferHydrateOnHover }], [R.Interaction, { none: l.deferOnInteraction, prefetch: l.deferPrefetchOnInteraction, hydrate: l.deferHydrateOnInteraction }], [R.Viewport, { none: l.deferOnViewport, prefetch: l.deferPrefetchOnViewport, hydrate: l.deferHydrateOnViewport }], [R.Never, { none: l.deferHydrateNever, prefetch: l.deferHydrateNever, hydrate: l.deferHydrateNever }]]), Co = [l.pipeBind1, l.pipeBind2, l.pipeBind3, l.pipeBind4], _o = { constant: [l.interpolate, l.interpolate1, l.interpolate2, l.interpolate3, l.interpolate4, l.interpolate5, l.interpolate6, l.interpolate7, l.interpolate8], variable: l.interpolateV, mapping: (t24) => {
2551
- if (t24 % 2 === 0) throw new Error("Expected odd number of arguments");
2552
- return (t24 - 1) / 2;
2553
- } }, To = /* @__PURE__ */ new Map([["window", l.resolveWindow], ["document", l.resolveDocument], ["body", l.resolveBody]]), ko = /* @__PURE__ */ new Map([[N.HTML, l.sanitizeHtml], [N.RESOURCE_URL, l.sanitizeResourceUrl], [N.SCRIPT, l.sanitizeScript], [N.STYLE, l.sanitizeStyle], [N.URL, l.sanitizeUrl], [N.ATTRIBUTE_NO_BINDING, l.validateAttribute]]), bo = /* @__PURE__ */ new Map([[N.HTML, l.trustConstantHtml], [N.RESOURCE_URL, l.trustConstantResourceUrl]]);
2554
- (function(t24) {
2555
- t24[t24.None = 0] = "None", t24[t24.ViewContextRead = 1] = "ViewContextRead", t24[t24.ViewContextWrite = 2] = "ViewContextWrite", t24[t24.SideEffectful = 4] = "SideEffectful";
2556
- })(ns || (ns = {}));
2557
- Ao = /* @__PURE__ */ new Map([[L.Property, M.Property], [L.TwoWay, M.TwoWayProperty], [L.Attribute, M.Attribute], [L.Class, M.ClassName], [L.Style, M.StyleProperty], [L.LegacyAnimation, M.LegacyAnimation], [L.Animation, M.Animation]]);
2558
- (function(t24) {
2559
- t24[t24.NG_CONTENT = 0] = "NG_CONTENT", t24[t24.STYLE = 1] = "STYLE", t24[t24.STYLESHEET = 2] = "STYLESHEET", t24[t24.SCRIPT = 3] = "SCRIPT", t24[t24.OTHER = 4] = "OTHER";
2560
- })(ss || (ss = {}));
2561
- (function(t24) {
2562
- t24.IDLE = "idle", t24.TIMER = "timer", t24.INTERACTION = "interaction", t24.IMMEDIATE = "immediate", t24.HOVER = "hover", t24.VIEWPORT = "viewport", t24.NEVER = "never";
2563
- })(is || (is = {}));
2564
- ws = "%COMP%", No = `_nghost-${ws}`, Po = `_ngcontent-${ws}`;
2565
- (function(t24) {
2566
- t24[t24.Extract = 0] = "Extract", t24[t24.Merge = 1] = "Merge";
2567
- })(rs || (rs = {}));
2568
- Lo = new St("21.1.0"), Cr = "test.html";
2569
- Tr = (t24) => oe.prototype._commentStart(t24);
2570
- Je = (t24) => (e) => {
2571
- let n = Ss(e);
2572
- return ys({ ...n, result: Es()[t24](e, n.sourceSpan, 0), comments: kr(e) });
2573
- }, Cs = Je("parseAction"), _s = Je("parseBinding"), Ts = Je("parseSimpleBinding"), ks = Je("parseInterpolationExpression"), bs = (t24) => {
2574
- let e = Ss(t24);
2575
- return ys({ ...e, result: Es().parseTemplateBindings("", t24, e.sourceSpan, 0, 0), comments: [] });
2576
- }, Ye = class {
2577
- text;
2578
- constructor(t24) {
2579
- this.text = t24;
2580
- }
2581
- getCharacterIndex(t24, e) {
2582
- return pn(this.text, t24, e);
2583
- }
2584
- transformSpan(t24) {
2585
- return be(t24);
2586
- }
2587
- createNode(t24, e) {
2588
- let n = t24.start, s = t24.end, i = t24.range;
2589
- if (e && (Array.isArray(e) ? ([n, s] = e, i = e) : ({ start: n, end: s } = e.sourceSpan ?? e, i = [n, s])), i ? [n, s] = i : typeof n == "number" && typeof s == "number" && (i = [n, s]), !(typeof n == "number" && typeof s == "number" && i)) throw new Error("Missing location information");
2590
- let r = { ...t24, start: n, end: s, range: i };
2591
- switch (r.type) {
2592
- case "NumericLiteral":
2593
- case "StringLiteral":
2594
- case "RegExpLiteral": {
2595
- let a = this.text.slice(n, s), { value: u } = r;
2596
- r.extra = { ...r.extra, raw: a, rawValue: u };
2597
- break;
2598
- }
2599
- }
2600
- return r;
2601
- }
2602
- }, As = Object.defineProperty, Is = (t24, e) => {
2603
- let n = {};
2604
- for (var s in t24) As(n, s, { get: t24[s], enumerable: !0 });
2605
- return e && As(n, Symbol.toStringTag, { value: "Module" }), n;
2606
- }, Ns = (t24, e) => ({ type: "ArrayExpression", elements: e.transformChildren(t24.expressions) }), Ps = (t24, e) => e.transformChild(t24.ast), br = (t24) => t24 === "&&" || t24 === "||" || t24 === "??", Ls = (t24, e) => {
2607
- let { operation: n } = t24, [s, i] = e.transformChildren([t24.left, t24.right]);
2608
- return br(n) ? { type: "LogicalExpression", operator: n, left: s, right: i } : E.isAssignmentOperation(n) ? { type: "AssignmentExpression", left: s, right: i, operator: n } : { left: s, right: i, type: "BinaryExpression", operator: n };
2609
- }, Ar = { optional: !1 }, Ir = { optional: !0 }, Ms = ({ optional: t24 }) => (e, n) => {
2610
- let s = n.transformChildren(e.args), i = n.transformChild(e.receiver);
2611
- return t24 || ue(i) ? { type: "OptionalCallExpression", callee: i, arguments: s, optional: t24 } : { type: "CallExpression", callee: i, arguments: s };
2612
- }, Rs = Ms(Ar), $s = Ms(Ir), Ds = (t24, e) => ({ type: "NGChainedExpression", expressions: e.transformChildren(t24.expressions) }), Bs = (t24, e) => {
2613
- let [n, s, i] = e.transformChildren([t24.condition, t24.trueExp, t24.falseExp]);
2614
- return { type: "ConditionalExpression", test: n, consequent: s, alternate: i };
2615
- }, Os = (t24, e) => {
2616
- let { expressions: n } = t24;
2617
- if (n.length !== 1) throw new Error("Unexpected 'Interpolation'");
2618
- return e.transformChild(n[0]);
2619
- }, Fs = (t24) => {
2620
- let { value: e } = t24;
2621
- switch (typeof e) {
2622
- case "boolean":
2623
- return { type: "BooleanLiteral", value: e };
2624
- case "number":
2625
- return { type: "NumericLiteral", value: e };
2626
- case "object":
2627
- return { type: "NullLiteral" };
2628
- case "string":
2629
- return { type: "StringLiteral", value: e };
2630
- case "undefined":
2631
- return { type: "Identifier", name: "undefined" };
2632
- default:
2633
- throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`);
2634
- }
2635
- }, Vs = (t24) => ({ type: "RegExpLiteral", pattern: t24.body, flags: t24.flags ?? "" }), Nr = { computed: !0, optional: !1 }, Pr = { computed: !0, optional: !0 }, Lr = { computed: !1, optional: !1 }, Mr = { computed: !1, optional: !0 }, Qe = ({ computed: t24, optional: e }) => (n, s) => {
2636
- let { receiver: i } = n, r;
2637
- if (t24) {
2638
- let { key: u } = n;
2639
- r = s.transformChild(u);
2640
- } else {
2641
- let u = i instanceof ne, { name: p, nameSpan: d } = n;
2642
- if (r = s.create({ type: "Identifier", name: p }, d, u ? s.ancestors : []), u) return r;
2643
- }
2644
- let a = s.transformChild(i);
2645
- return e || ue(a) ? { type: "OptionalMemberExpression", optional: e, property: r, object: a, computed: t24 } : { type: "MemberExpression", property: r, object: a, computed: t24 };
2646
- }, Us = Qe(Nr), Hs = Qe(Pr), Ws = Qe(Lr), qs = Qe(Mr), js = (t24, e) => ({ type: "TSNonNullExpression", expression: e.transformChild(t24.expression) }), zs = (t24, e) => {
2647
- let { keys: n, values: s } = t24, i = (r, a = t24) => e.create(r, a, [t24, ...e.ancestors]);
2648
- return { type: "ObjectExpression", properties: n.map((r, a) => {
2649
- let u = s[a], p = [r.sourceSpan.start, u.sourceSpan.end];
2650
- if (r.kind === "spread") return i({ type: "SpreadElement", argument: e.transformChild(u) }, p);
2651
- let d = !!r.isShorthandInitialized;
2652
- return i({ type: "ObjectProperty", key: i(r.quoted ? { type: "StringLiteral", value: r.key } : { type: "Identifier", name: r.key }, r.sourceSpan), value: e.transformChild(u), shorthand: d, computed: !1, method: !1 }, p);
2653
- }) };
2654
- }, Gs = (t24, e) => e.transformChild(t24.expression), Xs = (t24, e) => ({ type: "NGPipeExpression", left: e.transformChild(t24.exp), right: e.create({ type: "Identifier", name: t24.name }, t24.nameSpan), arguments: e.transformChildren(t24.args) }), Js = (t24, e) => ({ type: "SpreadElement", argument: e.transformChild(t24.expression) }), Ys = (t24, e) => ({ type: "TaggedTemplateExpression", tag: e.transformChild(t24.tag), quasi: e.transformChild(t24.template) }), Qs = (t24, e) => ({ type: "TemplateLiteral", quasis: e.transformChildren(t24.elements), expressions: e.transformChildren(t24.expressions) }), Ks = (t24, e) => {
2655
- let [n] = e.ancestors, { elements: s } = n, i = s.indexOf(t24), r = i === 0, a = i === s.length - 1, u = t24.sourceSpan.end - (a ? 1 : 0), p = t24.sourceSpan.start + (r ? 1 : 0), d = e.text.slice(p, u);
2656
- return { type: "TemplateElement", value: { cooked: t24.text, raw: d }, tail: a, range: [p, u] };
2657
- }, Zs = () => ({ type: "ThisExpression" }), Xt = (t24) => (e, n) => ({ type: "UnaryExpression", prefix: !0, operator: t24, argument: n.transformChild(e.expression) }), ei = Xt("!"), ti = Xt("typeof"), ni = Xt("void"), si = (t24, e) => ({ type: "UnaryExpression", prefix: !0, argument: e.transformChild(t24.expr), operator: t24.operator }), Rr = (t24) => {
2658
- throw new Error(`Unexpected node type '${t24.constructor.name}'`);
2659
- }, ii = Rr, ri = Is({ visitASTWithSource: () => Ps, visitBinary: () => Ls, visitCall: () => Rs, visitChain: () => Ds, visitConditional: () => Bs, visitImplicitReceiver: () => ii, visitInterpolation: () => Os, visitKeyedRead: () => Us, visitLiteralArray: () => Ns, visitLiteralMap: () => zs, visitLiteralPrimitive: () => Fs, visitNonNullAssert: () => js, visitParenthesizedExpression: () => Gs, visitPipe: () => Xs, visitPrefixNot: () => ei, visitPropertyRead: () => Ws, visitRegularExpressionLiteral: () => Vs, visitSafeCall: () => $s, visitSafeKeyedRead: () => Hs, visitSafePropertyRead: () => qs, visitSpreadElement: () => Js, visitTaggedTemplateLiteral: () => Ys, visitTemplateLiteral: () => Qs, visitTemplateLiteralElement: () => Ks, visitThisReceiver: () => Zs, visitTypeofExpression: () => ti, visitUnary: () => si, visitVoidExpression: () => ni }), oi = ri, Ke = class Jt extends Ye {
2660
- node;
2661
- ancestors;
2662
- constructor({ node: e, text: n, ancestors: s = [] }) {
2663
- super(n), this.node = e, this.ancestors = s;
2664
- }
2665
- create(e, n, s = this.ancestors) {
2666
- return s[0] instanceof Ee && (e.extra = { ...e.extra, parenthesized: !0 }), super.createNode(e, e.range ?? n ?? this.node);
2667
- }
2668
- transformChild(e) {
2669
- return new Jt({ node: e, ancestors: [this.node, ...this.ancestors], text: this.text }).transform();
2670
- }
2671
- transformChildren(e) {
2672
- return e.map((n) => this.transformChild(n));
2673
- }
2674
- transform() {
2675
- let { node: e } = this;
2676
- if (e instanceof b) return this.create({ type: "NGEmptyExpression" });
2677
- let n = e.visit(oi, this);
2678
- return this.create(n, this.node);
2679
- }
2680
- static transform(e, n) {
2681
- return new Jt({ node: e, text: n, ancestors: [] }).transform();
2682
- }
2683
- }, ai = class extends Ke {
2684
- constructor(t24) {
2685
- super({ node: t24, text: t24.source });
2686
- }
2687
- }, li = (t24, e) => Ke.transform(t24, e), ci = (t24) => new ai(t24).transform(), ui = (t24, e) => (n, s, ...i) => n | 1 && s == null ? void 0 : (e.call(s) ?? s[t24]).apply(s, i);
2688
- Dr = ui("at", function() {
2689
- if (Array.isArray(this) || typeof this == "string") return $r;
2690
- }), pi = Dr;
2691
- Br = (le = class extends Ye {
2692
- constructor(n, s) {
2693
- super(s), ke(this, m), ke(this, ae), ke(this, J), st(this, ae, n), st(this, J, s);
2694
- for (let i of n) v(this, m, mi).call(this, i);
2695
- }
2696
- get expressions() {
2697
- return v(this, m, vi).call(this);
2698
- }
2699
- }, ae = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), di = function() {
2700
- return U(this, ae)[0].key;
2701
- }, C = function(n, s) {
2702
- return cn(le.prototype, this, "createNode").call(this, n, s);
2703
- }, Yt = function(n) {
2704
- return li(n, this.text);
2705
- }, Qt = function(n) {
2706
- return hn(n.slice(U(this, m, di).source.length));
2707
- }, Kt = function(n) {
2708
- let s = U(this, J);
2709
- if (s[n.start] !== '"' && s[n.start] !== "'") return;
2710
- let i = s[n.start], r = !1;
2711
- for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
2712
- case i:
2713
- if (!r) {
2714
- n.end = a + 1;
2715
- return;
2716
- }
2717
- default:
2718
- r = !1;
2719
- break;
2720
- case "\\":
2721
- r = !r;
2722
- break;
2723
- }
2724
- }, mi = function(n) {
2725
- v(this, m, Kt).call(this, n.key.span), fi(n) && n.value && v(this, m, Kt).call(this, n.value.span);
2726
- }, gi = function(n) {
2727
- if (!n.value || n.value.source) return n.value;
2728
- let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
2729
- return { source: "$implicit", span: { start: s, end: s } };
2730
- }, vi = function() {
2731
- let n = U(this, ae), [s] = n, i = U(this, J).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, r = [], a = null;
2732
- for (let [u, p] of i.entries()) {
2733
- if (a && hi(a) && fi(p) && p.value && p.value.source === a.key.source) {
2734
- let d = v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: p.key.source }, p.key.span), w = (T, y) => ({ ...T, ...this.transformSpan({ start: T.start, end: y }) }), D = (T) => ({ ...w(T, d.end), alias: d }), _ = r.pop();
2735
- if (_.type === "NGMicrosyntaxExpression") r.push(D(_));
2736
- else if (_.type === "NGMicrosyntaxKeyedExpression") {
2737
- let T = D(_.expression);
2738
- r.push(w({ ..._, expression: T }, T.end));
2739
- } else throw new Error(`Unexpected type ${_.type}`);
2740
- } else r.push(v(this, m, xi).call(this, p, u));
2741
- a = p;
2742
- }
2743
- return v(this, m, C).call(this, { type: "NGMicrosyntax", body: r }, r.length === 0 ? n[0].sourceSpan : { start: r[0].start, end: pi(0, r, -1).end });
2744
- }, xi = function(n, s) {
2745
- if (hi(n)) {
2746
- let { key: i, value: r } = n;
2747
- return r ? s === 0 ? v(this, m, C).call(this, { type: "NGMicrosyntaxExpression", expression: v(this, m, Yt).call(this, r.ast), alias: null }, r) : v(this, m, C).call(this, { type: "NGMicrosyntaxKeyedExpression", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: v(this, m, Qt).call(this, i.source) }, i.span), expression: v(this, m, C).call(this, { type: "NGMicrosyntaxExpression", expression: v(this, m, Yt).call(this, r.ast), alias: null }, r) }, [i.span.start, r.sourceSpan.end]) : v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: v(this, m, Qt).call(this, i.source) }, i.span);
2748
- } else {
2749
- let { key: i, sourceSpan: r } = n;
2750
- if (/^let\s$/.test(U(this, J).slice(r.start, r.start + 4))) {
2751
- let { value: a } = n;
2752
- return v(this, m, C).call(this, { type: "NGMicrosyntaxLet", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span), value: a ? v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span) : null }, [r.start, a ? a.span.end : i.span.end]);
2753
- } else {
2754
- let a = v(this, m, gi).call(this, n);
2755
- return v(this, m, C).call(this, { type: "NGMicrosyntaxAs", key: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span), alias: v(this, m, C).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span) }, [a.span.start, i.span.end]);
2756
- }
2757
- }
2758
- }, le);
2759
- Ze = (t24) => (e) => {
2760
- let { result: n, comments: s } = t24(e);
2761
- return Object.assign(ci(n), { comments: s });
2762
- }, et = Ze(Cs), Zt = Ze(_s), Or = Ze(Ts), en = Ze(ks), tn = (t24) => wi(bs(t24).result.templateBindings, t24);
2763
- Fr = tt(et), Vr = tt(Zt), Ur = tt(en), Hr = tt(tn);
2764
- }
2765
- });
2766
- init_angular();
2767
- export {
2768
- Ei as default,
2769
- sn as parsers
2770
- };
2771
- //# sourceMappingURL=angular-IKHE4H7C.js.map