@shopify/create-app
Version:
A CLI tool to create a new Shopify app.
1,152 lines (1,150 loc) • 134 kB
JavaScript
import {
__esm,
init_cjs_shims
} from "./chunk-PKR7KJ6P.js";
// ../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/angular.mjs
function on({ start: e22, end: t }, n) {
let s = e22, r = t;
for (; r !== s && /\s/.test(n[r - 1]); ) r--;
for (; s !== r && /\s/.test(n[s]); ) s++;
return { start: s, end: r };
}
function Us({ start: e22, end: t }, n) {
let s = e22, r = t;
for (; r !== n.length && /\s/.test(n[r]); ) r++;
for (; s !== 0 && /\s/.test(n[s - 1]); ) s--;
return { start: s, end: r };
}
function Ws(e22, t) {
return t[e22.start - 1] === "(" && t[e22.end] === ")" ? { start: e22.start - 1, end: e22.end + 1 } : e22;
}
function ln(e22, t, n) {
let s = 0, r = { start: e22.start, end: e22.end };
for (; ; ) {
let i = Us(r, t), o = Ws(i, t);
if (i.start === o.start && i.end === o.end) break;
r.start = o.start, r.end = o.end, s++;
}
return { hasParens: (n ? s - 1 : s) !== 0, outerSpan: on(n ? { start: r.start + 1, end: r.end - 1 } : r, t), innerSpan: on(e22, t) };
}
function cn(e22) {
return typeof e22 == "string" ? (t) => t === e22 : (t) => e22.test(t);
}
function un(e22, t, n) {
let s = cn(t);
for (let r = n; r >= 0; r--) {
let i = e22[r];
if (s(i)) return r;
}
throw new Error(`Cannot find front char ${t} from index ${n} in ${JSON.stringify(e22)}`);
}
function hn(e22, t, n) {
let s = cn(t);
for (let r = n; r < e22.length; r++) {
let i = e22[r];
if (s(i)) return r;
}
throw new Error(`Cannot find character ${t} from index ${n} in ${JSON.stringify(e22)}`);
}
function pn(e22) {
return e22.slice(0, 1).toLowerCase() + e22.slice(1);
}
function Ee(e22) {
let { start: t, end: n } = e22;
return { start: t, end: n, range: [t, n] };
}
function qs(e22, t) {
return e22 == null || t == null ? e22 == t : e22.isEquivalent(t);
}
function js(e22, t, n) {
let s = e22.length;
if (s !== t.length) return !1;
for (let r = 0; r < s; r++) if (!n(e22[r], t[r])) return !1;
return !0;
}
function at(e22, t) {
return js(e22, t, (n, s) => n.isEquivalent(s));
}
function zs(e22, t, n) {
return new Je(e22, t, n);
}
function pr(e22) {
return e22 >= as && e22 <= os || e22 == ds;
}
function W(e22) {
return tr <= e22 && e22 <= nr;
}
function Lt(e22) {
return e22 >= ps && e22 <= fs || e22 >= Ut && e22 <= Wt;
}
function Mn(e22) {
return e22 === cs || e22 === ls || e22 === Pt;
}
function _e(e22, t, n) {
return new I(e22, t, p.Character, n, String.fromCharCode(n));
}
function Tr(e22, t, n) {
return new I(e22, t, p.Identifier, 0, n);
}
function br(e22, t, n) {
return new I(e22, t, p.PrivateIdentifier, 0, n);
}
function Ar(e22, t, n) {
return new I(e22, t, p.Keyword, 0, n);
}
function Ce(e22, t, n) {
return new I(e22, t, p.Operator, 0, n);
}
function Ir(e22, t, n) {
return new I(e22, t, p.Number, n, "");
}
function Nr(e22, t, n) {
return new I(e22, t, p.Error, 0, n);
}
function Pr(e22, t, n) {
return new I(e22, t, p.RegExpBody, 0, n);
}
function Lr(e22, t, n) {
return new I(e22, t, p.RegExpFlags, 0, n);
}
function Zn(e22) {
return ps <= e22 && e22 <= fs || Ut <= e22 && e22 <= Wt || e22 == ot || e22 == Ht;
}
function es(e22) {
return Lt(e22) || W(e22) || e22 == ot || e22 == Ht;
}
function Mr(e22) {
return e22 == ir || e22 == sr;
}
function Rr(e22) {
return e22 == hs || e22 == us;
}
function $r(e22) {
switch (e22) {
case or:
return Xe;
case ar:
return Xs;
case lr:
return Js;
case cr:
return as;
case hr:
return Gs;
default:
return e22;
}
}
function Dr(e22) {
let t = parseInt(e22);
if (isNaN(t)) throw new Error("Invalid integer literal when parsing " + e22);
return t;
}
function O(e22) {
return e22.start.toString() || "(unknown)";
}
function oe(e22, t, n, s) {
n.length > 0 && (n = ` ${n} `);
let r = O(s), i = `Parser Error: ${e22}${n}[${t}] in ${r}`;
return new Mt(s, i);
}
function Br(e22) {
let t = /* @__PURE__ */ new Map(), n = 0, s = 0, r = 0;
for (; r < e22.length; ) {
let i = e22[r];
if (i.type === 9) {
let [o, c] = i.parts;
n += c.length, s += o.length;
} else {
let o = i.parts.reduce((c, h) => c + h.length, 0);
s += o, n += o;
}
t.set(s, n), r++;
}
return t;
}
function D(e22) {
return (t) => t.kind === e22;
}
function Ne(e22, t) {
return (n) => n.kind === e22 && t === n.expression instanceof rt;
}
function Fr(e22) {
return (e22.kind === f.Property || e22.kind === f.TwoWayProperty) && !(e22.expression instanceof rt);
}
function it(e22) {
return e22.slice(e22.length - 1);
}
function qe(e22 = "test.html") {
let t = new et(new tt("", e22), 0, 0, 0);
return new nt(t, t);
}
function Ur(e22, t) {
let n = t ? Hr(e22) : null;
if (n === null) return { text: e22, comments: [] };
let s = { type: "CommentLine", value: e22.slice(n + 2), ...Ee({ start: n, end: e22.length }) };
return { text: e22.slice(0, n), comments: [s] };
}
function je(e22, t = !0) {
return (n) => {
let s = new we(new Ue()), { text: r, comments: i } = Ur(n, t), o = e22(r, s);
if (o.errors.length !== 0) {
let [{ message: c }] = o.errors;
throw new SyntaxError(c.replace(/^Parser Error: | at column \d+ in [^]*$/g, ""));
}
return { result: o, comments: i, text: r };
};
}
function qr(e22) {
return this[e22 < 0 ? this.length + e22 : e22];
}
function ct(e22) {
return !!e22.extra?.parenthesized;
}
function te(e22) {
return ct(e22) ? e22.extra.parenStart : e22.start;
}
function ne(e22) {
return ct(e22) ? e22.extra.parenEnd : e22.end;
}
function zt(e22) {
return e22.type === "TSNonNullExpression" && !ct(e22) ? zt(e22.expression) : (e22.type === "OptionalCallExpression" || e22.type === "OptionalMemberExpression") && !ct(e22);
}
function Ts(e22, t) {
let { start: n, end: s } = e22.sourceSpan;
return n >= s || /^\s+$/.test(t.slice(n, s));
}
function bs(e22, t) {
return new Gt(e22, t).node;
}
function As(e22) {
return e22 instanceof He;
}
function Is(e22) {
return e22 instanceof ge;
}
function Ds(e22, t) {
return new zr(e22, t).expressions;
}
function ut({ result: { ast: e22 }, text: t, comments: n }) {
return Object.assign(bs(e22, t), { comments: n });
}
function Bs({ result: { templateBindings: e22 }, text: t }) {
return Ds(e22, t);
}
function en(e22) {
let t = e22.range?.[0] ?? e22.start, n = (e22.declaration?.decorators ?? e22.decorators)?.[0];
return n ? Math.min(en(n), t) : t;
}
function Os(e22) {
return e22.range?.[1] ?? e22.end;
}
function pt(e22) {
return { astFormat: "estree", parse(t) {
let n = e22(t), { comments: s } = n;
return delete n.comments, e22 === ht && n.type !== "NGChainedExpression" && (n = { ...n, type: "NGChainedExpression", expressions: [n] }), { type: "NGRoot", node: n, comments: s };
}, locStart: en, locEnd: Os };
}
var Hs, rn, an, ft, U, ze, dt, x, Fs, tn, ei, fn, dn, mn, L, gn, vn, xn, wn, Sn, En, yn, _n, u, _, Je, gt, vt, xt, wt, Ye, St, Et, w, yt, _t, Ct, kt, Qe, Tt, bt, ti, Cn, a, l, At, ni, kn, Y, v, Pe, A, Q, It, Le, Me, X, ce, ue, he, be, Re, k, $e, De, Vt, y, J, K, Z, ee, Be, Oe, pe, fe, de, me, Fe, Ve, B, F, ge, He, Nt, Tn, bn, M, An, ye, as, Xe, Gs, Xs, Js, os, Ys, ls, Qs, Ht, Ks, In, cs, Ae, q, Nn, us, re, hs, ke, Ke, j, Te, Zs, b, er, Pn, tr, nr, Ut, sr, Wt, le, mt, G, rr, ot, ps, ir, ar, or, lr, cr, ur, hr, fs, Ze, Ln, ie, ds, Pt, et, tt, nt, st, Mt, Rn, $n, Dn, fr, ms, dr, Rt, mr, gr, qt, ii, ai, vr, oi, xr, li, gs, ci, ui, wr, Sr, Er, hi, pi, fi, f, ve, Bn, On, Fn, R, Vn, Hn, Un, Wn, $, qn, jn, yr, vs, We, jt, di, mi, gi, rt, xe, zn, Gn, Xn, Jn, $t, vi, Yn, Qn, xi, wi, Si, Ei, yi, _r, Cr, Kn, xs, _i, Ci, p, V, kr, Ue, I, Ie, Ge, Dt, Bt, Ot, we, ae, ts, z, Ft, Or, ki, Ti, bi, Ai, Ii, Ni, Pi, Li, Mi, Ri, $i, ns, Di, ss, rs, ws, Oi, Fi, is, Vi, Hr, Ss, Wr, Es, ys, _s, Cs, jr, lt, ks, Gt, Se, se, m, Ps, T, Xt, Jt, Yt, Ls, Ms, Rs, $s, Ns, zr, Qt, Kt, ht, Zt, Gr, Xr, Jr, Yr, init_angular = __esm({
"../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/angular.mjs"() {
init_cjs_shims();
Hs = Object.defineProperty, rn = (e22) => {
throw TypeError(e22);
}, an = (e22, t) => {
for (var n in t) Hs(e22, n, { get: t[n], enumerable: !0 });
}, ft = (e22, t, n) => t.has(e22) || rn("Cannot " + n), U = (e22, t, n) => (ft(e22, t, "read from private field"), n ? n.call(e22) : t.get(e22)), ze = (e22, t, n) => t.has(e22) ? rn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e22) : t.set(e22, n), dt = (e22, t, n, s) => (ft(e22, t, "write to private field"), s ? s.call(e22, n) : t.set(e22, n), n), x = (e22, t, n) => (ft(e22, t, "access private method"), n), Fs = {};
an(Fs, { parsers: () => tn });
tn = {};
an(tn, { __ng_action: () => Gr, __ng_binding: () => Xr, __ng_directive: () => Yr, __ng_interpolation: () => Jr });
ei = new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`, "g");
(function(e22) {
e22[e22.Emulated = 0] = "Emulated", e22[e22.None = 2] = "None", e22[e22.ShadowDom = 3] = "ShadowDom", e22[e22.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
})(fn || (fn = {}));
(function(e22) {
e22[e22.OnPush = 0] = "OnPush", e22[e22.Default = 1] = "Default";
})(dn || (dn = {}));
(function(e22) {
e22[e22.None = 0] = "None", e22[e22.SignalBased = 1] = "SignalBased", e22[e22.HasDecoratorInputTransform = 2] = "HasDecoratorInputTransform";
})(mn || (mn = {}));
(function(e22) {
e22[e22.NONE = 0] = "NONE", e22[e22.HTML = 1] = "HTML", e22[e22.STYLE = 2] = "STYLE", e22[e22.SCRIPT = 3] = "SCRIPT", e22[e22.URL = 4] = "URL", e22[e22.RESOURCE_URL = 5] = "RESOURCE_URL", e22[e22.ATTRIBUTE_NO_BINDING = 6] = "ATTRIBUTE_NO_BINDING";
})(L || (L = {}));
(function(e22) {
e22[e22.Error = 0] = "Error", e22[e22.Warning = 1] = "Warning", e22[e22.Ignore = 2] = "Ignore";
})(gn || (gn = {}));
(function(e22) {
e22[e22.Directive = 0] = "Directive", e22[e22.Component = 1] = "Component", e22[e22.Injectable = 2] = "Injectable", e22[e22.Pipe = 3] = "Pipe", e22[e22.NgModule = 4] = "NgModule";
})(vn || (vn = {}));
(function(e22) {
e22[e22.Directive = 0] = "Directive", e22[e22.Pipe = 1] = "Pipe", e22[e22.NgModule = 2] = "NgModule";
})(xn || (xn = {}));
(function(e22) {
e22[e22.Emulated = 0] = "Emulated", e22[e22.None = 2] = "None", e22[e22.ShadowDom = 3] = "ShadowDom", e22[e22.ExperimentalIsolatedShadowDom = 4] = "ExperimentalIsolatedShadowDom";
})(wn || (wn = {}));
(function(e22) {
e22[e22.Little = 0] = "Little", e22[e22.Big = 1] = "Big";
})(Sn || (Sn = {}));
(function(e22) {
e22[e22.None = 0] = "None", e22[e22.Const = 1] = "Const";
})(En || (En = {}));
(function(e22) {
e22[e22.Dynamic = 0] = "Dynamic", e22[e22.Bool = 1] = "Bool", e22[e22.String = 2] = "String", e22[e22.Int = 3] = "Int", e22[e22.Number = 4] = "Number", e22[e22.Function = 5] = "Function", e22[e22.Inferred = 6] = "Inferred", e22[e22.None = 7] = "None";
})(yn || (yn = {}));
(function(e22) {
e22[e22.Minus = 0] = "Minus", e22[e22.Plus = 1] = "Plus";
})(_n || (_n = {}));
(function(e22) {
e22[e22.Equals = 0] = "Equals", e22[e22.NotEquals = 1] = "NotEquals", e22[e22.Assign = 2] = "Assign", e22[e22.Identical = 3] = "Identical", e22[e22.NotIdentical = 4] = "NotIdentical", e22[e22.Minus = 5] = "Minus", e22[e22.Plus = 6] = "Plus", e22[e22.Divide = 7] = "Divide", e22[e22.Multiply = 8] = "Multiply", e22[e22.Modulo = 9] = "Modulo", e22[e22.And = 10] = "And", e22[e22.Or = 11] = "Or", e22[e22.BitwiseOr = 12] = "BitwiseOr", e22[e22.BitwiseAnd = 13] = "BitwiseAnd", e22[e22.Lower = 14] = "Lower", e22[e22.LowerEquals = 15] = "LowerEquals", e22[e22.Bigger = 16] = "Bigger", e22[e22.BiggerEquals = 17] = "BiggerEquals", e22[e22.NullishCoalesce = 18] = "NullishCoalesce", e22[e22.Exponentiation = 19] = "Exponentiation", e22[e22.In = 20] = "In", e22[e22.AdditionAssignment = 21] = "AdditionAssignment", e22[e22.SubtractionAssignment = 22] = "SubtractionAssignment", e22[e22.MultiplicationAssignment = 23] = "MultiplicationAssignment", e22[e22.DivisionAssignment = 24] = "DivisionAssignment", e22[e22.RemainderAssignment = 25] = "RemainderAssignment", e22[e22.ExponentiationAssignment = 26] = "ExponentiationAssignment", e22[e22.AndAssignment = 27] = "AndAssignment", e22[e22.OrAssignment = 28] = "OrAssignment", e22[e22.NullishCoalesceAssignment = 29] = "NullishCoalesceAssignment";
})(u || (u = {}));
_ = class {
type;
sourceSpan;
constructor(t, n) {
this.type = t || null, this.sourceSpan = n || null;
}
prop(t, n) {
return new yt(this, t, null, n);
}
key(t, n, s) {
return new _t(this, t, n, s);
}
callFn(t, n, s) {
return new vt(this, t, null, n, s);
}
instantiate(t, n, s) {
return new xt(this, t, n, s);
}
conditional(t, n = null, s) {
return new Et(this, t, n, null, s);
}
equals(t, n) {
return new w(u.Equals, this, t, null, n);
}
notEquals(t, n) {
return new w(u.NotEquals, this, t, null, n);
}
identical(t, n) {
return new w(u.Identical, this, t, null, n);
}
notIdentical(t, n) {
return new w(u.NotIdentical, this, t, null, n);
}
minus(t, n) {
return new w(u.Minus, this, t, null, n);
}
plus(t, n) {
return new w(u.Plus, this, t, null, n);
}
divide(t, n) {
return new w(u.Divide, this, t, null, n);
}
multiply(t, n) {
return new w(u.Multiply, this, t, null, n);
}
modulo(t, n) {
return new w(u.Modulo, this, t, null, n);
}
power(t, n) {
return new w(u.Exponentiation, this, t, null, n);
}
and(t, n) {
return new w(u.And, this, t, null, n);
}
bitwiseOr(t, n) {
return new w(u.BitwiseOr, this, t, null, n);
}
bitwiseAnd(t, n) {
return new w(u.BitwiseAnd, this, t, null, n);
}
or(t, n) {
return new w(u.Or, this, t, null, n);
}
lower(t, n) {
return new w(u.Lower, this, t, null, n);
}
lowerEquals(t, n) {
return new w(u.LowerEquals, this, t, null, n);
}
bigger(t, n) {
return new w(u.Bigger, this, t, null, n);
}
biggerEquals(t, n) {
return new w(u.BiggerEquals, this, t, null, n);
}
isBlank(t) {
return this.equals(TYPED_NULL_EXPR, t);
}
nullishCoalesce(t, n) {
return new w(u.NullishCoalesce, this, t, null, n);
}
toStmt() {
return new bt(this, null);
}
}, Je = class e extends _ {
name;
constructor(t, n, s) {
super(n, s), this.name = t;
}
isEquivalent(t) {
return t instanceof e && this.name === t.name;
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitReadVarExpr(this, n);
}
clone() {
return new e(this.name, this.type, this.sourceSpan);
}
set(t) {
return new w(u.Assign, this, t, null, this.sourceSpan);
}
}, gt = class e2 extends _ {
expr;
constructor(t, n, s) {
super(n, s), this.expr = t;
}
visitExpression(t, n) {
return t.visitTypeofExpr(this, n);
}
isEquivalent(t) {
return t instanceof e2 && t.expr.isEquivalent(this.expr);
}
isConstant() {
return this.expr.isConstant();
}
clone() {
return new e2(this.expr.clone());
}
}, vt = class e3 extends _ {
fn;
args;
pure;
constructor(t, n, s, r, i = !1) {
super(s, r), this.fn = t, this.args = n, this.pure = i;
}
get receiver() {
return this.fn;
}
isEquivalent(t) {
return t instanceof e3 && this.fn.isEquivalent(t.fn) && at(this.args, t.args) && this.pure === t.pure;
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitInvokeFunctionExpr(this, n);
}
clone() {
return new e3(this.fn.clone(), this.args.map((t) => t.clone()), this.type, this.sourceSpan, this.pure);
}
}, xt = class e4 extends _ {
classExpr;
args;
constructor(t, n, s, r) {
super(s, r), this.classExpr = t, this.args = n;
}
isEquivalent(t) {
return t instanceof e4 && this.classExpr.isEquivalent(t.classExpr) && at(this.args, t.args);
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitInstantiateExpr(this, n);
}
clone() {
return new e4(this.classExpr.clone(), this.args.map((t) => t.clone()), this.type, this.sourceSpan);
}
}, wt = class e5 extends _ {
body;
flags;
constructor(t, n, s) {
super(null, s), this.body = t, this.flags = n;
}
isEquivalent(t) {
return t instanceof e5 && this.body === t.body && this.flags === t.flags;
}
isConstant() {
return !0;
}
visitExpression(t, n) {
return t.visitRegularExpressionLiteral(this, n);
}
clone() {
return new e5(this.body, this.flags, this.sourceSpan);
}
}, Ye = class e6 extends _ {
value;
constructor(t, n, s) {
super(n, s), this.value = t;
}
isEquivalent(t) {
return t instanceof e6 && this.value === t.value;
}
isConstant() {
return !0;
}
visitExpression(t, n) {
return t.visitLiteralExpr(this, n);
}
clone() {
return new e6(this.value, this.type, this.sourceSpan);
}
}, St = class e7 extends _ {
value;
typeParams;
constructor(t, n, s = null, r) {
super(n, r), this.value = t, this.typeParams = s;
}
isEquivalent(t) {
return t instanceof e7 && this.value.name === t.value.name && this.value.moduleName === t.value.moduleName;
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitExternalExpr(this, n);
}
clone() {
return new e7(this.value, this.type, this.typeParams, this.sourceSpan);
}
}, Et = class e8 extends _ {
condition;
falseCase;
trueCase;
constructor(t, n, s = null, r, i) {
super(r || n.type, i), this.condition = t, this.falseCase = s, this.trueCase = n;
}
isEquivalent(t) {
return t instanceof e8 && this.condition.isEquivalent(t.condition) && this.trueCase.isEquivalent(t.trueCase) && qs(this.falseCase, t.falseCase);
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitConditionalExpr(this, n);
}
clone() {
return new e8(this.condition.clone(), this.trueCase.clone(), this.falseCase?.clone(), this.type, this.sourceSpan);
}
}, w = class e9 extends _ {
operator;
rhs;
lhs;
constructor(t, n, s, r, i) {
super(r || n.type, i), this.operator = t, this.rhs = s, this.lhs = n;
}
isEquivalent(t) {
return t instanceof e9 && this.operator === t.operator && this.lhs.isEquivalent(t.lhs) && this.rhs.isEquivalent(t.rhs);
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitBinaryOperatorExpr(this, n);
}
clone() {
return new e9(this.operator, this.lhs.clone(), this.rhs.clone(), this.type, this.sourceSpan);
}
isAssignment() {
let t = this.operator;
return t === u.Assign || t === u.AdditionAssignment || t === u.SubtractionAssignment || t === u.MultiplicationAssignment || t === u.DivisionAssignment || t === u.RemainderAssignment || t === u.ExponentiationAssignment || t === u.AndAssignment || t === u.OrAssignment || t === u.NullishCoalesceAssignment;
}
}, yt = class e10 extends _ {
receiver;
name;
constructor(t, n, s, r) {
super(s, r), this.receiver = t, this.name = n;
}
get index() {
return this.name;
}
isEquivalent(t) {
return t instanceof e10 && this.receiver.isEquivalent(t.receiver) && this.name === t.name;
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitReadPropExpr(this, n);
}
set(t) {
return new w(u.Assign, this.receiver.prop(this.name), t, null, this.sourceSpan);
}
clone() {
return new e10(this.receiver.clone(), this.name, this.type, this.sourceSpan);
}
}, _t = class e11 extends _ {
receiver;
index;
constructor(t, n, s, r) {
super(s, r), this.receiver = t, this.index = n;
}
isEquivalent(t) {
return t instanceof e11 && this.receiver.isEquivalent(t.receiver) && this.index.isEquivalent(t.index);
}
isConstant() {
return !1;
}
visitExpression(t, n) {
return t.visitReadKeyExpr(this, n);
}
set(t) {
return new w(u.Assign, this.receiver.key(this.index), t, null, this.sourceSpan);
}
clone() {
return new e11(this.receiver.clone(), this.index.clone(), this.type, this.sourceSpan);
}
}, Ct = class e12 extends _ {
entries;
constructor(t, n, s) {
super(n, s), this.entries = t;
}
isConstant() {
return this.entries.every((t) => t.isConstant());
}
isEquivalent(t) {
return t instanceof e12 && at(this.entries, t.entries);
}
visitExpression(t, n) {
return t.visitLiteralArrayExpr(this, n);
}
clone() {
return new e12(this.entries.map((t) => t.clone()), this.type, this.sourceSpan);
}
}, kt = class e13 extends _ {
entries;
valueType = null;
constructor(t, n, s) {
super(n, s), this.entries = t, n && (this.valueType = n.valueType);
}
isEquivalent(t) {
return t instanceof e13 && at(this.entries, t.entries);
}
isConstant() {
return this.entries.every((t) => t.value.isConstant());
}
visitExpression(t, n) {
return t.visitLiteralMapExpr(this, n);
}
clone() {
let t = this.entries.map((n) => n.clone());
return new e13(t, this.type, this.sourceSpan);
}
};
(function(e22) {
e22[e22.None = 0] = "None", e22[e22.Final = 1] = "Final", e22[e22.Private = 2] = "Private", e22[e22.Exported = 4] = "Exported", e22[e22.Static = 8] = "Static";
})(Qe || (Qe = {}));
Tt = class {
modifiers;
sourceSpan;
leadingComments;
constructor(t = Qe.None, n = null, s) {
this.modifiers = t, this.sourceSpan = n, this.leadingComments = s;
}
hasModifier(t) {
return (this.modifiers & t) !== 0;
}
addLeadingComment(t) {
this.leadingComments = this.leadingComments ?? [], this.leadingComments.push(t);
}
}, bt = class e14 extends Tt {
expr;
constructor(t, n, s) {
super(Qe.None, n, s), this.expr = t;
}
isEquivalent(t) {
return t instanceof e14 && this.expr.isEquivalent(t.expr);
}
visitStatement(t, n) {
return t.visitExpressionStmt(this, n);
}
};
ti = zs("<unknown>"), Cn = class e15 {
static INSTANCE = new e15();
keyOf(t) {
if (t instanceof Ye && typeof t.value == "string") return `"${t.value}"`;
if (t instanceof Ye) return String(t.value);
if (t instanceof wt) return `/${t.body}/${t.flags ?? ""}`;
if (t instanceof Ct) {
let n = [];
for (let s of t.entries) n.push(this.keyOf(s));
return `[${n.join(",")}]`;
} else if (t instanceof kt) {
let n = [];
for (let s of t.entries) {
let r = s.key;
s.quoted && (r = `"${r}"`), n.push(r + ":" + this.keyOf(s.value));
}
return `{${n.join(",")}}`;
} else {
if (t instanceof St) return `import("${t.value.moduleName}", ${t.value.name})`;
if (t instanceof Je) return `read(${t.name})`;
if (t instanceof gt) return `typeof(${this.keyOf(t.expr)})`;
throw new Error(`${this.constructor.name} does not handle expressions of type ${t.constructor.name}`);
}
}
}, a = "@angular/core", l = class {
static NEW_METHOD = "factory";
static TRANSFORM_METHOD = "transform";
static PATCH_DEPS = "patchedDeps";
static core = { name: null, moduleName: a };
static namespaceHTML = { name: "\u0275\u0275namespaceHTML", moduleName: a };
static namespaceMathML = { name: "\u0275\u0275namespaceMathML", moduleName: a };
static namespaceSVG = { name: "\u0275\u0275namespaceSVG", moduleName: a };
static element = { name: "\u0275\u0275element", moduleName: a };
static elementStart = { name: "\u0275\u0275elementStart", moduleName: a };
static elementEnd = { name: "\u0275\u0275elementEnd", moduleName: a };
static domElement = { name: "\u0275\u0275domElement", moduleName: a };
static domElementStart = { name: "\u0275\u0275domElementStart", moduleName: a };
static domElementEnd = { name: "\u0275\u0275domElementEnd", moduleName: a };
static domElementContainer = { name: "\u0275\u0275domElementContainer", moduleName: a };
static domElementContainerStart = { name: "\u0275\u0275domElementContainerStart", moduleName: a };
static domElementContainerEnd = { name: "\u0275\u0275domElementContainerEnd", moduleName: a };
static domTemplate = { name: "\u0275\u0275domTemplate", moduleName: a };
static domListener = { name: "\u0275\u0275domListener", moduleName: a };
static advance = { name: "\u0275\u0275advance", moduleName: a };
static syntheticHostProperty = { name: "\u0275\u0275syntheticHostProperty", moduleName: a };
static syntheticHostListener = { name: "\u0275\u0275syntheticHostListener", moduleName: a };
static attribute = { name: "\u0275\u0275attribute", moduleName: a };
static classProp = { name: "\u0275\u0275classProp", moduleName: a };
static elementContainerStart = { name: "\u0275\u0275elementContainerStart", moduleName: a };
static elementContainerEnd = { name: "\u0275\u0275elementContainerEnd", moduleName: a };
static elementContainer = { name: "\u0275\u0275elementContainer", moduleName: a };
static styleMap = { name: "\u0275\u0275styleMap", moduleName: a };
static classMap = { name: "\u0275\u0275classMap", moduleName: a };
static styleProp = { name: "\u0275\u0275styleProp", moduleName: a };
static interpolate = { name: "\u0275\u0275interpolate", moduleName: a };
static interpolate1 = { name: "\u0275\u0275interpolate1", moduleName: a };
static interpolate2 = { name: "\u0275\u0275interpolate2", moduleName: a };
static interpolate3 = { name: "\u0275\u0275interpolate3", moduleName: a };
static interpolate4 = { name: "\u0275\u0275interpolate4", moduleName: a };
static interpolate5 = { name: "\u0275\u0275interpolate5", moduleName: a };
static interpolate6 = { name: "\u0275\u0275interpolate6", moduleName: a };
static interpolate7 = { name: "\u0275\u0275interpolate7", moduleName: a };
static interpolate8 = { name: "\u0275\u0275interpolate8", moduleName: a };
static interpolateV = { name: "\u0275\u0275interpolateV", moduleName: a };
static nextContext = { name: "\u0275\u0275nextContext", moduleName: a };
static resetView = { name: "\u0275\u0275resetView", moduleName: a };
static templateCreate = { name: "\u0275\u0275template", moduleName: a };
static defer = { name: "\u0275\u0275defer", moduleName: a };
static deferWhen = { name: "\u0275\u0275deferWhen", moduleName: a };
static deferOnIdle = { name: "\u0275\u0275deferOnIdle", moduleName: a };
static deferOnImmediate = { name: "\u0275\u0275deferOnImmediate", moduleName: a };
static deferOnTimer = { name: "\u0275\u0275deferOnTimer", moduleName: a };
static deferOnHover = { name: "\u0275\u0275deferOnHover", moduleName: a };
static deferOnInteraction = { name: "\u0275\u0275deferOnInteraction", moduleName: a };
static deferOnViewport = { name: "\u0275\u0275deferOnViewport", moduleName: a };
static deferPrefetchWhen = { name: "\u0275\u0275deferPrefetchWhen", moduleName: a };
static deferPrefetchOnIdle = { name: "\u0275\u0275deferPrefetchOnIdle", moduleName: a };
static deferPrefetchOnImmediate = { name: "\u0275\u0275deferPrefetchOnImmediate", moduleName: a };
static deferPrefetchOnTimer = { name: "\u0275\u0275deferPrefetchOnTimer", moduleName: a };
static deferPrefetchOnHover = { name: "\u0275\u0275deferPrefetchOnHover", moduleName: a };
static deferPrefetchOnInteraction = { name: "\u0275\u0275deferPrefetchOnInteraction", moduleName: a };
static deferPrefetchOnViewport = { name: "\u0275\u0275deferPrefetchOnViewport", moduleName: a };
static deferHydrateWhen = { name: "\u0275\u0275deferHydrateWhen", moduleName: a };
static deferHydrateNever = { name: "\u0275\u0275deferHydrateNever", moduleName: a };
static deferHydrateOnIdle = { name: "\u0275\u0275deferHydrateOnIdle", moduleName: a };
static deferHydrateOnImmediate = { name: "\u0275\u0275deferHydrateOnImmediate", moduleName: a };
static deferHydrateOnTimer = { name: "\u0275\u0275deferHydrateOnTimer", moduleName: a };
static deferHydrateOnHover = { name: "\u0275\u0275deferHydrateOnHover", moduleName: a };
static deferHydrateOnInteraction = { name: "\u0275\u0275deferHydrateOnInteraction", moduleName: a };
static deferHydrateOnViewport = { name: "\u0275\u0275deferHydrateOnViewport", moduleName: a };
static deferEnableTimerScheduling = { name: "\u0275\u0275deferEnableTimerScheduling", moduleName: a };
static conditionalCreate = { name: "\u0275\u0275conditionalCreate", moduleName: a };
static conditionalBranchCreate = { name: "\u0275\u0275conditionalBranchCreate", moduleName: a };
static conditional = { name: "\u0275\u0275conditional", moduleName: a };
static repeater = { name: "\u0275\u0275repeater", moduleName: a };
static repeaterCreate = { name: "\u0275\u0275repeaterCreate", moduleName: a };
static repeaterTrackByIndex = { name: "\u0275\u0275repeaterTrackByIndex", moduleName: a };
static repeaterTrackByIdentity = { name: "\u0275\u0275repeaterTrackByIdentity", moduleName: a };
static componentInstance = { name: "\u0275\u0275componentInstance", moduleName: a };
static text = { name: "\u0275\u0275text", moduleName: a };
static enableBindings = { name: "\u0275\u0275enableBindings", moduleName: a };
static disableBindings = { name: "\u0275\u0275disableBindings", moduleName: a };
static getCurrentView = { name: "\u0275\u0275getCurrentView", moduleName: a };
static textInterpolate = { name: "\u0275\u0275textInterpolate", moduleName: a };
static textInterpolate1 = { name: "\u0275\u0275textInterpolate1", moduleName: a };
static textInterpolate2 = { name: "\u0275\u0275textInterpolate2", moduleName: a };
static textInterpolate3 = { name: "\u0275\u0275textInterpolate3", moduleName: a };
static textInterpolate4 = { name: "\u0275\u0275textInterpolate4", moduleName: a };
static textInterpolate5 = { name: "\u0275\u0275textInterpolate5", moduleName: a };
static textInterpolate6 = { name: "\u0275\u0275textInterpolate6", moduleName: a };
static textInterpolate7 = { name: "\u0275\u0275textInterpolate7", moduleName: a };
static textInterpolate8 = { name: "\u0275\u0275textInterpolate8", moduleName: a };
static textInterpolateV = { name: "\u0275\u0275textInterpolateV", moduleName: a };
static restoreView = { name: "\u0275\u0275restoreView", moduleName: a };
static pureFunction0 = { name: "\u0275\u0275pureFunction0", moduleName: a };
static pureFunction1 = { name: "\u0275\u0275pureFunction1", moduleName: a };
static pureFunction2 = { name: "\u0275\u0275pureFunction2", moduleName: a };
static pureFunction3 = { name: "\u0275\u0275pureFunction3", moduleName: a };
static pureFunction4 = { name: "\u0275\u0275pureFunction4", moduleName: a };
static pureFunction5 = { name: "\u0275\u0275pureFunction5", moduleName: a };
static pureFunction6 = { name: "\u0275\u0275pureFunction6", moduleName: a };
static pureFunction7 = { name: "\u0275\u0275pureFunction7", moduleName: a };
static pureFunction8 = { name: "\u0275\u0275pureFunction8", moduleName: a };
static pureFunctionV = { name: "\u0275\u0275pureFunctionV", moduleName: a };
static pipeBind1 = { name: "\u0275\u0275pipeBind1", moduleName: a };
static pipeBind2 = { name: "\u0275\u0275pipeBind2", moduleName: a };
static pipeBind3 = { name: "\u0275\u0275pipeBind3", moduleName: a };
static pipeBind4 = { name: "\u0275\u0275pipeBind4", moduleName: a };
static pipeBindV = { name: "\u0275\u0275pipeBindV", moduleName: a };
static domProperty = { name: "\u0275\u0275domProperty", moduleName: a };
static ariaProperty = { name: "\u0275\u0275ariaProperty", moduleName: a };
static property = { name: "\u0275\u0275property", moduleName: a };
static control = { name: "\u0275\u0275control", moduleName: a };
static controlCreate = { name: "\u0275\u0275controlCreate", moduleName: a };
static animationEnterListener = { name: "\u0275\u0275animateEnterListener", moduleName: a };
static animationLeaveListener = { name: "\u0275\u0275animateLeaveListener", moduleName: a };
static animationEnter = { name: "\u0275\u0275animateEnter", moduleName: a };
static animationLeave = { name: "\u0275\u0275animateLeave", moduleName: a };
static i18n = { name: "\u0275\u0275i18n", moduleName: a };
static i18nAttributes = { name: "\u0275\u0275i18nAttributes", moduleName: a };
static i18nExp = { name: "\u0275\u0275i18nExp", moduleName: a };
static i18nStart = { name: "\u0275\u0275i18nStart", moduleName: a };
static i18nEnd = { name: "\u0275\u0275i18nEnd", moduleName: a };
static i18nApply = { name: "\u0275\u0275i18nApply", moduleName: a };
static i18nPostprocess = { name: "\u0275\u0275i18nPostprocess", moduleName: a };
static pipe = { name: "\u0275\u0275pipe", moduleName: a };
static projection = { name: "\u0275\u0275projection", moduleName: a };
static projectionDef = { name: "\u0275\u0275projectionDef", moduleName: a };
static reference = { name: "\u0275\u0275reference", moduleName: a };
static inject = { name: "\u0275\u0275inject", moduleName: a };
static injectAttribute = { name: "\u0275\u0275injectAttribute", moduleName: a };
static directiveInject = { name: "\u0275\u0275directiveInject", moduleName: a };
static invalidFactory = { name: "\u0275\u0275invalidFactory", moduleName: a };
static invalidFactoryDep = { name: "\u0275\u0275invalidFactoryDep", moduleName: a };
static templateRefExtractor = { name: "\u0275\u0275templateRefExtractor", moduleName: a };
static forwardRef = { name: "forwardRef", moduleName: a };
static resolveForwardRef = { name: "resolveForwardRef", moduleName: a };
static replaceMetadata = { name: "\u0275\u0275replaceMetadata", moduleName: a };
static getReplaceMetadataURL = { name: "\u0275\u0275getReplaceMetadataURL", moduleName: a };
static \u0275\u0275defineInjectable = { name: "\u0275\u0275defineInjectable", moduleName: a };
static declareInjectable = { name: "\u0275\u0275ngDeclareInjectable", moduleName: a };
static InjectableDeclaration = { name: "\u0275\u0275InjectableDeclaration", moduleName: a };
static resolveWindow = { name: "\u0275\u0275resolveWindow", moduleName: a };
static resolveDocument = { name: "\u0275\u0275resolveDocument", moduleName: a };
static resolveBody = { name: "\u0275\u0275resolveBody", moduleName: a };
static getComponentDepsFactory = { name: "\u0275\u0275getComponentDepsFactory", moduleName: a };
static defineComponent = { name: "\u0275\u0275defineComponent", moduleName: a };
static declareComponent = { name: "\u0275\u0275ngDeclareComponent", moduleName: a };
static setComponentScope = { name: "\u0275\u0275setComponentScope", moduleName: a };
static ChangeDetectionStrategy = { name: "ChangeDetectionStrategy", moduleName: a };
static ViewEncapsulation = { name: "ViewEncapsulation", moduleName: a };
static ComponentDeclaration = { name: "\u0275\u0275ComponentDeclaration", moduleName: a };
static FactoryDeclaration = { name: "\u0275\u0275FactoryDeclaration", moduleName: a };
static declareFactory = { name: "\u0275\u0275ngDeclareFactory", moduleName: a };
static FactoryTarget = { name: "\u0275\u0275FactoryTarget", moduleName: a };
static defineDirective = { name: "\u0275\u0275defineDirective", moduleName: a };
static declareDirective = { name: "\u0275\u0275ngDeclareDirective", moduleName: a };
static DirectiveDeclaration = { name: "\u0275\u0275DirectiveDeclaration", moduleName: a };
static InjectorDef = { name: "\u0275\u0275InjectorDef", moduleName: a };
static InjectorDeclaration = { name: "\u0275\u0275InjectorDeclaration", moduleName: a };
static defineInjector = { name: "\u0275\u0275defineInjector", moduleName: a };
static declareInjector = { name: "\u0275\u0275ngDeclareInjector", moduleName: a };
static NgModuleDeclaration = { name: "\u0275\u0275NgModuleDeclaration", moduleName: a };
static ModuleWithProviders = { name: "ModuleWithProviders", moduleName: a };
static defineNgModule = { name: "\u0275\u0275defineNgModule", moduleName: a };
static declareNgModule = { name: "\u0275\u0275ngDeclareNgModule", moduleName: a };
static setNgModuleScope = { name: "\u0275\u0275setNgModuleScope", moduleName: a };
static registerNgModuleType = { name: "\u0275\u0275registerNgModuleType", moduleName: a };
static PipeDeclaration = { name: "\u0275\u0275PipeDeclaration", moduleName: a };
static definePipe = { name: "\u0275\u0275definePipe", moduleName: a };
static declarePipe = { name: "\u0275\u0275ngDeclarePipe", moduleName: a };
static declareClassMetadata = { name: "\u0275\u0275ngDeclareClassMetadata", moduleName: a };
static declareClassMetadataAsync = { name: "\u0275\u0275ngDeclareClassMetadataAsync", moduleName: a };
static setClassMetadata = { name: "\u0275setClassMetadata", moduleName: a };
static setClassMetadataAsync = { name: "\u0275setClassMetadataAsync", moduleName: a };
static setClassDebugInfo = { name: "\u0275setClassDebugInfo", moduleName: a };
static queryRefresh = { name: "\u0275\u0275queryRefresh", moduleName: a };
static viewQuery = { name: "\u0275\u0275viewQuery", moduleName: a };
static loadQuery = { name: "\u0275\u0275loadQuery", moduleName: a };
static contentQuery = { name: "\u0275\u0275contentQuery", moduleName: a };
static viewQuerySignal = { name: "\u0275\u0275viewQuerySignal", moduleName: a };
static contentQuerySignal = { name: "\u0275\u0275contentQuerySignal", moduleName: a };
static queryAdvance = { name: "\u0275\u0275queryAdvance", moduleName: a };
static twoWayProperty = { name: "\u0275\u0275twoWayProperty", moduleName: a };
static twoWayBindingSet = { name: "\u0275\u0275twoWayBindingSet", moduleName: a };
static twoWayListener = { name: "\u0275\u0275twoWayListener", moduleName: a };
static declareLet = { name: "\u0275\u0275declareLet", moduleName: a };
static storeLet = { name: "\u0275\u0275storeLet", moduleName: a };
static readContextLet = { name: "\u0275\u0275readContextLet", moduleName: a };
static attachSourceLocations = { name: "\u0275\u0275attachSourceLocations", moduleName: a };
static NgOnChangesFeature = { name: "\u0275\u0275NgOnChangesFeature", moduleName: a };
static InheritDefinitionFeature = { name: "\u0275\u0275InheritDefinitionFeature", moduleName: a };
static ProvidersFeature = { name: "\u0275\u0275ProvidersFeature", moduleName: a };
static HostDirectivesFeature = { name: "\u0275\u0275HostDirectivesFeature", moduleName: a };
static ExternalStylesFeature = { name: "\u0275\u0275ExternalStylesFeature", moduleName: a };
static listener = { name: "\u0275\u0275listener", moduleName: a };
static getInheritedFactory = { name: "\u0275\u0275getInheritedFactory", moduleName: a };
static sanitizeHtml = { name: "\u0275\u0275sanitizeHtml", moduleName: a };
static sanitizeStyle = { name: "\u0275\u0275sanitizeStyle", moduleName: a };
static validateAttribute = { name: "\u0275\u0275validateAttribute", moduleName: a };
static sanitizeResourceUrl = { name: "\u0275\u0275sanitizeResourceUrl", moduleName: a };
static sanitizeScript = { name: "\u0275\u0275sanitizeScript", moduleName: a };
static sanitizeUrl = { name: "\u0275\u0275sanitizeUrl", moduleName: a };
static sanitizeUrlOrResourceUrl = { name: "\u0275\u0275sanitizeUrlOrResourceUrl", moduleName: a };
static trustConstantHtml = { name: "\u0275\u0275trustConstantHtml", moduleName: a };
static trustConstantResourceUrl = { name: "\u0275\u0275trustConstantResourceUrl", moduleName: a };
static inputDecorator = { name: "Input", moduleName: a };
static outputDecorator = { name: "Output", moduleName: a };
static viewChildDecorator = { name: "ViewChild", moduleName: a };
static viewChildrenDecorator = { name: "ViewChildren", moduleName: a };
static contentChildDecorator = { name: "ContentChild", moduleName: a };
static contentChildrenDecorator = { name: "ContentChildren", moduleName: a };
static InputSignalBrandWriteType = { name: "\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE", moduleName: a };
static UnwrapDirectiveSignalInputs = { name: "\u0275UnwrapDirectiveSignalInputs", moduleName: a };
static unwrapWritableSignal = { name: "\u0275unwrapWritableSignal", moduleName: a };
static assertType = { name: "\u0275assertType", moduleName: a };
}, At = class {
full;
major;
minor;
patch;
constructor(t) {
this.full = t;
let n = t.split(".");
this.major = n[0], this.minor = n[1], this.patch = n.slice(2).join(".");
}
}, ni = /* @__PURE__ */ new Map([[u.And, "&&"], [u.Bigger, ">"], [u.BiggerEquals, ">="], [u.BitwiseOr, "|"], [u.BitwiseAnd, "&"], [u.Divide, "/"], [u.Assign, "="], [u.Equals, "=="], [u.Identical, "==="], [u.Lower, "<"], [u.LowerEquals, "<="], [u.Minus, "-"], [u.Modulo, "%"], [u.Exponentiation, "**"], [u.Multiply, "*"], [u.NotEquals, "!="], [u.NotIdentical, "!=="], [u.NullishCoalesce, "??"], [u.Or, "||"], [u.Plus, "+"], [u.In, "in"], [u.AdditionAssignment, "+="], [u.SubtractionAssignment, "-="], [u.MultiplicationAssignment, "*="], [u.DivisionAssignment, "/="], [u.RemainderAssignment, "%="], [u.ExponentiationAssignment, "**="], [u.AndAssignment, "&&="], [u.OrAssignment, "||="], [u.NullishCoalesceAssignment, "??="]]);
(function(e22) {
e22[e22.Class = 0] = "Class", e22[e22.Function = 1] = "Function";
})(kn || (kn = {}));
Y = class {
start;
end;
constructor(t, n) {
this.start = t, this.end = n;
}
toAbsolute(t) {
return new B(t + this.start, t + this.end);
}
}, v = class {
span;
sourceSpan;
constructor(t, n) {
this.span = t, this.sourceSpan = n;
}
toString() {
return "AST";
}
}, Pe = class extends v {
nameSpan;
constructor(t, n, s) {
super(t, n), this.nameSpan = s;
}
}, A = class extends v {
visit(t, n = null) {
}
}, Q = class extends v {
visit(t, n = null) {
return t.visitImplicitReceiver(this, n);
}
}, It = class extends Q {
visit(t, n = null) {
return t.visitThisReceiver?.(this, n);
}
}, Le = class extends v {
expressions;
constructor(t, n, s) {
super(t, n), this.expressions = s;
}
visit(t, n = null) {
return t.visitChain(this, n);
}
}, Me = class extends v {
condition;
trueExp;
falseExp;
constructor(t, n, s, r, i) {
super(t, n), this.condition = s, this.trueExp = r, this.falseExp = i;
}
visit(t, n = null) {
return t.visitConditional(this, n);
}
}, X = class extends Pe {
receiver;
name;
constructor(t, n, s, r, i) {
super(t, n, s), this.receiver = r, this.name = i;
}
visit(t, n = null) {
return t.visitPropertyRead(this, n);
}
}, ce = class extends Pe {
receiver;
name;
constructor(t, n, s, r, i) {
super(t, n, s), this.receiver = r, this.name = i;
}
visit(t, n = null) {
return t.visitSafePropertyRead(this, n);
}
}, ue = class extends v {
receiver;
key;
constructor(t, n, s, r) {
super(t, n), this.receiver = s, this.key = r;
}
visit(t, n = null) {
return t.visitKeyedRead(this, n);
}
}, he = class extends v {
receiver;
key;
constructor(t, n, s, r) {
super(t, n), this.receiver = s, this.key = r;
}
visit(t, n = null) {
return t.visitSafeKeyedRead(this, n);
}
};
(function(e22) {
e22[e22.ReferencedByName = 0] = "ReferencedByName", e22[e22.ReferencedDirectly = 1] = "ReferencedDirectly";
})(be || (be = {}));
Re = class extends Pe {
exp;
name;
args;
type;
constructor(t, n, s, r, i, o, c) {
super(t, n, c), this.exp = s, this.name = r, this.args = i, this.type = o;
}
visit(t, n = null) {
return t.visitPipe(this, n);
}
}, k = class extends v {
value;
constructor(t, n, s) {
super(t, n), this.value = s;
}
visit(t, n = null) {
return t.visitLiteralPrimitive(this, n);
}
}, $e = class extends v {
expressions;
constructor(t, n, s) {
super(t, n), this.expressions = s;
}
visit(t, n = null) {
return t.visitLiteralArray(this, n);
}
}, De = class extends v {
keys;
values;
constructor(t, n, s, r) {
super(t, n), this.keys = s, this.values = r;
}
visit(t, n = null) {
return t.visitLiteralMap(this, n);
}
}, Vt = class extends v {
strings;
expressions;
constructor(t, n, s, r) {
super(t, n), this.strings = s, this.expressions = r;
}
visit(t, n = null) {
return t.visitInterpolation(this, n);
}
}, y = class extends v {
operation;
left;
right;
constructor(t, n, s, r, i) {
super(t, n), this.operation = s, this.left = r, this.right = i;
}
visit(t, n = null) {
return t.visitBinary(this, n);
}
static isAssignmentOperation(t) {
return t === "=" || t === "+=" || t === "-=" || t === "*=" || t === "/=" || t === "%=" || t === "**=" || t === "&&=" || t === "||=" || t === "??=";
}
}, J = class e16 extends y {
operator;
expr;
left = null;
right = null;
operation = null;
static createMinus(t, n, s) {
return new e16(t, n, "-", s, "-", new k(t, n, 0), s);
}
static createPlus(t, n, s) {
return new e16(t, n, "+", s, "-", s, new k(t, n, 0));
}
constructor(t, n, s, r, i, o, c) {
super(t, n, i, o, c), this.operator = s, this.expr = r;
}
visit(t, n = null) {
return t.visitUnary !== void 0 ? t.visitUnary(this, n) : t.visitBinary(this, n);
}
}, K = class extends v {
expression;
constructor(t, n, s) {
super(t, n), this.expression = s;
}
visit(t, n = null) {
return t.visitPrefixNot(this, n);
}
}, Z = class extends v {
expression;
constructor(t, n, s) {
super(t, n), this.expression = s;
}
visit(t, n = null) {
return t.visitTypeofExpression(this, n);
}
}, ee = class extends v {
expression;
constructor(t, n, s) {
super(t, n), this.expression = s;
}
visit(t, n = null) {
return t.visitVoidExpression(this, n);
}
}, Be = class extends v {
expression;
constructor(t, n, s) {
super(t, n), this.expression = s;
}
visit(t, n = null) {
return t.visitNonNullAssert(this, n);
}
}, Oe = class extends v {
receiver;
args;
argumentSpan;
constructor(t, n, s, r, i) {
super(t, n), this.receiver = s, this.args = r, this.argumentSpan = i;
}
visit(t, n = null) {
return t.visitCall(this, n);
}
}, pe = class extends v {
receiver;
args;
argumentSpan;
constructor(t, n, s, r, i) {
super(t, n), this.receiver = s, this.args = r, this.argumentSpan = i;
}
visit(t, n = null) {
return t.visitSafeCall(this, n);
}
}, fe = class extends v {
tag;
template;
constructor(t, n, s, r) {
super(t, n), this.tag = s, this.template = r;
}
visit(t, n) {
return t.visitTaggedTemplateLiteral(this, n);
}
}, de = class extends v {
elements;
expressions;
constructor(t, n, s, r) {
super(t, n), this.elements = s, this.expressions = r;
}
visit(t, n) {