@arcgis/lumina-compiler 4.34.0-next.67 → 4.34.0-next.69

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/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { externalizeDependencies as ls, path as u, toSystemPathSeparators as te, retrievePackageJson as J, fetchPackageLocation as He, asyncRetrievePackageJson as Ue, existsAsync as z, findPath as ds, toPosixPathSeparators as Fe, isPosix as Ri, getCwd as Mi } from "@arcgis/components-build-utils";
1
+ import { externalizeDependencies as ls, path as u, toSystemPathSeparators as te, retrievePackageJson as R, fetchPackageLocation as He, asyncRetrievePackageJson as Ue, existsAsync as z, findPath as ds, toPosixPathSeparators as Fe, isPosix as Ri, getCwd as Mi } from "@arcgis/components-build-utils";
2
2
  import ps from "vite-plugin-dts";
3
3
  import o from "typescript";
4
4
  import { f as w, l as T } from "./logger-KpGU2b3R.js";
5
5
  import { getMemberName as Q, apiMemberToSynthesizedComments as X, globalPackageIdentifier as Oi, setApiDocFromJsDoc as fe, ApiExtractor as us, hasIgnoredModifier as ms, symbolToDocs as Wt, setDefaultFromInitializer as Bt, multipleJsDocTags as fs, findDecorator as _t, isApiMethod as gs, isApiProperty as ys } from "@arcgis/api-extractor";
6
6
  import { isNotUndefined as j } from "@arcgis/toolkit/predicate";
7
- import { readdir as ze, readFile as O, rm as hs, mkdir as Z, cp as vs, writeFile as D, copyFile as Ss } from "node:fs/promises";
7
+ import { readdir as ze, readFile as J, rm as hs, mkdir as Z, cp as vs, writeFile as D, copyFile as Ss } from "node:fs/promises";
8
8
  import { mappedFind as he } from "@arcgis/toolkit/array";
9
9
  import { camelToKebab as Tt, kebabToPascal as ws, uncapitalize as mt, getPreamble as bs, capitalize as Ts } from "@arcgis/toolkit/string";
10
10
  import { lazyMetaSubItemJoiner as Es, lazyMetaItemJoiner as et, lazyMetaGroupJoiner as Cs, propertyFlagAttribute as Ht, propertyFlagReflect as $s, propertyFlagBoolean as xs, propertyFlagNumber as Ps, propertyFlagState as ks, propertyFlagReadOnly as Is, propertyFlagNoAccessor as As } from "@arcgis/lumina/config";
@@ -337,12 +337,12 @@ function gr(e, t, i) {
337
337
  const a = [], c = /* @__PURE__ */ new Set(), l = [], d = [];
338
338
  ft = void 0;
339
339
  for (let g = 0; g < n.members.length; g++) {
340
- const y = n.members[g], v = yr(y, r, l, c, t);
340
+ const y = n.members[g], v = hr(y, r, l, c, t);
341
341
  v === void 0 ? a.push(y) : Array.isArray(v) ? d.push(...v) : (o.setEmitFlags(v, o.EmitFlags.NoComments), d.push(v));
342
342
  }
343
343
  c.size > 0 && a.forEach((g) => {
344
344
  const y = Q(g.name);
345
- y !== void 0 && c.has(y) && d.push(vr(g));
345
+ (y !== void 0 && c.has(y) || yr(g)) && d.push(Sr(g));
346
346
  }), l.length > 0 && d.push(ur(l, t, i.compiler));
347
347
  const p = o.factory.updateClassDeclaration(
348
348
  n,
@@ -373,8 +373,13 @@ function gr(e, t, i) {
373
373
  } else
374
374
  return e;
375
375
  }
376
+ function yr(e) {
377
+ return o.isPropertyDeclaration(e) && e.type !== void 0 && o.isIntersectionTypeNode(e.type) && e.type.types.some(
378
+ (t) => o.isImportTypeNode(t) && t.qualifier !== void 0 && o.isIdentifier(t.qualifier) && t.qualifier.escapedText === "T9nMeta"
379
+ );
380
+ }
376
381
  let ft;
377
- function yr(e, t, i, n, s) {
382
+ function hr(e, t, i, n, s) {
378
383
  const r = Q(e.name);
379
384
  if (r === void 0)
380
385
  return;
@@ -392,7 +397,7 @@ function yr(e, t, i, n, s) {
392
397
  Qt(e.modifiers),
393
398
  e.name,
394
399
  void 0,
395
- Sr(e.type, s),
400
+ wr(e.type, s),
396
401
  e.initializer
397
402
  );
398
403
  return o.setSyntheticLeadingComments(d, X(l)), d;
@@ -471,13 +476,13 @@ function yr(e, t, i, n, s) {
471
476
  }
472
477
  const Vt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
473
478
  function Xt(e, t, i) {
474
- const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(hr) ?? [];
479
+ const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(vr) ?? [];
475
480
  for (const r of s)
476
481
  e.add(r);
477
482
  return t;
478
483
  }
479
- const hr = /(?<=this.)[\w$]+/gu;
480
- function vr(e) {
484
+ const vr = /(?<=this.)[\w$]+/gu;
485
+ function Sr(e) {
481
486
  if (o.setEmitFlags(e, o.EmitFlags.NoComments), o.isPropertyDeclaration(e)) {
482
487
  const t = Ie(e.modifiers);
483
488
  if (t !== e.modifiers)
@@ -532,7 +537,7 @@ function Ie(e) {
532
537
  )
533
538
  ];
534
539
  }
535
- function Sr(e, t) {
540
+ function wr(e, t) {
536
541
  if (e === void 0)
537
542
  return;
538
543
  const i = o.isImportTypeNode(e) && e.qualifier && o.isIdentifier(e.qualifier) && e.qualifier.escapedText === "EventEmitter" ? e.typeArguments ?? [] : o.isTypeReferenceNode(e) && o.isIdentifier(e.typeName) && e.typeName.escapedText === "EventEmitter" ? e.typeArguments ?? [] : void 0;
@@ -545,10 +550,10 @@ function Sr(e, t) {
545
550
  t.fileName
546
551
  ), e);
547
552
  }
548
- const wr = [ar, fr], Zt = "@arcgis/lumina:componentDtsTransformer";
549
- function br(e) {
553
+ const br = [ar, fr], Zt = "@arcgis/lumina:componentDtsTransformer";
554
+ function Tr(e) {
550
555
  let t;
551
- const i = Tr(e);
556
+ const i = Er(e);
552
557
  return {
553
558
  name: Zt,
554
559
  supports(n) {
@@ -576,22 +581,22 @@ function br(e) {
576
581
  }
577
582
  };
578
583
  }
579
- const Tr = (e) => (t) => (i) => zi(e, t, i, [
580
- ...wr,
584
+ const Er = (e) => (t) => (i) => zi(e, t, i, [
585
+ ...br,
581
586
  ...e.options.types?.declarationAstTransformers ?? []
582
- ]), Er = (e) => new Proxy(e, {
583
- get: Cr,
584
- set: $r
587
+ ]), Cr = (e) => new Proxy(e, {
588
+ get: $r,
589
+ set: xr
585
590
  });
586
- function Cr(e, t, i) {
591
+ function $r(e, t, i) {
587
592
  if (t in e)
588
593
  return Reflect.get(e, t, i);
589
594
  throw new Error(`Requested unexpected property ${String(t)}`);
590
595
  }
591
- function $r(e, t) {
596
+ function xr(e, t) {
592
597
  throw new Error(`Unexpectedly tried to set the ${String(t)} property.`);
593
598
  }
594
- function xr(e) {
599
+ function Pr(e) {
595
600
  const t = e.options.types ?? {};
596
601
  let i = !1;
597
602
  const n = {
@@ -636,7 +641,7 @@ function xr(e) {
636
641
  }
637
642
  },
638
643
  ...t?.resolvers ?? [],
639
- br(e)
644
+ Tr(e)
640
645
  ]
641
646
  });
642
647
  return {
@@ -657,7 +662,7 @@ function xr(e) {
657
662
  if (typeof c != "function")
658
663
  throw new Error("Expected transform to be a function");
659
664
  if (await a.call(this, r), await c.call(
660
- Er({}),
665
+ Cr({}),
661
666
  "",
662
667
  /*
663
668
  * Have to give it a file that will be matched by the tsconfig's
@@ -669,7 +674,7 @@ function xr(e) {
669
674
  }
670
675
  };
671
676
  }
672
- const Pr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Me = Symbol("dynamic html tag name"), gt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
677
+ const kr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Me = Symbol("dynamic html tag name"), gt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
673
678
  /**
674
679
  * There is a "className" property. However, in JSX typings we use "class"
675
680
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -1640,7 +1645,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1640
1645
  "volumeChange",
1641
1646
  "waiting",
1642
1647
  "wheel"
1643
- ]), kr = /* @__PURE__ */ new Set([
1648
+ ]), Ir = /* @__PURE__ */ new Set([
1644
1649
  "area",
1645
1650
  "base",
1646
1651
  "br",
@@ -1716,7 +1721,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1716
1721
  "tspan",
1717
1722
  "use",
1718
1723
  "view"
1719
- ]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), xt = /* @__PURE__ */ new Set([
1724
+ ]), Ar = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), xt = /* @__PURE__ */ new Set([
1720
1725
  "annotation-xml",
1721
1726
  "annotation",
1722
1727
  "maction",
@@ -1748,7 +1753,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1748
1753
  "munder",
1749
1754
  "munderover",
1750
1755
  "semantics"
1751
- ]), Ar = /* @__PURE__ */ new Set([
1756
+ ]), Lr = /* @__PURE__ */ new Set([
1752
1757
  "annotation-xml",
1753
1758
  "color-profile",
1754
1759
  "font-face",
@@ -1758,7 +1763,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1758
1763
  "font-face-name",
1759
1764
  "missing-glyph"
1760
1765
  ]);
1761
- function Lr(e) {
1766
+ function Fr(e) {
1762
1767
  if (e.length === 0)
1763
1768
  return "";
1764
1769
  const t = e[0];
@@ -1771,11 +1776,11 @@ function Lr(e) {
1771
1776
  }
1772
1777
  return e.trim().length === 0 ? t : e;
1773
1778
  }
1774
- const Fr = (e) => e.replaceAll("\\", "\\\\").replace(Nr, "\\${").replaceAll("`", "\\`"), Nr = /\$\{/gu, Dr = (e) => !jr.test(e), jr = /^[^\s"'=<>`]+$/u, Rr = /[&<>]/gu, Mr = {
1779
+ const Nr = (e) => e.replaceAll("\\", "\\\\").replace(Dr, "\\${").replaceAll("`", "\\`"), Dr = /\$\{/gu, jr = (e) => !Rr.test(e), Rr = /^[^\s"'=<>`]+$/u, Mr = /[&<>]/gu, Or = {
1775
1780
  "&": "&amp;",
1776
1781
  "<": "&lt;",
1777
1782
  ">": "&gt;"
1778
- }, Yi = (e) => e.replace(Rr, (t) => Mr[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Ar.has(e), Or = async (e) => Object.fromEntries(
1783
+ }, Yi = (e) => e.replace(Mr, (t) => Or[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Lr.has(e), Jr = async (e) => Object.fromEntries(
1779
1784
  (await e.componentFilesPromise).map((t) => [en(t), t])
1780
1785
  ), en = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Et.slice(0, -3))), kt = async (e, t, i = t) => await ze(i, { recursive: !0 }).catch((n) => {
1781
1786
  if (String(n).includes("ENOENT"))
@@ -1795,15 +1800,15 @@ const Fr = (e) => e.replaceAll("\\", "\\\\").replace(Nr, "\\${").replaceAll("`",
1795
1800
  function Se(e, t) {
1796
1801
  if (!e.startsWith(t) || !e.endsWith(".tsx"))
1797
1802
  return !1;
1798
- const [i, n] = e.slice(0, -4).split(u.sep).slice(Jr);
1803
+ const [i, n] = e.slice(0, -4).split(u.sep).slice(Kr);
1799
1804
  return i === n;
1800
1805
  }
1801
- const Jr = -2, ei = 5, ti = 1, ii = 1, ni = 3, si = 4, qe = o;
1802
- Kr(qe.createSourceMapGenerator);
1803
- Wr(qe.createTextWriter);
1804
- Br(qe.getNewLineCharacter);
1806
+ const Kr = -2, ei = 5, ti = 1, ii = 1, ni = 3, si = 4, qe = o;
1807
+ Wr(qe.createSourceMapGenerator);
1808
+ Br(qe.createTextWriter);
1809
+ _r(qe.getNewLineCharacter);
1805
1810
  const ge = qe;
1806
- function Kr(e) {
1811
+ function Wr(e) {
1807
1812
  if (typeof e != "function")
1808
1813
  throw new Error(
1809
1814
  "Failed to find ts.createSourceMapGenerator() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1813,7 +1818,7 @@ function Kr(e) {
1813
1818
  `ts.createSourceMapGenerator() signature changed. Expected ${ei} arguments. Lumina needs to be updated to support the new TypeScript version`
1814
1819
  );
1815
1820
  }
1816
- function Wr(e) {
1821
+ function Br(e) {
1817
1822
  if (typeof e != "function")
1818
1823
  throw new Error(
1819
1824
  "Failed to find ts.createTextWriter() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1823,7 +1828,7 @@ function Wr(e) {
1823
1828
  `ts.createTextWriter() signature changed. Expected ${ti} arguments. Lumina needs to be updated to support the new TypeScript version`
1824
1829
  );
1825
1830
  }
1826
- function Br(e) {
1831
+ function _r(e) {
1827
1832
  if (typeof e != "function")
1828
1833
  throw new Error(
1829
1834
  "Failed to find ts.getNewLineCharacter() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1833,7 +1838,7 @@ function Br(e) {
1833
1838
  `ts.getNewLineCharacter() signature changed. Expected ${ii} argument. Lumina needs to be updated to support the new TypeScript version`
1834
1839
  );
1835
1840
  }
1836
- function _r(e) {
1841
+ function Hr(e) {
1837
1842
  if (typeof e != "function")
1838
1843
  throw new Error(
1839
1844
  "Failed to find ts.Printer.writeFile() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1843,7 +1848,7 @@ function _r(e) {
1843
1848
  `ts.Printer.writeFile() signature changed. Expected ${ni} arguments. Lumina needs to be updated to support the new TypeScript version`
1844
1849
  );
1845
1850
  }
1846
- function Hr(e) {
1851
+ function Ur(e) {
1847
1852
  if (typeof e != "function")
1848
1853
  throw new Error(
1849
1854
  "Failed to find ts.Printer.writeNode() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1855,23 +1860,23 @@ function Hr(e) {
1855
1860
  }
1856
1861
  function tn(e) {
1857
1862
  const t = ge.createPrinter(e);
1858
- return _r(t.writeFile), Hr(t.writeNode), t;
1863
+ return Hr(t.writeFile), Ur(t.writeNode), t;
1859
1864
  }
1860
1865
  function ri(e) {
1861
1866
  const t = o.isUnionTypeNode(e) ? e.types.map(oi) : [oi(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1862
1867
  (n || s) && i.add("boolean");
1863
1868
  let r = Array.from(i).sort();
1864
- if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > Ur))
1865
- return r.map(Gr);
1869
+ if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > zr))
1870
+ return r.map(Vr);
1866
1871
  }
1867
- const Ur = 40, zr = (e) => e?.some(
1872
+ const zr = 40, qr = (e) => e?.some(
1868
1873
  (t) => t.type === "number" || t.type === "boolean" || t.type === "string" || /**
1869
1874
  * Treat "any" as possibly literal, but not "unknown". Matches Stencil
1870
1875
  * behavior.
1871
1876
  */
1872
1877
  t.type === "any"
1873
- ) ?? !1, qr = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, nn = (e) => e.map(sn).join(" | "), sn = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1874
- function Gr(e) {
1878
+ ) ?? !1, Gr = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, nn = (e) => e.map(sn).join(" | "), sn = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1879
+ function Vr(e) {
1875
1880
  return e === "boolean" ? { type: "boolean" } : Number.isNaN(Number.parseFloat(e)) ? e.startsWith('"') || e.startsWith("'") ? {
1876
1881
  value: e.slice(1, -1),
1877
1882
  type: "string"
@@ -1882,25 +1887,25 @@ function Gr(e) {
1882
1887
  type: "number"
1883
1888
  };
1884
1889
  }
1885
- const Vr = (e, t, i, n) => {
1890
+ const Xr = (e, t, i, n) => {
1886
1891
  const s = e.typeScriptTypeChecker, r = o.isSetAccessor(t) ? t.parameters[0] : t, a = s.getTypeAtLocation(r), c = !i;
1887
1892
  return Oe(s, a, n, e.dir, c);
1888
1893
  };
1889
- function Xr(e, t) {
1894
+ function Qr(e, t) {
1890
1895
  if (e.length === 0)
1891
1896
  return;
1892
- const i = t.matchAll(Qr), n = [];
1897
+ const i = t.matchAll(Zr), n = [];
1893
1898
  for (const s of i) {
1894
1899
  const r = e.find((a) => a.name === s[0]);
1895
1900
  r !== void 0 && n.push({ ...r, start: s.index, end: s.index + r.name.length });
1896
1901
  }
1897
1902
  return n.length === 0 ? void 0 : n;
1898
1903
  }
1899
- const Qr = /"[^"]+"|'[^"]+'|\w+/gu;
1904
+ const Zr = /"[^"]+"|'[^"]+'|\w+/gu;
1900
1905
  function Oe(e, t, i, n, s = !1) {
1901
1906
  let { typeNode: r, references: a } = ci(e, t, i, n), c = ri(r);
1902
1907
  c === void 0 && ({ typeNode: r, references: a } = ci(e, t, i, n, !1), c = ri(r) ?? []);
1903
- const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = qr(l), m = Xr(a, d);
1908
+ const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = Gr(l), m = Qr(a, d);
1904
1909
  return {
1905
1910
  text: d,
1906
1911
  references: m,
@@ -1908,21 +1913,21 @@ function Oe(e, t, i, n, s = !1) {
1908
1913
  };
1909
1914
  }
1910
1915
  function oi(e) {
1911
- Zr.writeNode(o.EmitHint.Unspecified, e, void 0, nt);
1916
+ Yr.writeNode(o.EmitHint.Unspecified, e, void 0, nt);
1912
1917
  const t = nt.getText();
1913
1918
  return nt.clear(), t;
1914
1919
  }
1915
- const Zr = tn({ removeComments: !0 }), nt = ge.createTextWriter(`
1916
- `), rn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, Yr = rn & o.TypeFormatFlags.NodeBuilderFlagsMask, eo = Yr | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1917
- function to(e, t, i, n = !0) {
1920
+ const Yr = tn({ removeComments: !0 }), nt = ge.createTextWriter(`
1921
+ `), rn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, eo = rn & o.TypeFormatFlags.NodeBuilderFlagsMask, to = eo | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1922
+ function io(e, t, i, n = !0) {
1918
1923
  const s = /* @__PURE__ */ new Map();
1919
1924
  se(t, s, i, n);
1920
1925
  const r = t.flags & o.TypeFlags.Union ? t.types.every(ai) : ai(t), a = e.typeToTypeNode(
1921
1926
  t,
1922
1927
  void 0,
1923
- eo & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1928
+ to & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1924
1929
  );
1925
- return s.forEach(io), a === void 0 ? (T.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1930
+ return s.forEach(no), a === void 0 ? (T.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1926
1931
  }
1927
1932
  const ai = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1928
1933
  function ci(e, t, i, n, s = !0) {
@@ -1954,10 +1959,10 @@ function ci(e, t, i, n, s = !0) {
1954
1959
  name: f,
1955
1960
  package: void 0,
1956
1961
  module: "index.js"
1957
- } : no(m, f, i, n);
1962
+ } : so(m, f, i, n);
1958
1963
  r.push(g), a.add(f);
1959
1964
  }
1960
- return { typeNode: to(e, t, c, s), references: r };
1965
+ return { typeNode: io(e, t, c, s), references: r };
1961
1966
  }
1962
1967
  function se(e, t, i, n = !0) {
1963
1968
  if (typeof e != "object" || e === null || !("checker" in e))
@@ -1987,10 +1992,10 @@ function se(e, t, i, n = !0) {
1987
1992
  c !== "resolvedBaseConstructorType" && c !== "resolvedBaseTypes" && c !== "typeParameters" && c !== "typeParameter" && (Array.isArray(l) ? l.forEach((d) => se(d, t, i, n)) : se(l, t, i, n));
1988
1993
  });
1989
1994
  }
1990
- function io(e, t) {
1995
+ function no(e, t) {
1991
1996
  e.origin !== void 0 && (t.origin = e.origin), e.aliasSymbol !== void 0 && (t.aliasSymbol = e.aliasSymbol), e.aliasTypeArguments !== void 0 && (t.aliasTypeArguments = e.aliasTypeArguments);
1992
1997
  }
1993
- function no(e, t, i, n) {
1998
+ function so(e, t, i, n) {
1994
1999
  const s = e?.declarations?.map((c) => c.getSourceFile()) ?? [];
1995
2000
  if (s.length === 0) {
1996
2001
  if (t === "Array")
@@ -2011,7 +2016,7 @@ function no(e, t, i, n) {
2011
2016
  package: Oi,
2012
2017
  module: void 0
2013
2018
  };
2014
- const { packageName: r, moduleName: a } = so(s[0].fileName, n);
2019
+ const { packageName: r, moduleName: a } = ro(s[0].fileName, n);
2015
2020
  return r ? {
2016
2021
  name: t,
2017
2022
  package: r,
@@ -2023,7 +2028,7 @@ function no(e, t, i, n) {
2023
2028
  module: a
2024
2029
  };
2025
2030
  }
2026
- function so(e, t) {
2031
+ function ro(e, t) {
2027
2032
  const i = e.split("/node_modules/");
2028
2033
  if (i.length > 1) {
2029
2034
  const a = i.at(-1);
@@ -2031,23 +2036,23 @@ function so(e, t) {
2031
2036
  }
2032
2037
  const s = e.split("/dist/");
2033
2038
  if (s.length > 1) {
2034
- const a = s.slice(0, -1).join("/"), l = J(a).name, d = s.at(-1);
2039
+ const a = s.slice(0, -1).join("/"), l = R(a).name, d = s.at(-1);
2035
2040
  return { packageName: l, moduleName: d };
2036
2041
  }
2037
2042
  return {
2038
2043
  packageName: void 0,
2039
- moduleName: u.relative(t.root, oo(ro(e, t)))
2044
+ moduleName: u.relative(t.root, ao(oo(e, t)))
2040
2045
  };
2041
2046
  }
2042
- function ro(e, t) {
2047
+ function oo(e, t) {
2043
2048
  return Se(e, t.srcComponents) ? u.join(t.dist, en(e, t.src)) : e.startsWith(t.src) ? u.join(t.dist, e.slice(t.src.length)) : e;
2044
2049
  }
2045
- const oo = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2050
+ const ao = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2046
2051
  function on(e) {
2047
2052
  const t = e.split("/"), n = e[0].startsWith("@") ? 2 : 1, s = t.slice(0, n).join("/"), r = t.slice(n).join("/");
2048
2053
  return { packageName: s, moduleName: r };
2049
2054
  }
2050
- const ao = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2055
+ const co = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2051
2056
  function li(e, t, i) {
2052
2057
  const n = e.declarations;
2053
2058
  if (n !== void 0)
@@ -2061,7 +2066,7 @@ function li(e, t, i) {
2061
2066
  for (const c of a) {
2062
2067
  const l = di(c, t, i);
2063
2068
  if (l !== void 0)
2064
- return co(l);
2069
+ return lo(l);
2065
2070
  }
2066
2071
  }
2067
2072
  }
@@ -2085,16 +2090,16 @@ function di(e, t, i) {
2085
2090
  });
2086
2091
  });
2087
2092
  }
2088
- const co = (e) => e.split("#")[0];
2089
- function lo(e) {
2093
+ const lo = (e) => e.split("#")[0];
2094
+ function po(e) {
2090
2095
  const t = [];
2091
- for (const i of e.matchAll(po)) {
2092
- const n = i.groups.name, s = i.groups.description.replaceAll(uo, " ").trim();
2096
+ for (const i of e.matchAll(uo)) {
2097
+ const n = i.groups.name, s = i.groups.description.replaceAll(mo, " ").trim();
2093
2098
  t.push({ name: n, description: s.endsWith("*") ? s.slice(0, -1).trim() : s });
2094
2099
  }
2095
2100
  return t.length === 0 ? void 0 : t;
2096
2101
  }
2097
- const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\*? ?/gu, mo = ["keyed", "ref", "repeat", "live"], le = "staticHtml", Y = "staticSvg", de = "html", oe = "svg", an = Symbol("maybe HTML namespace or maybe SVG"), cn = "css", ln = "mathml", dn = [cn, de, ln, le, Y, oe], fo = new Set(dn), go = ["safeClassMap", "safeStyleMap", "deferLoad"], yo = "nothing", ho = [...mo, ...dn, ...go, yo], Je = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), ae = {
2102
+ const uo = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, mo = /\n\s+\*? ?/gu, fo = ["keyed", "ref", "repeat", "live"], le = "staticHtml", Y = "staticSvg", de = "html", oe = "svg", an = Symbol("maybe HTML namespace or maybe SVG"), cn = "css", ln = "mathml", dn = [cn, de, ln, le, Y, oe], go = new Set(dn), yo = ["safeClassMap", "safeStyleMap", "deferLoad", "stabilizedRef"], ho = "nothing", vo = [...fo, ...dn, ...yo, ho], Je = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), ae = {
2098
2103
  [de]: ["lit", "lit/html.js", "lit-html"],
2099
2104
  /**
2100
2105
  * Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
@@ -2110,12 +2115,13 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2110
2115
  safeClassMap: ["@arcgis/lumina"],
2111
2116
  safeStyleMap: ["@arcgis/lumina"],
2112
2117
  deferLoad: ["@arcgis/lumina"],
2118
+ stabilizedRef: ["@arcgis/lumina"],
2113
2119
  keyed: ["lit/directives/keyed.js", "lit-html/directives/keyed.js"],
2114
2120
  live: ["lit/directives/live.js", "lit-html/directives/live.js"],
2115
2121
  repeat: ["lit/directives/repeat.js", "lit-html/directives/repeat.js"],
2116
2122
  ref: ["lit/directives/ref.js", "lit-html/directives/ref.js"],
2117
2123
  nothing: ["lit", "@arcgis/lumina", "lit/html.js", "lit-html", "lit-element/lit-element.js"]
2118
- }, vo = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Ke = new RegExp(`\\.(${vo.join("|")})(\\?|$)`, "u"), So = /^import ["'](?<specifier>[^"']+)["'];$/gmu, wo = () => "throwError", V = "@arcgis/lumina:loadLitCss", ee = "?layered", Ne = "?global", bo = (e) => ({
2124
+ }, So = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Ke = new RegExp(`\\.(${So.join("|")})(\\?|$)`, "u"), wo = /^import ["'](?<specifier>[^"']+)["'];$/gmu, bo = () => "throwError", V = "@arcgis/lumina:loadLitCss", ee = "?layered", Ne = "?global", To = (e) => ({
2119
2125
  name: V,
2120
2126
  enforce: "pre",
2121
2127
  configResolved(t) {
@@ -2136,7 +2142,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2136
2142
  if (l && (a = a.slice(0, -Ne.length)), !Ke.test(a) || a.includes("?"))
2137
2143
  return await n.handler.call(this, r, a);
2138
2144
  const d = `${a}?inline`, p = await n.handler.call(this, r, d), { code: m, ...f } = typeof p == "string" ? { code: p } : p ?? {};
2139
- if (typeof m != "string" || !m.startsWith(pn) || !m.endsWith(To))
2145
+ if (typeof m != "string" || !m.startsWith(pn) || !m.endsWith(Eo))
2140
2146
  return T.warn(
2141
2147
  V,
2142
2148
  `Expected vite:css-post to return a JS module with a string literal. Received: ${JSON.stringify(
@@ -2146,7 +2152,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2146
2152
  if (l)
2147
2153
  return e._globalCssString = un(m), { code: "", map: { mappings: "" } };
2148
2154
  {
2149
- const g = e.isFullApiExtraction ? lo(r) : void 0;
2155
+ const g = e.isFullApiExtraction ? po(r) : void 0;
2150
2156
  if (g !== void 0) {
2151
2157
  e._cssDocs ??= /* @__PURE__ */ new Map(), e._cssDocs.set(a, g);
2152
2158
  const y = e._cssImports.get(a);
@@ -2166,7 +2172,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2166
2172
  }
2167
2173
  return {
2168
2174
  ...f,
2169
- code: xo(m, e.hmrEnabled, e.shouldMinify, c),
2175
+ code: Po(m, e.hmrEnabled, e.shouldMinify, c),
2170
2176
  /**
2171
2177
  * Vite's original transform does not generate source maps for inlined
2172
2178
  * css, thus we can't either
@@ -2180,13 +2186,13 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2180
2186
  if (!(i.endsWith(".js") || i.endsWith(".ts") || i.endsWith(".tsx") || e.isInStorybook && i.endsWith(".mdx")))
2181
2187
  return;
2182
2188
  let s = 0;
2183
- const r = ao(i);
2189
+ const r = co(i);
2184
2190
  let a = !1;
2185
- const c = t.replaceAll(So, (l, d) => {
2191
+ const c = t.replaceAll(wo, (l, d) => {
2186
2192
  if (!Ke.test(d) || d.includes("?"))
2187
2193
  return l;
2188
2194
  if (r) {
2189
- if ((e.options.css?.sideEffectImportHandling ?? wo)(d, i) === "drop")
2195
+ if ((e.options.css?.sideEffectImportHandling ?? bo)(d, i) === "drop")
2190
2196
  return a = !0, or(l);
2191
2197
  throw Error(
2192
2198
  w(
@@ -2195,7 +2201,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2195
2201
  i
2196
2202
  )
2197
2203
  );
2198
- } else if (e.isInStorybook && Po(i, e)) {
2204
+ } else if (e.isInStorybook && ko(i, e)) {
2199
2205
  a = !0;
2200
2206
  const p = `storybookCss$${s}`;
2201
2207
  return s += 1, [
@@ -2226,8 +2232,8 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2226
2232
  map: null
2227
2233
  } : void 0;
2228
2234
  }
2229
- }), pn = 'export default "', To = '"', Eo = `import { css } from '${ae.css[0]}';
2230
- export const styles = css\``, Co = "`;\nexport default styles;", $o = `
2235
+ }), pn = 'export default "', Eo = '"', Co = `import { css } from '${ae.css[0]}';
2236
+ export const styles = css\``, $o = "`;\nexport default styles;", xo = `
2231
2237
 
2232
2238
  if(import.meta.hot) {
2233
2239
  import.meta.hot.data.styles ??= styles;
@@ -2239,24 +2245,24 @@ if(import.meta.hot) {
2239
2245
  import.meta.hot.data.styles.styleSheet.replaceSync(nextExports.styles.cssText);
2240
2246
  });
2241
2247
  }`, un = (e) => e.slice(pn.length - 1);
2242
- function xo(e, t, i, n) {
2243
- const s = un(e), r = JSON.parse(s), a = Fr(r), c = n ? `@layer{${i ? "" : `
2248
+ function Po(e, t, i, n) {
2249
+ const s = un(e), r = JSON.parse(s), a = Nr(r), c = n ? `@layer{${i ? "" : `
2244
2250
  `}${a}${i ? "" : `
2245
2251
  `}}` : a;
2246
- return `${Eo}${c}${Co}${t ? $o : ""}`;
2252
+ return `${Co}${c}${$o}${t ? xo : ""}`;
2247
2253
  }
2248
- const Po = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2249
- function ko(e) {
2250
- return `import("${Io}").then(({ setCustomElementsManifest }) => {
2251
- setCustomElementsManifest(${Ao(e)});
2254
+ const ko = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2255
+ function Io(e) {
2256
+ return `import("${Ao}").then(({ setCustomElementsManifest }) => {
2257
+ setCustomElementsManifest(${Lo(e)});
2252
2258
  });`;
2253
2259
  }
2254
- const Io = "@storybook/web-components", Ao = (e) => `JSON.parse(\`${Lo(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2255
- function Lo(e) {
2260
+ const Ao = "@storybook/web-components", Lo = (e) => `JSON.parse(\`${Fo(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2261
+ function Fo(e) {
2256
2262
  return e.replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("${", "\\${");
2257
2263
  }
2258
- function Fo(e) {
2259
- No(e);
2264
+ function No(e) {
2265
+ Do(e);
2260
2266
  const t = e.options.css?.globalStylesPath;
2261
2267
  if (t === void 0)
2262
2268
  return "";
@@ -2269,7 +2275,7 @@ function Fo(e) {
2269
2275
  `) : `import "${i}${Ne}";`;
2270
2276
  }
2271
2277
  const mn = "hydrated";
2272
- function No(e) {
2278
+ function Do(e) {
2273
2279
  e._globalHydratedCssString = [
2274
2280
  ":not([",
2275
2281
  e.options.css?.hydratedAttribute ?? mn,
@@ -2286,40 +2292,40 @@ function fn(e, t) {
2286
2292
  ].join(`
2287
2293
  `);
2288
2294
  }
2289
- const Do = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2295
+ const jo = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2290
2296
 
2291
2297
  `}${e._globalCssString ? JSON.parse(e._globalCssString) : ""}`;
2292
- function jo(e) {
2298
+ function Ro(e) {
2293
2299
  const t = [], i = [];
2294
2300
  for (const n of e.privateApiJson.modules) {
2295
2301
  t.push(n.path);
2296
2302
  for (const s of n.declarations)
2297
- "customElement" in s && i.push(Mo(s, e, n.path));
2303
+ "customElement" in s && i.push(Oo(s, e, n.path));
2298
2304
  }
2299
2305
  return [
2300
2306
  'import { runtime } from "./runtime";',
2301
2307
  'import { makeDefineCustomElements } from "@arcgis/lumina";',
2302
- Fo(e),
2303
- e.hmrEnabled ? Jo : "",
2308
+ No(e),
2309
+ e.hmrEnabled ? Ko : "",
2304
2310
  "",
2305
- e.isInStorybook ? ko(e.apiJson) : "",
2311
+ e.isInStorybook ? Io(e.apiJson) : "",
2306
2312
  "",
2307
2313
  "export const defineCustomElements = makeDefineCustomElements(runtime, {",
2308
2314
  i.join(`,
2309
2315
  `),
2310
2316
  "});",
2311
- e.hmrEnabled ? Ko(t) : ""
2317
+ e.hmrEnabled ? Wo(t) : ""
2312
2318
  ].join(`
2313
2319
  `);
2314
2320
  }
2315
- const Ro = `import "./index";
2316
- export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, Mo = (e, t, i) => [
2321
+ const Mo = `import "./index";
2322
+ export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, Oo = (e, t, i) => [
2317
2323
  ` "${e.tagName}": [`,
2318
2324
  `()=>import("${u.join(t.dir.root, i)}"),`,
2319
- Oo(e),
2325
+ Jo(e),
2320
2326
  "]"
2321
2327
  ].join("");
2322
- function Oo(e) {
2328
+ function Jo(e) {
2323
2329
  const { properties: t, asyncMethods: i, syncMethods: n } = gn(e), s = t.map((p) => p.join(Es)).join(et), r = i.join(et), a = n.join(et), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2324
2330
  return d.length > 0 ? `"${d.join(Cs)}"` : "";
2325
2331
  }
@@ -2336,23 +2342,23 @@ function gn(e) {
2336
2342
  ), n = i.filter((r) => r.async === !0).map((r) => r.name), s = i.filter((r) => r.async !== !0).map((r) => r.name);
2337
2343
  return { tagName: e.tagName, properties: t, asyncMethods: n, syncMethods: s };
2338
2344
  }
2339
- const Jo = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2340
- `, Ko = (e) => `
2345
+ const Ko = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2346
+ `, Wo = (e) => `
2341
2347
  if(import.meta.hot) {
2342
2348
  import.meta.hot.on("component-meta-update", handleComponentMetaUpdate);
2343
2349
  import.meta.hot.accept([
2344
2350
  ${e.map((t) => ` "/${t}",`).join(`
2345
2351
  `)}
2346
2352
  ], handleHmrUpdate);
2347
- }`, Wo = "@arcgis/lumina:addMethodMetadata";
2348
- function Bo(e, t, i, n, s) {
2353
+ }`, Bo = "@arcgis/lumina:addMethodMetadata";
2354
+ function _o(e, t, i, n, s) {
2349
2355
  const r = i.getSignatureFromDeclaration(e);
2350
2356
  if (r === void 0)
2351
2357
  return;
2352
2358
  for (const d of e.parameters) {
2353
2359
  if (!o.isIdentifier(d.name)) {
2354
2360
  T.warn(
2355
- Wo,
2361
+ Bo,
2356
2362
  `Object binding patterns are not yet supported in the docs. Found ${d.name?.getText(n)} in ${e.name.getText(n)}`,
2357
2363
  n.fileName
2358
2364
  );
@@ -2373,8 +2379,8 @@ function Bo(e, t, i, n, s) {
2373
2379
  type: c
2374
2380
  }, t.signature = l.replace(" =>", ":");
2375
2381
  }
2376
- const _o = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2377
- function Ho(e, t, i, n) {
2382
+ const Ho = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2383
+ function Uo(e, t, i, n) {
2378
2384
  const s = i.typeScriptTypeChecker, a = s.getTypeAtLocation(e).getProperty("emit");
2379
2385
  if (a?.valueDeclaration === void 0)
2380
2386
  return;
@@ -2399,11 +2405,11 @@ function Ho(e, t, i, n) {
2399
2405
  composed: void 0,
2400
2406
  privacy: void 0
2401
2407
  };
2402
- return fe(e.name, s, g), Uo(e, g, n), g.privacy === void 0 ? g : void 0;
2408
+ return fe(e.name, s, g), zo(e, g, n), g.privacy === void 0 ? g : void 0;
2403
2409
  }
2404
2410
  }
2405
2411
  const Ae = "createEvent";
2406
- function Uo(e, t, i) {
2412
+ function zo(e, t, i) {
2407
2413
  if (!e.initializer || !o.isCallExpression(e.initializer))
2408
2414
  return;
2409
2415
  const n = e.initializer;
@@ -2454,7 +2460,7 @@ class We extends us {
2454
2460
  const i = super.extractModules(t);
2455
2461
  for (const n of i)
2456
2462
  for (const s of n.declarations)
2457
- "customElement" in s && (this.context.isFullApiExtraction && Go(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(st), s.attributes?.sort(st), s.events?.sort(st)));
2463
+ "customElement" in s && (this.context.isFullApiExtraction && Vo(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(st), s.attributes?.sort(st), s.events?.sort(st)));
2458
2464
  return i;
2459
2465
  }
2460
2466
  extractDeclarations(t) {
@@ -2637,13 +2643,13 @@ console.log("${s.tagName} is ready to go!");
2637
2643
  inheritedFrom: void 0,
2638
2644
  privacy: void 0
2639
2645
  };
2640
- return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !zr(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2646
+ return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !qr(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2641
2647
  }
2642
2648
  /**
2643
2649
  * Based on a `non-@property()` property, extract a public event if it is one.
2644
2650
  */
2645
2651
  extractComponentEvent(t, i) {
2646
- const n = Ho(t, i, this.context, this.file);
2652
+ const n = Uo(t, i, this.context, this.file);
2647
2653
  return n !== void 0 && this.copyDoc(this.copyDocDefinitions?.events?.[i], n, this.apiComponent), n;
2648
2654
  }
2649
2655
  /**
@@ -2660,7 +2666,7 @@ console.log("${s.tagName} is ready to go!");
2660
2666
  // in the documentation. The full type is still present in the .d.ts files.
2661
2667
  i.name === "messageOverrides" ? {
2662
2668
  text: "Record<string, unknown>"
2663
- } : Vr(this.context, d, f, this.file);
2669
+ } : Xr(this.context, d, f, this.file);
2664
2670
  const g = o.isPropertyDeclaration(t) && t.type !== void 0 && t.initializer !== void 0 && o.isPropertyAccessExpression(t.initializer) && o.isPropertyAccessExpression(t.initializer.expression) && t.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(t.initializer.expression.name) && o.isIdentifier(t.initializer.name);
2665
2671
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || g) {
2666
2672
  const v = t.initializer, h = s.getSymbolAtLocation(v), S = h !== void 0 && ((h.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(h) : h, E = S?.getDeclarations() ?? [];
@@ -2717,12 +2723,12 @@ console.log("${s.tagName} is ready to go!");
2717
2723
  inheritedFrom: void 0,
2718
2724
  docsTags: void 0,
2719
2725
  signature: "",
2720
- async: _o(t) ? !0 : void 0,
2726
+ async: Ho(t) ? !0 : void 0,
2721
2727
  privacy: void 0
2722
2728
  };
2723
2729
  if (this.context.isFullApiExtraction) {
2724
2730
  const s = this.context.typeScriptTypeChecker;
2725
- Bo(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2731
+ _o(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2726
2732
  }
2727
2733
  return n;
2728
2734
  }
@@ -2817,16 +2823,16 @@ const pe = {
2817
2823
  name: "LitElement",
2818
2824
  package: "@arcgis/lumina"
2819
2825
  }, st = (e, t) => e.name.localeCompare(t.name);
2820
- async function zo(e, t) {
2826
+ async function qo(e, t) {
2821
2827
  t || (e.componentFilesPromise = kt(e, e.dir.srcComponents));
2822
- const i = await e.componentFilesPromise, n = await ia(e, i);
2828
+ const i = await e.componentFilesPromise, n = await na(e, i);
2823
2829
  await e.componentStoriesPromise, e._componentPathMapping = {}, e._localDefinedComponents = void 0;
2824
2830
  const s = yn(n, e, !1);
2825
2831
  e.privateApiJson = s;
2826
2832
  const [r, a] = hn(s);
2827
2833
  return e.apiJsonComponents = a, e.apiJson = r, s;
2828
2834
  }
2829
- function qo(e, t, i) {
2835
+ function Go(e, t, i) {
2830
2836
  const n = e.getSourceFile(t, i), s = yn([n], e, !0), r = s.modules[0];
2831
2837
  {
2832
2838
  const f = hn(s)[0].modules[0], g = e.apiJson.modules.findIndex((h) => h.path === f.path), y = e.apiJson.modules[g], v = Array.from(e.apiJson.modules);
@@ -2871,58 +2877,58 @@ function hn(e) {
2871
2877
  }
2872
2878
  return [t, i];
2873
2879
  }
2874
- function Go(e, t, i) {
2875
- const n = Vo(i, e);
2876
- M(e, n, t);
2880
+ function Vo(e, t, i) {
2881
+ const n = Xo(i, e);
2882
+ O(e, n, t);
2877
2883
  for (const s of e.members) {
2878
2884
  if (s.kind === "field")
2879
2885
  Le(s.type, i, t);
2880
2886
  else {
2881
2887
  if (Le(s.return?.type, i, t), s.parameters !== void 0)
2882
2888
  for (const r of s.parameters)
2883
- Le(r.type, i, t), M(r, n, t);
2884
- s.return !== void 0 && M(s.return, n, t);
2889
+ Le(r.type, i, t), O(r, n, t);
2890
+ s.return !== void 0 && O(s.return, n, t);
2885
2891
  }
2886
- M(s, n, t);
2892
+ O(s, n, t);
2887
2893
  }
2888
2894
  if (e.events !== void 0)
2889
2895
  for (const s of e.events)
2890
- Le(s.type, i, t), M(s, n, t);
2896
+ Le(s.type, i, t), O(s, n, t);
2891
2897
  if (e.attributes !== void 0)
2892
2898
  for (const s of e.attributes)
2893
- M(s, n, t);
2899
+ O(s, n, t);
2894
2900
  if (e.slots !== void 0)
2895
2901
  for (const s of e.slots)
2896
- M(s, n, t);
2902
+ O(s, n, t);
2897
2903
  if (e.cssProperties !== void 0)
2898
2904
  for (const s of e.cssProperties)
2899
- M(s, n, t);
2905
+ O(s, n, t);
2900
2906
  if (e.cssParts !== void 0)
2901
2907
  for (const s of e.cssParts)
2902
- M(s, n, t);
2908
+ O(s, n, t);
2903
2909
  if (e.cssStates !== void 0)
2904
2910
  for (const s of e.cssStates)
2905
- M(s, n, t);
2911
+ O(s, n, t);
2906
2912
  if (e.demos !== void 0)
2907
2913
  for (const s of e.demos)
2908
- M(s, n, t);
2914
+ O(s, n, t);
2909
2915
  }
2910
2916
  function Le(e, t, i) {
2911
2917
  e !== void 0 && (e.references?.reduce(
2912
- (n, s) => Xo(s, t, i, n),
2918
+ (n, s) => Qo(s, t, i, n),
2913
2919
  0
2914
2920
  ), e.text = e.text.replaceAll(
2915
- ta,
2921
+ ia,
2916
2922
  (n, s) => At(t.get(s)) ?? n
2917
- ), e.values?.forEach(Qo, t));
2923
+ ), e.values?.forEach(Zo, t));
2918
2924
  }
2919
- function M(e, t, i) {
2925
+ function O(e, t, i) {
2920
2926
  if (e.description && (e.description = e.description.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
2921
2927
  for (const n of e.docsTags)
2922
2928
  n.text && (n.text = n.text.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2923
2929
  typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2924
2930
  }
2925
- const rt = /\{@link ([^}]+)\}/gu, Vo = (e, t) => (i, n) => {
2931
+ const rt = /\{@link ([^}]+)\}/gu, Xo = (e, t) => (i, n) => {
2926
2932
  let s = n.indexOf(" ");
2927
2933
  s === -1 && (s = n.length);
2928
2934
  const r = n.slice(0, s), a = n.slice(s + 1);
@@ -2946,7 +2952,7 @@ const rt = /\{@link ([^}]+)\}/gu, Vo = (e, t) => (i, n) => {
2946
2952
  );
2947
2953
  return `[${a || (d === t ? l : `${d.tagName}.${l}`)}](${p}#${l})`;
2948
2954
  };
2949
- function Xo(e, t, i, n) {
2955
+ function Qo(e, t, i, n) {
2950
2956
  if (e.viewUrl !== void 0 && (e.viewUrl = e.viewUrl.replace(
2951
2957
  i.alternativeDocumentationUrl,
2952
2958
  i.normalizedDocumentationUrl
@@ -2960,31 +2966,31 @@ function Xo(e, t, i, n) {
2960
2966
  const r = e.name.length;
2961
2967
  e.name = At(s);
2962
2968
  const a = e.name.length - r - pi;
2963
- e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - ea;
2969
+ e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - ta;
2964
2970
  }
2965
2971
  }
2966
2972
  return n;
2967
2973
  }
2968
- function Qo(e) {
2974
+ function Zo(e) {
2969
2975
  e.type.startsWith("ToElement<") && (e.type = At(this.get(e.type.slice(10, -1))) ?? e.type);
2970
2976
  }
2971
- const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Zo = "ToElement<", pi = Zo.length, Yo = ">", ea = Yo.length, ta = /ToElement<(\w+)>/gu;
2972
- async function ia(e, t) {
2977
+ const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Yo = "ToElement<", pi = Yo.length, ea = ">", ta = ea.length, ia = /ToElement<(\w+)>/gu;
2978
+ async function na(e, t) {
2973
2979
  if (e.viteCommand === "serve" && (Object.hasOwn(e, "typeScriptHost") || (e.typeScriptHost = o.createCompilerHost(e.typeScriptConfig, !1))), e.typeScriptProgram !== void 0) {
2974
2980
  const i = e.typeScriptProgram.getSourceFiles(), n = new Set(t);
2975
2981
  return i.filter((s) => n.has(s.fileName));
2976
2982
  } else
2977
2983
  return await Promise.all(
2978
2984
  t.map(async (i) => {
2979
- const n = await O(i, "utf8");
2985
+ const n = await J(i, "utf8");
2980
2986
  return e.getSourceFile(i, n);
2981
2987
  })
2982
2988
  );
2983
2989
  }
2984
2990
  async function vn(e) {
2985
- return we ??= sa(e), await we;
2991
+ return we ??= ra(e), await we;
2986
2992
  }
2987
- function na() {
2993
+ function sa() {
2988
2994
  if (ht === void 0)
2989
2995
  throw Error(
2990
2996
  w(
@@ -3004,13 +3010,13 @@ function Sn() {
3004
3010
  );
3005
3011
  return vt;
3006
3012
  }
3007
- async function sa(e) {
3008
- const t = J(e), i = t.dependencies ?? {}, n = t.peerDependencies ?? {}, r = (await Promise.all(
3009
- [...Object.keys(i), ...Object.keys(n)].filter((a) => !ra.has(a)).flatMap(async (a) => await wn(a, e))
3013
+ async function ra(e) {
3014
+ const t = R(e), i = t.dependencies ?? {}, n = t.peerDependencies ?? {}, r = (await Promise.all(
3015
+ [...Object.keys(i), ...Object.keys(n)].filter((a) => !oa.has(a)).flatMap(async (a) => await wn(a, e))
3010
3016
  )).filter(j);
3011
3017
  return ht ??= r, vt = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
3012
3018
  }
3013
- const ra = /* @__PURE__ */ new Set([
3019
+ const oa = /* @__PURE__ */ new Set([
3014
3020
  "@arcgis/arcade-languageservice",
3015
3021
  "@arcgis/components-build-utils",
3016
3022
  "@arcgis/components-utils",
@@ -3048,11 +3054,11 @@ const ra = /* @__PURE__ */ new Set([
3048
3054
  ]);
3049
3055
  let ht, vt, we;
3050
3056
  async function wn(e, t) {
3051
- const i = await He(e, t), n = await Ue(i), s = "exports" in n, r = pa.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3057
+ const i = await He(e, t), n = await Ue(i), s = "exports" in n, r = ua.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3052
3058
  if (a ? await z(c) : !1) {
3053
- const g = await O(c, "utf8"), y = oa(g, "bootstrapLazy("), v = g.indexOf(", options", y), h = g.slice(y, v), S = h.startsWith('JSON.parse("') ? h.slice(12, -2).replaceAll('\\"', '"') : h;
3059
+ const g = await J(c, "utf8"), y = aa(g, "bootstrapLazy("), v = g.indexOf(", options", y), h = g.slice(y, v), S = h.startsWith('JSON.parse("') ? h.slice(12, -2).replaceAll('\\"', '"') : h;
3054
3060
  try {
3055
- const E = JSON.parse(S), P = la(E, { packageName: e, getImportPath: r });
3061
+ const E = JSON.parse(S), P = da(E, { packageName: e, getImportPath: r });
3056
3062
  return { packageName: e, type: "stencil", components: P };
3057
3063
  } catch (E) {
3058
3064
  T.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
@@ -3061,7 +3067,7 @@ Error: ${String(E)}`);
3061
3067
  }
3062
3068
  const d = ui(n.customElements);
3063
3069
  if (d != null) {
3064
- const g = u.join(i, d), y = JSON.parse(await O(g, "utf-8")), v = aa(y), h = bn(y, {
3070
+ const g = u.join(i, d), y = JSON.parse(await J(g, "utf-8")), v = ca(y), h = bn(y, {
3065
3071
  packageName: e,
3066
3072
  getImportPath: r
3067
3073
  });
@@ -3069,7 +3075,7 @@ Error: ${String(E)}`);
3069
3075
  }
3070
3076
  const p = ui(n["web-types"]);
3071
3077
  if (p != null) {
3072
- const g = u.join(i, p), y = JSON.parse(await O(g, "utf-8")), v = ca(y, {
3078
+ const g = u.join(i, p), y = JSON.parse(await J(g, "utf-8")), v = la(y, {
3073
3079
  packageName: e,
3074
3080
  getImportPath: r,
3075
3081
  packageRoot: i
@@ -3078,7 +3084,7 @@ Error: ${String(E)}`);
3078
3084
  }
3079
3085
  const m = u.join(i, "dist/components");
3080
3086
  if (await z(m)) {
3081
- const g = await da(m, {
3087
+ const g = await pa(m, {
3082
3088
  packageName: e,
3083
3089
  getImportPath: r
3084
3090
  });
@@ -3086,7 +3092,7 @@ Error: ${String(E)}`);
3086
3092
  }
3087
3093
  }
3088
3094
  const ui = (e) => Array.isArray(e) ? e[0] : e;
3089
- function oa(e, t) {
3095
+ function aa(e, t) {
3090
3096
  const i = e.indexOf(t);
3091
3097
  return i === -1 ? -1 : i + t.length;
3092
3098
  }
@@ -3108,7 +3114,7 @@ function bn(e, t) {
3108
3114
  }
3109
3115
  return i;
3110
3116
  }
3111
- const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3117
+ const ca = (e) => e.compiler?.name === It, la = (e, t) => Object.fromEntries(
3112
3118
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
3113
3119
  (i) => [
3114
3120
  i.name,
@@ -3119,7 +3125,7 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3119
3125
  }
3120
3126
  ]
3121
3127
  ) ?? []
3122
- ), la = (e, t) => Object.fromEntries(
3128
+ ), da = (e, t) => Object.fromEntries(
3123
3129
  e.flatMap(
3124
3130
  ([i, n]) => n.map(
3125
3131
  ([s, r, a]) => [
@@ -3137,7 +3143,7 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3137
3143
  ]
3138
3144
  )
3139
3145
  )
3140
- ), da = async (e, t) => Object.fromEntries(
3146
+ ), pa = async (e, t) => Object.fromEntries(
3141
3147
  (await ze(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
3142
3148
  const n = i.slice(0, -5);
3143
3149
  return [
@@ -3149,16 +3155,16 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3149
3155
  }
3150
3156
  ];
3151
3157
  })
3152
- ), pa = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, ua = (e) => e.startsWith("/") ? e : `/${e}`, Lt = (e, t) => `${e}@fs${ua(t)}`;
3153
- function Ge(e = J(), t = !1, i = e.name === "@esri/calcite-components") {
3158
+ ), ua = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, ma = (e) => e.startsWith("/") ? e : `/${e}`, Lt = (e, t) => `${e}@fs${ma(t)}`;
3159
+ function Ge(e = R(), t = !1, i = e.name === "@esri/calcite-components") {
3154
3160
  const n = e.version.includes("next"), s = e.name === "@esri/calcite-components";
3155
3161
  if (s && n)
3156
3162
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${e.version}/dist/calcite/`;
3157
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = ma(e.name), c = fa(e.version, i);
3163
+ const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = fa(e.name), c = ga(e.version, i);
3158
3164
  return a.length === 0 ? `https://${r}/${c}/` : s ? `https://${r}/${a}/${c}/` : `https://${r}/${c}/${a}/`;
3159
3165
  }
3160
- const ma = (e) => e.split("/").pop() ?? e;
3161
- function fa(e, t) {
3166
+ const fa = (e) => e.split("/").pop() ?? e;
3167
+ function ga(e, t) {
3162
3168
  if (/\d+\.\d+\.\d+-(?:.*)$/u.test(e))
3163
3169
  return "next";
3164
3170
  const n = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/u, s = e.match(n);
@@ -3187,14 +3193,14 @@ function ne(e) {
3187
3193
  return (
3188
3194
  // Inlined string literal
3189
3195
  typeof e == "string" || // Syntax kinds that are never undefined
3190
- ga.has(e.kind) || // Ternary with both branches never undefined
3196
+ ya.has(e.kind) || // Ternary with both branches never undefined
3191
3197
  o.isConditionalExpression(e) && ne(e.whenTrue) && ne(e.whenFalse) || // Binary expression with operator that never results in undefined Or both sides are definitely not undefined
3192
- o.isBinaryExpression(e) && (ya.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3198
+ o.isBinaryExpression(e) && (ha.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3193
3199
  (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && ne(e.expression) || // JSX that got converted to html`<p>Something</p>`
3194
- o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && fo.has(e.tag.text)
3200
+ o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && go.has(e.tag.text)
3195
3201
  );
3196
3202
  }
3197
- const ga = /* @__PURE__ */ new Set([
3203
+ const ya = /* @__PURE__ */ new Set([
3198
3204
  o.SyntaxKind.NumericLiteral,
3199
3205
  o.SyntaxKind.BigIntLiteral,
3200
3206
  o.SyntaxKind.StringLiteral,
@@ -3213,7 +3219,7 @@ const ga = /* @__PURE__ */ new Set([
3213
3219
  o.SyntaxKind.ClassExpression,
3214
3220
  // Trust? Trust.
3215
3221
  o.SyntaxKind.NonNullExpression
3216
- ]), ya = /* @__PURE__ */ new Set([
3222
+ ]), ha = /* @__PURE__ */ new Set([
3217
3223
  o.SyntaxKind.PlusEqualsToken,
3218
3224
  o.SyntaxKind.MinusEqualsToken,
3219
3225
  o.SyntaxKind.AsteriskAsteriskEqualsToken,
@@ -3248,9 +3254,9 @@ const ga = /* @__PURE__ */ new Set([
3248
3254
  o.SyntaxKind.SlashToken,
3249
3255
  o.SyntaxKind.PercentToken,
3250
3256
  o.SyntaxKind.AsteriskAsteriskToken
3251
- ]), ha = {
3257
+ ]), va = {
3252
3258
  property(e, t, i, n) {
3253
- const s = va(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3259
+ const s = Sa(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3254
3260
  if (a) {
3255
3261
  const f = at(t);
3256
3262
  if (f === !0)
@@ -3267,7 +3273,7 @@ const ga = /* @__PURE__ */ new Set([
3267
3273
  p,
3268
3274
  e,
3269
3275
  m ? "" : void 0
3270
- ), y = i === "value" && (n === "input" || n === "textarea" || n === Me) ? wa(f, e) : f;
3276
+ ), y = i === "value" && (n === "input" || n === "textarea" || n === Me) ? ba(f, e) : f;
3271
3277
  if (y !== p)
3272
3278
  return [m ? `.${i}` : s.name, d, y];
3273
3279
  }
@@ -3312,14 +3318,17 @@ const ga = /* @__PURE__ */ new Set([
3312
3318
  });
3313
3319
  },
3314
3320
  ref(e, t) {
3315
- e.neededImports.add("ref");
3316
- const i = e.importRenames.ref;
3317
3321
  if (t === void 0 || !o.isJsxExpression(t) || t.expression === void 0)
3318
3322
  throw new Error(
3319
3323
  `ref prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3320
3324
  );
3325
+ const i = t.expression, n = e.compiler.options.experimental?.stabilizeRef && // ref={()=>...}
3326
+ (o.isArrowFunction(i) || // ref={this.a.bind(this, args)}
3327
+ o.isCallExpression(i) && o.isPropertyAccessExpression(i.expression) && i.expression.name.escapedText === "bind");
3328
+ e.neededImports.add(n ? "stabilizedRef" : "ref");
3329
+ const s = n ? e.importRenames.stabilizedRef : e.importRenames.ref;
3321
3330
  return [
3322
- o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3331
+ o.factory.createCallExpression(o.factory.createIdentifier(s), void 0, [
3323
3332
  q(e, void 0, t.expression)
3324
3333
  ])
3325
3334
  ];
@@ -3337,7 +3346,7 @@ const ga = /* @__PURE__ */ new Set([
3337
3346
  return [o.factory.createIdentifier(s)];
3338
3347
  }
3339
3348
  };
3340
- function va(e, t, i) {
3349
+ function Sa(e, t, i) {
3341
3350
  if (typeof e == "string") {
3342
3351
  const r = (i.externalComponents[e] ?? i.localComponents[e])?.propToAttribute?.[t];
3343
3352
  if (r !== void 0)
@@ -3412,7 +3421,7 @@ function fi(e, t) {
3412
3421
  if (i.length === 0)
3413
3422
  return [];
3414
3423
  const n = Yi(i);
3415
- if (Dr(n)) {
3424
+ if (jr(n)) {
3416
3425
  const s = n.replaceAll('"', "&#34;");
3417
3426
  if (s.length > n.length) {
3418
3427
  const r = n.replaceAll("'", "&#39;");
@@ -3431,7 +3440,7 @@ function gi(e, t, i) {
3431
3440
  `${i} prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3432
3441
  );
3433
3442
  const n = t.expression;
3434
- if (Sa(n)) {
3443
+ if (wa(n)) {
3435
3444
  const r = i === "class" ? "safeClassMap" : "safeStyleMap";
3436
3445
  e.neededImports.add(r);
3437
3446
  const a = e.importRenames[r], c = o.factory.createCallExpression(o.factory.createIdentifier(a), void 0, [
@@ -3441,15 +3450,15 @@ function gi(e, t, i) {
3441
3450
  } else
3442
3451
  return [i, ...De(e, t, !0)];
3443
3452
  }
3444
- const Sa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3445
- function wa(e, t) {
3453
+ const wa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3454
+ function ba(e, t) {
3446
3455
  t.neededImports.add("live");
3447
3456
  const i = t.importRenames.live;
3448
3457
  return o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3449
3458
  typeof e == "string" ? o.factory.createStringLiteral(e) : e
3450
3459
  ]);
3451
3460
  }
3452
- function ba(e) {
3461
+ function Ta(e) {
3453
3462
  if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in yi && e.expression.arguments.length <= 1)
3454
3463
  return {
3455
3464
  propType: yi[e.expression.expression.text],
@@ -3467,15 +3476,15 @@ const yi = {
3467
3476
  bindBooleanAttribute: "booleanAttribute",
3468
3477
  bindEvent: "event"
3469
3478
  };
3470
- function Ta(e, t, i) {
3471
- return Ca.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Vi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (Xi.has(e) || (i === gt ? !1 : i === Me ? (
3479
+ function Ea(e, t, i) {
3480
+ return $a.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Vi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (Xi.has(e) || (i === gt ? !1 : i === Me ? (
3472
3481
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3473
3482
  Object.values(yt).some((r) => r.has(e))
3474
3483
  ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === gt || i !== Me && ($t.has(i) || xt.has(i)) ? e in _.common.reflected || e in _.common.stringifiedReflected || e in _.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3475
3484
  }
3476
- const Ea = ["class", "style", "ref", "directives", "key", "deferLoad"], Ca = new Set(Ea), $a = (e) => typeof e != "string" || e.trim().length > 0;
3485
+ const Ca = ["class", "style", "ref", "directives", "key", "deferLoad"], $a = new Set(Ca), xa = (e) => typeof e != "string" || e.trim().length > 0;
3477
3486
  function Ve({ key: e, parts: t, litTag: i }, n) {
3478
- const s = xa(t);
3487
+ const s = Pa(t);
3479
3488
  if (s.length % 2 === 0)
3480
3489
  throw new Error("Normalized template parts array length must be odd");
3481
3490
  const [r, ...a] = s;
@@ -3496,11 +3505,11 @@ function Ve({ key: e, parts: t, litTag: i }, n) {
3496
3505
  const l = n.importRenames[c], d = o.factory.createTaggedTemplateExpression(
3497
3506
  o.factory.createIdentifier(l),
3498
3507
  void 0,
3499
- a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Pa(a))
3508
+ a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), ka(a))
3500
3509
  );
3501
3510
  return ct(n, e, d);
3502
3511
  }
3503
- const xa = (e) => e.reduce(
3512
+ const Pa = (e) => e.reduce(
3504
3513
  (t, i, n) => {
3505
3514
  const s = t.at(-1), r = typeof s == "string", a = typeof i == "string";
3506
3515
  if (r && a)
@@ -3510,7 +3519,7 @@ const xa = (e) => e.reduce(
3510
3519
  },
3511
3520
  [""]
3512
3521
  );
3513
- function Pa(e) {
3522
+ function ka(e) {
3514
3523
  if (!(e.length % 2 === 0))
3515
3524
  throw new Error("templatePartsToSpans should be called with normalized parts array without the first item");
3516
3525
  const i = e.length / 2;
@@ -3549,13 +3558,13 @@ function En(e, t) {
3549
3558
  );
3550
3559
  }
3551
3560
  const Nt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3552
- function ka(e) {
3561
+ function Ia(e) {
3553
3562
  const t = Nt(e);
3554
3563
  if (t.length === 0)
3555
3564
  return [e || " "];
3556
3565
  const i = t.reduceRight(
3557
3566
  ([s, ...r], a) => {
3558
- const c = Ia(s), l = Cn(c.slice(a.pos, a.end));
3567
+ const c = Aa(s), l = Cn(c.slice(a.pos, a.end));
3559
3568
  return [
3560
3569
  c.slice(0, a.pos),
3561
3570
  /**
@@ -3574,12 +3583,12 @@ function ka(e) {
3574
3583
  return (typeof n != "string" || n.trim() !== "") && i.push(" "), i;
3575
3584
  }
3576
3585
  const Cn = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
3577
- function Ia(e) {
3586
+ function Aa(e) {
3578
3587
  if (typeof e == "string")
3579
3588
  return e;
3580
3589
  throw new Error(`Expected string, got ${typeof e}: ${String(e)}`);
3581
3590
  }
3582
- function Aa(e, t) {
3591
+ function La(e, t) {
3583
3592
  if (!(o.isPropertyAccessExpression(t.expression) && t.expression.name.text === "map"))
3584
3593
  return t;
3585
3594
  const n = t.arguments[0];
@@ -3613,7 +3622,7 @@ function Aa(e, t) {
3613
3622
  const f = p.attributes.properties[m];
3614
3623
  if (f === void 0 || !o.isJsxAttribute(f))
3615
3624
  return t;
3616
- const g = Ft(f.initializer, e.sourceFile), y = La(r, n, g, l, e);
3625
+ const g = Ft(f.initializer, e.sourceFile), y = Fa(r, n, g, l, e);
3617
3626
  if (y === void 0)
3618
3627
  return t;
3619
3628
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -3646,7 +3655,7 @@ function $n(e) {
3646
3655
  void 0
3647
3656
  ), t;
3648
3657
  }
3649
- function La(e, t, i, n, s) {
3658
+ function Fa(e, t, i, n, s) {
3650
3659
  const r = B(i);
3651
3660
  if (r === void 0)
3652
3661
  return;
@@ -3662,7 +3671,7 @@ function La(e, t, i, n, s) {
3662
3671
  return;
3663
3672
  }
3664
3673
  if (!n) {
3665
- const l = Na(r, a, t);
3674
+ const l = Da(r, a, t);
3666
3675
  if (l === void 0)
3667
3676
  return;
3668
3677
  a = l;
@@ -3692,7 +3701,7 @@ function B(e) {
3692
3701
  const t = B(e.left), i = B(e.right);
3693
3702
  return t === void 0 || i === void 0 ? void 0 : [...t, ...i];
3694
3703
  } else {
3695
- if (Fa.has(e.kind))
3704
+ if (Na.has(e.kind))
3696
3705
  return [];
3697
3706
  {
3698
3707
  const t = be(e);
@@ -3700,7 +3709,7 @@ function B(e) {
3700
3709
  }
3701
3710
  }
3702
3711
  }
3703
- const Fa = /* @__PURE__ */ new Set([
3712
+ const Na = /* @__PURE__ */ new Set([
3704
3713
  o.SyntaxKind.NumericLiteral,
3705
3714
  o.SyntaxKind.BigIntLiteral,
3706
3715
  o.SyntaxKind.StringLiteral,
@@ -3709,12 +3718,12 @@ const Fa = /* @__PURE__ */ new Set([
3709
3718
  o.SyntaxKind.FalseKeyword,
3710
3719
  o.SyntaxKind.NullKeyword,
3711
3720
  o.SyntaxKind.TrueKeyword
3712
- ]), be = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? be(e.expression) : e, xn = (e, t) => o.isObjectBindingPattern(e) ? Ra(e, t) : e;
3713
- function Na(e, t, i) {
3721
+ ]), be = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? be(e.expression) : e, xn = (e, t) => o.isObjectBindingPattern(e) ? Ma(e, t) : e;
3722
+ function Da(e, t, i) {
3714
3723
  if (e.every(Be, t))
3715
3724
  return t;
3716
3725
  if (o.isIdentifier(t)) {
3717
- const n = o.isBlock(i.body) ? he(i.body.statements, (r) => Da(r, t)) : void 0;
3726
+ const n = o.isBlock(i.body) ? he(i.body.statements, (r) => ja(r, t)) : void 0;
3718
3727
  if (n === void 0)
3719
3728
  return;
3720
3729
  const s = xn(n, e);
@@ -3722,7 +3731,7 @@ function Na(e, t, i) {
3722
3731
  return s;
3723
3732
  }
3724
3733
  }
3725
- function Da(e, t) {
3734
+ function ja(e, t) {
3726
3735
  if (!o.isVariableStatement(e) || !(e.declarationList.flags & o.NodeFlags.Const))
3727
3736
  return;
3728
3737
  const i = e.declarationList.declarations[0];
@@ -3730,19 +3739,19 @@ function Da(e, t) {
3730
3739
  }
3731
3740
  function Be(e) {
3732
3741
  const t = this;
3733
- return o.isIdentifier(t) ? t.text === e : t.elements.some(ja, e);
3742
+ return o.isIdentifier(t) ? t.text === e : t.elements.some(Ra, e);
3734
3743
  }
3735
- function ja(e) {
3744
+ function Ra(e) {
3736
3745
  const t = this;
3737
3746
  return o.isOmittedExpression(e) ? !1 : Be.call(e.name, t);
3738
3747
  }
3739
- function Ra(e, t) {
3748
+ function Ma(e, t) {
3740
3749
  let i = !1;
3741
3750
  const n = e.elements.filter((s) => o.isIdentifier(s.name) ? t.includes(s.name.text) : (i = !0, !0));
3742
3751
  return i || n.length === 0 ? e : o.factory.updateObjectBindingPattern(e, n);
3743
3752
  }
3744
- const Pn = (e, t) => t.liftedKeys.has(e), Ma = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3745
- `), Oa = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Xe = (e) => !Oa.test(e), Ce = (e) => Xe(e) ? `"${e}"` : e;
3753
+ const Pn = (e, t) => t.liftedKeys.has(e), Oa = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3754
+ `), Ja = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Xe = (e) => !Ja.test(e), Ce = (e) => Xe(e) ? `"${e}"` : e;
3746
3755
  function Qe(e, t) {
3747
3756
  const i = [], n = [];
3748
3757
  let s = !1;
@@ -3768,13 +3777,13 @@ const vi = (e) => e.map((t) => `'${t}'`).join(" | ");
3768
3777
  function q(e, t, i) {
3769
3778
  if (Je(i))
3770
3779
  return kn(e, i);
3771
- const n = o.isCallExpression(i) ? Aa(e, i) : i, s = o.visitEachChild(
3780
+ const n = o.isCallExpression(i) ? La(e, i) : i, s = o.visitEachChild(
3772
3781
  n,
3773
3782
  // Do not add "" if parent is binary expression to not turn {(a && <b />) || c} into {(a && <b />) || "" || c}
3774
3783
  q.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
3775
3784
  e.transformationContext
3776
3785
  );
3777
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Je(be(i.right))) ? Wa(s) : s;
3786
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Je(be(i.right))) ? Ba(s) : s;
3778
3787
  }
3779
3788
  function kn(e, t) {
3780
3789
  const i = In(e, t);
@@ -3788,19 +3797,19 @@ function In(e, t) {
3788
3797
  if (o.isJsxNamespacedName(r))
3789
3798
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
3790
3799
  if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== tt && r.text !== it) {
3791
- const $ = o.isIdentifier(r) && r.text === Pr ? je(i, e) : {
3800
+ const $ = o.isIdentifier(r) && r.text === kr ? je(i, e) : {
3792
3801
  // No need to wrap the function call in a lit-html tag
3793
3802
  litTag: void 0,
3794
- parts: [Ka(e, t, r, i)]
3803
+ parts: [Wa(e, t, r, i)]
3795
3804
  };
3796
3805
  return {
3797
- key: Ja(s, e),
3806
+ key: Ka(s, e),
3798
3807
  ...$
3799
3808
  };
3800
3809
  }
3801
- const c = r.text === tt ? Me : r.text === it ? gt : r.text, l = r.text === tt ? le : r.text === it ? Y : Ir.has(c) ? an : $t.has(c) ? oe : de, d = Pt(c);
3810
+ const c = r.text === tt ? Me : r.text === it ? gt : r.text, l = r.text === tt ? le : r.text === it ? Y : Ar.has(c) ? an : $t.has(c) ? oe : de, d = Pt(c);
3802
3811
  let p;
3803
- d && e.compiler.viteCommand === "build" && (p = Ba(e, c));
3812
+ d && e.compiler.viteCommand === "build" && (p = _a(e, c));
3804
3813
  let m;
3805
3814
  const f = [];
3806
3815
  let g = !1;
@@ -3813,18 +3822,18 @@ Found ${L.getText(e.sourceFile)}`
3813
3822
  const { name: $, initializer: b } = L;
3814
3823
  if (o.isJsxNamespacedName($))
3815
3824
  throw Error(`JSX namespaced attributes are not supported. Found ${$.getText(e.sourceFile)}`);
3816
- const C = $.text, A = ba(b), F = A?.propType ?? Ta(C, b, c);
3825
+ const C = $.text, A = Ta(b), F = A?.propType ?? Ea(C, b, c);
3817
3826
  p?.delete(C);
3818
- const N = ha[F](e, A?.initializer ?? b, C, c);
3827
+ const N = va[F](e, A?.initializer ?? b, C, c);
3819
3828
  if (N.length === 0)
3820
3829
  return [];
3821
- const R = e.compiler.shouldMinifyJsx ? [" "] : ka(Tn($, e));
3822
- return F === "key" ? (m = typeof N[0] == "object" && !Pn($, e) ? N[0] : void 0, R.some($a) ? R : []) : F === "directives" || F === "ref" || C === "deferLoad" ? (g ||= F === "deferLoad", f.push(
3823
- ...R,
3830
+ const M = e.compiler.shouldMinifyJsx ? [" "] : Ia(Tn($, e));
3831
+ return F === "key" ? (m = typeof N[0] == "object" && !Pn($, e) ? N[0] : void 0, M.some(xa) ? M : []) : F === "directives" || F === "ref" || C === "deferLoad" ? (g ||= F === "deferLoad", f.push(
3832
+ ...M,
3824
3833
  ...N.flatMap(
3825
3834
  (U, K) => typeof U == "string" || K === 0 || typeof N[K - 1] == "string" ? U : [" ", U]
3826
3835
  )
3827
- ), []) : [...R, ...N];
3836
+ ), []) : [...M, ...N];
3828
3837
  });
3829
3838
  if (p !== void 0 && p.size > 0 && e.compiler.logLintError(
3830
3839
  "mustIncludeAllRequiredProperties",
@@ -3835,7 +3844,7 @@ Found ${L.getText(e.sourceFile)}`
3835
3844
  `JSX syntax for MathML elements is not yet supported. If you need it, please request it. Otherwise, use the \`math\` function from Lit directly. Tried to use the "${c}" element`
3836
3845
  );
3837
3846
  d && (g ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
3838
- const v = typeof c == "string" && kr.has(c), h = je(i, e);
3847
+ const v = typeof c == "string" && Ir.has(c), h = je(i, e);
3839
3848
  if (v && h.parts.length > 0)
3840
3849
  throw Error(
3841
3850
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
@@ -3859,12 +3868,12 @@ Found ${L.getText(e.sourceFile)}`
3859
3868
  ];
3860
3869
  return { key: m, parts: P, litTag: l };
3861
3870
  }
3862
- function Ja(e, t) {
3871
+ function Ka(e, t) {
3863
3872
  const i = e.attributes.properties[An(e)];
3864
3873
  return i && o.isJsxAttribute(i) && !Pn(i.name, t) ? Ft(i.initializer, t.sourceFile) : void 0;
3865
3874
  }
3866
3875
  const An = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
3867
- function Ka(e, t, i, n) {
3876
+ function Wa(e, t, i, n) {
3868
3877
  const r = (o.isJsxElement(t) ? t.openingElement : t).attributes.properties.map((l) => {
3869
3878
  if (o.isJsxSpreadAttribute(l))
3870
3879
  return En(Tn(l, e), o.factory.createSpreadAssignment(l.expression));
@@ -3889,7 +3898,7 @@ function je(e, t) {
3889
3898
  let i;
3890
3899
  const n = e.flatMap((s) => {
3891
3900
  if (o.isJsxText(s))
3892
- return [t.compiler.shouldMinifyJsx ? Lr(s.text) : s.text];
3901
+ return [t.compiler.shouldMinifyJsx ? Fr(s.text) : s.text];
3893
3902
  if (o.isJsxExpression(s))
3894
3903
  return Dt(t, s, s);
3895
3904
  {
@@ -3908,7 +3917,7 @@ function je(e, t) {
3908
3917
  });
3909
3918
  return { litTag: i, parts: n };
3910
3919
  }
3911
- function Wa(e) {
3920
+ function Ba(e) {
3912
3921
  return e.operatorToken.kind === o.SyntaxKind.AmpersandAmpersandToken ? o.factory.createBinaryExpression(
3913
3922
  e,
3914
3923
  o.factory.createToken(o.SyntaxKind.BarBarToken),
@@ -3959,7 +3968,7 @@ function Dt(e, t, i) {
3959
3968
  ] : [q(e, i, t.expression)]
3960
3969
  );
3961
3970
  }
3962
- function Ba(e, t) {
3971
+ function _a(e, t) {
3963
3972
  if (t in e.localComponents)
3964
3973
  for (const n of e.compiler.privateApiJson.modules)
3965
3974
  for (const s of n.declarations) {
@@ -3976,11 +3985,11 @@ const Ln = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), F
3976
3985
  ([e, t]) => t.map((i) => [i, e])
3977
3986
  )
3978
3987
  ), Nn = new Set(Object.keys(Fn));
3979
- function _a(e, t) {
3988
+ function Ha(e, t) {
3980
3989
  const i = t.importClause, n = t.moduleSpecifier;
3981
3990
  if (!o.isStringLiteral(n))
3982
3991
  return t;
3983
- const s = Ha(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
3992
+ const s = Ua(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
3984
3993
  if (r && e.existingImportedModules.add(s), i === void 0)
3985
3994
  return t;
3986
3995
  if (e.isInLightDomComponent && n.text.startsWith(".") && Ke.test(n.text) && // If id already includes ?, bypass our custom behavior
@@ -4007,16 +4016,16 @@ function _a(e, t) {
4007
4016
  const g = Dn(d, s);
4008
4017
  e.existingLitImports.add(g), e.importRenames[g] = l.name?.text ?? g;
4009
4018
  }
4010
- } else (l.name.text === "h" || l.name.text === "createElement") && (e.hasNonLuminaJsxImport = !0);
4019
+ } else (l.name.text === "h" || l.name.text === "createElement") && R().name !== "@arcgis/lumina" && (e.hasNonLuminaJsxImport = !0);
4011
4020
  const m = d.startsWith(d[0].toUpperCase()), f = u.isAbsolute(s);
4012
4021
  r && !l.isTypeOnly && m && f && e.importedFunctionComponentsFromModules.add(s);
4013
4022
  }), t;
4014
4023
  }
4015
- const Dn = (e, t) => e === de && ae.staticHtml.includes(t) ? le : e === oe && ae.staticSvg.includes(t) ? Y : e, Ha = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4016
- function Ua(e) {
4017
- return o.isImportDeclaration(e) ? za(this, e) : e;
4024
+ const Dn = (e, t) => e === de && ae.staticHtml.includes(t) ? le : e === oe && ae.staticSvg.includes(t) ? Y : e, Ua = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4025
+ function za(e) {
4026
+ return o.isImportDeclaration(e) ? qa(this, e) : e;
4018
4027
  }
4019
- function za(e, t) {
4028
+ function qa(e, t) {
4020
4029
  const i = t.importClause, n = i?.namedBindings, s = t.moduleSpecifier;
4021
4030
  if (!o.isStringLiteral(s) || !n || !o.isNamedImports(n) || !Nn.has(s.text))
4022
4031
  return t;
@@ -4041,7 +4050,7 @@ function za(e, t) {
4041
4050
  t.attributes
4042
4051
  ) : t;
4043
4052
  }
4044
- function qa(e) {
4053
+ function Ga(e) {
4045
4054
  const t = Ln(
4046
4055
  Array.from(e.neededImports, (i) => [ae[i][0], i])
4047
4056
  );
@@ -4067,8 +4076,8 @@ function jn(e, t) {
4067
4076
  o.factory.createIdentifier(n)
4068
4077
  );
4069
4078
  }
4070
- function Ga(e) {
4071
- const t = na().map(({ packageName: i }) => i);
4079
+ function Va(e) {
4080
+ const t = sa().map(({ packageName: i }) => i);
4072
4081
  return e.existingImportedModules.forEach((i) => {
4073
4082
  if (u.isAbsolute(i))
4074
4083
  return;
@@ -4081,7 +4090,7 @@ function Ga(e) {
4081
4090
  }
4082
4091
  }), [];
4083
4092
  }
4084
- function Va(e) {
4093
+ function Xa(e) {
4085
4094
  if (e.compiler.viteCommand === "serve")
4086
4095
  return e.customElementsToImport.clear(), e.customElementsToImportDeferred.clear(), [];
4087
4096
  const t = e.compiler._customElementDependencies;
@@ -4096,7 +4105,7 @@ function Va(e) {
4096
4105
  t[n] ??= { referencedBy: [], referencedTagNames: [], referencedDeferredTagNames: [] }, t[n].referencedBy.push(e.sourceFile.fileName);
4097
4106
  }), [];
4098
4107
  }
4099
- function Xa(e, t, i) {
4108
+ function Qa(e, t, i) {
4100
4109
  const n = Sn()[t] ?? Rn(e)[t];
4101
4110
  if (n === void 0) {
4102
4111
  if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
@@ -4111,7 +4120,7 @@ function Xa(e, t, i) {
4111
4120
  }
4112
4121
  return n;
4113
4122
  }
4114
- function Qa(e, t) {
4123
+ function Za(e, t) {
4115
4124
  return e.packageName === void 0 ? ce(t, e.moduleName) : u.join(e.packageName, e.moduleName);
4116
4125
  }
4117
4126
  function Rn(e) {
@@ -4122,7 +4131,7 @@ function Rn(e) {
4122
4131
  }
4123
4132
  }), e._localDefinedComponents;
4124
4133
  }
4125
- const Za = (e, t) => {
4134
+ const Ya = (e, t) => {
4126
4135
  const i = e.pragmas;
4127
4136
  if (i?.has("jsx") === !0 || i?.has("jsxImportSource") === !0)
4128
4137
  return e.statements;
@@ -4132,7 +4141,7 @@ const Za = (e, t) => {
4132
4141
  localComponents: t.compiler.isInPuppeteerTestBackEnd ? {} : Rn(t.compiler),
4133
4142
  sourceFile: e,
4134
4143
  transformationContext: t.transformation,
4135
- importRenames: Ya(e),
4144
+ importRenames: ec(e),
4136
4145
  existingImportedModules: /* @__PURE__ */ new Set(),
4137
4146
  importedFunctionComponentsFromModules: /* @__PURE__ */ new Set(),
4138
4147
  existingLitImports: /* @__PURE__ */ new Set(),
@@ -4148,18 +4157,18 @@ const Za = (e, t) => {
4148
4157
  let s = [];
4149
4158
  if (e.statements.every((a) => {
4150
4159
  if (o.isImportDeclaration(a)) {
4151
- if (s.push(_a(n, a)), n.hasNonLuminaJsxImport)
4160
+ if (s.push(Ha(n, a)), n.hasNonLuminaJsxImport)
4152
4161
  return !1;
4153
4162
  } else
4154
4163
  s.push(q(n, void 0, a));
4155
4164
  return !0;
4156
4165
  }), n.hasNonLuminaJsxImport)
4157
4166
  return e.statements;
4158
- if (n.neededImports.size > 0 && (s = s.map(Ua, n), n.existingLitImports.size > 0))
4167
+ if (n.neededImports.size > 0 && (s = s.map(za, n), n.existingLitImports.size > 0))
4159
4168
  throw new Error(
4160
4169
  `Expected context.existingLitImports to be empty by now. Found: ${Array.from(n.existingLitImports).join(", ")}`
4161
4170
  );
4162
- const r = [qa, Ga, Va].flatMap(
4171
+ const r = [Ga, Va, Xa].flatMap(
4163
4172
  (a) => a(n)
4164
4173
  );
4165
4174
  if (n.neededImports.size > 0)
@@ -4168,18 +4177,18 @@ const Za = (e, t) => {
4168
4177
  );
4169
4178
  return [...r, ...s];
4170
4179
  };
4171
- function Ya(e) {
4172
- return ec(e), Object.fromEntries(
4173
- ho.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4180
+ function ec(e) {
4181
+ return tc(e), Object.fromEntries(
4182
+ vo.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4174
4183
  );
4175
4184
  }
4176
- function ec(e) {
4185
+ function tc(e) {
4177
4186
  if (!("identifiers" in e))
4178
4187
  throw new Error(
4179
4188
  "Expected sourceFile to have an undocumented identifiers property that is a Map<string,string>. If this error is thrown, it may mean Lumina Compiler needs to be updated to support the version of TypeScript being used."
4180
4189
  );
4181
4190
  }
4182
- function tc(e, t, i) {
4191
+ function ic(e, t, i) {
4183
4192
  return t.size === 0 ? e : [
4184
4193
  o.factory.createPropertyDeclaration(
4185
4194
  [
@@ -4193,7 +4202,7 @@ function tc(e, t, i) {
4193
4202
  Array.from(t.entries()).map(
4194
4203
  ([n, s]) => o.factory.createPropertyAssignment(
4195
4204
  Xe(n) ? o.factory.createStringLiteral(n) : n,
4196
- ic(s, i)
4205
+ nc(s, i)
4197
4206
  )
4198
4207
  )
4199
4208
  )
@@ -4201,7 +4210,7 @@ function tc(e, t, i) {
4201
4210
  ...e
4202
4211
  ];
4203
4212
  }
4204
- function ic(e, t) {
4213
+ function nc(e, t) {
4205
4214
  let i = 0, n = !0;
4206
4215
  const s = [], r = [];
4207
4216
  for (const l of e.properties)
@@ -4243,7 +4252,7 @@ function ic(e, t) {
4243
4252
  ...t ? [] : [o.factory.createObjectLiteralExpression(r)]
4244
4253
  ]);
4245
4254
  }
4246
- function nc(e, t, i, n, s) {
4255
+ function sc(e, t, i, n, s) {
4247
4256
  let r = -1, a = -1, c = -1;
4248
4257
  t.options?.properties.forEach((f, g) => {
4249
4258
  if (o.isSpreadAssignment(f))
@@ -4255,23 +4264,23 @@ function nc(e, t, i, n, s) {
4255
4264
  y === "type" ? r = g : y === "attribute" ? a = g : y === "readOnly" && (c = g);
4256
4265
  }
4257
4266
  });
4258
- const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = sc(e, t, i, s, r), m = [
4267
+ const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = rc(e, t, i, s, r), m = [
4259
4268
  ...l ? [o.factory.createPropertyAssignment("attribute", o.factory.createFalse())] : [],
4260
4269
  ...d ? [o.factory.createPropertyAssignment("readOnly", o.factory.createTrue())] : [],
4261
4270
  ...p !== void 0 ? [p] : []
4262
4271
  ];
4263
4272
  return m.length > 0 ? t.options === void 0 ? o.factory.createObjectLiteralExpression(m, !1) : o.factory.updateObjectLiteralExpression(t.options, [...t.options.properties, ...m]) : t.options;
4264
4273
  }
4265
- function sc(e, t, i, n, s) {
4274
+ function rc(e, t, i, n, s) {
4266
4275
  if (n.attribute === void 0)
4267
4276
  return;
4268
- const r = oc(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : rc(n.type.values);
4277
+ const r = ac(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : oc(n.type.values);
4269
4278
  return a === "Other" || n.readonly && (a !== "Boolean" || !n.reflects) || t.options?.properties[s] !== void 0 ? void 0 : o.factory.createPropertyAssignment(
4270
4279
  o.factory.createIdentifier("type"),
4271
4280
  o.factory.createIdentifier(a)
4272
4281
  );
4273
4282
  }
4274
- function rc(e) {
4283
+ function oc(e) {
4275
4284
  let t = !1, i = !1, n = !1;
4276
4285
  if (e?.forEach((s) => {
4277
4286
  t ||= s.type === "number", i ||= s.type === "boolean", n ||= s.type === "string" || s.type === "any" || s.type === "unknown";
@@ -4283,7 +4292,7 @@ function rc(e) {
4283
4292
  }
4284
4293
  return "Other";
4285
4294
  }
4286
- function oc(e) {
4295
+ function ac(e) {
4287
4296
  const t = e.type ?? (o.isSetAccessor(e) ? e.parameters[0].type : void 0);
4288
4297
  if (t === void 0) {
4289
4298
  if ("initializer" in e && e.initializer !== void 0) {
@@ -4300,7 +4309,7 @@ function oc(e) {
4300
4309
  }
4301
4310
  return "Other";
4302
4311
  }
4303
- function ac(e, t, i, n, s) {
4312
+ function cc(e, t, i, n, s) {
4304
4313
  if (t.modifiers === void 0)
4305
4314
  return t;
4306
4315
  let r = -1, a = -1;
@@ -4310,7 +4319,7 @@ function ac(e, t, i, n, s) {
4310
4319
  d === "property" && (r = l), d === "state" && (a = l);
4311
4320
  }
4312
4321
  }), r !== -1) {
4313
- const c = cc(e, t, i, n), l = Si(t, r, n), d = nc(t, l, e, n, c);
4322
+ const c = lc(e, t, i, n), l = Si(t, r, n), d = sc(t, l, e, n, c);
4314
4323
  let p = !1;
4315
4324
  return s.set(c.name, d ?? o.factory.createObjectLiteralExpression()), p = !0, l.options = d, wi(t, l, r, p);
4316
4325
  } else if (a !== -1) {
@@ -4321,7 +4330,7 @@ function ac(e, t, i, n, s) {
4321
4330
  } else
4322
4331
  return t;
4323
4332
  }
4324
- function cc(e, t, i, n) {
4333
+ function lc(e, t, i, n) {
4325
4334
  const s = e.apiModule?.declarations.find(
4326
4335
  (a) => a.name === i
4327
4336
  ) ?? (e.compiler.isInTest ? {
@@ -4388,16 +4397,16 @@ function wi(e, t, i, n) {
4388
4397
  e.initializer
4389
4398
  );
4390
4399
  }
4391
- const lc = (e, t) => {
4400
+ const dc = (e, t) => {
4392
4401
  if (t.apiModule === void 0 && !t.compiler.isInTest)
4393
4402
  return e.statements;
4394
4403
  let i;
4395
4404
  function n() {
4396
4405
  i = /* @__PURE__ */ new Map();
4397
4406
  }
4398
- const s = (c) => tc(c, i, t.compiler.shouldMinify);
4407
+ const s = (c) => ic(c, i, t.compiler.shouldMinify);
4399
4408
  function r(c, l) {
4400
- const d = pc(t, c, l, e, i);
4409
+ const d = uc(t, c, l, e, i);
4401
4410
  return t.compiler.viteCommand === "build" && o.setEmitFlags(d, o.EmitFlags.NoComments), d;
4402
4411
  }
4403
4412
  return e.statements.map(
@@ -4431,11 +4440,11 @@ function Mn(e, t, i, n, s = Ji) {
4431
4440
  i.transformation
4432
4441
  ) : t;
4433
4442
  }
4434
- const dc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4435
- function pc(e, t, i, n, s) {
4443
+ const pc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4444
+ function uc(e, t, i, n, s) {
4436
4445
  if (o.isMethodDeclaration(t)) {
4437
4446
  const r = t.modifiers?.filter(
4438
- (a) => !o.isDecorator(a) || !uc(a)
4447
+ (a) => !o.isDecorator(a) || !mc(a)
4439
4448
  );
4440
4449
  if (r?.length !== t.modifiers?.length)
4441
4450
  return o.factory.updateMethodDeclaration(
@@ -4449,7 +4458,7 @@ function pc(e, t, i, n, s) {
4449
4458
  t.type,
4450
4459
  t.body
4451
4460
  );
4452
- if ("text" in t.name && dc.has(t.name.text) && t.body) {
4461
+ if ("text" in t.name && pc.has(t.name.text) && t.body) {
4453
4462
  const a = t.name.text;
4454
4463
  return t.body.statements.some(
4455
4464
  (l) => o.isExpressionStatement(l) && o.isCallExpression(l.expression) && o.isPropertyAccessExpression(l.expression.expression) && l.expression.expression.expression.kind === o.SyntaxKind.SuperKeyword && l.expression.expression.name.text === a
@@ -4475,11 +4484,11 @@ function pc(e, t, i, n, s) {
4475
4484
  );
4476
4485
  }
4477
4486
  }
4478
- return o.isPropertyDeclaration(t) || o.isAccessor(t) ? ac(e, t, i, n, s) : t;
4487
+ return o.isPropertyDeclaration(t) || o.isAccessor(t) ? cc(e, t, i, n, s) : t;
4479
4488
  }
4480
- const uc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", St = "@arcgis/core", lt = J(), $e = St in (lt.dependencies ?? {}) || St in (lt.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4489
+ const mc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", St = "@arcgis/core", lt = R(), $e = St in (lt.dependencies ?? {}) || St in (lt.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4481
4490
  lt.name === "@arcgis/lumina";
4482
- async function mc(e, t) {
4491
+ async function fc(e, t) {
4483
4492
  if (!$e)
4484
4493
  return [];
4485
4494
  const i = await He(St);
@@ -4510,8 +4519,8 @@ const bi = (e) => ({
4510
4519
  cssHref: `${e}esri/themes/light/main.css`,
4511
4520
  // This is used be the theme switcher in `@arcgis/storybook-utils`
4512
4521
  id: "arcgisCoreStylesheet"
4513
- }), Ti = "makeRuntime(", fc = "@arcgis/core";
4514
- function gc(e, t) {
4522
+ }), Ti = "makeRuntime(", gc = "@arcgis/core";
4523
+ function yc(e, t) {
4515
4524
  const i = e.indexOf(Ti);
4516
4525
  if (i === -1)
4517
4526
  throw new Error("Failed to find makeRuntime() function call in src/runtime.ts");
@@ -4529,7 +4538,7 @@ function gc(e, t) {
4529
4538
  "}",
4530
4539
  e.slice(n),
4531
4540
  $e ? `
4532
- import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${fc}/applications/Components/reactiveUtils.js";
4541
+ import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${gc}/applications/Components/reactiveUtils.js";
4533
4542
  createObservable,
4534
4543
  runtime.t = trackAccess;
4535
4544
  runtime.o = createObservable;
@@ -4539,11 +4548,11 @@ runtime.r = runTracked;` : ""
4539
4548
  map: null
4540
4549
  };
4541
4550
  }
4542
- const yc = [
4543
- Za,
4551
+ const hc = [
4552
+ Ya,
4544
4553
  zs,
4545
- lc
4546
- ], Ei = "@arcgis/lumina:transformComponents", hc = (e) => ({
4554
+ dc
4555
+ ], Ei = "@arcgis/lumina:transformComponents", vc = (e) => ({
4547
4556
  name: Ei,
4548
4557
  transform: {
4549
4558
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
@@ -4557,7 +4566,7 @@ const yc = [
4557
4566
  i
4558
4567
  );
4559
4568
  else if (i === `${e.dir.src}runtime.ts`)
4560
- return gc(t, e);
4569
+ return yc(t, e);
4561
4570
  return;
4562
4571
  }
4563
4572
  const n = e.getSourceFile(i, t);
@@ -4565,7 +4574,7 @@ const yc = [
4565
4574
  const r = o.transform(n, [
4566
4575
  (f) => () => zi(e, f, n, [
4567
4576
  ...e.options.types?.sourceFileTransformers ?? [],
4568
- ...yc
4577
+ ...hc
4569
4578
  ])
4570
4579
  ]).transformed[0], a = e._compilerOptionsForPrinter, c = e._typeScriptPrinter, l = a.sourceMap ? ge.createSourceMapGenerator(
4571
4580
  e.typeScriptHost,
@@ -4583,7 +4592,7 @@ const yc = [
4583
4592
  }
4584
4593
  }
4585
4594
  });
4586
- function vc(e) {
4595
+ function Sc(e) {
4587
4596
  const t = e.typeScriptConfig;
4588
4597
  return {
4589
4598
  ...t,
@@ -4615,7 +4624,7 @@ function vc(e) {
4615
4624
  skipLibCheck: !0
4616
4625
  };
4617
4626
  }
4618
- function Sc(e) {
4627
+ function wc(e) {
4619
4628
  const t = e.options.types?.tsconfigPath, i = t && u.isAbsolute(t) ? t : ds(t ?? "tsconfig.json");
4620
4629
  if (i === void 0)
4621
4630
  throw Error(
@@ -4654,7 +4663,7 @@ function On(e) {
4654
4663
  const i = o.ScriptTarget[t].toLowerCase();
4655
4664
  return i === "latest" ? "esnext" : i;
4656
4665
  }
4657
- function wc(e, t) {
4666
+ function bc(e, t) {
4658
4667
  if (e.isInStorybook && e.viteCommand === "serve") {
4659
4668
  const i = (a, c, l, ...d) => {
4660
4669
  const p = a.filter(
@@ -4676,9 +4685,9 @@ function wc(e, t) {
4676
4685
  e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Fs();
4677
4686
  }, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
4678
4687
  }
4679
- e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = vc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4688
+ e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = Sc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4680
4689
  }
4681
- async function bc(e, t, i) {
4690
+ async function Tc(e, t, i) {
4682
4691
  const n = u.resolve(e.dir.root, t);
4683
4692
  await z(n) && await hs(n, { recursive: !0, force: !0 }), await Z(n, { recursive: !0 }), await vs(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4684
4693
  const s = [
@@ -4705,7 +4714,7 @@ async function bc(e, t, i) {
4705
4714
  s.map(async (d, p) => {
4706
4715
  const f = p === 0 ? d : u.join(r, d), g = u.join(e.dir.root, f), y = u.join(n, f);
4707
4716
  await Z(u.dirname(y), { recursive: !0 });
4708
- const v = await O(g, "utf-8"), h = ce(u.dirname(f), `build/${i}`), S = `${l}<script type="module" src="${h}"><\/script>
4717
+ const v = await J(g, "utf-8"), h = ce(u.dirname(f), `build/${i}`), S = `${l}<script type="module" src="${h}"><\/script>
4709
4718
  `;
4710
4719
  let E = v.indexOf("<style>");
4711
4720
  if (E === -1 && (E = v.indexOf("</head>")), E === -1)
@@ -4729,7 +4738,7 @@ const Jn = /* @__PURE__ */ new Set([
4729
4738
  "extras",
4730
4739
  "support"
4731
4740
  ]), H = "@arcgis/lumina:buildCdn", jt = "cdn", Kn = "index", Te = "main";
4732
- function Tc(e) {
4741
+ function Ec(e) {
4733
4742
  const { skip: t = !1, namespace: i, esbuildOptions: n = {} } = e.options.build?.cdn ?? {}, s = e.options.build?.webApp?.destination, r = i !== void 0;
4734
4743
  if (r) {
4735
4744
  if (i.toLowerCase() !== i)
@@ -4746,7 +4755,7 @@ function Tc(e) {
4746
4755
  if (e.provideAssets([
4747
4756
  {
4748
4757
  type: "dynamic",
4749
- source: () => Do(e),
4758
+ source: () => jo(e),
4750
4759
  destination: `../${r ? a : Te}.css`
4751
4760
  }
4752
4761
  ]), !t)
@@ -4755,8 +4764,8 @@ function Tc(e) {
4755
4764
  async writeBundle() {
4756
4765
  if (e.isInStorybook)
4757
4766
  return;
4758
- const c = $e && J().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, g]) => ({ in: g, out: f })) : [], p = await Ec(e, a, n, d, c);
4759
- await Cc(
4767
+ const c = $e && R().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, g]) => ({ in: g, out: f })) : [], p = await Cc(e, a, n, d, c);
4768
+ await $c(
4760
4769
  p,
4761
4770
  e,
4762
4771
  r ? `${a}.esm` : a,
@@ -4764,11 +4773,11 @@ function Tc(e) {
4764
4773
  c
4765
4774
  );
4766
4775
  const m = Date.now();
4767
- T.info(H, `CDN was built in ${m - l}ms`), s && await bc(e, s, `${r ? `${a}.esm` : a}.js`);
4776
+ T.info(H, `CDN was built in ${m - l}ms`), s && await Tc(e, s, `${r ? `${a}.esm` : a}.js`);
4768
4777
  }
4769
4778
  };
4770
4779
  }
4771
- async function Ec(e, t, i, n, s) {
4780
+ async function Cc(e, t, i, n, s) {
4772
4781
  const r = e.environment;
4773
4782
  if (i.minify && s)
4774
4783
  throw Error(
@@ -4847,7 +4856,7 @@ ${fn(e._globalCssString, e)}`,
4847
4856
  }
4848
4857
  });
4849
4858
  }
4850
- async function Cc(e, t, i, n, s) {
4859
+ async function $c(e, t, i, n, s) {
4851
4860
  const r = t.dir.distCdn, a = `${i}.js`, c = new Map(
4852
4861
  e.outputFiles.map((l) => {
4853
4862
  const d = {
@@ -4857,13 +4866,13 @@ async function Cc(e, t, i, n, s) {
4857
4866
  }, p = l.path.slice(r.length);
4858
4867
  if (p === "stdin.js") {
4859
4868
  if (s) {
4860
- const f = l.text.match($c)?.[0];
4869
+ const f = l.text.match(xc)?.[0];
4861
4870
  if (f === void 0)
4862
4871
  throw Error(
4863
4872
  `Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina. stdin.js contents:
4864
4873
  ${l.text}`
4865
4874
  );
4866
- d.code = `${d.code.trimEnd()}${xc(f, n)}`, d.isAsync = !1;
4875
+ d.code = `${d.code.trimEnd()}${Pc(f, n)}`, d.isAsync = !1;
4867
4876
  }
4868
4877
  return [a, d];
4869
4878
  }
@@ -4874,8 +4883,8 @@ ${l.text}`
4874
4883
  l.isAsync === void 0 && (d.endsWith(".js") ? Wn(l, c) : l.isAsync = !1);
4875
4884
  }), t.options.build?.cdn?.transformer?.(c, t), await Promise.all(Array.from(c.entries(), async ([l, { code: d }]) => await D(r + l, d)));
4876
4885
  }
4877
- const $c = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4878
- function xc(e, t) {
4886
+ const xc = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4887
+ function Pc(e, t) {
4879
4888
  let i = [
4880
4889
  "window.$arcgis",
4881
4890
  "||",
@@ -4911,7 +4920,7 @@ function xc(e, t) {
4911
4920
  // minified to a variable name that is already used inside the closure).
4912
4921
  `)($arcgis,${e}`
4913
4922
  ].join(""), n) {
4914
- const r = J().name;
4923
+ const r = R().name;
4915
4924
  i += `,"${r}/",".js"`;
4916
4925
  }
4917
4926
  return i += ")", i;
@@ -4919,17 +4928,17 @@ function xc(e, t) {
4919
4928
  function Wn(e, t) {
4920
4929
  const i = [], n = [], s = [], r = /* @__PURE__ */ new Set(), a = [];
4921
4930
  let c = 0;
4922
- const l = e.code.matchAll(Pc);
4931
+ const l = e.code.matchAll(kc);
4923
4932
  for (const b of l) {
4924
- const [C, A, F, N, R] = b, U = R.startsWith(_e);
4933
+ const [C, A, F, N, M] = b, U = M.startsWith(_e);
4925
4934
  if (c !== 0 && c !== b.index) {
4926
4935
  const K = e.code.slice(c, b.index);
4927
4936
  s.push(K), a.push([c, K.length, 0, ""]);
4928
4937
  }
4929
4938
  if (c = b.index + C.length, U)
4930
- a.push([b.index, C.length, 0, ""]), n.push(`"${_n(R.slice(_e.length))}"`), i.push(A?.replaceAll(" as ", ":") ?? F ?? N ?? "");
4939
+ a.push([b.index, C.length, 0, ""]), n.push(`"${_n(M.slice(_e.length))}"`), i.push(A?.replaceAll(" as ", ":") ?? F ?? N ?? "");
4931
4940
  else {
4932
- const K = Bn(R, t), G = K?.isAsync === !0;
4941
+ const K = Bn(M, t), G = K?.isAsync === !0;
4933
4942
  if (A !== void 0) {
4934
4943
  const ke = [];
4935
4944
  for (const Ye of A.slice(1, -1).split(",")) {
@@ -4959,18 +4968,18 @@ ${K.code}`
4959
4968
  e.code = Ci(e.code, t);
4960
4969
  return;
4961
4970
  }
4962
- const d = Ac(r);
4971
+ const d = Lc(r);
4963
4972
  let p = e.code.slice(0, c);
4964
4973
  for (let b = a.length - 1; b >= 0; b--) {
4965
4974
  const [C, A, F, N] = a[b];
4966
- let R = A, U = "";
4975
+ let M = A, U = "";
4967
4976
  if (A === 0) {
4968
4977
  const G = d();
4969
- n.push(G), U = ` ${G} from`, N !== "" ? (R = F + 4, i.push(N)) : i.push("");
4978
+ n.push(G), U = ` ${G} from`, N !== "" ? (M = F + 4, i.push(N)) : i.push("");
4970
4979
  }
4971
- p = p.slice(0, C) + U + p.slice(C + R);
4980
+ p = p.slice(0, C) + U + p.slice(C + M);
4972
4981
  }
4973
- const m = kc.exec(e.code), f = m?.index ?? e.code.length;
4982
+ const m = Ic.exec(e.code), f = m?.index ?? e.code.length;
4974
4983
  let g = "";
4975
4984
  if (m !== null) {
4976
4985
  const b = m[1].split(",");
@@ -4990,7 +4999,7 @@ ${K.code}`
4990
4999
  const $ = `${p}${S}${L}${P}`;
4991
5000
  e.code = $;
4992
5001
  }
4993
- const Pc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, kc = /export\{([^}]+)\};\n$/u, _e = "@arcgis/core/";
5002
+ const kc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Ic = /export\{([^}]+)\};\n$/u, _e = "@arcgis/core/";
4994
5003
  function Bn(e, t) {
4995
5004
  if (!e.startsWith("./"))
4996
5005
  return;
@@ -5002,7 +5011,7 @@ function Bn(e, t) {
5002
5011
  return n;
5003
5012
  }
5004
5013
  function Ci(e, t) {
5005
- return e.replaceAll(Ic, (i, n) => {
5014
+ return e.replaceAll(Ac, (i, n) => {
5006
5015
  if (n.startsWith(_e))
5007
5016
  return `$arcgis.t(m=>m[0],"${_n(n.slice(_e.length))}")`;
5008
5017
  if (n.startsWith("./")) {
@@ -5013,28 +5022,28 @@ function Ci(e, t) {
5013
5022
  return i;
5014
5023
  });
5015
5024
  }
5016
- const Ic = /(?<![.\w\d])import\("([^"]+)"\)/gu, _n = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5017
- function Ac(e) {
5025
+ const Ac = /(?<![.\w\d])import\("([^"]+)"\)/gu, _n = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5026
+ function Lc(e) {
5018
5027
  const t = [Hn];
5019
5028
  return () => {
5020
5029
  for (; ; ) {
5021
- const i = Nc(t);
5022
- if (Dc(t), !e.has(i))
5030
+ const i = Dc(t);
5031
+ if (jc(t), !e.has(i))
5023
5032
  return e.add(i), i;
5024
5033
  }
5025
5034
  };
5026
5035
  }
5027
- const Hn = 0, Rt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Un = `${Rt}0123456789`, Lc = Rt.length, Fc = Un.length;
5028
- function Nc(e) {
5036
+ const Hn = 0, Rt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Un = `${Rt}0123456789`, Fc = Rt.length, Nc = Un.length;
5037
+ function Dc(e) {
5029
5038
  let t = Rt[e[0]];
5030
5039
  for (let i = 1; i < e.length; i++)
5031
5040
  t += Un[e[i]];
5032
5041
  return t;
5033
5042
  }
5034
- function Dc(e) {
5043
+ function jc(e) {
5035
5044
  let t = e.length - 1;
5036
5045
  for (; t >= 0; ) {
5037
- const i = t === 0 ? Lc : Fc;
5046
+ const i = t === 0 ? Fc : Nc;
5038
5047
  if (e[t] += 1, e[t] >= i)
5039
5048
  e[t] = 0, t--;
5040
5049
  else
@@ -5042,7 +5051,7 @@ function Dc(e) {
5042
5051
  }
5043
5052
  e = new Array(e.length + 1).fill(Hn);
5044
5053
  }
5045
- async function jc(e, t, i, n) {
5054
+ async function Rc(e, t, i, n) {
5046
5055
  const s = t.packageName, r = await He(s), { hasCss: a, cdnName: c } = await zn(u.join(r, "dist")) ?? {};
5047
5056
  if (i === "cdn") {
5048
5057
  const m = await Ue(r), f = t.cdnUrl ?? Ge(m, !0);
@@ -5101,7 +5110,7 @@ async function $i(e, t) {
5101
5110
  cdnName: t
5102
5111
  } : void 0;
5103
5112
  }
5104
- async function Rc(e, t, i, n) {
5113
+ async function Mc(e, t, i, n) {
5105
5114
  const s = t.packageName, r = await He(s), a = await Ue(r), c = await zn(u.join(r, "dist"));
5106
5115
  if (i === "cdn") {
5107
5116
  const g = a.exports?.[`./${Te}.css`] === void 0, y = g ? c.cdnName : Kn;
@@ -5113,7 +5122,7 @@ async function Rc(e, t, i, n) {
5113
5122
  }
5114
5123
  };
5115
5124
  }
5116
- const l = c?.cdnName ?? jt, d = Mc(a), p = `${s}/${u.normalize(d)}${ee}`, m = [
5125
+ const l = c?.cdnName ?? jt, d = Oc(a), p = `${s}/${u.normalize(d)}${ee}`, m = [
5117
5126
  `import styles$${n} from "${p}";`,
5118
5127
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
5119
5128
  ], f = `${s}/loader`;
@@ -5132,7 +5141,7 @@ async function Rc(e, t, i, n) {
5132
5141
  ]
5133
5142
  };
5134
5143
  }
5135
- function Mc(e) {
5144
+ function Oc(e) {
5136
5145
  const { exports: t } = e;
5137
5146
  if (t === void 0)
5138
5147
  throw new Error(
@@ -5142,19 +5151,19 @@ function Mc(e) {
5142
5151
  return n ? n[0] : i.length > 0 ? i[0][0] : `./${Te}.css`;
5143
5152
  }
5144
5153
  async function Ee(e) {
5145
- return e._loadersCache ??= Oc(e), await e._loadersCache;
5154
+ return e._loadersCache ??= Jc(e), await e._loadersCache;
5146
5155
  }
5147
- async function Oc(e) {
5156
+ async function Jc(e) {
5148
5157
  const t = e.viteCommand === "build" ? "cdn" : "lazyNpm", i = e.viteConfig.base;
5149
5158
  let n = 0;
5150
5159
  const s = async (l) => (await Promise.all(
5151
5160
  l.map(async (d) => {
5152
5161
  const p = n++;
5153
- return d.type === "stencil" ? await jc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Rc(i, d, t, p) : void 0;
5162
+ return d.type === "stencil" ? await Rc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Mc(i, d, t, p) : void 0;
5154
5163
  })
5155
5164
  )).filter(j).flat(), r = await Promise.all([
5156
5165
  // This may contain an import map so must be first
5157
- mc(i, t),
5166
+ fc(i, t),
5158
5167
  we.then(s),
5159
5168
  qn(e).then(s)
5160
5169
  ]), a = u.join(e.dir.src, "loader.ts");
@@ -5195,7 +5204,7 @@ async function qn(e) {
5195
5204
  ).then((i) => i.filter(j)), await e._serveOnlyDependencies);
5196
5205
  }
5197
5206
  const Gn = "/@arcgis/lumina-compiler/testSetupFile", dt = [Gn];
5198
- async function Jc(e) {
5207
+ async function Kc(e) {
5199
5208
  if (!e.viteConfig.test?.browser?.enabled)
5200
5209
  return xi(e);
5201
5210
  const i = (await Ee(e)).map((n, s) => {
@@ -5223,12 +5232,12 @@ async function Jc(e) {
5223
5232
  `);
5224
5233
  return [xi(e), i].join("");
5225
5234
  }
5226
- const xi = (e) => [e.isInPuppeteerTestBackEnd ? Kc : "", Wc].join(""), Kc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5235
+ const xi = (e) => [e.isInPuppeteerTestBackEnd ? Wc : "", Bc].join(""), Wc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5227
5236
  setupPuppeteerTest();
5228
- `, Wc = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5237
+ `, Bc = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5229
5238
  setupLuminaTest();
5230
5239
  `;
5231
- function Bc(e) {
5240
+ function _c(e) {
5232
5241
  let t = !0, i = !1, n, s, r, a, c;
5233
5242
  const l = "@arcgis/lumina:generateVirtualFiles", d = {
5234
5243
  name: l,
@@ -5241,17 +5250,17 @@ function Bc(e) {
5241
5250
  const v = y.startsWith(Gn);
5242
5251
  if (!(!y.endsWith(".tsx") && y !== a && !v)) {
5243
5252
  if (s === void 0 && !e.isInPuppeteerTestBackEnd) {
5244
- r === void 0 && clearTimeout(n), r ??= zo(e, t).catch((S) => {
5253
+ r === void 0 && clearTimeout(n), r ??= qo(e, t).catch((S) => {
5245
5254
  throw i = !0, S;
5246
5255
  }), t = !1;
5247
5256
  const h = await r;
5248
5257
  s ??= h;
5249
5258
  }
5250
- return y === a ? jo(e) : v ? await Jc(e) : void 0;
5259
+ return y === a ? Ro(e) : v ? await Kc(e) : void 0;
5251
5260
  }
5252
5261
  },
5253
5262
  async writeBundle() {
5254
- e.isInStorybook || await D(u.join(e.dir.dist, "loader.d.ts"), Ro);
5263
+ e.isInStorybook || await D(u.join(e.dir.dist, "loader.d.ts"), Mo);
5255
5264
  },
5256
5265
  async handleHotUpdate({ file: y, modules: v, read: h }) {
5257
5266
  const S = await p(y, h);
@@ -5265,7 +5274,7 @@ function Bc(e) {
5265
5274
  if (e.isInPuppeteerTestBackEnd)
5266
5275
  return;
5267
5276
  e.isInTest && y.watcher.on("change", (h) => {
5268
- p(h, async () => await O(h, "utf8")).catch(
5277
+ p(h, async () => await J(h, "utf8")).catch(
5269
5278
  (S) => T.warn(l, h, String(S))
5270
5279
  );
5271
5280
  }), y.watcher.on("add", v), y.watcher.on("unlink", v), y.watcher.on(
@@ -5316,7 +5325,7 @@ function Bc(e) {
5316
5325
  if (!Se(y, e.dir.srcComponents))
5317
5326
  return;
5318
5327
  h ??= await v();
5319
- const E = qo(e, y, h);
5328
+ const E = Go(e, y, h);
5320
5329
  if (E === void 0)
5321
5330
  return !1;
5322
5331
  for (const P of E) {
@@ -5344,10 +5353,10 @@ function ye(e, t, i = Mt) {
5344
5353
  throw Error(w(wt, "serveAssets() is only available when Vite is running in serve mode"));
5345
5354
  const n = e._serverConfigured, s = e.server.middlewares.stack.length;
5346
5355
  if (t.forEach((r) => {
5347
- const a = Xn(r), c = Zn(e.dir, Qn(a)), l = Hc(e.viteConfig.base, c, e.dir.distCdn);
5356
+ const a = Xn(r), c = Zn(e.dir, Qn(a)), l = Uc(e.viteConfig.base, c, e.dir.distCdn);
5348
5357
  e.server.middlewares.use(l, (d, p, m) => {
5349
- const f = Uc(d.url), g = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, y = u.join(c, f), v = i.find((h) => h.match(y, e));
5350
- return (typeof g == "function" ? Promise.resolve(g()) : O(g)).then((h) => {
5358
+ const f = zc(d.url), g = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, y = u.join(c, f), v = i.find((h) => h.match(y, e));
5359
+ return (typeof g == "function" ? Promise.resolve(g()) : J(g)).then((h) => {
5351
5360
  const S = (typeof g == "function" ? void 0 : v?.transform(h.toString("utf8"), y, e)) ?? h;
5352
5361
  p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", Ds.lookup(f) || "application/octet-stream"), p.write(S), p.end();
5353
5362
  }).catch((h) => {
@@ -5399,7 +5408,7 @@ async function Pi(e, t, i, n) {
5399
5408
  if (s === void 0)
5400
5409
  await Ss(e, t);
5401
5410
  else {
5402
- const r = await O(e, "utf8"), a = s.transform(r, t, n);
5411
+ const r = await J(e, "utf8"), a = s.transform(r, t, n);
5403
5412
  await D(t, a);
5404
5413
  }
5405
5414
  }
@@ -5419,33 +5428,33 @@ function Qn(e) {
5419
5428
  return e.destination === "" ? u.basename(e.source) : e.destination.endsWith(u.sep) ? e.type === "directory" && e.destination === u.sep ? e.destination : u.join(e.destination, u.basename(e.source)) : e.destination;
5420
5429
  }
5421
5430
  function Zn({ dist: e, distCdnAssets: t }, i) {
5422
- const n = _c(i), s = u.join(
5431
+ const n = Hc(i), s = u.join(
5423
5432
  t,
5424
5433
  n ? u.relative(t, i) : i
5425
5434
  ), r = u.relative(e, s), a = Yn(r);
5426
5435
  return u.join(e, a);
5427
5436
  }
5428
- function _c(e) {
5437
+ function Hc(e) {
5429
5438
  if (e.startsWith(u.sep)) {
5430
5439
  const t = Mi(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
5431
5440
  return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
5432
5441
  } else
5433
5442
  return !!(!Ri && u.isAbsolute(e));
5434
5443
  }
5435
- function Hc(e, t, i) {
5444
+ function Uc(e, t, i) {
5436
5445
  const n = Yn(u.relative(i, t)), s = n.startsWith("/") ? n.slice(1) : n;
5437
5446
  return `${e}${s}`;
5438
5447
  }
5439
- const Yn = (e) => e.replaceAll("../", ""), Uc = (e = "") => e.split("?")[0].split("#")[0];
5448
+ const Yn = (e) => e.replaceAll("../", ""), zc = (e = "") => e.split("?")[0].split("#")[0];
5440
5449
  async function es(e) {
5441
5450
  const t = new Set(e.map(u.dirname));
5442
5451
  await Promise.all(Array.from(t, async (i) => await Z(i, { recursive: !0 })));
5443
5452
  }
5444
- const zc = {
5453
+ const qc = {
5445
5454
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
5446
5455
  transform: (e) => JSON.stringify(JSON.parse(e))
5447
- }, Mt = [zc];
5448
- function qc(e) {
5456
+ }, Mt = [qc];
5457
+ function Gc(e) {
5449
5458
  let t;
5450
5459
  const i = () => [
5451
5460
  ...e.options.assets?.transformers ?? [],
@@ -5454,7 +5463,7 @@ function qc(e) {
5454
5463
  return {
5455
5464
  name: "@arcgis/lumina:handleStaticAssets",
5456
5465
  configResolved() {
5457
- t = Gc(e);
5466
+ t = Vc(e);
5458
5467
  },
5459
5468
  async configureServer(n) {
5460
5469
  e.server = n, !e.isInPuppeteerTestBackEnd && (ye(e, await t, i()), n.watcher.on("addDir", (s) => {
@@ -5469,7 +5478,7 @@ function qc(e) {
5469
5478
  }
5470
5479
  };
5471
5480
  }
5472
- async function Gc(e) {
5481
+ async function Vc(e) {
5473
5482
  const t = z("assets"), i = await e.componentFilesPromise, n = await Promise.all(
5474
5483
  i.map(async (s) => {
5475
5484
  const r = u.dirname(s), a = u.join(r, "assets");
@@ -5482,7 +5491,7 @@ const ts = (e, t) => ({
5482
5491
  type: "directory",
5483
5492
  source: e,
5484
5493
  destination: u.basename(t)
5485
- }), is = { type: "directory", source: "assets/", destination: "" }, pt = "@arcgis/lumina:printTotalBuildSize", Vc = (e) => ({
5494
+ }), is = { type: "directory", source: "assets/", destination: "" }, pt = "@arcgis/lumina:printTotalBuildSize", Xc = (e) => ({
5486
5495
  name: pt,
5487
5496
  apply: () => e.viteCommand === "build",
5488
5497
  configResolved(t) {
@@ -5499,10 +5508,10 @@ const ts = (e, t) => ({
5499
5508
  const m = console.log;
5500
5509
  console.log = function(...g) {
5501
5510
  if (m.apply(console, g), g.length === 1 && typeof g[0] == "string") {
5502
- const [y, v] = g[0].match(Qc) ?? [];
5511
+ const [y, v] = g[0].match(Zc) ?? [];
5503
5512
  if (!y)
5504
5513
  return;
5505
- p || (p = g[0].slice(0, g[0].indexOf(y) + y.length).replaceAll(Zc, "").length);
5514
+ p || (p = g[0].slice(0, g[0].indexOf(y) + y.length).replaceAll(Yc, "").length);
5506
5515
  const h = Number.parseFloat(y.replace(" kB", "").replaceAll(",", ""));
5507
5516
  v ? (d += Number.parseFloat(v.replace(" kB", "").replaceAll(",", "")), l += h) : c += h;
5508
5517
  }
@@ -5518,7 +5527,7 @@ const ts = (e, t) => ({
5518
5527
  [
5519
5528
  Ii,
5520
5529
  v,
5521
- Xc,
5530
+ Qc,
5522
5531
  "*",
5523
5532
  " ".repeat(p - `${v}*`.length - y.length),
5524
5533
  y,
@@ -5529,10 +5538,10 @@ const ts = (e, t) => ({
5529
5538
  }
5530
5539
  };
5531
5540
  }
5532
- }), ki = "\x1B[22m\x1B[1m\x1B[22m", Ii = "\x1B[2m", Xc = "\x1B[22m\x1B[36m", Qc = /\d+(?:,\d+)?\.\d{2} kB/gu, Zc = /\x1B\[\d+m/gu, Yc = new Intl.NumberFormat("en", {
5541
+ }), ki = "\x1B[22m\x1B[1m\x1B[22m", Ii = "\x1B[2m", Qc = "\x1B[22m\x1B[36m", Zc = /\d+(?:,\d+)?\.\d{2} kB/gu, Yc = /\x1B\[\d+m/gu, el = new Intl.NumberFormat("en", {
5533
5542
  maximumFractionDigits: 2,
5534
5543
  minimumFractionDigits: 2
5535
- }), Ai = (e) => `${Yc.format(e)} kB`, Li = "@arcgis/lumina:configureVite", el = (e) => ({
5544
+ }), Ai = (e) => `${el.format(e)} kB`, Li = "@arcgis/lumina:configureVite", tl = (e) => ({
5536
5545
  name: Li,
5537
5546
  async config({
5538
5547
  server: t,
@@ -5549,7 +5558,7 @@ const ts = (e, t) => ({
5549
5558
  */
5550
5559
  loader: "src/loader.ts",
5551
5560
  // Entrypoint for bundling used components only:
5552
- ...await Or(e)
5561
+ ...await Jr(e)
5553
5562
  }, { loader: y, ...v } = g, h = e.environment === "development" || e.isInTest ? {
5554
5563
  "process.env.ESRI_INTERNAL": "true"
5555
5564
  } : void 0, S = !import.meta.url.includes("node_modules"), E = {
@@ -5707,18 +5716,18 @@ const ts = (e, t) => ({
5707
5716
  }
5708
5717
  };
5709
5718
  }
5710
- }), tl = (e) => ({
5719
+ }), il = (e) => ({
5711
5720
  name: "@arcgis/lumina:setAssetPath",
5712
5721
  apply: () => e.viteCommand === "build",
5713
5722
  config: (t) => ({
5714
5723
  base: t.base ?? e.options.assets?.defaultPath ?? Ge()
5715
5724
  })
5716
5725
  });
5717
- function il(e = J()) {
5726
+ function nl(e = R()) {
5718
5727
  const t = e.version ?? "0.0.1";
5719
5728
  return bs(t);
5720
5729
  }
5721
- const nl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5730
+ const sl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5722
5731
  Object.defineProperty(t, i, {
5723
5732
  get() {
5724
5733
  throw Error(
@@ -5757,8 +5766,8 @@ const me = {
5757
5766
  apiJson: "docs/api.json",
5758
5767
  stencilLikeDocsJson: "docs/docs.json"
5759
5768
  };
5760
- async function ns(e, t, i, n, s = J()) {
5761
- const r = sl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await z(a) ? await O(a, "utf8") : "";
5769
+ async function ns(e, t, i, n, s = R()) {
5770
+ const r = rl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await z(a) ? await J(a, "utf8") : "";
5762
5771
  if (l.trim().replaceAll(`\r
5763
5772
  `, `
5764
5773
  `) === r.trim())
@@ -5778,7 +5787,7 @@ ${l}`
5778
5787
  );
5779
5788
  return Ki(a, r), !0;
5780
5789
  }
5781
- function sl(e, t, i, n = J()) {
5790
+ function rl(e, t, i, n = R()) {
5782
5791
  "@arcgis/components-controllers" in (n.dependencies ?? {}) && T.warn(
5783
5792
  "@arcgis/components-controllers",
5784
5793
  "Deprecation warning: the @arcgis/components-controllers package was merged into @arcgis/lumina. Please remove it from your package.json and rewrite code to import from @arcgis/lumina/controllers and @arcgis/lumina/controllers/accessor instead."
@@ -5793,11 +5802,11 @@ declare module "@arcgis/lumina" {
5793
5802
  interface ImportStencilElements extends ${r.map((m, f) => `JSX$${f}.IntrinsicElements`).join(", ")} {}
5794
5803
  }`, l = n.devDependencies ?? {}, d = i === "preview" ? "matchers" : i === "webdriverio" ? "webdriverio" : "playwright";
5795
5804
  return [
5796
- rl,
5805
+ ol,
5797
5806
  // Avoid cyclic references for tests in @arcgis/lumina
5798
5807
  n.name === "@arcgis/lumina" ? "" : `
5799
5808
  /// <reference types="@arcgis/lumina/typings" />`,
5800
- t ? ol : "",
5809
+ t ? al : "",
5801
5810
  l.vitest ? `
5802
5811
  /// <reference types="vitest/config" />` : "",
5803
5812
  l["@vitest/browser"] ? `
@@ -5811,7 +5820,7 @@ declare module "@arcgis/lumina" {
5811
5820
  `
5812
5821
  ].join("");
5813
5822
  }
5814
- const rl = `/**
5823
+ const ol = `/**
5815
5824
  * This file is autogenerated by \`@arcgis/lumina-compiler\` - do not edit it manually.
5816
5825
  * Manual edits will be overwritten.
5817
5826
  *
@@ -5819,7 +5828,7 @@ const rl = `/**
5819
5828
  * as well as @arcgis/core typings if you use @arcgis/core.
5820
5829
  *
5821
5830
  * If you need to provide additional typings, create a separate file.
5822
- */`, ol = `
5831
+ */`, al = `
5823
5832
  /// <reference types="@arcgis/core/interfaces" />`, Re = "@arcgis/lumina:dependencySupport", ss = (e, t) => e.viteCommand === "serve" && /**
5824
5833
  * Vitest started calling transformIndexHtml in browser mode versions ^2.1.4
5825
5834
  * However, it is a bit buggy (see
@@ -5831,10 +5840,10 @@ const rl = `/**
5831
5840
  * is doing:
5832
5841
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
5833
5842
  */
5834
- e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, al = (e) => ({
5843
+ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, cl = (e) => ({
5835
5844
  name: Re,
5836
5845
  configResolved() {
5837
- !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = cl(e).catch(
5846
+ !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = ll(e).catch(
5838
5847
  (t) => T.error(Re, `Failed to update package's src/lumina.ts: ${String(t)}`)
5839
5848
  ));
5840
5849
  },
@@ -5882,7 +5891,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
5882
5891
  await e._updateLuminaTsPromise;
5883
5892
  }
5884
5893
  });
5885
- async function cl(e) {
5894
+ async function ll(e) {
5886
5895
  const i = (await Promise.all([we, qn(e)])).flat();
5887
5896
  if (!await ns(
5888
5897
  i,
@@ -5893,22 +5902,22 @@ async function cl(e) {
5893
5902
  return;
5894
5903
  let s = !1;
5895
5904
  function r() {
5896
- s || T.warn(Re, ll), s = !0;
5905
+ s || T.warn(Re, dl), s = !0;
5897
5906
  }
5898
5907
  process.on("exit", () => {
5899
5908
  r(), clearTimeout(c);
5900
5909
  });
5901
5910
  const c = setTimeout(r, 2e3);
5902
5911
  }
5903
- const ll = js.greenBright(
5912
+ const dl = js.greenBright(
5904
5913
  `lumina.ts has been updated (potentially because your dependencies changed). Please commit the updated file.
5905
5914
  If build failed with TypeScript errors, try running the build again to check whether new lumina.ts resolves the errors.`
5906
5915
  );
5907
- async function dl(e, t) {
5916
+ async function pl(e, t) {
5908
5917
  const i = /* @__PURE__ */ new Map();
5909
5918
  await Promise.all(
5910
5919
  e.map(async (s) => {
5911
- const r = await O(s, "utf-8"), a = r.match(pl)?.[1];
5920
+ const r = await J(s, "utf-8"), a = r.match(ul)?.[1];
5912
5921
  if (a === void 0) {
5913
5922
  T.warn(
5914
5923
  "@arcgis/lumina:parseStoryFiles",
@@ -5920,14 +5929,14 @@ async function dl(e, t) {
5920
5929
  let c = i.get(a);
5921
5930
  c === void 0 && (c = [], i.set(a, c));
5922
5931
  const l = [];
5923
- for (const d of r.matchAll(ul)) {
5924
- const p = d[1], m = yl(p), f = r.indexOf("{", d.index), g = r.indexOf("}", f), y = r.slice(0, d.index).trimEnd();
5932
+ for (const d of r.matchAll(ml)) {
5933
+ const p = d[1], m = hl(p), f = r.indexOf("{", d.index), g = r.indexOf("}", f), y = r.slice(0, d.index).trimEnd();
5925
5934
  let v = "";
5926
5935
  if (y.endsWith("*/")) {
5927
5936
  const E = y.lastIndexOf("/**");
5928
- v = y.slice(E + 3, -2).trim().replaceAll(fl, "");
5937
+ v = y.slice(E + 3, -2).trim().replaceAll(gl, "");
5929
5938
  }
5930
- const h = r.slice(f, g).match(ml)?.[1] || m, S = gl(m);
5939
+ const h = r.slice(f, g).match(fl)?.[1] || m, S = yl(m);
5931
5940
  l.push({
5932
5941
  description: `${h}${v ? `
5933
5942
  ${v}` : ""}`,
@@ -5952,11 +5961,11 @@ ${v}` : ""}`,
5952
5961
  }
5953
5962
  return n;
5954
5963
  }
5955
- const pl = /component: ["']([^"']+)["']/u, ul = /export const (\w+)/gu, ml = /name: ["']([^"']+)["']/u, fl = /^\s*\*\s?/gmu, gl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), yl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim(), ie = { node: "^22" };
5956
- var hl = Object.defineProperty, I = (e, t, i, n) => {
5964
+ const ul = /component: ["']([^"']+)["']/u, ml = /export const (\w+)/gu, fl = /name: ["']([^"']+)["']/u, gl = /^\s*\*\s?/gmu, yl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), hl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim(), ie = { node: "^22" };
5965
+ var vl = Object.defineProperty, I = (e, t, i, n) => {
5957
5966
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
5958
5967
  (a = e[r]) && (s = a(t, i, s) || s);
5959
- return s && hl(t, i, s), s;
5968
+ return s && vl(t, i, s), s;
5960
5969
  };
5961
5970
  const W = "@arcgis/lumina:context";
5962
5971
  class x {
@@ -5997,9 +6006,9 @@ class x {
5997
6006
  "Vite output directory is outside the root directory. This is not officially supported by Lumina and may lead to unexpected behavior. Contact Lumina maintainers if you need this to be supported."
5998
6007
  ), this.isInStorybook = a.resolve.conditions.includes("storybook"), this.isFullApiExtraction = this.viteCommand === "build" || this.isInStorybook, this.hmrEnabled = this.viteCommand === "serve" && !this.isInTest && !!(a.server?.hmr ?? !0);
5999
6008
  const h = this.options.documentation?.publicStoryUrlPrefix;
6000
- this.isFullApiExtraction && typeof h == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await dl(this.componentStoryFiles, h)).then((S) => {
6009
+ this.isFullApiExtraction && typeof h == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await pl(this.componentStoryFiles, h)).then((S) => {
6001
6010
  this.componentStories = S;
6002
- }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), wc(this, a.build.sourcemap !== !1), ss(this) && Ee(this);
6011
+ }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), bc(this, a.build.sourcemap !== !1), ss(this) && Ee(this);
6003
6012
  }
6004
6013
  },
6005
6014
  configureServer: {
@@ -6038,9 +6047,9 @@ class x {
6038
6047
  webTypes: s.jetBrains === !1 ? void 0 : s.jetBrains?.webTypesFileName ? ue(s.jetBrains.webTypesFileName) : me.webTypes,
6039
6048
  vsCodeHtml: s.vsCode === !1 ? void 0 : s.vsCode?.htmlFileName ? ue(s.vsCode.htmlFileName) : me.vsCodeHtml,
6040
6049
  vsCodeCss: s.vsCode === !1 ? void 0 : s.vsCode?.cssFileName ? ue(s.vsCode.cssFileName) : me.vsCodeCss
6041
- }, vn(), this.componentFilesPromise = kt(this, u.resolve("src/components")), Sc(this);
6042
- const r = t.build?.preamble ?? il();
6043
- this.banner = nl(r);
6050
+ }, vn(), this.componentFilesPromise = kt(this, u.resolve("src/components")), wc(this);
6051
+ const r = t.build?.preamble ?? nl();
6052
+ this.banner = sl(r);
6044
6053
  }
6045
6054
  _inferBuildSetup({ command: t, mode: i }, n) {
6046
6055
  this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn(It, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
@@ -6198,7 +6207,7 @@ I([
6198
6207
  I([
6199
6208
  k("configResolved()")
6200
6209
  ], x.prototype, "_typeScriptPrinter");
6201
- const ut = "@arcgis/lumina:addNonLazyImports", vl = (e) => ({
6210
+ const ut = "@arcgis/lumina:addNonLazyImports", Sl = (e) => ({
6202
6211
  name: ut,
6203
6212
  apply: () => e.viteCommand === "build",
6204
6213
  generateBundle(t, i) {
@@ -6237,10 +6246,10 @@ const ut = "@arcgis/lumina:addNonLazyImports", vl = (e) => ({
6237
6246
  return [];
6238
6247
  const l = u.dirname(r), d = ve(l, e.dir.srcComponents, e), p = u.relative(e.dir.src, d);
6239
6248
  function m(b) {
6240
- const C = Xa(e, b, r);
6249
+ const C = Qa(e, b, r);
6241
6250
  if (C === void 0)
6242
6251
  return;
6243
- const A = Qa(C, p);
6252
+ const A = Za(C, p);
6244
6253
  if (A !== `./${p}`)
6245
6254
  return A.startsWith(".") ? `${A}/${Fi}` : A;
6246
6255
  }
@@ -6263,12 +6272,12 @@ ${P}
6263
6272
  deferredLoaders${E.join("")};` : P;
6264
6273
  return [
6265
6274
  D(u.join(e.dir.dist, p, Fi), $),
6266
- D(u.join(e.dir.dist, p, Sl), L)
6275
+ D(u.join(e.dir.dist, p, wl), L)
6267
6276
  ];
6268
6277
  });
6269
6278
  await Promise.all(s);
6270
6279
  }
6271
- }), Fi = "index.js", Sl = "index.d.ts", rs = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), rs(e, e[s].referencedBy, i, n))), wl = (e) => ({
6280
+ }), Fi = "index.js", wl = "index.d.ts", rs = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), rs(e, e[s].referencedBy, i, n))), bl = (e) => ({
6272
6281
  name: "@arcgis/lumina:handleDynamicAssets",
6273
6282
  configureServer(t) {
6274
6283
  e.server = t, !e.isInPuppeteerTestBackEnd && Ni(e).forEach(({ assets: i, transformers: n }) => ye(e, i, n));
@@ -6287,20 +6296,20 @@ function Ni(e) {
6287
6296
  "type" in n ? t.push(n) : "assets" in n && t.push(...n.assets);
6288
6297
  }), t.length > 0 && i.push({ assets: t }), e.assetsToProvide = void 0, i;
6289
6298
  }
6290
- const bt = "@arcgis/lumina:updatePackageJson", bl = (e) => ({
6299
+ const bt = "@arcgis/lumina:updatePackageJson", Tl = (e) => ({
6291
6300
  name: bt,
6292
6301
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
6293
6302
  configResolved() {
6294
- Tl(e).catch(
6303
+ El(e).catch(
6295
6304
  (t) => T.error(bt, `Failed to update package's package.json:${String(t)}`)
6296
6305
  );
6297
6306
  }
6298
6307
  });
6299
- async function Tl(e) {
6300
- const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await O(t, "utf-8")), n = El(i, e);
6308
+ async function El(e) {
6309
+ const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await J(t, "utf-8")), n = Cl(i, e);
6301
6310
  n && Ki(t, JSON.stringify(n, null, 2));
6302
6311
  }
6303
- function El(e, t) {
6312
+ function Cl(e, t) {
6304
6313
  const i = e?.devDependencies ?? {};
6305
6314
  Object.keys(e?.peerDependencies ?? {}).forEach((d) => {
6306
6315
  d in i || T.warn(
@@ -6339,20 +6348,20 @@ function El(e, t) {
6339
6348
  if (n)
6340
6349
  return e;
6341
6350
  }
6342
- const Cl = (e) => ({
6351
+ const $l = (e) => ({
6343
6352
  timestamp: e.apiJson.timestamp,
6344
6353
  compiler: e.apiJson.compiler,
6345
- components: $l(e),
6354
+ components: xl(e),
6346
6355
  typeLibrary: {}
6347
6356
  });
6348
- function $l(e) {
6357
+ function xl(e) {
6349
6358
  const t = [];
6350
6359
  for (const i of e.apiJson.modules)
6351
6360
  for (const n of i.declarations)
6352
- "customElement" in n && t.push(xl(n, i.path));
6361
+ "customElement" in n && t.push(Pl(n, i.path));
6353
6362
  return t;
6354
6363
  }
6355
- function xl(e, t) {
6364
+ function Pl(e, t) {
6356
6365
  const i = e.superclass ? [{ name: "superclass", text: JSON.stringify(e.superclass) }] : [];
6357
6366
  return {
6358
6367
  filePath: t,
@@ -6367,9 +6376,9 @@ function xl(e, t) {
6367
6376
  dependencies: [],
6368
6377
  dependencyGraph: {},
6369
6378
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated,
6370
- props: e.members.map(Pl).filter(j),
6371
- methods: e.members.map(kl).filter(j),
6372
- events: e.events?.map(Il) ?? [],
6379
+ props: e.members.map(kl).filter(j),
6380
+ methods: e.members.map(Il).filter(j),
6381
+ events: e.events?.map(Al) ?? [],
6373
6382
  styles: e.cssProperties?.map((n) => ({
6374
6383
  name: n.name,
6375
6384
  annotation: "prop",
@@ -6381,7 +6390,7 @@ function xl(e, t) {
6381
6390
  listeners: []
6382
6391
  };
6383
6392
  }
6384
- function Pl(e) {
6393
+ function kl(e) {
6385
6394
  if (e.kind !== "field")
6386
6395
  return;
6387
6396
  const t = e, i = t.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(t.inheritedFrom) }] : [], n = t.readonly ? [{ name: "readonly", text: "" }] : [], s = t.docsTags?.some((r) => r.name === "required") ?? !1;
@@ -6422,7 +6431,7 @@ const Ot = (e) => Object.fromEntries(
6422
6431
  ]
6423
6432
  ) ?? []
6424
6433
  );
6425
- function kl(e) {
6434
+ function Il(e) {
6426
6435
  if (e.kind !== "method")
6427
6436
  return;
6428
6437
  const t = e, i = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [], n = t.parameters?.map(({ name: s, type: r, description: a }) => ({
@@ -6453,7 +6462,7 @@ function kl(e) {
6453
6462
  deprecation: typeof t.deprecated == "boolean" ? t.deprecated ? "" : void 0 : t.deprecated
6454
6463
  };
6455
6464
  }
6456
- function Il(e) {
6465
+ function Al(e) {
6457
6466
  const t = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [];
6458
6467
  return {
6459
6468
  event: e.name,
@@ -6481,14 +6490,14 @@ const os = (e) => e.flatMap(
6481
6490
  name: `::part(${i.name})`,
6482
6491
  description: i.description || void 0
6483
6492
  })) ?? []
6484
- ), Al = (e) => e.attributes?.map((t) => ({
6493
+ ), Ll = (e) => e.attributes?.map((t) => ({
6485
6494
  name: t.name ?? "",
6486
6495
  description: Ze(t.description, t.deprecated) || void 0,
6487
6496
  default: t.default,
6488
6497
  value: {
6489
- type: Ll(t.type.values?.map(sn))
6498
+ type: Fl(t.type.values?.map(sn))
6490
6499
  }
6491
- })) ?? [], Ll = (e) => e?.length === 1 ? e[0] : e, Ze = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, xe = {
6500
+ })) ?? [], Fl = (e) => e?.length === 1 ? e[0] : e, Ze = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, xe = {
6492
6501
  slots: "Slots",
6493
6502
  events: "Events",
6494
6503
  cssProperties: "CSS Properties",
@@ -6496,7 +6505,7 @@ const os = (e) => e.flatMap(
6496
6505
  methods: "Methods"
6497
6506
  };
6498
6507
  function cs(e) {
6499
- const t = Fl(e.slots), i = Nl(e.events), n = Dl(e.cssProperties), s = jl(e.cssParts), r = Rl(e.members), a = Ze(e.description, e.deprecated).trim();
6508
+ const t = Nl(e.slots), i = Dl(e.events), n = jl(e.cssProperties), s = Rl(e.cssParts), r = Ml(e.members), a = Ze(e.description, e.deprecated).trim();
6500
6509
  return [...a ? [`${a}
6501
6510
  --`] : [], i, r, t, n, s].filter(Boolean).join(`
6502
6511
 
@@ -6504,28 +6513,28 @@ function cs(e) {
6504
6513
  }
6505
6514
  const Pe = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
6506
6515
  ${t.join(`
6507
- `)}`, Fl = (e) => Pe(
6516
+ `)}`, Nl = (e) => Pe(
6508
6517
  xe.slots,
6509
6518
  e?.map((t) => `- ${t.name ? `**${t.name}**` : "_default_"} - ${t.description}`)
6510
- ), Nl = (e) => Pe(
6519
+ ), Dl = (e) => Pe(
6511
6520
  xe.events,
6512
6521
  e?.filter((t) => t.name !== null && t.name !== void 0).map((t) => `- **${t.name}**${t.description ? ` - ${t.description}` : ""}`)
6513
- ), Dl = (e = []) => Pe(
6522
+ ), jl = (e = []) => Pe(
6514
6523
  xe.cssProperties,
6515
6524
  e?.map(
6516
6525
  (t) => `- **${t.name}** - ${t.description} ${t.default ? `_(default: ${t.default})_}` : ""}`
6517
6526
  )
6518
- ), jl = (e) => Pe(
6527
+ ), Rl = (e) => Pe(
6519
6528
  xe.cssParts,
6520
6529
  e?.map((t) => `- **${t.name}** - ${t.description}`)
6521
- ), Rl = (e) => Pe(
6530
+ ), Ml = (e) => Pe(
6522
6531
  xe.methods,
6523
6532
  e.filter(gs).map(
6524
6533
  (t) => [`- \`${t.name}${t.signature}\``, Ze(t.description, t.deprecated)].filter(Boolean).join(" - ")
6525
6534
  )
6526
6535
  );
6527
- function Ml(e, t) {
6528
- const i = Ol(e), n = os(e), s = as(e), r = J();
6536
+ function Ol(e, t) {
6537
+ const i = Jl(e), n = os(e), s = as(e), r = R();
6529
6538
  return {
6530
6539
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
6531
6540
  name: r.name,
@@ -6543,21 +6552,21 @@ function Ml(e, t) {
6543
6552
  }
6544
6553
  };
6545
6554
  }
6546
- const Ol = (e) => e.map((t) => ({
6555
+ const Jl = (e) => e.map((t) => ({
6547
6556
  name: t.tagName,
6548
6557
  description: cs(t),
6549
6558
  "doc-url": t.demos?.[0]?.url,
6550
- attributes: Al(t),
6559
+ attributes: Ll(t),
6551
6560
  slots: t.slots?.map((i) => ({
6552
6561
  name: i.name,
6553
6562
  description: i.description
6554
6563
  })),
6555
6564
  events: Di(t),
6556
6565
  js: {
6557
- properties: Jl(t),
6566
+ properties: Kl(t),
6558
6567
  events: Di(t)
6559
6568
  }
6560
- })), Jl = (e) => e.members.filter(ys).map((t) => ({
6569
+ })), Kl = (e) => e.members.filter(ys).map((t) => ({
6561
6570
  name: t.name,
6562
6571
  description: t.description,
6563
6572
  type: t.type?.text
@@ -6565,30 +6574,30 @@ const Ol = (e) => e.map((t) => ({
6565
6574
  name: t.name,
6566
6575
  type: t.type?.text,
6567
6576
  description: t.description
6568
- })) ?? [], Kl = (e) => e.map((t) => ({
6577
+ })) ?? [], Wl = (e) => e.map((t) => ({
6569
6578
  name: t.tagName,
6570
6579
  description: cs(t),
6571
- attributes: Wl(t),
6580
+ attributes: Bl(t),
6572
6581
  references: t.demos?.map((i) => ({ name: i.description, url: i.url })) ?? []
6573
- })), Wl = (e) => e.attributes?.map((t) => ({
6582
+ })), Bl = (e) => e.attributes?.map((t) => ({
6574
6583
  name: t.name,
6575
6584
  description: Ze(t.description, t.deprecated) || void 0,
6576
- values: Bl(t)
6577
- })) ?? [], Bl = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], _l = (e) => ({
6585
+ values: _l(t)
6586
+ })) ?? [], _l = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], Hl = (e) => ({
6578
6587
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
6579
6588
  version: 1.1,
6580
- tags: Kl(e)
6581
- }), Hl = (e) => ({
6589
+ tags: Wl(e)
6590
+ }), Ul = (e) => ({
6582
6591
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
6583
6592
  version: 1.1,
6584
6593
  properties: os(e),
6585
6594
  pseudoElements: as(e)
6586
- }), Ul = "@arcgis/lumina:generateDocs";
6587
- function zl(e) {
6595
+ }), zl = "@arcgis/lumina:generateDocs";
6596
+ function ql(e) {
6588
6597
  return e._documentationFileNames.stencilLikeDocsJson !== void 0 && e.provideAssets([
6589
6598
  {
6590
6599
  type: "dynamic",
6591
- source: () => JSON.stringify(Cl(e), null, 2),
6600
+ source: () => JSON.stringify($l(e), null, 2),
6592
6601
  destination: u.join("../..", e._documentationFileNames.stencilLikeDocsJson)
6593
6602
  }
6594
6603
  ]), e._documentationFileNames.apiJson !== void 0 && e.provideAssets([
@@ -6598,7 +6607,7 @@ function zl(e) {
6598
6607
  destination: u.join("../..", e._documentationFileNames.apiJson)
6599
6608
  }
6600
6609
  ]), {
6601
- name: Ul,
6610
+ name: zl,
6602
6611
  async writeBundle() {
6603
6612
  if (e.isInStorybook)
6604
6613
  return;
@@ -6608,24 +6617,24 @@ function zl(e) {
6608
6617
  await es(a);
6609
6618
  const c = [];
6610
6619
  if (n !== void 0) {
6611
- const l = JSON.stringify(_l(e.apiJsonComponents), null, 2);
6620
+ const l = JSON.stringify(Hl(e.apiJsonComponents), null, 2);
6612
6621
  c.push(D(n, l));
6613
6622
  }
6614
6623
  if (s !== void 0) {
6615
- const l = JSON.stringify(Hl(e.apiJsonComponents), null, 2);
6624
+ const l = JSON.stringify(Ul(e.apiJsonComponents), null, 2);
6616
6625
  c.push(D(s, l));
6617
6626
  }
6618
6627
  if (r !== void 0) {
6619
- const l = Ml(e.apiJsonComponents, typeof t == "object" ? t : {});
6628
+ const l = Ol(e.apiJsonComponents, typeof t == "object" ? t : {});
6620
6629
  c.push(D(r, JSON.stringify(l, null, 2)));
6621
6630
  }
6622
6631
  await Promise.all(c);
6623
6632
  }
6624
6633
  };
6625
6634
  }
6626
- const ql = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6635
+ const Gl = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6627
6636
 
6628
- ${e.map(Gl).join(`
6637
+ ${e.map(Vl).join(`
6629
6638
 
6630
6639
  `)}
6631
6640
 
@@ -6637,7 +6646,7 @@ ${e.map(({ tagName: t, pascalCaseName: i }) => ` "${t}": Lumina${i};`).join
6637
6646
  }
6638
6647
  }
6639
6648
  }`;
6640
- function Gl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6649
+ function Vl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6641
6650
  const [s, r] = Qe(e, i);
6642
6651
  return [
6643
6652
  `interface Lumina${t} extends ${s}h.JSX.HTMLAttributes<HTML${t}Element> {
@@ -6650,7 +6659,7 @@ function Gl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6650
6659
  r
6651
6660
  ].join("");
6652
6661
  }
6653
- function Vl(e) {
6662
+ function Xl(e) {
6654
6663
  const t = ` interface IntrinsicElements extends PreactJsx.IntrinsicElements {
6655
6664
  ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join(`
6656
6665
  `)}
@@ -6658,7 +6667,7 @@ ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join
6658
6667
  return `import { JSX as PreactJsx } from "preact";
6659
6668
  import type { EventHandler } from "@arcgis/lumina";
6660
6669
 
6661
- ${e.map(Xl).join(`
6670
+ ${e.map(Ql).join(`
6662
6671
 
6663
6672
  `)}
6664
6673
 
@@ -6671,7 +6680,7 @@ ${t}
6671
6680
  }
6672
6681
  }`;
6673
6682
  }
6674
- function Xl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6683
+ function Ql({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6675
6684
  const [s, r] = Qe(e, i);
6676
6685
  return [
6677
6686
  `interface Preact${t} extends ${s}PreactJsx.HTMLAttributes<HTML${t}Element> {
@@ -6684,13 +6693,13 @@ function Xl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6684
6693
  r
6685
6694
  ].join("");
6686
6695
  }
6687
- function Ql(e) {
6696
+ function Zl(e) {
6688
6697
  const t = e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": React${i};`).join(`
6689
6698
  `);
6690
6699
  return `import type { HTMLProps } from 'react';
6691
6700
  import type { EventHandler } from "@arcgis/lumina";
6692
6701
 
6693
- ${e.map(Zl).join(`
6702
+ ${e.map(Yl).join(`
6694
6703
 
6695
6704
  `)}
6696
6705
 
@@ -6716,7 +6725,7 @@ ${t}
6716
6725
  }
6717
6726
  }`;
6718
6727
  }
6719
- function Zl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6728
+ function Yl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6720
6729
  const [s, r] = Qe(e, i);
6721
6730
  return [
6722
6731
  `interface React${t} extends ${s}HTMLProps<HTML${t}Element> {
@@ -6729,10 +6738,10 @@ function Zl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6729
6738
  r
6730
6739
  ].join("");
6731
6740
  }
6732
- const Yl = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6741
+ const ed = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6733
6742
  import type { EventHandler } from "@arcgis/lumina";
6734
6743
 
6735
- ${e.map(ed).join(`
6744
+ ${e.map(td).join(`
6736
6745
 
6737
6746
  `)}
6738
6747
 
@@ -6750,7 +6759,7 @@ declare module "@stencil/core/internal/stencil-public-runtime" {
6750
6759
  interface IntrinsicElements extends ExposedElements {}
6751
6760
  }
6752
6761
  }`;
6753
- function ed({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6762
+ function td({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6754
6763
  const [s, r] = Qe(e, i);
6755
6764
  return [
6756
6765
  `interface Stencil${t} extends ${s}StencilJsx.HTMLAttributes<HTML${t}Element> {
@@ -6763,16 +6772,16 @@ function ed({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6763
6772
  r
6764
6773
  ].join("");
6765
6774
  }
6766
- const td = (e, t, i) => [i, t, id(e), nd(e)].join(`
6775
+ const id = (e, t, i) => [i, t, nd(e), sd(e)].join(`
6767
6776
 
6768
- `), id = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6777
+ `), nd = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6769
6778
  ({ pascalCaseName: t }) => `export interface ${t}CustomEvent<T> extends CustomEvent<T> {
6770
6779
  detail: T;
6771
6780
  target: HTML${t}Element;
6772
6781
  currentTarget: HTML${t}Element;
6773
6782
  }`
6774
6783
  ).join(`
6775
- `), nd = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6784
+ `), sd = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6776
6785
 
6777
6786
  declare global {
6778
6787
  interface HTMLElementTagNameMap {
@@ -6780,12 +6789,12 @@ ${e.map(({ pascalCaseName: t, tagName: i }) => ` "${i}": HTML${t}Element;`).j
6780
6789
  `)}
6781
6790
  }
6782
6791
 
6783
- ${e.map(sd).join(`
6792
+ ${e.map(rd).join(`
6784
6793
  `).split(`
6785
6794
  `).map((t) => t.length > 0 ? ` ${t}` : t).join(`
6786
6795
  `)}
6787
6796
  }`;
6788
- function sd({ name: e, pascalCaseName: t, events: i = [] }) {
6797
+ function rd({ name: e, pascalCaseName: t, events: i = [] }) {
6789
6798
  const n = i.length > 0, s = `${t}CustomEvent`, r = `HTML${t}Element`;
6790
6799
  return [
6791
6800
  n ? `interface ${r}EventMap {
@@ -6804,7 +6813,7 @@ ${n ? ` addEventListener<K extends keyof ${r}EventMap>(type: K, listener: (this
6804
6813
  }`
6805
6814
  ].join("");
6806
6815
  }
6807
- function rd(e) {
6816
+ function od(e) {
6808
6817
  let t;
6809
6818
  return {
6810
6819
  name: "@arcgis/lumina:generateFrameworkTypes",
@@ -6812,11 +6821,11 @@ function rd(e) {
6812
6821
  generateBundle() {
6813
6822
  if (e.isInStorybook)
6814
6823
  return;
6815
- t = Ma(e);
6824
+ t = Oa(e);
6816
6825
  const i = u.join(e.dir.dist, "index.d.ts");
6817
6826
  e._declarationTextTransformers.push((n) => {
6818
6827
  const { filePath: s, content: r } = n;
6819
- return s === i ? { filePath: s, content: td(e.apiJsonComponents, r, t) } : n;
6828
+ return s === i ? { filePath: s, content: id(e.apiJsonComponents, r, t) } : n;
6820
6829
  });
6821
6830
  },
6822
6831
  async writeBundle() {
@@ -6826,10 +6835,10 @@ function rd(e) {
6826
6835
  await Z(i);
6827
6836
  const n = `/// <reference types="../index.d.ts" />
6828
6837
  ${t.replaceAll("./", "../")}`, s = Object.entries({
6829
- react: Ql(e.apiJsonComponents),
6830
- preact: Vl(e.apiJsonComponents),
6831
- stencil: Yl(e.apiJsonComponents),
6832
- lumina: ql(e.apiJsonComponents)
6838
+ react: Zl(e.apiJsonComponents),
6839
+ preact: Xl(e.apiJsonComponents),
6840
+ stencil: ed(e.apiJsonComponents),
6841
+ lumina: Gl(e.apiJsonComponents)
6833
6842
  }).map(
6834
6843
  async ([r, a]) => await D(u.join(i, `${r}.d.ts`), `${n}
6835
6844
  ${a}`)
@@ -6838,36 +6847,36 @@ ${a}`)
6838
6847
  }
6839
6848
  };
6840
6849
  }
6841
- function od(e) {
6850
+ function ad(e) {
6842
6851
  return {
6843
6852
  name: "@arcgis/lumina:buildWrappers",
6844
6853
  apply: () => e.viteCommand === "build" && !!e.options.build?.wrappers?.length,
6845
6854
  async writeBundle() {
6846
6855
  e.isInStorybook || await Promise.all(
6847
6856
  e.options.build?.wrappers?.map(async (t) => {
6848
- t.type === "react18" && await ld(e, t);
6857
+ t.type === "react18" && await dd(e, t);
6849
6858
  }) ?? []
6850
6859
  );
6851
6860
  }
6852
6861
  };
6853
6862
  }
6854
- const ad = "react", ji = "@lit/react", cd = `
6855
- import React from "${ad}";
6863
+ const cd = "react", ji = "@lit/react", ld = `
6864
+ import React from "${cd}";
6856
6865
  import { createComponent } from "${ji}";
6857
6866
  import type { EventName } from "${ji}";
6858
6867
  import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
6859
6868
 
6860
6869
  const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent) as typeof createComponent;
6861
6870
  `;
6862
- async function ld(e, t) {
6863
- const { name: i } = J(), n = [];
6871
+ async function dd(e, t) {
6872
+ const { name: i } = R(), n = [];
6864
6873
  for (const a of e.apiJson.modules)
6865
6874
  for (const c of a.declarations)
6866
- "customElement" in c && n.push(dd(c));
6867
- const s = [`/// <reference types="${i}" preserve="true" />`, cd, ...n].join(""), r = u.resolve(t.proxiesFile);
6875
+ "customElement" in c && n.push(pd(c));
6876
+ const s = [`/// <reference types="${i}" preserve="true" />`, ld, ...n].join(""), r = u.resolve(t.proxiesFile);
6868
6877
  await Z(u.dirname(r), { recursive: !0 }), await D(r, s);
6869
6878
  }
6870
- function dd(e) {
6879
+ function pd(e) {
6871
6880
  const t = e.events?.map(
6872
6881
  (i) => ` ${Ce(`on${Ts(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6873
6882
  ).join(`
@@ -6883,30 +6892,30 @@ ${t}
6883
6892
  );
6884
6893
  `;
6885
6894
  }
6886
- function kd(e = {}) {
6895
+ function Id(e = {}) {
6887
6896
  const t = new x(e), n = [
6888
6897
  t._plugin,
6889
- el(t),
6890
6898
  tl(t),
6899
+ il(t),
6900
+ Tl(t),
6901
+ Pr(t),
6902
+ _c(t),
6903
+ od(t),
6904
+ ql(t),
6905
+ vc(t),
6906
+ To(t),
6907
+ Gc(t),
6891
6908
  bl(t),
6892
- xr(t),
6893
- Bc(t),
6894
- rd(t),
6895
- zl(t),
6896
- hc(t),
6897
- bo(t),
6898
- qc(t),
6899
- wl(t),
6900
- vl(t),
6901
- al(t),
6909
+ Sl(t),
6910
+ cl(t),
6902
6911
  Rs(t),
6903
- Tc(t),
6904
- od(t),
6905
- Vc(t)
6912
+ Ec(t),
6913
+ ad(t),
6914
+ Xc(t)
6906
6915
  ].filter(j);
6907
6916
  return n.context = t, n;
6908
6917
  }
6909
- const Id = {
6918
+ const Ad = {
6910
6919
  initializeComponentDependencies: vn,
6911
6920
  updateLuminaTs: ns,
6912
6921
  propertyToAttributeMappings: _,
@@ -6921,7 +6930,7 @@ const Id = {
6921
6930
  };
6922
6931
  export {
6923
6932
  We as LuminaApiExtractor,
6924
- Id as exportsForCodemod,
6933
+ Ad as exportsForCodemod,
6925
6934
  Ge as inferCdnUrl,
6926
- kd as useLumina
6935
+ Id as useLumina
6927
6936
  };