odm-client 0.0.2 → 0.0.4

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