@arcgis/api-extractor 5.1.0-next.9 → 5.1.0-next.90

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.
@@ -0,0 +1,3684 @@
1
+ import { path as He, existsAsync as Yt, getCwd as Di, retrievePackageJson as ct, toPosixPathSeparators as xi } from "@arcgis/components-build-utils";
2
+ import { b as Ri, p as Li, l as Ii } from "./typeScript-Bcylmvl-.js";
3
+ import { getDefaultBasePath as Zt, buildViewUrl as Ai, getViewUrl as Ue } from "./extractor/processing/links.js";
4
+ import o from "typescript";
5
+ import "fs/promises";
6
+ import { a as pe, b as ei, c as ht, g as oe, p as j, f as et, h as ti, d as Fe, e as ki, i as Gi, j as ii, k as Fi } from "./privateContext-CB7P40up.js";
7
+ import { maybeEscapePropertyName as xt, printTypeAlias as Rt, printInterface as Oi, printFunction as Ni, printVariable as wi, printClass as Ui, printMethod as Vi, printProperty as fe, printGetterSetter as Wi, printSignature as _i } from "./utils/partPrinter.js";
8
+ import { styleText as ne } from "node:util";
9
+ import { readFile as Lt, opendir as It, rm as Bi } from "node:fs/promises";
10
+ import { pathIsComponentEntrypoint as Ki, findDeclaredComponent as Hi } from "./extractor/webComponent/findComponents.js";
11
+ import { renameComponentFolder as Ve, addComponentPathMapping as $i } from "./extractor/webComponent/pathMapping.js";
12
+ import { getBasename as ee, getPackageNameFromExternalSpecifier as dt, extractInitializer as $e, extractBooleanInitializer as Z, findDecorator as De, getMemberName as xe } from "./utils/astHelpers.js";
13
+ import { readFileSync as zi, existsSync as ue } from "node:fs";
14
+ import { uncapitalize as ji, camelToKebab as Ji, kebabToPascal as qi } from "@arcgis/toolkit/string";
15
+ import { globalPackageIdentifier as Re, mergeApiNodes as Qi, isApiMethodAsync as Xi } from "./utils/apiHelpers.js";
16
+ import { identity as ve } from "@arcgis/toolkit/function";
17
+ import { pathToFileURL as Yi } from "node:url";
18
+ import Zi from "path";
19
+ import { getWidenedLiteralType as en, unsafeUndocumentedTs as tn, unsafeGetUndocumentedPrinter as nn } from "./utils/internalTypeScriptApis.js";
20
+ const At = "developers.arcgis.com", kt = "next.gha.afd.arcgis.com";
21
+ function pa(e) {
22
+ if (e.isResolvedConfig === !0)
23
+ return e;
24
+ const t = e.context, n = e.types, i = e.documentation, r = `${t?.cwd === void 0 ? Di() : He.resolve(t?.cwd)}/`, l = t?.packageJson ?? ct(r);
25
+ let s = t?.basePath ?? "src/";
26
+ s.endsWith("/") || (s += "/");
27
+ const c = "customElements" in l && "@arcgis/lumina" in (l.dependencies ?? {}), p = n?.typeCheckedExtraction ?? c, d = n?.fullTypeCheck ?? !1, m = n?.typeScriptConfig ?? (p || d ? Ri(r, n?.typeScriptConfigPath, !0) : {
28
+ configPath: "",
29
+ config: {
30
+ options: {},
31
+ fileNames: [],
32
+ errors: []
33
+ }
34
+ });
35
+ if (n?.typeScriptConfig?.config.fileNames.length === 0)
36
+ throw Error(
37
+ `${Li.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
38
+ );
39
+ const f = {
40
+ config: {
41
+ ...m.config,
42
+ options: {
43
+ ...m.config.options,
44
+ ...n?.compilerOptions
45
+ }
46
+ },
47
+ configPath: m.configPath
48
+ }, u = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${He.resolve(r, t.dtsEmitPath)}/`, v = u !== "", C = t?.environment ?? "production", g = C === "development", P = t?.emptyDtsEmitPath ?? (!g && v), h = i?.omitInternal ?? !1, R = n?.forceProduceDts ?? !1;
49
+ if (h && (v || R))
50
+ throw Error(
51
+ "omitInternal must be false if emitting .d.ts files in order to produce functional types for internal APIs."
52
+ );
53
+ return {
54
+ isResolvedConfig: !0,
55
+ context: {
56
+ dtsEmitPath: u,
57
+ emptyDtsEmitPath: P,
58
+ apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
59
+ environment: C,
60
+ cwd: r,
61
+ basePath: s,
62
+ packageJson: l,
63
+ logger: t?.logger ?? {
64
+ // We namespace manually
65
+ // eslint-disable-next-line webgis/consistent-logging
66
+ info: console.log,
67
+ // eslint-disable-next-line webgis/consistent-logging
68
+ error: console.error
69
+ },
70
+ excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
71
+ isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
72
+ includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1,
73
+ supportApplyMixinsSyntax: t?.supportApplyMixinsSyntax ?? !1
74
+ },
75
+ types: {
76
+ typeCheckedExtraction: p,
77
+ fullTypeCheck: d,
78
+ afterDiagnostic: n?.afterDiagnostic ?? ve,
79
+ typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? ve,
80
+ typeScriptConfigPath: m.configPath,
81
+ typeScriptConfig: f,
82
+ compilerOptions: f.config.options,
83
+ declarationTextTransformers: n?.declarationTextTransformers ?? [],
84
+ typeReplacements: n?.typeReplacements ?? {},
85
+ forceProduceDts: R
86
+ },
87
+ documentation: {
88
+ copyDocDefinitions: i?.copyDocDefinitions ?? {},
89
+ noInheritMembers: i?.noInheritMembers ?? {},
90
+ omitInternal: h,
91
+ publicStoryUrlPrefix: i?.publicStoryUrlPrefix ?? !1,
92
+ getComponentDocsUrl: i?.getComponentDocsUrl ?? !1,
93
+ getComponentDemoUrl: i?.getComponentDemoUrl ?? !1,
94
+ host: i?.host ?? (g ? kt : At),
95
+ alternativeHost: i?.alternativeHost ?? (g ? At : kt),
96
+ basePath: i?.basePath ?? Zt(l.name.split("/").at(-1))
97
+ },
98
+ verify: {
99
+ typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
100
+ filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
101
+ detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
102
+ },
103
+ watch: {
104
+ onUpdate: e.watch?.onUpdate ?? ve,
105
+ // Many reads can happen in a short time (on folder moves, or if prettier re-runs)
106
+ // Shorter than TypeScript's default of 250ms as we are blocked until this
107
+ // timeout is complete. Short timeout for unchecked extraction as it is fast,
108
+ // so doesn't need long debounce.
109
+ debounceTime: e.watch?.debounceTime ?? (p || d ? 50 : 20),
110
+ clearScreen: e.watch?.clearScreen ?? !1,
111
+ skipWritingUnchanged: P ? !1 : e.watch?.skipWritingUnchanged ?? !0
112
+ },
113
+ strict: e.strict ?? !c,
114
+ afterApiJsonCreate: e.afterApiJsonCreate ?? ve
115
+ };
116
+ }
117
+ async function ma(e = process.cwd(), t) {
118
+ const n = t !== void 0, i = He.resolve(e, t ?? "api-extractor.config.ts"), a = await Yt(i);
119
+ if (n && !a)
120
+ throw Error(`The provided config file at ${i} does not exist.`);
121
+ if (!a)
122
+ return {};
123
+ const r = (await import(Yi(i).href)).config;
124
+ return {
125
+ ...r,
126
+ context: {
127
+ ...r.context,
128
+ cwd: r.context?.cwd ?? He.dirname(i)
129
+ }
130
+ };
131
+ }
132
+ function ua(e, t) {
133
+ const n = e.context, i = t.context, a = e.types, r = t.types, l = e.documentation, s = t.documentation, c = e.verify, p = t.verify, d = e.watch, m = t.watch;
134
+ return {
135
+ isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
136
+ context: {
137
+ dtsEmitPath: i?.dtsEmitPath ?? n?.dtsEmitPath,
138
+ emptyDtsEmitPath: i?.emptyDtsEmitPath ?? n?.emptyDtsEmitPath,
139
+ apiJsonEmitPath: i?.apiJsonEmitPath ?? n?.apiJsonEmitPath,
140
+ environment: i?.environment ?? n?.environment,
141
+ cwd: i?.cwd ?? n?.cwd,
142
+ basePath: i?.basePath ?? n?.basePath,
143
+ packageJson: i?.packageJson ?? n?.packageJson,
144
+ logger: i?.logger ?? n?.logger,
145
+ excludedDirectories: i?.excludedDirectories ?? n?.excludedDirectories,
146
+ isLuminaMinimalExtraction: i?.isLuminaMinimalExtraction ?? n?.isLuminaMinimalExtraction,
147
+ includeLuminaPrivateComponents: i?.includeLuminaPrivateComponents ?? n?.includeLuminaPrivateComponents,
148
+ supportApplyMixinsSyntax: i?.supportApplyMixinsSyntax ?? n?.supportApplyMixinsSyntax ?? !1
149
+ },
150
+ types: {
151
+ typeCheckedExtraction: r?.typeCheckedExtraction ?? a?.typeCheckedExtraction,
152
+ fullTypeCheck: r?.fullTypeCheck ?? a?.fullTypeCheck,
153
+ afterDiagnostic: Oe(r?.afterDiagnostic, a?.afterDiagnostic),
154
+ typeScriptInstanceCreated: Oe(
155
+ t?.types?.typeScriptInstanceCreated,
156
+ e?.types?.typeScriptInstanceCreated
157
+ ),
158
+ typeScriptConfigPath: r?.typeScriptConfigPath ?? a?.typeScriptConfigPath,
159
+ typeScriptConfig: r?.typeScriptConfig ?? a?.typeScriptConfig,
160
+ compilerOptions: r?.compilerOptions ?? a?.compilerOptions,
161
+ declarationTextTransformers: r?.declarationTextTransformers !== void 0 && a?.declarationTextTransformers !== void 0 ? [...a.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? a?.declarationTextTransformers,
162
+ typeReplacements: r?.typeReplacements ?? a?.typeReplacements,
163
+ forceProduceDts: r?.forceProduceDts ?? a?.forceProduceDts
164
+ },
165
+ documentation: {
166
+ copyDocDefinitions: s?.copyDocDefinitions ?? l?.copyDocDefinitions,
167
+ noInheritMembers: s?.noInheritMembers ?? l?.noInheritMembers,
168
+ omitInternal: s?.omitInternal ?? l?.omitInternal,
169
+ publicStoryUrlPrefix: s?.publicStoryUrlPrefix ?? l?.publicStoryUrlPrefix,
170
+ getComponentDocsUrl: s?.getComponentDocsUrl ?? l?.getComponentDocsUrl,
171
+ getComponentDemoUrl: s?.getComponentDemoUrl ?? l?.getComponentDemoUrl,
172
+ host: s?.host ?? l?.host,
173
+ alternativeHost: s?.alternativeHost ?? l?.alternativeHost,
174
+ basePath: s?.basePath ?? l?.basePath
175
+ },
176
+ verify: {
177
+ typeCheckTypes: p?.typeCheckTypes ?? c?.typeCheckTypes,
178
+ filterTypeCheckDiagnostic: p?.filterTypeCheckDiagnostic ?? c?.filterTypeCheckDiagnostic,
179
+ detectBrokenLinks: p?.detectBrokenLinks ?? c?.detectBrokenLinks
180
+ },
181
+ watch: {
182
+ onUpdate: Oe(m?.onUpdate, d?.onUpdate),
183
+ debounceTime: m?.debounceTime ?? d?.debounceTime,
184
+ clearScreen: m?.clearScreen ?? d?.clearScreen,
185
+ skipWritingUnchanged: m?.skipWritingUnchanged ?? d?.skipWritingUnchanged
186
+ },
187
+ strict: t.strict ?? e.strict,
188
+ afterApiJsonCreate: Oe(t.afterApiJsonCreate, e.afterApiJsonCreate)
189
+ };
190
+ }
191
+ function Oe(e, t) {
192
+ const n = t === ve ? void 0 : t, i = e === ve ? void 0 : e;
193
+ return n !== void 0 && i !== void 0 ? ((...a) => (n(...a), i(...a))) : i ?? n;
194
+ }
195
+ function Te(e) {
196
+ const t = [], n = e, i = e;
197
+ if (e.deprecated && t.push({
198
+ name: "deprecated",
199
+ text: e.deprecated === !0 ? void 0 : e.deprecated
200
+ }), n.default && t.push({
201
+ name: "default",
202
+ text: n.default
203
+ }), i.return !== void 0) {
204
+ const l = i.parameters;
205
+ if (l !== void 0)
206
+ for (let s = 0; s < l.length; ++s) {
207
+ const c = l[s];
208
+ t.push({
209
+ name: "param",
210
+ // Add hyphen as required by TSDoc
211
+ text: `${c.name}${c.description ? ` - ${c.description}` : ""}`
212
+ });
213
+ }
214
+ i.return.description && t.push({
215
+ name: "returns",
216
+ text: i.return.description
217
+ });
218
+ }
219
+ const a = e;
220
+ if (a.customElement === !0) {
221
+ if (a.cssProperties !== void 0)
222
+ for (const l of a.cssProperties)
223
+ t.push({
224
+ name: "cssproperty",
225
+ text: Ne(l)
226
+ });
227
+ if (a.cssParts !== void 0)
228
+ for (const l of a.cssParts)
229
+ t.push({
230
+ name: "csspart",
231
+ text: Ne(l)
232
+ });
233
+ if (a.cssStates !== void 0)
234
+ for (const l of a.cssStates)
235
+ t.push({
236
+ name: "cssstate",
237
+ text: Ne(l)
238
+ });
239
+ if (a.slots !== void 0)
240
+ for (const l of a.slots)
241
+ t.push({
242
+ name: "slot",
243
+ text: Ne(l)
244
+ });
245
+ }
246
+ e.docsTags !== void 0 && t.push(...e.docsTags);
247
+ const r = e.description ?? "";
248
+ if (!(t.length === 0 && r.length === 0))
249
+ return {
250
+ description: r,
251
+ docsTags: t
252
+ };
253
+ }
254
+ function Ne(e) {
255
+ const t = e, n = e.name + (t.default !== void 0 ? `=${t.default}` : ""), i = n.length > 0 ? `[${n}]` : "", a = e.description ?? "", r = a.length > 0 ? ` - ${a}` : "";
256
+ return `${i}${r}`;
257
+ }
258
+ function on(e) {
259
+ const t = e.description ?? "", n = t.length === 0, i = e.docsTags, a = (
260
+ // Has 2+ tags, or multi-line description, or single tag and single line description
261
+ i.length + (n ? 0 : t.includes(`
262
+ `) ? 2 : 1) > 1 || // Has a single tag, but that tag is multi-line
263
+ i[0]?.text?.includes(`
264
+ `) === !0
265
+ );
266
+ let r = "*";
267
+ n ? a || (r += " ") : (a ? (r += `
268
+ * `, r += Gt(t)) : r += ` ${t.replaceAll(" @", " \\@")}`, i.length > 0 && (r += `
269
+ *`));
270
+ for (let l = 0; l < i.length; ++l) {
271
+ const s = i[l], c = `@${s.name}`, p = s.text ?? "";
272
+ r += `${a ? `
273
+ * ` : ""}${c}`, p.includes(`
274
+ `) ? (s.name === "returns" || s.name === "param" ? r += " " : r += `
275
+ * `, r += Gt(p)) : p.length > 0 && (r += ` ${p.replaceAll(" @", " \\@")}`);
276
+ }
277
+ return r += a ? `
278
+ ` : " ", r;
279
+ }
280
+ const ot = 10, an = 32, rn = 64;
281
+ function Gt(e) {
282
+ let t = "";
283
+ const n = e.length;
284
+ let i = 0;
285
+ for (let a = 0; a < n; ++a) {
286
+ const r = e.charCodeAt(a);
287
+ if (r === ot)
288
+ t += e.slice(i, a), e.charCodeAt(a + 1) === ot ? t += `
289
+ *` : t += `
290
+ * `, i = a + 1;
291
+ else if (r === rn) {
292
+ const l = a === 0 ? 0 : e.charCodeAt(a - 1);
293
+ (a === 0 || l === an || l === ot) && (t += e.slice(i, a), t += "\\@", i = a + 1);
294
+ }
295
+ }
296
+ return i < n && (t += e.slice(i)), t;
297
+ }
298
+ function J(e, t, n) {
299
+ const i = o.getLeadingCommentRanges(n.file.text, e.pos);
300
+ if (i === void 0)
301
+ return;
302
+ let a;
303
+ for (const l of i) {
304
+ const s = n.file.text.slice(l.pos, l.end);
305
+ s.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
306
+ `Found multiple JSDoc comments for the same node. This is not allowed.
307
+ If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#module-level-documentation
308
+ If this is meant to be a function overload, read the documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#function-overloads`,
309
+ {
310
+ file: n.file,
311
+ node: e
312
+ }
313
+ ), a = s);
314
+ }
315
+ if (a === void 0)
316
+ return;
317
+ const r = n.config.documentation.omitInternal;
318
+ if (!(t && !a.includes("* @public") && (r || !a.includes("* @internal"))))
319
+ return sn(a, t, r, n);
320
+ }
321
+ function sn(e, t, n, i) {
322
+ const a = e.length - 2;
323
+ let r = 3, l = "";
324
+ const s = [];
325
+ let c, p, d = !1;
326
+ for (; r < a; ) {
327
+ let m = e.indexOf(`
328
+ `, r);
329
+ m === -1 && (m = a);
330
+ let f = e.slice(r, m).trim();
331
+ if (r = m + 1, f === "*" ? f = "" : f.startsWith("*") && (f[1] === " " ? f = f.slice(2) : i.config.strict ? i.emitError(
332
+ `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
333
+ {
334
+ file: i.file,
335
+ node: void 0
336
+ }
337
+ ) : f = f.slice(1)), f.startsWith("@")) {
338
+ c !== void 0 && !d && s.push(
339
+ U[c] ?? {
340
+ name: c,
341
+ text: p.trim().replaceAll("\\@", "@") || void 0
342
+ }
343
+ );
344
+ const u = f.indexOf(" "), v = u === -1 ? f.slice(1) : f.slice(1, u);
345
+ if (v === "internal") {
346
+ if (n)
347
+ return;
348
+ t = !1;
349
+ } else v === "public" ? (t = !1, d = !0) : d = v === "privateRemarks";
350
+ const C = u === -1 ? "" : f.slice(u + 1);
351
+ c = v, p = C;
352
+ } else c !== void 0 ? p = `${p}
353
+ ${f}` : l += `${f}
354
+ `;
355
+ }
356
+ if (!t)
357
+ return c !== void 0 && !d && s.push(
358
+ U[c] ?? {
359
+ name: c,
360
+ text: p.trim().replaceAll("\\@", "@") || void 0
361
+ }
362
+ ), {
363
+ description: l.trim().replaceAll("\\@", "@") || void 0,
364
+ docsTags: s
365
+ };
366
+ }
367
+ function ln(e, t) {
368
+ for (let n = 0; n < t.docsTags.length; ++n) {
369
+ const i = t.docsTags[n], { name: a, text: r } = i;
370
+ a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
371
+ }
372
+ e.description = t.description;
373
+ }
374
+ function ni(e, t) {
375
+ for (let n = 0; n < t.docsTags.length; ++n) {
376
+ const i = t.docsTags[n], { name: a, text: r } = i;
377
+ if (a === "deprecated")
378
+ e.deprecated = r || !0;
379
+ else if (i === U.private)
380
+ e.privacy = "private";
381
+ else if (a === "csspart")
382
+ e.cssParts ??= [], e.cssParts.push(at(r));
383
+ else if (a === "cssstate")
384
+ e.cssStates ??= [], e.cssStates.push(at(r));
385
+ else if (a === "slot")
386
+ e.slots ??= [], e.slots.push(at(r));
387
+ else if (a === "esriCompatibilityName") {
388
+ const l = pe(e);
389
+ l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
390
+ } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
391
+ }
392
+ e.description = t.description;
393
+ }
394
+ function cn(e, t) {
395
+ const n = e, i = [];
396
+ for (let a = 0; a < t.docsTags.length; ++a) {
397
+ const r = t.docsTags[a], { name: l, text: s } = r;
398
+ if (l === "deprecated")
399
+ e.deprecated = s || !0;
400
+ else if (r === U.private)
401
+ e.privacy = "private";
402
+ else if (l === "param")
403
+ i.push(r);
404
+ else if (l === "returns")
405
+ n.return.description = r.text;
406
+ else if (l === "esriCompatibilityName") {
407
+ const c = ht(e);
408
+ c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
409
+ } else
410
+ e.docsTags ??= [], e.docsTags.push(r);
411
+ }
412
+ return e.description = t.description, i;
413
+ }
414
+ function dn(e, t) {
415
+ for (let n = 0; n < t.docsTags.length; ++n) {
416
+ const i = t.docsTags[n], { name: a, text: r } = i;
417
+ a === "deprecated" ? e.deprecated = r || !0 : a === "default" ? e.default = r : i === U.readonly ? e.readonly = !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
418
+ }
419
+ e.description = t.description;
420
+ }
421
+ function pn(e, t) {
422
+ for (let n = 0; n < t.docsTags.length; ++n) {
423
+ const i = t.docsTags[n], { name: a, text: r } = i;
424
+ if (a === "deprecated")
425
+ e.deprecated = r || !0;
426
+ else if (a === "default")
427
+ e.default = r;
428
+ else if (a !== "readonly") if (a === "esriCompatibilityName") {
429
+ const l = ei(e);
430
+ l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
431
+ } else
432
+ e.docsTags ??= [], e.docsTags.push(i);
433
+ }
434
+ e.description = t.description;
435
+ }
436
+ function mn(e, t) {
437
+ for (let n = 0; n < t.docsTags.length; ++n) {
438
+ const i = t.docsTags[n], { name: a, text: r } = i;
439
+ a === "deprecated" ? e.deprecated = r || !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
440
+ }
441
+ e.description = t.description;
442
+ }
443
+ function at(e) {
444
+ if (e === void 0)
445
+ return {
446
+ name: "",
447
+ deprecated: void 0,
448
+ summary: void 0,
449
+ description: void 0,
450
+ syntax: void 0,
451
+ default: void 0
452
+ };
453
+ const t = e.indexOf(" - ");
454
+ if (t === -1)
455
+ return e.startsWith("- ") ? {
456
+ name: "",
457
+ deprecated: void 0,
458
+ summary: void 0,
459
+ description: e.slice(2),
460
+ syntax: void 0,
461
+ default: void 0
462
+ } : {
463
+ name: e,
464
+ deprecated: void 0,
465
+ summary: void 0,
466
+ description: void 0,
467
+ syntax: void 0,
468
+ default: void 0
469
+ };
470
+ let n, i = e.slice(0, t);
471
+ if (i.startsWith("[") && i.endsWith("]")) {
472
+ const r = i.slice(1, -1), l = r.indexOf("=");
473
+ i = r.slice(0, l), n = r.slice(l + 1);
474
+ }
475
+ const a = e.slice(t + 3);
476
+ return {
477
+ name: i,
478
+ deprecated: void 0,
479
+ summary: void 0,
480
+ description: a,
481
+ syntax: void 0,
482
+ default: n
483
+ };
484
+ }
485
+ const U = {
486
+ // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
487
+ // eslint-disable-next-line @typescript-eslint/naming-convention
488
+ __proto__: null,
489
+ internal: { name: "internal", text: void 0 },
490
+ private: { name: "private", text: void 0 },
491
+ copyDoc: { name: "copyDoc", text: void 0 },
492
+ beta: { name: "beta", text: void 0 },
493
+ experimental: { name: "experimental", text: void 0 },
494
+ readonly: { name: "readonly", text: void 0 },
495
+ required: { name: "required", text: void 0 }
496
+ }, ze = {
497
+ description: void 0,
498
+ docsTags: []
499
+ }, Ce = {
500
+ description: void 0,
501
+ docsTags: [U.private]
502
+ };
503
+ function un(e, t, n) {
504
+ switch (t.path) {
505
+ case "layers/FeatureLayer": {
506
+ const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
507
+ if (a === -1)
508
+ return n.emitError(
509
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
510
+ { file: oe(t).file, node: void 0 }
511
+ ), e;
512
+ const r = 'get type(): "feature";', l = e.indexOf(r);
513
+ if (l === -1)
514
+ return n.emitError(
515
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
516
+ { file: oe(t).file, node: void 0 }
517
+ ), e;
518
+ const s = l + r.length, c = e.lastIndexOf("/**", l);
519
+ if (c === -1)
520
+ return n.emitError(
521
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
522
+ { file: oe(t).file, node: void 0 }
523
+ ), e;
524
+ const p = `export default class FeatureLayer extends __FeatureLayerSansType {
525
+ ${e.slice(c, s)}
526
+ }
527
+ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
528
+ return e.slice(0, a) + p + e.slice(a + i.length, c) + e.slice(s);
529
+ }
530
+ case "layers/OrientedImageryLayer": {
531
+ const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
532
+ `, a = `extends FeatureLayer {
533
+ `, r = e.indexOf(a);
534
+ return r === -1 ? (n.emitError(
535
+ `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
536
+ { file: oe(t).file, node: void 0 }
537
+ ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
538
+ ` + e.slice(r + a.length);
539
+ }
540
+ case "widgets/support/widget":
541
+ return e + `
542
+
543
+ export namespace tsx {
544
+ namespace JSX {
545
+ interface IntrinsicElements {
546
+ [elementName: string]: any;
547
+ }
548
+
549
+ interface Element {
550
+ }
551
+ }
552
+ }`;
553
+ default:
554
+ return e;
555
+ }
556
+ }
557
+ function fa(e, t) {
558
+ let n = `/// <reference types="../index.d.ts" />
559
+ `, i = `
560
+
561
+ `, a = "", r = "", l = "", s = "", c = "", p = "", d = "", m = "", f = "", u = "", v = "", C = "";
562
+ for (let S = 0; S < e.length; ++S) {
563
+ const x = e[S];
564
+ for (let A = 0; A < x.declarations.length; ++A) {
565
+ const V = x.declarations[A];
566
+ if (V.customElement !== !0)
567
+ continue;
568
+ const W = V;
569
+ if (W.privacy !== void 0 || pe(W).hasExplicitAbstract === !0)
570
+ continue;
571
+ const { name: G, tagName: O, pascalCaseName: F, events: B } = W;
572
+ i += `import type { ${G} } from "./${x.path}/customElement.js";
573
+ `, n += `import type { ${G} } from "../${x.path}/customElement.js";
574
+ `;
575
+ const [me, ke] = fn(W.name, W.members);
576
+ let ie = "", Q = "";
577
+ if (B !== void 0) {
578
+ for (let de = 0; de < B.length; ++de) {
579
+ const Ge = B[de], Dt = `EventHandler<${G}["${Ge.name}"]>`;
580
+ ie += ` ${xt(`on${Ge.name}`)}?: ${Dt};
581
+ `, Q += ` ${xt(`on${Ge.name[0].toUpperCase()}${Ge.name.slice(1)}`)}?: ${Dt};
582
+ `;
583
+ }
584
+ a += `export interface ${F}CustomEvent<T> extends CustomEvent<T> {
585
+ detail: T;
586
+ target: ${G};
587
+ currentTarget: ${G};
588
+ }
589
+ `, r += ` type HTML${F}ElementEventMap = ${G}["@eventTypes"];
590
+ `;
591
+ }
592
+ r += ` type HTML${F}Element = ${G};
593
+
594
+ `, l += ` "${O}": ${G};
595
+ `, s += `interface Lumina${F} extends ${me}h.JSX.HTMLAttributes<${G}> {
596
+ ${ie}}
597
+
598
+ `, c += ` "${O}": Lumina${F};
599
+ `, p += `interface Preact${F} extends ${me}HTMLAttributes<${G}> {
600
+ ${ie}}
601
+
602
+ `, d += ` "${O}": Preact${F};
603
+ `, m += `interface React${F} extends ${me}HTMLProps<${G}> {
604
+ ${ie}}
605
+
606
+ `, f += ` "${O}": React${F};
607
+ `, u += `interface Stencil${F} extends ${me}StencilJsx.HTMLAttributes<${G}> {
608
+ ${Q}}
609
+
610
+ `, v += ` "${O}": Stencil${F};
611
+ `, ke !== "" && (C += ke);
612
+ }
613
+ }
614
+ if (r === "") {
615
+ t.vanillaComponentTypes = "";
616
+ return;
617
+ }
618
+ const g = "@arcgis/lumina";
619
+ t.vanillaComponentTypes = `${i}
620
+ export { ToEvents, TargetedEvent } from "${g}";
621
+
622
+ ${a}
623
+
624
+ declare global {
625
+ interface HTMLElementTagNameMap {
626
+ ${l}
627
+ }
628
+
629
+ ${r}
630
+ }`;
631
+ const P = `import "./index.js";
632
+ export declare const defineCustomElements: import("${g}").DefineCustomElements;`, h = `${t.config.context.dtsEmitPath}loader.d.ts`;
633
+ t.dtsFiles.set(h, P);
634
+ const R = `${n}import type { h, EventHandler } from "${g}";
635
+
636
+ ${C}${s}declare module "@arcgis/lumina" {
637
+ export namespace h.JSX {
638
+ interface IntrinsicElements {
639
+ ${c} }
640
+ }
641
+ }`, L = ` interface IntrinsicElements {
642
+ ${d} }`, y = `${n}import { HTMLAttributes } from "preact";
643
+ import type { EventHandler } from "${g}";
644
+
645
+ ${C}${p}declare module 'preact' {
646
+ namespace createElement.JSX {
647
+ ${L}
648
+ }
649
+ namespace h.JSX {
650
+ ${L}
651
+ }
652
+ }`, k = `
653
+ namespace JSX {
654
+ interface IntrinsicElements {
655
+ ${f} }
656
+ }
657
+ `, M = `${n}import type { HTMLProps } from 'react';
658
+ import type { EventHandler } from "${g}";
659
+
660
+ ${C}${m}declare module "react" {${k}}
661
+ declare module "react/jsx-runtime" {${k}}
662
+ declare module "react/jsx-dev-runtime" {${k}}`, I = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
663
+ import type { EventHandler } from "${g}";
664
+
665
+ ${C}${u}interface ExposedElements {
666
+ ${v}}
667
+
668
+ export namespace JSX {
669
+ export interface IntrinsicElements extends ExposedElements {}
670
+ }
671
+
672
+ declare module "@stencil/core/internal/stencil-public-runtime" {
673
+ export namespace h.JSX {
674
+ interface IntrinsicElements extends ExposedElements {}
675
+ }
676
+ }`, D = `/** @deprecated import from stencil.d.ts instead */
677
+ export * from "./stencil.js";`, T = `${t.config.context.dtsEmitPath}types/`, _ = `${T}lumina.d.ts`, N = `${T}preact.d.ts`, q = `${T}react.d.ts`, K = `${T}stencil.d.ts`, E = `${T}components.d.ts`;
678
+ t.dtsFiles.set(_, R), t.dtsFiles.set(N, y), t.dtsFiles.set(q, M), t.dtsFiles.set(K, I), t.dtsFiles.set(E, D);
679
+ }
680
+ function fn(e, t) {
681
+ const n = [], i = [];
682
+ let a = !1;
683
+ if (t !== void 0)
684
+ for (let s = 0; s < t.length; ++s) {
685
+ const c = t[s];
686
+ if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
687
+ continue;
688
+ if (c.getterType !== void 0) {
689
+ a = !0;
690
+ continue;
691
+ }
692
+ c.docsTags?.includes(U.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
693
+ }
694
+ let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
695
+ i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
696
+ const l = a ? `type ${e}SetterTypes = ${e}["${oi}"];
697
+ ` : "";
698
+ return [r.length === 0 ? "" : `${r}, `, l];
699
+ }
700
+ function ya(e, t) {
701
+ const n = t.moduleMap.get("index");
702
+ if (n === void 0)
703
+ e.unshift(yn);
704
+ else {
705
+ const i = oe(n);
706
+ i.index.named.getAssetPath === void 0 && n.declarations.push(ai), i.index.named.setAssetPath === void 0 && n.declarations.push(ri);
707
+ }
708
+ }
709
+ const oi = "@setterTypes", ai = {
710
+ [j]: et(),
711
+ kind: "function",
712
+ name: "getAssetPath",
713
+ static: void 0,
714
+ deprecated: void 0,
715
+ summary: void 0,
716
+ description: "Get a resolved path from where an asset can be loaded.",
717
+ docsTags: void 0,
718
+ typeParameters: void 0,
719
+ parameters: [
720
+ {
721
+ name: "suffix",
722
+ deprecated: void 0,
723
+ summary: void 0,
724
+ description: "The relative path for the asset.",
725
+ docsTags: void 0,
726
+ optional: void 0,
727
+ rest: void 0,
728
+ type: {
729
+ text: "string",
730
+ references: void 0,
731
+ values: void 0,
732
+ source: void 0
733
+ },
734
+ default: void 0
735
+ }
736
+ ],
737
+ return: {
738
+ summary: void 0,
739
+ description: void 0,
740
+ type: {
741
+ text: "string",
742
+ references: void 0,
743
+ values: void 0,
744
+ source: void 0
745
+ }
746
+ },
747
+ inheritedFrom: void 0,
748
+ signature: void 0,
749
+ privacy: void 0,
750
+ source: void 0
751
+ }, ri = {
752
+ [j]: et(),
753
+ kind: "function",
754
+ name: "setAssetPath",
755
+ static: void 0,
756
+ deprecated: void 0,
757
+ summary: void 0,
758
+ description: `Used to manually set the base path where package assets (like localization
759
+ and icons) can be found.
760
+
761
+ By default, the package assets are loaded from
762
+ \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
763
+ our assets on a CDN (Content Delivery Network) to ensure fast and reliable
764
+ access. It is CORS-enabled, so you can load the assets from any domain. This
765
+ is the recommended way to load the assets and avoid bundling them with your
766
+ application.
767
+
768
+ However, if you need to host the assets locally, you can copy them manually
769
+ as part of your build process and use \`setAssetPath\` to customize where the
770
+ browser will load the assets from.`,
771
+ docsTags: void 0,
772
+ typeParameters: void 0,
773
+ parameters: [
774
+ {
775
+ name: "path",
776
+ deprecated: void 0,
777
+ summary: void 0,
778
+ description: "Relative or absolute path to the assets folder.",
779
+ docsTags: void 0,
780
+ optional: void 0,
781
+ rest: void 0,
782
+ type: {
783
+ text: "URL | string",
784
+ references: [
785
+ {
786
+ name: "URL",
787
+ module: void 0,
788
+ package: "global:",
789
+ viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
790
+ start: 0,
791
+ end: 3
792
+ }
793
+ ],
794
+ values: void 0,
795
+ source: void 0
796
+ },
797
+ default: void 0
798
+ }
799
+ ],
800
+ return: {
801
+ summary: void 0,
802
+ description: void 0,
803
+ type: {
804
+ text: "void",
805
+ references: void 0,
806
+ values: void 0,
807
+ source: void 0
808
+ }
809
+ },
810
+ inheritedFrom: void 0,
811
+ signature: void 0,
812
+ privacy: void 0,
813
+ source: void 0
814
+ }, si = ti(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
815
+ si.importsText = "";
816
+ const yn = {
817
+ [j]: si,
818
+ kind: "javascript-module",
819
+ path: "index",
820
+ sourcePath: "src/index.ts",
821
+ deprecated: void 0,
822
+ description: void 0,
823
+ docsTags: void 0,
824
+ summary: void 0,
825
+ declarations: [ai, ri],
826
+ exports: void 0
827
+ };
828
+ function ga(e, t) {
829
+ const n = Te(e), i = he(n), a = oe(e);
830
+ if (a.index.class?.privacy !== void 0)
831
+ return e.declarations.length > 1 && t.emitError(
832
+ `Did not expect to find any public declarations in a module that declares a private web component. Found: ${e.declarations.filter((s) => s !== a.index.class).map((s) => s.name).join(", ")}`,
833
+ { file: a.file, node: void 0 }
834
+ ), "";
835
+ let r = `${i}${a.importsText}`;
836
+ if (r !== "" && (r += `
837
+ `), a.reExports !== void 0) {
838
+ for (let s = 0; s < a.reExports.length; ++s) {
839
+ const c = a.reExports[s];
840
+ let p = "";
841
+ if (c.specifiers[0].exportName === "*") {
842
+ const d = c.specifiers[0];
843
+ p = (c.isTypeOnly ? "type *" : "*") + (d.aliasName ? ` as ${d.aliasName}` : "");
844
+ } else {
845
+ for (let d = 0; d < c.specifiers.length; ++d) {
846
+ const m = c.specifiers[d];
847
+ p += (d === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + m.exportName + (m.aliasName ? ` as ${m.aliasName}` : "");
848
+ }
849
+ p += " }";
850
+ }
851
+ r += `export ${p} from "${c.specifier}";
852
+ `;
853
+ }
854
+ r += `
855
+ `;
856
+ }
857
+ if (a.namespaces !== void 0)
858
+ for (let s = 0; s < a.namespaces.length; ++s)
859
+ r += `${a.namespaces[s]}
860
+
861
+ `;
862
+ const l = e.declarations;
863
+ a.constructorPropertiesInterface !== void 0 && (r += `${Ft(a.constructorPropertiesInterface)}
864
+
865
+ `);
866
+ for (let s = 0; s < l.length; ++s) {
867
+ const c = l[s];
868
+ r += Ft(c), s < l.length - 1 && (r += `
869
+
870
+ `);
871
+ }
872
+ return t.isJsApi ? un(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
873
+ ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
874
+ }
875
+ function he(e) {
876
+ return e === void 0 ? "" : `/*${on(e)}*/
877
+ `;
878
+ }
879
+ function Ft(e) {
880
+ let t = Te(e), n = "";
881
+ if (e.kind === "class" || e.kind === "mixin")
882
+ n = Ot(e);
883
+ else if (e.kind === "interface") {
884
+ const a = pe(e);
885
+ if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
886
+ const l = e.members[0];
887
+ let s = li(l, !0);
888
+ const c = Te(l)?.docsTags;
889
+ c !== void 0 && (t = {
890
+ description: t?.description,
891
+ docsTags: [...c, ...t?.docsTags ?? []]
892
+ });
893
+ const p = s.indexOf("): ");
894
+ s = `${s.slice(0, p)}) => ${s.slice(p + 3, -1)}`, n = Rt(e.name, e.typeParameters, void 0, s);
895
+ } else if (a.isMixinBaseClass === !0)
896
+ n = Ot(e);
897
+ else if (a.emitAsTypeAlias === !0) {
898
+ let l = e.type?.text;
899
+ const s = pt(e);
900
+ s !== "" ? l = l === void 0 ? `{${s}}` : `${l} & {${s}}` : l === void 0 && e.supertypes === void 0 && (l = "{}"), n = Rt(e.name, e.typeParameters, e.supertypes, l);
901
+ } else {
902
+ const l = pt(e);
903
+ n = Oi(
904
+ a.isDefaultExported === !0,
905
+ e.name,
906
+ e.typeParameters,
907
+ e.supertypes,
908
+ l
909
+ );
910
+ }
911
+ } else if (e.kind === "function") {
912
+ const a = ht(e);
913
+ n = Ni(
914
+ a.isDefaultExported === !0,
915
+ e.name,
916
+ e.typeParameters,
917
+ e.parameters,
918
+ e.return.type.text
919
+ );
920
+ } else if (e.kind === "variable") {
921
+ const a = ei(e);
922
+ n += wi(a.isDefaultExported === !0, e.name, e.type.text);
923
+ }
924
+ return `${he(t)}${n}`;
925
+ }
926
+ function Ot(e) {
927
+ const t = pe(e), n = t.isDefaultExported === !0, i = pt(e), a = e, r = e;
928
+ let l, s = a.mixins ?? r.supertypes;
929
+ s === void 0 ? a.superclass !== void 0 && (l = Fe(a.superclass)) : a.superclass === void 0 && s.length === 1 ? (l = Fe(s[0]), s = void 0) : l = `${e.name}Superclass`;
930
+ let c = Ui(
931
+ t.hasExplicitAbstract !== void 0,
932
+ n,
933
+ e.name,
934
+ e.typeParameters,
935
+ l,
936
+ i
937
+ );
938
+ if (s !== void 0) {
939
+ c += `
940
+ declare const ${l}:`, a.superclass !== void 0 && (c += ` typeof ${Fe(a.superclass)}`);
941
+ for (let p = 0; p < s.length; ++p) {
942
+ const d = s[p];
943
+ c += ` & typeof ${Fe(d)}`;
944
+ }
945
+ }
946
+ return c;
947
+ }
948
+ function pt(e) {
949
+ const t = e.members;
950
+ let n = "";
951
+ const i = pe(e);
952
+ if (e.kind === "mixin" && (n += `constructor(...args: any[]);
953
+ `), i.eventTypesProperty !== void 0) {
954
+ let l = vn;
955
+ if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
956
+ const c = Te(i.eventTypesProperty);
957
+ l = he(c);
958
+ }
959
+ const s = Nt(i.eventTypesProperty);
960
+ n += `${l}${s}
961
+ `;
962
+ }
963
+ const a = e, r = e.customElement === !0;
964
+ if (t !== void 0) {
965
+ let l = "";
966
+ for (let s = 0; s < t.length; ++s) {
967
+ const c = t[s];
968
+ if (c.inheritedFrom !== void 0 || c.privacy === "private")
969
+ continue;
970
+ const d = Te(c);
971
+ n += he(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${fe(!1, !1, !1, !1, !1, c.docsTags?.includes(U.required) !== !0, c.name, c.type.text)}
972
+ `), n += Nt(c)) : n += li(c, !1), n += `
973
+ `;
974
+ }
975
+ l !== "" && (n += `${fe(!1, !1, !1, !1, !1, !1, oi, `{
976
+ ${l}}`)}
977
+ `);
978
+ }
979
+ if (r && a.events !== void 0) {
980
+ let l = e.name;
981
+ if (e.typeParameters !== void 0) {
982
+ l += "<";
983
+ for (let c = 0; c < e.typeParameters.length; ++c)
984
+ l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
985
+ l += ">";
986
+ }
987
+ let s = "";
988
+ for (let c = 0; c < a.events.length; ++c) {
989
+ const p = a.events[c];
990
+ if (p.inheritedFrom === void 0) {
991
+ const d = Te(p);
992
+ n += `${he(d)}${fe(!1, !1, !1, !0, !1, !1, p.name, `import("${gn}").TargetedEvent<this, ${p.type.text}>`)}
993
+ `;
994
+ }
995
+ s += ` ${fe(!1, !1, !1, !1, !1, !1, p.name, `${l}["${p.name}"]["detail"]`)}
996
+ `;
997
+ }
998
+ n += `${fe(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
999
+ ${s}}`)}
1000
+ `;
1001
+ }
1002
+ return n === "" ? "" : `
1003
+ ${n.replaceAll(`
1004
+ `, `
1005
+ `).slice(0, -2)}`;
1006
+ }
1007
+ const gn = "@arcgis/lumina";
1008
+ function Nt(e) {
1009
+ let t = "";
1010
+ const n = ki(e), i = n.isAccessor === !0, a = e.readonly === !0;
1011
+ if (e.getterType !== void 0 || i && a)
1012
+ t += Wi(
1013
+ e.privacy !== void 0,
1014
+ n.isAbstract === !0,
1015
+ e.static === !0,
1016
+ e.name,
1017
+ e.getterType?.text ?? e.type.text,
1018
+ a ? void 0 : e.type.text
1019
+ );
1020
+ else {
1021
+ const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1022
+ t += fe(
1023
+ e.privacy !== void 0,
1024
+ n.isAbstract === !0,
1025
+ e.static === !0,
1026
+ a,
1027
+ i,
1028
+ l,
1029
+ e.name,
1030
+ s
1031
+ );
1032
+ }
1033
+ return t;
1034
+ }
1035
+ function li(e, t) {
1036
+ const n = ht(e);
1037
+ return Vi(
1038
+ e.privacy !== void 0,
1039
+ n.isAbstract === !0,
1040
+ e.static === !0,
1041
+ n.hasQuestionToken === !0,
1042
+ e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1043
+ e.typeParameters,
1044
+ e.parameters,
1045
+ e.return?.type.text
1046
+ );
1047
+ }
1048
+ const vn = he({
1049
+ description: void 0,
1050
+ docsTags: [
1051
+ {
1052
+ name: "deprecated",
1053
+ text: `Do not directly reference this property.
1054
+ Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1055
+ }
1056
+ ]
1057
+ });
1058
+ function va() {
1059
+ const e = Date.now();
1060
+ return () => (Date.now() - e) / Sn;
1061
+ }
1062
+ const Sn = 1e3;
1063
+ function Tn(e) {
1064
+ const t = e.indexOf("/");
1065
+ return t === -1 ? e : e.slice(0, t);
1066
+ }
1067
+ function wt(e, t, n) {
1068
+ if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1069
+ return;
1070
+ const i = e.match(hn)?.[1];
1071
+ if (i === void 0) {
1072
+ n.emitError(
1073
+ 'Failed to find component tag name. Make sure the "component" property is present in the story meta. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1074
+ { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1075
+ );
1076
+ return;
1077
+ }
1078
+ const a = [];
1079
+ for (const l of e.matchAll(En)) {
1080
+ const s = l[1], c = Mn(s), p = e.indexOf("{", l.index), d = e.indexOf("}", p), m = e.slice(0, l.index).trimEnd();
1081
+ let f = "";
1082
+ if (m.endsWith("*/")) {
1083
+ const C = m.lastIndexOf("/**");
1084
+ f = m.slice(C + 3, -2).trim().replaceAll(Pn, "");
1085
+ }
1086
+ const u = e.slice(p, d).match(Cn)?.[1] || c, v = bn(c);
1087
+ a.push({
1088
+ description: `${u}${f ? `
1089
+ ${f}` : ""}`,
1090
+ url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${v}&singleStory=true`,
1091
+ source: void 0
1092
+ });
1093
+ }
1094
+ if (a.length === 0) {
1095
+ n.emitError(
1096
+ 'Failed to find any stories. Make sure stories are defined using expected format and have a "name" property. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1097
+ { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1098
+ );
1099
+ return;
1100
+ }
1101
+ const r = n.componentStories[i];
1102
+ r === void 0 ? n.componentStories[i] = a : r.push(...a);
1103
+ }
1104
+ const hn = /component: ["']([^"']+)["']/u, En = /export const (\w+)/gu, Cn = /name: ["']([^"']+)["']/u, Pn = /^\s*\*\s?/gmu, bn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Mn = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, n, i, a) => `${n} ${i}${a}`).replace(/([a-z])([A-Z])/gu, (t, n, i) => `${n} ${i}`).replace(/([a-z])([0-9])/giu, (t, n, i) => `${n} ${i}`).replace(/([0-9])([a-z])/giu, (t, n, i) => `${n} ${i}`).replace(/(\s|^)(\w)/gu, (t, n, i) => `${n}${i.toUpperCase()}`).replace(/ +/gu, " ").trim();
1105
+ function mt(e, t) {
1106
+ let i = t.startsWith("./") ? t.slice(2) : t, a = e;
1107
+ for (; ; ) {
1108
+ const r = a.lastIndexOf("/");
1109
+ if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
1110
+ i = i.slice(3);
1111
+ else
1112
+ return a === "" ? i : `${a}/${i}`;
1113
+ }
1114
+ }
1115
+ function ye(e, t) {
1116
+ let n = 0;
1117
+ for (; ; ) {
1118
+ const a = e.indexOf("/", n) + 1;
1119
+ if (a === 0)
1120
+ break;
1121
+ const r = e.slice(n, a), l = t.slice(n, a);
1122
+ if (r !== l)
1123
+ break;
1124
+ n = a;
1125
+ }
1126
+ let i = "";
1127
+ for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
1128
+ i += "../";
1129
+ return i.length === 0 && (i = "./"), `${i}${t.slice(n)}`;
1130
+ }
1131
+ function Ut(e, t, n = 0) {
1132
+ for (; n < e.length; ++n) {
1133
+ const i = e[n];
1134
+ i.start += t, i.end += t;
1135
+ }
1136
+ return e;
1137
+ }
1138
+ function Vt(e, t) {
1139
+ if (e === t)
1140
+ return !0;
1141
+ if (typeof e != "object" || typeof t != "object" || e === null || t === null)
1142
+ return !1;
1143
+ if (Array.isArray(e)) {
1144
+ if (!Array.isArray(t) || e.length !== t.length)
1145
+ return !1;
1146
+ for (let a = 0; a < e.length; ++a)
1147
+ if (!Vt(e[a], t[a]))
1148
+ return !1;
1149
+ return !0;
1150
+ }
1151
+ const n = Object.keys(e), i = Object.keys(t);
1152
+ if (n.length !== i.length)
1153
+ return !1;
1154
+ for (let a = 0; a < n.length; ++a) {
1155
+ const r = n[a];
1156
+ if (!Vt(e[r], t[r]))
1157
+ return !1;
1158
+ }
1159
+ return !0;
1160
+ }
1161
+ function Dn(e, t) {
1162
+ if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1163
+ return;
1164
+ const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1165
+ if (!(n.startsWith(".") && i.test(n)))
1166
+ return;
1167
+ const r = n.split("?", 1)[0], l = Zi.join(t.file.fileName, "..", r), s = zi(l, "utf-8"), c = xn(s);
1168
+ c !== void 0 && (t.componentCssFileDocs = c);
1169
+ }
1170
+ function xn(e) {
1171
+ const t = [];
1172
+ for (const n of e.matchAll(Rn)) {
1173
+ const i = n.groups.name, a = n.groups.description.replaceAll(Ln, " ").trim();
1174
+ t.push({
1175
+ name: i,
1176
+ deprecated: void 0,
1177
+ summary: void 0,
1178
+ description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1179
+ syntax: void 0,
1180
+ default: void 0
1181
+ });
1182
+ }
1183
+ return t.length === 0 ? void 0 : t;
1184
+ }
1185
+ const Rn = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Ln = /\n\s+\*? ?/gu;
1186
+ function ci(e, t) {
1187
+ if (e === void 0)
1188
+ return !1;
1189
+ for (let n = 0; n < e.length; ++n)
1190
+ if (e[n].kind === t)
1191
+ return !0;
1192
+ return !1;
1193
+ }
1194
+ function tt(e) {
1195
+ if (e.modifiers === void 0)
1196
+ return 0;
1197
+ for (let t = 0; t < e.modifiers.length; ++t)
1198
+ if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1199
+ return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1200
+ return 0;
1201
+ }
1202
+ function di(e, t) {
1203
+ return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1204
+ }
1205
+ const In = /* @__PURE__ */ JSON.parse('{"AacBitstreamFormat":[],"AacEncoderConfig":[],"AbortController":["AbortController"],"AbortSignal":["AbortSignal"],"AbortSignalEventMap":[],"AbstractRange":["AbstractRange"],"AbstractWorker":["error_event"],"AbstractWorkerEventMap":[],"ActiveXObject":[],"addEventListener":[],"AddEventListenerOptions":[],"AddressErrors":[],"AesCbcParams":[],"AesCtrParams":[],"AesDerivedKeyParams":[],"AesGcmParams":[],"AesKeyAlgorithm":[],"AesKeyGenParams":[],"AggregateError":[],"AggregateErrorConstructor":[],"alert":["Window/alert"],"Algorithm":[],"AlgorithmIdentifier":[],"AlignSetting":[],"AllAcceptedCredentialsOptions":[],"AllowSharedBufferSource":[],"AlphaOption":[],"AnalyserNode":["AnalyserNode"],"AnalyserOptions":[],"ANGLE_instanced_arrays":["ANGLE_instanced_arrays"],"Animatable":["animate"],"Animation":["Animation"],"AnimationEffect":["AnimationEffect"],"AnimationEvent":["AnimationEvent"],"AnimationEventInit":[],"AnimationEventMap":[],"AnimationFrameProvider":["cancelAnimationFrame"],"AnimationPlaybackEvent":["AnimationPlaybackEvent"],"AnimationPlaybackEventInit":[],"AnimationPlayState":[],"AnimationReplaceState":[],"AnimationTimeline":["AnimationTimeline"],"AppendMode":[],"ARIAMixin":["ariaActiveDescendantElement"],"Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array"],"ArrayBuffer":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"],"ArrayBufferConstructor":[],"ArrayBufferLike":[],"ArrayBufferTypes":[],"ArrayBufferView":[],"ArrayConstructor":[],"ArrayIterator":[],"ArrayLike":[],"AssignedNodesOptions":[],"AsyncDisposable":[],"AsyncDisposableStack":[],"AsyncDisposableStackConstructor":[],"AsyncGenerator":[],"AsyncGeneratorFunction":[],"AsyncGeneratorFunctionConstructor":[],"AsyncIterable":[],"AsyncIterableIterator":[],"AsyncIterator":[],"AsyncIteratorObject":[],"atob":["Window/atob"],"Atomics":[],"AttestationConveyancePreference":[],"Attr":["Attr"],"Audio":[],"AudioBuffer":["AudioBuffer"],"AudioBufferOptions":[],"AudioBufferSourceNode":["AudioBufferSourceNode"],"AudioBufferSourceOptions":[],"AudioConfiguration":[],"AudioContext":["AudioContext"],"AudioContextLatencyCategory":[],"AudioContextOptions":[],"AudioContextState":[],"AudioData":["AudioData"],"AudioDataCopyToOptions":[],"AudioDataInit":[],"AudioDataOutputCallback":[],"AudioDecoder":["AudioDecoder"],"AudioDecoderConfig":[],"AudioDecoderEventMap":[],"AudioDecoderInit":[],"AudioDecoderSupport":[],"AudioDestinationNode":["AudioDestinationNode"],"AudioEncoder":["AudioEncoder"],"AudioEncoderConfig":[],"AudioEncoderEventMap":[],"AudioEncoderInit":[],"AudioEncoderSupport":[],"AudioListener":["AudioListener"],"AudioNode":["AudioNode"],"AudioNodeOptions":[],"AudioParam":["AudioParam"],"AudioParamMap":["AudioParamMap"],"AudioProcessingEvent":["AudioProcessingEvent"],"AudioProcessingEventInit":[],"AudioSampleFormat":[],"AudioScheduledSourceNode":["AudioScheduledSourceNode"],"AudioScheduledSourceNodeEventMap":[],"AudioTimestamp":[],"AudioWorklet":["AudioWorklet"],"AudioWorkletNode":["AudioWorkletNode"],"AudioWorkletNodeEventMap":[],"AudioWorkletNodeOptions":[],"AuthenticationExtensionsClientInputs":[],"AuthenticationExtensionsClientInputsJSON":[],"AuthenticationExtensionsClientOutputs":[],"AuthenticationExtensionsClientOutputsJSON":[],"AuthenticationExtensionsLargeBlobInputs":[],"AuthenticationExtensionsLargeBlobInputsJSON":[],"AuthenticationExtensionsLargeBlobOutputs":[],"AuthenticationExtensionsLargeBlobOutputsJSON":[],"AuthenticationExtensionsPRFInputs":[],"AuthenticationExtensionsPRFInputsJSON":[],"AuthenticationExtensionsPRFOutputs":[],"AuthenticationExtensionsPRFOutputsJSON":[],"AuthenticationExtensionsPRFValues":[],"AuthenticationExtensionsPRFValuesJSON":[],"AuthenticationResponseJSON":[],"AuthenticatorAssertionResponse":["AuthenticatorAssertionResponse"],"AuthenticatorAssertionResponseJSON":[],"AuthenticatorAttachment":[],"AuthenticatorAttestationResponse":["AuthenticatorAttestationResponse"],"AuthenticatorAttestationResponseJSON":[],"AuthenticatorResponse":["AuthenticatorResponse"],"AuthenticatorSelectionCriteria":[],"AuthenticatorTransport":[],"AutoFill":[],"AutoFillAddressKind":[],"AutoFillBase":[],"AutoFillContactField":[],"AutoFillContactKind":[],"AutoFillCredentialField":[],"AutoFillField":[],"AutoFillNormalField":[],"AutoFillSection":[],"AutoKeyword":[],"AutomationRate":[],"AvcBitstreamFormat":[],"AvcEncoderConfig":[],"Awaited":["https://www.typescriptlang.org/docs/handbook/utility-types.html#awaitedtype"],"BarProp":["BarProp"],"Base64URLString":[],"BaseAudioContext":["BaseAudioContext"],"BaseAudioContextEventMap":[],"BeforeUnloadEvent":["BeforeUnloadEvent"],"BigInt":[],"BigInt64Array":[],"BigInt64ArrayConstructor":[],"BigIntConstructor":[],"BigInteger":[],"BigIntToLocaleStringOptions":[],"BigUint64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint64Array"],"BigUint64ArrayConstructor":[],"BinaryType":[],"BiquadFilterNode":["BiquadFilterNode"],"BiquadFilterOptions":[],"BiquadFilterType":[],"BitrateMode":[],"Blob":["Blob"],"BlobCallback":[],"BlobEvent":["BlobEvent"],"BlobEventInit":[],"BlobPart":[],"BlobPropertyBag":[],"blur":["Window/blur"],"Body":["body"],"BodyInit":[],"Boolean":[],"BooleanConstructor":[],"BroadcastChannel":["BroadcastChannel"],"BroadcastChannelEventMap":[],"btoa":["Window/btoa"],"BufferSource":[],"BuiltinIteratorReturn":[],"ByteLengthQueuingStrategy":["ByteLengthQueuingStrategy"],"Cache":["Cache"],"CacheQueryOptions":[],"caches":[],"CacheStorage":["CacheStorage"],"CallableFunction":[],"cancelAnimationFrame":["DedicatedWorkerGlobalScope/cancelAnimationFrame"],"cancelIdleCallback":["Window/cancelIdleCallback"],"CanPlayTypeResult":[],"CanvasCaptureMediaStreamTrack":["CanvasCaptureMediaStreamTrack"],"CanvasCompositing":["globalAlpha"],"CanvasDirection":[],"CanvasDrawImage":["drawImage"],"CanvasDrawPath":["beginPath"],"CanvasFillRule":[],"CanvasFillStrokeStyles":["fillStyle"],"CanvasFilters":["filter"],"CanvasFontKerning":[],"CanvasFontStretch":[],"CanvasFontVariantCaps":[],"CanvasGradient":["CanvasGradient"],"CanvasImageData":["createImageData"],"CanvasImageSmoothing":["imageSmoothingEnabled"],"CanvasImageSource":[],"CanvasLineCap":[],"CanvasLineJoin":[],"CanvasPath":["arc"],"CanvasPathDrawingStyles":["lineCap"],"CanvasPattern":["CanvasPattern"],"CanvasRect":["clearRect"],"CanvasRenderingContext2D":["CanvasRenderingContext2D"],"CanvasRenderingContext2DSettings":[],"CanvasSettings":["getContextAttributes"],"CanvasShadowStyles":["shadowBlur"],"CanvasState":["isContextLost"],"CanvasText":["fillText"],"CanvasTextAlign":[],"CanvasTextBaseline":[],"CanvasTextDrawingStyles":["direction"],"CanvasTextRendering":[],"CanvasTransform":["getTransform"],"CanvasUserInterface":["drawFocusIfNeeded"],"Capitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"captureEvents":["Window/captureEvents"],"CaretPosition":["CaretPosition"],"CaretPositionFromPointOptions":[],"CDATASection":["CDATASection"],"ChannelCountMode":[],"ChannelInterpretation":[],"ChannelMergerNode":["ChannelMergerNode"],"ChannelMergerOptions":[],"ChannelSplitterNode":["ChannelSplitterNode"],"ChannelSplitterOptions":[],"CharacterData":["CharacterData"],"CheckVisibilityOptions":[],"ChildNode":["after"],"ClassAccessorDecoratorContext":[],"ClassAccessorDecoratorResult":[],"ClassAccessorDecoratorTarget":[],"ClassDecorator":[],"ClassDecoratorContext":[],"ClassFieldDecoratorContext":[],"ClassGetterDecoratorContext":[],"ClassMemberDecoratorContext":[],"ClassMethodDecoratorContext":[],"ClassSetterDecoratorContext":[],"clearInterval":["Window/clearInterval"],"clearTimeout":["Window/clearTimeout"],"Client":["Client"],"clientInformation":[],"ClientQueryOptions":[],"ClientRect":[],"Clients":["Clients"],"ClientTypes":[],"Clipboard":["Clipboard"],"ClipboardEvent":["ClipboardEvent"],"ClipboardEventInit":[],"ClipboardItem":["ClipboardItem"],"ClipboardItemData":[],"ClipboardItemOptions":[],"ClipboardItems":[],"close":["DedicatedWorkerGlobalScope/close"],"closed":[],"CloseEvent":["CloseEvent"],"CloseEventInit":[],"CodecState":[],"ColorGamut":[],"ColorSpaceConversion":[],"CommandEvent":["CommandEvent"],"CommandEventInit":[],"Comment":["Comment"],"CompositeOperation":[],"CompositeOperationOrAuto":[],"CompositionEvent":["CompositionEvent"],"CompositionEventInit":[],"CompressionFormat":[],"CompressionStream":["CompressionStream"],"ComputedEffectTiming":[],"ComputedKeyframe":[],"ConcatArray":[],"confirm":["Window/confirm"],"console":[],"Console":["console"],"ConstantSourceNode":["ConstantSourceNode"],"ConstantSourceOptions":[],"ConstrainBoolean":[],"ConstrainBooleanOrDOMString":[],"ConstrainBooleanOrDOMStringParameters":[],"ConstrainBooleanParameters":[],"ConstrainDOMString":[],"ConstrainDOMStringParameters":[],"ConstrainDouble":[],"ConstrainDoubleRange":[],"ConstrainULong":[],"ConstrainULongRange":[],"ConstructorParameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#constructorparameterstype"],"ContentVisibilityAutoStateChangeEvent":["ContentVisibilityAutoStateChangeEvent"],"ContentVisibilityAutoStateChangeEventInit":[],"ConvolverNode":["ConvolverNode"],"ConvolverOptions":[],"CookieChangeEvent":["CookieChangeEvent"],"CookieChangeEventInit":[],"CookieInit":[],"CookieList":[],"CookieListItem":[],"CookieSameSite":[],"cookieStore":[],"CookieStore":["CookieStore"],"CookieStoreDeleteOptions":[],"CookieStoreEventMap":[],"CookieStoreGetOptions":[],"CookieStoreManager":["CookieStoreManager"],"COSEAlgorithmIdentifier":[],"CountQueuingStrategy":["CountQueuingStrategy"],"createImageBitmap":["Window/createImageBitmap"],"Credential":["Credential"],"CredentialCreationOptions":[],"CredentialMediationRequirement":[],"CredentialPropertiesOutput":[],"CredentialRequestOptions":[],"CredentialsContainer":["CredentialsContainer"],"crossOriginIsolated":[],"crypto":[],"Crypto":["Crypto"],"CryptoKey":["CryptoKey"],"CryptoKeyPair":[],"CSS":[null,{"cap":[],"ch":["CSS/factory_functions_static"],"cm":["CSS/factory_functions_static"],"cqb":["CSS/factory_functions_static"],"cqh":["CSS/factory_functions_static"],"cqi":["CSS/factory_functions_static"],"cqmax":["CSS/factory_functions_static"],"cqmin":["CSS/factory_functions_static"],"cqw":["CSS/factory_functions_static"],"deg":["CSS/factory_functions_static"],"dpcm":["CSS/factory_functions_static"],"dpi":["CSS/factory_functions_static"],"dppx":["CSS/factory_functions_static"],"dvb":["CSS/factory_functions_static"],"dvh":["CSS/factory_functions_static"],"dvi":["CSS/factory_functions_static"],"dvmax":["CSS/factory_functions_static"],"dvmin":["CSS/factory_functions_static"],"dvw":["CSS/factory_functions_static"],"em":["CSS/factory_functions_static"],"escape":["CSS/escape_static"],"ex":["CSS/factory_functions_static"],"fr":["CSS/factory_functions_static"],"grad":["CSS/factory_functions_static"],"highlights":[],"Hz":["CSS/factory_functions_static"],"ic":[],"kHz":["CSS/factory_functions_static"],"lh":[],"lvb":["CSS/factory_functions_static"],"lvh":["CSS/factory_functions_static"],"lvi":["CSS/factory_functions_static"],"lvmax":["CSS/factory_functions_static"],"lvmin":["CSS/factory_functions_static"],"lvw":["CSS/factory_functions_static"],"mm":["CSS/factory_functions_static"],"ms":["CSS/factory_functions_static"],"number":["CSS/factory_functions_static"],"pc":["CSS/factory_functions_static"],"percent":["CSS/factory_functions_static"],"pt":["CSS/factory_functions_static"],"px":["CSS/factory_functions_static"],"Q":["CSS/factory_functions_static"],"rad":["CSS/factory_functions_static"],"rcap":[],"rch":[],"registerProperty":["CSS/registerProperty_static"],"rem":["CSS/factory_functions_static"],"rex":[],"ric":[],"rlh":[],"s":["CSS/factory_functions_static"],"supports":["CSS/supports_static"],"svb":["CSS/factory_functions_static"],"svh":["CSS/factory_functions_static"],"svi":["CSS/factory_functions_static"],"svmax":["CSS/factory_functions_static"],"svmin":["CSS/factory_functions_static"],"svw":["CSS/factory_functions_static"],"turn":["CSS/factory_functions_static"],"vb":["CSS/factory_functions_static"],"vh":["CSS/factory_functions_static"],"vi":["CSS/factory_functions_static"],"vmax":["CSS/factory_functions_static"],"vmin":["CSS/factory_functions_static"],"vw":["CSS/factory_functions_static"]}],"CSSAnimation":["CSSAnimation"],"CSSConditionRule":["CSSConditionRule"],"CSSContainerRule":["CSSContainerRule"],"CSSCounterStyleRule":["CSSCounterStyleRule"],"CSSFontFaceRule":["CSSFontFaceRule"],"CSSFontFeatureValuesRule":["CSSFontFeatureValuesRule"],"CSSFontPaletteValuesRule":["CSSFontPaletteValuesRule"],"CSSGroupingRule":["CSSGroupingRule"],"CSSImageValue":["CSSImageValue"],"CSSImportRule":["CSSImportRule"],"CSSKeyframeRule":["CSSKeyframeRule"],"CSSKeyframesRule":["CSSKeyframesRule"],"CSSKeywordish":[],"CSSKeywordValue":["CSSKeywordValue"],"CSSLayerBlockRule":["CSSLayerBlockRule"],"CSSLayerStatementRule":["CSSLayerStatementRule"],"CSSMathClamp":[],"CSSMathInvert":["CSSMathInvert"],"CSSMathMax":["CSSMathMax"],"CSSMathMin":["CSSMathMin"],"CSSMathNegate":["CSSMathNegate"],"CSSMathOperator":[],"CSSMathProduct":["CSSMathProduct"],"CSSMathSum":["CSSMathSum"],"CSSMathValue":["CSSMathValue"],"CSSMatrixComponent":["CSSMatrixComponent"],"CSSMatrixComponentOptions":[],"CSSMediaRule":["CSSMediaRule"],"CSSNamespaceRule":["CSSNamespaceRule"],"CSSNestedDeclarations":["CSSNestedDeclarations"],"CSSNumberish":[],"CSSNumericArray":["CSSNumericArray"],"CSSNumericBaseType":[],"CSSNumericType":[],"CSSNumericValue":["CSSNumericValue"],"CSSPageDescriptors":["CSSPageDescriptors"],"CSSPageRule":["CSSPageRule"],"CSSPerspective":["CSSPerspective"],"CSSPerspectiveValue":[],"CSSPositionTryDescriptors":["CSSPositionTryDescriptors"],"CSSPositionTryRule":["CSSPositionTryRule"],"CSSPropertyRule":["CSSPropertyRule"],"CSSRotate":["CSSRotate"],"CSSRule":["CSSRule"],"CSSRuleList":["CSSRuleList"],"CSSScale":["CSSScale"],"CSSScopeRule":["CSSScopeRule"],"CSSSkew":["CSSSkew"],"CSSSkewX":["CSSSkewX"],"CSSSkewY":["CSSSkewY"],"CSSStartingStyleRule":["CSSStartingStyleRule"],"CSSStyleDeclaration":[],"CSSStyleDeclarationBase":["CSSStyleDeclaration"],"CSSStyleProperties":["CSSStyleProperties"],"CSSStyleRule":["CSSStyleRule"],"CSSStyleSheet":["CSSStyleSheet"],"CSSStyleSheetInit":[],"CSSStyleValue":["CSSStyleValue"],"CSSSupportsRule":["CSSSupportsRule"],"CSSTransformComponent":["CSSTransformComponent"],"CSSTransformValue":["CSSTransformValue"],"CSSTransition":["CSSTransition"],"CSSTranslate":["CSSTranslate"],"CSSUnitValue":["CSSUnitValue"],"CSSUnparsedSegment":[],"CSSUnparsedValue":["CSSUnparsedValue"],"CSSVariableReferenceValue":["CSSVariableReferenceValue"],"CSSViewTransitionRule":["CSSViewTransitionRule"],"CurrentUserDetailsOptions":[],"CustomElementConstructor":[],"CustomElementRegistry":["CustomElementRegistry"],"customElements":[],"CustomEvent":["CustomEvent"],"CustomEventInit":[],"CustomStateSet":["CustomStateSet"],"DataTransfer":["DataTransfer"],"DataTransferItem":["DataTransferItem"],"DataTransferItemList":["DataTransferItemList"],"DataView":[],"DataViewConstructor":[],"Date":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date"],"DateConstructor":[],"DecodeErrorCallback":[],"DecodeSuccessCallback":[],"decodeURI":[],"decodeURIComponent":[],"DecompressionStream":["DecompressionStream"],"DecoratorContext":[],"DecoratorMetadata":[],"DecoratorMetadataObject":[],"DedicatedWorkerGlobalScope":["DedicatedWorkerGlobalScope"],"DedicatedWorkerGlobalScopeEventMap":[],"DelayNode":["DelayNode"],"DelayOptions":[],"DeviceMotionEvent":["DeviceMotionEvent"],"DeviceMotionEventAcceleration":["DeviceMotionEventAcceleration"],"DeviceMotionEventAccelerationInit":[],"DeviceMotionEventInit":[],"DeviceMotionEventRotationRate":["DeviceMotionEventRotationRate"],"DeviceMotionEventRotationRateInit":[],"DeviceOrientationEvent":["DeviceOrientationEvent"],"DeviceOrientationEventInit":[],"devicePixelRatio":[],"DigitalCredential":[],"DirectionSetting":[],"dispatchEvent":["EventTarget/dispatchEvent"],"DisplayCaptureSurfaceType":[],"DisplayMediaStreamOptions":[],"Disposable":[],"DisposableStack":[],"DisposableStackConstructor":[],"DistanceModelType":[],"document":[],"Document":["Document"],"DocumentEventMap":[],"DocumentFragment":["DocumentFragment"],"DocumentOrShadowRoot":["activeElement"],"DocumentReadyState":[],"DocumentTimeline":["DocumentTimeline"],"DocumentTimelineOptions":[],"DocumentType":["DocumentType"],"DocumentVisibilityState":[],"DOMException":["DOMException"],"DOMHighResTimeStamp":[],"DOMImplementation":["DOMImplementation"],"DOMMatrix":["DOMMatrix"],"DOMMatrix2DInit":[],"DOMMatrixInit":[],"DOMMatrixReadOnly":["DOMMatrixReadOnly"],"DOMParser":["DOMParser"],"DOMParserSupportedType":[],"DOMPoint":["DOMPoint"],"DOMPointInit":[],"DOMPointReadOnly":["DOMPointReadOnly"],"DOMQuad":["DOMQuad"],"DOMQuadInit":[],"DOMRect":["DOMRect"],"DOMRectInit":[],"DOMRectList":["DOMRectList"],"DOMRectReadOnly":["DOMRectReadOnly"],"DOMStringList":["DOMStringList"],"DOMStringMap":["DOMStringMap"],"DOMTokenList":["DOMTokenList"],"DoubleRange":[],"DragEvent":["DragEvent"],"DragEventInit":[],"DynamicsCompressorNode":["DynamicsCompressorNode"],"DynamicsCompressorOptions":[],"EcdhKeyDeriveParams":[],"EcdsaParams":[],"EcKeyAlgorithm":[],"EcKeyGenParams":[],"EcKeyImportParams":[],"EffectTiming":[],"Element":["Element"],"ElementContentEditable":["contentEditable"],"ElementCreationOptions":[],"ElementCSSInlineStyle":["attributeStyleMap"],"ElementDefinitionOptions":[],"ElementEventMap":[],"ElementInternals":["ElementInternals"],"ElementTagNameMap":[],"EncodedAudioChunk":["EncodedAudioChunk"],"EncodedAudioChunkInit":[],"EncodedAudioChunkMetadata":[],"EncodedAudioChunkOutputCallback":[],"EncodedAudioChunkType":[],"EncodedVideoChunk":["EncodedVideoChunk"],"EncodedVideoChunkInit":[],"EncodedVideoChunkMetadata":[],"EncodedVideoChunkOutputCallback":[],"EncodedVideoChunkType":[],"encodeURI":[],"encodeURIComponent":[],"EndingType":[],"EndOfStreamError":[],"Enumerator":[],"EnumeratorConstructor":[],"EpochTimeStamp":[],"Error":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error"],"ErrorCallback":[],"ErrorConstructor":[],"ErrorEvent":["ErrorEvent"],"ErrorEventInit":[],"ErrorOptions":[],"escape":[],"eval":[],"EvalError":[],"EvalErrorConstructor":[],"event":[],"Event":["Event"],"EventCounts":["EventCounts"],"EventInit":[],"EventListener":[],"EventListenerObject":[],"EventListenerOptions":[],"EventListenerOrEventListenerObject":[],"EventModifierInit":[],"EventSource":["EventSource"],"EventSourceEventMap":[],"EventSourceInit":[],"EventTarget":["EventTarget"],"Exclude":["https://www.typescriptlang.org/docs/handbook/utility-types.html#excludeuniontype-excludedmembers"],"EXT_blend_minmax":["EXT_blend_minmax"],"EXT_color_buffer_float":["EXT_color_buffer_float"],"EXT_color_buffer_half_float":["EXT_color_buffer_half_float"],"EXT_float_blend":["EXT_float_blend"],"EXT_frag_depth":["EXT_frag_depth"],"EXT_shader_texture_lod":["EXT_shader_texture_lod"],"EXT_sRGB":["EXT_sRGB"],"EXT_texture_compression_bptc":["EXT_texture_compression_bptc"],"EXT_texture_compression_rgtc":["EXT_texture_compression_rgtc"],"EXT_texture_filter_anisotropic":["EXT_texture_filter_anisotropic"],"EXT_texture_norm16":["EXT_texture_norm16"],"ExtendableCookieChangeEvent":["ExtendableCookieChangeEvent"],"ExtendableCookieChangeEventInit":[],"ExtendableEvent":["ExtendableEvent"],"ExtendableEventInit":[],"ExtendableMessageEvent":["ExtendableMessageEvent"],"ExtendableMessageEventInit":[],"external":[],"External":[],"Extract":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"fetch":["Window/fetch"],"FetchEvent":["FetchEvent"],"FetchEventInit":[],"File":["File"],"FileCallback":[],"FileList":["FileList"],"FilePropertyBag":[],"FileReader":["FileReader"],"FileReaderEventMap":[],"FileReaderSync":["FileReaderSync"],"FileSystem":["FileSystem"],"FileSystemCreateWritableOptions":[],"FileSystemDirectoryEntry":["FileSystemDirectoryEntry"],"FileSystemDirectoryHandle":["FileSystemDirectoryHandle"],"FileSystemDirectoryHandleAsyncIterator":[],"FileSystemDirectoryReader":["FileSystemDirectoryReader"],"FileSystemEntriesCallback":[],"FileSystemEntry":["FileSystemEntry"],"FileSystemEntryCallback":[],"FileSystemFileEntry":["FileSystemFileEntry"],"FileSystemFileHandle":["FileSystemFileHandle"],"FileSystemFlags":[],"FileSystemGetDirectoryOptions":[],"FileSystemGetFileOptions":[],"FileSystemHandle":["FileSystemHandle"],"FileSystemHandleKind":[],"FileSystemReadWriteOptions":[],"FileSystemRemoveOptions":[],"FileSystemSyncAccessHandle":["FileSystemSyncAccessHandle"],"FileSystemWritableFileStream":["FileSystemWritableFileStream"],"FileSystemWriteChunkType":[],"FillLightMode":[],"FillMode":[],"FinalizationRegistry":[],"FinalizationRegistryConstructor":[],"FlatArray":[],"Float16Array":[],"Float16ArrayConstructor":[],"Float32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float32Array"],"Float32ArrayConstructor":[],"Float32List":[],"Float64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float64Array"],"Float64ArrayConstructor":[],"focus":["Window/focus"],"FocusEvent":["FocusEvent"],"FocusEventInit":[],"FocusOptions":[],"FontDisplay":[],"FontFace":["FontFace"],"FontFaceDescriptors":[],"FontFaceLoadStatus":[],"FontFaceSet":["FontFaceSet"],"FontFaceSetEventMap":[],"FontFaceSetLoadEvent":["FontFaceSetLoadEvent"],"FontFaceSetLoadEventInit":[],"FontFaceSetLoadStatus":[],"FontFaceSource":["fonts"],"fonts":[],"FormData":["FormData"],"FormDataEntryValue":[],"FormDataEvent":["FormDataEvent"],"FormDataEventInit":[],"FormDataIterator":[],"FragmentDirective":["FragmentDirective"],"frameElement":[],"FrameRequestCallback":[],"frames":[],"FrameType":[],"FullscreenNavigationUI":[],"FullscreenOptions":[],"Function":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function"],"FunctionConstructor":[],"FunctionStringCallback":[],"GainNode":["GainNode"],"GainOptions":[],"Gamepad":["Gamepad"],"GamepadButton":["GamepadButton"],"GamepadEffectParameters":[],"GamepadEvent":["GamepadEvent"],"GamepadEventInit":[],"GamepadHapticActuator":["GamepadHapticActuator"],"GamepadHapticEffectType":[],"GamepadHapticsResult":[],"GamepadMappingType":[],"Generator":[],"GeneratorFunction":[],"GeneratorFunctionConstructor":[],"GenericTransformStream":["readable"],"Geolocation":["Geolocation"],"GeolocationCoordinates":["GeolocationCoordinates"],"GeolocationPosition":["GeolocationPosition"],"GeolocationPositionError":["GeolocationPositionError"],"GetAnimationsOptions":[],"GetComposedRangesOptions":[],"getComputedStyle":["Window/getComputedStyle"],"GetHTMLOptions":[],"GetNotificationOptions":[],"GetRootNodeOptions":[],"getSelection":["Window/getSelection"],"GLbitfield":[],"GLboolean":[],"GLclampf":[],"GLenum":[],"GLfloat":[],"GLint":[],"GLint64":[],"GLintptr":[],"global":[],"GlobalCompositeOperation":[],"GlobalEventHandlers":["abort_event"],"GlobalEventHandlersEventMap":[],"GLsizei":[],"GLsizeiptr":[],"GLuint":[],"GLuint64":[],"GPU":["GPU"],"GPUAdapter":["GPUAdapter"],"GPUAdapterInfo":["GPUAdapterInfo"],"GPUAddressMode":[],"GPUAutoLayoutMode":[],"GPUBindGroup":["GPUBindGroup"],"GPUBindGroupDescriptor":[],"GPUBindGroupEntry":[],"GPUBindGroupLayout":["GPUBindGroupLayout"],"GPUBindGroupLayoutDescriptor":[],"GPUBindGroupLayoutEntry":[],"GPUBindingCommandsMixin":["setBindGroup"],"GPUBindingResource":[],"GPUBlendComponent":[],"GPUBlendFactor":[],"GPUBlendOperation":[],"GPUBlendState":[],"GPUBuffer":["GPUBuffer"],"GPUBufferBinding":[],"GPUBufferBindingLayout":[],"GPUBufferBindingType":[],"GPUBufferDescriptor":[],"GPUBufferDynamicOffset":[],"GPUBufferMapState":[],"GPUBufferUsageFlags":[],"GPUCanvasAlphaMode":[],"GPUCanvasConfiguration":[],"GPUCanvasContext":["GPUCanvasContext"],"GPUCanvasToneMapping":[],"GPUCanvasToneMappingMode":[],"GPUColor":[],"GPUColorDict":[],"GPUColorTargetState":[],"GPUColorWriteFlags":[],"GPUCommandBuffer":["GPUCommandBuffer"],"GPUCommandBufferDescriptor":[],"GPUCommandEncoder":["GPUCommandEncoder"],"GPUCommandEncoderDescriptor":[],"GPUCompareFunction":[],"GPUCompilationInfo":["GPUCompilationInfo"],"GPUCompilationMessage":["GPUCompilationMessage"],"GPUCompilationMessageType":[],"GPUComputePassDescriptor":[],"GPUComputePassEncoder":["GPUComputePassEncoder"],"GPUComputePassTimestampWrites":[],"GPUComputePipeline":["GPUComputePipeline"],"GPUComputePipelineDescriptor":[],"GPUCopyExternalImageDestInfo":[],"GPUCopyExternalImageSource":[],"GPUCopyExternalImageSourceInfo":[],"GPUCullMode":[],"GPUDebugCommandsMixin":["insertDebugMarker"],"GPUDepthBias":[],"GPUDepthStencilState":[],"GPUDevice":["GPUDevice"],"GPUDeviceDescriptor":[],"GPUDeviceEventMap":[],"GPUDeviceLostInfo":["GPUDeviceLostInfo"],"GPUDeviceLostReason":[],"GPUError":["GPUError"],"GPUErrorFilter":[],"GPUExtent3D":[],"GPUExtent3DDict":[],"GPUExternalTexture":["GPUExternalTexture"],"GPUExternalTextureBindingLayout":[],"GPUExternalTextureDescriptor":[],"GPUFeatureName":[],"GPUFilterMode":[],"GPUFlagsConstant":[],"GPUFragmentState":[],"GPUFrontFace":[],"GPUIndex32":[],"GPUIndexFormat":[],"GPUIntegerCoordinate":[],"GPUIntegerCoordinateOut":[],"GPUInternalError":["GPUInternalError"],"GPULoadOp":[],"GPUMapModeFlags":[],"GPUMipmapFilterMode":[],"GPUMultisampleState":[],"GPUObjectBase":["label"],"GPUObjectDescriptorBase":[],"GPUOrigin2D":[],"GPUOrigin2DDict":[],"GPUOrigin3D":[],"GPUOrigin3DDict":[],"GPUOutOfMemoryError":["GPUOutOfMemoryError"],"GPUPipelineBase":["getBindGroupLayout"],"GPUPipelineConstantValue":[],"GPUPipelineDescriptorBase":[],"GPUPipelineError":["GPUPipelineError"],"GPUPipelineErrorInit":[],"GPUPipelineErrorReason":[],"GPUPipelineLayout":["GPUPipelineLayout"],"GPUPipelineLayoutDescriptor":[],"GPUPowerPreference":[],"GPUPrimitiveState":[],"GPUPrimitiveTopology":[],"GPUProgrammableStage":[],"GPUQuerySet":["GPUQuerySet"],"GPUQuerySetDescriptor":[],"GPUQueryType":[],"GPUQueue":["GPUQueue"],"GPUQueueDescriptor":[],"GPURenderBundle":["GPURenderBundle"],"GPURenderBundleDescriptor":[],"GPURenderBundleEncoder":["GPURenderBundleEncoder"],"GPURenderBundleEncoderDescriptor":[],"GPURenderCommandsMixin":["draw"],"GPURenderPassColorAttachment":[],"GPURenderPassDepthStencilAttachment":[],"GPURenderPassDescriptor":[],"GPURenderPassEncoder":["GPURenderPassEncoder"],"GPURenderPassLayout":[],"GPURenderPassTimestampWrites":[],"GPURenderPipeline":["GPURenderPipeline"],"GPURenderPipelineDescriptor":[],"GPURequestAdapterOptions":[],"GPUSampleMask":[],"GPUSampler":["GPUSampler"],"GPUSamplerBindingLayout":[],"GPUSamplerBindingType":[],"GPUSamplerDescriptor":[],"GPUShaderModule":["GPUShaderModule"],"GPUShaderModuleDescriptor":[],"GPUShaderStageFlags":[],"GPUSignedOffset32":[],"GPUSize32":[],"GPUSize32Out":[],"GPUSize64":[],"GPUSize64Out":[],"GPUStencilFaceState":[],"GPUStencilOperation":[],"GPUStencilValue":[],"GPUStorageTextureAccess":[],"GPUStorageTextureBindingLayout":[],"GPUStoreOp":[],"GPUSupportedFeatures":["GPUSupportedFeatures"],"GPUSupportedLimits":["GPUSupportedLimits"],"GPUTexelCopyBufferInfo":[],"GPUTexelCopyBufferLayout":[],"GPUTexelCopyTextureInfo":[],"GPUTexture":["GPUTexture"],"GPUTextureAspect":[],"GPUTextureBindingLayout":[],"GPUTextureDescriptor":[],"GPUTextureDimension":[],"GPUTextureFormat":[],"GPUTextureSampleType":[],"GPUTextureUsageFlags":[],"GPUTextureView":["GPUTextureView"],"GPUTextureViewDescriptor":[],"GPUTextureViewDimension":[],"GPUUncapturedErrorEvent":["GPUUncapturedErrorEvent"],"GPUUncapturedErrorEventInit":[],"GPUValidationError":["GPUValidationError"],"GPUVertexAttribute":[],"GPUVertexBufferLayout":[],"GPUVertexFormat":[],"GPUVertexState":[],"GPUVertexStepMode":[],"HardwareAcceleration":[],"HashAlgorithmIdentifier":[],"HashChangeEvent":["HashChangeEvent"],"HashChangeEventInit":[],"HdrMetadataType":[],"Headers":["Headers"],"HeadersInit":[],"HeadersIterator":[],"Highlight":["Highlight"],"HighlightRegistry":["HighlightRegistry"],"HighlightType":[],"history":[],"History":["History"],"HkdfParams":[],"HmacImportParams":[],"HmacKeyAlgorithm":[],"HmacKeyGenParams":[],"HTMLAllCollection":["HTMLAllCollection"],"HTMLAnchorElement":["HTMLAnchorElement"],"HTMLAreaElement":["HTMLAreaElement"],"HTMLAudioElement":["HTMLAudioElement"],"HTMLBaseElement":["HTMLBaseElement"],"HTMLBodyElement":["HTMLBodyElement"],"HTMLBodyElementEventMap":[],"HTMLBRElement":["HTMLBRElement"],"HTMLButtonElement":["HTMLButtonElement"],"HTMLCanvasElement":["HTMLCanvasElement"],"HTMLCollection":["namedItem"],"HTMLCollectionBase":["HTMLCollection"],"HTMLCollectionOf":[],"HTMLDataElement":["HTMLDataElement"],"HTMLDataListElement":["HTMLDataListElement"],"HTMLDetailsElement":["HTMLDetailsElement"],"HTMLDialogElement":["HTMLDialogElement"],"HTMLDirectoryElement":[],"HTMLDivElement":["HTMLDivElement"],"HTMLDListElement":["HTMLDListElement"],"HTMLDocument":[],"HTMLElement":["HTMLElement"],"HTMLElementDeprecatedTagNameMap":[],"HTMLElementEventMap":[],"HTMLElementTagNameMap":[],"HTMLEmbedElement":["HTMLEmbedElement"],"HTMLFieldSetElement":["HTMLFieldSetElement"],"HTMLFontElement":["HTMLFontElement"],"HTMLFormControlsCollection":["HTMLFormControlsCollection"],"HTMLFormElement":["HTMLFormElement"],"HTMLFrameElement":[],"HTMLFrameSetElement":["HTMLFrameSetElement"],"HTMLFrameSetElementEventMap":[],"HTMLHeadElement":["HTMLHeadElement"],"HTMLHeadingElement":["HTMLHeadingElement"],"HTMLHRElement":["HTMLHRElement"],"HTMLHtmlElement":["HTMLHtmlElement"],"HTMLHyperlinkElementUtils":["hash"],"HTMLIFrameElement":["HTMLIFrameElement"],"HTMLImageElement":["HTMLImageElement"],"HTMLInputElement":["HTMLInputElement"],"HTMLLabelElement":["HTMLLabelElement"],"HTMLLegendElement":["HTMLLegendElement"],"HTMLLIElement":["HTMLLIElement"],"HTMLLinkElement":["HTMLLinkElement"],"HTMLMapElement":["HTMLMapElement"],"HTMLMarqueeElement":["HTMLMarqueeElement"],"HTMLMediaElement":["HTMLMediaElement"],"HTMLMediaElementEventMap":[],"HTMLMenuElement":["HTMLMenuElement"],"HTMLMetaElement":["HTMLMetaElement"],"HTMLMeterElement":["HTMLMeterElement"],"HTMLModElement":["HTMLModElement"],"HTMLObjectElement":["HTMLObjectElement"],"HTMLOListElement":["HTMLOListElement"],"HTMLOptGroupElement":["HTMLOptGroupElement"],"HTMLOptionElement":["HTMLOptionElement"],"HTMLOptionsCollection":["HTMLOptionsCollection"],"HTMLOrSVGElement":["autofocus"],"HTMLOrSVGImageElement":[],"HTMLOrSVGScriptElement":[],"HTMLOutputElement":["HTMLOutputElement"],"HTMLParagraphElement":["HTMLParagraphElement"],"HTMLParamElement":["HTMLParamElement"],"HTMLPictureElement":["HTMLPictureElement"],"HTMLPreElement":["HTMLPreElement"],"HTMLProgressElement":["HTMLProgressElement"],"HTMLQuoteElement":["HTMLQuoteElement"],"HTMLScriptElement":["HTMLScriptElement"],"HTMLSelectElement":["HTMLSelectElement"],"HTMLSlotElement":["HTMLSlotElement"],"HTMLSourceElement":["HTMLSourceElement"],"HTMLSpanElement":["HTMLSpanElement"],"HTMLStyleElement":["HTMLStyleElement"],"HTMLTableCaptionElement":["HTMLTableCaptionElement"],"HTMLTableCellElement":["HTMLTableCellElement"],"HTMLTableColElement":["HTMLTableColElement"],"HTMLTableDataCellElement":[],"HTMLTableElement":["HTMLTableElement"],"HTMLTableHeaderCellElement":[],"HTMLTableRowElement":["HTMLTableRowElement"],"HTMLTableSectionElement":["HTMLTableSectionElement"],"HTMLTemplateElement":["HTMLTemplateElement"],"HTMLTextAreaElement":["HTMLTextAreaElement"],"HTMLTimeElement":["HTMLTimeElement"],"HTMLTitleElement":["HTMLTitleElement"],"HTMLTrackElement":["HTMLTrackElement"],"HTMLUListElement":["HTMLUListElement"],"HTMLUnknownElement":["HTMLUnknownElement"],"HTMLVideoElement":["HTMLVideoElement"],"HTMLVideoElementEventMap":[],"IArguments":[],"IDBCursor":["IDBCursor"],"IDBCursorDirection":[],"IDBCursorWithValue":["IDBCursorWithValue"],"IDBDatabase":["IDBDatabase"],"IDBDatabaseEventMap":[],"IDBDatabaseInfo":[],"IDBFactory":["IDBFactory"],"IDBIndex":["IDBIndex"],"IDBIndexParameters":[],"IDBKeyRange":["IDBKeyRange"],"IDBObjectStore":["IDBObjectStore"],"IDBObjectStoreParameters":[],"IDBOpenDBRequest":["IDBOpenDBRequest"],"IDBOpenDBRequestEventMap":[],"IDBRequest":["IDBRequest"],"IDBRequestEventMap":[],"IDBRequestReadyState":[],"IDBTransaction":["IDBTransaction"],"IDBTransactionDurability":[],"IDBTransactionEventMap":[],"IDBTransactionMode":[],"IDBTransactionOptions":[],"IDBValidKey":[],"IDBVersionChangeEvent":["IDBVersionChangeEvent"],"IDBVersionChangeEventInit":[],"IdleDeadline":["IdleDeadline"],"IdleRequestCallback":[],"IdleRequestOptions":[],"IIRFilterNode":["IIRFilterNode"],"IIRFilterOptions":[],"Image":[],"ImageBitmap":["ImageBitmap"],"ImageBitmapOptions":[],"ImageBitmapRenderingContext":["ImageBitmapRenderingContext"],"ImageBitmapRenderingContextSettings":[],"ImageBitmapSource":[],"ImageBufferSource":[],"ImageCapture":["ImageCapture"],"ImageData":["ImageData"],"ImageDataArray":[],"ImageDataPixelFormat":[],"ImageDataSettings":[],"ImageDecodeOptions":[],"ImageDecoder":["ImageDecoder"],"ImageDecodeResult":[],"ImageDecoderInit":[],"ImageEncodeOptions":[],"ImageOrientation":[],"ImageSmoothingQuality":[],"ImageTrack":["ImageTrack"],"ImageTrackList":["ImageTrackList"],"ImportAssertions":[],"ImportAttributes":[],"ImportCallOptions":[],"ImportMeta":[],"ImportNodeOptions":[],"importScripts":["WorkerGlobalScope/importScripts"],"indexedDB":[],"Infinity":[],"innerHeight":[],"innerWidth":[],"InputDeviceInfo":["InputDeviceInfo"],"InputEvent":["InputEvent"],"InputEventInit":[],"InsertPosition":[],"InstanceType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype"],"Int16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int16Array"],"Int16ArrayConstructor":[],"Int32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int32Array"],"Int32ArrayConstructor":[],"Int32List":[],"Int8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int8Array"],"Int8ArrayConstructor":[],"IntersectionObserver":["IntersectionObserver"],"IntersectionObserverCallback":[],"IntersectionObserverEntry":["IntersectionObserverEntry"],"IntersectionObserverInit":[],"Intl":[null,{"Collator":[],"CollatorConstructor":[],"CollatorOptions":[],"DateTimeFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat"],"DateTimeFormatConstructor":[],"DateTimeFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat"],"DateTimeFormatPart":[],"DateTimeFormatPartTypes":[],"DateTimeFormatPartTypesRegistry":[],"DateTimeRangeFormatPart":[],"DisplayNames":[],"DisplayNamesFallback":[],"DisplayNamesLanguageDisplay":[],"DisplayNamesOptions":[],"DisplayNamesType":[],"DurationFormat":[],"DurationFormatDisplayOption":[],"DurationFormatLocaleMatcher":[],"DurationFormatOptions":[],"DurationFormatPart":[],"DurationFormatStyle":[],"DurationFormatUnit":[],"DurationFormatUnitSingular":[],"FormattableTemporalObject":[],"getCanonicalLocales":[],"LDMLPluralRule":[],"ListFormat":[],"ListFormatLocaleMatcher":[],"ListFormatOptions":[],"ListFormatStyle":[],"ListFormatType":[],"Locale":["getCalendars"],"LocaleCollationCaseFirst":[],"LocaleHourCycleKey":[],"LocaleOptions":[],"LocalesArgument":[],"NumberFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat"],"NumberFormatConstructor":[],"NumberFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat"],"NumberFormatOptionsCurrencyDisplay":[],"NumberFormatOptionsCurrencyDisplayRegistry":[],"NumberFormatOptionsSignDisplay":[],"NumberFormatOptionsSignDisplayRegistry":[],"NumberFormatOptionsStyle":[],"NumberFormatOptionsStyleRegistry":[],"NumberFormatOptionsUseGrouping":[],"NumberFormatOptionsUseGroupingRegistry":[],"NumberFormatPart":[],"NumberFormatPartTypeRegistry":[],"NumberFormatPartTypes":[],"NumberFormatRangePartTypeRegistry":[],"NumberFormatRangePartTypes":[],"NumberRangeFormatPart":[],"PluralRules":[],"PluralRulesConstructor":[],"PluralRulesOptions":[],"PluralRuleType":[],"RelativeTimeFormat":[],"RelativeTimeFormatLocaleMatcher":[],"RelativeTimeFormatNumeric":[],"RelativeTimeFormatOptions":[],"RelativeTimeFormatPart":[],"RelativeTimeFormatStyle":[],"RelativeTimeFormatUnit":[],"RelativeTimeFormatUnitSingular":[],"ResolvedCollatorOptions":[],"ResolvedDateTimeFormatOptions":[],"ResolvedDisplayNamesOptions":[],"ResolvedDurationFormatOptions":[],"ResolvedListFormatOptions":[],"ResolvedNumberFormatOptions":[],"ResolvedNumberFormatOptionsUseGrouping":[],"ResolvedPluralRulesOptions":[],"ResolvedRelativeTimeFormatOptions":[],"ResolvedSegmenterOptions":[],"SegmentData":[],"Segmenter":[],"SegmenterOptions":[],"SegmentIterator":[],"Segments":[],"StringNumericLiteral":[],"supportedValuesOf":[],"TextInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#return_value"],"UnicodeBCP47LocaleIdentifier":[],"WeekInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#return_value"]}],"isFinite":[],"isNaN":[],"isSecureContext":[],"Iterable":[],"IterableIterator":[],"IterationCompositeOperation":[],"Iterator":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Iterator"],"IteratorConstructor":[],"IteratorObject":[],"IteratorObjectConstructor":[],"IteratorResult":[],"IteratorReturnResult":[],"IteratorYieldResult":[],"ITextWriter":[],"JSON":[],"JsonWebKey":[],"KeyAlgorithm":[],"KeyboardEvent":["KeyboardEvent"],"KeyboardEventInit":[],"KeyFormat":[],"Keyframe":[],"KeyframeAnimationOptions":[],"KeyframeEffect":["KeyframeEffect"],"KeyframeEffectOptions":[],"KeySystemTrackConfiguration":[],"KeyType":[],"KeyUsage":[],"KHR_parallel_shader_compile":["KHR_parallel_shader_compile"],"LargestContentfulPaint":["LargestContentfulPaint"],"LatencyMode":[],"length":[],"LineAlignSetting":[],"LineAndPositionSetting":[],"LinkStyle":["sheet"],"localStorage":[],"location":[],"Location":["Location"],"locationbar":[],"Lock":["Lock"],"LockGrantedCallback":[],"LockInfo":[],"LockManager":["LockManager"],"LockManagerSnapshot":[],"LockMode":[],"LockOptions":[],"LoginStatus":[],"Lowercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"Map":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map"],"MapConstructor":[],"MapIterator":[],"matchMedia":["Window/matchMedia"],"Math":[],"MathMLElement":["MathMLElement"],"MathMLElementEventMap":[],"MathMLElementTagNameMap":[],"MediaCapabilities":["MediaCapabilities"],"MediaCapabilitiesDecodingInfo":[],"MediaCapabilitiesEncodingInfo":[],"MediaCapabilitiesInfo":[],"MediaCapabilitiesKeySystemConfiguration":[],"MediaConfiguration":[],"MediaDecodingConfiguration":[],"MediaDecodingType":[],"MediaDeviceInfo":["MediaDeviceInfo"],"MediaDeviceKind":[],"MediaDevices":["MediaDevices"],"MediaDevicesEventMap":[],"MediaElementAudioSourceNode":["MediaElementAudioSourceNode"],"MediaElementAudioSourceOptions":[],"MediaEncodingConfiguration":[],"MediaEncodingType":[],"MediaEncryptedEvent":["MediaEncryptedEvent"],"MediaEncryptedEventInit":[],"MediaError":["MediaError"],"MediaImage":[],"MediaKeyMessageEvent":["MediaKeyMessageEvent"],"MediaKeyMessageEventInit":[],"MediaKeyMessageType":[],"MediaKeys":["MediaKeys"],"MediaKeySession":["MediaKeySession"],"MediaKeySessionClosedReason":[],"MediaKeySessionEventMap":[],"MediaKeySessionType":[],"MediaKeysPolicy":[],"MediaKeysRequirement":[],"MediaKeyStatus":[],"MediaKeyStatusMap":["MediaKeyStatusMap"],"MediaKeyStatusMapIterator":[],"MediaKeySystemAccess":["MediaKeySystemAccess"],"MediaKeySystemConfiguration":[],"MediaKeySystemMediaCapability":[],"MediaList":["MediaList"],"MediaMetadata":["MediaMetadata"],"MediaMetadataInit":[],"MediaPositionState":[],"MediaProvider":[],"MediaQueryList":["MediaQueryList"],"MediaQueryListEvent":["MediaQueryListEvent"],"MediaQueryListEventInit":[],"MediaQueryListEventMap":[],"MediaRecorder":["MediaRecorder"],"MediaRecorderEventMap":[],"MediaRecorderOptions":[],"MediaSession":["MediaSession"],"MediaSessionAction":[],"MediaSessionActionDetails":[],"MediaSessionActionHandler":[],"MediaSessionPlaybackState":[],"MediaSettingsRange":[],"MediaSource":["MediaSource"],"MediaSourceEventMap":[],"MediaSourceHandle":["MediaSourceHandle"],"MediaStream":["MediaStream"],"MediaStreamAudioDestinationNode":["MediaStreamAudioDestinationNode"],"MediaStreamAudioSourceNode":["MediaStreamAudioSourceNode"],"MediaStreamAudioSourceOptions":[],"MediaStreamConstraints":[],"MediaStreamEventMap":[],"MediaStreamTrack":["MediaStreamTrack"],"MediaStreamTrackEvent":["MediaStreamTrackEvent"],"MediaStreamTrackEventInit":[],"MediaStreamTrackEventMap":[],"MediaStreamTrackProcessor":["MediaStreamTrackProcessor"],"MediaStreamTrackProcessorInit":[],"MediaStreamTrackState":[],"MediaTrackCapabilities":[],"MediaTrackConstraints":[],"MediaTrackConstraintSet":[],"MediaTrackSettings":[],"MediaTrackSupportedConstraints":[],"menubar":[],"MessageChannel":["MessageChannel"],"MessageEvent":["MessageEvent"],"MessageEventInit":[],"MessageEventSource":[],"MessageEventTarget":["message_event"],"MessageEventTargetEventMap":[],"MessagePort":["MessagePort"],"MessagePortEventMap":[],"MethodDecorator":[],"MIDIAccess":["MIDIAccess"],"MIDIAccessEventMap":[],"MIDIConnectionEvent":["MIDIConnectionEvent"],"MIDIConnectionEventInit":[],"MIDIInput":["MIDIInput"],"MIDIInputEventMap":[],"MIDIInputMap":["MIDIInputMap"],"MIDIMessageEvent":["MIDIMessageEvent"],"MIDIMessageEventInit":[],"MIDIOptions":[],"MIDIOutput":["MIDIOutput"],"MIDIOutputMap":["MIDIOutputMap"],"MIDIPort":["MIDIPort"],"MIDIPortConnectionState":[],"MIDIPortDeviceState":[],"MIDIPortEventMap":[],"MIDIPortType":[],"MimeType":["MimeType"],"MimeTypeArray":["MimeTypeArray"],"MouseEvent":["MouseEvent"],"MouseEventInit":[],"moveBy":["Window/moveBy"],"moveTo":["Window/moveTo"],"MultiCacheQueryOptions":[],"MutationCallback":[],"MutationObserver":["MutationObserver"],"MutationObserverInit":[],"MutationRecord":["MutationRecord"],"MutationRecordType":[],"name":[],"NamedCurve":[],"NamedNodeMap":["NamedNodeMap"],"NaN":[],"NavigateEvent":["NavigateEvent"],"NavigateEventInit":[],"navigation":[],"Navigation":["Navigation"],"NavigationActivation":["NavigationActivation"],"NavigationCurrentEntryChangeEvent":["NavigationCurrentEntryChangeEvent"],"NavigationCurrentEntryChangeEventInit":[],"NavigationDestination":["NavigationDestination"],"NavigationEventMap":[],"NavigationFocusReset":[],"NavigationHistoryBehavior":[],"NavigationHistoryEntry":["NavigationHistoryEntry"],"NavigationHistoryEntryEventMap":[],"NavigationInterceptHandler":[],"NavigationInterceptOptions":[],"NavigationNavigateOptions":[],"NavigationOptions":[],"NavigationPrecommitController":["NavigationPrecommitController"],"NavigationPrecommitHandler":[],"NavigationPreloadManager":["NavigationPreloadManager"],"NavigationPreloadState":[],"NavigationReloadOptions":[],"NavigationResult":[],"NavigationScrollBehavior":[],"NavigationTimingType":[],"NavigationTransition":["NavigationTransition"],"NavigationType":[],"NavigationUpdateCurrentEntryOptions":[],"navigator":[],"Navigator":["Navigator"],"NavigatorAutomationInformation":["webdriver"],"NavigatorBadge":["clearAppBadge"],"NavigatorConcurrentHardware":["hardwareConcurrency"],"NavigatorContentUtils":["registerProtocolHandler"],"NavigatorCookies":["cookieEnabled"],"NavigatorGPU":["gpu"],"NavigatorID":["appCodeName"],"NavigatorLanguage":["language"],"NavigatorLocks":["locks"],"NavigatorLogin":["NavigatorLogin"],"NavigatorOnLine":["onLine"],"NavigatorPlugins":["mimeTypes"],"NavigatorStorage":["storage"],"NewableFunction":[],"Node":["Node"],"NodeFilter":[],"NodeIterator":["NodeIterator"],"NodeList":["NodeList"],"NodeListOf":[],"NoInfer":["https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype"],"NonDocumentTypeChildNode":["nextElementSibling"],"NonElementParentNode":["getElementById"],"NonNullable":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"Notification":["Notification"],"NotificationDirection":[],"NotificationEvent":["NotificationEvent"],"NotificationEventInit":[],"NotificationEventMap":[],"NotificationOptions":[],"NotificationPermission":[],"NotificationPermissionCallback":[],"Number":[],"NumberConstructor":[],"Object":[],"ObjectConstructor":[],"OES_draw_buffers_indexed":["OES_draw_buffers_indexed"],"OES_element_index_uint":["OES_element_index_uint"],"OES_fbo_render_mipmap":["OES_fbo_render_mipmap"],"OES_standard_derivatives":["OES_standard_derivatives"],"OES_texture_float":["OES_texture_float"],"OES_texture_float_linear":["OES_texture_float_linear"],"OES_texture_half_float":["OES_texture_half_float"],"OES_texture_half_float_linear":["OES_texture_half_float_linear"],"OES_vertex_array_object":["OES_vertex_array_object"],"OfflineAudioCompletionEvent":["OfflineAudioCompletionEvent"],"OfflineAudioCompletionEventInit":[],"OfflineAudioContext":["OfflineAudioContext"],"OfflineAudioContextEventMap":[],"OfflineAudioContextOptions":[],"OffscreenCanvas":["OffscreenCanvas"],"OffscreenCanvasEventMap":[],"OffscreenCanvasRenderingContext2D":["OffscreenCanvasRenderingContext2D"],"OffscreenRenderingContext":[],"OffscreenRenderingContextId":[],"Omit":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"],"OmitThisParameter":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omitthisparametertype"],"onabort":[],"onafterprint":[],"onanimationcancel":[],"onanimationend":[],"onanimationiteration":[],"onanimationstart":[],"onauxclick":[],"onbeforeinput":[],"onbeforematch":[],"onbeforeprint":[],"onbeforetoggle":[],"onbeforeunload":[],"OnBeforeUnloadEventHandler":[],"OnBeforeUnloadEventHandlerNonNull":[],"onblur":[],"oncancel":[],"oncanplay":[],"oncanplaythrough":[],"onchange":[],"onclick":[],"onclose":[],"oncommand":[],"oncontextlost":[],"oncontextmenu":[],"oncontextrestored":[],"oncopy":[],"oncuechange":[],"oncut":[],"ondblclick":[],"ondevicemotion":[],"ondeviceorientation":[],"ondeviceorientationabsolute":[],"ondrag":[],"ondragend":[],"ondragenter":[],"ondragleave":[],"ondragover":[],"ondragstart":[],"ondrop":[],"ondurationchange":[],"onemptied":[],"onended":[],"onerror":[],"OnErrorEventHandler":[],"OnErrorEventHandlerNonNull":[],"onfocus":[],"onformdata":[],"ongamepadconnected":[],"ongamepaddisconnected":[],"ongotpointercapture":[],"onhashchange":[],"oninput":[],"oninvalid":[],"onkeydown":[],"onkeypress":[],"onkeyup":[],"onlanguagechange":[],"onload":[],"onloadeddata":[],"onloadedmetadata":[],"onloadstart":[],"onlostpointercapture":[],"onmessage":[],"onmessageerror":[],"onmousedown":[],"onmouseenter":[],"onmouseleave":[],"onmousemove":[],"onmouseout":[],"onmouseover":[],"onmouseup":[],"onoffline":[],"ononline":[],"onorientationchange":[],"onpagehide":[],"onpagereveal":[],"onpageshow":[],"onpageswap":[],"onpaste":[],"onpause":[],"onplay":[],"onplaying":[],"onpointercancel":[],"onpointerdown":[],"onpointerenter":[],"onpointerleave":[],"onpointermove":[],"onpointerout":[],"onpointerover":[],"onpointerrawupdate":[],"onpointerup":[],"onpopstate":[],"onprogress":[],"onratechange":[],"onrejectionhandled":[],"onreset":[],"onresize":[],"onrtctransform":[],"onscroll":[],"onscrollend":[],"onsecuritypolicyviolation":[],"onseeked":[],"onseeking":[],"onselect":[],"onselectionchange":[],"onselectstart":[],"onslotchange":[],"onstalled":[],"onstorage":[],"onsubmit":[],"onsuspend":[],"ontimeupdate":[],"ontoggle":[],"ontouchcancel":[],"ontouchend":[],"ontouchmove":[],"ontouchstart":[],"ontransitioncancel":[],"ontransitionend":[],"ontransitionrun":[],"ontransitionstart":[],"onunhandledrejection":[],"onunload":[],"onvolumechange":[],"onwaiting":[],"onwebkitanimationend":[],"onwebkitanimationiteration":[],"onwebkitanimationstart":[],"onwebkittransitionend":[],"onwheel":[],"open":["Window/open"],"opener":[],"Option":[],"OptionalEffectTiming":[],"OptionalPostfixToken":[],"OptionalPrefixToken":[],"OpusBitstreamFormat":[],"OpusEncoderConfig":[],"orientation":[],"OrientationLockType":[],"OrientationType":[],"origin":[],"originAgentCluster":[],"OscillatorNode":["OscillatorNode"],"OscillatorOptions":[],"OscillatorType":[],"outerHeight":[],"outerWidth":[],"OverconstrainedError":["OverconstrainedError"],"OverSampleType":[],"OVR_multiview2":["OVR_multiview2"],"PageRevealEvent":["PageRevealEvent"],"PageRevealEventInit":[],"PageSwapEvent":["PageSwapEvent"],"PageSwapEventInit":[],"PageTransitionEvent":["PageTransitionEvent"],"PageTransitionEventInit":[],"pageXOffset":[],"pageYOffset":[],"PaintTimingMixin":[],"PannerNode":["PannerNode"],"PannerOptions":[],"PanningModelType":[],"ParameterDecorator":[],"Parameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype"],"parent":[],"ParentNode":["childElementCount"],"parseFloat":[],"parseInt":[],"Partial":["https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype"],"Path2D":["Path2D"],"PayerErrors":[],"PaymentAddress":["ContactAddress"],"PaymentComplete":[],"PaymentCurrencyAmount":[],"PaymentDetailsBase":[],"PaymentDetailsInit":[],"PaymentDetailsModifier":[],"PaymentDetailsUpdate":[],"PaymentItem":[],"PaymentMethodChangeEvent":["PaymentMethodChangeEvent"],"PaymentMethodChangeEventInit":[],"PaymentMethodData":[],"PaymentOptions":[],"PaymentRequest":["PaymentRequest"],"PaymentRequestEventMap":[],"PaymentRequestUpdateEvent":["PaymentRequestUpdateEvent"],"PaymentRequestUpdateEventInit":[],"PaymentResponse":["PaymentResponse"],"PaymentResponseEventMap":[],"PaymentShippingOption":[],"PaymentShippingType":[],"PaymentValidationErrors":[],"Pbkdf2Params":[],"performance":[],"Performance":["Performance"],"PerformanceEntry":["PerformanceEntry"],"PerformanceEntryList":[],"PerformanceEventMap":[],"PerformanceEventTiming":["PerformanceEventTiming"],"PerformanceMark":["PerformanceMark"],"PerformanceMarkOptions":[],"PerformanceMeasure":["PerformanceMeasure"],"PerformanceMeasureOptions":[],"PerformanceNavigation":["PerformanceNavigation"],"PerformanceNavigationTiming":["PerformanceNavigationTiming"],"PerformanceObserver":["PerformanceObserver"],"PerformanceObserverCallback":[],"PerformanceObserverEntryList":["PerformanceObserverEntryList"],"PerformanceObserverInit":[],"PerformancePaintTiming":["PerformancePaintTiming"],"PerformanceResourceTiming":["PerformanceResourceTiming"],"PerformanceServerTiming":["PerformanceServerTiming"],"PerformanceTiming":["PerformanceTiming"],"PeriodicWave":["PeriodicWave"],"PeriodicWaveConstraints":[],"PeriodicWaveOptions":[],"PermissionDescriptor":[],"PermissionName":[],"Permissions":["Permissions"],"PermissionState":[],"PermissionStatus":["PermissionStatus"],"PermissionStatusEventMap":[],"personalbar":[],"PhotoCapabilities":[],"PhotoSettings":[],"Pick":["https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys"],"PictureInPictureEvent":["PictureInPictureEvent"],"PictureInPictureEventInit":[],"PictureInPictureWindow":["PictureInPictureWindow"],"PictureInPictureWindowEventMap":[],"PlaneLayout":[],"PlaybackDirection":[],"Plugin":["Plugin"],"PluginArray":["PluginArray"],"PointerEvent":["PointerEvent"],"PointerEventInit":[],"PointerLockOptions":[],"PopoverTargetAttributes":["popoverTargetAction"],"PopStateEvent":["PopStateEvent"],"PopStateEventInit":[],"PositionAlignSetting":[],"PositionCallback":[],"PositionErrorCallback":[],"PositionOptions":[],"postMessage":["DedicatedWorkerGlobalScope/postMessage"],"PredefinedColorSpace":[],"PremultiplyAlpha":[],"PresentationStyle":[],"print":["Window/print"],"ProcessingInstruction":["ProcessingInstruction"],"ProgressEvent":["ProgressEvent"],"ProgressEventInit":[],"Promise":["https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/"],"PromiseConstructor":[],"PromiseConstructorLike":[],"PromiseFulfilledResult":[],"PromiseLike":[],"PromiseRejectedResult":[],"PromiseRejectionEvent":["PromiseRejectionEvent"],"PromiseRejectionEventInit":[],"PromiseSettledResult":[],"PromiseWithResolvers":[],"prompt":["Window/prompt"],"PropertyDecorator":[],"PropertyDefinition":[],"PropertyDescriptor":[],"PropertyDescriptorMap":[],"PropertyIndexedKeyframes":[],"PropertyKey":[],"Proxy":[],"ProxyConstructor":[],"ProxyHandler":[],"PublicKeyCredential":["PublicKeyCredential"],"PublicKeyCredentialClientCapabilities":[],"PublicKeyCredentialCreationOptions":[],"PublicKeyCredentialCreationOptionsJSON":[],"PublicKeyCredentialDescriptor":[],"PublicKeyCredentialDescriptorJSON":[],"PublicKeyCredentialEntity":[],"PublicKeyCredentialParameters":[],"PublicKeyCredentialRequestOptions":[],"PublicKeyCredentialRequestOptionsJSON":[],"PublicKeyCredentialRpEntity":[],"PublicKeyCredentialType":[],"PublicKeyCredentialUserEntity":[],"PublicKeyCredentialUserEntityJSON":[],"PushEncryptionKeyName":[],"PushEvent":["PushEvent"],"PushEventInit":[],"PushManager":["PushManager"],"PushManagerAttribute":["pushManager"],"PushMessageData":["PushMessageData"],"PushMessageDataInit":[],"PushSubscription":["PushSubscription"],"PushSubscriptionChangeEvent":[],"PushSubscriptionChangeEventInit":[],"PushSubscriptionJSON":[],"PushSubscriptionOptions":["PushSubscriptionOptions"],"PushSubscriptionOptionsInit":[],"queueMicrotask":["Window/queueMicrotask"],"QueuingStrategy":[],"QueuingStrategyInit":[],"QueuingStrategySize":[],"RadioNodeList":["RadioNodeList"],"Range":["Range"],"RangeError":[],"RangeErrorConstructor":[],"ReadableByteStreamController":["ReadableByteStreamController"],"ReadableStream":["ReadableStream"],"ReadableStreamAsyncIterator":[],"ReadableStreamBYOBReader":["ReadableStreamBYOBReader"],"ReadableStreamBYOBReaderReadOptions":[],"ReadableStreamBYOBRequest":["ReadableStreamBYOBRequest"],"ReadableStreamController":[],"ReadableStreamDefaultController":["ReadableStreamDefaultController"],"ReadableStreamDefaultReader":["ReadableStreamDefaultReader"],"ReadableStreamGenericReader":["closed"],"ReadableStreamGetReaderOptions":[],"ReadableStreamIteratorOptions":[],"ReadableStreamReadDoneResult":[],"ReadableStreamReader":[],"ReadableStreamReaderMode":[],"ReadableStreamReadResult":[],"ReadableStreamReadValueResult":[],"ReadableStreamType":[],"ReadableWritablePair":[],"Readonly":["https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype"],"ReadonlyArray":[],"ReadonlyMap":[],"ReadonlySet":[],"ReadonlySetLike":[],"ReadyState":[],"Record":["https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"],"RecordingState":[],"RedEyeReduction":[],"ReferenceError":[],"ReferenceErrorConstructor":[],"ReferrerPolicy":[],"Reflect":[null,{"apply":[],"construct":[],"defineProperty":[],"deleteProperty":[],"get":[],"getOwnPropertyDescriptor":[],"getPrototypeOf":[],"has":[],"isExtensible":[],"ownKeys":[],"preventExtensions":[],"set":[],"setPrototypeOf":[]}],"RegExp":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp"],"RegExpConstructor":[],"RegExpExecArray":[],"RegExpIndicesArray":[],"RegExpMatchArray":[],"RegExpStringIterator":[],"RegistrationOptions":[],"RegistrationResponseJSON":[],"releaseEvents":["Window/releaseEvents"],"RemotePlayback":["RemotePlayback"],"RemotePlaybackAvailabilityCallback":[],"RemotePlaybackEventMap":[],"RemotePlaybackState":[],"removeEventListener":[],"RenderingContext":[],"Report":[],"ReportBody":[],"reportError":["Window/reportError"],"ReportingObserver":["ReportingObserver"],"ReportingObserverCallback":[],"ReportingObserverOptions":[],"ReportList":[],"Request":["Request"],"requestAnimationFrame":["DedicatedWorkerGlobalScope/requestAnimationFrame"],"RequestCache":[],"RequestCredentials":[],"RequestDestination":[],"requestIdleCallback":["Window/requestIdleCallback"],"RequestInfo":[],"RequestInit":[],"RequestMode":[],"RequestPriority":[],"RequestRedirect":[],"Required":["https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype"],"ResidentKeyRequirement":[],"resizeBy":["Window/resizeBy"],"ResizeObserver":["ResizeObserver"],"ResizeObserverBoxOptions":[],"ResizeObserverCallback":[],"ResizeObserverEntry":["ResizeObserverEntry"],"ResizeObserverOptions":[],"ResizeObserverSize":["ResizeObserverSize"],"ResizeQuality":[],"resizeTo":["Window/resizeTo"],"Response":["Response"],"ResponseInit":[],"ResponseType":[],"ReturnType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype"],"RsaHashedImportParams":[],"RsaHashedKeyAlgorithm":[],"RsaHashedKeyGenParams":[],"RsaKeyAlgorithm":[],"RsaKeyGenParams":[],"RsaOaepParams":[],"RsaOtherPrimesInfo":[],"RsaPssParams":[],"RTCAnswerOptions":[],"RTCBundlePolicy":[],"RTCCertificate":["RTCCertificate"],"RTCCertificateExpiration":[],"RTCConfiguration":[],"RTCDataChannel":["RTCDataChannel"],"RTCDataChannelEvent":["RTCDataChannelEvent"],"RTCDataChannelEventInit":[],"RTCDataChannelEventMap":[],"RTCDataChannelInit":[],"RTCDataChannelState":[],"RTCDegradationPreference":[],"RTCDtlsFingerprint":[],"RTCDtlsRole":[],"RTCDtlsTransport":["RTCDtlsTransport"],"RTCDtlsTransportEventMap":[],"RTCDtlsTransportState":[],"RTCDTMFSender":["RTCDTMFSender"],"RTCDTMFSenderEventMap":[],"RTCDTMFToneChangeEvent":["RTCDTMFToneChangeEvent"],"RTCDTMFToneChangeEventInit":[],"RTCEncodedAudioFrame":["RTCEncodedAudioFrame"],"RTCEncodedAudioFrameMetadata":[],"RTCEncodedFrameMetadata":[],"RTCEncodedVideoFrame":["RTCEncodedVideoFrame"],"RTCEncodedVideoFrameMetadata":[],"RTCError":["RTCError"],"RTCErrorDetailType":[],"RTCErrorEvent":["RTCErrorEvent"],"RTCErrorEventInit":[],"RTCErrorInit":[],"RTCIceCandidate":["RTCIceCandidate"],"RTCIceCandidateInit":[],"RTCIceCandidatePair":[],"RTCIceCandidatePairStats":[],"RTCIceCandidateType":[],"RTCIceComponent":[],"RTCIceConnectionState":[],"RTCIceGathererState":[],"RTCIceGatheringState":[],"RTCIceProtocol":[],"RTCIceRole":[],"RTCIceServer":[],"RTCIceTcpCandidateType":[],"RTCIceTransport":["RTCIceTransport"],"RTCIceTransportEventMap":[],"RTCIceTransportPolicy":[],"RTCIceTransportState":[],"RTCInboundRtpStreamStats":[],"RTCLocalIceCandidateInit":[],"RTCLocalSessionDescriptionInit":[],"RTCOfferAnswerOptions":[],"RTCOfferOptions":[],"RTCOutboundRtpStreamStats":[],"RTCPeerConnection":["RTCPeerConnection"],"RTCPeerConnectionErrorCallback":[],"RTCPeerConnectionEventMap":[],"RTCPeerConnectionIceErrorEvent":["RTCPeerConnectionIceErrorEvent"],"RTCPeerConnectionIceErrorEventInit":[],"RTCPeerConnectionIceEvent":["RTCPeerConnectionIceEvent"],"RTCPeerConnectionIceEventInit":[],"RTCPeerConnectionState":[],"RTCPriorityType":[],"RTCQualityLimitationReason":[],"RTCReceivedRtpStreamStats":[],"RTCRtcpMuxPolicy":[],"RTCRtcpParameters":[],"RTCRtpCapabilities":[],"RTCRtpCodec":[],"RTCRtpCodecParameters":[],"RTCRtpCodingParameters":[],"RTCRtpContributingSource":[],"RTCRtpEncodingParameters":[],"RTCRtpHeaderExtensionCapability":[],"RTCRtpHeaderExtensionParameters":[],"RTCRtpParameters":[],"RTCRtpReceiveParameters":[],"RTCRtpReceiver":["RTCRtpReceiver"],"RTCRtpReceiverTransform":[],"RTCRtpScriptTransform":["RTCRtpScriptTransform"],"RTCRtpScriptTransformer":["RTCRtpScriptTransformer"],"RTCRtpSender":["RTCRtpSender"],"RTCRtpSenderTransform":[],"RTCRtpSendParameters":[],"RTCRtpStreamStats":[],"RTCRtpSynchronizationSource":[],"RTCRtpTransceiver":["RTCRtpTransceiver"],"RTCRtpTransceiverDirection":[],"RTCRtpTransceiverInit":[],"RTCSctpTransport":["RTCSctpTransport"],"RTCSctpTransportEventMap":[],"RTCSctpTransportState":[],"RTCSdpType":[],"RTCSentRtpStreamStats":[],"RTCSessionDescription":["RTCSessionDescription"],"RTCSessionDescriptionCallback":[],"RTCSessionDescriptionInit":[],"RTCSetParameterOptions":[],"RTCSignalingState":[],"RTCStats":[],"RTCStatsIceCandidatePairState":[],"RTCStatsReport":["RTCStatsReport"],"RTCStatsType":[],"RTCTrackEvent":["RTCTrackEvent"],"RTCTrackEventInit":[],"RTCTransformEvent":["RTCTransformEvent"],"RTCTransportStats":[],"SafeArray":[],"Sanitizer":["allowAttribute"],"SanitizerAttribute":[],"SanitizerAttributeNamespace":[],"SanitizerConfig":[],"SanitizerElement":[],"SanitizerElementNamespace":[],"SanitizerElementNamespaceWithAttributes":[],"SanitizerElementWithAttributes":[],"SanitizerPresets":[],"scheduler":[],"Scheduler":["Scheduler"],"SchedulerPostTaskCallback":[],"SchedulerPostTaskOptions":[],"screen":[],"Screen":["Screen"],"screenLeft":[],"ScreenOrientation":["ScreenOrientation"],"ScreenOrientationEventMap":[],"screenTop":[],"screenX":[],"screenY":[],"ScriptProcessorNode":["ScriptProcessorNode"],"ScriptProcessorNodeEventMap":[],"scroll":["Window/scroll"],"ScrollAxis":[],"scrollbars":[],"ScrollBehavior":[],"scrollBy":["Window/scrollBy"],"ScrollIntoViewOptions":[],"ScrollLogicalPosition":[],"ScrollOptions":[],"ScrollRestoration":[],"ScrollSetting":[],"ScrollTimeline":["ScrollTimeline"],"ScrollTimelineOptions":[],"scrollTo":["Window/scrollTo"],"ScrollToOptions":[],"scrollX":[],"scrollY":[],"SecurityPolicyViolationEvent":["SecurityPolicyViolationEvent"],"SecurityPolicyViolationEventDisposition":[],"SecurityPolicyViolationEventInit":[],"Selection":["Selection"],"SelectionDirection":[],"SelectionMode":[],"self":[],"ServiceWorker":["ServiceWorker"],"ServiceWorkerContainer":["ServiceWorkerContainer"],"ServiceWorkerContainerEventMap":[],"ServiceWorkerEventMap":[],"ServiceWorkerGlobalScope":["ServiceWorkerGlobalScope"],"ServiceWorkerGlobalScopeEventMap":[],"ServiceWorkerRegistration":["ServiceWorkerRegistration"],"ServiceWorkerRegistrationEventMap":[],"ServiceWorkerState":[],"ServiceWorkerUpdateViaCache":[],"sessionStorage":[],"Set":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set"],"SetConstructor":[],"setInterval":["Window/setInterval"],"SetIterator":[],"setTimeout":["Window/setTimeout"],"ShadowRoot":["ShadowRoot"],"ShadowRootEventMap":[],"ShadowRootInit":[],"ShadowRootMode":[],"SharedArrayBuffer":[],"SharedArrayBufferConstructor":[],"ShareData":[],"SharedWorker":["SharedWorker"],"SharedWorkerGlobalScope":["SharedWorkerGlobalScope"],"SharedWorkerGlobalScopeEventMap":[],"ShowPopoverOptions":[],"SlotAssignmentMode":[],"Slottable":["assignedSlot"],"SourceBuffer":["SourceBuffer"],"SourceBufferEventMap":[],"SourceBufferList":["SourceBufferList"],"SourceBufferListEventMap":[],"SpeechRecognitionAlternative":["SpeechRecognitionAlternative"],"SpeechRecognitionErrorCode":[],"SpeechRecognitionErrorEvent":["SpeechRecognitionErrorEvent"],"SpeechRecognitionErrorEventInit":[],"SpeechRecognitionEvent":["SpeechRecognitionEvent"],"SpeechRecognitionEventInit":[],"SpeechRecognitionResult":["SpeechRecognitionResult"],"SpeechRecognitionResultList":["SpeechRecognitionResultList"],"speechSynthesis":[],"SpeechSynthesis":["SpeechSynthesis"],"SpeechSynthesisErrorCode":[],"SpeechSynthesisErrorEvent":["SpeechSynthesisErrorEvent"],"SpeechSynthesisErrorEventInit":[],"SpeechSynthesisEvent":["SpeechSynthesisEvent"],"SpeechSynthesisEventInit":[],"SpeechSynthesisEventMap":[],"SpeechSynthesisUtterance":["SpeechSynthesisUtterance"],"SpeechSynthesisUtteranceEventMap":[],"SpeechSynthesisVoice":["SpeechSynthesisVoice"],"StartViewTransitionOptions":[],"StaticRange":["StaticRange"],"StaticRangeInit":[],"status":[],"statusbar":[],"StereoPannerNode":["StereoPannerNode"],"StereoPannerOptions":[],"stop":["Window/stop"],"Storage":["Storage"],"StorageEstimate":[],"StorageEvent":["StorageEvent"],"StorageEventInit":[],"StorageManager":["StorageManager"],"StreamPipeOptions":[],"String":[],"StringConstructor":[],"StringIterator":[],"structuredClone":["Window/structuredClone"],"StructuredSerializeOptions":[],"StylePropertyMap":["StylePropertyMap"],"StylePropertyMapReadOnly":["StylePropertyMapReadOnly"],"StylePropertyMapReadOnlyIterator":[],"StyleSheet":["StyleSheet"],"StyleSheetList":["StyleSheetList"],"SubmitEvent":["SubmitEvent"],"SubmitEventInit":[],"SubtleCrypto":["SubtleCrypto"],"SuppressedError":[],"SuppressedErrorConstructor":[],"SvcOutputMetadata":[],"SVGAElement":["SVGAElement"],"SVGAngle":["SVGAngle"],"SVGAnimatedAngle":["SVGAnimatedAngle"],"SVGAnimatedBoolean":["SVGAnimatedBoolean"],"SVGAnimatedEnumeration":["SVGAnimatedEnumeration"],"SVGAnimatedInteger":["SVGAnimatedInteger"],"SVGAnimatedLength":["SVGAnimatedLength"],"SVGAnimatedLengthList":["SVGAnimatedLengthList"],"SVGAnimatedNumber":["SVGAnimatedNumber"],"SVGAnimatedNumberList":["SVGAnimatedNumberList"],"SVGAnimatedPoints":["animatedPoints"],"SVGAnimatedPreserveAspectRatio":["SVGAnimatedPreserveAspectRatio"],"SVGAnimatedRect":["SVGAnimatedRect"],"SVGAnimatedString":["SVGAnimatedString"],"SVGAnimatedTransformList":["SVGAnimatedTransformList"],"SVGAnimateElement":["SVGAnimateElement"],"SVGAnimateMotionElement":["SVGAnimateMotionElement"],"SVGAnimateTransformElement":["SVGAnimateTransformElement"],"SVGAnimationElement":["SVGAnimationElement"],"SVGBoundingBoxOptions":[],"SVGCircleElement":["SVGCircleElement"],"SVGClipPathElement":["SVGClipPathElement"],"SVGComponentTransferFunctionElement":["SVGComponentTransferFunctionElement"],"SVGDefsElement":["SVGDefsElement"],"SVGDescElement":["SVGDescElement"],"SVGElement":["SVGElement"],"SVGElementEventMap":[],"SVGElementTagNameMap":[],"SVGEllipseElement":["SVGEllipseElement"],"SVGFEBlendElement":["SVGFEBlendElement"],"SVGFEColorMatrixElement":["SVGFEColorMatrixElement"],"SVGFEComponentTransferElement":["SVGFEComponentTransferElement"],"SVGFECompositeElement":["SVGFECompositeElement"],"SVGFEConvolveMatrixElement":["SVGFEConvolveMatrixElement"],"SVGFEDiffuseLightingElement":["SVGFEDiffuseLightingElement"],"SVGFEDisplacementMapElement":["SVGFEDisplacementMapElement"],"SVGFEDistantLightElement":["SVGFEDistantLightElement"],"SVGFEDropShadowElement":["SVGFEDropShadowElement"],"SVGFEFloodElement":["SVGFEFloodElement"],"SVGFEFuncAElement":["SVGFEFuncAElement"],"SVGFEFuncBElement":["SVGFEFuncBElement"],"SVGFEFuncGElement":["SVGFEFuncGElement"],"SVGFEFuncRElement":["SVGFEFuncRElement"],"SVGFEGaussianBlurElement":["SVGFEGaussianBlurElement"],"SVGFEImageElement":["SVGFEImageElement"],"SVGFEMergeElement":["SVGFEMergeElement"],"SVGFEMergeNodeElement":["SVGFEMergeNodeElement"],"SVGFEMorphologyElement":["SVGFEMorphologyElement"],"SVGFEOffsetElement":["SVGFEOffsetElement"],"SVGFEPointLightElement":["SVGFEPointLightElement"],"SVGFESpecularLightingElement":["SVGFESpecularLightingElement"],"SVGFESpotLightElement":["SVGFESpotLightElement"],"SVGFETileElement":["SVGFETileElement"],"SVGFETurbulenceElement":["SVGFETurbulenceElement"],"SVGFilterElement":["SVGFilterElement"],"SVGFilterPrimitiveStandardAttributes":["height"],"SVGFitToViewBox":["preserveAspectRatio"],"SVGForeignObjectElement":["SVGForeignObjectElement"],"SVGGElement":["SVGGElement"],"SVGGeometryElement":["SVGGeometryElement"],"SVGGradientElement":["SVGGradientElement"],"SVGGraphicsElement":["SVGGraphicsElement"],"SVGImageElement":["SVGImageElement"],"SVGLength":["SVGLength"],"SVGLengthList":["SVGLengthList"],"SVGLinearGradientElement":["SVGLinearGradientElement"],"SVGLineElement":["SVGLineElement"],"SVGMarkerElement":["SVGMarkerElement"],"SVGMaskElement":["SVGMaskElement"],"SVGMatrix":[],"SVGMetadataElement":["SVGMetadataElement"],"SVGMPathElement":["SVGMPathElement"],"SVGNumber":["SVGNumber"],"SVGNumberList":["SVGNumberList"],"SVGPathElement":["SVGPathElement"],"SVGPatternElement":["SVGPatternElement"],"SVGPoint":[],"SVGPointList":["SVGPointList"],"SVGPolygonElement":["SVGPolygonElement"],"SVGPolylineElement":["SVGPolylineElement"],"SVGPreserveAspectRatio":["SVGPreserveAspectRatio"],"SVGRadialGradientElement":["SVGRadialGradientElement"],"SVGRect":[],"SVGRectElement":["SVGRectElement"],"SVGScriptElement":["SVGScriptElement"],"SVGSetElement":["SVGSetElement"],"SVGStopElement":["SVGStopElement"],"SVGStringList":["SVGStringList"],"SVGStyleElement":["SVGStyleElement"],"SVGSVGElement":["SVGSVGElement"],"SVGSVGElementEventMap":[],"SVGSwitchElement":["SVGSwitchElement"],"SVGSymbolElement":["SVGSymbolElement"],"SVGTests":["requiredExtensions"],"SVGTextContentElement":["SVGTextContentElement"],"SVGTextElement":["SVGTextElement"],"SVGTextPathElement":["SVGTextPathElement"],"SVGTextPositioningElement":["SVGTextPositioningElement"],"SVGTitleElement":["SVGTitleElement"],"SVGTransform":["SVGTransform"],"SVGTransformList":["SVGTransformList"],"SVGTSpanElement":["SVGTSpanElement"],"SVGUnitTypes":["SVGUnitTypes"],"SVGURIReference":["href"],"SVGUseElement":["SVGUseElement"],"SVGViewElement":["SVGViewElement"],"Symbol":[],"SymbolConstructor":[],"SyntaxError":[],"SyntaxErrorConstructor":[],"TaskController":["TaskController"],"TaskControllerInit":[],"TaskPriority":[],"TaskPriorityChangeEvent":["TaskPriorityChangeEvent"],"TaskPriorityChangeEventInit":[],"TaskSignal":["TaskSignal"],"TaskSignalAnyInit":[],"TaskSignalEventMap":[],"TemplateStringsArray":[],"Temporal":[null,{"CalendarLike":[],"DateLikeObject":[],"DateTimeLikeObject":[],"DateUnit":[],"DisambiguationOptions":[],"Duration":[],"DurationConstructor":[],"DurationLike":[],"DurationLikeObject":[],"DurationRelativeToOptions":[],"DurationRoundingOptions":[],"DurationToStringOptions":[],"DurationTotalOptions":[],"Instant":[],"InstantConstructor":[],"InstantLike":[],"InstantToStringOptions":[],"Now":[null,{"instant":[],"plainDateISO":[],"plainDateTimeISO":[],"plainTimeISO":[],"timeZoneId":[],"zonedDateTimeISO":[]}],"OverflowOptions":[],"PartialTemporalLike":[],"PlainDate":[],"PlainDateConstructor":[],"PlainDateLike":[],"PlainDateTime":[],"PlainDateTimeConstructor":[],"PlainDateTimeLike":[],"PlainDateTimeToStringOptions":[],"PlainDateToStringOptions":[],"PlainDateToZonedDateTimeOptions":[],"PlainMonthDay":[],"PlainMonthDayConstructor":[],"PlainMonthDayLike":[],"PlainMonthDayToPlainDateOptions":[],"PlainTime":[],"PlainTimeConstructor":[],"PlainTimeLike":[],"PlainTimeToStringOptions":[],"PlainYearMonth":[],"PlainYearMonthConstructor":[],"PlainYearMonthLike":[],"PlainYearMonthToPlainDateOptions":[],"PluralizeUnit":[],"RoundingOptions":[],"RoundingOptionsWithLargestUnit":[],"TimeLikeObject":[],"TimeUnit":[],"TimeZoneLike":[],"ToStringRoundingOptions":[],"ToStringRoundingOptionsWithFractionalSeconds":[],"TransitionOptions":[],"YearMonthLikeObject":[],"ZonedDateTime":[],"ZonedDateTimeConstructor":[],"ZonedDateTimeFromOptions":[],"ZonedDateTimeLike":[],"ZonedDateTimeLikeObject":[],"ZonedDateTimeToStringOptions":[]}],"TexImageSource":[],"Text":["Text"],"TextDecodeOptions":[],"TextDecoder":["TextDecoder"],"TextDecoderCommon":["encoding"],"TextDecoderOptions":[],"TextDecoderStream":["TextDecoderStream"],"TextEncoder":["TextEncoder"],"TextEncoderCommon":["encoding"],"TextEncoderEncodeIntoResult":[],"TextEncoderStream":["TextEncoderStream"],"TextEvent":["TextEvent"],"TextMetrics":["TextMetrics"],"TextStreamBase":[],"TextStreamReader":[],"TextStreamWriter":[],"TextTrack":["TextTrack"],"TextTrackCue":["TextTrackCue"],"TextTrackCueEventMap":[],"TextTrackCueList":["TextTrackCueList"],"TextTrackEventMap":[],"TextTrackKind":[],"TextTrackList":["TextTrackList"],"TextTrackListEventMap":[],"TextTrackMode":[],"ThisParameterType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thisparametertypetype"],"ThisType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thistypetype"],"TimelineRangeOffset":[],"TimeRanges":["TimeRanges"],"TimerHandler":[],"ToggleEvent":["ToggleEvent"],"ToggleEventInit":[],"TogglePopoverOptions":[],"toolbar":[],"top":[],"Touch":["Touch"],"TouchEvent":["TouchEvent"],"TouchEventInit":[],"TouchInit":[],"TouchList":["TouchList"],"TouchType":[],"TrackEvent":["TrackEvent"],"TrackEventInit":[],"Transferable":[],"TransferFunction":[],"Transformer":[],"TransformerFlushCallback":[],"TransformerStartCallback":[],"TransformerTransformCallback":[],"TransformStream":["TransformStream"],"TransformStreamDefaultController":["TransformStreamDefaultController"],"TransitionEvent":["TransitionEvent"],"TransitionEventInit":[],"TreeWalker":["TreeWalker"],"TypedPropertyDescriptor":[],"TypeError":[],"TypeErrorConstructor":[],"UIEvent":["UIEvent"],"UIEventInit":[],"Uint16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array"],"Uint16ArrayConstructor":[],"Uint32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array"],"Uint32ArrayConstructor":[],"Uint32List":[],"Uint8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"],"Uint8ArrayConstructor":[],"Uint8ClampedArray":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray"],"Uint8ClampedArrayConstructor":[],"ULongRange":[],"Uncapitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"UnderlyingByteSource":[],"UnderlyingDefaultSource":[],"UnderlyingSink":[],"UnderlyingSinkAbortCallback":[],"UnderlyingSinkCloseCallback":[],"UnderlyingSinkStartCallback":[],"UnderlyingSinkWriteCallback":[],"UnderlyingSource":[],"UnderlyingSourceCancelCallback":[],"UnderlyingSourcePullCallback":[],"UnderlyingSourceStartCallback":[],"unescape":[],"UnknownCredentialOptions":[],"Uppercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"URIError":[],"URIErrorConstructor":[],"URL":["URL"],"URLPattern":["URLPattern"],"URLPatternComponentResult":[],"URLPatternInit":[],"URLPatternInput":[],"URLPatternOptions":[],"URLPatternResult":[],"URLSearchParams":["URLSearchParams"],"URLSearchParamsIterator":[],"UserActivation":["UserActivation"],"UserVerificationRequirement":[],"ValidityState":["ValidityState"],"ValidityStateFlags":[],"VarDate":[],"VBArray":[],"VBArrayConstructor":[],"VibratePattern":[],"VideoColorPrimaries":[],"VideoColorSpace":["VideoColorSpace"],"VideoColorSpaceInit":[],"VideoConfiguration":[],"VideoDecoder":["VideoDecoder"],"VideoDecoderConfig":[],"VideoDecoderEventMap":[],"VideoDecoderInit":[],"VideoDecoderSupport":[],"VideoEncoder":["VideoEncoder"],"VideoEncoderBitrateMode":[],"VideoEncoderConfig":[],"VideoEncoderEncodeOptions":[],"VideoEncoderEncodeOptionsForAvc":[],"VideoEncoderEventMap":[],"VideoEncoderInit":[],"VideoEncoderSupport":[],"VideoFacingModeEnum":[],"VideoFrame":["VideoFrame"],"VideoFrameBufferInit":[],"VideoFrameCallbackMetadata":[],"VideoFrameCopyToOptions":[],"VideoFrameInit":[],"VideoFrameOutputCallback":[],"VideoFrameRequestCallback":[],"VideoMatrixCoefficients":[],"VideoPixelFormat":[],"VideoPlaybackQuality":["VideoPlaybackQuality"],"VideoTransferCharacteristics":[],"ViewTimeline":["ViewTimeline"],"ViewTimelineOptions":[],"ViewTransition":["ViewTransition"],"ViewTransitionTypeSet":["ViewTransitionTypeSet"],"ViewTransitionUpdateCallback":[],"visualViewport":[],"VisualViewport":["VisualViewport"],"VisualViewportEventMap":[],"VoidFunction":[],"VTTCue":["VTTCue"],"VTTRegion":["VTTRegion"],"WakeLock":["WakeLock"],"WakeLockSentinel":["WakeLockSentinel"],"WakeLockSentinelEventMap":[],"WakeLockType":[],"WaveShaperNode":["WaveShaperNode"],"WaveShaperOptions":[],"WeakKey":[],"WeakKeyTypes":[],"WeakMap":[],"WeakMapConstructor":[],"WeakRef":[],"WeakRefConstructor":[],"WeakSet":[],"WeakSetConstructor":[],"WebAssembly":[null,{"AddressType":[],"AddressValue":[],"compile":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static"],"CompileError":[],"compileStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static"],"Exception":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception"],"ExceptionOptions":[],"Exports":[],"ExportValue":[],"Global":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global"],"GlobalDescriptor":[],"ImportExportKind":[],"Imports":[],"ImportValue":[],"Instance":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance"],"instantiate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static"],"instantiateStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static"],"JSTag":[],"LinkError":[],"Memory":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory"],"MemoryDescriptor":[],"Module":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module"],"ModuleExportDescriptor":[],"ModuleImportDescriptor":[],"ModuleImports":[],"RuntimeError":[],"Table":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table"],"TableDescriptor":[],"TableKind":[],"Tag":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag"],"TagType":[],"validate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static"],"ValueType":[],"ValueTypeMap":[],"WebAssemblyCompileOptions":[],"WebAssemblyInstantiatedSource":[]}],"WebCodecsErrorCallback":[],"WEBGL_color_buffer_float":["WEBGL_color_buffer_float"],"WEBGL_compressed_texture_astc":["WEBGL_compressed_texture_astc"],"WEBGL_compressed_texture_etc":["WEBGL_compressed_texture_etc"],"WEBGL_compressed_texture_etc1":["WEBGL_compressed_texture_etc1"],"WEBGL_compressed_texture_pvrtc":["WEBGL_compressed_texture_pvrtc"],"WEBGL_compressed_texture_s3tc":["WEBGL_compressed_texture_s3tc"],"WEBGL_compressed_texture_s3tc_srgb":["WEBGL_compressed_texture_s3tc_srgb"],"WEBGL_debug_renderer_info":["WEBGL_debug_renderer_info"],"WEBGL_debug_shaders":["WEBGL_debug_shaders"],"WEBGL_depth_texture":["WEBGL_depth_texture"],"WEBGL_draw_buffers":["WEBGL_draw_buffers"],"WEBGL_lose_context":["WEBGL_lose_context"],"WEBGL_multi_draw":["WEBGL_multi_draw"],"WebGL2RenderingContext":["WebGL2RenderingContext"],"WebGL2RenderingContextBase":["beginQuery"],"WebGL2RenderingContextOverloads":["bufferData"],"WebGLActiveInfo":["WebGLActiveInfo"],"WebGLBuffer":["WebGLBuffer"],"WebGLContextAttributes":[],"WebGLContextEvent":["WebGLContextEvent"],"WebGLContextEventInit":[],"WebGLFramebuffer":["WebGLFramebuffer"],"WebGLPowerPreference":[],"WebGLProgram":["WebGLProgram"],"WebGLQuery":["WebGLQuery"],"WebGLRenderbuffer":["WebGLRenderbuffer"],"WebGLRenderingContext":["WebGLRenderingContext"],"WebGLRenderingContextBase":["drawingBufferColorSpace"],"WebGLRenderingContextOverloads":["bufferData"],"WebGLSampler":["WebGLSampler"],"WebGLShader":["WebGLShader"],"WebGLShaderPrecisionFormat":["WebGLShaderPrecisionFormat"],"WebGLSync":["WebGLSync"],"WebGLTexture":["WebGLTexture"],"WebGLTransformFeedback":["WebGLTransformFeedback"],"WebGLUniformLocation":["WebGLUniformLocation"],"WebGLVertexArrayObject":["WebGLVertexArrayObject"],"WebGLVertexArrayObjectOES":["WebGLVertexArrayObject"],"WebKitCSSMatrix":[],"webkitURL":[],"WebSocket":["WebSocket"],"WebSocketEventMap":[],"WebTransport":["WebTransport"],"WebTransportBidirectionalStream":["WebTransportBidirectionalStream"],"WebTransportCloseInfo":[],"WebTransportCongestionControl":[],"WebTransportDatagramDuplexStream":["WebTransportDatagramDuplexStream"],"WebTransportError":["WebTransportError"],"WebTransportErrorOptions":[],"WebTransportErrorSource":[],"WebTransportHash":[],"WebTransportOptions":[],"WebTransportSendOptions":[],"WebTransportSendStreamOptions":[],"WGSLLanguageFeatures":["WGSLLanguageFeatures"],"WheelEvent":["WheelEvent"],"WheelEventInit":[],"window":[],"Window":["Window"],"WindowClient":["WindowClient"],"WindowEventHandlers":["afterprint_event"],"WindowEventHandlersEventMap":[],"WindowEventMap":[],"WindowLocalStorage":["localStorage"],"WindowOrWorkerGlobalScope":["caches"],"WindowPostMessageOptions":[],"WindowProxy":[],"WindowSessionStorage":["sessionStorage"],"Worker":["Worker"],"WorkerEventMap":[],"WorkerGlobalScope":["WorkerGlobalScope"],"WorkerGlobalScopeEventMap":[],"WorkerLocation":["WorkerLocation"],"WorkerNavigator":["WorkerNavigator"],"WorkerOptions":[],"WorkerType":[],"Worklet":["Worklet"],"WorkletOptions":[],"WritableStream":["WritableStream"],"WritableStreamDefaultController":["WritableStreamDefaultController"],"WritableStreamDefaultWriter":["WritableStreamDefaultWriter"],"WriteCommandType":[],"WriteParams":[],"WScript":[],"WSH":[],"XMLDocument":["XMLDocument"],"XMLHttpRequest":["XMLHttpRequest"],"XMLHttpRequestBodyInit":[],"XMLHttpRequestEventMap":[],"XMLHttpRequestEventTarget":["XMLHttpRequestEventTarget"],"XMLHttpRequestEventTargetEventMap":[],"XMLHttpRequestResponseType":[],"XMLHttpRequestUpload":["XMLHttpRequestUpload"],"XMLSerializer":["XMLSerializer"],"XPathEvaluator":["XPathEvaluator"],"XPathEvaluatorBase":["createExpression"],"XPathExpression":["XPathExpression"],"XPathNSResolver":[],"XPathResult":["XPathResult"],"XSLTProcessor":["XSLTProcessor"]}'), An = {
1206
+ globals: In
1207
+ }, ut = Object.freeze(
1208
+ Object.assign(/* @__PURE__ */ Object.create(null), An.globals)
1209
+ ), ft = "https://developer.mozilla.org/docs/Web/API/";
1210
+ function pi(e, t, n = "*", i) {
1211
+ if (e === "@arcgis/core")
1212
+ return kn(t, n, i);
1213
+ }
1214
+ function kn(e, t, n) {
1215
+ if (!(e === void 0 || e === "interfaces.d.ts")) {
1216
+ const i = `https://${n.config.documentation.host}${Gn}${ee(e)}/`;
1217
+ return Ai(i, t === "default" || t === "*" ? void 0 : t, void 0);
1218
+ }
1219
+ }
1220
+ const Gn = Zt("core");
1221
+ function je(e, t, n, i) {
1222
+ i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1223
+ const a = i.implicitPublicModules[e];
1224
+ a === void 0 ? i.implicitPublicModules[e] = {
1225
+ actualModulePath: void 0,
1226
+ // moduleResolution:Node16 may use .js extension to refer to non-JS files
1227
+ sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1228
+ pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1229
+ extractedNames: /* @__PURE__ */ new Set()
1230
+ } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1231
+ }
1232
+ function Fn(e, t) {
1233
+ const n = tt(e);
1234
+ if (t.pendingNames === void 0)
1235
+ return n > 0;
1236
+ if (n === 2 && t.pendingNames.has("default"))
1237
+ return !0;
1238
+ const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1239
+ return t.pendingNames.has(a);
1240
+ }
1241
+ function Je(e, t, n, i, a) {
1242
+ const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Wn(l), c = t.escapedText, p = s ?? c, d = l?.declarations?.[0];
1243
+ if (d === void 0)
1244
+ return n.emitError(`Unable to resolve the declaration file name for the type ${p}`, {
1245
+ file: n.file,
1246
+ node: void 0
1247
+ }), {
1248
+ name: p,
1249
+ module: void 0,
1250
+ package: Re,
1251
+ viewUrl: void 0,
1252
+ start: i,
1253
+ end: a
1254
+ };
1255
+ const m = d.getSourceFile(), { packageName: f, modulePath: u } = Nn(m.fileName, n, p);
1256
+ if (f === "@arcgis/core" && u === "interfaces.js")
1257
+ return n.moduleContext.importsMap.__esri = {
1258
+ type: "*",
1259
+ modulePath: void 0,
1260
+ specifier: `${f}/${u}`,
1261
+ replacementName: void 0,
1262
+ actualName: void 0,
1263
+ wasUsed: !0
1264
+ }, {
1265
+ name: "__esri",
1266
+ module: u,
1267
+ package: f,
1268
+ viewUrl: void 0,
1269
+ start: i,
1270
+ end: a
1271
+ };
1272
+ if (f === "typescript" && u?.startsWith("lib/") === !0) {
1273
+ let g = ut[p], P, h = p;
1274
+ if (g === void 0) {
1275
+ for (let R = d.parent; R !== void 0; R = R.parent)
1276
+ if (o.isModuleDeclaration(R) && o.isIdentifier(R.name)) {
1277
+ P = R.name.escapedText, g = ut[P]?.[1]?.[p], h = `${P}.${p}`, be(t, h);
1278
+ break;
1279
+ }
1280
+ }
1281
+ return {
1282
+ name: h,
1283
+ module: void 0,
1284
+ package: Re,
1285
+ viewUrl: g?.[0]?.startsWith("https") === !1 ? `${ft}${g[0]}` : g?.[0] ?? void 0,
1286
+ start: i,
1287
+ end: i + h.length
1288
+ };
1289
+ }
1290
+ let v = p;
1291
+ if (f !== void 0 && u === void 0 && s?.startsWith("HTML") === !0 && d.parent.kind === o.SyntaxKind.ModuleBlock && d.parent.parent.kind === o.SyntaxKind.ModuleDeclaration && d.parent.parent.name.escapedText === "global") {
1292
+ if (s.endsWith("Element")) {
1293
+ const g = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1294
+ if (g !== void 0 && o.isIdentifier(g)) {
1295
+ const P = r.getSymbolAtLocation(g);
1296
+ if (P !== void 0) {
1297
+ const h = r.getAliasedSymbol(P);
1298
+ return Je(
1299
+ h,
1300
+ t,
1301
+ n,
1302
+ i,
1303
+ i + h.escapedName.length
1304
+ );
1305
+ }
1306
+ }
1307
+ } else if (
1308
+ // Only supporting the syntax after
1309
+ // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1310
+ // As this interface is not likely to be used directly.
1311
+ s.endsWith("ElementEventMap") && o.isTypeAliasDeclaration(d) && o.isIndexedAccessTypeNode(d.type) && o.isTypeReferenceNode(d.type.objectType) && o.isIdentifier(d.type.objectType.typeName) && o.isLiteralTypeNode(d.type.indexType) && o.isStringLiteral(d.type.indexType.literal) && d.type.indexType.literal.text === "@eventTypes"
1312
+ ) {
1313
+ const g = r.getSymbolAtLocation(d.type.objectType.typeName);
1314
+ if (g !== void 0) {
1315
+ const P = r.getAliasedSymbol(g), h = Je(
1316
+ P,
1317
+ t,
1318
+ n,
1319
+ i,
1320
+ i + P.escapedName.length
1321
+ );
1322
+ return be(t, c), be(t, `${h.name}["@eventTypes"]`), h;
1323
+ }
1324
+ }
1325
+ }
1326
+ if (f !== void 0 || u !== void 0) {
1327
+ const g = s ?? ((u ?? f).split("/").pop()?.replaceAll(On, "") || "type");
1328
+ for (let P = 1; ; P += 1) {
1329
+ const h = P === 1 ? g : `${g}${P}`;
1330
+ let R = n.functionLikeTypeParameters?.has(h) === !0 || n.objectLikeTypeParameters?.has(h) === !0 || n.localDeclarations.has(h);
1331
+ if (R)
1332
+ continue;
1333
+ const L = n.moduleContext.importsMap[h], y = L !== void 0 && (f === void 0 ? L.modulePath === u : L.specifier === f + (u === void 0 ? "" : `/${u}`));
1334
+ if (y ? L.wasUsed = !0 : R = n.moduleContext.importsMap[h] !== void 0, R)
1335
+ continue;
1336
+ const k = h !== c;
1337
+ k && (be(t, h), a = i + h.length);
1338
+ const M = _n(l), I = M === "named";
1339
+ I || (v = M), f === void 0 && !n.config.strict && je(
1340
+ u,
1341
+ m.fileName.slice(n.basePath.length),
1342
+ v,
1343
+ n
1344
+ ), y || (n.moduleContext.importsMap[h] = {
1345
+ type: M,
1346
+ modulePath: f === void 0 ? u : void 0,
1347
+ specifier: f === void 0 ? ye(oe(n.apiModule).dtsPath, u) : f + (u === void 0 ? "" : `/${u}`),
1348
+ replacementName: void 0,
1349
+ actualName: I && k ? s : void 0,
1350
+ wasUsed: !0
1351
+ });
1352
+ break;
1353
+ }
1354
+ } else if (n.localPrivateDeclarations?.has(c) === !0)
1355
+ n.localPrivateDeclarations.set(
1356
+ c,
1357
+ Math.abs(n.localPrivateDeclarations.get(c))
1358
+ );
1359
+ else {
1360
+ if (d.kind === o.SyntaxKind.TypeParameter)
1361
+ return {
1362
+ name: c,
1363
+ module: void 0,
1364
+ package: void 0,
1365
+ viewUrl: void 0,
1366
+ start: i,
1367
+ end: a
1368
+ };
1369
+ n.localDeclarations.has(c) || n.emitError(
1370
+ `@public declaration referenced non-public ${ne("red", c)}. Either mark it @public or refactor out the reference. Note that Enums are not supported in public docs per https://devtopia.esri.com/WebGIS/arcgis-js-api/discussions/73576.`,
1371
+ {
1372
+ file: n.file,
1373
+ node: void 0
1374
+ }
1375
+ );
1376
+ }
1377
+ const C = v === "default" || v === "*" ? void 0 : s;
1378
+ return f ? {
1379
+ name: v,
1380
+ module: u || void 0,
1381
+ package: f,
1382
+ viewUrl: pi(f, u ?? "", C, n),
1383
+ start: i,
1384
+ end: a
1385
+ } : {
1386
+ name: v,
1387
+ module: u,
1388
+ package: void 0,
1389
+ viewUrl: Ue(u ?? n.apiModule.path, C, void 0, n),
1390
+ start: i,
1391
+ end: a
1392
+ };
1393
+ }
1394
+ const On = /[^a-zA-Z0-9$_]/gu;
1395
+ function Nn(e, t, n) {
1396
+ const i = e.lastIndexOf(rt);
1397
+ if (i !== -1) {
1398
+ const s = e.slice(i + rt.length), c = mi(s), p = e.slice(
1399
+ 0,
1400
+ i + rt.length + c.packageName.length
1401
+ ), d = ct(p);
1402
+ return Wt(c), c.modulePath = _t(c.modulePath, d, t, n), c;
1403
+ }
1404
+ const r = e.indexOf(wn);
1405
+ if (r !== -1) {
1406
+ const s = e.slice(0, r), c = ct(s), p = c.name, d = e.slice(r + 1), m = _t(d, c, t, n), f = { packageName: p, modulePath: m };
1407
+ return Wt(f), f;
1408
+ }
1409
+ if (e.startsWith(t.basePath)) {
1410
+ const s = e.slice(t.basePath.length), c = Ve(ee(s), t);
1411
+ return c === t.apiModule.path ? {
1412
+ packageName: void 0,
1413
+ modulePath: void 0
1414
+ } : {
1415
+ packageName: void 0,
1416
+ modulePath: c
1417
+ };
1418
+ } else
1419
+ return t.emitError(
1420
+ `Unable to determine if the referenced type ${n} from ${e} is a local type, or external library usage (it is outside of ${t.basePath}, yet not in node_modules)`,
1421
+ {
1422
+ file: t.file,
1423
+ node: void 0
1424
+ }
1425
+ ), {
1426
+ packageName: Re,
1427
+ modulePath: void 0
1428
+ };
1429
+ }
1430
+ const rt = "/node_modules/", wn = "/dist/";
1431
+ function mi(e) {
1432
+ const t = dt(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1433
+ return { packageName: t, modulePath: n };
1434
+ }
1435
+ function Wt(e) {
1436
+ e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1437
+ }
1438
+ function _t(e, t, n, i) {
1439
+ const a = ee(e);
1440
+ if (t.exports === void 0)
1441
+ return `${a}.js`;
1442
+ const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1443
+ let s = yt(t.exports, ".", l);
1444
+ if (s === void 0 && (s = Un[t.name]?.(a)), s !== void 0)
1445
+ return s === "." ? void 0 : s.slice(2);
1446
+ const c = n.moduleContext.importsMap[i];
1447
+ if (c !== void 0 && c.modulePath === void 0) {
1448
+ const p = mi(c.specifier);
1449
+ if (p.packageName === t.name)
1450
+ return p.modulePath;
1451
+ }
1452
+ return n.emitError(
1453
+ `Need explicit type annotation for where the ${ne("red", i)} from ${t.name}/${e} is being used implicitly. Reason: Unable to find an "exports" compatible import path to insert the import of this type in the emitted .d.ts.`,
1454
+ { file: n.file, node: void 0 }
1455
+ ), e;
1456
+ }
1457
+ const Un = {
1458
+ // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1459
+ "@arcgis/lumina"(e) {
1460
+ return e.startsWith("dist/globalTypes/") || e.startsWith("dist/typings/") ? "./globalTypes" : e.startsWith("dist/controllers/accessor/") ? "./controllers/accessor" : e.startsWith("dist/controllers/") ? "./controllers" : e.startsWith("dist/jsx/") || !e.slice(5).includes("/") ? "." : void 0;
1461
+ }
1462
+ };
1463
+ function yt(e, t, n) {
1464
+ if (typeof e == "string")
1465
+ return Vn(t, e, n);
1466
+ if (Array.isArray(e))
1467
+ for (let i = 0; i < e.length; ++i) {
1468
+ const a = yt(e[i], t, n);
1469
+ if (a !== void 0)
1470
+ return a;
1471
+ }
1472
+ if (typeof e == "object" && e !== null)
1473
+ for (const [i, a] of Object.entries(e)) {
1474
+ const l = i.startsWith(".") ? i : t, s = yt(a, l, n);
1475
+ if (s !== void 0)
1476
+ return s;
1477
+ }
1478
+ }
1479
+ function Vn(e, t, n) {
1480
+ const i = ee(t);
1481
+ if (i === n)
1482
+ return e;
1483
+ const a = i.indexOf("*");
1484
+ if (a === -1)
1485
+ return;
1486
+ const r = i.slice(0, a);
1487
+ if (!n.startsWith(r))
1488
+ return;
1489
+ const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1490
+ if (l === "") {
1491
+ const m = ee(e), f = e.slice(m.length), u = m === e && c === "" ? ".js" : f;
1492
+ return m.slice(0, -1) + s + u;
1493
+ }
1494
+ if (!s.endsWith(l))
1495
+ return;
1496
+ const p = s.slice(0, -l.length), d = e.indexOf("*");
1497
+ if (d !== -1)
1498
+ return e.slice(0, d) + p + e.slice(d + 1);
1499
+ }
1500
+ function Wn(e) {
1501
+ const t = e.getDeclarations()?.[0];
1502
+ if (t !== void 0 && ((o.isClassDeclaration(t) || o.isFunctionDeclaration(t) || o.isInterfaceDeclaration(t) || o.isTypeAliasDeclaration(t) || o.isEnumDeclaration(t)) && t.name !== void 0 && o.isIdentifier(t.name) || o.isVariableDeclaration(t) && o.isIdentifier(t.name) || o.isBindingElement(t) && o.isIdentifier(t.name)))
1503
+ return t.name.escapedText;
1504
+ const n = e.escapedName;
1505
+ return n === "default" || n.startsWith("__") ? void 0 : n;
1506
+ }
1507
+ function _n(e) {
1508
+ return e.flags & o.SymbolFlags.ValueModule ? "*" : Bn(e) ? "default" : "named";
1509
+ }
1510
+ function Bn(e) {
1511
+ const t = e.escapedName;
1512
+ if (t === "default" || // CommonJS "export ="
1513
+ t === "export=")
1514
+ return !0;
1515
+ const n = e.getDeclarations();
1516
+ if (n !== void 0)
1517
+ for (let i = 0; i < n.length; ++i) {
1518
+ const a = n[i];
1519
+ if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1520
+ return !0;
1521
+ }
1522
+ return !1;
1523
+ }
1524
+ function Et(e, t, n, i) {
1525
+ const a = { file: n, node: e };
1526
+ return e.getText(n).includes("* @public") && i.emitError(
1527
+ "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#describing-nested-object-types and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#variables",
1528
+ a
1529
+ ), H(e, t, a, i);
1530
+ }
1531
+ const w = {
1532
+ false: 0,
1533
+ /**
1534
+ * True for literal types. False for object types
1535
+ */
1536
+ shallow: 2,
1537
+ true: 1
1538
+ };
1539
+ function H(e, t, n, i) {
1540
+ if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1541
+ return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1542
+ if (e.kind === o.SyntaxKind.NullKeyword)
1543
+ return o.factory.createLiteralTypeNode(e);
1544
+ if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1545
+ return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1546
+ if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1547
+ return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1548
+ if (o.isTemplateExpression(e))
1549
+ return Se(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1550
+ if (o.isNumericLiteral(e))
1551
+ return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1552
+ if (o.isBigIntLiteral(e))
1553
+ return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1554
+ if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1555
+ return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? H(e.expression, w.true, n, i) : e.type;
1556
+ if (o.isSatisfiesExpression(e))
1557
+ return t === w.false ? e.type : H(e.expression, t, n, i);
1558
+ if (o.isRegularExpressionLiteral(e))
1559
+ return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1560
+ if (o.isArrayLiteralExpression(e)) {
1561
+ if (i.isInLuminaMinimalExtraction)
1562
+ return we;
1563
+ const a = t === w.shallow ? w.false : t, r = new Array(e.elements.length);
1564
+ for (let l = 0; l < r.length; ++l) {
1565
+ const s = e.elements[l];
1566
+ r[l] = H(s, a, { ...n, node: s }, i);
1567
+ }
1568
+ return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1569
+ r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1570
+ );
1571
+ }
1572
+ if (o.isObjectLiteralExpression(e)) {
1573
+ if (i.isInLuminaMinimalExtraction)
1574
+ return we;
1575
+ const a = t === w.shallow ? w.false : t, r = new Array(e.properties.length);
1576
+ for (let l = 0; l < r.length; ++l) {
1577
+ const s = e.properties[l];
1578
+ r[l] = Kn(s, a, { ...n, node: s }, i);
1579
+ }
1580
+ return o.factory.createTypeLiteralNode(r);
1581
+ }
1582
+ if (o.isPrefixUnaryExpression(e)) {
1583
+ if (e.operator !== o.SyntaxKind.MinusToken)
1584
+ return Pe(n, X, t, i);
1585
+ if (t === w.false)
1586
+ return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1587
+ {
1588
+ const a = H(e.operand, t, n, i);
1589
+ return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1590
+ o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1591
+ ) : Pe(n, X, t, i);
1592
+ }
1593
+ }
1594
+ if (o.isParenthesizedExpression(e))
1595
+ return H(e.expression, t, n, i);
1596
+ if (o.isNewExpression(e)) {
1597
+ if (i.isInLuminaMinimalExtraction)
1598
+ return we;
1599
+ if (o.isIdentifier(e.expression)) {
1600
+ const r = e.expression.escapedText;
1601
+ let l = e.typeArguments, s = !1;
1602
+ if ((r === "Set" || r === "WeakSet") && l === void 0)
1603
+ if (e.arguments?.[0] !== void 0) {
1604
+ const c = H(
1605
+ e.arguments[0],
1606
+ t,
1607
+ { ...n, node: e.arguments[0] },
1608
+ i
1609
+ );
1610
+ c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1611
+ } else
1612
+ s = !0;
1613
+ else
1614
+ s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1615
+ if (!s)
1616
+ return o.factory.createTypeReferenceNode(e.expression, l);
1617
+ }
1618
+ const a = H(e.expression, t, n, i);
1619
+ if (o.isTypeReferenceNode(a))
1620
+ return a;
1621
+ }
1622
+ if (o.isConditionalExpression(e))
1623
+ return o.factory.createUnionTypeNode([
1624
+ H(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1625
+ H(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1626
+ ]);
1627
+ if (o.isIdentifier(e))
1628
+ return Se(n, t, i) ?? o.factory.createTypeQueryNode(e);
1629
+ if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1630
+ const a = Se(n, t, i);
1631
+ if (a !== void 0)
1632
+ return a;
1633
+ const r = H(e.expression, t, n, i);
1634
+ return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === gt ? gt : Pe(n, X, t, i);
1635
+ }
1636
+ if (o.isCallExpression(e)) {
1637
+ const a = e.expression, r = e.arguments.at(0);
1638
+ if (o.isPropertyAccessExpression(a) && o.isIdentifier(a.expression) && o.isIdentifier(a.name) && a.expression.escapedText === "Collection" && a.name.escapedText === "ofType" && r !== void 0 && o.isIdentifier(r))
1639
+ return o.factory.createTypeReferenceNode(a.expression, [
1640
+ o.factory.createTypeReferenceNode(r)
1641
+ ]);
1642
+ const l = Se(n, t, i);
1643
+ if (l !== void 0)
1644
+ return l;
1645
+ const s = H(a, t, n, i);
1646
+ return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1647
+ o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1648
+ ]) : Pe(n, X, t, i);
1649
+ }
1650
+ if (o.isArrowFunction(e)) {
1651
+ if (i.isInLuminaMinimalExtraction)
1652
+ return we;
1653
+ const a = t === w.shallow ? w.false : t;
1654
+ return o.factory.createFunctionTypeNode(
1655
+ e.typeParameters,
1656
+ vt(e.parameters, a, n, i),
1657
+ e.type ?? (o.isBlock(e.body) ? qe(e, i) ?? Y(n, X, i) : H(e.body, a, n, i))
1658
+ );
1659
+ }
1660
+ return Pe(n, X, t, i);
1661
+ }
1662
+ function Kn(e, t, n, i) {
1663
+ const a = t === w.false ? void 0 : qn;
1664
+ return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1665
+ a,
1666
+ e.name,
1667
+ void 0,
1668
+ H(e.initializer, t, { ...n, node: e.initializer }, i)
1669
+ ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1670
+ a,
1671
+ e.name,
1672
+ void 0,
1673
+ Se(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1674
+ ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1675
+ a,
1676
+ "_spread",
1677
+ void 0,
1678
+ Y(n, X, i)
1679
+ ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1680
+ a,
1681
+ e.name,
1682
+ void 0,
1683
+ o.factory.createFunctionTypeNode(
1684
+ e.typeParameters,
1685
+ vt(e.parameters, t, n, i),
1686
+ e.type ?? qe(e, i) ?? Y(n, X, i)
1687
+ )
1688
+ ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1689
+ void 0,
1690
+ e.name,
1691
+ // Should always be empty
1692
+ e.parameters,
1693
+ e.type ?? qe(e, i) ?? Y(n, X, i),
1694
+ void 0
1695
+ ) : o.factory.createSetAccessorDeclaration(
1696
+ void 0,
1697
+ e.name,
1698
+ vt(e.parameters, t, n, i),
1699
+ void 0
1700
+ );
1701
+ }
1702
+ function Pe(e, t, n, i) {
1703
+ return Se(e, n, i) ?? Y(e, t, i);
1704
+ }
1705
+ function Se(e, t, n) {
1706
+ const i = n.program?.getTypeChecker?.();
1707
+ if (i !== void 0 && e.node !== void 0) {
1708
+ let a;
1709
+ const r = t === w.false;
1710
+ if (r && e.node.kind === o.SyntaxKind.Identifier) {
1711
+ const s = i.getSymbolAtLocation(e.node);
1712
+ a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1713
+ }
1714
+ a ??= i.getTypeAtLocation(e.node);
1715
+ const l = r ? en(i, a) : a;
1716
+ return it(i, l);
1717
+ }
1718
+ }
1719
+ function it(e, t) {
1720
+ const n = t.flags & o.TypeFlags.Union ? t.types.every(Bt) : Bt(t);
1721
+ return e.typeToTypeNode(
1722
+ t,
1723
+ void 0,
1724
+ zn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1725
+ );
1726
+ }
1727
+ const Hn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, $n = Hn & o.TypeFormatFlags.NodeBuilderFlagsMask, zn = $n | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, Bt = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1728
+ function qe(e, t) {
1729
+ const n = t.program?.getTypeChecker?.();
1730
+ if (n === void 0)
1731
+ return;
1732
+ const i = n.getSignatureFromDeclaration(e);
1733
+ if (i === void 0)
1734
+ return;
1735
+ const a = n.getReturnTypeOfSignature(i);
1736
+ return it(n, a);
1737
+ }
1738
+ function jn(e, t) {
1739
+ const n = t.program?.getTypeChecker?.();
1740
+ if (n === void 0)
1741
+ return;
1742
+ const i = n.getTypeAtLocation(e);
1743
+ return it(n, i);
1744
+ }
1745
+ function Y(e, t, n) {
1746
+ return n.isInLuminaMinimalExtraction || n.emitError(t, e), gt;
1747
+ }
1748
+ const X = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", gt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), we = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), We = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), Jn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), qn = [Jn];
1749
+ function vt(e, t, n, i) {
1750
+ const a = new Array(e.length);
1751
+ for (let r = 0; r < a.length; ++r) {
1752
+ const l = e[r];
1753
+ a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1754
+ void 0,
1755
+ l.dotDotDotToken,
1756
+ o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1757
+ l.questionToken,
1758
+ l.type ?? (l.initializer === void 0 ? Y({ ...n, node: l }, X, i) : H(
1759
+ l.initializer,
1760
+ t,
1761
+ {
1762
+ ...n,
1763
+ node: l.initializer
1764
+ },
1765
+ i
1766
+ ))
1767
+ );
1768
+ }
1769
+ return a;
1770
+ }
1771
+ function Qn(e, t) {
1772
+ const n = t.program?.getTypeChecker?.();
1773
+ if (n === void 0 || !Xn(e.exprName, t))
1774
+ return;
1775
+ const i = n.getTypeAtLocation(e.exprName);
1776
+ return it(n, i);
1777
+ }
1778
+ function Xn(e, t) {
1779
+ return e.kind === o.SyntaxKind.QualifiedName ? Yn(e.left) : t.moduleContext.importsMap[e.escapedText]?.specifier.endsWith(".json") === !0;
1780
+ }
1781
+ function Yn(e) {
1782
+ for (; e !== void 0; )
1783
+ if (e.kind === o.SyntaxKind.QualifiedName)
1784
+ e = e.left;
1785
+ else if (e.kind === o.SyntaxKind.Identifier)
1786
+ return e.escapedText === "this";
1787
+ return !1;
1788
+ }
1789
+ function z(e, t) {
1790
+ if (b = t, _e.clear(), $ = [], Qe.clear(), e.pos !== -1 && e.getText(b.file).includes("* @public") && b.emitError(
1791
+ "@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/sdk/contributing/core/core/documenting-api#describing-nested-object-types",
1792
+ { file: b.file, node: e }
1793
+ ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1794
+ Be(e);
1795
+ else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1796
+ const i = e.typeParameters;
1797
+ if (i !== void 0)
1798
+ for (let a = 0; a < i.length; ++a) {
1799
+ const r = i[a];
1800
+ Qe.add(r.name.escapedText);
1801
+ }
1802
+ }
1803
+ return Zn.writeNode(o.EmitHint.Unspecified, e, void 0, _e), {
1804
+ text: _e.getText(),
1805
+ references: $.length > 0 ? $ : void 0,
1806
+ values: void 0,
1807
+ source: void 0
1808
+ };
1809
+ }
1810
+ let b;
1811
+ const ge = (e, t, n) => {
1812
+ switch (t.kind) {
1813
+ case o.SyntaxKind.TypeReference:
1814
+ const i = t, a = i.typeName;
1815
+ switch (a.escapedText) {
1816
+ case "nil":
1817
+ return ge(e, eo, n);
1818
+ // Used in public typings in 88 files
1819
+ // REFACTOR: consider refactoring out Const usages in public API to
1820
+ // reduce divergence
1821
+ case "Const":
1822
+ // In public types, Lumina's "component" and "el" have the same type
1823
+ // eslint-disable-next-line no-fallthrough
1824
+ case "ToElement":
1825
+ return ge(e, i.typeArguments[0], n);
1826
+ /**
1827
+ * @see https://webgis.esri.com/sdk/contributing/core/core/documenting-api#publicprivate-type-divergence
1828
+ */
1829
+ case "PublicApiNarrowType":
1830
+ case "PublicApiRelaxType":
1831
+ return ge(e, i.typeArguments[1], n);
1832
+ }
1833
+ Be(a);
1834
+ break;
1835
+ case o.SyntaxKind.TypeQuery:
1836
+ const l = Qn(t, b);
1837
+ if (l !== void 0)
1838
+ return ge(e, l, n);
1839
+ Be(t.exprName, to);
1840
+ break;
1841
+ case o.SyntaxKind.PropertyAccessExpression:
1842
+ Be(t);
1843
+ break;
1844
+ case o.SyntaxKind.InferType:
1845
+ case o.SyntaxKind.MappedType:
1846
+ const c = t.typeParameter;
1847
+ Qe.add(c.name.escapedText);
1848
+ break;
1849
+ case o.SyntaxKind.TypeLiteral:
1850
+ const p = t;
1851
+ p.members.length === 1 && ("emitNode" in p && (p.emitNode ??= {}), o.setEmitFlags(p, o.EmitFlags.SingleLine));
1852
+ break;
1853
+ case o.SyntaxKind.IndexedAccessType:
1854
+ const d = t;
1855
+ if (
1856
+ // In public types, Lumina's "component" and "el" have the same type
1857
+ // Thus print ArcgisHome["el"] as just ArcgisHome
1858
+ b.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1859
+ )
1860
+ return ge(e, d.objectType, n);
1861
+ break;
1862
+ case o.SyntaxKind.ImportType:
1863
+ b.emitError(
1864
+ `\`import()\` syntax inside types is not supported - refactor to import the type at the top of the file${t.pos === -1 ? ". The import() syntax might also be inserted by TypeScript if you are referencing a type that is not otherwise accessible - refactor such cases by adding explicit type annotation." : ""}`,
1865
+ { file: b.file, node: t }
1866
+ );
1867
+ break;
1868
+ }
1869
+ n(e, t), Xe !== void 0 && (ui(), Xe = void 0);
1870
+ }, Zn = nn(
1871
+ {},
1872
+ {
1873
+ onEmitNode: ge
1874
+ }
1875
+ ), eo = o.factory.createIdentifier("null | undefined"), _e = tn.createTextWriter(`
1876
+ `), to = 7, Qe = /* @__PURE__ */ new Set();
1877
+ let $;
1878
+ function Be(e, t = 0) {
1879
+ const n = [];
1880
+ let i = e;
1881
+ for (; i !== void 0; )
1882
+ if (i.kind === o.SyntaxKind.Identifier) {
1883
+ n.push(i);
1884
+ break;
1885
+ } else if (i.kind === o.SyntaxKind.QualifiedName)
1886
+ n.push(i.right), i = i.left;
1887
+ else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1888
+ const v = i.name;
1889
+ n.push(v), i = i.expression;
1890
+ }
1891
+ const a = n.at(-1), r = a.escapedText, l = _e.getTextPos() + t;
1892
+ let s = l + r.length;
1893
+ const c = a;
1894
+ if (c.pos === -1 && c.symbol !== void 0) {
1895
+ $.push(
1896
+ Je(c.symbol, c, b, l, s)
1897
+ );
1898
+ return;
1899
+ }
1900
+ if (b.functionLikeTypeParameters?.has(r) === !0) {
1901
+ $.push({
1902
+ name: r,
1903
+ module: void 0,
1904
+ package: void 0,
1905
+ viewUrl: void 0,
1906
+ start: l,
1907
+ end: s
1908
+ });
1909
+ return;
1910
+ }
1911
+ if (b.objectLikeTypeParameters?.has(r) === !0) {
1912
+ $.push({
1913
+ name: r,
1914
+ module: void 0,
1915
+ package: void 0,
1916
+ viewUrl: void 0,
1917
+ start: l,
1918
+ end: s
1919
+ });
1920
+ return;
1921
+ }
1922
+ if (b.localDeclarations.has(r)) {
1923
+ $.push({
1924
+ name: r,
1925
+ module: void 0,
1926
+ package: void 0,
1927
+ viewUrl: Ue(
1928
+ b.apiModule.path,
1929
+ r === b.exportDefaultName ? void 0 : r,
1930
+ void 0,
1931
+ b
1932
+ ),
1933
+ start: l,
1934
+ end: s
1935
+ });
1936
+ return;
1937
+ }
1938
+ if (b.localPrivateDeclarations?.has(r) === !0) {
1939
+ b.localPrivateDeclarations.set(r, Math.abs(b.localPrivateDeclarations.get(r))), $.push({
1940
+ name: r,
1941
+ module: void 0,
1942
+ package: void 0,
1943
+ viewUrl: Ue(
1944
+ b.apiModule.path,
1945
+ r === b.exportDefaultName ? void 0 : r,
1946
+ void 0,
1947
+ b
1948
+ ),
1949
+ start: l,
1950
+ end: s
1951
+ });
1952
+ return;
1953
+ }
1954
+ const d = b.moduleContext.importsMap[r];
1955
+ if (d !== void 0) {
1956
+ d.wasUsed = !0;
1957
+ const v = d.type === "named";
1958
+ d.replacementName !== void 0 && (be(a, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (b.functionLikeTypeParameters?.has(d.replacementName) === !0 || b.objectLikeTypeParameters?.has(d.replacementName) === !0) && b.emitError(
1959
+ `Can't do a type replacement of ${ne("green", r)} to ${ne("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.`,
1960
+ { file: b.file, node: e }
1961
+ );
1962
+ const C = v ? d.actualName ?? d.replacementName ?? r : void 0;
1963
+ if (d.modulePath === void 0) {
1964
+ if (b.config.strict) {
1965
+ const h = dt(d.specifier);
1966
+ b.runtimeDependencyNames.has(h) || b.emitError(
1967
+ h === "esri" ? `Found unexpected absolute path import of ${ne("red", C ?? d.type)} from ${ne("red", d.specifier)}. Did you mean to use a relative import instead?` : `Type ${ne("red", C ?? d.type)} imported from ${ne("red", h)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1968
+ { file: b.file, node: e }
1969
+ );
1970
+ }
1971
+ } else b.config.strict || je(
1972
+ d.modulePath,
1973
+ mt(
1974
+ b.apiModule.sourcePath.slice(b.config.context.basePath.length),
1975
+ d.specifier
1976
+ ),
1977
+ v ? C : d.type,
1978
+ b
1979
+ );
1980
+ let g, P = d.modulePath;
1981
+ P === void 0 && (g = dt(d.specifier), P = d.specifier.length === g.length ? void 0 : d.specifier.slice(g.length + 1)), $.push({
1982
+ name: C ?? d.type,
1983
+ module: P,
1984
+ package: g,
1985
+ viewUrl: d.modulePath === void 0 ? pi(g, P, v ? r : d.type, b) : Ue(d.modulePath, C, void 0, b),
1986
+ start: l,
1987
+ end: s
1988
+ });
1989
+ return;
1990
+ }
1991
+ const m = ut[r];
1992
+ if (m !== void 0) {
1993
+ $.push({
1994
+ name: r,
1995
+ module: void 0,
1996
+ package: Re,
1997
+ viewUrl: m[0]?.startsWith("https") === !1 ? `${ft}${m[0]}` : m[0] ?? void 0,
1998
+ start: l,
1999
+ end: s
2000
+ });
2001
+ let v = m;
2002
+ if (v.length > 1) {
2003
+ let C = n.length - 2, g = s + 1;
2004
+ for (; v[1] !== void 0 && C >= 0; ) {
2005
+ const P = n[C--];
2006
+ if (v = v[1][P.escapedText], v === void 0)
2007
+ b.emitError("Failed to resolve the definition of the type reference", {
2008
+ file: b.file,
2009
+ node: e
2010
+ });
2011
+ else {
2012
+ const h = g + P.escapedText.length;
2013
+ $.push({
2014
+ name: P.escapedText,
2015
+ module: void 0,
2016
+ package: Re,
2017
+ viewUrl: v[0]?.startsWith("https") === !1 ? `${ft}${v[0]}` : v[0] ?? void 0,
2018
+ start: g,
2019
+ end: h
2020
+ }), g = h + 1;
2021
+ }
2022
+ }
2023
+ }
2024
+ return;
2025
+ }
2026
+ if (Qe.has(r))
2027
+ return;
2028
+ const u = b.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2029
+ if (u !== void 0) {
2030
+ $.push(Je(u, a, b, l, s));
2031
+ return;
2032
+ }
2033
+ b.emitError(
2034
+ "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2035
+ { file: b.file, node: e }
2036
+ );
2037
+ }
2038
+ function be(e, t) {
2039
+ const n = e.escapedText;
2040
+ Xe = e, St = t, ui(), St = n;
2041
+ }
2042
+ let Xe, St;
2043
+ function ui() {
2044
+ Xe.escapedText = St;
2045
+ }
2046
+ function nt(e, t, n) {
2047
+ if (e === void 0 || n.isInLuminaMinimalExtraction) {
2048
+ t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2049
+ return;
2050
+ }
2051
+ const i = new Array(e.length), a = t ? io : no;
2052
+ a.clear();
2053
+ for (let r = 0; r < e.length; ++r) {
2054
+ const l = e[r], s = l.name.escapedText;
2055
+ a.add(s);
2056
+ const c = {
2057
+ name: s,
2058
+ constraint: void 0,
2059
+ default: void 0,
2060
+ const: void 0,
2061
+ in: void 0,
2062
+ out: void 0
2063
+ };
2064
+ if (l.modifiers !== void 0)
2065
+ for (let p = 0; p < l.modifiers.length; ++p) {
2066
+ const d = l.modifiers[p];
2067
+ d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2068
+ }
2069
+ i[r] = c;
2070
+ }
2071
+ t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2072
+ for (let r = 0; r < e.length; ++r) {
2073
+ const l = e[r], s = l.constraint, c = l.default;
2074
+ s !== void 0 && (i[r].constraint = z(s, n)), c !== void 0 && (i[r].default = z(c, n));
2075
+ }
2076
+ return i;
2077
+ }
2078
+ const io = /* @__PURE__ */ new Set(), no = /* @__PURE__ */ new Set();
2079
+ function Ee(e, t, n) {
2080
+ if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2081
+ return n.emitError(
2082
+ "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2083
+ { file: n.file, node: e }
2084
+ ), {
2085
+ [j]: "Record<never, Error>",
2086
+ name: "error",
2087
+ module: void 0,
2088
+ package: void 0,
2089
+ viewUrl: void 0,
2090
+ typeArguments: void 0
2091
+ };
2092
+ const i = z(e, n), a = i.references?.[0] ?? {
2093
+ module: void 0,
2094
+ package: void 0,
2095
+ viewUrl: void 0
2096
+ };
2097
+ let r, l;
2098
+ if (r = i.text, t !== void 0) {
2099
+ l = new Array(t.length), r += "<";
2100
+ for (let s = 0; s < t.length; ++s) {
2101
+ const c = t[s], p = z(c, n);
2102
+ l[s] = p, r += p.text, s < t.length - 1 && (r += ", ");
2103
+ }
2104
+ r += ">";
2105
+ }
2106
+ return {
2107
+ /**
2108
+ * If referenced type is imported as default, the `name` will be `default`,
2109
+ * which is not a name suitable for .d.ts emit. So we preserve the original
2110
+ * type string in a temporary field.
2111
+ */
2112
+ [j]: r,
2113
+ name: i.references?.length === 1 ? i.references[0].name : i.text,
2114
+ module: a.module,
2115
+ package: a.package,
2116
+ viewUrl: a.viewUrl,
2117
+ typeArguments: l
2118
+ };
2119
+ }
2120
+ function Ct(e) {
2121
+ return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2122
+ }
2123
+ function oo(e) {
2124
+ return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2125
+ }
2126
+ const fi = { text: "unknown", references: void 0, values: void 0, source: void 0 }, ao = {
2127
+ text: "Promise<unknown>",
2128
+ references: void 0,
2129
+ values: void 0,
2130
+ source: void 0
2131
+ }, ro = {
2132
+ text: "Record<string, unknown> | undefined",
2133
+ references: [
2134
+ {
2135
+ name: "Record",
2136
+ module: void 0,
2137
+ package: "global:",
2138
+ viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2139
+ start: 0,
2140
+ end: 6
2141
+ }
2142
+ ],
2143
+ values: void 0,
2144
+ source: void 0
2145
+ };
2146
+ function so(e, t) {
2147
+ if (t.isInLuminaMinimalExtraction)
2148
+ return;
2149
+ const n = ji(e.name), i = {
2150
+ [j]: lo,
2151
+ kind: "method",
2152
+ name: "componentOnReady",
2153
+ static: void 0,
2154
+ deprecated: void 0,
2155
+ summary: void 0,
2156
+ description: "Creates a promise that resolves once the component is fully loaded.",
2157
+ docsTags: [
2158
+ {
2159
+ name: "example",
2160
+ text: `\`\`\`js
2161
+ const ${n} = document.createElement("${e.tagName}");
2162
+ document.body.append(${n});
2163
+ await ${n}.componentOnReady();
2164
+ console.log("${e.tagName} is ready to go!");
2165
+ \`\`\``
2166
+ }
2167
+ ],
2168
+ typeParameters: void 0,
2169
+ parameters: void 0,
2170
+ return: co,
2171
+ inheritedFrom: e.superclass,
2172
+ signature: "(): Promise<this>",
2173
+ privacy: void 0,
2174
+ source: void 0
2175
+ };
2176
+ e.members.push(i);
2177
+ const a = [], r = t.config.documentation.getComponentDocsUrl, l = t.config.documentation.getComponentDemoUrl, s = typeof r == "function" ? r(e.tagName, e.name) : void 0, c = typeof l == "function" ? l(e.tagName, e.name) : void 0;
2178
+ typeof s == "string" && a.push({
2179
+ description: "Docs",
2180
+ url: s,
2181
+ source: void 0
2182
+ }), typeof c == "string" && a.push({
2183
+ description: "Demo",
2184
+ url: c,
2185
+ source: void 0
2186
+ });
2187
+ const p = t.componentStories[e.tagName];
2188
+ if (typeof p == "object" && a.push(...p), t.componentCssFileDocs !== void 0) {
2189
+ e.cssProperties ??= [];
2190
+ const d = new Set(e.cssProperties.map((m) => m.name));
2191
+ e.cssProperties = [
2192
+ ...e.cssProperties,
2193
+ ...t.componentCssFileDocs.filter((m) => !d.has(m.name))
2194
+ ], t.componentCssFileDocs = void 0;
2195
+ }
2196
+ a.length > 0 && (e.demos = a);
2197
+ }
2198
+ const lo = et(), co = {
2199
+ summary: void 0,
2200
+ description: void 0,
2201
+ type: {
2202
+ text: "Promise<this>",
2203
+ references: [
2204
+ {
2205
+ name: "Promise",
2206
+ module: "lib/lib.es5.d.ts",
2207
+ package: "typescript",
2208
+ viewUrl: void 0,
2209
+ start: 0,
2210
+ end: 7
2211
+ }
2212
+ ],
2213
+ values: void 0,
2214
+ source: void 0
2215
+ }
2216
+ }, po = ce, mo = ce, uo = ce, fo = ce, yo = ce, go = ce, vo = ce, yi = ce;
2217
+ function ce(e, t, n, i, a) {
2218
+ if (i.docsTags === void 0 || n === void 0)
2219
+ return;
2220
+ const r = i.docsTags.indexOf(U.copyDoc);
2221
+ if (r === -1)
2222
+ return;
2223
+ const l = i.name;
2224
+ let s = n?.[l];
2225
+ s === void 0 && e.emitError(
2226
+ "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#copydoc",
2227
+ {
2228
+ file: e.file,
2229
+ node: t
2230
+ }
2231
+ ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Qi(s, i, r);
2232
+ }
2233
+ function Pt(e, t, n) {
2234
+ n.apiModule.exports.push({
2235
+ kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2236
+ name: t ? "default" : e.tagName ?? e.name,
2237
+ deprecated: void 0,
2238
+ declaration: {
2239
+ name: e.name,
2240
+ module: void 0,
2241
+ package: void 0,
2242
+ viewUrl: void 0
2243
+ }
2244
+ });
2245
+ }
2246
+ const So = Ae, st = Ae, To = Ae, Kt = Ae, Ht = Ae;
2247
+ function Ae(e, t, n, i) {
2248
+ if (t === void 0) {
2249
+ i.emitError("Computed function/method names are not yet supported.", {
2250
+ file: i.file,
2251
+ node: e
2252
+ });
2253
+ return;
2254
+ }
2255
+ const a = n ?? e, r = n !== void 0 && !o.isVariableStatement(n), l = o.isMethodDeclaration(e), s = o.isMethodSignature(e), c = l || s || r, p = n !== void 0 && o.isVariableStatement(n), m = o.isFunctionDeclaration(e) || p, f = !r && !p && o.isFunctionTypeNode(e) || o.isCallSignatureDeclaration(e), u = o.isConstructorDeclaration(e), v = u || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Ce, g = et();
2256
+ let P, h, R = !1, L = !1;
2257
+ if (!m && a.modifiers !== void 0)
2258
+ for (let E = 0; E < a.modifiers.length; ++E)
2259
+ switch (a.modifiers[E].kind) {
2260
+ case o.SyntaxKind.StaticKeyword:
2261
+ P = !0;
2262
+ break;
2263
+ case o.SyntaxKind.ProtectedKeyword:
2264
+ h = "protected";
2265
+ break;
2266
+ case o.SyntaxKind.AbstractKeyword:
2267
+ R = !0;
2268
+ break;
2269
+ case o.SyntaxKind.AsyncKeyword:
2270
+ L = !0;
2271
+ break;
2272
+ }
2273
+ const y = {
2274
+ [j]: g,
2275
+ kind: c ? "method" : m ? "function" : f ? "call-signature" : v ? "constructor" : void 0,
2276
+ name: v || f ? void 0 : t,
2277
+ static: P,
2278
+ deprecated: void 0,
2279
+ summary: void 0,
2280
+ description: void 0,
2281
+ docsTags: void 0,
2282
+ typeParameters: nt(e.typeParameters, !1, i),
2283
+ parameters: [],
2284
+ return: u ? void 0 : {
2285
+ summary: void 0,
2286
+ description: void 0,
2287
+ type: C ? L ? ao : fi : z(
2288
+ e.type ?? qe(e, i) ?? Y(
2289
+ { file: i.file, node: e },
2290
+ "@public function must have a return type annotation",
2291
+ i
2292
+ ),
2293
+ i
2294
+ )
2295
+ },
2296
+ inheritedFrom: void 0,
2297
+ signature: void 0,
2298
+ privacy: h,
2299
+ source: void 0
2300
+ }, k = y, M = cn(y, i.jsDoc), I = C ? [] : e.parameters;
2301
+ let D = M.length, T = !1, _ = 0;
2302
+ for (let E = 0; E < I.length; ++E) {
2303
+ const S = I[E], A = o.isIdentifier(S.name) ? S.name.escapedText : void 0;
2304
+ if (A === "this") {
2305
+ _ -= 1;
2306
+ continue;
2307
+ }
2308
+ const W = u && A !== void 0 && S.modifiers !== void 0 && S.modifiers.length > 0 ? J(S, !0, i) : void 0;
2309
+ if (W !== void 0) {
2310
+ _ -= 1, D += 1, i.jsDoc = W;
2311
+ const Q = vi(S, A, !1, i);
2312
+ if (Q === void 0)
2313
+ continue;
2314
+ i.apiObject.members.push(Q);
2315
+ const de = {
2316
+ name: A,
2317
+ deprecated: void 0,
2318
+ summary: void 0,
2319
+ description: Q.description,
2320
+ docsTags: void 0,
2321
+ optional: void 0,
2322
+ rest: S.dotDotDotToken ? !0 : void 0,
2323
+ type: Q.type,
2324
+ default: Q.default
2325
+ };
2326
+ de.optional = $t(S, de), y.parameters.push(de);
2327
+ continue;
2328
+ }
2329
+ let G = M[E + _]?.text, O, F;
2330
+ if (!i.config.strict && (G === void 0 || A === void 0) && (G = A ?? `parameter${E}`), G === void 0) {
2331
+ i.emitError(
2332
+ `Expected @param tag for every parameter on a public function. If you need to include a non-public parameter on a public function, see https://webgis.esri.com/sdk/contributing/core/core/documenting-api#param${v ? " and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#constructor" : ""}`,
2333
+ { file: i.file, node: S }
2334
+ ), T = !0;
2335
+ break;
2336
+ }
2337
+ const B = G.indexOf(" ");
2338
+ if (O = B === -1 ? G : G.slice(0, B), F = B === -1 ? "" : G.slice(B + 1).trim(), (F.startsWith("- ") || F.startsWith(`-
2339
+ `)) && (F = F.slice(2).trim()), A !== void 0 && A !== O && `_${O}` !== A) {
2340
+ const Q = O.startsWith("[") || O.endsWith("]");
2341
+ if (i.config.strict) {
2342
+ i.emitError(
2343
+ `The '${A}' TypeScript parameter name does not match the @param tag at position ${E}, '${O}'${Q ? ". If you meant to mark the parameter as optional, use TypeScript's `?` syntax or `=` default value syntax instead of JSDoc [square brackets]" : ""}`,
2344
+ {
2345
+ file: i.file,
2346
+ node: S
2347
+ }
2348
+ ), T = !0;
2349
+ break;
2350
+ } else
2351
+ O = A.startsWith("_") ? A.slice(1) : A;
2352
+ }
2353
+ const me = S.type ?? (S.initializer === void 0 ? Y(
2354
+ { file: i.file, node: S },
2355
+ `Public parameter ${O} must have a type annotation or a default value`,
2356
+ i
2357
+ ) : Et(S.initializer, w.false, i.file, i)), ke = z(me, i), ie = {
2358
+ name: O,
2359
+ deprecated: void 0,
2360
+ summary: void 0,
2361
+ description: F || void 0,
2362
+ docsTags: void 0,
2363
+ optional: void 0,
2364
+ rest: S.dotDotDotToken ? !0 : void 0,
2365
+ type: ke,
2366
+ default: $e(S.initializer, void 0, i.file)
2367
+ };
2368
+ ie.optional = $t(S, ie), y.parameters.push(ie);
2369
+ }
2370
+ if (i.config.strict && !T && D !== y.parameters.length && i.emitError(
2371
+ `Expected @param tags to match the number of parameters on a public function. Found ${M.length} @param tags for ${y.parameters.length} TypeScript parameters. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#param${v ? " and https://webgis.esri.com/sdk/contributing/core/core/documenting-api#constructor" : ""}`,
2372
+ { file: i.file, node: e }
2373
+ ), y.parameters.length === 0)
2374
+ y.parameters = void 0;
2375
+ else {
2376
+ let E = !0;
2377
+ for (let S = y.parameters.length - 1; S >= 0; S--) {
2378
+ const x = y.parameters[S];
2379
+ E &&= x.optional === !0 || x.rest === !0 || x.default !== void 0, !E && x.optional && (x.optional = void 0, x.type.text.endsWith(" | undefined") || (x.type.text += " | undefined"));
2380
+ }
2381
+ }
2382
+ l && i.componentTagName !== void 0 && (k.signature = _i(k), L && !Xi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2383
+ file: i.file,
2384
+ node: e
2385
+ })), i.functionLikeTypeParameters = void 0;
2386
+ const N = m ? tt(a) : 0, q = m && i.exportDefaultName === t, K = N === 2 || q;
2387
+ return m && (K ? Pt(y, !0, i) : N === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2388
+ file: i.file,
2389
+ node: e
2390
+ })), i.produceDts && (c || v || f ? (R && (g.isAbstract = !0), g.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : g.isDefaultExported = K || void 0), c ? mo(
2391
+ i,
2392
+ n ?? e,
2393
+ i.config.documentation.copyDocDefinitions.methods,
2394
+ y,
2395
+ i.apiObject
2396
+ ) : m && fo(
2397
+ i,
2398
+ n ?? e,
2399
+ i.config.documentation.copyDocDefinitions.functions,
2400
+ y,
2401
+ i.apiModule
2402
+ ), y;
2403
+ }
2404
+ const $t = (e, t) => (
2405
+ // Keep ? as is
2406
+ e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2407
+ e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2408
+ );
2409
+ function ho(e, t, n) {
2410
+ return Tt(), Me(e, t), bt && t !== void 0 && n !== void 0 && (Tt(), Mt(t.getTypeAtLocation(n))), gi();
2411
+ }
2412
+ function Eo(e) {
2413
+ return Tt(), Mt(e), gi();
2414
+ }
2415
+ let Le = !1, ae = !1, re = !1, Ie = !1, se = !1, bt = !1;
2416
+ const le = [], te = [];
2417
+ function Tt() {
2418
+ Le = !1, ae = !1, re = !1, Ie = !1, se = !1, bt = !1, le.length = 0, te.length = 0;
2419
+ }
2420
+ function gi() {
2421
+ if (!re && !Ie && !se && !Le)
2422
+ return;
2423
+ const e = [];
2424
+ if (le.length > 0)
2425
+ for (let t = 0; t < le.length; ++t)
2426
+ e.push({ type: "string", value: le[t] });
2427
+ else re && e.push(Co);
2428
+ if (te.length > 0)
2429
+ for (let t = 0; t < te.length; ++t)
2430
+ e.push({ type: "number", value: te[t] });
2431
+ else se && e.push(Po);
2432
+ return Ie && e.push(bo), Le ? e.push(Mo) : ae && e.push(Do), e;
2433
+ }
2434
+ const Co = { type: "string", value: void 0 }, Po = { type: "number", value: void 0 }, bo = { type: "boolean", value: void 0 }, Mo = { type: "any", value: void 0 }, Do = { type: "object", value: void 0 };
2435
+ function Me(e, t) {
2436
+ switch (e.kind) {
2437
+ case o.SyntaxKind.BooleanKeyword:
2438
+ case o.SyntaxKind.TrueKeyword:
2439
+ case o.SyntaxKind.FalseKeyword:
2440
+ Ie = !0;
2441
+ return;
2442
+ case o.SyntaxKind.NumberKeyword:
2443
+ se = !0;
2444
+ return;
2445
+ case o.SyntaxKind.StringKeyword:
2446
+ case o.SyntaxKind.TemplateLiteralType:
2447
+ re = !0;
2448
+ return;
2449
+ case o.SyntaxKind.AnyKeyword:
2450
+ Le = !0;
2451
+ return;
2452
+ case o.SyntaxKind.LiteralType:
2453
+ Me(e.literal, t);
2454
+ return;
2455
+ case o.SyntaxKind.StringLiteral:
2456
+ case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2457
+ re = !0, le.push(e.text);
2458
+ return;
2459
+ case o.SyntaxKind.NumericLiteral:
2460
+ se = !0, te.push(e.text);
2461
+ return;
2462
+ case o.SyntaxKind.PrefixUnaryExpression:
2463
+ const n = e.operand;
2464
+ n.kind === o.SyntaxKind.NumericLiteral ? (te.push(`-${n.text}`), se = !0) : ae = !0;
2465
+ return;
2466
+ case o.SyntaxKind.VoidKeyword:
2467
+ case o.SyntaxKind.UndefinedKeyword:
2468
+ case o.SyntaxKind.NullKeyword:
2469
+ return;
2470
+ case o.SyntaxKind.UnionType:
2471
+ const i = e.types, a = Math.min(i.length, Ye);
2472
+ for (let l = 0; l < a; ++l)
2473
+ Me(i[l], t);
2474
+ i.length > Ye && (le.length = 0, te.length = 0);
2475
+ return;
2476
+ case o.SyntaxKind.ParenthesizedType:
2477
+ Me(e.type, t);
2478
+ return;
2479
+ case o.SyntaxKind.TypeQuery:
2480
+ case o.SyntaxKind.IndexedAccessType:
2481
+ case o.SyntaxKind.ImportType:
2482
+ case o.SyntaxKind.TypeReference:
2483
+ t === void 0 ? ae = !0 : Mt(
2484
+ t.getTypeFromTypeNode(
2485
+ e
2486
+ )
2487
+ );
2488
+ return;
2489
+ case o.SyntaxKind.TypeOperator:
2490
+ const r = e;
2491
+ r.operator === o.SyntaxKind.KeyOfKeyword ? re = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? Me(r.type, t) : ae = !0;
2492
+ return;
2493
+ /*case ts.SyntaxKind.UnknownKeyword:
2494
+ case ts.SyntaxKind.FunctionType:
2495
+ case ts.SyntaxKind.ConstructorType:
2496
+ case ts.SyntaxKind.ThisKeyword:
2497
+ case ts.SyntaxKind.ConditionalType:
2498
+ case ts.SyntaxKind.ArrayType:
2499
+ case ts.SyntaxKind.TupleType:
2500
+ case ts.SyntaxKind.IntersectionType:
2501
+ case ts.SyntaxKind.ObjectKeyword:
2502
+ case ts.SyntaxKind.SymbolKeyword:*/
2503
+ default:
2504
+ ae = !0;
2505
+ return;
2506
+ }
2507
+ }
2508
+ const Ye = 40;
2509
+ function Mt(e) {
2510
+ if (e.isUnion()) {
2511
+ const t = Math.min(e.types.length, Ye);
2512
+ for (let n = 0; n < t; ++n)
2513
+ zt(e.types[n]);
2514
+ e.types.length > Ye && (le.length = 0, te.length = 0);
2515
+ } else
2516
+ zt(e);
2517
+ }
2518
+ function zt(e) {
2519
+ const t = e.flags;
2520
+ let n = !1;
2521
+ if (t & o.TypeFlags.StringLiteral ? (n = !0, re = !0, le.push(e.value)) : t & o.TypeFlags.StringLike && (n = !0, re = !0), t & o.TypeFlags.NumberLiteral ? (n = !0, se = !0, te.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, se = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ie = !0), t & o.TypeFlags.Any) {
2522
+ if (e.intrinsicName === "error") {
2523
+ ae = !0, bt = !0;
2524
+ return;
2525
+ }
2526
+ Le = !0, n = !0;
2527
+ }
2528
+ t & xo || n || (ae = !0);
2529
+ }
2530
+ const xo = o.TypeFlags.Null | o.TypeFlags.VoidLike, Sa = (e) => e.map(Ro).join(" | "), Ro = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2531
+ function Lo(e, t, n) {
2532
+ let i;
2533
+ const a = e.initializer;
2534
+ let r;
2535
+ if (e.questionToken !== void 0)
2536
+ return;
2537
+ if (e.type !== void 0)
2538
+ o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? We);
2539
+ else if (a !== void 0 && o.isCallExpression(a)) {
2540
+ const s = a.expression;
2541
+ if (o.isIdentifier(s)) {
2542
+ const c = s.escapedText;
2543
+ c === Ke ? (i = a.typeArguments?.[0] ?? We, r = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? We : c.startsWith("use") && (i = jt(e, n));
2544
+ } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2545
+ const c = s.expression.escapedText;
2546
+ if (c === "usePropertyChange") {
2547
+ const p = [];
2548
+ for (let d = 0; d < a.arguments.length; ++d) {
2549
+ const m = a.arguments[d];
2550
+ o.isStringLiteral(m) && p.push(o.factory.createLiteralTypeNode(m));
2551
+ }
2552
+ if (p.length === 0)
2553
+ return;
2554
+ i = o.factory.createTypeLiteralNode([
2555
+ o.factory.createPropertySignature(
2556
+ void 0,
2557
+ "name",
2558
+ void 0,
2559
+ p.length === 1 ? p[0] : o.factory.createUnionTypeNode(p)
2560
+ )
2561
+ ]);
2562
+ } else c.startsWith("use") && (i = jt(e, n));
2563
+ }
2564
+ }
2565
+ if (i === void 0)
2566
+ return;
2567
+ const l = {
2568
+ name: t,
2569
+ deprecated: void 0,
2570
+ summary: void 0,
2571
+ description: void 0,
2572
+ docsTags: void 0,
2573
+ type: z(i, n),
2574
+ inheritedFrom: void 0,
2575
+ privacy: void 0,
2576
+ bubbles: void 0,
2577
+ cancelable: void 0,
2578
+ composed: void 0
2579
+ };
2580
+ return mn(l, n.jsDoc), r !== void 0 && Io(e, r, l, n), uo(
2581
+ n,
2582
+ e,
2583
+ n.config.documentation.copyDocDefinitions.events,
2584
+ l,
2585
+ n.apiObject
2586
+ ), l;
2587
+ }
2588
+ const Ke = "createEvent";
2589
+ function Io(e, t, n, i) {
2590
+ if (t !== void 0) {
2591
+ if (!o.isObjectLiteralExpression(t)) {
2592
+ i.emitError(`Expected object literal expression as first argument of ${Ke}().`, {
2593
+ file: i.file,
2594
+ node: e
2595
+ });
2596
+ return;
2597
+ }
2598
+ if (t.properties.some(o.isSpreadAssignment)) {
2599
+ i.emitError(
2600
+ `Unexpected spread syntax in ${Ke}() argument. ${Ke}() arguments must be statically parsable at compile time`,
2601
+ {
2602
+ file: i.file,
2603
+ node: e
2604
+ }
2605
+ );
2606
+ return;
2607
+ }
2608
+ for (const a of t.properties)
2609
+ !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !Z(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !Z(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !Z(a.initializer, i) && (n.composed = !1));
2610
+ }
2611
+ }
2612
+ function jt(e, t) {
2613
+ const n = t.program?.getTypeChecker?.();
2614
+ if (n === void 0)
2615
+ return;
2616
+ const i = n.getTypeAtLocation(e);
2617
+ if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2618
+ return;
2619
+ const r = n.getTypeArguments(i);
2620
+ if (r.length === 0)
2621
+ return We;
2622
+ const l = r[0];
2623
+ return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2624
+ }
2625
+ function vi(e, t, n, i) {
2626
+ if (t === void 0) {
2627
+ i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2628
+ return;
2629
+ }
2630
+ const a = e, r = De(a.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : De(i.pairedSetter.modifiers, "property")), l = r?.arguments[0], s = l !== void 0 && o.isObjectLiteralExpression(l) ? l.properties : void 0, c = o.isPropertyDeclaration(e) || o.isPropertySignature(e), p = o.isGetAccessor(e), d = Gi(), m = i.isInLuminaMinimalExtraction || i.jsDoc === Ce;
2631
+ let f = !1, u = !1, v, C = !1, g, P, h;
2632
+ if (c && e.modifiers !== void 0)
2633
+ for (let E = 0; E < e.modifiers.length; ++E)
2634
+ switch (e.modifiers[E].kind) {
2635
+ case o.SyntaxKind.ReadonlyKeyword:
2636
+ f = !0;
2637
+ continue;
2638
+ case o.SyntaxKind.AccessorKeyword:
2639
+ u = !0;
2640
+ continue;
2641
+ case o.SyntaxKind.ProtectedKeyword:
2642
+ v = "protected";
2643
+ continue;
2644
+ case o.SyntaxKind.StaticKeyword:
2645
+ g = !0;
2646
+ continue;
2647
+ case o.SyntaxKind.AbstractKeyword:
2648
+ C = !0;
2649
+ continue;
2650
+ }
2651
+ n ||= f || p && i.pairedSetter === void 0;
2652
+ const R = i.apiObject.customElement === !0;
2653
+ let L = !1;
2654
+ if (i.moduleHasAccessorLikeClass)
2655
+ if (s !== void 0) {
2656
+ for (let E = 0; E < s.length; ++E) {
2657
+ const S = s[E];
2658
+ if (!o.isPropertyAssignment(S)) {
2659
+ L ||= o.isSpreadAssignment(S);
2660
+ continue;
2661
+ }
2662
+ const x = S.name.escapedText;
2663
+ x === "readOnly" && Z(S.initializer, i) ? n = !0 : x === "constructOnly" && Z(S.initializer, i) ? d.isConstructorOnly = !0 : x === "type" ? d.hasAutoCasting = !0 : x === "types" && Ao(
2664
+ d,
2665
+ S.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? S.initializer : void 0
2666
+ );
2667
+ }
2668
+ L && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2669
+ } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2670
+ else if (R) {
2671
+ const E = i.apiObject;
2672
+ if (r === void 0) {
2673
+ if (m)
2674
+ return;
2675
+ {
2676
+ const S = c && !g ? Lo(e, t, i) : void 0;
2677
+ if (S !== void 0) {
2678
+ E.events ??= [], E.events.push(S);
2679
+ return;
2680
+ } else !i.config.strict && Si(e) ? (v = "protected", P = !1, i.jsDoc = {
2681
+ ...i.jsDoc,
2682
+ docsTags: [...i.jsDoc.docsTags, U.internal]
2683
+ }) : r === void 0 && i.emitError(
2684
+ "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2685
+ {
2686
+ file: i.file,
2687
+ node: e
2688
+ }
2689
+ );
2690
+ }
2691
+ } else if (s !== void 0)
2692
+ for (let S = 0; S < s.length; ++S) {
2693
+ const x = s[S];
2694
+ if (!(!o.isPropertyAssignment(x) || !o.isIdentifier(x.name)))
2695
+ switch (x.name.escapedText) {
2696
+ case "attribute":
2697
+ o.isStringLiteral(x.initializer) ? P = x.initializer.text : P = Z(x.initializer, i);
2698
+ continue;
2699
+ case "reflect":
2700
+ Z(x.initializer, i) && (P ??= !0, h = !0);
2701
+ continue;
2702
+ case "readOnly":
2703
+ Z(x.initializer, i) && (n = !0);
2704
+ continue;
2705
+ case "type":
2706
+ case "converter":
2707
+ P ??= !0;
2708
+ continue;
2709
+ }
2710
+ }
2711
+ }
2712
+ const y = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), k = n ? void 0 : y;
2713
+ u ||= r !== void 0 || p || y !== void 0, d.isAccessor = u || void 0;
2714
+ const M = k?.parameters[0].type, I = a.type;
2715
+ let D = M ?? I;
2716
+ if (D === void 0) {
2717
+ const E = k?.parameters[0].initializer ?? e.initializer;
2718
+ if (c && E !== void 0 && o.isArrowFunction(E)) {
2719
+ if (n)
2720
+ return Ht(E, t, e, i);
2721
+ Jt(e, i);
2722
+ }
2723
+ D = E === void 0 ? jn(e, i) ?? Y(
2724
+ { file: i.file, node: e },
2725
+ "Public property must have a type annotation or a default value",
2726
+ i
2727
+ ) : Et(E, n ? w.shallow : w.false, i.file, i);
2728
+ } else if (D = Ct(D), c && o.isFunctionTypeNode(D)) {
2729
+ if (n)
2730
+ return Ht(D, t, e, i);
2731
+ Jt(e, i);
2732
+ }
2733
+ const T = {
2734
+ [j]: d,
2735
+ kind: "field",
2736
+ name: t,
2737
+ static: g,
2738
+ deprecated: void 0,
2739
+ summary: void 0,
2740
+ description: void 0,
2741
+ docsTags: void 0,
2742
+ // In minimal extraction, we care only for type.values (set below)
2743
+ type: m ? { ...fi } : z(D, i),
2744
+ getterType: void 0,
2745
+ default: void 0,
2746
+ readonly: n || void 0,
2747
+ inheritedFrom: void 0,
2748
+ privacy: v,
2749
+ source: void 0,
2750
+ attribute: !R || P === !1 ? void 0 : typeof P == "string" ? P : Ji(t),
2751
+ reflects: h,
2752
+ docsOnlyReadonly: void 0
2753
+ };
2754
+ dn(T, i.jsDoc);
2755
+ const _ = T.default;
2756
+ R && t === "messageOverrides" && (d.dtsTypeOverride = T.type.text, T.type = ro);
2757
+ const N = R && r !== void 0;
2758
+ if (N) {
2759
+ !n && T.readonly === !0 && (T.docsOnlyReadonly = !0);
2760
+ const E = i.program?.getTypeChecker?.();
2761
+ T.type.values = E !== void 0 && D.pos === -1 && (D.kind === o.SyntaxKind.TypeQuery || D.kind === o.SyntaxKind.IndexedAccessType || D.kind === o.SyntaxKind.ImportType || D.kind === o.SyntaxKind.TypeReference) ? Eo(E.getTypeAtLocation(y?.parameters[0] ?? e)) : ho(D, E, y?.parameters[0] ?? e), (P === void 0 && T.type.values === void 0 && !i.config.context.isLuminaMinimalExtraction || T.readonly && !T.reflects) && (T.attribute = void 0);
2762
+ const S = E !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2763
+ e.type !== void 0 && e.initializer !== void 0 && o.isPropertyAccessExpression(e.initializer) && o.isPropertyAccessExpression(e.initializer.expression) && e.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(e.initializer.expression.name) && o.isIdentifier(e.initializer.name);
2764
+ if (("initializer" in e && e.initializer !== void 0 && (!T.default || !T.description) || S) && !m) {
2765
+ const x = e.initializer, A = E?.getSymbolAtLocation(x), V = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? E?.getAliasedSymbol(A) : A;
2766
+ let W, G;
2767
+ const O = V?.getDeclarations();
2768
+ if (O !== void 0)
2769
+ for (let F = 0; F < O.length; ++F) {
2770
+ const B = O[F];
2771
+ W ??= o.isGetAccessor(B) ? B : void 0, G ??= o.isSetAccessor(B) ? B : void 0, "initializer" in B && (T.default = $e(
2772
+ B.initializer,
2773
+ T.default,
2774
+ B.getSourceFile()
2775
+ ));
2776
+ }
2777
+ S && W?.type !== void 0 && G !== void 0 && W.type.getText() !== G.parameters[0]?.type?.getText() && (T.getterType = {
2778
+ text: z(W.type, i).text,
2779
+ references: void 0,
2780
+ values: void 0,
2781
+ source: void 0
2782
+ });
2783
+ }
2784
+ }
2785
+ if (I !== void 0 && M !== void 0 && !m && // Quick perf check: type is definitely the same if raw type string matches.
2786
+ // More reliable check follows in processing/index.ts, where printed normalized
2787
+ // type string is compared.
2788
+ I.getText(i.file) !== M.getText(i.file) ? T.getterType = z(I, i) : T.readonly === !0 && T.name === "type" && D.kind === o.SyntaxKind.LiteralType && D.literal.kind === o.SyntaxKind.StringLiteral && (i.moduleContext.typeName = D.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (T.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : T.getterType ??= {
2789
+ ...T.type,
2790
+ references: T.type.references === void 0 ? void 0 : [...T.type.references]
2791
+ }), n && D.kind === o.SyntaxKind.LiteralType || (T.default = $e(
2792
+ e.initializer,
2793
+ T.default,
2794
+ i.file
2795
+ )), N) {
2796
+ const E = _ === void 0 && T.default === "true";
2797
+ T.type.values?.length === 1 && T.type.values[0].type === "boolean" && (T.default === void 0 ? T.default = "false" : E && T.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2798
+ `${Ii}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`
2799
+ ), i.loggedBooleanWarning = !0));
2800
+ }
2801
+ return po(
2802
+ i,
2803
+ e,
2804
+ i.config.documentation.copyDocDefinitions?.properties,
2805
+ T,
2806
+ i.apiObject
2807
+ ), i.produceDts && C && (d.isAbstract = !0), c && e.questionToken !== void 0 && (T.type.text.endsWith(" | undefined") || (T.type.text = // Don't need to wrap non-accessors in |undefined as we replace |undefined
2808
+ // with ? during printing
2809
+ u && (D.kind === o.SyntaxKind.FunctionType || D.kind === o.SyntaxKind.ConstructorType || D.kind === o.SyntaxKind.ConditionalType || D.kind === o.SyntaxKind.InferType) ? `(${T.type.text}) | undefined` : `${T.type.text} | undefined`), T.getterType !== void 0 && !T.getterType.text.endsWith(" | undefined") && (T.getterType.text += " | undefined")), T;
2810
+ }
2811
+ function Jt(e, t) {
2812
+ if (!t.config.strict)
2813
+ return;
2814
+ const n = t.jsDoc.docsTags;
2815
+ for (let i = 0; i < n.length; ++i) {
2816
+ const a = n[i].name;
2817
+ if (a === "param" || a === "returns") {
2818
+ t.emitError(
2819
+ "@param and @returns tags are only allowed on method-like properties. If this property is intended to be documented as a method, please add the 'readonly' modifier.",
2820
+ {
2821
+ file: t.file,
2822
+ node: e
2823
+ }
2824
+ );
2825
+ return;
2826
+ }
2827
+ }
2828
+ }
2829
+ function Ao(e, t) {
2830
+ if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2831
+ for (let n = 0; n < t.properties.length; ++n) {
2832
+ const i = t.properties[n];
2833
+ if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2834
+ e.autoCastingDefaultType = i.initializer.text;
2835
+ return;
2836
+ }
2837
+ }
2838
+ }
2839
+ const Si = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2840
+ function Ze(e, t) {
2841
+ const n = o.isClassDeclaration(e);
2842
+ let i = e.name.escapedText;
2843
+ const a = n ? t.componentTagName : void 0, r = !n && di(i, t);
2844
+ if (t.file.fileName.includes("serial-chart-model"))
2845
+ debugger;
2846
+ let l = e.heritageClauses === void 0 || r ? void 0 : e.heritageClauses[0]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[0] : e.heritageClauses[1]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[1] : void 0;
2847
+ if (t.config.context.supportApplyMixinsSyntax && !n && l?.types.length === 1 && o.isExpressionWithTypeArguments(l.types[0]) && l.types[0].expression.escapedText === "MixinInstances" && l.types[0].typeArguments?.length === 1) {
2848
+ Go(i, l.types[0].typeArguments[0], t);
2849
+ return;
2850
+ }
2851
+ const s = n && t.mixinName !== void 0 && l !== void 0 && o.isExpressionWithTypeArguments(l.types[0]) && o.isIdentifier(l.types[0].expression) && l.types[0].expression.escapedText === "TypedBase";
2852
+ s && (l = void 0, i = t.mixinName);
2853
+ const c = ii(), p = {
2854
+ [j]: c,
2855
+ kind: n ? "class" : "interface",
2856
+ name: i,
2857
+ customElement: a === void 0 ? void 0 : !0,
2858
+ tagName: a,
2859
+ privacy: void 0,
2860
+ pascalCaseName: a === void 0 ? void 0 : (
2861
+ /**
2862
+ * We use the tag name rather than the class name to generate the
2863
+ * type name because the class name may not start with the library
2864
+ * prefix (Arcgis), where as tag name always does. This also matches
2865
+ * Stencil's behavior.
2866
+ */
2867
+ qi(a)
2868
+ ),
2869
+ deprecated: void 0,
2870
+ summary: void 0,
2871
+ description: void 0,
2872
+ docsTags: void 0,
2873
+ demos: void 0,
2874
+ typeParameters: s ? void 0 : nt(e.typeParameters, !0, t),
2875
+ superclass: void 0,
2876
+ supertypes: void 0,
2877
+ mixins: void 0,
2878
+ encapsulation: void 0,
2879
+ formAssociated: void 0,
2880
+ members: [],
2881
+ attributes: void 0,
2882
+ events: void 0,
2883
+ slots: void 0,
2884
+ cssParts: void 0,
2885
+ cssProperties: void 0,
2886
+ cssStates: void 0,
2887
+ type: void 0,
2888
+ source: void 0,
2889
+ // REFACTOR: remove this deprecated property
2890
+ importPath: a === void 0 ? void 0 : t.apiModule.path
2891
+ }, d = p, m = d, f = d;
2892
+ ni(p, t.jsDoc);
2893
+ const u = r ? (
2894
+ // Members will be added during post-processing
2895
+ !1
2896
+ ) : Ti(d, e.members, i, t);
2897
+ s && (t.mixinMixins !== void 0 && (m.mixins = t.mixinMixins), u && t.emitError("Mixin class is not expected to have a @public constructor", { file: t.file, node: e })), l === void 0 ? a !== void 0 && m.superclass === void 0 && t.emitError(
2898
+ "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2899
+ {
2900
+ file: t.file,
2901
+ node: e
2902
+ }
2903
+ ) : ko(l, n, p, e, t), a !== void 0 && so(m, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = f));
2904
+ const v = t.exportDefaultName === i, C = tt(e), g = v || C === 2;
2905
+ return (g || a !== void 0) && Pt(d, g, t), n ? (a === void 0 ? go(
2906
+ t,
2907
+ e,
2908
+ t.config.documentation.copyDocDefinitions.classes,
2909
+ m,
2910
+ t.apiModule
2911
+ ) : vo(
2912
+ t,
2913
+ e,
2914
+ t.config.documentation.copyDocDefinitions.customElements,
2915
+ m,
2916
+ t.apiModule
2917
+ ), t.moduleHasClass && t.config.strict && t.emitError(
2918
+ "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/sdk/contributing/core/core/documenting-api#class",
2919
+ { file: t.file, node: e }
2920
+ ), t.moduleHasClass = !0) : yi(
2921
+ t,
2922
+ e,
2923
+ t.config.documentation.copyDocDefinitions.interfaces,
2924
+ f,
2925
+ t.apiModule
2926
+ ), t.produceDts && (c.isDefaultExported = g || void 0, n && (!s && (!v && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2927
+ file: t.file,
2928
+ node: e
2929
+ }), ci(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !u && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2930
+ }
2931
+ function ko(e, t, n, i, a) {
2932
+ for (let r = 0; r < e.types.length; ++r) {
2933
+ const l = e.types[r];
2934
+ if (t) {
2935
+ let s = l.typeArguments, c = l.expression;
2936
+ if (o.isCallExpression(c)) {
2937
+ do {
2938
+ const d = c.expression;
2939
+ if (o.isPropertyAccessExpression(d) && o.isIdentifier(d.expression) && o.isIdentifier(d.name) && d.expression.escapedText === "Collection" && d.name.escapedText === "ofType") {
2940
+ const m = c.arguments[0];
2941
+ if (!o.isIdentifier(m)) {
2942
+ a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2943
+ file: a.file,
2944
+ node: m
2945
+ });
2946
+ break;
2947
+ }
2948
+ s = [o.factory.createTypeReferenceNode(m)], c = d.expression;
2949
+ } else {
2950
+ n.mixins ??= [];
2951
+ const m = c.expression;
2952
+ n.mixins.unshift(
2953
+ Ee(m, c.typeArguments, a)
2954
+ ), c = c.arguments[0];
2955
+ }
2956
+ } while (o.isCallExpression(c));
2957
+ if (o.isClassExpression(c)) {
2958
+ (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2959
+ "The only supported inline class expression is an empty class. Extract into a separate named class",
2960
+ { file: a.file, node: c }
2961
+ );
2962
+ break;
2963
+ } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2964
+ }
2965
+ const p = Ee(
2966
+ c,
2967
+ a.isInLuminaMinimalExtraction ? void 0 : s,
2968
+ a
2969
+ );
2970
+ if (p.name === "LitElement") {
2971
+ p.name = "PublicLitElement", p.module = "PublicLitElement", p.package = "@arcgis/lumina";
2972
+ const d = a.moduleContext.importsMap.LitElement;
2973
+ d === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : d.actualName = "PublicLitElement";
2974
+ }
2975
+ n.superclass = p;
2976
+ break;
2977
+ } else {
2978
+ const s = oo(l);
2979
+ let c = s, p;
2980
+ if (o.isExpressionWithTypeArguments(s))
2981
+ c = s.expression, p = s.typeArguments;
2982
+ else if (o.isTypeReferenceNode(s) && (c = s.typeName, p = s.typeArguments, c.escapedText === "Record" && p?.length === 2 && p[0].kind === o.SyntaxKind.NeverKeyword && p[1].kind === o.SyntaxKind.NeverKeyword))
2983
+ continue;
2984
+ n.supertypes ??= [], n.supertypes.push(
2985
+ Ee(c, p, a)
2986
+ );
2987
+ }
2988
+ }
2989
+ }
2990
+ function Ti(e, t, n, i) {
2991
+ i.apiObject = e;
2992
+ const a = e.customElement === !0, r = e.members, l = t.length;
2993
+ let s, c = t[0], p, d = xe(c?.name), m = !1;
2994
+ for (let f = 0; f < l; ++f) {
2995
+ if (s = c, c = t[f + 1], p = d, d = xe(c?.name), i.pairedSetter !== void 0) {
2996
+ i.pairedSetter = void 0;
2997
+ continue;
2998
+ }
2999
+ if (p === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
3000
+ continue;
3001
+ c !== void 0 && p === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
3002
+ let u = J(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : J(i.pairedSetter, !0, i));
3003
+ if (u === void 0 && !i.config.strict && (a ? p !== void 0 && qt(s, i.pairedSetter, !0) : !ci(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
3004
+ const C = J(s, !1, i) ?? (i.pairedSetter === void 0 ? void 0 : J(i.pairedSetter, !1, i)) ?? ze;
3005
+ C.docsTags.includes(U.private) ? a && i.config.context.includeLuminaPrivateComponents ? u = Ce : u = void 0 : u = C;
3006
+ } else u === void 0 && a && i.config.context.includeLuminaPrivateComponents && qt(s, i.pairedSetter, !1) && (u = Ce);
3007
+ if (u === void 0) {
3008
+ a && o.isPropertyDeclaration(s) && o.isIdentifier(s.name) && (s.name.escapedText === "shadowRootOptions" && s.initializer !== void 0 && o.isIdentifier(s.initializer) && s.initializer.escapedText === "noShadowRoot" && (i.apiObject.encapsulation = "none"), s.name.escapedText === "formAssociated" && s.initializer !== void 0 && Z(s.initializer, i) && (i.apiObject.formAssociated = !0));
3009
+ continue;
3010
+ }
3011
+ i.jsDoc = u;
3012
+ let v;
3013
+ o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? v = vi(s, p, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? v = st(s, p, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (m = !0, v = st(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? v = st(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (lt.members.splice(
3014
+ 0,
3015
+ lt.members.length,
3016
+ s
3017
+ ), hi(e, lt, i), pe(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3018
+ file: i.file,
3019
+ node: s
3020
+ }), v !== void 0 && r.push(v);
3021
+ }
3022
+ return i.apiObject = void 0, m;
3023
+ }
3024
+ const lt = o.factory.createTypeLiteralNode(void 0);
3025
+ function qt(e, t, n) {
3026
+ if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3027
+ const i = e;
3028
+ if ((De(i.modifiers, "property") ?? (t === void 0 ? void 0 : De(t.modifiers, "property"))) !== void 0)
3029
+ return !0;
3030
+ if (!n)
3031
+ return !1;
3032
+ if (Si(e))
3033
+ return !0;
3034
+ if (i.modifiers !== void 0)
3035
+ for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3036
+ const l = i.modifiers[r];
3037
+ if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3038
+ return !1;
3039
+ }
3040
+ return e.kind === o.SyntaxKind.PropertyDeclaration && i.initializer !== void 0 && o.isCallExpression(i.initializer) ? o.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") || o.isCallExpression(i.initializer.expression) && o.isIdentifier(i.initializer.expression.expression) && i.initializer.expression.expression.escapedText === "usePropertyChange" : !1;
3041
+ } else return e.kind === o.SyntaxKind.MethodDeclaration ? De(e.modifiers, "method") !== void 0 : !1;
3042
+ }
3043
+ function hi(e, t, n) {
3044
+ const i = z(t, n);
3045
+ if (e.type === void 0)
3046
+ e.type = i;
3047
+ else {
3048
+ const a = `${e.type.text} &
3049
+ `, r = a.length;
3050
+ e.type = {
3051
+ text: `${a}${i.text}`,
3052
+ references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Ut(i.references, r) : [...e.type.references, ...Ut(i.references, r)],
3053
+ values: void 0,
3054
+ source: void 0
3055
+ };
3056
+ }
3057
+ }
3058
+ function Go(e, t, n) {
3059
+ if (!o.isTypeQueryNode(t)) {
3060
+ n.emitError("Expected a TypeQueryNode for applyMixins syntax", { file: n.file, node: t });
3061
+ return;
3062
+ }
3063
+ if (!o.isIdentifier(t.exprName)) {
3064
+ n.emitError("Expected an Identifier for the expression name in applyMixins syntax", {
3065
+ file: n.file,
3066
+ node: t
3067
+ });
3068
+ return;
3069
+ }
3070
+ const i = t.exprName.escapedText;
3071
+ let a;
3072
+ for (let s = n.file.statements.length - 1; s >= 0; --s) {
3073
+ const c = n.file.statements[s];
3074
+ if (!o.isVariableStatement(c))
3075
+ continue;
3076
+ const p = c.declarationList.declarations[0];
3077
+ if (o.isIdentifier(p.name) && p.name?.escapedText === i) {
3078
+ a = p;
3079
+ break;
3080
+ }
3081
+ }
3082
+ if (a === void 0) {
3083
+ n.emitError(`Could not find variable declaration for ${i} in applyMixins syntax`, {
3084
+ file: n.file,
3085
+ node: t
3086
+ });
3087
+ return;
3088
+ }
3089
+ if (a.initializer === void 0 || !o.isAsExpression(a.initializer) || !o.isArrayLiteralExpression(a.initializer.expression)) {
3090
+ n.emitError(
3091
+ `Expected an 'as' expression with an array literal for the initializer of ${i} in applyMixins syntax`,
3092
+ {
3093
+ file: n.file,
3094
+ node: a
3095
+ }
3096
+ );
3097
+ return;
3098
+ }
3099
+ const r = n.apiModule.declarations.at(-1);
3100
+ if (r?.kind !== "class" || r.name !== e) {
3101
+ n.emitError(
3102
+ `Expected the ${e} class to be defined right before the ${e} interface`,
3103
+ {
3104
+ file: n.file,
3105
+ node: t
3106
+ }
3107
+ );
3108
+ return;
3109
+ }
3110
+ const l = a.initializer.expression.elements;
3111
+ r.mixins ??= [];
3112
+ for (let s = 0; s < l.length; ++s) {
3113
+ const c = l[s];
3114
+ if (!o.isIdentifier(c)) {
3115
+ n.emitError(`Expected an Identifier in the mixins array for ${i} in applyMixins syntax`, {
3116
+ file: n.file,
3117
+ node: c
3118
+ });
3119
+ return;
3120
+ }
3121
+ r.mixins.unshift(Ee(c, void 0, n));
3122
+ }
3123
+ }
3124
+ function Fo(e, t) {
3125
+ const n = e.type, i = e.name.escapedText, a = di(i, t), r = ii(), l = {
3126
+ [j]: r,
3127
+ kind: "interface",
3128
+ name: i,
3129
+ customElement: void 0,
3130
+ tagName: void 0,
3131
+ privacy: void 0,
3132
+ pascalCaseName: void 0,
3133
+ deprecated: void 0,
3134
+ summary: void 0,
3135
+ description: void 0,
3136
+ docsTags: void 0,
3137
+ demos: void 0,
3138
+ typeParameters: nt(e.typeParameters, !0, t),
3139
+ superclass: void 0,
3140
+ supertypes: void 0,
3141
+ mixins: void 0,
3142
+ encapsulation: void 0,
3143
+ formAssociated: void 0,
3144
+ members: [],
3145
+ attributes: void 0,
3146
+ events: void 0,
3147
+ slots: void 0,
3148
+ cssParts: void 0,
3149
+ cssProperties: void 0,
3150
+ cssStates: void 0,
3151
+ type: void 0,
3152
+ source: void 0,
3153
+ importPath: void 0
3154
+ }, s = l;
3155
+ if (ni(l, t.jsDoc), a)
3156
+ t.moduleContext.constructorPropertiesInterface = s;
3157
+ else {
3158
+ r.emitAsTypeAlias = !0;
3159
+ const c = o.isIntersectionTypeNode(n) ? n.types : [n];
3160
+ for (let p = 0; p < c.length; ++p) {
3161
+ const d = Ct(c[p]);
3162
+ if (o.isTypeLiteralNode(d))
3163
+ Ti(s, d.members, i, t);
3164
+ else if (o.isTypeReferenceNode(d))
3165
+ s.supertypes ??= [], s.supertypes.push(Ee(d.typeName, d.typeArguments, t));
3166
+ else if (o.isFunctionTypeNode(d) || o.isConstructorTypeNode(d)) {
3167
+ if (t.jsDoc = ze, s.docsTags !== void 0) {
3168
+ t.jsDoc = { ...ze, docsTags: [] };
3169
+ for (let m = 0; m < s.docsTags.length; ++m) {
3170
+ const f = s.docsTags[m];
3171
+ (f.name === "param" || f.name === "returns") && (t.jsDoc.docsTags.push(f), s.docsTags.splice(m, 1), m -= 1);
3172
+ }
3173
+ s.docsTags.length === 0 && (s.docsTags = void 0);
3174
+ }
3175
+ s.members.push(To(d, i, void 0, t));
3176
+ } else
3177
+ hi(s, d, t);
3178
+ }
3179
+ }
3180
+ return t.objectLikeTypeParameters = void 0, yi(
3181
+ t,
3182
+ e,
3183
+ t.config.documentation.copyDocDefinitions.interfaces,
3184
+ s,
3185
+ t.apiModule
3186
+ ), s.members.length === 0 && (s.members = void 0), s;
3187
+ }
3188
+ function Oo(e, t, n) {
3189
+ const i = e.initializer, a = i.body;
3190
+ let r, l;
3191
+ for (let d = 0; d < a.statements.length; ++d) {
3192
+ const m = a.statements[d];
3193
+ if (o.isVariableStatement(m)) {
3194
+ const f = m.declarationList.declarations[0];
3195
+ if (!o.isIdentifier(f.name) || f.name?.escapedText !== "TypedBase")
3196
+ continue;
3197
+ let u = f.initializer.expression.expression;
3198
+ for (; o.isCallExpression(u); ) {
3199
+ const v = u.expression;
3200
+ r ??= [], r.push(Ee(v, u.typeArguments, n)), u = u.arguments[0];
3201
+ }
3202
+ } else o.isClassDeclaration(m) && (l = m);
3203
+ }
3204
+ if (l === void 0) {
3205
+ n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3206
+ file: n.file,
3207
+ node: e
3208
+ });
3209
+ return;
3210
+ }
3211
+ nt(
3212
+ // Skip the TBase type parameter - non-public implementation detail
3213
+ i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3214
+ !0,
3215
+ n
3216
+ ) !== void 0 && n.emitError(
3217
+ "Type parameters are not yet supported in public mixins (the first TBase type parameter is a special case). See workaround in https://webgis.esri.com/sdk/contributing/core/core/mixins#limitations-of-mixins",
3218
+ {
3219
+ file: n.file,
3220
+ node: e
3221
+ }
3222
+ ), n.mixinName = t, n.mixinMixins = r;
3223
+ const p = Ze(l, n);
3224
+ return p.kind = "mixin", p;
3225
+ }
3226
+ function No(e, t, n) {
3227
+ const i = n.moduleHasClass;
3228
+ n.moduleHasClass = !1;
3229
+ const a = o.factory.createClassDeclaration(
3230
+ [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3231
+ t,
3232
+ void 0,
3233
+ [
3234
+ o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3235
+ o.factory.createExpressionWithTypeArguments(e, void 0)
3236
+ ])
3237
+ ],
3238
+ []
3239
+ ), r = Ze(a, n), l = r, s = pe(l);
3240
+ return l.kind = "interface", l.supertypes = r.mixins, r.mixins = void 0, r.superclass !== void 0 && (l.supertypes ??= [], l.supertypes.unshift(r.superclass), r.superclass = void 0), n.moduleHasClass = i, s.isMixinBaseClass = !0, l;
3241
+ }
3242
+ function wo(e, t) {
3243
+ const n = e.declarationList.declarations;
3244
+ n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3245
+ file: t.file,
3246
+ node: e
3247
+ });
3248
+ const i = n[0], a = i.name;
3249
+ if (!o.isIdentifier(a)) {
3250
+ t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3251
+ file: t.file,
3252
+ node: e
3253
+ });
3254
+ return;
3255
+ }
3256
+ const r = a.escapedText, l = t.exportDefaultName === r;
3257
+ if (tt(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3258
+ file: t.file,
3259
+ node: e
3260
+ }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3261
+ return No(i.initializer, r, t);
3262
+ let c = i.type;
3263
+ const p = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3264
+ if (c === void 0) {
3265
+ const u = i.initializer;
3266
+ if (u !== void 0 && o.isArrowFunction(u) && p)
3267
+ return u.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Oo(i, r, t) : Kt(u, r, e, t);
3268
+ u === void 0 ? c = Y(
3269
+ { file: t.file, node: i },
3270
+ "Public variable must have a type annotation or a default value",
3271
+ t
3272
+ ) : c = Et(u, p ? w.shallow : w.false, t.file, t);
3273
+ } else if (c = Ct(c), o.isFunctionTypeNode(c))
3274
+ return Kt(c, r, e, t);
3275
+ const d = Fi(), m = {
3276
+ [j]: d,
3277
+ kind: "variable",
3278
+ name: r,
3279
+ deprecated: void 0,
3280
+ summary: void 0,
3281
+ description: void 0,
3282
+ docsTags: void 0,
3283
+ source: void 0,
3284
+ type: z(c, t),
3285
+ default: void 0
3286
+ };
3287
+ return pn(m, t.jsDoc), p && c.kind === o.SyntaxKind.LiteralType || (m.default = $e(i.initializer, m.default, t.file)), yo(
3288
+ t,
3289
+ e,
3290
+ t.config.documentation.copyDocDefinitions.variables,
3291
+ m,
3292
+ t.apiModule
3293
+ ), l && (Pt(m, !0, t), t.produceDts && (d.isDefaultExported = !0)), m;
3294
+ }
3295
+ function Ei(e, t, n) {
3296
+ const i = n.statementJsDocs[t];
3297
+ if (i !== void 0) {
3298
+ if (n.jsDoc = i, o.isClassDeclaration(e))
3299
+ return Ze(e, n);
3300
+ if (o.isFunctionDeclaration(e))
3301
+ return So(e, e.name.escapedText, void 0, n);
3302
+ if (o.isInterfaceDeclaration(e))
3303
+ return Ze(e, n);
3304
+ if (o.isTypeAliasDeclaration(e))
3305
+ return Fo(e, n);
3306
+ if (o.isVariableStatement(e))
3307
+ return wo(e, n);
3308
+ }
3309
+ }
3310
+ function Uo(e, t) {
3311
+ const n = t.apiModule.declarations, i = e.statements;
3312
+ for (let a = 0; a < i.length; ++a) {
3313
+ const r = i[a], l = Ei(r, a, t);
3314
+ l !== void 0 && n.push(l);
3315
+ }
3316
+ }
3317
+ function Vo(e, t) {
3318
+ const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3319
+ if (i !== void 0) {
3320
+ if (i.module !== void 0)
3321
+ return i.module;
3322
+ if (i.isEmptyModule)
3323
+ return;
3324
+ }
3325
+ const a = n.slice(t.config.context.basePath.length), r = ee(a), l = Ve(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3326
+ t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3327
+ const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3328
+ p.clear();
3329
+ const d = t.localPrivateDeclarations;
3330
+ d?.clear(), t.exportDefaultName = void 0;
3331
+ let m;
3332
+ const f = {
3333
+ class: void 0,
3334
+ default: void 0,
3335
+ named: /* @__PURE__ */ Object.create(null)
3336
+ }, u = ti(e, s, c, f);
3337
+ t.moduleContext = u;
3338
+ const v = t.implicitPublicModules?.[l];
3339
+ let C = !1;
3340
+ const g = t.isJsApi && l.startsWith("applications/");
3341
+ t.statementJsDocs.length = 0;
3342
+ for (let L = 0; L < e.statements.length; ++L) {
3343
+ const y = e.statements[L], k = y.kind === o.SyntaxKind.ClassDeclaration || y.kind === o.SyntaxKind.FunctionDeclaration || y.kind === o.SyntaxKind.InterfaceDeclaration || y.kind === o.SyntaxKind.TypeAliasDeclaration || y.kind === o.SyntaxKind.VariableStatement;
3344
+ let M;
3345
+ if (
3346
+ // Only look at web components in Lumina's dev server
3347
+ t.isInLuminaMinimalExtraction
3348
+ )
3349
+ M = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 ? ze : void 0;
3350
+ else if (k) {
3351
+ if (M = J(y, !0, t), M === void 0 && !t.config.strict) {
3352
+ const I = J(y, !1, t) ?? { description: void 0, docsTags: [] }, D = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0;
3353
+ I.docsTags.includes(U.private) ? D && t.config.context.includeLuminaPrivateComponents ? (M = Ce, t.isInLuminaMinimalExtraction = !0) : M = void 0 : (D || v !== void 0 && Fn(y, v)) && (M = I);
3354
+ } else M === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && y.kind === o.SyntaxKind.ClassDeclaration && (M = Ce, t.isInLuminaMinimalExtraction = !0);
3355
+ M !== void 0 && !t.config.strict && y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 && M.docsTags.includes(U.internal) && (C = !0);
3356
+ }
3357
+ if (t.statementJsDocs[L] = M, k || L === 0 && (m = J(e, !0, t)), M !== void 0)
3358
+ g && M.docsTags.push(U.internal), p.add(
3359
+ (y.name ?? y.declarationList?.declarations[0].name).escapedText
3360
+ ), y.kind === o.SyntaxKind.ClassDeclaration ? t.apiClassLikeName = y.name?.escapedText : y.kind === o.SyntaxKind.VariableStatement && y.declarationList.declarations[0].initializer?.kind === o.SyntaxKind.ArrowFunction && (t.apiClassLikeName = y.declarationList.declarations[0].name.escapedText);
3361
+ else if (o.isImportDeclaration(y)) {
3362
+ const I = y.importClause;
3363
+ if (I === void 0)
3364
+ continue;
3365
+ const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : ee(D), N = T ? void 0 : Ve(mt(r, _), t), q = N === void 0 ? void 0 : t.config.types.typeReplacements[N];
3366
+ if (Dn(y, t), I.name !== void 0) {
3367
+ const E = I.name.escapedText, S = q?.[E], x = S?.[1], A = S === void 0 ? !T && D.endsWith(".json") ? D : _ : ye(s, S[0]), V = S?.[0] ?? N;
3368
+ c[E] = {
3369
+ type: S?.[2] ?? "default",
3370
+ modulePath: V,
3371
+ specifier: A,
3372
+ replacementName: x,
3373
+ actualName: void 0,
3374
+ wasUsed: !1
3375
+ };
3376
+ }
3377
+ const K = I.namedBindings;
3378
+ if (K === void 0)
3379
+ continue;
3380
+ if (K.kind === o.SyntaxKind.NamespaceImport) {
3381
+ const E = K.name.escapedText, S = q?.[E], x = S?.[1], A = S === void 0 ? _ : ye(s, S[0]), V = S?.[0] ?? N;
3382
+ c[E] = {
3383
+ type: "*",
3384
+ modulePath: V,
3385
+ specifier: A,
3386
+ replacementName: x,
3387
+ actualName: void 0,
3388
+ wasUsed: !1
3389
+ };
3390
+ } else
3391
+ for (let E = 0; E < K.elements.length; ++E) {
3392
+ const S = K.elements[E], x = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText, V = q?.[x ?? A], W = V?.[1], G = V === void 0 ? _ : ye(s, V[0]), O = V?.[0] ?? N;
3393
+ c[A] = {
3394
+ type: V?.[2] ?? "named",
3395
+ modulePath: O,
3396
+ specifier: G,
3397
+ replacementName: W,
3398
+ actualName: V === void 0 ? x : void 0,
3399
+ wasUsed: !1
3400
+ };
3401
+ }
3402
+ } else if (o.isExportAssignment(y)) {
3403
+ if (o.isIdentifier(y.expression)) {
3404
+ const I = y.expression.escapedText;
3405
+ t.exportDefaultName = I, !p.has(I) && d?.has(I) === !0 && v?.pendingNames?.has("default") === !0 && d.set(I, Math.abs(d.get(I)));
3406
+ }
3407
+ } else if (o.isExportDeclaration(y) && y.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3408
+ if (J(y, !0, t) !== void 0) {
3409
+ const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : mt(r, ee(D)), N = T ? void 0 : Ve(_, t), q = T ? D : ye(s, N);
3410
+ u.reExports ??= [];
3411
+ const K = [];
3412
+ if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
3413
+ const E = y.exportClause.elements;
3414
+ for (let S = 0; S < E.length; ++S) {
3415
+ const x = E[S], A = xe(x.name), V = x.propertyName === void 0 ? void 0 : xe(x.propertyName), W = V ?? A, G = V === void 0 ? void 0 : A;
3416
+ K.push({
3417
+ exportName: W,
3418
+ aliasName: G,
3419
+ isTypeOnly: y.isTypeOnly
3420
+ }), !t.config.strict && N !== void 0 && je(N, _, W, t);
3421
+ }
3422
+ } else
3423
+ K.push({
3424
+ exportName: "*",
3425
+ aliasName: y.exportClause === void 0 ? void 0 : xe(y.exportClause.name),
3426
+ isTypeOnly: !1
3427
+ }), !t.config.strict && N !== void 0 && je(N, _, "*", t);
3428
+ u.reExports.push({
3429
+ modulePath: N,
3430
+ specifier: q,
3431
+ isTypeOnly: y.isTypeOnly,
3432
+ specifiers: K
3433
+ });
3434
+ }
3435
+ } else o.isModuleDeclaration(y) ? J(y, !0, t) !== void 0 && (u.namespaces ??= [], u.namespaces.push(y.getFullText(e))) : d !== void 0 && k && d.set(
3436
+ (y.name ?? y.declarationList?.declarations[0].name).escapedText,
3437
+ -L
3438
+ );
3439
+ }
3440
+ const P = t.config.types.typeReplacements[l];
3441
+ if (P !== void 0) {
3442
+ const L = Object.keys(P);
3443
+ for (let y = 0; y < L.length; ++y) {
3444
+ const k = L[y], M = P[k];
3445
+ c[k] = {
3446
+ type: M[2],
3447
+ modulePath: M[0],
3448
+ specifier: ye(s, M[0]),
3449
+ replacementName: M[1],
3450
+ actualName: void 0,
3451
+ wasUsed: !1
3452
+ };
3453
+ }
3454
+ }
3455
+ t.moduleHasAccessorLikeClass = c.subclass?.specifier.includes("accessorSupport") ?? !1;
3456
+ const h = {
3457
+ [j]: u,
3458
+ kind: "javascript-module",
3459
+ path: l,
3460
+ sourcePath: n,
3461
+ deprecated: void 0,
3462
+ description: void 0,
3463
+ docsTags: void 0,
3464
+ summary: void 0,
3465
+ declarations: [],
3466
+ exports: []
3467
+ };
3468
+ if (t.apiModule = h, Uo(e, t), d !== void 0) {
3469
+ let L = !1;
3470
+ do {
3471
+ L = !1;
3472
+ for (const [y, k] of d)
3473
+ if (k > 0 || Object.is(k, 0)) {
3474
+ d.delete(y), p.add(y), L = !0;
3475
+ const M = e.statements[k], I = J(M, !1, t) ?? { description: void 0, docsTags: [] };
3476
+ if (I.docsTags.includes(U.private))
3477
+ t.emitError(
3478
+ `Declaration "${y}" is marked @private but is used by public API in the same file. Either refactor our its reference or remove the @private tag.`,
3479
+ {
3480
+ file: e,
3481
+ node: M
3482
+ }
3483
+ );
3484
+ else {
3485
+ C && !I.docsTags.includes(U.internal) && I.docsTags.push(U.internal), t.statementJsDocs[k] = I;
3486
+ const T = Ei(M, k, t);
3487
+ T !== void 0 && h.declarations.push(T);
3488
+ }
3489
+ }
3490
+ } while (L);
3491
+ }
3492
+ if (h.declarations.length === 0 && u.reExports === void 0 && u.namespaces === void 0) {
3493
+ i !== void 0 && (i.isEmptyModule = !0);
3494
+ return;
3495
+ }
3496
+ t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3497
+ file: u.file,
3498
+ module: h,
3499
+ previousModule: void 0,
3500
+ isEmptyModule: !1,
3501
+ dependencies: /* @__PURE__ */ new Set(),
3502
+ dependents: /* @__PURE__ */ new Map(),
3503
+ docLinks: [],
3504
+ hasDirtyLinks: !1,
3505
+ wasRemoved: !1
3506
+ }) : i.module = h);
3507
+ const R = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3508
+ h.exports.length === 0 && (h.exports = void 0);
3509
+ for (let L = 0; L < h.declarations.length; ++L) {
3510
+ const y = h.declarations[L];
3511
+ (y.kind === "class" || y.kind === "mixin") && (f.class = y), R === y.name && (f.default = y), f.named[y.name] = y;
3512
+ }
3513
+ return m !== void 0 && (t.moduleHasClass ? t.emitError(
3514
+ "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/sdk/contributing/core/core/documenting-api#module-documentation",
3515
+ {
3516
+ file: e,
3517
+ start: 0,
3518
+ length: e.statements[0]?.getStart(e) ?? 1,
3519
+ node: void 0
3520
+ }
3521
+ ) : (g && m.docsTags.push(U.internal), ln(h, m))), h;
3522
+ }
3523
+ async function Ta(e) {
3524
+ const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3525
+ e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3526
+ const s = e.isComponentProject ? (m) => Ki(m, a) : () => !1, c = e.isComponentProject ? p : d;
3527
+ if (e.program === void 0)
3528
+ await Mi(n, i, async (m) => {
3529
+ if (Ci(m))
3530
+ return;
3531
+ const f = await Lt(m);
3532
+ if (m.includes(".stories.")) {
3533
+ const C = f.toString("utf8");
3534
+ wt(C, m, e);
3535
+ return;
3536
+ }
3537
+ const u = s(m);
3538
+ if (u && l || // Exclude files before paying .toString() cost
3539
+ f.includes(Ko) && (f.includes(Ho) || f.includes($o))) {
3540
+ const C = f.toString("utf8"), g = Xt(m, C);
3541
+ c(g, u);
3542
+ }
3543
+ });
3544
+ else {
3545
+ const m = e.program.getSourceFiles();
3546
+ for (let f = 0; f < m.length; ++f) {
3547
+ const u = m[f], v = u.fileName;
3548
+ if (!Wo(v, e))
3549
+ continue;
3550
+ if (v.includes(".stories.")) {
3551
+ wt(u.text, v, e);
3552
+ continue;
3553
+ }
3554
+ const C = s(v);
3555
+ (C && l || u.text.includes(Pi) || u.text.includes(bi)) && c(u, C);
3556
+ }
3557
+ }
3558
+ function p(m, f) {
3559
+ r.push(m);
3560
+ const u = f ? Hi(m.text)?.[0] : void 0;
3561
+ if (u !== void 0) {
3562
+ const v = m.fileName.slice(e.basePath.length);
3563
+ $i(u, e, v);
3564
+ }
3565
+ }
3566
+ function d(m) {
3567
+ e.file = m;
3568
+ const f = Vo(m, e);
3569
+ f !== void 0 && t.push(f);
3570
+ }
3571
+ for (let m = 0; m < r.length; ++m)
3572
+ d(r[m]);
3573
+ if (e.implicitPublicModules !== void 0) {
3574
+ let m = !1;
3575
+ do {
3576
+ m = !1;
3577
+ for (const f in e.implicitPublicModules) {
3578
+ const u = e.implicitPublicModules[f], v = u.actualModulePath ?? f, C = e.moduleMap.get(v);
3579
+ if (u.extractedNames === void 0)
3580
+ continue;
3581
+ if (u.pendingNames !== void 0) {
3582
+ const R = e.watchFiles?.get(e.config.context.basePath + u.sourcePath);
3583
+ let y = !(R !== void 0 && R.module === void 0 && !R.isEmptyModule);
3584
+ const k = C === void 0 ? void 0 : oe(C).index;
3585
+ for (const M of u.pendingNames)
3586
+ if (!u.extractedNames.has(M) && (k === void 0 || (M === "default" ? k.default === void 0 : k.named[M] === void 0))) {
3587
+ y = !1;
3588
+ break;
3589
+ }
3590
+ if (y)
3591
+ continue;
3592
+ }
3593
+ if (C !== void 0) {
3594
+ t.splice(t.indexOf(C), 1);
3595
+ const R = e.watchFiles?.get(C.sourcePath);
3596
+ R !== void 0 && (R.module = void 0);
3597
+ }
3598
+ m = !0, u.extractedNames = u.pendingNames === void 0 ? void 0 : new Set(u.pendingNames);
3599
+ let g = e.basePath + u.sourcePath, P = !1, h = e.program?.getSourceFile(g) ?? e.program?.getSourceFile(`${g}.ts`) ?? e.program?.getSourceFile(`${g}.tsx`) ?? e.program?.getSourceFile(`${g}.d.ts`);
3600
+ if (h === void 0 && (h = e.program?.getSourceFile(`${g}/index.ts`) ?? e.program?.getSourceFile(`${g}/index.tsx`) ?? e.program?.getSourceFile(`${g}/index.d.ts`), h !== void 0 && (P = !0)), e.program === void 0 && (ee(g) === g && (g = ue(`${g}.ts`) ? `${g}.ts` : ue(`${g}.tsx`) ? `${g}.tsx` : ue(`${g}.d.ts`) ? `${g}.d.ts` : void 0, g === void 0 && (g = ue(`${g}/index.ts`) ? `${g}/index.ts` : ue(`${g}/index.tsx`) ? `${g}/index.tsx` : ue(`${g}/index.d.ts`) ? `${g}/index.d.ts` : void 0, g !== void 0 && (P = !0))), g !== void 0 && (h = Xt(g, await Lt(g, "utf8")))), h !== void 0) {
3601
+ const R = h.fileName.slice(e.basePath.length);
3602
+ R !== u.sourcePath && (u.sourcePath = R), P && (u.actualModulePath = `${v}/index`), d(h);
3603
+ }
3604
+ }
3605
+ } while (m);
3606
+ }
3607
+ return t;
3608
+ }
3609
+ const Wo = (e, t) => _o(e) && Bo(e, t), _o = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !Ci(e), Ci = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Bo = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3610
+ Tn(e.slice(t.basePath.length))
3611
+ ) && !e.includes("node_modules"), Qt = 32, Ko = 64, Pi = "@public", Ho = Buffer.from(Pi), bi = "@internal", $o = Buffer.from(bi);
3612
+ async function ha(e) {
3613
+ await Yt(e) && await Mi(e, /* @__PURE__ */ new Set(), Bi);
3614
+ }
3615
+ async function Mi(e, t, n) {
3616
+ const i = [], a = [];
3617
+ for await (const d of await It(e)) {
3618
+ const m = `${e}${d.name}`;
3619
+ d.isDirectory() && !t.has(d.name) ? a.push(m) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(m);
3620
+ }
3621
+ const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3622
+ function s(d) {
3623
+ l.reject(d), r.length = 0;
3624
+ }
3625
+ let c = Qt;
3626
+ for (let d = 0; d < Qt; ++d)
3627
+ p().catch(s);
3628
+ async function p() {
3629
+ for (; ; )
3630
+ if (r.length === 0 && a.length > 0) {
3631
+ const d = a.shift(), m = [];
3632
+ for await (const f of await It(d, { recursive: !0 }))
3633
+ f.isFile() && (f.name.endsWith(".ts") || f.name.endsWith(".tsx")) && m.push(`${xi(f.parentPath)}/${f.name}`);
3634
+ if (m.length === 0)
3635
+ continue;
3636
+ r.push(m);
3637
+ } else if (r.length > 0) {
3638
+ const d = r[0], m = d.shift();
3639
+ d.length === 0 && r.shift(), await n(m);
3640
+ } else {
3641
+ c -= 1, c === 0 && l.resolve();
3642
+ return;
3643
+ }
3644
+ }
3645
+ return await l.promise;
3646
+ }
3647
+ function Xt(e, t) {
3648
+ return o.createSourceFile(
3649
+ e,
3650
+ t,
3651
+ {
3652
+ languageVersion: o.ScriptTarget.Latest,
3653
+ impliedNodeFormat: o.ModuleKind.ESNext,
3654
+ // TypeScript parses too much around @param, @property and @deprecated tags
3655
+ // It also parses out inline tags. We have to put them back together
3656
+ // (overhead and complexity). Plus, it is a bit too tolerant - we want
3657
+ // to disallow some ambiguous behavior to improve consistency.
3658
+ // So, we disable JSDoc parsing and do it ourselves.
3659
+ jsDocParsingMode: o.JSDocParsingMode.ParseNone
3660
+ },
3661
+ !1,
3662
+ e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3663
+ );
3664
+ }
3665
+ export {
3666
+ ye as a,
3667
+ ya as b,
3668
+ ha as c,
3669
+ ga as d,
3670
+ Ta as e,
3671
+ va as f,
3672
+ _o as g,
3673
+ Bo as h,
3674
+ Wo as i,
3675
+ Ci as j,
3676
+ Xt as k,
3677
+ ma as l,
3678
+ ua as m,
3679
+ Vt as n,
3680
+ Ut as o,
3681
+ fa as p,
3682
+ pa as r,
3683
+ Sa as t
3684
+ };