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