@prismicio/cli 0.0.1 → 0.0.2-alpha.xru-fix-npx-install-warnings.2

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