@arcgis/api-extractor 5.2.0-next.7 → 5.2.0-next.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3705 +0,0 @@
1
- import { path as $e, existsAsync as Zt, getCwd as Ri, retrievePackageJson as dt, toPosixPathSeparators as Li } from "@arcgis/components-build-utils";
2
- import { b as Ii, p as Ai, l as ki } from "./typeScript-CSnL-3Jn.js";
3
- import { getDefaultBasePath as ei, buildViewUrl as Gi, getViewUrl as Ve } from "./extractor/processing/links.js";
4
- import o from "typescript";
5
- import "fs/promises";
6
- import { a as me, b as ti, c as Et, g as ne, p as j, f as tt, h as ii, d as Oe, e as Fi, i as Oi, j as ni, k as Ni } from "./privateContext-CB7P40up.js";
7
- import { maybeEscapePropertyName as Rt, printTypeAlias as Lt, printInterface as wi, printFunction as Ui, printVariable as Vi, printClass as Wi, printMethod as _i, printProperty as ye, printGetterSetter as Bi, printSignature as Ki } from "./utils/partPrinter.js";
8
- import { styleText as ie } from "node:util";
9
- import { readFile as It, opendir as At, rm as Hi } from "node:fs/promises";
10
- import { pathIsComponentEntrypoint as $i, findDeclaredComponent as zi } from "./extractor/webComponent/findComponents.js";
11
- import { renameComponentFolder as We, addComponentPathMapping as ji } from "./extractor/webComponent/pathMapping.js";
12
- import { getBasename as Z, getPackageNameFromExternalSpecifier as pt, extractInitializer as ze, extractBooleanInitializer as Y, findDecorator as De, getMemberName as Re } from "./utils/astHelpers.js";
13
- import { readFileSync as Ji, existsSync as fe } from "node:fs";
14
- import { uncapitalize as qi, camelToKebab as Qi, kebabToPascal as Xi } from "@arcgis/toolkit/string";
15
- import { globalPackageIdentifier as ce, mergeApiNodes as Yi, isApiMethodAsync as Zi } from "./utils/apiHelpers.js";
16
- import { identity as Se } from "@arcgis/toolkit/function";
17
- import { pathToFileURL as en } from "node:url";
18
- import tn from "path";
19
- import { getWidenedLiteralType as nn, unsafeUndocumentedTs as on, unsafeGetUndocumentedPrinter as an } from "./utils/internalTypeScriptApis.js";
20
- const kt = "developers.arcgis.com", Gt = "next.gha.afd.arcgis.com";
21
- function fa(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 ? Ri() : $e.resolve(t?.cwd)}/`, l = t?.packageJson ?? dt(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 ? Ii(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
- `${Ai.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 === "" ? "" : `${$e.resolve(r, t.dtsEmitPath)}/`, g = u !== "", C = t?.environment ?? "production", v = C === "development", P = t?.emptyDtsEmitPath ?? (!v && g), h = i?.omitInternal ?? !1, R = n?.forceProduceDts ?? !1;
49
- if (h && (g || 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 ?? Se,
79
- typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? Se,
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 ?? (v ? Gt : kt),
95
- alternativeHost: i?.alternativeHost ?? (v ? kt : Gt),
96
- basePath: i?.basePath ?? ei(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 ?? Se,
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 ?? Se
115
- };
116
- }
117
- async function ya(e, t) {
118
- const n = t !== void 0, i = e ?? process.cwd(), a = $e.resolve(i, t ?? "api-extractor.config.ts"), r = await Zt(a);
119
- if (n && !r)
120
- throw Error(`The provided config file at ${a} does not exist.`);
121
- if (!r)
122
- return e === void 0 ? {} : { context: { cwd: e } };
123
- const l = (await import(en(a).href)).config;
124
- return {
125
- ...l,
126
- context: {
127
- ...l.context,
128
- cwd: l.context?.cwd ?? $e.dirname(a)
129
- }
130
- };
131
- }
132
- function va(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: Ne(r?.afterDiagnostic, a?.afterDiagnostic),
154
- typeScriptInstanceCreated: Ne(
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: Ne(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: Ne(t.afterApiJsonCreate, e.afterApiJsonCreate)
189
- };
190
- }
191
- function Ne(e, t) {
192
- const n = t === Se ? void 0 : t, i = e === Se ? void 0 : e;
193
- return n !== void 0 && i !== void 0 ? ((...a) => (n(...a), i(...a))) : i ?? n;
194
- }
195
- function he(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: we(l)
226
- });
227
- if (a.cssParts !== void 0)
228
- for (const l of a.cssParts)
229
- t.push({
230
- name: "csspart",
231
- text: we(l)
232
- });
233
- if (a.cssStates !== void 0)
234
- for (const l of a.cssStates)
235
- t.push({
236
- name: "cssstate",
237
- text: we(l)
238
- });
239
- if (a.slots !== void 0)
240
- for (const l of a.slots)
241
- t.push({
242
- name: "slot",
243
- text: we(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 we(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 rn(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 += Ft(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 += Ft(p)) : p.length > 0 && (r += ` ${p.replaceAll(" @", " \\@")}`);
276
- }
277
- return r += a ? `
278
- ` : " ", r;
279
- }
280
- const at = 10, sn = 32, ln = 64;
281
- function Ft(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 === at)
288
- t += e.slice(i, a), e.charCodeAt(a + 1) === at ? t += `
289
- *` : t += `
290
- * `, i = a + 1;
291
- else if (r === ln) {
292
- const l = a === 0 ? 0 : e.charCodeAt(a - 1);
293
- (a === 0 || l === sn || l === at) && (t += e.slice(i, a), t += "\\@", i = a + 1);
294
- }
295
- }
296
- return i < n && (t += e.slice(i)), t;
297
- }
298
- function oe(e, t, n) {
299
- return oi(e, t, n) ?? void 0;
300
- }
301
- function je(e, t, n, i) {
302
- const a = oi(e, t, n);
303
- return a === void 0 ? i : a ?? void 0;
304
- }
305
- function oi(e, t, n) {
306
- const i = o.getLeadingCommentRanges(n.file.text, e.pos);
307
- if (i === void 0)
308
- return;
309
- let a;
310
- for (const l of i) {
311
- const s = n.file.text.slice(l.pos, l.end);
312
- s.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
313
- `Found multiple JSDoc comments for the same node. This is not allowed.
314
- If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation
315
- If this is meant to be a function overload, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#function-overloads`,
316
- {
317
- file: n.file,
318
- node: e
319
- }
320
- ), a = s);
321
- }
322
- if (a === void 0)
323
- return;
324
- const r = n.config.documentation.omitInternal;
325
- return cn(a, t, r, n);
326
- }
327
- function cn(e, t, n, i) {
328
- if (t && !e.includes("* @public") && (n || !e.includes("* @internal")))
329
- return null;
330
- const a = e.length - 2;
331
- let r = 3, l = "";
332
- const s = [];
333
- let c, p, d = !1;
334
- for (; r < a; ) {
335
- let m = e.indexOf(`
336
- `, r);
337
- m === -1 && (m = a);
338
- let f = e.slice(r, m).trim();
339
- if (r = m + 1, f === "*" ? f = "" : f.startsWith("*") && (f[1] === " " ? f = f.slice(2) : i.config.strict ? i.emitError(
340
- `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
341
- {
342
- file: i.file,
343
- node: void 0
344
- }
345
- ) : f = f.slice(1)), f.startsWith("@")) {
346
- c !== void 0 && !d && s.push(
347
- U[c] ?? {
348
- name: c,
349
- text: p.trim().replaceAll("\\@", "@") || void 0
350
- }
351
- );
352
- const u = f.indexOf(" "), g = u === -1 ? f.slice(1) : f.slice(1, u);
353
- if (g === "internal") {
354
- if (n)
355
- return null;
356
- t = !1;
357
- } else g === "public" ? (t = !1, d = !0) : d = g === "privateRemarks";
358
- const C = u === -1 ? "" : f.slice(u + 1);
359
- c = g, p = C;
360
- } else c !== void 0 ? p = `${p}
361
- ${f}` : l += `${f}
362
- `;
363
- }
364
- return t ? null : (c !== void 0 && !d && s.push(
365
- U[c] ?? {
366
- name: c,
367
- text: p.trim().replaceAll("\\@", "@") || void 0
368
- }
369
- ), {
370
- description: l.trim().replaceAll("\\@", "@") || void 0,
371
- docsTags: s
372
- });
373
- }
374
- function dn(e, t) {
375
- for (let n = 0; n < t.docsTags.length; ++n) {
376
- const i = t.docsTags[n], { name: a, text: r } = i;
377
- a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
378
- }
379
- e.description = t.description;
380
- }
381
- function ai(e, t) {
382
- for (let n = 0; n < t.docsTags.length; ++n) {
383
- const i = t.docsTags[n], { name: a, text: r } = i;
384
- if (a === "deprecated")
385
- e.deprecated = r || !0;
386
- else if (i === U.private)
387
- e.privacy = "private";
388
- else if (a === "csspart")
389
- e.cssParts ??= [], e.cssParts.push(rt(r));
390
- else if (a === "cssstate")
391
- e.cssStates ??= [], e.cssStates.push(rt(r));
392
- else if (a === "slot")
393
- e.slots ??= [], e.slots.push(rt(r));
394
- else if (a === "esriCompatibilityName") {
395
- const l = me(e);
396
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
397
- } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
398
- }
399
- e.description = t.description;
400
- }
401
- function pn(e, t) {
402
- const n = e, i = [];
403
- for (let a = 0; a < t.docsTags.length; ++a) {
404
- const r = t.docsTags[a], { name: l, text: s } = r;
405
- if (l === "deprecated")
406
- e.deprecated = s || !0;
407
- else if (r === U.private)
408
- e.privacy = "private";
409
- else if (l === "param")
410
- i.push(r);
411
- else if (l === "returns")
412
- n.return.description = r.text;
413
- else if (l === "esriCompatibilityName") {
414
- const c = Et(e);
415
- c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
416
- } else
417
- e.docsTags ??= [], e.docsTags.push(r);
418
- }
419
- return e.description = t.description, i;
420
- }
421
- function mn(e, t) {
422
- for (let n = 0; n < t.docsTags.length; ++n) {
423
- const i = t.docsTags[n], { name: a, text: r } = i;
424
- 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));
425
- }
426
- e.description = t.description;
427
- }
428
- function un(e, t) {
429
- for (let n = 0; n < t.docsTags.length; ++n) {
430
- const i = t.docsTags[n], { name: a, text: r } = i;
431
- if (a === "deprecated")
432
- e.deprecated = r || !0;
433
- else if (a === "default")
434
- e.default = r;
435
- else if (a !== "readonly") if (a === "esriCompatibilityName") {
436
- const l = ti(e);
437
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
438
- } else
439
- e.docsTags ??= [], e.docsTags.push(i);
440
- }
441
- e.description = t.description;
442
- }
443
- function fn(e, t) {
444
- for (let n = 0; n < t.docsTags.length; ++n) {
445
- const i = t.docsTags[n], { name: a, text: r } = i;
446
- a === "deprecated" ? e.deprecated = r || !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
447
- }
448
- e.description = t.description;
449
- }
450
- function rt(e) {
451
- if (e === void 0)
452
- return {
453
- name: "",
454
- deprecated: void 0,
455
- summary: void 0,
456
- description: void 0,
457
- syntax: void 0,
458
- default: void 0
459
- };
460
- const t = e.indexOf(" - ");
461
- if (t === -1)
462
- return e.startsWith("- ") ? {
463
- name: "",
464
- deprecated: void 0,
465
- summary: void 0,
466
- description: e.slice(2),
467
- syntax: void 0,
468
- default: void 0
469
- } : {
470
- name: e,
471
- deprecated: void 0,
472
- summary: void 0,
473
- description: void 0,
474
- syntax: void 0,
475
- default: void 0
476
- };
477
- let n, i = e.slice(0, t);
478
- if (i.startsWith("[") && i.endsWith("]")) {
479
- const r = i.slice(1, -1), l = r.indexOf("=");
480
- i = r.slice(0, l), n = r.slice(l + 1);
481
- }
482
- const a = e.slice(t + 3);
483
- return {
484
- name: i,
485
- deprecated: void 0,
486
- summary: void 0,
487
- description: a,
488
- syntax: void 0,
489
- default: n
490
- };
491
- }
492
- const U = {
493
- // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
494
- // eslint-disable-next-line @typescript-eslint/naming-convention
495
- __proto__: null,
496
- internal: { name: "internal", text: void 0 },
497
- private: { name: "private", text: void 0 },
498
- copyDoc: { name: "copyDoc", text: void 0 },
499
- beta: { name: "beta", text: void 0 },
500
- experimental: { name: "experimental", text: void 0 },
501
- readonly: { name: "readonly", text: void 0 },
502
- required: { name: "required", text: void 0 }
503
- }, Le = {
504
- description: void 0,
505
- docsTags: []
506
- }, Pe = {
507
- description: void 0,
508
- docsTags: [U.private]
509
- };
510
- function yn(e, t, n) {
511
- switch (t.path) {
512
- case "layers/FeatureLayer": {
513
- const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
514
- if (a === -1)
515
- return n.emitError(
516
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
517
- { file: ne(t).file, node: void 0 }
518
- ), e;
519
- const r = 'get type(): "feature";', l = e.indexOf(r);
520
- if (l === -1)
521
- return n.emitError(
522
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
523
- { file: ne(t).file, node: void 0 }
524
- ), e;
525
- const s = l + r.length, c = e.lastIndexOf("/**", l);
526
- if (c === -1)
527
- return n.emitError(
528
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
529
- { file: ne(t).file, node: void 0 }
530
- ), e;
531
- const p = `export default class FeatureLayer extends __FeatureLayerSansType {
532
- ${e.slice(c, s)}
533
- }
534
- export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
535
- return e.slice(0, a) + p + e.slice(a + i.length, c) + e.slice(s);
536
- }
537
- case "layers/OrientedImageryLayer": {
538
- const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
539
- `, a = `extends FeatureLayer {
540
- `, r = e.indexOf(a);
541
- return r === -1 ? (n.emitError(
542
- `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
543
- { file: ne(t).file, node: void 0 }
544
- ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
545
- ` + e.slice(r + a.length);
546
- }
547
- case "widgets/support/widget":
548
- return e + `
549
-
550
- export namespace tsx {
551
- namespace JSX {
552
- interface IntrinsicElements {
553
- [elementName: string]: any;
554
- }
555
-
556
- interface Element {
557
- }
558
- }
559
- }`;
560
- default:
561
- return e;
562
- }
563
- }
564
- function ga(e, t) {
565
- let n = `/// <reference types="../index.d.ts" />
566
- `, i = `
567
-
568
- `, a = "", r = "", l = "", s = "", c = "", p = "", d = "", m = "", f = "", u = "", g = "", C = "";
569
- for (let S = 0; S < e.length; ++S) {
570
- const D = e[S];
571
- for (let A = 0; A < D.declarations.length; ++A) {
572
- const V = D.declarations[A];
573
- if (V.customElement !== !0)
574
- continue;
575
- const W = V;
576
- if (W.privacy !== void 0 || me(W).hasExplicitAbstract === !0)
577
- continue;
578
- const { name: G, tagName: O, pascalCaseName: F, events: B } = W;
579
- i += `import type { ${G} } from "./${D.path}/customElement.js";
580
- `, n += `import type { ${G} } from "../${D.path}/customElement.js";
581
- `;
582
- const [ue, Ge] = vn(W.name, W.members);
583
- let te = "", q = "";
584
- if (B !== void 0) {
585
- for (let pe = 0; pe < B.length; ++pe) {
586
- const Fe = B[pe], Dt = `EventHandler<${G}["${Fe.name}"]>`;
587
- te += ` ${Rt(`on${Fe.name}`)}?: ${Dt};
588
- `, q += ` ${Rt(`on${Fe.name[0].toUpperCase()}${Fe.name.slice(1)}`)}?: ${Dt};
589
- `;
590
- }
591
- a += `export interface ${F}CustomEvent<T> extends CustomEvent<T> {
592
- detail: T;
593
- target: ${G};
594
- currentTarget: ${G};
595
- }
596
- `, r += ` type HTML${F}ElementEventMap = ${G}["@eventTypes"];
597
- `;
598
- }
599
- r += ` type HTML${F}Element = ${G};
600
-
601
- `, l += ` "${O}": ${G};
602
- `, s += `interface Lumina${F} extends ${ue}h.JSX.HTMLAttributes<${G}> {
603
- ${te}}
604
-
605
- `, c += ` "${O}": Lumina${F};
606
- `, p += `interface Preact${F} extends ${ue}HTMLAttributes<${G}> {
607
- ${te}}
608
-
609
- `, d += ` "${O}": Preact${F};
610
- `, m += `interface React${F} extends ${ue}HTMLProps<${G}> {
611
- ${te}}
612
-
613
- `, f += ` "${O}": React${F};
614
- `, u += `interface Stencil${F} extends ${ue}StencilJsx.HTMLAttributes<${G}> {
615
- ${q}}
616
-
617
- `, g += ` "${O}": Stencil${F};
618
- `, Ge !== "" && (C += Ge);
619
- }
620
- }
621
- if (r === "") {
622
- t.vanillaComponentTypes = "";
623
- return;
624
- }
625
- const v = "@arcgis/lumina";
626
- t.vanillaComponentTypes = `${i}
627
- export { ToEvents, TargetedEvent } from "${v}";
628
-
629
- ${a}
630
-
631
- declare global {
632
- interface HTMLElementTagNameMap {
633
- ${l}
634
- }
635
-
636
- ${r}
637
- }`;
638
- const P = `import "./index.js";
639
- export declare const defineCustomElements: import("${v}").DefineCustomElements;`, h = `${t.config.context.dtsEmitPath}loader.d.ts`;
640
- t.dtsFiles.set(h, P);
641
- const R = `${n}import type { h, EventHandler } from "${v}";
642
-
643
- ${C}${s}declare module "@arcgis/lumina" {
644
- export namespace h.JSX {
645
- interface IntrinsicElements {
646
- ${c} }
647
- }
648
- }`, I = ` interface IntrinsicElements {
649
- ${d} }`, y = `${n}import { HTMLAttributes } from "preact";
650
- import type { EventHandler } from "${v}";
651
-
652
- ${C}${p}declare module 'preact' {
653
- namespace createElement.JSX {
654
- ${I}
655
- }
656
- namespace h.JSX {
657
- ${I}
658
- }
659
- }`, k = `
660
- namespace JSX {
661
- interface IntrinsicElements {
662
- ${f} }
663
- }
664
- `, M = `${n}import type { HTMLProps } from 'react';
665
- import type { EventHandler } from "${v}";
666
-
667
- ${C}${m}declare module "react" {${k}}
668
- declare module "react/jsx-runtime" {${k}}
669
- declare module "react/jsx-dev-runtime" {${k}}`, L = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
670
- import type { EventHandler } from "${v}";
671
-
672
- ${C}${u}interface ExposedElements {
673
- ${g}}
674
-
675
- export namespace JSX {
676
- export interface IntrinsicElements extends ExposedElements {}
677
- }
678
-
679
- declare module "@stencil/core/internal/stencil-public-runtime" {
680
- export namespace h.JSX {
681
- interface IntrinsicElements extends ExposedElements {}
682
- }
683
- }`, x = `/** @deprecated import from stencil.d.ts instead */
684
- export * from "./stencil.js";`, T = `${t.config.context.dtsEmitPath}types/`, _ = `${T}lumina.d.ts`, N = `${T}preact.d.ts`, J = `${T}react.d.ts`, K = `${T}stencil.d.ts`, E = `${T}components.d.ts`;
685
- t.dtsFiles.set(_, R), t.dtsFiles.set(N, y), t.dtsFiles.set(J, M), t.dtsFiles.set(K, L), t.dtsFiles.set(E, x);
686
- }
687
- function vn(e, t) {
688
- const n = [], i = [];
689
- let a = !1;
690
- if (t !== void 0)
691
- for (let s = 0; s < t.length; ++s) {
692
- const c = t[s];
693
- if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
694
- continue;
695
- if (c.getterType !== void 0) {
696
- a = !0;
697
- continue;
698
- }
699
- c.docsTags?.includes(U.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
700
- }
701
- let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
702
- i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
703
- const l = a ? `type ${e}SetterTypes = ${e}["${ri}"];
704
- ` : "";
705
- return [r.length === 0 ? "" : `${r}, `, l];
706
- }
707
- function Sa(e, t) {
708
- const n = t.moduleMap.get("index");
709
- if (n === void 0)
710
- e.unshift(gn);
711
- else {
712
- const i = ne(n);
713
- i.index.named.getAssetPath === void 0 && n.declarations.push(si), i.index.named.setAssetPath === void 0 && n.declarations.push(li);
714
- }
715
- }
716
- const ri = "@setterTypes", si = {
717
- [j]: tt(),
718
- kind: "function",
719
- name: "getAssetPath",
720
- static: void 0,
721
- deprecated: void 0,
722
- summary: void 0,
723
- description: "Get a resolved path from where an asset can be loaded.",
724
- docsTags: void 0,
725
- typeParameters: void 0,
726
- parameters: [
727
- {
728
- name: "suffix",
729
- deprecated: void 0,
730
- summary: void 0,
731
- description: "The relative path for the asset.",
732
- docsTags: void 0,
733
- optional: void 0,
734
- rest: void 0,
735
- type: {
736
- text: "string",
737
- references: void 0,
738
- values: void 0,
739
- source: void 0
740
- },
741
- default: void 0
742
- }
743
- ],
744
- return: {
745
- summary: void 0,
746
- description: void 0,
747
- type: {
748
- text: "string",
749
- references: void 0,
750
- values: void 0,
751
- source: void 0
752
- }
753
- },
754
- inheritedFrom: void 0,
755
- signature: void 0,
756
- privacy: void 0,
757
- source: void 0
758
- }, li = {
759
- [j]: tt(),
760
- kind: "function",
761
- name: "setAssetPath",
762
- static: void 0,
763
- deprecated: void 0,
764
- summary: void 0,
765
- description: `Used to manually set the base path where package assets (like localization
766
- and icons) can be found.
767
-
768
- By default, the package assets are loaded from
769
- \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
770
- our assets on a CDN (Content Delivery Network) to ensure fast and reliable
771
- access. It is CORS-enabled, so you can load the assets from any domain. This
772
- is the recommended way to load the assets and avoid bundling them with your
773
- application.
774
-
775
- However, if you need to host the assets locally, you can copy them manually
776
- as part of your build process and use \`setAssetPath\` to customize where the
777
- browser will load the assets from.`,
778
- docsTags: void 0,
779
- typeParameters: void 0,
780
- parameters: [
781
- {
782
- name: "path",
783
- deprecated: void 0,
784
- summary: void 0,
785
- description: "Relative or absolute path to the assets folder.",
786
- docsTags: void 0,
787
- optional: void 0,
788
- rest: void 0,
789
- type: {
790
- text: "URL | string",
791
- references: [
792
- {
793
- name: "URL",
794
- module: void 0,
795
- package: ce,
796
- viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
797
- start: 0,
798
- end: 3
799
- }
800
- ],
801
- values: void 0,
802
- source: void 0
803
- },
804
- default: void 0
805
- }
806
- ],
807
- return: {
808
- summary: void 0,
809
- description: void 0,
810
- type: {
811
- text: "void",
812
- references: void 0,
813
- values: void 0,
814
- source: void 0
815
- }
816
- },
817
- inheritedFrom: void 0,
818
- signature: void 0,
819
- privacy: void 0,
820
- source: void 0
821
- }, ci = ii(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
822
- ci.importsText = "";
823
- const gn = {
824
- [j]: ci,
825
- kind: "javascript-module",
826
- path: "index",
827
- sourcePath: "src/index.ts",
828
- deprecated: void 0,
829
- description: void 0,
830
- docsTags: void 0,
831
- summary: void 0,
832
- declarations: [si, li],
833
- exports: void 0
834
- };
835
- function Ta(e, t) {
836
- const n = he(e), i = Ee(n), a = ne(e);
837
- if (a.index.class?.privacy !== void 0)
838
- return e.declarations.length > 1 && t.emitError(
839
- `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(", ")}`,
840
- { file: a.file, node: void 0 }
841
- ), "";
842
- let r = `${i}${a.importsText}`;
843
- if (r !== "" && (r += `
844
- `), a.reExports !== void 0) {
845
- for (let s = 0; s < a.reExports.length; ++s) {
846
- const c = a.reExports[s];
847
- let p = "";
848
- if (c.specifiers[0].exportName === "*") {
849
- const d = c.specifiers[0];
850
- p = (c.isTypeOnly ? "type *" : "*") + (d.aliasName ? ` as ${d.aliasName}` : "");
851
- } else {
852
- for (let d = 0; d < c.specifiers.length; ++d) {
853
- const m = c.specifiers[d];
854
- p += (d === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + m.exportName + (m.aliasName ? ` as ${m.aliasName}` : "");
855
- }
856
- p += " }";
857
- }
858
- r += `export ${p} from "${c.specifier}";
859
- `;
860
- }
861
- r += `
862
- `;
863
- }
864
- if (a.namespaces !== void 0)
865
- for (let s = 0; s < a.namespaces.length; ++s)
866
- r += `${a.namespaces[s]}
867
-
868
- `;
869
- const l = e.declarations;
870
- a.constructorPropertiesInterface !== void 0 && (r += `${Ot(a.constructorPropertiesInterface)}
871
-
872
- `);
873
- for (let s = 0; s < l.length; ++s) {
874
- const c = l[s];
875
- r += Ot(c), s < l.length - 1 && (r += `
876
-
877
- `);
878
- }
879
- return t.isJsApi ? yn(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
880
- ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
881
- }
882
- function Ee(e) {
883
- return e === void 0 ? "" : `/*${rn(e)}*/
884
- `;
885
- }
886
- function Ot(e) {
887
- let t = he(e), n = "";
888
- if (e.kind === "class" || e.kind === "mixin")
889
- n = Nt(e);
890
- else if (e.kind === "interface") {
891
- const a = me(e);
892
- if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
893
- const l = e.members[0];
894
- let s = di(l, !0);
895
- const c = he(l)?.docsTags;
896
- c !== void 0 && (t = {
897
- description: t?.description,
898
- docsTags: [...c, ...t?.docsTags ?? []]
899
- });
900
- const p = s.indexOf("): ");
901
- s = `${s.slice(0, p)}) => ${s.slice(p + 3, -1)}`, n = Lt(e.name, e.typeParameters, void 0, s);
902
- } else if (a.isMixinBaseClass === !0)
903
- n = Nt(e);
904
- else if (a.emitAsTypeAlias === !0) {
905
- let l = e.type?.text;
906
- const s = mt(e);
907
- s !== "" ? l = l === void 0 ? `{${s}}` : `${l} & {${s}}` : l === void 0 && e.supertypes === void 0 && (l = "{}"), n = Lt(e.name, e.typeParameters, e.supertypes, l);
908
- } else {
909
- const l = mt(e);
910
- n = wi(
911
- a.isDefaultExported === !0,
912
- e.name,
913
- e.typeParameters,
914
- e.supertypes,
915
- l
916
- );
917
- }
918
- } else if (e.kind === "function") {
919
- const a = Et(e);
920
- n = Ui(
921
- a.isDefaultExported === !0,
922
- e.name,
923
- e.typeParameters,
924
- e.parameters,
925
- e.return.type.text
926
- );
927
- } else if (e.kind === "variable") {
928
- const a = ti(e);
929
- n += Vi(a.isDefaultExported === !0, e.name, e.type.text);
930
- }
931
- return `${Ee(t)}${n}`;
932
- }
933
- function Nt(e) {
934
- const t = me(e), n = t.isDefaultExported === !0, i = mt(e), a = e, r = e;
935
- let l, s = a.mixins ?? r.supertypes;
936
- s === void 0 ? a.superclass !== void 0 && (l = Oe(a.superclass)) : a.superclass === void 0 && s.length === 1 ? (l = Oe(s[0]), s = void 0) : l = `${e.name}Superclass`;
937
- let c = Wi(
938
- t.hasExplicitAbstract !== void 0,
939
- n,
940
- e.name,
941
- e.typeParameters,
942
- l,
943
- i
944
- );
945
- if (s !== void 0) {
946
- c += `
947
- declare const ${l}:`, a.superclass !== void 0 && (c += ` typeof ${Oe(a.superclass)}`);
948
- for (let p = 0; p < s.length; ++p) {
949
- const d = s[p];
950
- c += ` & typeof ${Oe(d)}`;
951
- }
952
- }
953
- return c;
954
- }
955
- function mt(e) {
956
- const t = e.members;
957
- let n = "";
958
- const i = me(e);
959
- if (e.kind === "mixin" && (n += `constructor(...args: any[]);
960
- `), i.eventTypesProperty !== void 0) {
961
- let l = Tn;
962
- if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
963
- const c = he(i.eventTypesProperty);
964
- l = Ee(c);
965
- }
966
- const s = wt(i.eventTypesProperty);
967
- n += `${l}${s}
968
- `;
969
- }
970
- const a = e, r = e.customElement === !0;
971
- if (t !== void 0) {
972
- let l = "";
973
- for (let s = 0; s < t.length; ++s) {
974
- const c = t[s];
975
- if (c.inheritedFrom !== void 0 || c.privacy === "private")
976
- continue;
977
- const d = he(c);
978
- n += Ee(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${ye(!1, !1, !1, !1, !1, c.docsTags?.includes(U.required) !== !0, c.name, c.type.text)}
979
- `), n += wt(c)) : n += di(c, !1), n += `
980
- `;
981
- }
982
- l !== "" && (n += `${ye(!1, !1, !1, !1, !1, !1, ri, `{
983
- ${l}}`)}
984
- `);
985
- }
986
- if (r && a.events !== void 0) {
987
- let l = e.name;
988
- if (e.typeParameters !== void 0) {
989
- l += "<";
990
- for (let c = 0; c < e.typeParameters.length; ++c)
991
- l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
992
- l += ">";
993
- }
994
- let s = "";
995
- for (let c = 0; c < a.events.length; ++c) {
996
- const p = a.events[c];
997
- if (p.inheritedFrom === void 0) {
998
- const d = he(p);
999
- n += `${Ee(d)}${ye(!1, !1, !1, !0, !1, !1, p.name, `import("${Sn}").TargetedEvent<this, ${p.type.text}>`)}
1000
- `;
1001
- }
1002
- s += ` ${ye(!1, !1, !1, !1, !1, !1, p.name, `${l}["${p.name}"]["detail"]`)}
1003
- `;
1004
- }
1005
- n += `${ye(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
1006
- ${s}}`)}
1007
- `;
1008
- }
1009
- return n === "" ? "" : `
1010
- ${n.replaceAll(`
1011
- `, `
1012
- `).slice(0, -2)}`;
1013
- }
1014
- const Sn = "@arcgis/lumina";
1015
- function wt(e) {
1016
- let t = "";
1017
- const n = Fi(e), i = n.isAccessor === !0, a = e.readonly === !0;
1018
- if (e.getterType !== void 0 || i && a)
1019
- t += Bi(
1020
- e.privacy !== void 0,
1021
- n.isAbstract === !0,
1022
- e.static === !0,
1023
- e.name,
1024
- e.getterType?.text ?? e.type.text,
1025
- a ? void 0 : e.type.text
1026
- );
1027
- else {
1028
- const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1029
- t += ye(
1030
- e.privacy !== void 0,
1031
- n.isAbstract === !0,
1032
- e.static === !0,
1033
- a,
1034
- i,
1035
- l,
1036
- e.name,
1037
- s
1038
- );
1039
- }
1040
- return t;
1041
- }
1042
- function di(e, t) {
1043
- const n = Et(e);
1044
- return _i(
1045
- e.privacy !== void 0,
1046
- n.isAbstract === !0,
1047
- e.static === !0,
1048
- n.hasQuestionToken === !0,
1049
- e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1050
- e.typeParameters,
1051
- e.parameters,
1052
- e.return?.type.text
1053
- );
1054
- }
1055
- const Tn = Ee({
1056
- description: void 0,
1057
- docsTags: [
1058
- {
1059
- name: "deprecated",
1060
- text: `Do not directly reference this property.
1061
- Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1062
- }
1063
- ]
1064
- });
1065
- function ha() {
1066
- const e = Date.now();
1067
- return () => (Date.now() - e) / hn;
1068
- }
1069
- const hn = 1e3;
1070
- function En(e) {
1071
- const t = e.indexOf("/");
1072
- return t === -1 ? e : e.slice(0, t);
1073
- }
1074
- function Ut(e, t, n) {
1075
- if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1076
- return;
1077
- const i = e.match(Cn)?.[1];
1078
- if (i === void 0) {
1079
- n.emitError(
1080
- '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',
1081
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1082
- );
1083
- return;
1084
- }
1085
- const a = [];
1086
- for (const l of e.matchAll(Pn)) {
1087
- const s = l[1], c = Dn(s), p = e.indexOf("{", l.index), d = e.indexOf("}", p), m = e.slice(0, l.index).trimEnd();
1088
- let f = "";
1089
- if (m.endsWith("*/")) {
1090
- const C = m.lastIndexOf("/**");
1091
- f = m.slice(C + 3, -2).trim().replaceAll(Mn, "");
1092
- }
1093
- const u = e.slice(p, d).match(bn)?.[1] || c, g = xn(c);
1094
- a.push({
1095
- description: `${u}${f ? `
1096
- ${f}` : ""}`,
1097
- url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${g}&singleStory=true`,
1098
- source: void 0
1099
- });
1100
- }
1101
- if (a.length === 0) {
1102
- n.emitError(
1103
- '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',
1104
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1105
- );
1106
- return;
1107
- }
1108
- const r = n.componentStories[i];
1109
- r === void 0 ? n.componentStories[i] = a : r.push(...a);
1110
- }
1111
- const Cn = /component: ["']([^"']+)["']/u, Pn = /export const (\w+)/gu, bn = /name: ["']([^"']+)["']/u, Mn = /^\s*\*\s?/gmu, xn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), Dn = (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();
1112
- function ut(e, t) {
1113
- let i = t.startsWith("./") ? t.slice(2) : t, a = e;
1114
- for (; ; ) {
1115
- const r = a.lastIndexOf("/");
1116
- if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
1117
- i = i.slice(3);
1118
- else
1119
- return a === "" ? i : `${a}/${i}`;
1120
- }
1121
- }
1122
- function ve(e, t) {
1123
- let n = 0;
1124
- for (; ; ) {
1125
- const a = e.indexOf("/", n) + 1;
1126
- if (a === 0)
1127
- break;
1128
- const r = e.slice(n, a), l = t.slice(n, a);
1129
- if (r !== l)
1130
- break;
1131
- n = a;
1132
- }
1133
- let i = "";
1134
- for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
1135
- i += "../";
1136
- return i.length === 0 && (i = "./"), `${i}${t.slice(n)}`;
1137
- }
1138
- function Vt(e, t, n = 0) {
1139
- for (; n < e.length; ++n) {
1140
- const i = e[n];
1141
- i.start += t, i.end += t;
1142
- }
1143
- return e;
1144
- }
1145
- function Wt(e, t) {
1146
- if (e === t)
1147
- return !0;
1148
- if (typeof e != "object" || typeof t != "object" || e === null || t === null)
1149
- return !1;
1150
- if (Array.isArray(e)) {
1151
- if (!Array.isArray(t) || e.length !== t.length)
1152
- return !1;
1153
- for (let a = 0; a < e.length; ++a)
1154
- if (!Wt(e[a], t[a]))
1155
- return !1;
1156
- return !0;
1157
- }
1158
- const n = Object.keys(e), i = Object.keys(t);
1159
- if (n.length !== i.length)
1160
- return !1;
1161
- for (let a = 0; a < n.length; ++a) {
1162
- const r = n[a];
1163
- if (!Wt(e[r], t[r]))
1164
- return !1;
1165
- }
1166
- return !0;
1167
- }
1168
- function Rn(e, t) {
1169
- if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1170
- return;
1171
- const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1172
- if (!(n.startsWith(".") && i.test(n)))
1173
- return;
1174
- const r = n.split("?", 1)[0], l = tn.join(t.file.fileName, "..", r), s = Ji(l, "utf-8"), c = Ln(s);
1175
- c !== void 0 && (t.componentCssFileDocs = c);
1176
- }
1177
- function Ln(e) {
1178
- const t = [];
1179
- for (const n of e.matchAll(In)) {
1180
- const i = n.groups.name, a = n.groups.description.replaceAll(An, " ").trim();
1181
- t.push({
1182
- name: i,
1183
- deprecated: void 0,
1184
- summary: void 0,
1185
- description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1186
- syntax: void 0,
1187
- default: void 0
1188
- });
1189
- }
1190
- return t.length === 0 ? void 0 : t;
1191
- }
1192
- const In = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, An = /\n\s+\*? ?/gu;
1193
- function pi(e, t) {
1194
- if (e === void 0)
1195
- return !1;
1196
- for (let n = 0; n < e.length; ++n)
1197
- if (e[n].kind === t)
1198
- return !0;
1199
- return !1;
1200
- }
1201
- function it(e) {
1202
- if (e.modifiers === void 0)
1203
- return 0;
1204
- for (let t = 0; t < e.modifiers.length; ++t)
1205
- if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1206
- return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1207
- return 0;
1208
- }
1209
- function mi(e, t) {
1210
- return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1211
- }
1212
- const kn = /* @__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":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/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://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise"],"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"]}'), Gn = {
1213
- globals: kn
1214
- }, ft = Object.freeze(
1215
- Object.assign(/* @__PURE__ */ Object.create(null), Gn.globals)
1216
- ), yt = "https://developer.mozilla.org/docs/Web/API/";
1217
- function ui(e, t, n = "*", i) {
1218
- if (e === "@arcgis/core")
1219
- return Fn(t, n, i);
1220
- }
1221
- function Fn(e, t, n) {
1222
- if (!(e === void 0 || e === "interfaces.d.ts")) {
1223
- const i = `https://${n.config.documentation.host}${On}${Z(e)}/`;
1224
- return Gi(i, t === "default" || t === "*" ? void 0 : t, void 0);
1225
- }
1226
- }
1227
- const On = ei("core");
1228
- function Je(e, t, n, i) {
1229
- i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1230
- const a = i.implicitPublicModules[e];
1231
- a === void 0 ? i.implicitPublicModules[e] = {
1232
- actualModulePath: void 0,
1233
- // moduleResolution:Node16 may use .js extension to refer to non-JS files
1234
- sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1235
- pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1236
- extractedNames: /* @__PURE__ */ new Set()
1237
- } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1238
- }
1239
- function Nn(e, t) {
1240
- const n = it(e);
1241
- if (t.pendingNames === void 0)
1242
- return n > 0;
1243
- if (n === 2 && t.pendingNames.has("default"))
1244
- return !0;
1245
- const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1246
- return t.pendingNames.has(a);
1247
- }
1248
- function qe(e, t, n, i, a) {
1249
- const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Bn(l), c = t.escapedText, p = s ?? c, d = l?.declarations?.[0];
1250
- if (d === void 0)
1251
- return n.emitError(`Unable to resolve the declaration file name for the type ${p}`, {
1252
- file: n.file,
1253
- node: void 0
1254
- }), {
1255
- name: p,
1256
- module: void 0,
1257
- package: ce,
1258
- viewUrl: void 0,
1259
- start: i,
1260
- end: a
1261
- };
1262
- const m = d.getSourceFile(), { packageName: f, modulePath: u } = Un(m.fileName, n, p);
1263
- if (f === "@arcgis/core" && u === "interfaces.js")
1264
- return n.moduleContext.importsMap.__esri = {
1265
- type: "*",
1266
- modulePath: void 0,
1267
- specifier: `${f}/${u}`,
1268
- replacementName: void 0,
1269
- actualName: void 0,
1270
- wasUsed: !0
1271
- }, {
1272
- name: "__esri",
1273
- module: u,
1274
- package: f,
1275
- viewUrl: void 0,
1276
- start: i,
1277
- end: a
1278
- };
1279
- if (f === "typescript" && u?.startsWith("lib/") === !0) {
1280
- let v = ft[p], P, h = p;
1281
- if (v === void 0) {
1282
- for (let R = d.parent; R !== void 0; R = R.parent)
1283
- if (o.isModuleDeclaration(R) && o.isIdentifier(R.name)) {
1284
- P = R.name.escapedText, v = ft[P]?.[1]?.[p], h = `${P}.${p}`, Me(t, h);
1285
- break;
1286
- }
1287
- }
1288
- return {
1289
- name: h,
1290
- module: void 0,
1291
- package: ce,
1292
- viewUrl: v?.[0]?.startsWith("https") === !1 ? `${yt}${v[0]}` : v?.[0] ?? void 0,
1293
- start: i,
1294
- end: i + h.length
1295
- };
1296
- }
1297
- let g = p;
1298
- 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") {
1299
- if (s.endsWith("Element")) {
1300
- const v = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1301
- if (v !== void 0 && o.isIdentifier(v)) {
1302
- const P = r.getSymbolAtLocation(v);
1303
- if (P !== void 0) {
1304
- const h = r.getAliasedSymbol(P);
1305
- return qe(
1306
- h,
1307
- t,
1308
- n,
1309
- i,
1310
- i + h.escapedName.length
1311
- );
1312
- }
1313
- }
1314
- } else if (
1315
- // Only supporting the syntax after
1316
- // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1317
- // As this interface is not likely to be used directly.
1318
- 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"
1319
- ) {
1320
- const v = r.getSymbolAtLocation(d.type.objectType.typeName);
1321
- if (v !== void 0) {
1322
- const P = r.getAliasedSymbol(v), h = qe(
1323
- P,
1324
- t,
1325
- n,
1326
- i,
1327
- i + P.escapedName.length
1328
- );
1329
- return Me(t, c), Me(t, `${h.name}["@eventTypes"]`), h;
1330
- }
1331
- }
1332
- }
1333
- if (f !== void 0 || u !== void 0) {
1334
- const v = s ?? ((u ?? f).split("/").pop()?.replaceAll(wn, "") || "type");
1335
- for (let P = 1; ; P += 1) {
1336
- const h = P === 1 ? v : `${v}${P}`;
1337
- let R = n.functionLikeTypeParameters?.has(h) === !0 || n.objectLikeTypeParameters?.has(h) === !0 || n.localDeclarations.has(h);
1338
- if (R)
1339
- continue;
1340
- const I = n.moduleContext.importsMap[h], y = I !== void 0 && (f === void 0 ? I.modulePath === u : I.specifier === f + (u === void 0 ? "" : `/${u}`));
1341
- if (y ? I.wasUsed = !0 : R = n.moduleContext.importsMap[h] !== void 0, R)
1342
- continue;
1343
- const k = h !== c;
1344
- k && (Me(t, h), a = i + h.length);
1345
- const M = Kn(l), L = M === "named";
1346
- L || (g = M), f === void 0 && !n.config.strict && Je(
1347
- u,
1348
- m.fileName.slice(n.basePath.length),
1349
- g,
1350
- n
1351
- ), y || (n.moduleContext.importsMap[h] = {
1352
- type: M,
1353
- modulePath: f === void 0 ? u : void 0,
1354
- specifier: f === void 0 ? ve(ne(n.apiModule).dtsPath, u) : f + (u === void 0 ? "" : `/${u}`),
1355
- replacementName: void 0,
1356
- actualName: L && k ? s : void 0,
1357
- wasUsed: !0
1358
- });
1359
- break;
1360
- }
1361
- } else if (n.localPrivateDeclarations?.has(c) === !0)
1362
- n.localPrivateDeclarations.set(
1363
- c,
1364
- Math.abs(n.localPrivateDeclarations.get(c))
1365
- );
1366
- else {
1367
- if (d.kind === o.SyntaxKind.TypeParameter)
1368
- return {
1369
- name: c,
1370
- module: void 0,
1371
- package: void 0,
1372
- viewUrl: void 0,
1373
- start: i,
1374
- end: a
1375
- };
1376
- n.localDeclarations.has(c) || n.emitError(
1377
- `@public declaration referenced non-public ${ie("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.`,
1378
- {
1379
- file: n.file,
1380
- node: void 0
1381
- }
1382
- );
1383
- }
1384
- const C = g === "default" || g === "*" ? void 0 : s;
1385
- return f ? {
1386
- name: g,
1387
- module: u || void 0,
1388
- package: f,
1389
- viewUrl: ui(f, u ?? "", C, n),
1390
- start: i,
1391
- end: a
1392
- } : {
1393
- name: g,
1394
- module: u,
1395
- package: void 0,
1396
- viewUrl: Ve(u ?? n.apiModule.path, C, void 0, n),
1397
- start: i,
1398
- end: a
1399
- };
1400
- }
1401
- const wn = /[^a-zA-Z0-9$_]/gu;
1402
- function Un(e, t, n) {
1403
- const i = e.lastIndexOf(st);
1404
- if (i !== -1) {
1405
- const s = e.slice(i + st.length), c = fi(s), p = e.slice(
1406
- 0,
1407
- i + st.length + c.packageName.length
1408
- ), d = dt(p);
1409
- return _t(c), c.modulePath = Bt(c.modulePath, d, t, n), c;
1410
- }
1411
- const r = e.indexOf(Vn);
1412
- if (r !== -1) {
1413
- const s = e.slice(0, r), c = dt(s), p = c.name, d = e.slice(r + 1), m = Bt(d, c, t, n), f = { packageName: p, modulePath: m };
1414
- return _t(f), f;
1415
- }
1416
- if (e.startsWith(t.basePath)) {
1417
- const s = e.slice(t.basePath.length), c = We(Z(s), t);
1418
- return c === t.apiModule.path ? {
1419
- packageName: void 0,
1420
- modulePath: void 0
1421
- } : {
1422
- packageName: void 0,
1423
- modulePath: c
1424
- };
1425
- } else
1426
- return t.emitError(
1427
- `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)`,
1428
- {
1429
- file: t.file,
1430
- node: void 0
1431
- }
1432
- ), {
1433
- packageName: ce,
1434
- modulePath: void 0
1435
- };
1436
- }
1437
- const st = "/node_modules/", Vn = "/dist/";
1438
- function fi(e) {
1439
- const t = pt(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1440
- return { packageName: t, modulePath: n };
1441
- }
1442
- function _t(e) {
1443
- e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1444
- }
1445
- function Bt(e, t, n, i) {
1446
- const a = Z(e);
1447
- if (t.exports === void 0)
1448
- return `${a}.js`;
1449
- const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1450
- let s = vt(t.exports, ".", l);
1451
- if (s === void 0 && (s = Wn[t.name]?.(a)), s !== void 0)
1452
- return s === "." ? void 0 : s.slice(2);
1453
- const c = n.moduleContext.importsMap[i];
1454
- if (c !== void 0 && c.modulePath === void 0) {
1455
- const p = fi(c.specifier);
1456
- if (p.packageName === t.name)
1457
- return p.modulePath;
1458
- }
1459
- return n.emitError(
1460
- `Need explicit type annotation for where the ${ie("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.`,
1461
- { file: n.file, node: void 0 }
1462
- ), e;
1463
- }
1464
- const Wn = {
1465
- // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1466
- "@arcgis/lumina"(e) {
1467
- 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;
1468
- }
1469
- };
1470
- function vt(e, t, n) {
1471
- if (typeof e == "string")
1472
- return _n(t, e, n);
1473
- if (Array.isArray(e))
1474
- for (let i = 0; i < e.length; ++i) {
1475
- const a = vt(e[i], t, n);
1476
- if (a !== void 0)
1477
- return a;
1478
- }
1479
- if (typeof e == "object" && e !== null)
1480
- for (const [i, a] of Object.entries(e)) {
1481
- const l = i.startsWith(".") ? i : t, s = vt(a, l, n);
1482
- if (s !== void 0)
1483
- return s;
1484
- }
1485
- }
1486
- function _n(e, t, n) {
1487
- const i = Z(t);
1488
- if (i === n)
1489
- return e;
1490
- const a = i.indexOf("*");
1491
- if (a === -1)
1492
- return;
1493
- const r = i.slice(0, a);
1494
- if (!n.startsWith(r))
1495
- return;
1496
- const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1497
- if (l === "") {
1498
- const m = Z(e), f = e.slice(m.length), u = m === e && c === "" ? ".js" : f;
1499
- return m.slice(0, -1) + s + u;
1500
- }
1501
- if (!s.endsWith(l))
1502
- return;
1503
- const p = s.slice(0, -l.length), d = e.indexOf("*");
1504
- if (d !== -1)
1505
- return e.slice(0, d) + p + e.slice(d + 1);
1506
- }
1507
- function Bn(e) {
1508
- const t = e.getDeclarations()?.[0];
1509
- 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)))
1510
- return t.name.escapedText;
1511
- const n = e.escapedName;
1512
- return n === "default" || n.startsWith("__") ? void 0 : n;
1513
- }
1514
- function Kn(e) {
1515
- return e.flags & o.SymbolFlags.ValueModule ? "*" : Hn(e) ? "default" : "named";
1516
- }
1517
- function Hn(e) {
1518
- const t = e.escapedName;
1519
- if (t === "default" || // CommonJS "export ="
1520
- t === "export=")
1521
- return !0;
1522
- const n = e.getDeclarations();
1523
- if (n !== void 0)
1524
- for (let i = 0; i < n.length; ++i) {
1525
- const a = n[i];
1526
- if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1527
- return !0;
1528
- }
1529
- return !1;
1530
- }
1531
- function Ct(e, t, n, i) {
1532
- const a = { file: n, node: e };
1533
- return e.getText(n).includes("* @public") && i.emitError(
1534
- "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/references/api-extractor/advanced-patterns#describing-nested-object-types and https://webgis.esri.com/references/api-extractor/api-node-kinds#variables",
1535
- a
1536
- ), H(e, t, a, i);
1537
- }
1538
- const w = {
1539
- false: 0,
1540
- /**
1541
- * True for literal types. False for object types
1542
- */
1543
- shallow: 2,
1544
- true: 1
1545
- };
1546
- function H(e, t, n, i) {
1547
- if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1548
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1549
- if (e.kind === o.SyntaxKind.NullKeyword)
1550
- return o.factory.createLiteralTypeNode(e);
1551
- if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1552
- return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1553
- if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1554
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1555
- if (o.isTemplateExpression(e))
1556
- return Te(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1557
- if (o.isNumericLiteral(e))
1558
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1559
- if (o.isBigIntLiteral(e))
1560
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1561
- if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1562
- return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? H(e.expression, w.true, n, i) : e.type;
1563
- if (o.isSatisfiesExpression(e))
1564
- return t === w.false ? e.type : H(e.expression, t, n, i);
1565
- if (o.isRegularExpressionLiteral(e))
1566
- return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1567
- if (o.isArrayLiteralExpression(e)) {
1568
- if (i.isInLuminaMinimalExtraction)
1569
- return Ue;
1570
- const a = t === w.shallow ? w.false : t, r = new Array(e.elements.length);
1571
- for (let l = 0; l < r.length; ++l) {
1572
- const s = e.elements[l];
1573
- r[l] = H(s, a, { ...n, node: s }, i);
1574
- }
1575
- return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1576
- r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1577
- );
1578
- }
1579
- if (o.isObjectLiteralExpression(e)) {
1580
- if (i.isInLuminaMinimalExtraction)
1581
- return Ue;
1582
- const a = t === w.shallow ? w.false : t, r = new Array(e.properties.length);
1583
- for (let l = 0; l < r.length; ++l) {
1584
- const s = e.properties[l];
1585
- r[l] = $n(s, a, { ...n, node: s }, i);
1586
- }
1587
- return o.factory.createTypeLiteralNode(r);
1588
- }
1589
- if (o.isPrefixUnaryExpression(e)) {
1590
- if (e.operator !== o.SyntaxKind.MinusToken)
1591
- return be(n, Q, t, i);
1592
- if (t === w.false)
1593
- return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1594
- {
1595
- const a = H(e.operand, t, n, i);
1596
- return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1597
- o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1598
- ) : be(n, Q, t, i);
1599
- }
1600
- }
1601
- if (o.isParenthesizedExpression(e))
1602
- return H(e.expression, t, n, i);
1603
- if (o.isNewExpression(e)) {
1604
- if (i.isInLuminaMinimalExtraction)
1605
- return Ue;
1606
- if (o.isIdentifier(e.expression)) {
1607
- const r = e.expression.escapedText;
1608
- let l = e.typeArguments, s = !1;
1609
- if ((r === "Set" || r === "WeakSet") && l === void 0)
1610
- if (e.arguments?.[0] !== void 0) {
1611
- const c = H(
1612
- e.arguments[0],
1613
- t,
1614
- { ...n, node: e.arguments[0] },
1615
- i
1616
- );
1617
- c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1618
- } else
1619
- s = !0;
1620
- else
1621
- s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1622
- if (!s)
1623
- return o.factory.createTypeReferenceNode(e.expression, l);
1624
- }
1625
- const a = H(e.expression, t, n, i);
1626
- if (o.isTypeReferenceNode(a))
1627
- return a;
1628
- }
1629
- if (o.isConditionalExpression(e))
1630
- return o.factory.createUnionTypeNode([
1631
- H(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1632
- H(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1633
- ]);
1634
- if (o.isIdentifier(e))
1635
- return Te(n, t, i) ?? o.factory.createTypeQueryNode(e);
1636
- if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1637
- const a = Te(n, t, i);
1638
- if (a !== void 0)
1639
- return a;
1640
- const r = H(e.expression, t, n, i);
1641
- return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === gt ? gt : be(n, Q, t, i);
1642
- }
1643
- if (o.isCallExpression(e)) {
1644
- const a = e.expression, r = e.arguments.at(0);
1645
- 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))
1646
- return o.factory.createTypeReferenceNode(a.expression, [
1647
- o.factory.createTypeReferenceNode(r)
1648
- ]);
1649
- const l = Te(n, t, i);
1650
- if (l !== void 0)
1651
- return l;
1652
- const s = H(a, t, n, i);
1653
- return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1654
- o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1655
- ]) : be(n, Q, t, i);
1656
- }
1657
- if (o.isArrowFunction(e)) {
1658
- if (i.isInLuminaMinimalExtraction)
1659
- return Ue;
1660
- const a = t === w.shallow ? w.false : t;
1661
- return o.factory.createFunctionTypeNode(
1662
- e.typeParameters,
1663
- St(e.parameters, a, n, i),
1664
- e.type ?? (o.isBlock(e.body) ? Qe(e, i) ?? X(n, Q, i) : H(e.body, a, n, i))
1665
- );
1666
- }
1667
- return be(n, Q, t, i);
1668
- }
1669
- function $n(e, t, n, i) {
1670
- const a = t === w.false ? void 0 : Xn;
1671
- return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1672
- a,
1673
- e.name,
1674
- void 0,
1675
- H(e.initializer, t, { ...n, node: e.initializer }, i)
1676
- ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1677
- a,
1678
- e.name,
1679
- void 0,
1680
- Te(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1681
- ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1682
- a,
1683
- "_spread",
1684
- void 0,
1685
- X(n, Q, i)
1686
- ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1687
- a,
1688
- e.name,
1689
- void 0,
1690
- o.factory.createFunctionTypeNode(
1691
- e.typeParameters,
1692
- St(e.parameters, t, n, i),
1693
- e.type ?? Qe(e, i) ?? X(n, Q, i)
1694
- )
1695
- ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1696
- void 0,
1697
- e.name,
1698
- // Should always be empty
1699
- e.parameters,
1700
- e.type ?? Qe(e, i) ?? X(n, Q, i),
1701
- void 0
1702
- ) : o.factory.createSetAccessorDeclaration(
1703
- void 0,
1704
- e.name,
1705
- St(e.parameters, t, n, i),
1706
- void 0
1707
- );
1708
- }
1709
- function be(e, t, n, i) {
1710
- return Te(e, n, i) ?? X(e, t, i);
1711
- }
1712
- function Te(e, t, n) {
1713
- const i = n.program?.getTypeChecker?.();
1714
- if (i !== void 0 && e.node !== void 0) {
1715
- let a;
1716
- const r = t === w.false;
1717
- if (r && e.node.kind === o.SyntaxKind.Identifier) {
1718
- const s = i.getSymbolAtLocation(e.node);
1719
- a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1720
- }
1721
- a ??= i.getTypeAtLocation(e.node);
1722
- const l = r ? nn(i, a) : a;
1723
- return nt(i, l);
1724
- }
1725
- }
1726
- function nt(e, t) {
1727
- const n = t.flags & o.TypeFlags.Union ? t.types.every(Kt) : Kt(t);
1728
- return e.typeToTypeNode(
1729
- t,
1730
- void 0,
1731
- Jn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1732
- );
1733
- }
1734
- const zn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, jn = zn & o.TypeFormatFlags.NodeBuilderFlagsMask, Jn = jn | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, Kt = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1735
- function Qe(e, t) {
1736
- const n = t.program?.getTypeChecker?.();
1737
- if (n === void 0)
1738
- return;
1739
- const i = n.getSignatureFromDeclaration(e);
1740
- if (i === void 0)
1741
- return;
1742
- const a = n.getReturnTypeOfSignature(i);
1743
- return nt(n, a);
1744
- }
1745
- function qn(e, t) {
1746
- const n = t.program?.getTypeChecker?.();
1747
- if (n === void 0)
1748
- return;
1749
- const i = n.getTypeAtLocation(e);
1750
- return nt(n, i);
1751
- }
1752
- function X(e, t, n) {
1753
- return n.isInLuminaMinimalExtraction || n.emitError(t, e), gt;
1754
- }
1755
- const Q = "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), Ue = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), _e = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), Qn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), Xn = [Qn];
1756
- function St(e, t, n, i) {
1757
- const a = new Array(e.length);
1758
- for (let r = 0; r < a.length; ++r) {
1759
- const l = e[r];
1760
- a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1761
- void 0,
1762
- l.dotDotDotToken,
1763
- o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1764
- l.questionToken,
1765
- l.type ?? (l.initializer === void 0 ? X({ ...n, node: l }, Q, i) : H(
1766
- l.initializer,
1767
- t,
1768
- {
1769
- ...n,
1770
- node: l.initializer
1771
- },
1772
- i
1773
- ))
1774
- );
1775
- }
1776
- return a;
1777
- }
1778
- function Yn(e, t) {
1779
- const n = t.program?.getTypeChecker?.();
1780
- if (n === void 0 || !Zn(e.exprName, t))
1781
- return;
1782
- const i = n.getTypeAtLocation(e.exprName);
1783
- return nt(n, i);
1784
- }
1785
- function Zn(e, t) {
1786
- return e.kind === o.SyntaxKind.QualifiedName ? eo(e.left) : t.moduleContext.importsMap[e.escapedText]?.specifier.endsWith(".json") === !0;
1787
- }
1788
- function eo(e) {
1789
- for (; e !== void 0; )
1790
- if (e.kind === o.SyntaxKind.QualifiedName)
1791
- e = e.left;
1792
- else if (e.kind === o.SyntaxKind.Identifier)
1793
- return e.escapedText === "this";
1794
- return !1;
1795
- }
1796
- function z(e, t) {
1797
- if (b = t, Be.clear(), $ = [], Xe.clear(), e.pos !== -1 && e.getText(b.file).includes("* @public") && b.emitError(
1798
- "@public JSDoc tag may only appear in interfaces, top-level of type alias, or top-level intersection inside a type-alias. @public JSDoc tag inside inline object literal types or deeper aliases is not supported as such are tricky to represent in the docs UI. Refactor out the type into a separate top-level interface/type-alias. Documentation: https://webgis.esri.com/references/api-extractor/advanced-patterns#describing-nested-object-types",
1799
- { file: b.file, node: e }
1800
- ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1801
- Ke(e);
1802
- else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1803
- const i = e.typeParameters;
1804
- if (i !== void 0)
1805
- for (let a = 0; a < i.length; ++a) {
1806
- const r = i[a];
1807
- Xe.add(r.name.escapedText);
1808
- }
1809
- }
1810
- return to.writeNode(o.EmitHint.Unspecified, e, void 0, Be), {
1811
- text: Be.getText(),
1812
- references: $.length > 0 ? $ : void 0,
1813
- values: void 0,
1814
- source: void 0
1815
- };
1816
- }
1817
- let b;
1818
- const ge = (e, t, n) => {
1819
- switch (t.kind) {
1820
- case o.SyntaxKind.TypeReference:
1821
- const i = t, a = i.typeName;
1822
- switch (a.escapedText) {
1823
- case "nil":
1824
- return ge(e, io, n);
1825
- // Used in public typings in 88 files
1826
- // REFACTOR: consider refactoring out Const usages in public API to
1827
- // reduce divergence
1828
- case "Const":
1829
- // In public types, Lumina's "component" and "el" have the same type
1830
- // eslint-disable-next-line no-fallthrough
1831
- case "ToElement":
1832
- return ge(e, i.typeArguments[0], n);
1833
- /**
1834
- * @see https://webgis.esri.com/references/api-extractor/advanced-patterns#publicprivate-type-divergence
1835
- */
1836
- case "PublicApiNarrowType":
1837
- case "PublicApiRelaxType":
1838
- return ge(e, i.typeArguments[1], n);
1839
- }
1840
- Ke(a);
1841
- break;
1842
- case o.SyntaxKind.TypeQuery:
1843
- const l = Yn(t, b);
1844
- if (l !== void 0)
1845
- return ge(e, l, n);
1846
- Ke(t.exprName, no);
1847
- break;
1848
- case o.SyntaxKind.PropertyAccessExpression:
1849
- Ke(t);
1850
- break;
1851
- case o.SyntaxKind.InferType:
1852
- case o.SyntaxKind.MappedType:
1853
- const c = t.typeParameter;
1854
- Xe.add(c.name.escapedText);
1855
- break;
1856
- case o.SyntaxKind.TypeLiteral:
1857
- const p = t;
1858
- p.members.length === 1 && ("emitNode" in p && (p.emitNode ??= {}), o.setEmitFlags(p, o.EmitFlags.SingleLine));
1859
- break;
1860
- case o.SyntaxKind.IndexedAccessType:
1861
- const d = t;
1862
- if (
1863
- // In public types, Lumina's "component" and "el" have the same type
1864
- // Thus print ArcgisHome["el"] as just ArcgisHome
1865
- b.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1866
- )
1867
- return ge(e, d.objectType, n);
1868
- break;
1869
- case o.SyntaxKind.ImportType:
1870
- b.emitError(
1871
- `\`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." : ""}`,
1872
- { file: b.file, node: t }
1873
- );
1874
- break;
1875
- }
1876
- n(e, t), Ye !== void 0 && (yi(), Ye = void 0);
1877
- }, to = an(
1878
- {},
1879
- {
1880
- onEmitNode: ge
1881
- }
1882
- ), io = o.factory.createIdentifier("null | undefined"), Be = on.createTextWriter(`
1883
- `), no = 7, Xe = /* @__PURE__ */ new Set();
1884
- let $;
1885
- function Ke(e, t = 0) {
1886
- const n = [];
1887
- let i = e;
1888
- for (; i !== void 0; )
1889
- if (i.kind === o.SyntaxKind.Identifier) {
1890
- n.push(i);
1891
- break;
1892
- } else if (i.kind === o.SyntaxKind.QualifiedName)
1893
- n.push(i.right), i = i.left;
1894
- else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1895
- const g = i.name;
1896
- n.push(g), i = i.expression;
1897
- }
1898
- const a = n.at(-1), r = a.escapedText, l = Be.getTextPos() + t;
1899
- let s = l + r.length;
1900
- const c = a;
1901
- if (c.pos === -1 && c.symbol !== void 0) {
1902
- $.push(
1903
- qe(c.symbol, c, b, l, s)
1904
- );
1905
- return;
1906
- }
1907
- if (b.functionLikeTypeParameters?.has(r) === !0) {
1908
- $.push({
1909
- name: r,
1910
- module: void 0,
1911
- package: void 0,
1912
- viewUrl: void 0,
1913
- start: l,
1914
- end: s
1915
- });
1916
- return;
1917
- }
1918
- if (b.objectLikeTypeParameters?.has(r) === !0) {
1919
- $.push({
1920
- name: r,
1921
- module: void 0,
1922
- package: void 0,
1923
- viewUrl: void 0,
1924
- start: l,
1925
- end: s
1926
- });
1927
- return;
1928
- }
1929
- if (b.localDeclarations.has(r)) {
1930
- $.push({
1931
- name: r,
1932
- module: void 0,
1933
- package: void 0,
1934
- viewUrl: Ve(
1935
- b.apiModule.path,
1936
- r === b.exportDefaultName ? void 0 : r,
1937
- void 0,
1938
- b
1939
- ),
1940
- start: l,
1941
- end: s
1942
- });
1943
- return;
1944
- }
1945
- if (b.localPrivateDeclarations?.has(r) === !0) {
1946
- b.localPrivateDeclarations.set(r, Math.abs(b.localPrivateDeclarations.get(r))), $.push({
1947
- name: r,
1948
- module: void 0,
1949
- package: void 0,
1950
- viewUrl: Ve(
1951
- b.apiModule.path,
1952
- r === b.exportDefaultName ? void 0 : r,
1953
- void 0,
1954
- b
1955
- ),
1956
- start: l,
1957
- end: s
1958
- });
1959
- return;
1960
- }
1961
- const d = b.moduleContext.importsMap[r];
1962
- if (d !== void 0) {
1963
- d.wasUsed = !0;
1964
- const g = d.type === "named";
1965
- d.replacementName !== void 0 && (Me(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(
1966
- `Can't do a type replacement of ${ie("green", r)} to ${ie("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.`,
1967
- { file: b.file, node: e }
1968
- );
1969
- const C = g ? d.actualName ?? d.replacementName ?? r : void 0;
1970
- if (d.modulePath === void 0) {
1971
- if (b.config.strict) {
1972
- const h = pt(d.specifier);
1973
- b.runtimeDependencyNames.has(h) || b.emitError(
1974
- h === "esri" ? `Found unexpected absolute path import of ${ie("red", C ?? d.type)} from ${ie("red", d.specifier)}. Did you mean to use a relative import instead?` : `Type ${ie("red", C ?? d.type)} imported from ${ie("red", h)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1975
- { file: b.file, node: e }
1976
- );
1977
- }
1978
- } else b.config.strict || Je(
1979
- d.modulePath,
1980
- ut(
1981
- b.apiModule.sourcePath.slice(b.config.context.basePath.length),
1982
- d.specifier
1983
- ),
1984
- g ? C : d.type,
1985
- b
1986
- );
1987
- let v, P = d.modulePath;
1988
- P === void 0 && (v = pt(d.specifier), P = d.specifier.length === v.length ? void 0 : d.specifier.slice(v.length + 1)), $.push({
1989
- name: C ?? d.type,
1990
- module: P,
1991
- package: v,
1992
- viewUrl: d.modulePath === void 0 ? ui(v, P, g ? r : d.type, b) : Ve(d.modulePath, C, void 0, b),
1993
- start: l,
1994
- end: s
1995
- });
1996
- return;
1997
- }
1998
- const m = ft[r];
1999
- if (m !== void 0) {
2000
- $.push({
2001
- name: r,
2002
- module: void 0,
2003
- package: ce,
2004
- viewUrl: m[0]?.startsWith("https") === !1 ? `${yt}${m[0]}` : m[0] ?? void 0,
2005
- start: l,
2006
- end: s
2007
- });
2008
- let g = m;
2009
- if (g.length > 1) {
2010
- let C = n.length - 2, v = s + 1;
2011
- for (; g[1] !== void 0 && C >= 0; ) {
2012
- const P = n[C--];
2013
- if (g = g[1][P.escapedText], g === void 0)
2014
- b.emitError("Failed to resolve the definition of the type reference", {
2015
- file: b.file,
2016
- node: e
2017
- });
2018
- else {
2019
- const h = v + P.escapedText.length;
2020
- $.push({
2021
- name: P.escapedText,
2022
- module: void 0,
2023
- package: ce,
2024
- viewUrl: g[0]?.startsWith("https") === !1 ? `${yt}${g[0]}` : g[0] ?? void 0,
2025
- start: v,
2026
- end: h
2027
- }), v = h + 1;
2028
- }
2029
- }
2030
- }
2031
- return;
2032
- }
2033
- if (Xe.has(r))
2034
- return;
2035
- const u = b.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2036
- if (u !== void 0) {
2037
- $.push(qe(u, a, b, l, s));
2038
- return;
2039
- }
2040
- b.emitError(
2041
- "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2042
- { file: b.file, node: e }
2043
- );
2044
- }
2045
- function Me(e, t) {
2046
- const n = e.escapedText;
2047
- Ye = e, Tt = t, yi(), Tt = n;
2048
- }
2049
- let Ye, Tt;
2050
- function yi() {
2051
- Ye.escapedText = Tt;
2052
- }
2053
- function ot(e, t, n) {
2054
- if (e === void 0 || n.isInLuminaMinimalExtraction) {
2055
- t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2056
- return;
2057
- }
2058
- const i = new Array(e.length), a = t ? oo : ao;
2059
- a.clear();
2060
- for (let r = 0; r < e.length; ++r) {
2061
- const l = e[r], s = l.name.escapedText;
2062
- a.add(s);
2063
- const c = {
2064
- name: s,
2065
- constraint: void 0,
2066
- default: void 0,
2067
- const: void 0,
2068
- in: void 0,
2069
- out: void 0
2070
- };
2071
- if (l.modifiers !== void 0)
2072
- for (let p = 0; p < l.modifiers.length; ++p) {
2073
- const d = l.modifiers[p];
2074
- d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2075
- }
2076
- i[r] = c;
2077
- }
2078
- t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2079
- for (let r = 0; r < e.length; ++r) {
2080
- const l = e[r], s = l.constraint, c = l.default;
2081
- s !== void 0 && (i[r].constraint = z(s, n)), c !== void 0 && (i[r].default = z(c, n));
2082
- }
2083
- return i;
2084
- }
2085
- const oo = /* @__PURE__ */ new Set(), ao = /* @__PURE__ */ new Set();
2086
- function Ce(e, t, n) {
2087
- if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2088
- return n.emitError(
2089
- "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2090
- { file: n.file, node: e }
2091
- ), {
2092
- [j]: "Record<never, Error>",
2093
- name: "error",
2094
- module: void 0,
2095
- package: void 0,
2096
- viewUrl: void 0,
2097
- typeArguments: void 0
2098
- };
2099
- const i = z(e, n), a = i.references?.[0] ?? {
2100
- module: void 0,
2101
- package: void 0,
2102
- viewUrl: void 0
2103
- };
2104
- let r, l;
2105
- if (r = i.text, t !== void 0) {
2106
- l = new Array(t.length), r += "<";
2107
- for (let s = 0; s < t.length; ++s) {
2108
- const c = t[s], p = z(c, n);
2109
- l[s] = p, r += p.text, s < t.length - 1 && (r += ", ");
2110
- }
2111
- r += ">";
2112
- }
2113
- return {
2114
- /**
2115
- * If referenced type is imported as default, the `name` will be `default`,
2116
- * which is not a name suitable for .d.ts emit. So we preserve the original
2117
- * type string in a temporary field.
2118
- */
2119
- [j]: r,
2120
- name: i.references?.length === 1 ? i.references[0].name : i.text,
2121
- module: a.module,
2122
- package: a.package,
2123
- viewUrl: a.viewUrl,
2124
- typeArguments: l
2125
- };
2126
- }
2127
- function Pt(e) {
2128
- return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2129
- }
2130
- function ro(e) {
2131
- return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2132
- }
2133
- const vi = { text: "unknown", references: void 0, values: void 0, source: void 0 }, so = {
2134
- text: "Promise<unknown>",
2135
- references: void 0,
2136
- values: void 0,
2137
- source: void 0
2138
- }, lo = {
2139
- text: "Record<string, unknown> | undefined",
2140
- references: [
2141
- {
2142
- name: "Record",
2143
- module: void 0,
2144
- package: ce,
2145
- viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2146
- start: 0,
2147
- end: 6
2148
- }
2149
- ],
2150
- values: void 0,
2151
- source: void 0
2152
- };
2153
- function co(e, t) {
2154
- if (t.isInLuminaMinimalExtraction)
2155
- return;
2156
- const n = qi(e.name), i = {
2157
- [j]: po,
2158
- kind: "method",
2159
- name: "componentOnReady",
2160
- static: void 0,
2161
- deprecated: void 0,
2162
- summary: void 0,
2163
- description: "Creates a promise that resolves once the component is fully loaded.",
2164
- docsTags: [
2165
- {
2166
- name: "example",
2167
- text: `\`\`\`js
2168
- const ${n} = document.createElement("${e.tagName}");
2169
- document.body.append(${n});
2170
- await ${n}.componentOnReady();
2171
- console.log("${e.tagName} is ready to go!");
2172
- \`\`\``
2173
- }
2174
- ],
2175
- typeParameters: void 0,
2176
- parameters: void 0,
2177
- return: mo,
2178
- // Must include .inheritedFrom for this member so that it is excluded from
2179
- // .d.ts printing (TypeScript inherits it from PublicLitElement) and from
2180
- // the docs search index.
2181
- inheritedFrom: uo,
2182
- signature: "(): Promise<this>",
2183
- privacy: void 0,
2184
- source: void 0
2185
- };
2186
- e.members.push(i);
2187
- 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;
2188
- typeof s == "string" && a.push({
2189
- description: "Docs",
2190
- url: s,
2191
- source: void 0
2192
- }), typeof c == "string" && a.push({
2193
- description: "Demo",
2194
- url: c,
2195
- source: void 0
2196
- });
2197
- const p = t.componentStories[e.tagName];
2198
- if (typeof p == "object" && a.push(...p), t.componentCssFileDocs !== void 0) {
2199
- e.cssProperties ??= [];
2200
- const d = new Set(e.cssProperties.map((m) => m.name));
2201
- e.cssProperties = [
2202
- ...e.cssProperties,
2203
- ...t.componentCssFileDocs.filter((m) => !d.has(m.name))
2204
- ], t.componentCssFileDocs = void 0;
2205
- }
2206
- a.length > 0 && (e.demos = a);
2207
- }
2208
- const po = tt(), mo = {
2209
- summary: void 0,
2210
- description: void 0,
2211
- type: {
2212
- text: "Promise<this>",
2213
- references: [
2214
- {
2215
- name: "Promise",
2216
- module: "lib/lib.es5.d.ts",
2217
- package: "typescript",
2218
- viewUrl: void 0,
2219
- start: 0,
2220
- end: 7
2221
- }
2222
- ],
2223
- values: void 0,
2224
- source: void 0
2225
- }
2226
- }, uo = {
2227
- name: "this",
2228
- module: void 0,
2229
- package: void 0,
2230
- viewUrl: void 0
2231
- }, fo = de, yo = de, vo = de, go = de, So = de, To = de, ho = de, gi = de;
2232
- function de(e, t, n, i, a) {
2233
- if (i.docsTags === void 0 || n === void 0)
2234
- return;
2235
- const r = i.docsTags.indexOf(U.copyDoc);
2236
- if (r === -1)
2237
- return;
2238
- const l = i.name;
2239
- let s = n?.[l];
2240
- s === void 0 && e.emitError(
2241
- "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#copydoc)",
2242
- {
2243
- file: e.file,
2244
- node: t
2245
- }
2246
- ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Yi(s, i, r);
2247
- }
2248
- function bt(e, t, n) {
2249
- n.apiModule.exports.push({
2250
- kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2251
- name: t ? "default" : e.tagName ?? e.name,
2252
- deprecated: void 0,
2253
- declaration: {
2254
- name: e.name,
2255
- module: void 0,
2256
- package: void 0,
2257
- viewUrl: void 0
2258
- }
2259
- });
2260
- }
2261
- const Eo = ke, lt = ke, Co = ke, Ht = ke, $t = ke;
2262
- function ke(e, t, n, i) {
2263
- if (t === void 0) {
2264
- i.emitError("Computed function/method names are not yet supported.", {
2265
- file: i.file,
2266
- node: e
2267
- });
2268
- return;
2269
- }
2270
- 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), g = u || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Pe, v = tt();
2271
- let P, h, R = !1, I = !1;
2272
- if (!m && a.modifiers !== void 0)
2273
- for (let E = 0; E < a.modifiers.length; ++E)
2274
- switch (a.modifiers[E].kind) {
2275
- case o.SyntaxKind.StaticKeyword:
2276
- P = !0;
2277
- break;
2278
- case o.SyntaxKind.ProtectedKeyword:
2279
- h = "protected";
2280
- break;
2281
- case o.SyntaxKind.AbstractKeyword:
2282
- R = !0;
2283
- break;
2284
- case o.SyntaxKind.AsyncKeyword:
2285
- I = !0;
2286
- break;
2287
- }
2288
- const y = {
2289
- [j]: v,
2290
- kind: c ? "method" : m ? "function" : f ? "call-signature" : g ? "constructor" : void 0,
2291
- name: g || f ? void 0 : t,
2292
- static: P,
2293
- deprecated: void 0,
2294
- summary: void 0,
2295
- description: void 0,
2296
- docsTags: void 0,
2297
- typeParameters: ot(e.typeParameters, !1, i),
2298
- parameters: [],
2299
- return: u ? void 0 : {
2300
- summary: void 0,
2301
- description: void 0,
2302
- type: C ? I ? so : vi : z(
2303
- e.type ?? Qe(e, i) ?? X(
2304
- { file: i.file, node: e },
2305
- "@public function must have a return type annotation",
2306
- i
2307
- ),
2308
- i
2309
- )
2310
- },
2311
- inheritedFrom: void 0,
2312
- signature: void 0,
2313
- privacy: h,
2314
- source: void 0
2315
- }, k = y, M = pn(y, i.jsDoc), L = C ? [] : e.parameters;
2316
- let x = M.length, T = !1, _ = 0;
2317
- for (let E = 0; E < L.length; ++E) {
2318
- const S = L[E], A = o.isIdentifier(S.name) ? S.name.escapedText : void 0;
2319
- if (A === "this") {
2320
- _ -= 1;
2321
- continue;
2322
- }
2323
- const W = u && A !== void 0 && S.modifiers !== void 0 && S.modifiers.length > 0 ? oe(S, !0, i) : void 0;
2324
- if (W !== void 0) {
2325
- _ -= 1, x += 1, i.jsDoc = W;
2326
- const q = Ti(S, A, !1, i);
2327
- if (q === void 0)
2328
- continue;
2329
- i.apiObject.members.push(q);
2330
- const pe = {
2331
- name: A,
2332
- deprecated: void 0,
2333
- summary: void 0,
2334
- description: q.description,
2335
- docsTags: void 0,
2336
- optional: void 0,
2337
- rest: S.dotDotDotToken ? !0 : void 0,
2338
- type: q.type,
2339
- default: q.default
2340
- };
2341
- pe.optional = zt(S, pe), y.parameters.push(pe);
2342
- continue;
2343
- }
2344
- let G = M[E + _]?.text, O, F;
2345
- if (!i.config.strict && (G === void 0 || A === void 0) && (G = A ?? `parameter${E}`), G === void 0) {
2346
- i.emitError(
2347
- `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/references/api-extractor/tags-reference#param)${g ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2348
- { file: i.file, node: S }
2349
- ), T = !0;
2350
- break;
2351
- }
2352
- const B = G.indexOf(" ");
2353
- if (O = B === -1 ? G : G.slice(0, B), F = B === -1 ? "" : G.slice(B + 1).trim(), (F.startsWith("- ") || F.startsWith(`-
2354
- `)) && (F = F.slice(2).trim()), A !== void 0 && A !== O && `_${O}` !== A) {
2355
- const q = O.startsWith("[") || O.endsWith("]");
2356
- if (i.config.strict) {
2357
- i.emitError(
2358
- `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]" : ""}`,
2359
- {
2360
- file: i.file,
2361
- node: S
2362
- }
2363
- ), T = !0;
2364
- break;
2365
- } else
2366
- O = A.startsWith("_") ? A.slice(1) : A;
2367
- }
2368
- const ue = S.type ?? (S.initializer === void 0 ? X(
2369
- { file: i.file, node: S },
2370
- `Public parameter ${O} must have a type annotation or a default value`,
2371
- i
2372
- ) : Ct(S.initializer, w.false, i.file, i)), Ge = z(ue, i), te = {
2373
- name: O,
2374
- deprecated: void 0,
2375
- summary: void 0,
2376
- description: F || void 0,
2377
- docsTags: void 0,
2378
- optional: void 0,
2379
- rest: S.dotDotDotToken ? !0 : void 0,
2380
- type: Ge,
2381
- default: ze(S.initializer, void 0, i.file)
2382
- };
2383
- te.optional = zt(S, te), y.parameters.push(te);
2384
- }
2385
- if (i.config.strict && !T && x !== y.parameters.length && i.emitError(
2386
- `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/references/api-extractor/tags-reference#param)${g ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2387
- { file: i.file, node: e }
2388
- ), y.parameters.length === 0)
2389
- y.parameters = void 0;
2390
- else {
2391
- let E = !0;
2392
- for (let S = y.parameters.length - 1; S >= 0; S--) {
2393
- const D = y.parameters[S];
2394
- E &&= D.optional === !0 || D.rest === !0 || D.default !== void 0, !E && D.optional && (D.optional = void 0, D.type.text.endsWith(" | undefined") || (D.type.text += " | undefined"));
2395
- }
2396
- }
2397
- l && i.componentTagName !== void 0 && (k.signature = Ki(k), I && !Zi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2398
- file: i.file,
2399
- node: e
2400
- })), i.functionLikeTypeParameters = void 0;
2401
- const N = m ? it(a) : 0, J = m && i.exportDefaultName === t, K = N === 2 || J;
2402
- return m && (K ? bt(y, !0, i) : N === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2403
- file: i.file,
2404
- node: e
2405
- })), i.produceDts && (c || g || f ? (R && (v.isAbstract = !0), v.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : v.isDefaultExported = K || void 0), c ? yo(
2406
- i,
2407
- n ?? e,
2408
- i.config.documentation.copyDocDefinitions.methods,
2409
- y,
2410
- i.apiObject
2411
- ) : m && go(
2412
- i,
2413
- n ?? e,
2414
- i.config.documentation.copyDocDefinitions.functions,
2415
- y,
2416
- i.apiModule
2417
- ), y;
2418
- }
2419
- const zt = (e, t) => (
2420
- // Keep ? as is
2421
- e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2422
- e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2423
- );
2424
- function Po(e, t, n) {
2425
- return ht(), xe(e, t), Mt && t !== void 0 && n !== void 0 && (ht(), xt(t.getTypeAtLocation(n))), Si();
2426
- }
2427
- function bo(e) {
2428
- return ht(), xt(e), Si();
2429
- }
2430
- let Ie = !1, ae = !1, re = !1, Ae = !1, se = !1, Mt = !1;
2431
- const le = [], ee = [];
2432
- function ht() {
2433
- Ie = !1, ae = !1, re = !1, Ae = !1, se = !1, Mt = !1, le.length = 0, ee.length = 0;
2434
- }
2435
- function Si() {
2436
- if (!re && !Ae && !se && !Ie)
2437
- return;
2438
- const e = [];
2439
- if (le.length > 0)
2440
- for (let t = 0; t < le.length; ++t)
2441
- e.push({ type: "string", value: le[t] });
2442
- else re && e.push(Mo);
2443
- if (ee.length > 0)
2444
- for (let t = 0; t < ee.length; ++t)
2445
- e.push({ type: "number", value: ee[t] });
2446
- else se && e.push(xo);
2447
- return Ae && e.push(Do), Ie ? e.push(Ro) : ae && e.push(Lo), e;
2448
- }
2449
- const Mo = { type: "string", value: void 0 }, xo = { type: "number", value: void 0 }, Do = { type: "boolean", value: void 0 }, Ro = { type: "any", value: void 0 }, Lo = { type: "object", value: void 0 };
2450
- function xe(e, t) {
2451
- switch (e.kind) {
2452
- case o.SyntaxKind.BooleanKeyword:
2453
- case o.SyntaxKind.TrueKeyword:
2454
- case o.SyntaxKind.FalseKeyword:
2455
- Ae = !0;
2456
- return;
2457
- case o.SyntaxKind.NumberKeyword:
2458
- se = !0;
2459
- return;
2460
- case o.SyntaxKind.StringKeyword:
2461
- case o.SyntaxKind.TemplateLiteralType:
2462
- re = !0;
2463
- return;
2464
- case o.SyntaxKind.AnyKeyword:
2465
- Ie = !0;
2466
- return;
2467
- case o.SyntaxKind.LiteralType:
2468
- xe(e.literal, t);
2469
- return;
2470
- case o.SyntaxKind.StringLiteral:
2471
- case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2472
- re = !0, le.push(e.text);
2473
- return;
2474
- case o.SyntaxKind.NumericLiteral:
2475
- se = !0, ee.push(e.text);
2476
- return;
2477
- case o.SyntaxKind.PrefixUnaryExpression:
2478
- const n = e.operand;
2479
- n.kind === o.SyntaxKind.NumericLiteral ? (ee.push(`-${n.text}`), se = !0) : ae = !0;
2480
- return;
2481
- case o.SyntaxKind.VoidKeyword:
2482
- case o.SyntaxKind.UndefinedKeyword:
2483
- case o.SyntaxKind.NullKeyword:
2484
- return;
2485
- case o.SyntaxKind.UnionType:
2486
- const i = e.types, a = Math.min(i.length, Ze);
2487
- for (let l = 0; l < a; ++l)
2488
- xe(i[l], t);
2489
- i.length > Ze && (le.length = 0, ee.length = 0);
2490
- return;
2491
- case o.SyntaxKind.ParenthesizedType:
2492
- xe(e.type, t);
2493
- return;
2494
- case o.SyntaxKind.TypeQuery:
2495
- case o.SyntaxKind.IndexedAccessType:
2496
- case o.SyntaxKind.ImportType:
2497
- case o.SyntaxKind.TypeReference:
2498
- t === void 0 ? ae = !0 : xt(
2499
- t.getTypeFromTypeNode(
2500
- e
2501
- )
2502
- );
2503
- return;
2504
- case o.SyntaxKind.TypeOperator:
2505
- const r = e;
2506
- r.operator === o.SyntaxKind.KeyOfKeyword ? re = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? xe(r.type, t) : ae = !0;
2507
- return;
2508
- /*case ts.SyntaxKind.UnknownKeyword:
2509
- case ts.SyntaxKind.FunctionType:
2510
- case ts.SyntaxKind.ConstructorType:
2511
- case ts.SyntaxKind.ThisKeyword:
2512
- case ts.SyntaxKind.ConditionalType:
2513
- case ts.SyntaxKind.ArrayType:
2514
- case ts.SyntaxKind.TupleType:
2515
- case ts.SyntaxKind.IntersectionType:
2516
- case ts.SyntaxKind.ObjectKeyword:
2517
- case ts.SyntaxKind.SymbolKeyword:*/
2518
- default:
2519
- ae = !0;
2520
- return;
2521
- }
2522
- }
2523
- const Ze = 40;
2524
- function xt(e) {
2525
- if (e.isUnion()) {
2526
- const t = Math.min(e.types.length, Ze);
2527
- for (let n = 0; n < t; ++n)
2528
- jt(e.types[n]);
2529
- e.types.length > Ze && (le.length = 0, ee.length = 0);
2530
- } else
2531
- jt(e);
2532
- }
2533
- function jt(e) {
2534
- const t = e.flags;
2535
- let n = !1;
2536
- 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, ee.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, se = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ae = !0), t & o.TypeFlags.Any) {
2537
- if (e.intrinsicName === "error") {
2538
- ae = !0, Mt = !0;
2539
- return;
2540
- }
2541
- Ie = !0, n = !0;
2542
- }
2543
- t & Io || n || (ae = !0);
2544
- }
2545
- const Io = o.TypeFlags.Null | o.TypeFlags.VoidLike, Ea = (e) => e.map(Ao).join(" | "), Ao = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2546
- function ko(e, t, n) {
2547
- let i;
2548
- const a = e.initializer;
2549
- let r;
2550
- if (e.questionToken !== void 0)
2551
- return;
2552
- if (e.type !== void 0)
2553
- o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? _e);
2554
- else if (a !== void 0 && o.isCallExpression(a)) {
2555
- const s = a.expression;
2556
- if (o.isIdentifier(s)) {
2557
- const c = s.escapedText;
2558
- c === He ? (i = a.typeArguments?.[0] ?? _e, r = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? _e : c.startsWith("use") && (i = Jt(e, n));
2559
- } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2560
- const c = s.expression.escapedText;
2561
- if (c === "usePropertyChange") {
2562
- const p = [];
2563
- for (let d = 0; d < a.arguments.length; ++d) {
2564
- const m = a.arguments[d];
2565
- o.isStringLiteral(m) && p.push(o.factory.createLiteralTypeNode(m));
2566
- }
2567
- if (p.length === 0)
2568
- return;
2569
- i = o.factory.createTypeLiteralNode([
2570
- o.factory.createPropertySignature(
2571
- void 0,
2572
- "name",
2573
- void 0,
2574
- p.length === 1 ? p[0] : o.factory.createUnionTypeNode(p)
2575
- )
2576
- ]);
2577
- } else c.startsWith("use") && (i = Jt(e, n));
2578
- }
2579
- }
2580
- if (i === void 0)
2581
- return;
2582
- const l = {
2583
- name: t,
2584
- deprecated: void 0,
2585
- summary: void 0,
2586
- description: void 0,
2587
- docsTags: void 0,
2588
- type: z(i, n),
2589
- inheritedFrom: void 0,
2590
- privacy: void 0,
2591
- bubbles: void 0,
2592
- cancelable: void 0,
2593
- composed: void 0
2594
- };
2595
- return fn(l, n.jsDoc), r !== void 0 && Go(e, r, l, n), vo(
2596
- n,
2597
- e,
2598
- n.config.documentation.copyDocDefinitions.events,
2599
- l,
2600
- n.apiObject
2601
- ), l;
2602
- }
2603
- const He = "createEvent";
2604
- function Go(e, t, n, i) {
2605
- if (t !== void 0) {
2606
- if (!o.isObjectLiteralExpression(t)) {
2607
- i.emitError(`Expected object literal expression as first argument of ${He}().`, {
2608
- file: i.file,
2609
- node: e
2610
- });
2611
- return;
2612
- }
2613
- if (t.properties.some(o.isSpreadAssignment)) {
2614
- i.emitError(
2615
- `Unexpected spread syntax in ${He}() argument. ${He}() arguments must be statically parsable at compile time`,
2616
- {
2617
- file: i.file,
2618
- node: e
2619
- }
2620
- );
2621
- return;
2622
- }
2623
- for (const a of t.properties)
2624
- !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !Y(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !Y(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !Y(a.initializer, i) && (n.composed = !1));
2625
- }
2626
- }
2627
- function Jt(e, t) {
2628
- const n = t.program?.getTypeChecker?.();
2629
- if (n === void 0)
2630
- return;
2631
- const i = n.getTypeAtLocation(e);
2632
- if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2633
- return;
2634
- const r = n.getTypeArguments(i);
2635
- if (r.length === 0)
2636
- return _e;
2637
- const l = r[0];
2638
- return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2639
- }
2640
- function Ti(e, t, n, i) {
2641
- if (t === void 0) {
2642
- i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2643
- return;
2644
- }
2645
- 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 = Oi(), m = i.isInLuminaMinimalExtraction || i.jsDoc === Pe;
2646
- let f = !1, u = !1, g, C = !1, v, P, h;
2647
- if (c && e.modifiers !== void 0)
2648
- for (let E = 0; E < e.modifiers.length; ++E)
2649
- switch (e.modifiers[E].kind) {
2650
- case o.SyntaxKind.ReadonlyKeyword:
2651
- f = !0;
2652
- continue;
2653
- case o.SyntaxKind.AccessorKeyword:
2654
- u = !0;
2655
- continue;
2656
- case o.SyntaxKind.ProtectedKeyword:
2657
- g = "protected";
2658
- continue;
2659
- case o.SyntaxKind.StaticKeyword:
2660
- v = !0;
2661
- continue;
2662
- case o.SyntaxKind.AbstractKeyword:
2663
- C = !0;
2664
- continue;
2665
- }
2666
- n ||= f || p && i.pairedSetter === void 0;
2667
- const R = i.apiObject.customElement === !0;
2668
- let I = !1;
2669
- if (i.moduleHasAccessorLikeClass)
2670
- if (s !== void 0) {
2671
- for (let E = 0; E < s.length; ++E) {
2672
- const S = s[E];
2673
- if (!o.isPropertyAssignment(S)) {
2674
- I ||= o.isSpreadAssignment(S);
2675
- continue;
2676
- }
2677
- const D = S.name.escapedText;
2678
- D === "readOnly" && Y(S.initializer, i) ? n = !0 : D === "constructOnly" && Y(S.initializer, i) ? d.isConstructorOnly = !0 : D === "type" ? d.hasAutoCasting = !0 : D === "types" && Fo(
2679
- d,
2680
- S.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? S.initializer : void 0
2681
- );
2682
- }
2683
- I && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2684
- } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2685
- else if (R) {
2686
- const E = i.apiObject;
2687
- if (r === void 0) {
2688
- if (m)
2689
- return;
2690
- {
2691
- const S = c && !v ? ko(e, t, i) : void 0;
2692
- if (S !== void 0) {
2693
- E.events ??= [], E.events.push(S);
2694
- return;
2695
- } else !i.config.strict && hi(e) ? (g = "protected", P = !1, i.jsDoc = {
2696
- ...i.jsDoc,
2697
- docsTags: [...i.jsDoc.docsTags, U.internal]
2698
- }) : r === void 0 && i.emitError(
2699
- "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2700
- {
2701
- file: i.file,
2702
- node: e
2703
- }
2704
- );
2705
- }
2706
- } else if (s !== void 0)
2707
- for (let S = 0; S < s.length; ++S) {
2708
- const D = s[S];
2709
- if (!(!o.isPropertyAssignment(D) || !o.isIdentifier(D.name)))
2710
- switch (D.name.escapedText) {
2711
- case "attribute":
2712
- o.isStringLiteral(D.initializer) ? P = D.initializer.text : P = Y(D.initializer, i);
2713
- continue;
2714
- case "reflect":
2715
- Y(D.initializer, i) && (P ??= !0, h = !0);
2716
- continue;
2717
- case "readOnly":
2718
- Y(D.initializer, i) && (n = !0);
2719
- continue;
2720
- case "type":
2721
- case "converter":
2722
- P ??= !0;
2723
- continue;
2724
- }
2725
- }
2726
- }
2727
- const y = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), k = n ? void 0 : y;
2728
- u ||= r !== void 0 || p || y !== void 0, d.isAccessor = u || void 0;
2729
- const M = k?.parameters[0].type, L = a.type;
2730
- let x = M ?? L;
2731
- if (x === void 0) {
2732
- const E = k?.parameters[0].initializer ?? e.initializer;
2733
- if (c && E !== void 0 && o.isArrowFunction(E)) {
2734
- if (n)
2735
- return $t(E, t, e, i);
2736
- qt(e, i);
2737
- }
2738
- x = E === void 0 ? qn(e, i) ?? X(
2739
- { file: i.file, node: e },
2740
- "Public property must have a type annotation or a default value",
2741
- i
2742
- ) : Ct(E, n ? w.shallow : w.false, i.file, i);
2743
- } else if (x = Pt(x), c && o.isFunctionTypeNode(x)) {
2744
- if (n)
2745
- return $t(x, t, e, i);
2746
- qt(e, i);
2747
- }
2748
- const T = {
2749
- [j]: d,
2750
- kind: "field",
2751
- name: t,
2752
- static: v,
2753
- deprecated: void 0,
2754
- summary: void 0,
2755
- description: void 0,
2756
- docsTags: void 0,
2757
- // In minimal extraction, we care only for type.values (set below)
2758
- type: m ? { ...vi } : z(x, i),
2759
- getterType: void 0,
2760
- default: void 0,
2761
- readonly: n || void 0,
2762
- inheritedFrom: void 0,
2763
- privacy: g,
2764
- source: void 0,
2765
- attribute: !R || P === !1 ? void 0 : typeof P == "string" ? P : Qi(t),
2766
- reflects: h,
2767
- docsOnlyReadonly: void 0
2768
- };
2769
- mn(T, i.jsDoc);
2770
- const _ = T.default;
2771
- R && t === "messageOverrides" && (d.dtsTypeOverride = T.type.text, T.type = lo);
2772
- const N = R && r !== void 0;
2773
- if (N) {
2774
- !n && T.readonly === !0 && (T.docsOnlyReadonly = !0);
2775
- const E = i.program?.getTypeChecker?.();
2776
- T.type.values = E !== void 0 && x.pos === -1 && (x.kind === o.SyntaxKind.TypeQuery || x.kind === o.SyntaxKind.IndexedAccessType || x.kind === o.SyntaxKind.ImportType || x.kind === o.SyntaxKind.TypeReference) ? bo(E.getTypeAtLocation(y?.parameters[0] ?? e)) : Po(x, 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);
2777
- const S = E !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2778
- 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);
2779
- if (("initializer" in e && e.initializer !== void 0 && (!T.default || !T.description) || S) && !m) {
2780
- const D = e.initializer, A = E?.getSymbolAtLocation(D), V = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? E?.getAliasedSymbol(A) : A;
2781
- let W, G;
2782
- const O = V?.getDeclarations();
2783
- if (O !== void 0)
2784
- for (let F = 0; F < O.length; ++F) {
2785
- const B = O[F];
2786
- W ??= o.isGetAccessor(B) ? B : void 0, G ??= o.isSetAccessor(B) ? B : void 0, "initializer" in B && (T.default = ze(
2787
- B.initializer,
2788
- T.default,
2789
- B.getSourceFile()
2790
- ));
2791
- }
2792
- S && W?.type !== void 0 && G !== void 0 && W.type.getText() !== G.parameters[0]?.type?.getText() && (T.getterType = {
2793
- text: z(W.type, i).text,
2794
- references: void 0,
2795
- values: void 0,
2796
- source: void 0
2797
- });
2798
- }
2799
- }
2800
- if (L !== void 0 && M !== void 0 && !m && // Quick perf check: type is definitely the same if raw type string matches.
2801
- // More reliable check follows in processing/index.ts, where printed normalized
2802
- // type string is compared.
2803
- L.getText(i.file) !== M.getText(i.file) ? T.getterType = z(L, i) : T.readonly === !0 && T.name === "type" && x.kind === o.SyntaxKind.LiteralType && x.literal.kind === o.SyntaxKind.StringLiteral && (i.moduleContext.typeName = x.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (T.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : T.getterType ??= {
2804
- ...T.type,
2805
- references: T.type.references === void 0 ? void 0 : [...T.type.references]
2806
- }), n && x.kind === o.SyntaxKind.LiteralType || (T.default = ze(
2807
- e.initializer,
2808
- T.default,
2809
- i.file
2810
- )), N) {
2811
- const E = _ === void 0 && T.default === "true";
2812
- 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(
2813
- `${ki}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`
2814
- ), i.loggedBooleanWarning = !0));
2815
- }
2816
- return fo(
2817
- i,
2818
- e,
2819
- i.config.documentation.copyDocDefinitions?.properties,
2820
- T,
2821
- i.apiObject
2822
- ), 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
2823
- // with ? during printing
2824
- u && (x.kind === o.SyntaxKind.FunctionType || x.kind === o.SyntaxKind.ConstructorType || x.kind === o.SyntaxKind.ConditionalType || x.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;
2825
- }
2826
- function qt(e, t) {
2827
- if (!t.config.strict)
2828
- return;
2829
- const n = t.jsDoc.docsTags;
2830
- for (let i = 0; i < n.length; ++i) {
2831
- const a = n[i].name;
2832
- if (a === "param" || a === "returns") {
2833
- t.emitError(
2834
- "@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.",
2835
- {
2836
- file: t.file,
2837
- node: e
2838
- }
2839
- );
2840
- return;
2841
- }
2842
- }
2843
- }
2844
- function Fo(e, t) {
2845
- if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2846
- for (let n = 0; n < t.properties.length; ++n) {
2847
- const i = t.properties[n];
2848
- if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2849
- e.autoCastingDefaultType = i.initializer.text;
2850
- return;
2851
- }
2852
- }
2853
- }
2854
- const hi = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2855
- function et(e, t) {
2856
- const n = o.isClassDeclaration(e);
2857
- let i = e.name.escapedText;
2858
- const a = n ? t.componentTagName : void 0, r = !n && mi(i, t);
2859
- 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;
2860
- 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) {
2861
- No(i, l.types[0].typeArguments[0], t);
2862
- return;
2863
- }
2864
- 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";
2865
- s && (l = void 0, i = t.mixinName);
2866
- const c = ni(), p = {
2867
- [j]: c,
2868
- kind: n ? "class" : "interface",
2869
- name: i,
2870
- customElement: a === void 0 ? void 0 : !0,
2871
- tagName: a,
2872
- privacy: void 0,
2873
- pascalCaseName: a === void 0 ? void 0 : (
2874
- /**
2875
- * We use the tag name rather than the class name to generate the
2876
- * type name because the class name may not start with the library
2877
- * prefix (Arcgis), where as tag name always does. This also matches
2878
- * Stencil's behavior.
2879
- */
2880
- Xi(a)
2881
- ),
2882
- deprecated: void 0,
2883
- summary: void 0,
2884
- description: void 0,
2885
- docsTags: void 0,
2886
- demos: void 0,
2887
- typeParameters: s ? void 0 : ot(e.typeParameters, !0, t),
2888
- superclass: void 0,
2889
- supertypes: void 0,
2890
- mixins: void 0,
2891
- encapsulation: void 0,
2892
- formAssociated: void 0,
2893
- members: [],
2894
- attributes: void 0,
2895
- events: void 0,
2896
- slots: void 0,
2897
- cssParts: void 0,
2898
- cssProperties: void 0,
2899
- cssStates: void 0,
2900
- type: void 0,
2901
- source: void 0,
2902
- // REFACTOR: remove this deprecated property
2903
- importPath: a === void 0 ? void 0 : t.apiModule.path
2904
- }, d = p, m = d, f = d;
2905
- ai(p, t.jsDoc);
2906
- const u = r ? (
2907
- // Members will be added during post-processing
2908
- !1
2909
- ) : Ei(d, e.members, i, t);
2910
- 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(
2911
- "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2912
- {
2913
- file: t.file,
2914
- node: e
2915
- }
2916
- ) : Oo(l, n, p, e, t), a !== void 0 && co(m, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = f));
2917
- const g = t.exportDefaultName === i, C = it(e), v = g || C === 2;
2918
- return (v || a !== void 0) && bt(d, v, t), n ? (a === void 0 ? To(
2919
- t,
2920
- e,
2921
- t.config.documentation.copyDocDefinitions.classes,
2922
- m,
2923
- t.apiModule
2924
- ) : ho(
2925
- t,
2926
- e,
2927
- t.config.documentation.copyDocDefinitions.customElements,
2928
- m,
2929
- t.apiModule
2930
- ), t.moduleHasClass && t.config.strict && t.emitError(
2931
- "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
2932
- { file: t.file, node: e }
2933
- ), t.moduleHasClass = !0) : gi(
2934
- t,
2935
- e,
2936
- t.config.documentation.copyDocDefinitions.interfaces,
2937
- f,
2938
- t.apiModule
2939
- ), t.produceDts && (c.isDefaultExported = v || void 0, n && (!s && (!g && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2940
- file: t.file,
2941
- node: e
2942
- }), pi(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !u && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2943
- }
2944
- function Oo(e, t, n, i, a) {
2945
- for (let r = 0; r < e.types.length; ++r) {
2946
- const l = e.types[r];
2947
- if (t) {
2948
- let s = l.typeArguments, c = l.expression;
2949
- if (o.isCallExpression(c)) {
2950
- do {
2951
- const d = c.expression;
2952
- if (o.isPropertyAccessExpression(d) && o.isIdentifier(d.expression) && o.isIdentifier(d.name) && d.expression.escapedText === "Collection" && d.name.escapedText === "ofType") {
2953
- const m = c.arguments[0];
2954
- if (!o.isIdentifier(m)) {
2955
- a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2956
- file: a.file,
2957
- node: m
2958
- });
2959
- break;
2960
- }
2961
- s = [o.factory.createTypeReferenceNode(m)], c = d.expression;
2962
- } else {
2963
- n.mixins ??= [];
2964
- const m = c.expression;
2965
- n.mixins.unshift(
2966
- Ce(m, c.typeArguments, a)
2967
- ), c = c.arguments[0];
2968
- }
2969
- } while (o.isCallExpression(c));
2970
- if (o.isClassExpression(c)) {
2971
- (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2972
- "The only supported inline class expression is an empty class. Extract into a separate named class",
2973
- { file: a.file, node: c }
2974
- );
2975
- break;
2976
- } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2977
- }
2978
- const p = Ce(
2979
- c,
2980
- a.isInLuminaMinimalExtraction ? void 0 : s,
2981
- a
2982
- );
2983
- if (p.name === "LitElement") {
2984
- p.name = "HTMLElement", p.package = ce, p.viewUrl = "https://developer.mozilla.org/docs/Web/API/HTMLElement";
2985
- const d = a.moduleContext.importsMap.LitElement;
2986
- d === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : d.actualName = "PublicLitElement";
2987
- }
2988
- n.superclass = p;
2989
- break;
2990
- } else {
2991
- const s = ro(l);
2992
- let c = s, p;
2993
- if (o.isExpressionWithTypeArguments(s))
2994
- c = s.expression, p = s.typeArguments;
2995
- 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))
2996
- continue;
2997
- n.supertypes ??= [], n.supertypes.push(
2998
- Ce(c, p, a)
2999
- );
3000
- }
3001
- }
3002
- }
3003
- function Ei(e, t, n, i) {
3004
- i.apiObject = e;
3005
- const a = e.customElement === !0, r = e.members, l = t.length;
3006
- let s, c = t[0], p, d = Re(c?.name), m = !1;
3007
- for (let f = 0; f < l; ++f) {
3008
- if (s = c, c = t[f + 1], p = d, d = Re(c?.name), i.pairedSetter !== void 0) {
3009
- i.pairedSetter = void 0;
3010
- continue;
3011
- }
3012
- if (p === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
3013
- continue;
3014
- c !== void 0 && p === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
3015
- let u = oe(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : oe(i.pairedSetter, !0, i));
3016
- if (u === void 0 && !i.config.strict && (a ? p !== void 0 && Qt(s, i.pairedSetter, !0) : !pi(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
3017
- const C = i.pairedSetter === void 0 ? je(s, !1, i, Le) : oe(s, !1, i) ?? je(i.pairedSetter, !1, i, Le);
3018
- C?.docsTags.includes(U.private) === !0 ? a && i.config.context.includeLuminaPrivateComponents ? u = Pe : u = void 0 : u = C;
3019
- } else u === void 0 && a && i.config.context.includeLuminaPrivateComponents && Qt(s, i.pairedSetter, !1) && (u = Pe);
3020
- if (u === void 0) {
3021
- 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 && Y(s.initializer, i) && (i.apiObject.formAssociated = !0));
3022
- continue;
3023
- }
3024
- i.jsDoc = u;
3025
- let g;
3026
- o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? g = Ti(s, p, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? g = lt(s, p, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (m = !0, g = lt(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? g = lt(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (ct.members.splice(
3027
- 0,
3028
- ct.members.length,
3029
- s
3030
- ), Ci(e, ct, i), me(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3031
- file: i.file,
3032
- node: s
3033
- }), g !== void 0 && r.push(g);
3034
- }
3035
- return i.apiObject = void 0, m;
3036
- }
3037
- const ct = o.factory.createTypeLiteralNode(void 0);
3038
- function Qt(e, t, n) {
3039
- if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3040
- const i = e;
3041
- if ((De(i.modifiers, "property") ?? (t === void 0 ? void 0 : De(t.modifiers, "property"))) !== void 0)
3042
- return !0;
3043
- if (!n)
3044
- return !1;
3045
- if (hi(e))
3046
- return !0;
3047
- if (i.modifiers !== void 0)
3048
- for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3049
- const l = i.modifiers[r];
3050
- if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3051
- return !1;
3052
- }
3053
- 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;
3054
- } else return e.kind === o.SyntaxKind.MethodDeclaration ? De(e.modifiers, "method") !== void 0 : !1;
3055
- }
3056
- function Ci(e, t, n) {
3057
- const i = z(t, n);
3058
- if (e.type === void 0)
3059
- e.type = i;
3060
- else {
3061
- const a = `${e.type.text} &
3062
- `, r = a.length;
3063
- e.type = {
3064
- text: `${a}${i.text}`,
3065
- references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Vt(i.references, r) : [...e.type.references, ...Vt(i.references, r)],
3066
- values: void 0,
3067
- source: void 0
3068
- };
3069
- }
3070
- }
3071
- function No(e, t, n) {
3072
- if (!o.isTypeQueryNode(t)) {
3073
- n.emitError("Expected a TypeQueryNode for applyMixins syntax", { file: n.file, node: t });
3074
- return;
3075
- }
3076
- if (!o.isIdentifier(t.exprName)) {
3077
- n.emitError("Expected an Identifier for the expression name in applyMixins syntax", {
3078
- file: n.file,
3079
- node: t
3080
- });
3081
- return;
3082
- }
3083
- const i = t.exprName.escapedText;
3084
- let a;
3085
- for (let s = n.file.statements.length - 1; s >= 0; --s) {
3086
- const c = n.file.statements[s];
3087
- if (!o.isVariableStatement(c))
3088
- continue;
3089
- const p = c.declarationList.declarations[0];
3090
- if (o.isIdentifier(p.name) && p.name?.escapedText === i) {
3091
- a = p;
3092
- break;
3093
- }
3094
- }
3095
- if (a === void 0) {
3096
- n.emitError(`Could not find variable declaration for ${i} in applyMixins syntax`, {
3097
- file: n.file,
3098
- node: t
3099
- });
3100
- return;
3101
- }
3102
- if (a.initializer === void 0 || !o.isAsExpression(a.initializer) || !o.isArrayLiteralExpression(a.initializer.expression)) {
3103
- n.emitError(
3104
- `Expected an 'as' expression with an array literal for the initializer of ${i} in applyMixins syntax`,
3105
- {
3106
- file: n.file,
3107
- node: a
3108
- }
3109
- );
3110
- return;
3111
- }
3112
- const r = n.apiModule.declarations.at(-1);
3113
- if (r?.kind !== "class" || r.name !== e) {
3114
- n.emitError(
3115
- `Expected the ${e} class to be defined right before the ${e} interface`,
3116
- {
3117
- file: n.file,
3118
- node: t
3119
- }
3120
- );
3121
- return;
3122
- }
3123
- const l = a.initializer.expression.elements;
3124
- r.mixins ??= [];
3125
- for (let s = 0; s < l.length; ++s) {
3126
- const c = l[s];
3127
- if (!o.isIdentifier(c)) {
3128
- n.emitError(`Expected an Identifier in the mixins array for ${i} in applyMixins syntax`, {
3129
- file: n.file,
3130
- node: c
3131
- });
3132
- return;
3133
- }
3134
- r.mixins.unshift(Ce(c, void 0, n));
3135
- }
3136
- }
3137
- function wo(e, t) {
3138
- const n = e.type, i = e.name.escapedText, a = mi(i, t), r = ni(), l = {
3139
- [j]: r,
3140
- kind: "interface",
3141
- name: i,
3142
- customElement: void 0,
3143
- tagName: void 0,
3144
- privacy: void 0,
3145
- pascalCaseName: void 0,
3146
- deprecated: void 0,
3147
- summary: void 0,
3148
- description: void 0,
3149
- docsTags: void 0,
3150
- demos: void 0,
3151
- typeParameters: ot(e.typeParameters, !0, t),
3152
- superclass: void 0,
3153
- supertypes: void 0,
3154
- mixins: void 0,
3155
- encapsulation: void 0,
3156
- formAssociated: void 0,
3157
- members: [],
3158
- attributes: void 0,
3159
- events: void 0,
3160
- slots: void 0,
3161
- cssParts: void 0,
3162
- cssProperties: void 0,
3163
- cssStates: void 0,
3164
- type: void 0,
3165
- source: void 0,
3166
- importPath: void 0
3167
- }, s = l;
3168
- if (ai(l, t.jsDoc), a)
3169
- t.moduleContext.constructorPropertiesInterface = s;
3170
- else {
3171
- r.emitAsTypeAlias = !0;
3172
- const c = o.isIntersectionTypeNode(n) ? n.types : [n];
3173
- for (let p = 0; p < c.length; ++p) {
3174
- const d = Pt(c[p]);
3175
- if (o.isTypeLiteralNode(d))
3176
- Ei(s, d.members, i, t);
3177
- else if (o.isTypeReferenceNode(d))
3178
- s.supertypes ??= [], s.supertypes.push(Ce(d.typeName, d.typeArguments, t));
3179
- else if (o.isFunctionTypeNode(d) || o.isConstructorTypeNode(d)) {
3180
- if (t.jsDoc = Le, s.docsTags !== void 0) {
3181
- t.jsDoc = { ...Le, docsTags: [] };
3182
- for (let m = 0; m < s.docsTags.length; ++m) {
3183
- const f = s.docsTags[m];
3184
- (f.name === "param" || f.name === "returns") && (t.jsDoc.docsTags.push(f), s.docsTags.splice(m, 1), m -= 1);
3185
- }
3186
- s.docsTags.length === 0 && (s.docsTags = void 0);
3187
- }
3188
- s.members.push(Co(d, i, void 0, t));
3189
- } else
3190
- Ci(s, d, t);
3191
- }
3192
- }
3193
- return t.objectLikeTypeParameters = void 0, gi(
3194
- t,
3195
- e,
3196
- t.config.documentation.copyDocDefinitions.interfaces,
3197
- s,
3198
- t.apiModule
3199
- ), s.members.length === 0 && (s.members = void 0), s;
3200
- }
3201
- function Uo(e, t, n) {
3202
- const i = e.initializer, a = i.body;
3203
- let r, l;
3204
- for (let d = 0; d < a.statements.length; ++d) {
3205
- const m = a.statements[d];
3206
- if (o.isVariableStatement(m)) {
3207
- const f = m.declarationList.declarations[0];
3208
- if (!o.isIdentifier(f.name) || f.name?.escapedText !== "TypedBase")
3209
- continue;
3210
- let u = f.initializer.expression.expression;
3211
- for (; o.isCallExpression(u); ) {
3212
- const g = u.expression;
3213
- r ??= [], r.push(Ce(g, u.typeArguments, n)), u = u.arguments[0];
3214
- }
3215
- } else o.isClassDeclaration(m) && (l = m);
3216
- }
3217
- if (l === void 0) {
3218
- n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3219
- file: n.file,
3220
- node: e
3221
- });
3222
- return;
3223
- }
3224
- ot(
3225
- // Skip the TBase type parameter - non-public implementation detail
3226
- i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3227
- !0,
3228
- n
3229
- ) !== void 0 && n.emitError(
3230
- "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",
3231
- {
3232
- file: n.file,
3233
- node: e
3234
- }
3235
- ), n.mixinName = t, n.mixinMixins = r;
3236
- const p = et(l, n);
3237
- return p.kind = "mixin", p;
3238
- }
3239
- function Vo(e, t, n) {
3240
- const i = n.moduleHasClass;
3241
- n.moduleHasClass = !1;
3242
- const a = o.factory.createClassDeclaration(
3243
- [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3244
- t,
3245
- void 0,
3246
- [
3247
- o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3248
- o.factory.createExpressionWithTypeArguments(e, void 0)
3249
- ])
3250
- ],
3251
- []
3252
- ), r = et(a, n), l = r, s = me(l);
3253
- 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;
3254
- }
3255
- function Wo(e, t) {
3256
- const n = e.declarationList.declarations;
3257
- n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3258
- file: t.file,
3259
- node: e
3260
- });
3261
- const i = n[0], a = i.name;
3262
- if (!o.isIdentifier(a)) {
3263
- t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3264
- file: t.file,
3265
- node: e
3266
- });
3267
- return;
3268
- }
3269
- const r = a.escapedText, l = t.exportDefaultName === r;
3270
- if (it(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3271
- file: t.file,
3272
- node: e
3273
- }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3274
- return Vo(i.initializer, r, t);
3275
- let c = i.type;
3276
- const p = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3277
- if (c === void 0) {
3278
- const u = i.initializer;
3279
- if (u !== void 0 && o.isArrowFunction(u) && p)
3280
- return u.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Uo(i, r, t) : Ht(u, r, e, t);
3281
- u === void 0 ? c = X(
3282
- { file: t.file, node: i },
3283
- "Public variable must have a type annotation or a default value",
3284
- t
3285
- ) : c = Ct(u, p ? w.shallow : w.false, t.file, t);
3286
- } else if (c = Pt(c), o.isFunctionTypeNode(c))
3287
- return Ht(c, r, e, t);
3288
- const d = Ni(), m = {
3289
- [j]: d,
3290
- kind: "variable",
3291
- name: r,
3292
- deprecated: void 0,
3293
- summary: void 0,
3294
- description: void 0,
3295
- docsTags: void 0,
3296
- source: void 0,
3297
- type: z(c, t),
3298
- default: void 0
3299
- };
3300
- return un(m, t.jsDoc), p && c.kind === o.SyntaxKind.LiteralType || (m.default = ze(i.initializer, m.default, t.file)), So(
3301
- t,
3302
- e,
3303
- t.config.documentation.copyDocDefinitions.variables,
3304
- m,
3305
- t.apiModule
3306
- ), l && (bt(m, !0, t), t.produceDts && (d.isDefaultExported = !0)), m;
3307
- }
3308
- function Pi(e, t, n) {
3309
- const i = n.statementJsDocs[t];
3310
- if (i !== void 0) {
3311
- if (n.jsDoc = i, o.isClassDeclaration(e))
3312
- return et(e, n);
3313
- if (o.isFunctionDeclaration(e))
3314
- return Eo(e, e.name.escapedText, void 0, n);
3315
- if (o.isInterfaceDeclaration(e))
3316
- return et(e, n);
3317
- if (o.isTypeAliasDeclaration(e))
3318
- return wo(e, n);
3319
- if (o.isVariableStatement(e))
3320
- return Wo(e, n);
3321
- }
3322
- }
3323
- function _o(e, t) {
3324
- const n = t.apiModule.declarations, i = e.statements;
3325
- for (let a = 0; a < i.length; ++a) {
3326
- const r = i[a], l = Pi(r, a, t);
3327
- l !== void 0 && n.push(l);
3328
- }
3329
- }
3330
- function Bo(e, t) {
3331
- const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3332
- if (i !== void 0) {
3333
- if (i.module !== void 0)
3334
- return i.module;
3335
- if (i.isEmptyModule)
3336
- return;
3337
- }
3338
- const a = n.slice(t.config.context.basePath.length), r = Z(a), l = We(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3339
- t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3340
- const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3341
- p.clear();
3342
- const d = t.localPrivateDeclarations;
3343
- d?.clear(), t.exportDefaultName = void 0;
3344
- let m;
3345
- const f = {
3346
- class: void 0,
3347
- default: void 0,
3348
- named: /* @__PURE__ */ Object.create(null)
3349
- }, u = ii(e, s, c, f);
3350
- t.moduleContext = u;
3351
- const g = t.implicitPublicModules?.[l];
3352
- let C = !1;
3353
- const v = t.isJsApi && l.startsWith("applications/");
3354
- t.statementJsDocs.length = 0;
3355
- for (let I = 0; I < e.statements.length; ++I) {
3356
- const y = e.statements[I], 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;
3357
- let M;
3358
- if (
3359
- // Only look at web components in Lumina's dev server
3360
- t.isInLuminaMinimalExtraction
3361
- )
3362
- M = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 ? Le : void 0;
3363
- else if (k) {
3364
- if (M = oe(y, !0, t), M === void 0 && !t.config.strict) {
3365
- const L = je(y, !1, t, {
3366
- description: void 0,
3367
- docsTags: []
3368
- }), x = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0;
3369
- L?.docsTags.includes(U.private) === !0 ? x && t.config.context.includeLuminaPrivateComponents ? (M = Pe, t.isInLuminaMinimalExtraction = !0) : M = void 0 : L !== void 0 && (x || g !== void 0 && Nn(y, g)) && (M = L);
3370
- } else M === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && y.kind === o.SyntaxKind.ClassDeclaration && (M = Pe, t.isInLuminaMinimalExtraction = !0);
3371
- 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);
3372
- }
3373
- if (t.statementJsDocs[I] = M, k || I === 0 && (m = oe(e, !0, t)), M !== void 0)
3374
- v && M.docsTags.push(U.internal), p.add(
3375
- (y.name ?? y.declarationList?.declarations[0].name).escapedText
3376
- ), 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);
3377
- else if (o.isImportDeclaration(y)) {
3378
- const L = y.importClause;
3379
- if (L === void 0)
3380
- continue;
3381
- const x = y.moduleSpecifier.text, T = !x.startsWith("."), _ = T ? x : Z(x), N = T ? void 0 : We(ut(r, _), t), J = N === void 0 ? void 0 : t.config.types.typeReplacements[N];
3382
- if (Rn(y, t), L.name !== void 0) {
3383
- const E = L.name.escapedText, S = J?.[E], D = S?.[1], A = S === void 0 ? !T && x.endsWith(".json") ? x : _ : ve(s, S[0]), V = S?.[0] ?? N;
3384
- c[E] = {
3385
- type: S?.[2] ?? "default",
3386
- modulePath: V,
3387
- specifier: A,
3388
- replacementName: D,
3389
- actualName: void 0,
3390
- wasUsed: !1
3391
- };
3392
- }
3393
- const K = L.namedBindings;
3394
- if (K === void 0)
3395
- continue;
3396
- if (K.kind === o.SyntaxKind.NamespaceImport) {
3397
- const E = K.name.escapedText, S = J?.[E], D = S?.[1], A = S === void 0 ? _ : ve(s, S[0]), V = S?.[0] ?? N;
3398
- c[E] = {
3399
- type: "*",
3400
- modulePath: V,
3401
- specifier: A,
3402
- replacementName: D,
3403
- actualName: void 0,
3404
- wasUsed: !1
3405
- };
3406
- } else
3407
- for (let E = 0; E < K.elements.length; ++E) {
3408
- const S = K.elements[E], D = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText, V = J?.[D ?? A], W = V?.[1], G = V === void 0 ? _ : ve(s, V[0]), O = V?.[0] ?? N;
3409
- c[A] = {
3410
- type: V?.[2] ?? "named",
3411
- modulePath: O,
3412
- specifier: G,
3413
- replacementName: W,
3414
- actualName: V === void 0 ? D : void 0,
3415
- wasUsed: !1
3416
- };
3417
- }
3418
- } else if (o.isExportAssignment(y)) {
3419
- if (o.isIdentifier(y.expression)) {
3420
- const L = y.expression.escapedText;
3421
- t.exportDefaultName = L, !p.has(L) && d?.has(L) === !0 && g?.pendingNames?.has("default") === !0 && d.set(L, Math.abs(d.get(L)));
3422
- }
3423
- } else if (o.isExportDeclaration(y) && y.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3424
- if (oe(y, !0, t) !== void 0) {
3425
- const x = y.moduleSpecifier.text, T = !x.startsWith("."), _ = T ? x : ut(r, Z(x)), N = T ? void 0 : We(_, t), J = T ? x : ve(s, N);
3426
- u.reExports ??= [];
3427
- const K = [];
3428
- if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
3429
- const E = y.exportClause.elements;
3430
- for (let S = 0; S < E.length; ++S) {
3431
- const D = E[S], A = Re(D.name), V = D.propertyName === void 0 ? void 0 : Re(D.propertyName), W = V ?? A, G = V === void 0 ? void 0 : A;
3432
- K.push({
3433
- exportName: W,
3434
- aliasName: G,
3435
- isTypeOnly: y.isTypeOnly
3436
- }), !t.config.strict && N !== void 0 && Je(N, _, W, t);
3437
- }
3438
- } else
3439
- K.push({
3440
- exportName: "*",
3441
- aliasName: y.exportClause === void 0 ? void 0 : Re(y.exportClause.name),
3442
- isTypeOnly: !1
3443
- }), !t.config.strict && N !== void 0 && Je(N, _, "*", t);
3444
- u.reExports.push({
3445
- modulePath: N,
3446
- specifier: J,
3447
- isTypeOnly: y.isTypeOnly,
3448
- specifiers: K
3449
- });
3450
- }
3451
- } else o.isModuleDeclaration(y) ? oe(y, !0, t) !== void 0 && (u.namespaces ??= [], u.namespaces.push(y.getFullText(e))) : d !== void 0 && k && d.set(
3452
- (y.name ?? y.declarationList?.declarations[0].name).escapedText,
3453
- -I
3454
- );
3455
- }
3456
- const P = t.config.types.typeReplacements[l];
3457
- if (P !== void 0) {
3458
- const I = Object.keys(P);
3459
- for (let y = 0; y < I.length; ++y) {
3460
- const k = I[y], M = P[k];
3461
- c[k] = {
3462
- type: M[2],
3463
- modulePath: M[0],
3464
- specifier: ve(s, M[0]),
3465
- replacementName: M[1],
3466
- actualName: void 0,
3467
- wasUsed: !1
3468
- };
3469
- }
3470
- }
3471
- t.moduleHasAccessorLikeClass = c.subclass?.specifier.includes("accessorSupport") ?? !1;
3472
- const h = {
3473
- [j]: u,
3474
- kind: "javascript-module",
3475
- path: l,
3476
- sourcePath: n,
3477
- deprecated: void 0,
3478
- description: void 0,
3479
- docsTags: void 0,
3480
- summary: void 0,
3481
- declarations: [],
3482
- exports: []
3483
- };
3484
- if (t.apiModule = h, _o(e, t), d !== void 0) {
3485
- let I = !1;
3486
- do {
3487
- I = !1;
3488
- for (const [y, k] of d)
3489
- if (k > 0 || Object.is(k, 0)) {
3490
- d.delete(y), p.add(y), I = !0;
3491
- const M = e.statements[k], L = je(M, !1, t, {
3492
- description: void 0,
3493
- docsTags: []
3494
- });
3495
- if (L === void 0)
3496
- continue;
3497
- if (L.docsTags.includes(U.private))
3498
- t.emitError(
3499
- `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.`,
3500
- {
3501
- file: e,
3502
- node: M
3503
- }
3504
- );
3505
- else {
3506
- C && !L.docsTags.includes(U.internal) && L.docsTags.push(U.internal), t.statementJsDocs[k] = L;
3507
- const T = Pi(M, k, t);
3508
- T !== void 0 && h.declarations.push(T);
3509
- }
3510
- }
3511
- } while (I);
3512
- }
3513
- if (h.declarations.length === 0 && u.reExports === void 0 && u.namespaces === void 0) {
3514
- i !== void 0 && (i.isEmptyModule = !0);
3515
- return;
3516
- }
3517
- t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3518
- file: u.file,
3519
- module: h,
3520
- previousModule: void 0,
3521
- isEmptyModule: !1,
3522
- dependencies: /* @__PURE__ */ new Set(),
3523
- dependents: /* @__PURE__ */ new Map(),
3524
- docLinks: [],
3525
- hasDirtyLinks: !1,
3526
- wasRemoved: !1
3527
- }) : i.module = h);
3528
- const R = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3529
- h.exports.length === 0 && (h.exports = void 0);
3530
- for (let I = 0; I < h.declarations.length; ++I) {
3531
- const y = h.declarations[I];
3532
- (y.kind === "class" || y.kind === "mixin") && (f.class = y), R === y.name && (f.default = y), f.named[y.name] = y;
3533
- }
3534
- return m !== void 0 && (t.moduleHasClass ? t.emitError(
3535
- "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
3536
- {
3537
- file: e,
3538
- start: 0,
3539
- length: e.statements[0]?.getStart(e) ?? 1,
3540
- node: void 0
3541
- }
3542
- ) : (v && m.docsTags.push(U.internal), dn(h, m))), h;
3543
- }
3544
- async function Ca(e) {
3545
- const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3546
- e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3547
- const s = e.isComponentProject ? (m) => $i(m, a) : () => !1, c = e.isComponentProject ? p : d;
3548
- if (e.program === void 0)
3549
- await Di(n, i, async (m) => {
3550
- if (bi(m))
3551
- return;
3552
- const f = await It(m);
3553
- if (m.includes(".stories.")) {
3554
- const C = f.toString("utf8");
3555
- Ut(C, m, e);
3556
- return;
3557
- }
3558
- const u = s(m);
3559
- if (u && l || // Exclude files before paying .toString() cost
3560
- f.includes(zo) && (f.includes(jo) || f.includes(Jo))) {
3561
- const C = f.toString("utf8"), v = Yt(m, C);
3562
- c(v, u);
3563
- }
3564
- });
3565
- else {
3566
- const m = e.program.getSourceFiles();
3567
- for (let f = 0; f < m.length; ++f) {
3568
- const u = m[f], g = u.fileName;
3569
- if (!Ko(g, e))
3570
- continue;
3571
- if (g.includes(".stories.")) {
3572
- Ut(u.text, g, e);
3573
- continue;
3574
- }
3575
- const C = s(g);
3576
- (C && l || u.text.includes(Mi) || u.text.includes(xi)) && c(u, C);
3577
- }
3578
- }
3579
- function p(m, f) {
3580
- r.push(m);
3581
- const u = f ? zi(m.text)?.[0] : void 0;
3582
- if (u !== void 0) {
3583
- const g = m.fileName.slice(e.basePath.length);
3584
- ji(u, e, g);
3585
- }
3586
- }
3587
- function d(m) {
3588
- e.file = m;
3589
- const f = Bo(m, e);
3590
- f !== void 0 && t.push(f);
3591
- }
3592
- for (let m = 0; m < r.length; ++m)
3593
- d(r[m]);
3594
- if (e.implicitPublicModules !== void 0) {
3595
- let m = !1;
3596
- do {
3597
- m = !1;
3598
- for (const f in e.implicitPublicModules) {
3599
- const u = e.implicitPublicModules[f], g = u.actualModulePath ?? f, C = e.moduleMap.get(g);
3600
- if (u.extractedNames === void 0)
3601
- continue;
3602
- if (u.pendingNames !== void 0) {
3603
- const R = e.watchFiles?.get(e.config.context.basePath + u.sourcePath);
3604
- let y = !(R !== void 0 && R.module === void 0 && !R.isEmptyModule);
3605
- const k = C === void 0 ? void 0 : ne(C).index;
3606
- for (const M of u.pendingNames)
3607
- if (!u.extractedNames.has(M) && (k === void 0 || (M === "default" ? k.default === void 0 : k.named[M] === void 0))) {
3608
- y = !1;
3609
- break;
3610
- }
3611
- if (y)
3612
- continue;
3613
- }
3614
- if (C !== void 0) {
3615
- t.splice(t.indexOf(C), 1);
3616
- const R = e.watchFiles?.get(C.sourcePath);
3617
- R !== void 0 && (R.module = void 0);
3618
- }
3619
- m = !0, u.extractedNames = u.pendingNames === void 0 ? void 0 : new Set(u.pendingNames);
3620
- let v = e.basePath + u.sourcePath, P = !1, h = e.program?.getSourceFile(v) ?? e.program?.getSourceFile(`${v}.ts`) ?? e.program?.getSourceFile(`${v}.tsx`) ?? e.program?.getSourceFile(`${v}.d.ts`);
3621
- if (h === void 0 && (h = e.program?.getSourceFile(`${v}/index.ts`) ?? e.program?.getSourceFile(`${v}/index.tsx`) ?? e.program?.getSourceFile(`${v}/index.d.ts`), h !== void 0 && (P = !0)), e.program === void 0 && (Z(v) === v && (v = fe(`${v}.ts`) ? `${v}.ts` : fe(`${v}.tsx`) ? `${v}.tsx` : fe(`${v}.d.ts`) ? `${v}.d.ts` : void 0, v === void 0 && (v = fe(`${v}/index.ts`) ? `${v}/index.ts` : fe(`${v}/index.tsx`) ? `${v}/index.tsx` : fe(`${v}/index.d.ts`) ? `${v}/index.d.ts` : void 0, v !== void 0 && (P = !0))), v !== void 0 && (h = Yt(v, await It(v, "utf8")))), h !== void 0) {
3622
- const R = h.fileName.slice(e.basePath.length);
3623
- R !== u.sourcePath && (u.sourcePath = R), P && (u.actualModulePath = `${g}/index`), d(h);
3624
- }
3625
- }
3626
- } while (m);
3627
- }
3628
- return t;
3629
- }
3630
- const Ko = (e, t) => Ho(e) && $o(e, t), Ho = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !bi(e), bi = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), $o = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3631
- En(e.slice(t.basePath.length))
3632
- ) && !e.includes("node_modules"), Xt = 32, zo = 64, Mi = "@public", jo = Buffer.from(Mi), xi = "@internal", Jo = Buffer.from(xi);
3633
- async function Pa(e) {
3634
- await Zt(e) && await Di(e, /* @__PURE__ */ new Set(), Hi);
3635
- }
3636
- async function Di(e, t, n) {
3637
- const i = [], a = [];
3638
- for await (const d of await At(e)) {
3639
- const m = `${e}${d.name}`;
3640
- d.isDirectory() && !t.has(d.name) ? a.push(m) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(m);
3641
- }
3642
- const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3643
- function s(d) {
3644
- l.reject(d), r.length = 0;
3645
- }
3646
- let c = Xt;
3647
- for (let d = 0; d < Xt; ++d)
3648
- p().catch(s);
3649
- async function p() {
3650
- for (; ; )
3651
- if (r.length === 0 && a.length > 0) {
3652
- const d = a.shift(), m = [];
3653
- for await (const f of await At(d, { recursive: !0 }))
3654
- f.isFile() && (f.name.endsWith(".ts") || f.name.endsWith(".tsx")) && m.push(`${Li(f.parentPath)}/${f.name}`);
3655
- if (m.length === 0)
3656
- continue;
3657
- r.push(m);
3658
- } else if (r.length > 0) {
3659
- const d = r[0], m = d.shift();
3660
- d.length === 0 && r.shift(), await n(m);
3661
- } else {
3662
- c -= 1, c === 0 && l.resolve();
3663
- return;
3664
- }
3665
- }
3666
- return await l.promise;
3667
- }
3668
- function Yt(e, t) {
3669
- return o.createSourceFile(
3670
- e,
3671
- t,
3672
- {
3673
- languageVersion: o.ScriptTarget.Latest,
3674
- impliedNodeFormat: o.ModuleKind.ESNext,
3675
- // TypeScript parses too much around @param, @property and @deprecated tags
3676
- // It also parses out inline tags. We have to put them back together
3677
- // (overhead and complexity). Plus, it is a bit too tolerant - we want
3678
- // to disallow some ambiguous behavior to improve consistency.
3679
- // So, we disable JSDoc parsing and do it ourselves.
3680
- jsDocParsingMode: o.JSDocParsingMode.ParseNone
3681
- },
3682
- !1,
3683
- e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3684
- );
3685
- }
3686
- export {
3687
- ve as a,
3688
- Sa as b,
3689
- Pa as c,
3690
- Ta as d,
3691
- Ca as e,
3692
- ha as f,
3693
- Ho as g,
3694
- $o as h,
3695
- Ko as i,
3696
- bi as j,
3697
- Yt as k,
3698
- ya as l,
3699
- va as m,
3700
- Wt as n,
3701
- Vt as o,
3702
- ga as p,
3703
- fa as r,
3704
- Ea as t
3705
- };