@arcgis/lumina-compiler 4.34.0-next.29 → 4.34.0-next.30

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.
Files changed (2) hide show
  1. package/dist/index.js +176 -180
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { nodeExternals as ds } from "rollup-plugin-node-externals";
2
- import { stringToStartsWithGlob as Jt, path as u, toSystemPathSeparators as Y, retrievePackageJson as R, fetchPackageLocation as _e, asyncRetrievePackageJson as He, existsAsync as U, findPath as ps, toPosixPathSeparators as Le, isPosix as Ri, getCwd as Mi } from "@arcgis/components-build-utils";
2
+ import { stringToStartsWithGlob as Kt, path as u, toSystemPathSeparators as Y, retrievePackageJson as R, fetchPackageLocation as _e, asyncRetrievePackageJson as He, existsAsync as U, findPath as ps, toPosixPathSeparators as Le, isPosix as Ri, getCwd as Mi } from "@arcgis/components-build-utils";
3
3
  import us from "vite-plugin-dts";
4
4
  import o from "typescript";
5
5
  import { f as w, l as C } from "./logger-KpGU2b3R.js";
6
- import { getMemberName as X, apiMemberToSynthesizedComments as V, globalPackageIdentifier as Oi, setApiDocFromJsDoc as ue, ApiExtractor as ms, hasIgnoredModifier as fs, symbolToDocs as Kt, setDefaultFromInitializer as Wt, multipleJsDocTags as ys, findDecorator as Bt, isApiMethod as gs, isApiProperty as hs } from "@arcgis/api-extractor";
7
- import { isNotUndefined as j, mappedFind as ye, camelToKebab as bt, kebabToPascal as vs, uncapitalize as pt, identity as Ji, Deferred as Ss, getPreamble as bs, capitalize as ws } from "@arcgis/components-utils";
6
+ import { getMemberName as X, apiMemberToSynthesizedComments as V, globalPackageIdentifier as Oi, setApiDocFromJsDoc as ue, ApiExtractor as ms, hasIgnoredModifier as fs, symbolToDocs as Wt, setDefaultFromInitializer as Bt, multipleJsDocTags as ys, findDecorator as _t, isApiMethod as gs, isApiProperty as hs } from "@arcgis/api-extractor";
7
+ import { isNotUndefined as j, mappedFind as ye, camelToKebab as wt, kebabToPascal as vs, uncapitalize as ut, identity as Ji, Deferred as Ss, getPreamble as bs, capitalize as ws } from "@arcgis/components-utils";
8
8
  import { readdir as Ue, readFile as J, rm as Ts, mkdir as z, cp as Es, writeFile as F, copyFile as Cs } from "node:fs/promises";
9
- import { lazyMetaSubItemJoiner as $s, lazyMetaItemJoiner as Ye, lazyMetaGroupJoiner as Ps, propertyFlagAttribute as _t, propertyFlagReflect as xs, propertyFlagBoolean as ks, propertyFlagNumber as As, propertyFlagState as Is, propertyFlagReadOnly as Ls, propertyFlagNoAccessor as Fs } from "@arcgis/lumina/config";
9
+ import { lazyMetaSubItemJoiner as $s, lazyMetaItemJoiner as Ye, lazyMetaGroupJoiner as Ps, propertyFlagAttribute as Ht, propertyFlagReflect as xs, propertyFlagBoolean as ks, propertyFlagNumber as As, propertyFlagState as Is, propertyFlagReadOnly as Ls, propertyFlagNoAccessor as Fs } from "@arcgis/lumina/config";
10
10
  import { build as Ns } from "esbuild";
11
11
  import { glob as Ds } from "glob";
12
12
  import js from "mime-types";
@@ -26,9 +26,9 @@ function Ms(e) {
26
26
  // Externalize all @lit/ and @lit-labs/ packages
27
27
  /^@lit[-/]/u,
28
28
  /^lit$/u,
29
- ...Array.isArray(t) ? t.map(Jt) : []
29
+ ...Array.isArray(t) ? t.map(Kt) : []
30
30
  ],
31
- exclude: Array.isArray(i) ? i.map(Jt) : []
31
+ exclude: Array.isArray(i) ? i.map(Kt) : []
32
32
  }),
33
33
  configResolved() {
34
34
  e.isInStorybook && (r.resolveId = void 0);
@@ -36,7 +36,7 @@ function Ms(e) {
36
36
  };
37
37
  return r;
38
38
  }
39
- const wt = "customElement.js", Wi = "customElement.d.ts", Os = "playwright";
39
+ const Tt = "customElement.js", Wi = "customElement.d.ts", Os = "playwright";
40
40
  function Js(e, t, i) {
41
41
  const s = i.split(u.sep).slice(2);
42
42
  let r = t._componentPathMapping;
@@ -84,7 +84,7 @@ function Bi(e, t, i = ".d.ts") {
84
84
  const s = (i === "" ? t : t.slice(0, -i.length)).split(u.sep);
85
85
  return s.at(Bs) !== s.at(_s) ? t : u.join(
86
86
  s.slice(0, -1).join(u.sep),
87
- i === "" ? wt : Wi
87
+ i === "" ? Tt : Wi
88
88
  );
89
89
  }
90
90
  const Bs = -1, _s = -2, Hs = /["']\.\.?\/[^'"]+/gu, _i = (e, t, i, n) => e.replaceAll(Hs, (s) => {
@@ -104,7 +104,7 @@ function Us(e) {
104
104
  return `/// <reference types="../../index.d.ts" />
105
105
  ${e}`;
106
106
  }
107
- const Ht = "customElement", zs = (e, t) => {
107
+ const Ut = "customElement", zs = (e, t) => {
108
108
  const { filePath: i, content: n } = e;
109
109
  if (!i.startsWith(t.dir.distComponents))
110
110
  return e;
@@ -123,7 +123,7 @@ const Ht = "customElement", zs = (e, t) => {
123
123
  if (t.apiModule?.declarations.forEach((r) => {
124
124
  "customElement" in r && i.push(
125
125
  o.factory.createExpressionStatement(
126
- o.factory.createCallExpression(o.factory.createIdentifier(Ht), void 0, [
126
+ o.factory.createCallExpression(o.factory.createIdentifier(Ut), void 0, [
127
127
  o.factory.createStringLiteral(r.tagName),
128
128
  o.factory.createIdentifier(r.name)
129
129
  ])
@@ -141,7 +141,7 @@ const Ht = "customElement", zs = (e, t) => {
141
141
  !1,
142
142
  void 0,
143
143
  o.factory.createNamedImports([
144
- o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Ht))
144
+ o.factory.createImportSpecifier(!1, void 0, o.factory.createIdentifier(Ut))
145
145
  ])
146
146
  ),
147
147
  o.factory.createStringLiteral(n)
@@ -184,11 +184,11 @@ const Gs = (e) => (t, i) => (
184
184
  )
185
185
  ), Vs = (e, t) => t.isInStorybook ? !1 : e, Xs = (e, t) => (
186
186
  // Short-circuit quickly if file doesn't look like the one we want to exclude
187
- e.filePath.endsWith(Ut) && e.filePath === u.join(t.dir.dist, Ut) ? !1 : e
188
- ), Ut = "lumina.d.ts", Qs = (e, t) => {
187
+ e.filePath.endsWith(zt) && e.filePath === u.join(t.dir.dist, zt) ? !1 : e
188
+ ), zt = "lumina.d.ts", Qs = (e, t) => {
189
189
  const i = t.dir.dist, n = `${i}src/`;
190
190
  return e.filePath.startsWith(n) ? { ...e, filePath: `${i}${e.filePath.slice(n.length)}` } : !1;
191
- }, Tt = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Zs = (e) => Tt(e.filePath) || e.filePath.includes(".stories.") || e.filePath.includes(".story.") ? !1 : e, Ys = (e) => e.content.includes("__esri.") ? {
191
+ }, Et = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Zs = (e) => Et(e.filePath) || e.filePath.includes(".stories.") || e.filePath.includes(".story.") ? !1 : e, Ys = (e) => e.content.includes("__esri.") ? {
192
192
  filePath: e.filePath,
193
193
  content: `/// <reference types="@arcgis/core/interfaces.d.ts" />
194
194
  ${e.content}`
@@ -262,7 +262,7 @@ const or = (e, t) => o.factory.updateSourceFile(
262
262
  e.typeReferenceDirectives,
263
263
  e.hasNoDefaultLib,
264
264
  e.libReferenceDirectives
265
- ), ar = (e) => `${zt}${" ".repeat(e.length - zt.length - qt.length)}${qt}`, zt = "/*", qt = "*/", cr = (e) => e.statements.map(ur), lr = "@arcgis/lumina", dr = "LitElement", pr = "PublicLitElement", qi = "TargetedEvent";
265
+ ), ar = (e) => `${qt}${" ".repeat(e.length - qt.length - Gt.length)}${Gt}`, qt = "/*", Gt = "*/", cr = (e) => e.statements.map(ur), lr = "@arcgis/lumina", dr = "LitElement", pr = "PublicLitElement", qi = "TargetedEvent";
266
266
  function ur(e) {
267
267
  if (o.isImportDeclaration(e) && o.isStringLiteral(e.moduleSpecifier) && e.moduleSpecifier.text === lr && e.importClause?.namedBindings && o.isNamedImports(e.importClause.namedBindings)) {
268
268
  const t = e.importClause.namedBindings.elements.findIndex(
@@ -339,7 +339,7 @@ function gr(e, t, i) {
339
339
  if (r === void 0)
340
340
  return e;
341
341
  const a = [], c = /* @__PURE__ */ new Set(), l = [], d = [];
342
- ut = void 0;
342
+ mt = void 0;
343
343
  for (let y = 0; y < n.members.length; y++) {
344
344
  const g = n.members[y], h = hr(g, r, l, c, t);
345
345
  h === void 0 ? a.push(g) : Array.isArray(h) ? d.push(...h) : (o.setEmitFlags(h, o.EmitFlags.NoComments), d.push(h));
@@ -377,7 +377,7 @@ function gr(e, t, i) {
377
377
  } else
378
378
  return e;
379
379
  }
380
- let ut;
380
+ let mt;
381
381
  function hr(e, t, i, n, s) {
382
382
  const r = X(e.name);
383
383
  if (r === void 0)
@@ -385,15 +385,15 @@ function hr(e, t, i, n, s) {
385
385
  const a = t.members.find((l) => l.name === r);
386
386
  if (a?.privacy !== void 0)
387
387
  return;
388
- const c = ut;
389
- if (ut = r, a === void 0) {
388
+ const c = mt;
389
+ if (mt = r, a === void 0) {
390
390
  if (o.isPropertyDeclaration(e)) {
391
391
  const l = t.events?.find((p) => p.name === r);
392
392
  if (l === void 0)
393
393
  return;
394
394
  const d = o.factory.updatePropertyDeclaration(
395
395
  e,
396
- Xt(e.modifiers),
396
+ Qt(e.modifiers),
397
397
  e.name,
398
398
  void 0,
399
399
  br(e.type, s),
@@ -407,19 +407,19 @@ function hr(e, t, i, n, s) {
407
407
  if (a.readonly === !0) {
408
408
  const l = o.factory.updatePropertyDeclaration(
409
409
  e,
410
- Xt(e.modifiers),
410
+ Qt(e.modifiers),
411
411
  e.name,
412
412
  void 0,
413
- Vt(n, e.type, s),
413
+ Xt(n, e.type, s),
414
414
  e.initializer
415
415
  );
416
416
  return o.setSyntheticLeadingComments(l, V(a)), l;
417
417
  } else if (a.getterType !== void 0) {
418
- const l = Gt.exec(a.getterType.text)?.groups;
418
+ const l = Vt.exec(a.getterType.text)?.groups;
419
419
  if (l === void 0)
420
420
  return C.error(
421
421
  "@arcgis/lumina:transformComponentMembers",
422
- `Expected bound accessor getter type to match ${Gt}, but got ${a.getterType.text}`,
422
+ `Expected bound accessor getter type to match ${Vt}, but got ${a.getterType.text}`,
423
423
  s.fileName
424
424
  ), e;
425
425
  n.add(l.accessor);
@@ -457,7 +457,7 @@ function hr(e, t, i, n, s) {
457
457
  )
458
458
  ];
459
459
  } else
460
- return Vt(n, e.type, s), o.setSyntheticLeadingComments(e, V(a)), e;
460
+ return Xt(n, e.type, s), o.setSyntheticLeadingComments(e, V(a)), e;
461
461
  else if (o.isGetAccessor(e) || o.isSetAccessor(e)) {
462
462
  if (o.isSetAccessor(e)) {
463
463
  if (a.readonly === !0)
@@ -473,8 +473,8 @@ function hr(e, t, i, n, s) {
473
473
  } else if (o.isMethodDeclaration(e))
474
474
  return o.setSyntheticLeadingComments(e, V(a)), e;
475
475
  }
476
- const Gt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
477
- function Vt(e, t, i) {
476
+ const Vt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
477
+ function Xt(e, t, i) {
478
478
  const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(vr) ?? [];
479
479
  for (const r of s)
480
480
  e.add(r);
@@ -525,7 +525,7 @@ function Sr(e) {
525
525
  }
526
526
  return e;
527
527
  }
528
- function Xt(e) {
528
+ function Qt(e) {
529
529
  return e?.some((i) => i.kind === o.SyntaxKind.ReadonlyKeyword) ? e : [o.factory.createModifier(o.SyntaxKind.ReadonlyKeyword), ...e ?? []];
530
530
  }
531
531
  function ke(e) {
@@ -549,12 +549,12 @@ function br(e, t) {
549
549
  t.fileName
550
550
  ), e);
551
551
  }
552
- const wr = [cr, yr], Qt = "@arcgis/lumina:componentDtsTransformer";
552
+ const wr = [cr, yr], Zt = "@arcgis/lumina:componentDtsTransformer";
553
553
  function Tr(e) {
554
554
  let t;
555
555
  const i = Er(e);
556
556
  return {
557
- name: Qt,
557
+ name: Zt,
558
558
  supports(n) {
559
559
  return t ??= new Set(e.componentFiles), n.endsWith(".tsx") && t.has(n);
560
560
  },
@@ -563,7 +563,7 @@ function Tr(e) {
563
563
  return [];
564
564
  const s = e.typeScriptProgram.getSourceFile(n);
565
565
  if (s === void 0)
566
- throw Error(w(Qt, `Could not find source file: ${Y(n)}`));
566
+ throw Error(w(Zt, `Could not find source file: ${Y(n)}`));
567
567
  const r = [];
568
568
  return e.typeScriptProgram.emit(
569
569
  s,
@@ -673,7 +673,7 @@ function xr(e) {
673
673
  }
674
674
  };
675
675
  }
676
- const kr = "Fragment", et = "DynamicHtmlTag", tt = "DynamicSvgTag", Re = Symbol("dynamic html tag name"), mt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
676
+ const kr = "Fragment", et = "DynamicHtmlTag", tt = "DynamicSvgTag", Re = Symbol("dynamic html tag name"), ft = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
677
677
  /**
678
678
  * There is a "className" property. However, in JSX typings we use "class"
679
679
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -713,7 +713,7 @@ const kr = "Fragment", et = "DynamicHtmlTag", tt = "DynamicSvgTag", Re = Symbol(
713
713
  "exportParts",
714
714
  "hreflang",
715
715
  "media"
716
- ]), ft = {
716
+ ]), yt = {
717
717
  button: /* @__PURE__ */ new Set(["popoverTarget"]),
718
718
  input: /* @__PURE__ */ new Set(["list", "capture"]),
719
719
  iframe: /* @__PURE__ */ new Set(["sandbox"]),
@@ -1545,7 +1545,7 @@ function Qi(e) {
1545
1545
  e.stringifiedNonReflected
1546
1546
  ));
1547
1547
  }
1548
- const Zt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set([
1548
+ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set([
1549
1549
  "abort",
1550
1550
  "animationCancel",
1551
1551
  "animationEnd",
@@ -1661,7 +1661,7 @@ const Zt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1661
1661
  "source",
1662
1662
  "track",
1663
1663
  "wbr"
1664
- ]), Et = /* @__PURE__ */ new Set([
1664
+ ]), Ct = /* @__PURE__ */ new Set([
1665
1665
  "animate",
1666
1666
  "animateMotion",
1667
1667
  "animateTransform",
@@ -1720,7 +1720,7 @@ const Zt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1720
1720
  "tspan",
1721
1721
  "use",
1722
1722
  "view"
1723
- ]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), Ct = /* @__PURE__ */ new Set([
1723
+ ]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), $t = /* @__PURE__ */ new Set([
1724
1724
  "annotation-xml",
1725
1725
  "annotation",
1726
1726
  "maction",
@@ -1779,9 +1779,9 @@ const Nr = (e) => jr(e).replaceAll("`", "\\`"), Dr = /\$\{/gu, jr = (e) => e.rep
1779
1779
  "&": "&amp;",
1780
1780
  "<": "&lt;",
1781
1781
  ">": "&gt;"
1782
- }, Yi = (e) => e.replace(Or, (t) => Jr[t]), $t = (e) => typeof e == "string" && e.includes("-") && !Lr.has(e), Kr = async (e) => Object.fromEntries(
1782
+ }, Yi = (e) => e.replace(Or, (t) => Jr[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Lr.has(e), Kr = async (e) => Object.fromEntries(
1783
1783
  (await e.componentFilesPromise).map((t) => [en(t), t])
1784
- ), en = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", wt.slice(0, -3))), Pt = async (e, t, i = t) => await Ue(i, { recursive: !0 }).catch((n) => {
1784
+ ), en = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Tt.slice(0, -3))), xt = async (e, t, i = t) => await Ue(i, { recursive: !0 }).catch((n) => {
1785
1785
  if (String(n).includes("ENOENT"))
1786
1786
  return C.error("@arcgis/lumina", `Unable to find the ${i} directory (cwd: ${process.cwd()})`), [];
1787
1787
  throw n;
@@ -1802,7 +1802,7 @@ function he(e, t) {
1802
1802
  const [i, n] = e.slice(0, -4).split(u.sep).slice(Wr);
1803
1803
  return i === n;
1804
1804
  }
1805
- const Wr = -2, Yt = 5, ei = 1, ti = 1, ii = 3, ni = 4, ze = o;
1805
+ const Wr = -2, ei = 5, ti = 1, ii = 1, ni = 3, si = 4, ze = o;
1806
1806
  Br(ze.createSourceMapGenerator);
1807
1807
  _r(ze.createTextWriter);
1808
1808
  Hr(ze.getNewLineCharacter);
@@ -1812,9 +1812,9 @@ function Br(e) {
1812
1812
  throw new Error(
1813
1813
  "Failed to find ts.createSourceMapGenerator() function. Lumina needs to be updated to support the new TypeScript version"
1814
1814
  );
1815
- if (e.length !== Yt)
1815
+ if (e.length !== ei)
1816
1816
  throw new Error(
1817
- `ts.createSourceMapGenerator() signature changed. Expected ${Yt} arguments. Lumina needs to be updated to support the new TypeScript version`
1817
+ `ts.createSourceMapGenerator() signature changed. Expected ${ei} arguments. Lumina needs to be updated to support the new TypeScript version`
1818
1818
  );
1819
1819
  }
1820
1820
  function _r(e) {
@@ -1822,9 +1822,9 @@ function _r(e) {
1822
1822
  throw new Error(
1823
1823
  "Failed to find ts.createTextWriter() function. Lumina needs to be updated to support the new TypeScript version"
1824
1824
  );
1825
- if (e.length !== ei)
1825
+ if (e.length !== ti)
1826
1826
  throw new Error(
1827
- `ts.createTextWriter() signature changed. Expected ${ei} arguments. Lumina needs to be updated to support the new TypeScript version`
1827
+ `ts.createTextWriter() signature changed. Expected ${ti} arguments. Lumina needs to be updated to support the new TypeScript version`
1828
1828
  );
1829
1829
  }
1830
1830
  function Hr(e) {
@@ -1832,9 +1832,9 @@ function Hr(e) {
1832
1832
  throw new Error(
1833
1833
  "Failed to find ts.getNewLineCharacter() function. Lumina needs to be updated to support the new TypeScript version"
1834
1834
  );
1835
- if (e.length !== ti)
1835
+ if (e.length !== ii)
1836
1836
  throw new Error(
1837
- `ts.getNewLineCharacter() signature changed. Expected ${ti} argument. Lumina needs to be updated to support the new TypeScript version`
1837
+ `ts.getNewLineCharacter() signature changed. Expected ${ii} argument. Lumina needs to be updated to support the new TypeScript version`
1838
1838
  );
1839
1839
  }
1840
1840
  function Ur(e) {
@@ -1842,9 +1842,9 @@ function Ur(e) {
1842
1842
  throw new Error(
1843
1843
  "Failed to find ts.Printer.writeFile() function. Lumina needs to be updated to support the new TypeScript version"
1844
1844
  );
1845
- if (e.length !== ii)
1845
+ if (e.length !== ni)
1846
1846
  throw new Error(
1847
- `ts.Printer.writeFile() signature changed. Expected ${ii} arguments. Lumina needs to be updated to support the new TypeScript version`
1847
+ `ts.Printer.writeFile() signature changed. Expected ${ni} arguments. Lumina needs to be updated to support the new TypeScript version`
1848
1848
  );
1849
1849
  }
1850
1850
  function zr(e) {
@@ -1852,17 +1852,17 @@ function zr(e) {
1852
1852
  throw new Error(
1853
1853
  "Failed to find ts.Printer.writeNode() function. Lumina needs to be updated to support the new TypeScript version"
1854
1854
  );
1855
- if (e.length !== ni)
1855
+ if (e.length !== si)
1856
1856
  throw new Error(
1857
- `ts.Printer.writeNode() signature changed. Expected ${ni} arguments. Lumina needs to be updated to support the new TypeScript version`
1857
+ `ts.Printer.writeNode() signature changed. Expected ${si} arguments. Lumina needs to be updated to support the new TypeScript version`
1858
1858
  );
1859
1859
  }
1860
1860
  function tn(e) {
1861
1861
  const t = me.createPrinter(e);
1862
1862
  return Ur(t.writeFile), zr(t.writeNode), t;
1863
1863
  }
1864
- function si(e) {
1865
- const t = o.isUnionTypeNode(e) ? e.types.map(ri) : [ri(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1864
+ function ri(e) {
1865
+ const t = o.isUnionTypeNode(e) ? e.types.map(oi) : [oi(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1866
1866
  (n || s) && i.add("boolean");
1867
1867
  let r = Array.from(i).sort();
1868
1868
  if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > qr))
@@ -1902,8 +1902,8 @@ function Zr(e, t) {
1902
1902
  }
1903
1903
  const Yr = /"[^"]+"|'[^"]+'|\w+/gu;
1904
1904
  function Me(e, t, i, n, s = !1) {
1905
- let { typeNode: r, references: a } = ai(e, t, i, n), c = si(r);
1906
- c === void 0 && ({ typeNode: r, references: a } = ai(e, t, i, n, !1), c = si(r) ?? []);
1905
+ let { typeNode: r, references: a } = ci(e, t, i, n), c = ri(r);
1906
+ c === void 0 && ({ typeNode: r, references: a } = ci(e, t, i, n, !1), c = ri(r) ?? []);
1907
1907
  const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = Vr(l), m = Zr(a, d);
1908
1908
  return {
1909
1909
  text: d,
@@ -1911,7 +1911,7 @@ function Me(e, t, i, n, s = !1) {
1911
1911
  values: p
1912
1912
  };
1913
1913
  }
1914
- function ri(e) {
1914
+ function oi(e) {
1915
1915
  eo.writeNode(o.EmitHint.Unspecified, e, void 0, it);
1916
1916
  const t = it.getText();
1917
1917
  return it.clear(), t;
@@ -1921,15 +1921,15 @@ const eo = tn({ removeComments: !0 }), it = me.createTextWriter(`
1921
1921
  function no(e, t, i, n = !0) {
1922
1922
  const s = /* @__PURE__ */ new Map();
1923
1923
  se(t, s, i, n);
1924
- const r = t.flags & o.TypeFlags.Union ? t.types.every(oi) : oi(t), a = e.typeToTypeNode(
1924
+ const r = t.flags & o.TypeFlags.Union ? t.types.every(ai) : ai(t), a = e.typeToTypeNode(
1925
1925
  t,
1926
1926
  void 0,
1927
1927
  io & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1928
1928
  );
1929
1929
  return s.forEach(so), a === void 0 ? (C.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1930
1930
  }
1931
- const oi = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1932
- function ai(e, t, i, n, s = !0) {
1931
+ const ai = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1932
+ function ci(e, t, i, n, s = !0) {
1933
1933
  const r = [], a = /* @__PURE__ */ new Set();
1934
1934
  function c(d, p) {
1935
1935
  const m = d.aliasSymbol ?? d.symbol;
@@ -2020,7 +2020,7 @@ function ro(e, t, i, n) {
2020
2020
  name: t,
2021
2021
  package: r,
2022
2022
  module: a.length > 0 ? a : void 0,
2023
- viewUrl: r === "@arcgis/core" && a === "interfaces.d.ts" ? ci(e, s[0], "core") : r === "typescript" ? ci(e, s[0], "typescript") : void 0
2023
+ viewUrl: r === "@arcgis/core" && a === "interfaces.d.ts" ? li(e, s[0], "core") : r === "typescript" ? li(e, s[0], "typescript") : void 0
2024
2024
  } : {
2025
2025
  name: t,
2026
2026
  package: void 0,
@@ -2052,24 +2052,24 @@ function on(e) {
2052
2052
  return { packageName: s, moduleName: r };
2053
2053
  }
2054
2054
  const lo = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2055
- function ci(e, t, i) {
2055
+ function li(e, t, i) {
2056
2056
  const n = e.declarations;
2057
2057
  if (n !== void 0)
2058
2058
  for (const s of n) {
2059
- const r = li(s, t, i);
2059
+ const r = di(s, t, i);
2060
2060
  if (r !== void 0)
2061
2061
  return r;
2062
2062
  if (!("members" in s))
2063
2063
  continue;
2064
2064
  const a = s.members;
2065
2065
  for (const c of a) {
2066
- const l = li(c, t, i);
2066
+ const l = di(c, t, i);
2067
2067
  if (l !== void 0)
2068
2068
  return po(l);
2069
2069
  }
2070
2070
  }
2071
2071
  }
2072
- function li(e, t, i) {
2072
+ function di(e, t, i) {
2073
2073
  const n = e.jsDoc?.[0];
2074
2074
  if (n !== void 0)
2075
2075
  return ye([n, ...n.tags ?? []], ({ comment: s }) => {
@@ -2307,7 +2307,7 @@ function jo(e) {
2307
2307
  }
2308
2308
  function un(e) {
2309
2309
  const t = e.members.filter((r) => r.kind === "field").map((r) => {
2310
- const a = typeof r.attribute == "string", c = a && r.attribute !== bt(r.name);
2310
+ const a = typeof r.attribute == "string", c = a && r.attribute !== wt(r.name);
2311
2311
  return a && !c ? [r.name] : [r.name, c ? String(r.attribute) : ""];
2312
2312
  }), i = e.members.filter(
2313
2313
  (r) => r.kind === "method" && /**
@@ -2423,14 +2423,14 @@ function re(e, t) {
2423
2423
  )
2424
2424
  );
2425
2425
  }
2426
- const xt = "@arcgis/lumina-compiler";
2426
+ const kt = "@arcgis/lumina-compiler";
2427
2427
  class Je extends ms {
2428
2428
  constructor(t, i) {
2429
2429
  super({ isFullApiExtraction: t.isFullApiExtraction, cwd: t.dir.root }), this.context = t, this.isPathOnly = i, this.localCssImports = void 0, this.localDeclaredComponents = void 0, this.indexedComponents = /* @__PURE__ */ new Map(), this.apiComponent = void 0, this.pairedSetter = void 0, this.copyDocDefinitions = void 0, this._resolvedInheritance = /* @__PURE__ */ new Map(), this.copyDocDefinitions = t.options.documentation?.copyDefinitions;
2430
2430
  }
2431
2431
  extract(t) {
2432
2432
  const i = super.extract(t);
2433
- return i.compiler.name = xt, i;
2433
+ return i.compiler.name = kt, i;
2434
2434
  }
2435
2435
  extractModules(t) {
2436
2436
  const i = super.extractModules(t);
@@ -2520,7 +2520,7 @@ class Je extends ms {
2520
2520
  this.localCssImports = void 0;
2521
2521
  }
2522
2522
  ue(t.name, this.context.typeScriptTypeChecker, s);
2523
- const c = pt(s.name);
2523
+ const c = ut(s.name);
2524
2524
  s.members.push({
2525
2525
  kind: "method",
2526
2526
  name: "componentOnReady",
@@ -2546,11 +2546,10 @@ class Je extends ms {
2546
2546
  {
2547
2547
  name: "example",
2548
2548
  text: `\`\`\`js
2549
- const ${c} = document.createElement("${s.tagName}");
2549
+ const ${c} = document.querySelector("${s.tagName}");
2550
2550
  document.body.append(${c});
2551
- ${c}.componentOnReady().then(() => {
2552
- console.log("${s.tagName} is ready to go!");
2553
- });
2551
+ await ${c}.componentOnReady();
2552
+ console.log("${s.tagName} is ready to go!");
2554
2553
  \`\`\``
2555
2554
  }
2556
2555
  ]
@@ -2612,7 +2611,7 @@ ${c}.componentOnReady().then(() => {
2612
2611
  default: void 0,
2613
2612
  deprecated: void 0,
2614
2613
  readonly: c || (s ? t.modifiers?.some((d) => d.kind === o.SyntaxKind.ReadonlyKeyword) : o.isGetAccessor(t) && this.pairedSetter === void 0) ? !0 : void 0,
2615
- attribute: r === !1 ? void 0 : typeof r == "string" ? r : bt(i),
2614
+ attribute: r === !1 ? void 0 : typeof r == "string" ? r : wt(i),
2616
2615
  reflects: a || void 0,
2617
2616
  docsTags: void 0,
2618
2617
  getterType: void 0,
@@ -2633,11 +2632,11 @@ ${c}.componentOnReady().then(() => {
2633
2632
  * When doing full API extraction, extract additional details for a field.
2634
2633
  */
2635
2634
  extractComponentFieldDetails(t, i) {
2636
- const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 : Kt(s, r), c = new Set(a?.docsTags.map((h) => h.name) ?? []);
2635
+ const n = i.readonly === !0, s = this.context.typeScriptTypeChecker, r = s.getSymbolAtLocation(t.name), a = r === void 0 ? void 0 : Wt(s, r), c = new Set(a?.docsTags.map((h) => h.name) ?? []);
2637
2636
  ue(t.name, this.context.typeScriptTypeChecker, i, a);
2638
2637
  let l = !n && i.readonly === !0;
2639
2638
  const d = this.pairedSetter ?? t, p = i.default;
2640
- Wt(t, i, this.file);
2639
+ Bt(t, i, this.file);
2641
2640
  const m = p === void 0 && i.default === "true", f = i.docsTags?.some((h) => h.name === "required") ?? !1;
2642
2641
  i.type = // Messages overrides type can be verbose, so we display a simplified type
2643
2642
  // in the documentation. The full type is still present in the .d.ts files.
@@ -2648,7 +2647,7 @@ ${c}.componentOnReady().then(() => {
2648
2647
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || y) {
2649
2648
  const h = t.initializer, v = s.getSymbolAtLocation(h), S = v !== void 0 && ((v.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(v) : v, T = S?.getDeclarations() ?? [];
2650
2649
  if (S !== void 0) {
2651
- const $ = Kt(s, S);
2650
+ const $ = Wt(s, S);
2652
2651
  if ($.docsTags.length > 0) {
2653
2652
  $.docsTags = $.docsTags.filter(
2654
2653
  (E) => !c.has(E.name) || ys.has(E.name)
@@ -2665,7 +2664,7 @@ ${c}.componentOnReady().then(() => {
2665
2664
  if (x ??= o.isGetAccessor($) ? $ : void 0, L ??= o.isSetAccessor($) ? $ : void 0, !("initializer" in $))
2666
2665
  return;
2667
2666
  const b = $;
2668
- l ||= b.modifiers?.some((E) => E.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, Wt(b, i, b.getSourceFile());
2667
+ l ||= b.modifiers?.some((E) => E.kind === o.SyntaxKind.ReadonlyKeyword) ?? !1, Bt(b, i, b.getSourceFile());
2669
2668
  }), y && x !== void 0 && L !== void 0 && x.type?.getText() !== L.parameters[0]?.type?.getText() && (i.getterType = { text: `typeof ${h.getText(this.file)}` });
2670
2669
  }
2671
2670
  if (l && (i.readonly = !0, n || (i.docsOnlyReadonly = !0)), i.type.values && i.type.values.length > 0 && i.type.values?.every((h) => h.type === "boolean") && (i.default ? m && this.context.viteCommand === "build" && i.deprecated === void 0 && (Je.loggedBooleanWarning || this.context.logLintWarning(
@@ -2683,11 +2682,11 @@ ${c}.componentOnReady().then(() => {
2683
2682
  * Find the properties given to the `@property()` decorator.
2684
2683
  */
2685
2684
  findPropertyOptions(t) {
2686
- const i = Bt(t, "property");
2685
+ const i = _t(t, "property");
2687
2686
  return i === void 0 ? void 0 : i.arguments?.find(o.isObjectLiteralExpression)?.properties ?? [];
2688
2687
  }
2689
2688
  extractComponentMethod(t, i) {
2690
- if (Bt(t, "method") === void 0)
2689
+ if (_t(t, "method") === void 0)
2691
2690
  return;
2692
2691
  const n = {
2693
2692
  kind: "method",
@@ -2801,7 +2800,7 @@ const le = {
2801
2800
  package: "@arcgis/lumina"
2802
2801
  }, nt = (e, t) => e.name.localeCompare(t.name);
2803
2802
  async function _o(e, t) {
2804
- t || (e.componentFilesPromise = Pt(e, e.dir.srcComponents));
2803
+ t || (e.componentFilesPromise = xt(e, e.dir.srcComponents));
2805
2804
  const i = await e.componentFilesPromise, n = await Yo(e, i);
2806
2805
  await e.componentStoriesPromise, e._componentPathMapping = {}, e._localDefinedComponents = void 0;
2807
2806
  const s = mn(n, e, !1);
@@ -2896,19 +2895,16 @@ function Ie(e, t, i) {
2896
2895
  0
2897
2896
  ), e.text = e.text.replaceAll(
2898
2897
  Zo,
2899
- (n, s) => kt(t.get(s)) ?? n
2898
+ (n, s) => At(t.get(s)) ?? n
2900
2899
  ), e.values?.forEach(Go, t));
2901
2900
  }
2902
2901
  function O(e, t, i) {
2903
- if (e.description && (e.description = e.description.replaceAll(di, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
2902
+ if (e.description && (e.description = e.description.replaceAll(st, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
2904
2903
  for (const n of e.docsTags)
2905
- n.text && (n.text = n.text.replaceAll(di, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2906
- typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(
2907
- i.alternativeDocumentationUrl,
2908
- i.normalizedDocumentationUrl
2909
- ));
2904
+ n.text && (n.text = n.text.replaceAll(st, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2905
+ typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(st, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2910
2906
  }
2911
- const di = /\{@link ([^}]+)\}/gu, zo = (e, t) => (i, n) => {
2907
+ const st = /\{@link ([^}]+)\}/gu, zo = (e, t) => (i, n) => {
2912
2908
  let s = n.indexOf(" ");
2913
2909
  s === -1 && (s = n.length);
2914
2910
  const r = n.slice(0, s), a = n.slice(s + 1);
@@ -2944,7 +2940,7 @@ function qo(e, t, i, n) {
2944
2940
  const s = t.get(e.name);
2945
2941
  if (s !== void 0) {
2946
2942
  const r = e.name.length;
2947
- e.name = kt(s);
2943
+ e.name = At(s);
2948
2944
  const a = e.name.length - r - pi;
2949
2945
  e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - Qo;
2950
2946
  }
@@ -2952,9 +2948,9 @@ function qo(e, t, i, n) {
2952
2948
  return n;
2953
2949
  }
2954
2950
  function Go(e) {
2955
- e.type.startsWith("ToElement<") && (e.type = kt(this.get(e.type.slice(10, -1))) ?? e.type);
2951
+ e.type.startsWith("ToElement<") && (e.type = At(this.get(e.type.slice(10, -1))) ?? e.type);
2956
2952
  }
2957
- const kt = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Vo = "ToElement<", pi = Vo.length, Xo = ">", Qo = Xo.length, Zo = /ToElement<(\w+)>/gu;
2953
+ const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Vo = "ToElement<", pi = Vo.length, Xo = ">", Qo = Xo.length, Zo = /ToElement<(\w+)>/gu;
2958
2954
  async function Yo(e, t) {
2959
2955
  if (e.viteCommand === "serve" && (Object.hasOwn(e, "typeScriptHost") || (e.typeScriptHost = o.createCompilerHost(e.typeScriptConfig, !1))), e.typeScriptProgram !== void 0) {
2960
2956
  const i = e.typeScriptProgram.getSourceFiles(), n = new Set(t);
@@ -2971,30 +2967,30 @@ async function yn(e) {
2971
2967
  return ve ??= ta(e), await ve;
2972
2968
  }
2973
2969
  function ea() {
2974
- if (yt === void 0)
2970
+ if (gt === void 0)
2975
2971
  throw Error(
2976
2972
  w(
2977
2973
  "@arcgis/lumina:retrieveComponentDependencies",
2978
2974
  "Component dependencies have not yet been initialized. Await componentDependenciesPromise promise first."
2979
2975
  )
2980
2976
  );
2981
- return yt;
2977
+ return gt;
2982
2978
  }
2983
2979
  function gn() {
2984
- if (gt === void 0)
2980
+ if (ht === void 0)
2985
2981
  throw Error(
2986
2982
  w(
2987
2983
  "@arcgis/lumina:retrieveFlatComponentDependencies",
2988
2984
  "Component dependencies have not yet been initialized. Await componentDependenciesPromise promise first."
2989
2985
  )
2990
2986
  );
2991
- return gt;
2987
+ return ht;
2992
2988
  }
2993
2989
  async function ta(e) {
2994
2990
  const t = R(e), i = t.dependencies ?? {}, n = t.peerDependencies ?? {}, r = (await Promise.all(
2995
2991
  [...Object.keys(i), ...Object.keys(n)].filter((a) => !ia.has(a)).flatMap(async (a) => await hn(a, e))
2996
2992
  )).filter(j);
2997
- return yt ??= r, gt = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
2993
+ return gt ??= r, ht = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
2998
2994
  }
2999
2995
  const ia = /* @__PURE__ */ new Set([
3000
2996
  "@arcgis/arcade-languageservice",
@@ -3032,7 +3028,7 @@ const ia = /* @__PURE__ */ new Set([
3032
3028
  "vscode-languageserver-textdocument",
3033
3029
  "vscode-languageserver-types"
3034
3030
  ]);
3035
- let yt, gt, ve;
3031
+ let gt, ht, ve;
3036
3032
  async function hn(e, t) {
3037
3033
  const i = await _e(e, t), n = await He(i), s = "exports" in n, r = ca.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3038
3034
  if (a ? await U(c) : !1) {
@@ -3094,7 +3090,7 @@ function vn(e, t) {
3094
3090
  }
3095
3091
  return i;
3096
3092
  }
3097
- const sa = (e) => e.compiler?.name === xt, ra = (e, t) => Object.fromEntries(
3093
+ const sa = (e) => e.compiler?.name === kt, ra = (e, t) => Object.fromEntries(
3098
3094
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
3099
3095
  (i) => [
3100
3096
  i.name,
@@ -3135,7 +3131,7 @@ const sa = (e) => e.compiler?.name === xt, ra = (e, t) => Object.fromEntries(
3135
3131
  }
3136
3132
  ];
3137
3133
  })
3138
- ), ca = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, la = (e) => e.startsWith("/") ? e : `/${e}`, At = (e, t) => `${e}@fs${la(t)}`;
3134
+ ), ca = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, la = (e) => e.startsWith("/") ? e : `/${e}`, It = (e, t) => `${e}@fs${la(t)}`;
3139
3135
  function qe(e = R(), t = !1, i = e.name === "@esri/calcite-components") {
3140
3136
  const n = e.version.includes("next"), s = e.name === "@esri/calcite-components";
3141
3137
  if (s && n)
@@ -3239,7 +3235,7 @@ const ha = /* @__PURE__ */ new Set([
3239
3235
  property(e, t, i, n) {
3240
3236
  const s = ba(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3241
3237
  if (a) {
3242
- const f = rt(t);
3238
+ const f = ot(t);
3243
3239
  if (f === !0)
3244
3240
  return [s.name];
3245
3241
  if (f === !1)
@@ -3261,7 +3257,7 @@ const ha = /* @__PURE__ */ new Set([
3261
3257
  return [`.${i}`, ...c];
3262
3258
  },
3263
3259
  attribute(e, t, i) {
3264
- const n = t === void 0 || rt(t);
3260
+ const n = t === void 0 || ot(t);
3265
3261
  if (n === !0)
3266
3262
  return [i];
3267
3263
  if (n === !1)
@@ -3270,7 +3266,7 @@ const ha = /* @__PURE__ */ new Set([
3270
3266
  return [i, ...a];
3271
3267
  },
3272
3268
  booleanAttribute(e, t, i) {
3273
- const n = t === void 0 || rt(t);
3269
+ const n = t === void 0 || ot(t);
3274
3270
  return n === !0 ? [i] : n === !1 ? [] : [`?${i}`, ...Ne(e, t, !1)];
3275
3271
  },
3276
3272
  event(e, t, i) {
@@ -3278,8 +3274,8 @@ const ha = /* @__PURE__ */ new Set([
3278
3274
  throw new Error(
3279
3275
  `Event prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3280
3276
  );
3281
- const n = i.slice(2), s = pt(n);
3282
- return [`@${Zi.has(s) ? n.toLowerCase() : pt(n)}=`, ...Ft(e, t, void 0)];
3277
+ const n = i.slice(2), s = ut(n);
3278
+ return [`@${Zi.has(s) ? n.toLowerCase() : ut(n)}=`, ...Nt(e, t, void 0)];
3283
3279
  },
3284
3280
  directives(e, t) {
3285
3281
  if (t === void 0 || !o.isJsxExpression(t))
@@ -3313,11 +3309,11 @@ const ha = /* @__PURE__ */ new Set([
3313
3309
  },
3314
3310
  class: yi,
3315
3311
  style: yi,
3316
- key: (e, t) => [It(t, e.sourceFile)],
3312
+ key: (e, t) => [Lt(t, e.sourceFile)],
3317
3313
  deferLoad(e, t, i, n) {
3318
3314
  if (typeof n != "string")
3319
3315
  throw Error("deferLoad prop is not currently supported on dynamic tag names.");
3320
- if (!$t(n))
3316
+ if (!Pt(n))
3321
3317
  throw Error(`deferLoad prop is only supported on custom elements. Found ${String(n)}`);
3322
3318
  e.neededImports.add("deferLoad");
3323
3319
  const s = e.importRenames.deferLoad;
@@ -3330,22 +3326,22 @@ function ba(e, t, i) {
3330
3326
  if (r !== void 0)
3331
3327
  return { name: r, type: "reflected" };
3332
3328
  }
3333
- const n = st(B.common, t);
3329
+ const n = rt(B.common, t);
3334
3330
  if (n !== void 0)
3335
3331
  return n;
3336
3332
  if (typeof e == "string") {
3337
- const s = st(B.perElement[e], t);
3333
+ const s = rt(B.perElement[e], t);
3338
3334
  if (s !== void 0)
3339
3335
  return s;
3340
3336
  } else {
3341
3337
  const s = Object.values(B.perElement).map(
3342
- (a) => st(a, t)
3338
+ (a) => rt(a, t)
3343
3339
  ), r = ye(s, (a) => a?.type === "stringifiedNonReflected" ? a : void 0) ?? ye(s, (a) => a?.type === "stringifiedReflected" ? a : void 0);
3344
3340
  if (r !== void 0)
3345
3341
  return r;
3346
3342
  }
3347
3343
  }
3348
- function st(e, t) {
3344
+ function rt(e, t) {
3349
3345
  const i = e?.reflected?.[t];
3350
3346
  if (i !== void 0)
3351
3347
  return { name: i, type: "reflected" };
@@ -3356,14 +3352,14 @@ function st(e, t) {
3356
3352
  if (s !== void 0)
3357
3353
  return { name: s, type: "stringifiedNonReflected" };
3358
3354
  }
3359
- function It(e, t) {
3355
+ function Lt(e, t) {
3360
3356
  if (e !== void 0 && o.isJsxExpression(e) && e.expression !== void 0)
3361
3357
  return e.expression;
3362
3358
  if (e !== void 0 && o.isStringLiteral(e))
3363
3359
  return e;
3364
3360
  throw new Error(`key prop value must be an expression. Found ${String(e?.getText(t))}`);
3365
3361
  }
3366
- function rt(e) {
3362
+ function ot(e) {
3367
3363
  if (e === void 0)
3368
3364
  return !0;
3369
3365
  if (o.isJsxExpression(e)) {
@@ -3390,7 +3386,7 @@ function Ne(e, t, i = !1) {
3390
3386
  return [`=${t.expression.getText(e.sourceFile)}`];
3391
3387
  }
3392
3388
  }
3393
- return ["=", ...Ft(e, t, void 0)];
3389
+ return ["=", ...Nt(e, t, void 0)];
3394
3390
  }
3395
3391
  function fi(e, t) {
3396
3392
  if (!t)
@@ -3455,10 +3451,10 @@ const gi = {
3455
3451
  bindEvent: "event"
3456
3452
  };
3457
3453
  function Ca(e, t, i) {
3458
- return Pa.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" : !$t(i) && (Xi.has(e) || (i === mt ? !1 : i === Re ? (
3454
+ return Pa.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 === ft ? !1 : i === Re ? (
3459
3455
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3460
- Object.values(ft).some((r) => r.has(e))
3461
- ) : ft[i]?.has(e) === !0)) ? Zt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === mt || i !== Re && (Et.has(i) || Ct.has(i)) ? e in B.common.reflected || e in B.common.stringifiedReflected || e in B.common.stringifiedNonReflected ? "property" : Zt.has(e) ? "booleanAttribute" : "attribute" : "property";
3456
+ Object.values(yt).some((r) => r.has(e))
3457
+ ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === ft || i !== Re && (Ct.has(i) || $t.has(i)) ? e in B.common.reflected || e in B.common.stringifiedReflected || e in B.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3462
3458
  }
3463
3459
  const $a = ["class", "style", "ref", "directives", "key", "deferLoad"], Pa = new Set($a), xa = (e) => typeof e != "string" || e.trim().length > 0;
3464
3460
  function Ge({ key: e, parts: t, litTag: i }, n) {
@@ -3470,9 +3466,9 @@ function Ge({ key: e, parts: t, litTag: i }, n) {
3470
3466
  throw new Error("First normalized template part must be a string");
3471
3467
  if (i === void 0) {
3472
3468
  if (a.length === 0)
3473
- return ot(n, e, o.factory.createStringLiteral(r));
3469
+ return at(n, e, o.factory.createStringLiteral(r));
3474
3470
  if (r === "" && a.length === 2 && a[1] === "")
3475
- return ot(
3471
+ return at(
3476
3472
  n,
3477
3473
  e,
3478
3474
  typeof a[0] == "string" ? o.factory.createStringLiteral(r) : a[0]
@@ -3485,7 +3481,7 @@ function Ge({ key: e, parts: t, litTag: i }, n) {
3485
3481
  void 0,
3486
3482
  a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Aa(a))
3487
3483
  );
3488
- return ot(n, e, d);
3484
+ return at(n, e, d);
3489
3485
  }
3490
3486
  const ka = (e) => e.reduce(
3491
3487
  (t, i, n) => {
@@ -3515,7 +3511,7 @@ function Aa(e) {
3515
3511
  );
3516
3512
  });
3517
3513
  }
3518
- function ot(e, t, i) {
3514
+ function at(e, t, i) {
3519
3515
  if (t === void 0)
3520
3516
  return i;
3521
3517
  e.neededImports.add("keyed");
@@ -3524,7 +3520,7 @@ function ot(e, t, i) {
3524
3520
  }
3525
3521
  const En = (e, t) => e.getFullText(t.sourceFile).slice(0, e.getLeadingTriviaWidth(t.sourceFile));
3526
3522
  function Cn(e, t) {
3527
- const i = Lt(e);
3523
+ const i = Ft(e);
3528
3524
  return i.length === 0 ? t : o.setSyntheticLeadingComments(
3529
3525
  t,
3530
3526
  i.map((n) => ({
@@ -3535,9 +3531,9 @@ function Cn(e, t) {
3535
3531
  }))
3536
3532
  );
3537
3533
  }
3538
- const Lt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3534
+ const Ft = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3539
3535
  function Ia(e) {
3540
- const t = Lt(e);
3536
+ const t = Ft(e);
3541
3537
  if (t.length === 0)
3542
3538
  return [e || " "];
3543
3539
  const i = t.reduceRight(
@@ -3600,7 +3596,7 @@ function Fa(e, t) {
3600
3596
  const f = p.attributes.properties[m];
3601
3597
  if (f === void 0 || !o.isJsxAttribute(f))
3602
3598
  return t;
3603
- const y = It(f.initializer, e.sourceFile), g = Na(r, n, y, l, e);
3599
+ const y = Lt(f.initializer, e.sourceFile), g = Na(r, n, y, l, e);
3604
3600
  if (g === void 0)
3605
3601
  return t;
3606
3602
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -3785,7 +3781,7 @@ function In(e, t) {
3785
3781
  ...$
3786
3782
  };
3787
3783
  }
3788
- const c = r.text === et ? Re : r.text === tt ? mt : r.text, l = r.text === et ? ae : r.text === tt ? Z : Ir.has(c) ? Sn : Et.has(c) ? oe : ce, d = $t(c);
3784
+ const c = r.text === et ? Re : r.text === tt ? ft : r.text, l = r.text === et ? ae : r.text === tt ? Z : Ir.has(c) ? Sn : Ct.has(c) ? oe : ce, d = Pt(c);
3789
3785
  let p;
3790
3786
  d && e.compiler.viteCommand === "build" && (p = Ha(e, c));
3791
3787
  let m;
@@ -3817,7 +3813,7 @@ Found ${L.getText(e.sourceFile)}`
3817
3813
  "mustIncludeAllRequiredProperties",
3818
3814
  e.sourceFile.fileName,
3819
3815
  `Missing required properties for <${c}> }: ${Array.from(p).join(", ")}`
3820
- ), f.length > 0 && g.push(...f), typeof c == "string" && Ct.has(c))
3816
+ ), f.length > 0 && g.push(...f), typeof c == "string" && $t.has(c))
3821
3817
  throw Error(
3822
3818
  `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`
3823
3819
  );
@@ -3848,7 +3844,7 @@ Found ${L.getText(e.sourceFile)}`
3848
3844
  }
3849
3845
  function Wa(e, t) {
3850
3846
  const i = e.attributes.properties[Ln(e)];
3851
- return i && o.isJsxAttribute(i) && !kn(i.name, t) ? It(i.initializer, t.sourceFile) : void 0;
3847
+ return i && o.isJsxAttribute(i) && !kn(i.name, t) ? Lt(i.initializer, t.sourceFile) : void 0;
3852
3848
  }
3853
3849
  const Ln = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
3854
3850
  function Ba(e, t, i, n) {
@@ -3878,7 +3874,7 @@ function De(e, t) {
3878
3874
  if (o.isJsxText(s))
3879
3875
  return [t.compiler.shouldMinifyJsx ? Fr(s.text) : s.text];
3880
3876
  if (o.isJsxExpression(s))
3881
- return Ft(t, s, s);
3877
+ return Nt(t, s, s);
3882
3878
  {
3883
3879
  const r = In(t, s);
3884
3880
  if (r.key === void 0 && r.litTag !== ae && r.litTag !== Z) {
@@ -3902,12 +3898,12 @@ function _a(e) {
3902
3898
  o.factory.createStringLiteral("")
3903
3899
  ) : e;
3904
3900
  }
3905
- function Ft(e, t, i) {
3901
+ function Nt(e, t, i) {
3906
3902
  if (t.expression === void 0) {
3907
3903
  if (e.compiler.shouldMinifyJsx)
3908
3904
  return [];
3909
3905
  const n = t.getText(e.sourceFile).slice(1, -1);
3910
- return Lt(n).length === 0 ? [] : [Cn(n, o.factory.createIdentifier("undefined"))];
3906
+ return Ft(n).length === 0 ? [] : [Cn(n, o.factory.createIdentifier("undefined"))];
3911
3907
  }
3912
3908
  return o.isStringLiteral(t.expression) ? [Yi(t.expression.text)] : (
3913
3909
  /**
@@ -4215,7 +4211,7 @@ function sc(e, t) {
4215
4211
  return !0;
4216
4212
  const d = l.name.text, p = l.initializer, m = p.kind === o.SyntaxKind.TrueKeyword, f = p.kind === o.SyntaxKind.FalseKeyword;
4217
4213
  if (d === "attribute")
4218
- return n = !1, i |= m ? _t : 0, !m && !f;
4214
+ return n = !1, i |= m ? Ht : 0, !m && !f;
4219
4215
  if (d === "reflect")
4220
4216
  return i |= m ? xs : 0, !1;
4221
4217
  if (d === "type" && o.isIdentifier(p)) {
@@ -4232,7 +4228,7 @@ function sc(e, t) {
4232
4228
  }
4233
4229
  return !0;
4234
4230
  }
4235
- n && (i |= _t);
4231
+ n && (i |= Ht);
4236
4232
  const c = o.factory.createNumericLiteral(i);
4237
4233
  return s.length === 0 && (t || r.length === 0) ? c : o.factory.createArrayLiteralExpression([
4238
4234
  c,
@@ -4344,7 +4340,7 @@ function dc(e, t, i, n) {
4344
4340
  throw Error(
4345
4341
  `Failed to statically determine the property name: ${t.getText(n)} in ${i} in ${n.fileName}`
4346
4342
  );
4347
- r.name = a, r.attribute ??= bt(a);
4343
+ r.name = a, r.attribute ??= wt(a);
4348
4344
  }
4349
4345
  return r;
4350
4346
  }
@@ -4481,12 +4477,12 @@ function mc(e, t, i, n, s) {
4481
4477
  }
4482
4478
  return o.isPropertyDeclaration(t) || o.isAccessor(t) ? lc(e, t, i, n, s) : t;
4483
4479
  }
4484
- const fc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", ht = "@arcgis/core", at = R(), Ce = ht in (at.dependencies ?? {}) || ht in (at.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4485
- at.name === "@arcgis/lumina";
4480
+ const fc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", vt = "@arcgis/core", ct = R(), Ce = vt in (ct.dependencies ?? {}) || vt in (ct.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4481
+ ct.name === "@arcgis/lumina";
4486
4482
  async function yc(e, t) {
4487
4483
  if (!Ce)
4488
4484
  return [];
4489
- const i = await _e(ht);
4485
+ const i = await _e(vt);
4490
4486
  if (t === "cdn") {
4491
4487
  const n = await He(i), s = qe({ name: "", version: n.version }, !0);
4492
4488
  return [
@@ -4507,7 +4503,7 @@ async function yc(e, t) {
4507
4503
  wi(s)
4508
4504
  ];
4509
4505
  } else
4510
- return [wi(At(e, `${i}/assets/`))];
4506
+ return [wi(It(e, `${i}/assets/`))];
4511
4507
  }
4512
4508
  const wi = (e) => ({
4513
4509
  // Not using join() because it would turn https:// into https:/
@@ -4554,7 +4550,7 @@ const vc = [
4554
4550
  order: "pre",
4555
4551
  async handler(t, i) {
4556
4552
  if (!i.endsWith(".tsx")) {
4557
- if (e.isInTest && i.endsWith(".ts") && Tt(i) && t.includes("extends LitElement"))
4553
+ if (e.isInTest && i.endsWith(".ts") && Et(i) && t.includes("extends LitElement"))
4558
4554
  C.warn(
4559
4555
  Ei,
4560
4556
  "It looks like you may be trying to define a component inside a test file. This is supported, but you must use the .tsx file extension for you test",
@@ -4662,7 +4658,7 @@ function Tc(e, t) {
4662
4658
  if (e.isInStorybook && e.viteCommand === "serve") {
4663
4659
  const i = (a, c, l, ...d) => {
4664
4660
  const p = a.filter(
4665
- (m) => (!m.includes(".stories.") || m.endsWith(".tsx")) && !Tt(m)
4661
+ (m) => (!m.includes(".stories.") || m.endsWith(".tsx")) && !Et(m)
4666
4662
  );
4667
4663
  return e.typeScriptHost = l, o.createAbstractBuilder(p, c, l, ...d);
4668
4664
  }, n = o.createWatchCompilerHost(
@@ -4732,7 +4728,7 @@ const Kn = /* @__PURE__ */ new Set([
4732
4728
  "collection",
4733
4729
  "extras",
4734
4730
  "support"
4735
- ]), _ = "@arcgis/lumina:buildCdn", Nt = "cdn", Wn = "index", we = "main";
4731
+ ]), _ = "@arcgis/lumina:buildCdn", Dt = "cdn", Wn = "index", we = "main";
4736
4732
  function Cc(e) {
4737
4733
  const { skip: t = !1, namespace: i, esbuildOptions: n = {} } = e.options.build?.cdn ?? {}, s = e.options.build?.webApp?.destination, r = i !== void 0;
4738
4734
  if (r) {
@@ -4952,8 +4948,8 @@ function Bn(e, t) {
4952
4948
  if (I !== void 0) {
4953
4949
  const xe = [];
4954
4950
  for (const Ze of I.slice(1, -1).split(",")) {
4955
- const [Mt, Ot = Mt] = Ze.split(" as ");
4956
- G || r.add(Ot), xe.push(`${Mt}:${Ot}`);
4951
+ const [Ot, Jt = Ot] = Ze.split(" as ");
4952
+ G || r.add(Jt), xe.push(`${Ot}:${Jt}`);
4957
4953
  }
4958
4954
  if (G) {
4959
4955
  const Ze = K.oldSingleExportName === void 0 ? `{${xe.join(",")}}` : xe[0].split(":")[1];
@@ -5042,9 +5038,9 @@ function Fc(e) {
5042
5038
  }
5043
5039
  };
5044
5040
  }
5045
- const Un = 0, Dt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", zn = `${Dt}0123456789`, Nc = Dt.length, Dc = zn.length;
5041
+ const Un = 0, jt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", zn = `${jt}0123456789`, Nc = jt.length, Dc = zn.length;
5046
5042
  function jc(e) {
5047
- let t = Dt[e[0]];
5043
+ let t = jt[e[0]];
5048
5044
  for (let i = 1; i < e.length; i++)
5049
5045
  t += zn[e[i]];
5050
5046
  return t;
@@ -5098,7 +5094,7 @@ async function Mc(e, t, i, n) {
5098
5094
  ...d,
5099
5095
  `import { defineCustomElements as defineCustomElements$${n} } from "${p}";`,
5100
5096
  `defineCustomElements$${n}(globalThis.window, {`,
5101
- ` resourcesUrl: "${At(e, r)}/dist/${c}/",`,
5097
+ ` resourcesUrl: "${It(e, r)}/dist/${c}/",`,
5102
5098
  "});"
5103
5099
  ]
5104
5100
  }
@@ -5131,7 +5127,7 @@ async function Oc(e, t, i, n) {
5131
5127
  }
5132
5128
  };
5133
5129
  }
5134
- const l = c?.cdnName ?? Nt, d = Jc(a), p = `${s}/${u.normalize(d)}${Q}`, m = [
5130
+ const l = c?.cdnName ?? Dt, d = Jc(a), p = `${s}/${u.normalize(d)}${Q}`, m = [
5135
5131
  `import styles$${n} from "${p}";`,
5136
5132
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
5137
5133
  ], f = `${s}/loader`;
@@ -5145,7 +5141,7 @@ async function Oc(e, t, i, n) {
5145
5141
  ...m,
5146
5142
  `import { defineCustomElements as defineCustomElements$${n} } from "${f}";`,
5147
5143
  `defineCustomElements$${n}({`,
5148
- ` resourcesUrl: "${At(e, r)}/dist/${l}/",`,
5144
+ ` resourcesUrl: "${It(e, r)}/dist/${l}/",`,
5149
5145
  "});"
5150
5146
  ]
5151
5147
  };
@@ -5188,7 +5184,7 @@ async function Kc(e) {
5188
5184
  javascriptCode: [
5189
5185
  `import { defineCustomElements } from "${a}";`,
5190
5186
  "globalThis.devOnly$ownTagNames = new Set();",
5191
- `defineCustomElements(${t === "cdn" ? `{resourcesUrl:"./${e.options.build?.cdn?.namespace ?? Nt}/"}` : ""});`
5187
+ `defineCustomElements(${t === "cdn" ? `{resourcesUrl:"./${e.options.build?.cdn?.namespace ?? Dt}/"}` : ""});`
5192
5188
  ]
5193
5189
  }
5194
5190
  ];
@@ -5212,7 +5208,7 @@ async function Gn(e) {
5212
5208
  })
5213
5209
  ).then((i) => i.filter(j)), await e._serveOnlyDependencies);
5214
5210
  }
5215
- const Vn = "/@arcgis/lumina-compiler/testSetupFile", ct = [Vn];
5211
+ const Vn = "/@arcgis/lumina-compiler/testSetupFile", lt = [Vn];
5216
5212
  async function Wc(e) {
5217
5213
  if (!e.viteConfig.test?.browser?.enabled)
5218
5214
  return Pi(e);
@@ -5288,7 +5284,7 @@ function Hc(e) {
5288
5284
  );
5289
5285
  }), g.watcher.on("add", h), g.watcher.on("unlink", h), g.watcher.on(
5290
5286
  "addDir",
5291
- (v) => v.startsWith(e.dir.srcComponents) ? void Pt(e, e.dir.srcComponents, v).then(
5287
+ (v) => v.startsWith(e.dir.srcComponents) ? void xt(e, e.dir.srcComponents, v).then(
5292
5288
  (S) => S.length > 0 ? m() : void 0
5293
5289
  ) : void 0
5294
5290
  ), g.watcher.on("unlinkDir", (v) => {
@@ -5356,10 +5352,10 @@ function Hc(e) {
5356
5352
  });
5357
5353
  return d;
5358
5354
  }
5359
- const vt = "@arcgis/lumina:provideAssets";
5360
- function fe(e, t, i = jt) {
5355
+ const St = "@arcgis/lumina:provideAssets";
5356
+ function fe(e, t, i = Rt) {
5361
5357
  if (e.viteCommand !== "serve")
5362
- throw Error(w(vt, "serveAssets() is only available when Vite is running in serve mode"));
5358
+ throw Error(w(St, "serveAssets() is only available when Vite is running in serve mode"));
5363
5359
  const n = e._serverConfigured, s = e.server.middlewares.stack.length;
5364
5360
  if (t.forEach((r) => {
5365
5361
  const a = Qn(r), c = Yn(e.dir, Zn(a)), l = zc(e.viteConfig.base, c, e.dir.distCdn);
@@ -5370,7 +5366,7 @@ function fe(e, t, i = jt) {
5370
5366
  p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", js.lookup(f) || "application/octet-stream"), p.write(S), p.end();
5371
5367
  }).catch((v) => {
5372
5368
  (a.type !== "directory" || process.env.DEBUG) && C.warn(
5373
- vt,
5369
+ St,
5374
5370
  `Error occurred when trying to serve a file in response to request for "${d.originalUrl ?? f}":${String(v)}`
5375
5371
  ), m();
5376
5372
  }), !0;
@@ -5380,7 +5376,7 @@ function fe(e, t, i = jt) {
5380
5376
  e.server.middlewares.stack.splice(0, 0, ...r);
5381
5377
  }
5382
5378
  }
5383
- async function Xn(e, t, i = jt) {
5379
+ async function Xn(e, t, i = Rt) {
5384
5380
  await Promise.all(
5385
5381
  t.map(async (n) => {
5386
5382
  const s = Qn(n), r = Yn(e.dir, Zn(s));
@@ -5428,7 +5424,7 @@ function Zn(e) {
5428
5424
  if (e.type === "file")
5429
5425
  throw Error(
5430
5426
  w(
5431
- vt,
5427
+ St,
5432
5428
  `Unexpectedly tried to provide an asset with type "file", whose source looks like a directory: ${Y(e.source)}. If source is meant to be a directory, change to "type":"directory". If source is a file, make sure source path does not end with / or \\`
5433
5429
  )
5434
5430
  );
@@ -5462,12 +5458,12 @@ async function ts(e) {
5462
5458
  const Gc = {
5463
5459
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
5464
5460
  transform: (e) => JSON.stringify(JSON.parse(e))
5465
- }, jt = [Gc];
5461
+ }, Rt = [Gc];
5466
5462
  function Vc(e) {
5467
5463
  let t;
5468
5464
  const i = () => [
5469
5465
  ...e.options.assets?.transformers ?? [],
5470
- ...jt
5466
+ ...Rt
5471
5467
  ];
5472
5468
  return {
5473
5469
  name: "@arcgis/lumina:handleStaticAssets",
@@ -5553,18 +5549,18 @@ export * from "@arcgis/lumina/stencilSsrCompatibility";`;
5553
5549
  }
5554
5550
  };
5555
5551
  }
5556
- const lt = "@arcgis/lumina:printTotalBuildSize", Zc = (e) => ({
5557
- name: lt,
5552
+ const dt = "@arcgis/lumina:printTotalBuildSize", Zc = (e) => ({
5553
+ name: dt,
5558
5554
  apply: () => e.viteCommand === "build",
5559
5555
  configResolved(t) {
5560
5556
  const i = t.plugins.find(({ name: s }) => s === "vite:reporter");
5561
5557
  if (i === void 0) {
5562
- C.warn(lt, "Unable to find the vite's built-in vite:reporter plugin");
5558
+ C.warn(dt, "Unable to find the vite's built-in vite:reporter plugin");
5563
5559
  return;
5564
5560
  }
5565
5561
  const n = i.writeBundle;
5566
5562
  if (typeof n != "function")
5567
- throw Error(w(lt, "Expected vite:reporter to declare a writeBundle() function"));
5563
+ throw Error(w(dt, "Expected vite:reporter to declare a writeBundle() function"));
5568
5564
  i.writeBundle = async function(r, a) {
5569
5565
  let c = 0, l = 0, d = 0, p = 0;
5570
5566
  const m = console.log;
@@ -5707,7 +5703,7 @@ const lt = "@arcgis/lumina:printTotalBuildSize", Zc = (e) => ({
5707
5703
  "@lit/context"
5708
5704
  ]
5709
5705
  };
5710
- if (typeof l.setupFiles == "string" ? l.setupFiles = [...ct, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...ct, ...l.setupFiles] : l.setupFiles = [...ct], e.isInPuppeteerTestBackEnd) {
5706
+ if (typeof l.setupFiles == "string" ? l.setupFiles = [...lt, l.setupFiles] : Array.isArray(l.setupFiles) ? l.setupFiles = [...lt, ...l.setupFiles] : l.setupFiles = [...lt], e.isInPuppeteerTestBackEnd) {
5711
5707
  if (p?.enabled === !0)
5712
5708
  throw Error(
5713
5709
  w(Li, "Can't enable both Vitest browser mode and Puppeteer testing at the same time")
@@ -6043,7 +6039,7 @@ class P {
6043
6039
  this.viteConfig = s;
6044
6040
  const r = s.build.minify !== !1;
6045
6041
  this.shouldMinify = r && this.viteCommand !== "serve", Object.hasOwn(this, "shouldMinifyJsx") || (this.shouldMinifyJsx = this.viteCommand !== "serve" || this.isInTest);
6046
- const a = u.join(s.root, u.sep), c = u.join(a, "src", u.sep), l = u.join(c, "components", u.sep), d = u.join(u.resolve(a, s.build.outDir), u.sep), p = u.join(u.relative(a, d), u.sep), m = u.join(d, "components", u.sep), f = u.join(d, this.options.build?.cdn?.namespace ?? Nt, u.sep), y = u.join(f, "assets", u.sep);
6042
+ const a = u.join(s.root, u.sep), c = u.join(a, "src", u.sep), l = u.join(c, "components", u.sep), d = u.join(u.resolve(a, s.build.outDir), u.sep), p = u.join(u.relative(a, d), u.sep), m = u.join(d, "components", u.sep), f = u.join(d, this.options.build?.cdn?.namespace ?? Dt, u.sep), y = u.join(f, "assets", u.sep);
6047
6043
  if (this.dir = {
6048
6044
  root: a,
6049
6045
  src: c,
@@ -6098,12 +6094,12 @@ class P {
6098
6094
  webTypes: i.jetBrains === !1 ? void 0 : i.jetBrains?.webTypesFileName ? de(i.jetBrains.webTypesFileName) : pe.webTypes,
6099
6095
  vsCodeHtml: i.vsCode === !1 ? void 0 : i.vsCode?.htmlFileName ? de(i.vsCode.htmlFileName) : pe.vsCodeHtml,
6100
6096
  vsCodeCss: i.vsCode === !1 ? void 0 : i.vsCode?.cssFileName ? de(i.vsCode.cssFileName) : pe.vsCodeCss
6101
- }, yn(), this.componentFilesPromise = Pt(this, u.resolve("src/components")), wc(this);
6097
+ }, yn(), this.componentFilesPromise = xt(this, u.resolve("src/components")), wc(this);
6102
6098
  const n = t.build?.preamble ?? rl();
6103
6099
  this.banner = ol(n);
6104
6100
  }
6105
6101
  _inferBuildSetup({ command: t, mode: i }, n) {
6106
- this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (C.warn(xt, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
6102
+ this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (C.warn(kt, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
6107
6103
  const s = n?.__IS_IN_PUPPETEER__ === !0, r = this.viteCommand === "serve" && this.isInTest && this.options.puppeteerTesting?.enabled === !0;
6108
6104
  this.isInPuppeteerTestBackEnd = r && !s, this.isInPuppeteerTestFrontEnd = r && s, i === "production" ? this._silencedRules = this.options.linting?.silence : [this.normalizedDocumentationUrl, this.alternativeDocumentationUrl] = [
6109
6105
  this.alternativeDocumentationUrl,
@@ -6258,8 +6254,8 @@ A([
6258
6254
  A([
6259
6255
  k("configResolved()")
6260
6256
  ], P.prototype, "_typeScriptPrinter");
6261
- const dt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6262
- name: dt,
6257
+ const pt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6258
+ name: pt,
6263
6259
  apply: () => e.viteCommand === "build",
6264
6260
  generateBundle(t, i) {
6265
6261
  Object.entries(i).forEach(([n, s]) => {
@@ -6286,7 +6282,7 @@ const dt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6286
6282
  const p = Y(r);
6287
6283
  throw Error(
6288
6284
  w(
6289
- dt,
6285
+ pt,
6290
6286
  `Unable to determine what files imported ${p}. This is necessary because this file referenced other web components (${[...a, ...c].join(", ")}), and so the compiler needs to know what component entrypoints these imports should be added to. Please double check if you are referencing ${p} in the code dynamically in the way that Lumina cannot detect, and report this issue to the Lumina maintainers.`
6291
6287
  )
6292
6288
  );
@@ -6310,7 +6306,7 @@ const dt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6310
6306
  if (E !== void 0) {
6311
6307
  if (f.has(b)) {
6312
6308
  C.warn(
6313
- dt,
6309
+ pt,
6314
6310
  `"${b}" is used both with and without deferLoad in ${r} (either directly in ${r} or via a functional component). deferLoad will be ignored in this case.`
6315
6311
  );
6316
6312
  return;
@@ -6318,7 +6314,7 @@ const dt = "@arcgis/lumina:addNonLazyImports", wl = (e) => ({
6318
6314
  return S.add(h(E)), `.set("${b}", () => import("${E}"))
6319
6315
  `;
6320
6316
  }
6321
- }).filter(j), x = `${v}export * from "./${wt}";`, L = Array.from(S).join("") + x, $ = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6317
+ }).filter(j), x = `${v}export * from "./${Tt}";`, L = Array.from(S).join("") + x, $ = T.length > 0 ? `import { deferredLoaders } from "@arcgis/lumina";
6322
6318
  ${x}
6323
6319
  deferredLoaders${T.join("")};` : x;
6324
6320
  return [
@@ -6347,12 +6343,12 @@ function Ni(e) {
6347
6343
  "type" in n ? t.push(n) : "assets" in n && t.push(...n.assets);
6348
6344
  }), t.length > 0 && i.push({ assets: t }), e.assetsToProvide = void 0, i;
6349
6345
  }
6350
- const St = "@arcgis/lumina:updatePackageJson", Cl = (e) => ({
6351
- name: St,
6346
+ const bt = "@arcgis/lumina:updatePackageJson", Cl = (e) => ({
6347
+ name: bt,
6352
6348
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
6353
6349
  configResolved() {
6354
6350
  $l(e).catch(
6355
- (t) => C.error(St, `Failed to update package's package.json:${String(t)}`)
6351
+ (t) => C.error(bt, `Failed to update package's package.json:${String(t)}`)
6356
6352
  );
6357
6353
  }
6358
6354
  });
@@ -6364,7 +6360,7 @@ function Pl(e, t) {
6364
6360
  const i = e?.devDependencies ?? {};
6365
6361
  Object.keys(e?.peerDependencies ?? {}).forEach((d) => {
6366
6362
  d in i || C.warn(
6367
- St,
6363
+ bt,
6368
6364
  `Every peerDependency should also be a devDependency, or else some tools will get confused (like Turbo Build). Found "${d}" that is not a devDependency. Please edit your package.json`
6369
6365
  );
6370
6366
  });
@@ -6451,7 +6447,7 @@ function Il(e) {
6451
6447
  complexType: t.type === void 0 ? void 0 : {
6452
6448
  original: t.type.text,
6453
6449
  resolved: t.type.text,
6454
- references: Rt(t.type.references)
6450
+ references: Mt(t.type.references)
6455
6451
  },
6456
6452
  mutable: !0,
6457
6453
  attr: "attribute" in t && typeof t.attribute == "string" ? t.attribute : void 0,
@@ -6470,7 +6466,7 @@ function Il(e) {
6470
6466
  required: s
6471
6467
  };
6472
6468
  }
6473
- const Rt = (e) => Object.fromEntries(
6469
+ const Mt = (e) => Object.fromEntries(
6474
6470
  e?.map(
6475
6471
  (t) => [
6476
6472
  t.name,
@@ -6501,7 +6497,7 @@ function Ll(e) {
6501
6497
  signature: t.signature ?? "()=>unknown",
6502
6498
  parameters: n,
6503
6499
  return: t.return?.type?.text ?? "void",
6504
- references: Rt([
6500
+ references: Mt([
6505
6501
  ...t.return?.type?.references ?? [],
6506
6502
  ...t.parameters?.flatMap((s) => s.type.references ?? []) ?? []
6507
6503
  ])
@@ -6522,7 +6518,7 @@ function Fl(e) {
6522
6518
  complexType: {
6523
6519
  original: e.type.text,
6524
6520
  resolved: e.type.text,
6525
- references: Rt(e.type.references)
6521
+ references: Mt(e.type.references)
6526
6522
  },
6527
6523
  cancelable: e.cancelable ?? !0,
6528
6524
  composed: e.composed ?? !0,
@@ -6975,11 +6971,11 @@ const Ad = {
6975
6971
  propertyToAttributeMappings: B,
6976
6972
  findDeclaredComponents: Hi,
6977
6973
  nativeEvents: Zi,
6978
- svgElements: Et,
6979
- mathMlElements: Ct,
6974
+ svgElements: Ct,
6975
+ mathMlElements: $t,
6980
6976
  alwaysAttributes: Vi,
6981
6977
  nativeAlwaysAttributes: Xi,
6982
- htmlAlwaysAttributes: ft,
6978
+ htmlAlwaysAttributes: yt,
6983
6979
  isPropertyEscapeNeeded: Ve
6984
6980
  };
6985
6981
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.34.0-next.29",
3
+ "version": "4.34.0-next.30",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "4.34.0-next.29",
22
- "@arcgis/components-build-utils": "4.34.0-next.29",
23
- "@arcgis/components-utils": "4.34.0-next.29",
21
+ "@arcgis/api-extractor": "4.34.0-next.30",
22
+ "@arcgis/components-build-utils": "4.34.0-next.30",
23
+ "@arcgis/components-utils": "4.34.0-next.30",
24
24
  "chalk": "^5.3.0",
25
25
  "esbuild": "^0.25.4",
26
26
  "glob": "^11.0.0",
@@ -37,6 +37,6 @@
37
37
  "vitest-fail-on-console": "^0.7.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@arcgis/lumina": "~4.34.0-next.29"
40
+ "@arcgis/lumina": "~4.34.0-next.30"
41
41
  }
42
42
  }