@arcgis/coding-components 4.32.0-next.51 → 4.32.0-next.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/arcgis-coding-components/{TPVQ27UZ.js → 234AIYFZ.js} +2 -2
  2. package/dist/arcgis-coding-components/{EEP5435I.js → 2YYTJ5VR.js} +3 -3
  3. package/dist/arcgis-coding-components/{TOYMO2MG.js → 5RW3EVSX.js} +1 -1
  4. package/dist/arcgis-coding-components/{E2HLC25M.js → CGAQGVVR.js} +2 -2
  5. package/dist/arcgis-coding-components/{R7HEUNUV.js → DOW75BHW.js} +2 -2
  6. package/dist/arcgis-coding-components/{O3NB5AD5.js → E6C4HQYA.js} +2 -2
  7. package/dist/arcgis-coding-components/{PJD57QLU.js → ETVTZ44P.js} +2 -2
  8. package/dist/arcgis-coding-components/{AUKRUX2L.js → G3JZXJBL.js} +2 -2
  9. package/dist/arcgis-coding-components/GDTBDR2C.js +10 -0
  10. package/dist/arcgis-coding-components/{MY7HIIHX.js → GIYMMTXZ.js} +2 -2
  11. package/dist/arcgis-coding-components/{BPZSWZJI.js → GTAXIL4Z.js} +2 -2
  12. package/dist/arcgis-coding-components/{WKZ34SYP.js → HRO4EQGS.js} +2 -2
  13. package/dist/arcgis-coding-components/{MJJUQO4I.js → HTADHQXN.js} +2 -2
  14. package/dist/arcgis-coding-components/{BLDYXX6P.js → IIKAEZK5.js} +2 -2
  15. package/dist/arcgis-coding-components/{J4WVUPZK.js → J2PA5KHV.js} +2 -2
  16. package/dist/arcgis-coding-components/{AQWCDVOH.js → K2U6AMZ6.js} +2 -2
  17. package/dist/arcgis-coding-components/{SXYIW4VZ.js → KAJJSBEQ.js} +2 -2
  18. package/dist/arcgis-coding-components/{RPER5OG3.js → KRY3TVUU.js} +1 -1
  19. package/dist/arcgis-coding-components/LNHITDLW.js +6 -0
  20. package/dist/arcgis-coding-components/{4MY5A2ZJ.js → LSSFZMR3.js} +1 -1
  21. package/dist/arcgis-coding-components/{I4Q3WU7X.js → MFVDPMW6.js} +2 -2
  22. package/dist/arcgis-coding-components/{HGR6EHIC.js → MGDBBD4E.js} +2 -2
  23. package/dist/arcgis-coding-components/{CRFB4G3G.js → MIV2762Z.js} +2 -2
  24. package/dist/arcgis-coding-components/{AUCTJS75.js → MRTPDXX5.js} +2 -2
  25. package/dist/arcgis-coding-components/{3NROR5NJ.js → O6ZJFY4X.js} +4 -4
  26. package/dist/arcgis-coding-components/{T7EGWH5Y.js → POUFUTCA.js} +2 -2
  27. package/dist/arcgis-coding-components/{FCIKHH2O.js → PP6TOLQB.js} +2 -2
  28. package/dist/arcgis-coding-components/{SFDNZDMO.js → S56UPS5Q.js} +2 -2
  29. package/dist/arcgis-coding-components/{AVFYVJGB.js → SDVY2X6Y.js} +2 -2
  30. package/dist/arcgis-coding-components/{U5UOKYIJ.js → TZJJKBTX.js} +2 -2
  31. package/dist/arcgis-coding-components/{TULRSTVV.js → UAAGGVQL.js} +2 -2
  32. package/dist/arcgis-coding-components/{VQKAFD77.js → Y7KLV25Q.js} +2 -2
  33. package/dist/arcgis-coding-components/{CT3FYGMD.js → YVUDQTJB.js} +2 -2
  34. package/dist/arcgis-coding-components/{BNNPQJDO.js → ZGOWAPHR.js} +2 -2
  35. package/dist/arcgis-coding-components/{43FJQECL.js → ZPZD655T.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +64 -64
  38. package/dist/chunks/arcade-defaults.js +51 -51
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +9 -9
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/package.json +7 -7
  64. package/dist/arcgis-coding-components/DYXU4EMG.js +0 -6
  65. package/dist/arcgis-coding-components/NEUKAGHG.js +0 -10
  66. /package/dist/arcgis-coding-components/assets/arcade-editor/t9n/{messages.nb.json → messages.no.json} +0 -0
  67. /package/dist/arcgis-coding-components/assets/arcade-language/t9n/{messages.nb.json → messages.no.json} +0 -0
  68. /package/dist/arcgis-coding-components/assets/arcade-results/t9n/{messages.nb.json → messages.no.json} +0 -0
  69. /package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/{messages.nb.json → messages.no.json} +0 -0
  70. /package/dist/arcgis-coding-components/assets/editor-variables/t9n/{messages.nb.json → messages.no.json} +0 -0
  71. /package/dist/arcgis-coding-components/assets/language-api-panel/t9n/{messages.nb.json → messages.no.json} +0 -0
  72. /package/dist/arcgis-coding-components/assets/sql-expression-editor/t9n/{messages.nb.json → messages.no.json} +0 -0
  73. /package/dist/arcgis-coding-components/assets/sql-expression-fields/t9n/{messages.nb.json → messages.no.json} +0 -0
@@ -1,57 +1,57 @@
1
1
  import { f as P, i as y, b as T, a as b, c as A, L as x, E as D } from "./language-defaults-base.js";
2
2
  import { supportedLocales as F, fetchT9nStringsBundle as M } from "@arcgis/components-utils";
3
3
  import { g as m } from "./runtime.js";
4
- import { CompletionItemKind as g, InsertTextMode as f, InsertTextFormat as d } from "vscode-languageserver-types";
4
+ import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } from "vscode-languageserver-types";
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.51
8
+ * v4.32.0-next.54
9
9
  */
10
10
  async function S(e) {
11
- const { apiVersion: r, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), n = await w(e.dictionaryVariables);
12
- return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: s?.map((i) => i.toLowerCase()) };
11
+ const { apiVersion: s, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await g(e.dictionaryVariables);
12
+ return { apiVersion: s, bundles: t, variables: n, hiddenApiItems: r?.map((i) => i.toLowerCase()) };
13
13
  }
14
- async function w(e, r = g.Variable) {
14
+ async function g(e, s = w.Variable) {
15
15
  return await Promise.all(
16
16
  e.map(async (t) => {
17
17
  switch (t.type) {
18
18
  case "dictionary":
19
- return await v(t, r);
19
+ return await v(t, s);
20
20
  case "feature":
21
- return await k(t, r);
21
+ return await k(t, s);
22
22
  default:
23
- return L(t, r);
23
+ return L(t, s);
24
24
  }
25
25
  })
26
26
  );
27
27
  }
28
- function L(e, r) {
29
- const { name: t, type: s } = e, n = e.getDescription();
28
+ function L(e, s) {
29
+ const { name: t, type: r } = e, n = e.getDescription();
30
30
  return {
31
31
  name: t,
32
32
  description: n,
33
- type: s,
33
+ type: r,
34
34
  completion: {
35
35
  label: t,
36
36
  detail: t,
37
37
  insertText: t,
38
38
  insertTextMode: f.asIs,
39
39
  insertTextFormat: d.PlainText,
40
- kind: r,
40
+ kind: s,
41
41
  documentation: { kind: "markdown", value: n }
42
42
  }
43
43
  };
44
44
  }
45
- async function k(e, r) {
46
- const t = await e.loadSource(), { name: s } = e, n = e.getDescription(), i = {
47
- label: s,
48
- detail: s,
49
- insertText: s,
45
+ async function k(e, s) {
46
+ const t = await e.loadSource(), { name: r } = e, n = e.getDescription(), i = {
47
+ label: r,
48
+ detail: r,
49
+ insertText: r,
50
50
  insertTextMode: f.asIs,
51
51
  insertTextFormat: d.PlainText,
52
- kind: r
52
+ kind: s
53
53
  }, a = {
54
- name: s,
54
+ name: r,
55
55
  description: n,
56
56
  type: "dictionary",
57
57
  properties: [],
@@ -62,8 +62,8 @@ async function k(e, r) {
62
62
  const [o, c] = P(t.fields, n, !0);
63
63
  return a.properties = o, i.documentation = { kind: "markdown", value: c }, a;
64
64
  }
65
- async function v(e, r) {
66
- const { name: t, dictionaryVariables: s } = e, n = e.getDescription(), i = s.reduce((a, o) => {
65
+ async function v(e, s) {
66
+ const { name: t, dictionaryVariables: r } = e, n = e.getDescription(), i = r.reduce((a, o) => {
67
67
  a !== "" && (a += `
68
68
 
69
69
  `), a += `**${o.name}**
@@ -76,40 +76,40 @@ ${c}`), a;
76
76
  name: t,
77
77
  description: n,
78
78
  type: "dictionary",
79
- properties: await w(s, g.Field),
79
+ properties: await g(r, w.Field),
80
80
  completion: {
81
81
  label: t,
82
82
  detail: t,
83
83
  insertText: t,
84
84
  insertTextMode: f.asIs,
85
85
  insertTextFormat: d.PlainText,
86
- kind: r,
86
+ kind: s,
87
87
  documentation: { kind: "markdown", value: i }
88
88
  }
89
89
  };
90
90
  }
91
91
  async function l(e = "en") {
92
- const r = h.get(e);
93
- if (r)
94
- return r;
92
+ const s = h.get(e);
93
+ if (s)
94
+ return s;
95
95
  if (!F.has(e))
96
96
  return await l("en");
97
97
  try {
98
- const t = await fetch(m(`./assets/arcade-language/profiles/messages.${e}.json`));
98
+ const t = await fetch(m(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
99
99
  return t.ok ? E(e, await t.json()) : e === "en" ? null : await l("en");
100
100
  } catch {
101
101
  return null;
102
102
  }
103
103
  }
104
104
  const h = /* @__PURE__ */ new Map();
105
- function E(e, r) {
105
+ function E(e, s) {
106
106
  const t = /* @__PURE__ */ new Map();
107
- return r.forEach((s) => {
108
- t.set(s.id, s);
107
+ return s.forEach((r) => {
108
+ t.set(r.id, r);
109
109
  }), h.set(e, t), t;
110
110
  }
111
- async function I(e, r = "en") {
112
- return (await l(r))?.get(e) ?? null;
111
+ async function I(e, s = "en") {
112
+ return (await l(s))?.get(e) ?? null;
113
113
  }
114
114
  function $(e) {
115
115
  return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
@@ -135,13 +135,13 @@ function p(e) {
135
135
  return { ...e, type: e.type };
136
136
  }
137
137
  }
138
- async function j(e, r = "en") {
138
+ async function j(e, s = "en") {
139
139
  if (!y(e))
140
140
  return;
141
- const t = await I(e.id, r);
141
+ const t = await I(e.id, s);
142
142
  if (!t)
143
143
  return;
144
- const s = {
144
+ const r = {
145
145
  bundles: [...t.bundles],
146
146
  variables: [],
147
147
  hiddenApiItems: e.hiddenApiItems?.map((n) => n.toLowerCase())
@@ -152,7 +152,7 @@ async function j(e, r = "en") {
152
152
  const i = e.definitions[n.name];
153
153
  switch (n.type) {
154
154
  case "dictionary":
155
- return s.variables.push(
155
+ return r.variables.push(
156
156
  p({
157
157
  ...n,
158
158
  type: n.type,
@@ -160,21 +160,21 @@ async function j(e, r = "en") {
160
160
  })
161
161
  );
162
162
  case "feature":
163
- return A(i) ? s.variables.push({ ...n, type: n.type, definition: i }) : void 0;
163
+ return A(i) ? r.variables.push({ ...n, type: n.type, definition: i }) : void 0;
164
164
  case "featureSet":
165
- return b(i) ? s.variables.push({ ...n, type: n.type, definition: i }) : void 0;
165
+ return b(i) ? r.variables.push({ ...n, type: n.type, definition: i }) : void 0;
166
166
  case "featureSetCollection":
167
- return T(i) ? s.variables.push({ ...n, type: n.type, definition: i }) : void 0;
167
+ return T(i) ? r.variables.push({ ...n, type: n.type, definition: i }) : void 0;
168
168
  default:
169
- return s.variables.push(p(n));
169
+ return r.variables.push(p(n));
170
170
  }
171
- }), $(e) && s.variables.push(...e.additionalVariables ?? []), s;
171
+ }), $(e) && r.variables.push(...e.additionalVariables ?? []), r;
172
172
  }
173
173
  class B extends x {
174
174
  constructor() {
175
175
  super("arcade", {
176
176
  apiPath: "./assets/arcade-language/api",
177
- apiPrefix: "messages."
177
+ apiPrefix: "arcade-api.t9n."
178
178
  });
179
179
  }
180
180
  /**
@@ -187,23 +187,23 @@ class B extends x {
187
187
  * @param locale The locale to use for the model context.
188
188
  * @returns The EditorProfile for the model.
189
189
  */
190
- async setProfileForModel(r, t, s = { locale: "en" }) {
191
- y(t) && (t = await j(t, s.locale));
190
+ async setProfileForModel(s, t, r = { locale: "en" }) {
191
+ y(t) && (t = await j(t, r.locale));
192
192
  const n = await M(
193
- s.locale,
193
+ r.locale,
194
194
  m("./assets/arcade-language/t9n"),
195
195
  "messages."
196
196
  );
197
197
  if (!n)
198
- throw new Error(`Failed to load the language bundle for ${s.locale}`);
199
- this.disposeForModel(r);
200
- const i = this._getApiKey(r), a = new D(t, n);
198
+ throw new Error(`Failed to load the language bundle for ${r.locale}`);
199
+ this.disposeForModel(s);
200
+ const i = this._getApiKey(s), a = new D(t, n);
201
201
  this._modelToProfileMap.set(i, a);
202
202
  const o = await S(a);
203
- this.updateApiContextForModel(r, {
204
- locale: s.locale,
203
+ this.updateApiContextForModel(s, {
204
+ locale: r.locale,
205
205
  profile: o,
206
- snippets: s.snippets
206
+ snippets: r.snippets
207
207
  });
208
208
  }
209
209
  }
@@ -2,7 +2,7 @@ import { importArcade as C } from "@arcgis/core-adapter";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.51
5
+ * v4.32.0-next.54
6
6
  */
7
7
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
8
8
  function u(t) {
@@ -9,7 +9,7 @@ import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.51
12
+ * v4.32.0-next.54
13
13
  */
14
14
  const S = [
15
15
  "<=",
@@ -3,7 +3,7 @@ import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.51
6
+ * v4.32.0-next.54
7
7
  */
8
8
  function a() {
9
9
  return !!window.MonacoEnvironment?.getWorkerUrl;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.51
4
+ * v4.32.0-next.54
5
5
  */
6
6
  function t(e) {
7
7
  switch (e.type) {
@@ -9,7 +9,7 @@ import { Emitter as $, Uri as A } from "monaco-editor";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.51
12
+ * v4.32.0-next.54
13
13
  */
14
14
  function B(t) {
15
15
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
@@ -5,7 +5,7 @@ import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.51
8
+ * v4.32.0-next.54
9
9
  */
10
10
  async function ne(l) {
11
11
  return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
6
6
  /*!
7
7
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- * v4.32.0-next.51
9
+ * v4.32.0-next.54
10
10
  */
11
11
  function g(r, t, n, m) {
12
12
  if (!t)
@@ -2,7 +2,7 @@ import { makeRuntime as t } from "@arcgis/lumina";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.51
5
+ * v4.32.0-next.54
6
6
  */
7
7
  const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
8
8
  export {
@@ -5,7 +5,7 @@ import { g as b } from "./runtime.js";
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.51
8
+ * v4.32.0-next.54
9
9
  */
10
10
  const x = (r) => {
11
11
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
@@ -73,13 +73,13 @@ function E(r) {
73
73
  }
74
74
  }), i;
75
75
  }
76
- const p = "arcgis-sql-expression";
76
+ const d = "arcgis-sql-expression";
77
77
  class w extends g {
78
78
  constructor() {
79
- super(p, {
79
+ super(d, {
80
80
  apiPath: "./assets/sql-language/api",
81
- apiPrefix: "messages."
82
- }), this._languageId = p, this._layerMap = /* @__PURE__ */ new Map();
81
+ apiPrefix: "sql-api.t9n."
82
+ }), this._languageId = d, this._layerMap = /* @__PURE__ */ new Map();
83
83
  }
84
84
  // TODO: try to rely on editor profile instance instead of storing a feature layer
85
85
  updateFeatureLayerForModel(e, i) {
@@ -107,15 +107,15 @@ class w extends g {
107
107
  locale: t.locale,
108
108
  profile: l
109
109
  });
110
- const d = i?.variables?.find((f) => f.name === "$layer");
111
- d && this.updateFeatureLayerForModel(e, d.definition);
110
+ const p = i?.variables?.find((f) => f.name === "$layer");
111
+ p && this.updateFeatureLayerForModel(e, p.definition);
112
112
  }
113
113
  }
114
- const n = new w(), I = {
114
+ const n = new w(), q = {
115
115
  setProfileForModel: n.setProfileForModel.bind(n),
116
116
  getApiLibraryForModel: n.getApiLibraryForModel.bind(n)
117
117
  };
118
118
  export {
119
119
  n as a,
120
- I as s
120
+ q as s
121
121
  };
@@ -8,7 +8,7 @@ import { a as d } from "./sql-expr-defaults.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.51
11
+ * v4.32.0-next.54
12
12
  */
13
13
  let h = new _();
14
14
  class k {
@@ -3,7 +3,7 @@ import { g as t } from "./runtime.js";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.51
6
+ * v4.32.0-next.54
7
7
  */
8
8
  const s = o(t);
9
9
  export {
@@ -15,7 +15,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
15
15
  /*!
16
16
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
18
- * v4.32.0-next.51
18
+ * v4.32.0-next.54
19
19
  */
20
20
  const $ = w`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`;
21
21
  class y extends _ {
@@ -9,7 +9,7 @@ import { css as C } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.51
12
+ * v4.32.0-next.54
13
13
  */
14
14
  const A = C`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
15
15
  lines: !0,
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.51
13
+ * v4.32.0-next.54
14
14
  */
15
15
  function v(o) {
16
16
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
@@ -14,7 +14,7 @@ import { load as b } from "@arcgis/components-controllers";
14
14
  /*!
15
15
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
17
- * v4.32.0-next.51
17
+ * v4.32.0-next.54
18
18
  */
19
19
  c.register({
20
20
  id: n.languageId,
@@ -8,7 +8,7 @@ import { css as m } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.51
11
+ * v4.32.0-next.54
12
12
  */
13
13
  const u = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
14
  function g(l) {
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.51
13
+ * v4.32.0-next.54
14
14
  */
15
15
  const _ = b`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
16
16
  class v extends h {
@@ -9,7 +9,7 @@ import { css as h } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.51
12
+ * v4.32.0-next.54
13
13
  */
14
14
  const g = h`arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}}`;
15
15
  class f extends s {
@@ -8,7 +8,7 @@ import { css as d } from "@lit/reactive-element/css-tag.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.51
11
+ * v4.32.0-next.54
12
12
  */
13
13
  const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
14
14
  class f extends r {
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2024-12-17T13:08:05",
2
+ "timestamp": "2024-12-18T19:44:39",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.32.0-next.51",
5
+ "version": "4.32.0-next.54",
6
6
  "typescriptVersion": "5.6.3"
7
7
  },
8
8
  "schemaVersion": "1.0.0",
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2024-12-17T13:08:05",
2
+ "timestamp": "2024-12-18T19:44:39",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "4.32.0-next.51",
5
+ "version": "4.32.0-next.54",
6
6
  "typescriptVersion": "5.6.3"
7
7
  },
8
8
  "components": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@arcgis/coding-components",
4
- "version": "4.32.0-next.51",
4
+ "version": "4.32.0-next.54",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { s as p } from "./chunks/sql-expr-defaults.js";
4
4
  /*!
5
5
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
7
- * v4.32.0-next.51
7
+ * v4.32.0-next.54
8
8
  */
9
9
  const a = s, r = t;
10
10
  export {
package/dist/loader.js CHANGED
@@ -3,7 +3,7 @@ import { makeDefineCustomElements as i } from "@arcgis/lumina";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.51
6
+ * v4.32.0-next.54
7
7
  */
8
8
  const o = i(e, {
9
9
  "arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "4.32.0-next.51",
3
+ "version": "4.32.0-next.54",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -36,12 +36,12 @@
36
36
  ],
37
37
  "license": "SEE LICENSE IN LICENSE.md",
38
38
  "dependencies": {
39
- "@arcgis/arcade-languageservice": "4.32.0-next.51",
40
- "@arcgis/components-controllers": "4.32.0-next.51",
41
- "@arcgis/components-utils": "4.32.0-next.51",
42
- "@arcgis/core-adapter": "4.32.0-next.51",
43
- "@arcgis/languages-api-utils": "4.32.0-next.51",
44
- "@arcgis/lumina": "4.32.0-next.51",
39
+ "@arcgis/arcade-languageservice": "4.32.0-next.54",
40
+ "@arcgis/components-controllers": "4.32.0-next.54",
41
+ "@arcgis/components-utils": "4.32.0-next.54",
42
+ "@arcgis/core-adapter": "4.32.0-next.54",
43
+ "@arcgis/languages-api-utils": "4.32.0-next.54",
44
+ "@arcgis/lumina": "4.32.0-next.54",
45
45
  "monaco-editor": "^0.52.0",
46
46
  "tslib": "^2.7.0",
47
47
  "vscode-languageserver-types": "^3.17.5"
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.51
5
- */
6
- var I=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function y(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function T(e,t,r){let{subscribe:n}=$(t);return n(o=>{o.some(i=>y(e,i.target))&&r()})}var h={};function $(e){let t=e.join(","),r=h[t];if(r!==void 0)return r;let n=new Set,o=new MutationObserver(i=>n.forEach(a=>a(i)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let s={subscribe(i){return n.add(i),{remove:()=>{n.delete(i),n.size===0&&(o.disconnect(),h[t]=void 0)}}}};return h[t]=s,s}function E(e,t){let r=e;for(;r;){let n=r.closest?.(t);if(n)return n;let o=r.getRootNode?.();if(o===globalThis.document)return null;r=o.host}return null}function M(e){return E(e,":is(.calcite-mode-light, .calcite-mode-dark)")?.classList.contains("calcite-mode-dark")?"dark":"light"}function j(e,t,r){return E(e,`[${t}]`)?.getAttribute(t)??r}function A(e){return e.nodeType===Node.ELEMENT_NODE}function S(e){return"setFocus"in e&&typeof e.setFocus=="function"}function f(e,t=""){if(!A(e))return!1;if(e.matches(t))return S(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let n of e.children)if(f(n,t))return!0;let r=e.shadowRoot;if(r){for(let n of r.children)if(f(n,t))return!0}return!1}function U(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){f(e,t);return}let r=new MutationObserver(()=>{r.disconnect(),f(e,t)});r.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]})}function V(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function _(e,t,...r){try{let n=e?.call(t,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,e)}}function u(e){let t="";for(let r=0;r<e;r++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function q(){return[u(2),u(1),u(1),u(1),u(3)].join("-")}var C=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],N=new Set(C),d="en",z={pt:"pt-PT",no:"nb",zh:"zh-CN"};async function g(e,t,r=""){let n=`${t}/${r}`,o=`${n}${e}.json`;return p[o]??(p[o]=w(e,n)),await p[o]}var p={};async function w(e,t){let r=`${t}${e}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return e===d?{}:await w(d,t)}function O(e,t){let r=j(e,"lang",globalThis.navigator?.language||d);return{lang:r,t9nLocale:L(r,t)}}function L(e,t){let[r,n]=e.split("-"),o=r.toLowerCase(),s=o;return n&&(s=`${o}-${n.toUpperCase()}`),s=z[s]??s,t&&s==="nb"?"no":N.has(s)?s:n?L(o):d}function B(e,t,r,n,o){let s,i=()=>void R(e,t,n,o).then(a=>{(s?.lang!==a.lang||s.t9nLocale!==a.t9nLocale||s.t9nStrings!==a.t9nStrings)&&r(a),s=a}).catch(console.error);return i(),T(e,["lang"],i)}async function R(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-"),n){let{lang:o,t9nLocale:s}=O(e,n),i=`${t}/${r}/t9n`,c=r===null?{}:await g(s,i,"messages.");if(r!==null&&Object.keys(c).length===0){let l=`${r}.t9n.`;c=await g(s,i,l)}return{lang:o,t9nLocale:s,t9nStrings:c}}var v='"',m="'";function b(e,t){return new Array(t+1).join(e)}function D(e){let t=v,r=m;e.includes(t)&&!e.includes(r)&&(r=v,t=m);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${r})+)`,"gu");e=e.replace(o,(i,a,c,l)=>a+c+b(r,l.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,a,c,l)=>a+c+b(`\\${t}`,l.length)),t+e+t}function H(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Q(e,t={}){return(e??"").replace(/\{(?<valueName>.*?)\}/gu,(r,n)=>t[n]??r)}function K(e){return`\u200E${e??""}\u200E`}var W=e=>e.replace(P,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),P=/[A-Z]+(?![a-z])|[A-Z]/gu;function Z(e,t){let r=t>k?x:t/F,n=0,o=setInterval(()=>{n+=r,n>=t&&(clearInterval(o),e())},r);return o}var k=4e3,x=2e3,F=4;function G(e){return e!==null}function J(e){return e!==void 0}function X(e,t=100){let r;return(...n)=>{let o=()=>{clearTimeout(r),e(...n)};clearTimeout(r),r=setTimeout(o,t)}}function Y(e,t,r=!1){if(!e||!t)return!1;let n=new URL(e),o=new URL(t);return!r&&n.protocol!==o.protocol||n.host==null||o.host==null?!1:n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function ee(e){try{return new URL(e),!0}catch{return!1}}export{I as a,T as b,M as c,U as d,V as e,_ as f,q as g,N as h,g as i,O as j,L as k,B as l,D as m,H as n,Q as o,K as p,W as q,Z as r,G as s,J as t,X as u,Y as v,ee as w};
@@ -1,10 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.51
5
- */
6
- import{a as T,b as M,c as j,d as f,e as A,f as F,g as $}from"./T7EGWH5Y.js";import{c as m,d,e as l}from"./4MY5A2ZJ.js";import{f as v}from"./RPER5OG3.js";import{x as u}from"./3NROR5NJ.js";import{h,i as g,v as k,w as x}from"./DYXU4EMG.js";function L(){return!!window.MonacoEnvironment?.getWorkerUrl}var V=new Map;function G(e){L()||(window.MonacoEnvironment={getWorker:async(i,t)=>{let a=V.get(t)??`${e}/code-editor/editor.worker.js`;switch(t){case"json":a=`${e}/code-editor/json.worker.js`;break;case"css":a=`${e}/code-editor/css.worker.js`;break;case"html":a=`${e}/code-editor/html.worker.js`;break;case"typescript":case"javascript":a=`${e}/code-editor/ts.worker.js`;break;case"arcade":a=`${e}/code-editor/arcade.worker.js`;break;case"arcgis-sql-expression":a=`${e}/code-editor/sql-expr.worker.js`;break}if(!x(a)||k(a,globalThis.location.href,!0))return new Worker(a,{name:t});let r=await(await v())(a,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([r.data],{type:"text/javascript"})))}})}async function z(){return(await E()).getArcadeDiagnosticService()}async function E(){return await import("./SFDNZDMO.js")}async function D(e){let{apiVersion:i,bundles:t,hiddenApiItems:a}=e.toEditorProfileDefinition(),r=await P(e.dictionaryVariables);return{apiVersion:i,bundles:t,variables:r,hiddenApiItems:a?.map(n=>n.toLowerCase())}}async function P(e,i=m.Variable){return await Promise.all(e.map(async t=>{switch(t.type){case"dictionary":return await R(t,i);case"feature":return await C(t,i);default:return S(t,i)}}))}function S(e,i){let{name:t,type:a}=e,r=e.getDescription();return{name:t,description:r,type:a,completion:{label:t,detail:t,insertText:t,insertTextMode:l.asIs,insertTextFormat:d.PlainText,kind:i,documentation:{kind:"markdown",value:r}}}}async function C(e,i){let t=await e.loadSource(),{name:a}=e,r=e.getDescription(),n={label:a,detail:a,insertText:a,insertTextMode:l.asIs,insertTextFormat:d.PlainText,kind:i},s={name:a,description:r,type:"dictionary",properties:[],completion:n};if(!t)return s;let[o,c]=A(t.fields,r,!0);return s.properties=o,n.documentation={kind:"markdown",value:c},s}async function R(e,i){let{name:t,dictionaryVariables:a}=e,r=e.getDescription(),n=a.reduce((s,o)=>{s!==""&&(s+=`
7
-
8
- `),s+=`**${o.name}**
9
- ${o.type}`;let c=o.getDescription();return c&&(s+=`
10
- ${c}`),s},r);return{name:t,description:r,type:"dictionary",properties:await P(a,m.Field),completion:{label:t,detail:t,insertText:t,insertTextMode:l.asIs,insertTextFormat:d.PlainText,kind:i,documentation:{kind:"markdown",value:n}}}}async function y(e="en"){let i=I.get(e);if(i)return i;if(!h.has(e))return await y("en");try{let t=await fetch(u(`./assets/arcade-language/profiles/messages.${e}.json`));return t.ok?U(e,await t.json()):e==="en"?null:await y("en")}catch{return null}}var I=new Map;function U(e,i){let t=new Map;return i.forEach(a=>{t.set(a.id,a)}),I.set(e,t),t}async function W(e,i="en"){return(await y(i))?.get(e)??null}function q(e){return!!e&&typeof e=="object"&&"additionalVariables"in e&&Array.isArray(e.additionalVariables)}function K(e){return e?.map(w)}function w(e){switch(e.type){case"dictionary":return{...e,type:e.type,properties:K(e.properties)};case"array":return{...e,type:e.type,elementType:{type:"number",name:"number"}};default:return{...e,type:e.type}}}async function O(e,i="en"){if(!f(e))return;let t=await W(e.id,i);if(!t)return;let a={bundles:[...t.bundles],variables:[],hiddenApiItems:e.hiddenApiItems?.map(r=>r.toLowerCase())};return t.variables.forEach(r=>{if(e.disabledVariables?.includes(r.name))return;let n=e.definitions[r.name];switch(r.type){case"dictionary":return a.variables.push(w({...r,type:r.type,properties:Array.isArray(n)?[...n]:r.properties}));case"feature":return T(n)?a.variables.push({...r,type:r.type,definition:n}):void 0;case"featureSet":return M(n)?a.variables.push({...r,type:r.type,definition:n}):void 0;case"featureSetCollection":return j(n)?a.variables.push({...r,type:r.type,definition:n}):void 0;default:return a.variables.push(w(r))}}),q(e)&&a.variables.push(...e.additionalVariables??[]),a}var b=class extends ${constructor(){super("arcade",{apiPath:"./assets/arcade-language/api",apiPrefix:"messages."})}async setProfileForModel(i,t,a={locale:"en"}){f(t)&&(t=await O(t,a.locale));let r=await g(a.locale,u("./assets/arcade-language/t9n"),"messages.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(i);let n=this._getApiKey(i),s=new F(t,r);this._modelToProfileMap.set(n,s);let o=await D(s);this.updateApiContextForModel(i,{locale:a.locale,profile:o,snippets:a.snippets})}},p=new b,Y={setProfileForModel:p.setProfileForModel.bind(p),getApiLibraryForModel:p.getApiLibraryForModel.bind(p)};export{G as a,z as b,E as c,p as d};