@base44-preview/cli 0.2.2-pr.678.b8808dc → 0.2.2-pr.679.e8470cb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -37494,7 +37494,7 @@ function Qt2(e) {
37494
37494
  return ft3(e, (t) => Dc(t));
37495
37495
  }
37496
37496
  function qe(e, t = $r2) {
37497
- return ft3(e, (r) => typeof r == "string" ? L3(t, r.split(`
37497
+ return ft3(e, (r) => typeof r == "string" ? L2(t, r.split(`
37498
37498
  `)) : r);
37499
37499
  }
37500
37500
  function fc(e) {
@@ -37559,7 +37559,7 @@ function P2(e, t = "", r = {}) {
37559
37559
  function yt4(e, t) {
37560
37560
  return de2(e), { type: Ve3, contents: e, groupId: t.groupId, negate: t.negate };
37561
37561
  }
37562
- function L3(e, t) {
37562
+ function L2(e, t) {
37563
37563
  de2(e), Kr(t);
37564
37564
  let r = [];
37565
37565
  for (let n = 0;n < t.length; n++)
@@ -37908,7 +37908,7 @@ function bc(e, t, r) {
37908
37908
  for (let { cells: D } of y.filter((F) => !F.hasLineBreak))
37909
37909
  for (let [F, C] of D.entries())
37910
37910
  c[F] = Math.max(c[F], ot3(C));
37911
- return [je2, "`", m([E, L3(E, y.map((D) => L3(" | ", D.cells.map((F, C) => D.hasLineBreak ? F : F + " ".repeat(c[C] - ot3(F))))))]), E, "`"];
37911
+ return [je2, "`", m([E, L2(E, y.map((D) => L2(" | ", D.cells.map((F, C) => D.hasLineBreak ? F : F + " ".repeat(c[C] - ot3(F))))))]), E, "`"];
37912
37912
  }
37913
37913
  }
37914
37914
  function Pc(e, t) {
@@ -37998,13 +37998,13 @@ async function co2(e, t, r) {
37998
37998
  let h = null;
37999
37999
  O ? h = Mc(F) : h = await e(D, { parser: "graphql" }), h ? (h = tn2(h, false), !c && b && o.push(""), o.push(h), !y && B && o.push("")) : !c && !y && b && o.push(""), d && o.push(d);
38000
38000
  }
38001
- return ["`", m([E, L3(E, o)]), E, "`"];
38001
+ return ["`", m([E, L2(E, o)]), E, "`"];
38002
38002
  }
38003
38003
  function Mc(e) {
38004
38004
  let t = [], r = false, n = e.map((s) => s.trim());
38005
38005
  for (let [s, i] of n.entries())
38006
38006
  i !== "" && (n[s - 1] === "" && r ? t.push([E, i]) : t.push(i), r = true);
38007
- return t.length === 0 ? null : L3(E, t);
38007
+ return t.length === 0 ? null : L2(E, t);
38008
38008
  }
38009
38009
  function lo2({ node: e, parent: t }) {
38010
38010
  return rn2({ node: e, parent: t }, "GraphQL") || t && (t.type === "TaggedTemplateExpression" && (t.tag.type === "MemberExpression" && t.tag.object.name === "graphql" && t.tag.property.name === "experimental" || t.tag.type === "Identifier" && (t.tag.name === "gql" || t.tag.name === "graphql")) || t.type === "CallExpression" && t.callee.type === "Identifier" && t.callee.name === "graphql");
@@ -38158,7 +38158,7 @@ function wo(e, t) {
38158
38158
  function Kc(e) {
38159
38159
  let t = e.value.split(`
38160
38160
  `);
38161
- return ["/*", L3(E, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
38161
+ return ["/*", L2(E, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
38162
38162
  }
38163
38163
  function ds(e, t) {
38164
38164
  if (e.isRoot)
@@ -38636,7 +38636,7 @@ function v2(e, t, r = {}) {
38636
38636
  c.leading || c.trailing || c.marker !== i || !o(c) || u.push(As(e, t));
38637
38637
  }, "comments"), u.length === 0)
38638
38638
  return "";
38639
- let p = L3(E, u);
38639
+ let p = L2(E, u);
38640
38640
  return s ? m([E, p]) : p;
38641
38641
  }
38642
38642
  function Mt3(e, t) {
@@ -38768,7 +38768,7 @@ function Ts(e, t, r, n, s) {
38768
38768
  return [l(r())];
38769
38769
  let o = [];
38770
38770
  dr2(i.operator, i.left.operator) ? o = e.call(() => Ts(e, t, r, true, s), "left") : o.push(l(r("left")));
38771
- let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ", L3([A, ": "], e.map(() => xe(2, l(r())), "arguments"))])) : "", d;
38771
+ let u = er2(i), p = i.right.type === "ChainExpression" ? i.right.expression : i.right, c = (i.operator === "|>" || i.type === "NGPipeExpression" || yl(e, t)) && !Ee2(t.originalText, p), D = !T2(p, x3.Leading, Hr) && Ee2(t.originalText, p), F = i.type === "NGPipeExpression" ? "|" : i.operator, C = i.type === "NGPipeExpression" && i.arguments.length > 0 ? l(m([f, ": ", L2([A, ": "], e.map(() => xe(2, l(r())), "arguments"))])) : "", d;
38772
38772
  if (u)
38773
38773
  d = [F, Ee2(t.originalText, p) ? m([A, r("right"), C]) : [" ", r("right"), C]];
38774
38774
  else {
@@ -38816,8 +38816,8 @@ function un2(e, t, r) {
38816
38816
  return o || (C = xe(2, C)), De2(e, C, t);
38817
38817
  }, "types"), p = "", c = "";
38818
38818
  if (Yr2(e) && ({ leading: p, trailing: c } = Mt3(e, t)), o)
38819
- return [p, L3(" | ", u), c];
38820
- let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]), L3([A, "| "], u)];
38819
+ return [p, L2(" | ", u), c];
38820
+ let y = i && !Ee2(t.originalText, n), D = [P2([y ? A : "", "| "]), L2([A, "| "], u)];
38821
38821
  if (ge2(e, t))
38822
38822
  return [p, l([m(D), f]), c];
38823
38823
  let F = [p, l(D)];
@@ -39079,7 +39079,7 @@ function Xo(e, t, r) {
39079
39079
  return _.length > 0 && N4(0, _, -1).needsParens ? ["(", ...re, ")"] : re;
39080
39080
  }
39081
39081
  function O(_) {
39082
- return _.length === 0 ? "" : m([E, L3(E, _.map(B))]);
39082
+ return _.length === 0 ? "" : m([E, L2(E, _.map(B))]);
39083
39083
  }
39084
39084
  let h = p.map(B), g = h, S = b ? 3 : 2, j = p.flat(), U = j.slice(1, -1).some((_) => T2(_.node, x3.Leading)) || j.slice(0, -1).some((_) => T2(_.node, x3.Trailing)) || p[S] && T2(p[S][0].node, x3.Leading);
39085
39085
  if (p.length <= S && !U && !p.some((_) => N4(0, _, -1).hasTrailingEmptyLine))
@@ -39099,7 +39099,7 @@ function vt4(e, t, r) {
39099
39099
  if ($t3(e, () => {
39100
39100
  D.push(r());
39101
39101
  }), !(p && D[0].label?.embed))
39102
- return [s ? "new " : "", $o(e, r), i, u, "(", L3(", ", D), ")"];
39102
+ return [s ? "new " : "", $o(e, r), i, u, "(", L2(", ", D), ")"];
39103
39103
  }
39104
39104
  let c = n.type === "ImportExpression" || n.type === "TSImportType" || n.type === "TSExternalModuleReference";
39105
39105
  if (!c && !s && Tt4(n.callee) && !e.call(() => ge2(e, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : []))
@@ -39611,9 +39611,9 @@ function mu(e, t, r) {
39611
39611
  case "JSXIdentifier":
39612
39612
  return n.name;
39613
39613
  case "JSXNamespacedName":
39614
- return L3(":", [r("namespace"), r("name")]);
39614
+ return L2(":", [r("namespace"), r("name")]);
39615
39615
  case "JSXMemberExpression":
39616
- return L3(".", [r("object"), r("property")]);
39616
+ return L2(".", [r("object"), r("property")]);
39617
39617
  case "JSXSpreadAttribute":
39618
39618
  case "JSXSpreadChild":
39619
39619
  return am(e, t, r);
@@ -39677,7 +39677,7 @@ function yu(e, t, r) {
39677
39677
  case "NGPipeExpression":
39678
39678
  return on7(e, t, r);
39679
39679
  case "NGChainedExpression":
39680
- return l(L3([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
39680
+ return l(L2([";", A], e.map(() => fm(e) ? r() : ["(", r(), ")"], "expressions")));
39681
39681
  case "NGEmptyExpression":
39682
39682
  return "";
39683
39683
  case "NGMicrosyntax":
@@ -39710,17 +39710,17 @@ function fm({ node: e }) {
39710
39710
  }
39711
39711
  function Ms2(e, t, r) {
39712
39712
  let { node: n } = e;
39713
- return l([L3(A, e.map(r, "decorators")), du(n, t) ? E : A]);
39713
+ return l([L2(A, e.map(r, "decorators")), du(n, t) ? E : A]);
39714
39714
  }
39715
39715
  function Eu(e, t, r) {
39716
- return Cu(e.node) ? [L3(E, e.map(r, "declaration", "decorators")), E] : "";
39716
+ return Cu(e.node) ? [L2(E, e.map(r, "declaration", "decorators")), E] : "";
39717
39717
  }
39718
39718
  function Fu(e, t, r) {
39719
39719
  let { node: n, parent: s } = e, { decorators: i } = n;
39720
39720
  if (!R3(i) || Cu(s) || nr2(e))
39721
39721
  return "";
39722
39722
  let o = n.type === "ClassExpression" || n.type === "ClassDeclaration" || du(n, t);
39723
- return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "", L3(A, e.map(r, "decorators")), A];
39723
+ return [e.key === "declaration" && Di2(s) ? E : o ? ke3 : "", L2(A, e.map(r, "decorators")), A];
39724
39724
  }
39725
39725
  function du(e, t) {
39726
39726
  return e.decorators.some((r) => Z3(t.originalText, I3(r)));
@@ -39775,7 +39775,7 @@ function dm(e, t, { signatureDocs: r, shouldBreak: n }) {
39775
39775
  if (r.length === 1)
39776
39776
  return r[0];
39777
39777
  let { parent: s, key: i } = e;
39778
- return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A, L3([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L3([" =>", A], r), { shouldBreak: n }) : l(m(L3([" =>", A], r)), { shouldBreak: n });
39778
+ return i !== "callee" && Dt2(s) || Te2(s) ? l([r[0], " =>", m([A, L2([" =>", A], r.slice(1))])], { shouldBreak: n }) : i === "callee" && Dt2(s) || t.assignmentLayout ? l(L2([" =>", A], r), { shouldBreak: n }) : l(m(L2([" =>", A], r)), { shouldBreak: n });
39779
39779
  }
39780
39780
  function Cm(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: i, shouldPutBodyOnSameLine: o }) {
39781
39781
  let { node: u, parent: p } = e, c = r.expandLastArg && ie(t, "all") ? P2(",") : "", y = (r.expandLastArg || p.type === "JSXExpressionContainer") && !T2(u) ? f : "";
@@ -39957,7 +39957,7 @@ function vs2(e, t, r, n) {
39957
39957
  let { node: s } = e;
39958
39958
  if (!R3(s[n]))
39959
39959
  return "";
39960
- let i = v2(e, t, { marker: n }), o = L3([",", A], e.map(r, n));
39960
+ let i = v2(e, t, { marker: n }), o = L2([",", A], e.map(r, n));
39961
39961
  if (!Pu(s)) {
39962
39962
  let u = [`${n} `, i, o];
39963
39963
  return ku(e) ? [A, l(u)] : [" ", u];
@@ -39999,12 +39999,12 @@ function wu(e, t, r) {
39999
39999
  let n = e.map(r, "program", "body", 0, "params");
40000
40000
  if (n.length === 1)
40001
40001
  return n[0];
40002
- let s = L3([",", A], n);
40002
+ let s = L2([",", A], n);
40003
40003
  return t.__isVueForBindingLeft ? ["(", m([f, l(s)]), f, ")"] : s;
40004
40004
  }
40005
40005
  if (t.__isEmbeddedTypescriptGenericParameters) {
40006
40006
  let n = e.map(r, "program", "body", 0, "typeParameters", "params");
40007
- return L3([",", A], n);
40007
+ return L2([",", A], n);
40008
40008
  }
40009
40009
  }
40010
40010
  function Nu(e, t) {
@@ -40140,7 +40140,7 @@ function Gu(e, t, r) {
40140
40140
  o.push(r());
40141
40141
  else
40142
40142
  throw new Qe2(n, "specifier");
40143
- }, "specifiers"), s.push(L3(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p) => T2(p)) ? s.push(l(["{", m([t.bracketSpacing ? A : f, L3([",", A], o)]), P2(ie(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
40143
+ }, "specifiers"), s.push(L2(", ", i)), o.length > 0 && (i.length > 0 && s.push(", "), o.length > 1 || i.length > 0 || n.specifiers.some((p) => T2(p)) ? s.push(l(["{", m([t.bracketSpacing ? A : f, L2([",", A], o)]), P2(ie(t) ? "," : ""), t.bracketSpacing ? A : f, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...o, t.bracketSpacing ? " " : "", "}"]));
40144
40144
  } else
40145
40145
  s.push("{}");
40146
40146
  return s;
@@ -40390,7 +40390,7 @@ function Hu(e, t, r, n) {
40390
40390
  p ? u.push(r()) : u.push(",", m([A, r()]));
40391
40391
  }, "expressions"), l(u);
40392
40392
  }
40393
- let o = L3([",", A], e.map(r, "expressions"));
40393
+ let o = L2([",", A], e.map(r, "expressions"));
40394
40394
  return (i.type === "ReturnStatement" || i.type === "ThrowStatement") && e.key === "argument" || i.type === "ArrowFunctionExpression" && e.key === "body" ? l(P2([m([f, o]), f], o)) : l(o);
40395
40395
  }
40396
40396
  case "ThisExpression":
@@ -40451,7 +40451,7 @@ function Hu(e, t, r, n) {
40451
40451
  }
40452
40452
  return ["catch ", r("body")];
40453
40453
  case "SwitchStatement":
40454
- return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E, L3(E, e.map(({ node: i, isLast: o }) => [r(), !o && oe(i, t) ? E : ""], "cases"))]) : "", E, "}"];
40454
+ return [l(["switch (", m([f, r("discriminant")]), f, ")"]), " {", s.cases.length > 0 ? m([E, L2(E, e.map(({ node: i, isLast: o }) => [r(), !o && oe(i, t) ? E : ""], "cases"))]) : "", E, "}"];
40455
40455
  case "SwitchCase": {
40456
40456
  let i = [];
40457
40457
  s.test ? i.push("case ", r("test"), ":") : i.push("default:"), T2(s, x3.Dangling) && i.push(" ", v2(e, t));
@@ -40631,7 +40631,7 @@ function na(e, t, r) {
40631
40631
  }
40632
40632
  function sa(e, t, r) {
40633
40633
  let { node: n } = e;
40634
- return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E, L3(E, e.map(({ node: s, isLast: i }) => [r(), !i && oe(s, t) ? E : ""], "cases"))]) : "", E, "}"];
40634
+ return [l(["match (", m([f, r("argument")]), f, ")"]), " {", n.cases.length > 0 ? m([E, L2(E, e.map(({ node: s, isLast: i }) => [r(), !i && oe(s, t) ? E : ""], "cases"))]) : "", E, "}"];
40635
40635
  }
40636
40636
  function ia(e, t, r) {
40637
40637
  let { node: n } = e, s = T2(n, x3.Dangling) ? [" ", v2(e, t)] : [], i = n.type === "MatchStatementCase" ? [" ", r("body")] : m([A, r("body"), ","]);
@@ -40660,11 +40660,11 @@ function oa(e, t, r) {
40660
40660
  return [n.kind, " ", r("id")];
40661
40661
  case "MatchObjectPattern": {
40662
40662
  let s = e.map(r, "properties");
40663
- return n.rest && s.push(r("rest")), l(["{", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
40663
+ return n.rest && s.push(r("rest")), l(["{", m([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "}"]);
40664
40664
  }
40665
40665
  case "MatchArrayPattern": {
40666
40666
  let s = e.map(r, "elements");
40667
- return n.rest && s.push(r("rest")), l(["[", m([f, L3([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
40667
+ return n.rest && s.push(r("rest")), l(["[", m([f, L2([",", A], s)]), n.rest ? "" : P2(","), f, "]"]);
40668
40668
  }
40669
40669
  case "MatchObjectPatternProperty":
40670
40670
  return n.shorthand ? r("pattern") : l([r("key"), ":", m([A, r("pattern")])]);
@@ -40690,8 +40690,8 @@ function uD(e, t, r) {
40690
40690
  return o || (c = xe(2, c)), De2(e, c, t);
40691
40691
  }, "patterns");
40692
40692
  if (o)
40693
- return L3(" | ", u);
40694
- let p = [P2(["| "]), L3([A, "| "], u)];
40693
+ return L2(" | ", u);
40694
+ let p = [P2(["| "]), L2([A, "| "], u)];
40695
40695
  return ge2(e, t) ? l([m([P2([f]), p]), f]) : s.type === "MatchArrayPattern" && s.elements.length > 1 ? l([m([P2(["(", f]), p]), f, P2(")")]) : l(i ? m(p) : p);
40696
40696
  }
40697
40697
  function aa(e, t, r) {
@@ -40726,9 +40726,9 @@ function Gt2(e, t, r, n) {
40726
40726
  return r(n);
40727
40727
  let i = It3(e.grandparent), o = e.match((c) => !(c[n].length === 1 && Je3(c[n][0])), undefined, (c, y) => y === "typeAnnotation", (c) => c.type === "Identifier", Bs2);
40728
40728
  if (s[n].length === 0 || !o && (i || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || Jo(s[n][0]))))
40729
- return ["<", L3(", ", e.map(r, n)), pD(e, t), ">"];
40729
+ return ["<", L2(", ", e.map(r, n)), pD(e, t), ">"];
40730
40730
  let p = s.type === "TSTypeParameterInstantiation" ? "" : aD(e, t, n) ? "," : ie(t) ? P2(",") : "";
40731
- return l(["<", m([f, L3([",", A], e.map(r, n))]), p, f, ">"]);
40731
+ return l(["<", m([f, L2([",", A], e.map(r, n))]), p, f, ">"]);
40732
40732
  }
40733
40733
  function pD(e, t) {
40734
40734
  let { node: r } = e;
@@ -40928,7 +40928,7 @@ function pa(e, t, r) {
40928
40928
  }
40929
40929
  }
40930
40930
  function ca(e, t, r) {
40931
- let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f, L3([", ", f], e.map(r, "parameters"))]), s, f]);
40931
+ let { node: n } = e, s = n.parameters.length > 1 ? P2(ie(t) ? "," : "") : "", i = l([m([f, L2([", ", f], e.map(r, "parameters"))]), s, f]);
40932
40932
  return [e.key === "body" && e.parent.type === "ClassBody" && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? i : "", "]", G2(e, r), he2(e, t)];
40933
40933
  }
40934
40934
  function Us2(e, t, r) {
@@ -41104,10 +41104,10 @@ function yD(e, t, r) {
41104
41104
  if (n.elements.length === 0)
41105
41105
  return "[]";
41106
41106
  let s = e.map(() => e.node === null ? "null" : r(), "elements");
41107
- return ["[", m([E, L3([",", E], s)]), E, "]"];
41107
+ return ["[", m([E, L2([",", E], s)]), E, "]"];
41108
41108
  }
41109
41109
  case "ObjectExpression":
41110
- return n.properties.length === 0 ? "{}" : ["{", m([E, L3([",", E], e.map(r, "properties"))]), E, "}"];
41110
+ return n.properties.length === 0 ? "{}" : ["{", m([E, L2([",", E], e.map(r, "properties"))]), E, "}"];
41111
41111
  case "ObjectProperty":
41112
41112
  return [r("key"), ": ", r("value")];
41113
41113
  case "UnaryExpression":
@@ -41954,7 +41954,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
41954
41954
  return e;
41955
41955
  }, ut2 = (e, t, i) => (i = e != null ? Ii3(Ri3(e)) : {}, Bi3(t || !e || !e.__esModule ? Be2(i, "default", { value: e, enumerable: true }) : i, e)), Qt3, $e2, Pi3, Di3, dt5, Mi2 = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", mt5 = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", De3, Me3 = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Fi3, ji3, Ui3, Gi3, C2 = function(t, i) {
41956
41956
  i === undefined && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
41957
- }, O2, N5, Je4, a3, L4, qi3, yt5, k4, gt5, Ji3, Ki3, $3, ht5, pt5, Hi3, ne3 = function(t, i) {
41957
+ }, O2, N5, Je4, a3, L3, qi3, yt5, k4, gt5, Ji3, Ki3, $3, ht5, pt5, Hi3, ne3 = function(t, i) {
41958
41958
  this.line = t, this.column = i;
41959
41959
  }, be3 = function(t, i, s) {
41960
41960
  this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
@@ -41964,7 +41964,7 @@ var Ii3, Be2, Ni3, Li3, Ri3, Vi3, ot4 = (e, t) => () => (t || e((t = { exports:
41964
41964
  t.allowReserved !== true && (r = De3[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H4(r);
41965
41965
  var o = (r ? r + " " : "") + De3.strict;
41966
41966
  this.reservedWordsStrict = H4(o), this.reservedWordsStrictBind = H4(o + " " + De3.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
41967
- `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L4).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a3.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe2), this.regexpState = null, this.privateNameStack = [];
41967
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L3).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a3.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe2), this.regexpState = null, this.privateNameStack = [];
41968
41968
  }, U4, w2, zi3, Ce4 = function() {
41969
41969
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
41970
41970
  }, d2, ze3, Qi3, Yi3, ae2 = 1, Ge4 = 2, At5 = 4, D3, F2 = function(t, i, s, r, o) {
@@ -42288,8 +42288,8 @@ var init_acorn = __esm(() => {
42288
42288
  N5 = { startsExpr: true };
42289
42289
  Je4 = {};
42290
42290
  a3 = { num: new C2("num", N5), regexp: new C2("regexp", N5), string: new C2("string", N5), name: new C2("name", N5), privateId: new C2("privateId", N5), eof: new C2("eof"), bracketL: new C2("[", { beforeExpr: true, startsExpr: true }), bracketR: new C2("]"), braceL: new C2("{", { beforeExpr: true, startsExpr: true }), braceR: new C2("}"), parenL: new C2("(", { beforeExpr: true, startsExpr: true }), parenR: new C2(")"), comma: new C2(",", O2), semi: new C2(";", O2), colon: new C2(":", O2), dot: new C2("."), question: new C2("?", O2), questionDot: new C2("?."), arrow: new C2("=>", O2), template: new C2("template"), invalidTemplate: new C2("invalidTemplate"), ellipsis: new C2("...", O2), backQuote: new C2("`", N5), dollarBraceL: new C2("${", { beforeExpr: true, startsExpr: true }), eq: new C2("=", { beforeExpr: true, isAssign: true }), assign: new C2("_=", { beforeExpr: true, isAssign: true }), incDec: new C2("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new C2("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: V4("||", 1), logicalAND: V4("&&", 2), bitwiseOR: V4("|", 3), bitwiseXOR: V4("^", 4), bitwiseAND: V4("&", 5), equality: V4("==/!=/===/!==", 6), relational: V4("</>/<=/>=", 7), bitShift: V4("<</>>/>>>", 8), plusMin: new C2("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: V4("%", 10), star: V4("*", 10), slash: V4("/", 10), starstar: new C2("**", { beforeExpr: true }), coalesce: V4("??", 1), _break: _3("break"), _case: _3("case", O2), _catch: _3("catch"), _continue: _3("continue"), _debugger: _3("debugger"), _default: _3("default", O2), _do: _3("do", { isLoop: true, beforeExpr: true }), _else: _3("else", O2), _finally: _3("finally"), _for: _3("for", { isLoop: true }), _function: _3("function", N5), _if: _3("if"), _return: _3("return", O2), _switch: _3("switch"), _throw: _3("throw", O2), _try: _3("try"), _var: _3("var"), _const: _3("const"), _while: _3("while", { isLoop: true }), _with: _3("with"), _new: _3("new", { beforeExpr: true, startsExpr: true }), _this: _3("this", N5), _super: _3("super", N5), _class: _3("class", N5), _extends: _3("extends", O2), _export: _3("export"), _import: _3("import", N5), _null: _3("null", N5), _true: _3("true", N5), _false: _3("false", N5), _in: _3("in", { beforeExpr: true, binop: 7 }), _instanceof: _3("instanceof", { beforeExpr: true, binop: 7 }), _typeof: _3("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: _3("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: _3("delete", { beforeExpr: true, prefix: true, startsExpr: true }) };
42291
- L4 = /\r\n?|\n|\u2028|\u2029/;
42292
- qi3 = new RegExp(L4.source, "g");
42291
+ L3 = /\r\n?|\n|\u2028|\u2029/;
42292
+ qi3 = new RegExp(L3.source, "g");
42293
42293
  yt5 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
42294
42294
  k4 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
42295
42295
  gt5 = Object.prototype;
@@ -42384,7 +42384,7 @@ var init_acorn = __esm(() => {
42384
42384
  if ((t[1] || t[2]) === "use strict") {
42385
42385
  k4.lastIndex = e + t[0].length;
42386
42386
  var i = k4.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
42387
- return r === ";" || r === "}" || L4.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
42387
+ return r === ";" || r === "}" || L3.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
42388
42388
  }
42389
42389
  e += t[0].length, k4.lastIndex = e, e += k4.exec(this.input)[0].length, this.input[e] === ";" && e++;
42390
42390
  }
@@ -42402,7 +42402,7 @@ var init_acorn = __esm(() => {
42402
42402
  this.eatContextual(e) || this.unexpected();
42403
42403
  };
42404
42404
  w2.canInsertSemicolon = function() {
42405
- return this.type === a3.eof || this.type === a3.braceR || L4.test(this.input.slice(this.lastTokEnd, this.start));
42405
+ return this.type === a3.eof || this.type === a3.braceR || L3.test(this.input.slice(this.lastTokEnd, this.start));
42406
42406
  };
42407
42407
  w2.insertSemicolon = function() {
42408
42408
  if (this.canInsertSemicolon())
@@ -42485,14 +42485,14 @@ var init_acorn = __esm(() => {
42485
42485
  return false;
42486
42486
  k4.lastIndex = this.pos;
42487
42487
  var e = k4.exec(this.input), t = this.pos + e[0].length, i;
42488
- return !L4.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X5(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
42488
+ return !L3.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X5(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
42489
42489
  };
42490
42490
  d2.isUsingKeyword = function(e, t) {
42491
42491
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
42492
42492
  return false;
42493
42493
  k4.lastIndex = this.pos;
42494
42494
  var i = k4.exec(this.input), s = this.pos + i[0].length;
42495
- if (L4.test(this.input.slice(this.pos, s)))
42495
+ if (L3.test(this.input.slice(this.pos, s)))
42496
42496
  return false;
42497
42497
  if (e) {
42498
42498
  var r = s + 5, o;
@@ -42500,7 +42500,7 @@ var init_acorn = __esm(() => {
42500
42500
  return false;
42501
42501
  k4.lastIndex = r;
42502
42502
  var u = k4.exec(this.input);
42503
- if (u && L4.test(this.input.slice(r, r + u[0].length)))
42503
+ if (u && L3.test(this.input.slice(r, r + u[0].length)))
42504
42504
  return false;
42505
42505
  }
42506
42506
  if (t) {
@@ -42630,7 +42630,7 @@ var init_acorn = __esm(() => {
42630
42630
  return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
42631
42631
  };
42632
42632
  d2.parseThrowStatement = function(e) {
42633
- return this.next(), L4.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
42633
+ return this.next(), L3.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
42634
42634
  };
42635
42635
  Yi3 = [];
42636
42636
  d2.parseCatchClauseParam = function() {
@@ -43097,7 +43097,7 @@ var init_acorn = __esm(() => {
43097
43097
  };
43098
43098
  ee.braceIsBlock = function(e) {
43099
43099
  var t = this.curContext();
43100
- return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ? L4.test(this.input.slice(this.lastTokEnd, this.start)) : e === a3._else || e === a3.semi || e === a3.eof || e === a3.parenR || e === a3.arrow ? true : e === a3.braceL ? t === T3.b_stat : e === a3._var || e === a3._const || e === a3.name ? false : !this.exprAllowed;
43100
+ return t === T3.f_expr || t === T3.f_stat ? true : e === a3.colon && (t === T3.b_stat || t === T3.b_expr) ? !t.isExpr : e === a3._return || e === a3.name && this.exprAllowed ? L3.test(this.input.slice(this.lastTokEnd, this.start)) : e === a3._else || e === a3.semi || e === a3.eof || e === a3.parenR || e === a3.arrow ? true : e === a3.braceL ? t === T3.b_stat : e === a3._var || e === a3._const || e === a3.name ? false : !this.exprAllowed;
43101
43101
  };
43102
43102
  ee.inGeneratorContext = function() {
43103
43103
  for (var e = this.context.length - 1;e >= 1; e--) {
@@ -43134,7 +43134,7 @@ var init_acorn = __esm(() => {
43134
43134
  };
43135
43135
  a3.incDec.updateContext = function() {};
43136
43136
  a3._function.updateContext = a3._class.updateContext = function(e) {
43137
- e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return && L4.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a3.colon || e === a3.braceL) && this.curContext() === T3.b_stat) ? this.context.push(T3.f_expr) : this.context.push(T3.f_stat), this.exprAllowed = false;
43137
+ e.beforeExpr && e !== a3._else && !(e === a3.semi && this.curContext() !== T3.p_stat) && !(e === a3._return && L3.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a3.colon || e === a3.braceL) && this.curContext() === T3.b_stat) ? this.context.push(T3.f_expr) : this.context.push(T3.f_stat), this.exprAllowed = false;
43138
43138
  };
43139
43139
  a3.colon.updateContext = function() {
43140
43140
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
@@ -43467,7 +43467,7 @@ var init_acorn = __esm(() => {
43467
43467
  return this.next(), this.finishNode(i, "TemplateLiteral");
43468
43468
  };
43469
43469
  g.isAsyncProp = function(e) {
43470
- return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !L4.test(this.input.slice(this.lastTokEnd, this.start));
43470
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a3.name || this.type === a3.num || this.type === a3.string || this.type === a3.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a3.star) && !L3.test(this.input.slice(this.lastTokEnd, this.start));
43471
43471
  };
43472
43472
  g.parseObj = function(e, t) {
43473
43473
  var i = this.startNode(), s = true, r = {};
@@ -44370,7 +44370,7 @@ var init_acorn = __esm(() => {
44370
44370
  };
44371
44371
  b2.readToken_plus_min = function(e) {
44372
44372
  var t = this.input.charCodeAt(this.pos + 1);
44373
- return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L4.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a3.incDec, 2) : t === 61 ? this.finishOp(a3.assign, 2) : this.finishOp(a3.plusMin, 1);
44373
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L3.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a3.incDec, 2) : t === 61 ? this.finishOp(a3.assign, 2) : this.finishOp(a3.plusMin, 1);
44374
44374
  };
44375
44375
  b2.readToken_lt_gt = function(e) {
44376
44376
  var t = this.input.charCodeAt(this.pos + 1), i = 1;
@@ -44491,7 +44491,7 @@ var init_acorn = __esm(() => {
44491
44491
  for (var e, t, i = this.pos;; ) {
44492
44492
  this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
44493
44493
  var s = this.input.charAt(this.pos);
44494
- if (L4.test(s) && this.raise(i, "Unterminated regular expression"), e)
44494
+ if (L3.test(s) && this.raise(i, "Unterminated regular expression"), e)
44495
44495
  e = false;
44496
44496
  else {
44497
44497
  if (s === "[")
@@ -44699,7 +44699,7 @@ var init_acorn = __esm(() => {
44699
44699
  var e = this.readWord1(), t = a3.name;
44700
44700
  return this.keywords.test(e) && (t = Je4[e]), this.finishToken(t, e);
44701
44701
  };
44702
- A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak: L4, lineBreakG: qi3, nonASCIIwhitespace: yt5 };
44702
+ A2.acorn = { Parser: A2, version: bs2, defaultOptions: Ue2, Position: ne3, SourceLocation: be3, getLineInfo: vt5, Node: Te3, TokenType: C2, tokTypes: a3, keywordTypes: Je4, TokContext: F2, tokContexts: T3, isIdentifierChar: X5, isIdentifierStart: j2, Token: Qe3, isNewLine: Y, lineBreak: L3, lineBreakG: qi3, nonASCIIwhitespace: yt5 };
44703
44703
  Si3 = ut2($e2(), 1);
44704
44704
  Ae4 = As2;
44705
44705
  ks2 = Array.prototype.findLast ?? function(e) {
@@ -45290,7 +45290,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
45290
45290
  for (let s of e)
45291
45291
  this.visit(s, n);
45292
45292
  }
45293
- }, kn2, bn2, L5, An2, pe3 = 0, os6 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt5 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q6 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe4 = 47, j3 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te4 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs22 = 122, Ve5 = 123, Ln2 = 124, K5 = 125, ds3 = 160, $t4 = 96, Ue3 = class t {
45293
+ }, kn2, bn2, L4, An2, pe3 = 0, os6 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt5 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q6 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe4 = 47, j3 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te4 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs22 = 122, Ve5 = 123, Ln2 = 124, K5 = 125, ds3 = 160, $t4 = 96, Ue3 = class t {
45294
45294
  file;
45295
45295
  offset;
45296
45296
  line;
@@ -47400,7 +47400,7 @@ var init_angular = __esm(() => {
47400
47400
  })(bn2 || (bn2 = {}));
47401
47401
  (function(t) {
47402
47402
  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";
47403
- })(L5 || (L5 = {}));
47403
+ })(L4 || (L4 = {}));
47404
47404
  (function(t) {
47405
47405
  t[t.RAW_TEXT = 0] = "RAW_TEXT", t[t.ESCAPABLE_RAW_TEXT = 1] = "ESCAPABLE_RAW_TEXT", t[t.PARSABLE_DATA = 2] = "PARSABLE_DATA";
47406
47406
  })(An2 || (An2 = {}));
@@ -47558,7 +47558,7 @@ var init_angular = __esm(() => {
47558
47558
  (function(t) {
47559
47559
  t[t.None = 0] = "None", t[t.ViewContextRead = 1] = "ViewContextRead", t[t.ViewContextWrite = 2] = "ViewContextWrite", t[t.SideEffectful = 4] = "SideEffectful";
47560
47560
  })(ns3 || (ns3 = {}));
47561
- Ao2 = new Map([[L5.Property, M5.Property], [L5.TwoWay, M5.TwoWayProperty], [L5.Attribute, M5.Attribute], [L5.Class, M5.ClassName], [L5.Style, M5.StyleProperty], [L5.LegacyAnimation, M5.LegacyAnimation], [L5.Animation, M5.Animation]]);
47561
+ Ao2 = new Map([[L4.Property, M5.Property], [L4.TwoWay, M5.TwoWayProperty], [L4.Attribute, M5.Attribute], [L4.Class, M5.ClassName], [L4.Style, M5.StyleProperty], [L4.LegacyAnimation, M5.LegacyAnimation], [L4.Animation, M5.Animation]]);
47562
47562
  Io2 = Symbol("queryAdvancePlaceholder");
47563
47563
  (function(t) {
47564
47564
  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";
@@ -48430,7 +48430,7 @@ function M6(a) {
48430
48430
  let t = a.range?.[0] ?? a.start, e = (a.declaration?.decorators ?? a.decorators)?.[0];
48431
48431
  return e ? Math.min(M6(e), t) : t;
48432
48432
  }
48433
- function L6(a) {
48433
+ function L5(a) {
48434
48434
  return a.range?.[1] ?? a.end;
48435
48435
  }
48436
48436
  function yr4(a) {
@@ -48456,7 +48456,7 @@ function Ar4(a) {
48456
48456
  let t;
48457
48457
  for (let e = a.length - 1;e >= 0; e--) {
48458
48458
  let s = a[e];
48459
- if (t && L6(s) === M6(t) && Ct7(s) && Ct7(t) && (a.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M6(s), L6(t)]), !gs4(s) && !se5(s))
48459
+ if (t && L5(s) === M6(t) && Ct7(s) && Ct7(t) && (a.splice(e + 1, 1), s.value += "*//*" + t.value, s.range = [M6(s), L5(t)]), !gs4(s) && !se5(s))
48460
48460
  throw new TypeError(`Unknown comment type: "${s.type}".`);
48461
48461
  t = s;
48462
48462
  }
@@ -48514,13 +48514,13 @@ function Ir3(a, t) {
48514
48514
  case "ParenthesizedExpression": {
48515
48515
  let { expression: l } = h, u = M6(h);
48516
48516
  if (l.type === "TypeCastExpression")
48517
- return l.range = [u, L6(h)], l;
48517
+ return l.range = [u, L5(h)], l;
48518
48518
  let f = false;
48519
48519
  if (!r) {
48520
48520
  if (!o) {
48521
48521
  o = [];
48522
48522
  for (let x of i)
48523
- Ts3(x) && o.push(L6(x));
48523
+ Ts3(x) && o.push(L5(x));
48524
48524
  }
48525
48525
  let d = xs5(0, o, (x) => x <= u);
48526
48526
  f = d && s.slice(d, u).trim().length === 0;
@@ -48533,13 +48533,13 @@ function Ir3(a, t) {
48533
48533
  break;
48534
48534
  case "TemplateElement":
48535
48535
  if (e === "flow" || e === "hermes" || e === "espree" || e === "typescript" || r) {
48536
- let l = M6(h) + 1, u = L6(h) - (h.tail ? 1 : 2);
48536
+ let l = M6(h) + 1, u = L5(h) - (h.tail ? 1 : 2);
48537
48537
  h.range = [l, u];
48538
48538
  }
48539
48539
  break;
48540
48540
  case "VariableDeclaration": {
48541
48541
  let l = Ps5(0, h.declarations, -1);
48542
- l?.init && s[L6(l)] !== ";" && (h.range = [M6(h), L6(l)]);
48542
+ l?.init && s[L5(l)] !== ";" && (h.range = [M6(h), L5(l)]);
48543
48543
  break;
48544
48544
  }
48545
48545
  case "TSParenthesizedType":
@@ -48572,7 +48572,7 @@ function Is5(a) {
48572
48572
  return a.type === "LogicalExpression" && a.right.type === "LogicalExpression" && a.operator === a.right.operator;
48573
48573
  }
48574
48574
  function It6(a) {
48575
- return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left), L6(a.right.left)] }), right: a.right.right, range: [M6(a), L6(a)] }) : a;
48575
+ return Is5(a) ? It6({ type: "LogicalExpression", operator: a.operator, left: It6({ type: "LogicalExpression", operator: a.operator, left: a.left, right: a.right.left, range: [M6(a.left), L5(a.right.left)] }), right: a.right.right, range: [M6(a), L5(a)] }) : a;
48576
48576
  }
48577
48577
  function Nr4(a, t) {
48578
48578
  let e = new SyntaxError(a + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
@@ -48625,7 +48625,7 @@ function Us5(a) {
48625
48625
  return Os4.some((e) => Object.prototype.hasOwnProperty.call(t, e));
48626
48626
  }
48627
48627
  function _r4(a) {
48628
- return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd: L6, ...a };
48628
+ return a = typeof a == "function" ? { parse: a } : a, { astFormat: "estree", hasPragma: Rs5, hasIgnorePragma: Us5, locStart: M6, locEnd: L5, ...a };
48629
48629
  }
48630
48630
  function _s4(a) {
48631
48631
  if (typeof a == "string") {
@@ -88962,7 +88962,7 @@ function Pt8(e) {
88962
88962
  function tt8(e) {
88963
88963
  return e === o3.BANG || e === o3.DOLLAR || e === o3.AMP || e === o3.PAREN_L || e === o3.PAREN_R || e === o3.DOT || e === o3.SPREAD || e === o3.COLON || e === o3.EQUALS || e === o3.AT || e === o3.BRACKET_L || e === o3.BRACKET_R || e === o3.BRACE_L || e === o3.PIPE || e === o3.BRACE_R;
88964
88964
  }
88965
- function L7(e) {
88965
+ function L6(e) {
88966
88966
  return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
88967
88967
  }
88968
88968
  function K8(e, t) {
@@ -89044,7 +89044,7 @@ function wt8(e, t) {
89044
89044
  return Mt8(e, r, s);
89045
89045
  if (pe6(s))
89046
89046
  return jt6(e, r);
89047
- throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : L7(s) || K8(n, r) ? `Unexpected character: ${R8(e, r)}.` : `Invalid character: ${R8(e, r)}.`);
89047
+ throw h3(e.source, r, s === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : L6(s) || K8(n, r) ? `Unexpected character: ${R8(e, r)}.` : `Invalid character: ${R8(e, r)}.`);
89048
89048
  }
89049
89049
  return m4(e, o3.EOF, i, i);
89050
89050
  }
@@ -89054,7 +89054,7 @@ function Ft8(e, t) {
89054
89054
  let s = n.charCodeAt(r);
89055
89055
  if (s === 10 || s === 13)
89056
89056
  break;
89057
- if (L7(s))
89057
+ if (L6(s))
89058
89058
  ++r;
89059
89059
  else if (K8(n, r))
89060
89060
  r += 2;
@@ -89096,7 +89096,7 @@ function Vt8(e, t) {
89096
89096
  }
89097
89097
  if (u === 10 || u === 13)
89098
89098
  break;
89099
- if (L7(u))
89099
+ if (L6(u))
89100
89100
  ++r;
89101
89101
  else if (K8(n, r))
89102
89102
  r += 2;
@@ -89110,7 +89110,7 @@ function Bt6(e, t) {
89110
89110
  for (;r < 12; ) {
89111
89111
  let s = n.charCodeAt(t + r++);
89112
89112
  if (s === 125) {
89113
- if (r < 5 || !L7(i))
89113
+ if (r < 5 || !L6(i))
89114
89114
  break;
89115
89115
  return { value: String.fromCodePoint(i), size: r };
89116
89116
  }
@@ -89121,7 +89121,7 @@ function Bt6(e, t) {
89121
89121
  }
89122
89122
  function Ut7(e, t) {
89123
89123
  let n = e.source.body, i = et9(n, t + 2);
89124
- if (L7(i))
89124
+ if (L6(i))
89125
89125
  return { value: String.fromCodePoint(i), size: 6 };
89126
89126
  if (nt9(i) && n.charCodeAt(t + 6) === 92 && n.charCodeAt(t + 7) === 117) {
89127
89127
  let r = et9(n, t + 8);
@@ -89177,7 +89177,7 @@ function Yt5(e, t) {
89177
89177
  u += n.slice(a, s), p.push(u), T === 13 && n.charCodeAt(s + 1) === 10 ? s += 2 : ++s, u = "", a = s, r = s;
89178
89178
  continue;
89179
89179
  }
89180
- if (L7(T))
89180
+ if (L6(T))
89181
89181
  ++s;
89182
89182
  else if (K8(n, s))
89183
89183
  s += 2;
@@ -90047,7 +90047,7 @@ function ar7(e, t) {
90047
90047
  }
90048
90048
  }
90049
90049
  }
90050
- function L8(e, t = nn6) {
90050
+ function L7(e, t = nn6) {
90051
90051
  return ar7(e, (r) => typeof r == "string" ? q9(t, r.split(`
90052
90052
  `)) : r);
90053
90053
  }
@@ -90425,7 +90425,7 @@ function Hn4(e, t) {
90425
90425
  return n === "script" && i === "setup" || n === "style" && i === "vars";
90426
90426
  }
90427
90427
  function Dt8(e, t = e.value) {
90428
- return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? L8(t) : L8(y4.dedentString(fr7(t)), v7) : q9(_7, y4.split(t));
90428
+ return e.parent.isWhitespaceSensitive ? e.parent.isIndentationSensitive ? L7(t) : L7(y4.dedentString(fr7(t)), v7) : q9(_7, y4.split(t));
90429
90429
  }
90430
90430
  function It9(e, t) {
90431
90431
  return me9(e, t) && e.name === "script";
@@ -90444,12 +90444,12 @@ async function Wn4(e, t, r) {
90444
90444
  let n = b6(r.node), i = [];
90445
90445
  for (let [s, a] of n.split(Vn3).entries())
90446
90446
  if (s % 2 === 0)
90447
- i.push(L8(a));
90447
+ i.push(L7(a));
90448
90448
  else
90449
90449
  try {
90450
90450
  i.push(C5(["{{", A6([_7, await x6(a, e, { parser: "__ng_interpolation", __isInHtmlInterpolation: true })]), _7, "}}"]));
90451
90451
  } catch {
90452
- i.push("{{", L8(a), "}}");
90452
+ i.push("{{", L7(a), "}}");
90453
90453
  }
90454
90454
  return i;
90455
90455
  }
@@ -90683,7 +90683,7 @@ function Ga3(e, t, r) {
90683
90683
  let { node: n } = e;
90684
90684
  if (!Ie8(n.attrs))
90685
90685
  return n.isSelfClosing ? " " : "";
90686
- let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ? L8(t.originalText.slice(Q9(d), te8(d))) : r(), "attrs"), o = n.kind === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, u = t.singleAttributePerLine && n.attrs.length > 1 && !me9(n, t) ? v7 : _7, p = [A6([o ? " " : _7, q9(u, a)])];
90686
+ let i = n.prev?.kind === "comment" && Wa3(n.prev.value), s = typeof i == "boolean" ? () => i : Array.isArray(i) ? (d) => i.includes(d.rawName) : () => false, a = e.map(({ node: d }) => s(d) ? L7(t.originalText.slice(Q9(d), te8(d))) : r(), "attrs"), o = n.kind === "element" && n.fullName === "script" && n.attrs.length === 1 && n.attrs[0].fullName === "src" && n.children.length === 0, u = t.singleAttributePerLine && n.attrs.length > 1 && !me9(n, t) ? v7 : _7, p = [A6([o ? " " : _7, q9(u, a)])];
90687
90687
  return n.firstChild && tt9(n.firstChild) || n.isSelfClosing && ge8(n.parent) || o ? p.push(n.isSelfClosing ? " " : "") : p.push(t.bracketSameLine ? n.isSelfClosing ? " " : "" : n.isSelfClosing ? _7 : k8), p;
90688
90688
  }
90689
90689
  function $a4(e) {
@@ -90813,7 +90813,7 @@ function st8(e, t, r) {
90813
90813
  let n = e.node;
90814
90814
  if (he8(n)) {
90815
90815
  let i = ki7(n);
90816
- return [U8(n, t), L8(y4.trimEnd(t.originalText.slice(Q9(n) + (n.prev && et10(n.prev) ? Bt7(n).length : 0), i - (n.next && $8(n.next) ? de7(n, t).length : 0)))), V8(n, t)];
90816
+ return [U8(n, t), L7(y4.trimEnd(t.originalText.slice(Q9(n) + (n.prev && et10(n.prev) ? Bt7(n).length : 0), i - (n.next && $8(n.next) ? de7(n, t).length : 0)))), V8(n, t)];
90817
90817
  }
90818
90818
  return r();
90819
90819
  }
@@ -90877,7 +90877,7 @@ function Li6(e, t, r) {
90877
90877
  function Pi6(e, t, r) {
90878
90878
  let { node: n } = e;
90879
90879
  if (Nt9(n, t))
90880
- return [U8(n, t), C5(rt10(e, t, r)), L8(qt7(n, t)), ...Ze9(n, t), V8(n, t)];
90880
+ return [U8(n, t), C5(rt10(e, t, r)), L7(qt7(n, t)), ...Ze9(n, t), V8(n, t)];
90881
90881
  let i = n.children.length === 1 && (n.firstChild.kind === "interpolation" || n.firstChild.kind === "angularIcuExpression") && n.firstChild.isLeadingSpaceSensitive && !n.firstChild.hasLeadingSpaces && n.lastChild.isTrailingSpaceSensitive && !n.lastChild.hasTrailingSpaces, s = Symbol("element-attr-group-id"), a = (p) => C5([C5(rt10(e, t, r), { id: s }), p, Ze9(n, t)]), o = (p) => i ? ln5(p, { groupId: s }) : (H9(n, t) || Je9(n, t)) && n.parent.kind === "root" && t.parser === "vue" && !t.vueIndentScriptAndStyle ? p : A6(p), c = () => i ? X9(k8, "", { groupId: s }) : n.firstChild.hasLeadingSpaces && n.firstChild.isLeadingSpaceSensitive ? _7 : n.firstChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive ? on9(k8) : k8, u = () => (n.next ? $8(n.next) : ge8(n.parent)) ? n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? " " : "" : i ? X9(k8, "", { groupId: s }) : n.lastChild.hasTrailingSpaces && n.lastChild.isTrailingSpaceSensitive ? _7 : (n.lastChild.kind === "comment" || n.lastChild.kind === "text" && n.isWhitespaceSensitive && n.isIndentationSensitive) && new RegExp(`\\n[\\t ]{${t.tabWidth * (e.ancestors.length - 1)}}$`, "u").test(n.lastChild.value) ? "" : k8;
90882
90882
  return n.children.length === 0 ? a(n.hasDanglingSpaces && n.isDanglingSpaceSensitive ? _7 : "") : a([Pn4(n) ? j6 : "", o([c(), Re8(e, t, r)]), u()]);
90883
90883
  }
@@ -91215,7 +91215,7 @@ function sl3(e, t, r) {
91215
91215
  case "text": {
91216
91216
  if (n.parent.kind === "interpolation") {
91217
91217
  let o = /\n[^\S\n]*$/u, c = o.test(n.value), u = c ? n.value.replace(o, "") : n.value;
91218
- return [L8(u), c ? v7 : ""];
91218
+ return [L7(u), c ? v7 : ""];
91219
91219
  }
91220
91220
  let i = U8(n, t), s = Dt8(n), a = V8(n, t);
91221
91221
  return s[0] = [i, s[0]], s.push([s.pop(), a]), xt8(s);
@@ -91223,12 +91223,12 @@ function sl3(e, t, r) {
91223
91223
  case "docType":
91224
91224
  return [C5([Se8(n, t), " ", w5(0, n.value.replace(/^html\b/iu, "html"), /\s+/gu, " ")]), fe7(n, t)];
91225
91225
  case "comment":
91226
- return [U8(n, t), L8(t.originalText.slice(Q9(n), te8(n))), V8(n, t)];
91226
+ return [U8(n, t), L7(t.originalText.slice(Q9(n), te8(n))), V8(n, t)];
91227
91227
  case "attribute": {
91228
91228
  if (n.value === null)
91229
91229
  return n.rawName;
91230
91230
  let i = Sr5(n.value), s = Rt8(n, t) ? "" : pn5(i, '"');
91231
- return [n.rawName, "=", s, L8(s === '"' ? w5(0, i, '"', "&quot;") : w5(0, i, "'", "&apos;")), s];
91231
+ return [n.rawName, "=", s, L7(s === '"' ? w5(0, i, '"', "&quot;") : w5(0, i, "'", "&apos;")), s];
91232
91232
  }
91233
91233
  case "frontMatter":
91234
91234
  case "cdata":
@@ -98043,7 +98043,7 @@ function ue9(e, t, n, u, o, i) {
98043
98043
  function At12(e, t, n, u, o, i) {
98044
98044
  let { tokenStart: l } = e, f = e.getToken(), c = null, g = Zt9(e, t, n, u, o, i);
98045
98045
  if (e.getToken() === 1077936155) {
98046
- if (r(e, t | 32), c = L9(e, t, u, 1, 0, e.tokenStart), (i & 32 || (f & 2097152) === 0) && (e.getToken() === 471156 || e.getToken() === 8673330 && (f & 2097152 || (o & 4) === 0 || t & 1)))
98046
+ if (r(e, t | 32), c = L8(e, t, u, 1, 0, e.tokenStart), (i & 32 || (f & 2097152) === 0) && (e.getToken() === 471156 || e.getToken() === 8673330 && (f & 2097152 || (o & 4) === 0 || t & 1)))
98047
98047
  throw new q11(l, e.currentLocation, 60, e.getToken() === 471156 ? "of" : "in");
98048
98048
  } else
98049
98049
  (o & 16 || (f & 2097152) > 0) && (e.getToken() & 262144) !== 262144 && e.report(59, o & 16 ? "const" : "destructuring");
@@ -98066,7 +98066,7 @@ function Ln5(e, t, n, u, o) {
98066
98066
  d = _8(e, t | 131072, u, 1, 0, 1);
98067
98067
  if ((e.getToken() & 262144) === 262144) {
98068
98068
  if (e.getToken() === 471156) {
98069
- e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h = L9(e, t, u, 1, 0, e.tokenStart), y5(e, t | 32, 16);
98069
+ e.assignable & 2 && e.report(80, l ? "await" : "of"), K10(e, d), r(e, t | 32), h = L8(e, t, u, 1, 0, e.tokenStart), y5(e, t | 32, 16);
98070
98070
  let D = de9(e, t, n, u, o);
98071
98071
  return e.finishNode({ type: "ForOfStatement", left: d, right: h, body: D, await: l }, i);
98072
98072
  }
@@ -98167,7 +98167,7 @@ function Pn6(e, t, n) {
98167
98167
  break;
98168
98168
  }
98169
98169
  default:
98170
- i = L9(e, t, undefined, 1, 0, e.tokenStart), M10(e, t | 32);
98170
+ i = L8(e, t, undefined, 1, 0, e.tokenStart), M10(e, t | 32);
98171
98171
  }
98172
98172
  return n && e.declareUnboundVariable("default"), e.finishNode({ type: "ExportDefaultDeclaration", declaration: i }, u);
98173
98173
  }
@@ -98220,25 +98220,25 @@ function Pn6(e, t, n) {
98220
98220
  let c = { type: "ExportNamedDeclaration", declaration: i, specifiers: o, source: l, attributes: f };
98221
98221
  return e.finishNode(c, u);
98222
98222
  }
98223
- function L9(e, t, n, u, o, i) {
98223
+ function L8(e, t, n, u, o, i) {
98224
98224
  let l = U10(e, t, n, 2, 0, u, o, 1, i);
98225
98225
  return l = F8(e, t, n, l, o, 0, i), I8(e, t, n, o, 0, i, l);
98226
98226
  }
98227
98227
  function W11(e, t, n, u, o, i) {
98228
98228
  let l = [i];
98229
98229
  for (;C6(e, t | 32, 18); )
98230
- l.push(L9(e, t, n, 1, u, e.tokenStart));
98230
+ l.push(L8(e, t, n, 1, u, e.tokenStart));
98231
98231
  return e.finishNode({ type: "SequenceExpression", expressions: l }, o);
98232
98232
  }
98233
98233
  function V10(e, t, n, u, o, i) {
98234
- let l = L9(e, t, n, o, u, i);
98234
+ let l = L8(e, t, n, o, u, i);
98235
98235
  return e.getToken() === 18 ? W11(e, t, n, u, i, l) : l;
98236
98236
  }
98237
98237
  function I8(e, t, n, u, o, i, l) {
98238
98238
  let f = e.getToken();
98239
98239
  if ((f & 4194304) === 4194304) {
98240
98240
  e.assignable & 2 && e.report(26), (!o && f === 1077936155 && l.type === "ArrayExpression" || l.type === "ObjectExpression") && K10(e, l), r(e, t | 32);
98241
- let c = L9(e, t, n, 1, u, e.tokenStart);
98241
+ let c = L8(e, t, n, 1, u, e.tokenStart);
98242
98242
  return e.assignable = 2, e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i);
98243
98243
  }
98244
98244
  return (f & 8388608) === 8388608 && (l = G9(e, t, n, u, i, 4, f, l)), C6(e, t | 32, 22) && (l = ee7(e, t, n, l, i)), l;
@@ -98246,13 +98246,13 @@ function I8(e, t, n, u, o, i, l) {
98246
98246
  function be10(e, t, n, u, o, i, l) {
98247
98247
  let f = e.getToken();
98248
98248
  r(e, t | 32);
98249
- let c = L9(e, t, n, 1, u, e.tokenStart);
98249
+ let c = L8(e, t, n, 1, u, e.tokenStart);
98250
98250
  return l = e.finishNode(o ? { type: "AssignmentPattern", left: l, right: c } : { type: "AssignmentExpression", left: l, operator: B6[f & 255], right: c }, i), e.assignable = 2, l;
98251
98251
  }
98252
98252
  function ee7(e, t, n, u, o) {
98253
- let i = L9(e, (t | 131072) ^ 131072, n, 1, 0, e.tokenStart);
98253
+ let i = L8(e, (t | 131072) ^ 131072, n, 1, 0, e.tokenStart);
98254
98254
  y5(e, t | 32, 21), e.assignable = 1;
98255
- let l = L9(e, t, n, 1, 0, e.tokenStart);
98255
+ let l = L8(e, t, n, 1, 0, e.tokenStart);
98256
98256
  return e.assignable = 2, e.finishNode({ type: "ConditionalExpression", test: u, consequent: i, alternate: l }, o);
98257
98257
  }
98258
98258
  function G9(e, t, n, u, o, i, l, f) {
@@ -98282,7 +98282,7 @@ function Rn4(e, t, n, u, o, i) {
98282
98282
  if (u && (e.destructible |= 256), t & 1024) {
98283
98283
  r(e, t | 32), t & 8192 && e.report(32), o || e.report(26), e.getToken() === 22 && e.report(124);
98284
98284
  let l = null, f = false;
98285
- return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l = L9(e, t, n, 1, 0, e.tokenStart))) : e.getToken() === 8391476 && e.report(30, B6[e.getToken() & 255]), e.assignable = 2, e.finishNode({ type: "YieldExpression", argument: l, delegate: f }, i);
98285
+ return (e.flags & 1) === 0 ? (f = C6(e, t | 32, 8391476), (e.getToken() & 77824 || f) && (l = L8(e, t, n, 1, 0, e.tokenStart))) : e.getToken() === 8391476 && e.report(30, B6[e.getToken() & 255]), e.assignable = 2, e.finishNode({ type: "YieldExpression", argument: l, delegate: f }, i);
98286
98286
  }
98287
98287
  return t & 1 && e.report(97, "yield"), nt11(e, t, n);
98288
98288
  }
@@ -98505,11 +98505,11 @@ function Xt8(e, t, n, u) {
98505
98505
  }
98506
98506
  function jt7(e, t, n, u, o) {
98507
98507
  y5(e, t | 32, 67174411), e.getToken() === 14 && e.report(143);
98508
- let i = L9(e, t, n, 1, u, e.tokenStart), l = null;
98508
+ let i = L8(e, t, n, 1, u, e.tokenStart), l = null;
98509
98509
  if (e.getToken() === 18) {
98510
98510
  if (y5(e, t, 18), e.getToken() !== 16) {
98511
98511
  let c = (t | 131072) ^ 131072;
98512
- l = L9(e, c, n, 1, u, e.tokenStart);
98512
+ l = L8(e, c, n, 1, u, e.tokenStart);
98513
98513
  }
98514
98514
  C6(e, t, 18);
98515
98515
  }
@@ -98586,7 +98586,7 @@ function Ee9(e, t, n, u, o) {
98586
98586
  function zn6(e, t, n) {
98587
98587
  let u = e.tokenStart;
98588
98588
  t = (t | 131072) ^ 131072, y5(e, t | 32, 14);
98589
- let o = L9(e, t, n, 1, 0, e.tokenStart);
98589
+ let o = L8(e, t, n, 1, 0, e.tokenStart);
98590
98590
  return e.assignable = 1, e.finishNode({ type: "SpreadElement", argument: o }, u);
98591
98591
  }
98592
98592
  function tt10(e, t, n, u) {
@@ -98594,7 +98594,7 @@ function tt10(e, t, n, u) {
98594
98594
  let o = [];
98595
98595
  if (e.getToken() === 16)
98596
98596
  return r(e, t | 64), o;
98597
- for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(L9(e, t, n, 1, u, e.tokenStart)), !(e.getToken() !== 18 || (r(e, t | 32), e.getToken() === 16))); )
98597
+ for (;e.getToken() !== 16 && (e.getToken() === 14 ? o.push(zn6(e, t, n)) : o.push(L8(e, t, n, 1, u, e.tokenStart)), !(e.getToken() !== 18 || (r(e, t | 32), e.getToken() === 16))); )
98598
98598
  ;
98599
98599
  return y5(e, t | 64, 16), o;
98600
98600
  }
@@ -98653,7 +98653,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
98653
98653
  if (T & 143360)
98654
98654
  if (A = U10(e, t, u, f, 0, 1, i, 1, b), e.getToken() === 1077936155) {
98655
98655
  e.assignable & 2 && e.report(26), r(e, t | 32), n?.addVarOrBlock(t, w, f, c);
98656
- let D = L9(e, t, u, 1, i, e.tokenStart);
98656
+ let D = L8(e, t, u, 1, i, e.tokenStart);
98657
98657
  A = e.finishNode(l ? { type: "AssignmentPattern", left: A, right: D } : { type: "AssignmentExpression", operator: "=", left: A, right: D }, b), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0;
98658
98658
  } else
98659
98659
  e.getToken() === 18 || e.getToken() === 20 ? (e.assignable & 2 ? a |= 16 : n?.addVarOrBlock(t, w, f, c), a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0) : (a |= f & 1 ? 32 : (f & 2) === 0 ? 16 : 0, A = F8(e, t, u, A, i, 0, b), e.getToken() !== 18 && e.getToken() !== 20 ? (e.getToken() !== 1077936155 && (a |= 16), A = I8(e, t, u, i, l, b, A)) : e.getToken() !== 1077936155 && (a |= e.assignable & 2 ? 16 : 32));
@@ -98671,7 +98671,7 @@ function X11(e, t, n, u, o, i, l, f, c) {
98671
98671
  }
98672
98672
  function Kt9(e, t, n, u, o, i, l, f) {
98673
98673
  e.getToken() !== 1077936155 && e.report(26), r(e, t | 32), u & 16 && e.report(26), i || K10(e, f);
98674
- let { tokenStart: c } = e, g = L9(e, t, n, 1, o, c);
98674
+ let { tokenStart: c } = e, g = L8(e, t, n, 1, o, c);
98675
98675
  return e.destructible = (u | 64 | 8) ^ 72 | (e.destructible & 128 ? 128 : 0) | (e.destructible & 256 ? 256 : 0), e.finishNode(i ? { type: "AssignmentPattern", left: f, right: g } : { type: "AssignmentExpression", left: f, operator: "=", right: g }, l);
98676
98676
  }
98677
98677
  function oe8(e, t, n, u, o, i, l, f, c, g) {
@@ -98692,7 +98692,7 @@ function oe8(e, t, n, u, o, i, l, f, c, g) {
98692
98692
  if (e.getToken() !== o)
98693
98693
  if (i & 1 && (h |= f ? 16 : 32), C6(e, t | 32, 1077936155)) {
98694
98694
  h & 16 && e.report(26), K10(e, a);
98695
- let T = L9(e, t, u, 1, c, e.tokenStart);
98695
+ let T = L8(e, t, u, 1, c, e.tokenStart);
98696
98696
  a = e.finishNode(g ? { type: "AssignmentPattern", left: a, right: T } : { type: "AssignmentExpression", left: a, operator: "=", right: T }, b), h = 16;
98697
98697
  } else
98698
98698
  h |= 16;
@@ -98724,7 +98724,7 @@ function j8(e, t, n, u, o, i, l, f, c) {
98724
98724
  if (e.getToken() === -2147483527 && (a |= 16), R = N9(e, t), e.getToken() === 18 || e.getToken() === 1074790415 || e.getToken() === 1077936155)
98725
98725
  if (D |= 4, t & 1 && (T & 537079808) === 537079808 ? a |= 16 : Be9(e, t, f, T, 0), n?.addVarOrBlock(t, b, f, c), C6(e, t | 32, 1077936155)) {
98726
98726
  a |= 8;
98727
- let E = L9(e, t, u, 1, i, e.tokenStart);
98727
+ let E = L8(e, t, u, 1, i, e.tokenStart);
98728
98728
  a |= e.destructible & 256 ? 256 : 0 | e.destructible & 128 ? 128 : 0, k = e.finishNode({ type: "AssignmentPattern", left: e.cloneIdentifier(R), right: E }, w);
98729
98729
  } else
98730
98730
  a |= (T === 209006 ? 128 : 0) | (T === -2147483528 ? 16 : 0), k = e.cloneIdentifier(R);
@@ -98795,7 +98795,7 @@ function Qn6(e, t, n, u, o, i, l) {
98795
98795
  let d = null, { tokenStart: a } = e;
98796
98796
  if (e.getToken() & 143360 ? ((t & 1) === 0 && ((e.getToken() & 36864) === 36864 && (e.flags |= 256), (e.getToken() & 537079808) === 537079808 && (e.flags |= 512)), d = it9(e, t, n, o | 1, 0)) : (e.getToken() === 2162700 ? d = j8(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 69271571 ? d = X11(e, t, n, u, 1, l, 1, i, 0) : e.getToken() === 14 && (d = oe8(e, t, n, u, 16, i, 0, 0, l, 1)), g = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
98797
98797
  r(e, t | 32), g = 1;
98798
- let h = L9(e, t, u, 1, 0, e.tokenStart);
98798
+ let h = L8(e, t, u, 1, 0, e.tokenStart);
98799
98799
  d = e.finishNode({ type: "AssignmentPattern", left: d, right: h }, a);
98800
98800
  }
98801
98801
  if (c++, f.push(d), !C6(e, t, 18) || e.getToken() === 16)
@@ -98805,7 +98805,7 @@ function Qn6(e, t, n, u, o, i, l) {
98805
98805
  }
98806
98806
  function ne10(e, t, n, u) {
98807
98807
  r(e, t | 32);
98808
- let o = L9(e, (t | 131072) ^ 131072, n, 1, u, e.tokenStart);
98808
+ let o = L8(e, (t | 131072) ^ 131072, n, 1, u, e.tokenStart);
98809
98809
  return y5(e, t, 20), o;
98810
98810
  }
98811
98811
  function Zn7(e, t, n, u, o, i, l) {
@@ -98828,9 +98828,9 @@ function Zn7(e, t, n, u, o, i, l) {
98828
98828
  d = oe8(e, t, c, n, 16, o, i, 0, 1, 0), e.destructible & 16 && e.report(74), A = 1, h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), g |= 8;
98829
98829
  break;
98830
98830
  } else {
98831
- if (g |= 16, d = L9(e, t, n, 1, 1, T), h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), e.getToken() === 18 && (h || (h = 1, a = [d])), h) {
98831
+ if (g |= 16, d = L8(e, t, n, 1, 1, T), h && (e.getToken() === 16 || e.getToken() === 18) && a.push(d), e.getToken() === 18 && (h || (h = 1, a = [d])), h) {
98832
98832
  for (;C6(e, t | 32, 18); )
98833
- a.push(L9(e, t, n, 1, 1, e.tokenStart));
98833
+ a.push(L8(e, t, n, 1, 1, e.tokenStart));
98834
98834
  e.assignable = 2, d = e.finishNode({ type: "SequenceExpression", expressions: a }, w);
98835
98835
  }
98836
98836
  return y5(e, t, 16), e.destructible = g, e.options.preserveParens ? e.finishNode({ type: "ParenthesizedExpression", expression: d }, f) : d;
@@ -98871,7 +98871,7 @@ function ke9(e, t, n, u, o, i, l) {
98871
98871
  t = (t | f) ^ f | (i ? 2048 : 0);
98872
98872
  let c = e.getToken() !== 2162700, g;
98873
98873
  if (n?.reportScopeError(), c)
98874
- e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g = L9(e, t, u, 1, 0, e.tokenStart);
98874
+ e.flags = (e.flags | 512 | 256 | 64 | 4096) ^ 4928, g = L8(e, t, u, 1, 0, e.tokenStart);
98875
98875
  else {
98876
98876
  n = n?.createChildScope(64);
98877
98877
  let d = 131084;
@@ -98902,7 +98902,7 @@ function $t8(e, t, n, u, o, i) {
98902
98902
  let c, { tokenStart: g } = e, d = e.getToken();
98903
98903
  if (d & 143360 ? ((t & 1) === 0 && ((d & 36864) === 36864 && (e.flags |= 256), (d & 537079808) === 537079808 && (e.flags |= 512)), c = it9(e, t, n, i | 1, 0)) : (d === 2162700 ? c = j8(e, t, n, u, 1, o, 1, i, 0) : d === 69271571 ? c = X11(e, t, n, u, 1, o, 1, i, 0) : d === 14 ? c = oe8(e, t, n, u, 16, i, 0, 0, o, 1) : e.report(30, B6[d & 255]), f = 1, e.destructible & 48 && e.report(50)), e.getToken() === 1077936155) {
98904
98904
  r(e, t | 32), f = 1;
98905
- let a = L9(e, t, u, 1, o, e.tokenStart);
98905
+ let a = L8(e, t, u, 1, o, e.tokenStart);
98906
98906
  c = e.finishNode({ type: "AssignmentPattern", left: c, right: a }, g);
98907
98907
  }
98908
98908
  if (l.push(c), !C6(e, t, 18) || e.getToken() === 16)
@@ -98963,8 +98963,8 @@ function ut8(e, t, n, u, o, i, l, f, c) {
98963
98963
  else if (w === 14)
98964
98964
  a = oe8(e, t, g, n, 16, i, l, 1, 1, 0), d |= (e.getToken() === 16 ? 0 : 16) | e.destructible, h = 1;
98965
98965
  else {
98966
- for (a = L9(e, t, n, 1, 0, b), d = e.assignable, A.push(a);C6(e, t | 32, 18); )
98967
- A.push(L9(e, t, n, 1, 0, b));
98966
+ for (a = L8(e, t, n, 1, 0, b), d = e.assignable, A.push(a);C6(e, t | 32, 18); )
98967
+ A.push(L8(e, t, n, 1, 0, b));
98968
98968
  return d |= e.assignable, y5(e, t, 16), e.destructible = d | 16, e.assignable = 2, e.finishNode({ type: "CallExpression", callee: u, arguments: A, optional: false }, c);
98969
98969
  }
98970
98970
  if (A.push(a), !C6(e, t | 32, 18))
@@ -99213,7 +99213,7 @@ function au2(e, t, n) {
99213
99213
  function gu2(e, t, n) {
99214
99214
  let u = e.tokenStart;
99215
99215
  r(e, t), y5(e, t, 14);
99216
- let o = L9(e, t, n, 1, 0, e.tokenStart);
99216
+ let o = L8(e, t, n, 1, 0, e.tokenStart);
99217
99217
  return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadAttribute", argument: o }, u);
99218
99218
  }
99219
99219
  function mu2(e, t, n) {
@@ -99250,11 +99250,11 @@ function ot9(e, t, n, u, o) {
99250
99250
  if (e.getToken() === 14)
99251
99251
  return ru2(e, t, n, i);
99252
99252
  let f = null;
99253
- return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f = L9(e, t, n, 1, 0, l), e.getToken() !== 1074790415 && e.report(25, B6[15]), u ? me11(e) : r(e, t), e.finishNode({ type: "JSXExpressionContainer", expression: f }, i);
99253
+ return e.getToken() === 1074790415 ? (o && e.report(157), f = hu3(e, { index: e.startIndex, line: e.startLine, column: e.startColumn })) : f = L8(e, t, n, 1, 0, l), e.getToken() !== 1074790415 && e.report(25, B6[15]), u ? me11(e) : r(e, t), e.finishNode({ type: "JSXExpressionContainer", expression: f }, i);
99254
99254
  }
99255
99255
  function ru2(e, t, n, u) {
99256
99256
  y5(e, t, 14);
99257
- let o = L9(e, t, n, 1, 0, e.tokenStart);
99257
+ let o = L8(e, t, n, 1, 0, e.tokenStart);
99258
99258
  return y5(e, t, 1074790415), e.finishNode({ type: "JSXSpreadChild", expression: o }, u);
99259
99259
  }
99260
99260
  function hu3(e, t) {
@@ -99871,7 +99871,7 @@ function Ml3(t) {
99871
99871
  function on11(t) {
99872
99872
  return Dl3(t, Ml3);
99873
99873
  }
99874
- function L10(t) {
99874
+ function L9(t) {
99875
99875
  return $10(t), { type: ie9, contents: t };
99876
99876
  }
99877
99877
  function Bl2(t, e) {
@@ -100449,7 +100449,7 @@ function hc2(t, e, s) {
100449
100449
  }
100450
100450
  }
100451
100451
  }
100452
- return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(L10(c)) : Qn7(t) ? D6(Pe9(c)) : D6(L10(Pe9(c)));
100452
+ return f && c.push([c.pop(), Ne10]), d && c.unshift("", T6), l ? D6(L9(c)) : Qn7(t) ? D6(Pe9(c)) : D6(L9(Pe9(c)));
100453
100453
  }
100454
100454
  function hi9(t) {
100455
100455
  if (t?.type === "value-number")
@@ -100539,7 +100539,7 @@ function bi9(t, e, s) {
100539
100539
  let g = is7(t);
100540
100540
  ye11(i);
100541
100541
  let b = Ac2(Y6(",", i), 2), d = Y6(g ? T6 : C7, b);
100542
- return L10(g ? [T6, d] : D6([Tc3(t) ? M11 : "", Pe9(d)]));
100542
+ return L9(g ? [T6, d] : D6([Tc3(t) ? M11 : "", Pe9(d)]));
100543
100543
  }
100544
100544
  let o = t.map(({ node: g, isLast: b, index: d }) => {
100545
100545
  let p = i[d];
@@ -100550,7 +100550,7 @@ function bi9(t, e, s) {
100550
100550
  !y.source && y.close && (y = y.close), y.source && Vt11(e.originalText, R11(y)) && m.push(T6);
100551
100551
  }
100552
100552
  return m;
100553
- }, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "", L10([M11, Y6(C7, o)]), M11, r.close ? s("close") : ""], { shouldBreak: f });
100553
+ }, "groups"), u = li9(r, n), a = pi9(r, n), l = ts7(t, e), f = a || l && !u, h = a || u, c = D6([r.open ? s("open") : "", L9([M11, Y6(C7, o)]), M11, r.close ? s("close") : ""], { shouldBreak: f });
100554
100554
  return h ? le8(c) : c;
100555
100555
  }
100556
100556
  function is7(t) {
@@ -100587,10 +100587,10 @@ function Cc2(t, e, s) {
100587
100587
  return n ? i.trimEnd() : i;
100588
100588
  }
100589
100589
  case "css-rule":
100590
- return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ? L10([T6, De10(t, e, s)]) : "", T6, "}", Zn8(r) ? ";" : ""] : ";"];
100590
+ return [s("selector"), r.important ? " !important" : "", r.nodes ? [r.selector?.type === "selector-unknown" && Le11(r.selector.value) ? C7 : r.selector ? " " : "", "{", r.nodes.length > 0 ? L9([T6, De10(t, e, s)]) : "", T6, "}", Zn8(r) ? ";" : ""] : ";"];
100591
100591
  case "css-decl": {
100592
100592
  let n = t.parent, { between: i } = r.raws, o = i.trim(), u = o === ":", a = typeof r.value == "string" && /^ *$/u.test(r.value), l = typeof r.value == "string" ? r.value : s("value");
100593
- return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l = L10([T6, le8(l)])), [E5(0, r.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || Kn8(t) ? r.prop : Ie11(r.prop), o.startsWith("//") ? " " : "", o, r.extend || a ? "" : " ", e.parser === "less" && r.extend && r.selector ? ["extend(", s("selector"), ")"] : "", l, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", L10([M11, De10(t, e, s)]), M11, "}"] : ii9(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";" ? "" : e.__isHTMLStyleAttribute && t.isLast ? Ct13(";") : ";"];
100593
+ return l = ai9(r) ? on11(l) : l, !u && Le11(o) && !t.call(() => is7(t), "value", "group", "group") && (l = L9([T6, le8(l)])), [E5(0, r.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || Kn8(t) ? r.prop : Ie11(r.prop), o.startsWith("//") ? " " : "", o, r.extend || a ? "" : " ", e.parser === "less" && r.extend && r.selector ? ["extend(", s("selector"), ")"] : "", l, r.raws.important ? r.raws.important.replace(/\s*!\s*important/iu, " !important") : r.important ? " !important" : "", r.raws.scssDefault ? r.raws.scssDefault.replace(/\s*!default/iu, " !default") : r.scssDefault ? " !default" : "", r.raws.scssGlobal ? r.raws.scssGlobal.replace(/\s*!global/iu, " !global") : r.scssGlobal ? " !global" : "", r.nodes ? [" {", L9([M11, De10(t, e, s)]), M11, "}"] : ii9(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";" ? "" : e.__isHTMLStyleAttribute && t.isLast ? Ct13(";") : ";"];
100594
100594
  }
100595
100595
  case "css-atrule": {
100596
100596
  let n = t.parent, i = Mt12(r) && !n.raws.semicolon && e.originalText[R11(r) - 1] !== ";";
@@ -100600,16 +100600,16 @@ function Cc2(t, e, s) {
100600
100600
  if (r.function)
100601
100601
  return [r.name, typeof r.params == "string" ? r.params : s("params"), i ? "" : ";"];
100602
100602
  if (r.variable)
100603
- return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : "", i ? "" : ";"];
100603
+ return ["@", r.name, ": ", r.value ? s("value") : "", r.raws.between.trim() ? r.raws.between.trim() + " " : "", r.nodes ? ["{", L9([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : "", i ? "" : ";"];
100604
100604
  }
100605
100605
  let o = r.name === "import" && r.params?.type === "value-unknown" && r.params.value.endsWith(";");
100606
- return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ? L10([" ", s("selector")]) : "", r.value ? D6([" ", s("value"), Je11(r, e) ? ui9(r) ? " " : C7 : ""]) : r.name === "else" ? " " : "", r.nodes ? [Je11(r, e) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && Le11(r.selector.value) || !r.selector && typeof r.params == "string" && Le11(r.params) ? C7 : " ", "{", L10([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : i || o ? "" : ";"];
100606
+ return ["@", es7(r) || r.name.endsWith(":") || Mt12(r) ? r.name : Ie11(r.name), r.params ? [es7(r) ? "" : Mt12(r) ? r.raws.afterName === "" ? "" : r.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(r.raws.afterName) ? [T6, T6] : /^\s*\n/u.test(r.raws.afterName) ? T6 : " " : " ", typeof r.params == "string" ? r.params : s("params")] : "", r.selector ? L9([" ", s("selector")]) : "", r.value ? D6([" ", s("value"), Je11(r, e) ? ui9(r) ? " " : C7 : ""]) : r.name === "else" ? " " : "", r.nodes ? [Je11(r, e) ? "" : r.selector && !r.selector.nodes && typeof r.selector.value == "string" && Le11(r.selector.value) || !r.selector && typeof r.params == "string" && Le11(r.params) ? C7 : " ", "{", L9([r.nodes.length > 0 ? M11 : "", De10(t, e, s)]), M11, "}"] : i || o ? "" : ";"];
100607
100607
  }
100608
100608
  case "media-query-list": {
100609
100609
  let n = [];
100610
100610
  return t.each(({ node: i }) => {
100611
100611
  i.type === "media-query" && i.value === "" || n.push(s());
100612
- }, "nodes"), D6(L10(Y6(C7, n)));
100612
+ }, "nodes"), D6(L9(Y6(C7, n)));
100613
100613
  }
100614
100614
  case "media-query":
100615
100615
  return [Y6(" ", t.map(s, "nodes")), t.isLast ? "" : ","];
@@ -100633,7 +100633,7 @@ function Cc2(t, e, s) {
100633
100633
  return D6([we9(t, "custom-selector") ? [t.findAncestor((n) => n.type === "css-atrule").customSelector, C7] : "", Y6([",", we9(t, ["extend", "custom-selector", "nest"]) ? C7 : T6], t.map(s, "nodes"))]);
100634
100634
  case "selector-selector": {
100635
100635
  let n = r.nodes.length > 2;
100636
- return D6((n ? L10 : (i) => i)(t.map(s, "nodes")));
100636
+ return D6((n ? L9 : (i) => i)(t.map(s, "nodes")));
100637
100637
  }
100638
100638
  case "selector-comment":
100639
100639
  return r.value;
@@ -100658,7 +100658,7 @@ function Cc2(t, e, s) {
100658
100658
  case "selector-universal":
100659
100659
  return [r.namespace ? [r.namespace === true ? "" : r.namespace.trim(), "|"] : "", r.value];
100660
100660
  case "selector-pseudo":
100661
- return [Ie11(r.value), ce8(r.nodes) ? D6(["(", L10([M11, Y6([",", C7], t.map(s, "nodes"))]), M11, ")"]) : ""];
100661
+ return [Ie11(r.value), ce8(r.nodes) ? D6(["(", L9([M11, Y6([",", C7], t.map(s, "nodes"))]), M11, ")"]) : ""];
100662
100662
  case "selector-nesting":
100663
100663
  return r.value;
100664
100664
  case "selector-unknown": {
@@ -228838,7 +228838,7 @@ function normalizeBase44Env() {
228838
228838
  loadProjectEnvFiles();
228839
228839
 
228840
228840
  // src/cli/index.ts
228841
- import { dirname as dirname30, join as join41 } from "node:path";
228841
+ import { dirname as dirname31, join as join42 } from "node:path";
228842
228842
  import { fileURLToPath as fileURLToPath7 } from "node:url";
228843
228843
 
228844
228844
  // ../../node_modules/@clack/core/dist/index.mjs
@@ -230795,7 +230795,8 @@ var TestOverridesSchema = object({
230795
230795
  id: string2(),
230796
230796
  projectRoot: string2()
230797
230797
  }).optional(),
230798
- latestVersion: string2().nullable().optional()
230798
+ latestVersion: string2().nullable().optional(),
230799
+ claudeBin: string2().optional()
230799
230800
  });
230800
230801
 
230801
230802
  // src/core/config.ts
@@ -246851,6 +246852,23 @@ var GIT_HASH_PATTERN = /^[a-fA-F0-9]{7,64}$/;
246851
246852
  function isGitCommitHash(value) {
246852
246853
  return GIT_HASH_PATTERN.test(value);
246853
246854
  }
246855
+ async function readGitState(cwd) {
246856
+ const status = await execa("git", ["status", "--porcelain", "--branch"], {
246857
+ cwd,
246858
+ reject: false
246859
+ });
246860
+ if (status.exitCode !== 0)
246861
+ return;
246862
+ const [header = "", ...changes] = status.stdout.split(`
246863
+ `).filter(Boolean);
246864
+ const head = await execa("git", ["rev-parse", "--abbrev-ref", "HEAD"], {
246865
+ cwd,
246866
+ reject: false
246867
+ });
246868
+ const branch = head.exitCode === 0 && head.stdout !== "HEAD" ? head.stdout : undefined;
246869
+ const offRemote = branch !== undefined && (!header.includes("...") || /\[(ahead|gone)/.test(header));
246870
+ return { branch, unpushed: changes.length > 0 || offRemote };
246871
+ }
246854
246872
 
246855
246873
  // src/core/site/git-hash.ts
246856
246874
  function workerBuildNeedsGitHashError() {
@@ -255336,6 +255354,7 @@ var deno2 = Object.freeze({
255336
255354
  });
255337
255355
  globalThis.Deno = deno2;
255338
255356
  globalThis.Buffer = Buffer2;
255357
+ if (typeof process !== "undefined") process.version = "v22.23.4";
255339
255358
  try {
255340
255359
  new AsyncLocalStorage().enterWith(void 0);
255341
255360
  } catch {
@@ -258213,150 +258232,6 @@ function asset(name) {
258213
258232
  // ../functions-compiler/src/esbuild/private-data-sources-virtual.ts
258214
258233
  import path19 from "node:path";
258215
258234
 
258216
- // ../functions-compiler/src/error-records.ts
258217
- var FEED_CONTEXT_HEADER = "x-b44-feed-context";
258218
- var ERROR_RECORD_LIMITS = {
258219
- bodyBytes: 2048,
258220
- bodyDeadlineMs: 50,
258221
- nameChars: 64,
258222
- messageBytes: 500,
258223
- stackBytes: 4096,
258224
- minSecretChars: 8,
258225
- loggedErrors: 8
258226
- };
258227
- var L2 = ERROR_RECORD_LIMITS;
258228
- var ERROR_RECORDS_PATCH = [
258229
- `const _b44ErrorStore = (request) => request.headers.has(${JSON.stringify(FEED_CONTEXT_HEADER)}) ? { errorRecord: { logged: [] } } : {};`,
258230
- "const _b44NoteError = (a) => {",
258231
- " const c = _b44Context();",
258232
- " if (!c || !c.errorRecord) return;",
258233
- " for (const x of a) {",
258234
- " if (!(x instanceof Error)) continue;",
258235
- " const r = (k) => { try { const v = x[k]; return typeof v === 'string' ? v : undefined; } catch (e) { return undefined; } };",
258236
- " const logged = c.errorRecord.logged;",
258237
- " logged.push({ name: r('name'), message: r('message'), stack: r('stack') });",
258238
- ` if (logged.length > ${L2.loggedErrors}) logged.shift();`,
258239
- " }",
258240
- "};",
258241
- "for (const _l of ['log', 'info', 'warn', 'error', 'debug']) { const _f = console[_l]; console[_l] = (...a) => { try { _b44NoteError(a); } catch (e) {} return _f(...a); }; }",
258242
- "const _b44ReadJson = async (res) => {",
258243
- " if (!res.body) return undefined;",
258244
- " const reader = res.body.getReader();",
258245
- " const chunks = [];",
258246
- " let size = 0;",
258247
- " let timer;",
258248
- ` const deadline = new Promise((r) => { timer = setTimeout(() => r(null), ${L2.bodyDeadlineMs}); });`,
258249
- " try {",
258250
- " for (;;) {",
258251
- " const step = await Promise.race([reader.read(), deadline]);",
258252
- " if (step === null) return undefined;",
258253
- " if (step.done) break;",
258254
- " size += step.value.byteLength;",
258255
- ` if (size > ${L2.bodyBytes}) return undefined;`,
258256
- " chunks.push(step.value);",
258257
- " }",
258258
- " } finally {",
258259
- " clearTimeout(timer);",
258260
- " try { reader.cancel().catch(() => {}); } catch (e) {}",
258261
- " }",
258262
- " const buf = new Uint8Array(size);",
258263
- " let o = 0;",
258264
- " for (const ch of chunks) { buf.set(ch, o); o += ch.byteLength; }",
258265
- " try { return JSON.parse(new TextDecoder().decode(buf)); } catch (e) { return undefined; }",
258266
- "};",
258267
- "const _b44HasString = (v, s, d = 0) => {",
258268
- " if (v === s) return true;",
258269
- " if (d > 16 || !v || typeof v !== 'object') return false;",
258270
- " for (const k of Object.keys(v)) if (_b44HasString(v[k], s, d + 1)) return true;",
258271
- " return false;",
258272
- "};",
258273
- "const _b44BodyMessage = (b) => {",
258274
- " if (!b || typeof b !== 'object' || Array.isArray(b)) return undefined;",
258275
- " const s = (v) => (typeof v === 'string' && v.trim() !== '' ? v : undefined);",
258276
- " const skipError = Object.prototype.hasOwnProperty.call(b, 'details') && b.error === 'Internal server error';",
258277
- " const nested = b.error && typeof b.error === 'object' ? b.error.message : undefined;",
258278
- " return (skipError ? undefined : s(b.error)) ?? s(b.message) ?? s(b.detail) ?? s(b.details) ?? s(nested);",
258279
- "};",
258280
- "const _b44SecretValues = (c) => {",
258281
- " const out = new Set();",
258282
- " let budget = 10000;",
258283
- " const add = (v, d) => {",
258284
- " if (--budget < 0) return;",
258285
- " if (typeof v === 'string') {",
258286
- ` if (v.length >= ${L2.minSecretChars}) out.add(v);`,
258287
- " const t = v.trimStart();",
258288
- " if (d < 2 && (t[0] === '{' || t[0] === '[')) { try { add(JSON.parse(v), d + 1); } catch (e) {} }",
258289
- " } else if (d > 0 && d < 16 && v && typeof v === 'object') {",
258290
- " for (const k of Object.keys(v)) add(v[k], d + 1);",
258291
- " }",
258292
- " };",
258293
- " for (const src of [c.secrets, c.workerEnv]) {",
258294
- " if (!src || typeof src !== 'object') continue;",
258295
- " for (const k of Object.keys(src)) { try { add(src[k], 0); } catch (e) {} }",
258296
- " }",
258297
- " return [...out].sort((x, y) => y.length - x.length);",
258298
- "};",
258299
- "const _b44Scrub = (s, secrets) => { let out = s; for (const v of secrets) if (out.includes(v)) out = out.split(v).join('[redacted]'); return out; };",
258300
- "const _b44Well = (s) => (typeof s.toWellFormed === 'function' ? s.toWellFormed() : s);",
258301
- "const _b44Bytes = (s) => new TextEncoder().encode(s).length;",
258302
- "const _b44CutBytes = (s, max) => {",
258303
- " if (_b44Bytes(s) <= max) return s;",
258304
- " let n = 0;",
258305
- " let out = '';",
258306
- " for (const ch of s) {",
258307
- " const cp = ch.codePointAt(0);",
258308
- " const b = cp < 0x80 ? 1 : cp < 0x800 ? 2 : cp < 0x10000 ? 3 : 4;",
258309
- " if (n + b > max) break;",
258310
- " n += b;",
258311
- " out += ch;",
258312
- " }",
258313
- " return out;",
258314
- "};",
258315
- "const _b44CutLines = (s, max) => {",
258316
- " if (_b44Bytes(s) <= max) return s;",
258317
- " let n = 0;",
258318
- " let out = '';",
258319
- " for (const line of s.split('\\n')) {",
258320
- " const b = _b44Bytes(line) + (out ? 1 : 0);",
258321
- " if (n + b > max) break;",
258322
- " out += (out ? '\\n' : '') + line;",
258323
- " n += b;",
258324
- " }",
258325
- " return out;",
258326
- "};",
258327
- "const _b44WriteErrorRecord = async (c, status, copy, logged) => {",
258328
- " try {",
258329
- " const body = await _b44ReadJson(copy);",
258330
- " const usable = logged.filter((e) => e.message);",
258331
- " let chosen;",
258332
- " if (body !== undefined) {",
258333
- " for (let i = usable.length - 1; i >= 0; i--) if (_b44HasString(body, usable[i].message)) { chosen = usable[i]; break; }",
258334
- " }",
258335
- " let message = chosen ? chosen.message : _b44BodyMessage(body);",
258336
- " if (message === undefined && usable.length > 0) { chosen = usable[usable.length - 1]; message = chosen.message; }",
258337
- " if (message === undefined) return;",
258338
- " const secrets = _b44SecretValues(c);",
258339
- " const clean = (s) => _b44Well(_b44Scrub(s, secrets));",
258340
- " const rec = { v: 1, kind: 'response', status };",
258341
- ` const name = chosen && chosen.name ? Array.from(clean(chosen.name)).slice(0, ${L2.nameChars}).join('') : '';`,
258342
- " if (name) rec.name = name;",
258343
- ` rec.message = _b44CutBytes(clean(message), ${L2.messageBytes});`,
258344
- ` const stack = chosen && chosen.stack ? _b44CutLines(clean(chosen.stack), ${L2.stackBytes}) : '';`,
258345
- " if (stack) rec.stack = stack;",
258346
- " console.error({ _b44_error: rec });",
258347
- " } catch (e) {}",
258348
- "};",
258349
- "const _b44RecordError = (res) => {",
258350
- " try {",
258351
- " const c = _b44Context();",
258352
- " if (!c || !c.errorRecord || !c.waitUntil || !(res instanceof Response) || !(res.status >= 500)) return res;",
258353
- " c.waitUntil(_b44WriteErrorRecord(c, res.status, res.clone(), c.errorRecord.logged.slice()));",
258354
- " } catch (e) {}",
258355
- " return res;",
258356
- "};"
258357
- ].join(`
258358
- `);
258359
-
258360
258235
  // ../functions-compiler/src/errors.ts
258361
258236
  class DenoCompatError extends Error {
258362
258237
  file;
@@ -258451,7 +258326,7 @@ var TELEMETRY_PATCH = [
258451
258326
  var TELEMETRY_STORE_FIELDS = "reqId: crypto.randomUUID(), respondedAt: null, inflight: new Map(), inflightTotal: 0, hadRejection: false, hadNonOk: false, logBudget: 5";
258452
258327
 
258453
258328
  // ../functions-compiler/src/version.ts
258454
- var COMPILER_VERSION = "0.1.8";
258329
+ var COMPILER_VERSION = "0.1.9";
258455
258330
 
258456
258331
  // ../functions-compiler/src/worker-entry.ts
258457
258332
  function denoShimSource() {
@@ -258553,14 +258428,13 @@ var ACTIVATION_TAKE = ` const _b44Taken = takeActivationChallenge(request); r
258553
258428
  function activationGuard(runtimeSecrets) {
258554
258429
  return (expr) => runtimeSecrets ? `withoutActivationHeaders(${expr}, _b44Activation)` : expr;
258555
258430
  }
258556
- var HANDLER_CALL = "_b44RecordError(await handler(request, info))";
258557
258431
  function activationImport(runtimeSecrets) {
258558
258432
  return runtimeSecrets ? `
258559
258433
  import { ensureActivation, takeActivationChallenge, withoutActivationHeaders } from "./${ACTIVATION_FILENAME}";` : "";
258560
258434
  }
258561
258435
  function buildEntrySource(userEntry, telemetry, runtimeSecrets = false) {
258562
258436
  const userImport = `./${userEntry.replace(/^\.\//, "")}`;
258563
- const handlerExpr = telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL;
258437
+ const handlerExpr = telemetry ? "_b44AttachTelemetry(await handler(request, info))" : runtimeSecrets ? "await handler(request, info)" : "handler(request, info)";
258564
258438
  const guard = activationGuard(runtimeSecrets);
258565
258439
  const returnExpr = guard(handlerExpr);
258566
258440
  return `// Auto-generated by the base44 bundler. Do not edit.
@@ -258569,7 +258443,6 @@ import { currentWorkerRuntimeContext as _b44Context, runWithWorkerEnvironment as
258569
258443
  import { getRegisteredHandler, installStaticEgressFetch } from "./${SHIM_FILENAME}";${activationImport(runtimeSecrets)}
258570
258444
 
258571
258445
  ${consolePatch(runtimeSecrets)}
258572
- ${ERROR_RECORDS_PATCH}
258573
258446
  // Static egress reads workerEnv from the active request store. Install it
258574
258447
  // before telemetry so telemetry remains the outermost fetch wrapper.
258575
258448
  installStaticEgressFetch();
@@ -258579,7 +258452,7 @@ let _b44Init = null;
258579
258452
  export default {
258580
258453
  async fetch(request, env, ctx) {
258581
258454
  ${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
258582
- return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258455
+ return _b44Run({ env: _b44Env, secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258583
258456
  ${runtimeSecrets ? ACTIVATION_GATE : ""} if (!_b44Init) _b44Init = import(${JSON.stringify(userImport)}).catch(e => { _b44Init = null; throw e; });
258584
258457
  const _b44Mod = await _b44Init;
258585
258458
  // Deno.serve capture wins (legacy contract, zero behavior change);
@@ -258614,7 +258487,7 @@ registerLazy(${JSON.stringify(functionName)}, () => import(${JSON.stringify(user
258614
258487
  function buildAppEntrySource(functionModules, telemetry, runtimeSecrets = false) {
258615
258488
  const moduleImports = functionModules.map((file) => `import "./${file}";`).join(`
258616
258489
  `);
258617
- const handlerExpr = `_b44AttachInvocationLogs(${telemetry ? `_b44AttachTelemetry(${HANDLER_CALL})` : HANDLER_CALL})`;
258490
+ const handlerExpr = `_b44AttachInvocationLogs(${telemetry ? "_b44AttachTelemetry(await handler(request, info))" : "await handler(request, info)"})`;
258618
258491
  const guard = activationGuard(runtimeSecrets);
258619
258492
  const returnExpr = guard(handlerExpr);
258620
258493
  return `// Auto-generated by the base44 bundler. Do not edit.
@@ -258625,7 +258498,6 @@ ${moduleImports}
258625
258498
 
258626
258499
  ${consolePatch(runtimeSecrets)}
258627
258500
  ${INVOCATION_LOGS_PATCH}
258628
- ${ERROR_RECORDS_PATCH}
258629
258501
  // Static egress reads workerEnv from the active request store. Install it
258630
258502
  // before telemetry so telemetry remains the outermost fetch wrapper.
258631
258503
  installStaticEgressFetch();
@@ -258635,7 +258507,7 @@ export default {
258635
258507
  async fetch(request, env, ctx) {
258636
258508
  ${runtimeSecrets ? ACTIVATION_TAKE : ""} const _b44Env = (request.headers.get('base44-functions-version') ?? '') === 'prod' ? 'prod' : 'preview';
258637
258509
  const functionName = request.headers.get("Base44-Function-Name");
258638
- return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request), ..._b44ErrorStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258510
+ return _b44Run({ env: _b44Env, fn: functionName ?? '', secrets: ${runtimeSecrets ? "process.env" : "env"}, workerEnv: env, waitUntil: (p) => ctx.waitUntil(p), ..._b44CaptureStore(request)${telemetry ? `, ${TELEMETRY_STORE_FIELDS}` : ""} }, async () => {
258639
258511
  ${runtimeSecrets ? ACTIVATION_GATE : ""} // Each early return below logs through the patch first: per-function log
258640
258512
  // queries on per-app scripts keep only stamped lines, so a bare return
258641
258513
  // would leave the failing invocation with no trace in its own logs.
@@ -262998,30 +262870,25 @@ var pipelineType = ZodPipeline.create;
262998
262870
  var fileMapSchema = recordType(stringType().min(1), stringType()).refine((files) => Object.keys(files).length > 0, {
262999
262871
  message: "must contain at least one file"
263000
262872
  });
263001
- var entryPathSchema = stringType().min(1).max(200);
263002
262873
  var bundleRequestSchema = objectType({
263003
262874
  entry: stringType().min(1),
263004
262875
  files: fileMapSchema,
263005
- entryPath: entryPathSchema.optional(),
263006
262876
  postResponseTelemetry: booleanType().optional(),
263007
- runtimeSecrets: booleanType().optional(),
263008
- sourceMap: booleanType().optional()
262877
+ runtimeSecrets: booleanType().optional()
263009
262878
  }).refine((body) => (body.entry in body.files), {
263010
262879
  message: "`entry` must be a key in `files`"
263011
262880
  });
263012
262881
  var appFunctionSchema = objectType({
263013
262882
  name: stringType().min(1),
263014
262883
  entry: stringType().min(1),
263015
- files: fileMapSchema,
263016
- entryPath: entryPathSchema.optional()
262884
+ files: fileMapSchema
263017
262885
  }).refine((fn) => (fn.entry in fn.files), {
263018
262886
  message: "`entry` must be a key in `files`"
263019
262887
  });
263020
262888
  var bundleAppRequestSchema = objectType({
263021
262889
  functions: arrayType(appFunctionSchema).min(1),
263022
262890
  postResponseTelemetry: booleanType().optional(),
263023
- runtimeSecrets: booleanType().optional(),
263024
- sourceMap: booleanType().optional()
262891
+ runtimeSecrets: booleanType().optional()
263025
262892
  }).refine((body) => new Set(body.functions.map((fn) => fn.name)).size === body.functions.length, { message: "function names must be unique" });
263026
262893
  var ACTIVATION_MODE = "pull";
263027
262894
 
@@ -263586,8 +263453,7 @@ function wsNativeVirtualPlugin() {
263586
263453
  }
263587
263454
 
263588
263455
  // ../functions-compiler/src/deno-bundle.ts
263589
- var MAIN_MODULE = "_bundled.mjs";
263590
- async function bundleToModule(prepared, nodeModulesDir = "none", sourceMap = false) {
263456
+ async function bundleToModule(prepared, nodeModulesDir = "none") {
263591
263457
  const dir = await mkdtemp(path21.join(tmpdir2(), "b44-bundle-"));
263592
263458
  try {
263593
263459
  await writeFile2(path21.join(dir, "deno.json"), JSON.stringify({ nodeModulesDir }));
@@ -263606,7 +263472,7 @@ async function bundleToModule(prepared, nodeModulesDir = "none", sourceMap = fal
263606
263472
  define: { __dirname: '"/"', __filename: '"/index.js"' },
263607
263473
  minify: true,
263608
263474
  ...prepared.banner ? { banner: { js: prepared.banner } } : {},
263609
- ...sourceMap ? { sourcemap: "linked", sourcesContent: false, outfile: MAIN_MODULE } : { sourcemap: false },
263475
+ sourcemap: false,
263610
263476
  logLevel: "silent",
263611
263477
  plugins: [
263612
263478
  wsNativeVirtualPlugin(),
@@ -263625,19 +263491,14 @@ async function bundleToModule(prepared, nodeModulesDir = "none", sourceMap = fal
263625
263491
  throw e;
263626
263492
  }
263627
263493
  const outputs = result.outputFiles ?? [];
263628
- const warnings = result.warnings.map((w) => w.text);
263629
- if (!sourceMap) {
263630
- if (outputs.length !== 1) {
263631
- throw new Error(`expected single-module output, got ${outputs.length} file(s)`);
263632
- }
263633
- return { ok: true, module: outputs[0].text, warnings };
263634
- }
263635
- const module = outputs.find((o) => o.path.endsWith(".mjs"));
263636
- const map = outputs.find((o) => o.path.endsWith(".map"));
263637
- if (outputs.length !== 2 || !module || !map) {
263638
- throw new Error(`expected a module and its source map, got ${outputs.map((o) => path21.basename(o.path)).join(", ") || "no files"}`);
263494
+ if (outputs.length !== 1) {
263495
+ throw new Error(`expected single-module output, got ${outputs.length} file(s)`);
263639
263496
  }
263640
- return { ok: true, module: module.text, map: map.text, warnings };
263497
+ return {
263498
+ ok: true,
263499
+ module: outputs[0].text,
263500
+ warnings: result.warnings.map((w) => w.text)
263501
+ };
263641
263502
  } finally {
263642
263503
  await rm2(dir, { recursive: true, force: true });
263643
263504
  }
@@ -263683,36 +263544,6 @@ function relativizeFile(file, dir) {
263683
263544
  return file.startsWith(prefix) ? file.slice(prefix.length) : file;
263684
263545
  }
263685
263546
 
263686
- // ../functions-compiler/src/source-map.ts
263687
- var INTERNAL_SOURCE_PREFIX = "base44-internal:";
263688
- var USER_PREFIX = `${USER_NAMESPACE}:`;
263689
- var APP_FUNCTION_PATH = /^fn_(\d+)\/(.*)$/;
263690
- function functionSourceMap(raw, fn) {
263691
- return rewriteSources(raw, (key) => appPath(fn, key));
263692
- }
263693
- function appSourceMap(raw, functions) {
263694
- return rewriteSources(raw, (key) => {
263695
- const match = key.match(APP_FUNCTION_PATH);
263696
- const fn = match ? functions[Number(match[1])] : undefined;
263697
- return fn && match ? appPath(fn, match[2]) : undefined;
263698
- });
263699
- }
263700
- function appPath(fn, key) {
263701
- if (!Object.hasOwn(fn.files, key))
263702
- return;
263703
- return key === fn.entry && fn.entryPath ? fn.entryPath : key;
263704
- }
263705
- function rewriteSources(raw, appPathOf) {
263706
- const map = JSON.parse(raw);
263707
- map.sources = (map.sources ?? []).map((source) => {
263708
- const app = source.startsWith(USER_PREFIX) ? appPathOf(source.slice(USER_PREFIX.length)) : undefined;
263709
- return app ?? `${INTERNAL_SOURCE_PREFIX}${source}`;
263710
- });
263711
- delete map.sourceRoot;
263712
- delete map.sourcesContent;
263713
- return JSON.stringify(map);
263714
- }
263715
-
263716
263547
  // ../functions-compiler/src/tracing.ts
263717
263548
  var noopTracer = {
263718
263549
  withSpan: (_name, fn) => fn(),
@@ -263727,6 +263558,7 @@ function setSpanTags(tags) {
263727
263558
  }
263728
263559
 
263729
263560
  // ../functions-compiler/src/bundler.ts
263561
+ var NORMALIZED_MAIN_MODULE = "_bundled.mjs";
263730
263562
  var MAX_PARALLEL_COMPILES = 4;
263731
263563
  async function bundle(req) {
263732
263564
  let actor;
@@ -263747,7 +263579,7 @@ async function bundle(req) {
263747
263579
  return {
263748
263580
  ok: true,
263749
263581
  module: outcome.module,
263750
- main_module: MAIN_MODULE,
263582
+ main_module: NORMALIZED_MAIN_MODULE,
263751
263583
  warnings: outcome.warnings,
263752
263584
  handler_name: actor.handlerName,
263753
263585
  do_class_name: actor.doClassName
@@ -263761,13 +263593,12 @@ async function bundle(req) {
263761
263593
  } catch (e) {
263762
263594
  return denoCompatErrorOrThrow(e);
263763
263595
  }
263764
- const outcome = await installAndCompile(prepared, req.sourceMap ?? false);
263596
+ const outcome = await installAndCompile(prepared);
263765
263597
  if (outcome.ok) {
263766
263598
  return {
263767
263599
  ok: true,
263768
263600
  module: outcome.module,
263769
- ...outcome.map ? { source_map: functionSourceMap(outcome.map, req) } : {},
263770
- main_module: MAIN_MODULE,
263601
+ main_module: NORMALIZED_MAIN_MODULE,
263771
263602
  warnings: outcome.warnings,
263772
263603
  ...activationField(req.runtimeSecrets ?? false)
263773
263604
  };
@@ -263782,29 +263613,26 @@ async function bundleApp(req) {
263782
263613
  return result.ok ? { ...result, ...activationField(req.runtimeSecrets ?? false) } : result;
263783
263614
  }
263784
263615
  async function assembleApp(req) {
263785
- const build = {
263786
- telemetry: req.postResponseTelemetry ?? false,
263787
- runtimeSecrets: req.runtimeSecrets ?? false,
263788
- sourceMap: req.sourceMap ?? false
263789
- };
263616
+ const telemetry = req.postResponseTelemetry ?? false;
263617
+ const runtimeSecrets = req.runtimeSecrets ?? false;
263790
263618
  const entries = req.functions.map((fn, index) => ({
263791
263619
  index,
263792
263620
  fn
263793
263621
  }));
263794
263622
  let combined;
263795
263623
  try {
263796
- combined = await compileApp(entries, build);
263624
+ combined = await compileApp(entries, telemetry, runtimeSecrets);
263797
263625
  } catch (e) {
263798
263626
  if (e instanceof DenoCompatError)
263799
- return bundleAppPerFunction(entries, build);
263627
+ return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263800
263628
  throw e;
263801
263629
  }
263802
263630
  if (combined.ok) {
263803
- return appResponse(combined, allOk(entries));
263631
+ return appResponse(combined.module, allOk(entries));
263804
263632
  }
263805
263633
  const { byIndex, unattributable } = classifyAppErrors(combined.errors);
263806
263634
  if (unattributable.length > 0) {
263807
- return bundleAppPerFunction(entries, build);
263635
+ return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263808
263636
  }
263809
263637
  const functions = entries.map((e) => byIndex.has(e.index) ? { name: e.fn.name, ok: false, errors: byIndex.get(e.index) } : { name: e.fn.name, ok: true });
263810
263638
  const survivors = entries.filter((e) => !byIndex.has(e.index));
@@ -263813,42 +263641,25 @@ async function assembleApp(req) {
263813
263641
  }
263814
263642
  let rebuilt;
263815
263643
  try {
263816
- rebuilt = await compileApp(survivors, build);
263644
+ rebuilt = await compileApp(survivors, telemetry, runtimeSecrets);
263817
263645
  } catch (e) {
263818
263646
  if (e instanceof DenoCompatError)
263819
- return bundleAppPerFunction(entries, build);
263647
+ return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263820
263648
  throw e;
263821
263649
  }
263822
263650
  if (rebuilt.ok)
263823
- return appResponse(rebuilt, functions);
263824
- return bundleAppPerFunction(entries, build);
263825
- }
263826
- async function compileApp(entries, build) {
263827
- const outcome = await installAndCompile(prepareApp(entries, build.telemetry, build.runtimeSecrets), build.sourceMap);
263828
- if (!outcome.ok)
263829
- return { ok: false, errors: outcome.errors };
263830
- if (!outcome.map)
263831
- return { ok: true, module: outcome.module };
263832
- const functions = [];
263833
- for (const { index, fn } of entries)
263834
- functions[index] = fn;
263835
- return {
263836
- ok: true,
263837
- module: outcome.module,
263838
- map: appSourceMap(outcome.map, functions)
263839
- };
263651
+ return appResponse(rebuilt.module, functions);
263652
+ return bundleAppPerFunction(entries, telemetry, runtimeSecrets);
263653
+ }
263654
+ async function compileApp(entries, telemetry = false, runtimeSecrets = false) {
263655
+ const outcome = await installAndCompile(prepareApp(entries, telemetry, runtimeSecrets));
263656
+ return outcome.ok ? { ok: true, module: outcome.module } : { ok: false, errors: outcome.errors };
263840
263657
  }
263841
263658
  function allOk(entries) {
263842
263659
  return entries.map((e) => ({ name: e.fn.name, ok: true }));
263843
263660
  }
263844
- function appResponse(built, functions) {
263845
- return {
263846
- ok: true,
263847
- module: built.module,
263848
- ...built.map ? { source_map: built.map } : {},
263849
- main_module: MAIN_MODULE,
263850
- functions
263851
- };
263661
+ function appResponse(module, functions) {
263662
+ return { ok: true, module, main_module: NORMALIZED_MAIN_MODULE, functions };
263852
263663
  }
263853
263664
  function classifyAppErrors(errors) {
263854
263665
  const byIndex = new Map;
@@ -263866,19 +263677,19 @@ function classifyAppErrors(errors) {
263866
263677
  }
263867
263678
  return { byIndex, unattributable };
263868
263679
  }
263869
- async function bundleAppPerFunction(entries, build) {
263870
- const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, build.runtimeSecrets));
263680
+ async function bundleAppPerFunction(entries, telemetry = false, runtimeSecrets = false) {
263681
+ const probes = await mapWithConcurrency(entries, MAX_PARALLEL_COMPILES, (entry) => probeFunction(entry, runtimeSecrets));
263871
263682
  const functions = probes.map((p) => p.ok ? { name: p.entry.fn.name, ok: true } : { name: p.entry.fn.name, ok: false, errors: p.errors });
263872
263683
  const survivors = probes.filter((p) => p.ok).map((p) => p.entry);
263873
263684
  if (survivors.length === 0) {
263874
263685
  return { ok: false, module: null, functions };
263875
263686
  }
263876
- const combined = await compileApp(survivors, build);
263687
+ const combined = await compileApp(survivors, telemetry, runtimeSecrets);
263877
263688
  if (combined.ok)
263878
- return appResponse(combined, functions);
263879
- return assembleWithoutConflicting(survivors, functions, combined.errors, build);
263689
+ return appResponse(combined.module, functions);
263690
+ return assembleWithoutConflicting(survivors, functions, combined.errors, telemetry, runtimeSecrets);
263880
263691
  }
263881
- async function assembleWithoutConflicting(survivors, functions, errors, build) {
263692
+ async function assembleWithoutConflicting(survivors, functions, errors, telemetry, runtimeSecrets = false) {
263882
263693
  const failWith = (entries, items) => {
263883
263694
  for (const e of entries) {
263884
263695
  functions[e.index] = { name: e.fn.name, ok: false, errors: items };
@@ -263893,10 +263704,10 @@ async function assembleWithoutConflicting(survivors, functions, errors, build) {
263893
263704
  const blamed = survivors.filter((e) => importsConflictingPackage(e, errors));
263894
263705
  const rest = survivors.filter((e) => !blamed.includes(e));
263895
263706
  if (blamed.length > 0 && rest.length > 0) {
263896
- const rebuilt = await compileApp(rest, build);
263707
+ const rebuilt = await compileApp(rest, telemetry, runtimeSecrets);
263897
263708
  if (rebuilt.ok) {
263898
263709
  failWith(blamed, conflictErrors);
263899
- return appResponse(rebuilt, functions);
263710
+ return appResponse(rebuilt.module, functions);
263900
263711
  }
263901
263712
  failWith(blamed, conflictErrors);
263902
263713
  failWith(rest, [conflictErrors[0], ...rebuilt.errors]);
@@ -263933,11 +263744,7 @@ function escapeRegExp(s) {
263933
263744
  async function probeFunction(entry, runtimeSecrets = false) {
263934
263745
  let outcome;
263935
263746
  try {
263936
- outcome = await compileApp([entry], {
263937
- telemetry: false,
263938
- runtimeSecrets,
263939
- sourceMap: false
263940
- });
263747
+ outcome = await compileApp([entry], false, runtimeSecrets);
263941
263748
  } catch (e) {
263942
263749
  if (e instanceof DenoCompatError) {
263943
263750
  return { ok: false, entry, errors: [denoCompatErrorItem(e)] };
@@ -263967,25 +263774,20 @@ async function mapWithConcurrency(items, limit, fn) {
263967
263774
  return results;
263968
263775
  }
263969
263776
  var NODE_MODULES_FALLBACK = /ERR_MODULE_NOT_FOUND|Could not find referrer npm package/;
263970
- async function installAndCompile(prepared, sourceMap = false) {
263777
+ async function installAndCompile(prepared) {
263971
263778
  return withSpan("base44.bundler.compile", async () => {
263972
263779
  let mode = "none";
263973
- let result = await bundleToModule(prepared, mode, sourceMap);
263780
+ let result = await bundleToModule(prepared, mode);
263974
263781
  if (!result.ok && result.errors.some((e) => NODE_MODULES_FALLBACK.test(e.message))) {
263975
263782
  mode = "auto";
263976
- result = await bundleToModule(prepared, mode, sourceMap);
263783
+ result = await bundleToModule(prepared, mode);
263977
263784
  }
263978
263785
  await setSpanTags({
263979
263786
  node_modules_mode: mode,
263980
263787
  outcome: result.ok ? "ok" : "failed"
263981
263788
  });
263982
263789
  if (result.ok) {
263983
- return {
263984
- ok: true,
263985
- module: result.module,
263986
- ...result.map ? { map: result.map } : {},
263987
- warnings: result.warnings
263988
- };
263790
+ return { ok: true, module: result.module, warnings: result.warnings };
263989
263791
  }
263990
263792
  return { ok: false, stage: "esbuild", errors: result.errors };
263991
263793
  });
@@ -270002,6 +269804,385 @@ Examples:
270002
269804
  $ echo "const all = await base44.entities.Task.list()" | base44 exec --privileged`).action(execAction);
270003
269805
  }
270004
269806
 
269807
+ // src/cli/commands/import.ts
269808
+ var import_ms2 = __toESM(require_ms(), 1);
269809
+
269810
+ // src/core/session-import/api.ts
269811
+ var MAX_SESSION_BYTES = 25 * 1024 * 1024;
269812
+ var SessionImportResponseSchema = object({
269813
+ branch_id: string2(),
269814
+ branch_name: string2(),
269815
+ source: _enum(["claude_code", "codex"]),
269816
+ turn_count: number2(),
269817
+ branch_url: string2()
269818
+ }).transform((data) => ({
269819
+ branchId: data.branch_id,
269820
+ branchName: data.branch_name,
269821
+ source: data.source,
269822
+ turnCount: data.turn_count,
269823
+ branchUrl: data.branch_url
269824
+ }));
269825
+ var ErrorEnvelopeSchema = object({
269826
+ error: object({ code: string2().optional() })
269827
+ });
269828
+ var NETWORK_BLOCKED = "claude.ai is blocking Base44. In this session's environment settings, open Network access, add `app.base44.com` and `base44.app` to Allowed domains, save, and try again.";
269829
+ function messageFor(status, code, viaToken) {
269830
+ if (status === 401 && viaToken) {
269831
+ return "This import key expired or was already used. In Base Code, open Import session and copy a new prompt.";
269832
+ }
269833
+ if (status === 403) {
269834
+ return "You don't have edit access to this app, or this key was made for a different app.";
269835
+ }
269836
+ if (status === 404)
269837
+ return "Session import isn't available for this app.";
269838
+ if (status === 413)
269839
+ return "This session is over 25 MB and can't be imported.";
269840
+ if (code === "unsupported_file") {
269841
+ return "That file isn't a Claude Code or Codex session.";
269842
+ }
269843
+ if (code === "repository_mismatch") {
269844
+ return "This session is from a different repository than the app.";
269845
+ }
269846
+ if (status === 429)
269847
+ return "Too many imports. Wait a minute and try again.";
269848
+ return;
269849
+ }
269850
+ async function toImportError(error, viaToken) {
269851
+ if (!(error instanceof HTTPError)) {
269852
+ const reason = error instanceof Error ? error.message : String(error);
269853
+ return new ApiError(process.env.CLAUDE_CODE_REMOTE ? NETWORK_BLOCKED : `Couldn't reach Base44: ${reason}`, { hints: [] });
269854
+ }
269855
+ const { status } = error.response;
269856
+ const fallback = await ApiError.fromHttpError(error, "importing session");
269857
+ const envelope = ErrorEnvelopeSchema.safeParse(fallback.responseBody);
269858
+ const code = envelope.success ? envelope.data.error.code : undefined;
269859
+ const blocked = process.env.CLAUDE_CODE_REMOTE && status === 403 && typeof fallback.responseBody !== "object";
269860
+ const known = blocked ? NETWORK_BLOCKED : messageFor(status, code, viaToken);
269861
+ return new ApiError(known ?? fallback.message, {
269862
+ statusCode: status,
269863
+ requestUrl: error.request.url,
269864
+ requestMethod: error.request.method,
269865
+ requestId: fallback.requestId,
269866
+ hints: known ? [] : fallback.hints
269867
+ });
269868
+ }
269869
+ async function uploadSession(appId, content, { token, sourceBranch } = {}) {
269870
+ const form = new FormData;
269871
+ form.append("file", new Blob([content]), "session.jsonl");
269872
+ if (sourceBranch)
269873
+ form.append("source_branch", sourceBranch);
269874
+ let response;
269875
+ try {
269876
+ response = token ? await distribution_default.post(new URL(`/api/apps/${appId}/imported/session-imports`, getBase44ApiUrl()), {
269877
+ body: form,
269878
+ headers: {
269879
+ Authorization: `Bearer ${token}`,
269880
+ "User-Agent": "Base44 CLI"
269881
+ },
269882
+ timeout: 180000
269883
+ }) : await getAppClient().post("imported/session-imports", {
269884
+ body: form,
269885
+ timeout: 180000
269886
+ });
269887
+ } catch (error) {
269888
+ throw await toImportError(error, Boolean(token));
269889
+ }
269890
+ const result = SessionImportResponseSchema.safeParse(await response.json());
269891
+ if (!result.success) {
269892
+ throw new SchemaValidationError("Invalid session import response from server", result.error);
269893
+ }
269894
+ return result.data;
269895
+ }
269896
+
269897
+ // src/core/session-import/sessions.ts
269898
+ import { createReadStream as createReadStream3 } from "node:fs";
269899
+ import { realpath as realpath2, rm as rm5, stat as stat8 } from "node:fs/promises";
269900
+ import { homedir as homedir5 } from "node:os";
269901
+ import { dirname as dirname29, join as join41 } from "node:path";
269902
+ import { createInterface as createInterface2 } from "node:readline";
269903
+ var claudeDir = () => process.env.CLAUDE_CONFIG_DIR || join41(homedir5(), ".claude");
269904
+ var codexDir = () => process.env.CODEX_HOME || join41(homedir5(), ".codex");
269905
+ async function scanLines(path, pick, maxLines = Number.POSITIVE_INFINITY) {
269906
+ const lines = createInterface2({ input: createReadStream3(path) });
269907
+ let count = 0;
269908
+ try {
269909
+ for await (const line of lines) {
269910
+ if (++count > maxLines)
269911
+ return;
269912
+ try {
269913
+ const found = pick(JSON.parse(line));
269914
+ if (found !== undefined)
269915
+ return found;
269916
+ } catch {}
269917
+ }
269918
+ } finally {
269919
+ lines.close();
269920
+ }
269921
+ return;
269922
+ }
269923
+ var asRecord = (value) => value && typeof value === "object" ? value : {};
269924
+ var codexCwd = (entry) => entry.type === "session_meta" ? String(asRecord(entry.payload).cwd ?? "") : undefined;
269925
+ async function newest(paths) {
269926
+ let best;
269927
+ for (const path of paths) {
269928
+ const { mtimeMs } = await stat8(path);
269929
+ if (!best || mtimeMs > best.mtime)
269930
+ best = { path, mtime: mtimeMs };
269931
+ }
269932
+ return best?.path;
269933
+ }
269934
+ async function sameDir(a, b) {
269935
+ if (a === b)
269936
+ return true;
269937
+ const [ra, rb] = await Promise.all([
269938
+ realpath2(a).catch(() => a),
269939
+ realpath2(b).catch(() => b)
269940
+ ]);
269941
+ return ra === rb;
269942
+ }
269943
+ var codexRollouts = () => globby("sessions/*/*/*/rollout-*.jsonl", {
269944
+ cwd: codexDir(),
269945
+ absolute: true
269946
+ });
269947
+ async function codexRolloutsIn(cwd) {
269948
+ const matches = [];
269949
+ for (const path of await codexRollouts()) {
269950
+ const recorded = await scanLines(path, codexCwd, 1);
269951
+ if (recorded && await sameDir(recorded, cwd))
269952
+ matches.push(path);
269953
+ }
269954
+ return matches;
269955
+ }
269956
+ async function findCurrentSession(cwd) {
269957
+ const claudeId = process.env.CLAUDE_CODE_SESSION_ID;
269958
+ if (claudeId) {
269959
+ const [path] = await globby(`projects/*/${claudeId}.jsonl`, {
269960
+ cwd: claudeDir(),
269961
+ absolute: true
269962
+ });
269963
+ return path;
269964
+ }
269965
+ const codexId = process.env.CODEX_THREAD_ID;
269966
+ if (codexId) {
269967
+ const rollouts = await codexRollouts();
269968
+ return rollouts.find((path) => path.endsWith(`-${codexId}.jsonl`));
269969
+ }
269970
+ return newest(await codexRolloutsIn(cwd));
269971
+ }
269972
+ function claudeUserText(entry) {
269973
+ if (entry.type !== "user" || entry.isMeta || entry.isSidechain)
269974
+ return;
269975
+ const content = asRecord(entry.message).content;
269976
+ return typeof content === "string" && !content.startsWith("<") ? content : undefined;
269977
+ }
269978
+ function codexUserText(entry) {
269979
+ const payload = asRecord(entry.payload);
269980
+ return entry.type === "event_msg" && payload.type === "user_message" ? String(payload.message ?? "") : undefined;
269981
+ }
269982
+ var PICKER_LIMIT = 20;
269983
+ async function listSessions(cwd) {
269984
+ const claudeFolder = cwd.replace(/[^a-zA-Z0-9]/g, "-");
269985
+ const claude = await globby(`projects/${claudeFolder}/*.jsonl`, {
269986
+ cwd: claudeDir(),
269987
+ absolute: true
269988
+ });
269989
+ const candidates = [
269990
+ ...claude.map((path) => ({ tool: "claude_code", path })),
269991
+ ...(await codexRolloutsIn(cwd)).map((path) => ({
269992
+ tool: "codex",
269993
+ path
269994
+ }))
269995
+ ];
269996
+ const dated = await Promise.all(candidates.map(async (c) => ({
269997
+ ...c,
269998
+ updatedAt: (await stat8(c.path)).mtime
269999
+ })));
270000
+ dated.sort((a, b) => b.updatedAt.getTime() - a.updatedAt.getTime());
270001
+ const sessions = [];
270002
+ for (const candidate of dated.slice(0, PICKER_LIMIT)) {
270003
+ const firstMessage = await scanLines(candidate.path, candidate.tool === "claude_code" ? claudeUserText : codexUserText);
270004
+ if (firstMessage)
270005
+ sessions.push({ ...candidate, firstMessage });
270006
+ }
270007
+ return sessions;
270008
+ }
270009
+ var SESSION_ID = /session_[A-Za-z0-9]+/;
270010
+ function parseSessionLink(link) {
270011
+ if (/cshk_/.test(link) || !SESSION_ID.test(link)) {
270012
+ throw new InvalidInputError(`That isn't a claude.ai session address. Copy it from your browser's address bar (not "Copy link").`, { hints: [] });
270013
+ }
270014
+ return link.match(SESSION_ID)[0];
270015
+ }
270016
+ var TELEPORT_PROMPT = "Reply with OK.";
270017
+ var TELEPORT_NOTE = "This session is being continued from another machine";
270018
+ function parseLine(line) {
270019
+ try {
270020
+ return asRecord(JSON.parse(line));
270021
+ } catch {
270022
+ return {};
270023
+ }
270024
+ }
270025
+ function stripTeleportExchange(content) {
270026
+ const lines = content.split(`
270027
+ `);
270028
+ const entries = lines.map(parseLine);
270029
+ const userText = (entry) => entry.type === "user" ? asRecord(entry.message).content : undefined;
270030
+ let end = lines.length;
270031
+ for (let i = lines.length - 1;i >= 0; i--) {
270032
+ if (userText(entries[i] ?? {}) === TELEPORT_PROMPT) {
270033
+ end = i;
270034
+ break;
270035
+ }
270036
+ }
270037
+ return lines.slice(0, end).filter((_, i) => {
270038
+ const entry = entries[i] ?? {};
270039
+ const text = userText(entry);
270040
+ const queued = entry.type === "queue-operation" && entry.content === TELEPORT_PROMPT;
270041
+ const note = typeof text === "string" && text.startsWith(TELEPORT_NOTE);
270042
+ return !queued && !note;
270043
+ }).join(`
270044
+ `);
270045
+ }
270046
+ var NEEDS_CLAUDE = "Claude Code must be installed and signed in to the same claude.ai account to import a claude.ai session.";
270047
+ async function teleportSession(sessionId, cwd) {
270048
+ const origin = await execa("git", ["remote", "get-url", "origin"], {
270049
+ cwd,
270050
+ reject: false
270051
+ });
270052
+ if (origin.exitCode !== 0 || !origin.stdout) {
270053
+ throw new InvalidInputError("Run this from a folder with the app's GitHub repository, so the session can be checked out.");
270054
+ }
270055
+ const tmp = await $dir({ unsafeCleanup: true });
270056
+ const repo = join41(tmp.path, "repo");
270057
+ let projectFolder;
270058
+ try {
270059
+ await execa("git", ["clone", "--quiet", origin.stdout, repo]);
270060
+ const repoReal = await realpath2(repo);
270061
+ const startedAt = Date.now();
270062
+ const claudeBin = getTestOverrides()?.claudeBin ?? "claude";
270063
+ try {
270064
+ await execa(claudeBin, ["--teleport", sessionId, "-p", TELEPORT_PROMPT], {
270065
+ cwd: repo,
270066
+ stdin: "ignore"
270067
+ });
270068
+ } catch {
270069
+ throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
270070
+ }
270071
+ const fresh = [];
270072
+ for (const path of await globby("projects/*/*.jsonl", {
270073
+ cwd: claudeDir(),
270074
+ absolute: true
270075
+ })) {
270076
+ if ((await stat8(path)).mtimeMs < startedAt)
270077
+ continue;
270078
+ const sessionCwd = await scanLines(path, (entry) => typeof entry.cwd === "string" ? entry.cwd : undefined, 50);
270079
+ if (sessionCwd === repo || sessionCwd === repoReal)
270080
+ fresh.push(path);
270081
+ }
270082
+ const file = await newest(fresh);
270083
+ if (!file)
270084
+ throw new DependencyNotFoundError(NEEDS_CLAUDE, { hints: [] });
270085
+ projectFolder = dirname29(file);
270086
+ return stripTeleportExchange((await readFile(file)).toString("utf8"));
270087
+ } finally {
270088
+ if (projectFolder)
270089
+ await rm5(projectFolder, { recursive: true, force: true });
270090
+ await tmp.cleanup();
270091
+ }
270092
+ }
270093
+
270094
+ // src/cli/commands/import.ts
270095
+ var TOOL_LABELS = {
270096
+ claude_code: "Claude Code",
270097
+ codex: "Codex"
270098
+ };
270099
+ async function pickSession(cwd) {
270100
+ const sessions = await listSessions(cwd);
270101
+ if (sessions.length === 0) {
270102
+ throw new InvalidInputError("No Claude Code or Codex sessions found in this folder. Pass --file <path>.");
270103
+ }
270104
+ const choice = await Je({
270105
+ message: "Which session do you want to continue in Base Code?",
270106
+ options: sessions.map((session) => ({
270107
+ value: session.path,
270108
+ label: session.firstMessage.replace(/\s+/g, " ").slice(0, 70),
270109
+ hint: `${TOOL_LABELS[session.tool]}, ${import_ms2.default(Date.now() - session.updatedAt.getTime())} ago`
270110
+ }))
270111
+ });
270112
+ if (Ct(choice)) {
270113
+ Ne("Operation cancelled.");
270114
+ throw new CLIExitError(0);
270115
+ }
270116
+ return choice;
270117
+ }
270118
+ async function readSession(ctx, link, options) {
270119
+ const cwd = process.cwd();
270120
+ if (options.file)
270121
+ return readFile(options.file);
270122
+ if (link) {
270123
+ const sessionId = parseSessionLink(link);
270124
+ const content = await ctx.runTask("Downloading the claude.ai session", () => teleportSession(sessionId, cwd));
270125
+ return Buffer.from(content);
270126
+ }
270127
+ if (options.current) {
270128
+ const path = await findCurrentSession(cwd);
270129
+ if (!path) {
270130
+ throw new InvalidInputError("Couldn't find the current session. Run this from inside Claude Code or Codex, or pass --file <path>.", { hints: [] });
270131
+ }
270132
+ return readFile(path);
270133
+ }
270134
+ if (ctx.isNonInteractive || ctx.jsonMode) {
270135
+ throw new InvalidInputError("Choose a session: pass --current, a claude.ai session link, or --file <path>.");
270136
+ }
270137
+ return readFile(await pickSession(cwd));
270138
+ }
270139
+ async function importAction(ctx, link, options, command) {
270140
+ ctx.errorReporter.setContext({
270141
+ command: {
270142
+ name: "import",
270143
+ args: link ? ["[not reported]"] : [],
270144
+ options: {
270145
+ ...command.opts(),
270146
+ ...options.token ? { token: "[not reported]" } : {}
270147
+ }
270148
+ }
270149
+ });
270150
+ const chosen = [link, options.current, options.file].filter(Boolean).length;
270151
+ if (chosen > 1) {
270152
+ throw new InvalidInputError("Pass only one of: a session link, --current, or --file.");
270153
+ }
270154
+ const appId = requireApp(ctx).id;
270155
+ const content = await readSession(ctx, link, options);
270156
+ if (content.length > MAX_SESSION_BYTES) {
270157
+ throw new InvalidInputError("This session is over 25 MB and can't be imported.", { hints: [] });
270158
+ }
270159
+ const git = link || options.file ? undefined : await readGitState(process.cwd());
270160
+ if (git?.unpushed && !options.skipPushCheck) {
270161
+ throw new InvalidInputError("Your changes aren't on GitHub yet. Ask the user whether to commit and push them (to a new branch if on main or master), then run this again. If they don't want to, run it again with --skip-push-check.", { hints: [] });
270162
+ }
270163
+ const note = git?.unpushed ? "Base Code started from what's on GitHub; your local changes aren't included." : undefined;
270164
+ if (!options.token)
270165
+ await ensureAuth(ctx);
270166
+ ctx.log.info("This uploads the full conversation to Base Code.");
270167
+ const imported = await ctx.runTask("Importing session", () => uploadSession(appId, content, {
270168
+ token: options.token,
270169
+ sourceBranch: git?.branch
270170
+ }));
270171
+ const url = `${getBase44ApiUrl()}${imported.branchUrl}`;
270172
+ return {
270173
+ outroMessage: [
270174
+ `✓ Imported ${imported.turnCount} messages from ${TOOL_LABELS[imported.source]} into branch "${imported.branchName}".`,
270175
+ ...note ? [note] : [],
270176
+ `Open it: ${url}`
270177
+ ].join(`
270178
+ `),
270179
+ stdout: ctx.jsonMode ? toJsonStdout({ ...imported, url, ...note ? { note } : {} }) : undefined
270180
+ };
270181
+ }
270182
+ function getImportCommand() {
270183
+ return new Base44Command("import", { requireAuth: false }).description("Continue a Claude Code or Codex session in a new Base Code branch").argument("[session-link]", "A claude.ai session address (https://claude.ai/code/session_…)").option("--current", "Import the session this command runs inside").option("--file <path>", "Import this session file as is").option("--skip-push-check", "Import even though local changes aren't on GitHub (they won't be included)").option("--token <key>", "One-time import key from Base Code (no login needed)").action(importAction);
270184
+ }
270185
+
270005
270186
  // src/cli/commands/project/eject.ts
270006
270187
  import { resolve as resolve20 } from "node:path";
270007
270188
  var import_kebabCase2 = __toESM(require_kebabCase(), 1);
@@ -270165,6 +270346,7 @@ function createProgram(context) {
270165
270346
  program.addCommand(getExecCommand());
270166
270347
  program.addCommand(getDevCommand());
270167
270348
  program.addCommand(getLogsCommand());
270349
+ program.addCommand(getImportCommand());
270168
270350
  return program;
270169
270351
  }
270170
270352
 
@@ -270173,7 +270355,7 @@ var import_detect_agent = __toESM(require_dist5(), 1);
270173
270355
  import { release, type } from "node:os";
270174
270356
 
270175
270357
  // ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
270176
- import { dirname as dirname29, posix, sep as sep2 } from "path";
270358
+ import { dirname as dirname30, posix, sep as sep2 } from "path";
270177
270359
  function createModulerModifier() {
270178
270360
  const getModuleFromFileName = createGetModuleFromFilename();
270179
270361
  return async (frames) => {
@@ -270182,7 +270364,7 @@ function createModulerModifier() {
270182
270364
  return frames;
270183
270365
  };
270184
270366
  }
270185
- function createGetModuleFromFilename(basePath = process.argv[1] ? dirname29(process.argv[1]) : process.cwd(), isWindows = sep2 === "\\") {
270367
+ function createGetModuleFromFilename(basePath = process.argv[1] ? dirname30(process.argv[1]) : process.cwd(), isWindows = sep2 === "\\") {
270186
270368
  const normalizedBase = isWindows ? normalizeWindowsPath2(basePath) : basePath;
270187
270369
  return (filename) => {
270188
270370
  if (!filename)
@@ -272217,8 +272399,8 @@ class ReduceableCache {
272217
272399
  }
272218
272400
  }
272219
272401
  // ../../node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
272220
- import { createReadStream as createReadStream3 } from "node:fs";
272221
- import { createInterface as createInterface2 } from "node:readline";
272402
+ import { createReadStream as createReadStream4 } from "node:fs";
272403
+ import { createInterface as createInterface3 } from "node:readline";
272222
272404
  var LRU_FILE_CONTENTS_CACHE = new ReduceableCache(25);
272223
272405
  var LRU_FILE_CONTENTS_FS_READ_FAILED = new ReduceableCache(20);
272224
272406
  var DEFAULT_LINES_OF_CONTEXT = 7;
@@ -272261,8 +272443,8 @@ async function addSourceContext(frames) {
272261
272443
  }
272262
272444
  function getContextLinesFromFile(path, ranges, output) {
272263
272445
  return new Promise((resolve) => {
272264
- const stream = createReadStream3(path);
272265
- const lineReaded = createInterface2({
272446
+ const stream = createReadStream4(path);
272447
+ const lineReaded = createInterface3({
272266
272448
  input: stream
272267
272449
  });
272268
272450
  function destroyStreamAndResolve() {
@@ -274171,9 +274353,9 @@ function addCommandInfoToErrorReporter(program, errorReporter) {
274171
274353
  });
274172
274354
  }
274173
274355
  // src/cli/index.ts
274174
- var __dirname4 = dirname30(fileURLToPath7(import.meta.url));
274356
+ var __dirname4 = dirname31(fileURLToPath7(import.meta.url));
274175
274357
  async function runCLI(options) {
274176
- ensureNpmAssets(join41(__dirname4, "../assets"));
274358
+ ensureNpmAssets(join42(__dirname4, "../assets"));
274177
274359
  const errorReporter = new ErrorReporter;
274178
274360
  errorReporter.registerProcessErrorHandlers();
274179
274361
  const jsonMode = process.argv.includes("--json");
@@ -274212,4 +274394,4 @@ export {
274212
274394
  runCLI
274213
274395
  };
274214
274396
 
274215
- //# debugId=92C706DD124493AA64756E2164756E21
274397
+ //# debugId=4FCAB34773EFFFE064756E2164756E21