oxfmt 0.56.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acorn-LGWopQvF.js → acorn-CZllRq2x.js} +1893 -1803
- package/dist/{angular-BbAuvH72.js → angular-CsoDKqo4.js} +1587 -995
- package/dist/{apis-C2fbFQF2.js → apis-DLO0lBDu.js} +4 -4
- package/dist/babel-DZD6u90w.js +9896 -0
- package/dist/{bindings-Ab6hoO7p.js → bindings-DTiEua0g.js} +26 -26
- package/dist/{chunk-DSjvVL_1-DaTvESxp.js → chunk-DSjvVL_1-DX2STy_I.js} +1 -1
- package/dist/cli-worker.d.ts +5 -5
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +3 -2
- package/dist/{dist-BMp5jzRv.js → dist-YOS4M6hk.js} +17 -17
- package/dist/estree-ChnhgzGg.js +7885 -0
- package/dist/flow-C6LkWPPl.js +9149 -0
- package/dist/{glimmer-Ba_8Z2bG.js → glimmer-YnkKK2a7.js} +204 -187
- package/dist/{graphql-CZ7EPWgo.js → graphql-BNiwkZTo.js} +905 -820
- package/dist/{html-DblM11Xw.js → html-DMHXIbrM.js} +1416 -1305
- package/dist/index.js +3 -3
- package/dist/{jiti-Bb1dT6Cw-DWQc1k7j.js → jiti-Bb1dT6Cw-B61jQmj-.js} +2 -2
- package/dist/markdown-BjyDFyaO.js +14010 -0
- package/dist/{meriyah-DafjRZfO.js → meriyah-zDNCk2o1.js} +1501 -1429
- package/dist/{migrate-prettier-DrYAkU3F.js → migrate-prettier-BmSsy164.js} +49 -42
- package/dist/{plugin-CYEM2898.js → plugin-B4cguZ1l.js} +16 -12
- package/dist/{postcss-CkhtwsAS.js → postcss-CwPwODg8.js} +2153 -2002
- package/dist/{prettier-DKAx5A83.js → prettier-BByt4AhK.js} +5674 -5038
- package/dist/{sorter-BZkvDMjt-c-GMCzH3.js → sorter-BZkvDMjt-B8ihSEiX.js} +7 -7
- package/dist/{sorter-DK1aMCjs.js → sorter-BcGkkjyR.js} +1 -1
- package/dist/{typescript-DaxiA0nr.js → typescript-Bq_S3kyC.js} +10499 -10252
- package/dist/{v3-D-mr2VVh-7G9Y2N0Q.js → v3-D-mr2VVh-p01OHBjH.js} +4 -4
- package/dist/{v4-C-HWEQJm-DKnDZXAs.js → v4-C-HWEQJm-BbuYNtSW.js} +4 -4
- package/dist/yaml-DlyuuZmC.js +6121 -0
- package/package.json +20 -20
- package/dist/babel-DLjwvkt5.js +0 -9884
- package/dist/estree-DbmUPhmV.js +0 -7269
- package/dist/flow-CJbpv7JL.js +0 -52916
- package/dist/markdown-B5hFVJKQ.js +0 -6880
- package/dist/yaml-BC7gw7un.js +0 -5280
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/prettier@3.
|
|
3
|
-
function
|
|
2
|
+
//#region ../../node_modules/.pnpm/prettier@3.9.4/node_modules/prettier/plugins/angular.mjs
|
|
3
|
+
function pr(t) {
|
|
4
4
|
return typeof t == "string" ? (e) => e === t : (e) => t.test(e);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
let s =
|
|
8
|
-
for (let
|
|
9
|
-
let
|
|
10
|
-
if (s(
|
|
6
|
+
function An(t, e, n) {
|
|
7
|
+
let s = pr(e);
|
|
8
|
+
for (let i = n; i < t.length; i++) {
|
|
9
|
+
let r = t[i];
|
|
10
|
+
if (s(r)) return i;
|
|
11
11
|
}
|
|
12
12
|
throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t)}`);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Pn(t) {
|
|
15
15
|
return t.slice(0, 1).toLowerCase() + t.slice(1);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Be(t) {
|
|
18
18
|
let { start: e, end: n } = t;
|
|
19
19
|
return {
|
|
20
20
|
start: e,
|
|
@@ -22,352 +22,520 @@ function Re(t) {
|
|
|
22
22
|
range: [e, n]
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Nn(t) {
|
|
26
26
|
return !!t.extra?.parenthesized;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return t.type === "TSNonNullExpression" && !
|
|
28
|
+
function ye(t) {
|
|
29
|
+
return t.type === "TSNonNullExpression" && !Nn(t) ? ye(t.expression) : (t.type === "OptionalCallExpression" || t.type === "OptionalMemberExpression") && !Nn(t);
|
|
30
|
+
}
|
|
31
|
+
function fr() {
|
|
32
|
+
return K || (K = yt(), B(x.HTML, void 0, [["iframe", ["srcdoc"]], ["*", ["innerHTML", "outerHTML"]]]), B(x.STYLE, void 0, [["*", ["style"]]]), B(x.URL, void 0, [
|
|
33
|
+
["*", ["formAction"]],
|
|
34
|
+
["area", ["href"]],
|
|
35
|
+
["a", ["href", "xlink:href"]],
|
|
36
|
+
["form", ["action"]],
|
|
37
|
+
["img", ["src"]],
|
|
38
|
+
["video", ["src"]]
|
|
39
|
+
]), B(x.URL, hr, [["*", ["href", "xlink:href"]]]), B(x.RESOURCE_URL, void 0, [
|
|
40
|
+
["base", ["href"]],
|
|
41
|
+
["embed", ["src"]],
|
|
42
|
+
["frame", ["src"]],
|
|
43
|
+
["iframe", ["src"]],
|
|
44
|
+
["link", ["href"]],
|
|
45
|
+
["object", ["codebase", "data"]]
|
|
46
|
+
]), B(x.URL, Ln, [["a", ["href", "xlink:href"]]]), B(x.ATTRIBUTE_NO_BINDING, Ln, [
|
|
47
|
+
["animate", [
|
|
48
|
+
"attributeName",
|
|
49
|
+
"values",
|
|
50
|
+
"to",
|
|
51
|
+
"from"
|
|
52
|
+
]],
|
|
53
|
+
["set", ["to", "attributeName"]],
|
|
54
|
+
["animateMotion", ["attributeName"]],
|
|
55
|
+
["animateTransform", ["attributeName"]]
|
|
56
|
+
]), B(x.ATTRIBUTE_NO_BINDING, void 0, [["unknown", [
|
|
57
|
+
"attributeName",
|
|
58
|
+
"values",
|
|
59
|
+
"to",
|
|
60
|
+
"from",
|
|
61
|
+
"sandbox",
|
|
62
|
+
"allow",
|
|
63
|
+
"allowFullscreen",
|
|
64
|
+
"referrerPolicy",
|
|
65
|
+
"csp",
|
|
66
|
+
"fetchPriority",
|
|
67
|
+
"credentialless"
|
|
68
|
+
]], ["iframe", [
|
|
69
|
+
"sandbox",
|
|
70
|
+
"allow",
|
|
71
|
+
"allowFullscreen",
|
|
72
|
+
"referrerPolicy",
|
|
73
|
+
"csp",
|
|
74
|
+
"fetchPriority",
|
|
75
|
+
"credentialless"
|
|
76
|
+
]]]), K);
|
|
30
77
|
}
|
|
31
|
-
function
|
|
78
|
+
function B(t, e, n) {
|
|
79
|
+
let s = e ?? Bs;
|
|
80
|
+
for (let [i, r] of n) {
|
|
81
|
+
let a = i.toLowerCase();
|
|
82
|
+
for (let u of r) {
|
|
83
|
+
let h = u.toLowerCase(), d = K[h] ?? (K[h] = yt()), g = d[s] ?? (d[s] = yt());
|
|
84
|
+
g[a] = t;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function dr(t, e, n) {
|
|
89
|
+
let i = fr()[e.toLowerCase()];
|
|
90
|
+
if (!i) return x.NONE;
|
|
91
|
+
let r = t.toLowerCase(), a;
|
|
92
|
+
if (n) {
|
|
93
|
+
let u = i[n];
|
|
94
|
+
u && (a = u[r] ?? u[$n]);
|
|
95
|
+
}
|
|
96
|
+
if (a === void 0) {
|
|
97
|
+
let u = i[Bs];
|
|
98
|
+
u && (a = u[r] ?? u[$n]);
|
|
99
|
+
}
|
|
100
|
+
return a ?? x.NONE;
|
|
101
|
+
}
|
|
102
|
+
function mr(t, e) {
|
|
32
103
|
return t == null || e == null ? t == e : t.isEquivalent(e);
|
|
33
104
|
}
|
|
34
|
-
function
|
|
105
|
+
function gr(t, e, n) {
|
|
35
106
|
let s = t.length;
|
|
36
107
|
if (s !== e.length) return !1;
|
|
37
|
-
for (let
|
|
108
|
+
for (let i = 0; i < s; i++) if (!n(t[i], e[i])) return !1;
|
|
38
109
|
return !0;
|
|
39
110
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
111
|
+
function ue(t, e) {
|
|
112
|
+
return gr(t, e, (n, s) => n.isEquivalent(s));
|
|
113
|
+
}
|
|
114
|
+
function wr(t) {
|
|
115
|
+
return t.replace(vr, (...e) => e[1].toUpperCase());
|
|
42
116
|
}
|
|
43
|
-
function
|
|
44
|
-
|
|
117
|
+
function ot(t, e = !0) {
|
|
118
|
+
if (t[0] != ":") return [null, t];
|
|
119
|
+
let n = t.indexOf(":", 1);
|
|
120
|
+
if (n === -1) {
|
|
121
|
+
if (e) throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);
|
|
122
|
+
return [null, t];
|
|
123
|
+
}
|
|
124
|
+
return [t.slice(1, n), t.slice(n + 1)];
|
|
45
125
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
126
|
+
function Kn(t) {
|
|
127
|
+
return ot(t)[1] === "ng-container";
|
|
48
128
|
}
|
|
49
|
-
function
|
|
50
|
-
return t
|
|
129
|
+
function Zn(t) {
|
|
130
|
+
return ot(t)[1] === "ng-content";
|
|
51
131
|
}
|
|
52
|
-
function
|
|
53
|
-
return t
|
|
132
|
+
function Fr(t) {
|
|
133
|
+
return t >= Fs && t <= Vs || t == Gs;
|
|
54
134
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
135
|
+
function X(t) {
|
|
136
|
+
return Ir <= t && t <= Nr;
|
|
57
137
|
}
|
|
58
|
-
function
|
|
59
|
-
return
|
|
138
|
+
function en(t) {
|
|
139
|
+
return t >= js && t <= zs || t >= pn && t <= hn;
|
|
60
140
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
141
|
+
function rs(t) {
|
|
142
|
+
return t === Us || t === Hs || t === Zt;
|
|
63
143
|
}
|
|
64
|
-
function
|
|
65
|
-
return new
|
|
144
|
+
function Ce(t, e, n) {
|
|
145
|
+
return new I(t, e, f.Character, n, String.fromCharCode(n));
|
|
66
146
|
}
|
|
67
|
-
function
|
|
68
|
-
return new
|
|
147
|
+
function no(t, e, n) {
|
|
148
|
+
return new I(t, e, f.Identifier, 0, n);
|
|
149
|
+
}
|
|
150
|
+
function so(t, e, n) {
|
|
151
|
+
return new I(t, e, f.PrivateIdentifier, 0, n);
|
|
152
|
+
}
|
|
153
|
+
function io(t, e, n) {
|
|
154
|
+
return new I(t, e, f.Keyword, 0, n);
|
|
155
|
+
}
|
|
156
|
+
function F(t, e, n) {
|
|
157
|
+
return new I(t, e, f.Operator, 0, n);
|
|
69
158
|
}
|
|
70
|
-
function
|
|
71
|
-
return new
|
|
159
|
+
function ro(t, e, n) {
|
|
160
|
+
return new I(t, e, f.Number, n, "");
|
|
72
161
|
}
|
|
73
|
-
function
|
|
74
|
-
return new
|
|
162
|
+
function oo(t, e, n) {
|
|
163
|
+
return new I(t, e, f.Error, 0, n);
|
|
75
164
|
}
|
|
76
|
-
function
|
|
77
|
-
return new
|
|
165
|
+
function ao(t, e, n) {
|
|
166
|
+
return new I(t, e, f.RegExpBody, 0, n);
|
|
78
167
|
}
|
|
79
|
-
function
|
|
80
|
-
return new
|
|
168
|
+
function lo(t, e, n) {
|
|
169
|
+
return new I(t, e, f.RegExpFlags, 0, n);
|
|
81
170
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
171
|
+
function Ts(t) {
|
|
172
|
+
return js <= t && t <= zs || pn <= t && t <= hn || t == at || t == un;
|
|
84
173
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
174
|
+
function ks(t) {
|
|
175
|
+
return en(t) || X(t) || t == at || t == un;
|
|
87
176
|
}
|
|
88
|
-
function
|
|
89
|
-
return t ==
|
|
177
|
+
function co(t) {
|
|
178
|
+
return t == Lr || t == Ar;
|
|
90
179
|
}
|
|
91
|
-
function
|
|
92
|
-
return t ==
|
|
180
|
+
function uo(t) {
|
|
181
|
+
return t == qs || t == Ws;
|
|
93
182
|
}
|
|
94
|
-
function
|
|
183
|
+
function po(t) {
|
|
95
184
|
switch (t) {
|
|
96
|
-
case
|
|
97
|
-
case
|
|
98
|
-
case
|
|
99
|
-
case
|
|
100
|
-
case
|
|
185
|
+
case Mr: return Ve;
|
|
186
|
+
case $r: return Er;
|
|
187
|
+
case Rr: return Cr;
|
|
188
|
+
case Or: return Fs;
|
|
189
|
+
case Br: return yr;
|
|
101
190
|
default: return t;
|
|
102
191
|
}
|
|
103
192
|
}
|
|
104
|
-
function
|
|
193
|
+
function ho(t) {
|
|
105
194
|
let e = parseInt(t);
|
|
106
195
|
if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t);
|
|
107
196
|
return e;
|
|
108
197
|
}
|
|
109
|
-
function
|
|
198
|
+
function H(t) {
|
|
110
199
|
return t.start.toString() || "(unknown)";
|
|
111
200
|
}
|
|
112
|
-
function
|
|
201
|
+
function le(t, e, n, s) {
|
|
113
202
|
n.length > 0 && (n = ` ${n} `);
|
|
114
|
-
let
|
|
115
|
-
return new
|
|
203
|
+
let i = H(s);
|
|
204
|
+
return new Re(s, `Parser Error: ${t}${n}[${e}] in ${i}`);
|
|
116
205
|
}
|
|
117
|
-
function
|
|
118
|
-
let e = /* @__PURE__ */ new Map(), n = 0, s = 0,
|
|
119
|
-
for (;
|
|
120
|
-
let
|
|
121
|
-
if (
|
|
122
|
-
let [a,
|
|
123
|
-
n +=
|
|
206
|
+
function fo(t) {
|
|
207
|
+
let e = /* @__PURE__ */ new Map(), n = 0, s = 0, i = 0;
|
|
208
|
+
for (; i < t.length;) {
|
|
209
|
+
let r = t[i];
|
|
210
|
+
if (r.type === 9) {
|
|
211
|
+
let [a, u] = r.parts;
|
|
212
|
+
n += u.length, s += a.length;
|
|
124
213
|
} else {
|
|
125
|
-
let a =
|
|
214
|
+
let a = r.parts.reduce((u, h) => u + h.length, 0);
|
|
126
215
|
s += a, n += a;
|
|
127
216
|
}
|
|
128
|
-
e.set(s, n),
|
|
217
|
+
e.set(s, n), i++;
|
|
129
218
|
}
|
|
130
219
|
return e;
|
|
131
220
|
}
|
|
132
|
-
function
|
|
133
|
-
let
|
|
221
|
+
function Fe(t) {
|
|
222
|
+
let [n, s] = ot(t.toLowerCase(), !1);
|
|
223
|
+
return n === mo || n === go ? `:${n}:${s}` : s;
|
|
224
|
+
}
|
|
225
|
+
function Co(t) {
|
|
226
|
+
switch (t) {
|
|
227
|
+
case "width":
|
|
228
|
+
case "height":
|
|
229
|
+
case "minWidth":
|
|
230
|
+
case "minHeight":
|
|
231
|
+
case "maxWidth":
|
|
232
|
+
case "maxHeight":
|
|
233
|
+
case "left":
|
|
234
|
+
case "top":
|
|
235
|
+
case "bottom":
|
|
236
|
+
case "right":
|
|
237
|
+
case "fontSize":
|
|
238
|
+
case "outlineWidth":
|
|
239
|
+
case "outlineOffset":
|
|
240
|
+
case "paddingTop":
|
|
241
|
+
case "paddingLeft":
|
|
242
|
+
case "paddingBottom":
|
|
243
|
+
case "paddingRight":
|
|
244
|
+
case "marginTop":
|
|
245
|
+
case "marginLeft":
|
|
246
|
+
case "marginBottom":
|
|
247
|
+
case "marginRight":
|
|
248
|
+
case "borderRadius":
|
|
249
|
+
case "borderWidth":
|
|
250
|
+
case "borderTopWidth":
|
|
251
|
+
case "borderLeftWidth":
|
|
252
|
+
case "borderRightWidth":
|
|
253
|
+
case "borderBottomWidth":
|
|
254
|
+
case "textIndent": return !0;
|
|
255
|
+
default: return !1;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function ei(t) {
|
|
259
|
+
let e = new et(t, ko), n = new Ze(e, 0, 0, 0), s = n.moveBy(t.length);
|
|
134
260
|
return {
|
|
135
261
|
text: t,
|
|
136
262
|
file: e,
|
|
137
263
|
start: n,
|
|
138
264
|
end: s,
|
|
139
|
-
sourceSpan: new
|
|
265
|
+
sourceSpan: new tt(n, s)
|
|
140
266
|
};
|
|
141
267
|
}
|
|
142
|
-
function
|
|
143
|
-
return
|
|
268
|
+
function ti() {
|
|
269
|
+
return _o ?? (_o = new ge(new Oe()));
|
|
144
270
|
}
|
|
145
|
-
function
|
|
146
|
-
let e =
|
|
271
|
+
function No(t) {
|
|
272
|
+
let e = Io(t);
|
|
147
273
|
return e === null ? [] : [{
|
|
148
274
|
type: "CommentLine",
|
|
149
275
|
value: t.slice(e + 2),
|
|
150
|
-
...
|
|
276
|
+
...Be({
|
|
151
277
|
start: e,
|
|
152
278
|
end: t.length
|
|
153
279
|
})
|
|
154
280
|
}];
|
|
155
281
|
}
|
|
156
|
-
function
|
|
282
|
+
function ni(t) {
|
|
157
283
|
let { result: e } = t;
|
|
158
284
|
if (e.errors.length !== 0) {
|
|
159
285
|
let [n] = e.errors;
|
|
160
|
-
if (!(n instanceof
|
|
286
|
+
if (!(n instanceof Re)) throw n;
|
|
161
287
|
let { message: s } = n;
|
|
162
288
|
{
|
|
163
289
|
let a = s.match(/ in .*?@\d+:\d+$/);
|
|
164
290
|
a && (s = s.slice(0, a.index));
|
|
165
291
|
}
|
|
166
|
-
let
|
|
292
|
+
let i = t.start;
|
|
167
293
|
{
|
|
168
294
|
let a = s.match(/at column (?<index>\d+)/);
|
|
169
|
-
a && (s = s.slice(0, a.index),
|
|
295
|
+
a && (s = s.slice(0, a.index), i = i.moveBy(Number(a.groups.index)));
|
|
170
296
|
}
|
|
171
|
-
let
|
|
172
|
-
throw Object.assign(
|
|
173
|
-
location:
|
|
297
|
+
let r = new SyntaxError(s.trim(), { cause: n });
|
|
298
|
+
throw Object.assign(r, {
|
|
299
|
+
location: i,
|
|
174
300
|
span: n.span
|
|
175
|
-
}),
|
|
301
|
+
}), r.cause ?? (r.cause = n), r;
|
|
176
302
|
}
|
|
177
303
|
return t;
|
|
178
304
|
}
|
|
179
|
-
function
|
|
305
|
+
function Fo(t) {
|
|
180
306
|
return this[t < 0 ? this.length + t : t];
|
|
181
307
|
}
|
|
182
|
-
function
|
|
183
|
-
return t instanceof
|
|
308
|
+
function Gi(t) {
|
|
309
|
+
return t instanceof Me;
|
|
184
310
|
}
|
|
185
|
-
function
|
|
186
|
-
return t instanceof
|
|
311
|
+
function Xi(t) {
|
|
312
|
+
return t instanceof de;
|
|
187
313
|
}
|
|
188
|
-
function
|
|
189
|
-
return new
|
|
314
|
+
function er(t, e) {
|
|
315
|
+
return new Ho(t, e).expressions;
|
|
190
316
|
}
|
|
191
|
-
function
|
|
192
|
-
let
|
|
193
|
-
return
|
|
317
|
+
function Wo(t, e) {
|
|
318
|
+
let n = /* @__PURE__ */ new SyntaxError(t + " (" + e.loc.start.line + ":" + e.loc.start.column + ")");
|
|
319
|
+
return Object.assign(n, e);
|
|
194
320
|
}
|
|
195
|
-
function
|
|
321
|
+
function nr(t) {
|
|
322
|
+
let e = new Set(t);
|
|
323
|
+
return (n) => e.has(n?.type);
|
|
324
|
+
}
|
|
325
|
+
function En(t) {
|
|
196
326
|
return t.range?.[1] ?? t.end;
|
|
197
327
|
}
|
|
198
|
-
function
|
|
328
|
+
function ie(t) {
|
|
329
|
+
let e = t.range?.[0] ?? t.start, n = (t.declaration?.decorators ?? t.decorators)?.[0];
|
|
330
|
+
return n ? Math.min(ie(n), e) : e;
|
|
331
|
+
}
|
|
332
|
+
function re(t) {
|
|
333
|
+
let { type: e } = t;
|
|
334
|
+
return e === "IfStatement" ? re(t.alternate ?? t.consequent) : e === "ForInStatement" || e === "ForOfStatement" || e === "ForStatement" || e === "LabeledStatement" || e === "WithStatement" || e === "WhileStatement" ? re(t.body) : Xo.get(e)?.(t) ?? En(t);
|
|
335
|
+
}
|
|
336
|
+
function Jo(t) {
|
|
337
|
+
let { type: e = "JsExpressionRoot", expression: n, comments: s = n?.comments ?? [], text: i, rootMarker: r } = t, a = {
|
|
338
|
+
type: e,
|
|
339
|
+
comments: s,
|
|
340
|
+
range: [0, i.length],
|
|
341
|
+
rootMarker: r
|
|
342
|
+
};
|
|
343
|
+
return n && (delete n.comments, a.node = n), a;
|
|
344
|
+
}
|
|
345
|
+
function Yo(t) {
|
|
346
|
+
if (!t?.location) return t;
|
|
347
|
+
let { message: e, location: { line: n, col: s } } = t;
|
|
348
|
+
return tr(e, {
|
|
349
|
+
loc: { start: {
|
|
350
|
+
line: n + 1,
|
|
351
|
+
column: Math.max(s, 1)
|
|
352
|
+
} },
|
|
353
|
+
cause: t
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
function gt(t) {
|
|
199
357
|
return {
|
|
200
358
|
astFormat: "estree",
|
|
201
359
|
parse(e) {
|
|
202
|
-
let n
|
|
203
|
-
|
|
360
|
+
let n;
|
|
361
|
+
try {
|
|
362
|
+
n = t(e);
|
|
363
|
+
} catch (i) {
|
|
364
|
+
throw Yo(i);
|
|
365
|
+
}
|
|
366
|
+
let { comments: s } = n;
|
|
367
|
+
return delete n.comments, t === mt && n.type !== "NGChainedExpression" && (n = {
|
|
204
368
|
...n,
|
|
205
369
|
type: "NGChainedExpression",
|
|
206
370
|
expressions: [n]
|
|
207
|
-
}), {
|
|
371
|
+
}), rr({
|
|
208
372
|
type: "NGRoot",
|
|
209
|
-
|
|
210
|
-
comments: s
|
|
211
|
-
|
|
373
|
+
expression: n,
|
|
374
|
+
comments: s,
|
|
375
|
+
text: e
|
|
376
|
+
});
|
|
212
377
|
},
|
|
213
|
-
locStart:
|
|
214
|
-
locEnd:
|
|
378
|
+
locStart: ie,
|
|
379
|
+
locEnd: re
|
|
215
380
|
};
|
|
216
381
|
}
|
|
217
|
-
var
|
|
382
|
+
var lr, cr, ur, kn, _n, vt, z, De, wt, w, In, or, Cn, x, K, Ln, hr, Bs, $n, yt, Mn, Rn, On, Dn, Bn, Fn, Vn, Hn, Un, Wn, qn, jn, zn, p, y, Et, Ct, bt, Tt, kt, He, _t, It, S, Nt, At, Pt, Lt, $t, Mt, pe, he, Ue, o, c, vr, Dt, Xn, ee, v, Le, N, fe, Bt, Ft, Vt, ke, Ht, qe, Ut, _e, Wt, A, qt, jt, zt, Sr, E, Ie, je, ze, Ge, Gt, Xe, Xt, Qe, Je, Ye, $e, Qt, Jt, Yt, D, U, de, Me, Kt, Qn, Jn, M, Yn, Ee, Fs, Ve, yr, Er, Cr, Vs, br, Hs, Tr, un, kr, es, Us, Q, L, ts, Ws, V, qs, G, Ke, J, Te, _r, C, ns, ss, Ir, Nr, pn, Ar, hn, ce, St, Z, Pr, at, js, Lr, $r, Mr, Rr, Or, Dr, Br, zs, Ne, is, oe, Gs, Zt, Ze, et, tt, nt, Re, os, as, ls, Vr, Xs, Hr, tn, fn, qr, jr, Qs, zr, Gr, Xr, l, te, cs, us, R, ps, hs, fs, ds, O, ms, gs, q, Es, Cs, Zr, bs, Ys, f, W, to, Oe, I, Ae, be, rn, on, an, ge, ae, _s, Y, ln, mo, go, cn, vo, wo, So, xo, yo, Ks, Eo, it, Is, Ns, As, Zs, Ps, Ls, $s, Ms, Rs, Os, ko, _o, Io, ct, si, ii, oi, ai, ut, li, ci, ui, Ao, pi, hi, Po, fi, Lo, $o, di, mi, gi, vi, wi, Si, xi, yi, Ei, Mo, Ro, Oo, Do, pt, Ci, bi, Ti, ki, _i, Ii, Ni, Ai, Pi, Li, $i, Mi, Ri, dn, Oi, Di, Bi, Fi, Bo, Vi, Ui, ht, Wi, qi, ji, zi, ft, we, se, m, Qi, T, gn, vn, wn, Ji, Yi, Ki, Zi, Se, Ho, dt, mt, Sn, xn, yn, tr, qo, jo, zo, sr, Go, ir, Xo, rr, Ko, Zo, ea, ta;
|
|
218
383
|
var init_angular = __esmMin((() => {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
384
|
+
lr = Object.defineProperty;
|
|
385
|
+
cr = Object.getPrototypeOf;
|
|
386
|
+
ur = Reflect.get;
|
|
387
|
+
kn = (t) => {
|
|
223
388
|
throw TypeError(t);
|
|
224
389
|
};
|
|
225
|
-
|
|
226
|
-
for (var n in e)
|
|
390
|
+
_n = (t, e) => {
|
|
391
|
+
for (var n in e) lr(t, n, {
|
|
227
392
|
get: e[n],
|
|
228
393
|
enumerable: !0
|
|
229
394
|
});
|
|
230
395
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
__ng_action: () =>
|
|
239
|
-
__ng_binding: () =>
|
|
240
|
-
__ng_directive: () =>
|
|
241
|
-
__ng_interpolation: () =>
|
|
396
|
+
vt = (t, e, n) => e.has(t) || kn("Cannot " + n);
|
|
397
|
+
z = (t, e, n) => (vt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), De = (t, e, n) => e.has(t) ? kn("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), wt = (t, e, n, s) => (vt(t, e, "write to private field"), s ? s.call(t, n) : e.set(t, n), n), w = (t, e, n) => (vt(t, e, "access private method"), n);
|
|
398
|
+
In = (t, e, n) => ur(cr(t), n, e);
|
|
399
|
+
or = {};
|
|
400
|
+
_n(or, { parsers: () => Cn });
|
|
401
|
+
Cn = {};
|
|
402
|
+
_n(Cn, {
|
|
403
|
+
__ng_action: () => Ko,
|
|
404
|
+
__ng_binding: () => Zo,
|
|
405
|
+
__ng_directive: () => ta,
|
|
406
|
+
__ng_interpolation: () => ea
|
|
242
407
|
});
|
|
243
408
|
new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
409
|
+
(function(t) {
|
|
410
|
+
t[t.NONE = 0] = "NONE", t[t.HTML = 1] = "HTML", t[t.STYLE = 2] = "STYLE", t[t.SCRIPT = 3] = "SCRIPT", t[t.URL = 4] = "URL", t[t.RESOURCE_URL = 5] = "RESOURCE_URL", t[t.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
|
|
411
|
+
})(x || (x = {}));
|
|
412
|
+
Ln = "svg", hr = "math", Bs = "", $n = "*", yt = () => Object.create(null);
|
|
244
413
|
(function(t) {
|
|
245
414
|
t[t.Emulated = 0] = "Emulated", t[t.None = 2] = "None", t[t.ShadowDom = 3] = "ShadowDom", t[t.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
|
|
246
|
-
})(
|
|
415
|
+
})(Mn || (Mn = {}));
|
|
247
416
|
(function(t) {
|
|
248
417
|
t[t.OnPush = 0] = "OnPush", t[t.Default = 1] = "Default", t[t.Eager = 1] = "Eager";
|
|
249
|
-
})(
|
|
418
|
+
})(Rn || (Rn = {}));
|
|
250
419
|
(function(t) {
|
|
251
420
|
t[t.None = 0] = "None", t[t.SignalBased = 1] = "SignalBased", t[t.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
|
|
252
|
-
})(
|
|
253
|
-
|
|
254
|
-
t[t.NONE = 0] = "NONE", t[t.HTML = 1] = "HTML", t[t.STYLE = 2] = "STYLE", t[t.SCRIPT = 3] = "SCRIPT", t[t.URL = 4] = "URL", t[t.RESOURCE_URL = 5] = "RESOURCE_URL", t[t.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
|
|
255
|
-
})(P || (P = {}));
|
|
421
|
+
})(On || (On = {}));
|
|
422
|
+
Dn = { name: "custom-elements" }, Bn = { name: "no-errors-schema" };
|
|
256
423
|
(function(t) {
|
|
257
424
|
t[t.Error = 0] = "Error", t[t.Warning = 1] = "Warning", t[t.Ignore = 2] = "Ignore";
|
|
258
|
-
})(
|
|
425
|
+
})(Fn || (Fn = {}));
|
|
259
426
|
(function(t) {
|
|
260
|
-
t[t.Directive = 0] = "Directive", t[t.Component = 1] = "Component", t[t.Injectable = 2] = "Injectable", t[t.Pipe = 3] = "Pipe", t[t.NgModule = 4] = "NgModule";
|
|
261
|
-
})(
|
|
427
|
+
t[t.Directive = 0] = "Directive", t[t.Component = 1] = "Component", t[t.Injectable = 2] = "Injectable", t[t.Pipe = 3] = "Pipe", t[t.NgModule = 4] = "NgModule", t[t.Service = 5] = "Service";
|
|
428
|
+
})(Vn || (Vn = {}));
|
|
262
429
|
(function(t) {
|
|
263
430
|
t[t.Directive = 0] = "Directive", t[t.Pipe = 1] = "Pipe", t[t.NgModule = 2] = "NgModule";
|
|
264
|
-
})(
|
|
431
|
+
})(Hn || (Hn = {}));
|
|
265
432
|
(function(t) {
|
|
266
433
|
t[t.Emulated = 0] = "Emulated", t[t.None = 2] = "None", t[t.ShadowDom = 3] = "ShadowDom", t[t.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
|
|
267
|
-
})(
|
|
434
|
+
})(Un || (Un = {}));
|
|
268
435
|
(function(t) {
|
|
269
436
|
t[t.Little = 0] = "Little", t[t.Big = 1] = "Big";
|
|
270
|
-
})(
|
|
437
|
+
})(Wn || (Wn = {}));
|
|
271
438
|
(function(t) {
|
|
272
439
|
t[t.None = 0] = "None", t[t.Const = 1] = "Const";
|
|
273
|
-
})(
|
|
440
|
+
})(qn || (qn = {}));
|
|
274
441
|
(function(t) {
|
|
275
442
|
t[t.Dynamic = 0] = "Dynamic", t[t.Bool = 1] = "Bool", t[t.String = 2] = "String", t[t.Int = 3] = "Int", t[t.Number = 4] = "Number", t[t.Function = 5] = "Function", t[t.Inferred = 6] = "Inferred", t[t.None = 7] = "None";
|
|
276
|
-
})(
|
|
443
|
+
})(jn || (jn = {}));
|
|
277
444
|
(function(t) {
|
|
278
445
|
t[t.Minus = 0] = "Minus", t[t.Plus = 1] = "Plus";
|
|
279
|
-
})(
|
|
446
|
+
})(zn || (zn = {}));
|
|
280
447
|
(function(t) {
|
|
281
448
|
t[t.Equals = 0] = "Equals", t[t.NotEquals = 1] = "NotEquals", t[t.Assign = 2] = "Assign", t[t.Identical = 3] = "Identical", t[t.NotIdentical = 4] = "NotIdentical", t[t.Minus = 5] = "Minus", t[t.Plus = 6] = "Plus", t[t.Divide = 7] = "Divide", t[t.Multiply = 8] = "Multiply", t[t.Modulo = 9] = "Modulo", t[t.And = 10] = "And", t[t.Or = 11] = "Or", t[t.BitwiseOr = 12] = "BitwiseOr", t[t.BitwiseAnd = 13] = "BitwiseAnd", t[t.Lower = 14] = "Lower", t[t.LowerEquals = 15] = "LowerEquals", t[t.Bigger = 16] = "Bigger", t[t.BiggerEquals = 17] = "BiggerEquals", t[t.NullishCoalesce = 18] = "NullishCoalesce", t[t.Exponentiation = 19] = "Exponentiation", t[t.In = 20] = "In", t[t.InstanceOf = 21] = "InstanceOf", t[t.AdditionAssignment = 22] = "AdditionAssignment", t[t.SubtractionAssignment = 23] = "SubtractionAssignment", t[t.MultiplicationAssignment = 24] = "MultiplicationAssignment", t[t.DivisionAssignment = 25] = "DivisionAssignment", t[t.RemainderAssignment = 26] = "RemainderAssignment", t[t.ExponentiationAssignment = 27] = "ExponentiationAssignment", t[t.AndAssignment = 28] = "AndAssignment", t[t.OrAssignment = 29] = "OrAssignment", t[t.NullishCoalesceAssignment = 30] = "NullishCoalesceAssignment";
|
|
282
|
-
})(
|
|
283
|
-
|
|
449
|
+
})(p || (p = {}));
|
|
450
|
+
y = class {
|
|
451
|
+
leadingComments;
|
|
284
452
|
type;
|
|
285
453
|
sourceSpan;
|
|
286
|
-
constructor(e, n) {
|
|
287
|
-
this.type = e || null, this.sourceSpan = n || null;
|
|
454
|
+
constructor(e, n, s) {
|
|
455
|
+
this.leadingComments = s, this.type = e || null, this.sourceSpan = n || null;
|
|
288
456
|
}
|
|
289
457
|
prop(e, n) {
|
|
290
|
-
return new
|
|
458
|
+
return new Nt(this, e, null, n);
|
|
291
459
|
}
|
|
292
460
|
key(e, n, s) {
|
|
293
|
-
return new
|
|
461
|
+
return new At(this, e, n, s);
|
|
294
462
|
}
|
|
295
|
-
callFn(e, n, s) {
|
|
296
|
-
return new
|
|
463
|
+
callFn(e, n, s, i) {
|
|
464
|
+
return new bt(this, e, null, n, s, i);
|
|
297
465
|
}
|
|
298
|
-
instantiate(e, n, s) {
|
|
299
|
-
return new
|
|
466
|
+
instantiate(e, n, s, i) {
|
|
467
|
+
return new Tt(this, e, n, s);
|
|
300
468
|
}
|
|
301
|
-
conditional(e, n = null, s) {
|
|
302
|
-
return new
|
|
469
|
+
conditional(e, n = null, s, i) {
|
|
470
|
+
return new It(this, e, n, null, s);
|
|
303
471
|
}
|
|
304
472
|
equals(e, n) {
|
|
305
|
-
return new
|
|
473
|
+
return new S(p.Equals, this, e, null, n);
|
|
306
474
|
}
|
|
307
475
|
notEquals(e, n) {
|
|
308
|
-
return new
|
|
476
|
+
return new S(p.NotEquals, this, e, null, n);
|
|
309
477
|
}
|
|
310
478
|
identical(e, n) {
|
|
311
|
-
return new
|
|
479
|
+
return new S(p.Identical, this, e, null, n);
|
|
312
480
|
}
|
|
313
481
|
notIdentical(e, n) {
|
|
314
|
-
return new
|
|
482
|
+
return new S(p.NotIdentical, this, e, null, n);
|
|
315
483
|
}
|
|
316
484
|
minus(e, n) {
|
|
317
|
-
return new
|
|
485
|
+
return new S(p.Minus, this, e, null, n);
|
|
318
486
|
}
|
|
319
487
|
plus(e, n) {
|
|
320
|
-
return new
|
|
488
|
+
return new S(p.Plus, this, e, null, n);
|
|
321
489
|
}
|
|
322
490
|
divide(e, n) {
|
|
323
|
-
return new
|
|
491
|
+
return new S(p.Divide, this, e, null, n);
|
|
324
492
|
}
|
|
325
493
|
multiply(e, n) {
|
|
326
|
-
return new
|
|
494
|
+
return new S(p.Multiply, this, e, null, n);
|
|
327
495
|
}
|
|
328
496
|
modulo(e, n) {
|
|
329
|
-
return new
|
|
497
|
+
return new S(p.Modulo, this, e, null, n);
|
|
330
498
|
}
|
|
331
499
|
power(e, n) {
|
|
332
|
-
return new
|
|
500
|
+
return new S(p.Exponentiation, this, e, null, n);
|
|
333
501
|
}
|
|
334
502
|
and(e, n) {
|
|
335
|
-
return new
|
|
503
|
+
return new S(p.And, this, e, null, n);
|
|
336
504
|
}
|
|
337
505
|
bitwiseOr(e, n) {
|
|
338
|
-
return new
|
|
506
|
+
return new S(p.BitwiseOr, this, e, null, n);
|
|
339
507
|
}
|
|
340
508
|
bitwiseAnd(e, n) {
|
|
341
|
-
return new
|
|
509
|
+
return new S(p.BitwiseAnd, this, e, null, n);
|
|
342
510
|
}
|
|
343
511
|
or(e, n) {
|
|
344
|
-
return new
|
|
512
|
+
return new S(p.Or, this, e, null, n);
|
|
345
513
|
}
|
|
346
514
|
lower(e, n) {
|
|
347
|
-
return new
|
|
515
|
+
return new S(p.Lower, this, e, null, n);
|
|
348
516
|
}
|
|
349
517
|
lowerEquals(e, n) {
|
|
350
|
-
return new
|
|
518
|
+
return new S(p.LowerEquals, this, e, null, n);
|
|
351
519
|
}
|
|
352
520
|
bigger(e, n) {
|
|
353
|
-
return new
|
|
521
|
+
return new S(p.Bigger, this, e, null, n);
|
|
354
522
|
}
|
|
355
523
|
biggerEquals(e, n) {
|
|
356
|
-
return new
|
|
524
|
+
return new S(p.BiggerEquals, this, e, null, n);
|
|
357
525
|
}
|
|
358
526
|
isBlank(e) {
|
|
359
527
|
return this.equals(TYPED_NULL_EXPR, e);
|
|
360
528
|
}
|
|
361
529
|
nullishCoalesce(e, n) {
|
|
362
|
-
return new
|
|
530
|
+
return new S(p.NullishCoalesce, this, e, null, n);
|
|
363
531
|
}
|
|
364
|
-
toStmt() {
|
|
365
|
-
return new
|
|
532
|
+
toStmt(e) {
|
|
533
|
+
return new Ue(this, null, e);
|
|
366
534
|
}
|
|
367
|
-
},
|
|
535
|
+
}, Et = class t extends y {
|
|
368
536
|
name;
|
|
369
|
-
constructor(e, n, s) {
|
|
370
|
-
super(n, s), this.name = e;
|
|
537
|
+
constructor(e, n, s, i) {
|
|
538
|
+
super(n, s, i), this.name = e;
|
|
371
539
|
}
|
|
372
540
|
isEquivalent(e) {
|
|
373
541
|
return e instanceof t && this.name === e.name;
|
|
@@ -382,12 +550,12 @@ var init_angular = __esmMin((() => {
|
|
|
382
550
|
return new t(this.name, this.type, this.sourceSpan);
|
|
383
551
|
}
|
|
384
552
|
set(e) {
|
|
385
|
-
return new
|
|
553
|
+
return new S(p.Assign, this, e, null, this.sourceSpan);
|
|
386
554
|
}
|
|
387
|
-
},
|
|
555
|
+
}, Ct = class t extends y {
|
|
388
556
|
expr;
|
|
389
|
-
constructor(e, n, s) {
|
|
390
|
-
super(n, s), this.expr = e;
|
|
557
|
+
constructor(e, n, s, i) {
|
|
558
|
+
super(n, s, i), this.expr = e;
|
|
391
559
|
}
|
|
392
560
|
visitExpression(e, n) {
|
|
393
561
|
return e.visitTypeofExpr(this, n);
|
|
@@ -402,18 +570,19 @@ var init_angular = __esmMin((() => {
|
|
|
402
570
|
return new t(this.expr.clone());
|
|
403
571
|
}
|
|
404
572
|
};
|
|
405
|
-
|
|
573
|
+
bt = class t extends y {
|
|
406
574
|
fn;
|
|
407
575
|
args;
|
|
408
576
|
pure;
|
|
409
|
-
|
|
410
|
-
|
|
577
|
+
isOptional;
|
|
578
|
+
constructor(e, n, s, i, r = !1, a, u = !1) {
|
|
579
|
+
super(s, i, a), this.fn = e, this.args = n, this.pure = r, this.isOptional = u;
|
|
411
580
|
}
|
|
412
581
|
get receiver() {
|
|
413
582
|
return this.fn;
|
|
414
583
|
}
|
|
415
584
|
isEquivalent(e) {
|
|
416
|
-
return e instanceof t && this.fn.isEquivalent(e.fn) &&
|
|
585
|
+
return e instanceof t && this.fn.isEquivalent(e.fn) && ue(this.args, e.args) && this.pure === e.pure;
|
|
417
586
|
}
|
|
418
587
|
isConstant() {
|
|
419
588
|
return !1;
|
|
@@ -422,17 +591,17 @@ var init_angular = __esmMin((() => {
|
|
|
422
591
|
return e.visitInvokeFunctionExpr(this, n);
|
|
423
592
|
}
|
|
424
593
|
clone() {
|
|
425
|
-
return new t(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
|
|
594
|
+
return new t(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure, [], this.isOptional);
|
|
426
595
|
}
|
|
427
596
|
};
|
|
428
|
-
|
|
597
|
+
Tt = class t extends y {
|
|
429
598
|
classExpr;
|
|
430
599
|
args;
|
|
431
|
-
constructor(e, n, s, r) {
|
|
432
|
-
super(s, r), this.classExpr = e, this.args = n;
|
|
600
|
+
constructor(e, n, s, i, r) {
|
|
601
|
+
super(s, i, r), this.classExpr = e, this.args = n;
|
|
433
602
|
}
|
|
434
603
|
isEquivalent(e) {
|
|
435
|
-
return e instanceof t && this.classExpr.isEquivalent(e.classExpr) &&
|
|
604
|
+
return e instanceof t && this.classExpr.isEquivalent(e.classExpr) && ue(this.args, e.args);
|
|
436
605
|
}
|
|
437
606
|
isConstant() {
|
|
438
607
|
return !1;
|
|
@@ -443,11 +612,11 @@ var init_angular = __esmMin((() => {
|
|
|
443
612
|
clone() {
|
|
444
613
|
return new t(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
445
614
|
}
|
|
446
|
-
},
|
|
615
|
+
}, kt = class t extends y {
|
|
447
616
|
body;
|
|
448
617
|
flags;
|
|
449
|
-
constructor(e, n, s) {
|
|
450
|
-
super(null, s), this.body = e, this.flags = n;
|
|
618
|
+
constructor(e, n, s, i) {
|
|
619
|
+
super(null, s, i), this.body = e, this.flags = n;
|
|
451
620
|
}
|
|
452
621
|
isEquivalent(e) {
|
|
453
622
|
return e instanceof t && this.body === e.body && this.flags === e.flags;
|
|
@@ -461,10 +630,10 @@ var init_angular = __esmMin((() => {
|
|
|
461
630
|
clone() {
|
|
462
631
|
return new t(this.body, this.flags, this.sourceSpan);
|
|
463
632
|
}
|
|
464
|
-
},
|
|
633
|
+
}, He = class t extends y {
|
|
465
634
|
value;
|
|
466
|
-
constructor(e, n, s) {
|
|
467
|
-
super(n, s), this.value = e;
|
|
635
|
+
constructor(e, n, s, i) {
|
|
636
|
+
super(n, s, i), this.value = e;
|
|
468
637
|
}
|
|
469
638
|
isEquivalent(e) {
|
|
470
639
|
return e instanceof t && this.value === e.value;
|
|
@@ -479,11 +648,11 @@ var init_angular = __esmMin((() => {
|
|
|
479
648
|
return new t(this.value, this.type, this.sourceSpan);
|
|
480
649
|
}
|
|
481
650
|
};
|
|
482
|
-
|
|
651
|
+
_t = class t extends y {
|
|
483
652
|
value;
|
|
484
653
|
typeParams;
|
|
485
|
-
constructor(e, n, s = null, r) {
|
|
486
|
-
super(n, r), this.value = e, this.typeParams = s;
|
|
654
|
+
constructor(e, n, s = null, i, r) {
|
|
655
|
+
super(n, i, r), this.value = e, this.typeParams = s;
|
|
487
656
|
}
|
|
488
657
|
isEquivalent(e) {
|
|
489
658
|
return e instanceof t && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
|
|
@@ -498,15 +667,15 @@ var init_angular = __esmMin((() => {
|
|
|
498
667
|
return new t(this.value, this.type, this.typeParams, this.sourceSpan);
|
|
499
668
|
}
|
|
500
669
|
};
|
|
501
|
-
|
|
670
|
+
It = class t extends y {
|
|
502
671
|
condition;
|
|
503
672
|
falseCase;
|
|
504
673
|
trueCase;
|
|
505
|
-
constructor(e, n, s = null, r,
|
|
506
|
-
super(
|
|
674
|
+
constructor(e, n, s = null, i, r, a) {
|
|
675
|
+
super(i || n.type, r, a), this.condition = e, this.falseCase = s, this.trueCase = n;
|
|
507
676
|
}
|
|
508
677
|
isEquivalent(e) {
|
|
509
|
-
return e instanceof t && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) &&
|
|
678
|
+
return e instanceof t && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && mr(this.falseCase, e.falseCase);
|
|
510
679
|
}
|
|
511
680
|
isConstant() {
|
|
512
681
|
return !1;
|
|
@@ -518,12 +687,12 @@ var init_angular = __esmMin((() => {
|
|
|
518
687
|
return new t(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);
|
|
519
688
|
}
|
|
520
689
|
};
|
|
521
|
-
|
|
690
|
+
S = class t extends y {
|
|
522
691
|
operator;
|
|
523
692
|
rhs;
|
|
524
693
|
lhs;
|
|
525
|
-
constructor(e, n, s, r,
|
|
526
|
-
super(
|
|
694
|
+
constructor(e, n, s, i, r, a) {
|
|
695
|
+
super(i || n.type, r, a), this.operator = e, this.rhs = s, this.lhs = n;
|
|
527
696
|
}
|
|
528
697
|
isEquivalent(e) {
|
|
529
698
|
return e instanceof t && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
|
|
@@ -539,19 +708,20 @@ var init_angular = __esmMin((() => {
|
|
|
539
708
|
}
|
|
540
709
|
isAssignment() {
|
|
541
710
|
let e = this.operator;
|
|
542
|
-
return e ===
|
|
711
|
+
return e === p.Assign || e === p.AdditionAssignment || e === p.SubtractionAssignment || e === p.MultiplicationAssignment || e === p.DivisionAssignment || e === p.RemainderAssignment || e === p.ExponentiationAssignment || e === p.AndAssignment || e === p.OrAssignment || e === p.NullishCoalesceAssignment;
|
|
543
712
|
}
|
|
544
|
-
},
|
|
713
|
+
}, Nt = class t extends y {
|
|
545
714
|
receiver;
|
|
546
715
|
name;
|
|
547
|
-
|
|
548
|
-
|
|
716
|
+
isOptional;
|
|
717
|
+
constructor(e, n, s, i, r, a = !1) {
|
|
718
|
+
super(s, i, r), this.receiver = e, this.name = n, this.isOptional = a;
|
|
549
719
|
}
|
|
550
720
|
get index() {
|
|
551
721
|
return this.name;
|
|
552
722
|
}
|
|
553
723
|
isEquivalent(e) {
|
|
554
|
-
return e instanceof t && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
724
|
+
return e instanceof t && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.isOptional === e.isOptional;
|
|
555
725
|
}
|
|
556
726
|
isConstant() {
|
|
557
727
|
return !1;
|
|
@@ -560,19 +730,20 @@ var init_angular = __esmMin((() => {
|
|
|
560
730
|
return e.visitReadPropExpr(this, n);
|
|
561
731
|
}
|
|
562
732
|
set(e) {
|
|
563
|
-
return new
|
|
733
|
+
return new S(p.Assign, this.receiver.prop(this.name), e, null, this.sourceSpan);
|
|
564
734
|
}
|
|
565
735
|
clone() {
|
|
566
|
-
return new t(this.receiver.clone(), this.name, this.type, this.sourceSpan);
|
|
736
|
+
return new t(this.receiver.clone(), this.name, this.type, this.sourceSpan, [], this.isOptional);
|
|
567
737
|
}
|
|
568
|
-
},
|
|
738
|
+
}, At = class t extends y {
|
|
569
739
|
receiver;
|
|
570
740
|
index;
|
|
571
|
-
|
|
572
|
-
|
|
741
|
+
isOptional;
|
|
742
|
+
constructor(e, n, s, i, r, a = !1) {
|
|
743
|
+
super(s, i, r), this.receiver = e, this.index = n, this.isOptional = a;
|
|
573
744
|
}
|
|
574
745
|
isEquivalent(e) {
|
|
575
|
-
return e instanceof t && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
|
|
746
|
+
return e instanceof t && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.isOptional === e.isOptional;
|
|
576
747
|
}
|
|
577
748
|
isConstant() {
|
|
578
749
|
return !1;
|
|
@@ -581,21 +752,21 @@ var init_angular = __esmMin((() => {
|
|
|
581
752
|
return e.visitReadKeyExpr(this, n);
|
|
582
753
|
}
|
|
583
754
|
set(e) {
|
|
584
|
-
return new
|
|
755
|
+
return new S(p.Assign, this.receiver.key(this.index), e, null, this.sourceSpan);
|
|
585
756
|
}
|
|
586
757
|
clone() {
|
|
587
|
-
return new t(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
|
|
758
|
+
return new t(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan, [], this.isOptional);
|
|
588
759
|
}
|
|
589
|
-
},
|
|
760
|
+
}, Pt = class t extends y {
|
|
590
761
|
entries;
|
|
591
|
-
constructor(e, n, s) {
|
|
592
|
-
super(n, s), this.entries = e;
|
|
762
|
+
constructor(e, n, s, i) {
|
|
763
|
+
super(n, s, i), this.entries = e;
|
|
593
764
|
}
|
|
594
765
|
isConstant() {
|
|
595
766
|
return this.entries.every((e) => e.isConstant());
|
|
596
767
|
}
|
|
597
768
|
isEquivalent(e) {
|
|
598
|
-
return e instanceof t &&
|
|
769
|
+
return e instanceof t && ue(this.entries, e.entries);
|
|
599
770
|
}
|
|
600
771
|
visitExpression(e, n) {
|
|
601
772
|
return e.visitLiteralArrayExpr(this, n);
|
|
@@ -604,7 +775,7 @@ var init_angular = __esmMin((() => {
|
|
|
604
775
|
return new t(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
605
776
|
}
|
|
606
777
|
};
|
|
607
|
-
|
|
778
|
+
Lt = class t {
|
|
608
779
|
expression;
|
|
609
780
|
constructor(e) {
|
|
610
781
|
this.expression = e;
|
|
@@ -618,14 +789,14 @@ var init_angular = __esmMin((() => {
|
|
|
618
789
|
isConstant() {
|
|
619
790
|
return this.expression.isConstant();
|
|
620
791
|
}
|
|
621
|
-
},
|
|
792
|
+
}, $t = class t extends y {
|
|
622
793
|
entries;
|
|
623
794
|
valueType = null;
|
|
624
|
-
constructor(e, n, s) {
|
|
625
|
-
super(n, s), this.entries = e, n && (this.valueType = n.valueType);
|
|
795
|
+
constructor(e, n, s, i) {
|
|
796
|
+
super(n, s, i), this.entries = e, n && (this.valueType = n.valueType);
|
|
626
797
|
}
|
|
627
798
|
isEquivalent(e) {
|
|
628
|
-
return e instanceof t &&
|
|
799
|
+
return e instanceof t && ue(this.entries, e.entries);
|
|
629
800
|
}
|
|
630
801
|
isConstant() {
|
|
631
802
|
return this.entries.every((e) => e.isConstant());
|
|
@@ -634,13 +805,14 @@ var init_angular = __esmMin((() => {
|
|
|
634
805
|
return e.visitLiteralMapExpr(this, n);
|
|
635
806
|
}
|
|
636
807
|
clone() {
|
|
637
|
-
|
|
808
|
+
let e = this.entries.map((n) => n.clone());
|
|
809
|
+
return new t(e, this.type, this.sourceSpan);
|
|
638
810
|
}
|
|
639
811
|
};
|
|
640
|
-
|
|
812
|
+
Mt = class t extends y {
|
|
641
813
|
expression;
|
|
642
|
-
constructor(e, n) {
|
|
643
|
-
super(null, n), this.expression = e;
|
|
814
|
+
constructor(e, n, s) {
|
|
815
|
+
super(null, n, s), this.expression = e;
|
|
644
816
|
}
|
|
645
817
|
isEquivalent(e) {
|
|
646
818
|
return e instanceof t && this.expression.isEquivalent(e.expression);
|
|
@@ -657,12 +829,12 @@ var init_angular = __esmMin((() => {
|
|
|
657
829
|
};
|
|
658
830
|
(function(t) {
|
|
659
831
|
t[t.None = 0] = "None", t[t.Final = 1] = "Final", t[t.Private = 2] = "Private", t[t.Exported = 4] = "Exported", t[t.Static = 8] = "Static";
|
|
660
|
-
})(
|
|
661
|
-
|
|
832
|
+
})(pe || (pe = {}));
|
|
833
|
+
he = class {
|
|
662
834
|
modifiers;
|
|
663
835
|
sourceSpan;
|
|
664
836
|
leadingComments;
|
|
665
|
-
constructor(e =
|
|
837
|
+
constructor(e = pe.None, n = null, s) {
|
|
666
838
|
this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
|
|
667
839
|
}
|
|
668
840
|
hasModifier(e) {
|
|
@@ -672,10 +844,10 @@ var init_angular = __esmMin((() => {
|
|
|
672
844
|
this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(e);
|
|
673
845
|
}
|
|
674
846
|
};
|
|
675
|
-
|
|
847
|
+
Ue = class t extends he {
|
|
676
848
|
expr;
|
|
677
849
|
constructor(e, n, s) {
|
|
678
|
-
super(
|
|
850
|
+
super(pe.None, n, s), this.expr = e;
|
|
679
851
|
}
|
|
680
852
|
isEquivalent(e) {
|
|
681
853
|
return e instanceof t && this.expr.isEquivalent(e.expr);
|
|
@@ -687,26 +859,26 @@ var init_angular = __esmMin((() => {
|
|
|
687
859
|
(class t {
|
|
688
860
|
static INSTANCE = new t();
|
|
689
861
|
keyOf(e) {
|
|
690
|
-
if (e instanceof
|
|
691
|
-
if (e instanceof
|
|
692
|
-
if (e instanceof
|
|
693
|
-
if (e instanceof
|
|
862
|
+
if (e instanceof He && typeof e.value == "string") return `"${e.value}"`;
|
|
863
|
+
if (e instanceof He) return String(e.value);
|
|
864
|
+
if (e instanceof kt) return `/${e.body}/${e.flags ?? ""}`;
|
|
865
|
+
if (e instanceof Pt) {
|
|
694
866
|
let n = [];
|
|
695
867
|
for (let s of e.entries) n.push(this.keyOf(s));
|
|
696
868
|
return `[${n.join(",")}]`;
|
|
697
|
-
} else if (e instanceof
|
|
869
|
+
} else if (e instanceof $t) {
|
|
698
870
|
let n = [];
|
|
699
|
-
for (let s of e.entries) if (s instanceof
|
|
871
|
+
for (let s of e.entries) if (s instanceof Lt) n.push("..." + this.keyOf(s.expression));
|
|
700
872
|
else {
|
|
701
|
-
let
|
|
702
|
-
s.quoted && (
|
|
873
|
+
let i = s.key;
|
|
874
|
+
s.quoted && (i = `"${i}"`), n.push(i + ":" + this.keyOf(s.value));
|
|
703
875
|
}
|
|
704
876
|
return `{${n.join(",")}}`;
|
|
705
877
|
} else {
|
|
706
|
-
if (e instanceof
|
|
707
|
-
if (e instanceof
|
|
708
|
-
if (e instanceof
|
|
709
|
-
if (e instanceof
|
|
878
|
+
if (e instanceof _t) return `import("${e.value.moduleName}", ${e.value.name})`;
|
|
879
|
+
if (e instanceof Et) return `read(${e.name})`;
|
|
880
|
+
if (e instanceof Ct) return `typeof(${this.keyOf(e.expr)})`;
|
|
881
|
+
if (e instanceof Mt) return `...${this.keyOf(e.expression)}`;
|
|
710
882
|
throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
|
|
711
883
|
}
|
|
712
884
|
}
|
|
@@ -964,6 +1136,10 @@ var init_angular = __esmMin((() => {
|
|
|
964
1136
|
name: "ɵɵdeferEnableTimerScheduling",
|
|
965
1137
|
moduleName: o
|
|
966
1138
|
};
|
|
1139
|
+
static enableIncrementalHydrationRuntime = {
|
|
1140
|
+
name: "ɵɵenableIncrementalHydrationRuntime",
|
|
1141
|
+
moduleName: o
|
|
1142
|
+
};
|
|
967
1143
|
static conditionalCreate = {
|
|
968
1144
|
name: "ɵɵconditionalCreate",
|
|
969
1145
|
moduleName: o
|
|
@@ -1248,6 +1424,14 @@ var init_angular = __esmMin((() => {
|
|
|
1248
1424
|
name: "ɵɵInjectableDeclaration",
|
|
1249
1425
|
moduleName: o
|
|
1250
1426
|
};
|
|
1427
|
+
static defineService = {
|
|
1428
|
+
name: "ɵɵdefineService",
|
|
1429
|
+
moduleName: o
|
|
1430
|
+
};
|
|
1431
|
+
static declareService = {
|
|
1432
|
+
name: "ɵɵngDeclareService",
|
|
1433
|
+
moduleName: o
|
|
1434
|
+
};
|
|
1251
1435
|
static resolveWindow = {
|
|
1252
1436
|
name: "ɵɵresolveWindow",
|
|
1253
1437
|
moduleName: o
|
|
@@ -1552,8 +1736,8 @@ var init_angular = __esmMin((() => {
|
|
|
1552
1736
|
name: "ɵassertType",
|
|
1553
1737
|
moduleName: o
|
|
1554
1738
|
};
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1739
|
+
}, vr = /-+([a-z0-9])/g;
|
|
1740
|
+
Dt = class {
|
|
1557
1741
|
full;
|
|
1558
1742
|
major;
|
|
1559
1743
|
minor;
|
|
@@ -1564,20 +1748,20 @@ var init_angular = __esmMin((() => {
|
|
|
1564
1748
|
this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
|
|
1565
1749
|
}
|
|
1566
1750
|
};
|
|
1567
|
-
|
|
1751
|
+
p.And, p.Bigger, p.BiggerEquals, p.BitwiseOr, p.BitwiseAnd, p.Divide, p.Assign, p.Equals, p.Identical, p.Lower, p.LowerEquals, p.Minus, p.Modulo, p.Exponentiation, p.Multiply, p.NotEquals, p.NotIdentical, p.NullishCoalesce, p.Or, p.Plus, p.In, p.InstanceOf, p.AdditionAssignment, p.SubtractionAssignment, p.MultiplicationAssignment, p.DivisionAssignment, p.RemainderAssignment, p.ExponentiationAssignment, p.AndAssignment, p.OrAssignment, p.NullishCoalesceAssignment;
|
|
1568
1752
|
(function(t) {
|
|
1569
1753
|
t[t.Class = 0] = "Class", t[t.Function = 1] = "Function";
|
|
1570
|
-
})(
|
|
1571
|
-
|
|
1754
|
+
})(Xn || (Xn = {}));
|
|
1755
|
+
ee = class {
|
|
1572
1756
|
start;
|
|
1573
1757
|
end;
|
|
1574
1758
|
constructor(e, n) {
|
|
1575
1759
|
this.start = e, this.end = n;
|
|
1576
1760
|
}
|
|
1577
1761
|
toAbsolute(e) {
|
|
1578
|
-
return new
|
|
1762
|
+
return new D(e + this.start, e + this.end);
|
|
1579
1763
|
}
|
|
1580
|
-
},
|
|
1764
|
+
}, v = class {
|
|
1581
1765
|
span;
|
|
1582
1766
|
sourceSpan;
|
|
1583
1767
|
constructor(e, n) {
|
|
@@ -1586,24 +1770,24 @@ var init_angular = __esmMin((() => {
|
|
|
1586
1770
|
toString() {
|
|
1587
1771
|
return "AST";
|
|
1588
1772
|
}
|
|
1589
|
-
},
|
|
1773
|
+
}, Le = class extends v {
|
|
1590
1774
|
nameSpan;
|
|
1591
1775
|
constructor(e, n, s) {
|
|
1592
1776
|
super(e, n), this.nameSpan = s;
|
|
1593
1777
|
}
|
|
1594
|
-
},
|
|
1778
|
+
}, N = class extends v {
|
|
1595
1779
|
visit(e, n = null) {
|
|
1596
1780
|
return e.visitEmptyExpr?.(this, n);
|
|
1597
1781
|
}
|
|
1598
|
-
},
|
|
1782
|
+
}, fe = class extends v {
|
|
1599
1783
|
visit(e, n = null) {
|
|
1600
1784
|
return e.visitImplicitReceiver(this, n);
|
|
1601
1785
|
}
|
|
1602
|
-
},
|
|
1786
|
+
}, Bt = class extends v {
|
|
1603
1787
|
visit(e, n = null) {
|
|
1604
1788
|
return e.visitThisReceiver?.(this, n);
|
|
1605
1789
|
}
|
|
1606
|
-
},
|
|
1790
|
+
}, Ft = class extends v {
|
|
1607
1791
|
expressions;
|
|
1608
1792
|
constructor(e, n, s) {
|
|
1609
1793
|
super(e, n), this.expressions = s;
|
|
@@ -1611,48 +1795,48 @@ var init_angular = __esmMin((() => {
|
|
|
1611
1795
|
visit(e, n = null) {
|
|
1612
1796
|
return e.visitChain(this, n);
|
|
1613
1797
|
}
|
|
1614
|
-
},
|
|
1798
|
+
}, Vt = class extends v {
|
|
1615
1799
|
condition;
|
|
1616
1800
|
trueExp;
|
|
1617
1801
|
falseExp;
|
|
1618
|
-
constructor(e, n, s,
|
|
1619
|
-
super(e, n), this.condition = s, this.trueExp =
|
|
1802
|
+
constructor(e, n, s, i, r) {
|
|
1803
|
+
super(e, n), this.condition = s, this.trueExp = i, this.falseExp = r;
|
|
1620
1804
|
}
|
|
1621
1805
|
visit(e, n = null) {
|
|
1622
1806
|
return e.visitConditional(this, n);
|
|
1623
1807
|
}
|
|
1624
|
-
},
|
|
1808
|
+
}, ke = class extends Le {
|
|
1625
1809
|
receiver;
|
|
1626
1810
|
name;
|
|
1627
|
-
constructor(e, n, s,
|
|
1628
|
-
super(e, n, s), this.receiver =
|
|
1811
|
+
constructor(e, n, s, i, r) {
|
|
1812
|
+
super(e, n, s), this.receiver = i, this.name = r;
|
|
1629
1813
|
}
|
|
1630
1814
|
visit(e, n = null) {
|
|
1631
1815
|
return e.visitPropertyRead(this, n);
|
|
1632
1816
|
}
|
|
1633
|
-
},
|
|
1817
|
+
}, Ht = class extends Le {
|
|
1634
1818
|
receiver;
|
|
1635
1819
|
name;
|
|
1636
|
-
constructor(e, n, s,
|
|
1637
|
-
super(e, n, s), this.receiver =
|
|
1820
|
+
constructor(e, n, s, i, r) {
|
|
1821
|
+
super(e, n, s), this.receiver = i, this.name = r;
|
|
1638
1822
|
}
|
|
1639
1823
|
visit(e, n = null) {
|
|
1640
1824
|
return e.visitSafePropertyRead(this, n);
|
|
1641
1825
|
}
|
|
1642
|
-
},
|
|
1826
|
+
}, qe = class extends v {
|
|
1643
1827
|
receiver;
|
|
1644
1828
|
key;
|
|
1645
|
-
constructor(e, n, s,
|
|
1646
|
-
super(e, n), this.receiver = s, this.key =
|
|
1829
|
+
constructor(e, n, s, i) {
|
|
1830
|
+
super(e, n), this.receiver = s, this.key = i;
|
|
1647
1831
|
}
|
|
1648
1832
|
visit(e, n = null) {
|
|
1649
1833
|
return e.visitKeyedRead(this, n);
|
|
1650
1834
|
}
|
|
1651
|
-
},
|
|
1835
|
+
}, Ut = class extends v {
|
|
1652
1836
|
receiver;
|
|
1653
1837
|
key;
|
|
1654
|
-
constructor(e, n, s,
|
|
1655
|
-
super(e, n), this.receiver = s, this.key =
|
|
1838
|
+
constructor(e, n, s, i) {
|
|
1839
|
+
super(e, n), this.receiver = s, this.key = i;
|
|
1656
1840
|
}
|
|
1657
1841
|
visit(e, n = null) {
|
|
1658
1842
|
return e.visitSafeKeyedRead(this, n);
|
|
@@ -1660,19 +1844,19 @@ var init_angular = __esmMin((() => {
|
|
|
1660
1844
|
};
|
|
1661
1845
|
(function(t) {
|
|
1662
1846
|
t[t.ReferencedByName = 0] = "ReferencedByName", t[t.ReferencedDirectly = 1] = "ReferencedDirectly";
|
|
1663
|
-
})(
|
|
1664
|
-
|
|
1847
|
+
})(_e || (_e = {}));
|
|
1848
|
+
Wt = class extends Le {
|
|
1665
1849
|
exp;
|
|
1666
1850
|
name;
|
|
1667
1851
|
args;
|
|
1668
1852
|
type;
|
|
1669
|
-
constructor(e, n, s,
|
|
1670
|
-
super(e, n,
|
|
1853
|
+
constructor(e, n, s, i, r, a, u) {
|
|
1854
|
+
super(e, n, u), this.exp = s, this.name = i, this.args = r, this.type = a;
|
|
1671
1855
|
}
|
|
1672
1856
|
visit(e, n = null) {
|
|
1673
1857
|
return e.visitPipe(this, n);
|
|
1674
1858
|
}
|
|
1675
|
-
},
|
|
1859
|
+
}, A = class extends v {
|
|
1676
1860
|
value;
|
|
1677
1861
|
constructor(e, n, s) {
|
|
1678
1862
|
super(e, n), this.value = s;
|
|
@@ -1680,7 +1864,7 @@ var init_angular = __esmMin((() => {
|
|
|
1680
1864
|
visit(e, n = null) {
|
|
1681
1865
|
return e.visitLiteralPrimitive(this, n);
|
|
1682
1866
|
}
|
|
1683
|
-
},
|
|
1867
|
+
}, qt = class extends v {
|
|
1684
1868
|
expressions;
|
|
1685
1869
|
constructor(e, n, s) {
|
|
1686
1870
|
super(e, n), this.expressions = s;
|
|
@@ -1688,7 +1872,7 @@ var init_angular = __esmMin((() => {
|
|
|
1688
1872
|
visit(e, n = null) {
|
|
1689
1873
|
return e.visitLiteralArray(this, n);
|
|
1690
1874
|
}
|
|
1691
|
-
},
|
|
1875
|
+
}, jt = class extends v {
|
|
1692
1876
|
expression;
|
|
1693
1877
|
constructor(e, n, s) {
|
|
1694
1878
|
super(e, n), this.expression = s;
|
|
@@ -1696,30 +1880,30 @@ var init_angular = __esmMin((() => {
|
|
|
1696
1880
|
visit(e, n = null) {
|
|
1697
1881
|
return e.visitSpreadElement(this, n);
|
|
1698
1882
|
}
|
|
1699
|
-
},
|
|
1883
|
+
}, zt = class extends v {
|
|
1700
1884
|
keys;
|
|
1701
1885
|
values;
|
|
1702
|
-
constructor(e, n, s,
|
|
1703
|
-
super(e, n), this.keys = s, this.values =
|
|
1886
|
+
constructor(e, n, s, i) {
|
|
1887
|
+
super(e, n), this.keys = s, this.values = i;
|
|
1704
1888
|
}
|
|
1705
1889
|
visit(e, n = null) {
|
|
1706
1890
|
return e.visitLiteralMap(this, n);
|
|
1707
1891
|
}
|
|
1708
|
-
},
|
|
1892
|
+
}, Sr = class extends v {
|
|
1709
1893
|
strings;
|
|
1710
1894
|
expressions;
|
|
1711
|
-
constructor(e, n, s,
|
|
1712
|
-
super(e, n), this.strings = s, this.expressions =
|
|
1895
|
+
constructor(e, n, s, i) {
|
|
1896
|
+
super(e, n), this.strings = s, this.expressions = i;
|
|
1713
1897
|
}
|
|
1714
1898
|
visit(e, n = null) {
|
|
1715
1899
|
return e.visitInterpolation(this, n);
|
|
1716
1900
|
}
|
|
1717
|
-
}, E = class extends
|
|
1901
|
+
}, E = class extends v {
|
|
1718
1902
|
operation;
|
|
1719
1903
|
left;
|
|
1720
1904
|
right;
|
|
1721
|
-
constructor(e, n, s,
|
|
1722
|
-
super(e, n), this.operation = s, this.left =
|
|
1905
|
+
constructor(e, n, s, i, r) {
|
|
1906
|
+
super(e, n), this.operation = s, this.left = i, this.right = r;
|
|
1723
1907
|
}
|
|
1724
1908
|
visit(e, n = null) {
|
|
1725
1909
|
return e.visitBinary(this, n);
|
|
@@ -1727,25 +1911,25 @@ var init_angular = __esmMin((() => {
|
|
|
1727
1911
|
static isAssignmentOperation(e) {
|
|
1728
1912
|
return e === "=" || e === "+=" || e === "-=" || e === "*=" || e === "/=" || e === "%=" || e === "**=" || e === "&&=" || e === "||=" || e === "??=";
|
|
1729
1913
|
}
|
|
1730
|
-
},
|
|
1914
|
+
}, Ie = class t extends E {
|
|
1731
1915
|
operator;
|
|
1732
1916
|
expr;
|
|
1733
1917
|
left = null;
|
|
1734
1918
|
right = null;
|
|
1735
1919
|
operation = null;
|
|
1736
1920
|
static createMinus(e, n, s) {
|
|
1737
|
-
return new t(e, n, "-", s, "-", new
|
|
1921
|
+
return new t(e, n, "-", s, "-", new A(e, n, 0), s);
|
|
1738
1922
|
}
|
|
1739
1923
|
static createPlus(e, n, s) {
|
|
1740
|
-
return new t(e, n, "+", s, "-", s, new
|
|
1924
|
+
return new t(e, n, "+", s, "-", s, new A(e, n, 0));
|
|
1741
1925
|
}
|
|
1742
|
-
constructor(e, n, s,
|
|
1743
|
-
super(e, n,
|
|
1926
|
+
constructor(e, n, s, i, r, a, u) {
|
|
1927
|
+
super(e, n, r, a, u), this.operator = s, this.expr = i;
|
|
1744
1928
|
}
|
|
1745
1929
|
visit(e, n = null) {
|
|
1746
1930
|
return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
|
|
1747
1931
|
}
|
|
1748
|
-
},
|
|
1932
|
+
}, je = class extends v {
|
|
1749
1933
|
expression;
|
|
1750
1934
|
constructor(e, n, s) {
|
|
1751
1935
|
super(e, n), this.expression = s;
|
|
@@ -1753,7 +1937,7 @@ var init_angular = __esmMin((() => {
|
|
|
1753
1937
|
visit(e, n = null) {
|
|
1754
1938
|
return e.visitPrefixNot(this, n);
|
|
1755
1939
|
}
|
|
1756
|
-
},
|
|
1940
|
+
}, ze = class extends v {
|
|
1757
1941
|
expression;
|
|
1758
1942
|
constructor(e, n, s) {
|
|
1759
1943
|
super(e, n), this.expression = s;
|
|
@@ -1761,7 +1945,7 @@ var init_angular = __esmMin((() => {
|
|
|
1761
1945
|
visit(e, n = null) {
|
|
1762
1946
|
return e.visitTypeofExpression(this, n);
|
|
1763
1947
|
}
|
|
1764
|
-
},
|
|
1948
|
+
}, Ge = class extends v {
|
|
1765
1949
|
expression;
|
|
1766
1950
|
constructor(e, n, s) {
|
|
1767
1951
|
super(e, n), this.expression = s;
|
|
@@ -1769,7 +1953,7 @@ var init_angular = __esmMin((() => {
|
|
|
1769
1953
|
visit(e, n = null) {
|
|
1770
1954
|
return e.visitVoidExpression(this, n);
|
|
1771
1955
|
}
|
|
1772
|
-
},
|
|
1956
|
+
}, Gt = class extends v {
|
|
1773
1957
|
expression;
|
|
1774
1958
|
constructor(e, n, s) {
|
|
1775
1959
|
super(e, n), this.expression = s;
|
|
@@ -1777,45 +1961,45 @@ var init_angular = __esmMin((() => {
|
|
|
1777
1961
|
visit(e, n = null) {
|
|
1778
1962
|
return e.visitNonNullAssert(this, n);
|
|
1779
1963
|
}
|
|
1780
|
-
},
|
|
1964
|
+
}, Xe = class extends v {
|
|
1781
1965
|
receiver;
|
|
1782
1966
|
args;
|
|
1783
1967
|
argumentSpan;
|
|
1784
|
-
constructor(e, n, s,
|
|
1785
|
-
super(e, n), this.receiver = s, this.args =
|
|
1968
|
+
constructor(e, n, s, i, r) {
|
|
1969
|
+
super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
|
|
1786
1970
|
}
|
|
1787
1971
|
visit(e, n = null) {
|
|
1788
1972
|
return e.visitCall(this, n);
|
|
1789
1973
|
}
|
|
1790
|
-
},
|
|
1974
|
+
}, Xt = class extends v {
|
|
1791
1975
|
receiver;
|
|
1792
1976
|
args;
|
|
1793
1977
|
argumentSpan;
|
|
1794
|
-
constructor(e, n, s,
|
|
1795
|
-
super(e, n), this.receiver = s, this.args =
|
|
1978
|
+
constructor(e, n, s, i, r) {
|
|
1979
|
+
super(e, n), this.receiver = s, this.args = i, this.argumentSpan = r;
|
|
1796
1980
|
}
|
|
1797
1981
|
visit(e, n = null) {
|
|
1798
1982
|
return e.visitSafeCall(this, n);
|
|
1799
1983
|
}
|
|
1800
|
-
},
|
|
1984
|
+
}, Qe = class extends v {
|
|
1801
1985
|
tag;
|
|
1802
1986
|
template;
|
|
1803
|
-
constructor(e, n, s,
|
|
1804
|
-
super(e, n), this.tag = s, this.template =
|
|
1987
|
+
constructor(e, n, s, i) {
|
|
1988
|
+
super(e, n), this.tag = s, this.template = i;
|
|
1805
1989
|
}
|
|
1806
1990
|
visit(e, n) {
|
|
1807
1991
|
return e.visitTaggedTemplateLiteral(this, n);
|
|
1808
1992
|
}
|
|
1809
|
-
},
|
|
1993
|
+
}, Je = class extends v {
|
|
1810
1994
|
elements;
|
|
1811
1995
|
expressions;
|
|
1812
|
-
constructor(e, n, s,
|
|
1813
|
-
super(e, n), this.elements = s, this.expressions =
|
|
1996
|
+
constructor(e, n, s, i) {
|
|
1997
|
+
super(e, n), this.elements = s, this.expressions = i;
|
|
1814
1998
|
}
|
|
1815
1999
|
visit(e, n) {
|
|
1816
2000
|
return e.visitTemplateLiteral(this, n);
|
|
1817
2001
|
}
|
|
1818
|
-
},
|
|
2002
|
+
}, Ye = class extends v {
|
|
1819
2003
|
text;
|
|
1820
2004
|
constructor(e, n, s) {
|
|
1821
2005
|
super(e, n), this.text = s;
|
|
@@ -1823,7 +2007,7 @@ var init_angular = __esmMin((() => {
|
|
|
1823
2007
|
visit(e, n) {
|
|
1824
2008
|
return e.visitTemplateLiteralElement(this, n);
|
|
1825
2009
|
}
|
|
1826
|
-
},
|
|
2010
|
+
}, $e = class extends v {
|
|
1827
2011
|
expression;
|
|
1828
2012
|
constructor(e, n, s) {
|
|
1829
2013
|
super(e, n), this.expression = s;
|
|
@@ -1831,44 +2015,44 @@ var init_angular = __esmMin((() => {
|
|
|
1831
2015
|
visit(e, n) {
|
|
1832
2016
|
return e.visitParenthesizedExpression(this, n);
|
|
1833
2017
|
}
|
|
1834
|
-
},
|
|
2018
|
+
}, Qt = class {
|
|
1835
2019
|
name;
|
|
1836
2020
|
span;
|
|
1837
2021
|
sourceSpan;
|
|
1838
2022
|
constructor(e, n, s) {
|
|
1839
2023
|
this.name = e, this.span = n, this.sourceSpan = s;
|
|
1840
2024
|
}
|
|
1841
|
-
},
|
|
2025
|
+
}, Jt = class extends v {
|
|
1842
2026
|
parameters;
|
|
1843
2027
|
body;
|
|
1844
|
-
constructor(e, n, s,
|
|
1845
|
-
super(e, n), this.parameters = s, this.body =
|
|
2028
|
+
constructor(e, n, s, i) {
|
|
2029
|
+
super(e, n), this.parameters = s, this.body = i;
|
|
1846
2030
|
}
|
|
1847
2031
|
visit(e, n) {
|
|
1848
2032
|
return e.visitArrowFunction(this, n);
|
|
1849
2033
|
}
|
|
1850
|
-
},
|
|
2034
|
+
}, Yt = class extends v {
|
|
1851
2035
|
body;
|
|
1852
2036
|
flags;
|
|
1853
|
-
constructor(e, n, s,
|
|
1854
|
-
super(e, n), this.body = s, this.flags =
|
|
2037
|
+
constructor(e, n, s, i) {
|
|
2038
|
+
super(e, n), this.body = s, this.flags = i;
|
|
1855
2039
|
}
|
|
1856
2040
|
visit(e, n) {
|
|
1857
2041
|
return e.visitRegularExpressionLiteral(this, n);
|
|
1858
2042
|
}
|
|
1859
|
-
},
|
|
2043
|
+
}, D = class {
|
|
1860
2044
|
start;
|
|
1861
2045
|
end;
|
|
1862
2046
|
constructor(e, n) {
|
|
1863
2047
|
this.start = e, this.end = n;
|
|
1864
2048
|
}
|
|
1865
|
-
}, U = class extends
|
|
2049
|
+
}, U = class extends v {
|
|
1866
2050
|
ast;
|
|
1867
2051
|
source;
|
|
1868
2052
|
location;
|
|
1869
2053
|
errors;
|
|
1870
|
-
constructor(e, n, s,
|
|
1871
|
-
super(new
|
|
2054
|
+
constructor(e, n, s, i, r) {
|
|
2055
|
+
super(new ee(0, n === null ? 0 : n.length), new D(i, n === null ? i : i + n.length)), this.ast = e, this.source = n, this.location = s, this.errors = r;
|
|
1872
2056
|
}
|
|
1873
2057
|
visit(e, n = null) {
|
|
1874
2058
|
return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
|
|
@@ -1876,21 +2060,21 @@ var init_angular = __esmMin((() => {
|
|
|
1876
2060
|
toString() {
|
|
1877
2061
|
return `${this.source} in ${this.location}`;
|
|
1878
2062
|
}
|
|
1879
|
-
},
|
|
2063
|
+
}, de = class {
|
|
1880
2064
|
sourceSpan;
|
|
1881
2065
|
key;
|
|
1882
2066
|
value;
|
|
1883
2067
|
constructor(e, n, s) {
|
|
1884
2068
|
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1885
2069
|
}
|
|
1886
|
-
},
|
|
2070
|
+
}, Me = class {
|
|
1887
2071
|
sourceSpan;
|
|
1888
2072
|
key;
|
|
1889
2073
|
value;
|
|
1890
2074
|
constructor(e, n, s) {
|
|
1891
2075
|
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1892
2076
|
}
|
|
1893
|
-
},
|
|
2077
|
+
}, Kt = class {
|
|
1894
2078
|
visit(e, n) {
|
|
1895
2079
|
e.visit(this, n);
|
|
1896
2080
|
}
|
|
@@ -1954,8 +2138,8 @@ var init_angular = __esmMin((() => {
|
|
|
1954
2138
|
visitTemplateLiteral(e, n) {
|
|
1955
2139
|
for (let s = 0; s < e.elements.length; s++) {
|
|
1956
2140
|
this.visit(e.elements[s], n);
|
|
1957
|
-
let
|
|
1958
|
-
|
|
2141
|
+
let i = s < e.expressions.length ? e.expressions[s] : null;
|
|
2142
|
+
i !== null && this.visit(i, n);
|
|
1959
2143
|
}
|
|
1960
2144
|
}
|
|
1961
2145
|
visitTemplateLiteralElement(e, n) {}
|
|
@@ -1979,76 +2163,76 @@ var init_angular = __esmMin((() => {
|
|
|
1979
2163
|
};
|
|
1980
2164
|
(function(t) {
|
|
1981
2165
|
t[t.DEFAULT = 0] = "DEFAULT", t[t.LITERAL_ATTR = 1] = "LITERAL_ATTR", t[t.LEGACY_ANIMATION = 2] = "LEGACY_ANIMATION", t[t.TWO_WAY = 3] = "TWO_WAY", t[t.ANIMATION = 4] = "ANIMATION";
|
|
1982
|
-
})(
|
|
2166
|
+
})(Qn || (Qn = {}));
|
|
1983
2167
|
(function(t) {
|
|
1984
2168
|
t[t.Regular = 0] = "Regular", t[t.LegacyAnimation = 1] = "LegacyAnimation", t[t.TwoWay = 2] = "TwoWay", t[t.Animation = 3] = "Animation";
|
|
1985
|
-
})(
|
|
2169
|
+
})(Jn || (Jn = {}));
|
|
1986
2170
|
(function(t) {
|
|
1987
2171
|
t[t.Property = 0] = "Property", t[t.Attribute = 1] = "Attribute", t[t.Class = 2] = "Class", t[t.Style = 3] = "Style", t[t.LegacyAnimation = 4] = "LegacyAnimation", t[t.TwoWay = 5] = "TwoWay", t[t.Animation = 6] = "Animation";
|
|
1988
2172
|
})(M || (M = {}));
|
|
1989
2173
|
(function(t) {
|
|
1990
2174
|
t[t.RAW_TEXT = 0] = "RAW_TEXT", t[t.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t[t.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
1991
|
-
})(
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2175
|
+
})(Yn || (Yn = {}));
|
|
2176
|
+
Ee = 0;
|
|
2177
|
+
Fs = 9, Ve = 10, yr = 11, Er = 12, Cr = 13, Vs = 32, br = 33, Hs = 34, Tr = 35, un = 36, kr = 37, es = 38, Us = 39, Q = 40, L = 41, ts = 42, Ws = 43, V = 44, qs = 45, G = 46, Ke = 47, J = 58, Te = 59, _r = 60, C = 61, ns = 62, ss = 63, Ir = 48;
|
|
2178
|
+
Nr = 57, pn = 65, Ar = 69;
|
|
2179
|
+
hn = 90, ce = 91, St = 92, Z = 93, Pr = 94, at = 95, js = 97;
|
|
2180
|
+
Lr = 101, $r = 102, Mr = 110, Rr = 114, Or = 116, Dr = 117, Br = 118;
|
|
2181
|
+
zs = 122, Ne = 123, is = 124, oe = 125, Gs = 160;
|
|
2182
|
+
Zt = 96;
|
|
2183
|
+
Ze = class t {
|
|
2000
2184
|
file;
|
|
2001
2185
|
offset;
|
|
2002
2186
|
line;
|
|
2003
2187
|
col;
|
|
2004
|
-
constructor(e, n, s,
|
|
2005
|
-
this.file = e, this.offset = n, this.line = s, this.col =
|
|
2188
|
+
constructor(e, n, s, i) {
|
|
2189
|
+
this.file = e, this.offset = n, this.line = s, this.col = i;
|
|
2006
2190
|
}
|
|
2007
2191
|
toString() {
|
|
2008
2192
|
return this.offset != null ? `${this.file.url}@${this.line}:${this.col}` : this.file.url;
|
|
2009
2193
|
}
|
|
2010
2194
|
moveBy(e) {
|
|
2011
|
-
let n = this.file.content, s = n.length,
|
|
2012
|
-
for (;
|
|
2013
|
-
|
|
2014
|
-
let h = n.substring(0,
|
|
2015
|
-
a = h > 0 ?
|
|
2195
|
+
let n = this.file.content, s = n.length, i = this.offset, r = this.line, a = this.col;
|
|
2196
|
+
for (; i > 0 && e < 0;) if (i--, e++, n.charCodeAt(i) == Ve) {
|
|
2197
|
+
r--;
|
|
2198
|
+
let h = n.substring(0, i - 1).lastIndexOf(String.fromCharCode(Ve));
|
|
2199
|
+
a = h > 0 ? i - h : i;
|
|
2016
2200
|
} else a--;
|
|
2017
|
-
for (;
|
|
2018
|
-
let
|
|
2019
|
-
|
|
2201
|
+
for (; i < s && e > 0;) {
|
|
2202
|
+
let u = n.charCodeAt(i);
|
|
2203
|
+
i++, e--, u == Ve ? (r++, a = 0) : a++;
|
|
2020
2204
|
}
|
|
2021
|
-
return new t(this.file,
|
|
2205
|
+
return new t(this.file, i, r, a);
|
|
2022
2206
|
}
|
|
2023
2207
|
getContext(e, n) {
|
|
2024
|
-
let s = this.file.content,
|
|
2025
|
-
if (
|
|
2026
|
-
|
|
2027
|
-
let
|
|
2028
|
-
for (; a < e &&
|
|
2029
|
-
` && ++
|
|
2030
|
-
for (a = 0,
|
|
2031
|
-
` && ++
|
|
2208
|
+
let s = this.file.content, i = this.offset;
|
|
2209
|
+
if (i != null) {
|
|
2210
|
+
i > s.length - 1 && (i = s.length - 1);
|
|
2211
|
+
let r = i, a = 0, u = 0;
|
|
2212
|
+
for (; a < e && i > 0 && (i--, a++, !(s[i] == `
|
|
2213
|
+
` && ++u == n)););
|
|
2214
|
+
for (a = 0, u = 0; a < e && r < s.length - 1 && (r++, a++, !(s[r] == `
|
|
2215
|
+
` && ++u == n)););
|
|
2032
2216
|
return {
|
|
2033
|
-
before: s.substring(
|
|
2034
|
-
after: s.substring(this.offset,
|
|
2217
|
+
before: s.substring(i, this.offset),
|
|
2218
|
+
after: s.substring(this.offset, r + 1)
|
|
2035
2219
|
};
|
|
2036
2220
|
}
|
|
2037
2221
|
return null;
|
|
2038
2222
|
}
|
|
2039
|
-
},
|
|
2223
|
+
}, et = class {
|
|
2040
2224
|
content;
|
|
2041
2225
|
url;
|
|
2042
2226
|
constructor(e, n) {
|
|
2043
2227
|
this.content = e, this.url = n;
|
|
2044
2228
|
}
|
|
2045
|
-
},
|
|
2229
|
+
}, tt = class {
|
|
2046
2230
|
start;
|
|
2047
2231
|
end;
|
|
2048
2232
|
fullStart;
|
|
2049
2233
|
details;
|
|
2050
|
-
constructor(e, n, s = e,
|
|
2051
|
-
this.start = e, this.end = n, this.fullStart = s, this.details =
|
|
2234
|
+
constructor(e, n, s = e, i = null) {
|
|
2235
|
+
this.start = e, this.end = n, this.fullStart = s, this.details = i;
|
|
2052
2236
|
}
|
|
2053
2237
|
toString() {
|
|
2054
2238
|
return this.start.file.content.substring(this.start.offset, this.end.offset);
|
|
@@ -2056,18 +2240,18 @@ var init_angular = __esmMin((() => {
|
|
|
2056
2240
|
};
|
|
2057
2241
|
(function(t) {
|
|
2058
2242
|
t[t.WARNING = 0] = "WARNING", t[t.ERROR = 1] = "ERROR";
|
|
2059
|
-
})(
|
|
2060
|
-
|
|
2243
|
+
})(nt || (nt = {}));
|
|
2244
|
+
Re = class extends Error {
|
|
2061
2245
|
span;
|
|
2062
2246
|
msg;
|
|
2063
2247
|
level;
|
|
2064
2248
|
relatedError;
|
|
2065
|
-
constructor(e, n, s =
|
|
2066
|
-
super(n), this.span = e, this.msg = n, this.level = s, this.relatedError =
|
|
2249
|
+
constructor(e, n, s = nt.ERROR, i) {
|
|
2250
|
+
super(n), this.span = e, this.msg = n, this.level = s, this.relatedError = i, Object.setPrototypeOf(this, new.target.prototype);
|
|
2067
2251
|
}
|
|
2068
2252
|
contextualMessage() {
|
|
2069
2253
|
let e = this.span.start.getContext(100, 3);
|
|
2070
|
-
return e ? `${this.msg} ("${e.before}[${
|
|
2254
|
+
return e ? `${this.msg} ("${e.before}[${nt[this.level]} ->]${e.after}")` : this.msg;
|
|
2071
2255
|
}
|
|
2072
2256
|
toString() {
|
|
2073
2257
|
let e = this.span.details ? `, ${this.span.details}` : "";
|
|
@@ -2076,94 +2260,96 @@ var init_angular = __esmMin((() => {
|
|
|
2076
2260
|
};
|
|
2077
2261
|
(function(t) {
|
|
2078
2262
|
t[t.Inline = 0] = "Inline", t[t.SideEffect = 1] = "SideEffect", t[t.Omit = 2] = "Omit";
|
|
2079
|
-
})(
|
|
2263
|
+
})(os || (os = {}));
|
|
2080
2264
|
(function(t) {
|
|
2081
|
-
t[t.Global = 0] = "Global", t[t.Local = 1] = "Local";
|
|
2082
|
-
})(
|
|
2265
|
+
t[t.Global = 0] = "Global", t[t.Local = 1] = "Local", t[t.Isolated = 2] = "Isolated";
|
|
2266
|
+
})(as || (as = {}));
|
|
2083
2267
|
(function(t) {
|
|
2084
2268
|
t[t.Directive = 0] = "Directive", t[t.Pipe = 1] = "Pipe", t[t.NgModule = 2] = "NgModule";
|
|
2085
|
-
})(
|
|
2086
|
-
|
|
2087
|
-
new RegExp("(:nth-[-\\w]+)" +
|
|
2088
|
-
new RegExp(
|
|
2089
|
-
|
|
2090
|
-
new RegExp(`${
|
|
2091
|
-
|
|
2092
|
-
new RegExp(`${
|
|
2093
|
-
|
|
2094
|
-
new RegExp(
|
|
2095
|
-
new RegExp(`(\\s*(?:${
|
|
2096
|
-
|
|
2097
|
-
new RegExp(
|
|
2098
|
-
new RegExp(
|
|
2099
|
-
new RegExp(
|
|
2269
|
+
})(ls || (ls = {}));
|
|
2270
|
+
Vr = "(:(where|is)\\()?", Xs = "-shadowcsshost", Hr = "-shadowcsscontext", tn = "[^)(]*", fn = `(?:\\((${`(?:\\(${`(?:\\(${tn}\\)|${tn})+?`}\\)|${tn})+?`})\\))`;
|
|
2271
|
+
new RegExp("(:nth-[-\\w]+)" + fn, "g");
|
|
2272
|
+
new RegExp(Xs + fn + "?([^,{]*)", "gim");
|
|
2273
|
+
qr = Hr + fn + "([^{]*)";
|
|
2274
|
+
new RegExp(`${Vr}(${qr})`, "gim");
|
|
2275
|
+
jr = Xs + "-no-combinator";
|
|
2276
|
+
new RegExp(`${jr}(?![^(]*\\))`, "g");
|
|
2277
|
+
Qs = "%COMMENT%";
|
|
2278
|
+
new RegExp(Qs, "g");
|
|
2279
|
+
new RegExp(`(\\s*(?:${Qs}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
2280
|
+
zr = "%COMMA_IN_PLACEHOLDER%", Gr = "%SEMI_IN_PLACEHOLDER%", Xr = "%COLON_IN_PLACEHOLDER%";
|
|
2281
|
+
new RegExp(zr, "g");
|
|
2282
|
+
new RegExp(Gr, "g");
|
|
2283
|
+
new RegExp(Xr, "g");
|
|
2100
2284
|
(function(t) {
|
|
2101
|
-
t[t.ListEnd = 0] = "ListEnd", t[t.Statement = 1] = "Statement", t[t.Variable = 2] = "Variable", t[t.ElementStart = 3] = "ElementStart", t[t.Element = 4] = "Element", t[t.Template = 5] = "Template", t[t.ElementEnd = 6] = "ElementEnd", t[t.ContainerStart = 7] = "ContainerStart", t[t.Container = 8] = "Container", t[t.ContainerEnd = 9] = "ContainerEnd", t[t.DisableBindings = 10] = "DisableBindings", t[t.ConditionalCreate = 11] = "ConditionalCreate", t[t.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t[t.Conditional = 13] = "Conditional", t[t.EnableBindings = 14] = "EnableBindings", t[t.Text = 15] = "Text", t[t.Listener = 16] = "Listener", t[t.InterpolateText = 17] = "InterpolateText", t[t.Binding = 18] = "Binding", t[t.Property = 19] = "Property", t[t.StyleProp = 20] = "StyleProp", t[t.ClassProp = 21] = "ClassProp", t[t.StyleMap = 22] = "StyleMap", t[t.ClassMap = 23] = "ClassMap", t[t.Advance = 24] = "Advance", t[t.Pipe = 25] = "Pipe", t[t.Attribute = 26] = "Attribute", t[t.ExtractedAttribute = 27] = "ExtractedAttribute", t[t.Defer = 28] = "Defer", t[t.DeferOn = 29] = "DeferOn", t[t.DeferWhen = 30] = "DeferWhen", t[t.I18nMessage = 31] = "I18nMessage", t[t.DomProperty = 32] = "DomProperty", t[t.Namespace = 33] = "Namespace", t[t.ProjectionDef = 34] = "ProjectionDef", t[t.
|
|
2285
|
+
t[t.ListEnd = 0] = "ListEnd", t[t.Statement = 1] = "Statement", t[t.Variable = 2] = "Variable", t[t.ElementStart = 3] = "ElementStart", t[t.Element = 4] = "Element", t[t.Template = 5] = "Template", t[t.ElementEnd = 6] = "ElementEnd", t[t.ContainerStart = 7] = "ContainerStart", t[t.Container = 8] = "Container", t[t.ContainerEnd = 9] = "ContainerEnd", t[t.DisableBindings = 10] = "DisableBindings", t[t.ConditionalCreate = 11] = "ConditionalCreate", t[t.ConditionalBranchCreate = 12] = "ConditionalBranchCreate", t[t.Conditional = 13] = "Conditional", t[t.EnableBindings = 14] = "EnableBindings", t[t.Text = 15] = "Text", t[t.Listener = 16] = "Listener", t[t.InterpolateText = 17] = "InterpolateText", t[t.Binding = 18] = "Binding", t[t.Property = 19] = "Property", t[t.StyleProp = 20] = "StyleProp", t[t.ClassProp = 21] = "ClassProp", t[t.StyleMap = 22] = "StyleMap", t[t.ClassMap = 23] = "ClassMap", t[t.Advance = 24] = "Advance", t[t.Pipe = 25] = "Pipe", t[t.Attribute = 26] = "Attribute", t[t.ExtractedAttribute = 27] = "ExtractedAttribute", t[t.Defer = 28] = "Defer", t[t.DeferOn = 29] = "DeferOn", t[t.DeferWhen = 30] = "DeferWhen", t[t.I18nMessage = 31] = "I18nMessage", t[t.DomProperty = 32] = "DomProperty", t[t.Namespace = 33] = "Namespace", t[t.ProjectionDef = 34] = "ProjectionDef", t[t.EnableIncrementalHydrationRuntime = 35] = "EnableIncrementalHydrationRuntime", t[t.Projection = 36] = "Projection", t[t.RepeaterCreate = 37] = "RepeaterCreate", t[t.Repeater = 38] = "Repeater", t[t.TwoWayProperty = 39] = "TwoWayProperty", t[t.TwoWayListener = 40] = "TwoWayListener", t[t.DeclareLet = 41] = "DeclareLet", t[t.StoreLet = 42] = "StoreLet", t[t.I18nStart = 43] = "I18nStart", t[t.I18n = 44] = "I18n", t[t.I18nEnd = 45] = "I18nEnd", t[t.I18nExpression = 46] = "I18nExpression", t[t.I18nApply = 47] = "I18nApply", t[t.IcuStart = 48] = "IcuStart", t[t.IcuEnd = 49] = "IcuEnd", t[t.IcuPlaceholder = 50] = "IcuPlaceholder", t[t.I18nContext = 51] = "I18nContext", t[t.I18nAttributes = 52] = "I18nAttributes", t[t.SourceLocation = 53] = "SourceLocation", t[t.Animation = 54] = "Animation", t[t.AnimationString = 55] = "AnimationString", t[t.AnimationBinding = 56] = "AnimationBinding", t[t.AnimationListener = 57] = "AnimationListener", t[t.Control = 58] = "Control", t[t.ControlCreate = 59] = "ControlCreate";
|
|
2102
2286
|
})(l || (l = {}));
|
|
2103
2287
|
(function(t) {
|
|
2104
|
-
t[t.LexicalRead = 0] = "LexicalRead", t[t.Context = 1] = "Context", t[t.TrackContext = 2] = "TrackContext", t[t.ReadVariable = 3] = "ReadVariable", t[t.NextContext = 4] = "NextContext", t[t.Reference = 5] = "Reference", t[t.StoreLet = 6] = "StoreLet", t[t.ContextLetReference = 7] = "ContextLetReference", t[t.GetCurrentView = 8] = "GetCurrentView", t[t.RestoreView = 9] = "RestoreView", t[t.ResetView = 10] = "ResetView", t[t.PureFunctionExpr = 11] = "PureFunctionExpr", t[t.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t[t.PipeBinding = 13] = "PipeBinding", t[t.PipeBindingVariadic = 14] = "PipeBindingVariadic", t[t.SafePropertyRead = 15] = "SafePropertyRead", t[t.SafeKeyedRead = 16] = "SafeKeyedRead", t[t.
|
|
2105
|
-
})(
|
|
2288
|
+
t[t.LexicalRead = 0] = "LexicalRead", t[t.Context = 1] = "Context", t[t.TrackContext = 2] = "TrackContext", t[t.ReadVariable = 3] = "ReadVariable", t[t.NextContext = 4] = "NextContext", t[t.Reference = 5] = "Reference", t[t.StoreLet = 6] = "StoreLet", t[t.ContextLetReference = 7] = "ContextLetReference", t[t.GetCurrentView = 8] = "GetCurrentView", t[t.RestoreView = 9] = "RestoreView", t[t.ResetView = 10] = "ResetView", t[t.PureFunctionExpr = 11] = "PureFunctionExpr", t[t.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t[t.PipeBinding = 13] = "PipeBinding", t[t.PipeBindingVariadic = 14] = "PipeBindingVariadic", t[t.SafePropertyRead = 15] = "SafePropertyRead", t[t.SafeKeyedRead = 16] = "SafeKeyedRead", t[t.SafeNavigationMigration = 17] = "SafeNavigationMigration", t[t.SafeTernaryExpr = 18] = "SafeTernaryExpr", t[t.EmptyExpr = 19] = "EmptyExpr", t[t.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t[t.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t[t.SlotLiteralExpr = 22] = "SlotLiteralExpr", t[t.ConditionalCase = 23] = "ConditionalCase", t[t.ConstCollected = 24] = "ConstCollected", t[t.TwoWayBindingSet = 25] = "TwoWayBindingSet", t[t.ArrowFunction = 26] = "ArrowFunction";
|
|
2289
|
+
})(te || (te = {}));
|
|
2106
2290
|
(function(t) {
|
|
2107
2291
|
t[t.None = 0] = "None", t[t.AlwaysInline = 1] = "AlwaysInline";
|
|
2108
|
-
})(
|
|
2292
|
+
})(cs || (cs = {}));
|
|
2109
2293
|
(function(t) {
|
|
2110
2294
|
t[t.Context = 0] = "Context", t[t.Identifier = 1] = "Identifier", t[t.SavedView = 2] = "SavedView", t[t.Alias = 3] = "Alias";
|
|
2111
|
-
})(
|
|
2295
|
+
})(us || (us = {}));
|
|
2112
2296
|
(function(t) {
|
|
2113
2297
|
t[t.Attribute = 0] = "Attribute", t[t.ClassName = 1] = "ClassName", t[t.StyleProperty = 2] = "StyleProperty", t[t.Property = 3] = "Property", t[t.Template = 4] = "Template", t[t.I18n = 5] = "I18n", t[t.LegacyAnimation = 6] = "LegacyAnimation", t[t.TwoWayProperty = 7] = "TwoWayProperty", t[t.Animation = 8] = "Animation";
|
|
2114
2298
|
})(R || (R = {}));
|
|
2115
2299
|
(function(t) {
|
|
2116
2300
|
t[t.Creation = 0] = "Creation", t[t.Postproccessing = 1] = "Postproccessing";
|
|
2117
|
-
})(
|
|
2301
|
+
})(ps || (ps = {}));
|
|
2118
2302
|
(function(t) {
|
|
2119
2303
|
t[t.I18nText = 0] = "I18nText", t[t.I18nAttribute = 1] = "I18nAttribute";
|
|
2120
|
-
})(
|
|
2304
|
+
})(hs || (hs = {}));
|
|
2121
2305
|
(function(t) {
|
|
2122
2306
|
t[t.None = 0] = "None", t[t.ElementTag = 1] = "ElementTag", t[t.TemplateTag = 2] = "TemplateTag", t[t.OpenTag = 4] = "OpenTag", t[t.CloseTag = 8] = "CloseTag", t[t.ExpressionIndex = 16] = "ExpressionIndex";
|
|
2123
|
-
})(
|
|
2307
|
+
})(fs || (fs = {}));
|
|
2124
2308
|
(function(t) {
|
|
2125
2309
|
t[t.HTML = 0] = "HTML", t[t.SVG = 1] = "SVG", t[t.Math = 2] = "Math";
|
|
2126
|
-
})(
|
|
2310
|
+
})(ds || (ds = {}));
|
|
2127
2311
|
(function(t) {
|
|
2128
2312
|
t[t.Idle = 0] = "Idle", t[t.Immediate = 1] = "Immediate", t[t.Timer = 2] = "Timer", t[t.Hover = 3] = "Hover", t[t.Interaction = 4] = "Interaction", t[t.Viewport = 5] = "Viewport", t[t.Never = 6] = "Never";
|
|
2129
|
-
})(
|
|
2313
|
+
})(O || (O = {}));
|
|
2130
2314
|
(function(t) {
|
|
2131
2315
|
t[t.RootI18n = 0] = "RootI18n", t[t.Icu = 1] = "Icu", t[t.Attr = 2] = "Attr";
|
|
2132
|
-
})(
|
|
2316
|
+
})(ms || (ms = {}));
|
|
2133
2317
|
(function(t) {
|
|
2134
2318
|
t[t.NgTemplate = 0] = "NgTemplate", t[t.Structural = 1] = "Structural", t[t.Block = 2] = "Block";
|
|
2135
|
-
})(
|
|
2319
|
+
})(gs || (gs = {}));
|
|
2136
2320
|
(function(t) {
|
|
2137
|
-
t[t.None = 0] = "None", t[t.InChildOperation = 1] = "InChildOperation", t[t.InArrowFunctionOperation = 2] = "InArrowFunctionOperation";
|
|
2138
|
-
})(
|
|
2321
|
+
t[t.None = 0] = "None", t[t.InChildOperation = 1] = "InChildOperation", t[t.InArrowFunctionOperation = 2] = "InArrowFunctionOperation", t[t.InSafeNavigationMigration = 4] = "InSafeNavigationMigration";
|
|
2322
|
+
})(q || (q = {}));
|
|
2139
2323
|
l.Element, l.ElementStart, l.Container, l.ContainerStart, l.Template, l.RepeaterCreate, l.ConditionalCreate, l.ConditionalBranchCreate;
|
|
2140
2324
|
(function(t) {
|
|
2141
2325
|
t[t.Tmpl = 0] = "Tmpl", t[t.Host = 1] = "Host", t[t.Both = 2] = "Both";
|
|
2142
|
-
})(
|
|
2326
|
+
})(Es || (Es = {}));
|
|
2143
2327
|
(function(t) {
|
|
2144
2328
|
t[t.Full = 0] = "Full", t[t.DomOnly = 1] = "DomOnly";
|
|
2145
|
-
})(
|
|
2329
|
+
})(Cs || (Cs = {}));
|
|
2146
2330
|
c.ariaProperty, c.ariaProperty, c.attribute, c.attribute, c.classProp, c.classProp, c.element, c.element, c.elementContainer, c.elementContainer, c.elementContainerEnd, c.elementContainerEnd, c.elementContainerStart, c.elementContainerStart, c.elementEnd, c.elementEnd, c.elementStart, c.elementStart, c.domProperty, c.domProperty, c.i18nExp, c.i18nExp, c.listener, c.listener, c.listener, c.listener, c.property, c.property, c.styleProp, c.styleProp, c.syntheticHostListener, c.syntheticHostListener, c.syntheticHostProperty, c.syntheticHostProperty, c.templateCreate, c.templateCreate, c.twoWayProperty, c.twoWayProperty, c.twoWayListener, c.twoWayListener, c.declareLet, c.declareLet, c.conditionalCreate, c.conditionalBranchCreate, c.conditionalBranchCreate, c.conditionalBranchCreate, c.domElement, c.domElement, c.domElementStart, c.domElementStart, c.domElementEnd, c.domElementEnd, c.domElementContainer, c.domElementContainer, c.domElementContainerStart, c.domElementContainerStart, c.domElementContainerEnd, c.domElementContainerEnd, c.domListener, c.domListener, c.domTemplate, c.domTemplate, c.animationEnter, c.animationEnter, c.animationLeave, c.animationLeave, c.animationEnterListener, c.animationEnterListener, c.animationLeaveListener, c.animationLeaveListener;
|
|
2147
|
-
|
|
2331
|
+
p.And, p.Bigger, p.BiggerEquals, p.BitwiseOr, p.BitwiseAnd, p.Divide, p.Assign, p.Equals, p.Identical, p.Lower, p.LowerEquals, p.Minus, p.Modulo, p.Exponentiation, p.Multiply, p.NotEquals, p.NotIdentical, p.NullishCoalesce, p.Or, p.Plus, p.In, p.InstanceOf, p.AdditionAssignment, p.SubtractionAssignment, p.MultiplicationAssignment, p.DivisionAssignment, p.RemainderAssignment, p.ExponentiationAssignment, p.AndAssignment, p.OrAssignment, p.NullishCoalesceAssignment;
|
|
2148
2332
|
Object.freeze([]);
|
|
2333
|
+
l.Property, l.Property, l.Property, l.Attribute, l.Attribute, l.Property, l.TwoWayProperty;
|
|
2334
|
+
l.Container, l.ContainerStart, l.ContainerEnd, l.Element, l.ElementStart, l.ElementEnd, l.Template;
|
|
2149
2335
|
l.ElementEnd, l.ElementStart, l.Element, l.ContainerEnd, l.ContainerStart, l.Container, l.I18nEnd, l.I18nStart, l.I18n;
|
|
2150
2336
|
l.Pipe;
|
|
2151
|
-
|
|
2152
|
-
|
|
2337
|
+
Zr = {};
|
|
2338
|
+
Zr.ngsp = "";
|
|
2153
2339
|
(function(t) {
|
|
2154
2340
|
t.HEX = "hexadecimal", t.DEC = "decimal";
|
|
2155
|
-
})(
|
|
2156
|
-
|
|
2341
|
+
})(bs || (bs = {}));
|
|
2342
|
+
Ys = ` \f
|
|
2157
2343
|
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
|
|
2158
|
-
new RegExp(`[^${
|
|
2159
|
-
new RegExp(`[${
|
|
2344
|
+
new RegExp(`[^${Ys}]`);
|
|
2345
|
+
new RegExp(`[${Ys}]{2,}`, "g");
|
|
2160
2346
|
(function(t) {
|
|
2161
2347
|
t[t.Character = 0] = "Character", t[t.Identifier = 1] = "Identifier", t[t.PrivateIdentifier = 2] = "PrivateIdentifier", t[t.Keyword = 3] = "Keyword", t[t.String = 4] = "String", t[t.Operator = 5] = "Operator", t[t.Number = 6] = "Number", t[t.RegExpBody = 7] = "RegExpBody", t[t.RegExpFlags = 8] = "RegExpFlags", t[t.Error = 9] = "Error";
|
|
2162
2348
|
})(f || (f = {}));
|
|
2163
2349
|
(function(t) {
|
|
2164
2350
|
t[t.Plain = 0] = "Plain", t[t.TemplateLiteralPart = 1] = "TemplateLiteralPart", t[t.TemplateLiteralEnd = 2] = "TemplateLiteralEnd";
|
|
2165
|
-
})(
|
|
2166
|
-
|
|
2351
|
+
})(W || (W = {}));
|
|
2352
|
+
to = [
|
|
2167
2353
|
"var",
|
|
2168
2354
|
"let",
|
|
2169
2355
|
"as",
|
|
@@ -2178,18 +2364,18 @@ var init_angular = __esmMin((() => {
|
|
|
2178
2364
|
"void",
|
|
2179
2365
|
"in",
|
|
2180
2366
|
"instanceof"
|
|
2181
|
-
],
|
|
2367
|
+
], Oe = class {
|
|
2182
2368
|
tokenize(e) {
|
|
2183
|
-
return new
|
|
2369
|
+
return new rn(e).scan();
|
|
2184
2370
|
}
|
|
2185
|
-
},
|
|
2371
|
+
}, I = class {
|
|
2186
2372
|
index;
|
|
2187
2373
|
end;
|
|
2188
2374
|
type;
|
|
2189
2375
|
numValue;
|
|
2190
2376
|
strValue;
|
|
2191
|
-
constructor(e, n, s,
|
|
2192
|
-
this.index = e, this.end = n, this.type = s, this.numValue =
|
|
2377
|
+
constructor(e, n, s, i, r) {
|
|
2378
|
+
this.index = e, this.end = n, this.type = s, this.numValue = i, this.strValue = r;
|
|
2193
2379
|
}
|
|
2194
2380
|
isCharacter(e) {
|
|
2195
2381
|
return this.type === f.Character && this.numValue === e;
|
|
@@ -2258,10 +2444,10 @@ var init_angular = __esmMin((() => {
|
|
|
2258
2444
|
return this.type === f.Number ? this.numValue : -1;
|
|
2259
2445
|
}
|
|
2260
2446
|
isTemplateLiteralPart() {
|
|
2261
|
-
return this.isString() && this.kind ===
|
|
2447
|
+
return this.isString() && this.kind === W.TemplateLiteralPart;
|
|
2262
2448
|
}
|
|
2263
2449
|
isTemplateLiteralEnd() {
|
|
2264
|
-
return this.isString() && this.kind ===
|
|
2450
|
+
return this.isString() && this.kind === W.TemplateLiteralEnd;
|
|
2265
2451
|
}
|
|
2266
2452
|
isTemplateLiteralInterpolationStart() {
|
|
2267
2453
|
return this.isOperator("${");
|
|
@@ -2281,13 +2467,13 @@ var init_angular = __esmMin((() => {
|
|
|
2281
2467
|
default: return null;
|
|
2282
2468
|
}
|
|
2283
2469
|
}
|
|
2284
|
-
},
|
|
2470
|
+
}, Ae = class extends I {
|
|
2285
2471
|
kind;
|
|
2286
|
-
constructor(e, n, s,
|
|
2287
|
-
super(e, n, f.String, 0, s), this.kind =
|
|
2472
|
+
constructor(e, n, s, i) {
|
|
2473
|
+
super(e, n, f.String, 0, s), this.kind = i;
|
|
2288
2474
|
}
|
|
2289
2475
|
};
|
|
2290
|
-
|
|
2476
|
+
be = new I(-1, -1, f.Character, 0, ""), rn = class {
|
|
2291
2477
|
input;
|
|
2292
2478
|
tokens = [];
|
|
2293
2479
|
length;
|
|
@@ -2303,204 +2489,204 @@ var init_angular = __esmMin((() => {
|
|
|
2303
2489
|
return this.tokens;
|
|
2304
2490
|
}
|
|
2305
2491
|
advance() {
|
|
2306
|
-
this.peek = ++this.index >= this.length ?
|
|
2492
|
+
this.peek = ++this.index >= this.length ? Ee : this.input.charCodeAt(this.index);
|
|
2307
2493
|
}
|
|
2308
2494
|
scanToken() {
|
|
2309
|
-
let e = this.input, n = this.length, s = this.peek,
|
|
2310
|
-
for (; s <=
|
|
2311
|
-
s =
|
|
2495
|
+
let e = this.input, n = this.length, s = this.peek, i = this.index;
|
|
2496
|
+
for (; s <= Vs;) if (++i >= n) {
|
|
2497
|
+
s = Ee;
|
|
2312
2498
|
break;
|
|
2313
|
-
} else s = e.charCodeAt(
|
|
2314
|
-
if (this.peek = s, this.index =
|
|
2315
|
-
if (
|
|
2316
|
-
if (
|
|
2317
|
-
let
|
|
2499
|
+
} else s = e.charCodeAt(i);
|
|
2500
|
+
if (this.peek = s, this.index = i, i >= n) return null;
|
|
2501
|
+
if (Ts(s)) return this.scanIdentifier();
|
|
2502
|
+
if (X(s)) return this.scanNumber(i);
|
|
2503
|
+
let r = i;
|
|
2318
2504
|
switch (s) {
|
|
2319
|
-
case
|
|
2320
|
-
case X:
|
|
2321
|
-
case N:
|
|
2322
|
-
case ie:
|
|
2505
|
+
case G: return this.advance(), X(this.peek) ? this.scanNumber(r) : this.peek !== G ? Ce(r, this.index, G) : (this.advance(), this.peek === G ? (this.advance(), F(r, this.index, "...")) : this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0));
|
|
2323
2506
|
case Q:
|
|
2324
|
-
case
|
|
2507
|
+
case L:
|
|
2508
|
+
case ce:
|
|
2509
|
+
case Z:
|
|
2510
|
+
case V:
|
|
2325
2511
|
case J:
|
|
2326
|
-
case
|
|
2327
|
-
case
|
|
2328
|
-
case
|
|
2329
|
-
case
|
|
2330
|
-
case
|
|
2331
|
-
case
|
|
2332
|
-
case
|
|
2333
|
-
case
|
|
2334
|
-
case
|
|
2335
|
-
case
|
|
2336
|
-
case
|
|
2337
|
-
case
|
|
2338
|
-
case
|
|
2339
|
-
case
|
|
2340
|
-
case
|
|
2341
|
-
case
|
|
2342
|
-
case
|
|
2343
|
-
case
|
|
2344
|
-
case
|
|
2345
|
-
case
|
|
2346
|
-
case
|
|
2347
|
-
for (;
|
|
2512
|
+
case Te: return this.scanCharacter(r, s);
|
|
2513
|
+
case Ne: return this.scanOpenBrace(r, s);
|
|
2514
|
+
case oe: return this.scanCloseBrace(r, s);
|
|
2515
|
+
case Us:
|
|
2516
|
+
case Hs: return this.scanString();
|
|
2517
|
+
case Zt: return this.advance(), this.scanTemplateLiteralPart(r);
|
|
2518
|
+
case Tr: return this.scanPrivateIdentifier();
|
|
2519
|
+
case Ws: return this.scanComplexOperator(r, "+", C, "=");
|
|
2520
|
+
case qs: return this.scanComplexOperator(r, "-", C, "=");
|
|
2521
|
+
case Ke: return this.isStartOfRegex() ? this.scanRegex(i) : this.scanComplexOperator(r, "/", C, "=");
|
|
2522
|
+
case kr: return this.scanComplexOperator(r, "%", C, "=");
|
|
2523
|
+
case Pr: return this.scanOperator(r, "^");
|
|
2524
|
+
case ts: return this.scanStar(r);
|
|
2525
|
+
case ss: return this.scanQuestion(r);
|
|
2526
|
+
case _r:
|
|
2527
|
+
case ns: return this.scanComplexOperator(r, String.fromCharCode(s), C, "=");
|
|
2528
|
+
case br: return this.scanComplexOperator(r, "!", C, "=", C, "=");
|
|
2529
|
+
case C: return this.scanEquals(r);
|
|
2530
|
+
case es: return this.scanComplexOperator(r, "&", es, "&", C, "=");
|
|
2531
|
+
case is: return this.scanComplexOperator(r, "|", is, "|", C, "=");
|
|
2532
|
+
case Gs:
|
|
2533
|
+
for (; Fr(this.peek);) this.advance();
|
|
2348
2534
|
return this.scanToken();
|
|
2349
2535
|
}
|
|
2350
2536
|
return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
|
|
2351
2537
|
}
|
|
2352
2538
|
scanCharacter(e, n) {
|
|
2353
|
-
return this.advance(),
|
|
2539
|
+
return this.advance(), Ce(e, this.index, n);
|
|
2354
2540
|
}
|
|
2355
2541
|
scanOperator(e, n) {
|
|
2356
|
-
return this.advance(),
|
|
2542
|
+
return this.advance(), F(e, this.index, n);
|
|
2357
2543
|
}
|
|
2358
2544
|
scanOpenBrace(e, n) {
|
|
2359
|
-
return this.braceStack.push("expression"), this.advance(),
|
|
2545
|
+
return this.braceStack.push("expression"), this.advance(), Ce(e, this.index, n);
|
|
2360
2546
|
}
|
|
2361
2547
|
scanCloseBrace(e, n) {
|
|
2362
|
-
return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(
|
|
2548
|
+
return this.advance(), this.braceStack.pop() === "interpolation" ? (this.tokens.push(Ce(e, this.index, oe)), this.scanTemplateLiteralPart(this.index)) : Ce(e, this.index, n);
|
|
2363
2549
|
}
|
|
2364
|
-
scanComplexOperator(e, n, s,
|
|
2550
|
+
scanComplexOperator(e, n, s, i, r, a) {
|
|
2365
2551
|
this.advance();
|
|
2366
|
-
let
|
|
2367
|
-
return this.peek == s && (this.advance(),
|
|
2552
|
+
let u = n;
|
|
2553
|
+
return this.peek == s && (this.advance(), u += i), r != null && this.peek == r && (this.advance(), u += a), F(e, this.index, u);
|
|
2368
2554
|
}
|
|
2369
2555
|
scanEquals(e) {
|
|
2370
2556
|
this.advance();
|
|
2371
2557
|
let n = "=";
|
|
2372
|
-
if (this.peek ===
|
|
2373
|
-
else if (this.peek ===
|
|
2374
|
-
return this.peek ===
|
|
2558
|
+
if (this.peek === C) this.advance(), n += "=";
|
|
2559
|
+
else if (this.peek === ns) return this.advance(), n += ">", F(e, this.index, n);
|
|
2560
|
+
return this.peek === C && (this.advance(), n += "="), F(e, this.index, n);
|
|
2375
2561
|
}
|
|
2376
2562
|
scanIdentifier() {
|
|
2377
2563
|
let e = this.index;
|
|
2378
|
-
for (this.advance();
|
|
2564
|
+
for (this.advance(); ks(this.peek);) this.advance();
|
|
2379
2565
|
let n = this.input.substring(e, this.index);
|
|
2380
|
-
return
|
|
2566
|
+
return to.indexOf(n) > -1 ? io(e, this.index, n) : no(e, this.index, n);
|
|
2381
2567
|
}
|
|
2382
2568
|
scanPrivateIdentifier() {
|
|
2383
2569
|
let e = this.index;
|
|
2384
|
-
if (this.advance(), !
|
|
2385
|
-
for (;
|
|
2570
|
+
if (this.advance(), !Ts(this.peek)) return this.error("Invalid character [#]", -1);
|
|
2571
|
+
for (; ks(this.peek);) this.advance();
|
|
2386
2572
|
let n = this.input.substring(e, this.index);
|
|
2387
|
-
return
|
|
2573
|
+
return so(e, this.index, n);
|
|
2388
2574
|
}
|
|
2389
2575
|
scanNumber(e) {
|
|
2390
2576
|
let n = this.index === e, s = !1;
|
|
2391
2577
|
for (this.advance();;) {
|
|
2392
|
-
if (!
|
|
2393
|
-
if (!
|
|
2578
|
+
if (!X(this.peek)) if (this.peek === at) {
|
|
2579
|
+
if (!X(this.input.charCodeAt(this.index - 1)) || !X(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
|
|
2394
2580
|
s = !0;
|
|
2395
|
-
} else if (this.peek ===
|
|
2396
|
-
else if (
|
|
2397
|
-
if (this.advance(),
|
|
2581
|
+
} else if (this.peek === G) n = !1;
|
|
2582
|
+
else if (co(this.peek)) {
|
|
2583
|
+
if (this.advance(), uo(this.peek) && this.advance(), !X(this.peek)) return this.error("Invalid exponent", -1);
|
|
2398
2584
|
n = !1;
|
|
2399
2585
|
} else break;
|
|
2400
2586
|
this.advance();
|
|
2401
2587
|
}
|
|
2402
|
-
let
|
|
2403
|
-
s && (
|
|
2404
|
-
let
|
|
2405
|
-
return
|
|
2588
|
+
let i = this.input.substring(e, this.index);
|
|
2589
|
+
s && (i = i.replace(/_/g, ""));
|
|
2590
|
+
let r = n ? ho(i) : parseFloat(i);
|
|
2591
|
+
return ro(e, this.index, r);
|
|
2406
2592
|
}
|
|
2407
2593
|
scanString() {
|
|
2408
2594
|
let e = this.index, n = this.peek;
|
|
2409
2595
|
this.advance();
|
|
2410
|
-
let s = "",
|
|
2411
|
-
for (; this.peek != n;) if (this.peek ==
|
|
2412
|
-
let
|
|
2413
|
-
if (typeof
|
|
2414
|
-
s =
|
|
2596
|
+
let s = "", i = this.index, r = this.input;
|
|
2597
|
+
for (; this.peek != n;) if (this.peek == St) {
|
|
2598
|
+
let u = this.scanStringBackslash(s, i);
|
|
2599
|
+
if (typeof u != "string") return u;
|
|
2600
|
+
s = u, i = this.index;
|
|
2415
2601
|
} else {
|
|
2416
|
-
if (this.peek ==
|
|
2602
|
+
if (this.peek == Ee) return this.error("Unterminated quote", 0);
|
|
2417
2603
|
this.advance();
|
|
2418
2604
|
}
|
|
2419
|
-
let a =
|
|
2420
|
-
return this.advance(), new
|
|
2605
|
+
let a = r.substring(i, this.index);
|
|
2606
|
+
return this.advance(), new Ae(e, this.index, s + a, W.Plain);
|
|
2421
2607
|
}
|
|
2422
2608
|
scanQuestion(e) {
|
|
2423
2609
|
this.advance();
|
|
2424
2610
|
let n = "?";
|
|
2425
|
-
return this.peek ===
|
|
2611
|
+
return this.peek === ss ? (n += "?", this.advance(), this.peek === C && (n += "=", this.advance())) : this.peek === G && (n += ".", this.advance()), F(e, this.index, n);
|
|
2426
2612
|
}
|
|
2427
2613
|
scanTemplateLiteralPart(e) {
|
|
2428
2614
|
let n = "", s = this.index;
|
|
2429
|
-
for (; this.peek !==
|
|
2430
|
-
let
|
|
2431
|
-
if (typeof
|
|
2432
|
-
n =
|
|
2433
|
-
} else if (this.peek ===
|
|
2434
|
-
let
|
|
2435
|
-
if (this.advance(), this.peek ===
|
|
2615
|
+
for (; this.peek !== Zt;) if (this.peek === St) {
|
|
2616
|
+
let r = this.scanStringBackslash(n, s);
|
|
2617
|
+
if (typeof r != "string") return r;
|
|
2618
|
+
n = r, s = this.index;
|
|
2619
|
+
} else if (this.peek === un) {
|
|
2620
|
+
let r = this.index;
|
|
2621
|
+
if (this.advance(), this.peek === Ne) return this.braceStack.push("interpolation"), this.tokens.push(new Ae(e, r, n + this.input.substring(s, r), W.TemplateLiteralPart)), this.advance(), F(r, this.index, this.input.substring(r, this.index));
|
|
2436
2622
|
} else {
|
|
2437
|
-
if (this.peek ===
|
|
2623
|
+
if (this.peek === Ee) return this.error("Unterminated template literal", 0);
|
|
2438
2624
|
this.advance();
|
|
2439
2625
|
}
|
|
2440
|
-
let
|
|
2441
|
-
return this.advance(), new
|
|
2626
|
+
let i = this.input.substring(s, this.index);
|
|
2627
|
+
return this.advance(), new Ae(e, this.index, n + i, W.TemplateLiteralEnd);
|
|
2442
2628
|
}
|
|
2443
2629
|
error(e, n) {
|
|
2444
2630
|
let s = this.index + n;
|
|
2445
|
-
return
|
|
2631
|
+
return oo(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
|
|
2446
2632
|
}
|
|
2447
2633
|
scanStringBackslash(e, n) {
|
|
2448
2634
|
e += this.input.substring(n, this.index);
|
|
2449
2635
|
let s;
|
|
2450
|
-
if (this.advance(), this.peek ===
|
|
2451
|
-
let
|
|
2452
|
-
if (/^[0-9a-f]+$/i.test(
|
|
2453
|
-
else return this.error(`Invalid unicode escape [\\u${
|
|
2454
|
-
for (let
|
|
2455
|
-
} else s =
|
|
2636
|
+
if (this.advance(), this.peek === Dr) {
|
|
2637
|
+
let i = this.input.substring(this.index + 1, this.index + 5);
|
|
2638
|
+
if (/^[0-9a-f]+$/i.test(i)) s = parseInt(i, 16);
|
|
2639
|
+
else return this.error(`Invalid unicode escape [\\u${i}]`, 0);
|
|
2640
|
+
for (let r = 0; r < 5; r++) this.advance();
|
|
2641
|
+
} else s = po(this.peek), this.advance();
|
|
2456
2642
|
return e += String.fromCharCode(s), e;
|
|
2457
2643
|
}
|
|
2458
2644
|
scanStar(e) {
|
|
2459
2645
|
this.advance();
|
|
2460
2646
|
let n = "*";
|
|
2461
|
-
return this.peek ===
|
|
2647
|
+
return this.peek === ts ? (n += "*", this.advance(), this.peek === C && (n += "=", this.advance())) : this.peek === C && (n += "=", this.advance()), F(e, this.index, n);
|
|
2462
2648
|
}
|
|
2463
2649
|
isStartOfRegex() {
|
|
2464
2650
|
if (this.tokens.length === 0) return !0;
|
|
2465
2651
|
let e = this.tokens[this.tokens.length - 1];
|
|
2466
2652
|
if (e.isOperator("!")) {
|
|
2467
2653
|
let n = this.tokens.length > 1 ? this.tokens[this.tokens.length - 2] : null;
|
|
2468
|
-
return n === null || n.type !== f.Identifier && !n.isCharacter(
|
|
2654
|
+
return n === null || n.type !== f.Identifier && !n.isCharacter(L) && !n.isCharacter(Z);
|
|
2469
2655
|
}
|
|
2470
|
-
return e.type === f.Operator || e.isCharacter(
|
|
2656
|
+
return e.type === f.Operator || e.isCharacter(Q) || e.isCharacter(ce) || e.isCharacter(V) || e.isCharacter(J);
|
|
2471
2657
|
}
|
|
2472
2658
|
scanRegex(e) {
|
|
2473
2659
|
this.advance();
|
|
2474
|
-
let n = this.index, s = !1,
|
|
2660
|
+
let n = this.index, s = !1, i = !1;
|
|
2475
2661
|
for (;;) {
|
|
2476
2662
|
let h = this.peek;
|
|
2477
|
-
if (h ===
|
|
2663
|
+
if (h === Ee) return this.error("Unterminated regular expression", 0);
|
|
2478
2664
|
if (s) s = !1;
|
|
2479
|
-
else if (h ===
|
|
2480
|
-
else if (h ===
|
|
2481
|
-
else if (h ===
|
|
2482
|
-
else if (h ===
|
|
2665
|
+
else if (h === St) s = !0;
|
|
2666
|
+
else if (h === ce) i = !0;
|
|
2667
|
+
else if (h === Z) i = !1;
|
|
2668
|
+
else if (h === Ke && !i) break;
|
|
2483
2669
|
this.advance();
|
|
2484
2670
|
}
|
|
2485
|
-
let
|
|
2671
|
+
let r = this.input.substring(n, this.index);
|
|
2486
2672
|
this.advance();
|
|
2487
|
-
let a =
|
|
2488
|
-
return
|
|
2673
|
+
let a = ao(e, this.index, r), u = this.scanRegexFlags(this.index);
|
|
2674
|
+
return u !== null ? (this.tokens.push(a), u) : a;
|
|
2489
2675
|
}
|
|
2490
2676
|
scanRegexFlags(e) {
|
|
2491
|
-
if (!
|
|
2492
|
-
for (;
|
|
2493
|
-
return
|
|
2677
|
+
if (!en(this.peek)) return null;
|
|
2678
|
+
for (; en(this.peek);) this.advance();
|
|
2679
|
+
return lo(e, this.index, this.input.substring(e, this.index));
|
|
2494
2680
|
}
|
|
2495
2681
|
};
|
|
2496
|
-
|
|
2682
|
+
on = class {
|
|
2497
2683
|
strings;
|
|
2498
2684
|
expressions;
|
|
2499
2685
|
offsets;
|
|
2500
2686
|
constructor(e, n, s) {
|
|
2501
2687
|
this.strings = e, this.expressions = n, this.offsets = s;
|
|
2502
2688
|
}
|
|
2503
|
-
},
|
|
2689
|
+
}, an = class {
|
|
2504
2690
|
templateBindings;
|
|
2505
2691
|
warnings;
|
|
2506
2692
|
errors;
|
|
@@ -2508,103 +2694,103 @@ var init_angular = __esmMin((() => {
|
|
|
2508
2694
|
this.templateBindings = e, this.warnings = n, this.errors = s;
|
|
2509
2695
|
}
|
|
2510
2696
|
};
|
|
2511
|
-
|
|
2697
|
+
ge = class {
|
|
2512
2698
|
_lexer;
|
|
2513
2699
|
_supportsDirectPipeReferences;
|
|
2514
2700
|
constructor(e, n = !1) {
|
|
2515
2701
|
this._lexer = e, this._supportsDirectPipeReferences = n;
|
|
2516
2702
|
}
|
|
2517
2703
|
parseAction(e, n, s) {
|
|
2518
|
-
let
|
|
2519
|
-
this._checkNoInterpolation(
|
|
2520
|
-
let { stripped:
|
|
2521
|
-
return new U(new Y(e, n, s, this._lexer.tokenize(
|
|
2704
|
+
let i = [];
|
|
2705
|
+
this._checkNoInterpolation(i, e, n);
|
|
2706
|
+
let { stripped: r } = this._stripComments(e);
|
|
2707
|
+
return new U(new Y(e, n, s, this._lexer.tokenize(r), 1, i, 0, this._supportsDirectPipeReferences).parseChain(), e, H(n), s, i);
|
|
2522
2708
|
}
|
|
2523
2709
|
parseBinding(e, n, s) {
|
|
2524
|
-
let
|
|
2525
|
-
return new U(this._parseBindingAst(e, n, s,
|
|
2710
|
+
let i = [];
|
|
2711
|
+
return new U(this._parseBindingAst(e, n, s, i), e, H(n), s, i);
|
|
2526
2712
|
}
|
|
2527
2713
|
checkSimpleExpression(e) {
|
|
2528
|
-
let n = new
|
|
2714
|
+
let n = new ln();
|
|
2529
2715
|
return e.visit(n), n.errors;
|
|
2530
2716
|
}
|
|
2531
2717
|
parseSimpleBinding(e, n, s) {
|
|
2532
|
-
let
|
|
2533
|
-
return a.length > 0 &&
|
|
2718
|
+
let i = [], r = this._parseBindingAst(e, n, s, i), a = this.checkSimpleExpression(r);
|
|
2719
|
+
return a.length > 0 && i.push(le(`Host binding expression cannot contain ${a.join(" ")}`, e, "", n)), new U(r, e, H(n), s, i);
|
|
2534
2720
|
}
|
|
2535
|
-
_parseBindingAst(e, n, s,
|
|
2536
|
-
this._checkNoInterpolation(
|
|
2537
|
-
let { stripped:
|
|
2538
|
-
return new Y(e, n, s, this._lexer.tokenize(
|
|
2721
|
+
_parseBindingAst(e, n, s, i) {
|
|
2722
|
+
this._checkNoInterpolation(i, e, n);
|
|
2723
|
+
let { stripped: r } = this._stripComments(e);
|
|
2724
|
+
return new Y(e, n, s, this._lexer.tokenize(r), 0, i, 0, this._supportsDirectPipeReferences).parseChain();
|
|
2539
2725
|
}
|
|
2540
|
-
parseTemplateBindings(e, n, s,
|
|
2541
|
-
return new Y(n, s,
|
|
2726
|
+
parseTemplateBindings(e, n, s, i, r) {
|
|
2727
|
+
return new Y(n, s, r, this._lexer.tokenize(n), 0, [], 0, this._supportsDirectPipeReferences).parseTemplateBindings({
|
|
2542
2728
|
source: e,
|
|
2543
|
-
span: new
|
|
2729
|
+
span: new D(i, i + e.length)
|
|
2544
2730
|
});
|
|
2545
2731
|
}
|
|
2546
|
-
parseInterpolation(e, n, s,
|
|
2547
|
-
let
|
|
2548
|
-
if (
|
|
2732
|
+
parseInterpolation(e, n, s, i) {
|
|
2733
|
+
let r = [], { strings: a, expressions: u, offsets: h } = this.splitInterpolation(e, n, r, i);
|
|
2734
|
+
if (u.length === 0) return null;
|
|
2549
2735
|
let d = [];
|
|
2550
|
-
for (let
|
|
2551
|
-
let
|
|
2552
|
-
if (
|
|
2553
|
-
|
|
2736
|
+
for (let g = 0; g < u.length; ++g) {
|
|
2737
|
+
let P = i?.[g * 2 + 1]?.sourceSpan, k = u[g].text, { stripped: _, hasComments: b } = this._stripComments(k), j = this._lexer.tokenize(_);
|
|
2738
|
+
if (b && _.trim().length === 0 && j.length === 0) {
|
|
2739
|
+
r.push(le("Interpolation expression cannot only contain a comment", e, `at column ${u[g].start} in`, n));
|
|
2554
2740
|
continue;
|
|
2555
2741
|
}
|
|
2556
|
-
let
|
|
2557
|
-
d.push(
|
|
2742
|
+
let xe = new Y(P ? k : e, P || n, s, j, 0, r, h[g], this._supportsDirectPipeReferences).parseChain();
|
|
2743
|
+
d.push(xe);
|
|
2558
2744
|
}
|
|
2559
|
-
return this.createInterpolationAst(a.map((
|
|
2745
|
+
return this.createInterpolationAst(a.map((g) => g.text), d, e, H(n), s, r);
|
|
2560
2746
|
}
|
|
2561
2747
|
parseInterpolationExpression(e, n, s) {
|
|
2562
|
-
let { stripped:
|
|
2563
|
-
return this.createInterpolationAst(["", ""], [
|
|
2564
|
-
}
|
|
2565
|
-
createInterpolationAst(e, n, s,
|
|
2566
|
-
let
|
|
2567
|
-
return new U(new
|
|
2568
|
-
}
|
|
2569
|
-
splitInterpolation(e, n, s,
|
|
2570
|
-
let
|
|
2571
|
-
for (; d < e.length;) if (
|
|
2572
|
-
let
|
|
2573
|
-
if (
|
|
2574
|
-
|
|
2748
|
+
let { stripped: i } = this._stripComments(e), r = this._lexer.tokenize(i), a = [], u = new Y(e, n, s, r, 0, a, 0, this._supportsDirectPipeReferences).parseChain();
|
|
2749
|
+
return this.createInterpolationAst(["", ""], [u], e, H(n), s, a);
|
|
2750
|
+
}
|
|
2751
|
+
createInterpolationAst(e, n, s, i, r, a) {
|
|
2752
|
+
let u = new ee(0, s.length);
|
|
2753
|
+
return new U(new Sr(u, u.toAbsolute(r), e, n), s, i, r, a);
|
|
2754
|
+
}
|
|
2755
|
+
splitInterpolation(e, n, s, i) {
|
|
2756
|
+
let r = [], a = [], u = [], h = i ? fo(i) : null, d = 0, g = !1, P = !1, k = "{{", _ = "}}";
|
|
2757
|
+
for (; d < e.length;) if (g) {
|
|
2758
|
+
let b = d, j = b + 2, xe = this._getInterpolationEndIndex(e, _, j);
|
|
2759
|
+
if (xe === -1) {
|
|
2760
|
+
g = !1, P = !0;
|
|
2575
2761
|
break;
|
|
2576
2762
|
}
|
|
2577
|
-
let
|
|
2578
|
-
|
|
2579
|
-
text:
|
|
2580
|
-
start:
|
|
2581
|
-
end:
|
|
2763
|
+
let bn = xe + 2, Tn = e.substring(j, xe);
|
|
2764
|
+
Tn.trim().length === 0 && s.push(le("Blank expressions are not allowed in interpolated strings", e, `at column ${d} in`, n)), a.push({
|
|
2765
|
+
text: Tn,
|
|
2766
|
+
start: b,
|
|
2767
|
+
end: bn
|
|
2582
2768
|
});
|
|
2583
|
-
let
|
|
2584
|
-
|
|
2769
|
+
let ar = (h?.get(b) ?? b) + 2;
|
|
2770
|
+
u.push(ar), d = bn, g = !1;
|
|
2585
2771
|
} else {
|
|
2586
|
-
let
|
|
2772
|
+
let b = d;
|
|
2587
2773
|
d = e.indexOf(k, d), d === -1 && (d = e.length);
|
|
2588
|
-
let
|
|
2589
|
-
|
|
2590
|
-
text:
|
|
2591
|
-
start:
|
|
2774
|
+
let j = e.substring(b, d);
|
|
2775
|
+
r.push({
|
|
2776
|
+
text: j,
|
|
2777
|
+
start: b,
|
|
2592
2778
|
end: d
|
|
2593
|
-
}),
|
|
2779
|
+
}), g = !0;
|
|
2594
2780
|
}
|
|
2595
|
-
if (!
|
|
2596
|
-
let
|
|
2597
|
-
|
|
2598
|
-
} else
|
|
2781
|
+
if (!g) if (P) {
|
|
2782
|
+
let b = r[r.length - 1];
|
|
2783
|
+
b.text += e.substring(d), b.end = e.length;
|
|
2784
|
+
} else r.push({
|
|
2599
2785
|
text: e.substring(d),
|
|
2600
2786
|
start: d,
|
|
2601
2787
|
end: e.length
|
|
2602
2788
|
});
|
|
2603
|
-
return new
|
|
2789
|
+
return new on(r, a, u);
|
|
2604
2790
|
}
|
|
2605
2791
|
wrapLiteralPrimitive(e, n, s) {
|
|
2606
|
-
let
|
|
2607
|
-
return new U(new
|
|
2792
|
+
let i = new ee(0, e == null ? 0 : e.length);
|
|
2793
|
+
return new U(new A(i, i.toAbsolute(s), e), e, typeof n == "string" ? n : H(n), s, []);
|
|
2608
2794
|
}
|
|
2609
2795
|
_stripComments(e) {
|
|
2610
2796
|
let n = this._commentStart(e);
|
|
@@ -2619,37 +2805,37 @@ var init_angular = __esmMin((() => {
|
|
|
2619
2805
|
_commentStart(e) {
|
|
2620
2806
|
let n = null;
|
|
2621
2807
|
for (let s = 0; s < e.length - 1; s++) {
|
|
2622
|
-
let
|
|
2623
|
-
if (
|
|
2624
|
-
n ===
|
|
2808
|
+
let i = e.charCodeAt(s), r = e.charCodeAt(s + 1);
|
|
2809
|
+
if (i === Ke && r == Ke && n == null) return s;
|
|
2810
|
+
n === i ? n = null : n == null && rs(i) && (n = i);
|
|
2625
2811
|
}
|
|
2626
2812
|
return null;
|
|
2627
2813
|
}
|
|
2628
2814
|
_checkNoInterpolation(e, n, s) {
|
|
2629
|
-
let
|
|
2630
|
-
for (let a of this._forEachUnquotedChar(n, 0)) if (
|
|
2631
|
-
else if (
|
|
2632
|
-
|
|
2815
|
+
let i = -1, r = -1;
|
|
2816
|
+
for (let a of this._forEachUnquotedChar(n, 0)) if (i === -1) n.startsWith("{{") && (i = a);
|
|
2817
|
+
else if (r = this._getInterpolationEndIndex(n, "}}", a), r > -1) break;
|
|
2818
|
+
i > -1 && r > -1 && e.push(le("Got interpolation ({{}}) where expression was expected", n, `at column ${i} in`, s));
|
|
2633
2819
|
}
|
|
2634
2820
|
_getInterpolationEndIndex(e, n, s) {
|
|
2635
|
-
for (let
|
|
2636
|
-
if (e.startsWith(n,
|
|
2637
|
-
if (e.startsWith("//",
|
|
2821
|
+
for (let i of this._forEachUnquotedChar(e, s)) {
|
|
2822
|
+
if (e.startsWith(n, i)) return i;
|
|
2823
|
+
if (e.startsWith("//", i)) return e.indexOf(n, i);
|
|
2638
2824
|
}
|
|
2639
2825
|
return -1;
|
|
2640
2826
|
}
|
|
2641
2827
|
*_forEachUnquotedChar(e, n) {
|
|
2642
|
-
let s = null,
|
|
2643
|
-
for (let
|
|
2644
|
-
let a = e[
|
|
2645
|
-
|
|
2828
|
+
let s = null, i = 0;
|
|
2829
|
+
for (let r = n; r < e.length; r++) {
|
|
2830
|
+
let a = e[r];
|
|
2831
|
+
rs(e.charCodeAt(r)) && (s === null || s === a) && i % 2 === 0 ? s = s === null ? a : null : s === null && (yield r), i = a === "\\" ? i + 1 : 0;
|
|
2646
2832
|
}
|
|
2647
2833
|
}
|
|
2648
2834
|
};
|
|
2649
2835
|
(function(t) {
|
|
2650
2836
|
t[t.None = 0] = "None", t[t.Writable = 1] = "Writable";
|
|
2651
|
-
})(
|
|
2652
|
-
|
|
2837
|
+
})(ae || (ae = {}));
|
|
2838
|
+
_s = /* @__PURE__ */ new Set([
|
|
2653
2839
|
"d",
|
|
2654
2840
|
"g",
|
|
2655
2841
|
"i",
|
|
@@ -2670,15 +2856,15 @@ var init_angular = __esmMin((() => {
|
|
|
2670
2856
|
rparensExpected = 0;
|
|
2671
2857
|
rbracketsExpected = 0;
|
|
2672
2858
|
rbracesExpected = 0;
|
|
2673
|
-
context =
|
|
2859
|
+
context = ae.None;
|
|
2674
2860
|
sourceSpanCache = /* @__PURE__ */ new Map();
|
|
2675
2861
|
index = 0;
|
|
2676
|
-
constructor(e, n, s,
|
|
2677
|
-
this.input = e, this.parseSourceSpan = n, this.absoluteOffset = s, this.tokens =
|
|
2862
|
+
constructor(e, n, s, i, r, a, u, h) {
|
|
2863
|
+
this.input = e, this.parseSourceSpan = n, this.absoluteOffset = s, this.tokens = i, this.parseFlags = r, this.errors = a, this.offset = u, this.supportsDirectPipeReferences = h;
|
|
2678
2864
|
}
|
|
2679
2865
|
peek(e) {
|
|
2680
2866
|
let n = this.index + e;
|
|
2681
|
-
return n < this.tokens.length ? this.tokens[n] :
|
|
2867
|
+
return n < this.tokens.length ? this.tokens[n] : be;
|
|
2682
2868
|
}
|
|
2683
2869
|
get next() {
|
|
2684
2870
|
return this.peek(0);
|
|
@@ -2698,10 +2884,10 @@ var init_angular = __esmMin((() => {
|
|
|
2698
2884
|
span(e, n) {
|
|
2699
2885
|
let s = this.currentEndIndex;
|
|
2700
2886
|
if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
|
|
2701
|
-
let
|
|
2702
|
-
s = e, e =
|
|
2887
|
+
let i = s;
|
|
2888
|
+
s = e, e = i;
|
|
2703
2889
|
}
|
|
2704
|
-
return new
|
|
2890
|
+
return new ee(e, s);
|
|
2705
2891
|
}
|
|
2706
2892
|
sourceSpan(e, n) {
|
|
2707
2893
|
let s = `${e}@${this.inputIndex}:${n}`;
|
|
@@ -2737,7 +2923,7 @@ var init_angular = __esmMin((() => {
|
|
|
2737
2923
|
this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
|
|
2738
2924
|
}
|
|
2739
2925
|
prettyPrintToken(e) {
|
|
2740
|
-
return e ===
|
|
2926
|
+
return e === be ? "end of input" : `token ${e}`;
|
|
2741
2927
|
}
|
|
2742
2928
|
expectIdentifierOrKeyword() {
|
|
2743
2929
|
let e = this.next;
|
|
@@ -2751,33 +2937,33 @@ var init_angular = __esmMin((() => {
|
|
|
2751
2937
|
let e = [], n = this.inputIndex;
|
|
2752
2938
|
for (; this.index < this.tokens.length;) {
|
|
2753
2939
|
let s = this.parsePipe();
|
|
2754
|
-
if (e.push(s), this.consumeOptionalCharacter(
|
|
2940
|
+
if (e.push(s), this.consumeOptionalCharacter(Te)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(Te););
|
|
2755
2941
|
else if (this.index < this.tokens.length) {
|
|
2756
|
-
let
|
|
2757
|
-
if (this.error(`Unexpected token '${this.next}'`), this.index ===
|
|
2942
|
+
let i = this.index;
|
|
2943
|
+
if (this.error(`Unexpected token '${this.next}'`), this.index === i) break;
|
|
2758
2944
|
}
|
|
2759
2945
|
}
|
|
2760
2946
|
if (e.length === 0) {
|
|
2761
|
-
let s = this.offset,
|
|
2762
|
-
return new
|
|
2947
|
+
let s = this.offset, i = this.offset + this.input.length;
|
|
2948
|
+
return new N(this.span(s, i), this.sourceSpan(s, i));
|
|
2763
2949
|
}
|
|
2764
|
-
return e.length == 1 ? e[0] : new
|
|
2950
|
+
return e.length == 1 ? e[0] : new Ft(this.span(n), this.sourceSpan(n), e);
|
|
2765
2951
|
}
|
|
2766
2952
|
parsePipe() {
|
|
2767
2953
|
let e = this.inputIndex, n = this.parseExpression();
|
|
2768
2954
|
if (this.consumeOptionalOperator("|")) {
|
|
2769
2955
|
this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
|
|
2770
2956
|
do {
|
|
2771
|
-
let s = this.inputIndex,
|
|
2772
|
-
|
|
2773
|
-
let
|
|
2774
|
-
for (; this.consumeOptionalCharacter(J);)
|
|
2957
|
+
let s = this.inputIndex, i = this.expectIdentifierOrKeyword(), r, a;
|
|
2958
|
+
i !== null ? r = this.sourceSpan(s) : (i = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, r = new ee(a, a).toAbsolute(this.absoluteOffset));
|
|
2959
|
+
let u = [];
|
|
2960
|
+
for (; this.consumeOptionalCharacter(J);) u.push(this.parseExpression());
|
|
2775
2961
|
let h;
|
|
2776
2962
|
if (this.supportsDirectPipeReferences) {
|
|
2777
|
-
let d =
|
|
2778
|
-
h = d ===
|
|
2779
|
-
} else h =
|
|
2780
|
-
n = new
|
|
2963
|
+
let d = i.charCodeAt(0);
|
|
2964
|
+
h = d === at || d >= pn && d <= hn ? _e.ReferencedDirectly : _e.ReferencedByName;
|
|
2965
|
+
} else h = _e.ReferencedByName;
|
|
2966
|
+
n = new Wt(this.span(e), this.sourceSpan(e, a), n, i, u, h, r);
|
|
2781
2967
|
} while (this.consumeOptionalOperator("|"));
|
|
2782
2968
|
}
|
|
2783
2969
|
return n;
|
|
@@ -2788,13 +2974,13 @@ var init_angular = __esmMin((() => {
|
|
|
2788
2974
|
parseConditional() {
|
|
2789
2975
|
let e = this.inputIndex, n = this.parseLogicalOr();
|
|
2790
2976
|
if (this.consumeOptionalOperator("?")) {
|
|
2791
|
-
let s = this.parsePipe(),
|
|
2792
|
-
if (this.consumeOptionalCharacter(J))
|
|
2977
|
+
let s = this.parsePipe(), i;
|
|
2978
|
+
if (this.consumeOptionalCharacter(J)) i = this.parsePipe();
|
|
2793
2979
|
else {
|
|
2794
|
-
let
|
|
2795
|
-
this.error(`Conditional expression ${a} requires all 3 expressions`),
|
|
2980
|
+
let r = this.inputIndex, a = this.input.substring(e, r);
|
|
2981
|
+
this.error(`Conditional expression ${a} requires all 3 expressions`), i = new N(this.span(e), this.sourceSpan(e));
|
|
2796
2982
|
}
|
|
2797
|
-
return new
|
|
2983
|
+
return new Vt(this.span(e), this.sourceSpan(e), n, s, i);
|
|
2798
2984
|
} else return n;
|
|
2799
2985
|
}
|
|
2800
2986
|
parseLogicalOr() {
|
|
@@ -2831,8 +3017,8 @@ var init_angular = __esmMin((() => {
|
|
|
2831
3017
|
case "!=":
|
|
2832
3018
|
case "!==":
|
|
2833
3019
|
this.advance();
|
|
2834
|
-
let
|
|
2835
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n,
|
|
3020
|
+
let i = this.parseRelational();
|
|
3021
|
+
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2836
3022
|
continue;
|
|
2837
3023
|
}
|
|
2838
3024
|
break;
|
|
@@ -2851,8 +3037,8 @@ var init_angular = __esmMin((() => {
|
|
|
2851
3037
|
case "in":
|
|
2852
3038
|
case "instanceof":
|
|
2853
3039
|
this.advance();
|
|
2854
|
-
let
|
|
2855
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n,
|
|
3040
|
+
let i = this.parseAdditive();
|
|
3041
|
+
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2856
3042
|
continue;
|
|
2857
3043
|
}
|
|
2858
3044
|
break;
|
|
@@ -2867,8 +3053,8 @@ var init_angular = __esmMin((() => {
|
|
|
2867
3053
|
case "+":
|
|
2868
3054
|
case "-":
|
|
2869
3055
|
this.advance();
|
|
2870
|
-
let
|
|
2871
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n,
|
|
3056
|
+
let i = this.parseMultiplicative();
|
|
3057
|
+
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2872
3058
|
continue;
|
|
2873
3059
|
}
|
|
2874
3060
|
break;
|
|
@@ -2884,8 +3070,8 @@ var init_angular = __esmMin((() => {
|
|
|
2884
3070
|
case "%":
|
|
2885
3071
|
case "/":
|
|
2886
3072
|
this.advance();
|
|
2887
|
-
let
|
|
2888
|
-
n = new E(this.span(e), this.sourceSpan(e), s, n,
|
|
3073
|
+
let i = this.parseExponentiation();
|
|
3074
|
+
n = new E(this.span(e), this.sourceSpan(e), s, n, i);
|
|
2889
3075
|
continue;
|
|
2890
3076
|
}
|
|
2891
3077
|
break;
|
|
@@ -2895,7 +3081,7 @@ var init_angular = __esmMin((() => {
|
|
|
2895
3081
|
parseExponentiation() {
|
|
2896
3082
|
let e = this.inputIndex, n = this.parsePrefix();
|
|
2897
3083
|
for (; this.next.type == f.Operator && this.next.strValue === "**";) {
|
|
2898
|
-
(n instanceof
|
|
3084
|
+
(n instanceof Ie || n instanceof je || n instanceof ze || n instanceof Ge) && this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"), this.advance();
|
|
2899
3085
|
let s = this.parseExponentiation();
|
|
2900
3086
|
n = new E(this.span(e), this.sourceSpan(e), "**", n, s);
|
|
2901
3087
|
}
|
|
@@ -2905,30 +3091,30 @@ var init_angular = __esmMin((() => {
|
|
|
2905
3091
|
if (this.next.type == f.Operator) {
|
|
2906
3092
|
let e = this.inputIndex, n = this.next.strValue, s;
|
|
2907
3093
|
switch (n) {
|
|
2908
|
-
case "+": return this.advance(), s = this.parsePrefix(),
|
|
2909
|
-
case "-": return this.advance(), s = this.parsePrefix(),
|
|
2910
|
-
case "!": return this.advance(), s = this.parsePrefix(), new
|
|
3094
|
+
case "+": return this.advance(), s = this.parsePrefix(), Ie.createPlus(this.span(e), this.sourceSpan(e), s);
|
|
3095
|
+
case "-": return this.advance(), s = this.parsePrefix(), Ie.createMinus(this.span(e), this.sourceSpan(e), s);
|
|
3096
|
+
case "!": return this.advance(), s = this.parsePrefix(), new je(this.span(e), this.sourceSpan(e), s);
|
|
2911
3097
|
}
|
|
2912
3098
|
} else if (this.next.isKeywordTypeof()) {
|
|
2913
3099
|
let e = this.inputIndex;
|
|
2914
3100
|
this.advance();
|
|
2915
3101
|
let n = this.parsePrefix();
|
|
2916
|
-
return new
|
|
3102
|
+
return new ze(this.span(e), this.sourceSpan(e), n);
|
|
2917
3103
|
} else if (this.next.isKeywordVoid()) {
|
|
2918
3104
|
let e = this.inputIndex;
|
|
2919
3105
|
this.advance();
|
|
2920
3106
|
let n = this.parsePrefix();
|
|
2921
|
-
return new
|
|
3107
|
+
return new Ge(this.span(e), this.sourceSpan(e), n);
|
|
2922
3108
|
}
|
|
2923
3109
|
return this.parseCallChain();
|
|
2924
3110
|
}
|
|
2925
3111
|
parseCallChain() {
|
|
2926
3112
|
let e = this.inputIndex, n = this.parsePrimary();
|
|
2927
|
-
for (;;) if (this.consumeOptionalCharacter(
|
|
2928
|
-
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(
|
|
2929
|
-
else if (this.consumeOptionalCharacter(
|
|
2930
|
-
else if (this.consumeOptionalCharacter(
|
|
2931
|
-
else if (this.consumeOptionalOperator("!")) n = new
|
|
3113
|
+
for (;;) if (this.consumeOptionalCharacter(G)) n = this.parseAccessMember(n, e, !1);
|
|
3114
|
+
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(Q) ? n = this.parseCall(n, e, !0) : n = this.consumeOptionalCharacter(ce) ? this.parseKeyedReadOrWrite(n, e, !0) : this.parseAccessMember(n, e, !0);
|
|
3115
|
+
else if (this.consumeOptionalCharacter(ce)) n = this.parseKeyedReadOrWrite(n, e, !1);
|
|
3116
|
+
else if (this.consumeOptionalCharacter(Q)) n = this.parseCall(n, e, !1);
|
|
3117
|
+
else if (this.consumeOptionalOperator("!")) n = new Gt(this.span(e), this.sourceSpan(e), n);
|
|
2932
3118
|
else if (this.next.isTemplateLiteralEnd()) n = this.parseNoInterpolationTaggedTemplateLiteral(n, e);
|
|
2933
3119
|
else if (this.next.isTemplateLiteralPart()) n = this.parseTaggedTemplateLiteral(n, e);
|
|
2934
3120
|
else return n;
|
|
@@ -2936,30 +3122,29 @@ var init_angular = __esmMin((() => {
|
|
|
2936
3122
|
parsePrimary() {
|
|
2937
3123
|
let e = this.inputIndex;
|
|
2938
3124
|
if (this.isArrowFunction()) return this.parseArrowFunction(e);
|
|
2939
|
-
if (this.consumeOptionalCharacter(
|
|
3125
|
+
if (this.consumeOptionalCharacter(Q)) {
|
|
2940
3126
|
this.rparensExpected++;
|
|
2941
3127
|
let n = this.parsePipe();
|
|
2942
|
-
return this.consumeOptionalCharacter(
|
|
3128
|
+
return this.consumeOptionalCharacter(L) || (this.error("Missing closing parentheses"), this.consumeOptionalCharacter(L)), this.rparensExpected--, new $e(this.span(e), this.sourceSpan(e), n);
|
|
2943
3129
|
} else {
|
|
2944
|
-
if (this.next.isKeywordNull()) return this.advance(), new
|
|
2945
|
-
if (this.next.isKeywordUndefined()) return this.advance(), new
|
|
2946
|
-
if (this.next.isKeywordTrue()) return this.advance(), new
|
|
2947
|
-
if (this.next.isKeywordFalse()) return this.advance(), new
|
|
2948
|
-
if (this.next.
|
|
2949
|
-
if (this.
|
|
2950
|
-
if (this.
|
|
2951
|
-
if (this.next.
|
|
2952
|
-
if (this.next.isIdentifier()) return this.parseAccessMember(new ce(this.span(e), this.sourceSpan(e)), e, !1);
|
|
3130
|
+
if (this.next.isKeywordNull()) return this.advance(), new A(this.span(e), this.sourceSpan(e), null);
|
|
3131
|
+
if (this.next.isKeywordUndefined()) return this.advance(), new A(this.span(e), this.sourceSpan(e), void 0);
|
|
3132
|
+
if (this.next.isKeywordTrue()) return this.advance(), new A(this.span(e), this.sourceSpan(e), !0);
|
|
3133
|
+
if (this.next.isKeywordFalse()) return this.advance(), new A(this.span(e), this.sourceSpan(e), !1);
|
|
3134
|
+
if (this.next.isKeywordThis()) return this.advance(), new Bt(this.span(e), this.sourceSpan(e));
|
|
3135
|
+
if (this.consumeOptionalCharacter(ce)) return this.parseLiteralArray(e);
|
|
3136
|
+
if (this.next.isCharacter(Ne)) return this.parseLiteralMap();
|
|
3137
|
+
if (this.next.isIdentifier()) return this.parseAccessMember(new fe(this.span(e), this.sourceSpan(e)), e, !1);
|
|
2953
3138
|
if (this.next.isNumber()) {
|
|
2954
3139
|
let n = this.next.toNumber();
|
|
2955
|
-
return this.advance(), new
|
|
3140
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
2956
3141
|
} else {
|
|
2957
3142
|
if (this.next.isTemplateLiteralEnd()) return this.parseNoInterpolationTemplateLiteral();
|
|
2958
3143
|
if (this.next.isTemplateLiteralPart()) return this.parseTemplateLiteral();
|
|
2959
|
-
if (this.next.isString() && this.next.kind ===
|
|
3144
|
+
if (this.next.isString() && this.next.kind === W.Plain) {
|
|
2960
3145
|
let n = this.next.toString();
|
|
2961
|
-
return this.advance(), new
|
|
2962
|
-
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new
|
|
3146
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
3147
|
+
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new N(this.span(e), this.sourceSpan(e))) : this.next.isRegExpBody() ? this.parseRegularExpressionLiteral() : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new N(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new N(this.span(e), this.sourceSpan(e)));
|
|
2963
3148
|
}
|
|
2964
3149
|
}
|
|
2965
3150
|
}
|
|
@@ -2968,67 +3153,67 @@ var init_angular = __esmMin((() => {
|
|
|
2968
3153
|
let n = [];
|
|
2969
3154
|
do
|
|
2970
3155
|
if (this.next.isOperator("...")) n.push(this.parseSpreadElement());
|
|
2971
|
-
else if (!this.next.isCharacter(
|
|
3156
|
+
else if (!this.next.isCharacter(Z)) n.push(this.parsePipe());
|
|
2972
3157
|
else break;
|
|
2973
|
-
while (this.consumeOptionalCharacter(
|
|
2974
|
-
return this.rbracketsExpected--, this.expectCharacter(
|
|
3158
|
+
while (this.consumeOptionalCharacter(V));
|
|
3159
|
+
return this.rbracketsExpected--, this.expectCharacter(Z), new qt(this.span(e), this.sourceSpan(e), n);
|
|
2975
3160
|
}
|
|
2976
3161
|
parseLiteralMap() {
|
|
2977
3162
|
let e = [], n = [], s = this.inputIndex;
|
|
2978
|
-
if (this.expectCharacter(
|
|
3163
|
+
if (this.expectCharacter(Ne), !this.consumeOptionalCharacter(oe)) {
|
|
2979
3164
|
this.rbracesExpected++;
|
|
2980
3165
|
do {
|
|
2981
|
-
let
|
|
3166
|
+
let i = this.inputIndex;
|
|
2982
3167
|
if (this.next.isOperator("...")) {
|
|
2983
3168
|
this.advance(), e.push({
|
|
2984
3169
|
kind: "spread",
|
|
2985
|
-
span: this.span(
|
|
2986
|
-
sourceSpan: this.sourceSpan(
|
|
3170
|
+
span: this.span(i),
|
|
3171
|
+
sourceSpan: this.sourceSpan(i)
|
|
2987
3172
|
}), n.push(this.parsePipe());
|
|
2988
3173
|
continue;
|
|
2989
3174
|
}
|
|
2990
|
-
let
|
|
3175
|
+
let r = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), u = this.span(i), h = this.sourceSpan(i), d = {
|
|
2991
3176
|
kind: "property",
|
|
2992
3177
|
key: a,
|
|
2993
|
-
quoted:
|
|
2994
|
-
span:
|
|
3178
|
+
quoted: r,
|
|
3179
|
+
span: u,
|
|
2995
3180
|
sourceSpan: h
|
|
2996
3181
|
};
|
|
2997
|
-
e.push(d),
|
|
2998
|
-
} while (this.consumeOptionalCharacter(
|
|
2999
|
-
this.rbracesExpected--, this.expectCharacter(
|
|
3182
|
+
e.push(d), r ? (this.expectCharacter(J), n.push(this.parsePipe())) : this.consumeOptionalCharacter(J) ? n.push(this.parsePipe()) : (d.isShorthandInitialized = !0, n.push(new ke(u, h, h, new fe(u, h), a)));
|
|
3183
|
+
} while (this.consumeOptionalCharacter(V) && !this.next.isCharacter(oe));
|
|
3184
|
+
this.rbracesExpected--, this.expectCharacter(oe);
|
|
3000
3185
|
}
|
|
3001
|
-
return new
|
|
3186
|
+
return new zt(this.span(s), this.sourceSpan(s), e, n);
|
|
3002
3187
|
}
|
|
3003
3188
|
parseAccessMember(e, n, s) {
|
|
3004
|
-
let
|
|
3005
|
-
let
|
|
3006
|
-
return
|
|
3007
|
-
}), a = this.sourceSpan(
|
|
3008
|
-
if (s) return this.isAssignmentOperator(this.next) ? (this.advance(), this.error("The '?.' operator cannot be used in the assignment"), new
|
|
3189
|
+
let i = this.inputIndex, r = this.withContext(ae.Writable, () => {
|
|
3190
|
+
let u = this.expectIdentifierOrKeyword() ?? "";
|
|
3191
|
+
return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
|
|
3192
|
+
}), a = this.sourceSpan(i);
|
|
3193
|
+
if (s) return this.isAssignmentOperator(this.next) ? (this.advance(), this.error("The '?.' operator cannot be used in the assignment"), new N(this.span(n), this.sourceSpan(n))) : new Ht(this.span(n), this.sourceSpan(n), a, e, r);
|
|
3009
3194
|
if (this.isAssignmentOperator(this.next)) {
|
|
3010
|
-
let
|
|
3011
|
-
if (!(this.parseFlags & 1)) return this.advance(), this.error("Bindings cannot contain assignments"), new
|
|
3012
|
-
let h = new
|
|
3195
|
+
let u = this.next.strValue;
|
|
3196
|
+
if (!(this.parseFlags & 1)) return this.advance(), this.error("Bindings cannot contain assignments"), new N(this.span(n), this.sourceSpan(n));
|
|
3197
|
+
let h = new ke(this.span(n), this.sourceSpan(n), a, e, r);
|
|
3013
3198
|
this.advance();
|
|
3014
3199
|
let d = this.parseConditional();
|
|
3015
|
-
return new E(this.span(n), this.sourceSpan(n),
|
|
3016
|
-
} else return new
|
|
3200
|
+
return new E(this.span(n), this.sourceSpan(n), u, h, d);
|
|
3201
|
+
} else return new ke(this.span(n), this.sourceSpan(n), a, e, r);
|
|
3017
3202
|
}
|
|
3018
3203
|
parseCall(e, n, s) {
|
|
3019
|
-
let
|
|
3204
|
+
let i = this.inputIndex;
|
|
3020
3205
|
this.rparensExpected++;
|
|
3021
|
-
let
|
|
3022
|
-
this.expectCharacter(
|
|
3023
|
-
let
|
|
3024
|
-
return s ? new
|
|
3206
|
+
let r = this.parseCallArguments(), a = this.span(i, this.inputIndex).toAbsolute(this.absoluteOffset);
|
|
3207
|
+
this.expectCharacter(L), this.rparensExpected--;
|
|
3208
|
+
let u = this.span(n), h = this.sourceSpan(n);
|
|
3209
|
+
return s ? new Xt(u, h, e, r, a) : new Xe(u, h, e, r, a);
|
|
3025
3210
|
}
|
|
3026
3211
|
parseCallArguments() {
|
|
3027
|
-
if (this.next.isCharacter(
|
|
3212
|
+
if (this.next.isCharacter(L)) return [];
|
|
3028
3213
|
let e = [];
|
|
3029
3214
|
do
|
|
3030
3215
|
e.push(this.next.isOperator("...") ? this.parseSpreadElement() : this.parsePipe());
|
|
3031
|
-
while (this.consumeOptionalCharacter(
|
|
3216
|
+
while (this.consumeOptionalCharacter(V));
|
|
3032
3217
|
return e;
|
|
3033
3218
|
}
|
|
3034
3219
|
parseSpreadElement() {
|
|
@@ -3036,7 +3221,7 @@ var init_angular = __esmMin((() => {
|
|
|
3036
3221
|
let e = this.inputIndex;
|
|
3037
3222
|
this.advance();
|
|
3038
3223
|
let n = this.parsePipe();
|
|
3039
|
-
return new
|
|
3224
|
+
return new jt(this.span(e), this.sourceSpan(e), n);
|
|
3040
3225
|
}
|
|
3041
3226
|
expectTemplateBindingKey() {
|
|
3042
3227
|
let e = "", n = !1, s = this.currentAbsoluteOffset;
|
|
@@ -3045,7 +3230,7 @@ var init_angular = __esmMin((() => {
|
|
|
3045
3230
|
while (n);
|
|
3046
3231
|
return {
|
|
3047
3232
|
source: e,
|
|
3048
|
-
span: new
|
|
3233
|
+
span: new D(s, s + e.length)
|
|
3049
3234
|
};
|
|
3050
3235
|
}
|
|
3051
3236
|
parseTemplateBindings(e) {
|
|
@@ -3054,49 +3239,49 @@ var init_angular = __esmMin((() => {
|
|
|
3054
3239
|
let s = this.parseLetBinding();
|
|
3055
3240
|
if (s) n.push(s);
|
|
3056
3241
|
else {
|
|
3057
|
-
let
|
|
3058
|
-
|
|
3242
|
+
let i = this.expectTemplateBindingKey(), r = this.parseAsBinding(i);
|
|
3243
|
+
r ? n.push(r) : (i.source = e.source + i.source.charAt(0).toUpperCase() + i.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(i)));
|
|
3059
3244
|
}
|
|
3060
3245
|
this.consumeStatementTerminator();
|
|
3061
3246
|
}
|
|
3062
|
-
return new
|
|
3247
|
+
return new an(n, [], this.errors);
|
|
3063
3248
|
}
|
|
3064
3249
|
parseKeyedReadOrWrite(e, n, s) {
|
|
3065
|
-
return this.withContext(
|
|
3250
|
+
return this.withContext(ae.Writable, () => {
|
|
3066
3251
|
this.rbracketsExpected++;
|
|
3067
|
-
let
|
|
3068
|
-
if (
|
|
3069
|
-
let
|
|
3252
|
+
let i = this.parsePipe();
|
|
3253
|
+
if (i instanceof N && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(Z), this.isAssignmentOperator(this.next)) {
|
|
3254
|
+
let r = this.next.strValue;
|
|
3070
3255
|
if (s) this.advance(), this.error("The '?.' operator cannot be used in the assignment");
|
|
3071
3256
|
else {
|
|
3072
|
-
let a = new
|
|
3257
|
+
let a = new qe(this.span(n), this.sourceSpan(n), e, i);
|
|
3073
3258
|
this.advance();
|
|
3074
|
-
let
|
|
3075
|
-
return new E(this.span(n), this.sourceSpan(n),
|
|
3259
|
+
let u = this.parseConditional();
|
|
3260
|
+
return new E(this.span(n), this.sourceSpan(n), r, a, u);
|
|
3076
3261
|
}
|
|
3077
|
-
} else return s ? new
|
|
3078
|
-
return new
|
|
3262
|
+
} else return s ? new Ut(this.span(n), this.sourceSpan(n), e, i) : new qe(this.span(n), this.sourceSpan(n), e, i);
|
|
3263
|
+
return new N(this.span(n), this.sourceSpan(n));
|
|
3079
3264
|
});
|
|
3080
3265
|
}
|
|
3081
3266
|
parseDirectiveKeywordBindings(e) {
|
|
3082
3267
|
let n = [];
|
|
3083
3268
|
this.consumeOptionalCharacter(J);
|
|
3084
|
-
let s = this.getDirectiveBoundTarget(),
|
|
3085
|
-
|
|
3086
|
-
let a = new
|
|
3087
|
-
return n.push(new
|
|
3269
|
+
let s = this.getDirectiveBoundTarget(), i = this.currentAbsoluteOffset, r = this.parseAsBinding(e);
|
|
3270
|
+
r || (this.consumeStatementTerminator(), i = this.currentAbsoluteOffset);
|
|
3271
|
+
let a = new D(e.span.start, i);
|
|
3272
|
+
return n.push(new Me(a, e, s)), r && n.push(r), n;
|
|
3088
3273
|
}
|
|
3089
3274
|
getDirectiveBoundTarget() {
|
|
3090
|
-
if (this.next ===
|
|
3275
|
+
if (this.next === be || this.peekKeywordAs() || this.peekKeywordLet()) return null;
|
|
3091
3276
|
let e = this.parsePipe(), { start: n, end: s } = e.span;
|
|
3092
|
-
return new U(e, this.input.substring(n, s),
|
|
3277
|
+
return new U(e, this.input.substring(n, s), H(this.parseSourceSpan), this.absoluteOffset + n, this.errors);
|
|
3093
3278
|
}
|
|
3094
3279
|
parseAsBinding(e) {
|
|
3095
3280
|
if (!this.peekKeywordAs()) return null;
|
|
3096
3281
|
this.advance();
|
|
3097
3282
|
let n = this.expectTemplateBindingKey();
|
|
3098
3283
|
this.consumeStatementTerminator();
|
|
3099
|
-
return new
|
|
3284
|
+
return new de(new D(e.span.start, this.currentAbsoluteOffset), n, e);
|
|
3100
3285
|
}
|
|
3101
3286
|
parseLetBinding() {
|
|
3102
3287
|
if (!this.peekKeywordLet()) return null;
|
|
@@ -3104,73 +3289,73 @@ var init_angular = __esmMin((() => {
|
|
|
3104
3289
|
this.advance();
|
|
3105
3290
|
let n = this.expectTemplateBindingKey(), s = null;
|
|
3106
3291
|
this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
|
|
3107
|
-
return new
|
|
3292
|
+
return new de(new D(e, this.currentAbsoluteOffset), n, s);
|
|
3108
3293
|
}
|
|
3109
3294
|
parseNoInterpolationTaggedTemplateLiteral(e, n) {
|
|
3110
3295
|
let s = this.parseNoInterpolationTemplateLiteral();
|
|
3111
|
-
return new
|
|
3296
|
+
return new Qe(this.span(n), this.sourceSpan(n), e, s);
|
|
3112
3297
|
}
|
|
3113
3298
|
parseNoInterpolationTemplateLiteral() {
|
|
3114
3299
|
let e = this.next.strValue, n = this.inputIndex;
|
|
3115
3300
|
this.advance();
|
|
3116
|
-
let s = this.span(n),
|
|
3117
|
-
return new
|
|
3301
|
+
let s = this.span(n), i = this.sourceSpan(n);
|
|
3302
|
+
return new Je(s, i, [new Ye(s, i, e)], []);
|
|
3118
3303
|
}
|
|
3119
3304
|
parseTaggedTemplateLiteral(e, n) {
|
|
3120
3305
|
let s = this.parseTemplateLiteral();
|
|
3121
|
-
return new
|
|
3306
|
+
return new Qe(this.span(n), this.sourceSpan(n), e, s);
|
|
3122
3307
|
}
|
|
3123
3308
|
parseTemplateLiteral() {
|
|
3124
3309
|
let e = [], n = [], s = this.inputIndex;
|
|
3125
|
-
for (; this.next !==
|
|
3126
|
-
let
|
|
3127
|
-
if (
|
|
3128
|
-
let
|
|
3129
|
-
if (this.advance(), e.push(new
|
|
3130
|
-
} else if (
|
|
3310
|
+
for (; this.next !== be;) {
|
|
3311
|
+
let i = this.next;
|
|
3312
|
+
if (i.isTemplateLiteralPart() || i.isTemplateLiteralEnd()) {
|
|
3313
|
+
let r = this.inputIndex;
|
|
3314
|
+
if (this.advance(), e.push(new Ye(this.span(r), this.sourceSpan(r), i.strValue)), i.isTemplateLiteralEnd()) break;
|
|
3315
|
+
} else if (i.isTemplateLiteralInterpolationStart()) {
|
|
3131
3316
|
this.advance(), this.rbracesExpected++;
|
|
3132
|
-
let
|
|
3133
|
-
|
|
3317
|
+
let r = this.parsePipe();
|
|
3318
|
+
r instanceof N ? this.error("Template literal interpolation cannot be empty") : n.push(r), this.rbracesExpected--;
|
|
3134
3319
|
} else this.advance();
|
|
3135
3320
|
}
|
|
3136
|
-
return new
|
|
3321
|
+
return new Je(this.span(s), this.sourceSpan(s), e, n);
|
|
3137
3322
|
}
|
|
3138
3323
|
parseRegularExpressionLiteral() {
|
|
3139
3324
|
let e = this.next;
|
|
3140
|
-
if (this.advance(), !e.isRegExpBody()) return new
|
|
3325
|
+
if (this.advance(), !e.isRegExpBody()) return new N(this.span(this.inputIndex), this.sourceSpan(this.inputIndex));
|
|
3141
3326
|
let n = null;
|
|
3142
3327
|
if (this.next.isRegExpFlags()) {
|
|
3143
3328
|
n = this.next, this.advance();
|
|
3144
|
-
let
|
|
3329
|
+
let r = /* @__PURE__ */ new Set();
|
|
3145
3330
|
for (let a = 0; a < n.strValue.length; a++) {
|
|
3146
|
-
let
|
|
3147
|
-
|
|
3331
|
+
let u = n.strValue[a];
|
|
3332
|
+
_s.has(u) ? r.has(u) ? this.error(`Duplicate regular expression flag "${u}"`, n.index + a) : r.add(u) : this.error(`Unsupported regular expression flag "${u}". The supported flags are: ` + Array.from(_s, (h) => `"${h}"`).join(", "), n.index + a);
|
|
3148
3333
|
}
|
|
3149
3334
|
}
|
|
3150
|
-
let s = e.index,
|
|
3151
|
-
return new
|
|
3335
|
+
let s = e.index, i = n ? n.end : e.end;
|
|
3336
|
+
return new Yt(this.span(s, i), this.sourceSpan(s, i), e.strValue, n ? n.strValue : null);
|
|
3152
3337
|
}
|
|
3153
3338
|
parseArrowFunction(e) {
|
|
3154
3339
|
let n;
|
|
3155
3340
|
if (this.next.isIdentifier()) {
|
|
3156
|
-
let
|
|
3157
|
-
this.advance(), n = [this.getArrowFunctionIdentifierArg(
|
|
3158
|
-
} else this.next.isCharacter(
|
|
3341
|
+
let i = this.next;
|
|
3342
|
+
this.advance(), n = [this.getArrowFunctionIdentifierArg(i)];
|
|
3343
|
+
} else this.next.isCharacter(Q) ? (this.rparensExpected++, this.advance(), n = this.parseArrowFunctionParameters(), this.rparensExpected--) : (n = [], this.error(`Unexpected token ${this.next}`));
|
|
3159
3344
|
this.expectOperator("=>");
|
|
3160
3345
|
let s;
|
|
3161
|
-
if (this.next.isCharacter(
|
|
3346
|
+
if (this.next.isCharacter(Ne)) this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."), s = new N(this.span(e), this.sourceSpan(e));
|
|
3162
3347
|
else {
|
|
3163
|
-
let
|
|
3164
|
-
this.parseFlags = 1, s = this.parseExpression(), this.parseFlags =
|
|
3348
|
+
let i = this.parseFlags;
|
|
3349
|
+
this.parseFlags = 1, s = this.parseExpression(), this.parseFlags = i;
|
|
3165
3350
|
}
|
|
3166
|
-
return new
|
|
3351
|
+
return new Jt(this.span(e), this.sourceSpan(e), n, s);
|
|
3167
3352
|
}
|
|
3168
3353
|
parseArrowFunctionParameters() {
|
|
3169
3354
|
let e = [];
|
|
3170
|
-
if (!this.consumeOptionalCharacter(
|
|
3355
|
+
if (!this.consumeOptionalCharacter(L)) for (; this.next !== be;) if (this.next.isIdentifier()) {
|
|
3171
3356
|
let n = this.next;
|
|
3172
|
-
if (this.advance(), e.push(this.getArrowFunctionIdentifierArg(n)), this.consumeOptionalCharacter(
|
|
3173
|
-
this.expectCharacter(
|
|
3357
|
+
if (this.advance(), e.push(this.getArrowFunctionIdentifierArg(n)), this.consumeOptionalCharacter(L)) break;
|
|
3358
|
+
this.expectCharacter(V);
|
|
3174
3359
|
} else {
|
|
3175
3360
|
this.error(`Unexpected token ${this.next}`);
|
|
3176
3361
|
break;
|
|
@@ -3178,24 +3363,24 @@ var init_angular = __esmMin((() => {
|
|
|
3178
3363
|
return e;
|
|
3179
3364
|
}
|
|
3180
3365
|
getArrowFunctionIdentifierArg(e) {
|
|
3181
|
-
return new
|
|
3366
|
+
return new Qt(e.strValue, this.span(e.index), this.sourceSpan(e.index));
|
|
3182
3367
|
}
|
|
3183
3368
|
isArrowFunction() {
|
|
3184
3369
|
let e = this.index, n = this.tokens;
|
|
3185
3370
|
if (e > n.length - 2) return !1;
|
|
3186
3371
|
if (n[e].isIdentifier() && n[e + 1].isOperator("=>")) return !0;
|
|
3187
|
-
if (n[e].isCharacter(
|
|
3372
|
+
if (n[e].isCharacter(Q)) {
|
|
3188
3373
|
let s = e + 1;
|
|
3189
|
-
for (; s < n.length && !(!n[s].isIdentifier() && !n[s].isCharacter(
|
|
3190
|
-
return s < n.length - 1 && n[s].isCharacter(
|
|
3374
|
+
for (; s < n.length && !(!n[s].isIdentifier() && !n[s].isCharacter(V)); s++);
|
|
3375
|
+
return s < n.length - 1 && n[s].isCharacter(L) && n[s + 1].isOperator("=>");
|
|
3191
3376
|
}
|
|
3192
3377
|
return !1;
|
|
3193
3378
|
}
|
|
3194
3379
|
consumeStatementTerminator() {
|
|
3195
|
-
this.consumeOptionalCharacter(
|
|
3380
|
+
this.consumeOptionalCharacter(Te) || this.consumeOptionalCharacter(V);
|
|
3196
3381
|
}
|
|
3197
3382
|
error(e, n = this.index) {
|
|
3198
|
-
this.errors.push(
|
|
3383
|
+
this.errors.push(le(e, this.input, this.getErrorLocationText(n), this.parseSourceSpan)), this.skip();
|
|
3199
3384
|
}
|
|
3200
3385
|
getErrorLocationText(e) {
|
|
3201
3386
|
return e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
|
|
@@ -3206,16 +3391,203 @@ var init_angular = __esmMin((() => {
|
|
|
3206
3391
|
}
|
|
3207
3392
|
skip() {
|
|
3208
3393
|
let e = this.next;
|
|
3209
|
-
for (; this.index < this.tokens.length && !e.isCharacter(
|
|
3394
|
+
for (; this.index < this.tokens.length && !e.isCharacter(Te) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(L)) && (this.rbracesExpected <= 0 || !e.isCharacter(oe)) && (this.rbracketsExpected <= 0 || !e.isCharacter(Z)) && (!(this.context & ae.Writable) || !this.isAssignmentOperator(e));) this.next.isError() && this.errors.push(le(this.next.toString(), this.input, this.getErrorLocationText(this.next.index), this.parseSourceSpan)), this.advance(), e = this.next;
|
|
3210
3395
|
}
|
|
3211
3396
|
};
|
|
3212
|
-
|
|
3397
|
+
ln = class extends Kt {
|
|
3213
3398
|
errors = [];
|
|
3214
3399
|
visitPipe() {
|
|
3215
3400
|
this.errors.push("pipes");
|
|
3216
3401
|
}
|
|
3217
3402
|
};
|
|
3218
|
-
|
|
3403
|
+
mo = "svg", go = "math", cn = class {}, vo = "boolean", wo = "number", So = "string", xo = "object";
|
|
3404
|
+
yo = [
|
|
3405
|
+
"[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored",
|
|
3406
|
+
"[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy",
|
|
3407
|
+
"abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy",
|
|
3408
|
+
"media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",
|
|
3409
|
+
":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",
|
|
3410
|
+
":svg:graphics^:svg:|",
|
|
3411
|
+
":svg:animation^:svg:|*begin,*end,*repeat",
|
|
3412
|
+
":svg:geometry^:svg:|",
|
|
3413
|
+
":svg:componentTransferFunction^:svg:|",
|
|
3414
|
+
":svg:gradient^:svg:|",
|
|
3415
|
+
":svg:textContent^:svg:graphics|",
|
|
3416
|
+
":svg:textPositioning^:svg:textContent|",
|
|
3417
|
+
"a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username",
|
|
3418
|
+
"area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username",
|
|
3419
|
+
"audio^media|",
|
|
3420
|
+
"br^[HTMLElement]|clear",
|
|
3421
|
+
"base^[HTMLElement]|href,target",
|
|
3422
|
+
"body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink",
|
|
3423
|
+
"button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value",
|
|
3424
|
+
"canvas^[HTMLElement]|#height,#width",
|
|
3425
|
+
"content^[HTMLElement]|select",
|
|
3426
|
+
"dl^[HTMLElement]|!compact",
|
|
3427
|
+
"data^[HTMLElement]|value",
|
|
3428
|
+
"datalist^[HTMLElement]|",
|
|
3429
|
+
"details^[HTMLElement]|!open",
|
|
3430
|
+
"dialog^[HTMLElement]|!open,returnValue",
|
|
3431
|
+
"dir^[HTMLElement]|!compact",
|
|
3432
|
+
"div^[HTMLElement]|align",
|
|
3433
|
+
"embed^[HTMLElement]|align,height,name,src,type,width",
|
|
3434
|
+
"fieldset^[HTMLElement]|!disabled,name",
|
|
3435
|
+
"font^[HTMLElement]|color,face,size",
|
|
3436
|
+
"form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target",
|
|
3437
|
+
"frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src",
|
|
3438
|
+
"frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows",
|
|
3439
|
+
"geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch",
|
|
3440
|
+
"hr^[HTMLElement]|align,color,!noShade,size,width",
|
|
3441
|
+
"head^[HTMLElement]|",
|
|
3442
|
+
"h1,h2,h3,h4,h5,h6^[HTMLElement]|align",
|
|
3443
|
+
"html^[HTMLElement]|version",
|
|
3444
|
+
"iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width",
|
|
3445
|
+
"img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width",
|
|
3446
|
+
"input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width",
|
|
3447
|
+
"li^[HTMLElement]|type,#value",
|
|
3448
|
+
"label^[HTMLElement]|htmlFor",
|
|
3449
|
+
"legend^[HTMLElement]|align",
|
|
3450
|
+
"link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type",
|
|
3451
|
+
"map^[HTMLElement]|name",
|
|
3452
|
+
"marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width",
|
|
3453
|
+
"menu^[HTMLElement]|!compact",
|
|
3454
|
+
"meta^[HTMLElement]|content,httpEquiv,media,name,scheme",
|
|
3455
|
+
"meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value",
|
|
3456
|
+
"ins,del^[HTMLElement]|cite,dateTime",
|
|
3457
|
+
"ol^[HTMLElement]|!compact,!reversed,#start,type",
|
|
3458
|
+
"object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width",
|
|
3459
|
+
"optgroup^[HTMLElement]|!disabled,label",
|
|
3460
|
+
"option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value",
|
|
3461
|
+
"output^[HTMLElement]|defaultValue,%htmlFor,name,value",
|
|
3462
|
+
"p^[HTMLElement]|align",
|
|
3463
|
+
"param^[HTMLElement]|name,type,value,valueType",
|
|
3464
|
+
"picture^[HTMLElement]|",
|
|
3465
|
+
"pre^[HTMLElement]|#width",
|
|
3466
|
+
"progress^[HTMLElement]|#max,#value",
|
|
3467
|
+
"q,blockquote,cite^[HTMLElement]|",
|
|
3468
|
+
"script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type",
|
|
3469
|
+
"select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value",
|
|
3470
|
+
"selectedcontent^[HTMLElement]|",
|
|
3471
|
+
"slot^[HTMLElement]|name",
|
|
3472
|
+
"source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width",
|
|
3473
|
+
"span^[HTMLElement]|",
|
|
3474
|
+
"style^[HTMLElement]|!disabled,media,type",
|
|
3475
|
+
"search^[HTMLELement]|",
|
|
3476
|
+
"caption^[HTMLElement]|align",
|
|
3477
|
+
"th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width",
|
|
3478
|
+
"col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width",
|
|
3479
|
+
"table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width",
|
|
3480
|
+
"tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign",
|
|
3481
|
+
"tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign",
|
|
3482
|
+
"template^[HTMLElement]|",
|
|
3483
|
+
"textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap",
|
|
3484
|
+
"time^[HTMLElement]|dateTime",
|
|
3485
|
+
"title^[HTMLElement]|text",
|
|
3486
|
+
"track^[HTMLElement]|!default,kind,label,src,srclang",
|
|
3487
|
+
"ul^[HTMLElement]|!compact,type",
|
|
3488
|
+
"unknown^[HTMLElement]|",
|
|
3489
|
+
"video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",
|
|
3490
|
+
":svg:a^:svg:graphics|",
|
|
3491
|
+
":svg:animate^:svg:animation|",
|
|
3492
|
+
":svg:animateMotion^:svg:animation|",
|
|
3493
|
+
":svg:animateTransform^:svg:animation|",
|
|
3494
|
+
":svg:circle^:svg:geometry|",
|
|
3495
|
+
":svg:clipPath^:svg:graphics|",
|
|
3496
|
+
":svg:defs^:svg:graphics|",
|
|
3497
|
+
":svg:desc^:svg:|",
|
|
3498
|
+
":svg:discard^:svg:|",
|
|
3499
|
+
":svg:ellipse^:svg:geometry|",
|
|
3500
|
+
":svg:feBlend^:svg:|",
|
|
3501
|
+
":svg:feColorMatrix^:svg:|",
|
|
3502
|
+
":svg:feComponentTransfer^:svg:|",
|
|
3503
|
+
":svg:feComposite^:svg:|",
|
|
3504
|
+
":svg:feConvolveMatrix^:svg:|",
|
|
3505
|
+
":svg:feDiffuseLighting^:svg:|",
|
|
3506
|
+
":svg:feDisplacementMap^:svg:|",
|
|
3507
|
+
":svg:feDistantLight^:svg:|",
|
|
3508
|
+
":svg:feDropShadow^:svg:|",
|
|
3509
|
+
":svg:feFlood^:svg:|",
|
|
3510
|
+
":svg:feFuncA^:svg:componentTransferFunction|",
|
|
3511
|
+
":svg:feFuncB^:svg:componentTransferFunction|",
|
|
3512
|
+
":svg:feFuncG^:svg:componentTransferFunction|",
|
|
3513
|
+
":svg:feFuncR^:svg:componentTransferFunction|",
|
|
3514
|
+
":svg:feGaussianBlur^:svg:|",
|
|
3515
|
+
":svg:feImage^:svg:|",
|
|
3516
|
+
":svg:feMerge^:svg:|",
|
|
3517
|
+
":svg:feMergeNode^:svg:|",
|
|
3518
|
+
":svg:feMorphology^:svg:|",
|
|
3519
|
+
":svg:feOffset^:svg:|",
|
|
3520
|
+
":svg:fePointLight^:svg:|",
|
|
3521
|
+
":svg:feSpecularLighting^:svg:|",
|
|
3522
|
+
":svg:feSpotLight^:svg:|",
|
|
3523
|
+
":svg:feTile^:svg:|",
|
|
3524
|
+
":svg:feTurbulence^:svg:|",
|
|
3525
|
+
":svg:filter^:svg:|",
|
|
3526
|
+
":svg:foreignObject^:svg:graphics|",
|
|
3527
|
+
":svg:g^:svg:graphics|",
|
|
3528
|
+
":svg:image^:svg:graphics|decoding",
|
|
3529
|
+
":svg:line^:svg:geometry|",
|
|
3530
|
+
":svg:linearGradient^:svg:gradient|",
|
|
3531
|
+
":svg:mpath^:svg:|",
|
|
3532
|
+
":svg:marker^:svg:|",
|
|
3533
|
+
":svg:mask^:svg:|",
|
|
3534
|
+
":svg:metadata^:svg:|",
|
|
3535
|
+
":svg:path^:svg:geometry|",
|
|
3536
|
+
":svg:pattern^:svg:|",
|
|
3537
|
+
":svg:polygon^:svg:geometry|",
|
|
3538
|
+
":svg:polyline^:svg:geometry|",
|
|
3539
|
+
":svg:radialGradient^:svg:gradient|",
|
|
3540
|
+
":svg:rect^:svg:geometry|",
|
|
3541
|
+
":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",
|
|
3542
|
+
":svg:script^:svg:|type",
|
|
3543
|
+
":svg:set^:svg:animation|",
|
|
3544
|
+
":svg:stop^:svg:|",
|
|
3545
|
+
":svg:style^:svg:|!disabled,media,title,type",
|
|
3546
|
+
":svg:switch^:svg:graphics|",
|
|
3547
|
+
":svg:symbol^:svg:|",
|
|
3548
|
+
":svg:tspan^:svg:textPositioning|",
|
|
3549
|
+
":svg:text^:svg:textPositioning|",
|
|
3550
|
+
":svg:textPath^:svg:textContent|",
|
|
3551
|
+
":svg:title^:svg:|",
|
|
3552
|
+
":svg:use^:svg:graphics|",
|
|
3553
|
+
":svg:view^:svg:|#zoomAndPan",
|
|
3554
|
+
"data^[HTMLElement]|value",
|
|
3555
|
+
"keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name",
|
|
3556
|
+
"menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default",
|
|
3557
|
+
"summary^[HTMLElement]|",
|
|
3558
|
+
"time^[HTMLElement]|dateTime",
|
|
3559
|
+
":svg:cursor^:svg:|",
|
|
3560
|
+
":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",
|
|
3561
|
+
":math:math^:math:|",
|
|
3562
|
+
":math:maction^:math:|",
|
|
3563
|
+
":math:menclose^:math:|",
|
|
3564
|
+
":math:merror^:math:|",
|
|
3565
|
+
":math:mfenced^:math:|",
|
|
3566
|
+
":math:mfrac^:math:|",
|
|
3567
|
+
":math:mi^:math:|",
|
|
3568
|
+
":math:mmultiscripts^:math:|",
|
|
3569
|
+
":math:mn^:math:|",
|
|
3570
|
+
":math:mo^:math:|",
|
|
3571
|
+
":math:mover^:math:|",
|
|
3572
|
+
":math:mpadded^:math:|",
|
|
3573
|
+
":math:mphantom^:math:|",
|
|
3574
|
+
":math:mroot^:math:|",
|
|
3575
|
+
":math:mrow^:math:|",
|
|
3576
|
+
":math:ms^:math:|",
|
|
3577
|
+
":math:mspace^:math:|",
|
|
3578
|
+
":math:msqrt^:math:|",
|
|
3579
|
+
":math:mstyle^:math:|",
|
|
3580
|
+
":math:msub^:math:|",
|
|
3581
|
+
":math:msubsup^:math:|",
|
|
3582
|
+
":math:msup^:math:|",
|
|
3583
|
+
":math:mtable^:math:|",
|
|
3584
|
+
":math:mtd^:math:|",
|
|
3585
|
+
":math:mtext^:math:|",
|
|
3586
|
+
":math:mtr^:math:|",
|
|
3587
|
+
":math:munder^:math:|",
|
|
3588
|
+
":math:munderover^:math:|",
|
|
3589
|
+
":math:semantics^:math:|"
|
|
3590
|
+
], Ks = new Map(Object.entries({
|
|
3219
3591
|
class: "className",
|
|
3220
3592
|
for: "htmlFor",
|
|
3221
3593
|
formaction: "formAction",
|
|
@@ -3270,159 +3642,359 @@ var init_angular = __esmMin((() => {
|
|
|
3270
3642
|
"aria-valuemin": "ariaValueMin",
|
|
3271
3643
|
"aria-valuenow": "ariaValueNow",
|
|
3272
3644
|
"aria-valuetext": "ariaValueText"
|
|
3273
|
-
}))
|
|
3274
|
-
|
|
3275
|
-
|
|
3645
|
+
})), Eo = Array.from(Ks).reduce((t, [e, n]) => (t.set(e, n), t), /* @__PURE__ */ new Map()), it = class extends cn {
|
|
3646
|
+
_schema = /* @__PURE__ */ new Map();
|
|
3647
|
+
_eventSchema = /* @__PURE__ */ new Map();
|
|
3648
|
+
constructor() {
|
|
3649
|
+
super(), yo.forEach((e) => {
|
|
3650
|
+
let n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), [i, r] = e.split("|"), a = r.split(","), [u, h] = i.split("^");
|
|
3651
|
+
u.split(",").forEach((g) => {
|
|
3652
|
+
this._schema.set(g.toLowerCase(), n), this._eventSchema.set(g.toLowerCase(), s);
|
|
3653
|
+
});
|
|
3654
|
+
let d = h && this._schema.get(h.toLowerCase());
|
|
3655
|
+
if (d) {
|
|
3656
|
+
for (let [g, P] of d) n.set(g, P);
|
|
3657
|
+
for (let g of this._eventSchema.get(h.toLowerCase())) s.add(g);
|
|
3658
|
+
}
|
|
3659
|
+
a.forEach((g) => {
|
|
3660
|
+
if (g.length > 0) switch (g[0]) {
|
|
3661
|
+
case "*":
|
|
3662
|
+
s.add(g.substring(1));
|
|
3663
|
+
break;
|
|
3664
|
+
case "!":
|
|
3665
|
+
n.set(g.substring(1), vo);
|
|
3666
|
+
break;
|
|
3667
|
+
case "#":
|
|
3668
|
+
n.set(g.substring(1), wo);
|
|
3669
|
+
break;
|
|
3670
|
+
case "%":
|
|
3671
|
+
n.set(g.substring(1), xo);
|
|
3672
|
+
break;
|
|
3673
|
+
default: n.set(g, So);
|
|
3674
|
+
}
|
|
3675
|
+
});
|
|
3676
|
+
});
|
|
3677
|
+
}
|
|
3678
|
+
hasProperty(e, n, s) {
|
|
3679
|
+
if (s.some((a) => a.name === Bn.name)) return !0;
|
|
3680
|
+
let i = Fe(e);
|
|
3681
|
+
if (i.includes("-")) {
|
|
3682
|
+
if (Kn(i) || Zn(i)) return !1;
|
|
3683
|
+
if (s.some((a) => a.name === Dn.name)) return !0;
|
|
3684
|
+
}
|
|
3685
|
+
return (this._schema.get(i) || this._schema.get("unknown")).has(n);
|
|
3686
|
+
}
|
|
3687
|
+
hasElement(e, n) {
|
|
3688
|
+
if (n.some((i) => i.name === Bn.name)) return !0;
|
|
3689
|
+
let s = Fe(e);
|
|
3690
|
+
return s.includes("-") && (Kn(s) || Zn(s) || n.some((i) => i.name === Dn.name)) ? !0 : this._schema.has(s);
|
|
3691
|
+
}
|
|
3692
|
+
securityContext(e, n, s) {
|
|
3693
|
+
s && (n = this.getMappedPropName(n));
|
|
3694
|
+
let [i, r] = ot(e, !1);
|
|
3695
|
+
return dr(r, n, i);
|
|
3696
|
+
}
|
|
3697
|
+
getMappedPropName(e) {
|
|
3698
|
+
return Ks.get(e) ?? e;
|
|
3699
|
+
}
|
|
3700
|
+
getDefaultComponentElementName() {
|
|
3701
|
+
return "ng-component";
|
|
3702
|
+
}
|
|
3703
|
+
validateProperty(e) {
|
|
3704
|
+
return e.toLowerCase().startsWith("on") ? {
|
|
3705
|
+
error: !0,
|
|
3706
|
+
msg: `Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
|
|
3707
|
+
If '${e}' is a directive input, make sure the directive is imported by the current module.`
|
|
3708
|
+
} : { error: !1 };
|
|
3709
|
+
}
|
|
3710
|
+
validateAttribute(e) {
|
|
3711
|
+
return e.toLowerCase().startsWith("on") ? {
|
|
3712
|
+
error: !0,
|
|
3713
|
+
msg: `Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`
|
|
3714
|
+
} : { error: !1 };
|
|
3715
|
+
}
|
|
3716
|
+
allKnownElementNames() {
|
|
3717
|
+
return Array.from(this._schema.keys());
|
|
3718
|
+
}
|
|
3719
|
+
allKnownAttributesOfElement(e) {
|
|
3720
|
+
let n = Fe(e), s = this._schema.get(n) || this._schema.get("unknown");
|
|
3721
|
+
return Array.from(s.keys()).map((i) => Eo.get(i) ?? i);
|
|
3722
|
+
}
|
|
3723
|
+
allKnownEventsOfElement(e) {
|
|
3724
|
+
let n = Fe(e);
|
|
3725
|
+
return Array.from(this._eventSchema.get(n) ?? []);
|
|
3726
|
+
}
|
|
3727
|
+
normalizeAnimationStyleProperty(e) {
|
|
3728
|
+
return wr(e);
|
|
3729
|
+
}
|
|
3730
|
+
normalizeAnimationStyleValue(e, n, s) {
|
|
3731
|
+
let i = "", r = s.toString().trim(), a = null;
|
|
3732
|
+
if (Co(e) && s !== 0 && s !== "0") if (typeof s == "number") i = "px";
|
|
3733
|
+
else {
|
|
3734
|
+
let u = s.match(/^[+-]?[\d\.]+([a-z]*)$/);
|
|
3735
|
+
u && u[1].length == 0 && (a = `Please provide a CSS unit value for ${n}:${s}`);
|
|
3736
|
+
}
|
|
3737
|
+
return {
|
|
3738
|
+
error: a,
|
|
3739
|
+
value: r + i
|
|
3740
|
+
};
|
|
3741
|
+
}
|
|
3742
|
+
};
|
|
3743
|
+
new ge(new Oe());
|
|
3276
3744
|
l.StyleMap, l.ClassMap, l.StyleProp, l.ClassProp, l.Attribute, l.Property, l.Attribute, l.Control;
|
|
3277
3745
|
l.DomProperty, l.DomProperty, l.Attribute, l.StyleMap, l.ClassMap, l.StyleProp, l.ClassProp;
|
|
3278
3746
|
l.Listener, l.TwoWayListener, l.AnimationListener, l.StyleMap, l.ClassMap, l.StyleProp, l.ClassProp, l.Property, l.TwoWayProperty, l.DomProperty, l.Attribute, l.Animation, l.Control;
|
|
3279
|
-
|
|
3747
|
+
O.Idle, c.deferOnIdle, c.deferPrefetchOnIdle, c.deferHydrateOnIdle, O.Immediate, c.deferOnImmediate, c.deferPrefetchOnImmediate, c.deferHydrateOnImmediate, O.Timer, c.deferOnTimer, c.deferPrefetchOnTimer, c.deferHydrateOnTimer, O.Hover, c.deferOnHover, c.deferPrefetchOnHover, c.deferHydrateOnHover, O.Interaction, c.deferOnInteraction, c.deferPrefetchOnInteraction, c.deferHydrateOnInteraction, O.Viewport, c.deferOnViewport, c.deferPrefetchOnViewport, c.deferHydrateOnViewport, O.Never, c.deferHydrateNever, c.deferHydrateNever, c.deferHydrateNever;
|
|
3280
3748
|
c.pipeBind1, c.pipeBind2, c.pipeBind3, c.pipeBind4;
|
|
3281
3749
|
c.interpolate, c.interpolate1, c.interpolate2, c.interpolate3, c.interpolate4, c.interpolate5, c.interpolate6, c.interpolate7, c.interpolate8, c.interpolateV;
|
|
3282
3750
|
c.resolveWindow, c.resolveDocument, c.resolveBody;
|
|
3283
|
-
|
|
3284
|
-
|
|
3751
|
+
x.HTML, c.sanitizeHtml, x.RESOURCE_URL, c.sanitizeResourceUrl, x.SCRIPT, c.sanitizeScript, x.STYLE, c.sanitizeStyle, x.URL, c.sanitizeUrl, x.ATTRIBUTE_NO_BINDING, c.validateAttribute;
|
|
3752
|
+
x.HTML, c.trustConstantHtml, x.RESOURCE_URL, c.trustConstantResourceUrl;
|
|
3285
3753
|
(function(t) {
|
|
3286
3754
|
t[t.None = 0] = "None", t[t.ViewContextRead = 1] = "ViewContextRead", t[t.ViewContextWrite = 2] = "ViewContextWrite", t[t.SideEffectful = 4] = "SideEffectful";
|
|
3287
|
-
})(
|
|
3288
|
-
l.Container, l.ContainerStart, l.ContainerEnd, l.Element, l.ElementStart, l.ElementEnd, l.Template;
|
|
3755
|
+
})(Is || (Is = {}));
|
|
3289
3756
|
M.Property, R.Property, M.TwoWay, R.TwoWayProperty, M.Attribute, R.Attribute, M.Class, R.ClassName, M.Style, R.StyleProperty, M.LegacyAnimation, R.LegacyAnimation, M.Animation, R.Animation;
|
|
3290
3757
|
(function(t) {
|
|
3291
3758
|
t[t.NG_CONTENT = 0] = "NG_CONTENT", t[t.STYLE = 1] = "STYLE", t[t.STYLESHEET = 2] = "STYLESHEET", t[t.SCRIPT = 3] = "SCRIPT", t[t.OTHER = 4] = "OTHER";
|
|
3292
|
-
})(
|
|
3759
|
+
})(Ns || (Ns = {}));
|
|
3293
3760
|
(function(t) {
|
|
3294
3761
|
t.IDLE = "idle", t.TIMER = "timer", t.INTERACTION = "interaction", t.IMMEDIATE = "immediate", t.HOVER = "hover", t.VIEWPORT = "viewport", t.NEVER = "never";
|
|
3295
|
-
})(
|
|
3296
|
-
|
|
3297
|
-
`${
|
|
3298
|
-
`${
|
|
3762
|
+
})(As || (As = {}));
|
|
3763
|
+
Zs = "%COMP%";
|
|
3764
|
+
`${Zs}`;
|
|
3765
|
+
`${Zs}`;
|
|
3766
|
+
(function(t) {
|
|
3767
|
+
t[t.Selector = 0] = "Selector", t[t.HostDirective = 1] = "HostDirective";
|
|
3768
|
+
})(Ps || (Ps = {}));
|
|
3299
3769
|
(function(t) {
|
|
3300
3770
|
t[t.Extract = 0] = "Extract", t[t.Merge = 1] = "Merge";
|
|
3301
|
-
})(
|
|
3771
|
+
})(Ls || (Ls = {}));
|
|
3772
|
+
new Dt("22.0.4");
|
|
3302
3773
|
(function(t) {
|
|
3303
|
-
t
|
|
3304
|
-
})(
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3774
|
+
t.DIAGNOSTIC = "D", t.EXPRESSION_TYPE_IDENTIFIER = "T";
|
|
3775
|
+
})($s || ($s = {}));
|
|
3776
|
+
(function(t) {
|
|
3777
|
+
t.DIRECTIVE = "DIR", t.HOST_DIRECTIVE = "HOSTDIR", t.COMPONENT_COMPLETION = "COMPCOMP", t.EVENT_PARAMETER = "EP", t.VARIABLE_AS_EXPRESSION = "VAE";
|
|
3778
|
+
})(Ms || (Ms = {}));
|
|
3779
|
+
(function(t) {
|
|
3780
|
+
t[t.Error = 0] = "Error", t[t.Warning = 1] = "Warning";
|
|
3781
|
+
})(Rs || (Rs = {}));
|
|
3782
|
+
(function(t) {
|
|
3783
|
+
t[t.UseEmitter = 0] = "UseEmitter", t[t.CopyClassNodes = 1] = "CopyClassNodes", t[t.FallbackToAny = 2] = "FallbackToAny";
|
|
3784
|
+
})(Os || (Os = {}));
|
|
3785
|
+
(class t {
|
|
3786
|
+
static SINGLETON = new t();
|
|
3787
|
+
static veWillInferAnyFor(e) {
|
|
3788
|
+
let n = t.SINGLETON;
|
|
3789
|
+
return e instanceof Xe ? e.visit(n) : e.receiver.visit(n);
|
|
3790
|
+
}
|
|
3791
|
+
visitUnary(e) {
|
|
3792
|
+
return e.expr.visit(this);
|
|
3793
|
+
}
|
|
3794
|
+
visitBinary(e) {
|
|
3795
|
+
return e.left.visit(this) || e.right.visit(this);
|
|
3796
|
+
}
|
|
3797
|
+
visitChain() {
|
|
3798
|
+
return !1;
|
|
3799
|
+
}
|
|
3800
|
+
visitConditional(e) {
|
|
3801
|
+
return e.condition.visit(this) || e.trueExp.visit(this) || e.falseExp.visit(this);
|
|
3802
|
+
}
|
|
3803
|
+
visitCall() {
|
|
3804
|
+
return !0;
|
|
3805
|
+
}
|
|
3806
|
+
visitSafeCall() {
|
|
3807
|
+
return !1;
|
|
3808
|
+
}
|
|
3809
|
+
visitImplicitReceiver() {
|
|
3810
|
+
return !1;
|
|
3811
|
+
}
|
|
3812
|
+
visitThisReceiver() {
|
|
3813
|
+
return !1;
|
|
3814
|
+
}
|
|
3815
|
+
visitInterpolation(e) {
|
|
3816
|
+
return e.expressions.some((n) => n.visit(this));
|
|
3817
|
+
}
|
|
3818
|
+
visitKeyedRead() {
|
|
3819
|
+
return !1;
|
|
3820
|
+
}
|
|
3821
|
+
visitLiteralArray() {
|
|
3822
|
+
return !0;
|
|
3823
|
+
}
|
|
3824
|
+
visitLiteralMap() {
|
|
3825
|
+
return !0;
|
|
3826
|
+
}
|
|
3827
|
+
visitLiteralPrimitive() {
|
|
3828
|
+
return !1;
|
|
3829
|
+
}
|
|
3830
|
+
visitPipe() {
|
|
3831
|
+
return !0;
|
|
3832
|
+
}
|
|
3833
|
+
visitPrefixNot(e) {
|
|
3834
|
+
return e.expression.visit(this);
|
|
3835
|
+
}
|
|
3836
|
+
visitTypeofExpression(e) {
|
|
3837
|
+
return e.expression.visit(this);
|
|
3838
|
+
}
|
|
3839
|
+
visitVoidExpression(e) {
|
|
3840
|
+
return e.expression.visit(this);
|
|
3841
|
+
}
|
|
3842
|
+
visitNonNullAssert(e) {
|
|
3843
|
+
return e.expression.visit(this);
|
|
3844
|
+
}
|
|
3845
|
+
visitPropertyRead() {
|
|
3846
|
+
return !1;
|
|
3847
|
+
}
|
|
3848
|
+
visitSafePropertyRead() {
|
|
3849
|
+
return !1;
|
|
3850
|
+
}
|
|
3851
|
+
visitSafeKeyedRead() {
|
|
3852
|
+
return !1;
|
|
3853
|
+
}
|
|
3854
|
+
visitTemplateLiteral() {
|
|
3855
|
+
return !1;
|
|
3856
|
+
}
|
|
3857
|
+
visitTemplateLiteralElement() {
|
|
3858
|
+
return !1;
|
|
3859
|
+
}
|
|
3860
|
+
visitTaggedTemplateLiteral() {
|
|
3861
|
+
return !1;
|
|
3862
|
+
}
|
|
3863
|
+
visitParenthesizedExpression(e) {
|
|
3864
|
+
return e.expression.visit(this);
|
|
3865
|
+
}
|
|
3866
|
+
visitRegularExpressionLiteral() {
|
|
3867
|
+
return !1;
|
|
3868
|
+
}
|
|
3869
|
+
visitSpreadElement(e) {
|
|
3870
|
+
return e.expression.visit(this);
|
|
3871
|
+
}
|
|
3872
|
+
visitArrowFunction(e, n) {
|
|
3873
|
+
return !1;
|
|
3874
|
+
}
|
|
3875
|
+
});
|
|
3876
|
+
new it();
|
|
3877
|
+
new it();
|
|
3878
|
+
ko = "test.html";
|
|
3879
|
+
Io = (t) => ge.prototype._commentStart(t);
|
|
3880
|
+
ct = (t) => (e) => {
|
|
3881
|
+
let n = ei(e);
|
|
3882
|
+
return ni({
|
|
3311
3883
|
...n,
|
|
3312
|
-
result:
|
|
3313
|
-
comments:
|
|
3884
|
+
result: ti()[t](e, n.sourceSpan, 0),
|
|
3885
|
+
comments: No(e)
|
|
3314
3886
|
});
|
|
3315
|
-
},
|
|
3316
|
-
let e =
|
|
3317
|
-
return
|
|
3887
|
+
}, si = ct("parseAction"), ii = ct("parseBinding"), oi = ct("parseInterpolationExpression"), ai = (t) => {
|
|
3888
|
+
let e = ei(t);
|
|
3889
|
+
return ni({
|
|
3318
3890
|
...e,
|
|
3319
|
-
result:
|
|
3891
|
+
result: ti().parseTemplateBindings("", t, e.sourceSpan, 0, 0),
|
|
3320
3892
|
comments: []
|
|
3321
3893
|
});
|
|
3322
3894
|
};
|
|
3323
|
-
|
|
3895
|
+
ut = class {
|
|
3324
3896
|
text;
|
|
3325
3897
|
constructor(t) {
|
|
3326
3898
|
this.text = t;
|
|
3327
3899
|
}
|
|
3328
3900
|
getCharacterIndex(t, e) {
|
|
3329
|
-
return
|
|
3901
|
+
return An(this.text, t, e);
|
|
3330
3902
|
}
|
|
3331
3903
|
transformSpan(t) {
|
|
3332
|
-
return
|
|
3904
|
+
return Be(t);
|
|
3333
3905
|
}
|
|
3334
3906
|
createNode(t, e) {
|
|
3335
|
-
let n = t.start, s = t.end,
|
|
3336
|
-
e && (Array.isArray(e) ? ([n, s] = e,
|
|
3337
|
-
|
|
3338
|
-
if (!(typeof n == "number" && typeof s == "number" &&
|
|
3339
|
-
let
|
|
3907
|
+
let n = t.start, s = t.end, i = t.range;
|
|
3908
|
+
e && (Array.isArray(e) ? ([n, s] = e, i = e) : ({start: n, end: s} = e.sourceSpan ?? e, i = [n, s]));
|
|
3909
|
+
i ? [n, s] = i : typeof n == "number" && typeof s == "number" && (i = [n, s]);
|
|
3910
|
+
if (!(typeof n == "number" && typeof s == "number" && i)) throw new Error("Missing location information");
|
|
3911
|
+
let r = {
|
|
3340
3912
|
...t,
|
|
3341
3913
|
start: n,
|
|
3342
3914
|
end: s,
|
|
3343
|
-
range:
|
|
3915
|
+
range: i
|
|
3344
3916
|
};
|
|
3345
|
-
switch (
|
|
3917
|
+
switch (r.type) {
|
|
3346
3918
|
case "NumericLiteral":
|
|
3347
3919
|
case "StringLiteral":
|
|
3348
3920
|
case "RegExpLiteral": {
|
|
3349
|
-
let a = this.text.slice(n, s), { value:
|
|
3350
|
-
|
|
3351
|
-
...
|
|
3921
|
+
let a = this.text.slice(n, s), { value: u } = r;
|
|
3922
|
+
r.extra = {
|
|
3923
|
+
...r.extra,
|
|
3352
3924
|
raw: a,
|
|
3353
|
-
rawValue:
|
|
3925
|
+
rawValue: u
|
|
3354
3926
|
};
|
|
3355
3927
|
break;
|
|
3356
3928
|
}
|
|
3357
3929
|
}
|
|
3358
|
-
return
|
|
3930
|
+
return r;
|
|
3359
3931
|
}
|
|
3360
3932
|
};
|
|
3361
|
-
|
|
3933
|
+
li = Object.defineProperty, ci = (t, e) => {
|
|
3362
3934
|
let n = {};
|
|
3363
|
-
for (var s in t)
|
|
3935
|
+
for (var s in t) li(n, s, {
|
|
3364
3936
|
get: t[s],
|
|
3365
3937
|
enumerable: !0
|
|
3366
3938
|
});
|
|
3367
|
-
return e
|
|
3939
|
+
return e || li(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
3368
3940
|
};
|
|
3369
|
-
|
|
3941
|
+
ui = (t, e) => ({
|
|
3370
3942
|
type: "ArrayExpression",
|
|
3371
3943
|
elements: e.transformChildren(t.expressions)
|
|
3372
3944
|
});
|
|
3373
|
-
|
|
3945
|
+
Ao = {
|
|
3374
3946
|
id: null,
|
|
3375
3947
|
generator: !1,
|
|
3376
3948
|
async: !1,
|
|
3377
3949
|
expression: !0
|
|
3378
|
-
},
|
|
3950
|
+
}, pi = (t, e) => ({
|
|
3379
3951
|
type: "ArrowFunctionExpression",
|
|
3380
3952
|
params: t.parameters.map((n) => e.createNode({
|
|
3381
3953
|
type: "Identifier",
|
|
3382
3954
|
name: n.name
|
|
3383
3955
|
}, n.sourceSpan)),
|
|
3384
3956
|
body: e.transformChild(t.body),
|
|
3385
|
-
...
|
|
3957
|
+
...Ao
|
|
3386
3958
|
});
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
let { operation: n } = t, [s,
|
|
3390
|
-
return
|
|
3959
|
+
hi = (t, e) => e.transformChild(t.ast);
|
|
3960
|
+
Po = (t) => t === "&&" || t === "||" || t === "??", fi = (t, e) => {
|
|
3961
|
+
let { operation: n } = t, [s, i] = e.transformChildren([t.left, t.right]);
|
|
3962
|
+
return Po(n) ? {
|
|
3391
3963
|
type: "LogicalExpression",
|
|
3392
3964
|
operator: n,
|
|
3393
3965
|
left: s,
|
|
3394
|
-
right:
|
|
3966
|
+
right: i
|
|
3395
3967
|
} : E.isAssignmentOperation(n) ? {
|
|
3396
3968
|
type: "AssignmentExpression",
|
|
3397
3969
|
left: s,
|
|
3398
|
-
right:
|
|
3970
|
+
right: i,
|
|
3399
3971
|
operator: n
|
|
3400
3972
|
} : {
|
|
3401
3973
|
left: s,
|
|
3402
|
-
right:
|
|
3974
|
+
right: i,
|
|
3403
3975
|
type: "BinaryExpression",
|
|
3404
3976
|
operator: n
|
|
3405
3977
|
};
|
|
3406
3978
|
};
|
|
3407
|
-
|
|
3408
|
-
let s = n.transformChildren(e.args),
|
|
3409
|
-
return t ||
|
|
3979
|
+
Lo = { optional: !1 }, $o = { optional: !0 }, di = ({ optional: t }) => (e, n) => {
|
|
3980
|
+
let s = n.transformChildren(e.args), i = n.transformChild(e.receiver);
|
|
3981
|
+
return t || ye(i) ? {
|
|
3410
3982
|
type: "OptionalCallExpression",
|
|
3411
|
-
callee:
|
|
3983
|
+
callee: i,
|
|
3412
3984
|
arguments: s,
|
|
3413
3985
|
optional: t
|
|
3414
3986
|
} : {
|
|
3415
3987
|
type: "CallExpression",
|
|
3416
|
-
callee:
|
|
3988
|
+
callee: i,
|
|
3417
3989
|
arguments: s
|
|
3418
3990
|
};
|
|
3419
|
-
},
|
|
3420
|
-
|
|
3991
|
+
}, mi = di(Lo), gi = di($o);
|
|
3992
|
+
vi = (t, e) => ({
|
|
3421
3993
|
type: "NGChainedExpression",
|
|
3422
3994
|
expressions: e.transformChildren(t.expressions)
|
|
3423
3995
|
});
|
|
3424
|
-
|
|
3425
|
-
let [n, s,
|
|
3996
|
+
wi = (t, e) => {
|
|
3997
|
+
let [n, s, i] = e.transformChildren([
|
|
3426
3998
|
t.condition,
|
|
3427
3999
|
t.trueExp,
|
|
3428
4000
|
t.falseExp
|
|
@@ -3431,16 +4003,16 @@ var init_angular = __esmMin((() => {
|
|
|
3431
4003
|
type: "ConditionalExpression",
|
|
3432
4004
|
test: n,
|
|
3433
4005
|
consequent: s,
|
|
3434
|
-
alternate:
|
|
4006
|
+
alternate: i
|
|
3435
4007
|
};
|
|
3436
4008
|
};
|
|
3437
|
-
|
|
3438
|
-
|
|
4009
|
+
Si = () => ({ type: "NGEmptyExpression" });
|
|
4010
|
+
xi = (t, e) => {
|
|
3439
4011
|
let { expressions: n } = t;
|
|
3440
4012
|
if (n.length !== 1) throw new Error("Unexpected 'Interpolation'");
|
|
3441
4013
|
return e.transformChild(n[0]);
|
|
3442
4014
|
};
|
|
3443
|
-
|
|
4015
|
+
yi = (t) => {
|
|
3444
4016
|
let { value: e } = t;
|
|
3445
4017
|
switch (typeof e) {
|
|
3446
4018
|
case "boolean": return {
|
|
@@ -3462,74 +4034,74 @@ var init_angular = __esmMin((() => {
|
|
|
3462
4034
|
};
|
|
3463
4035
|
default: throw new Error(`Unexpected 'LiteralPrimitive' value type ${typeof e}`);
|
|
3464
4036
|
}
|
|
3465
|
-
},
|
|
4037
|
+
}, Ei = (t) => ({
|
|
3466
4038
|
type: "RegExpLiteral",
|
|
3467
4039
|
pattern: t.body,
|
|
3468
4040
|
flags: t.flags ?? ""
|
|
3469
4041
|
});
|
|
3470
|
-
|
|
4042
|
+
Mo = {
|
|
3471
4043
|
computed: !0,
|
|
3472
4044
|
optional: !1
|
|
3473
|
-
},
|
|
4045
|
+
}, Ro = {
|
|
3474
4046
|
computed: !0,
|
|
3475
4047
|
optional: !0
|
|
3476
|
-
},
|
|
4048
|
+
}, Oo = {
|
|
3477
4049
|
computed: !1,
|
|
3478
4050
|
optional: !1
|
|
3479
|
-
},
|
|
4051
|
+
}, Do = {
|
|
3480
4052
|
computed: !1,
|
|
3481
4053
|
optional: !0
|
|
3482
|
-
},
|
|
3483
|
-
let { receiver:
|
|
4054
|
+
}, pt = ({ computed: t, optional: e }) => (n, s) => {
|
|
4055
|
+
let { receiver: i } = n, r;
|
|
3484
4056
|
if (t) {
|
|
3485
|
-
let { key:
|
|
3486
|
-
|
|
4057
|
+
let { key: u } = n;
|
|
4058
|
+
r = s.transformChild(u);
|
|
3487
4059
|
} else {
|
|
3488
|
-
let
|
|
3489
|
-
if (
|
|
4060
|
+
let u = i instanceof fe, { name: h, nameSpan: d } = n;
|
|
4061
|
+
if (r = s.create({
|
|
3490
4062
|
type: "Identifier",
|
|
3491
4063
|
name: h
|
|
3492
|
-
}, d,
|
|
4064
|
+
}, d, u ? s.ancestors : []), u) return r;
|
|
3493
4065
|
}
|
|
3494
|
-
let a = s.transformChild(
|
|
3495
|
-
return e ||
|
|
4066
|
+
let a = s.transformChild(i);
|
|
4067
|
+
return e || ye(a) ? {
|
|
3496
4068
|
type: "OptionalMemberExpression",
|
|
3497
4069
|
optional: e,
|
|
3498
|
-
property:
|
|
4070
|
+
property: r,
|
|
3499
4071
|
object: a,
|
|
3500
4072
|
computed: t
|
|
3501
4073
|
} : {
|
|
3502
4074
|
type: "MemberExpression",
|
|
3503
|
-
property:
|
|
4075
|
+
property: r,
|
|
3504
4076
|
object: a,
|
|
3505
4077
|
computed: t
|
|
3506
4078
|
};
|
|
3507
|
-
},
|
|
3508
|
-
|
|
4079
|
+
}, Ci = pt(Mo), bi = pt(Ro), Ti = pt(Oo), ki = pt(Do);
|
|
4080
|
+
_i = (t, e) => ({
|
|
3509
4081
|
type: "TSNonNullExpression",
|
|
3510
4082
|
expression: e.transformChild(t.expression)
|
|
3511
4083
|
});
|
|
3512
|
-
|
|
3513
|
-
let { keys: n, values: s } = t,
|
|
4084
|
+
Ii = (t, e) => {
|
|
4085
|
+
let { keys: n, values: s } = t, i = (r, a = t) => e.create(r, a, [t, ...e.ancestors]);
|
|
3514
4086
|
return {
|
|
3515
4087
|
type: "ObjectExpression",
|
|
3516
|
-
properties: n.map((
|
|
3517
|
-
let
|
|
3518
|
-
if (
|
|
4088
|
+
properties: n.map((r, a) => {
|
|
4089
|
+
let u = s[a], h = [r.sourceSpan.start, u.sourceSpan.end];
|
|
4090
|
+
if (r.kind === "spread") return i({
|
|
3519
4091
|
type: "SpreadElement",
|
|
3520
|
-
argument: e.transformChild(
|
|
4092
|
+
argument: e.transformChild(u)
|
|
3521
4093
|
}, h);
|
|
3522
|
-
let d = !!
|
|
3523
|
-
return
|
|
4094
|
+
let d = !!r.isShorthandInitialized;
|
|
4095
|
+
return i({
|
|
3524
4096
|
type: "ObjectProperty",
|
|
3525
|
-
key: r
|
|
4097
|
+
key: i(r.quoted ? {
|
|
3526
4098
|
type: "StringLiteral",
|
|
3527
|
-
value:
|
|
4099
|
+
value: r.key
|
|
3528
4100
|
} : {
|
|
3529
4101
|
type: "Identifier",
|
|
3530
|
-
name:
|
|
3531
|
-
},
|
|
3532
|
-
value: e.transformChild(
|
|
4102
|
+
name: r.key
|
|
4103
|
+
}, r.sourceSpan),
|
|
4104
|
+
value: e.transformChild(u),
|
|
3533
4105
|
shorthand: d,
|
|
3534
4106
|
computed: !1,
|
|
3535
4107
|
method: !1
|
|
@@ -3537,8 +4109,8 @@ var init_angular = __esmMin((() => {
|
|
|
3537
4109
|
})
|
|
3538
4110
|
};
|
|
3539
4111
|
};
|
|
3540
|
-
|
|
3541
|
-
|
|
4112
|
+
Ni = (t, e) => e.transformChild(t.expression);
|
|
4113
|
+
Ai = (t, e) => ({
|
|
3542
4114
|
type: "NGPipeExpression",
|
|
3543
4115
|
left: e.transformChild(t.exp),
|
|
3544
4116
|
right: e.create({
|
|
@@ -3547,20 +4119,20 @@ var init_angular = __esmMin((() => {
|
|
|
3547
4119
|
}, t.nameSpan),
|
|
3548
4120
|
arguments: e.transformChildren(t.args)
|
|
3549
4121
|
});
|
|
3550
|
-
|
|
4122
|
+
Pi = (t, e) => ({
|
|
3551
4123
|
type: "SpreadElement",
|
|
3552
4124
|
argument: e.transformChild(t.expression)
|
|
3553
4125
|
});
|
|
3554
|
-
|
|
4126
|
+
Li = (t, e) => ({
|
|
3555
4127
|
type: "TaggedTemplateExpression",
|
|
3556
4128
|
tag: e.transformChild(t.tag),
|
|
3557
4129
|
quasi: e.transformChild(t.template)
|
|
3558
|
-
}),
|
|
4130
|
+
}), $i = (t, e) => ({
|
|
3559
4131
|
type: "TemplateLiteral",
|
|
3560
4132
|
quasis: e.transformChildren(t.elements),
|
|
3561
4133
|
expressions: e.transformChildren(t.expressions)
|
|
3562
|
-
}),
|
|
3563
|
-
let [n] = e.ancestors, { elements: s } = n,
|
|
4134
|
+
}), Mi = (t, e) => {
|
|
4135
|
+
let [n] = e.ancestors, { elements: s } = n, i = s.indexOf(t), r = i === 0, a = i === s.length - 1, u = t.sourceSpan.end - (a ? 1 : 0), h = t.sourceSpan.start + (r ? 1 : 0), d = e.text.slice(h, u);
|
|
3564
4136
|
return {
|
|
3565
4137
|
type: "TemplateElement",
|
|
3566
4138
|
value: {
|
|
@@ -3568,70 +4140,70 @@ var init_angular = __esmMin((() => {
|
|
|
3568
4140
|
raw: d
|
|
3569
4141
|
},
|
|
3570
4142
|
tail: a,
|
|
3571
|
-
range: [h,
|
|
4143
|
+
range: [h, u]
|
|
3572
4144
|
};
|
|
3573
4145
|
};
|
|
3574
|
-
|
|
3575
|
-
|
|
4146
|
+
Ri = () => ({ type: "ThisExpression" });
|
|
4147
|
+
dn = (t) => (e, n) => ({
|
|
3576
4148
|
type: "UnaryExpression",
|
|
3577
4149
|
prefix: !0,
|
|
3578
4150
|
operator: t,
|
|
3579
4151
|
argument: n.transformChild(e.expression)
|
|
3580
|
-
}),
|
|
4152
|
+
}), Oi = dn("!"), Di = dn("typeof"), Bi = dn("void"), Fi = (t, e) => ({
|
|
3581
4153
|
type: "UnaryExpression",
|
|
3582
4154
|
prefix: !0,
|
|
3583
4155
|
argument: e.transformChild(t.expr),
|
|
3584
4156
|
operator: t.operator
|
|
3585
4157
|
});
|
|
3586
|
-
|
|
4158
|
+
Bo = (t) => {
|
|
3587
4159
|
throw new Error(`Unexpected node type '${t.constructor.name}'`);
|
|
3588
|
-
},
|
|
3589
|
-
|
|
3590
|
-
visitASTWithSource: () =>
|
|
3591
|
-
visitArrowFunction: () =>
|
|
3592
|
-
visitBinary: () =>
|
|
3593
|
-
visitCall: () =>
|
|
3594
|
-
visitChain: () =>
|
|
3595
|
-
visitConditional: () =>
|
|
3596
|
-
visitEmptyExpr: () =>
|
|
3597
|
-
visitImplicitReceiver: () =>
|
|
3598
|
-
visitInterpolation: () =>
|
|
3599
|
-
visitKeyedRead: () =>
|
|
3600
|
-
visitLiteralArray: () =>
|
|
3601
|
-
visitLiteralMap: () =>
|
|
3602
|
-
visitLiteralPrimitive: () =>
|
|
3603
|
-
visitNonNullAssert: () =>
|
|
3604
|
-
visitParenthesizedExpression: () =>
|
|
3605
|
-
visitPipe: () =>
|
|
3606
|
-
visitPrefixNot: () =>
|
|
3607
|
-
visitPropertyRead: () =>
|
|
3608
|
-
visitRegularExpressionLiteral: () =>
|
|
3609
|
-
visitSafeCall: () =>
|
|
3610
|
-
visitSafeKeyedRead: () =>
|
|
3611
|
-
visitSafePropertyRead: () =>
|
|
3612
|
-
visitSpreadElement: () =>
|
|
3613
|
-
visitTaggedTemplateLiteral: () =>
|
|
3614
|
-
visitTemplateLiteral: () =>
|
|
3615
|
-
visitTemplateLiteralElement: () =>
|
|
3616
|
-
visitThisReceiver: () =>
|
|
3617
|
-
visitTypeofExpression: () =>
|
|
3618
|
-
visitUnary: () =>
|
|
3619
|
-
visitVoidExpression: () =>
|
|
4160
|
+
}, Vi = Bo;
|
|
4161
|
+
Ui = ci({
|
|
4162
|
+
visitASTWithSource: () => hi,
|
|
4163
|
+
visitArrowFunction: () => pi,
|
|
4164
|
+
visitBinary: () => fi,
|
|
4165
|
+
visitCall: () => mi,
|
|
4166
|
+
visitChain: () => vi,
|
|
4167
|
+
visitConditional: () => wi,
|
|
4168
|
+
visitEmptyExpr: () => Si,
|
|
4169
|
+
visitImplicitReceiver: () => Vi,
|
|
4170
|
+
visitInterpolation: () => xi,
|
|
4171
|
+
visitKeyedRead: () => Ci,
|
|
4172
|
+
visitLiteralArray: () => ui,
|
|
4173
|
+
visitLiteralMap: () => Ii,
|
|
4174
|
+
visitLiteralPrimitive: () => yi,
|
|
4175
|
+
visitNonNullAssert: () => _i,
|
|
4176
|
+
visitParenthesizedExpression: () => Ni,
|
|
4177
|
+
visitPipe: () => Ai,
|
|
4178
|
+
visitPrefixNot: () => Oi,
|
|
4179
|
+
visitPropertyRead: () => Ti,
|
|
4180
|
+
visitRegularExpressionLiteral: () => Ei,
|
|
4181
|
+
visitSafeCall: () => gi,
|
|
4182
|
+
visitSafeKeyedRead: () => bi,
|
|
4183
|
+
visitSafePropertyRead: () => ki,
|
|
4184
|
+
visitSpreadElement: () => Pi,
|
|
4185
|
+
visitTaggedTemplateLiteral: () => Li,
|
|
4186
|
+
visitTemplateLiteral: () => $i,
|
|
4187
|
+
visitTemplateLiteralElement: () => Mi,
|
|
4188
|
+
visitThisReceiver: () => Ri,
|
|
4189
|
+
visitTypeofExpression: () => Di,
|
|
4190
|
+
visitUnary: () => Fi,
|
|
4191
|
+
visitVoidExpression: () => Bi
|
|
3620
4192
|
});
|
|
3621
|
-
|
|
4193
|
+
ht = class mn extends ut {
|
|
3622
4194
|
node;
|
|
3623
4195
|
ancestors;
|
|
3624
4196
|
constructor({ node: e, text: n, ancestors: s = [] }) {
|
|
3625
4197
|
super(n), this.node = e, this.ancestors = s;
|
|
3626
4198
|
}
|
|
3627
4199
|
create(e, n, s = this.ancestors) {
|
|
3628
|
-
return s[0] instanceof
|
|
4200
|
+
return s[0] instanceof $e && (e.extra = {
|
|
3629
4201
|
...e.extra,
|
|
3630
4202
|
parenthesized: !0
|
|
3631
4203
|
}), super.createNode(e, e.range ?? n ?? this.node);
|
|
3632
4204
|
}
|
|
3633
4205
|
transformChild(e) {
|
|
3634
|
-
return new
|
|
4206
|
+
return new mn({
|
|
3635
4207
|
node: e,
|
|
3636
4208
|
ancestors: [this.node, ...this.ancestors],
|
|
3637
4209
|
text: this.text
|
|
@@ -3641,18 +4213,18 @@ var init_angular = __esmMin((() => {
|
|
|
3641
4213
|
return e.map((n) => this.transformChild(n));
|
|
3642
4214
|
}
|
|
3643
4215
|
transform() {
|
|
3644
|
-
let { node: e } = this, n = e.visit(
|
|
4216
|
+
let { node: e } = this, n = e.visit(Ui, this);
|
|
3645
4217
|
return this.create(n, this.node);
|
|
3646
4218
|
}
|
|
3647
4219
|
static transform(e, n) {
|
|
3648
|
-
return new
|
|
4220
|
+
return new mn({
|
|
3649
4221
|
node: e,
|
|
3650
4222
|
text: n,
|
|
3651
4223
|
ancestors: []
|
|
3652
4224
|
}).transform();
|
|
3653
4225
|
}
|
|
3654
4226
|
};
|
|
3655
|
-
|
|
4227
|
+
Wi = class extends ht {
|
|
3656
4228
|
constructor(t) {
|
|
3657
4229
|
super({
|
|
3658
4230
|
node: t,
|
|
@@ -3660,50 +4232,50 @@ var init_angular = __esmMin((() => {
|
|
|
3660
4232
|
});
|
|
3661
4233
|
}
|
|
3662
4234
|
};
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
if (Array.isArray(this) || typeof this == "string") return
|
|
4235
|
+
qi = (t, e) => ht.transform(t, e), ji = (t) => new Wi(t).transform();
|
|
4236
|
+
zi = (t, e) => (n, s, ...i) => n | 1 && s == null ? void 0 : (e.call(s) ?? s[t]).apply(s, i);
|
|
4237
|
+
ft = zi("at", function() {
|
|
4238
|
+
if (Array.isArray(this) || typeof this == "string") return Fo;
|
|
3667
4239
|
});
|
|
3668
|
-
|
|
4240
|
+
Ho = (Se = class extends ut {
|
|
3669
4241
|
constructor(n, s) {
|
|
3670
4242
|
super(s);
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
for (let
|
|
4243
|
+
De(this, m);
|
|
4244
|
+
De(this, we);
|
|
4245
|
+
De(this, se);
|
|
4246
|
+
wt(this, we, n), wt(this, se, s);
|
|
4247
|
+
for (let i of n) w(this, m, Ji).call(this, i);
|
|
3676
4248
|
}
|
|
3677
4249
|
get expressions() {
|
|
3678
|
-
return
|
|
3679
|
-
}
|
|
3680
|
-
},
|
|
3681
|
-
return
|
|
3682
|
-
},
|
|
3683
|
-
return
|
|
3684
|
-
},
|
|
3685
|
-
return
|
|
3686
|
-
},
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3689
|
-
let s =
|
|
4250
|
+
return w(this, m, Ki).call(this);
|
|
4251
|
+
}
|
|
4252
|
+
}, we = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), Qi = function() {
|
|
4253
|
+
return z(this, we)[0].key;
|
|
4254
|
+
}, T = function(n, s) {
|
|
4255
|
+
return In(Se.prototype, this, "createNode").call(this, n, s);
|
|
4256
|
+
}, gn = function(n) {
|
|
4257
|
+
return qi(n, this.text);
|
|
4258
|
+
}, vn = function(n) {
|
|
4259
|
+
return Pn(n.slice(z(this, m, Qi).source.length));
|
|
4260
|
+
}, wn = function(n) {
|
|
4261
|
+
let s = z(this, se);
|
|
3690
4262
|
if (s[n.start] !== "\"" && s[n.start] !== "'") return;
|
|
3691
|
-
let
|
|
4263
|
+
let i = s[n.start], r = !1;
|
|
3692
4264
|
for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
|
|
3693
|
-
case
|
|
4265
|
+
case i: if (!r) {
|
|
3694
4266
|
n.end = a + 1;
|
|
3695
4267
|
return;
|
|
3696
4268
|
}
|
|
3697
4269
|
default:
|
|
3698
|
-
|
|
4270
|
+
r = !1;
|
|
3699
4271
|
break;
|
|
3700
4272
|
case "\\":
|
|
3701
|
-
|
|
4273
|
+
r = !r;
|
|
3702
4274
|
break;
|
|
3703
4275
|
}
|
|
3704
|
-
},
|
|
3705
|
-
|
|
3706
|
-
},
|
|
4276
|
+
}, Ji = function(n) {
|
|
4277
|
+
w(this, m, wn).call(this, n.key.span), Xi(n) && n.value && w(this, m, wn).call(this, n.value.span);
|
|
4278
|
+
}, Yi = function(n) {
|
|
3707
4279
|
if (!n.value || n.value.source) return n.value;
|
|
3708
4280
|
let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
|
|
3709
4281
|
return {
|
|
@@ -3713,100 +4285,120 @@ var init_angular = __esmMin((() => {
|
|
|
3713
4285
|
end: s
|
|
3714
4286
|
}
|
|
3715
4287
|
};
|
|
3716
|
-
},
|
|
3717
|
-
let n =
|
|
3718
|
-
for (let [
|
|
3719
|
-
if (a &&
|
|
3720
|
-
let d =
|
|
4288
|
+
}, Ki = function() {
|
|
4289
|
+
let n = z(this, we), [s] = n, i = z(this, se).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, r = [], a = null;
|
|
4290
|
+
for (let [u, h] of i.entries()) {
|
|
4291
|
+
if (a && Gi(a) && Xi(h) && h.value && h.value.source === a.key.source) {
|
|
4292
|
+
let d = w(this, m, T).call(this, {
|
|
3721
4293
|
type: "NGMicrosyntaxKey",
|
|
3722
4294
|
name: h.key.source
|
|
3723
|
-
}, h.key.span),
|
|
3724
|
-
...
|
|
4295
|
+
}, h.key.span), g = (_, b) => ({
|
|
4296
|
+
..._,
|
|
3725
4297
|
...this.transformSpan({
|
|
3726
|
-
start:
|
|
3727
|
-
end:
|
|
4298
|
+
start: _.start,
|
|
4299
|
+
end: b
|
|
3728
4300
|
})
|
|
3729
|
-
}),
|
|
3730
|
-
...
|
|
4301
|
+
}), P = (_) => ({
|
|
4302
|
+
...g(_, d.end),
|
|
3731
4303
|
alias: d
|
|
3732
|
-
}), k =
|
|
3733
|
-
if (k.type === "NGMicrosyntaxExpression")
|
|
4304
|
+
}), k = r.pop();
|
|
4305
|
+
if (k.type === "NGMicrosyntaxExpression") r.push(P(k));
|
|
3734
4306
|
else if (k.type === "NGMicrosyntaxKeyedExpression") {
|
|
3735
|
-
let
|
|
3736
|
-
|
|
4307
|
+
let _ = P(k.expression);
|
|
4308
|
+
r.push(g({
|
|
3737
4309
|
...k,
|
|
3738
|
-
expression:
|
|
3739
|
-
},
|
|
4310
|
+
expression: _
|
|
4311
|
+
}, _.end));
|
|
3740
4312
|
} else throw new Error(`Unexpected type ${k.type}`);
|
|
3741
|
-
} else
|
|
4313
|
+
} else r.push(w(this, m, Zi).call(this, h, u));
|
|
3742
4314
|
a = h;
|
|
3743
4315
|
}
|
|
3744
|
-
return
|
|
4316
|
+
return w(this, m, T).call(this, {
|
|
3745
4317
|
type: "NGMicrosyntax",
|
|
3746
|
-
body:
|
|
3747
|
-
},
|
|
3748
|
-
start:
|
|
3749
|
-
end:
|
|
4318
|
+
body: r
|
|
4319
|
+
}, r.length === 0 ? n[0].sourceSpan : {
|
|
4320
|
+
start: r[0].start,
|
|
4321
|
+
end: ft(0, r, -1).end
|
|
3750
4322
|
});
|
|
3751
|
-
},
|
|
3752
|
-
if (
|
|
3753
|
-
let { key:
|
|
3754
|
-
return
|
|
4323
|
+
}, Zi = function(n, s) {
|
|
4324
|
+
if (Gi(n)) {
|
|
4325
|
+
let { key: i, value: r } = n;
|
|
4326
|
+
return r ? s === 0 ? w(this, m, T).call(this, {
|
|
3755
4327
|
type: "NGMicrosyntaxExpression",
|
|
3756
|
-
expression:
|
|
4328
|
+
expression: w(this, m, gn).call(this, r.ast),
|
|
3757
4329
|
alias: null
|
|
3758
|
-
},
|
|
4330
|
+
}, r) : w(this, m, T).call(this, {
|
|
3759
4331
|
type: "NGMicrosyntaxKeyedExpression",
|
|
3760
|
-
key:
|
|
4332
|
+
key: w(this, m, T).call(this, {
|
|
3761
4333
|
type: "NGMicrosyntaxKey",
|
|
3762
|
-
name:
|
|
3763
|
-
},
|
|
3764
|
-
expression:
|
|
4334
|
+
name: w(this, m, vn).call(this, i.source)
|
|
4335
|
+
}, i.span),
|
|
4336
|
+
expression: w(this, m, T).call(this, {
|
|
3765
4337
|
type: "NGMicrosyntaxExpression",
|
|
3766
|
-
expression:
|
|
4338
|
+
expression: w(this, m, gn).call(this, r.ast),
|
|
3767
4339
|
alias: null
|
|
3768
|
-
},
|
|
3769
|
-
}, [
|
|
4340
|
+
}, r)
|
|
4341
|
+
}, [i.span.start, r.sourceSpan.end]) : w(this, m, T).call(this, {
|
|
3770
4342
|
type: "NGMicrosyntaxKey",
|
|
3771
|
-
name:
|
|
3772
|
-
},
|
|
4343
|
+
name: w(this, m, vn).call(this, i.source)
|
|
4344
|
+
}, i.span);
|
|
3773
4345
|
} else {
|
|
3774
|
-
let { key:
|
|
3775
|
-
if (/^let\s$/.test(
|
|
4346
|
+
let { key: i, sourceSpan: r } = n;
|
|
4347
|
+
if (/^let\s$/.test(z(this, se).slice(r.start, r.start + 4))) {
|
|
3776
4348
|
let { value: a } = n;
|
|
3777
|
-
return
|
|
4349
|
+
return w(this, m, T).call(this, {
|
|
3778
4350
|
type: "NGMicrosyntaxLet",
|
|
3779
|
-
key:
|
|
4351
|
+
key: w(this, m, T).call(this, {
|
|
3780
4352
|
type: "NGMicrosyntaxKey",
|
|
3781
|
-
name:
|
|
3782
|
-
},
|
|
3783
|
-
value: a ?
|
|
4353
|
+
name: i.source
|
|
4354
|
+
}, i.span),
|
|
4355
|
+
value: a ? w(this, m, T).call(this, {
|
|
3784
4356
|
type: "NGMicrosyntaxKey",
|
|
3785
4357
|
name: a.source
|
|
3786
4358
|
}, a.span) : null
|
|
3787
|
-
}, [
|
|
4359
|
+
}, [r.start, a ? a.span.end : i.span.end]);
|
|
3788
4360
|
} else {
|
|
3789
|
-
let a =
|
|
3790
|
-
return
|
|
4361
|
+
let a = w(this, m, Yi).call(this, n);
|
|
4362
|
+
return w(this, m, T).call(this, {
|
|
3791
4363
|
type: "NGMicrosyntaxAs",
|
|
3792
|
-
key:
|
|
4364
|
+
key: w(this, m, T).call(this, {
|
|
3793
4365
|
type: "NGMicrosyntaxKey",
|
|
3794
4366
|
name: a.source
|
|
3795
4367
|
}, a.span),
|
|
3796
|
-
alias:
|
|
4368
|
+
alias: w(this, m, T).call(this, {
|
|
3797
4369
|
type: "NGMicrosyntaxKey",
|
|
3798
|
-
name:
|
|
3799
|
-
},
|
|
3800
|
-
}, [a.span.start,
|
|
4370
|
+
name: i.source
|
|
4371
|
+
}, i.span)
|
|
4372
|
+
}, [a.span.start, i.span.end]);
|
|
3801
4373
|
}
|
|
3802
4374
|
}
|
|
3803
|
-
},
|
|
3804
|
-
|
|
4375
|
+
}, Se);
|
|
4376
|
+
dt = (t) => (e) => {
|
|
3805
4377
|
let { result: n, comments: s } = t(e);
|
|
3806
|
-
return Object.assign(
|
|
3807
|
-
},
|
|
3808
|
-
|
|
4378
|
+
return Object.assign(ji(n), { comments: s });
|
|
4379
|
+
}, mt = dt(si), Sn = dt(ii), xn = dt(oi), yn = (t) => er(ai(t).result.templateBindings, t);
|
|
4380
|
+
tr = Wo;
|
|
4381
|
+
qo = 5, jo = 8, zo = 8, sr = (t) => (e) => e.label ? re(e.label) : ie(e) + t, Go = (t) => t.__contentEnd ?? En(t), ir = [
|
|
4382
|
+
"ExpressionStatement",
|
|
4383
|
+
"Directive",
|
|
4384
|
+
"ImportDeclaration",
|
|
4385
|
+
"ExportDefaultDeclaration",
|
|
4386
|
+
"ExportNamedDeclaration",
|
|
4387
|
+
"ExportAllDeclaration",
|
|
4388
|
+
"ReturnStatement",
|
|
4389
|
+
"ThrowStatement",
|
|
4390
|
+
"DoWhileStatement"
|
|
4391
|
+
], Xo = new Map([
|
|
4392
|
+
["BreakStatement", sr(qo)],
|
|
4393
|
+
["ContinueStatement", sr(jo)],
|
|
4394
|
+
["DebuggerStatement", (t) => ie(t) + zo],
|
|
4395
|
+
["VariableDeclaration", (t) => re(ft(0, t.declarations, -1))],
|
|
4396
|
+
...ir.map((t) => [t, Go])
|
|
4397
|
+
]);
|
|
4398
|
+
nr(ir);
|
|
4399
|
+
rr = Jo;
|
|
4400
|
+
Ko = gt(mt), Zo = gt(Sn), ea = gt(xn), ta = gt(yn);
|
|
3809
4401
|
}));
|
|
3810
4402
|
//#endregion
|
|
3811
4403
|
init_angular();
|
|
3812
|
-
export {
|
|
4404
|
+
export { or as default, Cn as parsers, init_angular as t };
|