lingo.dev 0.63.2 → 0.70.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +201 -0
- package/bin/cli.mjs +3 -1
- package/build/acorn-7GKKTQAZ.mjs +3047 -0
- package/build/acorn-C2XWIPGO.cjs +3047 -0
- package/build/angular-5ISIBFBY.mjs +2794 -0
- package/build/angular-XQHAJDB2.cjs +2794 -0
- package/build/api-7PZYRHW3.mjs +5 -0
- package/build/api-C35FHFLD.cjs +7 -0
- package/build/babel-DSN33ILH.cjs +6946 -0
- package/build/babel-ZNMMF5TX.mjs +6946 -0
- package/build/chunk-2AI774XU.cjs +130086 -0
- package/build/chunk-DAMIL4EZ.mjs +4533 -0
- package/build/chunk-HEBXNMVQ.mjs +48 -0
- package/build/chunk-IKCNLHD5.cjs +4533 -0
- package/build/chunk-L5BCMCQE.cjs +48 -0
- package/build/chunk-MUWDGJF2.mjs +962 -0
- package/build/chunk-XFD3AFWA.mjs +130086 -0
- package/build/chunk-ZXT7SLL5.cjs +962 -0
- package/build/cli.cjs +134752 -0
- package/build/cli.d.cts +3 -0
- package/build/cli.d.ts +3 -0
- package/build/cli.mjs +134745 -0
- package/build/estree-2CSK435T.mjs +4374 -0
- package/build/estree-N7T576SJ.cjs +4374 -0
- package/build/flow-IBTCTNRO.mjs +26897 -0
- package/build/flow-Y3OXWML5.cjs +26897 -0
- package/build/glimmer-FCD5RY7E.mjs +2847 -0
- package/build/glimmer-N5YT5DMK.cjs +2847 -0
- package/build/graphql-4DMZI42L.mjs +1247 -0
- package/build/graphql-GV4OMB3Z.cjs +1247 -0
- package/build/html-RNXFERLB.mjs +2716 -0
- package/build/html-XMA5LP2U.cjs +2716 -0
- package/build/markdown-6BIFNHAV.mjs +3484 -0
- package/build/markdown-LUUZAIEE.cjs +3484 -0
- package/build/meriyah-IV6VMAUC.mjs +2474 -0
- package/build/meriyah-XSJDPEN3.cjs +2474 -0
- package/build/postcss-PDIS5YQZ.cjs +5057 -0
- package/build/postcss-SDQEBDMO.mjs +5057 -0
- package/build/sdk.cjs +8 -0
- package/build/sdk.d.cts +1 -0
- package/build/sdk.d.ts +1 -0
- package/build/sdk.mjs +8 -0
- package/build/spec.cjs +47 -0
- package/build/spec.d.cts +1 -0
- package/build/spec.d.ts +1 -0
- package/build/spec.mjs +47 -0
- package/build/typescript-TT5RRHSS.cjs +13104 -0
- package/build/typescript-U5HXARXA.mjs +13104 -0
- package/build/yaml-6ITWGIVF.cjs +4223 -0
- package/build/yaml-DDDZYPIN.mjs +4223 -0
- package/package.json +31 -9
- package/readme.md +5 -16
- package/build/react-next.cjs +0 -2
- package/build/react-next.d.cts +0 -1
- package/build/react-next.d.ts +0 -1
- package/build/react-next.mjs +0 -2
- package/build/react.cjs +0 -2
- package/build/react.d.cts +0 -2
- package/build/react.d.ts +0 -2
- package/build/react.mjs +0 -2
- package/content/banner.png +0 -0
|
@@ -0,0 +1,2794 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2; var _class3; var _class4; var _class5; var _class6; var _class7; var _class8; var _class9; var _class10; var _class11; var _class12; var _class13;require('./chunk-L5BCMCQE.cjs');
|
|
2
|
+
|
|
3
|
+
// ../node_modules/.pnpm/prettier@3.4.2/node_modules/prettier/plugins/angular.mjs
|
|
4
|
+
var $s = Object.defineProperty;
|
|
5
|
+
var Xt = (t26) => {
|
|
6
|
+
throw TypeError(t26);
|
|
7
|
+
};
|
|
8
|
+
var Jt = (t26, e) => {
|
|
9
|
+
for (var n in e) $s(t26, n, { get: e[n], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var it = (t26, e, n) => e.has(t26) || Xt("Cannot " + n);
|
|
12
|
+
var L = (t26, e, n) => (it(t26, e, "read from private field"), n ? n.call(t26) : e.get(t26));
|
|
13
|
+
var V = (t26, e, n) => e.has(t26) ? Xt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t26) : e.set(t26, n);
|
|
14
|
+
var Q = (t26, e, n, s) => (it(t26, e, "write to private field"), s ? s.call(t26, n) : e.set(t26, n), n);
|
|
15
|
+
var c = (t26, e, n) => (it(t26, e, "access private method"), n);
|
|
16
|
+
var zt = {};
|
|
17
|
+
Jt(zt, { parsers: () => jt });
|
|
18
|
+
var jt = {};
|
|
19
|
+
Jt(jt, { __ng_action: () => Ur, __ng_binding: () => Wr, __ng_directive: () => jr, __ng_interpolation: () => qr });
|
|
20
|
+
var Gr = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
|
|
21
|
+
var Kt;
|
|
22
|
+
(function(t26) {
|
|
23
|
+
t26[t26.Emulated = 0] = "Emulated", t26[t26.None = 2] = "None", t26[t26.ShadowDom = 3] = "ShadowDom";
|
|
24
|
+
})(Kt || (Kt = {}));
|
|
25
|
+
var Yt;
|
|
26
|
+
(function(t26) {
|
|
27
|
+
t26[t26.OnPush = 0] = "OnPush", t26[t26.Default = 1] = "Default";
|
|
28
|
+
})(Yt || (Yt = {}));
|
|
29
|
+
var Qt;
|
|
30
|
+
(function(t26) {
|
|
31
|
+
t26[t26.None = 0] = "None", t26[t26.SignalBased = 1] = "SignalBased", t26[t26.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
|
|
32
|
+
})(Qt || (Qt = {}));
|
|
33
|
+
var B;
|
|
34
|
+
(function(t26) {
|
|
35
|
+
t26[t26.NONE = 0] = "NONE", t26[t26.HTML = 1] = "HTML", t26[t26.STYLE = 2] = "STYLE", t26[t26.SCRIPT = 3] = "SCRIPT", t26[t26.URL = 4] = "URL", t26[t26.RESOURCE_URL = 5] = "RESOURCE_URL";
|
|
36
|
+
})(B || (B = {}));
|
|
37
|
+
var Zt;
|
|
38
|
+
(function(t26) {
|
|
39
|
+
t26[t26.Error = 0] = "Error", t26[t26.Warning = 1] = "Warning", t26[t26.Ignore = 2] = "Ignore";
|
|
40
|
+
})(Zt || (Zt = {}));
|
|
41
|
+
var en;
|
|
42
|
+
(function(t26) {
|
|
43
|
+
t26[t26.Little = 0] = "Little", t26[t26.Big = 1] = "Big";
|
|
44
|
+
})(en || (en = {}));
|
|
45
|
+
var tn;
|
|
46
|
+
(function(t26) {
|
|
47
|
+
t26[t26.None = 0] = "None", t26[t26.Const = 1] = "Const";
|
|
48
|
+
})(tn || (tn = {}));
|
|
49
|
+
var nn;
|
|
50
|
+
(function(t26) {
|
|
51
|
+
t26[t26.Dynamic = 0] = "Dynamic", t26[t26.Bool = 1] = "Bool", t26[t26.String = 2] = "String", t26[t26.Int = 3] = "Int", t26[t26.Number = 4] = "Number", t26[t26.Function = 5] = "Function", t26[t26.Inferred = 6] = "Inferred", t26[t26.None = 7] = "None";
|
|
52
|
+
})(nn || (nn = {}));
|
|
53
|
+
var Rs = void 0;
|
|
54
|
+
var sn;
|
|
55
|
+
(function(t26) {
|
|
56
|
+
t26[t26.Minus = 0] = "Minus", t26[t26.Plus = 1] = "Plus";
|
|
57
|
+
})(sn || (sn = {}));
|
|
58
|
+
var _;
|
|
59
|
+
(function(t26) {
|
|
60
|
+
t26[t26.Equals = 0] = "Equals", t26[t26.NotEquals = 1] = "NotEquals", t26[t26.Identical = 2] = "Identical", t26[t26.NotIdentical = 3] = "NotIdentical", t26[t26.Minus = 4] = "Minus", t26[t26.Plus = 5] = "Plus", t26[t26.Divide = 6] = "Divide", t26[t26.Multiply = 7] = "Multiply", t26[t26.Modulo = 8] = "Modulo", t26[t26.And = 9] = "And", t26[t26.Or = 10] = "Or", t26[t26.BitwiseOr = 11] = "BitwiseOr", t26[t26.BitwiseAnd = 12] = "BitwiseAnd", t26[t26.Lower = 13] = "Lower", t26[t26.LowerEquals = 14] = "LowerEquals", t26[t26.Bigger = 15] = "Bigger", t26[t26.BiggerEquals = 16] = "BiggerEquals", t26[t26.NullishCoalesce = 17] = "NullishCoalesce";
|
|
61
|
+
})(_ || (_ = {}));
|
|
62
|
+
function Bs(t26, e) {
|
|
63
|
+
return t26 == null || e == null ? t26 == e : t26.isEquivalent(e);
|
|
64
|
+
}
|
|
65
|
+
function Ds(t26, e, n) {
|
|
66
|
+
let s = t26.length;
|
|
67
|
+
if (s !== e.length) return false;
|
|
68
|
+
for (let r = 0; r < s; r++) if (!n(t26[r], e[r])) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
function tt(t26, e) {
|
|
72
|
+
return Ds(t26, e, (n, s) => n.isEquivalent(s));
|
|
73
|
+
}
|
|
74
|
+
var k = class {
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
constructor(e, n) {
|
|
78
|
+
this.type = e || null, this.sourceSpan = n || null;
|
|
79
|
+
}
|
|
80
|
+
prop(e, n) {
|
|
81
|
+
return new gt(this, e, null, n);
|
|
82
|
+
}
|
|
83
|
+
key(e, n, s) {
|
|
84
|
+
return new vt(this, e, n, s);
|
|
85
|
+
}
|
|
86
|
+
callFn(e, n, s) {
|
|
87
|
+
return new Xe(this, e, null, n, s);
|
|
88
|
+
}
|
|
89
|
+
instantiate(e, n, s) {
|
|
90
|
+
return new ft(this, e, n, s);
|
|
91
|
+
}
|
|
92
|
+
conditional(e, n = null, s) {
|
|
93
|
+
return new mt(this, e, n, null, s);
|
|
94
|
+
}
|
|
95
|
+
equals(e, n) {
|
|
96
|
+
return new C(_.Equals, this, e, null, n);
|
|
97
|
+
}
|
|
98
|
+
notEquals(e, n) {
|
|
99
|
+
return new C(_.NotEquals, this, e, null, n);
|
|
100
|
+
}
|
|
101
|
+
identical(e, n) {
|
|
102
|
+
return new C(_.Identical, this, e, null, n);
|
|
103
|
+
}
|
|
104
|
+
notIdentical(e, n) {
|
|
105
|
+
return new C(_.NotIdentical, this, e, null, n);
|
|
106
|
+
}
|
|
107
|
+
minus(e, n) {
|
|
108
|
+
return new C(_.Minus, this, e, null, n);
|
|
109
|
+
}
|
|
110
|
+
plus(e, n) {
|
|
111
|
+
return new C(_.Plus, this, e, null, n);
|
|
112
|
+
}
|
|
113
|
+
divide(e, n) {
|
|
114
|
+
return new C(_.Divide, this, e, null, n);
|
|
115
|
+
}
|
|
116
|
+
multiply(e, n) {
|
|
117
|
+
return new C(_.Multiply, this, e, null, n);
|
|
118
|
+
}
|
|
119
|
+
modulo(e, n) {
|
|
120
|
+
return new C(_.Modulo, this, e, null, n);
|
|
121
|
+
}
|
|
122
|
+
and(e, n) {
|
|
123
|
+
return new C(_.And, this, e, null, n);
|
|
124
|
+
}
|
|
125
|
+
bitwiseOr(e, n, s = true) {
|
|
126
|
+
return new C(_.BitwiseOr, this, e, null, n, s);
|
|
127
|
+
}
|
|
128
|
+
bitwiseAnd(e, n, s = true) {
|
|
129
|
+
return new C(_.BitwiseAnd, this, e, null, n, s);
|
|
130
|
+
}
|
|
131
|
+
or(e, n) {
|
|
132
|
+
return new C(_.Or, this, e, null, n);
|
|
133
|
+
}
|
|
134
|
+
lower(e, n) {
|
|
135
|
+
return new C(_.Lower, this, e, null, n);
|
|
136
|
+
}
|
|
137
|
+
lowerEquals(e, n) {
|
|
138
|
+
return new C(_.LowerEquals, this, e, null, n);
|
|
139
|
+
}
|
|
140
|
+
bigger(e, n) {
|
|
141
|
+
return new C(_.Bigger, this, e, null, n);
|
|
142
|
+
}
|
|
143
|
+
biggerEquals(e, n) {
|
|
144
|
+
return new C(_.BiggerEquals, this, e, null, n);
|
|
145
|
+
}
|
|
146
|
+
isBlank(e) {
|
|
147
|
+
return this.equals(TYPED_NULL_EXPR, e);
|
|
148
|
+
}
|
|
149
|
+
nullishCoalesce(e, n) {
|
|
150
|
+
return new C(_.NullishCoalesce, this, e, null, n);
|
|
151
|
+
}
|
|
152
|
+
toStmt() {
|
|
153
|
+
return new xt(this, null);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
var Ge = class t extends k {
|
|
157
|
+
|
|
158
|
+
constructor(e, n, s) {
|
|
159
|
+
super(n, s), this.name = e;
|
|
160
|
+
}
|
|
161
|
+
isEquivalent(e) {
|
|
162
|
+
return e instanceof t && this.name === e.name;
|
|
163
|
+
}
|
|
164
|
+
isConstant() {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
visitExpression(e, n) {
|
|
168
|
+
return e.visitReadVarExpr(this, n);
|
|
169
|
+
}
|
|
170
|
+
clone() {
|
|
171
|
+
return new t(this.name, this.type, this.sourceSpan);
|
|
172
|
+
}
|
|
173
|
+
set(e) {
|
|
174
|
+
return new ut(this.name, e, null, this.sourceSpan);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var ct = class t2 extends k {
|
|
178
|
+
|
|
179
|
+
constructor(e, n, s) {
|
|
180
|
+
super(n, s), this.expr = e;
|
|
181
|
+
}
|
|
182
|
+
visitExpression(e, n) {
|
|
183
|
+
return e.visitTypeofExpr(this, n);
|
|
184
|
+
}
|
|
185
|
+
isEquivalent(e) {
|
|
186
|
+
return e instanceof t2 && e.expr.isEquivalent(this.expr);
|
|
187
|
+
}
|
|
188
|
+
isConstant() {
|
|
189
|
+
return this.expr.isConstant();
|
|
190
|
+
}
|
|
191
|
+
clone() {
|
|
192
|
+
return new t2(this.expr.clone());
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
var ut = class t3 extends k {
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
constructor(e, n, s, r) {
|
|
199
|
+
super(s || n.type, r), this.name = e, this.value = n;
|
|
200
|
+
}
|
|
201
|
+
isEquivalent(e) {
|
|
202
|
+
return e instanceof t3 && this.name === e.name && this.value.isEquivalent(e.value);
|
|
203
|
+
}
|
|
204
|
+
isConstant() {
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
visitExpression(e, n) {
|
|
208
|
+
return e.visitWriteVarExpr(this, n);
|
|
209
|
+
}
|
|
210
|
+
clone() {
|
|
211
|
+
return new t3(this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
212
|
+
}
|
|
213
|
+
toDeclStmt(e, n) {
|
|
214
|
+
return new wt(this.name, this.value, e, n, this.sourceSpan);
|
|
215
|
+
}
|
|
216
|
+
toConstDecl() {
|
|
217
|
+
return this.toDeclStmt(Rs, Ee.Final);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
var pt = class t4 extends k {
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
constructor(e, n, s, r, o) {
|
|
225
|
+
super(r || s.type, o), this.receiver = e, this.index = n, this.value = s;
|
|
226
|
+
}
|
|
227
|
+
isEquivalent(e) {
|
|
228
|
+
return e instanceof t4 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
|
|
229
|
+
}
|
|
230
|
+
isConstant() {
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
visitExpression(e, n) {
|
|
234
|
+
return e.visitWriteKeyExpr(this, n);
|
|
235
|
+
}
|
|
236
|
+
clone() {
|
|
237
|
+
return new t4(this.receiver.clone(), this.index.clone(), this.value.clone(), this.type, this.sourceSpan);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
var ht = class t5 extends k {
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
constructor(e, n, s, r, o) {
|
|
245
|
+
super(r || s.type, o), this.receiver = e, this.name = n, this.value = s;
|
|
246
|
+
}
|
|
247
|
+
isEquivalent(e) {
|
|
248
|
+
return e instanceof t5 && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
|
|
249
|
+
}
|
|
250
|
+
isConstant() {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
visitExpression(e, n) {
|
|
254
|
+
return e.visitWritePropExpr(this, n);
|
|
255
|
+
}
|
|
256
|
+
clone() {
|
|
257
|
+
return new t5(this.receiver.clone(), this.name, this.value.clone(), this.type, this.sourceSpan);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
var Xe = class t6 extends k {
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
constructor(e, n, s, r, o = false) {
|
|
265
|
+
super(s, r), this.fn = e, this.args = n, this.pure = o;
|
|
266
|
+
}
|
|
267
|
+
get receiver() {
|
|
268
|
+
return this.fn;
|
|
269
|
+
}
|
|
270
|
+
isEquivalent(e) {
|
|
271
|
+
return e instanceof t6 && this.fn.isEquivalent(e.fn) && tt(this.args, e.args) && this.pure === e.pure;
|
|
272
|
+
}
|
|
273
|
+
isConstant() {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
visitExpression(e, n) {
|
|
277
|
+
return e.visitInvokeFunctionExpr(this, n);
|
|
278
|
+
}
|
|
279
|
+
clone() {
|
|
280
|
+
return new t6(this.fn.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan, this.pure);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
var ft = class t7 extends k {
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
constructor(e, n, s, r) {
|
|
287
|
+
super(s, r), this.classExpr = e, this.args = n;
|
|
288
|
+
}
|
|
289
|
+
isEquivalent(e) {
|
|
290
|
+
return e instanceof t7 && this.classExpr.isEquivalent(e.classExpr) && tt(this.args, e.args);
|
|
291
|
+
}
|
|
292
|
+
isConstant() {
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
visitExpression(e, n) {
|
|
296
|
+
return e.visitInstantiateExpr(this, n);
|
|
297
|
+
}
|
|
298
|
+
clone() {
|
|
299
|
+
return new t7(this.classExpr.clone(), this.args.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
var Je = class t8 extends k {
|
|
303
|
+
|
|
304
|
+
constructor(e, n, s) {
|
|
305
|
+
super(n, s), this.value = e;
|
|
306
|
+
}
|
|
307
|
+
isEquivalent(e) {
|
|
308
|
+
return e instanceof t8 && this.value === e.value;
|
|
309
|
+
}
|
|
310
|
+
isConstant() {
|
|
311
|
+
return true;
|
|
312
|
+
}
|
|
313
|
+
visitExpression(e, n) {
|
|
314
|
+
return e.visitLiteralExpr(this, n);
|
|
315
|
+
}
|
|
316
|
+
clone() {
|
|
317
|
+
return new t8(this.value, this.type, this.sourceSpan);
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
var dt = class t9 extends k {
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
constructor(e, n, s = null, r) {
|
|
324
|
+
super(n, r), this.value = e, this.typeParams = s;
|
|
325
|
+
}
|
|
326
|
+
isEquivalent(e) {
|
|
327
|
+
return e instanceof t9 && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName;
|
|
328
|
+
}
|
|
329
|
+
isConstant() {
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
332
|
+
visitExpression(e, n) {
|
|
333
|
+
return e.visitExternalExpr(this, n);
|
|
334
|
+
}
|
|
335
|
+
clone() {
|
|
336
|
+
return new t9(this.value, this.type, this.typeParams, this.sourceSpan);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
var mt = class t10 extends k {
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
constructor(e, n, s = null, r, o) {
|
|
344
|
+
super(r || n.type, o), this.condition = e, this.falseCase = s, this.trueCase = n;
|
|
345
|
+
}
|
|
346
|
+
isEquivalent(e) {
|
|
347
|
+
return e instanceof t10 && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && Bs(this.falseCase, e.falseCase);
|
|
348
|
+
}
|
|
349
|
+
isConstant() {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
visitExpression(e, n) {
|
|
353
|
+
return e.visitConditionalExpr(this, n);
|
|
354
|
+
}
|
|
355
|
+
clone() {
|
|
356
|
+
var e;
|
|
357
|
+
return new t10(this.condition.clone(), this.trueCase.clone(), (e = this.falseCase) == null ? void 0 : e.clone(), this.type, this.sourceSpan);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
var C = class t11 extends k {
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
constructor(e, n, s, r, o, a = true) {
|
|
366
|
+
super(r || n.type, o), this.operator = e, this.rhs = s, this.parens = a, this.lhs = n;
|
|
367
|
+
}
|
|
368
|
+
isEquivalent(e) {
|
|
369
|
+
return e instanceof t11 && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
|
|
370
|
+
}
|
|
371
|
+
isConstant() {
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
visitExpression(e, n) {
|
|
375
|
+
return e.visitBinaryOperatorExpr(this, n);
|
|
376
|
+
}
|
|
377
|
+
clone() {
|
|
378
|
+
return new t11(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan, this.parens);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
var gt = class t12 extends k {
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
constructor(e, n, s, r) {
|
|
385
|
+
super(s, r), this.receiver = e, this.name = n;
|
|
386
|
+
}
|
|
387
|
+
get index() {
|
|
388
|
+
return this.name;
|
|
389
|
+
}
|
|
390
|
+
isEquivalent(e) {
|
|
391
|
+
return e instanceof t12 && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
|
|
392
|
+
}
|
|
393
|
+
isConstant() {
|
|
394
|
+
return false;
|
|
395
|
+
}
|
|
396
|
+
visitExpression(e, n) {
|
|
397
|
+
return e.visitReadPropExpr(this, n);
|
|
398
|
+
}
|
|
399
|
+
set(e) {
|
|
400
|
+
return new ht(this.receiver, this.name, e, null, this.sourceSpan);
|
|
401
|
+
}
|
|
402
|
+
clone() {
|
|
403
|
+
return new t12(this.receiver.clone(), this.name, this.type, this.sourceSpan);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
var vt = class t13 extends k {
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
constructor(e, n, s, r) {
|
|
410
|
+
super(s, r), this.receiver = e, this.index = n;
|
|
411
|
+
}
|
|
412
|
+
isEquivalent(e) {
|
|
413
|
+
return e instanceof t13 && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
|
|
414
|
+
}
|
|
415
|
+
isConstant() {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
visitExpression(e, n) {
|
|
419
|
+
return e.visitReadKeyExpr(this, n);
|
|
420
|
+
}
|
|
421
|
+
set(e) {
|
|
422
|
+
return new pt(this.receiver, this.index, e, null, this.sourceSpan);
|
|
423
|
+
}
|
|
424
|
+
clone() {
|
|
425
|
+
return new t13(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
var Ke = class t14 extends k {
|
|
429
|
+
|
|
430
|
+
constructor(e, n, s) {
|
|
431
|
+
super(n, s), this.entries = e;
|
|
432
|
+
}
|
|
433
|
+
isConstant() {
|
|
434
|
+
return this.entries.every((e) => e.isConstant());
|
|
435
|
+
}
|
|
436
|
+
isEquivalent(e) {
|
|
437
|
+
return e instanceof t14 && tt(this.entries, e.entries);
|
|
438
|
+
}
|
|
439
|
+
visitExpression(e, n) {
|
|
440
|
+
return e.visitLiteralArrayExpr(this, n);
|
|
441
|
+
}
|
|
442
|
+
clone() {
|
|
443
|
+
return new t14(this.entries.map((e) => e.clone()), this.type, this.sourceSpan);
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
var Ye = (_class = class t15 extends k {
|
|
447
|
+
|
|
448
|
+
__init() {this.valueType = null}
|
|
449
|
+
constructor(e, n, s) {
|
|
450
|
+
super(n, s);_class.prototype.__init.call(this);, this.entries = e, n && (this.valueType = n.valueType);
|
|
451
|
+
}
|
|
452
|
+
isEquivalent(e) {
|
|
453
|
+
return e instanceof t15 && tt(this.entries, e.entries);
|
|
454
|
+
}
|
|
455
|
+
isConstant() {
|
|
456
|
+
return this.entries.every((e) => e.value.isConstant());
|
|
457
|
+
}
|
|
458
|
+
visitExpression(e, n) {
|
|
459
|
+
return e.visitLiteralMapExpr(this, n);
|
|
460
|
+
}
|
|
461
|
+
clone() {
|
|
462
|
+
let e = this.entries.map((n) => n.clone());
|
|
463
|
+
return new t15(e, this.type, this.sourceSpan);
|
|
464
|
+
}
|
|
465
|
+
}, _class);
|
|
466
|
+
var Ee;
|
|
467
|
+
(function(t26) {
|
|
468
|
+
t26[t26.None = 0] = "None", t26[t26.Final = 1] = "Final", t26[t26.Private = 2] = "Private", t26[t26.Exported = 4] = "Exported", t26[t26.Static = 8] = "Static";
|
|
469
|
+
})(Ee || (Ee = {}));
|
|
470
|
+
var Qe = class {
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
constructor(e = Ee.None, n = null, s) {
|
|
475
|
+
this.modifiers = e, this.sourceSpan = n, this.leadingComments = s;
|
|
476
|
+
}
|
|
477
|
+
hasModifier(e) {
|
|
478
|
+
return (this.modifiers & e) !== 0;
|
|
479
|
+
}
|
|
480
|
+
addLeadingComment(e) {
|
|
481
|
+
this.leadingComments = _nullishCoalesce(this.leadingComments, () => ( [])), this.leadingComments.push(e);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
var wt = class t16 extends Qe {
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
constructor(e, n, s, r, o, a) {
|
|
489
|
+
super(r, o, a), this.name = e, this.value = n, this.type = s || n && n.type || null;
|
|
490
|
+
}
|
|
491
|
+
isEquivalent(e) {
|
|
492
|
+
return e instanceof t16 && this.name === e.name && (this.value ? !!e.value && this.value.isEquivalent(e.value) : !e.value);
|
|
493
|
+
}
|
|
494
|
+
visitStatement(e, n) {
|
|
495
|
+
return e.visitDeclareVarStmt(this, n);
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
var xt = class t17 extends Qe {
|
|
499
|
+
|
|
500
|
+
constructor(e, n, s) {
|
|
501
|
+
super(Ee.None, n, s), this.expr = e;
|
|
502
|
+
}
|
|
503
|
+
isEquivalent(e) {
|
|
504
|
+
return e instanceof t17 && this.expr.isEquivalent(e.expr);
|
|
505
|
+
}
|
|
506
|
+
visitStatement(e, n) {
|
|
507
|
+
return e.visitExpressionStmt(this, n);
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
function Os(t26, e, n) {
|
|
511
|
+
return new Ge(t26, e, n);
|
|
512
|
+
}
|
|
513
|
+
var Xr = Os("<unknown>");
|
|
514
|
+
var rn = (_class2 = class t18 {
|
|
515
|
+
static __initStatic() {this.INSTANCE = new t18()}
|
|
516
|
+
keyOf(e) {
|
|
517
|
+
if (e instanceof Je && typeof e.value == "string") return `"${e.value}"`;
|
|
518
|
+
if (e instanceof Je) return String(e.value);
|
|
519
|
+
if (e instanceof Ke) {
|
|
520
|
+
let n = [];
|
|
521
|
+
for (let s of e.entries) n.push(this.keyOf(s));
|
|
522
|
+
return `[${n.join(",")}]`;
|
|
523
|
+
} else if (e instanceof Ye) {
|
|
524
|
+
let n = [];
|
|
525
|
+
for (let s of e.entries) {
|
|
526
|
+
let r = s.key;
|
|
527
|
+
s.quoted && (r = `"${r}"`), n.push(r + ":" + this.keyOf(s.value));
|
|
528
|
+
}
|
|
529
|
+
return `{${n.join(",")}}`;
|
|
530
|
+
} else {
|
|
531
|
+
if (e instanceof dt) return `import("${e.value.moduleName}", ${e.value.name})`;
|
|
532
|
+
if (e instanceof Ge) return `read(${e.name})`;
|
|
533
|
+
if (e instanceof ct) return `typeof(${this.keyOf(e.expr)})`;
|
|
534
|
+
throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}, _class2.__initStatic(), _class2);
|
|
538
|
+
var i = "@angular/core";
|
|
539
|
+
var P = (_class3 = class {
|
|
540
|
+
static __initStatic2() {this.NEW_METHOD = "factory"}
|
|
541
|
+
static __initStatic3() {this.TRANSFORM_METHOD = "transform"}
|
|
542
|
+
static __initStatic4() {this.PATCH_DEPS = "patchedDeps"}
|
|
543
|
+
static __initStatic5() {this.core = { name: null, moduleName: i }}
|
|
544
|
+
static __initStatic6() {this.namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: i }}
|
|
545
|
+
static __initStatic7() {this.namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: i }}
|
|
546
|
+
static __initStatic8() {this.namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: i }}
|
|
547
|
+
static __initStatic9() {this.element = { name: "\u0275\u0275element", moduleName: i }}
|
|
548
|
+
static __initStatic10() {this.elementStart = { name: "\u0275\u0275elementStart", moduleName: i }}
|
|
549
|
+
static __initStatic11() {this.elementEnd = { name: "\u0275\u0275elementEnd", moduleName: i }}
|
|
550
|
+
static __initStatic12() {this.advance = { name: "\u0275\u0275advance", moduleName: i }}
|
|
551
|
+
static __initStatic13() {this.syntheticHostProperty = { name: "\u0275\u0275syntheticHostProperty", moduleName: i }}
|
|
552
|
+
static __initStatic14() {this.syntheticHostListener = { name: "\u0275\u0275syntheticHostListener", moduleName: i }}
|
|
553
|
+
static __initStatic15() {this.attribute = { name: "\u0275\u0275attribute", moduleName: i }}
|
|
554
|
+
static __initStatic16() {this.attributeInterpolate1 = { name: "\u0275\u0275attributeInterpolate1", moduleName: i }}
|
|
555
|
+
static __initStatic17() {this.attributeInterpolate2 = { name: "\u0275\u0275attributeInterpolate2", moduleName: i }}
|
|
556
|
+
static __initStatic18() {this.attributeInterpolate3 = { name: "\u0275\u0275attributeInterpolate3", moduleName: i }}
|
|
557
|
+
static __initStatic19() {this.attributeInterpolate4 = { name: "\u0275\u0275attributeInterpolate4", moduleName: i }}
|
|
558
|
+
static __initStatic20() {this.attributeInterpolate5 = { name: "\u0275\u0275attributeInterpolate5", moduleName: i }}
|
|
559
|
+
static __initStatic21() {this.attributeInterpolate6 = { name: "\u0275\u0275attributeInterpolate6", moduleName: i }}
|
|
560
|
+
static __initStatic22() {this.attributeInterpolate7 = { name: "\u0275\u0275attributeInterpolate7", moduleName: i }}
|
|
561
|
+
static __initStatic23() {this.attributeInterpolate8 = { name: "\u0275\u0275attributeInterpolate8", moduleName: i }}
|
|
562
|
+
static __initStatic24() {this.attributeInterpolateV = { name: "\u0275\u0275attributeInterpolateV", moduleName: i }}
|
|
563
|
+
static __initStatic25() {this.classProp = { name: "\u0275\u0275classProp", moduleName: i }}
|
|
564
|
+
static __initStatic26() {this.elementContainerStart = { name: "\u0275\u0275elementContainerStart", moduleName: i }}
|
|
565
|
+
static __initStatic27() {this.elementContainerEnd = { name: "\u0275\u0275elementContainerEnd", moduleName: i }}
|
|
566
|
+
static __initStatic28() {this.elementContainer = { name: "\u0275\u0275elementContainer", moduleName: i }}
|
|
567
|
+
static __initStatic29() {this.styleMap = { name: "\u0275\u0275styleMap", moduleName: i }}
|
|
568
|
+
static __initStatic30() {this.styleMapInterpolate1 = { name: "\u0275\u0275styleMapInterpolate1", moduleName: i }}
|
|
569
|
+
static __initStatic31() {this.styleMapInterpolate2 = { name: "\u0275\u0275styleMapInterpolate2", moduleName: i }}
|
|
570
|
+
static __initStatic32() {this.styleMapInterpolate3 = { name: "\u0275\u0275styleMapInterpolate3", moduleName: i }}
|
|
571
|
+
static __initStatic33() {this.styleMapInterpolate4 = { name: "\u0275\u0275styleMapInterpolate4", moduleName: i }}
|
|
572
|
+
static __initStatic34() {this.styleMapInterpolate5 = { name: "\u0275\u0275styleMapInterpolate5", moduleName: i }}
|
|
573
|
+
static __initStatic35() {this.styleMapInterpolate6 = { name: "\u0275\u0275styleMapInterpolate6", moduleName: i }}
|
|
574
|
+
static __initStatic36() {this.styleMapInterpolate7 = { name: "\u0275\u0275styleMapInterpolate7", moduleName: i }}
|
|
575
|
+
static __initStatic37() {this.styleMapInterpolate8 = { name: "\u0275\u0275styleMapInterpolate8", moduleName: i }}
|
|
576
|
+
static __initStatic38() {this.styleMapInterpolateV = { name: "\u0275\u0275styleMapInterpolateV", moduleName: i }}
|
|
577
|
+
static __initStatic39() {this.classMap = { name: "\u0275\u0275classMap", moduleName: i }}
|
|
578
|
+
static __initStatic40() {this.classMapInterpolate1 = { name: "\u0275\u0275classMapInterpolate1", moduleName: i }}
|
|
579
|
+
static __initStatic41() {this.classMapInterpolate2 = { name: "\u0275\u0275classMapInterpolate2", moduleName: i }}
|
|
580
|
+
static __initStatic42() {this.classMapInterpolate3 = { name: "\u0275\u0275classMapInterpolate3", moduleName: i }}
|
|
581
|
+
static __initStatic43() {this.classMapInterpolate4 = { name: "\u0275\u0275classMapInterpolate4", moduleName: i }}
|
|
582
|
+
static __initStatic44() {this.classMapInterpolate5 = { name: "\u0275\u0275classMapInterpolate5", moduleName: i }}
|
|
583
|
+
static __initStatic45() {this.classMapInterpolate6 = { name: "\u0275\u0275classMapInterpolate6", moduleName: i }}
|
|
584
|
+
static __initStatic46() {this.classMapInterpolate7 = { name: "\u0275\u0275classMapInterpolate7", moduleName: i }}
|
|
585
|
+
static __initStatic47() {this.classMapInterpolate8 = { name: "\u0275\u0275classMapInterpolate8", moduleName: i }}
|
|
586
|
+
static __initStatic48() {this.classMapInterpolateV = { name: "\u0275\u0275classMapInterpolateV", moduleName: i }}
|
|
587
|
+
static __initStatic49() {this.styleProp = { name: "\u0275\u0275styleProp", moduleName: i }}
|
|
588
|
+
static __initStatic50() {this.stylePropInterpolate1 = { name: "\u0275\u0275stylePropInterpolate1", moduleName: i }}
|
|
589
|
+
static __initStatic51() {this.stylePropInterpolate2 = { name: "\u0275\u0275stylePropInterpolate2", moduleName: i }}
|
|
590
|
+
static __initStatic52() {this.stylePropInterpolate3 = { name: "\u0275\u0275stylePropInterpolate3", moduleName: i }}
|
|
591
|
+
static __initStatic53() {this.stylePropInterpolate4 = { name: "\u0275\u0275stylePropInterpolate4", moduleName: i }}
|
|
592
|
+
static __initStatic54() {this.stylePropInterpolate5 = { name: "\u0275\u0275stylePropInterpolate5", moduleName: i }}
|
|
593
|
+
static __initStatic55() {this.stylePropInterpolate6 = { name: "\u0275\u0275stylePropInterpolate6", moduleName: i }}
|
|
594
|
+
static __initStatic56() {this.stylePropInterpolate7 = { name: "\u0275\u0275stylePropInterpolate7", moduleName: i }}
|
|
595
|
+
static __initStatic57() {this.stylePropInterpolate8 = { name: "\u0275\u0275stylePropInterpolate8", moduleName: i }}
|
|
596
|
+
static __initStatic58() {this.stylePropInterpolateV = { name: "\u0275\u0275stylePropInterpolateV", moduleName: i }}
|
|
597
|
+
static __initStatic59() {this.nextContext = { name: "\u0275\u0275nextContext", moduleName: i }}
|
|
598
|
+
static __initStatic60() {this.resetView = { name: "\u0275\u0275resetView", moduleName: i }}
|
|
599
|
+
static __initStatic61() {this.templateCreate = { name: "\u0275\u0275template", moduleName: i }}
|
|
600
|
+
static __initStatic62() {this.defer = { name: "\u0275\u0275defer", moduleName: i }}
|
|
601
|
+
static __initStatic63() {this.deferWhen = { name: "\u0275\u0275deferWhen", moduleName: i }}
|
|
602
|
+
static __initStatic64() {this.deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: i }}
|
|
603
|
+
static __initStatic65() {this.deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: i }}
|
|
604
|
+
static __initStatic66() {this.deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: i }}
|
|
605
|
+
static __initStatic67() {this.deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: i }}
|
|
606
|
+
static __initStatic68() {this.deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: i }}
|
|
607
|
+
static __initStatic69() {this.deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: i }}
|
|
608
|
+
static __initStatic70() {this.deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: i }}
|
|
609
|
+
static __initStatic71() {this.deferPrefetchOnIdle = { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: i }}
|
|
610
|
+
static __initStatic72() {this.deferPrefetchOnImmediate = { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: i }}
|
|
611
|
+
static __initStatic73() {this.deferPrefetchOnTimer = { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: i }}
|
|
612
|
+
static __initStatic74() {this.deferPrefetchOnHover = { name: "\u0275\u0275deferPrefetchOnHover", moduleName: i }}
|
|
613
|
+
static __initStatic75() {this.deferPrefetchOnInteraction = { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: i }}
|
|
614
|
+
static __initStatic76() {this.deferPrefetchOnViewport = { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: i }}
|
|
615
|
+
static __initStatic77() {this.deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: i }}
|
|
616
|
+
static __initStatic78() {this.deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: i }}
|
|
617
|
+
static __initStatic79() {this.deferHydrateOnIdle = { name: "\u0275\u0275deferHydrateOnIdle", moduleName: i }}
|
|
618
|
+
static __initStatic80() {this.deferHydrateOnImmediate = { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: i }}
|
|
619
|
+
static __initStatic81() {this.deferHydrateOnTimer = { name: "\u0275\u0275deferHydrateOnTimer", moduleName: i }}
|
|
620
|
+
static __initStatic82() {this.deferHydrateOnHover = { name: "\u0275\u0275deferHydrateOnHover", moduleName: i }}
|
|
621
|
+
static __initStatic83() {this.deferHydrateOnInteraction = { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: i }}
|
|
622
|
+
static __initStatic84() {this.deferHydrateOnViewport = { name: "\u0275\u0275deferHydrateOnViewport", moduleName: i }}
|
|
623
|
+
static __initStatic85() {this.deferEnableTimerScheduling = { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: i }}
|
|
624
|
+
static __initStatic86() {this.conditional = { name: "\u0275\u0275conditional", moduleName: i }}
|
|
625
|
+
static __initStatic87() {this.repeater = { name: "\u0275\u0275repeater", moduleName: i }}
|
|
626
|
+
static __initStatic88() {this.repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: i }}
|
|
627
|
+
static __initStatic89() {this.repeaterTrackByIndex = { name: "\u0275\u0275repeaterTrackByIndex", moduleName: i }}
|
|
628
|
+
static __initStatic90() {this.repeaterTrackByIdentity = { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: i }}
|
|
629
|
+
static __initStatic91() {this.componentInstance = { name: "\u0275\u0275componentInstance", moduleName: i }}
|
|
630
|
+
static __initStatic92() {this.text = { name: "\u0275\u0275text", moduleName: i }}
|
|
631
|
+
static __initStatic93() {this.enableBindings = { name: "\u0275\u0275enableBindings", moduleName: i }}
|
|
632
|
+
static __initStatic94() {this.disableBindings = { name: "\u0275\u0275disableBindings", moduleName: i }}
|
|
633
|
+
static __initStatic95() {this.getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: i }}
|
|
634
|
+
static __initStatic96() {this.textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: i }}
|
|
635
|
+
static __initStatic97() {this.textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: i }}
|
|
636
|
+
static __initStatic98() {this.textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: i }}
|
|
637
|
+
static __initStatic99() {this.textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: i }}
|
|
638
|
+
static __initStatic100() {this.textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: i }}
|
|
639
|
+
static __initStatic101() {this.textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: i }}
|
|
640
|
+
static __initStatic102() {this.textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: i }}
|
|
641
|
+
static __initStatic103() {this.textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: i }}
|
|
642
|
+
static __initStatic104() {this.textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: i }}
|
|
643
|
+
static __initStatic105() {this.textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: i }}
|
|
644
|
+
static __initStatic106() {this.restoreView = { name: "\u0275\u0275restoreView", moduleName: i }}
|
|
645
|
+
static __initStatic107() {this.pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: i }}
|
|
646
|
+
static __initStatic108() {this.pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: i }}
|
|
647
|
+
static __initStatic109() {this.pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: i }}
|
|
648
|
+
static __initStatic110() {this.pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: i }}
|
|
649
|
+
static __initStatic111() {this.pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: i }}
|
|
650
|
+
static __initStatic112() {this.pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: i }}
|
|
651
|
+
static __initStatic113() {this.pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: i }}
|
|
652
|
+
static __initStatic114() {this.pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: i }}
|
|
653
|
+
static __initStatic115() {this.pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: i }}
|
|
654
|
+
static __initStatic116() {this.pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: i }}
|
|
655
|
+
static __initStatic117() {this.pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: i }}
|
|
656
|
+
static __initStatic118() {this.pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: i }}
|
|
657
|
+
static __initStatic119() {this.pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: i }}
|
|
658
|
+
static __initStatic120() {this.pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: i }}
|
|
659
|
+
static __initStatic121() {this.pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: i }}
|
|
660
|
+
static __initStatic122() {this.hostProperty = { name: "\u0275\u0275hostProperty", moduleName: i }}
|
|
661
|
+
static __initStatic123() {this.property = { name: "\u0275\u0275property", moduleName: i }}
|
|
662
|
+
static __initStatic124() {this.propertyInterpolate = { name: "\u0275\u0275propertyInterpolate", moduleName: i }}
|
|
663
|
+
static __initStatic125() {this.propertyInterpolate1 = { name: "\u0275\u0275propertyInterpolate1", moduleName: i }}
|
|
664
|
+
static __initStatic126() {this.propertyInterpolate2 = { name: "\u0275\u0275propertyInterpolate2", moduleName: i }}
|
|
665
|
+
static __initStatic127() {this.propertyInterpolate3 = { name: "\u0275\u0275propertyInterpolate3", moduleName: i }}
|
|
666
|
+
static __initStatic128() {this.propertyInterpolate4 = { name: "\u0275\u0275propertyInterpolate4", moduleName: i }}
|
|
667
|
+
static __initStatic129() {this.propertyInterpolate5 = { name: "\u0275\u0275propertyInterpolate5", moduleName: i }}
|
|
668
|
+
static __initStatic130() {this.propertyInterpolate6 = { name: "\u0275\u0275propertyInterpolate6", moduleName: i }}
|
|
669
|
+
static __initStatic131() {this.propertyInterpolate7 = { name: "\u0275\u0275propertyInterpolate7", moduleName: i }}
|
|
670
|
+
static __initStatic132() {this.propertyInterpolate8 = { name: "\u0275\u0275propertyInterpolate8", moduleName: i }}
|
|
671
|
+
static __initStatic133() {this.propertyInterpolateV = { name: "\u0275\u0275propertyInterpolateV", moduleName: i }}
|
|
672
|
+
static __initStatic134() {this.i18n = { name: "\u0275\u0275i18n", moduleName: i }}
|
|
673
|
+
static __initStatic135() {this.i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: i }}
|
|
674
|
+
static __initStatic136() {this.i18nExp = { name: "\u0275\u0275i18nExp", moduleName: i }}
|
|
675
|
+
static __initStatic137() {this.i18nStart = { name: "\u0275\u0275i18nStart", moduleName: i }}
|
|
676
|
+
static __initStatic138() {this.i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: i }}
|
|
677
|
+
static __initStatic139() {this.i18nApply = { name: "\u0275\u0275i18nApply", moduleName: i }}
|
|
678
|
+
static __initStatic140() {this.i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: i }}
|
|
679
|
+
static __initStatic141() {this.pipe = { name: "\u0275\u0275pipe", moduleName: i }}
|
|
680
|
+
static __initStatic142() {this.projection = { name: "\u0275\u0275projection", moduleName: i }}
|
|
681
|
+
static __initStatic143() {this.projectionDef = { name: "\u0275\u0275projectionDef", moduleName: i }}
|
|
682
|
+
static __initStatic144() {this.reference = { name: "\u0275\u0275reference", moduleName: i }}
|
|
683
|
+
static __initStatic145() {this.inject = { name: "\u0275\u0275inject", moduleName: i }}
|
|
684
|
+
static __initStatic146() {this.injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: i }}
|
|
685
|
+
static __initStatic147() {this.directiveInject = { name: "\u0275\u0275directiveInject", moduleName: i }}
|
|
686
|
+
static __initStatic148() {this.invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: i }}
|
|
687
|
+
static __initStatic149() {this.invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: i }}
|
|
688
|
+
static __initStatic150() {this.templateRefExtractor = { name: "\u0275\u0275templateRefExtractor", moduleName: i }}
|
|
689
|
+
static __initStatic151() {this.forwardRef = { name: "forwardRef", moduleName: i }}
|
|
690
|
+
static __initStatic152() {this.resolveForwardRef = { name: "resolveForwardRef", moduleName: i }}
|
|
691
|
+
static __initStatic153() {this.replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: i }}
|
|
692
|
+
static __initStatic154() {this.\u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: i }}
|
|
693
|
+
static __initStatic155() {this.declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: i }}
|
|
694
|
+
static __initStatic156() {this.InjectableDeclaration = { name: "\u0275\u0275InjectableDeclaration", moduleName: i }}
|
|
695
|
+
static __initStatic157() {this.resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: i }}
|
|
696
|
+
static __initStatic158() {this.resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: i }}
|
|
697
|
+
static __initStatic159() {this.resolveBody = { name: "\u0275\u0275resolveBody", moduleName: i }}
|
|
698
|
+
static __initStatic160() {this.getComponentDepsFactory = { name: "\u0275\u0275getComponentDepsFactory", moduleName: i }}
|
|
699
|
+
static __initStatic161() {this.defineComponent = { name: "\u0275\u0275defineComponent", moduleName: i }}
|
|
700
|
+
static __initStatic162() {this.declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: i }}
|
|
701
|
+
static __initStatic163() {this.setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: i }}
|
|
702
|
+
static __initStatic164() {this.ChangeDetectionStrategy = { name: "ChangeDetectionStrategy", moduleName: i }}
|
|
703
|
+
static __initStatic165() {this.ViewEncapsulation = { name: "ViewEncapsulation", moduleName: i }}
|
|
704
|
+
static __initStatic166() {this.ComponentDeclaration = { name: "\u0275\u0275ComponentDeclaration", moduleName: i }}
|
|
705
|
+
static __initStatic167() {this.FactoryDeclaration = { name: "\u0275\u0275FactoryDeclaration", moduleName: i }}
|
|
706
|
+
static __initStatic168() {this.declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: i }}
|
|
707
|
+
static __initStatic169() {this.FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: i }}
|
|
708
|
+
static __initStatic170() {this.defineDirective = { name: "\u0275\u0275defineDirective", moduleName: i }}
|
|
709
|
+
static __initStatic171() {this.declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: i }}
|
|
710
|
+
static __initStatic172() {this.DirectiveDeclaration = { name: "\u0275\u0275DirectiveDeclaration", moduleName: i }}
|
|
711
|
+
static __initStatic173() {this.InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: i }}
|
|
712
|
+
static __initStatic174() {this.InjectorDeclaration = { name: "\u0275\u0275InjectorDeclaration", moduleName: i }}
|
|
713
|
+
static __initStatic175() {this.defineInjector = { name: "\u0275\u0275defineInjector", moduleName: i }}
|
|
714
|
+
static __initStatic176() {this.declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: i }}
|
|
715
|
+
static __initStatic177() {this.NgModuleDeclaration = { name: "\u0275\u0275NgModuleDeclaration", moduleName: i }}
|
|
716
|
+
static __initStatic178() {this.ModuleWithProviders = { name: "ModuleWithProviders", moduleName: i }}
|
|
717
|
+
static __initStatic179() {this.defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: i }}
|
|
718
|
+
static __initStatic180() {this.declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: i }}
|
|
719
|
+
static __initStatic181() {this.setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: i }}
|
|
720
|
+
static __initStatic182() {this.registerNgModuleType = { name: "\u0275\u0275registerNgModuleType", moduleName: i }}
|
|
721
|
+
static __initStatic183() {this.PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: i }}
|
|
722
|
+
static __initStatic184() {this.definePipe = { name: "\u0275\u0275definePipe", moduleName: i }}
|
|
723
|
+
static __initStatic185() {this.declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: i }}
|
|
724
|
+
static __initStatic186() {this.declareClassMetadata = { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: i }}
|
|
725
|
+
static __initStatic187() {this.declareClassMetadataAsync = { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: i }}
|
|
726
|
+
static __initStatic188() {this.setClassMetadata = { name: "\u0275setClassMetadata", moduleName: i }}
|
|
727
|
+
static __initStatic189() {this.setClassMetadataAsync = { name: "\u0275setClassMetadataAsync", moduleName: i }}
|
|
728
|
+
static __initStatic190() {this.setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: i }}
|
|
729
|
+
static __initStatic191() {this.queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: i }}
|
|
730
|
+
static __initStatic192() {this.viewQuery = { name: "\u0275\u0275viewQuery", moduleName: i }}
|
|
731
|
+
static __initStatic193() {this.loadQuery = { name: "\u0275\u0275loadQuery", moduleName: i }}
|
|
732
|
+
static __initStatic194() {this.contentQuery = { name: "\u0275\u0275contentQuery", moduleName: i }}
|
|
733
|
+
static __initStatic195() {this.viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: i }}
|
|
734
|
+
static __initStatic196() {this.contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: i }}
|
|
735
|
+
static __initStatic197() {this.queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: i }}
|
|
736
|
+
static __initStatic198() {this.twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: i }}
|
|
737
|
+
static __initStatic199() {this.twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: i }}
|
|
738
|
+
static __initStatic200() {this.twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: i }}
|
|
739
|
+
static __initStatic201() {this.declareLet = { name: "\u0275\u0275declareLet", moduleName: i }}
|
|
740
|
+
static __initStatic202() {this.storeLet = { name: "\u0275\u0275storeLet", moduleName: i }}
|
|
741
|
+
static __initStatic203() {this.readContextLet = { name: "\u0275\u0275readContextLet", moduleName: i }}
|
|
742
|
+
static __initStatic204() {this.NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: i }}
|
|
743
|
+
static __initStatic205() {this.InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFeature", moduleName: i }}
|
|
744
|
+
static __initStatic206() {this.CopyDefinitionFeature = { name: "\u0275\u0275CopyDefinitionFeature", moduleName: i }}
|
|
745
|
+
static __initStatic207() {this.ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: i }}
|
|
746
|
+
static __initStatic208() {this.HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: i }}
|
|
747
|
+
static __initStatic209() {this.InputTransformsFeatureFeature = { name: "\u0275\u0275InputTransformsFeature", moduleName: i }}
|
|
748
|
+
static __initStatic210() {this.ExternalStylesFeature = { name: "\u0275\u0275ExternalStylesFeature", moduleName: i }}
|
|
749
|
+
static __initStatic211() {this.listener = { name: "\u0275\u0275listener", moduleName: i }}
|
|
750
|
+
static __initStatic212() {this.getInheritedFactory = { name: "\u0275\u0275getInheritedFactory", moduleName: i }}
|
|
751
|
+
static __initStatic213() {this.sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: i }}
|
|
752
|
+
static __initStatic214() {this.sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: i }}
|
|
753
|
+
static __initStatic215() {this.sanitizeResourceUrl = { name: "\u0275\u0275sanitizeResourceUrl", moduleName: i }}
|
|
754
|
+
static __initStatic216() {this.sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: i }}
|
|
755
|
+
static __initStatic217() {this.sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: i }}
|
|
756
|
+
static __initStatic218() {this.sanitizeUrlOrResourceUrl = { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: i }}
|
|
757
|
+
static __initStatic219() {this.trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: i }}
|
|
758
|
+
static __initStatic220() {this.trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: i }}
|
|
759
|
+
static __initStatic221() {this.validateIframeAttribute = { name: "\u0275\u0275validateIframeAttribute", moduleName: i }}
|
|
760
|
+
static __initStatic222() {this.InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: i }}
|
|
761
|
+
static __initStatic223() {this.UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: i }}
|
|
762
|
+
static __initStatic224() {this.unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: i }}
|
|
763
|
+
}, _class3.__initStatic2(), _class3.__initStatic3(), _class3.__initStatic4(), _class3.__initStatic5(), _class3.__initStatic6(), _class3.__initStatic7(), _class3.__initStatic8(), _class3.__initStatic9(), _class3.__initStatic10(), _class3.__initStatic11(), _class3.__initStatic12(), _class3.__initStatic13(), _class3.__initStatic14(), _class3.__initStatic15(), _class3.__initStatic16(), _class3.__initStatic17(), _class3.__initStatic18(), _class3.__initStatic19(), _class3.__initStatic20(), _class3.__initStatic21(), _class3.__initStatic22(), _class3.__initStatic23(), _class3.__initStatic24(), _class3.__initStatic25(), _class3.__initStatic26(), _class3.__initStatic27(), _class3.__initStatic28(), _class3.__initStatic29(), _class3.__initStatic30(), _class3.__initStatic31(), _class3.__initStatic32(), _class3.__initStatic33(), _class3.__initStatic34(), _class3.__initStatic35(), _class3.__initStatic36(), _class3.__initStatic37(), _class3.__initStatic38(), _class3.__initStatic39(), _class3.__initStatic40(), _class3.__initStatic41(), _class3.__initStatic42(), _class3.__initStatic43(), _class3.__initStatic44(), _class3.__initStatic45(), _class3.__initStatic46(), _class3.__initStatic47(), _class3.__initStatic48(), _class3.__initStatic49(), _class3.__initStatic50(), _class3.__initStatic51(), _class3.__initStatic52(), _class3.__initStatic53(), _class3.__initStatic54(), _class3.__initStatic55(), _class3.__initStatic56(), _class3.__initStatic57(), _class3.__initStatic58(), _class3.__initStatic59(), _class3.__initStatic60(), _class3.__initStatic61(), _class3.__initStatic62(), _class3.__initStatic63(), _class3.__initStatic64(), _class3.__initStatic65(), _class3.__initStatic66(), _class3.__initStatic67(), _class3.__initStatic68(), _class3.__initStatic69(), _class3.__initStatic70(), _class3.__initStatic71(), _class3.__initStatic72(), _class3.__initStatic73(), _class3.__initStatic74(), _class3.__initStatic75(), _class3.__initStatic76(), _class3.__initStatic77(), _class3.__initStatic78(), _class3.__initStatic79(), _class3.__initStatic80(), _class3.__initStatic81(), _class3.__initStatic82(), _class3.__initStatic83(), _class3.__initStatic84(), _class3.__initStatic85(), _class3.__initStatic86(), _class3.__initStatic87(), _class3.__initStatic88(), _class3.__initStatic89(), _class3.__initStatic90(), _class3.__initStatic91(), _class3.__initStatic92(), _class3.__initStatic93(), _class3.__initStatic94(), _class3.__initStatic95(), _class3.__initStatic96(), _class3.__initStatic97(), _class3.__initStatic98(), _class3.__initStatic99(), _class3.__initStatic100(), _class3.__initStatic101(), _class3.__initStatic102(), _class3.__initStatic103(), _class3.__initStatic104(), _class3.__initStatic105(), _class3.__initStatic106(), _class3.__initStatic107(), _class3.__initStatic108(), _class3.__initStatic109(), _class3.__initStatic110(), _class3.__initStatic111(), _class3.__initStatic112(), _class3.__initStatic113(), _class3.__initStatic114(), _class3.__initStatic115(), _class3.__initStatic116(), _class3.__initStatic117(), _class3.__initStatic118(), _class3.__initStatic119(), _class3.__initStatic120(), _class3.__initStatic121(), _class3.__initStatic122(), _class3.__initStatic123(), _class3.__initStatic124(), _class3.__initStatic125(), _class3.__initStatic126(), _class3.__initStatic127(), _class3.__initStatic128(), _class3.__initStatic129(), _class3.__initStatic130(), _class3.__initStatic131(), _class3.__initStatic132(), _class3.__initStatic133(), _class3.__initStatic134(), _class3.__initStatic135(), _class3.__initStatic136(), _class3.__initStatic137(), _class3.__initStatic138(), _class3.__initStatic139(), _class3.__initStatic140(), _class3.__initStatic141(), _class3.__initStatic142(), _class3.__initStatic143(), _class3.__initStatic144(), _class3.__initStatic145(), _class3.__initStatic146(), _class3.__initStatic147(), _class3.__initStatic148(), _class3.__initStatic149(), _class3.__initStatic150(), _class3.__initStatic151(), _class3.__initStatic152(), _class3.__initStatic153(), _class3.__initStatic154(), _class3.__initStatic155(), _class3.__initStatic156(), _class3.__initStatic157(), _class3.__initStatic158(), _class3.__initStatic159(), _class3.__initStatic160(), _class3.__initStatic161(), _class3.__initStatic162(), _class3.__initStatic163(), _class3.__initStatic164(), _class3.__initStatic165(), _class3.__initStatic166(), _class3.__initStatic167(), _class3.__initStatic168(), _class3.__initStatic169(), _class3.__initStatic170(), _class3.__initStatic171(), _class3.__initStatic172(), _class3.__initStatic173(), _class3.__initStatic174(), _class3.__initStatic175(), _class3.__initStatic176(), _class3.__initStatic177(), _class3.__initStatic178(), _class3.__initStatic179(), _class3.__initStatic180(), _class3.__initStatic181(), _class3.__initStatic182(), _class3.__initStatic183(), _class3.__initStatic184(), _class3.__initStatic185(), _class3.__initStatic186(), _class3.__initStatic187(), _class3.__initStatic188(), _class3.__initStatic189(), _class3.__initStatic190(), _class3.__initStatic191(), _class3.__initStatic192(), _class3.__initStatic193(), _class3.__initStatic194(), _class3.__initStatic195(), _class3.__initStatic196(), _class3.__initStatic197(), _class3.__initStatic198(), _class3.__initStatic199(), _class3.__initStatic200(), _class3.__initStatic201(), _class3.__initStatic202(), _class3.__initStatic203(), _class3.__initStatic204(), _class3.__initStatic205(), _class3.__initStatic206(), _class3.__initStatic207(), _class3.__initStatic208(), _class3.__initStatic209(), _class3.__initStatic210(), _class3.__initStatic211(), _class3.__initStatic212(), _class3.__initStatic213(), _class3.__initStatic214(), _class3.__initStatic215(), _class3.__initStatic216(), _class3.__initStatic217(), _class3.__initStatic218(), _class3.__initStatic219(), _class3.__initStatic220(), _class3.__initStatic221(), _class3.__initStatic222(), _class3.__initStatic223(), _class3.__initStatic224(), _class3);
|
|
764
|
+
var St = class {
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
constructor(e) {
|
|
770
|
+
this.full = e;
|
|
771
|
+
let n = e.split(".");
|
|
772
|
+
this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
var on;
|
|
776
|
+
(function(t26) {
|
|
777
|
+
t26[t26.Class = 0] = "Class", t26[t26.Function = 1] = "Function";
|
|
778
|
+
})(on || (on = {}));
|
|
779
|
+
var an;
|
|
780
|
+
(function(t26) {
|
|
781
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Component = 1] = "Component", t26[t26.Injectable = 2] = "Injectable", t26[t26.Pipe = 3] = "Pipe", t26[t26.NgModule = 4] = "NgModule";
|
|
782
|
+
})(an || (an = {}));
|
|
783
|
+
var ye = class {
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
constructor(e, n, s, r) {
|
|
789
|
+
this.input = n, this.errLocation = s, this.ctxLocation = r, this.message = `Parser Error: ${e} ${s} [${n}] in ${r}`;
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
var G = class {
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
constructor(e, n) {
|
|
796
|
+
this.start = e, this.end = n;
|
|
797
|
+
}
|
|
798
|
+
toAbsolute(e) {
|
|
799
|
+
return new O(e + this.start, e + this.end);
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
var E = class {
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
constructor(e, n) {
|
|
806
|
+
this.span = e, this.sourceSpan = n;
|
|
807
|
+
}
|
|
808
|
+
toString() {
|
|
809
|
+
return "AST";
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
var se = class extends E {
|
|
813
|
+
|
|
814
|
+
constructor(e, n, s) {
|
|
815
|
+
super(e, n), this.nameSpan = s;
|
|
816
|
+
}
|
|
817
|
+
};
|
|
818
|
+
var b = class extends E {
|
|
819
|
+
visit(e, n = null) {
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
var X = class extends E {
|
|
823
|
+
visit(e, n = null) {
|
|
824
|
+
return e.visitImplicitReceiver(this, n);
|
|
825
|
+
}
|
|
826
|
+
};
|
|
827
|
+
var Et = class extends X {
|
|
828
|
+
visit(e, n = null) {
|
|
829
|
+
var s;
|
|
830
|
+
return (s = e.visitThisReceiver) == null ? void 0 : s.call(e, this, n);
|
|
831
|
+
}
|
|
832
|
+
};
|
|
833
|
+
var _e = class extends E {
|
|
834
|
+
|
|
835
|
+
constructor(e, n, s) {
|
|
836
|
+
super(e, n), this.expressions = s;
|
|
837
|
+
}
|
|
838
|
+
visit(e, n = null) {
|
|
839
|
+
return e.visitChain(this, n);
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
var Ce = class extends E {
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
constructor(e, n, s, r, o) {
|
|
847
|
+
super(e, n), this.condition = s, this.trueExp = r, this.falseExp = o;
|
|
848
|
+
}
|
|
849
|
+
visit(e, n = null) {
|
|
850
|
+
return e.visitConditional(this, n);
|
|
851
|
+
}
|
|
852
|
+
};
|
|
853
|
+
var re = class extends se {
|
|
854
|
+
|
|
855
|
+
|
|
856
|
+
constructor(e, n, s, r, o) {
|
|
857
|
+
super(e, n, s), this.receiver = r, this.name = o;
|
|
858
|
+
}
|
|
859
|
+
visit(e, n = null) {
|
|
860
|
+
return e.visitPropertyRead(this, n);
|
|
861
|
+
}
|
|
862
|
+
};
|
|
863
|
+
var Te = class extends se {
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
constructor(e, n, s, r, o, a) {
|
|
868
|
+
super(e, n, s), this.receiver = r, this.name = o, this.value = a;
|
|
869
|
+
}
|
|
870
|
+
visit(e, n = null) {
|
|
871
|
+
return e.visitPropertyWrite(this, n);
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
var ie = class extends se {
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
constructor(e, n, s, r, o) {
|
|
878
|
+
super(e, n, s), this.receiver = r, this.name = o;
|
|
879
|
+
}
|
|
880
|
+
visit(e, n = null) {
|
|
881
|
+
return e.visitSafePropertyRead(this, n);
|
|
882
|
+
}
|
|
883
|
+
};
|
|
884
|
+
var ke = class extends E {
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
constructor(e, n, s, r) {
|
|
888
|
+
super(e, n), this.receiver = s, this.key = r;
|
|
889
|
+
}
|
|
890
|
+
visit(e, n = null) {
|
|
891
|
+
return e.visitKeyedRead(this, n);
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
var oe = class extends E {
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
constructor(e, n, s, r) {
|
|
898
|
+
super(e, n), this.receiver = s, this.key = r;
|
|
899
|
+
}
|
|
900
|
+
visit(e, n = null) {
|
|
901
|
+
return e.visitSafeKeyedRead(this, n);
|
|
902
|
+
}
|
|
903
|
+
};
|
|
904
|
+
var Ie = class extends E {
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
constructor(e, n, s, r, o) {
|
|
909
|
+
super(e, n), this.receiver = s, this.key = r, this.value = o;
|
|
910
|
+
}
|
|
911
|
+
visit(e, n = null) {
|
|
912
|
+
return e.visitKeyedWrite(this, n);
|
|
913
|
+
}
|
|
914
|
+
};
|
|
915
|
+
var be = class extends se {
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
constructor(e, n, s, r, o, a) {
|
|
920
|
+
super(e, n, a), this.exp = s, this.name = r, this.args = o;
|
|
921
|
+
}
|
|
922
|
+
visit(e, n = null) {
|
|
923
|
+
return e.visitPipe(this, n);
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
var A = class extends E {
|
|
927
|
+
|
|
928
|
+
constructor(e, n, s) {
|
|
929
|
+
super(e, n), this.value = s;
|
|
930
|
+
}
|
|
931
|
+
visit(e, n = null) {
|
|
932
|
+
return e.visitLiteralPrimitive(this, n);
|
|
933
|
+
}
|
|
934
|
+
};
|
|
935
|
+
var Ae = class extends E {
|
|
936
|
+
|
|
937
|
+
constructor(e, n, s) {
|
|
938
|
+
super(e, n), this.expressions = s;
|
|
939
|
+
}
|
|
940
|
+
visit(e, n = null) {
|
|
941
|
+
return e.visitLiteralArray(this, n);
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
var Ne = class extends E {
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
constructor(e, n, s, r) {
|
|
948
|
+
super(e, n), this.keys = s, this.values = r;
|
|
949
|
+
}
|
|
950
|
+
visit(e, n = null) {
|
|
951
|
+
return e.visitLiteralMap(this, n);
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
var Pe = class extends E {
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
constructor(e, n, s, r) {
|
|
958
|
+
super(e, n), this.strings = s, this.expressions = r;
|
|
959
|
+
}
|
|
960
|
+
visit(e, n = null) {
|
|
961
|
+
return e.visitInterpolation(this, n);
|
|
962
|
+
}
|
|
963
|
+
};
|
|
964
|
+
var N = class extends E {
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
constructor(e, n, s, r, o) {
|
|
969
|
+
super(e, n), this.operation = s, this.left = r, this.right = o;
|
|
970
|
+
}
|
|
971
|
+
visit(e, n = null) {
|
|
972
|
+
return e.visitBinary(this, n);
|
|
973
|
+
}
|
|
974
|
+
};
|
|
975
|
+
var ae = (_class4 = class t19 extends N {
|
|
976
|
+
|
|
977
|
+
|
|
978
|
+
__init2() {this.left = null}
|
|
979
|
+
__init3() {this.right = null}
|
|
980
|
+
__init4() {this.operation = null}
|
|
981
|
+
static createMinus(e, n, s) {
|
|
982
|
+
return new t19(e, n, "-", s, "-", new A(e, n, 0), s);
|
|
983
|
+
}
|
|
984
|
+
static createPlus(e, n, s) {
|
|
985
|
+
return new t19(e, n, "+", s, "-", s, new A(e, n, 0));
|
|
986
|
+
}
|
|
987
|
+
constructor(e, n, s, r, o, a, l) {
|
|
988
|
+
super(e, n, o, a, l);_class4.prototype.__init2.call(this);_class4.prototype.__init3.call(this);_class4.prototype.__init4.call(this);, this.operator = s, this.expr = r;
|
|
989
|
+
}
|
|
990
|
+
visit(e, n = null) {
|
|
991
|
+
return e.visitUnary !== void 0 ? e.visitUnary(this, n) : e.visitBinary(this, n);
|
|
992
|
+
}
|
|
993
|
+
}, _class4);
|
|
994
|
+
var Le = class extends E {
|
|
995
|
+
|
|
996
|
+
constructor(e, n, s) {
|
|
997
|
+
super(e, n), this.expression = s;
|
|
998
|
+
}
|
|
999
|
+
visit(e, n = null) {
|
|
1000
|
+
return e.visitPrefixNot(this, n);
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
var Me = class extends E {
|
|
1004
|
+
|
|
1005
|
+
constructor(e, n, s) {
|
|
1006
|
+
super(e, n), this.expression = s;
|
|
1007
|
+
}
|
|
1008
|
+
visit(e, n = null) {
|
|
1009
|
+
return e.visitTypeofExpresion(this, n);
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
var $e = class extends E {
|
|
1013
|
+
|
|
1014
|
+
constructor(e, n, s) {
|
|
1015
|
+
super(e, n), this.expression = s;
|
|
1016
|
+
}
|
|
1017
|
+
visit(e, n = null) {
|
|
1018
|
+
return e.visitNonNullAssert(this, n);
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1021
|
+
var Re = class extends E {
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
constructor(e, n, s, r, o) {
|
|
1026
|
+
super(e, n), this.receiver = s, this.args = r, this.argumentSpan = o;
|
|
1027
|
+
}
|
|
1028
|
+
visit(e, n = null) {
|
|
1029
|
+
return e.visitCall(this, n);
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
var le = class extends E {
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
constructor(e, n, s, r, o) {
|
|
1037
|
+
super(e, n), this.receiver = s, this.args = r, this.argumentSpan = o;
|
|
1038
|
+
}
|
|
1039
|
+
visit(e, n = null) {
|
|
1040
|
+
return e.visitSafeCall(this, n);
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
var O = class {
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
constructor(e, n) {
|
|
1047
|
+
this.start = e, this.end = n;
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
var W = class extends E {
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
constructor(e, n, s, r, o) {
|
|
1056
|
+
super(new G(0, n === null ? 0 : n.length), new O(r, n === null ? r : r + n.length)), this.ast = e, this.source = n, this.location = s, this.errors = o;
|
|
1057
|
+
}
|
|
1058
|
+
visit(e, n = null) {
|
|
1059
|
+
return e.visitASTWithSource ? e.visitASTWithSource(this, n) : this.ast.visit(e, n);
|
|
1060
|
+
}
|
|
1061
|
+
toString() {
|
|
1062
|
+
return `${this.source} in ${this.location}`;
|
|
1063
|
+
}
|
|
1064
|
+
};
|
|
1065
|
+
var ce = class {
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
constructor(e, n, s) {
|
|
1070
|
+
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
var Be = class {
|
|
1074
|
+
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
constructor(e, n, s) {
|
|
1078
|
+
this.sourceSpan = e, this.key = n, this.value = s;
|
|
1079
|
+
}
|
|
1080
|
+
};
|
|
1081
|
+
var yt = class {
|
|
1082
|
+
visit(e, n) {
|
|
1083
|
+
e.visit(this, n);
|
|
1084
|
+
}
|
|
1085
|
+
visitUnary(e, n) {
|
|
1086
|
+
this.visit(e.expr, n);
|
|
1087
|
+
}
|
|
1088
|
+
visitBinary(e, n) {
|
|
1089
|
+
this.visit(e.left, n), this.visit(e.right, n);
|
|
1090
|
+
}
|
|
1091
|
+
visitChain(e, n) {
|
|
1092
|
+
this.visitAll(e.expressions, n);
|
|
1093
|
+
}
|
|
1094
|
+
visitConditional(e, n) {
|
|
1095
|
+
this.visit(e.condition, n), this.visit(e.trueExp, n), this.visit(e.falseExp, n);
|
|
1096
|
+
}
|
|
1097
|
+
visitPipe(e, n) {
|
|
1098
|
+
this.visit(e.exp, n), this.visitAll(e.args, n);
|
|
1099
|
+
}
|
|
1100
|
+
visitImplicitReceiver(e, n) {
|
|
1101
|
+
}
|
|
1102
|
+
visitThisReceiver(e, n) {
|
|
1103
|
+
}
|
|
1104
|
+
visitInterpolation(e, n) {
|
|
1105
|
+
this.visitAll(e.expressions, n);
|
|
1106
|
+
}
|
|
1107
|
+
visitKeyedRead(e, n) {
|
|
1108
|
+
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1109
|
+
}
|
|
1110
|
+
visitKeyedWrite(e, n) {
|
|
1111
|
+
this.visit(e.receiver, n), this.visit(e.key, n), this.visit(e.value, n);
|
|
1112
|
+
}
|
|
1113
|
+
visitLiteralArray(e, n) {
|
|
1114
|
+
this.visitAll(e.expressions, n);
|
|
1115
|
+
}
|
|
1116
|
+
visitLiteralMap(e, n) {
|
|
1117
|
+
this.visitAll(e.values, n);
|
|
1118
|
+
}
|
|
1119
|
+
visitLiteralPrimitive(e, n) {
|
|
1120
|
+
}
|
|
1121
|
+
visitPrefixNot(e, n) {
|
|
1122
|
+
this.visit(e.expression, n);
|
|
1123
|
+
}
|
|
1124
|
+
visitTypeofExpresion(e, n) {
|
|
1125
|
+
this.visit(e.expression, n);
|
|
1126
|
+
}
|
|
1127
|
+
visitNonNullAssert(e, n) {
|
|
1128
|
+
this.visit(e.expression, n);
|
|
1129
|
+
}
|
|
1130
|
+
visitPropertyRead(e, n) {
|
|
1131
|
+
this.visit(e.receiver, n);
|
|
1132
|
+
}
|
|
1133
|
+
visitPropertyWrite(e, n) {
|
|
1134
|
+
this.visit(e.receiver, n), this.visit(e.value, n);
|
|
1135
|
+
}
|
|
1136
|
+
visitSafePropertyRead(e, n) {
|
|
1137
|
+
this.visit(e.receiver, n);
|
|
1138
|
+
}
|
|
1139
|
+
visitSafeKeyedRead(e, n) {
|
|
1140
|
+
this.visit(e.receiver, n), this.visit(e.key, n);
|
|
1141
|
+
}
|
|
1142
|
+
visitCall(e, n) {
|
|
1143
|
+
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1144
|
+
}
|
|
1145
|
+
visitSafeCall(e, n) {
|
|
1146
|
+
this.visit(e.receiver, n), this.visitAll(e.args, n);
|
|
1147
|
+
}
|
|
1148
|
+
visitAll(e, n) {
|
|
1149
|
+
for (let s of e) this.visit(s, n);
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
var ln;
|
|
1153
|
+
(function(t26) {
|
|
1154
|
+
t26[t26.DEFAULT = 0] = "DEFAULT", t26[t26.LITERAL_ATTR = 1] = "LITERAL_ATTR", t26[t26.ANIMATION = 2] = "ANIMATION", t26[t26.TWO_WAY = 3] = "TWO_WAY";
|
|
1155
|
+
})(ln || (ln = {}));
|
|
1156
|
+
var cn;
|
|
1157
|
+
(function(t26) {
|
|
1158
|
+
t26[t26.Regular = 0] = "Regular", t26[t26.Animation = 1] = "Animation", t26[t26.TwoWay = 2] = "TwoWay";
|
|
1159
|
+
})(cn || (cn = {}));
|
|
1160
|
+
var H;
|
|
1161
|
+
(function(t26) {
|
|
1162
|
+
t26[t26.Property = 0] = "Property", t26[t26.Attribute = 1] = "Attribute", t26[t26.Class = 2] = "Class", t26[t26.Style = 3] = "Style", t26[t26.Animation = 4] = "Animation", t26[t26.TwoWay = 5] = "TwoWay";
|
|
1163
|
+
})(H || (H = {}));
|
|
1164
|
+
var un;
|
|
1165
|
+
(function(t26) {
|
|
1166
|
+
t26[t26.RAW_TEXT = 0] = "RAW_TEXT", t26[t26.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t26[t26.PARSABLE_DATA = 2] = "PARSABLE_DATA";
|
|
1167
|
+
})(un || (un = {}));
|
|
1168
|
+
var Fs = [/@/, /^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];
|
|
1169
|
+
function Vs(t26, e) {
|
|
1170
|
+
if (e != null && !(Array.isArray(e) && e.length == 2)) throw new Error(`Expected '${t26}' to be an array, [start, end].`);
|
|
1171
|
+
if (e != null) {
|
|
1172
|
+
let n = e[0], s = e[1];
|
|
1173
|
+
Fs.forEach((r) => {
|
|
1174
|
+
if (r.test(n) || r.test(s)) throw new Error(`['${n}', '${s}'] contains unusable interpolation symbol.`);
|
|
1175
|
+
});
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
var _t = class t20 {
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
static fromArray(e) {
|
|
1182
|
+
return e ? (Vs("interpolation", e), new t20(e[0], e[1])) : Z;
|
|
1183
|
+
}
|
|
1184
|
+
constructor(e, n) {
|
|
1185
|
+
this.start = e, this.end = n;
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
var Z = new _t("{{", "}}");
|
|
1189
|
+
var ot = 0;
|
|
1190
|
+
var Un = 9;
|
|
1191
|
+
var Hs = 10;
|
|
1192
|
+
var Us = 11;
|
|
1193
|
+
var Ws = 12;
|
|
1194
|
+
var qs = 13;
|
|
1195
|
+
var Wn = 32;
|
|
1196
|
+
var js = 33;
|
|
1197
|
+
var qn = 34;
|
|
1198
|
+
var zs = 35;
|
|
1199
|
+
var jn = 36;
|
|
1200
|
+
var Gs = 37;
|
|
1201
|
+
var pn = 38;
|
|
1202
|
+
var zn = 39;
|
|
1203
|
+
var je = 40;
|
|
1204
|
+
var me = 41;
|
|
1205
|
+
var Xs = 42;
|
|
1206
|
+
var Gn = 43;
|
|
1207
|
+
var ge = 44;
|
|
1208
|
+
var Xn = 45;
|
|
1209
|
+
var ee = 46;
|
|
1210
|
+
var Ct = 47;
|
|
1211
|
+
var te = 58;
|
|
1212
|
+
var ve = 59;
|
|
1213
|
+
var Js = 60;
|
|
1214
|
+
var qe = 61;
|
|
1215
|
+
var Ks = 62;
|
|
1216
|
+
var hn = 63;
|
|
1217
|
+
var Ys = 48;
|
|
1218
|
+
var Qs = 57;
|
|
1219
|
+
var Jn = 65;
|
|
1220
|
+
var Zs = 69;
|
|
1221
|
+
var Kn = 90;
|
|
1222
|
+
var ze = 91;
|
|
1223
|
+
var er = 92;
|
|
1224
|
+
var we = 93;
|
|
1225
|
+
var tr = 94;
|
|
1226
|
+
var Mt = 95;
|
|
1227
|
+
var Yn = 97;
|
|
1228
|
+
var nr = 101;
|
|
1229
|
+
var sr = 102;
|
|
1230
|
+
var rr = 110;
|
|
1231
|
+
var ir = 114;
|
|
1232
|
+
var or = 116;
|
|
1233
|
+
var ar = 117;
|
|
1234
|
+
var lr = 118;
|
|
1235
|
+
var Qn = 122;
|
|
1236
|
+
var Tt = 123;
|
|
1237
|
+
var fn = 124;
|
|
1238
|
+
var xe = 125;
|
|
1239
|
+
var Zn = 160;
|
|
1240
|
+
var cr = 96;
|
|
1241
|
+
function ur(t26) {
|
|
1242
|
+
return t26 >= Un && t26 <= Wn || t26 == Zn;
|
|
1243
|
+
}
|
|
1244
|
+
function j(t26) {
|
|
1245
|
+
return Ys <= t26 && t26 <= Qs;
|
|
1246
|
+
}
|
|
1247
|
+
function pr(t26) {
|
|
1248
|
+
return t26 >= Yn && t26 <= Qn || t26 >= Jn && t26 <= Kn;
|
|
1249
|
+
}
|
|
1250
|
+
function dn(t26) {
|
|
1251
|
+
return t26 === zn || t26 === qn || t26 === cr;
|
|
1252
|
+
}
|
|
1253
|
+
var mn;
|
|
1254
|
+
(function(t26) {
|
|
1255
|
+
t26[t26.WARNING = 0] = "WARNING", t26[t26.ERROR = 1] = "ERROR";
|
|
1256
|
+
})(mn || (mn = {}));
|
|
1257
|
+
var gn;
|
|
1258
|
+
(function(t26) {
|
|
1259
|
+
t26[t26.Inline = 0] = "Inline", t26[t26.SideEffect = 1] = "SideEffect", t26[t26.Omit = 2] = "Omit";
|
|
1260
|
+
})(gn || (gn = {}));
|
|
1261
|
+
var vn;
|
|
1262
|
+
(function(t26) {
|
|
1263
|
+
t26[t26.Global = 0] = "Global", t26[t26.Local = 1] = "Local";
|
|
1264
|
+
})(vn || (vn = {}));
|
|
1265
|
+
var wn;
|
|
1266
|
+
(function(t26) {
|
|
1267
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Pipe = 1] = "Pipe", t26[t26.NgModule = 2] = "NgModule";
|
|
1268
|
+
})(wn || (wn = {}));
|
|
1269
|
+
var hr = "(:(where|is)\\()?";
|
|
1270
|
+
var es = "-shadowcsshost";
|
|
1271
|
+
var ts = "-shadowcsscontext";
|
|
1272
|
+
var $t = "(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
1273
|
+
var Jr = new RegExp(es + $t, "gim");
|
|
1274
|
+
var Kr = new RegExp(hr + "(" + ts + $t + ")", "gim");
|
|
1275
|
+
var Yr = new RegExp(ts + $t, "im");
|
|
1276
|
+
var fr = es + "-no-combinator";
|
|
1277
|
+
var Qr = new RegExp(`${fr}(?![^(]*\\))`, "g");
|
|
1278
|
+
var ns = "%COMMENT%";
|
|
1279
|
+
var Zr = new RegExp(ns, "g");
|
|
1280
|
+
var ei = new RegExp(`(\\s*(?:${ns}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`, "g");
|
|
1281
|
+
var dr = "%COMMA_IN_PLACEHOLDER%";
|
|
1282
|
+
var mr = "%SEMI_IN_PLACEHOLDER%";
|
|
1283
|
+
var gr = "%COLON_IN_PLACEHOLDER%";
|
|
1284
|
+
var ti = new RegExp(dr, "g");
|
|
1285
|
+
var ni = new RegExp(mr, "g");
|
|
1286
|
+
var si = new RegExp(gr, "g");
|
|
1287
|
+
var f;
|
|
1288
|
+
(function(t26) {
|
|
1289
|
+
t26[t26.ListEnd = 0] = "ListEnd", t26[t26.Statement = 1] = "Statement", t26[t26.Variable = 2] = "Variable", t26[t26.ElementStart = 3] = "ElementStart", t26[t26.Element = 4] = "Element", t26[t26.Template = 5] = "Template", t26[t26.ElementEnd = 6] = "ElementEnd", t26[t26.ContainerStart = 7] = "ContainerStart", t26[t26.Container = 8] = "Container", t26[t26.ContainerEnd = 9] = "ContainerEnd", t26[t26.DisableBindings = 10] = "DisableBindings", t26[t26.Conditional = 11] = "Conditional", t26[t26.EnableBindings = 12] = "EnableBindings", t26[t26.Text = 13] = "Text", t26[t26.Listener = 14] = "Listener", t26[t26.InterpolateText = 15] = "InterpolateText", t26[t26.Binding = 16] = "Binding", t26[t26.Property = 17] = "Property", t26[t26.StyleProp = 18] = "StyleProp", t26[t26.ClassProp = 19] = "ClassProp", t26[t26.StyleMap = 20] = "StyleMap", t26[t26.ClassMap = 21] = "ClassMap", t26[t26.Advance = 22] = "Advance", t26[t26.Pipe = 23] = "Pipe", t26[t26.Attribute = 24] = "Attribute", t26[t26.ExtractedAttribute = 25] = "ExtractedAttribute", t26[t26.Defer = 26] = "Defer", t26[t26.DeferOn = 27] = "DeferOn", t26[t26.DeferWhen = 28] = "DeferWhen", t26[t26.I18nMessage = 29] = "I18nMessage", t26[t26.HostProperty = 30] = "HostProperty", t26[t26.Namespace = 31] = "Namespace", t26[t26.ProjectionDef = 32] = "ProjectionDef", t26[t26.Projection = 33] = "Projection", t26[t26.RepeaterCreate = 34] = "RepeaterCreate", t26[t26.Repeater = 35] = "Repeater", t26[t26.TwoWayProperty = 36] = "TwoWayProperty", t26[t26.TwoWayListener = 37] = "TwoWayListener", t26[t26.DeclareLet = 38] = "DeclareLet", t26[t26.StoreLet = 39] = "StoreLet", t26[t26.I18nStart = 40] = "I18nStart", t26[t26.I18n = 41] = "I18n", t26[t26.I18nEnd = 42] = "I18nEnd", t26[t26.I18nExpression = 43] = "I18nExpression", t26[t26.I18nApply = 44] = "I18nApply", t26[t26.IcuStart = 45] = "IcuStart", t26[t26.IcuEnd = 46] = "IcuEnd", t26[t26.IcuPlaceholder = 47] = "IcuPlaceholder", t26[t26.I18nContext = 48] = "I18nContext", t26[t26.I18nAttributes = 49] = "I18nAttributes";
|
|
1290
|
+
})(f || (f = {}));
|
|
1291
|
+
var J;
|
|
1292
|
+
(function(t26) {
|
|
1293
|
+
t26[t26.LexicalRead = 0] = "LexicalRead", t26[t26.Context = 1] = "Context", t26[t26.TrackContext = 2] = "TrackContext", t26[t26.ReadVariable = 3] = "ReadVariable", t26[t26.NextContext = 4] = "NextContext", t26[t26.Reference = 5] = "Reference", t26[t26.StoreLet = 6] = "StoreLet", t26[t26.ContextLetReference = 7] = "ContextLetReference", t26[t26.GetCurrentView = 8] = "GetCurrentView", t26[t26.RestoreView = 9] = "RestoreView", t26[t26.ResetView = 10] = "ResetView", t26[t26.PureFunctionExpr = 11] = "PureFunctionExpr", t26[t26.PureFunctionParameterExpr = 12] = "PureFunctionParameterExpr", t26[t26.PipeBinding = 13] = "PipeBinding", t26[t26.PipeBindingVariadic = 14] = "PipeBindingVariadic", t26[t26.SafePropertyRead = 15] = "SafePropertyRead", t26[t26.SafeKeyedRead = 16] = "SafeKeyedRead", t26[t26.SafeInvokeFunction = 17] = "SafeInvokeFunction", t26[t26.SafeTernaryExpr = 18] = "SafeTernaryExpr", t26[t26.EmptyExpr = 19] = "EmptyExpr", t26[t26.AssignTemporaryExpr = 20] = "AssignTemporaryExpr", t26[t26.ReadTemporaryExpr = 21] = "ReadTemporaryExpr", t26[t26.SlotLiteralExpr = 22] = "SlotLiteralExpr", t26[t26.ConditionalCase = 23] = "ConditionalCase", t26[t26.ConstCollected = 24] = "ConstCollected", t26[t26.TwoWayBindingSet = 25] = "TwoWayBindingSet";
|
|
1294
|
+
})(J || (J = {}));
|
|
1295
|
+
var xn;
|
|
1296
|
+
(function(t26) {
|
|
1297
|
+
t26[t26.None = 0] = "None", t26[t26.AlwaysInline = 1] = "AlwaysInline";
|
|
1298
|
+
})(xn || (xn = {}));
|
|
1299
|
+
var Sn;
|
|
1300
|
+
(function(t26) {
|
|
1301
|
+
t26[t26.Context = 0] = "Context", t26[t26.Identifier = 1] = "Identifier", t26[t26.SavedView = 2] = "SavedView", t26[t26.Alias = 3] = "Alias";
|
|
1302
|
+
})(Sn || (Sn = {}));
|
|
1303
|
+
var En;
|
|
1304
|
+
(function(t26) {
|
|
1305
|
+
t26[t26.Normal = 0] = "Normal", t26[t26.TemplateDefinitionBuilder = 1] = "TemplateDefinitionBuilder";
|
|
1306
|
+
})(En || (En = {}));
|
|
1307
|
+
var U;
|
|
1308
|
+
(function(t26) {
|
|
1309
|
+
t26[t26.Attribute = 0] = "Attribute", t26[t26.ClassName = 1] = "ClassName", t26[t26.StyleProperty = 2] = "StyleProperty", t26[t26.Property = 3] = "Property", t26[t26.Template = 4] = "Template", t26[t26.I18n = 5] = "I18n", t26[t26.Animation = 6] = "Animation", t26[t26.TwoWayProperty = 7] = "TwoWayProperty";
|
|
1310
|
+
})(U || (U = {}));
|
|
1311
|
+
var yn;
|
|
1312
|
+
(function(t26) {
|
|
1313
|
+
t26[t26.Creation = 0] = "Creation", t26[t26.Postproccessing = 1] = "Postproccessing";
|
|
1314
|
+
})(yn || (yn = {}));
|
|
1315
|
+
var _n;
|
|
1316
|
+
(function(t26) {
|
|
1317
|
+
t26[t26.I18nText = 0] = "I18nText", t26[t26.I18nAttribute = 1] = "I18nAttribute";
|
|
1318
|
+
})(_n || (_n = {}));
|
|
1319
|
+
var Cn;
|
|
1320
|
+
(function(t26) {
|
|
1321
|
+
t26[t26.None = 0] = "None", t26[t26.ElementTag = 1] = "ElementTag", t26[t26.TemplateTag = 2] = "TemplateTag", t26[t26.OpenTag = 4] = "OpenTag", t26[t26.CloseTag = 8] = "CloseTag", t26[t26.ExpressionIndex = 16] = "ExpressionIndex";
|
|
1322
|
+
})(Cn || (Cn = {}));
|
|
1323
|
+
var Tn;
|
|
1324
|
+
(function(t26) {
|
|
1325
|
+
t26[t26.HTML = 0] = "HTML", t26[t26.SVG = 1] = "SVG", t26[t26.Math = 2] = "Math";
|
|
1326
|
+
})(Tn || (Tn = {}));
|
|
1327
|
+
var kn;
|
|
1328
|
+
(function(t26) {
|
|
1329
|
+
t26[t26.Idle = 0] = "Idle", t26[t26.Immediate = 1] = "Immediate", t26[t26.Timer = 2] = "Timer", t26[t26.Hover = 3] = "Hover", t26[t26.Interaction = 4] = "Interaction", t26[t26.Viewport = 5] = "Viewport", t26[t26.Never = 6] = "Never";
|
|
1330
|
+
})(kn || (kn = {}));
|
|
1331
|
+
var In;
|
|
1332
|
+
(function(t26) {
|
|
1333
|
+
t26[t26.RootI18n = 0] = "RootI18n", t26[t26.Icu = 1] = "Icu", t26[t26.Attr = 2] = "Attr";
|
|
1334
|
+
})(In || (In = {}));
|
|
1335
|
+
var bn;
|
|
1336
|
+
(function(t26) {
|
|
1337
|
+
t26[t26.NgTemplate = 0] = "NgTemplate", t26[t26.Structural = 1] = "Structural", t26[t26.Block = 2] = "Block";
|
|
1338
|
+
})(bn || (bn = {}));
|
|
1339
|
+
var vr = Symbol("ConsumesSlot");
|
|
1340
|
+
var ss = Symbol("DependsOnSlotContext");
|
|
1341
|
+
var Oe = Symbol("ConsumesVars");
|
|
1342
|
+
var Rt = Symbol("UsesVarOffset");
|
|
1343
|
+
var ri = { [vr]: true, numSlotsUsed: 1 };
|
|
1344
|
+
var ii = { [ss]: true };
|
|
1345
|
+
var oi = { [Oe]: true };
|
|
1346
|
+
var Ze = class {
|
|
1347
|
+
|
|
1348
|
+
|
|
1349
|
+
|
|
1350
|
+
constructor(e, n, s) {
|
|
1351
|
+
if (this.strings = e, this.expressions = n, this.i18nPlaceholders = s, s.length !== 0 && s.length !== n.length) throw new Error(`Expected ${n.length} placeholders to match interpolation expression count, but got ${s.length}`);
|
|
1352
|
+
}
|
|
1353
|
+
};
|
|
1354
|
+
var K = class extends k {
|
|
1355
|
+
constructor(e = null) {
|
|
1356
|
+
super(null, e);
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
var An = (_class5 = class t21 extends K {
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
|
|
1363
|
+
__init5() {this.kind = J.StoreLet}
|
|
1364
|
+
__init6() {this[Oe] = true}
|
|
1365
|
+
__init7() {this[ss] = true}
|
|
1366
|
+
constructor(e, n, s) {
|
|
1367
|
+
super();_class5.prototype.__init5.call(this);_class5.prototype.__init6.call(this);_class5.prototype.__init7.call(this);, this.target = e, this.value = n, this.sourceSpan = s;
|
|
1368
|
+
}
|
|
1369
|
+
visitExpression() {
|
|
1370
|
+
}
|
|
1371
|
+
isEquivalent(e) {
|
|
1372
|
+
return e instanceof t21 && e.target === this.target && e.value.isEquivalent(this.value);
|
|
1373
|
+
}
|
|
1374
|
+
isConstant() {
|
|
1375
|
+
return false;
|
|
1376
|
+
}
|
|
1377
|
+
transformInternalExpressions(e, n) {
|
|
1378
|
+
this.value = (this.value, void 0);
|
|
1379
|
+
}
|
|
1380
|
+
clone() {
|
|
1381
|
+
return new t21(this.target, this.value, this.sourceSpan);
|
|
1382
|
+
}
|
|
1383
|
+
}, _class5);
|
|
1384
|
+
var Nn = (_class6 = class t22 extends K {
|
|
1385
|
+
__init8() {this.kind = J.PureFunctionExpr}
|
|
1386
|
+
__init9() {this[Oe] = true}
|
|
1387
|
+
__init10() {this[Rt] = true}
|
|
1388
|
+
__init11() {this.varOffset = null}
|
|
1389
|
+
|
|
1390
|
+
|
|
1391
|
+
__init12() {this.fn = null}
|
|
1392
|
+
constructor(e, n) {
|
|
1393
|
+
super();_class6.prototype.__init8.call(this);_class6.prototype.__init9.call(this);_class6.prototype.__init10.call(this);_class6.prototype.__init11.call(this);_class6.prototype.__init12.call(this);, this.body = e, this.args = n;
|
|
1394
|
+
}
|
|
1395
|
+
visitExpression(e, n) {
|
|
1396
|
+
var s;
|
|
1397
|
+
(s = this.body) == null || s.visitExpression(e, n);
|
|
1398
|
+
for (let r of this.args) r.visitExpression(e, n);
|
|
1399
|
+
}
|
|
1400
|
+
isEquivalent(e) {
|
|
1401
|
+
return !(e instanceof t22) || e.args.length !== this.args.length ? false : e.body !== null && this.body !== null && e.body.isEquivalent(this.body) && e.args.every((n, s) => n.isEquivalent(this.args[s]));
|
|
1402
|
+
}
|
|
1403
|
+
isConstant() {
|
|
1404
|
+
return false;
|
|
1405
|
+
}
|
|
1406
|
+
transformInternalExpressions(e, n) {
|
|
1407
|
+
this.body !== null ? this.body = (this.body, n | bt.InChildOperation, void 0) : this.fn !== null && (this.fn = (this.fn, void 0));
|
|
1408
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1409
|
+
}
|
|
1410
|
+
clone() {
|
|
1411
|
+
var n, s;
|
|
1412
|
+
let e = new t22(_nullishCoalesce(((n = this.body) == null ? void 0 : n.clone()), () => ( null)), this.args.map((r) => r.clone()));
|
|
1413
|
+
return e.fn = _nullishCoalesce(((s = this.fn) == null ? void 0 : s.clone()), () => ( null)), e.varOffset = this.varOffset, e;
|
|
1414
|
+
}
|
|
1415
|
+
}, _class6);
|
|
1416
|
+
var kt = (_class7 = class t23 extends K {
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
__init13() {this.kind = J.PipeBinding}
|
|
1422
|
+
__init14() {this[Oe] = true}
|
|
1423
|
+
__init15() {this[Rt] = true}
|
|
1424
|
+
__init16() {this.varOffset = null}
|
|
1425
|
+
constructor(e, n, s, r) {
|
|
1426
|
+
super();_class7.prototype.__init13.call(this);_class7.prototype.__init14.call(this);_class7.prototype.__init15.call(this);_class7.prototype.__init16.call(this);, this.target = e, this.targetSlot = n, this.name = s, this.args = r;
|
|
1427
|
+
}
|
|
1428
|
+
visitExpression(e, n) {
|
|
1429
|
+
for (let s of this.args) s.visitExpression(e, n);
|
|
1430
|
+
}
|
|
1431
|
+
isEquivalent() {
|
|
1432
|
+
return false;
|
|
1433
|
+
}
|
|
1434
|
+
isConstant() {
|
|
1435
|
+
return false;
|
|
1436
|
+
}
|
|
1437
|
+
transformInternalExpressions(e, n) {
|
|
1438
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1439
|
+
}
|
|
1440
|
+
clone() {
|
|
1441
|
+
let e = new t23(this.target, this.targetSlot, this.name, this.args.map((n) => n.clone()));
|
|
1442
|
+
return e.varOffset = this.varOffset, e;
|
|
1443
|
+
}
|
|
1444
|
+
}, _class7);
|
|
1445
|
+
var Pn = (_class8 = class t24 extends K {
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
|
|
1451
|
+
__init17() {this.kind = J.PipeBindingVariadic}
|
|
1452
|
+
__init18() {this[Oe] = true}
|
|
1453
|
+
__init19() {this[Rt] = true}
|
|
1454
|
+
__init20() {this.varOffset = null}
|
|
1455
|
+
constructor(e, n, s, r, o) {
|
|
1456
|
+
super();_class8.prototype.__init17.call(this);_class8.prototype.__init18.call(this);_class8.prototype.__init19.call(this);_class8.prototype.__init20.call(this);, this.target = e, this.targetSlot = n, this.name = s, this.args = r, this.numArgs = o;
|
|
1457
|
+
}
|
|
1458
|
+
visitExpression(e, n) {
|
|
1459
|
+
this.args.visitExpression(e, n);
|
|
1460
|
+
}
|
|
1461
|
+
isEquivalent() {
|
|
1462
|
+
return false;
|
|
1463
|
+
}
|
|
1464
|
+
isConstant() {
|
|
1465
|
+
return false;
|
|
1466
|
+
}
|
|
1467
|
+
transformInternalExpressions(e, n) {
|
|
1468
|
+
this.args = (this.args, void 0);
|
|
1469
|
+
}
|
|
1470
|
+
clone() {
|
|
1471
|
+
let e = new t24(this.target, this.targetSlot, this.name, this.args.clone(), this.numArgs);
|
|
1472
|
+
return e.varOffset = this.varOffset, e;
|
|
1473
|
+
}
|
|
1474
|
+
}, _class8);
|
|
1475
|
+
var It = (_class9 = class t25 extends K {
|
|
1476
|
+
|
|
1477
|
+
|
|
1478
|
+
__init21() {this.kind = J.SafeInvokeFunction}
|
|
1479
|
+
constructor(e, n) {
|
|
1480
|
+
super();_class9.prototype.__init21.call(this);, this.receiver = e, this.args = n;
|
|
1481
|
+
}
|
|
1482
|
+
visitExpression(e, n) {
|
|
1483
|
+
this.receiver.visitExpression(e, n);
|
|
1484
|
+
for (let s of this.args) s.visitExpression(e, n);
|
|
1485
|
+
}
|
|
1486
|
+
isEquivalent() {
|
|
1487
|
+
return false;
|
|
1488
|
+
}
|
|
1489
|
+
isConstant() {
|
|
1490
|
+
return false;
|
|
1491
|
+
}
|
|
1492
|
+
transformInternalExpressions(e, n) {
|
|
1493
|
+
this.receiver = (this.receiver, void 0);
|
|
1494
|
+
for (let s = 0; s < this.args.length; s++) this.args[s] = (this.args[s], void 0);
|
|
1495
|
+
}
|
|
1496
|
+
clone() {
|
|
1497
|
+
return new t25(this.receiver.clone(), this.args.map((e) => e.clone()));
|
|
1498
|
+
}
|
|
1499
|
+
}, _class9);
|
|
1500
|
+
var bt;
|
|
1501
|
+
(function(t26) {
|
|
1502
|
+
t26[t26.None = 0] = "None", t26[t26.InChildOperation = 1] = "InChildOperation";
|
|
1503
|
+
})(bt || (bt = {}));
|
|
1504
|
+
var ai = /* @__PURE__ */ new Set([f.Element, f.ElementStart, f.Container, f.ContainerStart, f.Template, f.RepeaterCreate]);
|
|
1505
|
+
var Ln;
|
|
1506
|
+
(function(t26) {
|
|
1507
|
+
t26[t26.Tmpl = 0] = "Tmpl", t26[t26.Host = 1] = "Host", t26[t26.Both = 2] = "Both";
|
|
1508
|
+
})(Ln || (Ln = {}));
|
|
1509
|
+
var li = Object.freeze([]);
|
|
1510
|
+
var ci = /* @__PURE__ */ new Map([[f.ElementEnd, [f.ElementStart, f.Element]], [f.ContainerEnd, [f.ContainerStart, f.Container]], [f.I18nEnd, [f.I18nStart, f.I18n]]]);
|
|
1511
|
+
var ui = /* @__PURE__ */ new Set([f.Pipe]);
|
|
1512
|
+
var pi = [Xe, Ke, Ye, It, kt].map((t26) => t26.constructor.name);
|
|
1513
|
+
var wr = {};
|
|
1514
|
+
var xr = "\uE500";
|
|
1515
|
+
wr.ngsp = xr;
|
|
1516
|
+
var Mn;
|
|
1517
|
+
(function(t26) {
|
|
1518
|
+
t26.HEX = "hexadecimal", t26.DEC = "decimal";
|
|
1519
|
+
})(Mn || (Mn = {}));
|
|
1520
|
+
var rs = ` \f
|
|
1521
|
+
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`;
|
|
1522
|
+
var hi = new RegExp(`[^${rs}]`);
|
|
1523
|
+
var fi = new RegExp(`[${rs}]{2,}`, "g");
|
|
1524
|
+
var d;
|
|
1525
|
+
(function(t26) {
|
|
1526
|
+
t26[t26.Character = 0] = "Character", t26[t26.Identifier = 1] = "Identifier", t26[t26.PrivateIdentifier = 2] = "PrivateIdentifier", t26[t26.Keyword = 3] = "Keyword", t26[t26.String = 4] = "String", t26[t26.Operator = 5] = "Operator", t26[t26.Number = 6] = "Number", t26[t26.Error = 7] = "Error";
|
|
1527
|
+
})(d || (d = {}));
|
|
1528
|
+
var Sr = ["var", "let", "as", "null", "undefined", "true", "false", "if", "else", "this", "typeof"];
|
|
1529
|
+
var De = class {
|
|
1530
|
+
tokenize(e) {
|
|
1531
|
+
let n = new At(e), s = [], r = n.scanToken();
|
|
1532
|
+
for (; r != null; ) s.push(r), r = n.scanToken();
|
|
1533
|
+
return s;
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
var M = class {
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
|
|
1542
|
+
constructor(e, n, s, r, o) {
|
|
1543
|
+
this.index = e, this.end = n, this.type = s, this.numValue = r, this.strValue = o;
|
|
1544
|
+
}
|
|
1545
|
+
isCharacter(e) {
|
|
1546
|
+
return this.type == d.Character && this.numValue == e;
|
|
1547
|
+
}
|
|
1548
|
+
isNumber() {
|
|
1549
|
+
return this.type == d.Number;
|
|
1550
|
+
}
|
|
1551
|
+
isString() {
|
|
1552
|
+
return this.type == d.String;
|
|
1553
|
+
}
|
|
1554
|
+
isOperator(e) {
|
|
1555
|
+
return this.type == d.Operator && this.strValue == e;
|
|
1556
|
+
}
|
|
1557
|
+
isIdentifier() {
|
|
1558
|
+
return this.type == d.Identifier;
|
|
1559
|
+
}
|
|
1560
|
+
isPrivateIdentifier() {
|
|
1561
|
+
return this.type == d.PrivateIdentifier;
|
|
1562
|
+
}
|
|
1563
|
+
isKeyword() {
|
|
1564
|
+
return this.type == d.Keyword;
|
|
1565
|
+
}
|
|
1566
|
+
isKeywordLet() {
|
|
1567
|
+
return this.type == d.Keyword && this.strValue == "let";
|
|
1568
|
+
}
|
|
1569
|
+
isKeywordAs() {
|
|
1570
|
+
return this.type == d.Keyword && this.strValue == "as";
|
|
1571
|
+
}
|
|
1572
|
+
isKeywordNull() {
|
|
1573
|
+
return this.type == d.Keyword && this.strValue == "null";
|
|
1574
|
+
}
|
|
1575
|
+
isKeywordUndefined() {
|
|
1576
|
+
return this.type == d.Keyword && this.strValue == "undefined";
|
|
1577
|
+
}
|
|
1578
|
+
isKeywordTrue() {
|
|
1579
|
+
return this.type == d.Keyword && this.strValue == "true";
|
|
1580
|
+
}
|
|
1581
|
+
isKeywordFalse() {
|
|
1582
|
+
return this.type == d.Keyword && this.strValue == "false";
|
|
1583
|
+
}
|
|
1584
|
+
isKeywordThis() {
|
|
1585
|
+
return this.type == d.Keyword && this.strValue == "this";
|
|
1586
|
+
}
|
|
1587
|
+
isKeywordTypeof() {
|
|
1588
|
+
return this.type === d.Keyword && this.strValue === "typeof";
|
|
1589
|
+
}
|
|
1590
|
+
isError() {
|
|
1591
|
+
return this.type == d.Error;
|
|
1592
|
+
}
|
|
1593
|
+
toNumber() {
|
|
1594
|
+
return this.type == d.Number ? this.numValue : -1;
|
|
1595
|
+
}
|
|
1596
|
+
toString() {
|
|
1597
|
+
switch (this.type) {
|
|
1598
|
+
case d.Character:
|
|
1599
|
+
case d.Identifier:
|
|
1600
|
+
case d.Keyword:
|
|
1601
|
+
case d.Operator:
|
|
1602
|
+
case d.PrivateIdentifier:
|
|
1603
|
+
case d.String:
|
|
1604
|
+
case d.Error:
|
|
1605
|
+
return this.strValue;
|
|
1606
|
+
case d.Number:
|
|
1607
|
+
return this.numValue.toString();
|
|
1608
|
+
default:
|
|
1609
|
+
return null;
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
function $n(t26, e, n) {
|
|
1614
|
+
return new M(t26, e, d.Character, n, String.fromCharCode(n));
|
|
1615
|
+
}
|
|
1616
|
+
function Er(t26, e, n) {
|
|
1617
|
+
return new M(t26, e, d.Identifier, 0, n);
|
|
1618
|
+
}
|
|
1619
|
+
function yr(t26, e, n) {
|
|
1620
|
+
return new M(t26, e, d.PrivateIdentifier, 0, n);
|
|
1621
|
+
}
|
|
1622
|
+
function _r(t26, e, n) {
|
|
1623
|
+
return new M(t26, e, d.Keyword, 0, n);
|
|
1624
|
+
}
|
|
1625
|
+
function at(t26, e, n) {
|
|
1626
|
+
return new M(t26, e, d.Operator, 0, n);
|
|
1627
|
+
}
|
|
1628
|
+
function Cr(t26, e, n) {
|
|
1629
|
+
return new M(t26, e, d.String, 0, n);
|
|
1630
|
+
}
|
|
1631
|
+
function Tr(t26, e, n) {
|
|
1632
|
+
return new M(t26, e, d.Number, n, "");
|
|
1633
|
+
}
|
|
1634
|
+
function kr(t26, e, n) {
|
|
1635
|
+
return new M(t26, e, d.Error, 0, n);
|
|
1636
|
+
}
|
|
1637
|
+
var lt = new M(-1, -1, d.Character, 0, "");
|
|
1638
|
+
var At = (_class10 = class {
|
|
1639
|
+
|
|
1640
|
+
|
|
1641
|
+
__init22() {this.peek = 0}
|
|
1642
|
+
__init23() {this.index = -1}
|
|
1643
|
+
constructor(e) {;_class10.prototype.__init22.call(this);_class10.prototype.__init23.call(this);
|
|
1644
|
+
this.input = e, this.length = e.length, this.advance();
|
|
1645
|
+
}
|
|
1646
|
+
advance() {
|
|
1647
|
+
this.peek = ++this.index >= this.length ? ot : this.input.charCodeAt(this.index);
|
|
1648
|
+
}
|
|
1649
|
+
scanToken() {
|
|
1650
|
+
let e = this.input, n = this.length, s = this.peek, r = this.index;
|
|
1651
|
+
for (; s <= Wn; ) if (++r >= n) {
|
|
1652
|
+
s = ot;
|
|
1653
|
+
break;
|
|
1654
|
+
} else s = e.charCodeAt(r);
|
|
1655
|
+
if (this.peek = s, this.index = r, r >= n) return null;
|
|
1656
|
+
if (Rn(s)) return this.scanIdentifier();
|
|
1657
|
+
if (j(s)) return this.scanNumber(r);
|
|
1658
|
+
let o = r;
|
|
1659
|
+
switch (s) {
|
|
1660
|
+
case ee:
|
|
1661
|
+
return this.advance(), j(this.peek) ? this.scanNumber(o) : $n(o, this.index, ee);
|
|
1662
|
+
case je:
|
|
1663
|
+
case me:
|
|
1664
|
+
case Tt:
|
|
1665
|
+
case xe:
|
|
1666
|
+
case ze:
|
|
1667
|
+
case we:
|
|
1668
|
+
case ge:
|
|
1669
|
+
case te:
|
|
1670
|
+
case ve:
|
|
1671
|
+
return this.scanCharacter(o, s);
|
|
1672
|
+
case zn:
|
|
1673
|
+
case qn:
|
|
1674
|
+
return this.scanString();
|
|
1675
|
+
case zs:
|
|
1676
|
+
return this.scanPrivateIdentifier();
|
|
1677
|
+
case Gn:
|
|
1678
|
+
case Xn:
|
|
1679
|
+
case Xs:
|
|
1680
|
+
case Ct:
|
|
1681
|
+
case Gs:
|
|
1682
|
+
case tr:
|
|
1683
|
+
return this.scanOperator(o, String.fromCharCode(s));
|
|
1684
|
+
case hn:
|
|
1685
|
+
return this.scanQuestion(o);
|
|
1686
|
+
case Js:
|
|
1687
|
+
case Ks:
|
|
1688
|
+
return this.scanComplexOperator(o, String.fromCharCode(s), qe, "=");
|
|
1689
|
+
case js:
|
|
1690
|
+
case qe:
|
|
1691
|
+
return this.scanComplexOperator(o, String.fromCharCode(s), qe, "=", qe, "=");
|
|
1692
|
+
case pn:
|
|
1693
|
+
return this.scanComplexOperator(o, "&", pn, "&");
|
|
1694
|
+
case fn:
|
|
1695
|
+
return this.scanComplexOperator(o, "|", fn, "|");
|
|
1696
|
+
case Zn:
|
|
1697
|
+
for (; ur(this.peek); ) this.advance();
|
|
1698
|
+
return this.scanToken();
|
|
1699
|
+
}
|
|
1700
|
+
return this.advance(), this.error(`Unexpected character [${String.fromCharCode(s)}]`, 0);
|
|
1701
|
+
}
|
|
1702
|
+
scanCharacter(e, n) {
|
|
1703
|
+
return this.advance(), $n(e, this.index, n);
|
|
1704
|
+
}
|
|
1705
|
+
scanOperator(e, n) {
|
|
1706
|
+
return this.advance(), at(e, this.index, n);
|
|
1707
|
+
}
|
|
1708
|
+
scanComplexOperator(e, n, s, r, o, a) {
|
|
1709
|
+
this.advance();
|
|
1710
|
+
let l = n;
|
|
1711
|
+
return this.peek == s && (this.advance(), l += r), o != null && this.peek == o && (this.advance(), l += a), at(e, this.index, l);
|
|
1712
|
+
}
|
|
1713
|
+
scanIdentifier() {
|
|
1714
|
+
let e = this.index;
|
|
1715
|
+
for (this.advance(); Bn(this.peek); ) this.advance();
|
|
1716
|
+
let n = this.input.substring(e, this.index);
|
|
1717
|
+
return Sr.indexOf(n) > -1 ? _r(e, this.index, n) : Er(e, this.index, n);
|
|
1718
|
+
}
|
|
1719
|
+
scanPrivateIdentifier() {
|
|
1720
|
+
let e = this.index;
|
|
1721
|
+
if (this.advance(), !Rn(this.peek)) return this.error("Invalid character [#]", -1);
|
|
1722
|
+
for (; Bn(this.peek); ) this.advance();
|
|
1723
|
+
let n = this.input.substring(e, this.index);
|
|
1724
|
+
return yr(e, this.index, n);
|
|
1725
|
+
}
|
|
1726
|
+
scanNumber(e) {
|
|
1727
|
+
let n = this.index === e, s = false;
|
|
1728
|
+
for (this.advance(); ; ) {
|
|
1729
|
+
if (!j(this.peek)) if (this.peek === Mt) {
|
|
1730
|
+
if (!j(this.input.charCodeAt(this.index - 1)) || !j(this.input.charCodeAt(this.index + 1))) return this.error("Invalid numeric separator", 0);
|
|
1731
|
+
s = true;
|
|
1732
|
+
} else if (this.peek === ee) n = false;
|
|
1733
|
+
else if (Ir(this.peek)) {
|
|
1734
|
+
if (this.advance(), br(this.peek) && this.advance(), !j(this.peek)) return this.error("Invalid exponent", -1);
|
|
1735
|
+
n = false;
|
|
1736
|
+
} else break;
|
|
1737
|
+
this.advance();
|
|
1738
|
+
}
|
|
1739
|
+
let r = this.input.substring(e, this.index);
|
|
1740
|
+
s && (r = r.replace(/_/g, ""));
|
|
1741
|
+
let o = n ? Nr(r) : parseFloat(r);
|
|
1742
|
+
return Tr(e, this.index, o);
|
|
1743
|
+
}
|
|
1744
|
+
scanString() {
|
|
1745
|
+
let e = this.index, n = this.peek;
|
|
1746
|
+
this.advance();
|
|
1747
|
+
let s = "", r = this.index, o = this.input;
|
|
1748
|
+
for (; this.peek != n; ) if (this.peek == er) {
|
|
1749
|
+
s += o.substring(r, this.index);
|
|
1750
|
+
let l;
|
|
1751
|
+
if (this.advance(), this.peek == ar) {
|
|
1752
|
+
let u = o.substring(this.index + 1, this.index + 5);
|
|
1753
|
+
if (/^[0-9a-f]+$/i.test(u)) l = parseInt(u, 16);
|
|
1754
|
+
else return this.error(`Invalid unicode escape [\\u${u}]`, 0);
|
|
1755
|
+
for (let h = 0; h < 5; h++) this.advance();
|
|
1756
|
+
} else l = Ar(this.peek), this.advance();
|
|
1757
|
+
s += String.fromCharCode(l), r = this.index;
|
|
1758
|
+
} else {
|
|
1759
|
+
if (this.peek == ot) return this.error("Unterminated quote", 0);
|
|
1760
|
+
this.advance();
|
|
1761
|
+
}
|
|
1762
|
+
let a = o.substring(r, this.index);
|
|
1763
|
+
return this.advance(), Cr(e, this.index, s + a);
|
|
1764
|
+
}
|
|
1765
|
+
scanQuestion(e) {
|
|
1766
|
+
this.advance();
|
|
1767
|
+
let n = "?";
|
|
1768
|
+
return (this.peek === hn || this.peek === ee) && (n += this.peek === ee ? "." : "?", this.advance()), at(e, this.index, n);
|
|
1769
|
+
}
|
|
1770
|
+
error(e, n) {
|
|
1771
|
+
let s = this.index + n;
|
|
1772
|
+
return kr(s, this.index, `Lexer Error: ${e} at column ${s} in expression [${this.input}]`);
|
|
1773
|
+
}
|
|
1774
|
+
}, _class10);
|
|
1775
|
+
function Rn(t26) {
|
|
1776
|
+
return Yn <= t26 && t26 <= Qn || Jn <= t26 && t26 <= Kn || t26 == Mt || t26 == jn;
|
|
1777
|
+
}
|
|
1778
|
+
function Bn(t26) {
|
|
1779
|
+
return pr(t26) || j(t26) || t26 == Mt || t26 == jn;
|
|
1780
|
+
}
|
|
1781
|
+
function Ir(t26) {
|
|
1782
|
+
return t26 == nr || t26 == Zs;
|
|
1783
|
+
}
|
|
1784
|
+
function br(t26) {
|
|
1785
|
+
return t26 == Xn || t26 == Gn;
|
|
1786
|
+
}
|
|
1787
|
+
function Ar(t26) {
|
|
1788
|
+
switch (t26) {
|
|
1789
|
+
case rr:
|
|
1790
|
+
return Hs;
|
|
1791
|
+
case sr:
|
|
1792
|
+
return Ws;
|
|
1793
|
+
case ir:
|
|
1794
|
+
return qs;
|
|
1795
|
+
case or:
|
|
1796
|
+
return Un;
|
|
1797
|
+
case lr:
|
|
1798
|
+
return Us;
|
|
1799
|
+
default:
|
|
1800
|
+
return t26;
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
function Nr(t26) {
|
|
1804
|
+
let e = parseInt(t26);
|
|
1805
|
+
if (isNaN(e)) throw new Error("Invalid integer literal when parsing " + t26);
|
|
1806
|
+
return e;
|
|
1807
|
+
}
|
|
1808
|
+
var Nt = class {
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
constructor(e, n, s) {
|
|
1813
|
+
this.strings = e, this.expressions = n, this.offsets = s;
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
var Pt = class {
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
constructor(e, n, s) {
|
|
1821
|
+
this.templateBindings = e, this.warnings = n, this.errors = s;
|
|
1822
|
+
}
|
|
1823
|
+
};
|
|
1824
|
+
var ue = (_class11 = class {
|
|
1825
|
+
|
|
1826
|
+
__init24() {this.errors = []}
|
|
1827
|
+
constructor(e) {;_class11.prototype.__init24.call(this);
|
|
1828
|
+
this._lexer = e;
|
|
1829
|
+
}
|
|
1830
|
+
parseAction(e, n, s, r = Z) {
|
|
1831
|
+
this._checkNoInterpolation(e, n, r);
|
|
1832
|
+
let o = this._stripComments(e), a = this._lexer.tokenize(o), l = new z(e, n, s, a, 1, this.errors, 0).parseChain();
|
|
1833
|
+
return new W(l, e, n, s, this.errors);
|
|
1834
|
+
}
|
|
1835
|
+
parseBinding(e, n, s, r = Z) {
|
|
1836
|
+
let o = this._parseBindingAst(e, n, s, r);
|
|
1837
|
+
return new W(o, e, n, s, this.errors);
|
|
1838
|
+
}
|
|
1839
|
+
checkSimpleExpression(e) {
|
|
1840
|
+
let n = new Lt();
|
|
1841
|
+
return e.visit(n), n.errors;
|
|
1842
|
+
}
|
|
1843
|
+
parseSimpleBinding(e, n, s, r = Z) {
|
|
1844
|
+
let o = this._parseBindingAst(e, n, s, r), a = this.checkSimpleExpression(o);
|
|
1845
|
+
return a.length > 0 && this._reportError(`Host binding expression cannot contain ${a.join(" ")}`, e, n), new W(o, e, n, s, this.errors);
|
|
1846
|
+
}
|
|
1847
|
+
_reportError(e, n, s, r) {
|
|
1848
|
+
this.errors.push(new ye(e, n, s, r));
|
|
1849
|
+
}
|
|
1850
|
+
_parseBindingAst(e, n, s, r) {
|
|
1851
|
+
this._checkNoInterpolation(e, n, r);
|
|
1852
|
+
let o = this._stripComments(e), a = this._lexer.tokenize(o);
|
|
1853
|
+
return new z(e, n, s, a, 0, this.errors, 0).parseChain();
|
|
1854
|
+
}
|
|
1855
|
+
parseTemplateBindings(e, n, s, r, o) {
|
|
1856
|
+
let a = this._lexer.tokenize(n);
|
|
1857
|
+
return new z(n, s, o, a, 0, this.errors, 0).parseTemplateBindings({ source: e, span: new O(r, r + e.length) });
|
|
1858
|
+
}
|
|
1859
|
+
parseInterpolation(e, n, s, r, o = Z) {
|
|
1860
|
+
let { strings: a, expressions: l, offsets: u } = this.splitInterpolation(e, n, r, o);
|
|
1861
|
+
if (l.length === 0) return null;
|
|
1862
|
+
let h = [];
|
|
1863
|
+
for (let g = 0; g < l.length; ++g) {
|
|
1864
|
+
let S = l[g].text, w = this._stripComments(S), y = this._lexer.tokenize(w), T = new z(e, n, s, y, 0, this.errors, u[g]).parseChain();
|
|
1865
|
+
h.push(T);
|
|
1866
|
+
}
|
|
1867
|
+
return this.createInterpolationAst(a.map((g) => g.text), h, e, n, s);
|
|
1868
|
+
}
|
|
1869
|
+
parseInterpolationExpression(e, n, s) {
|
|
1870
|
+
let r = this._stripComments(e), o = this._lexer.tokenize(r), a = new z(e, n, s, o, 0, this.errors, 0).parseChain(), l = ["", ""];
|
|
1871
|
+
return this.createInterpolationAst(l, [a], e, n, s);
|
|
1872
|
+
}
|
|
1873
|
+
createInterpolationAst(e, n, s, r, o) {
|
|
1874
|
+
let a = new G(0, s.length), l = new Pe(a, a.toAbsolute(o), e, n);
|
|
1875
|
+
return new W(l, s, r, o, this.errors);
|
|
1876
|
+
}
|
|
1877
|
+
splitInterpolation(e, n, s, r = Z) {
|
|
1878
|
+
let o = [], a = [], l = [], u = s ? Pr(s) : null, h = 0, g = false, S = false, { start: w, end: y } = r;
|
|
1879
|
+
for (; h < e.length; ) if (g) {
|
|
1880
|
+
let T = h, F = T + w.length, fe = this._getInterpolationEndIndex(e, y, F);
|
|
1881
|
+
if (fe === -1) {
|
|
1882
|
+
g = false, S = true;
|
|
1883
|
+
break;
|
|
1884
|
+
}
|
|
1885
|
+
let de = fe + y.length, q = e.substring(F, fe);
|
|
1886
|
+
q.trim().length === 0 && this._reportError("Blank expressions are not allowed in interpolated strings", e, `at column ${h} in`, n), a.push({ text: q, start: T, end: de });
|
|
1887
|
+
let Ms = (_nullishCoalesce((u == null ? void 0 : u.get(T)), () => ( T))) + w.length;
|
|
1888
|
+
l.push(Ms), h = de, g = false;
|
|
1889
|
+
} else {
|
|
1890
|
+
let T = h;
|
|
1891
|
+
h = e.indexOf(w, h), h === -1 && (h = e.length);
|
|
1892
|
+
let F = e.substring(T, h);
|
|
1893
|
+
o.push({ text: F, start: T, end: h }), g = true;
|
|
1894
|
+
}
|
|
1895
|
+
if (!g) if (S) {
|
|
1896
|
+
let T = o[o.length - 1];
|
|
1897
|
+
T.text += e.substring(h), T.end = e.length;
|
|
1898
|
+
} else o.push({ text: e.substring(h), start: h, end: e.length });
|
|
1899
|
+
return new Nt(o, a, l);
|
|
1900
|
+
}
|
|
1901
|
+
wrapLiteralPrimitive(e, n, s) {
|
|
1902
|
+
let r = new G(0, e == null ? 0 : e.length);
|
|
1903
|
+
return new W(new A(r, r.toAbsolute(s), e), e, n, s, this.errors);
|
|
1904
|
+
}
|
|
1905
|
+
_stripComments(e) {
|
|
1906
|
+
let n = this._commentStart(e);
|
|
1907
|
+
return n != null ? e.substring(0, n) : e;
|
|
1908
|
+
}
|
|
1909
|
+
_commentStart(e) {
|
|
1910
|
+
let n = null;
|
|
1911
|
+
for (let s = 0; s < e.length - 1; s++) {
|
|
1912
|
+
let r = e.charCodeAt(s), o = e.charCodeAt(s + 1);
|
|
1913
|
+
if (r === Ct && o == Ct && n == null) return s;
|
|
1914
|
+
n === r ? n = null : n == null && dn(r) && (n = r);
|
|
1915
|
+
}
|
|
1916
|
+
return null;
|
|
1917
|
+
}
|
|
1918
|
+
_checkNoInterpolation(e, n, { start: s, end: r }) {
|
|
1919
|
+
let o = -1, a = -1;
|
|
1920
|
+
for (let l of this._forEachUnquotedChar(e, 0)) if (o === -1) e.startsWith(s) && (o = l);
|
|
1921
|
+
else if (a = this._getInterpolationEndIndex(e, r, l), a > -1) break;
|
|
1922
|
+
o > -1 && a > -1 && this._reportError(`Got interpolation (${s}${r}) where expression was expected`, e, `at column ${o} in`, n);
|
|
1923
|
+
}
|
|
1924
|
+
_getInterpolationEndIndex(e, n, s) {
|
|
1925
|
+
for (let r of this._forEachUnquotedChar(e, s)) {
|
|
1926
|
+
if (e.startsWith(n, r)) return r;
|
|
1927
|
+
if (e.startsWith("//", r)) return e.indexOf(n, r);
|
|
1928
|
+
}
|
|
1929
|
+
return -1;
|
|
1930
|
+
}
|
|
1931
|
+
*_forEachUnquotedChar(e, n) {
|
|
1932
|
+
let s = null, r = 0;
|
|
1933
|
+
for (let o = n; o < e.length; o++) {
|
|
1934
|
+
let a = e[o];
|
|
1935
|
+
dn(e.charCodeAt(o)) && (s === null || s === a) && r % 2 === 0 ? s = s === null ? a : null : s === null && (yield o), r = a === "\\" ? r + 1 : 0;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}, _class11);
|
|
1939
|
+
var ne;
|
|
1940
|
+
(function(t26) {
|
|
1941
|
+
t26[t26.None = 0] = "None", t26[t26.Writable = 1] = "Writable";
|
|
1942
|
+
})(ne || (ne = {}));
|
|
1943
|
+
var z = (_class12 = class {
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
|
|
1951
|
+
__init25() {this.rparensExpected = 0}
|
|
1952
|
+
__init26() {this.rbracketsExpected = 0}
|
|
1953
|
+
__init27() {this.rbracesExpected = 0}
|
|
1954
|
+
__init28() {this.context = ne.None}
|
|
1955
|
+
__init29() {this.sourceSpanCache = /* @__PURE__ */ new Map()}
|
|
1956
|
+
__init30() {this.index = 0}
|
|
1957
|
+
constructor(e, n, s, r, o, a, l) {;_class12.prototype.__init25.call(this);_class12.prototype.__init26.call(this);_class12.prototype.__init27.call(this);_class12.prototype.__init28.call(this);_class12.prototype.__init29.call(this);_class12.prototype.__init30.call(this);
|
|
1958
|
+
this.input = e, this.location = n, this.absoluteOffset = s, this.tokens = r, this.parseFlags = o, this.errors = a, this.offset = l;
|
|
1959
|
+
}
|
|
1960
|
+
peek(e) {
|
|
1961
|
+
let n = this.index + e;
|
|
1962
|
+
return n < this.tokens.length ? this.tokens[n] : lt;
|
|
1963
|
+
}
|
|
1964
|
+
get next() {
|
|
1965
|
+
return this.peek(0);
|
|
1966
|
+
}
|
|
1967
|
+
get atEOF() {
|
|
1968
|
+
return this.index >= this.tokens.length;
|
|
1969
|
+
}
|
|
1970
|
+
get inputIndex() {
|
|
1971
|
+
return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
|
|
1972
|
+
}
|
|
1973
|
+
get currentEndIndex() {
|
|
1974
|
+
return this.index > 0 ? this.peek(-1).end + this.offset : this.tokens.length === 0 ? this.input.length + this.offset : this.next.index + this.offset;
|
|
1975
|
+
}
|
|
1976
|
+
get currentAbsoluteOffset() {
|
|
1977
|
+
return this.absoluteOffset + this.inputIndex;
|
|
1978
|
+
}
|
|
1979
|
+
span(e, n) {
|
|
1980
|
+
let s = this.currentEndIndex;
|
|
1981
|
+
if (n !== void 0 && n > this.currentEndIndex && (s = n), e > s) {
|
|
1982
|
+
let r = s;
|
|
1983
|
+
s = e, e = r;
|
|
1984
|
+
}
|
|
1985
|
+
return new G(e, s);
|
|
1986
|
+
}
|
|
1987
|
+
sourceSpan(e, n) {
|
|
1988
|
+
let s = `${e}@${this.inputIndex}:${n}`;
|
|
1989
|
+
return this.sourceSpanCache.has(s) || this.sourceSpanCache.set(s, this.span(e, n).toAbsolute(this.absoluteOffset)), this.sourceSpanCache.get(s);
|
|
1990
|
+
}
|
|
1991
|
+
advance() {
|
|
1992
|
+
this.index++;
|
|
1993
|
+
}
|
|
1994
|
+
withContext(e, n) {
|
|
1995
|
+
this.context |= e;
|
|
1996
|
+
let s = n();
|
|
1997
|
+
return this.context ^= e, s;
|
|
1998
|
+
}
|
|
1999
|
+
consumeOptionalCharacter(e) {
|
|
2000
|
+
return this.next.isCharacter(e) ? (this.advance(), true) : false;
|
|
2001
|
+
}
|
|
2002
|
+
peekKeywordLet() {
|
|
2003
|
+
return this.next.isKeywordLet();
|
|
2004
|
+
}
|
|
2005
|
+
peekKeywordAs() {
|
|
2006
|
+
return this.next.isKeywordAs();
|
|
2007
|
+
}
|
|
2008
|
+
expectCharacter(e) {
|
|
2009
|
+
this.consumeOptionalCharacter(e) || this.error(`Missing expected ${String.fromCharCode(e)}`);
|
|
2010
|
+
}
|
|
2011
|
+
consumeOptionalOperator(e) {
|
|
2012
|
+
return this.next.isOperator(e) ? (this.advance(), true) : false;
|
|
2013
|
+
}
|
|
2014
|
+
expectOperator(e) {
|
|
2015
|
+
this.consumeOptionalOperator(e) || this.error(`Missing expected operator ${e}`);
|
|
2016
|
+
}
|
|
2017
|
+
prettyPrintToken(e) {
|
|
2018
|
+
return e === lt ? "end of input" : `token ${e}`;
|
|
2019
|
+
}
|
|
2020
|
+
expectIdentifierOrKeyword() {
|
|
2021
|
+
let e = this.next;
|
|
2022
|
+
return !e.isIdentifier() && !e.isKeyword() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier or keyword") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`), null) : (this.advance(), e.toString());
|
|
2023
|
+
}
|
|
2024
|
+
expectIdentifierOrKeywordOrString() {
|
|
2025
|
+
let e = this.next;
|
|
2026
|
+
return !e.isIdentifier() && !e.isKeyword() && !e.isString() ? (e.isPrivateIdentifier() ? this._reportErrorForPrivateIdentifier(e, "expected identifier, keyword or string") : this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`), "") : (this.advance(), e.toString());
|
|
2027
|
+
}
|
|
2028
|
+
parseChain() {
|
|
2029
|
+
let e = [], n = this.inputIndex;
|
|
2030
|
+
for (; this.index < this.tokens.length; ) {
|
|
2031
|
+
let s = this.parsePipe();
|
|
2032
|
+
if (e.push(s), this.consumeOptionalCharacter(ve)) for (this.parseFlags & 1 || this.error("Binding expression cannot contain chained expression"); this.consumeOptionalCharacter(ve); ) ;
|
|
2033
|
+
else if (this.index < this.tokens.length) {
|
|
2034
|
+
let r = this.index;
|
|
2035
|
+
if (this.error(`Unexpected token '${this.next}'`), this.index === r) break;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
if (e.length === 0) {
|
|
2039
|
+
let s = this.offset, r = this.offset + this.input.length;
|
|
2040
|
+
return new b(this.span(s, r), this.sourceSpan(s, r));
|
|
2041
|
+
}
|
|
2042
|
+
return e.length == 1 ? e[0] : new _e(this.span(n), this.sourceSpan(n), e);
|
|
2043
|
+
}
|
|
2044
|
+
parsePipe() {
|
|
2045
|
+
let e = this.inputIndex, n = this.parseExpression();
|
|
2046
|
+
if (this.consumeOptionalOperator("|")) {
|
|
2047
|
+
this.parseFlags & 1 && this.error("Cannot have a pipe in an action expression");
|
|
2048
|
+
do {
|
|
2049
|
+
let s = this.inputIndex, r = this.expectIdentifierOrKeyword(), o, a;
|
|
2050
|
+
r !== null ? o = this.sourceSpan(s) : (r = "", a = this.next.index !== -1 ? this.next.index : this.input.length + this.offset, o = new G(a, a).toAbsolute(this.absoluteOffset));
|
|
2051
|
+
let l = [];
|
|
2052
|
+
for (; this.consumeOptionalCharacter(te); ) l.push(this.parseExpression());
|
|
2053
|
+
n = new be(this.span(e), this.sourceSpan(e, a), n, r, l, o);
|
|
2054
|
+
} while (this.consumeOptionalOperator("|"));
|
|
2055
|
+
}
|
|
2056
|
+
return n;
|
|
2057
|
+
}
|
|
2058
|
+
parseExpression() {
|
|
2059
|
+
return this.parseConditional();
|
|
2060
|
+
}
|
|
2061
|
+
parseConditional() {
|
|
2062
|
+
let e = this.inputIndex, n = this.parseLogicalOr();
|
|
2063
|
+
if (this.consumeOptionalOperator("?")) {
|
|
2064
|
+
let s = this.parsePipe(), r;
|
|
2065
|
+
if (this.consumeOptionalCharacter(te)) r = this.parsePipe();
|
|
2066
|
+
else {
|
|
2067
|
+
let o = this.inputIndex, a = this.input.substring(e, o);
|
|
2068
|
+
this.error(`Conditional expression ${a} requires all 3 expressions`), r = new b(this.span(e), this.sourceSpan(e));
|
|
2069
|
+
}
|
|
2070
|
+
return new Ce(this.span(e), this.sourceSpan(e), n, s, r);
|
|
2071
|
+
} else return n;
|
|
2072
|
+
}
|
|
2073
|
+
parseLogicalOr() {
|
|
2074
|
+
let e = this.inputIndex, n = this.parseLogicalAnd();
|
|
2075
|
+
for (; this.consumeOptionalOperator("||"); ) {
|
|
2076
|
+
let s = this.parseLogicalAnd();
|
|
2077
|
+
n = new N(this.span(e), this.sourceSpan(e), "||", n, s);
|
|
2078
|
+
}
|
|
2079
|
+
return n;
|
|
2080
|
+
}
|
|
2081
|
+
parseLogicalAnd() {
|
|
2082
|
+
let e = this.inputIndex, n = this.parseNullishCoalescing();
|
|
2083
|
+
for (; this.consumeOptionalOperator("&&"); ) {
|
|
2084
|
+
let s = this.parseNullishCoalescing();
|
|
2085
|
+
n = new N(this.span(e), this.sourceSpan(e), "&&", n, s);
|
|
2086
|
+
}
|
|
2087
|
+
return n;
|
|
2088
|
+
}
|
|
2089
|
+
parseNullishCoalescing() {
|
|
2090
|
+
let e = this.inputIndex, n = this.parseEquality();
|
|
2091
|
+
for (; this.consumeOptionalOperator("??"); ) {
|
|
2092
|
+
let s = this.parseEquality();
|
|
2093
|
+
n = new N(this.span(e), this.sourceSpan(e), "??", n, s);
|
|
2094
|
+
}
|
|
2095
|
+
return n;
|
|
2096
|
+
}
|
|
2097
|
+
parseEquality() {
|
|
2098
|
+
let e = this.inputIndex, n = this.parseRelational();
|
|
2099
|
+
for (; this.next.type == d.Operator; ) {
|
|
2100
|
+
let s = this.next.strValue;
|
|
2101
|
+
switch (s) {
|
|
2102
|
+
case "==":
|
|
2103
|
+
case "===":
|
|
2104
|
+
case "!=":
|
|
2105
|
+
case "!==":
|
|
2106
|
+
this.advance();
|
|
2107
|
+
let r = this.parseRelational();
|
|
2108
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2109
|
+
continue;
|
|
2110
|
+
}
|
|
2111
|
+
break;
|
|
2112
|
+
}
|
|
2113
|
+
return n;
|
|
2114
|
+
}
|
|
2115
|
+
parseRelational() {
|
|
2116
|
+
let e = this.inputIndex, n = this.parseAdditive();
|
|
2117
|
+
for (; this.next.type == d.Operator; ) {
|
|
2118
|
+
let s = this.next.strValue;
|
|
2119
|
+
switch (s) {
|
|
2120
|
+
case "<":
|
|
2121
|
+
case ">":
|
|
2122
|
+
case "<=":
|
|
2123
|
+
case ">=":
|
|
2124
|
+
this.advance();
|
|
2125
|
+
let r = this.parseAdditive();
|
|
2126
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2127
|
+
continue;
|
|
2128
|
+
}
|
|
2129
|
+
break;
|
|
2130
|
+
}
|
|
2131
|
+
return n;
|
|
2132
|
+
}
|
|
2133
|
+
parseAdditive() {
|
|
2134
|
+
let e = this.inputIndex, n = this.parseMultiplicative();
|
|
2135
|
+
for (; this.next.type == d.Operator; ) {
|
|
2136
|
+
let s = this.next.strValue;
|
|
2137
|
+
switch (s) {
|
|
2138
|
+
case "+":
|
|
2139
|
+
case "-":
|
|
2140
|
+
this.advance();
|
|
2141
|
+
let r = this.parseMultiplicative();
|
|
2142
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2143
|
+
continue;
|
|
2144
|
+
}
|
|
2145
|
+
break;
|
|
2146
|
+
}
|
|
2147
|
+
return n;
|
|
2148
|
+
}
|
|
2149
|
+
parseMultiplicative() {
|
|
2150
|
+
let e = this.inputIndex, n = this.parsePrefix();
|
|
2151
|
+
for (; this.next.type == d.Operator; ) {
|
|
2152
|
+
let s = this.next.strValue;
|
|
2153
|
+
switch (s) {
|
|
2154
|
+
case "*":
|
|
2155
|
+
case "%":
|
|
2156
|
+
case "/":
|
|
2157
|
+
this.advance();
|
|
2158
|
+
let r = this.parsePrefix();
|
|
2159
|
+
n = new N(this.span(e), this.sourceSpan(e), s, n, r);
|
|
2160
|
+
continue;
|
|
2161
|
+
}
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
return n;
|
|
2165
|
+
}
|
|
2166
|
+
parsePrefix() {
|
|
2167
|
+
if (this.next.type == d.Operator) {
|
|
2168
|
+
let e = this.inputIndex, n = this.next.strValue, s;
|
|
2169
|
+
switch (n) {
|
|
2170
|
+
case "+":
|
|
2171
|
+
return this.advance(), s = this.parsePrefix(), ae.createPlus(this.span(e), this.sourceSpan(e), s);
|
|
2172
|
+
case "-":
|
|
2173
|
+
return this.advance(), s = this.parsePrefix(), ae.createMinus(this.span(e), this.sourceSpan(e), s);
|
|
2174
|
+
case "!":
|
|
2175
|
+
return this.advance(), s = this.parsePrefix(), new Le(this.span(e), this.sourceSpan(e), s);
|
|
2176
|
+
}
|
|
2177
|
+
} else if (this.next.isKeywordTypeof()) {
|
|
2178
|
+
this.advance();
|
|
2179
|
+
let e = this.inputIndex, n = this.parsePrefix();
|
|
2180
|
+
return new Me(this.span(e), this.sourceSpan(e), n);
|
|
2181
|
+
}
|
|
2182
|
+
return this.parseCallChain();
|
|
2183
|
+
}
|
|
2184
|
+
parseCallChain() {
|
|
2185
|
+
let e = this.inputIndex, n = this.parsePrimary();
|
|
2186
|
+
for (; ; ) if (this.consumeOptionalCharacter(ee)) n = this.parseAccessMember(n, e, false);
|
|
2187
|
+
else if (this.consumeOptionalOperator("?.")) this.consumeOptionalCharacter(je) ? n = this.parseCall(n, e, true) : n = this.consumeOptionalCharacter(ze) ? this.parseKeyedReadOrWrite(n, e, true) : this.parseAccessMember(n, e, true);
|
|
2188
|
+
else if (this.consumeOptionalCharacter(ze)) n = this.parseKeyedReadOrWrite(n, e, false);
|
|
2189
|
+
else if (this.consumeOptionalCharacter(je)) n = this.parseCall(n, e, false);
|
|
2190
|
+
else if (this.consumeOptionalOperator("!")) n = new $e(this.span(e), this.sourceSpan(e), n);
|
|
2191
|
+
else return n;
|
|
2192
|
+
}
|
|
2193
|
+
parsePrimary() {
|
|
2194
|
+
let e = this.inputIndex;
|
|
2195
|
+
if (this.consumeOptionalCharacter(je)) {
|
|
2196
|
+
this.rparensExpected++;
|
|
2197
|
+
let n = this.parsePipe();
|
|
2198
|
+
return this.rparensExpected--, this.expectCharacter(me), n;
|
|
2199
|
+
} else {
|
|
2200
|
+
if (this.next.isKeywordNull()) return this.advance(), new A(this.span(e), this.sourceSpan(e), null);
|
|
2201
|
+
if (this.next.isKeywordUndefined()) return this.advance(), new A(this.span(e), this.sourceSpan(e), void 0);
|
|
2202
|
+
if (this.next.isKeywordTrue()) return this.advance(), new A(this.span(e), this.sourceSpan(e), true);
|
|
2203
|
+
if (this.next.isKeywordFalse()) return this.advance(), new A(this.span(e), this.sourceSpan(e), false);
|
|
2204
|
+
if (this.next.isKeywordThis()) return this.advance(), new Et(this.span(e), this.sourceSpan(e));
|
|
2205
|
+
if (this.consumeOptionalCharacter(ze)) {
|
|
2206
|
+
this.rbracketsExpected++;
|
|
2207
|
+
let n = this.parseExpressionList(we);
|
|
2208
|
+
return this.rbracketsExpected--, this.expectCharacter(we), new Ae(this.span(e), this.sourceSpan(e), n);
|
|
2209
|
+
} else {
|
|
2210
|
+
if (this.next.isCharacter(Tt)) return this.parseLiteralMap();
|
|
2211
|
+
if (this.next.isIdentifier()) return this.parseAccessMember(new X(this.span(e), this.sourceSpan(e)), e, false);
|
|
2212
|
+
if (this.next.isNumber()) {
|
|
2213
|
+
let n = this.next.toNumber();
|
|
2214
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
2215
|
+
} else if (this.next.isString()) {
|
|
2216
|
+
let n = this.next.toString();
|
|
2217
|
+
return this.advance(), new A(this.span(e), this.sourceSpan(e), n);
|
|
2218
|
+
} else return this.next.isPrivateIdentifier() ? (this._reportErrorForPrivateIdentifier(this.next, null), new b(this.span(e), this.sourceSpan(e))) : this.index >= this.tokens.length ? (this.error(`Unexpected end of expression: ${this.input}`), new b(this.span(e), this.sourceSpan(e))) : (this.error(`Unexpected token ${this.next}`), new b(this.span(e), this.sourceSpan(e)));
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
parseExpressionList(e) {
|
|
2223
|
+
let n = [];
|
|
2224
|
+
do
|
|
2225
|
+
if (!this.next.isCharacter(e)) n.push(this.parsePipe());
|
|
2226
|
+
else break;
|
|
2227
|
+
while (this.consumeOptionalCharacter(ge));
|
|
2228
|
+
return n;
|
|
2229
|
+
}
|
|
2230
|
+
parseLiteralMap() {
|
|
2231
|
+
let e = [], n = [], s = this.inputIndex;
|
|
2232
|
+
if (this.expectCharacter(Tt), !this.consumeOptionalCharacter(xe)) {
|
|
2233
|
+
this.rbracesExpected++;
|
|
2234
|
+
do {
|
|
2235
|
+
let r = this.inputIndex, o = this.next.isString(), a = this.expectIdentifierOrKeywordOrString(), l = { key: a, quoted: o };
|
|
2236
|
+
if (e.push(l), o) this.expectCharacter(te), n.push(this.parsePipe());
|
|
2237
|
+
else if (this.consumeOptionalCharacter(te)) n.push(this.parsePipe());
|
|
2238
|
+
else {
|
|
2239
|
+
l.isShorthandInitialized = true;
|
|
2240
|
+
let u = this.span(r), h = this.sourceSpan(r);
|
|
2241
|
+
n.push(new re(u, h, h, new X(u, h), a));
|
|
2242
|
+
}
|
|
2243
|
+
} while (this.consumeOptionalCharacter(ge) && !this.next.isCharacter(xe));
|
|
2244
|
+
this.rbracesExpected--, this.expectCharacter(xe);
|
|
2245
|
+
}
|
|
2246
|
+
return new Ne(this.span(s), this.sourceSpan(s), e, n);
|
|
2247
|
+
}
|
|
2248
|
+
parseAccessMember(e, n, s) {
|
|
2249
|
+
let r = this.inputIndex, o = this.withContext(ne.Writable, () => {
|
|
2250
|
+
let u = _nullishCoalesce(this.expectIdentifierOrKeyword(), () => ( ""));
|
|
2251
|
+
return u.length === 0 && this.error("Expected identifier for property access", e.span.end), u;
|
|
2252
|
+
}), a = this.sourceSpan(r), l;
|
|
2253
|
+
if (s) this.consumeOptionalOperator("=") ? (this.error("The '?.' operator cannot be used in the assignment"), l = new b(this.span(n), this.sourceSpan(n))) : l = new ie(this.span(n), this.sourceSpan(n), a, e, o);
|
|
2254
|
+
else if (this.consumeOptionalOperator("=")) {
|
|
2255
|
+
if (!(this.parseFlags & 1)) return this.error("Bindings cannot contain assignments"), new b(this.span(n), this.sourceSpan(n));
|
|
2256
|
+
let u = this.parseConditional();
|
|
2257
|
+
l = new Te(this.span(n), this.sourceSpan(n), a, e, o, u);
|
|
2258
|
+
} else l = new re(this.span(n), this.sourceSpan(n), a, e, o);
|
|
2259
|
+
return l;
|
|
2260
|
+
}
|
|
2261
|
+
parseCall(e, n, s) {
|
|
2262
|
+
let r = this.inputIndex;
|
|
2263
|
+
this.rparensExpected++;
|
|
2264
|
+
let o = this.parseCallArguments(), a = this.span(r, this.inputIndex).toAbsolute(this.absoluteOffset);
|
|
2265
|
+
this.expectCharacter(me), this.rparensExpected--;
|
|
2266
|
+
let l = this.span(n), u = this.sourceSpan(n);
|
|
2267
|
+
return s ? new le(l, u, e, o, a) : new Re(l, u, e, o, a);
|
|
2268
|
+
}
|
|
2269
|
+
parseCallArguments() {
|
|
2270
|
+
if (this.next.isCharacter(me)) return [];
|
|
2271
|
+
let e = [];
|
|
2272
|
+
do
|
|
2273
|
+
e.push(this.parsePipe());
|
|
2274
|
+
while (this.consumeOptionalCharacter(ge));
|
|
2275
|
+
return e;
|
|
2276
|
+
}
|
|
2277
|
+
expectTemplateBindingKey() {
|
|
2278
|
+
let e = "", n = false, s = this.currentAbsoluteOffset;
|
|
2279
|
+
do
|
|
2280
|
+
e += this.expectIdentifierOrKeywordOrString(), n = this.consumeOptionalOperator("-"), n && (e += "-");
|
|
2281
|
+
while (n);
|
|
2282
|
+
return { source: e, span: new O(s, s + e.length) };
|
|
2283
|
+
}
|
|
2284
|
+
parseTemplateBindings(e) {
|
|
2285
|
+
let n = [];
|
|
2286
|
+
for (n.push(...this.parseDirectiveKeywordBindings(e)); this.index < this.tokens.length; ) {
|
|
2287
|
+
let s = this.parseLetBinding();
|
|
2288
|
+
if (s) n.push(s);
|
|
2289
|
+
else {
|
|
2290
|
+
let r = this.expectTemplateBindingKey(), o = this.parseAsBinding(r);
|
|
2291
|
+
o ? n.push(o) : (r.source = e.source + r.source.charAt(0).toUpperCase() + r.source.substring(1), n.push(...this.parseDirectiveKeywordBindings(r)));
|
|
2292
|
+
}
|
|
2293
|
+
this.consumeStatementTerminator();
|
|
2294
|
+
}
|
|
2295
|
+
return new Pt(n, [], this.errors);
|
|
2296
|
+
}
|
|
2297
|
+
parseKeyedReadOrWrite(e, n, s) {
|
|
2298
|
+
return this.withContext(ne.Writable, () => {
|
|
2299
|
+
this.rbracketsExpected++;
|
|
2300
|
+
let r = this.parsePipe();
|
|
2301
|
+
if (r instanceof b && this.error("Key access cannot be empty"), this.rbracketsExpected--, this.expectCharacter(we), this.consumeOptionalOperator("=")) if (s) this.error("The '?.' operator cannot be used in the assignment");
|
|
2302
|
+
else {
|
|
2303
|
+
let o = this.parseConditional();
|
|
2304
|
+
return new Ie(this.span(n), this.sourceSpan(n), e, r, o);
|
|
2305
|
+
}
|
|
2306
|
+
else return s ? new oe(this.span(n), this.sourceSpan(n), e, r) : new ke(this.span(n), this.sourceSpan(n), e, r);
|
|
2307
|
+
return new b(this.span(n), this.sourceSpan(n));
|
|
2308
|
+
});
|
|
2309
|
+
}
|
|
2310
|
+
parseDirectiveKeywordBindings(e) {
|
|
2311
|
+
let n = [];
|
|
2312
|
+
this.consumeOptionalCharacter(te);
|
|
2313
|
+
let s = this.getDirectiveBoundTarget(), r = this.currentAbsoluteOffset, o = this.parseAsBinding(e);
|
|
2314
|
+
o || (this.consumeStatementTerminator(), r = this.currentAbsoluteOffset);
|
|
2315
|
+
let a = new O(e.span.start, r);
|
|
2316
|
+
return n.push(new Be(a, e, s)), o && n.push(o), n;
|
|
2317
|
+
}
|
|
2318
|
+
getDirectiveBoundTarget() {
|
|
2319
|
+
if (this.next === lt || this.peekKeywordAs() || this.peekKeywordLet()) return null;
|
|
2320
|
+
let e = this.parsePipe(), { start: n, end: s } = e.span, r = this.input.substring(n, s);
|
|
2321
|
+
return new W(e, r, this.location, this.absoluteOffset + n, this.errors);
|
|
2322
|
+
}
|
|
2323
|
+
parseAsBinding(e) {
|
|
2324
|
+
if (!this.peekKeywordAs()) return null;
|
|
2325
|
+
this.advance();
|
|
2326
|
+
let n = this.expectTemplateBindingKey();
|
|
2327
|
+
this.consumeStatementTerminator();
|
|
2328
|
+
let s = new O(e.span.start, this.currentAbsoluteOffset);
|
|
2329
|
+
return new ce(s, n, e);
|
|
2330
|
+
}
|
|
2331
|
+
parseLetBinding() {
|
|
2332
|
+
if (!this.peekKeywordLet()) return null;
|
|
2333
|
+
let e = this.currentAbsoluteOffset;
|
|
2334
|
+
this.advance();
|
|
2335
|
+
let n = this.expectTemplateBindingKey(), s = null;
|
|
2336
|
+
this.consumeOptionalOperator("=") && (s = this.expectTemplateBindingKey()), this.consumeStatementTerminator();
|
|
2337
|
+
let r = new O(e, this.currentAbsoluteOffset);
|
|
2338
|
+
return new ce(r, n, s);
|
|
2339
|
+
}
|
|
2340
|
+
consumeStatementTerminator() {
|
|
2341
|
+
this.consumeOptionalCharacter(ve) || this.consumeOptionalCharacter(ge);
|
|
2342
|
+
}
|
|
2343
|
+
error(e, n = null) {
|
|
2344
|
+
this.errors.push(new ye(e, this.input, this.locationText(n), this.location)), this.skip();
|
|
2345
|
+
}
|
|
2346
|
+
locationText(e = null) {
|
|
2347
|
+
return e == null && (e = this.index), e < this.tokens.length ? `at column ${this.tokens[e].index + 1} in` : "at the end of the expression";
|
|
2348
|
+
}
|
|
2349
|
+
_reportErrorForPrivateIdentifier(e, n) {
|
|
2350
|
+
let s = `Private identifiers are not supported. Unexpected private identifier: ${e}`;
|
|
2351
|
+
n !== null && (s += `, ${n}`), this.error(s);
|
|
2352
|
+
}
|
|
2353
|
+
skip() {
|
|
2354
|
+
let e = this.next;
|
|
2355
|
+
for (; this.index < this.tokens.length && !e.isCharacter(ve) && !e.isOperator("|") && (this.rparensExpected <= 0 || !e.isCharacter(me)) && (this.rbracesExpected <= 0 || !e.isCharacter(xe)) && (this.rbracketsExpected <= 0 || !e.isCharacter(we)) && (!(this.context & ne.Writable) || !e.isOperator("=")); ) this.next.isError() && this.errors.push(new ye(this.next.toString(), this.input, this.locationText(), this.location)), this.advance(), e = this.next;
|
|
2356
|
+
}
|
|
2357
|
+
}, _class12);
|
|
2358
|
+
var Lt = (_class13 = class extends yt {constructor(...args2) { super(...args2); _class13.prototype.__init31.call(this); }
|
|
2359
|
+
__init31() {this.errors = []}
|
|
2360
|
+
visitPipe() {
|
|
2361
|
+
this.errors.push("pipes");
|
|
2362
|
+
}
|
|
2363
|
+
}, _class13);
|
|
2364
|
+
function Pr(t26) {
|
|
2365
|
+
let e = /* @__PURE__ */ new Map(), n = 0, s = 0, r = 0;
|
|
2366
|
+
for (; r < t26.length; ) {
|
|
2367
|
+
let o = t26[r];
|
|
2368
|
+
if (o.type === 9) {
|
|
2369
|
+
let [a, l] = o.parts;
|
|
2370
|
+
n += l.length, s += a.length;
|
|
2371
|
+
} else {
|
|
2372
|
+
let a = o.parts.reduce((l, u) => l + u.length, 0);
|
|
2373
|
+
s += a, n += a;
|
|
2374
|
+
}
|
|
2375
|
+
e.set(s, n), r++;
|
|
2376
|
+
}
|
|
2377
|
+
return e;
|
|
2378
|
+
}
|
|
2379
|
+
var Lr = new Map(Object.entries({ class: "className", for: "htmlFor", formaction: "formAction", innerHtml: "innerHTML", readonly: "readOnly", tabindex: "tabIndex" }));
|
|
2380
|
+
var di = Array.from(Lr).reduce((t26, [e, n]) => (t26.set(e, n), t26), /* @__PURE__ */ new Map());
|
|
2381
|
+
var mi = new ue(new De());
|
|
2382
|
+
function D(t26) {
|
|
2383
|
+
return (e) => e.kind === t26;
|
|
2384
|
+
}
|
|
2385
|
+
function Se(t26, e) {
|
|
2386
|
+
return (n) => n.kind === t26 && e === n.expression instanceof Ze;
|
|
2387
|
+
}
|
|
2388
|
+
function Mr(t26) {
|
|
2389
|
+
return (t26.kind === f.Property || t26.kind === f.TwoWayProperty) && !(t26.expression instanceof Ze);
|
|
2390
|
+
}
|
|
2391
|
+
var gi = [{ test: D(f.StyleMap), transform: et }, { test: D(f.ClassMap), transform: et }, { test: D(f.StyleProp) }, { test: D(f.ClassProp) }, { test: Se(f.Attribute, true) }, { test: Se(f.Property, true) }, { test: Mr }, { test: Se(f.Attribute, false) }];
|
|
2392
|
+
var vi = [{ test: Se(f.HostProperty, true) }, { test: Se(f.HostProperty, false) }, { test: D(f.Attribute) }, { test: D(f.StyleMap), transform: et }, { test: D(f.ClassMap), transform: et }, { test: D(f.StyleProp) }, { test: D(f.ClassProp) }];
|
|
2393
|
+
var wi = /* @__PURE__ */ new Set([f.Listener, f.TwoWayListener, f.StyleMap, f.ClassMap, f.StyleProp, f.ClassProp, f.Property, f.TwoWayProperty, f.HostProperty, f.Attribute]);
|
|
2394
|
+
function et(t26) {
|
|
2395
|
+
return t26.slice(t26.length - 1);
|
|
2396
|
+
}
|
|
2397
|
+
var xi = /* @__PURE__ */ new Map([["window", P.resolveWindow], ["document", P.resolveDocument], ["body", P.resolveBody]]);
|
|
2398
|
+
var Si = /* @__PURE__ */ new Map([[B.HTML, P.sanitizeHtml], [B.RESOURCE_URL, P.sanitizeResourceUrl], [B.SCRIPT, P.sanitizeScript], [B.STYLE, P.sanitizeStyle], [B.URL, P.sanitizeUrl]]);
|
|
2399
|
+
var Ei = /* @__PURE__ */ new Map([[B.HTML, P.trustConstantHtml], [B.RESOURCE_URL, P.trustConstantResourceUrl]]);
|
|
2400
|
+
var Dn;
|
|
2401
|
+
(function(t26) {
|
|
2402
|
+
t26[t26.None = 0] = "None", t26[t26.ViewContextRead = 1] = "ViewContextRead", t26[t26.ViewContextWrite = 2] = "ViewContextWrite", t26[t26.SideEffectful = 4] = "SideEffectful";
|
|
2403
|
+
})(Dn || (Dn = {}));
|
|
2404
|
+
var yi = /* @__PURE__ */ new Map([[H.Property, U.Property], [H.TwoWay, U.TwoWayProperty], [H.Attribute, U.Attribute], [H.Class, U.ClassName], [H.Style, U.StyleProperty], [H.Animation, U.Animation]]);
|
|
2405
|
+
var _i = Symbol("queryAdvancePlaceholder");
|
|
2406
|
+
var On;
|
|
2407
|
+
(function(t26) {
|
|
2408
|
+
t26[t26.NG_CONTENT = 0] = "NG_CONTENT", t26[t26.STYLE = 1] = "STYLE", t26[t26.STYLESHEET = 2] = "STYLESHEET", t26[t26.SCRIPT = 3] = "SCRIPT", t26[t26.OTHER = 4] = "OTHER";
|
|
2409
|
+
})(On || (On = {}));
|
|
2410
|
+
var Fn;
|
|
2411
|
+
(function(t26) {
|
|
2412
|
+
t26.IDLE = "idle", t26.TIMER = "timer", t26.INTERACTION = "interaction", t26.IMMEDIATE = "immediate", t26.HOVER = "hover", t26.VIEWPORT = "viewport", t26.NEVER = "never";
|
|
2413
|
+
})(Fn || (Fn = {}));
|
|
2414
|
+
var is = "%COMP%";
|
|
2415
|
+
var Ci = `_nghost-${is}`;
|
|
2416
|
+
var Ti = `_ngcontent-${is}`;
|
|
2417
|
+
var ki = new St("19.0.1");
|
|
2418
|
+
var Vn;
|
|
2419
|
+
(function(t26) {
|
|
2420
|
+
t26[t26.Extract = 0] = "Extract", t26[t26.Merge = 1] = "Merge";
|
|
2421
|
+
})(Vn || (Vn = {}));
|
|
2422
|
+
var Hn;
|
|
2423
|
+
(function(t26) {
|
|
2424
|
+
t26[t26.Directive = 0] = "Directive", t26[t26.Component = 1] = "Component", t26[t26.Injectable = 2] = "Injectable", t26[t26.Pipe = 3] = "Pipe", t26[t26.NgModule = 4] = "NgModule";
|
|
2425
|
+
})(Hn || (Hn = {}));
|
|
2426
|
+
function os({ start: t26, end: e }, n) {
|
|
2427
|
+
let s = t26, r = e;
|
|
2428
|
+
for (; r !== s && /\s/.test(n[r - 1]); ) r--;
|
|
2429
|
+
for (; s !== r && /\s/.test(n[s]); ) s++;
|
|
2430
|
+
return { start: s, end: r };
|
|
2431
|
+
}
|
|
2432
|
+
function Rr({ start: t26, end: e }, n) {
|
|
2433
|
+
let s = t26, r = e;
|
|
2434
|
+
for (; r !== n.length && /\s/.test(n[r]); ) r++;
|
|
2435
|
+
for (; s !== 0 && /\s/.test(n[s - 1]); ) s--;
|
|
2436
|
+
return { start: s, end: r };
|
|
2437
|
+
}
|
|
2438
|
+
function Br(t26, e) {
|
|
2439
|
+
return e[t26.start - 1] === "(" && e[t26.end] === ")" ? { start: t26.start - 1, end: t26.end + 1 } : t26;
|
|
2440
|
+
}
|
|
2441
|
+
function as(t26, e, n) {
|
|
2442
|
+
let s = 0, r = { start: t26.start, end: t26.end };
|
|
2443
|
+
for (; ; ) {
|
|
2444
|
+
let o = Rr(r, e), a = Br(o, e);
|
|
2445
|
+
if (o.start === a.start && o.end === a.end) break;
|
|
2446
|
+
r.start = a.start, r.end = a.end, s++;
|
|
2447
|
+
}
|
|
2448
|
+
return { hasParens: (n ? s - 1 : s) !== 0, outerSpan: os(n ? { start: r.start + 1, end: r.end - 1 } : r, e), innerSpan: os(t26, e) };
|
|
2449
|
+
}
|
|
2450
|
+
function ls(t26) {
|
|
2451
|
+
return typeof t26 == "string" ? (e) => e === t26 : (e) => t26.test(e);
|
|
2452
|
+
}
|
|
2453
|
+
function cs(t26, e, n) {
|
|
2454
|
+
let s = ls(e);
|
|
2455
|
+
for (let r = n; r >= 0; r--) {
|
|
2456
|
+
let o = t26[r];
|
|
2457
|
+
if (s(o)) return r;
|
|
2458
|
+
}
|
|
2459
|
+
throw new Error(`Cannot find front char ${e} from index ${n} in ${JSON.stringify(t26)}`);
|
|
2460
|
+
}
|
|
2461
|
+
function us(t26, e, n) {
|
|
2462
|
+
let s = ls(e);
|
|
2463
|
+
for (let r = n; r < t26.length; r++) {
|
|
2464
|
+
let o = t26[r];
|
|
2465
|
+
if (s(o)) return r;
|
|
2466
|
+
}
|
|
2467
|
+
throw new Error(`Cannot find character ${e} from index ${n} in ${JSON.stringify(t26)}`);
|
|
2468
|
+
}
|
|
2469
|
+
function ps(t26) {
|
|
2470
|
+
return t26.slice(0, 1).toLowerCase() + t26.slice(1);
|
|
2471
|
+
}
|
|
2472
|
+
function Fe(t26) {
|
|
2473
|
+
let { start: e, end: n } = t26;
|
|
2474
|
+
return { start: e, end: n, range: [e, n] };
|
|
2475
|
+
}
|
|
2476
|
+
var Dr = (t26) => ue.prototype._commentStart(t26);
|
|
2477
|
+
function Or(t26, e) {
|
|
2478
|
+
let n = e ? Dr(t26) : null;
|
|
2479
|
+
if (n === null) return { text: t26, comments: [] };
|
|
2480
|
+
let s = { type: "CommentLine", value: t26.slice(n + 2), ...Fe({ start: n, end: t26.length }) };
|
|
2481
|
+
return { text: t26.slice(0, n), comments: [s] };
|
|
2482
|
+
}
|
|
2483
|
+
function Ve(t26, e = true) {
|
|
2484
|
+
return (n) => {
|
|
2485
|
+
let s = new De(), r = new ue(s), { text: o, comments: a } = Or(n, e), l = t26(o, r);
|
|
2486
|
+
if (l.errors.length !== 0) {
|
|
2487
|
+
let [{ message: u }] = l.errors;
|
|
2488
|
+
throw new SyntaxError(u.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
|
|
2489
|
+
}
|
|
2490
|
+
return { result: l, comments: a, text: o };
|
|
2491
|
+
};
|
|
2492
|
+
}
|
|
2493
|
+
var hs = Ve((t26, e) => e.parseBinding(t26, "", 0));
|
|
2494
|
+
var Fr = Ve((t26, e) => e.parseSimpleBinding(t26, "", 0));
|
|
2495
|
+
var fs = Ve((t26, e) => e.parseAction(t26, "", 0));
|
|
2496
|
+
var ds = Ve((t26, e) => e.parseInterpolationExpression(t26, "", 0));
|
|
2497
|
+
var ms = Ve((t26, e) => e.parseTemplateBindings("", t26, "", 0, 0), false);
|
|
2498
|
+
var Hr = (t26, e, n) => {
|
|
2499
|
+
if (!(t26 && e == null)) return Array.isArray(e) || typeof e == "string" ? e[n < 0 ? e.length + n : n] : e.at(n);
|
|
2500
|
+
};
|
|
2501
|
+
var nt = Hr;
|
|
2502
|
+
var Bt = class {
|
|
2503
|
+
|
|
2504
|
+
constructor(e) {
|
|
2505
|
+
this.text = e;
|
|
2506
|
+
}
|
|
2507
|
+
getCharacterIndex(e, n) {
|
|
2508
|
+
return us(this.text, e, n);
|
|
2509
|
+
}
|
|
2510
|
+
getCharacterLastIndex(e, n) {
|
|
2511
|
+
return cs(this.text, e, n);
|
|
2512
|
+
}
|
|
2513
|
+
transformSpan(e, { stripSpaces: n = false, hasParentParens: s = false } = {}) {
|
|
2514
|
+
if (!n) return Fe(e);
|
|
2515
|
+
let { outerSpan: r, innerSpan: o, hasParens: a } = as(e, this.text, s), l = Fe(o);
|
|
2516
|
+
return a && (l.extra = { parenthesized: true, parenStart: r.start, parenEnd: r.end }), l;
|
|
2517
|
+
}
|
|
2518
|
+
createNode(e, { stripSpaces: n = true, hasParentParens: s = false } = {}) {
|
|
2519
|
+
let { type: r, start: o, end: a } = e, l = { ...e, ...this.transformSpan({ start: o, end: a }, { stripSpaces: n, hasParentParens: s }) };
|
|
2520
|
+
switch (r) {
|
|
2521
|
+
case "NumericLiteral":
|
|
2522
|
+
case "StringLiteral": {
|
|
2523
|
+
let u = this.text.slice(l.start, l.end), { value: h } = l;
|
|
2524
|
+
l.extra = { ...l.extra, raw: u, rawValue: h };
|
|
2525
|
+
break;
|
|
2526
|
+
}
|
|
2527
|
+
case "ObjectProperty": {
|
|
2528
|
+
let { shorthand: u } = l;
|
|
2529
|
+
u && (l.extra = { ...l.extra, shorthand: u });
|
|
2530
|
+
break;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
return l;
|
|
2534
|
+
}
|
|
2535
|
+
};
|
|
2536
|
+
var gs = Bt;
|
|
2537
|
+
function Ot(t26) {
|
|
2538
|
+
var e;
|
|
2539
|
+
return !!((e = t26.extra) != null && e.parenthesized);
|
|
2540
|
+
}
|
|
2541
|
+
function $(t26) {
|
|
2542
|
+
return Ot(t26) ? t26.extra.parenStart : t26.start;
|
|
2543
|
+
}
|
|
2544
|
+
function R(t26) {
|
|
2545
|
+
return Ot(t26) ? t26.extra.parenEnd : t26.end;
|
|
2546
|
+
}
|
|
2547
|
+
function vs(t26) {
|
|
2548
|
+
return (t26.type === "OptionalCallExpression" || t26.type === "OptionalMemberExpression") && !Ot(t26);
|
|
2549
|
+
}
|
|
2550
|
+
function ws(t26, e) {
|
|
2551
|
+
let { start: n, end: s } = t26.sourceSpan;
|
|
2552
|
+
return n >= s || /^\s+$/.test(e.slice(n, s));
|
|
2553
|
+
}
|
|
2554
|
+
var We;
|
|
2555
|
+
var pe;
|
|
2556
|
+
var p;
|
|
2557
|
+
var v;
|
|
2558
|
+
var He;
|
|
2559
|
+
var x;
|
|
2560
|
+
var Dt;
|
|
2561
|
+
var Ue = class extends gs {
|
|
2562
|
+
constructor(n, s) {
|
|
2563
|
+
super(s);
|
|
2564
|
+
V(this, p);
|
|
2565
|
+
V(this, We);
|
|
2566
|
+
V(this, pe);
|
|
2567
|
+
Q(this, We, n), Q(this, pe, s);
|
|
2568
|
+
}
|
|
2569
|
+
get node() {
|
|
2570
|
+
return c(this, p, x).call(this, L(this, We));
|
|
2571
|
+
}
|
|
2572
|
+
transformNode(n) {
|
|
2573
|
+
return c(this, p, Dt).call(this, n);
|
|
2574
|
+
}
|
|
2575
|
+
};
|
|
2576
|
+
We = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakSet(), v = function(n, { stripSpaces: s = true, hasParentParens: r = false } = {}) {
|
|
2577
|
+
return this.createNode(n, { stripSpaces: s, hasParentParens: r });
|
|
2578
|
+
}, He = function(n, s, { computed: r, optional: o, end: a = R(s), hasParentParens: l = false }) {
|
|
2579
|
+
if (ws(n, L(this, pe)) || n.sourceSpan.start === s.start) return s;
|
|
2580
|
+
let u = c(this, p, x).call(this, n), h = vs(u);
|
|
2581
|
+
return c(this, p, v).call(this, { type: o || h ? "OptionalMemberExpression" : "MemberExpression", object: u, property: s, computed: r, ...o ? { optional: true } : h ? { optional: false } : void 0, start: $(u), end: a }, { hasParentParens: l });
|
|
2582
|
+
}, x = function(n, s = false) {
|
|
2583
|
+
return c(this, p, Dt).call(this, n, s);
|
|
2584
|
+
}, Dt = function(n, s = false) {
|
|
2585
|
+
if (n instanceof Pe) {
|
|
2586
|
+
let { expressions: o } = n;
|
|
2587
|
+
if (o.length !== 1) throw new Error("Unexpected 'Interpolation'");
|
|
2588
|
+
return c(this, p, x).call(this, o[0]);
|
|
2589
|
+
}
|
|
2590
|
+
if (n instanceof ae) return c(this, p, v).call(this, { type: "UnaryExpression", prefix: true, argument: c(this, p, x).call(this, n.expr), operator: n.operator, ...n.sourceSpan }, { hasParentParens: s });
|
|
2591
|
+
if (n instanceof N) {
|
|
2592
|
+
let { left: o, operation: a, right: l } = n, u = c(this, p, x).call(this, o), h = c(this, p, x).call(this, l), g = $(u), S = R(h), w = { left: u, right: h, start: g, end: S };
|
|
2593
|
+
return a === "&&" || a === "||" || a === "??" ? c(this, p, v).call(this, { ...w, type: "LogicalExpression", operator: a }, { hasParentParens: s }) : c(this, p, v).call(this, { ...w, type: "BinaryExpression", operator: a }, { hasParentParens: s });
|
|
2594
|
+
}
|
|
2595
|
+
if (n instanceof be) {
|
|
2596
|
+
let { exp: o, name: a, args: l } = n, u = c(this, p, x).call(this, o), h = $(u), g = R(u), S = this.getCharacterIndex(/\S/, this.getCharacterIndex("|", g) + 1), w = c(this, p, v).call(this, { type: "Identifier", name: a, start: S, end: S + a.length }), y = l.map((T) => c(this, p, x).call(this, T));
|
|
2597
|
+
return c(this, p, v).call(this, { type: "NGPipeExpression", left: u, right: w, arguments: y, start: h, end: R(y.length === 0 ? w : nt(false, y, -1)) }, { hasParentParens: s });
|
|
2598
|
+
}
|
|
2599
|
+
if (n instanceof _e) return c(this, p, v).call(this, { type: "NGChainedExpression", expressions: n.expressions.map((o) => c(this, p, x).call(this, o)), ...n.sourceSpan }, { hasParentParens: s });
|
|
2600
|
+
if (n instanceof Ce) {
|
|
2601
|
+
let { condition: o, trueExp: a, falseExp: l } = n, u = c(this, p, x).call(this, o), h = c(this, p, x).call(this, a), g = c(this, p, x).call(this, l);
|
|
2602
|
+
return c(this, p, v).call(this, { type: "ConditionalExpression", test: u, consequent: h, alternate: g, start: $(u), end: R(g) }, { hasParentParens: s });
|
|
2603
|
+
}
|
|
2604
|
+
if (n instanceof b) return c(this, p, v).call(this, { type: "NGEmptyExpression", ...n.sourceSpan }, { hasParentParens: s });
|
|
2605
|
+
if (n instanceof X) return c(this, p, v).call(this, { type: "ThisExpression", ...n.sourceSpan }, { hasParentParens: s });
|
|
2606
|
+
if (n instanceof ke || n instanceof oe) return c(this, p, He).call(this, n.receiver, c(this, p, x).call(this, n.key), { computed: true, optional: n instanceof oe, end: n.sourceSpan.end, hasParentParens: s });
|
|
2607
|
+
if (n instanceof Ae) return c(this, p, v).call(this, { type: "ArrayExpression", elements: n.expressions.map((o) => c(this, p, x).call(this, o)), ...n.sourceSpan }, { hasParentParens: s });
|
|
2608
|
+
if (n instanceof Ne) {
|
|
2609
|
+
let { keys: o, values: a } = n, l = a.map((h) => c(this, p, x).call(this, h)), u = o.map(({ key: h, quoted: g }, S) => {
|
|
2610
|
+
let w = l[S], y = $(w), T = R(w), F = this.getCharacterIndex(/\S/, S === 0 ? n.sourceSpan.start + 1 : this.getCharacterIndex(",", R(l[S - 1])) + 1), fe = y === F ? T : this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex(":", y - 1) - 1) + 1, de = { start: F, end: fe }, q = g ? c(this, p, v).call(this, { type: "StringLiteral", value: h, ...de }) : c(this, p, v).call(this, { type: "Identifier", name: h, ...de }), Gt = q.end < q.start || F === y;
|
|
2611
|
+
return c(this, p, v).call(this, { type: "ObjectProperty", key: q, value: w, shorthand: Gt, computed: false, start: $(q), end: T });
|
|
2612
|
+
});
|
|
2613
|
+
return c(this, p, v).call(this, { type: "ObjectExpression", properties: u, ...n.sourceSpan }, { hasParentParens: s });
|
|
2614
|
+
}
|
|
2615
|
+
if (n instanceof A) {
|
|
2616
|
+
let { value: o } = n;
|
|
2617
|
+
switch (typeof o) {
|
|
2618
|
+
case "boolean":
|
|
2619
|
+
return c(this, p, v).call(this, { type: "BooleanLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2620
|
+
case "number":
|
|
2621
|
+
return c(this, p, v).call(this, { type: "NumericLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2622
|
+
case "object":
|
|
2623
|
+
return c(this, p, v).call(this, { type: "NullLiteral", ...n.sourceSpan }, { hasParentParens: s });
|
|
2624
|
+
case "string":
|
|
2625
|
+
return c(this, p, v).call(this, { type: "StringLiteral", value: o, ...n.sourceSpan }, { hasParentParens: s });
|
|
2626
|
+
case "undefined":
|
|
2627
|
+
return c(this, p, v).call(this, { type: "Identifier", name: "undefined", ...n.sourceSpan }, { hasParentParens: s });
|
|
2628
|
+
default:
|
|
2629
|
+
throw new Error(`Unexpected LiteralPrimitive value type ${typeof o}`);
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
if (n instanceof Re || n instanceof le) {
|
|
2633
|
+
let o = n instanceof le, { receiver: a, args: l } = n, u = l.length === 1 ? [c(this, p, x).call(this, l[0], true)] : l.map((w) => c(this, p, x).call(this, w)), h = c(this, p, x).call(this, a), g = vs(h), S = o || g ? "OptionalCallExpression" : "CallExpression";
|
|
2634
|
+
return c(this, p, v).call(this, { type: S, callee: h, arguments: u, optional: S === "OptionalCallExpression" ? o : void 0, start: $(h), end: n.sourceSpan.end }, { hasParentParens: s });
|
|
2635
|
+
}
|
|
2636
|
+
if (n instanceof $e) {
|
|
2637
|
+
let o = c(this, p, x).call(this, n.expression);
|
|
2638
|
+
return c(this, p, v).call(this, { type: "TSNonNullExpression", expression: o, start: $(o), end: n.sourceSpan.end }, { hasParentParens: s });
|
|
2639
|
+
}
|
|
2640
|
+
let r = n instanceof Le;
|
|
2641
|
+
if (r || n instanceof Me) {
|
|
2642
|
+
let o = c(this, p, x).call(this, n.expression), a = r ? "!" : "typeof", { start: l } = n.sourceSpan;
|
|
2643
|
+
if (!r) {
|
|
2644
|
+
let u = this.text.lastIndexOf(a, l);
|
|
2645
|
+
if (u === -1) throw new Error(`Cannot find operator ${a} from index ${l} in ${JSON.stringify(this.text)}`);
|
|
2646
|
+
l = u;
|
|
2647
|
+
}
|
|
2648
|
+
return c(this, p, v).call(this, { type: "UnaryExpression", prefix: true, operator: a, argument: o, start: l, end: R(o) }, { hasParentParens: s });
|
|
2649
|
+
}
|
|
2650
|
+
if (n instanceof re || n instanceof ie) {
|
|
2651
|
+
let { receiver: o, name: a } = n, l = this.getCharacterLastIndex(/\S/, n.sourceSpan.end - 1) + 1, u = c(this, p, v).call(this, { type: "Identifier", name: a, start: l - a.length, end: l }, ws(o, L(this, pe)) ? { hasParentParens: s } : {});
|
|
2652
|
+
return c(this, p, He).call(this, o, u, { computed: false, optional: n instanceof ie, hasParentParens: s });
|
|
2653
|
+
}
|
|
2654
|
+
if (n instanceof Ie) {
|
|
2655
|
+
let o = c(this, p, x).call(this, n.key), a = c(this, p, x).call(this, n.value), l = c(this, p, He).call(this, n.receiver, o, { computed: true, optional: false, end: this.getCharacterIndex("]", R(o)) + 1 });
|
|
2656
|
+
return c(this, p, v).call(this, { type: "AssignmentExpression", left: l, operator: "=", right: a, start: $(l), end: R(a) }, { hasParentParens: s });
|
|
2657
|
+
}
|
|
2658
|
+
if (n instanceof Te) {
|
|
2659
|
+
let { receiver: o, name: a, value: l } = n, u = c(this, p, x).call(this, l), h = this.getCharacterLastIndex(/\S/, this.getCharacterLastIndex("=", $(u) - 1) - 1) + 1, g = c(this, p, v).call(this, { type: "Identifier", name: a, start: h - a.length, end: h }), S = c(this, p, He).call(this, o, g, { computed: false, optional: false });
|
|
2660
|
+
return c(this, p, v).call(this, { type: "AssignmentExpression", left: S, operator: "=", right: u, start: $(S), end: R(u) }, { hasParentParens: s });
|
|
2661
|
+
}
|
|
2662
|
+
throw Object.assign(new Error("Unexpected node"), { node: n });
|
|
2663
|
+
};
|
|
2664
|
+
function xs(t26, e) {
|
|
2665
|
+
return new Ue(t26, e).node;
|
|
2666
|
+
}
|
|
2667
|
+
function Ss(t26) {
|
|
2668
|
+
return t26 instanceof Be;
|
|
2669
|
+
}
|
|
2670
|
+
function Es(t26) {
|
|
2671
|
+
return t26 instanceof ce;
|
|
2672
|
+
}
|
|
2673
|
+
var he;
|
|
2674
|
+
var Y;
|
|
2675
|
+
var m;
|
|
2676
|
+
var ys;
|
|
2677
|
+
var I;
|
|
2678
|
+
var Vt;
|
|
2679
|
+
var Ht;
|
|
2680
|
+
var Ut;
|
|
2681
|
+
var _s;
|
|
2682
|
+
var Cs;
|
|
2683
|
+
var Ts;
|
|
2684
|
+
var ks;
|
|
2685
|
+
var Ft = class extends Ue {
|
|
2686
|
+
constructor(n, s) {
|
|
2687
|
+
super(void 0, s);
|
|
2688
|
+
V(this, m);
|
|
2689
|
+
V(this, he);
|
|
2690
|
+
V(this, Y);
|
|
2691
|
+
Q(this, he, n), Q(this, Y, s);
|
|
2692
|
+
for (let r of n) c(this, m, _s).call(this, r);
|
|
2693
|
+
}
|
|
2694
|
+
get expressions() {
|
|
2695
|
+
return c(this, m, Ts).call(this);
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2698
|
+
he = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet(), ys = function() {
|
|
2699
|
+
return L(this, he)[0].key;
|
|
2700
|
+
}, I = function(n, { stripSpaces: s = true } = {}) {
|
|
2701
|
+
return this.createNode(n, { stripSpaces: s });
|
|
2702
|
+
}, Vt = function(n) {
|
|
2703
|
+
return this.transformNode(n);
|
|
2704
|
+
}, Ht = function(n) {
|
|
2705
|
+
return ps(n.slice(L(this, m, ys).source.length));
|
|
2706
|
+
}, Ut = function(n) {
|
|
2707
|
+
let s = L(this, Y);
|
|
2708
|
+
if (s[n.start] !== '"' && s[n.start] !== "'") return;
|
|
2709
|
+
let r = s[n.start], o = false;
|
|
2710
|
+
for (let a = n.start + 1; a < s.length; a++) switch (s[a]) {
|
|
2711
|
+
case r:
|
|
2712
|
+
if (!o) {
|
|
2713
|
+
n.end = a + 1;
|
|
2714
|
+
return;
|
|
2715
|
+
}
|
|
2716
|
+
default:
|
|
2717
|
+
o = false;
|
|
2718
|
+
break;
|
|
2719
|
+
case "\\":
|
|
2720
|
+
o = !o;
|
|
2721
|
+
break;
|
|
2722
|
+
}
|
|
2723
|
+
}, _s = function(n) {
|
|
2724
|
+
c(this, m, Ut).call(this, n.key.span), Es(n) && n.value && c(this, m, Ut).call(this, n.value.span);
|
|
2725
|
+
}, Cs = function(n) {
|
|
2726
|
+
if (!n.value || n.value.source) return n.value;
|
|
2727
|
+
let s = this.getCharacterIndex(/\S/, n.sourceSpan.start);
|
|
2728
|
+
return { source: "$implicit", span: { start: s, end: s } };
|
|
2729
|
+
}, Ts = function() {
|
|
2730
|
+
let n = L(this, he), [s] = n, r = L(this, Y).slice(s.sourceSpan.start, s.sourceSpan.end).trim().length === 0 ? n.slice(1) : n, o = [], a = null;
|
|
2731
|
+
for (let [l, u] of r.entries()) {
|
|
2732
|
+
if (a && Ss(a) && Es(u) && u.value && u.value.source === a.key.source) {
|
|
2733
|
+
let h = c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: u.key.source, ...u.key.span }), g = (y, T) => ({ ...y, ...this.transformSpan({ start: y.start, end: T }) }), S = (y) => ({ ...g(y, h.end), alias: h }), w = o.pop();
|
|
2734
|
+
if (w.type === "NGMicrosyntaxExpression") o.push(S(w));
|
|
2735
|
+
else if (w.type === "NGMicrosyntaxKeyedExpression") {
|
|
2736
|
+
let y = S(w.expression);
|
|
2737
|
+
o.push(g({ ...w, expression: y }, y.end));
|
|
2738
|
+
} else throw new Error(`Unexpected type ${w.type}`);
|
|
2739
|
+
} else o.push(c(this, m, ks).call(this, u, l));
|
|
2740
|
+
a = u;
|
|
2741
|
+
}
|
|
2742
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntax", body: o, ...o.length === 0 ? n[0].sourceSpan : { start: o[0].start, end: nt(false, o, -1).end } });
|
|
2743
|
+
}, ks = function(n, s) {
|
|
2744
|
+
if (Ss(n)) {
|
|
2745
|
+
let { key: r, value: o } = n;
|
|
2746
|
+
return o ? s === 0 ? c(this, m, I).call(this, { type: "NGMicrosyntaxExpression", expression: c(this, m, Vt).call(this, o.ast), alias: null, ...o.sourceSpan }) : c(this, m, I).call(this, { type: "NGMicrosyntaxKeyedExpression", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: c(this, m, Ht).call(this, r.source), ...r.span }), expression: c(this, m, I).call(this, { type: "NGMicrosyntaxExpression", expression: c(this, m, Vt).call(this, o.ast), alias: null, ...o.sourceSpan }), start: r.span.start, end: o.sourceSpan.end }) : c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: c(this, m, Ht).call(this, r.source), ...r.span });
|
|
2747
|
+
} else {
|
|
2748
|
+
let { key: r, sourceSpan: o } = n;
|
|
2749
|
+
if (/^let\s$/.test(L(this, Y).slice(o.start, o.start + 4))) {
|
|
2750
|
+
let { value: l } = n;
|
|
2751
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntaxLet", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: r.source, ...r.span }), value: l ? c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: l.source, ...l.span }) : null, start: o.start, end: l ? l.span.end : r.span.end });
|
|
2752
|
+
} else {
|
|
2753
|
+
let l = c(this, m, Cs).call(this, n);
|
|
2754
|
+
return c(this, m, I).call(this, { type: "NGMicrosyntaxAs", key: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: l.source, ...l.span }), alias: c(this, m, I).call(this, { type: "NGMicrosyntaxKey", name: r.source, ...r.span }), start: l.span.start, end: r.span.end });
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
};
|
|
2758
|
+
function Is(t26, e) {
|
|
2759
|
+
return new Ft(t26, e).expressions;
|
|
2760
|
+
}
|
|
2761
|
+
function st({ result: { ast: t26 }, text: e, comments: n }) {
|
|
2762
|
+
return Object.assign(xs(t26, e), { comments: n });
|
|
2763
|
+
}
|
|
2764
|
+
function bs({ result: { templateBindings: t26 }, text: e }) {
|
|
2765
|
+
return Is(t26, e);
|
|
2766
|
+
}
|
|
2767
|
+
var As = (t26) => st(hs(t26));
|
|
2768
|
+
var Ns = (t26) => st(ds(t26));
|
|
2769
|
+
var Wt = (t26) => st(fs(t26));
|
|
2770
|
+
var Ps = (t26) => bs(ms(t26));
|
|
2771
|
+
function qt(t26) {
|
|
2772
|
+
var s, r, o;
|
|
2773
|
+
let e = _nullishCoalesce(((s = t26.range) == null ? void 0 : s[0]), () => ( t26.start)), n = (o = _nullishCoalesce(((r = t26.declaration) == null ? void 0 : r.decorators), () => ( t26.decorators))) == null ? void 0 : o[0];
|
|
2774
|
+
return n ? Math.min(qt(n), e) : e;
|
|
2775
|
+
}
|
|
2776
|
+
function Ls(t26) {
|
|
2777
|
+
var e;
|
|
2778
|
+
return _nullishCoalesce(((e = t26.range) == null ? void 0 : e[1]), () => ( t26.end));
|
|
2779
|
+
}
|
|
2780
|
+
function rt(t26) {
|
|
2781
|
+
return { astFormat: "estree", parse(e) {
|
|
2782
|
+
let n = t26(e);
|
|
2783
|
+
return { type: "NGRoot", node: t26 === Wt && n.type !== "NGChainedExpression" ? { ...n, type: "NGChainedExpression", expressions: [n] } : n };
|
|
2784
|
+
}, locStart: qt, locEnd: Ls };
|
|
2785
|
+
}
|
|
2786
|
+
var Ur = rt(Wt);
|
|
2787
|
+
var Wr = rt(As);
|
|
2788
|
+
var qr = rt(Ns);
|
|
2789
|
+
var jr = rt(Ps);
|
|
2790
|
+
var Zi = zt;
|
|
2791
|
+
|
|
2792
|
+
|
|
2793
|
+
|
|
2794
|
+
exports.default = Zi; exports.parsers = jt;
|