@arcgis/api-extractor 6.0.0-next.5 → 6.0.0-next.6

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.
@@ -1,16 +1,16 @@
1
1
  import { p as Zt, r as Rn } from "./config.js";
2
- import { l as X, b as An, g as Ln, a as ze, p as $e, e as Gn, c as ve, d as Fn, f as On, h as Bi, i as ft, j as Ue, k as wn, m as Nn, n as de, o as Q, q as re, r as $n } from "./links.js";
2
+ import { l as X, b as An, g as Ln, a as Ke, p as $e, e as Gn, c as xe, d as Fn, f as On, h as Bi, i as Gt, j as qe, k as wn, m as Nn, n as de, o as Q, q as re, r as $n } from "./links.js";
3
3
  import a from "typescript";
4
4
  import { toPosixPathSeparators as Wi, path as se } from "@arcgis/node-toolkit/path";
5
5
  import { mkdir as Ft, writeFile as _i } from "fs/promises";
6
- import { g as R, p as J, c as Pt, a as Hi, b as ie, d as ei, e as Ki, f as Le, h as Xe, i as Un, j as zi, k as Vn } from "./privateContext.js";
6
+ import { g as R, p as J, c as bt, a as Hi, b as ie, d as ei, e as Ki, f as Le, h as Xe, i as Un, j as zi, k as Vn } from "./privateContext.js";
7
7
  import { maybeEscapePropertyName as di, printTypeAlias as Ot, printInterface as Bn, printFunction as Wn, printVariable as _n, printClass as Hn, printMethod as Kn, printProperty as Ae, printGetterSetter as zn, printSignature as jn, printTypeParameters as st } from "../utils/partPrinter.js";
8
8
  import { globalPackageIdentifier as ne, mergeApiNodes as ti, isApiMethodAsync as Jn, getApiNodeLabel as qn, apiTypeToImportType as wt, getApiMemberName as ji, getMaybeStaticApiMemberName as Nt, naturalSortModules as Xn, compareNamedNodes as Qn, compareClassMembers as Yn } from "../utils/apiHelpers.js";
9
9
  import { styleText as w } from "node:util";
10
10
  import { readFile as pi, opendir as mi, rm as Zn } from "node:fs/promises";
11
11
  import { existsAsync as eo } from "@arcgis/node-toolkit/file";
12
12
  import { pathIsComponentEntrypoint as to, findDeclaredComponent as io } from "../extractor/webComponent/findComponents.js";
13
- import { getBasename as le, getPackageNameFromExternalSpecifier as $t, extractInitializer as yt, extractBooleanInitializer as me, findDecorator as je, getMemberName as Fe } from "../utils/astHelpers.js";
13
+ import { getBasename as le, getPackageNameFromExternalSpecifier as $t, extractInitializer as ft, extractBooleanInitializer as me, findDecorator as ze, getMemberName as Fe } from "../utils/astHelpers.js";
14
14
  import { renameComponentFolder as at, addComponentPathMapping as no } from "../extractor/webComponent/pathMapping.js";
15
15
  import oo from "path";
16
16
  import { readFileSync as Ji, existsSync as ke, opendirSync as ro, watch as so, statSync as ao } from "node:fs";
@@ -18,7 +18,7 @@ import { isBuiltin as qi } from "node:module";
18
18
  import { getWidenedLiteralType as lo, unsafeUndocumentedTs as co, unsafeGetUndocumentedPrinter as po } from "../utils/internalTypeScriptApis.js";
19
19
  import { retrievePackageJson as ui } from "@arcgis/node-toolkit/packageJson";
20
20
  import { uncapitalize as mo, camelToKebab as uo, kebabToPascal as Xi } from "@arcgis/toolkit/string";
21
- import { styleText as gt } from "util";
21
+ import { styleText as yt } from "util";
22
22
  import { identity as Qi, debounce as fo } from "@arcgis/toolkit/function";
23
23
  import { hasRuntimeDeclaration as yo } from "../utils/inferEntrypoints.js";
24
24
  function Oe(e) {
@@ -51,19 +51,19 @@ function Oe(e) {
51
51
  for (const l of o.cssParts)
52
52
  t.push({
53
53
  name: "csspart",
54
- text: kt(l)
54
+ text: It(l)
55
55
  });
56
56
  if (o.cssStates !== void 0)
57
57
  for (const l of o.cssStates)
58
58
  t.push({
59
59
  name: "cssstate",
60
- text: kt(l)
60
+ text: It(l)
61
61
  });
62
62
  if (o.slots !== void 0)
63
63
  for (const l of o.slots)
64
64
  t.push({
65
65
  name: "slot",
66
- text: kt(l)
66
+ text: It(l)
67
67
  });
68
68
  }
69
69
  e.docsTags !== void 0 && t.push(...e.docsTags);
@@ -74,7 +74,7 @@ function Oe(e) {
74
74
  docsTags: t
75
75
  };
76
76
  }
77
- function kt(e) {
77
+ function It(e) {
78
78
  const t = e, n = e.name + (t.default !== void 0 ? `=${t.default}` : ""), i = n.length > 0 ? `[${n}]` : "", o = typeof e.deprecated == "string" ? `DEPRECATED ${e.deprecated}` : e.description ?? "", r = o.length > 0 ? ` - ${o}` : "";
79
79
  return `${i}${r}`;
80
80
  }
@@ -100,20 +100,20 @@ function go(e) {
100
100
  return r += o ? `
101
101
  ` : " ", r;
102
102
  }
103
- const Dt = 10, vo = 32, So = 64;
103
+ const kt = 10, vo = 32, So = 64;
104
104
  function fi(e) {
105
105
  let t = "";
106
106
  const n = e.length;
107
107
  let i = 0;
108
108
  for (let o = 0; o < n; ++o) {
109
109
  const r = e.charCodeAt(o);
110
- if (r === Dt)
111
- t += e.slice(i, o), e.charCodeAt(o + 1) === Dt ? t += `
110
+ if (r === kt)
111
+ t += e.slice(i, o), e.charCodeAt(o + 1) === kt ? t += `
112
112
  *` : t += `
113
113
  * `, i = o + 1;
114
114
  else if (r === So) {
115
115
  const l = o === 0 ? 0 : e.charCodeAt(o - 1);
116
- (o === 0 || l === vo || l === Dt) && (t += e.slice(i, o), t += "\\@", i = o + 1);
116
+ (o === 0 || l === vo || l === kt) && (t += e.slice(i, o), t += "\\@", i = o + 1);
117
117
  }
118
118
  }
119
119
  return i < n && (t += e.slice(i)), t;
@@ -193,8 +193,8 @@ function Co(e, t) {
193
193
  const [Ie, it] = To(B.name, B.members);
194
194
  let ye = "", oe = "";
195
195
  if (z !== void 0) {
196
- for (let Pe = 0; Pe < z.length; ++Pe) {
197
- const nt = z[Pe], ci = `EventHandler<${U}["${nt.name}"]>`;
196
+ for (let be = 0; be < z.length; ++be) {
197
+ const nt = z[be], ci = `EventHandler<${U}["${nt.name}"]>`;
198
198
  ye += ` ${di(`on${nt.name}`)}?: ${ci};
199
199
  `, oe += ` ${di(`on${nt.name[0].toUpperCase()}${nt.name.slice(1)}`)}?: ${ci};
200
200
  `;
@@ -325,7 +325,7 @@ function Eo(e, t) {
325
325
  }
326
326
  }
327
327
  const Yi = "@setterTypes", Zi = {
328
- [J]: Pt(),
328
+ [J]: bt(),
329
329
  kind: "function",
330
330
  name: "getAssetPath",
331
331
  static: void 0,
@@ -367,7 +367,7 @@ const Yi = "@setterTypes", Zi = {
367
367
  privacy: void 0,
368
368
  source: void 0
369
369
  }, en = {
370
- [J]: Pt(),
370
+ [J]: bt(),
371
371
  kind: "function",
372
372
  name: "setAssetPath",
373
373
  static: void 0,
@@ -534,17 +534,17 @@ function Po(e, t) {
534
534
  r += `${o.namespaces[s]}
535
535
 
536
536
  `;
537
- o.constructorPropertiesInterface !== void 0 ? r += `${Rt(o.constructorPropertiesInterface)}
537
+ o.constructorPropertiesInterface !== void 0 ? r += `${Dt(o.constructorPropertiesInterface)}
538
538
 
539
539
  ` : o.componentCssPropertiesInterface !== void 0 && (r += `declare module "@arcgis/lumina" {
540
- ${Rt(o.componentCssPropertiesInterface)}
540
+ ${Dt(o.componentCssPropertiesInterface)}
541
541
  }
542
542
 
543
543
  `);
544
544
  const l = e.declarations;
545
545
  for (let s = 0; s < l.length; ++s) {
546
546
  const c = l[s];
547
- r += Rt(c), s < l.length - 1 && (r += `
547
+ r += Dt(c), s < l.length - 1 && (r += `
548
548
 
549
549
  `);
550
550
  }
@@ -555,7 +555,7 @@ function we(e) {
555
555
  return e === void 0 ? "" : `/*${go(e)}*/
556
556
  `;
557
557
  }
558
- function Rt(e) {
558
+ function Dt(e) {
559
559
  let t = Oe(e), n = "";
560
560
  if (e.kind === "class" || e.kind === "mixin")
561
561
  n = yi(e);
@@ -735,7 +735,7 @@ Use EventNames and EventTypes helpers from @arcgis/core/Evented`
735
735
  }
736
736
  ]
737
737
  });
738
- function Je() {
738
+ function je() {
739
739
  const e = Date.now();
740
740
  return () => (Date.now() - e) / Io;
741
741
  }
@@ -817,7 +817,7 @@ function on(e, t) {
817
817
  return !0;
818
818
  return !1;
819
819
  }
820
- function Mt(e) {
820
+ function Pt(e) {
821
821
  if (e.modifiers === void 0)
822
822
  return 0;
823
823
  for (let t = 0; t < e.modifiers.length; ++t)
@@ -844,7 +844,7 @@ function Bo(e, t, n) {
844
844
  }
845
845
  }
846
846
  const Wo = Ln("core");
847
- function vt(e, t, n, i) {
847
+ function gt(e, t, n, i) {
848
848
  i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
849
849
  const o = i.implicitPublicModules[e];
850
850
  o === void 0 ? i.implicitPublicModules[e] = {
@@ -857,7 +857,7 @@ function vt(e, t, n, i) {
857
857
  } : o.pendingNames !== void 0 && n !== "*" ? o.pendingNames.add(n) : o.pendingNames = void 0;
858
858
  }
859
859
  function _o(e, t) {
860
- const n = Mt(e);
860
+ const n = Pt(e);
861
861
  if (t.pendingNames === void 0)
862
862
  return n > 0;
863
863
  if (n === 2 && t.pendingNames.has("default"))
@@ -865,7 +865,7 @@ function _o(e, t) {
865
865
  const o = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
866
866
  return t.pendingNames.has(o);
867
867
  }
868
- function St(e, t, n, i, o) {
868
+ function vt(e, t, n, i, o) {
869
869
  const r = t.escapedText;
870
870
  if (e.flags & a.SymbolFlags.TypeParameter)
871
871
  return {
@@ -911,7 +911,7 @@ function St(e, t, n, i, o) {
911
911
  if (h === void 0) {
912
912
  for (let M = d.parent; M !== void 0; M = M.parent)
913
913
  if (a.isModuleDeclaration(M) && a.isIdentifier(M.name)) {
914
- E = M.name.escapedText, h = Wt[E]?.[1]?.[p], C = `${E}.${p}`, We(t, C);
914
+ E = M.name.escapedText, h = Wt[E]?.[1]?.[p], C = `${E}.${p}`, Be(t, C);
915
915
  break;
916
916
  }
917
917
  }
@@ -932,7 +932,7 @@ function St(e, t, n, i, o) {
932
932
  const E = l.getSymbolAtLocation(h);
933
933
  if (E !== void 0) {
934
934
  const C = l.getAliasedSymbol(E);
935
- return St(
935
+ return vt(
936
936
  C,
937
937
  t,
938
938
  n,
@@ -949,14 +949,14 @@ function St(e, t, n, i, o) {
949
949
  ) {
950
950
  const h = l.getSymbolAtLocation(d.type.objectType.typeName);
951
951
  if (h !== void 0) {
952
- const E = l.getAliasedSymbol(h), C = St(
952
+ const E = l.getAliasedSymbol(h), C = vt(
953
953
  E,
954
954
  t,
955
955
  n,
956
956
  i,
957
957
  i + E.escapedName.length
958
958
  );
959
- return We(t, r), We(t, `${C.name}["@eventTypes"]`), C;
959
+ return Be(t, r), Be(t, `${C.name}["@eventTypes"]`), C;
960
960
  }
961
961
  }
962
962
  }
@@ -971,9 +971,9 @@ function St(e, t, n, i, o) {
971
971
  if (P ? k.wasUsed = !0 : M = n.moduleContext.importsMap[C] !== void 0, M)
972
972
  continue;
973
973
  const v = C !== r;
974
- v && (We(t, C), o = i + C.length);
974
+ v && (Be(t, C), o = i + C.length);
975
975
  const F = Xo(s), D = F === "named";
976
- D || (g = F), u === void 0 && !n.config.strict && vt(
976
+ D || (g = F), u === void 0 && !n.config.strict && gt(
977
977
  f,
978
978
  m.fileName.slice(n.basePath.length),
979
979
  g,
@@ -1023,18 +1023,18 @@ function St(e, t, n, i, o) {
1023
1023
  name: g,
1024
1024
  module: f,
1025
1025
  package: void 0,
1026
- viewUrl: ze(f ?? n.apiModule.path, S, void 0, n),
1026
+ viewUrl: Ke(f ?? n.apiModule.path, S, void 0, n),
1027
1027
  start: i,
1028
1028
  end: o
1029
1029
  };
1030
1030
  }
1031
1031
  const Ho = /[^a-zA-Z0-9$_]/gu;
1032
1032
  function Ko(e, t, n) {
1033
- const i = e.lastIndexOf(At);
1033
+ const i = e.lastIndexOf(Rt);
1034
1034
  if (i !== -1) {
1035
- const c = e.slice(i + At.length), p = an(c), d = e.slice(
1035
+ const c = e.slice(i + Rt.length), p = an(c), d = e.slice(
1036
1036
  0,
1037
- i + At.length + p.packageName.length
1037
+ i + Rt.length + p.packageName.length
1038
1038
  ), m = ui(d);
1039
1039
  return hi(p), p.modulePath = Ci(p.modulePath, m, t, n), p;
1040
1040
  }
@@ -1064,7 +1064,7 @@ function Ko(e, t, n) {
1064
1064
  modulePath: void 0
1065
1065
  };
1066
1066
  }
1067
- const At = "/node_modules/", zo = "/dist/", Si = "/output/npm/esm/";
1067
+ const Rt = "/node_modules/", zo = "/dist/", Si = "/output/npm/esm/";
1068
1068
  function an(e) {
1069
1069
  const t = $t(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1070
1070
  return { packageName: t, modulePath: n };
@@ -1218,14 +1218,14 @@ function q(e, t, n, i) {
1218
1218
  }
1219
1219
  if (a.isPrefixUnaryExpression(e)) {
1220
1220
  if (e.operator !== a.SyntaxKind.MinusToken)
1221
- return Ve(n, ae, t, i);
1221
+ return Ue(n, ae, t, i);
1222
1222
  if (t === _.false)
1223
1223
  return a.factory.createKeywordTypeNode(a.SyntaxKind.NumberKeyword);
1224
1224
  {
1225
1225
  const o = q(e.operand, t, n, i);
1226
1226
  return a.isLiteralTypeNode(o) ? a.factory.createLiteralTypeNode(
1227
1227
  a.factory.createPrefixUnaryExpression(a.SyntaxKind.MinusToken, o.literal)
1228
- ) : Ve(n, ae, t, i);
1228
+ ) : Ue(n, ae, t, i);
1229
1229
  }
1230
1230
  }
1231
1231
  if (a.isParenthesizedExpression(e))
@@ -1268,7 +1268,7 @@ function q(e, t, n, i) {
1268
1268
  if (o !== void 0)
1269
1269
  return o;
1270
1270
  const r = q(e.expression, t, n, i);
1271
- return a.isTypeQueryNode(r) ? a.factory.createTypeQueryNode(a.factory.createQualifiedName(r.exprName, e.name)) : r === Kt ? Kt : Ve(n, ae, t, i);
1271
+ return a.isTypeQueryNode(r) ? a.factory.createTypeQueryNode(a.factory.createQualifiedName(r.exprName, e.name)) : r === Kt ? Kt : Ue(n, ae, t, i);
1272
1272
  }
1273
1273
  if (a.isCallExpression(e)) {
1274
1274
  const o = e.expression, r = e.arguments.at(0);
@@ -1287,7 +1287,7 @@ function q(e, t, n, i) {
1287
1287
  const s = q(o, t, n, i);
1288
1288
  return a.isTypeQueryNode(s) ? a.factory.createTypeReferenceNode(a.factory.createIdentifier("ReturnType"), [
1289
1289
  a.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1290
- ]) : Ve(n, ae, t, i);
1290
+ ]) : Ue(n, ae, t, i);
1291
1291
  }
1292
1292
  if (a.isArrowFunction(e)) {
1293
1293
  if (i.isInLuminaMinimalExtraction)
@@ -1296,10 +1296,10 @@ function q(e, t, n, i) {
1296
1296
  return a.factory.createFunctionTypeNode(
1297
1297
  e.typeParameters,
1298
1298
  zt(e.parameters, o, n, i),
1299
- e.type ?? (a.isBlock(e.body) ? ht(e, i) ?? ce(n, ae, i) : q(e.body, o, n, i))
1299
+ e.type ?? (a.isBlock(e.body) ? St(e, i) ?? ce(n, ae, i) : q(e.body, o, n, i))
1300
1300
  );
1301
1301
  }
1302
- return Ve(n, ae, t, i);
1302
+ return Ue(n, ae, t, i);
1303
1303
  }
1304
1304
  function Yo(e, t, n, i) {
1305
1305
  const o = t === _.false ? void 0 : or;
@@ -1325,14 +1325,14 @@ function Yo(e, t, n, i) {
1325
1325
  a.factory.createFunctionTypeNode(
1326
1326
  e.typeParameters,
1327
1327
  zt(e.parameters, t, n, i),
1328
- e.type ?? ht(e, i) ?? ce(n, ae, i)
1328
+ e.type ?? St(e, i) ?? ce(n, ae, i)
1329
1329
  )
1330
1330
  ) : a.isGetAccessorDeclaration(e) ? a.factory.createGetAccessorDeclaration(
1331
1331
  void 0,
1332
1332
  e.name,
1333
1333
  // Should always be empty
1334
1334
  e.parameters,
1335
- e.type ?? ht(e, i) ?? ce(n, ae, i),
1335
+ e.type ?? St(e, i) ?? ce(n, ae, i),
1336
1336
  void 0
1337
1337
  ) : a.factory.createSetAccessorDeclaration(
1338
1338
  void 0,
@@ -1341,7 +1341,7 @@ function Yo(e, t, n, i) {
1341
1341
  void 0
1342
1342
  );
1343
1343
  }
1344
- function Ve(e, t, n, i) {
1344
+ function Ue(e, t, n, i) {
1345
1345
  return Ge(e, n, i) ?? ce(e, t, i);
1346
1346
  }
1347
1347
  function Ge(e, t, n) {
@@ -1355,10 +1355,10 @@ function Ge(e, t, n) {
1355
1355
  }
1356
1356
  o ??= i.getTypeAtLocation(e.node);
1357
1357
  const l = r ? lo(i, o) : o;
1358
- return xt(i, l);
1358
+ return Mt(i, l);
1359
1359
  }
1360
1360
  }
1361
- function xt(e, t) {
1361
+ function Mt(e, t) {
1362
1362
  const n = t.flags & a.TypeFlags.Union ? t.types.every(Ti) : Ti(t);
1363
1363
  return e.typeToTypeNode(
1364
1364
  t,
@@ -1367,7 +1367,7 @@ function xt(e, t) {
1367
1367
  );
1368
1368
  }
1369
1369
  const Zo = a.TypeFormatFlags.NoTruncation | a.TypeFormatFlags.WriteArrayAsGenericType | a.TypeFormatFlags.SuppressAnyReturnType | a.TypeFormatFlags.MultilineObjectLiterals, er = Zo & a.TypeFormatFlags.NodeBuilderFlagsMask, tr = er | a.NodeBuilderFlags.IgnoreErrors | a.NodeBuilderFlags.NoTruncation, Ti = (e) => e.flags & a.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & a.TypeFlags.PossiblyFalsy);
1370
- function ht(e, t) {
1370
+ function St(e, t) {
1371
1371
  const n = t.program?.getTypeChecker?.();
1372
1372
  if (n === void 0)
1373
1373
  return;
@@ -1375,14 +1375,14 @@ function ht(e, t) {
1375
1375
  if (i === void 0)
1376
1376
  return;
1377
1377
  const o = n.getReturnTypeOfSignature(i);
1378
- return xt(n, o);
1378
+ return Mt(n, o);
1379
1379
  }
1380
1380
  function ir(e, t) {
1381
1381
  const n = t.program?.getTypeChecker?.();
1382
1382
  if (n === void 0)
1383
1383
  return;
1384
1384
  const i = n.getTypeAtLocation(e);
1385
- return xt(n, i);
1385
+ return Mt(n, i);
1386
1386
  }
1387
1387
  function ce(e, t, n) {
1388
1388
  return n.isInLuminaMinimalExtraction || n.emitError(t, e), Kt;
@@ -1421,7 +1421,7 @@ function rr(e, t) {
1421
1421
  if (n === void 0 || !sr(e.exprName, t))
1422
1422
  return;
1423
1423
  const i = n.getTypeAtLocation(e.exprName);
1424
- return xt(n, i);
1424
+ return Mt(n, i);
1425
1425
  }
1426
1426
  function sr(e, t) {
1427
1427
  return e.kind === a.SyntaxKind.QualifiedName ? ar(e.left) : t.moduleContext.importsMap[e.escapedText]?.rawSpecifier.endsWith(".json") === !0;
@@ -1435,7 +1435,7 @@ function ar(e) {
1435
1435
  return !1;
1436
1436
  }
1437
1437
  function ee(e, t) {
1438
- if (O = t, dt.clear(), Z = [], Ct.clear(), e.pos !== -1 && e.getText(O.file).includes("* @public") && O.emitError(
1438
+ if (O = t, dt.clear(), Z = [], ht.clear(), e.pos !== -1 && e.getText(O.file).includes("* @public") && O.emitError(
1439
1439
  "@public JSDoc tag may only appear in interfaces, top-level of type alias, or top-level intersection inside a type-alias. @public JSDoc tag inside inline object literal types or deeper aliases is not supported as such are tricky to represent in the docs UI. Refactor out the type into a separate top-level interface/type-alias. Documentation: https://webgis.esri.com/references/api-extractor/advanced-patterns#describing-nested-object-types",
1440
1440
  { file: O.file, node: e }
1441
1441
  ), e.kind === a.SyntaxKind.Identifier || e.kind === a.SyntaxKind.QualifiedName)
@@ -1445,7 +1445,7 @@ function ee(e, t) {
1445
1445
  if (i !== void 0)
1446
1446
  for (let o = 0; o < i.length; ++o) {
1447
1447
  const r = i[o];
1448
- Ct.add(r.name.escapedText);
1448
+ ht.add(r.name.escapedText);
1449
1449
  }
1450
1450
  }
1451
1451
  return lr.writeNode(a.EmitHint.Unspecified, e, void 0, dt), {
@@ -1456,36 +1456,36 @@ function ee(e, t) {
1456
1456
  };
1457
1457
  }
1458
1458
  let O;
1459
- const Me = (e, t, n) => {
1459
+ const Pe = (e, t, n) => {
1460
1460
  switch (t.kind) {
1461
1461
  case a.SyntaxKind.TypeReference:
1462
1462
  const i = t, o = i.typeName;
1463
1463
  switch (o.escapedText) {
1464
1464
  case "nil":
1465
- return Me(e, cr, n);
1465
+ return Pe(e, cr, n);
1466
1466
  // Used in public typings in 88 files
1467
1467
  // REFACTOR: consider refactoring out Const usages in public API to
1468
1468
  // reduce divergence
1469
1469
  case "Const":
1470
- return Me(e, i.typeArguments[0], n);
1470
+ return Pe(e, i.typeArguments[0], n);
1471
1471
  // In component public types, Lumina's "component" and "el" have the same type
1472
1472
  case "ToElement":
1473
1473
  if (O.isComponentProject)
1474
- return Me(e, i.typeArguments[0], n);
1474
+ return Pe(e, i.typeArguments[0], n);
1475
1475
  break;
1476
1476
  /**
1477
1477
  * @see https://webgis.esri.com/references/api-extractor/advanced-patterns#publicprivate-type-divergence
1478
1478
  */
1479
1479
  case "PublicApiNarrowType":
1480
1480
  case "PublicApiRelaxType":
1481
- return Me(e, i.typeArguments[1], n);
1481
+ return Pe(e, i.typeArguments[1], n);
1482
1482
  }
1483
1483
  pt(o);
1484
1484
  break;
1485
1485
  case a.SyntaxKind.TypeQuery:
1486
1486
  const l = rr(t, O);
1487
1487
  if (l !== void 0)
1488
- return Me(e, l, n);
1488
+ return Pe(e, l, n);
1489
1489
  pt(t.exprName, dr);
1490
1490
  break;
1491
1491
  case a.SyntaxKind.PropertyAccessExpression:
@@ -1494,7 +1494,7 @@ const Me = (e, t, n) => {
1494
1494
  case a.SyntaxKind.InferType:
1495
1495
  case a.SyntaxKind.MappedType:
1496
1496
  const c = t.typeParameter;
1497
- Ct.add(c.name.escapedText);
1497
+ ht.add(c.name.escapedText);
1498
1498
  break;
1499
1499
  case a.SyntaxKind.TypeLiteral:
1500
1500
  const p = t;
@@ -1507,7 +1507,7 @@ const Me = (e, t, n) => {
1507
1507
  // Thus print ArcgisHome["el"] as just ArcgisHome
1508
1508
  O.isComponentProject && d.indexType.kind === a.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1509
1509
  )
1510
- return Me(e, d.objectType, n);
1510
+ return Pe(e, d.objectType, n);
1511
1511
  break;
1512
1512
  case a.SyntaxKind.ImportType:
1513
1513
  O.emitError(
@@ -1516,14 +1516,14 @@ const Me = (e, t, n) => {
1516
1516
  );
1517
1517
  break;
1518
1518
  }
1519
- n(e, t), Tt !== void 0 && (ln(), Tt = void 0);
1519
+ n(e, t), Ct !== void 0 && (ln(), Ct = void 0);
1520
1520
  }, lr = po(
1521
1521
  {},
1522
1522
  {
1523
- onEmitNode: Me
1523
+ onEmitNode: Pe
1524
1524
  }
1525
1525
  ), cr = a.factory.createIdentifier("null | undefined"), dt = co.createTextWriter(`
1526
- `), dr = 7, Ct = /* @__PURE__ */ new Set();
1526
+ `), dr = 7, ht = /* @__PURE__ */ new Set();
1527
1527
  let Z;
1528
1528
  function pt(e, t = 0) {
1529
1529
  const n = [];
@@ -1543,7 +1543,7 @@ function pt(e, t = 0) {
1543
1543
  const c = o;
1544
1544
  if (c.pos === -1 && c.symbol !== void 0) {
1545
1545
  Z.push(
1546
- St(c.symbol, c, O, l, s)
1546
+ vt(c.symbol, c, O, l, s)
1547
1547
  );
1548
1548
  return;
1549
1549
  }
@@ -1574,7 +1574,7 @@ function pt(e, t = 0) {
1574
1574
  name: r,
1575
1575
  module: void 0,
1576
1576
  package: void 0,
1577
- viewUrl: ze(
1577
+ viewUrl: Ke(
1578
1578
  O.apiModule.path,
1579
1579
  r === O.exportDefaultName ? void 0 : r,
1580
1580
  void 0,
@@ -1590,7 +1590,7 @@ function pt(e, t = 0) {
1590
1590
  name: r,
1591
1591
  module: void 0,
1592
1592
  package: void 0,
1593
- viewUrl: ze(
1593
+ viewUrl: Ke(
1594
1594
  O.apiModule.path,
1595
1595
  r === O.exportDefaultName ? void 0 : r,
1596
1596
  void 0,
@@ -1605,7 +1605,7 @@ function pt(e, t = 0) {
1605
1605
  if (d !== void 0) {
1606
1606
  d.wasUsed = !0;
1607
1607
  const g = d.type === "named";
1608
- d.replacementName !== void 0 && (We(o, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (O.functionLikeTypeParameters?.has(d.replacementName) === !0 || O.objectLikeTypeParameters?.has(d.replacementName) === !0) && O.emitError(
1608
+ d.replacementName !== void 0 && (Be(o, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (O.functionLikeTypeParameters?.has(d.replacementName) === !0 || O.objectLikeTypeParameters?.has(d.replacementName) === !0) && O.emitError(
1609
1609
  `Can't do a type replacement of ${w("green", r)} to ${w("red", d.replacementName)} as the latter name conflicts with a type parameter name in the current scope. Rename the type parameter or refactor out the type replacement.`,
1610
1610
  { file: O.file, node: e }
1611
1611
  );
@@ -1618,7 +1618,7 @@ function pt(e, t = 0) {
1618
1618
  { file: O.file, node: e }
1619
1619
  );
1620
1620
  }
1621
- } else O.config.strict || vt(
1621
+ } else O.config.strict || gt(
1622
1622
  d.modulePath,
1623
1623
  d.rawSpecifier === "" ? d.modulePath : Ut(
1624
1624
  O.apiModule.sourcePath.slice(O.config.context.basePath.length),
@@ -1632,7 +1632,7 @@ function pt(e, t = 0) {
1632
1632
  name: S ?? d.type,
1633
1633
  module: E,
1634
1634
  package: h,
1635
- viewUrl: d.modulePath === void 0 ? sn(h, E, g ? r : d.type, O) : ze(d.modulePath, S, void 0, O),
1635
+ viewUrl: d.modulePath === void 0 ? sn(h, E, g ? r : d.type, O) : Ke(d.modulePath, S, void 0, O),
1636
1636
  start: l,
1637
1637
  end: s
1638
1638
  });
@@ -1673,11 +1673,11 @@ function pt(e, t = 0) {
1673
1673
  }
1674
1674
  return;
1675
1675
  }
1676
- if (Ct.has(r))
1676
+ if (ht.has(r))
1677
1677
  return;
1678
1678
  const f = O.program?.getTypeChecker?.()?.getSymbolAtLocation(o);
1679
1679
  if (f !== void 0) {
1680
- Z.push(St(f, o, O, l, s));
1680
+ Z.push(vt(f, o, O, l, s));
1681
1681
  return;
1682
1682
  }
1683
1683
  O.emitError(
@@ -1688,15 +1688,15 @@ function pt(e, t = 0) {
1688
1688
  function pr(e, t, n) {
1689
1689
  return n.has(t) || n.has("@types/node") && qi(e);
1690
1690
  }
1691
- function We(e, t) {
1691
+ function Be(e, t) {
1692
1692
  const n = e.escapedText;
1693
- Tt = e, jt = t, ln(), jt = n;
1693
+ Ct = e, jt = t, ln(), jt = n;
1694
1694
  }
1695
- let Tt, jt;
1695
+ let Ct, jt;
1696
1696
  function ln() {
1697
- Tt.escapedText = jt;
1697
+ Ct.escapedText = jt;
1698
1698
  }
1699
- function It(e, t, n) {
1699
+ function xt(e, t, n) {
1700
1700
  if (e === void 0 || n.isInLuminaMinimalExtraction) {
1701
1701
  t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
1702
1702
  return;
@@ -1851,7 +1851,7 @@ console.log("${e.tagName} is ready to go!");
1851
1851
  }
1852
1852
  o.length > 0 && (e.demos = o);
1853
1853
  }
1854
- const Sr = Pt(), hr = {
1854
+ const Sr = bt(), hr = {
1855
1855
  summary: void 0,
1856
1856
  description: void 0,
1857
1857
  type: {
@@ -1874,8 +1874,8 @@ const Sr = Pt(), hr = {
1874
1874
  module: void 0,
1875
1875
  package: void 0,
1876
1876
  viewUrl: void 0
1877
- }, Tr = be, Er = be, br = be, Pr = be, Mr = be, xr = be, Ir = be, dn = be;
1878
- function be(e, t, n, i, o) {
1877
+ }, Tr = Ee, Er = Ee, br = Ee, Pr = Ee, Mr = Ee, xr = Ee, Ir = Ee, dn = Ee;
1878
+ function Ee(e, t, n, i, o) {
1879
1879
  if (i.docsTags === void 0 || n === void 0)
1880
1880
  return;
1881
1881
  const r = i.docsTags.indexOf(X.copyDoc);
@@ -1904,7 +1904,7 @@ function oi(e, t, n) {
1904
1904
  }
1905
1905
  });
1906
1906
  }
1907
- const kr = tt, Lt = tt, Dr = tt, bi = tt, Pi = tt;
1907
+ const kr = tt, At = tt, Dr = tt, bi = tt, Pi = tt;
1908
1908
  function tt(e, t, n, i) {
1909
1909
  if (t === void 0) {
1910
1910
  i.emitError("Computed function/method names are not yet supported.", {
@@ -1913,7 +1913,7 @@ function tt(e, t, n, i) {
1913
1913
  });
1914
1914
  return;
1915
1915
  }
1916
- const o = n ?? e, r = n !== void 0 && !a.isVariableStatement(n), l = a.isMethodDeclaration(e), s = a.isMethodSignature(e), c = l || s || r, p = n !== void 0 && a.isVariableStatement(n), m = a.isFunctionDeclaration(e) || p, u = !r && !p && a.isFunctionTypeNode(e) || a.isCallSignatureDeclaration(e), f = a.isConstructorDeclaration(e), g = f || a.isConstructSignatureDeclaration(e) || a.isConstructorTypeNode(e), S = i.isInLuminaMinimalExtraction || i.jsDoc === $e, h = Pt();
1916
+ const o = n ?? e, r = n !== void 0 && !a.isVariableStatement(n), l = a.isMethodDeclaration(e), s = a.isMethodSignature(e), c = l || s || r, p = n !== void 0 && a.isVariableStatement(n), m = a.isFunctionDeclaration(e) || p, u = !r && !p && a.isFunctionTypeNode(e) || a.isCallSignatureDeclaration(e), f = a.isConstructorDeclaration(e), g = f || a.isConstructSignatureDeclaration(e) || a.isConstructorTypeNode(e), S = i.isInLuminaMinimalExtraction || i.jsDoc === $e, h = bt();
1917
1917
  let E, C, M = !1, k = !1;
1918
1918
  if (!m && o.modifiers !== void 0)
1919
1919
  for (let x = 0; x < o.modifiers.length; ++x)
@@ -1940,13 +1940,13 @@ function tt(e, t, n, i) {
1940
1940
  summary: void 0,
1941
1941
  description: void 0,
1942
1942
  docsTags: void 0,
1943
- typeParameters: It(e.typeParameters, !1, i),
1943
+ typeParameters: xt(e.typeParameters, !1, i),
1944
1944
  parameters: [],
1945
1945
  return: f ? void 0 : {
1946
1946
  summary: void 0,
1947
1947
  description: void 0,
1948
1948
  type: S ? k ? yr : cn : ee(
1949
- e.type ?? ht(e, i) ?? ce(
1949
+ e.type ?? St(e, i) ?? ce(
1950
1950
  { file: i.file, node: e },
1951
1951
  "@public function must have a return type annotation",
1952
1952
  i
@@ -1966,14 +1966,14 @@ function tt(e, t, n, i) {
1966
1966
  y -= 1;
1967
1967
  continue;
1968
1968
  }
1969
- const B = f && $ !== void 0 && b.modifiers !== void 0 && b.modifiers.length > 0 ? ve(b, !0, i) : void 0;
1969
+ const B = f && $ !== void 0 && b.modifiers !== void 0 && b.modifiers.length > 0 ? xe(b, !0, i) : void 0;
1970
1970
  if (B !== void 0) {
1971
1971
  y -= 1, I += 1, i.jsDoc = B;
1972
1972
  const oe = un(b, $, !1, i);
1973
1973
  if (oe === void 0)
1974
1974
  continue;
1975
1975
  i.apiObject.members.push(oe);
1976
- const Pe = {
1976
+ const be = {
1977
1977
  name: $,
1978
1978
  deprecated: void 0,
1979
1979
  summary: void 0,
@@ -1984,7 +1984,7 @@ function tt(e, t, n, i) {
1984
1984
  type: oe.type,
1985
1985
  default: oe.default
1986
1986
  };
1987
- Pe.optional = Mi(b, Pe), P.parameters.push(Pe);
1987
+ be.optional = Mi(b, be), P.parameters.push(be);
1988
1988
  continue;
1989
1989
  }
1990
1990
  let U = F[x + y]?.text, W, V;
@@ -2024,7 +2024,7 @@ function tt(e, t, n, i) {
2024
2024
  optional: void 0,
2025
2025
  rest: b.dotDotDotToken ? !0 : void 0,
2026
2026
  type: it,
2027
- default: yt(b.initializer, void 0, i.file)
2027
+ default: ft(b.initializer, void 0, i.file)
2028
2028
  };
2029
2029
  ye.optional = Mi(b, ye), P.parameters.push(ye);
2030
2030
  }
@@ -2044,7 +2044,7 @@ function tt(e, t, n, i) {
2044
2044
  file: i.file,
2045
2045
  node: e
2046
2046
  })), i.functionLikeTypeParameters = void 0;
2047
- const A = m ? Mt(o) : 0, L = m && i.exportDefaultName === t, N = A === 2 || L;
2047
+ const A = m ? Pt(o) : 0, L = m && i.exportDefaultName === t, N = A === 2 || L;
2048
2048
  return m && (N ? oi(P, !0, i) : A === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2049
2049
  file: i.file,
2050
2050
  node: e
@@ -2068,32 +2068,32 @@ const Mi = (e, t) => (
2068
2068
  e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2069
2069
  );
2070
2070
  function Rr(e, t, n) {
2071
- return Jt(), _e(e, t), ri && t !== void 0 && n !== void 0 && (Jt(), si(t.getTypeAtLocation(n))), pn();
2071
+ return Jt(), We(e, t), ri && t !== void 0 && n !== void 0 && (Jt(), si(t.getTypeAtLocation(n))), pn();
2072
2072
  }
2073
2073
  function Ar(e) {
2074
2074
  return Jt(), si(e), pn();
2075
2075
  }
2076
- let Ye = !1, Se = !1, Ce = !1, Ze = !1, Te = !1, ri = !1;
2077
- const Ee = [], fe = [];
2076
+ let Ye = !1, ve = !1, he = !1, Ze = !1, Ce = !1, ri = !1;
2077
+ const Te = [], fe = [];
2078
2078
  function Jt() {
2079
- Ye = !1, Se = !1, Ce = !1, Ze = !1, Te = !1, ri = !1, Ee.length = 0, fe.length = 0;
2079
+ Ye = !1, ve = !1, he = !1, Ze = !1, Ce = !1, ri = !1, Te.length = 0, fe.length = 0;
2080
2080
  }
2081
2081
  function pn() {
2082
- if (!Ce && !Ze && !Te && !Ye)
2082
+ if (!he && !Ze && !Ce && !Ye)
2083
2083
  return;
2084
2084
  const e = [];
2085
- if (Ee.length > 0)
2086
- for (let t = 0; t < Ee.length; ++t)
2087
- e.push({ type: "string", value: Ee[t] });
2088
- else Ce && e.push(Lr);
2085
+ if (Te.length > 0)
2086
+ for (let t = 0; t < Te.length; ++t)
2087
+ e.push({ type: "string", value: Te[t] });
2088
+ else he && e.push(Lr);
2089
2089
  if (fe.length > 0)
2090
2090
  for (let t = 0; t < fe.length; ++t)
2091
2091
  e.push({ type: "number", value: fe[t] });
2092
- else Te && e.push(Gr);
2093
- return Ze && e.push(Fr), Ye ? e.push(Or) : Se && e.push(wr), e;
2092
+ else Ce && e.push(Gr);
2093
+ return Ze && e.push(Fr), Ye ? e.push(Or) : ve && e.push(wr), e;
2094
2094
  }
2095
2095
  const Lr = { type: "string", value: void 0 }, Gr = { type: "number", value: void 0 }, Fr = { type: "boolean", value: void 0 }, Or = { type: "any", value: void 0 }, wr = { type: "object", value: void 0 };
2096
- function _e(e, t) {
2096
+ function We(e, t) {
2097
2097
  switch (e.kind) {
2098
2098
  case a.SyntaxKind.BooleanKeyword:
2099
2099
  case a.SyntaxKind.TrueKeyword:
@@ -2101,47 +2101,47 @@ function _e(e, t) {
2101
2101
  Ze = !0;
2102
2102
  return;
2103
2103
  case a.SyntaxKind.NumberKeyword:
2104
- Te = !0;
2104
+ Ce = !0;
2105
2105
  return;
2106
2106
  case a.SyntaxKind.StringKeyword:
2107
2107
  case a.SyntaxKind.TemplateLiteralType:
2108
- Ce = !0;
2108
+ he = !0;
2109
2109
  return;
2110
2110
  case a.SyntaxKind.AnyKeyword:
2111
2111
  Ye = !0;
2112
2112
  return;
2113
2113
  case a.SyntaxKind.LiteralType:
2114
- _e(e.literal, t);
2114
+ We(e.literal, t);
2115
2115
  return;
2116
2116
  case a.SyntaxKind.StringLiteral:
2117
2117
  case a.SyntaxKind.NoSubstitutionTemplateLiteral:
2118
- Ce = !0, Ee.push(e.text);
2118
+ he = !0, Te.push(e.text);
2119
2119
  return;
2120
2120
  case a.SyntaxKind.NumericLiteral:
2121
- Te = !0, fe.push(e.text);
2121
+ Ce = !0, fe.push(e.text);
2122
2122
  return;
2123
2123
  case a.SyntaxKind.PrefixUnaryExpression:
2124
2124
  const n = e.operand;
2125
- n.kind === a.SyntaxKind.NumericLiteral ? (fe.push(`-${n.text}`), Te = !0) : Se = !0;
2125
+ n.kind === a.SyntaxKind.NumericLiteral ? (fe.push(`-${n.text}`), Ce = !0) : ve = !0;
2126
2126
  return;
2127
2127
  case a.SyntaxKind.VoidKeyword:
2128
2128
  case a.SyntaxKind.UndefinedKeyword:
2129
2129
  case a.SyntaxKind.NullKeyword:
2130
2130
  return;
2131
2131
  case a.SyntaxKind.UnionType:
2132
- const i = e.types, o = Math.min(i.length, Et);
2132
+ const i = e.types, o = Math.min(i.length, Tt);
2133
2133
  for (let l = 0; l < o; ++l)
2134
- _e(i[l], t);
2135
- i.length > Et && (Ee.length = 0, fe.length = 0);
2134
+ We(i[l], t);
2135
+ i.length > Tt && (Te.length = 0, fe.length = 0);
2136
2136
  return;
2137
2137
  case a.SyntaxKind.ParenthesizedType:
2138
- _e(e.type, t);
2138
+ We(e.type, t);
2139
2139
  return;
2140
2140
  case a.SyntaxKind.TypeQuery:
2141
2141
  case a.SyntaxKind.IndexedAccessType:
2142
2142
  case a.SyntaxKind.ImportType:
2143
2143
  case a.SyntaxKind.TypeReference:
2144
- t === void 0 ? Se = !0 : si(
2144
+ t === void 0 ? ve = !0 : si(
2145
2145
  t.getTypeFromTypeNode(
2146
2146
  e
2147
2147
  )
@@ -2149,7 +2149,7 @@ function _e(e, t) {
2149
2149
  return;
2150
2150
  case a.SyntaxKind.TypeOperator:
2151
2151
  const r = e;
2152
- r.operator === a.SyntaxKind.KeyOfKeyword ? Ce = !0 : r.operator === a.SyntaxKind.ReadonlyKeyword ? _e(r.type, t) : Se = !0;
2152
+ r.operator === a.SyntaxKind.KeyOfKeyword ? he = !0 : r.operator === a.SyntaxKind.ReadonlyKeyword ? We(r.type, t) : ve = !0;
2153
2153
  return;
2154
2154
  /*case ts.SyntaxKind.UnknownKeyword:
2155
2155
  case ts.SyntaxKind.FunctionType:
@@ -2162,31 +2162,31 @@ function _e(e, t) {
2162
2162
  case ts.SyntaxKind.ObjectKeyword:
2163
2163
  case ts.SyntaxKind.SymbolKeyword:*/
2164
2164
  default:
2165
- Se = !0;
2165
+ ve = !0;
2166
2166
  return;
2167
2167
  }
2168
2168
  }
2169
- const Et = 40;
2169
+ const Tt = 40;
2170
2170
  function si(e) {
2171
2171
  if (e.isUnion()) {
2172
- const t = Math.min(e.types.length, Et);
2172
+ const t = Math.min(e.types.length, Tt);
2173
2173
  for (let n = 0; n < t; ++n)
2174
2174
  xi(e.types[n]);
2175
- e.types.length > Et && (Ee.length = 0, fe.length = 0);
2175
+ e.types.length > Tt && (Te.length = 0, fe.length = 0);
2176
2176
  } else
2177
2177
  xi(e);
2178
2178
  }
2179
2179
  function xi(e) {
2180
2180
  const t = e.flags;
2181
2181
  let n = !1;
2182
- if (t & a.TypeFlags.StringLiteral ? (n = !0, Ce = !0, Ee.push(e.value)) : t & a.TypeFlags.StringLike && (n = !0, Ce = !0), t & a.TypeFlags.NumberLiteral ? (n = !0, Te = !0, fe.push(e.value.toString())) : t & a.TypeFlags.NumberLike && (n = !0, Te = !0), t & a.TypeFlags.BooleanLike && (n = !0, Ze = !0), t & a.TypeFlags.Any) {
2182
+ if (t & a.TypeFlags.StringLiteral ? (n = !0, he = !0, Te.push(e.value)) : t & a.TypeFlags.StringLike && (n = !0, he = !0), t & a.TypeFlags.NumberLiteral ? (n = !0, Ce = !0, fe.push(e.value.toString())) : t & a.TypeFlags.NumberLike && (n = !0, Ce = !0), t & a.TypeFlags.BooleanLike && (n = !0, Ze = !0), t & a.TypeFlags.Any) {
2183
2183
  if (e.intrinsicName === "error") {
2184
- Se = !0, ri = !0;
2184
+ ve = !0, ri = !0;
2185
2185
  return;
2186
2186
  }
2187
2187
  Ye = !0, n = !0;
2188
2188
  }
2189
- t & Nr || n || (Se = !0);
2189
+ t & Nr || n || (ve = !0);
2190
2190
  }
2191
2191
  const Nr = a.TypeFlags.Null | a.TypeFlags.VoidLike, $r = (e) => e.map(Ur).join(" | "), Ur = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2192
2192
  function Vr(e, t, n) {
@@ -2314,7 +2314,7 @@ function Kr(e, t) {
2314
2314
  return e.pos !== -1 && e.end !== -1 && t !== void 0 ? e.getText(t) : Hr(e);
2315
2315
  }
2316
2316
  let Di;
2317
- const qt = Zt.name, bt = {
2317
+ const qt = Zt.name, Et = {
2318
2318
  getCurrentDirectory: process.cwd,
2319
2319
  getCanonicalFileName: (e) => e,
2320
2320
  getNewLine: () => a.sys.newLine
@@ -2328,20 +2328,20 @@ const qt = Zt.name, bt = {
2328
2328
  file: c ? void 0 : t,
2329
2329
  start: s ? o : 0,
2330
2330
  length: s ? r : 0,
2331
- messageText: (c ? `${gt("cyan", i, { stream: process.stderr })}: ` : "") + e + (s || n === void 0 ? "" : `
2331
+ messageText: (c ? `${yt("cyan", i, { stream: process.stderr })}: ` : "") + e + (s || n === void 0 ? "" : `
2332
2332
 
2333
2333
  ${Kr(n, t)}`)
2334
- }, d = a.formatDiagnosticsWithColorAndContext([p], bt);
2335
- Di ??= process.env.CI !== void 0 || gt("red", "", { stream: process.stderr }) !== "";
2334
+ }, d = a.formatDiagnosticsWithColorAndContext([p], Et);
2335
+ Di ??= process.env.CI !== void 0 || yt("red", "", { stream: process.stderr }) !== "";
2336
2336
  const m = Di ? d : d.replaceAll(jr, ""), u = s ? m : m.replace(Ri.toString(), qt);
2337
2337
  this.config.context.logger.error(u);
2338
- }, Ri = 1490, jr = /\x1B\[[0-9;]*m/gu, xe = gt("cyan", `[${qt}] `), mn = gt("cyan", "[typescript] ");
2338
+ }, Ri = 1490, jr = /\x1B\[[0-9;]*m/gu, Me = yt("cyan", `[${qt}] `), mn = yt("cyan", "[typescript] ");
2339
2339
  function un(e, t, n, i) {
2340
2340
  if (t === void 0) {
2341
2341
  i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2342
2342
  return;
2343
2343
  }
2344
- const o = e, r = je(o.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : je(i.pairedSetter.modifiers, "property")), l = r?.arguments[0], s = l !== void 0 && a.isObjectLiteralExpression(l) ? l.properties : void 0, c = a.isPropertyDeclaration(e) || a.isPropertySignature(e), p = a.isGetAccessor(e), d = Un(), m = i.isInLuminaMinimalExtraction || i.jsDoc === $e;
2344
+ const o = e, r = ze(o.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : ze(i.pairedSetter.modifiers, "property")), l = r?.arguments[0], s = l !== void 0 && a.isObjectLiteralExpression(l) ? l.properties : void 0, c = a.isPropertyDeclaration(e) || a.isPropertySignature(e), p = a.isGetAccessor(e), d = Un(), m = i.isInLuminaMinimalExtraction || i.jsDoc === $e;
2345
2345
  let u = !1, f = !1, g, S = !1, h, E, C;
2346
2346
  if (c && e.modifiers !== void 0)
2347
2347
  for (let x = 0; x < e.modifiers.length; ++x)
@@ -2487,7 +2487,7 @@ function un(e, t, n, i) {
2487
2487
  if (W !== void 0)
2488
2488
  for (let V = 0; V < W.length; ++V) {
2489
2489
  const z = W[V];
2490
- B ??= a.isGetAccessor(z) ? z : void 0, U ??= a.isSetAccessor(z) ? z : void 0, "initializer" in z && (T.default = yt(
2490
+ B ??= a.isGetAccessor(z) ? z : void 0, U ??= a.isSetAccessor(z) ? z : void 0, "initializer" in z && (T.default = ft(
2491
2491
  z.initializer,
2492
2492
  T.default,
2493
2493
  z.getSourceFile()
@@ -2510,14 +2510,14 @@ function un(e, t, n, i) {
2510
2510
  D.getText(i.file) !== F.getText(i.file) ? T.getterType = ee(D, i) : T.readonly === !0 && T.name === "type" && I.kind === a.SyntaxKind.LiteralType && I.literal.kind === a.SyntaxKind.StringLiteral && (i.moduleContext.typeName = I.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (T.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : T.getterType ??= {
2511
2511
  ...T.type,
2512
2512
  references: T.type.references === void 0 ? void 0 : [...T.type.references]
2513
- }), n && I.kind === a.SyntaxKind.LiteralType || (T.default = yt(
2513
+ }), n && I.kind === a.SyntaxKind.LiteralType || (T.default = ft(
2514
2514
  e.initializer,
2515
2515
  T.default,
2516
2516
  i.file
2517
2517
  )), A) {
2518
2518
  const x = y === void 0 && T.default === "true";
2519
2519
  T.type.values?.length === 1 && T.type.values[0].type === "boolean" && (T.default === void 0 ? T.default = "false" : x && T.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2520
- `${xe}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${T.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2520
+ `${Me}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${T.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2521
2521
  ), i.loggedBooleanWarning = !0));
2522
2522
  }
2523
2523
  return Tr(
@@ -2592,7 +2592,7 @@ function et(e, t) {
2592
2592
  description: void 0,
2593
2593
  docsTags: void 0,
2594
2594
  demos: void 0,
2595
- typeParameters: c ? void 0 : It(e.typeParameters, !0, t),
2595
+ typeParameters: c ? void 0 : xt(e.typeParameters, !0, t),
2596
2596
  superclass: void 0,
2597
2597
  supertypes: void 0,
2598
2598
  mixins: void 0,
@@ -2622,7 +2622,7 @@ function et(e, t) {
2622
2622
  node: e
2623
2623
  }
2624
2624
  ) : qr(s, n, d, e, t), r !== void 0 && vr(u, t), m.members.length === 0 && (r === void 0 && (m.members = void 0), l && (t.moduleContext.constructorPropertiesInterface = f));
2625
- const S = t.exportDefaultName === o, h = Mt(e), E = S || h === 2;
2625
+ const S = t.exportDefaultName === o, h = Pt(e), E = S || h === 2;
2626
2626
  return (E || r !== void 0) && oi(m, E, t), n ? (r === void 0 ? xr(
2627
2627
  t,
2628
2628
  e,
@@ -2723,9 +2723,15 @@ function yn(e, t, n, i) {
2723
2723
  if (p === void 0 && s.name?.kind === a.SyntaxKind.PrivateIdentifier)
2724
2724
  continue;
2725
2725
  c !== void 0 && p === d && (a.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : a.isSetAccessor(c) && (i.pairedSetter = c));
2726
- let f = ve(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : ve(i.pairedSetter, !0, i));
2726
+ let f = xe(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : xe(i.pairedSetter, !0, i));
2727
2727
  if (f === void 0 && !i.config.strict && (o ? p !== void 0 && Li(s, i.pairedSetter, !0) : !on(s.modifiers, a.SyntaxKind.PrivateKeyword))) {
2728
- const S = i.pairedSetter === void 0 ? ft(s, !1, i, Ue) : ve(s, !1, i) ?? ft(i.pairedSetter, !1, i, Ue);
2728
+ const S = Gt(
2729
+ s,
2730
+ !1,
2731
+ i,
2732
+ qe,
2733
+ i.pairedSetter
2734
+ );
2729
2735
  S?.docsTags.includes(X.private) === !0 ? o && i.config.context.includeLuminaPrivateComponents ? f = $e : f = void 0 : f = S;
2730
2736
  } else f === void 0 && o && i.config.context.includeLuminaPrivateComponents && Li(s, i.pairedSetter, !1) && (f = $e);
2731
2737
  if (f === void 0) {
@@ -2734,22 +2740,22 @@ function yn(e, t, n, i) {
2734
2740
  }
2735
2741
  i.jsDoc = f;
2736
2742
  let g;
2737
- a.isPropertyDeclaration(s) || a.isPropertyAssignment(s) || a.isGetAccessorDeclaration(s) || a.isSetAccessorDeclaration(s) || a.isPropertySignature(s) ? g = un(s, p, !1, i) : a.isMethodDeclaration(s) || a.isMethodSignature(s) ? g = Lt(s, p, void 0, i) : a.isConstructorDeclaration(s) || a.isConstructSignatureDeclaration(s) ? (m = !0, g = Lt(s, n, void 0, i)) : a.isCallSignatureDeclaration(s) ? g = Lt(s, n, void 0, i) : a.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (Gt.members.splice(
2743
+ a.isPropertyDeclaration(s) || a.isPropertyAssignment(s) || a.isGetAccessorDeclaration(s) || a.isSetAccessorDeclaration(s) || a.isPropertySignature(s) ? g = un(s, p, !1, i) : a.isMethodDeclaration(s) || a.isMethodSignature(s) ? g = At(s, p, void 0, i) : a.isConstructorDeclaration(s) || a.isConstructSignatureDeclaration(s) ? (m = !0, g = At(s, n, void 0, i)) : a.isCallSignatureDeclaration(s) ? g = At(s, n, void 0, i) : a.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (Lt.members.splice(
2738
2744
  0,
2739
- Gt.members.length,
2745
+ Lt.members.length,
2740
2746
  s
2741
- ), gn(e, Gt, i), ie(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${a.SyntaxKind[s.kind]}`, {
2747
+ ), gn(e, Lt, i), ie(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${a.SyntaxKind[s.kind]}`, {
2742
2748
  file: i.file,
2743
2749
  node: s
2744
2750
  }), g !== void 0 && r.push(g);
2745
2751
  }
2746
2752
  return i.apiObject = void 0, m;
2747
2753
  }
2748
- const Gt = a.factory.createTypeLiteralNode(void 0);
2754
+ const Lt = a.factory.createTypeLiteralNode(void 0);
2749
2755
  function Li(e, t, n) {
2750
2756
  if (e.kind === a.SyntaxKind.PropertyDeclaration || e.kind === a.SyntaxKind.GetAccessor || e.kind === a.SyntaxKind.SetAccessor) {
2751
2757
  const i = e;
2752
- if ((je(i.modifiers, "property") ?? (t === void 0 ? void 0 : je(t.modifiers, "property"))) !== void 0)
2758
+ if ((ze(i.modifiers, "property") ?? (t === void 0 ? void 0 : ze(t.modifiers, "property"))) !== void 0)
2753
2759
  return !0;
2754
2760
  if (!n)
2755
2761
  return !1;
@@ -2762,7 +2768,7 @@ function Li(e, t, n) {
2762
2768
  return !1;
2763
2769
  }
2764
2770
  return e.kind === a.SyntaxKind.PropertyDeclaration && i.initializer !== void 0 && a.isCallExpression(i.initializer) ? a.isIdentifier(i.initializer.expression) && (i.initializer.expression.escapedText === "createEvent" || i.initializer.expression.escapedText === "useCloseEvent" || i.initializer.expression.escapedText === "useArcgisLoadError" || i.initializer.expression.escapedText === "useArcgisViewReadyError" || i.initializer.expression.escapedText === "reEmitEvent") || a.isCallExpression(i.initializer.expression) && a.isIdentifier(i.initializer.expression.expression) && i.initializer.expression.expression.escapedText === "usePropertyChange" : !1;
2765
- } else return e.kind === a.SyntaxKind.MethodDeclaration ? je(e.modifiers, "method") !== void 0 : !1;
2771
+ } else return e.kind === a.SyntaxKind.MethodDeclaration ? ze(e.modifiers, "method") !== void 0 : !1;
2766
2772
  }
2767
2773
  function gn(e, t, n) {
2768
2774
  const i = ee(t, n);
@@ -2845,19 +2851,19 @@ function Xr(e, t, n) {
2845
2851
  r.mixins.unshift(Ne(c, void 0, n));
2846
2852
  }
2847
2853
  }
2848
- const Be = "DeclareCssProperties", Qr = /^<\s*["'](?<syntax>[a-z-]+)["'](?:\s*,\s*["'](?<multiplier>[#+]?)["'])?\s*>/u;
2854
+ const Ve = "DeclareCssProperties", Qr = /^<\s*["'](?<syntax>[a-z-]+)["'](?:\s*,\s*["'](?<multiplier>[#+]?)["'])?\s*>/u;
2849
2855
  function Yr(e, t, n) {
2850
2856
  const i = e.body;
2851
2857
  if (i !== void 0)
2852
2858
  for (let o = 0; o < i.statements.length; ++o) {
2853
2859
  const r = i.statements[o];
2854
- if (!a.isInterfaceDeclaration(r) || r.name.escapedText !== Be)
2860
+ if (!a.isInterfaceDeclaration(r) || r.name.escapedText !== Ve)
2855
2861
  continue;
2856
- n.jsDoc = Ue;
2862
+ n.jsDoc = qe;
2857
2863
  const l = et(r, n);
2858
2864
  if (l?.supertypes !== void 0) {
2859
2865
  n.emitError(
2860
- `${Be} interface cannot extend other interfaces. Open feature request if this is needed.`,
2866
+ `${Ve} interface cannot extend other interfaces. Open feature request if this is needed.`,
2861
2867
  {
2862
2868
  file: n.file,
2863
2869
  node: r
@@ -2867,7 +2873,7 @@ function Yr(e, t, n) {
2867
2873
  }
2868
2874
  if (l?.members === void 0) {
2869
2875
  n.emitError(
2870
- `${Be} interface is empty. It should contain at least one CSS custom property declaration.`,
2876
+ `${Ve} interface is empty. It should contain at least one CSS custom property declaration.`,
2871
2877
  {
2872
2878
  file: n.file,
2873
2879
  node: r
@@ -2882,7 +2888,7 @@ function Yr(e, t, n) {
2882
2888
  const p = l.members[c];
2883
2889
  if (p.kind !== "field") {
2884
2890
  n.emitError(
2885
- `${Be} should only contain named property signatures. Found ${p.kind} ${qn(p)}.`,
2891
+ `${Ve} should only contain named property signatures. Found ${p.kind} ${qn(p)}.`,
2886
2892
  {
2887
2893
  file: n.file,
2888
2894
  node: r
@@ -2892,7 +2898,7 @@ function Yr(e, t, n) {
2892
2898
  }
2893
2899
  if (!p.name.startsWith("--")) {
2894
2900
  n.emitError(
2895
- `${Be} property names must start with "--". Found "${p.name}".`,
2901
+ `${Ve} property names must start with "--". Found "${p.name}".`,
2896
2902
  {
2897
2903
  file: n.file,
2898
2904
  node: r
@@ -2963,7 +2969,7 @@ function es(e, t) {
2963
2969
  description: void 0,
2964
2970
  docsTags: void 0,
2965
2971
  demos: void 0,
2966
- typeParameters: It(e.typeParameters, !0, t),
2972
+ typeParameters: xt(e.typeParameters, !0, t),
2967
2973
  superclass: void 0,
2968
2974
  supertypes: void 0,
2969
2975
  mixins: void 0,
@@ -2992,8 +2998,8 @@ function es(e, t) {
2992
2998
  else if (a.isTypeReferenceNode(d))
2993
2999
  s.supertypes ??= [], s.supertypes.push(Ne(d.typeName, d.typeArguments, t));
2994
3000
  else if (a.isFunctionTypeNode(d) || a.isConstructorTypeNode(d)) {
2995
- if (t.jsDoc = Ue, s.docsTags !== void 0) {
2996
- t.jsDoc = { ...Ue, docsTags: [] };
3001
+ if (t.jsDoc = qe, s.docsTags !== void 0) {
3002
+ t.jsDoc = { ...qe, docsTags: [] };
2997
3003
  for (let m = 0; m < s.docsTags.length; ++m) {
2998
3004
  const u = s.docsTags[m];
2999
3005
  (u.name === "param" || u.name === "returns") && (t.jsDoc.docsTags.push(u), s.docsTags.splice(m, 1), m -= 1);
@@ -3036,7 +3042,7 @@ function ts(e, t, n) {
3036
3042
  });
3037
3043
  return;
3038
3044
  }
3039
- It(
3045
+ xt(
3040
3046
  // Skip the TBase type parameter - non-public implementation detail
3041
3047
  i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3042
3048
  !0,
@@ -3082,7 +3088,7 @@ function ns(e, t) {
3082
3088
  return;
3083
3089
  }
3084
3090
  const r = o.escapedText, l = t.exportDefaultName === r;
3085
- if (Mt(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3091
+ if (Pt(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3086
3092
  file: t.file,
3087
3093
  node: e
3088
3094
  }), t.mixinName !== void 0 && i.initializer !== void 0 && a.isCallExpression(i.initializer) && a.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
@@ -3112,7 +3118,7 @@ function ns(e, t) {
3112
3118
  type: ee(c, t),
3113
3119
  default: void 0
3114
3120
  };
3115
- return wn(m, t.jsDoc), p && c.kind === a.SyntaxKind.LiteralType || (m.default = yt(i.initializer, m.default, t.file)), Mr(
3121
+ return wn(m, t.jsDoc), p && c.kind === a.SyntaxKind.LiteralType || (m.default = ft(i.initializer, m.default, t.file)), Mr(
3116
3122
  t,
3117
3123
  e,
3118
3124
  t.config.documentation.copyDocDefinitions.variables,
@@ -3151,7 +3157,7 @@ function rs(e, t) {
3151
3157
  return;
3152
3158
  }
3153
3159
  const o = n.slice(t.config.context.basePath.length), r = le(o), l = at(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3154
- t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3160
+ t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.componentCssFileDocs = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3155
3161
  const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3156
3162
  p.clear();
3157
3163
  const d = t.localPrivateDeclarations;
@@ -3174,10 +3180,10 @@ function rs(e, t) {
3174
3180
  // Only look at web components in Lumina's dev server
3175
3181
  t.isInLuminaMinimalExtraction
3176
3182
  )
3177
- D = v.kind === a.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0 ? Ue : void 0;
3183
+ D = v.kind === a.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0 ? qe : void 0;
3178
3184
  else if (F) {
3179
- if (D = ve(v, !0, t), D === void 0 && !t.config.strict) {
3180
- const I = ft(v, !1, t, {
3185
+ if (D = xe(v, !0, t), D === void 0 && !t.config.strict) {
3186
+ const I = Gt(v, !1, t, {
3181
3187
  description: void 0,
3182
3188
  docsTags: []
3183
3189
  }), T = v.kind === a.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0;
@@ -3187,7 +3193,7 @@ function rs(e, t) {
3187
3193
  v.heritageClauses !== void 0 && v.modifiers !== void 0 && (D = $e, t.isInLuminaMinimalExtraction = !0);
3188
3194
  D !== void 0 && !t.config.strict && v.kind === a.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0 && D.docsTags.includes(X.internal) && (h = !0);
3189
3195
  }
3190
- if (t.statementJsDocs[P] = D, F || P === 0 && (m = ve(e, !0, t)), D !== void 0)
3196
+ if (t.statementJsDocs[P] = D, F || P === 0 && (m = xe(e, !0, t)), D !== void 0)
3191
3197
  E && D.docsTags.push(X.internal), p.add(
3192
3198
  (v.name ?? v.declarationList?.declarations[0].name).escapedText
3193
3199
  ), v.kind === a.SyntaxKind.ClassDeclaration ? t.apiClassLikeName = v.name?.escapedText : v.kind === a.SyntaxKind.VariableStatement && v.declarationList.declarations[0].initializer?.kind === a.SyntaxKind.ArrowFunction && (t.apiClassLikeName = v.declarationList.declarations[0].name.escapedText);
@@ -3238,7 +3244,7 @@ function rs(e, t) {
3238
3244
  t.exportDefaultName = I, !p.has(I) && d?.has(I) === !0 && S?.pendingNames?.has("default") === !0 && d.set(I, Math.abs(d.get(I)));
3239
3245
  }
3240
3246
  } else if (a.isExportDeclaration(v) && v.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3241
- if (ve(v, !0, t) !== void 0) {
3247
+ if (xe(v, !0, t) !== void 0) {
3242
3248
  const T = v.moduleSpecifier.text, y = !T.startsWith("."), A = y ? T : Ut(r, le(T)), L = y ? void 0 : at(A, t);
3243
3249
  g.reExports ??= [];
3244
3250
  const N = [];
@@ -3250,14 +3256,14 @@ function rs(e, t) {
3250
3256
  exportName: B,
3251
3257
  aliasName: U,
3252
3258
  isTypeOnly: v.isTypeOnly
3253
- }), !t.config.strict && L !== void 0 && vt(L, A, B, t);
3259
+ }), !t.config.strict && L !== void 0 && gt(L, A, B, t);
3254
3260
  }
3255
3261
  } else
3256
3262
  N.push({
3257
3263
  exportName: "*",
3258
3264
  aliasName: v.exportClause === void 0 ? void 0 : Fe(v.exportClause.name),
3259
3265
  isTypeOnly: !1
3260
- }), !t.config.strict && L !== void 0 && vt(L, A, "*", t);
3266
+ }), !t.config.strict && L !== void 0 && gt(L, A, "*", t);
3261
3267
  g.reExports.push({
3262
3268
  modulePath: L,
3263
3269
  externalSpecifier: y ? T : void 0,
@@ -3265,7 +3271,7 @@ function rs(e, t) {
3265
3271
  specifiers: N
3266
3272
  });
3267
3273
  }
3268
- } else !t.isInLuminaMinimalExtraction && a.isModuleDeclaration(v) ? t.componentTagName !== void 0 && a.isStringLiteral(v.name) && v.name.text === "@arcgis/lumina" ? u = v : ve(v, !0, t) !== void 0 && (g.namespaces ??= [], g.namespaces.push(v.getFullText(e))) : d !== void 0 && F && d.set(
3274
+ } else !t.isInLuminaMinimalExtraction && a.isModuleDeclaration(v) ? t.componentTagName !== void 0 && a.isStringLiteral(v.name) && v.name.text === "@arcgis/lumina" ? u = v : xe(v, !0, t) !== void 0 && (g.namespaces ??= [], g.namespaces.push(v.getFullText(e))) : d !== void 0 && F && d.set(
3269
3275
  (v.name ?? v.declarationList?.declarations[0].name).escapedText,
3270
3276
  -P
3271
3277
  );
@@ -3305,7 +3311,7 @@ function rs(e, t) {
3305
3311
  for (const [v, F] of d)
3306
3312
  if (F > 0 || Object.is(F, 0)) {
3307
3313
  d.delete(v), p.add(v), P = !0;
3308
- const D = e.statements[F], I = ft(D, !1, t, {
3314
+ const D = e.statements[F], I = Gt(D, !1, t, {
3309
3315
  description: void 0,
3310
3316
  docsTags: []
3311
3317
  });
@@ -4589,9 +4595,9 @@ declare namespace __esri {
4589
4595
  ${K}
4590
4596
  export type On = (eventName: string, eventHandler: EventHandlerCallback) => IHandle;
4591
4597
  }`;
4592
- let pe, Y, he, ue, te = "", ge = "", He = "", rt = "";
4598
+ let pe, Y, Se, ue, te = "", ge = "", _e = "", rt = "";
4593
4599
  function us(e, t) {
4594
- he = void 0, ue = void 0, ge = e.path, He = "", rt = "";
4600
+ Se = void 0, ue = void 0, ge = e.path, _e = "", rt = "";
4595
4601
  const n = `import("./${ge}.js")`;
4596
4602
  let i = "";
4597
4603
  const o = e.exports?.[0]?.declaration.name, r = R(e);
@@ -4613,7 +4619,7 @@ function us(e, t) {
4613
4619
  j.length !== 1 && t.emitError("Expected only a single @esriCompatibilityName tag on a default export function.", {
4614
4620
  file: R(e).file,
4615
4621
  node: void 0
4616
- }), Ke(j[0], t), Y === void 0 && t.emitError("Expected default export @esriCompatibilityName tag to include a #", {
4622
+ }), He(j[0], t), Y === void 0 && t.emitError("Expected default export @esriCompatibilityName tag to include a #", {
4617
4623
  file: R(e).file,
4618
4624
  node: void 0
4619
4625
  }), i += ` ${K}
@@ -4631,7 +4637,7 @@ function us(e, t) {
4631
4637
  j.length !== 1 && t.emitError("Expected only a single @esriCompatibilityName tag on a default export variable.", {
4632
4638
  file: R(e).file,
4633
4639
  node: void 0
4634
- }), Ke(j[0], t), (Y !== void 0 || pe !== void 0) && t.emitError("Expected default export @esriCompatibilityName tag to not include a # or .", {
4640
+ }), He(j[0], t), (Y !== void 0 || pe !== void 0) && t.emitError("Expected default export @esriCompatibilityName tag to not include a # or .", {
4635
4641
  file: R(e).file,
4636
4642
  node: void 0
4637
4643
  }), i += ` export const ${te}: typeof ${n}.default;
@@ -4640,13 +4646,13 @@ function us(e, t) {
4640
4646
  continue;
4641
4647
  }
4642
4648
  for (let f = 0; f < j.length; ++f)
4643
- Ke(j[f], t), u && he !== void 0 ? He += ` export const ${te}: ${n}.${d};
4649
+ He(j[f], t), u && Se !== void 0 ? _e += ` export const ${te}: ${n}.${d};
4644
4650
  ` : rt += ` ${te}: typeof ${n}.${d};
4645
4651
  `;
4646
4652
  } else if (c.kind === "class" || c.kind === "mixin" || c.kind === "interface" && ie(c).isMixinBaseClass === !0) {
4647
- const f = st(qe(c.typeParameters, !1, ge)), g = st(qe(c.typeParameters, !1, void 0)), S = st(qe(c.typeParameters, !0, void 0)), h = ` ${n}.${d}`;
4653
+ const f = st(Je(c.typeParameters, !1, ge)), g = st(Je(c.typeParameters, !1, void 0)), S = st(Je(c.typeParameters, !0, void 0)), h = ` ${n}.${d}`;
4648
4654
  for (let E = 0; E < j.length; ++E) {
4649
- if (Ke(j[E], t), te.startsWith("$")) {
4655
+ if (He(j[E], t), te.startsWith("$")) {
4650
4656
  const M = te.slice(1);
4651
4657
  i += fs(M, c, d, ge);
4652
4658
  continue;
@@ -4660,12 +4666,12 @@ ${C}export const ${te}: typeof${h}${S};
4660
4666
  }
4661
4667
  } else c.kind === "interface" && (i += Fi(c, ge, d, t));
4662
4668
  }
4663
- return He.length > 0 && (he === void 0 && t.emitError("Invalid @esriCompatibilityName usage: Namespace name was not set correctly.", {
4669
+ return _e.length > 0 && (Se === void 0 && t.emitError("Invalid @esriCompatibilityName usage: Namespace name was not set correctly.", {
4664
4670
  file: R(e).file,
4665
4671
  node: void 0
4666
4672
  }), i += ` ${K}
4667
- namespace ${he} {
4668
- ${He.slice(0, -1)} }
4673
+ namespace ${Se} {
4674
+ ${_e.slice(0, -1)} }
4669
4675
 
4670
4676
  `), rt.length > 0 && (ue === void 0 && t.emitError(
4671
4677
  "Invalid @esriCompatibilityName usage: Classdec module interface name was not set correctly.",
@@ -4682,14 +4688,14 @@ ${rt} }
4682
4688
  `), i;
4683
4689
  }
4684
4690
  function Fi(e, t, n, i) {
4685
- const o = st(qe(e.typeParameters, !1, void 0)), r = qe(e.typeParameters, !1, t), l = `import("./${t}.js").${n}${o}`;
4691
+ const o = st(Je(e.typeParameters, !1, void 0)), r = Je(e.typeParameters, !1, t), l = `import("./${t}.js").${n}${o}`;
4686
4692
  let s = "";
4687
4693
  for (let c = 0; c < j.length; ++c) {
4688
- Ke(j[c], i);
4694
+ He(j[c], i);
4689
4695
  const p = Ot(te, r, void 0, l);
4690
4696
  pe === void 0 ? s += ` ${K}
4691
4697
  ${p}
4692
- ` : He += ` ${K}
4698
+ ` : _e += ` ${K}
4693
4699
  ${p}
4694
4700
 
4695
4701
  `;
@@ -4697,7 +4703,7 @@ function Fi(e, t, n, i) {
4697
4703
  return s += `
4698
4704
  `, s;
4699
4705
  }
4700
- function qe(e, t, n) {
4706
+ function Je(e, t, n) {
4701
4707
  if (e === void 0)
4702
4708
  return;
4703
4709
  const i = [];
@@ -4743,11 +4749,11 @@ let j = ut;
4743
4749
  function Oi(e) {
4744
4750
  e.kind === "variable" ? j = Ki(e).esriCompatibilityNames ?? ut : e.kind === "function" ? j = ei(e).esriCompatibilityNames ?? ut : j = ie(e).esriCompatibilityNames ?? ut;
4745
4751
  }
4746
- function Ke(e, t) {
4752
+ function He(e, t) {
4747
4753
  const n = e.indexOf(".");
4748
4754
  if (n !== -1) {
4749
- pe = e.slice(0, n), Y = void 0, te = e.slice(n + 1), he === void 0 ? he = pe : he !== pe && t.emitError(
4750
- `Invalid @esriCompatibilityName usage: Multiple different namespaces in a single file are not supported. Found ${he} and ${pe}`,
4755
+ pe = e.slice(0, n), Y = void 0, te = e.slice(n + 1), Se === void 0 ? Se = pe : Se !== pe && t.emitError(
4756
+ `Invalid @esriCompatibilityName usage: Multiple different namespaces in a single file are not supported. Found ${Se} and ${pe}`,
4751
4757
  {
4752
4758
  file: void 0,
4753
4759
  scope: ge,
@@ -5033,7 +5039,7 @@ function Es(e, t, n, i) {
5033
5039
  name: r.name,
5034
5040
  module: t.path,
5035
5041
  package: void 0,
5036
- viewUrl: ze(t.path, r.name, void 0, i),
5042
+ viewUrl: Ke(t.path, r.name, void 0, i),
5037
5043
  start: 0,
5038
5044
  end: r.name.length
5039
5045
  }
@@ -5883,7 +5889,7 @@ export interface ArcgisImportModules {
5883
5889
  ) : void 0;
5884
5890
  let i = 0;
5885
5891
  if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
5886
- const c = Je(), p = e.types.typeScriptConfig;
5892
+ const c = je(), p = e.types.typeScriptConfig;
5887
5893
  if (this.watchFiles === void 0) {
5888
5894
  const m = a.createCompilerHost(p.config.options), u = a.createProgram({
5889
5895
  host: m,
@@ -5896,15 +5902,15 @@ export interface ArcgisImportModules {
5896
5902
  const d = this.errorCount;
5897
5903
  Dn(this, c), i = this.errorCount - d;
5898
5904
  }
5899
- const o = Je(), r = await ss(this);
5905
+ const o = je(), r = await ss(this);
5900
5906
  Os(r, this);
5901
5907
  const l = this.wrapApiModules(r);
5902
5908
  e.context.logger.info(
5903
- `${xe}Extracted ${r.length} @public files in ${w("green", `${o()}s`)}`
5909
+ `${Me}Extracted ${r.length} @public files in ${w("green", `${o()}s`)}`
5904
5910
  );
5905
5911
  const s = { apiJson: l, dtsFiles: void 0 };
5906
5912
  if (e.afterApiJsonCreate !== Qi && e.afterApiJsonCreate(s), this.produceDts) {
5907
- const c = Je(), p = this.dtsFiles;
5913
+ const c = je(), p = this.dtsFiles;
5908
5914
  if (this.dtsFiles = /* @__PURE__ */ new Map(), this.isJsApi) {
5909
5915
  const d = vs(r, this), m = `${e.context.dtsEmitPath}interfaces.d.ts`;
5910
5916
  this.dtsFiles.set(m, d);
@@ -5941,7 +5947,7 @@ export interface ArcgisImportModules {
5941
5947
  await n, await Ft(e.context.dtsEmitPath, { recursive: !0 }), await Bs(e.context.dtsEmitPath, !0, this.changedDtsFiles ?? this.dtsFiles);
5942
5948
  const d = se.join(se.relative(process.cwd(), e.context.dtsEmitPath), "/");
5943
5949
  e.context.logger.info(
5944
- `${xe}Wrote ${d}**/*${w("blue", ".d.ts")} in ${w("green", `${c()}s`)}`
5950
+ `${Me}Wrote ${d}**/*${w("blue", ".d.ts")} in ${w("green", `${c()}s`)}`
5945
5951
  );
5946
5952
  }
5947
5953
  }
@@ -5951,7 +5957,7 @@ export interface ArcgisImportModules {
5951
5957
  c,
5952
5958
  e.context.environment === "production" ? JSON.stringify(l) : JSON.stringify(l, null, 2)
5953
5959
  ), e.context.logger.info(
5954
- `${xe}Wrote ${p}${w("yellow", se.basename(c))}`
5960
+ `${Me}Wrote ${p}${w("yellow", se.basename(c))}`
5955
5961
  );
5956
5962
  }
5957
5963
  if (this.typeVerifier?.verifyTypes(r), this.errorCount > 0) {
@@ -5960,10 +5966,10 @@ export interface ArcgisImportModules {
5960
5966
  );
5961
5967
  const c = this.errorCount - i;
5962
5968
  c > 0 && e.context.logger.error(
5963
- `${xe}${w("red", `Found ${c} ${c === 1 ? "error" : "errors"}`)}`
5969
+ `${Me}${w("red", `Found ${c} ${c === 1 ? "error" : "errors"}`)}`
5964
5970
  );
5965
5971
  }
5966
- return this.silencedBrokenLinkCount > 0 && e.context.logger.info(`${xe}Silenced ${this.silencedBrokenLinkCount} broken link errors.`), this.isRunInProgress = !1, this.produceDts && (s.dtsFiles = this.dtsFiles), s;
5972
+ return this.silencedBrokenLinkCount > 0 && e.context.logger.info(`${Me}Silenced ${this.silencedBrokenLinkCount} broken link errors.`), this.isRunInProgress = !1, this.produceDts && (s.dtsFiles = this.dtsFiles), s;
5967
5973
  };
5968
5974
  async function Bs(e, t, n) {
5969
5975
  const i = /* @__PURE__ */ new Set(), o = Array.from(n.entries());
@@ -5994,7 +6000,7 @@ function Dn(e, t) {
5994
6000
  if ("getSemanticDiagnostics" in e.program) {
5995
6001
  const n = e.builderProgram === void 0 ? a.getPreEmitDiagnostics(e.program) : e.builderProgram.getSemanticDiagnostics();
5996
6002
  n.length > 0 && (e.config.context.logger.error(
5997
- a.formatDiagnosticsWithColorAndContext(n, bt)
6003
+ a.formatDiagnosticsWithColorAndContext(n, Et)
5998
6004
  ), e.errorCount += n.length, process.exitCode = 1), e.config.types.afterDiagnostic(n), e.config.context.logger.info(
5999
6005
  `${mn}Type checked in ${w("cyan", `${t()}s`)}`
6000
6006
  );
@@ -6150,7 +6156,7 @@ const Ws = async function() {
6150
6156
  }
6151
6157
  for (const [A, L] of this.watchFiles)
6152
6158
  L.wasRemoved && (r(L, A), y = !0);
6153
- y ? f() : (Dn(this, Je()), u(void 0));
6159
+ y ? f() : (Dn(this, je()), u(void 0));
6154
6160
  }, t = a.createWatchProgram(C);
6155
6161
  } else {
6156
6162
  let S = function(C) {
@@ -6379,7 +6385,7 @@ class Ks {
6379
6385
  this.extractor = t, this.virtualCwdPath = se.join(n, "/");
6380
6386
  }
6381
6387
  verifyTypes(t) {
6382
- const n = Je();
6388
+ const n = je();
6383
6389
  _s(t, this.extractor);
6384
6390
  const i = /* @__PURE__ */ Object.create(null);
6385
6391
  i[this.virtualCwdPath + Hs] = this.getVerificationFileContents(t);
@@ -6412,16 +6418,16 @@ class Ks {
6412
6418
  return f === void 0 ? c(u) : f;
6413
6419
  };
6414
6420
  const p = l.directoryExists;
6415
- l.directoryExists = (u) => u.includes("node_modules") ? p(u) : !0, l.getCurrentDirectory = () => this.virtualCwdPath, l.getCanonicalFileName = bt.getCanonicalFileName;
6421
+ l.directoryExists = (u) => u.includes("node_modules") ? p(u) : !0, l.getCurrentDirectory = () => this.virtualCwdPath, l.getCanonicalFileName = Et.getCanonicalFileName;
6416
6422
  const d = a.createProgram({
6417
6423
  rootNames: Object.keys(i),
6418
6424
  host: l,
6419
6425
  options: r
6420
6426
  }), m = a.getPreEmitDiagnostics(d).filter(this.extractor.config.verify.filterTypeCheckDiagnostic);
6421
6427
  m.length && (this.extractor.config.context.logger.error(
6422
- a.formatDiagnosticsWithColorAndContext(m, bt)
6428
+ a.formatDiagnosticsWithColorAndContext(m, Et)
6423
6429
  ), process.exitCode = 1, this.extractor.errorCount += m.length), this.extractor.config.context.logger.info(
6424
- `${xe}Types verified with TypeScript in ${w("green", `${n()}s`)}`
6430
+ `${Me}Types verified with TypeScript in ${w("green", `${n()}s`)}`
6425
6431
  );
6426
6432
  }
6427
6433
  printTypeParameters(t, n) {
@@ -6454,7 +6460,7 @@ class Ks {
6454
6460
  return n;
6455
6461
  }
6456
6462
  }
6457
- const zs = import.meta.url.includes("node_modules") ? Zt.version : "6.0.0-next.4";
6463
+ const zs = import.meta.url.includes("node_modules") ? Zt.version : "6.0.0-next.5";
6458
6464
  class ga {
6459
6465
  /**
6460
6466
  * @public
@@ -6494,6 +6500,6 @@ class ga {
6494
6500
  }
6495
6501
  export {
6496
6502
  ga as A,
6497
- xe as l,
6503
+ Me as l,
6498
6504
  Bs as w
6499
6505
  };