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