@arcgis/coding-components 5.1.0-next.1 → 5.1.0-next.11

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 (36) hide show
  1. package/dist/cdn/2ORJ3A7K.js +4 -0
  2. package/dist/cdn/2TB2LHRA.js +2 -0
  3. package/dist/cdn/{UNTQC5M2.js → 44MLHT3A.js} +1 -1
  4. package/dist/cdn/{3B6KNFHK.js → BQLG62QR.js} +4 -4
  5. package/dist/cdn/{KKQIZTTK.js → F7IHWMK7.js} +1 -1
  6. package/dist/cdn/{NZY7KXAF.js → H75CMJQP.js} +1 -1
  7. package/dist/cdn/{Z56TGOZF.js → HVHTW7TF.js} +2 -2
  8. package/dist/cdn/{3YWUK77P.js → L2AQ5FXC.js} +1 -1
  9. package/dist/cdn/{EPMYM35I.js → M4URDN2E.js} +1 -1
  10. package/dist/cdn/{DEWLD2VE.js → NXNOBP7G.js} +1 -1
  11. package/dist/cdn/{5JKSRJZY.js → P5EURHTL.js} +1 -1
  12. package/dist/cdn/{3FSDLLYC.js → QWLPT7LO.js} +1 -1
  13. package/dist/cdn/{N2FN7LBN.js → RYBVZEI5.js} +1 -1
  14. package/dist/cdn/{BYO7RLJT.js → T7GEIGWF.js} +1 -1
  15. package/dist/cdn/{QXQAIN3R.js → TDEKR2LM.js} +1 -1
  16. package/dist/cdn/VD5UOV5M.js +6 -0
  17. package/dist/cdn/XEUCI6KC.js +2 -0
  18. package/dist/cdn/{D2RP5367.js → ZGBZ6BXY.js} +1 -1
  19. package/dist/cdn/assets/code-editor/arcade.worker.js +8 -0
  20. package/dist/cdn/assets/code-editor/sql-expr.worker.js +2192 -2186
  21. package/dist/cdn/index.js +1 -1
  22. package/dist/chunks/arcade-defaults.js +134 -132
  23. package/dist/chunks/arcade-mode.js +2 -2
  24. package/dist/chunks/language-defaults-base.js +3 -2
  25. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +101 -96
  26. package/dist/components/arcgis-arcade-editor/customElement.d.ts +5 -1
  27. package/dist/components/arcgis-arcade-editor/customElement.js +72 -59
  28. package/dist/components/arcgis-arcade-results/customElement.js +13 -13
  29. package/dist/docs/api.json +1 -1
  30. package/dist/docs/docs.json +1 -1
  31. package/dist/docs/web-types.json +1 -1
  32. package/package.json +5 -5
  33. package/dist/cdn/6QWZ6LSH.js +0 -2
  34. package/dist/cdn/ASVCAO4G.js +0 -4
  35. package/dist/cdn/MY63AUW2.js +0 -2
  36. package/dist/cdn/RXNRHK3U.js +0 -6
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{I as s,u as e}from"./EMMNZESW.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./ASVCAO4G.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./6QWZ6LSH.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./D2RP5367.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./UNTQC5M2.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./N2FN7LBN.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./3C7TCPV5.js")],"arcgis-code-viewer":[()=>import("./EPMYM35I.js"),"language,round"],"arcgis-editor-variables":[()=>import("./DTZPALJA.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./NZY7KXAF.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./QXQAIN3R.js"),"hideSideBar,messages:,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
2
+ import{I as s,u as e}from"./EMMNZESW.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./2ORJ3A7K.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./2TB2LHRA.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./ZGBZ6BXY.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./44MLHT3A.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./RYBVZEI5.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./3C7TCPV5.js")],"arcgis-code-viewer":[()=>import("./M4URDN2E.js"),"language,round"],"arcgis-editor-variables":[()=>import("./DTZPALJA.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./H75CMJQP.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./TDEKR2LM.js"),"hideSideBar,messages:,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
@@ -1,145 +1,145 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { i as g, a as D, b as v, c as F, d as S, e as M, f as A, m as L, L as k, E } from "./language-defaults-base.js";
3
- import { supportedLocales as I, fetchT9nStringsBundle as C } from "@arcgis/toolkit/intl";
4
- import { g as h } from "./runtime.js";
5
- import { CompletionItemKind as T, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
6
- import { getDeclaredPixelMembers as j } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
2
+ import { i as h, a as D, b as v, c as F, d as M, e as S, g as L, f as A, m as k, L as E, E as I } from "./language-defaults-base.js";
3
+ import { supportedLocales as C, fetchT9nStringsBundle as j } from "@arcgis/toolkit/intl";
4
+ import { g as P } from "./runtime.js";
5
+ import { CompletionItemKind as w, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
6
+ import { getDeclaredPixelMembers as $ } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
7
7
  import "@arcgis/toolkit/type";
8
- async function $(e) {
9
- const { apiVersion: r, bundles: n, hiddenApiItems: i } = e.toEditorProfileDefinition(), t = await P(e.dictionaryVariables);
10
- return { apiVersion: r, bundles: n, variables: t, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
8
+ async function B(e) {
9
+ const { apiVersion: i, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), o = await T(e.dictionaryVariables);
10
+ return { apiVersion: i, bundles: t, variables: o, hiddenApiItems: s?.map((a) => a.toLowerCase()) };
11
11
  }
12
- async function P(e, r = T.Variable) {
12
+ async function T(e, i = w.Variable) {
13
13
  return await Promise.all(
14
- e.map(async (n) => {
15
- switch (n.type) {
14
+ e.map(async (t) => {
15
+ switch (t.type) {
16
16
  case "dictionary":
17
- return await q(n, r);
17
+ return await z(t, i);
18
18
  case "pixel":
19
- return await _(n, r);
19
+ return await q(t, i);
20
20
  // Voxel is equivalent to features in regards to the languageservice.
21
21
  // They both have equivalent fields, but some voxel fields are different types (arrays)
22
22
  // than what is reported in .fields, so in the sidebar we treat a bit differently.
23
23
  // In autocomplete we don't differentiate types, so we can use the same logic as features.
24
24
  case "voxel":
25
25
  case "feature":
26
- return await K(n, r);
26
+ return await _(t, i);
27
27
  default:
28
- return B(n, r);
28
+ return K(t, i);
29
29
  }
30
30
  })
31
31
  );
32
32
  }
33
- function B(e, r) {
34
- const { name: n, type: i } = e, t = e.getDescription();
33
+ function K(e, i) {
34
+ const { name: t, type: s } = e, o = e.getDescription(), a = i === w.Field ? L(t, !1) : t;
35
35
  return {
36
- name: n,
37
- description: t,
38
- type: i,
36
+ name: t,
37
+ description: o,
38
+ type: s,
39
39
  completion: {
40
- label: n,
41
- detail: n,
42
- insertText: n,
40
+ label: t,
41
+ detail: t,
42
+ insertText: a,
43
43
  insertTextMode: f.asIs,
44
44
  insertTextFormat: p.PlainText,
45
- kind: r,
46
- documentation: { kind: "markdown", value: t }
45
+ kind: i,
46
+ documentation: { kind: "markdown", value: o }
47
47
  }
48
48
  };
49
49
  }
50
- async function K(e, r) {
51
- const n = await e.loadSource(), { name: i } = e, t = e.getDescription(), s = {
52
- label: i,
53
- detail: i,
54
- insertText: i,
50
+ async function _(e, i) {
51
+ const t = await e.loadSource(), { name: s } = e, o = e.getDescription(), a = {
52
+ label: s,
53
+ detail: s,
54
+ insertText: s,
55
55
  insertTextMode: f.asIs,
56
56
  insertTextFormat: p.PlainText,
57
- kind: r
58
- }, o = {
59
- name: i,
60
- description: t,
57
+ kind: i
58
+ }, n = {
59
+ name: s,
60
+ description: o,
61
61
  type: "dictionary",
62
62
  properties: [],
63
- completion: s
63
+ completion: a
64
64
  };
65
- if (!n)
66
- return o;
67
- const [a, c] = A(n.fields, t, !0);
68
- return o.properties = a, s.documentation = { kind: "markdown", value: c }, o;
65
+ if (!t)
66
+ return n;
67
+ const [r, c] = A(t.fields, o, !0);
68
+ return n.properties = r, a.documentation = { kind: "markdown", value: c }, n;
69
69
  }
70
- async function _(e, r) {
71
- const n = await e.loadSource(), i = e.toProfileVariableDefinition();
72
- if (i.type !== "pixel")
70
+ async function q(e, i) {
71
+ const t = await e.loadSource(), s = e.toProfileVariableDefinition();
72
+ if (s.type !== "pixel")
73
73
  throw new Error("Incorrect definition passed to pixel variable");
74
- const { name: t } = e, s = e.getDescription(), o = {
75
- label: t,
76
- detail: t,
77
- insertText: t,
74
+ const { name: o } = e, a = e.getDescription(), n = {
75
+ label: o,
76
+ detail: o,
77
+ insertText: o,
78
78
  insertTextMode: f.asIs,
79
79
  insertTextFormat: p.PlainText,
80
- kind: r
81
- }, a = {
82
- name: t,
83
- description: s,
80
+ kind: i
81
+ }, r = {
82
+ name: o,
83
+ description: a,
84
84
  type: "dictionary",
85
85
  properties: [],
86
- completion: o
86
+ completion: n
87
87
  };
88
- if (!n || !i.definition)
89
- return a;
90
- const c = await j(n), [d, l] = L(c, s);
91
- return a.properties = d, o.documentation = { kind: "markdown", value: l }, a;
88
+ if (!t || !s.definition)
89
+ return r;
90
+ const c = await $(t), [d, l] = k(c, a);
91
+ return r.properties = d, n.documentation = { kind: "markdown", value: l }, r;
92
92
  }
93
- async function q(e, r) {
94
- const { name: n, dictionaryVariables: i } = e, t = e.getDescription(), s = i.reduce((o, a) => {
95
- o !== "" && (o += `
93
+ async function z(e, i) {
94
+ const { name: t, dictionaryVariables: s } = e, o = e.getDescription(), a = s.reduce((n, r) => {
95
+ n !== "" && (n += `
96
96
 
97
- `), o += `**${a.name}**
98
- ${a.type}`;
99
- const c = a.getDescription();
100
- return c && (o += `
101
- ${c}`), o;
102
- }, t);
97
+ `), n += `**${r.name}**
98
+ ${r.type}`;
99
+ const c = r.getDescription();
100
+ return c && (n += `
101
+ ${c}`), n;
102
+ }, o);
103
103
  return {
104
- name: n,
105
- description: t,
104
+ name: t,
105
+ description: o,
106
106
  type: "dictionary",
107
- properties: await P(i, T.Field),
107
+ properties: await T(s, w.Field),
108
108
  completion: {
109
- label: n,
110
- detail: n,
111
- insertText: n,
109
+ label: t,
110
+ detail: t,
111
+ insertText: t,
112
112
  insertTextMode: f.asIs,
113
113
  insertTextFormat: p.PlainText,
114
- kind: r,
115
- documentation: { kind: "markdown", value: s }
114
+ kind: i,
115
+ documentation: { kind: "markdown", value: a }
116
116
  }
117
117
  };
118
118
  }
119
119
  async function y(e = "en") {
120
- const r = x.get(e);
121
- if (r)
122
- return r;
123
- if (!I.has(e))
120
+ const i = b.get(e);
121
+ if (i)
122
+ return i;
123
+ if (!C.has(e))
124
124
  return await y("en");
125
125
  try {
126
- const n = await fetch(h(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
127
- return n.ok ? Q(e, await n.json()) : e === "en" ? null : await y("en");
126
+ const t = await fetch(P(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
127
+ return t.ok ? O(e, await t.json()) : e === "en" ? null : await y("en");
128
128
  } catch {
129
129
  return null;
130
130
  }
131
131
  }
132
- const x = /* @__PURE__ */ new Map();
133
- function Q(e, r) {
134
- const n = /* @__PURE__ */ new Map();
135
- return r.forEach((i) => {
136
- n.set(i.id, i);
137
- }), x.set(e, n), n;
132
+ const b = /* @__PURE__ */ new Map();
133
+ function O(e, i) {
134
+ const t = /* @__PURE__ */ new Map();
135
+ return i.forEach((s) => {
136
+ t.set(s.id, s);
137
+ }), b.set(e, t), t;
138
138
  }
139
- async function U(e, r = "en") {
140
- return (await y(r))?.get(e) ?? null;
139
+ async function Q(e, i = "en") {
140
+ return (await y(i))?.get(e) ?? null;
141
141
  }
142
- function z(e) {
142
+ function U(e) {
143
143
  return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
144
144
  }
145
145
  function G(e) {
@@ -163,44 +163,46 @@ function m(e) {
163
163
  return { ...e, type: e.type };
164
164
  }
165
165
  }
166
- async function H(e, r = "en") {
167
- if (!g(e))
166
+ async function H(e, i = "en") {
167
+ if (!h(e))
168
168
  return;
169
- const n = await U(e.id, r);
170
- if (!n)
169
+ const t = await Q(e.id, i);
170
+ if (!t)
171
171
  return;
172
- const i = {
173
- bundles: [...n.bundles],
172
+ const s = e.definitions, o = new Map(
173
+ Object.entries(s).map(([n, r]) => [n.toLowerCase(), r])
174
+ ), a = {
175
+ bundles: [...t.bundles],
174
176
  variables: [],
175
- hiddenApiItems: e.hiddenApiItems?.map((t) => t.toLowerCase())
177
+ hiddenApiItems: e.hiddenApiItems?.map((n) => n.toLowerCase())
176
178
  };
177
- return n.variables.forEach((t) => {
178
- if (e.disabledVariables?.includes(t.name))
179
+ return t.variables.forEach((n) => {
180
+ if (e.disabledVariables?.includes(n.name))
179
181
  return;
180
- const s = e.definitions[t.name];
181
- switch (t.type) {
182
+ const r = o.get(n.name.toLowerCase());
183
+ switch (n.type) {
182
184
  case "dictionary":
183
- return i.variables.push(
185
+ return a.variables.push(
184
186
  m({
185
- ...t,
186
- type: t.type,
187
- properties: Array.isArray(s) ? [...s] : t.properties
187
+ ...n,
188
+ type: n.type,
189
+ properties: Array.isArray(r) ? [...r] : n.properties
188
190
  })
189
191
  );
190
192
  case "feature":
191
- return M(s) ? i.variables.push({ ...t, type: "feature", definition: s }) : void 0;
193
+ return S(r) ? a.variables.push({ ...n, type: "feature", definition: r }) : void 0;
192
194
  case "pixel":
193
- return S(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
195
+ return M(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
194
196
  case "voxel":
195
- return F(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
197
+ return F(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
196
198
  case "featureSet":
197
- return v(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
199
+ return v(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
198
200
  case "featureSetCollection":
199
- return D(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
201
+ return D(r) ? a.variables.push({ ...n, type: n.type, definition: r }) : void 0;
200
202
  default:
201
- return i.variables.push(m(t));
203
+ return a.variables.push(m(n));
202
204
  }
203
- }), z(e) && i.variables.push(...e.additionalVariables ?? []), i;
205
+ }), U(e) && a.variables.push(...e.additionalVariables ?? []), a;
204
206
  }
205
207
  const J = [
206
208
  "catalog-footprint",
@@ -217,13 +219,13 @@ const J = [
217
219
  function N(e) {
218
220
  return !!e && typeof e == "object" && "type" in e && typeof e.type == "string" && J.includes(e.type);
219
221
  }
220
- const O = {
222
+ const R = {
221
223
  filterFsCollectionLayersFromMap: (e) => (
222
224
  // only some layers are supported in arcade feature sets, one example: https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/10715
223
225
  N(e)
224
226
  )
225
227
  };
226
- class R extends k {
228
+ class W extends E {
227
229
  /**
228
230
  * Per-model update chaining to serialize profile updates.
229
231
  *
@@ -254,40 +256,40 @@ class R extends k {
254
256
  * @param locale The locale to use for the model context.
255
257
  * @returns The EditorProfile for the model.
256
258
  */
257
- async setProfileForModel(r, n, i = { locale: "en" }) {
258
- const t = this._getApiKey(r), o = (this.#e.get(t) || Promise.resolve()).then(async () => {
259
- const c = n, d = g(c) ? await H(c, i.locale) : c, l = await C(
260
- i.locale,
261
- h("./assets/editor-profile/t9n"),
259
+ async setProfileForModel(i, t, s = { locale: "en" }) {
260
+ const o = this._getApiKey(i), n = (this.#e.get(o) || Promise.resolve()).then(async () => {
261
+ const c = t, d = h(c) ? await H(c, s.locale) : c, l = await j(
262
+ s.locale,
263
+ P("./assets/editor-profile/t9n"),
262
264
  "messages."
263
265
  );
264
266
  if (!l)
265
- throw new Error(`Failed to load the language bundle for ${i.locale}`);
266
- this.disposeForModel(r);
267
- const w = new E(
267
+ throw new Error(`Failed to load the language bundle for ${s.locale}`);
268
+ this.disposeForModel(i);
269
+ const g = new I(
268
270
  d,
269
271
  l,
270
- i.locale,
271
- O
272
+ s.locale,
273
+ R
272
274
  );
273
- this._modelToProfileMap.set(t, w);
274
- const b = await $(w);
275
- this.updateApiContextForModel(r, {
276
- locale: i.locale,
277
- profile: b,
278
- snippets: i.snippets
275
+ this._modelToProfileMap.set(o, g);
276
+ const x = await B(g);
277
+ this.updateApiContextForModel(i, {
278
+ locale: s.locale,
279
+ profile: x,
280
+ snippets: s.snippets
279
281
  });
280
- }), a = o.finally(() => {
281
- this.#e.get(t) === a && this.#e.delete(t);
282
+ }), r = n.finally(() => {
283
+ this.#e.get(o) === r && this.#e.delete(o);
282
284
  });
283
- return this.#e.set(t, a), await o;
285
+ return this.#e.set(o, r), await n;
284
286
  }
285
287
  }
286
- const u = new R(), te = {
288
+ const u = new W(), ne = {
287
289
  setProfileForModel: u.setProfileForModel.bind(u),
288
290
  getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
289
291
  };
290
292
  export {
291
- te as a,
293
+ ne as a,
292
294
  u as b
293
295
  };
@@ -118,7 +118,7 @@ const F = [
118
118
  { include: "@whitespace" },
119
119
  // regular expression: ensure it is terminated before beginning (otherwise it is an operator)
120
120
  [
121
- /\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,
121
+ /\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/u,
122
122
  { token: "regexp", bracket: "@open", next: "@regexp" }
123
123
  ],
124
124
  // delimiters and operators
@@ -161,7 +161,7 @@ const F = [
161
161
  // whitespace
162
162
  { include: "@whitespace" },
163
163
  // from keyword
164
- [/from/u, { token: "keyword", next: "@popall" }]
164
+ [/from(?=\s)/u, { token: "keyword", next: "@popall" }]
165
165
  ],
166
166
  // State after `for` keyword: expects '('
167
167
  forLoopInit: [
@@ -1030,8 +1030,9 @@ export {
1030
1030
  tt as d,
1031
1031
  J as e,
1032
1032
  nt as f,
1033
- Se as g,
1034
- Ce as h,
1033
+ T as g,
1034
+ Se as h,
1035
1035
  st as i,
1036
+ Ce as j,
1036
1037
  ot as m
1037
1038
  };