@drzl/validation-core 2.1.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3629 @@
1
+ import {
2
+ __publicField
3
+ } from "./chunk-ZZGILH5A.js";
4
+
5
+ // ../../node_modules/.pnpm/prettier@3.9.6/node_modules/prettier/plugins/angular.mjs
6
+ var lr = Object.defineProperty;
7
+ var cr = Object.getPrototypeOf;
8
+ var ur = Reflect.get;
9
+ var kn = (t27) => {
10
+ throw TypeError(t27);
11
+ };
12
+ var _n = (t27, e) => {
13
+ for (var n in e) lr(t27, n, { get: e[n], enumerable: true });
14
+ };
15
+ var vt = (t27, e, n) => e.has(t27) || kn("Cannot " + n);
16
+ var z = (t27, e, n) => (vt(t27, e, "read from private field"), n ? n.call(t27) : e.get(t27));
17
+ var De = (t27, e, n) => e.has(t27) ? kn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t27) : e.set(t27, n);
18
+ var wt = (t27, e, n, s) => (vt(t27, e, "write to private field"), s ? s.call(t27, n) : e.set(t27, n), n);
19
+ var w = (t27, e, n) => (vt(t27, e, "access private method"), n);
20
+ var In = (t27, e, n) => ur(cr(t27), n, e);
21
+ var or = {};
22
+ _n(or, { parsers: () => Cn });
23
+ var Cn = {};
24
+ _n(Cn, { __ng_action: () => Ko, __ng_binding: () => Zo, __ng_directive: () => ta, __ng_interpolation: () => ea });
25
+ function pr(t27) {
26
+ return typeof t27 == "string" ? (e) => e === t27 : (e) => t27.test(e);
27
+ }
28
+ function An(t27, e, n) {
29
+ let s = pr(e);
30
+ for (let i = n; i < t27.length; i++) {
31
+ let r = t27[i];
32
+ if (s(r)) return i;
33
+ }
34
+ throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t27)}`);
35
+ }
36
+ function Pn(t27) {
37
+ return t27.slice(0, 1).toLowerCase() + t27.slice(1);
38
+ }
39
+ function Be(t27) {
40
+ let { start: e, end: n } = t27;
41
+ return { start: e, end: n, range: [e, n] };
42
+ }
43
+ function Nn(t27) {
44
+ return !!t27.extra?.parenthesized;
45
+ }
46
+ function ye(t27) {
47
+ return t27.type === "TSNonNullExpression" && !Nn(t27) ? ye(t27.expression) : (t27.type === "OptionalCallExpression" || t27.type === "OptionalMemberExpression") && !Nn(t27);
48
+ }
49
+ var ra = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
50
+ var x;
51
+ (function(t27) {
52
+ t27[t27.NONE = 0] = "NONE", t27[t27.HTML = 1] = "HTML", t27[t27.STYLE = 2] = "STYLE", t27[t27.SCRIPT = 3] = "SCRIPT", t27[t27.URL = 4] = "URL", t27[t27.RESOURCE_URL = 5] = "RESOURCE_URL", t27[t27.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
53
+ })(x || (x = {}));
54
+ var K;
55
+ var Ln = "svg";
56
+ var hr = "math";
57
+ var Bs = "";
58
+ var $n = "*";
59
+ var yt = () => /* @__PURE__ */ Object.create(null);
60
+ function fr() {
61
+ return K || (K = yt(), B(x.HTML, void 0, [["iframe", ["srcdoc"]], ["*", ["innerHTML", "outerHTML"]]]), B(x.STYLE, void 0, [["*", ["style"]]]), B(x.URL, void 0, [["*", ["formAction"]], ["area", ["href"]], ["a", ["href", "xlink:href"]], ["form", ["action"]], ["img", ["src"]], ["video", ["src"]]]), B(x.URL, hr, [["*", ["href", "xlink:href"]]]), B(x.RESOURCE_URL, void 0, [["base", ["href"]], ["embed", ["src"]], ["frame", ["src"]], ["iframe", ["src"]], ["link", ["href"]], ["object", ["codebase", "data"]]]), B(x.URL, Ln, [["a", ["href", "xlink:href"]]]), B(x.ATTRIBUTE_NO_BINDING, Ln, [["animate", ["attributeName", "values", "to", "from"]], ["set", ["to", "attributeName"]], ["animateMotion", ["attributeName"]], ["animateTransform", ["attributeName"]]]), B(x.ATTRIBUTE_NO_BINDING, void 0, [["unknown", ["attributeName", "values", "to", "from", "sandbox", "allow", "allowFullscreen", "referrerPolicy", "csp", "fetchPriority", "credentialless"]], ["iframe", ["sandbox", "allow", "allowFullscreen", "referrerPolicy", "csp", "fetchPriority", "credentialless"]]]), K);
62
+ }
63
+ function B(t27, e, n) {
64
+ let s = e ?? Bs;
65
+ for (let [i, r] of n) {
66
+ let a = i.toLowerCase();
67
+ for (let u of r) {
68
+ let h = u.toLowerCase(), d = K[h] ?? (K[h] = yt()), g = d[s] ?? (d[s] = yt());
69
+ g[a] = t27;
70
+ }
71
+ }
72
+ }
73
+ function dr(t27, e, n) {
74
+ let i = fr()[e.toLowerCase()];
75
+ if (!i) return x.NONE;
76
+ let r = t27.toLowerCase(), a;
77
+ if (n) {
78
+ let u = i[n];
79
+ u && (a = u[r] ?? u[$n]);
80
+ }
81
+ if (a === void 0) {
82
+ let u = i[Bs];
83
+ u && (a = u[r] ?? u[$n]);
84
+ }
85
+ return a ?? x.NONE;
86
+ }
87
+ var Mn;
88
+ (function(t27) {
89
+ t27[t27.Emulated = 0] = "Emulated", t27[t27.None = 2] = "None", t27[t27.ShadowDom = 3] = "ShadowDom", t27[t27.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
90
+ })(Mn || (Mn = {}));
91
+ var Rn;
92
+ (function(t27) {
93
+ t27[t27.OnPush = 0] = "OnPush", t27[t27.Default = 1] = "Default", t27[t27.Eager = 1] = "Eager";
94
+ })(Rn || (Rn = {}));
95
+ var On;
96
+ (function(t27) {
97
+ t27[t27.None = 0] = "None", t27[t27.SignalBased = 1] = "SignalBased", t27[t27.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
98
+ })(On || (On = {}));
99
+ var Dn = { name: "custom-elements" };
100
+ var Bn = { name: "no-errors-schema" };
101
+ var Fn;
102
+ (function(t27) {
103
+ t27[t27.Error = 0] = "Error", t27[t27.Warning = 1] = "Warning", t27[t27.Ignore = 2] = "Ignore";
104
+ })(Fn || (Fn = {}));
105
+ var Vn;
106
+ (function(t27) {
107
+ t27[t27.Directive = 0] = "Directive", t27[t27.Component = 1] = "Component", t27[t27.Injectable = 2] = "Injectable", t27[t27.Pipe = 3] = "Pipe", t27[t27.NgModule = 4] = "NgModule", t27[t27.Service = 5] = "Service";
108
+ })(Vn || (Vn = {}));
109
+ var Hn;
110
+ (function(t27) {
111
+ t27[t27.Directive = 0] = "Directive", t27[t27.Pipe = 1] = "Pipe", t27[t27.NgModule = 2] = "NgModule";
112
+ })(Hn || (Hn = {}));
113
+ var Un;
114
+ (function(t27) {
115
+ t27[t27.Emulated = 0] = "Emulated", t27[t27.None = 2] = "None", t27[t27.ShadowDom = 3] = "ShadowDom", t27[t27.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
116
+ })(Un || (Un = {}));
117
+ var Wn;
118
+ (function(t27) {
119
+ t27[t27.Little = 0] = "Little", t27[t27.Big = 1] = "Big";
120
+ })(Wn || (Wn = {}));
121
+ var qn;
122
+ (function(t27) {
123
+ t27[t27.None = 0] = "None", t27[t27.Const = 1] = "Const";
124
+ })(qn || (qn = {}));
125
+ var jn;
126
+ (function(t27) {
127
+ t27[t27.Dynamic = 0] = "Dynamic", t27[t27.Bool = 1] = "Bool", t27[t27.String = 2] = "String", t27[t27.Int = 3] = "Int", t27[t27.Number = 4] = "Number", t27[t27.Function = 5] = "Function", t27[t27.Inferred = 6] = "Inferred", t27[t27.None = 7] = "None";
128
+ })(jn || (jn = {}));
129
+ var zn;
130
+ (function(t27) {
131
+ t27[t27.Minus = 0] = "Minus", t27[t27.Plus = 1] = "Plus";
132
+ })(zn || (zn = {}));
133
+ var p;
134
+ (function(t27) {
135
+ t27[t27.Equals = 0] = "Equals", t27[t27.NotEquals = 1] = "NotEquals", t27[t27.Assign = 2] = "Assign", t27[t27.Identical = 3] = "Identical", t27[t27.NotIdentical = 4] = "NotIdentical", t27[t27.Minus = 5] = "Minus", t27[t27.Plus = 6] = "Plus", t27[t27.Divide = 7] = "Divide", t27[t27.Multiply = 8] = "Multiply", t27[t27.Modulo = 9] = "Modulo", t27[t27.And = 10] = "And", t27[t27.Or = 11] = "Or", t27[t27.BitwiseOr = 12] = "BitwiseOr", t27[t27.BitwiseAnd = 13] = "BitwiseAnd", t27[t27.Lower = 14] = "Lower", t27[t27.LowerEquals = 15] = "LowerEquals", t27[t27.Bigger = 16] = "Bigger", t27[t27.BiggerEquals = 17] = "BiggerEquals", t27[t27.NullishCoalesce = 18] = "NullishCoalesce", t27[t27.Exponentiation = 19] = "Exponentiation", t27[t27.In = 20] = "In", t27[t27.InstanceOf = 21] = "InstanceOf", t27[t27.AdditionAssignment = 22] = "AdditionAssignment", t27[t27.SubtractionAssignment = 23] = "SubtractionAssignment", t27[t27.MultiplicationAssignment = 24] = "MultiplicationAssignment", t27[t27.DivisionAssignment = 25] = "DivisionAssignment", t27[t27.RemainderAssignment = 26] = "RemainderAssignment", t27[t27.ExponentiationAssignment = 27] = "ExponentiationAssignment", t27[t27.AndAssignment = 28] = "AndAssignment", t27[t27.OrAssignment = 29] = "OrAssignment", t27[t27.NullishCoalesceAssignment = 30] = "NullishCoalesceAssignment";
136
+ })(p || (p = {}));
137
+ function mr(t27, e) {
138
+ return t27 == null || e == null ? t27 == e : t27.isEquivalent(e);
139
+ }
140
+ function gr(t27, e, n) {
141
+ let s = t27.length;
142
+ if (s !== e.length) return false;
143
+ for (let i = 0; i < s; i++) if (!n(t27[i], e[i])) return false;
144
+ return true;
145
+ }
146
+ function ue(t27, e) {
147
+ return gr(t27, e, (n, s) => n.isEquivalent(s));
148
+ }
149
+ var y = class {
150
+ constructor(e, n, s) {
151
+ __publicField(this, "leadingComments");
152
+ __publicField(this, "type");
153
+ __publicField(this, "sourceSpan");
154
+ this.leadingComments = s, this.type = e || null, this.sourceSpan = n || null;
155
+ }
156
+ prop(e, n) {
157
+ return new Nt(this, e, null, n);
158
+ }
159
+ key(e, n, s) {
160
+ return new At(this, e, n, s);
161
+ }
162
+ callFn(e, n, s, i) {
163
+ return new bt(this, e, null, n, s, i);
164
+ }
165
+ instantiate(e, n, s, i) {
166
+ return new Tt(this, e, n, s);
167
+ }
168
+ conditional(e, n = null, s, i) {
169
+ return new It(this, e, n, null, s);
170
+ }
171
+ equals(e, n) {
172
+ return new S(p.Equals, this, e, null, n);
173
+ }
174
+ notEquals(e, n) {
175
+ return new S(p.NotEquals, this, e, null, n);
176
+ }
177
+ identical(e, n) {
178
+ return new S(p.Identical, this, e, null, n);
179
+ }
180
+ notIdentical(e, n) {
181
+ return new S(p.NotIdentical, this, e, null, n);
182
+ }
183
+ minus(e, n) {
184
+ return new S(p.Minus, this, e, null, n);
185
+ }
186
+ plus(e, n) {
187
+ return new S(p.Plus, this, e, null, n);
188
+ }
189
+ divide(e, n) {
190
+ return new S(p.Divide, this, e, null, n);
191
+ }
192
+ multiply(e, n) {
193
+ return new S(p.Multiply, this, e, null, n);
194
+ }
195
+ modulo(e, n) {
196
+ return new S(p.Modulo, this, e, null, n);
197
+ }
198
+ power(e, n) {
199
+ return new S(p.Exponentiation, this, e, null, n);
200
+ }
201
+ and(e, n) {
202
+ return new S(p.And, this, e, null, n);
203
+ }
204
+ bitwiseOr(e, n) {
205
+ return new S(p.BitwiseOr, this, e, null, n);
206
+ }
207
+ bitwiseAnd(e, n) {
208
+ return new S(p.BitwiseAnd, this, e, null, n);
209
+ }
210
+ or(e, n) {
211
+ return new S(p.Or, this, e, null, n);
212
+ }
213
+ lower(e, n) {
214
+ return new S(p.Lower, this, e, null, n);
215
+ }
216
+ lowerEquals(e, n) {
217
+ return new S(p.LowerEquals, this, e, null, n);
218
+ }
219
+ bigger(e, n) {
220
+ return new S(p.Bigger, this, e, null, n);
221
+ }
222
+ biggerEquals(e, n) {
223
+ return new S(p.BiggerEquals, this, e, null, n);
224
+ }
225
+ isBlank(e) {
226
+ return this.equals(TYPED_NULL_EXPR, e);
227
+ }
228
+ nullishCoalesce(e, n) {
229
+ return new S(p.NullishCoalesce, this, e, null, n);
230
+ }
231
+ toStmt(e) {
232
+ return new Ue(this, null, e);
233
+ }
234
+ };
235
+ var Et = class t extends y {
236
+ constructor(e, n, s, i) {
237
+ super(n, s, i);
238
+ __publicField(this, "name");
239
+ this.name = e;
240
+ }
241
+ isEquivalent(e) {
242
+ return e instanceof t && this.name === e.name;
243
+ }
244
+ isConstant() {
245
+ return false;
246
+ }
247
+ visitExpression(e, n) {
248
+ return e.visitReadVarExpr(this, n);
249
+ }
250
+ clone() {
251
+ return new t(this.name, this.type, this.sourceSpan);
252
+ }
253
+ set(e) {
254
+ return new S(p.Assign, this, e, null, this.sourceSpan);
255
+ }
256
+ };
257
+ var Ct = class t2 extends y {
258
+ constructor(e, n, s, i) {
259
+ super(n, s, i);
260
+ __publicField(this, "expr");
261
+ this.expr = e;
262
+ }
263
+ visitExpression(e, n) {
264
+ return e.visitTypeofExpr(this, n);
265
+ }
266
+ isEquivalent(e) {
267
+ return e instanceof t2 && e.expr.isEquivalent(this.expr);
268
+ }
269
+ isConstant() {
270
+ return this.expr.isConstant();
271
+ }
272
+ clone() {
273
+ return new t2(this.expr.clone());
274
+ }
275
+ };
276
+ var bt = class t3 extends y {
277
+ constructor(e, n, s, i, r = false, a, u = false) {
278
+ super(s, i, a);
279
+ __publicField(this, "fn");
280
+ __publicField(this, "args");
281
+ __publicField(this, "pure");
282
+ __publicField(this, "isOptional");
283
+ this.fn = e, this.args = n, this.pure = r, this.isOptional = u;
284
+ }
285
+ get receiver() {
286
+ return this.fn;
287
+ }
288
+ isEquivalent(e) {
289
+ return e instanceof t3 && this.fn.isEquivalent(e.fn) && ue(this.args, e.args) && this.pure === e.pure;
290
+ }
291
+ isConstant() {
292
+ return false;
293
+ }
294
+ visitExpression(e, n) {
295
+ return e.visitInvokeFunctionExpr(this, n);
296
+ }
297
+ clone() {
298
+ return new t3(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure, [], this.isOptional);
299
+ }
300
+ };
301
+ var Tt = class t4 extends y {
302
+ constructor(e, n, s, i, r) {
303
+ super(s, i, r);
304
+ __publicField(this, "classExpr");
305
+ __publicField(this, "args");
306
+ this.classExpr = e, this.args = n;
307
+ }
308
+ isEquivalent(e) {
309
+ return e instanceof t4 && this.classExpr.isEquivalent(e.classExpr) && ue(this.args, e.args);
310
+ }
311
+ isConstant() {
312
+ return false;
313
+ }
314
+ visitExpression(e, n) {
315
+ return e.visitInstantiateExpr(this, n);
316
+ }
317
+ clone() {
318
+ return new t4(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
319
+ }
320
+ };
321
+ var kt = class t5 extends y {
322
+ constructor(e, n, s, i) {
323
+ super(null, s, i);
324
+ __publicField(this, "body");
325
+ __publicField(this, "flags");
326
+ this.body = e, this.flags = n;
327
+ }
328
+ isEquivalent(e) {
329
+ return e instanceof t5 && this.body === e.body && this.flags === e.flags;
330
+ }
331
+ isConstant() {
332
+ return true;
333
+ }
334
+ visitExpression(e, n) {
335
+ return e.visitRegularExpressionLiteral(this, n);
336
+ }
337
+ clone() {
338
+ return new t5(this.body, this.flags, this.sourceSpan);
339
+ }
340
+ };
341
+ var He = class t6 extends y {
342
+ constructor(e, n, s, i) {
343
+ super(n, s, i);
344
+ __publicField(this, "value");
345
+ this.value = e;
346
+ }
347
+ isEquivalent(e) {
348
+ return e instanceof t6 && this.value === e.value;
349
+ }
350
+ isConstant() {
351
+ return true;
352
+ }
353
+ visitExpression(e, n) {
354
+ return e.visitLiteralExpr(this, n);
355
+ }
356
+ clone() {
357
+ return new t6(this.value, this.type, this.sourceSpan);
358
+ }
359
+ };
360
+ var _t = class t7 extends y {
361
+ constructor(e, n, s = null, i, r) {
362
+ super(n, i, r);
363
+ __publicField(this, "value");
364
+ __publicField(this, "typeParams");
365
+ this.value = e, this.typeParams = s;
366
+ }
367
+ isEquivalent(e) {
368
+ return e instanceof t7 && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
369
+ }
370
+ isConstant() {
371
+ return false;
372
+ }
373
+ visitExpression(e, n) {
374
+ return e.visitExternalExpr(this, n);
375
+ }
376
+ clone() {
377
+ return new t7(this.value, this.type, this.typeParams, this.sourceSpan);
378
+ }
379
+ };
380
+ var It = class t8 extends y {
381
+ constructor(e, n, s = null, i, r, a) {
382
+ super(i || n.type, r, a);
383
+ __publicField(this, "condition");
384
+ __publicField(this, "falseCase");
385
+ __publicField(this, "trueCase");
386
+ this.condition = e, this.falseCase = s, this.trueCase = n;
387
+ }
388
+ isEquivalent(e) {
389
+ return e instanceof t8 && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && mr(this.falseCase, e.falseCase);
390
+ }
391
+ isConstant() {
392
+ return false;
393
+ }
394
+ visitExpression(e, n) {
395
+ return e.visitConditionalExpr(this, n);
396
+ }
397
+ clone() {
398
+ return new t8(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);
399
+ }
400
+ };
401
+ var S = class t9 extends y {
402
+ constructor(e, n, s, i, r, a) {
403
+ super(i || n.type, r, a);
404
+ __publicField(this, "operator");
405
+ __publicField(this, "rhs");
406
+ __publicField(this, "lhs");
407
+ this.operator = e, this.rhs = s, this.lhs = n;
408
+ }
409
+ isEquivalent(e) {
410
+ return e instanceof t9 && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
411
+ }
412
+ isConstant() {
413
+ return false;
414
+ }
415
+ visitExpression(e, n) {
416
+ return e.visitBinaryOperatorExpr(this, n);
417
+ }
418
+ clone() {
419
+ return new t9(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
420
+ }
421
+ isAssignment() {
422
+ let e = this.operator;
423
+ return e === p.Assign || e === p.AdditionAssignment || e === p.SubtractionAssignment || e === p.MultiplicationAssignment || e === p.DivisionAssignment || e === p.RemainderAssignment || e === p.ExponentiationAssignment || e === p.AndAssignment || e === p.OrAssignment || e === p.NullishCoalesceAssignment;
424
+ }
425
+ };
426
+ var Nt = class t10 extends y {
427
+ constructor(e, n, s, i, r, a = false) {
428
+ super(s, i, r);
429
+ __publicField(this, "receiver");
430
+ __publicField(this, "name");
431
+ __publicField(this, "isOptional");
432
+ this.receiver = e, this.name = n, this.isOptional = a;
433
+ }
434
+ get index() {
435
+ return this.name;
436
+ }
437
+ isEquivalent(e) {
438
+ return e instanceof t10 && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.isOptional === e.isOptional;
439
+ }
440
+ isConstant() {
441
+ return false;
442
+ }
443
+ visitExpression(e, n) {
444
+ return e.visitReadPropExpr(this, n);
445
+ }
446
+ set(e) {
447
+ return new S(p.Assign, this.receiver.prop(this.name), e, null, this.sourceSpan);
448
+ }
449
+ clone() {
450
+ return new t10(this.receiver.clone(), this.name, this.type, this.sourceSpan, [], this.isOptional);
451
+ }
452
+ };
453
+ var At = class t11 extends y {
454
+ constructor(e, n, s, i, r, a = false) {
455
+ super(s, i, r);
456
+ __publicField(this, "receiver");
457
+ __publicField(this, "index");
458
+ __publicField(this, "isOptional");
459
+ this.receiver = e, this.index = n, this.isOptional = a;
460
+ }
461
+ isEquivalent(e) {
462
+ return e instanceof t11 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.isOptional === e.isOptional;
463
+ }
464
+ isConstant() {
465
+ return false;
466
+ }
467
+ visitExpression(e, n) {
468
+ return e.visitReadKeyExpr(this, n);
469
+ }
470
+ set(e) {
471
+ return new S(p.Assign, this.receiver.key(this.index), e, null, this.sourceSpan);
472
+ }
473
+ clone() {
474
+ return new t11(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan, [], this.isOptional);
475
+ }
476
+ };
477
+ var Pt = class t12 extends y {
478
+ constructor(e, n, s, i) {
479
+ super(n, s, i);
480
+ __publicField(this, "entries");
481
+ this.entries = e;
482
+ }
483
+ isConstant() {
484
+ return this.entries.every((e) => e.isConstant());
485
+ }
486
+ isEquivalent(e) {
487
+ return e instanceof t12 && ue(this.entries, e.entries);
488
+ }
489
+ visitExpression(e, n) {
490
+ return e.visitLiteralArrayExpr(this, n);
491
+ }
492
+ clone() {
493
+ return new t12(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
494
+ }
495
+ };
496
+ var Lt = class t13 {
497
+ constructor(e) {
498
+ __publicField(this, "expression");
499
+ this.expression = e;
500
+ }
501
+ isEquivalent(e) {
502
+ return e instanceof t13 && this.expression.isEquivalent(e.expression);
503
+ }
504
+ clone() {
505
+ return new t13(this.expression.clone());
506
+ }
507
+ isConstant() {
508
+ return this.expression.isConstant();
509
+ }
510
+ };
511
+ var $t = class t14 extends y {
512
+ constructor(e, n, s, i) {
513
+ super(n, s, i);
514
+ __publicField(this, "entries");
515
+ __publicField(this, "valueType", null);
516
+ this.entries = e, n && (this.valueType = n.valueType);
517
+ }
518
+ isEquivalent(e) {
519
+ return e instanceof t14 && ue(this.entries, e.entries);
520
+ }
521
+ isConstant() {
522
+ return this.entries.every((e) => e.isConstant());
523
+ }
524
+ visitExpression(e, n) {
525
+ return e.visitLiteralMapExpr(this, n);
526
+ }
527
+ clone() {
528
+ let e = this.entries.map((n) => n.clone());
529
+ return new t14(e, this.type, this.sourceSpan);
530
+ }
531
+ };
532
+ var Mt = class t15 extends y {
533
+ constructor(e, n, s) {
534
+ super(null, n, s);
535
+ __publicField(this, "expression");
536
+ this.expression = e;
537
+ }
538
+ isEquivalent(e) {
539
+ return e instanceof t15 && this.expression.isEquivalent(e.expression);
540
+ }
541
+ isConstant() {
542
+ return this.expression.isConstant();
543
+ }
544
+ visitExpression(e, n) {
545
+ return e.visitSpreadElementExpr(this, n);
546
+ }
547
+ clone() {
548
+ return new t15(this.expression.clone(), this.sourceSpan);
549
+ }
550
+ };
551
+ var pe;
552
+ (function(t27) {
553
+ t27[t27.None = 0] = "None", t27[t27.Final = 1] = "Final", t27[t27.Private = 2] = "Private", t27[t27.Exported = 4] = "Exported", t27[t27.Static = 8] = "Static";
554
+ })(pe || (pe = {}));
555
+ var he = class {
556
+ constructor(e = pe.None, n = null, s) {
557
+ __publicField(this, "modifiers");
558
+ __publicField(this, "sourceSpan");
559
+ __publicField(this, "leadingComments");
560
+ this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
561
+ }
562
+ hasModifier(e) {
563
+ return (this.modifiers & e) !== 0;
564
+ }
565
+ addLeadingComment(e) {
566
+ this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
567
+ }
568
+ };
569
+ var Rt = class t16 extends he {
570
+ constructor(e, n, s, i, r, a) {
571
+ super(i, r, a);
572
+ __publicField(this, "name");
573
+ __publicField(this, "value");
574
+ __publicField(this, "type");
575
+ this.name = e, this.value = n, this.type = s || n && n.type || null;
576
+ }
577
+ isEquivalent(e) {
578
+ return e instanceof t16 && this.name === e.name && (this.value ? !!e.value && this.value.isEquivalent(e.value) : !e.value);
579
+ }
580
+ visitStatement(e, n) {
581
+ return e.visitDeclareVarStmt(this, n);
582
+ }
583
+ };
584
+ var Ue = class t17 extends he {
585
+ constructor(e, n, s) {
586
+ super(pe.None, n, s);
587
+ __publicField(this, "expr");
588
+ this.expr = e;
589
+ }
590
+ isEquivalent(e) {
591
+ return e instanceof t17 && this.expr.isEquivalent(e.expr);
592
+ }
593
+ visitStatement(e, n) {
594
+ return e.visitExpressionStmt(this, n);
595
+ }
596
+ };
597
+ var We = class t18 extends he {
598
+ constructor(e, n = null, s) {
599
+ super(pe.None, n, s);
600
+ __publicField(this, "value");
601
+ this.value = e;
602
+ }
603
+ isEquivalent(e) {
604
+ return e instanceof t18 && this.value.isEquivalent(e.value);
605
+ }
606
+ visitStatement(e, n) {
607
+ return e.visitReturnStmt(this, n);
608
+ }
609
+ };
610
+ var Ot = class t19 extends he {
611
+ constructor(e, n, s = [], i, r) {
612
+ super(pe.None, i, r);
613
+ __publicField(this, "condition");
614
+ __publicField(this, "trueCase");
615
+ __publicField(this, "falseCase");
616
+ this.condition = e, this.trueCase = n, this.falseCase = s;
617
+ }
618
+ isEquivalent(e) {
619
+ return e instanceof t19 && this.condition.isEquivalent(e.condition) && ue(this.trueCase, e.trueCase) && ue(this.falseCase, e.falseCase);
620
+ }
621
+ visitStatement(e, n) {
622
+ return e.visitIfStmt(this, n);
623
+ }
624
+ };
625
+ var _a;
626
+ var Gn = (_a = class {
627
+ keyOf(e) {
628
+ if (e instanceof He && typeof e.value == "string") return `"${e.value}"`;
629
+ if (e instanceof He) return String(e.value);
630
+ if (e instanceof kt) return `/${e.body}/${e.flags ?? ""}`;
631
+ if (e instanceof Pt) {
632
+ let n = [];
633
+ for (let s of e.entries) n.push(this.keyOf(s));
634
+ return `[${n.join(",")}]`;
635
+ } else if (e instanceof $t) {
636
+ let n = [];
637
+ for (let s of e.entries) if (s instanceof Lt) n.push("..." + this.keyOf(s.expression));
638
+ else {
639
+ let i = s.key;
640
+ s.quoted && (i = `"${i}"`), n.push(i + ":" + this.keyOf(s.value));
641
+ }
642
+ return `{${n.join(",")}}`;
643
+ } else {
644
+ if (e instanceof _t) return `import("${e.value.moduleName}", ${e.value.name})`;
645
+ if (e instanceof Et) return `read(${e.name})`;
646
+ if (e instanceof Ct) return `typeof(${this.keyOf(e.expr)})`;
647
+ if (e instanceof Mt) return `...${this.keyOf(e.expression)}`;
648
+ throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
649
+ }
650
+ }
651
+ }, __publicField(_a, "INSTANCE", new _a()), _a);
652
+ var o = "@angular/core";
653
+ var _a2;
654
+ var c = (_a2 = class {
655
+ }, __publicField(_a2, "core", { name: null, moduleName: o }), __publicField(_a2, "namespaceHTML", { name: "\u0275\u0275namespaceHTML", moduleName: o }), __publicField(_a2, "namespaceMathML", { name: "\u0275\u0275namespaceMathML", moduleName: o }), __publicField(_a2, "namespaceSVG", { name: "\u0275\u0275namespaceSVG", moduleName: o }), __publicField(_a2, "element", { name: "\u0275\u0275element", moduleName: o }), __publicField(_a2, "elementStart", { name: "\u0275\u0275elementStart", moduleName: o }), __publicField(_a2, "elementEnd", { name: "\u0275\u0275elementEnd", moduleName: o }), __publicField(_a2, "domElement", { name: "\u0275\u0275domElement", moduleName: o }), __publicField(_a2, "domElementStart", { name: "\u0275\u0275domElementStart", moduleName: o }), __publicField(_a2, "domElementEnd", { name: "\u0275\u0275domElementEnd", moduleName: o }), __publicField(_a2, "domElementContainer", { name: "\u0275\u0275domElementContainer", moduleName: o }), __publicField(_a2, "domElementContainerStart", { name: "\u0275\u0275domElementContainerStart", moduleName: o }), __publicField(_a2, "domElementContainerEnd", { name: "\u0275\u0275domElementContainerEnd", moduleName: o }), __publicField(_a2, "domTemplate", { name: "\u0275\u0275domTemplate", moduleName: o }), __publicField(_a2, "domListener", { name: "\u0275\u0275domListener", moduleName: o }), __publicField(_a2, "advance", { name: "\u0275\u0275advance", moduleName: o }), __publicField(_a2, "syntheticHostProperty", { name: "\u0275\u0275syntheticHostProperty", moduleName: o }), __publicField(_a2, "syntheticHostListener", { name: "\u0275\u0275syntheticHostListener", moduleName: o }), __publicField(_a2, "attribute", { name: "\u0275\u0275attribute", moduleName: o }), __publicField(_a2, "classProp", { name: "\u0275\u0275classProp", moduleName: o }), __publicField(_a2, "elementContainerStart", { name: "\u0275\u0275elementContainerStart", moduleName: o }), __publicField(_a2, "elementContainerEnd", { name: "\u0275\u0275elementContainerEnd", moduleName: o }), __publicField(_a2, "elementContainer", { name: "\u0275\u0275elementContainer", moduleName: o }), __publicField(_a2, "styleMap", { name: "\u0275\u0275styleMap", moduleName: o }), __publicField(_a2, "classMap", { name: "\u0275\u0275classMap", moduleName: o }), __publicField(_a2, "styleProp", { name: "\u0275\u0275styleProp", moduleName: o }), __publicField(_a2, "interpolate", { name: "\u0275\u0275interpolate", moduleName: o }), __publicField(_a2, "interpolate1", { name: "\u0275\u0275interpolate1", moduleName: o }), __publicField(_a2, "interpolate2", { name: "\u0275\u0275interpolate2", moduleName: o }), __publicField(_a2, "interpolate3", { name: "\u0275\u0275interpolate3", moduleName: o }), __publicField(_a2, "interpolate4", { name: "\u0275\u0275interpolate4", moduleName: o }), __publicField(_a2, "interpolate5", { name: "\u0275\u0275interpolate5", moduleName: o }), __publicField(_a2, "interpolate6", { name: "\u0275\u0275interpolate6", moduleName: o }), __publicField(_a2, "interpolate7", { name: "\u0275\u0275interpolate7", moduleName: o }), __publicField(_a2, "interpolate8", { name: "\u0275\u0275interpolate8", moduleName: o }), __publicField(_a2, "interpolateV", { name: "\u0275\u0275interpolateV", moduleName: o }), __publicField(_a2, "nextContext", { name: "\u0275\u0275nextContext", moduleName: o }), __publicField(_a2, "resetView", { name: "\u0275\u0275resetView", moduleName: o }), __publicField(_a2, "templateCreate", { name: "\u0275\u0275template", moduleName: o }), __publicField(_a2, "defer", { name: "\u0275\u0275defer", moduleName: o }), __publicField(_a2, "deferWhen", { name: "\u0275\u0275deferWhen", moduleName: o }), __publicField(_a2, "deferOnIdle", { name: "\u0275\u0275deferOnIdle", moduleName: o }), __publicField(_a2, "deferOnImmediate", { name: "\u0275\u0275deferOnImmediate", moduleName: o }), __publicField(_a2, "deferOnTimer", { name: "\u0275\u0275deferOnTimer", moduleName: o }), __publicField(_a2, "deferOnHover", { name: "\u0275\u0275deferOnHover", moduleName: o }), __publicField(_a2, "deferOnInteraction", { name: "\u0275\u0275deferOnInteraction", moduleName: o }), __publicField(_a2, "deferOnViewport", { name: "\u0275\u0275deferOnViewport", moduleName: o }), __publicField(_a2, "deferPrefetchWhen", { name: "\u0275\u0275deferPrefetchWhen", moduleName: o }), __publicField(_a2, "deferPrefetchOnIdle", { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: o }), __publicField(_a2, "deferPrefetchOnImmediate", { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: o }), __publicField(_a2, "deferPrefetchOnTimer", { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: o }), __publicField(_a2, "deferPrefetchOnHover", { name: "\u0275\u0275deferPrefetchOnHover", moduleName: o }), __publicField(_a2, "deferPrefetchOnInteraction", { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: o }), __publicField(_a2, "deferPrefetchOnViewport", { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: o }), __publicField(_a2, "deferHydrateWhen", { name: "\u0275\u0275deferHydrateWhen", moduleName: o }), __publicField(_a2, "deferHydrateNever", { name: "\u0275\u0275deferHydrateNever", moduleName: o }), __publicField(_a2, "deferHydrateOnIdle", { name: "\u0275\u0275deferHydrateOnIdle", moduleName: o }), __publicField(_a2, "deferHydrateOnImmediate", { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: o }), __publicField(_a2, "deferHydrateOnTimer", { name: "\u0275\u0275deferHydrateOnTimer", moduleName: o }), __publicField(_a2, "deferHydrateOnHover", { name: "\u0275\u0275deferHydrateOnHover", moduleName: o }), __publicField(_a2, "deferHydrateOnInteraction", { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: o }), __publicField(_a2, "deferHydrateOnViewport", { name: "\u0275\u0275deferHydrateOnViewport", moduleName: o }), __publicField(_a2, "deferEnableTimerScheduling", { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: o }), __publicField(_a2, "enableIncrementalHydrationRuntime", { name: "\u0275\u0275enableIncrementalHydrationRuntime", moduleName: o }), __publicField(_a2, "conditionalCreate", { name: "\u0275\u0275conditionalCreate", moduleName: o }), __publicField(_a2, "conditionalBranchCreate", { name: "\u0275\u0275conditionalBranchCreate", moduleName: o }), __publicField(_a2, "conditional", { name: "\u0275\u0275conditional", moduleName: o }), __publicField(_a2, "repeater", { name: "\u0275\u0275repeater", moduleName: o }), __publicField(_a2, "repeaterCreate", { name: "\u0275\u0275repeaterCreate", moduleName: o }), __publicField(_a2, "repeaterTrackByIndex", { name: "\u0275\u0275repeaterTrackByIndex", moduleName: o }), __publicField(_a2, "repeaterTrackByIdentity", { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: o }), __publicField(_a2, "componentInstance", { name: "\u0275\u0275componentInstance", moduleName: o }), __publicField(_a2, "text", { name: "\u0275\u0275text", moduleName: o }), __publicField(_a2, "enableBindings", { name: "\u0275\u0275enableBindings", moduleName: o }), __publicField(_a2, "disableBindings", { name: "\u0275\u0275disableBindings", moduleName: o }), __publicField(_a2, "getCurrentView", { name: "\u0275\u0275getCurrentView", moduleName: o }), __publicField(_a2, "textInterpolate", { name: "\u0275\u0275textInterpolate", moduleName: o }), __publicField(_a2, "textInterpolate1", { name: "\u0275\u0275textInterpolate1", moduleName: o }), __publicField(_a2, "textInterpolate2", { name: "\u0275\u0275textInterpolate2", moduleName: o }), __publicField(_a2, "textInterpolate3", { name: "\u0275\u0275textInterpolate3", moduleName: o }), __publicField(_a2, "textInterpolate4", { name: "\u0275\u0275textInterpolate4", moduleName: o }), __publicField(_a2, "textInterpolate5", { name: "\u0275\u0275textInterpolate5", moduleName: o }), __publicField(_a2, "textInterpolate6", { name: "\u0275\u0275textInterpolate6", moduleName: o }), __publicField(_a2, "textInterpolate7", { name: "\u0275\u0275textInterpolate7", moduleName: o }), __publicField(_a2, "textInterpolate8", { name: "\u0275\u0275textInterpolate8", moduleName: o }), __publicField(_a2, "textInterpolateV", { name: "\u0275\u0275textInterpolateV", moduleName: o }), __publicField(_a2, "restoreView", { name: "\u0275\u0275restoreView", moduleName: o }), __publicField(_a2, "pureFunction0", { name: "\u0275\u0275pureFunction0", moduleName: o }), __publicField(_a2, "pureFunction1", { name: "\u0275\u0275pureFunction1", moduleName: o }), __publicField(_a2, "pureFunction2", { name: "\u0275\u0275pureFunction2", moduleName: o }), __publicField(_a2, "pureFunction3", { name: "\u0275\u0275pureFunction3", moduleName: o }), __publicField(_a2, "pureFunction4", { name: "\u0275\u0275pureFunction4", moduleName: o }), __publicField(_a2, "pureFunction5", { name: "\u0275\u0275pureFunction5", moduleName: o }), __publicField(_a2, "pureFunction6", { name: "\u0275\u0275pureFunction6", moduleName: o }), __publicField(_a2, "pureFunction7", { name: "\u0275\u0275pureFunction7", moduleName: o }), __publicField(_a2, "pureFunction8", { name: "\u0275\u0275pureFunction8", moduleName: o }), __publicField(_a2, "pureFunctionV", { name: "\u0275\u0275pureFunctionV", moduleName: o }), __publicField(_a2, "pipeBind1", { name: "\u0275\u0275pipeBind1", moduleName: o }), __publicField(_a2, "pipeBind2", { name: "\u0275\u0275pipeBind2", moduleName: o }), __publicField(_a2, "pipeBind3", { name: "\u0275\u0275pipeBind3", moduleName: o }), __publicField(_a2, "pipeBind4", { name: "\u0275\u0275pipeBind4", moduleName: o }), __publicField(_a2, "pipeBindV", { name: "\u0275\u0275pipeBindV", moduleName: o }), __publicField(_a2, "domProperty", { name: "\u0275\u0275domProperty", moduleName: o }), __publicField(_a2, "ariaProperty", { name: "\u0275\u0275ariaProperty", moduleName: o }), __publicField(_a2, "property", { name: "\u0275\u0275property", moduleName: o }), __publicField(_a2, "control", { name: "\u0275\u0275control", moduleName: o }), __publicField(_a2, "controlCreate", { name: "\u0275\u0275controlCreate", moduleName: o }), __publicField(_a2, "animationEnterListener", { name: "\u0275\u0275animateEnterListener", moduleName: o }), __publicField(_a2, "animationLeaveListener", { name: "\u0275\u0275animateLeaveListener", moduleName: o }), __publicField(_a2, "animationEnter", { name: "\u0275\u0275animateEnter", moduleName: o }), __publicField(_a2, "animationLeave", { name: "\u0275\u0275animateLeave", moduleName: o }), __publicField(_a2, "i18n", { name: "\u0275\u0275i18n", moduleName: o }), __publicField(_a2, "i18nAttributes", { name: "\u0275\u0275i18nAttributes", moduleName: o }), __publicField(_a2, "i18nExp", { name: "\u0275\u0275i18nExp", moduleName: o }), __publicField(_a2, "i18nStart", { name: "\u0275\u0275i18nStart", moduleName: o }), __publicField(_a2, "i18nEnd", { name: "\u0275\u0275i18nEnd", moduleName: o }), __publicField(_a2, "i18nApply", { name: "\u0275\u0275i18nApply", moduleName: o }), __publicField(_a2, "i18nPostprocess", { name: "\u0275\u0275i18nPostprocess", moduleName: o }), __publicField(_a2, "pipe", { name: "\u0275\u0275pipe", moduleName: o }), __publicField(_a2, "projection", { name: "\u0275\u0275projection", moduleName: o }), __publicField(_a2, "projectionDef", { name: "\u0275\u0275projectionDef", moduleName: o }), __publicField(_a2, "reference", { name: "\u0275\u0275reference", moduleName: o }), __publicField(_a2, "inject", { name: "\u0275\u0275inject", moduleName: o }), __publicField(_a2, "injectAttribute", { name: "\u0275\u0275injectAttribute", moduleName: o }), __publicField(_a2, "directiveInject", { name: "\u0275\u0275directiveInject", moduleName: o }), __publicField(_a2, "invalidFactory", { name: "\u0275\u0275invalidFactory", moduleName: o }), __publicField(_a2, "invalidFactoryDep", { name: "\u0275\u0275invalidFactoryDep", moduleName: o }), __publicField(_a2, "templateRefExtractor", { name: "\u0275\u0275templateRefExtractor", moduleName: o }), __publicField(_a2, "forwardRef", { name: "forwardRef", moduleName: o }), __publicField(_a2, "resolveForwardRef", { name: "resolveForwardRef", moduleName: o }), __publicField(_a2, "replaceMetadata", { name: "\u0275\u0275replaceMetadata", moduleName: o }), __publicField(_a2, "getReplaceMetadataURL", { name: "\u0275\u0275getReplaceMetadataURL", moduleName: o }), __publicField(_a2, "\u0275\u0275defineInjectable", { name: "\u0275\u0275defineInjectable", moduleName: o }), __publicField(_a2, "declareInjectable", { name: "\u0275\u0275ngDeclareInjectable", moduleName: o }), __publicField(_a2, "InjectableDeclaration", { name: "\u0275\u0275InjectableDeclaration", moduleName: o }), __publicField(_a2, "defineService", { name: "\u0275\u0275defineService", moduleName: o }), __publicField(_a2, "declareService", { name: "\u0275\u0275ngDeclareService", moduleName: o }), __publicField(_a2, "resolveWindow", { name: "\u0275\u0275resolveWindow", moduleName: o }), __publicField(_a2, "resolveDocument", { name: "\u0275\u0275resolveDocument", moduleName: o }), __publicField(_a2, "resolveBody", { name: "\u0275\u0275resolveBody", moduleName: o }), __publicField(_a2, "getComponentDepsFactory", { name: "\u0275\u0275getComponentDepsFactory", moduleName: o }), __publicField(_a2, "defineComponent", { name: "\u0275\u0275defineComponent", moduleName: o }), __publicField(_a2, "declareComponent", { name: "\u0275\u0275ngDeclareComponent", moduleName: o }), __publicField(_a2, "setComponentScope", { name: "\u0275\u0275setComponentScope", moduleName: o }), __publicField(_a2, "ChangeDetectionStrategy", { name: "ChangeDetectionStrategy", moduleName: o }), __publicField(_a2, "ViewEncapsulation", { name: "ViewEncapsulation", moduleName: o }), __publicField(_a2, "ComponentDeclaration", { name: "\u0275\u0275ComponentDeclaration", moduleName: o }), __publicField(_a2, "FactoryDeclaration", { name: "\u0275\u0275FactoryDeclaration", moduleName: o }), __publicField(_a2, "declareFactory", { name: "\u0275\u0275ngDeclareFactory", moduleName: o }), __publicField(_a2, "FactoryTarget", { name: "\u0275\u0275FactoryTarget", moduleName: o }), __publicField(_a2, "defineDirective", { name: "\u0275\u0275defineDirective", moduleName: o }), __publicField(_a2, "declareDirective", { name: "\u0275\u0275ngDeclareDirective", moduleName: o }), __publicField(_a2, "DirectiveDeclaration", { name: "\u0275\u0275DirectiveDeclaration", moduleName: o }), __publicField(_a2, "InjectorDef", { name: "\u0275\u0275InjectorDef", moduleName: o }), __publicField(_a2, "InjectorDeclaration", { name: "\u0275\u0275InjectorDeclaration", moduleName: o }), __publicField(_a2, "defineInjector", { name: "\u0275\u0275defineInjector", moduleName: o }), __publicField(_a2, "declareInjector", { name: "\u0275\u0275ngDeclareInjector", moduleName: o }), __publicField(_a2, "NgModuleDeclaration", { name: "\u0275\u0275NgModuleDeclaration", moduleName: o }), __publicField(_a2, "ModuleWithProviders", { name: "ModuleWithProviders", moduleName: o }), __publicField(_a2, "defineNgModule", { name: "\u0275\u0275defineNgModule", moduleName: o }), __publicField(_a2, "declareNgModule", { name: "\u0275\u0275ngDeclareNgModule", moduleName: o }), __publicField(_a2, "setNgModuleScope", { name: "\u0275\u0275setNgModuleScope", moduleName: o }), __publicField(_a2, "registerNgModuleType", { name: "\u0275\u0275registerNgModuleType", moduleName: o }), __publicField(_a2, "PipeDeclaration", { name: "\u0275\u0275PipeDeclaration", moduleName: o }), __publicField(_a2, "definePipe", { name: "\u0275\u0275definePipe", moduleName: o }), __publicField(_a2, "declarePipe", { name: "\u0275\u0275ngDeclarePipe", moduleName: o }), __publicField(_a2, "declareClassMetadata", { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: o }), __publicField(_a2, "declareClassMetadataAsync", { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: o }), __publicField(_a2, "setClassMetadata", { name: "\u0275setClassMetadata", moduleName: o }), __publicField(_a2, "setClassMetadataAsync", { name: "\u0275setClassMetadataAsync", moduleName: o }), __publicField(_a2, "setClassDebugInfo", { name: "\u0275setClassDebugInfo", moduleName: o }), __publicField(_a2, "queryRefresh", { name: "\u0275\u0275queryRefresh", moduleName: o }), __publicField(_a2, "viewQuery", { name: "\u0275\u0275viewQuery", moduleName: o }), __publicField(_a2, "loadQuery", { name: "\u0275\u0275loadQuery", moduleName: o }), __publicField(_a2, "contentQuery", { name: "\u0275\u0275contentQuery", moduleName: o }), __publicField(_a2, "viewQuerySignal", { name: "\u0275\u0275viewQuerySignal", moduleName: o }), __publicField(_a2, "contentQuerySignal", { name: "\u0275\u0275contentQuerySignal", moduleName: o }), __publicField(_a2, "queryAdvance", { name: "\u0275\u0275queryAdvance", moduleName: o }), __publicField(_a2, "twoWayProperty", { name: "\u0275\u0275twoWayProperty", moduleName: o }), __publicField(_a2, "twoWayBindingSet", { name: "\u0275\u0275twoWayBindingSet", moduleName: o }), __publicField(_a2, "twoWayListener", { name: "\u0275\u0275twoWayListener", moduleName: o }), __publicField(_a2, "declareLet", { name: "\u0275\u0275declareLet", moduleName: o }), __publicField(_a2, "storeLet", { name: "\u0275\u0275storeLet", moduleName: o }), __publicField(_a2, "readContextLet", { name: "\u0275\u0275readContextLet", moduleName: o }), __publicField(_a2, "arrowFunction", { name: "\u0275\u0275arrowFunction", moduleName: o }), __publicField(_a2, "attachSourceLocations", { name: "\u0275\u0275attachSourceLocations", moduleName: o }), __publicField(_a2, "NgOnChangesFeature", { name: "\u0275\u0275NgOnChangesFeature", moduleName: o }), __publicField(_a2, "ControlFeature", { name: "\u0275\u0275ControlFeature", moduleName: o }), __publicField(_a2, "InheritDefinitionFeature", { name: "\u0275\u0275InheritDefinitionFeature", moduleName: o }), __publicField(_a2, "ProvidersFeature", { name: "\u0275\u0275ProvidersFeature", moduleName: o }), __publicField(_a2, "HostDirectivesFeature", { name: "\u0275\u0275HostDirectivesFeature", moduleName: o }), __publicField(_a2, "ExternalStylesFeature", { name: "\u0275\u0275ExternalStylesFeature", moduleName: o }), __publicField(_a2, "listener", { name: "\u0275\u0275listener", moduleName: o }), __publicField(_a2, "getInheritedFactory", { name: "\u0275\u0275getInheritedFactory", moduleName: o }), __publicField(_a2, "sanitizeHtml", { name: "\u0275\u0275sanitizeHtml", moduleName: o }), __publicField(_a2, "sanitizeStyle", { name: "\u0275\u0275sanitizeStyle", moduleName: o }), __publicField(_a2, "validateAttribute", { name: "\u0275\u0275validateAttribute", moduleName: o }), __publicField(_a2, "sanitizeResourceUrl", { name: "\u0275\u0275sanitizeResourceUrl", moduleName: o }), __publicField(_a2, "sanitizeScript", { name: "\u0275\u0275sanitizeScript", moduleName: o }), __publicField(_a2, "sanitizeUrl", { name: "\u0275\u0275sanitizeUrl", moduleName: o }), __publicField(_a2, "sanitizeUrlOrResourceUrl", { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: o }), __publicField(_a2, "trustConstantHtml", { name: "\u0275\u0275trustConstantHtml", moduleName: o }), __publicField(_a2, "trustConstantResourceUrl", { name: "\u0275\u0275trustConstantResourceUrl", moduleName: o }), __publicField(_a2, "inputDecorator", { name: "Input", moduleName: o }), __publicField(_a2, "outputDecorator", { name: "Output", moduleName: o }), __publicField(_a2, "viewChildDecorator", { name: "ViewChild", moduleName: o }), __publicField(_a2, "viewChildrenDecorator", { name: "ViewChildren", moduleName: o }), __publicField(_a2, "contentChildDecorator", { name: "ContentChild", moduleName: o }), __publicField(_a2, "contentChildrenDecorator", { name: "ContentChildren", moduleName: o }), __publicField(_a2, "InputSignalBrandWriteType", { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: o }), __publicField(_a2, "UnwrapDirectiveSignalInputs", { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: o }), __publicField(_a2, "unwrapWritableSignal", { name: "\u0275unwrapWritableSignal", moduleName: o }), __publicField(_a2, "assertType", { name: "\u0275assertType", moduleName: o }), _a2);
656
+ var vr = /-+([a-z0-9])/g;
657
+ function wr(t27) {
658
+ return t27.replace(vr, (...e) => e[1].toUpperCase());
659
+ }
660
+ var Dt = class {
661
+ constructor(e) {
662
+ __publicField(this, "full");
663
+ __publicField(this, "major");
664
+ __publicField(this, "minor");
665
+ __publicField(this, "patch");
666
+ this.full = e;
667
+ let n = e.split(".");
668
+ this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
669
+ }
670
+ };
671
+ var oa = /* @__PURE__ */ new Map([[p.And, "&&"], [p.Bigger, ">"], [p.BiggerEquals, ">="], [p.BitwiseOr, "|"], [p.BitwiseAnd, "&"], [p.Divide, "/"], [p.Assign, "="], [p.Equals, "=="], [p.Identical, "==="], [p.Lower, "<"], [p.LowerEquals, "<="], [p.Minus, "-"], [p.Modulo, "%"], [p.Exponentiation, "**"], [p.Multiply, "*"], [p.NotEquals, "!="], [p.NotIdentical, "!=="], [p.NullishCoalesce, "??"], [p.Or, "||"], [p.Plus, "+"], [p.In, "in"], [p.InstanceOf, "instanceof"], [p.AdditionAssignment, "+="], [p.SubtractionAssignment, "-="], [p.MultiplicationAssignment, "*="], [p.DivisionAssignment, "/="], [p.RemainderAssignment, "%="], [p.ExponentiationAssignment, "**="], [p.AndAssignment, "&&="], [p.OrAssignment, "||="], [p.NullishCoalesceAssignment, "??="]]);
672
+ var Xn;
673
+ (function(t27) {
674
+ t27[t27.Class = 0] = "Class", t27[t27.Function = 1] = "Function";
675
+ })(Xn || (Xn = {}));
676
+ var ee = class {
677
+ constructor(e, n) {
678
+ __publicField(this, "start");
679
+ __publicField(this, "end");
680
+ this.start = e, this.end = n;
681
+ }
682
+ toAbsolute(e) {
683
+ return new D(e + this.start, e + this.end);
684
+ }
685
+ };
686
+ var v = class {
687
+ constructor(e, n) {
688
+ __publicField(this, "span");
689
+ __publicField(this, "sourceSpan");
690
+ this.span = e, this.sourceSpan = n;
691
+ }
692
+ toString() {
693
+ return "AST";
694
+ }
695
+ };
696
+ var Le = class extends v {
697
+ constructor(e, n, s) {
698
+ super(e, n);
699
+ __publicField(this, "nameSpan");
700
+ this.nameSpan = s;
701
+ }
702
+ };
703
+ var N = class extends v {
704
+ visit(e, n = null) {
705
+ return e.visitEmptyExpr?.(this, n);
706
+ }
707
+ };
708
+ var fe = class extends v {
709
+ visit(e, n = null) {
710
+ return e.visitImplicitReceiver(this, n);
711
+ }
712
+ };
713
+ var Bt = class extends v {
714
+ visit(e, n = null) {
715
+ return e.visitThisReceiver?.(this, n);
716
+ }
717
+ };
718
+ var Ft = class extends v {
719
+ constructor(e, n, s) {
720
+ super(e, n);
721
+ __publicField(this, "expressions");
722
+ this.expressions = s;
723
+ }
724
+ visit(e, n = null) {
725
+ return e.visitChain(this, n);
726
+ }
727
+ };
728
+ var Vt = class extends v {
729
+ constructor(e, n, s, i, r) {
730
+ super(e, n);
731
+ __publicField(this, "condition");
732
+ __publicField(this, "trueExp");
733
+ __publicField(this, "falseExp");
734
+ this.condition = s, this.trueExp = i, this.falseExp = r;
735
+ }
736
+ visit(e, n = null) {
737
+ return e.visitConditional(this, n);
738
+ }
739
+ };
740
+ var ke = class extends Le {
741
+ constructor(e, n, s, i, r) {
742
+ super(e, n, s);
743
+ __publicField(this, "receiver");
744
+ __publicField(this, "name");
745
+ this.receiver = i, this.name = r;
746
+ }
747
+ visit(e, n = null) {
748
+ return e.visitPropertyRead(this, n);
749
+ }
750
+ };
751
+ var Ht = class extends Le {
752
+ constructor(e, n, s, i, r) {
753
+ super(e, n, s);
754
+ __publicField(this, "receiver");
755
+ __publicField(this, "name");
756
+ this.receiver = i, this.name = r;
757
+ }
758
+ visit(e, n = null) {
759
+ return e.visitSafePropertyRead(this, n);
760
+ }
761
+ };
762
+ var qe = class extends v {
763
+ constructor(e, n, s, i) {
764
+ super(e, n);
765
+ __publicField(this, "receiver");
766
+ __publicField(this, "key");
767
+ this.receiver = s, this.key = i;
768
+ }
769
+ visit(e, n = null) {
770
+ return e.visitKeyedRead(this, n);
771
+ }
772
+ };
773
+ var Ut = class extends v {
774
+ constructor(e, n, s, i) {
775
+ super(e, n);
776
+ __publicField(this, "receiver");
777
+ __publicField(this, "key");
778
+ this.receiver = s, this.key = i;
779
+ }
780
+ visit(e, n = null) {
781
+ return e.visitSafeKeyedRead(this, n);
782
+ }
783
+ };
784
+ var _e;
785
+ (function(t27) {
786
+ t27[t27.ReferencedByName = 0] = "ReferencedByName", t27[t27.ReferencedDirectly = 1] = "ReferencedDirectly";
787
+ })(_e || (_e = {}));
788
+ var Wt = class extends Le {
789
+ constructor(e, n, s, i, r, a, u) {
790
+ super(e, n, u);
791
+ __publicField(this, "exp");
792
+ __publicField(this, "name");
793
+ __publicField(this, "args");
794
+ __publicField(this, "type");
795
+ this.exp = s, this.name = i, this.args = r, this.type = a;
796
+ }
797
+ visit(e, n = null) {
798
+ return e.visitPipe(this, n);
799
+ }
800
+ };
801
+ var A = class extends v {
802
+ constructor(e, n, s) {
803
+ super(e, n);
804
+ __publicField(this, "value");
805
+ this.value = s;
806
+ }
807
+ visit(e, n = null) {
808
+ return e.visitLiteralPrimitive(this, n);
809
+ }
810
+ };
811
+ var qt = class extends v {
812
+ constructor(e, n, s) {
813
+ super(e, n);
814
+ __publicField(this, "expressions");
815
+ this.expressions = s;
816
+ }
817
+ visit(e, n = null) {
818
+ return e.visitLiteralArray(this, n);
819
+ }
820
+ };
821
+ var jt = class extends v {
822
+ constructor(e, n, s) {
823
+ super(e, n);
824
+ __publicField(this, "expression");
825
+ this.expression = s;
826
+ }
827
+ visit(e, n = null) {
828
+ return e.visitSpreadElement(this, n);
829
+ }
830
+ };
831
+ var zt = class extends v {
832
+ constructor(e, n, s, i) {
833
+ super(e, n);
834
+ __publicField(this, "keys");
835
+ __publicField(this, "values");
836
+ this.keys = s, this.values = i;
837
+ }
838
+ visit(e, n = null) {
839
+ return e.visitLiteralMap(this, n);
840
+ }
841
+ };
842
+ var Sr = class extends v {
843
+ constructor(e, n, s, i) {
844
+ super(e, n);
845
+ __publicField(this, "strings");
846
+ __publicField(this, "expressions");
847
+ this.strings = s, this.expressions = i;
848
+ }
849
+ visit(e, n = null) {
850
+ return e.visitInterpolation(this, n);
851
+ }
852
+ };
853
+ var E = class extends v {
854
+ constructor(e, n, s, i, r) {
855
+ super(e, n);
856
+ __publicField(this, "operation");
857
+ __publicField(this, "left");
858
+ __publicField(this, "right");
859
+ this.operation = s, this.left = i, this.right = r;
860
+ }
861
+ visit(e, n = null) {
862
+ return e.visitBinary(this, n);
863
+ }
864
+ static isAssignmentOperation(e) {
865
+ return e === "=" || e === "+=" || e === "-=" || e === "*=" || e === "/=" || e === "%=" || e === "**=" || e === "&&=" || e === "||=" || e === "??=";
866
+ }
867
+ };
868
+ var Ie = class t20 extends E {
869
+ constructor(e, n, s, i, r, a, u) {
870
+ super(e, n, r, a, u);
871
+ __publicField(this, "operator");
872
+ __publicField(this, "expr");
873
+ __publicField(this, "left", null);
874
+ __publicField(this, "right", null);
875
+ __publicField(this, "operation", null);
876
+ this.operator = s, this.expr = i;
877
+ }
878
+ static createMinus(e, n, s) {
879
+ return new t20(e, n, "-", s, "-", new A(e, n, 0), s);
880
+ }
881
+ static createPlus(e, n, s) {
882
+ return new t20(e, n, "+", s, "-", s, new A(e, n, 0));
883
+ }
884
+ visit(e, n = null) {
885
+ return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
886
+ }
887
+ };
888
+ var je = class extends v {
889
+ constructor(e, n, s) {
890
+ super(e, n);
891
+ __publicField(this, "expression");
892
+ this.expression = s;
893
+ }
894
+ visit(e, n = null) {
895
+ return e.visitPrefixNot(this, n);
896
+ }
897
+ };
898
+ var ze = class extends v {
899
+ constructor(e, n, s) {
900
+ super(e, n);
901
+ __publicField(this, "expression");
902
+ this.expression = s;
903
+ }
904
+ visit(e, n = null) {
905
+ return e.visitTypeofExpression(this, n);
906
+ }
907
+ };
908
+ var Ge = class extends v {
909
+ constructor(e, n, s) {
910
+ super(e, n);
911
+ __publicField(this, "expression");
912
+ this.expression = s;
913
+ }
914
+ visit(e, n = null) {
915
+ return e.visitVoidExpression(this, n);
916
+ }
917
+ };
918
+ var Gt = class extends v {
919
+ constructor(e, n, s) {
920
+ super(e, n);
921
+ __publicField(this, "expression");
922
+ this.expression = s;
923
+ }
924
+ visit(e, n = null) {
925
+ return e.visitNonNullAssert(this, n);
926
+ }
927
+ };
928
+ var Xe = class extends v {
929
+ constructor(e, n, s, i, r) {
930
+ super(e, n);
931
+ __publicField(this, "receiver");
932
+ __publicField(this, "args");
933
+ __publicField(this, "argumentSpan");
934
+ this.receiver = s, this.args = i, this.argumentSpan = r;
935
+ }
936
+ visit(e, n = null) {
937
+ return e.visitCall(this, n);
938
+ }
939
+ };
940
+ var Xt = class extends v {
941
+ constructor(e, n, s, i, r) {
942
+ super(e, n);
943
+ __publicField(this, "receiver");
944
+ __publicField(this, "args");
945
+ __publicField(this, "argumentSpan");
946
+ this.receiver = s, this.args = i, this.argumentSpan = r;
947
+ }
948
+ visit(e, n = null) {
949
+ return e.visitSafeCall(this, n);
950
+ }
951
+ };
952
+ var Qe = class extends v {
953
+ constructor(e, n, s, i) {
954
+ super(e, n);
955
+ __publicField(this, "tag");
956
+ __publicField(this, "template");
957
+ this.tag = s, this.template = i;
958
+ }
959
+ visit(e, n) {
960
+ return e.visitTaggedTemplateLiteral(this, n);
961
+ }
962
+ };
963
+ var Je = class extends v {
964
+ constructor(e, n, s, i) {
965
+ super(e, n);
966
+ __publicField(this, "elements");
967
+ __publicField(this, "expressions");
968
+ this.elements = s, this.expressions = i;
969
+ }
970
+ visit(e, n) {
971
+ return e.visitTemplateLiteral(this, n);
972
+ }
973
+ };
974
+ var Ye = class extends v {
975
+ constructor(e, n, s) {
976
+ super(e, n);
977
+ __publicField(this, "text");
978
+ this.text = s;
979
+ }
980
+ visit(e, n) {
981
+ return e.visitTemplateLiteralElement(this, n);
982
+ }
983
+ };
984
+ var $e = class extends v {
985
+ constructor(e, n, s) {
986
+ super(e, n);
987
+ __publicField(this, "expression");
988
+ this.expression = s;
989
+ }
990
+ visit(e, n) {
991
+ return e.visitParenthesizedExpression(this, n);
992
+ }
993
+ };
994
+ var Qt = class {
995
+ constructor(e, n, s) {
996
+ __publicField(this, "name");
997
+ __publicField(this, "span");
998
+ __publicField(this, "sourceSpan");
999
+ this.name = e, this.span = n, this.sourceSpan = s;
1000
+ }
1001
+ };
1002
+ var Jt = class extends v {
1003
+ constructor(e, n, s, i) {
1004
+ super(e, n);
1005
+ __publicField(this, "parameters");
1006
+ __publicField(this, "body");
1007
+ this.parameters = s, this.body = i;
1008
+ }
1009
+ visit(e, n) {
1010
+ return e.visitArrowFunction(this, n);
1011
+ }
1012
+ };
1013
+ var Yt = class extends v {
1014
+ constructor(e, n, s, i) {
1015
+ super(e, n);
1016
+ __publicField(this, "body");
1017
+ __publicField(this, "flags");
1018
+ this.body = s, this.flags = i;
1019
+ }
1020
+ visit(e, n) {
1021
+ return e.visitRegularExpressionLiteral(this, n);
1022
+ }
1023
+ };
1024
+ var D = class {
1025
+ constructor(e, n) {
1026
+ __publicField(this, "start");
1027
+ __publicField(this, "end");
1028
+ this.start = e, this.end = n;
1029
+ }
1030
+ };
1031
+ var U = class extends v {
1032
+ constructor(e, n, s, i, r) {
1033
+ super(new ee(0, n === null ? 0 : n.length), new D(i, n === null ? i : i + n.length));
1034
+ __publicField(this, "ast");
1035
+ __publicField(this, "source");
1036
+ __publicField(this, "location");
1037
+ __publicField(this, "errors");
1038
+ this.ast = e, this.source = n, this.location = s, this.errors = r;
1039
+ }
1040
+ visit(e, n = null) {
1041
+ return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
1042
+ }
1043
+ toString() {
1044
+ return `${this.source} in ${this.location}`;
1045
+ }
1046
+ };
1047
+ var de = class {
1048
+ constructor(e, n, s) {
1049
+ __publicField(this, "sourceSpan");
1050
+ __publicField(this, "key");
1051
+ __publicField(this, "value");
1052
+ this.sourceSpan = e, this.key = n, this.value = s;
1053
+ }
1054
+ };
1055
+ var Me = class {
1056
+ constructor(e, n, s) {
1057
+ __publicField(this, "sourceSpan");
1058
+ __publicField(this, "key");
1059
+ __publicField(this, "value");
1060
+ this.sourceSpan = e, this.key = n, this.value = s;
1061
+ }
1062
+ };
1063
+ var Kt = class {
1064
+ visit(e, n) {
1065
+ e.visit(this, n);
1066
+ }
1067
+ visitUnary(e, n) {
1068
+ this.visit(e.expr, n);
1069
+ }
1070
+ visitBinary(e, n) {
1071
+ this.visit(e.left, n), this.visit(e.right, n);
1072
+ }
1073
+ visitChain(e, n) {
1074
+ this.visitAll(e.expressions, n);
1075
+ }
1076
+ visitConditional(e, n) {
1077
+ this.visit(e.condition, n), this.visit(e.trueExp, n), this.visit(e.falseExp, n);
1078
+ }
1079
+ visitPipe(e, n) {
1080
+ this.visit(e.exp, n), this.visitAll(e.args, n);
1081
+ }
1082
+ visitImplicitReceiver(e, n) {
1083
+ }
1084
+ visitThisReceiver(e, n) {
1085
+ }
1086
+ visitInterpolation(e, n) {
1087
+ this.visitAll(e.expressions, n);
1088
+ }
1089
+ visitKeyedRead(e, n) {
1090
+ this.visit(e.receiver, n), this.visit(e.key, n);
1091
+ }
1092
+ visitLiteralArray(e, n) {
1093
+ this.visitAll(e.expressions, n);
1094
+ }
1095
+ visitLiteralMap(e, n) {
1096
+ this.visitAll(e.values, n);
1097
+ }
1098
+ visitLiteralPrimitive(e, n) {
1099
+ }
1100
+ visitPrefixNot(e, n) {
1101
+ this.visit(e.expression, n);
1102
+ }
1103
+ visitTypeofExpression(e, n) {
1104
+ this.visit(e.expression, n);
1105
+ }
1106
+ visitVoidExpression(e, n) {
1107
+ this.visit(e.expression, n);
1108
+ }
1109
+ visitNonNullAssert(e, n) {
1110
+ this.visit(e.expression, n);
1111
+ }
1112
+ visitPropertyRead(e, n) {
1113
+ this.visit(e.receiver, n);
1114
+ }
1115
+ visitSafePropertyRead(e, n) {
1116
+ this.visit(e.receiver, n);
1117
+ }
1118
+ visitSafeKeyedRead(e, n) {
1119
+ this.visit(e.receiver, n), this.visit(e.key, n);
1120
+ }
1121
+ visitCall(e, n) {
1122
+ this.visit(e.receiver, n), this.visitAll(e.args, n);
1123
+ }
1124
+ visitSafeCall(e, n) {
1125
+ this.visit(e.receiver, n), this.visitAll(e.args, n);
1126
+ }
1127
+ visitTemplateLiteral(e, n) {
1128
+ for (let s = 0; s < e.elements.length; s++) {
1129
+ this.visit(e.elements[s], n);
1130
+ let i = s < e.expressions.length ? e.expressions[s] : null;
1131
+ i !== null && this.visit(i, n);
1132
+ }
1133
+ }
1134
+ visitTemplateLiteralElement(e, n) {
1135
+ }
1136
+ visitTaggedTemplateLiteral(e, n) {
1137
+ this.visit(e.tag, n), this.visit(e.template, n);
1138
+ }
1139
+ visitParenthesizedExpression(e, n) {
1140
+ this.visit(e.expression, n);
1141
+ }
1142
+ visitArrowFunction(e, n) {
1143
+ this.visit(e.body, n);
1144
+ }
1145
+ visitRegularExpressionLiteral(e, n) {
1146
+ }
1147
+ visitSpreadElement(e, n) {
1148
+ this.visit(e.expression, n);
1149
+ }
1150
+ visitEmptyExpr(e, n) {
1151
+ }
1152
+ visitAll(e, n) {
1153
+ for (let s of e) this.visit(s, n);
1154
+ }
1155
+ };
1156
+ var Qn;
1157
+ (function(t27) {
1158
+ t27[t27.DEFAULT = 0] = "DEFAULT", t27[t27.LITERAL_ATTR = 1] = "LITERAL_ATTR", t27[t27.LEGACY_ANIMATION = 2] = "LEGACY_ANIMATION", t27[t27.TWO_WAY = 3] = "TWO_WAY", t27[t27.ANIMATION = 4] = "ANIMATION";
1159
+ })(Qn || (Qn = {}));
1160
+ var Jn;
1161
+ (function(t27) {
1162
+ t27[t27.Regular = 0] = "Regular", t27[t27.LegacyAnimation = 1] = "LegacyAnimation", t27[t27.TwoWay = 2] = "TwoWay", t27[t27.Animation = 3] = "Animation";
1163
+ })(Jn || (Jn = {}));
1164
+ var M;
1165
+ (function(t27) {
1166
+ t27[t27.Property = 0] = "Property", t27[t27.Attribute = 1] = "Attribute", t27[t27.Class = 2] = "Class", t27[t27.Style = 3] = "Style", t27[t27.LegacyAnimation = 4] = "LegacyAnimation", t27[t27.TwoWay = 5] = "TwoWay", t27[t27.Animation = 6] = "Animation";
1167
+ })(M || (M = {}));
1168
+ var Yn;
1169
+ (function(t27) {
1170
+ t27[t27.RAW_TEXT = 0] = "RAW_TEXT", t27[t27.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t27[t27.PARSABLE_DATA = 2] = "PARSABLE_DATA";
1171
+ })(Yn || (Yn = {}));
1172
+ function ot(t27, e = true) {
1173
+ if (t27[0] != ":") return [null, t27];
1174
+ let n = t27.indexOf(":", 1);
1175
+ if (n === -1) {
1176
+ if (e) throw new Error(`Unsupported format "${t27}" expecting ":namespace:name"`);
1177
+ return [null, t27];
1178
+ }
1179
+ return [t27.slice(1, n), t27.slice(n + 1)];
1180
+ }
1181
+ function Kn(t27) {
1182
+ return ot(t27)[1] === "ng-container";
1183
+ }
1184
+ function Zn(t27) {
1185
+ return ot(t27)[1] === "ng-content";
1186
+ }
1187
+ var xr = "ctx";
1188
+ var Ee = 0;
1189
+ var Fs = 9;
1190
+ var Ve = 10;
1191
+ var yr = 11;
1192
+ var Er = 12;
1193
+ var Cr = 13;
1194
+ var Vs = 32;
1195
+ var br = 33;
1196
+ var Hs = 34;
1197
+ var Tr = 35;
1198
+ var un = 36;
1199
+ var kr = 37;
1200
+ var es = 38;
1201
+ var Us = 39;
1202
+ var Q = 40;
1203
+ var L = 41;
1204
+ var ts = 42;
1205
+ var Ws = 43;
1206
+ var V = 44;
1207
+ var qs = 45;
1208
+ var G = 46;
1209
+ var Ke = 47;
1210
+ var J = 58;
1211
+ var Te = 59;
1212
+ var _r = 60;
1213
+ var C = 61;
1214
+ var ns = 62;
1215
+ var ss = 63;
1216
+ var Ir = 48;
1217
+ var Nr = 57;
1218
+ var pn = 65;
1219
+ var Ar = 69;
1220
+ var hn = 90;
1221
+ var ce = 91;
1222
+ var St = 92;
1223
+ var Z = 93;
1224
+ var Pr = 94;
1225
+ var at = 95;
1226
+ var js = 97;
1227
+ var Lr = 101;
1228
+ var $r = 102;
1229
+ var Mr = 110;
1230
+ var Rr = 114;
1231
+ var Or = 116;
1232
+ var Dr = 117;
1233
+ var Br = 118;
1234
+ var zs = 122;
1235
+ var Ne = 123;
1236
+ var is = 124;
1237
+ var oe = 125;
1238
+ var Gs = 160;
1239
+ var Zt = 96;
1240
+ function Fr(t27) {
1241
+ return t27 >= Fs && t27 <= Vs || t27 == Gs;
1242
+ }
1243
+ function X(t27) {
1244
+ return Ir <= t27 && t27 <= Nr;
1245
+ }
1246
+ function en(t27) {
1247
+ return t27 >= js && t27 <= zs || t27 >= pn && t27 <= hn;
1248
+ }
1249
+ function rs(t27) {
1250
+ return t27 === Us || t27 === Hs || t27 === Zt;
1251
+ }
1252
+ var Ze = class t21 {
1253
+ constructor(e, n, s, i) {
1254
+ __publicField(this, "file");
1255
+ __publicField(this, "offset");
1256
+ __publicField(this, "line");
1257
+ __publicField(this, "col");
1258
+ this.file = e, this.offset = n, this.line = s, this.col = i;
1259
+ }
1260
+ toString() {
1261
+ return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;
1262
+ }
1263
+ moveBy(e) {
1264
+ let n = this.file.content, s = n.length, i = this.offset, r = this.line, a = this.col;
1265
+ for (; i > 0 && e < 0; ) if (i--, e++, n.charCodeAt(i) == Ve) {
1266
+ r--;
1267
+ let h = n.substring(0, i - 1).lastIndexOf(String.fromCharCode(Ve));
1268
+ a = h > 0 ? i - h : i;
1269
+ } else a--;
1270
+ for (; i < s && e > 0; ) {
1271
+ let u = n.charCodeAt(i);
1272
+ i++, e--, u == Ve ? (r++, a = 0) : a++;
1273
+ }
1274
+ return new t21(this.file, i, r, a);
1275
+ }
1276
+ getContext(e, n) {
1277
+ let s = this.file.content, i = this.offset;
1278
+ if (i != null) {
1279
+ i > s.length - 1 && (i = s.length - 1);
1280
+ let r = i, a = 0, u = 0;
1281
+ for (; a < e && i > 0 && (i--, a++, !(s[i] == `
1282
+ ` && ++u == n)); ) ;
1283
+ for (a = 0, u = 0; a < e && r < s.length - 1 && (r++, a++, !(s[r] == `
1284
+ ` && ++u == n)); ) ;
1285
+ return { before: s.substring(i, this.offset), after: s.substring(this.offset, r + 1) };
1286
+ }
1287
+ return null;
1288
+ }
1289
+ };
1290
+ var et = class {
1291
+ constructor(e, n) {
1292
+ __publicField(this, "content");
1293
+ __publicField(this, "url");
1294
+ this.content = e, this.url = n;
1295
+ }
1296
+ };
1297
+ var tt = class {
1298
+ constructor(e, n, s = e, i = null) {
1299
+ __publicField(this, "start");
1300
+ __publicField(this, "end");
1301
+ __publicField(this, "fullStart");
1302
+ __publicField(this, "details");
1303
+ this.start = e, this.end = n, this.fullStart = s, this.details = i;
1304
+ }
1305
+ toString() {
1306
+ return this.start.file.content.substring(this.start.offset, this.end.offset);
1307
+ }
1308
+ };
1309
+ var nt;
1310
+ (function(t27) {
1311
+ t27[t27.WARNING = 0] = "WARNING", t27[t27.ERROR = 1] = "ERROR";
1312
+ })(nt || (nt = {}));
1313
+ var Re = class extends Error {
1314
+ constructor(e, n, s = nt.ERROR, i) {
1315
+ super(n);
1316
+ __publicField(this, "span");
1317
+ __publicField(this, "msg");
1318
+ __publicField(this, "level");
1319
+ __publicField(this, "relatedError");
1320
+ this.span = e, this.msg = n, this.level = s, this.relatedError = i, Object.setPrototypeOf(this, new.target.prototype);
1321
+ }
1322
+ contextualMessage() {
1323
+ let e = this.span.start.getContext(100, 3);
1324
+ return e ? `${this.msg} ("${e.before}[${nt[this.level]} ->]${e.after}")` : this.msg;
1325
+ }
1326
+ toString() {
1327
+ let e = this.span.details ? `, ${this.span.details}` : "";
1328
+ return `${this.contextualMessage()}: ${this.span.start}${e}`;
1329
+ }
1330
+ };
1331
+ var os;
1332
+ (function(t27) {
1333
+ t27[t27.Inline = 0] = "Inline", t27[t27.SideEffect = 1] = "SideEffect", t27[t27.Omit = 2] = "Omit";
1334
+ })(os || (os = {}));
1335
+ var as;
1336
+ (function(t27) {
1337
+ t27[t27.Global = 0] = "Global", t27[t27.Local = 1] = "Local", t27[t27.Isolated = 2] = "Isolated";
1338
+ })(as || (as = {}));
1339
+ var ls;
1340
+ (function(t27) {
1341
+ t27[t27.Directive = 0] = "Directive", t27[t27.Pipe = 1] = "Pipe", t27[t27.NgModule = 2] = "NgModule";
1342
+ })(ls || (ls = {}));
1343
+ var Vr = "(:(where|is)\\()?";
1344
+ var Xs = "-shadowcsshost";
1345
+ var Hr = "-shadowcsscontext";
1346
+ var tn = "[^)(]*";
1347
+ var Ur = `(?:\\(${tn}\\)|${tn})+?`;
1348
+ var Wr = `(?:\\(${Ur}\\)|${tn})+?`;
1349
+ var fn = `(?:\\((${Wr})\\))`;
1350
+ var ca = new RegExp("(:nth-[-\\w]+)" + fn, "g");
1351
+ var ua = new RegExp(Xs + fn + "?([^,{]*)", "gim");
1352
+ var qr = Hr + fn + "([^{]*)";
1353
+ var pa = new RegExp(`${Vr}(${qr})`, "gim");
1354
+ var jr = Xs + "-no-combinator";
1355
+ var ha = new RegExp(`${jr}(?![^(]*\\))`, "g");
1356
+ var Qs = "%COMMENT%";
1357
+ var fa = new RegExp(Qs, "g");
1358
+ var da = new RegExp(`(\\s*(?:${Qs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
1359
+ var zr = "%COMMA_IN_PLACEHOLDER%";
1360
+ var Gr = "%SEMI_IN_PLACEHOLDER%";
1361
+ var Xr = "%COLON_IN_PLACEHOLDER%";
1362
+ var ma = new RegExp(zr, "g");
1363
+ var ga = new RegExp(Gr, "g");
1364
+ var va = new RegExp(Xr, "g");
1365
+ var l;
1366
+ (function(t27) {
1367
+ t27[t27.ListEnd = 0] = "ListEnd", t27[t27.Statement = 1] = "Statement", t27[t27.Variable = 2] = "Variable", t27[t27.ElementStart = 3] = "ElementStart", t27[t27.Element = 4] = "Element", t27[t27.Template = 5] = "Template", t27[t27.ElementEnd = 6] = "ElementEnd", t27[t27.ContainerStart = 7] = "ContainerStart", t27[t27.Container = 8] = "Container", t27[t27.ContainerEnd = 9] = "ContainerEnd", t27[t27.DisableBindings = 10] = "DisableBindings", t27[t27.ConditionalCreate = 11] = "ConditionalCreate", t27[t27.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t27[t27.Conditional = 13] = "Conditional", t27[t27.EnableBindings = 14] = "EnableBindings", t27[t27.Text = 15] = "Text", t27[t27.Listener = 16] = "Listener", t27[t27.InterpolateText = 17] = "InterpolateText", t27[t27.Binding = 18] = "Binding", t27[t27.Property = 19] = "Property", t27[t27.StyleProp = 20] = "StyleProp", t27[t27.ClassProp = 21] = "ClassProp", t27[t27.StyleMap = 22] = "StyleMap", t27[t27.ClassMap = 23] = "ClassMap", t27[t27.Advance = 24] = "Advance", t27[t27.Pipe = 25] = "Pipe", t27[t27.Attribute = 26] = "Attribute", t27[t27.ExtractedAttribute = 27] = "ExtractedAttribute", t27[t27.Defer = 28] = "Defer", t27[t27.DeferOn = 29] = "DeferOn", t27[t27.DeferWhen = 30] = "DeferWhen", t27[t27.I18nMessage = 31] = "I18nMessage", t27[t27.DomProperty = 32] = "DomProperty", t27[t27.Namespace = 33] = "Namespace", t27[t27.ProjectionDef = 34] = "ProjectionDef", t27[t27.EnableIncrementalHydrationRuntime = 35] = "EnableIncrementalHydrationRuntime", t27[t27.Projection = 36] = "Projection", t27[t27.RepeaterCreate = 37] = "RepeaterCreate", t27[t27.Repeater = 38] = "Repeater", t27[t27.TwoWayProperty = 39] = "TwoWayProperty", t27[t27.TwoWayListener = 40] = "TwoWayListener", t27[t27.DeclareLet = 41] = "DeclareLet", t27[t27.StoreLet = 42] = "StoreLet", t27[t27.I18nStart = 43] = "I18nStart", t27[t27.I18n = 44] = "I18n", t27[t27.I18nEnd = 45] = "I18nEnd", t27[t27.I18nExpression = 46] = "I18nExpression", t27[t27.I18nApply = 47] = "I18nApply", t27[t27.IcuStart = 48] = "IcuStart", t27[t27.IcuEnd = 49] = "IcuEnd", t27[t27.IcuPlaceholder = 50] = "IcuPlaceholder", t27[t27.I18nContext = 51] = "I18nContext", t27[t27.I18nAttributes = 52] = "I18nAttributes", t27[t27.SourceLocation = 53] = "SourceLocation", t27[t27.Animation = 54] = "Animation", t27[t27.AnimationString = 55] = "AnimationString", t27[t27.AnimationBinding = 56] = "AnimationBinding", t27[t27.AnimationListener = 57] = "AnimationListener", t27[t27.Control = 58] = "Control", t27[t27.ControlCreate = 59] = "ControlCreate";
1368
+ })(l || (l = {}));
1369
+ var te;
1370
+ (function(t27) {
1371
+ t27[t27.LexicalRead = 0] = "LexicalRead", t27[t27.Context = 1] = "Context", t27[t27.TrackContext = 2] = "TrackContext", t27[t27.ReadVariable = 3] = "ReadVariable", t27[t27.NextContext = 4] = "NextContext", t27[t27.Reference = 5] = "Reference", t27[t27.StoreLet = 6] = "StoreLet", t27[t27.ContextLetReference = 7] = "ContextLetReference", t27[t27.GetCurrentView = 8] = "GetCurrentView", t27[t27.RestoreView = 9] = "RestoreView", t27[t27.ResetView = 10] = "ResetView", t27[t27.PureFunctionExpr = 11] = "PureFunctionExpr", t27[t27.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t27[t27.PipeBinding = 13] = "PipeBinding", t27[t27.PipeBindingVariadic = 14] = "PipeBindingVariadic", t27[t27.SafePropertyRead = 15] = "SafePropertyRead", t27[t27.SafeKeyedRead = 16] = "SafeKeyedRead", t27[t27.SafeNavigationMigration = 17] = "SafeNavigationMigration", t27[t27.SafeTernaryExpr = 18] = "SafeTernaryExpr", t27[t27.EmptyExpr = 19] = "EmptyExpr", t27[t27.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t27[t27.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t27[t27.SlotLiteralExpr = 22] = "SlotLiteralExpr", t27[t27.ConditionalCase = 23] = "ConditionalCase", t27[t27.ConstCollected = 24] = "ConstCollected", t27[t27.TwoWayBindingSet = 25] = "TwoWayBindingSet", t27[t27.ArrowFunction = 26] = "ArrowFunction";
1372
+ })(te || (te = {}));
1373
+ var cs;
1374
+ (function(t27) {
1375
+ t27[t27.None = 0] = "None", t27[t27.AlwaysInline = 1] = "AlwaysInline";
1376
+ })(cs || (cs = {}));
1377
+ var us;
1378
+ (function(t27) {
1379
+ t27[t27.Context = 0] = "Context", t27[t27.Identifier = 1] = "Identifier", t27[t27.SavedView = 2] = "SavedView", t27[t27.Alias = 3] = "Alias";
1380
+ })(us || (us = {}));
1381
+ var R;
1382
+ (function(t27) {
1383
+ t27[t27.Attribute = 0] = "Attribute", t27[t27.ClassName = 1] = "ClassName", t27[t27.StyleProperty = 2] = "StyleProperty", t27[t27.Property = 3] = "Property", t27[t27.Template = 4] = "Template", t27[t27.I18n = 5] = "I18n", t27[t27.LegacyAnimation = 6] = "LegacyAnimation", t27[t27.TwoWayProperty = 7] = "TwoWayProperty", t27[t27.Animation = 8] = "Animation";
1384
+ })(R || (R = {}));
1385
+ var ps;
1386
+ (function(t27) {
1387
+ t27[t27.Creation = 0] = "Creation", t27[t27.Postproccessing = 1] = "Postproccessing";
1388
+ })(ps || (ps = {}));
1389
+ var hs;
1390
+ (function(t27) {
1391
+ t27[t27.I18nText = 0] = "I18nText", t27[t27.I18nAttribute = 1] = "I18nAttribute";
1392
+ })(hs || (hs = {}));
1393
+ var fs;
1394
+ (function(t27) {
1395
+ t27[t27.None = 0] = "None", t27[t27.ElementTag = 1] = "ElementTag", t27[t27.TemplateTag = 2] = "TemplateTag", t27[t27.OpenTag = 4] = "OpenTag", t27[t27.CloseTag = 8] = "CloseTag", t27[t27.ExpressionIndex = 16] = "ExpressionIndex";
1396
+ })(fs || (fs = {}));
1397
+ var ds;
1398
+ (function(t27) {
1399
+ t27[t27.HTML = 0] = "HTML", t27[t27.SVG = 1] = "SVG", t27[t27.Math = 2] = "Math";
1400
+ })(ds || (ds = {}));
1401
+ var O;
1402
+ (function(t27) {
1403
+ t27[t27.Idle = 0] = "Idle", t27[t27.Immediate = 1] = "Immediate", t27[t27.Timer = 2] = "Timer", t27[t27.Hover = 3] = "Hover", t27[t27.Interaction = 4] = "Interaction", t27[t27.Viewport = 5] = "Viewport", t27[t27.Never = 6] = "Never";
1404
+ })(O || (O = {}));
1405
+ var ms;
1406
+ (function(t27) {
1407
+ t27[t27.RootI18n = 0] = "RootI18n", t27[t27.Icu = 1] = "Icu", t27[t27.Attr = 2] = "Attr";
1408
+ })(ms || (ms = {}));
1409
+ var gs;
1410
+ (function(t27) {
1411
+ t27[t27.NgTemplate = 0] = "NgTemplate", t27[t27.Structural = 1] = "Structural", t27[t27.Block = 2] = "Block";
1412
+ })(gs || (gs = {}));
1413
+ var _a3;
1414
+ var nn = (_a3 = class {
1415
+ constructor() {
1416
+ __publicField(this, "debugListId", _a3.nextListId++);
1417
+ __publicField(this, "head", { kind: l.ListEnd, next: null, prev: null, debugListId: this.debugListId });
1418
+ __publicField(this, "tail", { kind: l.ListEnd, next: null, prev: null, debugListId: this.debugListId });
1419
+ this.head.next = this.tail, this.tail.prev = this.head;
1420
+ }
1421
+ push(e) {
1422
+ if (Array.isArray(e)) {
1423
+ for (let s of e) this.push(s);
1424
+ return;
1425
+ }
1426
+ _a3.assertIsNotEnd(e), _a3.assertIsUnowned(e), e.debugListId = this.debugListId;
1427
+ let n = this.tail.prev;
1428
+ e.prev = n, n.next = e, e.next = this.tail, this.tail.prev = e;
1429
+ }
1430
+ prepend(e) {
1431
+ if (e.length === 0) return;
1432
+ for (let i of e) _a3.assertIsNotEnd(i), _a3.assertIsUnowned(i), i.debugListId = this.debugListId;
1433
+ let n = this.head.next, s = this.head;
1434
+ for (let i of e) s.next = i, i.prev = s, s = i;
1435
+ s.next = n, n.prev = s;
1436
+ }
1437
+ *[Symbol.iterator]() {
1438
+ let e = this.head.next;
1439
+ for (; e !== this.tail; ) {
1440
+ _a3.assertIsOwned(e, this.debugListId);
1441
+ let n = e.next;
1442
+ yield e, e = n;
1443
+ }
1444
+ }
1445
+ *reversed() {
1446
+ let e = this.tail.prev;
1447
+ for (; e !== this.head; ) {
1448
+ _a3.assertIsOwned(e, this.debugListId);
1449
+ let n = e.prev;
1450
+ yield e, e = n;
1451
+ }
1452
+ }
1453
+ static replace(e, n) {
1454
+ _a3.assertIsNotEnd(e), _a3.assertIsNotEnd(n), _a3.assertIsOwned(e), _a3.assertIsUnowned(n), n.debugListId = e.debugListId, e.prev !== null && (e.prev.next = n, n.prev = e.prev), e.next !== null && (e.next.prev = n, n.next = e.next), e.debugListId = null, e.prev = null, e.next = null;
1455
+ }
1456
+ static replaceWithMany(e, n) {
1457
+ if (n.length === 0) {
1458
+ _a3.remove(e);
1459
+ return;
1460
+ }
1461
+ _a3.assertIsNotEnd(e), _a3.assertIsOwned(e);
1462
+ let s = e.debugListId;
1463
+ e.debugListId = null;
1464
+ for (let d of n) _a3.assertIsNotEnd(d), _a3.assertIsUnowned(d);
1465
+ let { prev: i, next: r } = e;
1466
+ e.prev = null, e.next = null;
1467
+ let a = i;
1468
+ for (let d of n) _a3.assertIsUnowned(d), d.debugListId = s, a.next = d, d.prev = a, d.next = null, a = d;
1469
+ let u = n[0], h = a;
1470
+ i !== null && (i.next = u, u.prev = i), r !== null && (r.prev = h, h.next = r);
1471
+ }
1472
+ static remove(e) {
1473
+ _a3.assertIsNotEnd(e), _a3.assertIsOwned(e), e.prev.next = e.next, e.next.prev = e.prev, e.debugListId = null, e.prev = null, e.next = null;
1474
+ }
1475
+ static insertBefore(e, n) {
1476
+ if (Array.isArray(e)) {
1477
+ for (let s of e) _a3.insertBefore(s, n);
1478
+ return;
1479
+ }
1480
+ if (_a3.assertIsOwned(n), n.prev === null) throw new Error("AssertionError: illegal operation on list start");
1481
+ _a3.assertIsNotEnd(e), _a3.assertIsUnowned(e), e.debugListId = n.debugListId, e.prev = null, n.prev.next = e, e.prev = n.prev, e.next = n, n.prev = e;
1482
+ }
1483
+ static insertAfter(e, n) {
1484
+ if (_a3.assertIsOwned(n), n.next === null) throw new Error("AssertionError: illegal operation on list end");
1485
+ _a3.assertIsNotEnd(e), _a3.assertIsUnowned(e), e.debugListId = n.debugListId, n.next.prev = e, e.next = n.next, e.prev = n, n.next = e;
1486
+ }
1487
+ static assertIsUnowned(e) {
1488
+ if (e.debugListId !== null) throw new Error(`AssertionError: illegal operation on owned node: ${l[e.kind]}`);
1489
+ }
1490
+ static assertIsOwned(e, n) {
1491
+ if (e.debugListId === null) throw new Error(`AssertionError: illegal operation on unowned node: ${l[e.kind]}`);
1492
+ if (n !== void 0 && e.debugListId !== n) throw new Error(`AssertionError: node belongs to the wrong list (expected ${n}, actual ${e.debugListId})`);
1493
+ }
1494
+ static assertIsNotEnd(e) {
1495
+ if (e.kind === l.ListEnd) throw new Error("AssertionError: illegal operation on list head or tail");
1496
+ }
1497
+ }, __publicField(_a3, "nextListId", 0), _a3);
1498
+ function Qr(t27) {
1499
+ return { kind: l.Statement, statement: t27, ...Jr };
1500
+ }
1501
+ var Jr = { debugListId: null, prev: null, next: null };
1502
+ var Yr = /* @__PURE__ */ Symbol("ConsumesSlot");
1503
+ var Js = /* @__PURE__ */ Symbol("DependsOnSlotContext");
1504
+ var ve = /* @__PURE__ */ Symbol("ConsumesVars");
1505
+ var lt = /* @__PURE__ */ Symbol("UsesVarOffset");
1506
+ var wa = { [Yr]: true, numSlotsUsed: 1 };
1507
+ var Sa = { [Js]: true };
1508
+ var xa = { [ve]: true };
1509
+ var me = class {
1510
+ constructor(e, n, s) {
1511
+ __publicField(this, "strings");
1512
+ __publicField(this, "expressions");
1513
+ __publicField(this, "i18nPlaceholders");
1514
+ if (this.strings = e, this.expressions = n, this.i18nPlaceholders = s, s.length !== 0 && s.length !== n.length) throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`);
1515
+ }
1516
+ };
1517
+ var ne = class extends y {
1518
+ constructor(e = null) {
1519
+ super(null, e);
1520
+ }
1521
+ };
1522
+ var _a4, _b, _c;
1523
+ var vs = class t22 extends (_c = ne, _b = ve, _a4 = Js, _c) {
1524
+ constructor(e, n, s) {
1525
+ super();
1526
+ __publicField(this, "target");
1527
+ __publicField(this, "value");
1528
+ __publicField(this, "sourceSpan");
1529
+ __publicField(this, "kind", te.StoreLet);
1530
+ __publicField(this, _b, true);
1531
+ __publicField(this, _a4, true);
1532
+ this.target = e, this.value = n, this.sourceSpan = s;
1533
+ }
1534
+ visitExpression() {
1535
+ }
1536
+ isEquivalent(e) {
1537
+ return e instanceof t22 && e.target === this.target && e.value.isEquivalent(this.value);
1538
+ }
1539
+ isConstant() {
1540
+ return false;
1541
+ }
1542
+ transformInternalExpressions(e, n) {
1543
+ this.value = (this.value, void 0);
1544
+ }
1545
+ clone() {
1546
+ return new t22(this.target, this.value, this.sourceSpan);
1547
+ }
1548
+ };
1549
+ var _a5, _b2, _c2;
1550
+ var ws = class t23 extends (_c2 = ne, _b2 = ve, _a5 = lt, _c2) {
1551
+ constructor(e, n) {
1552
+ super();
1553
+ __publicField(this, "kind", te.PureFunctionExpr);
1554
+ __publicField(this, _b2, true);
1555
+ __publicField(this, _a5, true);
1556
+ __publicField(this, "varOffset", null);
1557
+ __publicField(this, "body");
1558
+ __publicField(this, "args");
1559
+ __publicField(this, "fn", null);
1560
+ this.body = e, this.args = n;
1561
+ }
1562
+ visitExpression(e, n) {
1563
+ this.body?.visitExpression(e, n);
1564
+ for (let s of this.args) s.visitExpression(e, n);
1565
+ }
1566
+ isEquivalent(e) {
1567
+ return !(e instanceof t23) || e.args.length !== this.args.length ? false : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((n, s) => n.isEquivalent(this.args[s]));
1568
+ }
1569
+ isConstant() {
1570
+ return false;
1571
+ }
1572
+ transformInternalExpressions(e, n) {
1573
+ this.body !== null ? this.body = (this.body, n | q.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
1574
+ for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
1575
+ }
1576
+ clone() {
1577
+ let e = new t23(this.body?.clone() ?? null, this.args.map((n) => n.clone()));
1578
+ return e.fn = this.fn?.clone() ?? null, e.varOffset = this.varOffset, e;
1579
+ }
1580
+ };
1581
+ var _a6, _b3, _c3;
1582
+ var Ss = class t24 extends (_c3 = ne, _b3 = ve, _a6 = lt, _c3) {
1583
+ constructor(e, n, s, i) {
1584
+ super();
1585
+ __publicField(this, "target");
1586
+ __publicField(this, "targetSlot");
1587
+ __publicField(this, "name");
1588
+ __publicField(this, "args");
1589
+ __publicField(this, "kind", te.PipeBinding);
1590
+ __publicField(this, _b3, true);
1591
+ __publicField(this, _a6, true);
1592
+ __publicField(this, "varOffset", null);
1593
+ this.target = e, this.targetSlot = n, this.name = s, this.args = i;
1594
+ }
1595
+ visitExpression(e, n) {
1596
+ for (let s of this.args) s.visitExpression(e, n);
1597
+ }
1598
+ isEquivalent() {
1599
+ return false;
1600
+ }
1601
+ isConstant() {
1602
+ return false;
1603
+ }
1604
+ transformInternalExpressions(e, n) {
1605
+ for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
1606
+ }
1607
+ clone() {
1608
+ let e = new t24(this.target, this.targetSlot, this.name, this.args.map((n) => n.clone()));
1609
+ return e.varOffset = this.varOffset, e;
1610
+ }
1611
+ };
1612
+ var _a7, _b4, _c4;
1613
+ var xs = class t25 extends (_c4 = ne, _b4 = ve, _a7 = lt, _c4) {
1614
+ constructor(e, n, s, i, r) {
1615
+ super();
1616
+ __publicField(this, "target");
1617
+ __publicField(this, "targetSlot");
1618
+ __publicField(this, "name");
1619
+ __publicField(this, "args");
1620
+ __publicField(this, "numArgs");
1621
+ __publicField(this, "kind", te.PipeBindingVariadic);
1622
+ __publicField(this, _b4, true);
1623
+ __publicField(this, _a7, true);
1624
+ __publicField(this, "varOffset", null);
1625
+ this.target = e, this.targetSlot = n, this.name = s, this.args = i, this.numArgs = r;
1626
+ }
1627
+ visitExpression(e, n) {
1628
+ this.args.visitExpression(e, n);
1629
+ }
1630
+ isEquivalent() {
1631
+ return false;
1632
+ }
1633
+ isConstant() {
1634
+ return false;
1635
+ }
1636
+ transformInternalExpressions(e, n) {
1637
+ this.args = (this.args, void 0);
1638
+ }
1639
+ clone() {
1640
+ let e = new t25(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
1641
+ return e.varOffset = this.varOffset, e;
1642
+ }
1643
+ };
1644
+ var _a8, _b5, _c5;
1645
+ var ys = class t26 extends (_c5 = ne, _b5 = ve, _a8 = lt, _c5) {
1646
+ constructor(e, n) {
1647
+ super();
1648
+ __publicField(this, "parameters");
1649
+ __publicField(this, "body");
1650
+ __publicField(this, "kind", te.ArrowFunction);
1651
+ __publicField(this, _b5, true);
1652
+ __publicField(this, _a8, true);
1653
+ __publicField(this, "contextName", xr);
1654
+ __publicField(this, "currentViewName", "view");
1655
+ __publicField(this, "varOffset", null);
1656
+ __publicField(this, "ops");
1657
+ this.parameters = e, this.body = n, this.ops = new nn(), this.ops.push([Qr(new We(n, n.sourceSpan))]);
1658
+ }
1659
+ visitExpression(e, n) {
1660
+ for (let s of this.ops) Kr(s, (i) => {
1661
+ i.visitExpression(e, n);
1662
+ });
1663
+ }
1664
+ isEquivalent(e) {
1665
+ return e instanceof t26 && e.parameters.length === this.parameters.length && e.parameters.every((n, s) => n.isEquivalent(this.parameters[s])) && e.body.isEquivalent(this.body);
1666
+ }
1667
+ isConstant() {
1668
+ return false;
1669
+ }
1670
+ transformInternalExpressions(e, n) {
1671
+ for (let s of this.ops) st(s, e, n | (q.InChildOperation | q.InArrowFunctionOperation));
1672
+ }
1673
+ clone() {
1674
+ let e = new t26(this.parameters, this.body);
1675
+ return e.varOffset = this.varOffset, e.ops = this.ops, e;
1676
+ }
1677
+ };
1678
+ function Kr(t27, e) {
1679
+ st(t27, (n, s) => (e(n, s), n), q.None);
1680
+ }
1681
+ var q;
1682
+ (function(t27) {
1683
+ t27[t27.None = 0] = "None", t27[t27.InChildOperation = 1] = "InChildOperation", t27[t27.InArrowFunctionOperation = 2] = "InArrowFunctionOperation", t27[t27.InSafeNavigationMigration = 4] = "InSafeNavigationMigration";
1684
+ })(q || (q = {}));
1685
+ function xt(t27, e, n) {
1686
+ for (let s = 0; s < t27.expressions.length; s++) t27.expressions[s] = (t27.expressions[s], void 0);
1687
+ }
1688
+ function st(t27, e, n) {
1689
+ switch (t27.kind) {
1690
+ case l.StyleProp:
1691
+ case l.StyleMap:
1692
+ case l.ClassProp:
1693
+ case l.ClassMap:
1694
+ case l.AnimationString:
1695
+ case l.AnimationBinding:
1696
+ case l.Binding:
1697
+ t27.expression instanceof me ? xt(t27.expression, e, n) : t27.expression = (t27.expression, void 0);
1698
+ break;
1699
+ case l.Property:
1700
+ case l.DomProperty:
1701
+ case l.Attribute:
1702
+ t27.expression instanceof me ? xt(t27.expression, e, n) : t27.expression = (t27.expression, void 0), t27.sanitizer = t27.sanitizer && (t27.sanitizer, void 0);
1703
+ break;
1704
+ case l.TwoWayProperty:
1705
+ t27.expression = (t27.expression, void 0), t27.sanitizer = t27.sanitizer && (t27.sanitizer, void 0);
1706
+ break;
1707
+ case l.I18nExpression:
1708
+ t27.expression = (t27.expression, void 0);
1709
+ break;
1710
+ case l.InterpolateText:
1711
+ xt(t27.interpolation, e, n);
1712
+ break;
1713
+ case l.Statement:
1714
+ sn(t27.statement, e, n);
1715
+ break;
1716
+ case l.Variable:
1717
+ t27.initializer = (t27.initializer, void 0);
1718
+ break;
1719
+ case l.Conditional:
1720
+ for (let s of t27.conditions) s.expr !== null && (s.expr = (s.expr, void 0));
1721
+ t27.processed !== null && (t27.processed = (t27.processed, void 0)), t27.contextValue !== null && (t27.contextValue = (t27.contextValue, void 0));
1722
+ break;
1723
+ case l.Animation:
1724
+ case l.AnimationListener:
1725
+ case l.Listener:
1726
+ case l.TwoWayListener:
1727
+ for (let s of t27.handlerOps) st(s, e, n | q.InChildOperation);
1728
+ break;
1729
+ case l.ExtractedAttribute:
1730
+ t27.expression = t27.expression && (t27.expression, void 0), t27.trustedValueFn = t27.trustedValueFn && (t27.trustedValueFn, void 0);
1731
+ break;
1732
+ case l.RepeaterCreate:
1733
+ if (t27.trackByOps === null) t27.track = (t27.track, void 0);
1734
+ else for (let s of t27.trackByOps) st(s, e, n | q.InChildOperation);
1735
+ t27.trackByFn !== null && (t27.trackByFn = (t27.trackByFn, void 0));
1736
+ break;
1737
+ case l.Repeater:
1738
+ t27.collection = (t27.collection, void 0);
1739
+ break;
1740
+ case l.Defer:
1741
+ t27.loadingConfig !== null && (t27.loadingConfig = (t27.loadingConfig, void 0)), t27.placeholderConfig !== null && (t27.placeholderConfig = (t27.placeholderConfig, void 0)), t27.resolverFn !== null && (t27.resolverFn = (t27.resolverFn, void 0));
1742
+ break;
1743
+ case l.I18nMessage:
1744
+ for (let [s, i] of t27.params) t27.params.set(s, void 0);
1745
+ for (let [s, i] of t27.postprocessingParams) t27.postprocessingParams.set(s, void 0);
1746
+ break;
1747
+ case l.DeferWhen:
1748
+ t27.expr = (t27.expr, void 0);
1749
+ break;
1750
+ case l.StoreLet:
1751
+ t27.value = (t27.value, void 0);
1752
+ break;
1753
+ case l.Advance:
1754
+ case l.Container:
1755
+ case l.ContainerEnd:
1756
+ case l.ContainerStart:
1757
+ case l.DeferOn:
1758
+ case l.DisableBindings:
1759
+ case l.Element:
1760
+ case l.ElementEnd:
1761
+ case l.ElementStart:
1762
+ case l.EnableBindings:
1763
+ case l.I18n:
1764
+ case l.I18nApply:
1765
+ case l.I18nContext:
1766
+ case l.I18nEnd:
1767
+ case l.I18nStart:
1768
+ case l.IcuEnd:
1769
+ case l.IcuStart:
1770
+ case l.Namespace:
1771
+ case l.Pipe:
1772
+ case l.Projection:
1773
+ case l.ProjectionDef:
1774
+ case l.EnableIncrementalHydrationRuntime:
1775
+ case l.Template:
1776
+ case l.Text:
1777
+ case l.I18nAttributes:
1778
+ case l.IcuPlaceholder:
1779
+ case l.DeclareLet:
1780
+ case l.SourceLocation:
1781
+ case l.ConditionalCreate:
1782
+ case l.ConditionalBranchCreate:
1783
+ case l.Control:
1784
+ case l.ControlCreate:
1785
+ break;
1786
+ default:
1787
+ throw new Error(`AssertionError: transformExpressionsInOp doesn't handle ${l[t27.kind]}`);
1788
+ }
1789
+ }
1790
+ function sn(t27, e, n) {
1791
+ if (t27 instanceof Ue) t27.expr = (t27.expr, void 0);
1792
+ else if (t27 instanceof We) t27.value = (t27.value, void 0);
1793
+ else if (t27 instanceof Rt) t27.value !== void 0 && (t27.value = (t27.value, void 0));
1794
+ else if (t27 instanceof Ot) {
1795
+ t27.condition = (t27.condition, void 0);
1796
+ for (let s of t27.trueCase) sn(s, e, n);
1797
+ for (let s of t27.falseCase) sn(s, e, n);
1798
+ } else throw new Error(`Unhandled statement kind: ${t27.constructor.name}`);
1799
+ }
1800
+ var ya = /* @__PURE__ */ new Set([l.Element, l.ElementStart, l.Container, l.ContainerStart, l.Template, l.RepeaterCreate, l.ConditionalCreate, l.ConditionalBranchCreate]);
1801
+ var Es;
1802
+ (function(t27) {
1803
+ t27[t27.Tmpl = 0] = "Tmpl", t27[t27.Host = 1] = "Host", t27[t27.Both = 2] = "Both";
1804
+ })(Es || (Es = {}));
1805
+ var Cs;
1806
+ (function(t27) {
1807
+ t27[t27.Full = 0] = "Full", t27[t27.DomOnly = 1] = "DomOnly";
1808
+ })(Cs || (Cs = {}));
1809
+ var Ea = /* @__PURE__ */ new Map([[c.ariaProperty, c.ariaProperty], [c.attribute, c.attribute], [c.classProp, c.classProp], [c.element, c.element], [c.elementContainer, c.elementContainer], [c.elementContainerEnd, c.elementContainerEnd], [c.elementContainerStart, c.elementContainerStart], [c.elementEnd, c.elementEnd], [c.elementStart, c.elementStart], [c.domProperty, c.domProperty], [c.i18nExp, c.i18nExp], [c.listener, c.listener], [c.listener, c.listener], [c.property, c.property], [c.styleProp, c.styleProp], [c.syntheticHostListener, c.syntheticHostListener], [c.syntheticHostProperty, c.syntheticHostProperty], [c.templateCreate, c.templateCreate], [c.twoWayProperty, c.twoWayProperty], [c.twoWayListener, c.twoWayListener], [c.declareLet, c.declareLet], [c.conditionalCreate, c.conditionalBranchCreate], [c.conditionalBranchCreate, c.conditionalBranchCreate], [c.domElement, c.domElement], [c.domElementStart, c.domElementStart], [c.domElementEnd, c.domElementEnd], [c.domElementContainer, c.domElementContainer], [c.domElementContainerStart, c.domElementContainerStart], [c.domElementContainerEnd, c.domElementContainerEnd], [c.domListener, c.domListener], [c.domTemplate, c.domTemplate], [c.animationEnter, c.animationEnter], [c.animationLeave, c.animationLeave], [c.animationEnterListener, c.animationEnterListener], [c.animationLeaveListener, c.animationLeaveListener]]);
1810
+ var Ca = /* @__PURE__ */ new Map([["&&", p.And], [">", p.Bigger], [">=", p.BiggerEquals], ["|", p.BitwiseOr], ["&", p.BitwiseAnd], ["/", p.Divide], ["=", p.Assign], ["==", p.Equals], ["===", p.Identical], ["<", p.Lower], ["<=", p.LowerEquals], ["-", p.Minus], ["%", p.Modulo], ["**", p.Exponentiation], ["*", p.Multiply], ["!=", p.NotEquals], ["!==", p.NotIdentical], ["??", p.NullishCoalesce], ["||", p.Or], ["+", p.Plus], ["in", p.In], ["instanceof", p.InstanceOf], ["+=", p.AdditionAssignment], ["-=", p.SubtractionAssignment], ["*=", p.MultiplicationAssignment], ["/=", p.DivisionAssignment], ["%=", p.RemainderAssignment], ["**=", p.ExponentiationAssignment], ["&&=", p.AndAssignment], ["||=", p.OrAssignment], ["??=", p.NullishCoalesceAssignment]]);
1811
+ var ba = Object.freeze([]);
1812
+ var Ta = /* @__PURE__ */ new Map([["formField", /* @__PURE__ */ new Set([l.Property])], ["formControl", /* @__PURE__ */ new Set([l.Property])], ["formControlName", /* @__PURE__ */ new Set([l.Property, l.Attribute])], ["ngModel", /* @__PURE__ */ new Set([l.Attribute, l.Property, l.TwoWayProperty])]]);
1813
+ var ka = /* @__PURE__ */ new Set([l.Container, l.ContainerStart, l.ContainerEnd, l.Element, l.ElementStart, l.ElementEnd, l.Template]);
1814
+ var _a9 = /* @__PURE__ */ new Map([[l.ElementEnd, [l.ElementStart, l.Element]], [l.ContainerEnd, [l.ContainerStart, l.Container]], [l.I18nEnd, [l.I18nStart, l.I18n]]]);
1815
+ var Ia = /* @__PURE__ */ new Set([l.Pipe]);
1816
+ var Zr = {};
1817
+ var eo = "\uE500";
1818
+ Zr.ngsp = eo;
1819
+ var bs;
1820
+ (function(t27) {
1821
+ t27.HEX = "hexadecimal", t27.DEC = "decimal";
1822
+ })(bs || (bs = {}));
1823
+ var Ys = ` \f
1824
+ \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
1825
+ var Na = new RegExp(`[^${Ys}]`);
1826
+ var Aa = new RegExp(`[${Ys}]{2,}`, "g");
1827
+ var f;
1828
+ (function(t27) {
1829
+ t27[t27.Character = 0] = "Character", t27[t27.Identifier = 1] = "Identifier", t27[t27.PrivateIdentifier = 2] = "PrivateIdentifier", t27[t27.Keyword = 3] = "Keyword", t27[t27.String = 4] = "String", t27[t27.Operator = 5] = "Operator", t27[t27.Number = 6] = "Number", t27[t27.RegExpBody = 7] = "RegExpBody", t27[t27.RegExpFlags = 8] = "RegExpFlags", t27[t27.Error = 9] = "Error";
1830
+ })(f || (f = {}));
1831
+ var W;
1832
+ (function(t27) {
1833
+ t27[t27.Plain = 0] = "Plain", t27[t27.TemplateLiteralPart = 1] = "TemplateLiteralPart", t27[t27.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
1834
+ })(W || (W = {}));
1835
+ var to = ["var", "let", "as", "null", "undefined", "true", "false", "if", "else", "this", "typeof", "void", "in", "instanceof"];
1836
+ var Oe = class {
1837
+ tokenize(e) {
1838
+ return new rn(e).scan();
1839
+ }
1840
+ };
1841
+ var I = class {
1842
+ constructor(e, n, s, i, r) {
1843
+ __publicField(this, "index");
1844
+ __publicField(this, "end");
1845
+ __publicField(this, "type");
1846
+ __publicField(this, "numValue");
1847
+ __publicField(this, "strValue");
1848
+ this.index = e, this.end = n, this.type = s, this.numValue = i, this.strValue = r;
1849
+ }
1850
+ isCharacter(e) {
1851
+ return this.type === f.Character && this.numValue === e;
1852
+ }
1853
+ isNumber() {
1854
+ return this.type === f.Number;
1855
+ }
1856
+ isString() {
1857
+ return this.type === f.String;
1858
+ }
1859
+ isOperator(e) {
1860
+ return this.type === f.Operator && this.strValue === e;
1861
+ }
1862
+ isIdentifier() {
1863
+ return this.type === f.Identifier;
1864
+ }
1865
+ isPrivateIdentifier() {
1866
+ return this.type === f.PrivateIdentifier;
1867
+ }
1868
+ isKeyword() {
1869
+ return this.type === f.Keyword;
1870
+ }
1871
+ isKeywordLet() {
1872
+ return this.type === f.Keyword && this.strValue === "let";
1873
+ }
1874
+ isKeywordAs() {
1875
+ return this.type === f.Keyword && this.strValue === "as";
1876
+ }
1877
+ isKeywordNull() {
1878
+ return this.type === f.Keyword && this.strValue === "null";
1879
+ }
1880
+ isKeywordUndefined() {
1881
+ return this.type === f.Keyword && this.strValue === "undefined";
1882
+ }
1883
+ isKeywordTrue() {
1884
+ return this.type === f.Keyword && this.strValue === "true";
1885
+ }
1886
+ isKeywordFalse() {
1887
+ return this.type === f.Keyword && this.strValue === "false";
1888
+ }
1889
+ isKeywordThis() {
1890
+ return this.type === f.Keyword && this.strValue === "this";
1891
+ }
1892
+ isKeywordTypeof() {
1893
+ return this.type === f.Keyword && this.strValue === "typeof";
1894
+ }
1895
+ isKeywordVoid() {
1896
+ return this.type === f.Keyword && this.strValue === "void";
1897
+ }
1898
+ isKeywordIn() {
1899
+ return this.type === f.Keyword && this.strValue === "in";
1900
+ }
1901
+ isKeywordInstanceOf() {
1902
+ return this.type === f.Keyword && this.strValue === "instanceof";
1903
+ }
1904
+ isError() {
1905
+ return this.type === f.Error;
1906
+ }
1907
+ isRegExpBody() {
1908
+ return this.type === f.RegExpBody;
1909
+ }
1910
+ isRegExpFlags() {
1911
+ return this.type === f.RegExpFlags;
1912
+ }
1913
+ toNumber() {
1914
+ return this.type === f.Number ? this.numValue : -1;
1915
+ }
1916
+ isTemplateLiteralPart() {
1917
+ return this.isString() && this.kind === W.TemplateLiteralPart;
1918
+ }
1919
+ isTemplateLiteralEnd() {
1920
+ return this.isString() && this.kind === W.TemplateLiteralEnd;
1921
+ }
1922
+ isTemplateLiteralInterpolationStart() {
1923
+ return this.isOperator("${");
1924
+ }
1925
+ toString() {
1926
+ switch (this.type) {
1927
+ case f.Character:
1928
+ case f.Identifier:
1929
+ case f.Keyword:
1930
+ case f.Operator:
1931
+ case f.PrivateIdentifier:
1932
+ case f.String:
1933
+ case f.Error:
1934
+ case f.RegExpBody:
1935
+ case f.RegExpFlags:
1936
+ return this.strValue;
1937
+ case f.Number:
1938
+ return this.numValue.toString();
1939
+ default:
1940
+ return null;
1941
+ }
1942
+ }
1943
+ };
1944
+ var Ae = class extends I {
1945
+ constructor(e, n, s, i) {
1946
+ super(e, n, f.String, 0, s);
1947
+ __publicField(this, "kind");
1948
+ this.kind = i;
1949
+ }
1950
+ };
1951
+ function Ce(t27, e, n) {
1952
+ return new I(t27, e, f.Character, n, String.fromCharCode(n));
1953
+ }
1954
+ function no(t27, e, n) {
1955
+ return new I(t27, e, f.Identifier, 0, n);
1956
+ }
1957
+ function so(t27, e, n) {
1958
+ return new I(t27, e, f.PrivateIdentifier, 0, n);
1959
+ }
1960
+ function io(t27, e, n) {
1961
+ return new I(t27, e, f.Keyword, 0, n);
1962
+ }
1963
+ function F(t27, e, n) {
1964
+ return new I(t27, e, f.Operator, 0, n);
1965
+ }
1966
+ function ro(t27, e, n) {
1967
+ return new I(t27, e, f.Number, n, "");
1968
+ }
1969
+ function oo(t27, e, n) {
1970
+ return new I(t27, e, f.Error, 0, n);
1971
+ }
1972
+ function ao(t27, e, n) {
1973
+ return new I(t27, e, f.RegExpBody, 0, n);
1974
+ }
1975
+ function lo(t27, e, n) {
1976
+ return new I(t27, e, f.RegExpFlags, 0, n);
1977
+ }
1978
+ var be = new I(-1, -1, f.Character, 0, "");
1979
+ var rn = class {
1980
+ constructor(e) {
1981
+ __publicField(this, "input");
1982
+ __publicField(this, "tokens", []);
1983
+ __publicField(this, "length");
1984
+ __publicField(this, "peek", 0);
1985
+ __publicField(this, "index", -1);
1986
+ __publicField(this, "braceStack", []);
1987
+ this.input = e, this.length = e.length, this.advance();
1988
+ }
1989
+ scan() {
1990
+ let e = this.scanToken();
1991
+ for (; e !== null; ) this.tokens.push(e), e = this.scanToken();
1992
+ return this.tokens;
1993
+ }
1994
+ advance() {
1995
+ this.peek = ++this.index >= this.length ? Ee : this.input.charCodeAt(this.index);
1996
+ }
1997
+ scanToken() {
1998
+ let e = this.input, n = this.length, s = this.peek, i = this.index;
1999
+ for (; s <= Vs; ) if (++i >= n) {
2000
+ s = Ee;
2001
+ break;
2002
+ } else s = e.charCodeAt(i);
2003
+ if (this.peek = s, this.index = i, i >= n) return null;
2004
+ if (Ts(s)) return this.scanIdentifier();
2005
+ if (X(s)) return this.scanNumber(i);
2006
+ let r = i;
2007
+ switch (s) {
2008
+ case G:
2009
+ return this.advance(), X(this.peek) ? this.scanNumber(r) : this.peek !== G ? Ce(r, this.index, G) : (this.advance(), this.peek === G ? (this.advance(), F(r, this.index, "...")) : this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0));
2010
+ case Q:
2011
+ case L:
2012
+ case ce:
2013
+ case Z:
2014
+ case V:
2015
+ case J:
2016
+ case Te:
2017
+ return this.scanCharacter(r, s);
2018
+ case Ne:
2019
+ return this.scanOpenBrace(r, s);
2020
+ case oe:
2021
+ return this.scanCloseBrace(r, s);
2022
+ case Us:
2023
+ case Hs:
2024
+ return this.scanString();
2025
+ case Zt:
2026
+ return this.advance(), this.scanTemplateLiteralPart(r);
2027
+ case Tr:
2028
+ return this.scanPrivateIdentifier();
2029
+ case Ws:
2030
+ return this.scanComplexOperator(r, "+", C, "=");
2031
+ case qs:
2032
+ return this.scanComplexOperator(r, "-", C, "=");
2033
+ case Ke:
2034
+ return this.isStartOfRegex() ? this.scanRegex(i) : this.scanComplexOperator(r, "/", C, "=");
2035
+ case kr:
2036
+ return this.scanComplexOperator(r, "%", C, "=");
2037
+ case Pr:
2038
+ return this.scanOperator(r, "^");
2039
+ case ts:
2040
+ return this.scanStar(r);
2041
+ case ss:
2042
+ return this.scanQuestion(r);
2043
+ case _r:
2044
+ case ns:
2045
+ return this.scanComplexOperator(r, String.fromCharCode(s), C, "=");
2046
+ case br:
2047
+ return this.scanComplexOperator(r, "!", C, "=", C, "=");
2048
+ case C:
2049
+ return this.scanEquals(r);
2050
+ case es:
2051
+ return this.scanComplexOperator(r, "&", es, "&", C, "=");
2052
+ case is:
2053
+ return this.scanComplexOperator(r, "|", is, "|", C, "=");
2054
+ case Gs:
2055
+ for (; Fr(this.peek); ) this.advance();
2056
+ return this.scanToken();
2057
+ }
2058
+ return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
2059
+ }
2060
+ scanCharacter(e, n) {
2061
+ return this.advance(), Ce(e, this.index, n);
2062
+ }
2063
+ scanOperator(e, n) {
2064
+ return this.advance(), F(e, this.index, n);
2065
+ }
2066
+ scanOpenBrace(e, n) {
2067
+ return this.braceStack.push("expression"), this.advance(), Ce(e, this.index, n);
2068
+ }
2069
+ scanCloseBrace(e, n) {
2070
+ return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(Ce(e, this.index, oe)), this.scanTemplateLiteralPart(this.index)) : Ce(e, this.index, n);
2071
+ }
2072
+ scanComplexOperator(e, n, s, i, r, a) {
2073
+ this.advance();
2074
+ let u = n;
2075
+ return this.peek == s && (this.advance(), u += i), r != null && this.peek == r && (this.advance(), u += a), F(e, this.index, u);
2076
+ }
2077
+ scanEquals(e) {
2078
+ this.advance();
2079
+ let n = "=";
2080
+ if (this.peek === C) this.advance(), n += "=";
2081
+ else if (this.peek === ns) return this.advance(), n += ">", F(e, this.index, n);
2082
+ return this.peek === C && (this.advance(), n += "="), F(e, this.index, n);
2083
+ }
2084
+ scanIdentifier() {
2085
+ let e = this.index;
2086
+ for (this.advance(); ks(this.peek); ) this.advance();
2087
+ let n = this.input.substring(e, this.index);
2088
+ return to.indexOf(n) > -1 ? io(e, this.index, n) : no(e, this.index, n);
2089
+ }
2090
+ scanPrivateIdentifier() {
2091
+ let e = this.index;
2092
+ if (this.advance(), !Ts(this.peek)) return this.error("Invalid character [#]", -1);
2093
+ for (; ks(this.peek); ) this.advance();
2094
+ let n = this.input.substring(e, this.index);
2095
+ return so(e, this.index, n);
2096
+ }
2097
+ scanNumber(e) {
2098
+ let n = this.index === e, s = false;
2099
+ for (this.advance(); ; ) {
2100
+ if (!X(this.peek)) if (this.peek === at) {
2101
+ if (!X(this.input.charCodeAt(this.index - 1)) || !X(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
2102
+ s = true;
2103
+ } else if (this.peek === G) n = false;
2104
+ else if (co(this.peek)) {
2105
+ if (this.advance(), uo(this.peek) && this.advance(), !X(this.peek)) return this.error("Invalid exponent", -1);
2106
+ n = false;
2107
+ } else break;
2108
+ this.advance();
2109
+ }
2110
+ let i = this.input.substring(e, this.index);
2111
+ s && (i = i.replace(/_/g, ""));
2112
+ let r = n ? ho(i) : parseFloat(i);
2113
+ return ro(e, this.index, r);
2114
+ }
2115
+ scanString() {
2116
+ let e = this.index, n = this.peek;
2117
+ this.advance();
2118
+ let s = "", i = this.index, r = this.input;
2119
+ for (; this.peek != n; ) if (this.peek == St) {
2120
+ let u = this.scanStringBackslash(s, i);
2121
+ if (typeof u != "string") return u;
2122
+ s = u, i = this.index;
2123
+ } else {
2124
+ if (this.peek == Ee) return this.error("Unterminated quote", 0);
2125
+ this.advance();
2126
+ }
2127
+ let a = r.substring(i, this.index);
2128
+ return this.advance(), new Ae(e, this.index, s + a, W.Plain);
2129
+ }
2130
+ scanQuestion(e) {
2131
+ this.advance();
2132
+ let n = "?";
2133
+ return this.peek === ss ? (n += "?", this.advance(), this.peek === C && (n += "=", this.advance())) : this.peek === G && (n += ".", this.advance()), F(e, this.index, n);
2134
+ }
2135
+ scanTemplateLiteralPart(e) {
2136
+ let n = "", s = this.index;
2137
+ for (; this.peek !== Zt; ) if (this.peek === St) {
2138
+ let r = this.scanStringBackslash(n, s);
2139
+ if (typeof r != "string") return r;
2140
+ n = r, s = this.index;
2141
+ } else if (this.peek === un) {
2142
+ let r = this.index;
2143
+ if (this.advance(), this.peek === Ne) return this.braceStack.push("interpolation"), this.tokens.push(new Ae(e, r, n + this.input.substring(s, r), W.TemplateLiteralPart)), this.advance(), F(r, this.index, this.input.substring(r, this.index));
2144
+ } else {
2145
+ if (this.peek === Ee) return this.error("Unterminated template literal", 0);
2146
+ this.advance();
2147
+ }
2148
+ let i = this.input.substring(s, this.index);
2149
+ return this.advance(), new Ae(e, this.index, n + i, W.TemplateLiteralEnd);
2150
+ }
2151
+ error(e, n) {
2152
+ let s = this.index + n;
2153
+ return oo(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
2154
+ }
2155
+ scanStringBackslash(e, n) {
2156
+ e += this.input.substring(n, this.index);
2157
+ let s;
2158
+ if (this.advance(), this.peek === Dr) {
2159
+ let i = this.input.substring(this.index + 1, this.index + 5);
2160
+ if (/^[0-9a-f]+$/i.test(i)) s = parseInt(i, 16);
2161
+ else return this.error(`Invalid unicode escape [\\u${i}]`, 0);
2162
+ for (let r = 0; r < 5; r++) this.advance();
2163
+ } else s = po(this.peek), this.advance();
2164
+ return e += String.fromCharCode(s), e;
2165
+ }
2166
+ scanStar(e) {
2167
+ this.advance();
2168
+ let n = "*";
2169
+ return this.peek === ts ? (n += "*", this.advance(), this.peek === C && (n += "=", this.advance())) : this.peek === C && (n += "=", this.advance()), F(e, this.index, n);
2170
+ }
2171
+ isStartOfRegex() {
2172
+ if (this.tokens.length === 0) return true;
2173
+ let e = this.tokens[this.tokens.length - 1];
2174
+ if (e.isOperator("!")) {
2175
+ let n = this.tokens.length > 1 ? this.tokens[this.tokens.length - 2] : null;
2176
+ return n === null || n.type !== f.Identifier && !n.isCharacter(L) && !n.isCharacter(Z);
2177
+ }
2178
+ return e.type === f.Operator || e.isCharacter(Q) || e.isCharacter(ce) || e.isCharacter(V) || e.isCharacter(J);
2179
+ }
2180
+ scanRegex(e) {
2181
+ this.advance();
2182
+ let n = this.index, s = false, i = false;
2183
+ for (; ; ) {
2184
+ let h = this.peek;
2185
+ if (h === Ee) return this.error("Unterminated regular expression", 0);
2186
+ if (s) s = false;
2187
+ else if (h === St) s = true;
2188
+ else if (h === ce) i = true;
2189
+ else if (h === Z) i = false;
2190
+ else if (h === Ke && !i) break;
2191
+ this.advance();
2192
+ }
2193
+ let r = this.input.substring(n, this.index);
2194
+ this.advance();
2195
+ let a = ao(e, this.index, r), u = this.scanRegexFlags(this.index);
2196
+ return u !== null ? (this.tokens.push(a), u) : a;
2197
+ }
2198
+ scanRegexFlags(e) {
2199
+ if (!en(this.peek)) return null;
2200
+ for (; en(this.peek); ) this.advance();
2201
+ return lo(e, this.index, this.input.substring(e, this.index));
2202
+ }
2203
+ };
2204
+ function Ts(t27) {
2205
+ return js <= t27 && t27 <= zs || pn <= t27 && t27 <= hn || t27 == at || t27 == un;
2206
+ }
2207
+ function ks(t27) {
2208
+ return en(t27) || X(t27) || t27 == at || t27 == un;
2209
+ }
2210
+ function co(t27) {
2211
+ return t27 == Lr || t27 == Ar;
2212
+ }
2213
+ function uo(t27) {
2214
+ return t27 == qs || t27 == Ws;
2215
+ }
2216
+ function po(t27) {
2217
+ switch (t27) {
2218
+ case Mr:
2219
+ return Ve;
2220
+ case $r:
2221
+ return Er;
2222
+ case Rr:
2223
+ return Cr;
2224
+ case Or:
2225
+ return Fs;
2226
+ case Br:
2227
+ return yr;
2228
+ default:
2229
+ return t27;
2230
+ }
2231
+ }
2232
+ function ho(t27) {
2233
+ let e = parseInt(t27);
2234
+ if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t27);
2235
+ return e;
2236
+ }
2237
+ var on = class {
2238
+ constructor(e, n, s) {
2239
+ __publicField(this, "strings");
2240
+ __publicField(this, "expressions");
2241
+ __publicField(this, "offsets");
2242
+ this.strings = e, this.expressions = n, this.offsets = s;
2243
+ }
2244
+ };
2245
+ var an = class {
2246
+ constructor(e, n, s) {
2247
+ __publicField(this, "templateBindings");
2248
+ __publicField(this, "warnings");
2249
+ __publicField(this, "errors");
2250
+ this.templateBindings = e, this.warnings = n, this.errors = s;
2251
+ }
2252
+ };
2253
+ function H(t27) {
2254
+ return t27.start.toString() || "(unknown)";
2255
+ }
2256
+ var ge = class {
2257
+ constructor(e, n = false) {
2258
+ __publicField(this, "_lexer");
2259
+ __publicField(this, "_supportsDirectPipeReferences");
2260
+ this._lexer = e, this._supportsDirectPipeReferences = n;
2261
+ }
2262
+ parseAction(e, n, s) {
2263
+ let i = [];
2264
+ this._checkNoInterpolation(i, e, n);
2265
+ let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r), u = new Y(e, n, s, a, 1, i, 0, this._supportsDirectPipeReferences).parseChain();
2266
+ return new U(u, e, H(n), s, i);
2267
+ }
2268
+ parseBinding(e, n, s) {
2269
+ let i = [], r = this._parseBindingAst(e, n, s, i);
2270
+ return new U(r, e, H(n), s, i);
2271
+ }
2272
+ checkSimpleExpression(e) {
2273
+ let n = new ln();
2274
+ return e.visit(n), n.errors;
2275
+ }
2276
+ parseSimpleBinding(e, n, s) {
2277
+ let i = [], r = this._parseBindingAst(e, n, s, i), a = this.checkSimpleExpression(r);
2278
+ return a.length > 0 && i.push(le(`Host binding expression cannot contain ${a.join(" ")}`, e, "", n)), new U(r, e, H(n), s, i);
2279
+ }
2280
+ _parseBindingAst(e, n, s, i) {
2281
+ this._checkNoInterpolation(i, e, n);
2282
+ let { stripped: r } = this._stripComments(e), a = this._lexer.tokenize(r);
2283
+ return new Y(e, n, s, a, 0, i, 0, this._supportsDirectPipeReferences).parseChain();
2284
+ }
2285
+ parseTemplateBindings(e, n, s, i, r) {
2286
+ let a = this._lexer.tokenize(n), u = [];
2287
+ return new Y(n, s, r, a, 0, u, 0, this._supportsDirectPipeReferences).parseTemplateBindings({ source: e, span: new D(i, i + e.length) });
2288
+ }
2289
+ parseInterpolation(e, n, s, i) {
2290
+ let r = [], { strings: a, expressions: u, offsets: h } = this.splitInterpolation(e, n, r, i);
2291
+ if (u.length === 0) return null;
2292
+ let d = [];
2293
+ for (let g = 0; g < u.length; ++g) {
2294
+ let P = i?.[g * 2 + 1]?.sourceSpan, k = u[g].text, { stripped: _, hasComments: b } = this._stripComments(k), j = this._lexer.tokenize(_);
2295
+ if (b && _.trim().length === 0 && j.length === 0) {
2296
+ r.push(le("Interpolation expression cannot only contain a comment", e, `at column ${u[g].start} in`, n));
2297
+ continue;
2298
+ }
2299
+ let xe = new Y(P ? k : e, P || n, s, j, 0, r, h[g], this._supportsDirectPipeReferences).parseChain();
2300
+ d.push(xe);
2301
+ }
2302
+ return this.createInterpolationAst(a.map((g) => g.text), d, e, H(n), s, r);
2303
+ }
2304
+ parseInterpolationExpression(e, n, s) {
2305
+ let { stripped: i } = this._stripComments(e), r = this._lexer.tokenize(i), a = [], u = new Y(e, n, s, r, 0, a, 0, this._supportsDirectPipeReferences).parseChain(), h = ["", ""];
2306
+ return this.createInterpolationAst(h, [u], e, H(n), s, a);
2307
+ }
2308
+ createInterpolationAst(e, n, s, i, r, a) {
2309
+ let u = new ee(0, s.length), h = new Sr(u, u.toAbsolute(r), e, n);
2310
+ return new U(h, s, i, r, a);
2311
+ }
2312
+ splitInterpolation(e, n, s, i) {
2313
+ let r = [], a = [], u = [], h = i ? fo(i) : null, d = 0, g = false, P = false, k = "{{", _ = "}}";
2314
+ for (; d < e.length; ) if (g) {
2315
+ let b = d, j = b + k.length, xe = this._getInterpolationEndIndex(e, _, j);
2316
+ if (xe === -1) {
2317
+ g = false, P = true;
2318
+ break;
2319
+ }
2320
+ let bn = xe + _.length, Tn = e.substring(j, xe);
2321
+ Tn.trim().length === 0 && s.push(le("Blank expressions are not allowed in interpolated strings", e, `at column ${d} in`, n)), a.push({ text: Tn, start: b, end: bn });
2322
+ let ar = (h?.get(b) ?? b) + k.length;
2323
+ u.push(ar), d = bn, g = false;
2324
+ } else {
2325
+ let b = d;
2326
+ d = e.indexOf(k, d), d === -1 && (d = e.length);
2327
+ let j = e.substring(b, d);
2328
+ r.push({ text: j, start: b, end: d }), g = true;
2329
+ }
2330
+ if (!g) if (P) {
2331
+ let b = r[r.length - 1];
2332
+ b.text += e.substring(d), b.end = e.length;
2333
+ } else r.push({ text: e.substring(d), start: d, end: e.length });
2334
+ return new on(r, a, u);
2335
+ }
2336
+ wrapLiteralPrimitive(e, n, s) {
2337
+ let i = new ee(0, e == null ? 0 : e.length);
2338
+ return new U(new A(i, i.toAbsolute(s), e), e, typeof n == "string" ? n : H(n), s, []);
2339
+ }
2340
+ _stripComments(e) {
2341
+ let n = this._commentStart(e);
2342
+ return n != null ? { stripped: e.substring(0, n), hasComments: true } : { stripped: e, hasComments: false };
2343
+ }
2344
+ _commentStart(e) {
2345
+ let n = null;
2346
+ for (let s = 0; s < e.length - 1; s++) {
2347
+ let i = e.charCodeAt(s), r = e.charCodeAt(s + 1);
2348
+ if (i === Ke && r == Ke && n == null) return s;
2349
+ n === i ? n = null : n == null && rs(i) && (n = i);
2350
+ }
2351
+ return null;
2352
+ }
2353
+ _checkNoInterpolation(e, n, s) {
2354
+ let i = -1, r = -1;
2355
+ for (let a of this._forEachUnquotedChar(n, 0)) if (i === -1) n.startsWith("{{") && (i = a);
2356
+ else if (r = this._getInterpolationEndIndex(n, "}}", a), r > -1) break;
2357
+ i > -1 && r > -1 && e.push(le("Got interpolation ({{}}) where expression was expected", n, `at column ${i} in`, s));
2358
+ }
2359
+ _getInterpolationEndIndex(e, n, s) {
2360
+ for (let i of this._forEachUnquotedChar(e, s)) {
2361
+ if (e.startsWith(n, i)) return i;
2362
+ if (e.startsWith("//", i)) return e.indexOf(n, i);
2363
+ }
2364
+ return -1;
2365
+ }
2366
+ *_forEachUnquotedChar(e, n) {
2367
+ let s = null, i = 0;
2368
+ for (let r = n; r < e.length; r++) {
2369
+ let a = e[r];
2370
+ rs(e.charCodeAt(r)) && (s === null || s === a) && i % 2 === 0 ? s = s === null ? a : null : s === null && (yield r), i = a === "\\" ? i + 1 : 0;
2371
+ }
2372
+ }
2373
+ };
2374
+ var ae;
2375
+ (function(t27) {
2376
+ t27[t27.None = 0] = "None", t27[t27.Writable = 1] = "Writable";
2377
+ })(ae || (ae = {}));
2378
+ var _s = /* @__PURE__ */ new Set(["d", "g", "i", "m", "s", "u", "v", "y"]);
2379
+ var Y = class {
2380
+ constructor(e, n, s, i, r, a, u, h) {
2381
+ __publicField(this, "input");
2382
+ __publicField(this, "parseSourceSpan");
2383
+ __publicField(this, "absoluteOffset");
2384
+ __publicField(this, "tokens");
2385
+ __publicField(this, "parseFlags");
2386
+ __publicField(this, "errors");
2387
+ __publicField(this, "offset");
2388
+ __publicField(this, "supportsDirectPipeReferences");
2389
+ __publicField(this, "rparensExpected", 0);
2390
+ __publicField(this, "rbracketsExpected", 0);
2391
+ __publicField(this, "rbracesExpected", 0);
2392
+ __publicField(this, "context", ae.None);
2393
+ __publicField(this, "sourceSpanCache", /* @__PURE__ */ new Map());
2394
+ __publicField(this, "index", 0);
2395
+ this.input = e, this.parseSourceSpan = n, this.absoluteOffset = s, this.tokens = i, this.parseFlags = r, this.errors = a, this.offset = u, this.supportsDirectPipeReferences = h;
2396
+ }
2397
+ peek(e) {
2398
+ let n = this.index + e;
2399
+ return n < this.tokens.length ? this.tokens[n] : be;
2400
+ }
2401
+ get next() {
2402
+ return this.peek(0);
2403
+ }
2404
+ get atEOF() {
2405
+ return this.index >= this.tokens.length;
2406
+ }
2407
+ get inputIndex() {
2408
+ return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
2409
+ }
2410
+ get currentEndIndex() {
2411
+ return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
2412
+ }
2413
+ get currentAbsoluteOffset() {
2414
+ return this.absoluteOffset + this.inputIndex;
2415
+ }
2416
+ span(e, n) {
2417
+ let s = this.currentEndIndex;
2418
+ if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
2419
+ let i = s;
2420
+ s = e, e = i;
2421
+ }
2422
+ return new ee(e, s);
2423
+ }
2424
+ sourceSpan(e, n) {
2425
+ let s = `${e}@${this.inputIndex}:${n}`;
2426
+ return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, n).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
2427
+ }
2428
+ advance() {
2429
+ this.index++;
2430
+ }
2431
+ withContext(e, n) {
2432
+ this.context |= e;
2433
+ let s = n();
2434
+ return this.context ^= e, s;
2435
+ }
2436
+ consumeOptionalCharacter(e) {
2437
+ return this.next.isCharacter(e) ? (this.advance(), true) : false;
2438
+ }
2439
+ peekKeywordLet() {
2440
+ return this.next.isKeywordLet();
2441
+ }
2442
+ peekKeywordAs() {
2443
+ return this.next.isKeywordAs();
2444
+ }
2445
+ expectCharacter(e) {
2446
+ this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
2447
+ }
2448
+ consumeOptionalOperator(e) {
2449
+ return this.next.isOperator(e) ? (this.advance(), true) : false;
2450
+ }
2451
+ isAssignmentOperator(e) {
2452
+ return e.type === f.Operator && E.isAssignmentOperation(e.strValue);
2453
+ }
2454
+ expectOperator(e) {
2455
+ this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
2456
+ }
2457
+ prettyPrintToken(e) {
2458
+ return e === be ? "end of input" : `token ${e}`;
2459
+ }
2460
+ expectIdentifierOrKeyword() {
2461
+ let e = this.next;
2462
+ 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());
2463
+ }
2464
+ expectIdentifierOrKeywordOrString() {
2465
+ let e = this.next;
2466
+ 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());
2467
+ }
2468
+ parseChain() {
2469
+ let e = [], n = this.inputIndex;
2470
+ for (; this.index < this.tokens.length; ) {
2471
+ let s = this.parsePipe();
2472
+ if (e.push(s), this.consumeOptionalCharacter(Te)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(Te); ) ;
2473
+ else if (this.index < this.tokens.length) {
2474
+ let i = this.index;
2475
+ if (this.error(`Unexpected token '${this.next}'`), this.index === i) break;
2476
+ }
2477
+ }
2478
+ if (e.length === 0) {
2479
+ let s = this.offset, i = this.offset + this.input.length;
2480
+ return new N(this.span(s, i), this.sourceSpan(s, i));
2481
+ }
2482
+ return e.length == 1 ? e[0] : new Ft(this.span(n), this.sourceSpan(n), e);
2483
+ }
2484
+ parsePipe() {
2485
+ let e = this.inputIndex, n = this.parseExpression();
2486
+ if (this.consumeOptionalOperator("|")) {
2487
+ this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
2488
+ do {
2489
+ let s = this.inputIndex, i = this.expectIdentifierOrKeyword(), r, a;
2490
+ i !== null ? r = this.sourceSpan(s) : (i = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, r = new ee(a, a).toAbsolute(this.absoluteOffset));
2491
+ let u = [];
2492
+ for (; this.consumeOptionalCharacter(J); ) u.push(this.parseExpression());
2493
+ let h;
2494
+ if (this.supportsDirectPipeReferences) {
2495
+ let d = i.charCodeAt(0);
2496
+ h = d === at || d >= pn && d <= hn ? _e.ReferencedDirectly : _e.ReferencedByName;
2497
+ } else h = _e.ReferencedByName;
2498
+ n = new Wt(this.span(e), this.sourceSpan(e, a), n, i, u, h, r);
2499
+ } while (this.consumeOptionalOperator("|"));
2500
+ }
2501
+ return n;
2502
+ }
2503
+ parseExpression() {
2504
+ return this.parseConditional();
2505
+ }
2506
+ parseConditional() {
2507
+ let e = this.inputIndex, n = this.parseLogicalOr();
2508
+ if (this.consumeOptionalOperator("?")) {
2509
+ let s = this.parsePipe(), i;
2510
+ if (this.consumeOptionalCharacter(J)) i = this.parsePipe();
2511
+ else {
2512
+ let r = this.inputIndex, a = this.input.substring(e, r);
2513
+ this.error(`Conditional expression ${a} requires all 3 expressions`), i = new N(this.span(e), this.sourceSpan(e));
2514
+ }
2515
+ return new Vt(this.span(e), this.sourceSpan(e), n, s, i);
2516
+ } else return n;
2517
+ }
2518
+ parseLogicalOr() {
2519
+ let e = this.inputIndex, n = this.parseLogicalAnd();
2520
+ for (; this.consumeOptionalOperator("||"); ) {
2521
+ let s = this.parseLogicalAnd();
2522
+ n = new E(this.span(e), this.sourceSpan(e), "||", n, s);
2523
+ }
2524
+ return n;
2525
+ }
2526
+ parseLogicalAnd() {
2527
+ let e = this.inputIndex, n = this.parseNullishCoalescing();
2528
+ for (; this.consumeOptionalOperator("&&"); ) {
2529
+ let s = this.parseNullishCoalescing();
2530
+ n = new E(this.span(e), this.sourceSpan(e), "&&", n, s);
2531
+ }
2532
+ return n;
2533
+ }
2534
+ parseNullishCoalescing() {
2535
+ let e = this.inputIndex, n = this.parseEquality();
2536
+ for (; this.consumeOptionalOperator("??"); ) {
2537
+ let s = this.parseEquality();
2538
+ n = new E(this.span(e), this.sourceSpan(e), "??", n, s);
2539
+ }
2540
+ return n;
2541
+ }
2542
+ parseEquality() {
2543
+ let e = this.inputIndex, n = this.parseRelational();
2544
+ for (; this.next.type == f.Operator; ) {
2545
+ let s = this.next.strValue;
2546
+ switch (s) {
2547
+ case "==":
2548
+ case "===":
2549
+ case "!=":
2550
+ case "!==":
2551
+ this.advance();
2552
+ let i = this.parseRelational();
2553
+ n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2554
+ continue;
2555
+ }
2556
+ break;
2557
+ }
2558
+ return n;
2559
+ }
2560
+ parseRelational() {
2561
+ let e = this.inputIndex, n = this.parseAdditive();
2562
+ for (; this.next.type == f.Operator || this.next.isKeywordIn() || this.next.isKeywordInstanceOf(); ) {
2563
+ let s = this.next.strValue;
2564
+ switch (s) {
2565
+ case "<":
2566
+ case ">":
2567
+ case "<=":
2568
+ case ">=":
2569
+ case "in":
2570
+ case "instanceof":
2571
+ this.advance();
2572
+ let i = this.parseAdditive();
2573
+ n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2574
+ continue;
2575
+ }
2576
+ break;
2577
+ }
2578
+ return n;
2579
+ }
2580
+ parseAdditive() {
2581
+ let e = this.inputIndex, n = this.parseMultiplicative();
2582
+ for (; this.next.type == f.Operator; ) {
2583
+ let s = this.next.strValue;
2584
+ switch (s) {
2585
+ case "+":
2586
+ case "-":
2587
+ this.advance();
2588
+ let i = this.parseMultiplicative();
2589
+ n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2590
+ continue;
2591
+ }
2592
+ break;
2593
+ }
2594
+ return n;
2595
+ }
2596
+ parseMultiplicative() {
2597
+ let e = this.inputIndex, n = this.parseExponentiation();
2598
+ for (; this.next.type == f.Operator; ) {
2599
+ let s = this.next.strValue;
2600
+ switch (s) {
2601
+ case "*":
2602
+ case "%":
2603
+ case "/":
2604
+ this.advance();
2605
+ let i = this.parseExponentiation();
2606
+ n = new E(this.span(e), this.sourceSpan(e), s, n, i);
2607
+ continue;
2608
+ }
2609
+ break;
2610
+ }
2611
+ return n;
2612
+ }
2613
+ parseExponentiation() {
2614
+ let e = this.inputIndex, n = this.parsePrefix();
2615
+ for (; this.next.type == f.Operator && this.next.strValue === "**"; ) {
2616
+ (n instanceof Ie || n instanceof je || n instanceof ze || n instanceof Ge) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
2617
+ let s = this.parseExponentiation();
2618
+ n = new E(this.span(e), this.sourceSpan(e), "**", n, s);
2619
+ }
2620
+ return n;
2621
+ }
2622
+ parsePrefix() {
2623
+ if (this.next.type == f.Operator) {
2624
+ let e = this.inputIndex, n = this.next.strValue, s;
2625
+ switch (n) {
2626
+ case "+":
2627
+ return this.advance(), s = this.parsePrefix(), Ie.createPlus(this.span(e), this.sourceSpan(e), s);
2628
+ case "-":
2629
+ return this.advance(), s = this.parsePrefix(), Ie.createMinus(this.span(e), this.sourceSpan(e), s);
2630
+ case "!":
2631
+ return this.advance(), s = this.parsePrefix(), new je(this.span(e), this.sourceSpan(e), s);
2632
+ }
2633
+ } else if (this.next.isKeywordTypeof()) {
2634
+ let e = this.inputIndex;
2635
+ this.advance();
2636
+ let n = this.parsePrefix();
2637
+ return new ze(this.span(e), this.sourceSpan(e), n);
2638
+ } else if (this.next.isKeywordVoid()) {
2639
+ let e = this.inputIndex;
2640
+ this.advance();
2641
+ let n = this.parsePrefix();
2642
+ return new Ge(this.span(e), this.sourceSpan(e), n);
2643
+ }
2644
+ return this.parseCallChain();
2645
+ }
2646
+ parseCallChain() {
2647
+ let e = this.inputIndex, n = this.parsePrimary();
2648
+ for (; ; ) if (this.consumeOptionalCharacter(G)) n = this.parseAccessMember(n, e, false);
2649
+ else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(Q) ? n = this.parseCall(n, e, true) : n = this.consumeOptionalCharacter(ce) ? this.parseKeyedReadOrWrite(n, e, true) : this.parseAccessMember(n, e, true);
2650
+ else if (this.consumeOptionalCharacter(ce)) n = this.parseKeyedReadOrWrite(n, e, false);
2651
+ else if (this.consumeOptionalCharacter(Q)) n = this.parseCall(n, e, false);
2652
+ else if (this.consumeOptionalOperator("!")) n = new Gt(this.span(e), this.sourceSpan(e), n);
2653
+ else if (this.next.isTemplateLiteralEnd()) n = this.parseNoInterpolationTaggedTemplateLiteral(n, e);
2654
+ else if (this.next.isTemplateLiteralPart()) n = this.parseTaggedTemplateLiteral(n, e);
2655
+ else return n;
2656
+ }
2657
+ parsePrimary() {
2658
+ let e = this.inputIndex;
2659
+ if (this.isArrowFunction()) return this.parseArrowFunction(e);
2660
+ if (this.consumeOptionalCharacter(Q)) {
2661
+ this.rparensExpected++;
2662
+ let n = this.parsePipe();
2663
+ return this.consumeOptionalCharacter(L) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(L)), this.rparensExpected--, new $e(this.span(e), this.sourceSpan(e), n);
2664
+ } else {
2665
+ if (this.next.isKeywordNull()) return this.advance(), new A(this.span(e), this.sourceSpan(e), null);
2666
+ if (this.next.isKeywordUndefined()) return this.advance(), new A(this.span(e), this.sourceSpan(e), void 0);
2667
+ if (this.next.isKeywordTrue()) return this.advance(), new A(this.span(e), this.sourceSpan(e), true);
2668
+ if (this.next.isKeywordFalse()) return this.advance(), new A(this.span(e), this.sourceSpan(e), false);
2669
+ if (this.next.isKeywordThis()) return this.advance(), new Bt(this.span(e), this.sourceSpan(e));
2670
+ if (this.consumeOptionalCharacter(ce)) return this.parseLiteralArray(e);
2671
+ if (this.next.isCharacter(Ne)) return this.parseLiteralMap();
2672
+ if (this.next.isIdentifier()) return this.parseAccessMember(new fe(this.span(e), this.sourceSpan(e)), e, false);
2673
+ if (this.next.isNumber()) {
2674
+ let n = this.next.toNumber();
2675
+ return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
2676
+ } else {
2677
+ if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
2678
+ if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
2679
+ if (this.next.isString() && this.next.kind === W.Plain) {
2680
+ let n = this.next.toString();
2681
+ return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
2682
+ } else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new N(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 N(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new N(this.span(e), this.sourceSpan(e)));
2683
+ }
2684
+ }
2685
+ }
2686
+ parseLiteralArray(e) {
2687
+ this.rbracketsExpected++;
2688
+ let n = [];
2689
+ do
2690
+ if (this.next.isOperator("...")) n.push(this.parseSpreadElement());
2691
+ else if (!this.next.isCharacter(Z)) n.push(this.parsePipe());
2692
+ else break;
2693
+ while (this.consumeOptionalCharacter(V));
2694
+ return this.rbracketsExpected--, this.expectCharacter(Z), new qt(this.span(e), this.sourceSpan(e), n);
2695
+ }
2696
+ parseLiteralMap() {
2697
+ let e = [], n = [], s = this.inputIndex;
2698
+ if (this.expectCharacter(Ne), !this.consumeOptionalCharacter(oe)) {
2699
+ this.rbracesExpected++;
2700
+ do {
2701
+ let i = this.inputIndex;
2702
+ if (this.next.isOperator("...")) {
2703
+ this.advance(), e.push({ kind: "spread", span: this.span(i), sourceSpan: this.sourceSpan(i) }), n.push(this.parsePipe());
2704
+ continue;
2705
+ }
2706
+ let r = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), u = this.span(i), h = this.sourceSpan(i), d = { kind: "property", key: a, quoted: r, span: u, sourceSpan: h };
2707
+ e.push(d), r ? (this.expectCharacter(J), n.push(this.parsePipe())) : this.consumeOptionalCharacter(J) ? n.push(this.parsePipe()) : (d.isShorthandInitialized = true, n.push(new ke(u, h, h, new fe(u, h), a)));
2708
+ } while (this.consumeOptionalCharacter(V) && !this.next.isCharacter(oe));
2709
+ this.rbracesExpected--, this.expectCharacter(oe);
2710
+ }
2711
+ return new zt(this.span(s), this.sourceSpan(s), e, n);
2712
+ }
2713
+ parseAccessMember(e, n, s) {
2714
+ let i = this.inputIndex, r = this.withContext(ae.Writable, () => {
2715
+ let u = this.expectIdentifierOrKeyword() ?? "";
2716
+ return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
2717
+ }), a = this.sourceSpan(i);
2718
+ if (s) return this.isAssignmentOperator(this.next) ? (this.advance(), this.error("The '?.' operator cannot be used in the assignment"), new N(this.span(n), this.sourceSpan(n))) : new Ht(this.span(n), this.sourceSpan(n), a, e, r);
2719
+ if (this.isAssignmentOperator(this.next)) {
2720
+ let u = this.next.strValue;
2721
+ if (!(this.parseFlags & 1)) return this.advance(), this.error("Bindings cannot contain assignments"), new N(this.span(n), this.sourceSpan(n));
2722
+ let h = new ke(this.span(n), this.sourceSpan(n), a, e, r);
2723
+ this.advance();
2724
+ let d = this.parseConditional();
2725
+ return new E(this.span(n), this.sourceSpan(n), u, h, d);
2726
+ } else return new ke(this.span(n), this.sourceSpan(n), a, e, r);
2727
+ }
2728
+ parseCall(e, n, s) {
2729
+ let i = this.inputIndex;
2730
+ this.rparensExpected++;
2731
+ let r = this.parseCallArguments(), a = this.span(i, this.inputIndex).toAbsolute(this.absoluteOffset);
2732
+ this.expectCharacter(L), this.rparensExpected--;
2733
+ let u = this.span(n), h = this.sourceSpan(n);
2734
+ return s ? new Xt(u, h, e, r, a) : new Xe(u, h, e, r, a);
2735
+ }
2736
+ parseCallArguments() {
2737
+ if (this.next.isCharacter(L)) return [];
2738
+ let e = [];
2739
+ do
2740
+ e.push(this.next.isOperator("...") ? this.parseSpreadElement() : this.parsePipe());
2741
+ while (this.consumeOptionalCharacter(V));
2742
+ return e;
2743
+ }
2744
+ parseSpreadElement() {
2745
+ this.next.isOperator("...") || this.error("Spread element must start with '...' operator");
2746
+ let e = this.inputIndex;
2747
+ this.advance();
2748
+ let n = this.parsePipe(), s = this.span(e), i = this.sourceSpan(e);
2749
+ return new jt(s, i, n);
2750
+ }
2751
+ expectTemplateBindingKey() {
2752
+ let e = "", n = false, s = this.currentAbsoluteOffset;
2753
+ do
2754
+ e += this.expectIdentifierOrKeywordOrString(), n = this.consumeOptionalOperator("-"), n && (e += "-");
2755
+ while (n);
2756
+ return { source: e, span: new D(s, s + e.length) };
2757
+ }
2758
+ parseTemplateBindings(e) {
2759
+ let n = [];
2760
+ for (n.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length; ) {
2761
+ let s = this.parseLetBinding();
2762
+ if (s) n.push(s);
2763
+ else {
2764
+ let i = this.expectTemplateBindingKey(), r = this.parseAsBinding(i);
2765
+ r ? n.push(r) : (i.source = e.source + i.source.charAt(0).toUpperCase() + i.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(i)));
2766
+ }
2767
+ this.consumeStatementTerminator();
2768
+ }
2769
+ return new an(n, [], this.errors);
2770
+ }
2771
+ parseKeyedReadOrWrite(e, n, s) {
2772
+ return this.withContext(ae.Writable, () => {
2773
+ this.rbracketsExpected++;
2774
+ let i = this.parsePipe();
2775
+ if (i instanceof N && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(Z), this.isAssignmentOperator(this.next)) {
2776
+ let r = this.next.strValue;
2777
+ if (s) this.advance(), this.error("The '?.' operator cannot be used in the assignment");
2778
+ else {
2779
+ let a = new qe(this.span(n), this.sourceSpan(n), e, i);
2780
+ this.advance();
2781
+ let u = this.parseConditional();
2782
+ return new E(this.span(n), this.sourceSpan(n), r, a, u);
2783
+ }
2784
+ } else return s ? new Ut(this.span(n), this.sourceSpan(n), e, i) : new qe(this.span(n), this.sourceSpan(n), e, i);
2785
+ return new N(this.span(n), this.sourceSpan(n));
2786
+ });
2787
+ }
2788
+ parseDirectiveKeywordBindings(e) {
2789
+ let n = [];
2790
+ this.consumeOptionalCharacter(J);
2791
+ let s = this.getDirectiveBoundTarget(), i = this.currentAbsoluteOffset, r = this.parseAsBinding(e);
2792
+ r || (this.consumeStatementTerminator(), i = this.currentAbsoluteOffset);
2793
+ let a = new D(e.span.start, i);
2794
+ return n.push(new Me(a, e, s)), r && n.push(r), n;
2795
+ }
2796
+ getDirectiveBoundTarget() {
2797
+ if (this.next === be || this.peekKeywordAs() || this.peekKeywordLet()) return null;
2798
+ let e = this.parsePipe(), { start: n, end: s } = e.span, i = this.input.substring(n, s);
2799
+ return new U(e, i, H(this.parseSourceSpan), this.absoluteOffset + n, this.errors);
2800
+ }
2801
+ parseAsBinding(e) {
2802
+ if (!this.peekKeywordAs()) return null;
2803
+ this.advance();
2804
+ let n = this.expectTemplateBindingKey();
2805
+ this.consumeStatementTerminator();
2806
+ let s = new D(e.span.start, this.currentAbsoluteOffset);
2807
+ return new de(s, n, e);
2808
+ }
2809
+ parseLetBinding() {
2810
+ if (!this.peekKeywordLet()) return null;
2811
+ let e = this.currentAbsoluteOffset;
2812
+ this.advance();
2813
+ let n = this.expectTemplateBindingKey(), s = null;
2814
+ this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
2815
+ let i = new D(e, this.currentAbsoluteOffset);
2816
+ return new de(i, n, s);
2817
+ }
2818
+ parseNoInterpolationTaggedTemplateLiteral(e, n) {
2819
+ let s = this.parseNoInterpolationTemplateLiteral();
2820
+ return new Qe(this.span(n), this.sourceSpan(n), e, s);
2821
+ }
2822
+ parseNoInterpolationTemplateLiteral() {
2823
+ let e = this.next.strValue, n = this.inputIndex;
2824
+ this.advance();
2825
+ let s = this.span(n), i = this.sourceSpan(n);
2826
+ return new Je(s, i, [new Ye(s, i, e)], []);
2827
+ }
2828
+ parseTaggedTemplateLiteral(e, n) {
2829
+ let s = this.parseTemplateLiteral();
2830
+ return new Qe(this.span(n), this.sourceSpan(n), e, s);
2831
+ }
2832
+ parseTemplateLiteral() {
2833
+ let e = [], n = [], s = this.inputIndex;
2834
+ for (; this.next !== be; ) {
2835
+ let i = this.next;
2836
+ if (i.isTemplateLiteralPart() || i.isTemplateLiteralEnd()) {
2837
+ let r = this.inputIndex;
2838
+ if (this.advance(), e.push(new Ye(this.span(r), this.sourceSpan(r), i.strValue)), i.isTemplateLiteralEnd()) break;
2839
+ } else if (i.isTemplateLiteralInterpolationStart()) {
2840
+ this.advance(), this.rbracesExpected++;
2841
+ let r = this.parsePipe();
2842
+ r instanceof N ? this.error("Template literal interpolation cannot be empty") : n.push(r), this.rbracesExpected--;
2843
+ } else this.advance();
2844
+ }
2845
+ return new Je(this.span(s), this.sourceSpan(s), e, n);
2846
+ }
2847
+ parseRegularExpressionLiteral() {
2848
+ let e = this.next;
2849
+ if (this.advance(), !e.isRegExpBody()) return new N(this.span(this.inputIndex), this.sourceSpan(this.inputIndex));
2850
+ let n = null;
2851
+ if (this.next.isRegExpFlags()) {
2852
+ n = this.next, this.advance();
2853
+ let r = /* @__PURE__ */ new Set();
2854
+ for (let a = 0; a < n.strValue.length; a++) {
2855
+ let u = n.strValue[a];
2856
+ _s.has(u) ? r.has(u) ? this.error(`Duplicate regular expression flag "${u}"`, n.index + a) : r.add(u) : this.error(`Unsupported regular expression flag "${u}". The supported flags are: ` + Array.from(_s, (h) => `"${h}"`).join(", "), n.index + a);
2857
+ }
2858
+ }
2859
+ let s = e.index, i = n ? n.end : e.end;
2860
+ return new Yt(this.span(s, i), this.sourceSpan(s, i), e.strValue, n ? n.strValue : null);
2861
+ }
2862
+ parseArrowFunction(e) {
2863
+ let n;
2864
+ if (this.next.isIdentifier()) {
2865
+ let i = this.next;
2866
+ this.advance(), n = [this.getArrowFunctionIdentifierArg(i)];
2867
+ } else this.next.isCharacter(Q) ? (this.rparensExpected++, this.advance(), n = this.parseArrowFunctionParameters(), this.rparensExpected--) : (n = [], this.error(`Unexpected token ${this.next}`));
2868
+ this.expectOperator("=>");
2869
+ let s;
2870
+ if (this.next.isCharacter(Ne)) this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."), s = new N(this.span(e), this.sourceSpan(e));
2871
+ else {
2872
+ let i = this.parseFlags;
2873
+ this.parseFlags = 1, s = this.parseExpression(), this.parseFlags = i;
2874
+ }
2875
+ return new Jt(this.span(e), this.sourceSpan(e), n, s);
2876
+ }
2877
+ parseArrowFunctionParameters() {
2878
+ let e = [];
2879
+ if (!this.consumeOptionalCharacter(L)) for (; this.next !== be; ) if (this.next.isIdentifier()) {
2880
+ let n = this.next;
2881
+ if (this.advance(), e.push(this.getArrowFunctionIdentifierArg(n)), this.consumeOptionalCharacter(L)) break;
2882
+ this.expectCharacter(V);
2883
+ } else {
2884
+ this.error(`Unexpected token ${this.next}`);
2885
+ break;
2886
+ }
2887
+ return e;
2888
+ }
2889
+ getArrowFunctionIdentifierArg(e) {
2890
+ return new Qt(e.strValue, this.span(e.index), this.sourceSpan(e.index));
2891
+ }
2892
+ isArrowFunction() {
2893
+ let e = this.index, n = this.tokens;
2894
+ if (e > n.length - 2) return false;
2895
+ if (n[e].isIdentifier() && n[e + 1].isOperator("=>")) return true;
2896
+ if (n[e].isCharacter(Q)) {
2897
+ let s = e + 1;
2898
+ for (s; s < n.length && !(!n[s].isIdentifier() && !n[s].isCharacter(V)); s++) ;
2899
+ return s < n.length - 1 && n[s].isCharacter(L) && n[s + 1].isOperator("=>");
2900
+ }
2901
+ return false;
2902
+ }
2903
+ consumeStatementTerminator() {
2904
+ this.consumeOptionalCharacter(Te) || this.consumeOptionalCharacter(V);
2905
+ }
2906
+ error(e, n = this.index) {
2907
+ this.errors.push(le(e, this.input, this.getErrorLocationText(n), this.parseSourceSpan)), this.skip();
2908
+ }
2909
+ getErrorLocationText(e) {
2910
+ return e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
2911
+ }
2912
+ _reportErrorForPrivateIdentifier(e, n) {
2913
+ let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
2914
+ n !== null && (s += `, ${n}`), this.error(s);
2915
+ }
2916
+ skip() {
2917
+ let e = this.next;
2918
+ for (; this.index < this.tokens.length && !e.isCharacter(Te) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(L)) && (this.rbracesExpected <= 0 || !e.isCharacter(oe)) && (this.rbracketsExpected <= 0 || !e.isCharacter(Z)) && (!(this.context & ae.Writable) || !this.isAssignmentOperator(e)); ) this.next.isError() && this.errors.push(le(this.next.toString(), this.input, this.getErrorLocationText(this.next.index), this.parseSourceSpan)), this.advance(), e = this.next;
2919
+ }
2920
+ };
2921
+ function le(t27, e, n, s) {
2922
+ n.length > 0 && (n = ` ${n} `);
2923
+ let i = H(s), r = `Parser Error: ${t27}${n}[${e}] in ${i}`;
2924
+ return new Re(s, r);
2925
+ }
2926
+ var ln = class extends Kt {
2927
+ constructor() {
2928
+ super(...arguments);
2929
+ __publicField(this, "errors", []);
2930
+ }
2931
+ visitPipe() {
2932
+ this.errors.push("pipes");
2933
+ }
2934
+ };
2935
+ function fo(t27) {
2936
+ let e = /* @__PURE__ */ new Map(), n = 0, s = 0, i = 0;
2937
+ for (; i < t27.length; ) {
2938
+ let r = t27[i];
2939
+ if (r.type === 9) {
2940
+ let [a, u] = r.parts;
2941
+ n += u.length, s += a.length;
2942
+ } else {
2943
+ let a = r.parts.reduce((u, h) => u + h.length, 0);
2944
+ s += a, n += a;
2945
+ }
2946
+ e.set(s, n), i++;
2947
+ }
2948
+ return e;
2949
+ }
2950
+ var mo = "svg";
2951
+ var go = "math";
2952
+ var cn = class {
2953
+ };
2954
+ var vo = "boolean";
2955
+ var wo = "number";
2956
+ var So = "string";
2957
+ var xo = "object";
2958
+ function Fe(t27) {
2959
+ let e = t27.toLowerCase(), [n, s] = ot(e, false);
2960
+ return n === mo || n === go ? `:${n}:${s}` : s;
2961
+ }
2962
+ var yo = ["[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored", "[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy", "media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume", ":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":svg:graphics^:svg:|", ":svg:animation^:svg:|*begin,*end,*repeat", ":svg:geometry^:svg:|", ":svg:componentTransferFunction^:svg:|", ":svg:gradient^:svg:|", ":svg:textContent^:svg:graphics|", ":svg:textPositioning^:svg:textContent|", "a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username", "area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username", "audio^media|", "br^[HTMLElement]|clear", "base^[HTMLElement]|href,target", "body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink", "button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value", "canvas^[HTMLElement]|#height,#width", "content^[HTMLElement]|select", "dl^[HTMLElement]|!compact", "data^[HTMLElement]|value", "datalist^[HTMLElement]|", "details^[HTMLElement]|!open", "dialog^[HTMLElement]|!open,returnValue", "dir^[HTMLElement]|!compact", "div^[HTMLElement]|align", "embed^[HTMLElement]|align,height,name,src,type,width", "fieldset^[HTMLElement]|!disabled,name", "font^[HTMLElement]|color,face,size", "form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target", "frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src", "frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows", "geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch", "hr^[HTMLElement]|align,color,!noShade,size,width", "head^[HTMLElement]|", "h1,h2,h3,h4,h5,h6^[HTMLElement]|align", "html^[HTMLElement]|version", "iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width", "img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width", "input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width", "li^[HTMLElement]|type,#value", "label^[HTMLElement]|htmlFor", "legend^[HTMLElement]|align", "link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type", "map^[HTMLElement]|name", "marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width", "menu^[HTMLElement]|!compact", "meta^[HTMLElement]|content,httpEquiv,media,name,scheme", "meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value", "ins,del^[HTMLElement]|cite,dateTime", "ol^[HTMLElement]|!compact,!reversed,#start,type", "object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width", "optgroup^[HTMLElement]|!disabled,label", "option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value", "output^[HTMLElement]|defaultValue,%htmlFor,name,value", "p^[HTMLElement]|align", "param^[HTMLElement]|name,type,value,valueType", "picture^[HTMLElement]|", "pre^[HTMLElement]|#width", "progress^[HTMLElement]|#max,#value", "q,blockquote,cite^[HTMLElement]|", "script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type", "select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value", "selectedcontent^[HTMLElement]|", "slot^[HTMLElement]|name", "source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width", "span^[HTMLElement]|", "style^[HTMLElement]|!disabled,media,type", "search^[HTMLELement]|", "caption^[HTMLElement]|align", "th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width", "col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width", "table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width", "tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign", "tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign", "template^[HTMLElement]|", "textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap", "time^[HTMLElement]|dateTime", "title^[HTMLElement]|text", "track^[HTMLElement]|!default,kind,label,src,srclang", "ul^[HTMLElement]|!compact,type", "unknown^[HTMLElement]|", "video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width", ":svg:a^:svg:graphics|", ":svg:animate^:svg:animation|", ":svg:animateMotion^:svg:animation|", ":svg:animateTransform^:svg:animation|", ":svg:circle^:svg:geometry|", ":svg:clipPath^:svg:graphics|", ":svg:defs^:svg:graphics|", ":svg:desc^:svg:|", ":svg:discard^:svg:|", ":svg:ellipse^:svg:geometry|", ":svg:feBlend^:svg:|", ":svg:feColorMatrix^:svg:|", ":svg:feComponentTransfer^:svg:|", ":svg:feComposite^:svg:|", ":svg:feConvolveMatrix^:svg:|", ":svg:feDiffuseLighting^:svg:|", ":svg:feDisplacementMap^:svg:|", ":svg:feDistantLight^:svg:|", ":svg:feDropShadow^:svg:|", ":svg:feFlood^:svg:|", ":svg:feFuncA^:svg:componentTransferFunction|", ":svg:feFuncB^:svg:componentTransferFunction|", ":svg:feFuncG^:svg:componentTransferFunction|", ":svg:feFuncR^:svg:componentTransferFunction|", ":svg:feGaussianBlur^:svg:|", ":svg:feImage^:svg:|", ":svg:feMerge^:svg:|", ":svg:feMergeNode^:svg:|", ":svg:feMorphology^:svg:|", ":svg:feOffset^:svg:|", ":svg:fePointLight^:svg:|", ":svg:feSpecularLighting^:svg:|", ":svg:feSpotLight^:svg:|", ":svg:feTile^:svg:|", ":svg:feTurbulence^:svg:|", ":svg:filter^:svg:|", ":svg:foreignObject^:svg:graphics|", ":svg:g^:svg:graphics|", ":svg:image^:svg:graphics|decoding", ":svg:line^:svg:geometry|", ":svg:linearGradient^:svg:gradient|", ":svg:mpath^:svg:|", ":svg:marker^:svg:|", ":svg:mask^:svg:|", ":svg:metadata^:svg:|", ":svg:path^:svg:geometry|", ":svg:pattern^:svg:|", ":svg:polygon^:svg:geometry|", ":svg:polyline^:svg:geometry|", ":svg:radialGradient^:svg:gradient|", ":svg:rect^:svg:geometry|", ":svg:svg^:svg:graphics|#currentScale,#zoomAndPan", ":svg:script^:svg:|type", ":svg:set^:svg:animation|", ":svg:stop^:svg:|", ":svg:style^:svg:|!disabled,media,title,type", ":svg:switch^:svg:graphics|", ":svg:symbol^:svg:|", ":svg:tspan^:svg:textPositioning|", ":svg:text^:svg:textPositioning|", ":svg:textPath^:svg:textContent|", ":svg:title^:svg:|", ":svg:use^:svg:graphics|", ":svg:view^:svg:|#zoomAndPan", "data^[HTMLElement]|value", "keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name", "menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default", "summary^[HTMLElement]|", "time^[HTMLElement]|dateTime", ":svg:cursor^:svg:|", ":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex", ":math:math^:math:|", ":math:maction^:math:|", ":math:menclose^:math:|", ":math:merror^:math:|", ":math:mfenced^:math:|", ":math:mfrac^:math:|", ":math:mi^:math:|", ":math:mmultiscripts^:math:|", ":math:mn^:math:|", ":math:mo^:math:|", ":math:mover^:math:|", ":math:mpadded^:math:|", ":math:mphantom^:math:|", ":math:mroot^:math:|", ":math:mrow^:math:|", ":math:ms^:math:|", ":math:mspace^:math:|", ":math:msqrt^:math:|", ":math:mstyle^:math:|", ":math:msub^:math:|", ":math:msubsup^:math:|", ":math:msup^:math:|", ":math:mtable^:math:|", ":math:mtd^:math:|", ":math:mtext^:math:|", ":math:mtr^:math:|", ":math:munder^:math:|", ":math:munderover^:math:|", ":math:semantics^:math:|"];
2963
+ var Ks = 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" }));
2964
+ var Eo = Array.from(Ks).reduce((t27, [e, n]) => (t27.set(e, n), t27), /* @__PURE__ */ new Map());
2965
+ var it = class extends cn {
2966
+ constructor() {
2967
+ super();
2968
+ __publicField(this, "_schema", /* @__PURE__ */ new Map());
2969
+ __publicField(this, "_eventSchema", /* @__PURE__ */ new Map());
2970
+ yo.forEach((e) => {
2971
+ let n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), [i, r] = e.split("|"), a = r.split(","), [u, h] = i.split("^");
2972
+ u.split(",").forEach((g) => {
2973
+ this._schema.set(g.toLowerCase(), n), this._eventSchema.set(g.toLowerCase(), s);
2974
+ });
2975
+ let d = h && this._schema.get(h.toLowerCase());
2976
+ if (d) {
2977
+ for (let [g, P] of d) n.set(g, P);
2978
+ for (let g of this._eventSchema.get(h.toLowerCase())) s.add(g);
2979
+ }
2980
+ a.forEach((g) => {
2981
+ if (g.length > 0) switch (g[0]) {
2982
+ case "*":
2983
+ s.add(g.substring(1));
2984
+ break;
2985
+ case "!":
2986
+ n.set(g.substring(1), vo);
2987
+ break;
2988
+ case "#":
2989
+ n.set(g.substring(1), wo);
2990
+ break;
2991
+ case "%":
2992
+ n.set(g.substring(1), xo);
2993
+ break;
2994
+ default:
2995
+ n.set(g, So);
2996
+ }
2997
+ });
2998
+ });
2999
+ }
3000
+ hasProperty(e, n, s) {
3001
+ if (s.some((a) => a.name === Bn.name)) return true;
3002
+ let i = Fe(e);
3003
+ if (i.includes("-")) {
3004
+ if (Kn(i) || Zn(i)) return false;
3005
+ if (s.some((a) => a.name === Dn.name)) return true;
3006
+ }
3007
+ return (this._schema.get(i) || this._schema.get("unknown")).has(n);
3008
+ }
3009
+ hasElement(e, n) {
3010
+ if (n.some((i) => i.name === Bn.name)) return true;
3011
+ let s = Fe(e);
3012
+ return s.includes("-") && (Kn(s) || Zn(s) || n.some((i) => i.name === Dn.name)) ? true : this._schema.has(s);
3013
+ }
3014
+ securityContext(e, n, s) {
3015
+ s && (n = this.getMappedPropName(n));
3016
+ let [i, r] = ot(e, false);
3017
+ return dr(r, n, i);
3018
+ }
3019
+ getMappedPropName(e) {
3020
+ return Ks.get(e) ?? e;
3021
+ }
3022
+ getDefaultComponentElementName() {
3023
+ return "ng-component";
3024
+ }
3025
+ validateProperty(e) {
3026
+ return e.toLowerCase().startsWith("on") ? { error: true, msg: `Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
3027
+ If '${e}' is a directive input, make sure the directive is imported by the current module.` } : { error: false };
3028
+ }
3029
+ validateAttribute(e) {
3030
+ return e.toLowerCase().startsWith("on") ? { error: true, msg: `Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...` } : { error: false };
3031
+ }
3032
+ allKnownElementNames() {
3033
+ return Array.from(this._schema.keys());
3034
+ }
3035
+ allKnownAttributesOfElement(e) {
3036
+ let n = Fe(e), s = this._schema.get(n) || this._schema.get("unknown");
3037
+ return Array.from(s.keys()).map((i) => Eo.get(i) ?? i);
3038
+ }
3039
+ allKnownEventsOfElement(e) {
3040
+ let n = Fe(e);
3041
+ return Array.from(this._eventSchema.get(n) ?? []);
3042
+ }
3043
+ normalizeAnimationStyleProperty(e) {
3044
+ return wr(e);
3045
+ }
3046
+ normalizeAnimationStyleValue(e, n, s) {
3047
+ let i = "", r = s.toString().trim(), a = null;
3048
+ if (Co(e) && s !== 0 && s !== "0") if (typeof s == "number") i = "px";
3049
+ else {
3050
+ let u = s.match(/^[+-]?[\d\.]+([a-z]*)$/);
3051
+ u && u[1].length == 0 && (a = `Please provide a CSS unit value for ${n}:${s}`);
3052
+ }
3053
+ return { error: a, value: r + i };
3054
+ }
3055
+ };
3056
+ function Co(t27) {
3057
+ switch (t27) {
3058
+ case "width":
3059
+ case "height":
3060
+ case "minWidth":
3061
+ case "minHeight":
3062
+ case "maxWidth":
3063
+ case "maxHeight":
3064
+ case "left":
3065
+ case "top":
3066
+ case "bottom":
3067
+ case "right":
3068
+ case "fontSize":
3069
+ case "outlineWidth":
3070
+ case "outlineOffset":
3071
+ case "paddingTop":
3072
+ case "paddingLeft":
3073
+ case "paddingBottom":
3074
+ case "paddingRight":
3075
+ case "marginTop":
3076
+ case "marginLeft":
3077
+ case "marginBottom":
3078
+ case "marginRight":
3079
+ case "borderRadius":
3080
+ case "borderWidth":
3081
+ case "borderTopWidth":
3082
+ case "borderLeftWidth":
3083
+ case "borderRightWidth":
3084
+ case "borderBottomWidth":
3085
+ case "textIndent":
3086
+ return true;
3087
+ default:
3088
+ return false;
3089
+ }
3090
+ }
3091
+ var Pa = new ge(new Oe());
3092
+ function $(t27) {
3093
+ return (e) => e.kind === t27;
3094
+ }
3095
+ function Pe(t27, e) {
3096
+ return (n) => n.kind === t27 && e === n.expression instanceof me;
3097
+ }
3098
+ function bo(t27) {
3099
+ return (t27.kind === l.Property || t27.kind === l.TwoWayProperty) && !(t27.expression instanceof me);
3100
+ }
3101
+ var La = [{ test: $(l.StyleMap), transform: rt }, { test: $(l.ClassMap), transform: rt }, { test: $(l.StyleProp) }, { test: $(l.ClassProp) }, { test: Pe(l.Attribute, true) }, { test: Pe(l.Property, true) }, { test: bo }, { test: Pe(l.Attribute, false) }, { test: $(l.Control) }];
3102
+ var $a = [{ test: Pe(l.DomProperty, true) }, { test: Pe(l.DomProperty, false) }, { test: $(l.Attribute) }, { test: $(l.StyleMap), transform: rt }, { test: $(l.ClassMap), transform: rt }, { test: $(l.StyleProp) }, { test: $(l.ClassProp) }];
3103
+ var Ma = /* @__PURE__ */ new Set([l.Listener, l.TwoWayListener, l.AnimationListener, l.StyleMap, l.ClassMap, l.StyleProp, l.ClassProp, l.Property, l.TwoWayProperty, l.DomProperty, l.Attribute, l.Animation, l.Control]);
3104
+ function rt(t27) {
3105
+ return t27.slice(t27.length - 1);
3106
+ }
3107
+ var Ra = /* @__PURE__ */ new Map([[O.Idle, { none: c.deferOnIdle, prefetch: c.deferPrefetchOnIdle, hydrate: c.deferHydrateOnIdle }], [O.Immediate, { none: c.deferOnImmediate, prefetch: c.deferPrefetchOnImmediate, hydrate: c.deferHydrateOnImmediate }], [O.Timer, { none: c.deferOnTimer, prefetch: c.deferPrefetchOnTimer, hydrate: c.deferHydrateOnTimer }], [O.Hover, { none: c.deferOnHover, prefetch: c.deferPrefetchOnHover, hydrate: c.deferHydrateOnHover }], [O.Interaction, { none: c.deferOnInteraction, prefetch: c.deferPrefetchOnInteraction, hydrate: c.deferHydrateOnInteraction }], [O.Viewport, { none: c.deferOnViewport, prefetch: c.deferPrefetchOnViewport, hydrate: c.deferHydrateOnViewport }], [O.Never, { none: c.deferHydrateNever, prefetch: c.deferHydrateNever, hydrate: c.deferHydrateNever }]]);
3108
+ var Oa = [c.pipeBind1, c.pipeBind2, c.pipeBind3, c.pipeBind4];
3109
+ var Da = { constant: [c.interpolate, c.interpolate1, c.interpolate2, c.interpolate3, c.interpolate4, c.interpolate5, c.interpolate6, c.interpolate7, c.interpolate8], variable: c.interpolateV, mapping: (t27) => {
3110
+ if (t27 % 2 === 0) throw new Error("Expected odd number of arguments");
3111
+ return (t27 - 1) / 2;
3112
+ } };
3113
+ var Ba = /* @__PURE__ */ new Map([["window", c.resolveWindow], ["document", c.resolveDocument], ["body", c.resolveBody]]);
3114
+ var Fa = /* @__PURE__ */ new Map([[x.HTML, c.sanitizeHtml], [x.RESOURCE_URL, c.sanitizeResourceUrl], [x.SCRIPT, c.sanitizeScript], [x.STYLE, c.sanitizeStyle], [x.URL, c.sanitizeUrl], [x.ATTRIBUTE_NO_BINDING, c.validateAttribute]]);
3115
+ var Va = /* @__PURE__ */ new Map([[x.HTML, c.trustConstantHtml], [x.RESOURCE_URL, c.trustConstantResourceUrl]]);
3116
+ var Is;
3117
+ (function(t27) {
3118
+ t27[t27.None = 0] = "None", t27[t27.ViewContextRead = 1] = "ViewContextRead", t27[t27.ViewContextWrite = 2] = "ViewContextWrite", t27[t27.SideEffectful = 4] = "SideEffectful";
3119
+ })(Is || (Is = {}));
3120
+ var Ha = /* @__PURE__ */ new Map([[M.Property, R.Property], [M.TwoWay, R.TwoWayProperty], [M.Attribute, R.Attribute], [M.Class, R.ClassName], [M.Style, R.StyleProperty], [M.LegacyAnimation, R.LegacyAnimation], [M.Animation, R.Animation]]);
3121
+ var Ns;
3122
+ (function(t27) {
3123
+ t27[t27.NG_CONTENT = 0] = "NG_CONTENT", t27[t27.STYLE = 1] = "STYLE", t27[t27.STYLESHEET = 2] = "STYLESHEET", t27[t27.SCRIPT = 3] = "SCRIPT", t27[t27.OTHER = 4] = "OTHER";
3124
+ })(Ns || (Ns = {}));
3125
+ var As;
3126
+ (function(t27) {
3127
+ t27.IDLE = "idle", t27.TIMER = "timer", t27.INTERACTION = "interaction", t27.IMMEDIATE = "immediate", t27.HOVER = "hover", t27.VIEWPORT = "viewport", t27.NEVER = "never";
3128
+ })(As || (As = {}));
3129
+ var Zs = "%COMP%";
3130
+ var Ua = `_nghost-${Zs}`;
3131
+ var Wa = `_ngcontent-${Zs}`;
3132
+ var Ps;
3133
+ (function(t27) {
3134
+ t27[t27.Selector = 0] = "Selector", t27[t27.HostDirective = 1] = "HostDirective";
3135
+ })(Ps || (Ps = {}));
3136
+ var Ls;
3137
+ (function(t27) {
3138
+ t27[t27.Extract = 0] = "Extract", t27[t27.Merge = 1] = "Merge";
3139
+ })(Ls || (Ls = {}));
3140
+ var qa = new Dt("22.0.6");
3141
+ var $s;
3142
+ (function(t27) {
3143
+ t27.DIAGNOSTIC = "D", t27.EXPRESSION_TYPE_IDENTIFIER = "T";
3144
+ })($s || ($s = {}));
3145
+ var Ms;
3146
+ (function(t27) {
3147
+ t27.DIRECTIVE = "DIR", t27.HOST_DIRECTIVE = "HOSTDIR", t27.COMPONENT_COMPLETION = "COMPCOMP", t27.EVENT_PARAMETER = "EP", t27.VARIABLE_AS_EXPRESSION = "VAE";
3148
+ })(Ms || (Ms = {}));
3149
+ var Rs;
3150
+ (function(t27) {
3151
+ t27[t27.Error = 0] = "Error", t27[t27.Warning = 1] = "Warning";
3152
+ })(Rs || (Rs = {}));
3153
+ var Os;
3154
+ (function(t27) {
3155
+ t27[t27.UseEmitter = 0] = "UseEmitter", t27[t27.CopyClassNodes = 1] = "CopyClassNodes", t27[t27.FallbackToAny = 2] = "FallbackToAny";
3156
+ })(Os || (Os = {}));
3157
+ var _a10;
3158
+ var Ds = (_a10 = class {
3159
+ static veWillInferAnyFor(e) {
3160
+ let n = _a10.SINGLETON;
3161
+ return e instanceof Xe ? e.visit(n) : e.receiver.visit(n);
3162
+ }
3163
+ visitUnary(e) {
3164
+ return e.expr.visit(this);
3165
+ }
3166
+ visitBinary(e) {
3167
+ return e.left.visit(this) || e.right.visit(this);
3168
+ }
3169
+ visitChain() {
3170
+ return false;
3171
+ }
3172
+ visitConditional(e) {
3173
+ return e.condition.visit(this) || e.trueExp.visit(this) || e.falseExp.visit(this);
3174
+ }
3175
+ visitCall() {
3176
+ return true;
3177
+ }
3178
+ visitSafeCall() {
3179
+ return false;
3180
+ }
3181
+ visitImplicitReceiver() {
3182
+ return false;
3183
+ }
3184
+ visitThisReceiver() {
3185
+ return false;
3186
+ }
3187
+ visitInterpolation(e) {
3188
+ return e.expressions.some((n) => n.visit(this));
3189
+ }
3190
+ visitKeyedRead() {
3191
+ return false;
3192
+ }
3193
+ visitLiteralArray() {
3194
+ return true;
3195
+ }
3196
+ visitLiteralMap() {
3197
+ return true;
3198
+ }
3199
+ visitLiteralPrimitive() {
3200
+ return false;
3201
+ }
3202
+ visitPipe() {
3203
+ return true;
3204
+ }
3205
+ visitPrefixNot(e) {
3206
+ return e.expression.visit(this);
3207
+ }
3208
+ visitTypeofExpression(e) {
3209
+ return e.expression.visit(this);
3210
+ }
3211
+ visitVoidExpression(e) {
3212
+ return e.expression.visit(this);
3213
+ }
3214
+ visitNonNullAssert(e) {
3215
+ return e.expression.visit(this);
3216
+ }
3217
+ visitPropertyRead() {
3218
+ return false;
3219
+ }
3220
+ visitSafePropertyRead() {
3221
+ return false;
3222
+ }
3223
+ visitSafeKeyedRead() {
3224
+ return false;
3225
+ }
3226
+ visitTemplateLiteral() {
3227
+ return false;
3228
+ }
3229
+ visitTemplateLiteralElement() {
3230
+ return false;
3231
+ }
3232
+ visitTaggedTemplateLiteral() {
3233
+ return false;
3234
+ }
3235
+ visitParenthesizedExpression(e) {
3236
+ return e.expression.visit(this);
3237
+ }
3238
+ visitRegularExpressionLiteral() {
3239
+ return false;
3240
+ }
3241
+ visitSpreadElement(e) {
3242
+ return e.expression.visit(this);
3243
+ }
3244
+ visitArrowFunction(e, n) {
3245
+ return false;
3246
+ }
3247
+ }, __publicField(_a10, "SINGLETON", new _a10()), _a10);
3248
+ var To = ["errors", "dirty", "disabled", "disabledReasons", "hidden", "invalid", "name", "pending", "readonly", "touched", "max", "maxLength", "min", "minLength", "pattern", "required"];
3249
+ var ja = /* @__PURE__ */ new Set([...To, "value", "checked"]);
3250
+ var za = new it();
3251
+ var Ga = new it();
3252
+ var ko = "test.html";
3253
+ function ei(t27) {
3254
+ let e = new et(t27, ko), n = new Ze(e, 0, 0, 0), s = n.moveBy(t27.length);
3255
+ return { text: t27, file: e, start: n, end: s, sourceSpan: new tt(n, s) };
3256
+ }
3257
+ var _o;
3258
+ function ti() {
3259
+ return _o ?? (_o = new ge(new Oe()));
3260
+ }
3261
+ var Io = (t27) => ge.prototype._commentStart(t27);
3262
+ function No(t27) {
3263
+ let e = Io(t27);
3264
+ return e === null ? [] : [{ type: "CommentLine", value: t27.slice(e + 2), ...Be({ start: e, end: t27.length }) }];
3265
+ }
3266
+ function ni(t27) {
3267
+ let { result: e } = t27;
3268
+ if (e.errors.length !== 0) {
3269
+ let [n] = e.errors;
3270
+ if (!(n instanceof Re)) throw n;
3271
+ let { message: s } = n;
3272
+ {
3273
+ let a = s.match(/ in .*?@\d+:\d+$/);
3274
+ a && (s = s.slice(0, a.index));
3275
+ }
3276
+ let i = t27.start;
3277
+ {
3278
+ let a = s.match(/at column (?<index>\d+)/);
3279
+ a && (s = s.slice(0, a.index), i = i.moveBy(Number(a.groups.index)));
3280
+ }
3281
+ let r = new SyntaxError(s.trim(), { cause: n });
3282
+ throw Object.assign(r, { location: i, span: n.span }), r.cause ?? (r.cause = n), r;
3283
+ }
3284
+ return t27;
3285
+ }
3286
+ var ct = (t27) => (e) => {
3287
+ let n = ei(e);
3288
+ return ni({ ...n, result: ti()[t27](e, n.sourceSpan, 0), comments: No(e) });
3289
+ };
3290
+ var si = ct("parseAction");
3291
+ var ii = ct("parseBinding");
3292
+ var ri = ct("parseSimpleBinding");
3293
+ var oi = ct("parseInterpolationExpression");
3294
+ var ai = (t27) => {
3295
+ let e = ei(t27);
3296
+ return ni({ ...e, result: ti().parseTemplateBindings("", t27, e.sourceSpan, 0, 0), comments: [] });
3297
+ };
3298
+ var ut = class {
3299
+ constructor(t27) {
3300
+ __publicField(this, "text");
3301
+ this.text = t27;
3302
+ }
3303
+ getCharacterIndex(t27, e) {
3304
+ return An(this.text, t27, e);
3305
+ }
3306
+ transformSpan(t27) {
3307
+ return Be(t27);
3308
+ }
3309
+ createNode(t27, e) {
3310
+ let n = t27.start, s = t27.end, i = t27.range;
3311
+ e && (Array.isArray(e) ? ([n, s] = e, i = e) : ({ start: n, end: s } = e.sourceSpan ?? e, i = [n, s]));
3312
+ i ? [n, s] = i : typeof n == "number" && typeof s == "number" && (i = [n, s]);
3313
+ if (!(typeof n == "number" && typeof s == "number" && i)) throw new Error("Missing location information");
3314
+ let r = { ...t27, start: n, end: s, range: i };
3315
+ switch (r.type) {
3316
+ case "NumericLiteral":
3317
+ case "StringLiteral":
3318
+ case "RegExpLiteral": {
3319
+ let a = this.text.slice(n, s), { value: u } = r;
3320
+ r.extra = { ...r.extra, raw: a, rawValue: u };
3321
+ break;
3322
+ }
3323
+ }
3324
+ return r;
3325
+ }
3326
+ };
3327
+ var li = Object.defineProperty;
3328
+ var ci = (t27, e) => {
3329
+ let n = {};
3330
+ for (var s in t27) li(n, s, { get: t27[s], enumerable: true });
3331
+ return e || li(n, Symbol.toStringTag, { value: "Module" }), n;
3332
+ };
3333
+ var ui = (t27, e) => ({ type: "ArrayExpression", elements: e.transformChildren(t27.expressions) });
3334
+ var Ao = { id: null, generator: false, async: false, expression: true };
3335
+ var pi = (t27, e) => ({ type: "ArrowFunctionExpression", params: t27.parameters.map((n) => e.createNode({ type: "Identifier", name: n.name }, n.sourceSpan)), body: e.transformChild(t27.body), ...Ao });
3336
+ var hi = (t27, e) => e.transformChild(t27.ast);
3337
+ var Po = (t27) => t27 === "&&" || t27 === "||" || t27 === "??";
3338
+ var fi = (t27, e) => {
3339
+ let { operation: n } = t27, [s, i] = e.transformChildren([t27.left, t27.right]);
3340
+ return Po(n) ? { type: "LogicalExpression", operator: n, left: s, right: i } : E.isAssignmentOperation(n) ? { type: "AssignmentExpression", left: s, right: i, operator: n } : { left: s, right: i, type: "BinaryExpression", operator: n };
3341
+ };
3342
+ var Lo = { optional: false };
3343
+ var $o = { optional: true };
3344
+ var di = ({ optional: t27 }) => (e, n) => {
3345
+ let s = n.transformChildren(e.args), i = n.transformChild(e.receiver);
3346
+ return t27 || ye(i) ? { type: "OptionalCallExpression", callee: i, arguments: s, optional: t27 } : { type: "CallExpression", callee: i, arguments: s };
3347
+ };
3348
+ var mi = di(Lo);
3349
+ var gi = di($o);
3350
+ var vi = (t27, e) => ({ type: "NGChainedExpression", expressions: e.transformChildren(t27.expressions) });
3351
+ var wi = (t27, e) => {
3352
+ let [n, s, i] = e.transformChildren([t27.condition, t27.trueExp, t27.falseExp]);
3353
+ return { type: "ConditionalExpression", test: n, consequent: s, alternate: i };
3354
+ };
3355
+ var Si = () => ({ type: "NGEmptyExpression" });
3356
+ var xi = (t27, e) => {
3357
+ let { expressions: n } = t27;
3358
+ if (n.length !== 1) throw new Error("Unexpected 'Interpolation'");
3359
+ return e.transformChild(n[0]);
3360
+ };
3361
+ var yi = (t27) => {
3362
+ let { value: e } = t27;
3363
+ switch (typeof e) {
3364
+ case "boolean":
3365
+ return { type: "BooleanLiteral", value: e };
3366
+ case "number":
3367
+ return { type: "NumericLiteral", value: e };
3368
+ case "object":
3369
+ return { type: "NullLiteral" };
3370
+ case "string":
3371
+ return { type: "StringLiteral", value: e };
3372
+ case "undefined":
3373
+ return { type: "Identifier", name: "undefined" };
3374
+ default:
3375
+ throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`);
3376
+ }
3377
+ };
3378
+ var Ei = (t27) => ({ type: "RegExpLiteral", pattern: t27.body, flags: t27.flags ?? "" });
3379
+ var Mo = { computed: true, optional: false };
3380
+ var Ro = { computed: true, optional: true };
3381
+ var Oo = { computed: false, optional: false };
3382
+ var Do = { computed: false, optional: true };
3383
+ var pt = ({ computed: t27, optional: e }) => (n, s) => {
3384
+ let { receiver: i } = n, r;
3385
+ if (t27) {
3386
+ let { key: u } = n;
3387
+ r = s.transformChild(u);
3388
+ } else {
3389
+ let u = i instanceof fe, { name: h, nameSpan: d } = n;
3390
+ if (r = s.create({ type: "Identifier", name: h }, d, u ? s.ancestors : []), u) return r;
3391
+ }
3392
+ let a = s.transformChild(i);
3393
+ return e || ye(a) ? { type: "OptionalMemberExpression", optional: e, property: r, object: a, computed: t27 } : { type: "MemberExpression", property: r, object: a, computed: t27 };
3394
+ };
3395
+ var Ci = pt(Mo);
3396
+ var bi = pt(Ro);
3397
+ var Ti = pt(Oo);
3398
+ var ki = pt(Do);
3399
+ var _i = (t27, e) => ({ type: "TSNonNullExpression", expression: e.transformChild(t27.expression) });
3400
+ var Ii = (t27, e) => {
3401
+ let { keys: n, values: s } = t27, i = (r, a = t27) => e.create(r, a, [t27, ...e.ancestors]);
3402
+ return { type: "ObjectExpression", properties: n.map((r, a) => {
3403
+ let u = s[a], h = [r.sourceSpan.start, u.sourceSpan.end];
3404
+ if (r.kind === "spread") return i({ type: "SpreadElement", argument: e.transformChild(u) }, h);
3405
+ let d = !!r.isShorthandInitialized;
3406
+ return i({ type: "ObjectProperty", key: i(r.quoted ? { type: "StringLiteral", value: r.key } : { type: "Identifier", name: r.key }, r.sourceSpan), value: e.transformChild(u), shorthand: d, computed: false, method: false }, h);
3407
+ }) };
3408
+ };
3409
+ var Ni = (t27, e) => e.transformChild(t27.expression);
3410
+ var Ai = (t27, e) => ({ type: "NGPipeExpression", left: e.transformChild(t27.exp), right: e.create({ type: "Identifier", name: t27.name }, t27.nameSpan), arguments: e.transformChildren(t27.args) });
3411
+ var Pi = (t27, e) => ({ type: "SpreadElement", argument: e.transformChild(t27.expression) });
3412
+ var Li = (t27, e) => ({ type: "TaggedTemplateExpression", tag: e.transformChild(t27.tag), quasi: e.transformChild(t27.template) });
3413
+ var $i = (t27, e) => ({ type: "TemplateLiteral", quasis: e.transformChildren(t27.elements), expressions: e.transformChildren(t27.expressions) });
3414
+ var Mi = (t27, e) => {
3415
+ let [n] = e.ancestors, { elements: s } = n, i = s.indexOf(t27), r = i === 0, a = i === s.length - 1, u = t27.sourceSpan.end - (a ? 1 : 0), h = t27.sourceSpan.start + (r ? 1 : 0), d = e.text.slice(h, u);
3416
+ return { type: "TemplateElement", value: { cooked: t27.text, raw: d }, tail: a, range: [h, u] };
3417
+ };
3418
+ var Ri = () => ({ type: "ThisExpression" });
3419
+ var dn = (t27) => (e, n) => ({ type: "UnaryExpression", prefix: true, operator: t27, argument: n.transformChild(e.expression) });
3420
+ var Oi = dn("!");
3421
+ var Di = dn("typeof");
3422
+ var Bi = dn("void");
3423
+ var Fi = (t27, e) => ({ type: "UnaryExpression", prefix: true, argument: e.transformChild(t27.expr), operator: t27.operator });
3424
+ var Bo = (t27) => {
3425
+ throw new Error(`Unexpected node type '${t27.constructor.name}'`);
3426
+ };
3427
+ var Vi = Bo;
3428
+ var Hi = ci({ visitASTWithSource: () => hi, visitArrowFunction: () => pi, visitBinary: () => fi, visitCall: () => mi, visitChain: () => vi, visitConditional: () => wi, visitEmptyExpr: () => Si, visitImplicitReceiver: () => Vi, visitInterpolation: () => xi, visitKeyedRead: () => Ci, visitLiteralArray: () => ui, visitLiteralMap: () => Ii, visitLiteralPrimitive: () => yi, visitNonNullAssert: () => _i, visitParenthesizedExpression: () => Ni, visitPipe: () => Ai, visitPrefixNot: () => Oi, visitPropertyRead: () => Ti, visitRegularExpressionLiteral: () => Ei, visitSafeCall: () => gi, visitSafeKeyedRead: () => bi, visitSafePropertyRead: () => ki, visitSpreadElement: () => Pi, visitTaggedTemplateLiteral: () => Li, visitTemplateLiteral: () => $i, visitTemplateLiteralElement: () => Mi, visitThisReceiver: () => Ri, visitTypeofExpression: () => Di, visitUnary: () => Fi, visitVoidExpression: () => Bi });
3429
+ var Ui = Hi;
3430
+ var ht = class mn extends ut {
3431
+ constructor({ node: e, text: n, ancestors: s = [] }) {
3432
+ super(n);
3433
+ __publicField(this, "node");
3434
+ __publicField(this, "ancestors");
3435
+ this.node = e, this.ancestors = s;
3436
+ }
3437
+ create(e, n, s = this.ancestors) {
3438
+ return s[0] instanceof $e && (e.extra = { ...e.extra, parenthesized: true }), super.createNode(e, e.range ?? n ?? this.node);
3439
+ }
3440
+ transformChild(e) {
3441
+ return new mn({ node: e, ancestors: [this.node, ...this.ancestors], text: this.text }).transform();
3442
+ }
3443
+ transformChildren(e) {
3444
+ return e.map((n) => this.transformChild(n));
3445
+ }
3446
+ transform() {
3447
+ let { node: e } = this, n = e.visit(Ui, this);
3448
+ return this.create(n, this.node);
3449
+ }
3450
+ static transform(e, n) {
3451
+ return new mn({ node: e, text: n, ancestors: [] }).transform();
3452
+ }
3453
+ };
3454
+ var Wi = class extends ht {
3455
+ constructor(t27) {
3456
+ super({ node: t27, text: t27.source });
3457
+ }
3458
+ };
3459
+ var qi = (t27, e) => ht.transform(t27, e);
3460
+ var ji = (t27) => new Wi(t27).transform();
3461
+ var zi = (t27, e) => (n, s, ...i) => n | 1 && s == null ? void 0 : (e.call(s) ?? s[t27]).apply(s, i);
3462
+ function Fo(t27) {
3463
+ return this[t27 < 0 ? this.length + t27 : t27];
3464
+ }
3465
+ var Vo = zi("at", function() {
3466
+ if (Array.isArray(this) || typeof this == "string") return Fo;
3467
+ });
3468
+ var ft = Vo;
3469
+ function Gi(t27) {
3470
+ return t27 instanceof Me;
3471
+ }
3472
+ function Xi(t27) {
3473
+ return t27 instanceof de;
3474
+ }
3475
+ var we;
3476
+ var se;
3477
+ var m;
3478
+ var Qi;
3479
+ var T;
3480
+ var gn;
3481
+ var vn;
3482
+ var wn;
3483
+ var Ji;
3484
+ var Yi;
3485
+ var Ki;
3486
+ var Zi;
3487
+ var Se;
3488
+ var Ho = (Se = class extends ut {
3489
+ constructor(n, s) {
3490
+ super(s);
3491
+ De(this, m);
3492
+ De(this, we);
3493
+ De(this, se);
3494
+ wt(this, we, n), wt(this, se, s);
3495
+ for (let i of n) w(this, m, Ji).call(this, i);
3496
+ }
3497
+ get expressions() {
3498
+ return w(this, m, Ki).call(this);
3499
+ }
3500
+ }, we = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), Qi = function() {
3501
+ return z(this, we)[0].key;
3502
+ }, T = function(n, s) {
3503
+ return In(Se.prototype, this, "createNode").call(this, n, s);
3504
+ }, gn = function(n) {
3505
+ return qi(n, this.text);
3506
+ }, vn = function(n) {
3507
+ return Pn(n.slice(z(this, m, Qi).source.length));
3508
+ }, wn = function(n) {
3509
+ let s = z(this, se);
3510
+ if (s[n.start] !== '"' && s[n.start] !== "'") return;
3511
+ let i = s[n.start], r = false;
3512
+ for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
3513
+ case i:
3514
+ if (!r) {
3515
+ n.end = a + 1;
3516
+ return;
3517
+ }
3518
+ default:
3519
+ r = false;
3520
+ break;
3521
+ case "\\":
3522
+ r = !r;
3523
+ break;
3524
+ }
3525
+ }, Ji = function(n) {
3526
+ w(this, m, wn).call(this, n.key.span), Xi(n) && n.value && w(this, m, wn).call(this, n.value.span);
3527
+ }, Yi = function(n) {
3528
+ if (!n.value || n.value.source) return n.value;
3529
+ let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
3530
+ return { source: "$implicit", span: { start: s, end: s } };
3531
+ }, Ki = function() {
3532
+ let n = z(this, we), [s] = n, i = z(this, se).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, r = [], a = null;
3533
+ for (let [u, h] of i.entries()) {
3534
+ if (a && Gi(a) && Xi(h) && h.value && h.value.source === a.key.source) {
3535
+ let d = w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: h.key.source }, h.key.span), g = (_, b) => ({ ..._, ...this.transformSpan({ start: _.start, end: b }) }), P = (_) => ({ ...g(_, d.end), alias: d }), k = r.pop();
3536
+ if (k.type === "NGMicrosyntaxExpression") r.push(P(k));
3537
+ else if (k.type === "NGMicrosyntaxKeyedExpression") {
3538
+ let _ = P(k.expression);
3539
+ r.push(g({ ...k, expression: _ }, _.end));
3540
+ } else throw new Error(`Unexpected type ${k.type}`);
3541
+ } else r.push(w(this, m, Zi).call(this, h, u));
3542
+ a = h;
3543
+ }
3544
+ return w(this, m, T).call(this, { type: "NGMicrosyntax", body: r }, r.length === 0 ? n[0].sourceSpan : { start: r[0].start, end: ft(0, r, -1).end });
3545
+ }, Zi = function(n, s) {
3546
+ if (Gi(n)) {
3547
+ let { key: i, value: r } = n;
3548
+ return r ? s === 0 ? w(this, m, T).call(this, { type: "NGMicrosyntaxExpression", expression: w(this, m, gn).call(this, r.ast), alias: null }, r) : w(this, m, T).call(this, { type: "NGMicrosyntaxKeyedExpression", key: w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: w(this, m, vn).call(this, i.source) }, i.span), expression: w(this, m, T).call(this, { type: "NGMicrosyntaxExpression", expression: w(this, m, gn).call(this, r.ast), alias: null }, r) }, [i.span.start, r.sourceSpan.end]) : w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: w(this, m, vn).call(this, i.source) }, i.span);
3549
+ } else {
3550
+ let { key: i, sourceSpan: r } = n;
3551
+ if (/^let\s$/.test(z(this, se).slice(r.start, r.start + 4))) {
3552
+ let { value: a } = n;
3553
+ return w(this, m, T).call(this, { type: "NGMicrosyntaxLet", key: w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span), value: a ? w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span) : null }, [r.start, a ? a.span.end : i.span.end]);
3554
+ } else {
3555
+ let a = w(this, m, Yi).call(this, n);
3556
+ return w(this, m, T).call(this, { type: "NGMicrosyntaxAs", key: w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: a.source }, a.span), alias: w(this, m, T).call(this, { type: "NGMicrosyntaxKey", name: i.source }, i.span) }, [a.span.start, i.span.end]);
3557
+ }
3558
+ }
3559
+ }, Se);
3560
+ function er(t27, e) {
3561
+ return new Ho(t27, e).expressions;
3562
+ }
3563
+ var dt = (t27) => (e) => {
3564
+ let { result: n, comments: s } = t27(e);
3565
+ return Object.assign(ji(n), { comments: s });
3566
+ };
3567
+ var mt = dt(si);
3568
+ var Sn = dt(ii);
3569
+ var Uo = dt(ri);
3570
+ var xn = dt(oi);
3571
+ var yn = (t27) => er(ai(t27).result.templateBindings, t27);
3572
+ function Wo(t27, e) {
3573
+ let n = new SyntaxError(t27 + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
3574
+ return Object.assign(n, e);
3575
+ }
3576
+ var tr = Wo;
3577
+ function nr(t27) {
3578
+ let e = new Set(t27);
3579
+ return (n) => e.has(n?.type);
3580
+ }
3581
+ function En(t27) {
3582
+ return t27.range?.[1] ?? t27.end;
3583
+ }
3584
+ function ie(t27) {
3585
+ let e = t27.range?.[0] ?? t27.start, n = (t27.declaration?.decorators ?? t27.decorators)?.[0];
3586
+ return n ? Math.min(ie(n), e) : e;
3587
+ }
3588
+ var qo = 5;
3589
+ var jo = 8;
3590
+ var zo = 8;
3591
+ var sr = (t27) => (e) => e.label ? re(e.label) : ie(e) + t27;
3592
+ var Go = (t27) => t27.__contentEnd ?? En(t27);
3593
+ var ir = ["ExpressionStatement", "Directive", "ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "ReturnStatement", "ThrowStatement", "DoWhileStatement"];
3594
+ var Xo = new Map([["BreakStatement", sr(qo)], ["ContinueStatement", sr(jo)], ["DebuggerStatement", (t27) => ie(t27) + zo], ["VariableDeclaration", (t27) => re(ft(0, t27.declarations, -1))], ...ir.map((t27) => [t27, Go])]);
3595
+ var Qo = nr(ir);
3596
+ function re(t27) {
3597
+ let { type: e } = t27;
3598
+ return e === "IfStatement" ? re(t27.alternate ?? t27.consequent) : e === "ForInStatement" || e === "ForOfStatement" || e === "ForStatement" || e === "LabeledStatement" || e === "WithStatement" || e === "WhileStatement" ? re(t27.body) : Xo.get(e)?.(t27) ?? En(t27);
3599
+ }
3600
+ function Jo(t27) {
3601
+ let { type: e = "JsExpressionRoot", expression: n, comments: s = n?.comments ?? [], text: i, rootMarker: r } = t27, a = { type: e, comments: s, range: [0, i.length], rootMarker: r };
3602
+ return n && (delete n.comments, a.node = n), a;
3603
+ }
3604
+ var rr = Jo;
3605
+ function Yo(t27) {
3606
+ if (!t27?.location) return t27;
3607
+ let { message: e, location: { line: n, col: s } } = t27;
3608
+ return tr(e, { loc: { start: { line: n + 1, column: Math.max(s, 1) } }, cause: t27 });
3609
+ }
3610
+ function gt(t27) {
3611
+ return { astFormat: "estree", parse(e) {
3612
+ let n;
3613
+ try {
3614
+ n = t27(e);
3615
+ } catch (i) {
3616
+ throw Yo(i);
3617
+ }
3618
+ let { comments: s } = n;
3619
+ return delete n.comments, t27 === mt && n.type !== "NGChainedExpression" && (n = { ...n, type: "NGChainedExpression", expressions: [n] }), rr({ type: "NGRoot", expression: n, comments: s, text: e });
3620
+ }, locStart: ie, locEnd: re };
3621
+ }
3622
+ var Ko = gt(mt);
3623
+ var Zo = gt(Sn);
3624
+ var ea = gt(xn);
3625
+ var ta = gt(yn);
3626
+ export {
3627
+ or as default,
3628
+ Cn as parsers
3629
+ };