@arcgis/api-extractor 5.2.0-next.5 → 5.2.0-next.51

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