@arcgis/coding-components 4.30.0-next.9 → 4.30.0-next.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -4
  3. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  4. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  43. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  44. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  45. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +2 -0
  46. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +2 -0
  47. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +2 -0
  48. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +2 -0
  49. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +2 -0
  50. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +2 -0
  51. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +2 -0
  52. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +2 -0
  53. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +2 -0
  54. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +2 -0
  55. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +2 -0
  56. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +2 -0
  57. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +2 -0
  58. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +2 -0
  59. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
  60. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +2 -0
  61. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +2 -0
  62. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
  63. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +2 -0
  64. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
  65. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
  66. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +2 -0
  67. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +2 -0
  68. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +2 -0
  69. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +2 -0
  70. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +2 -0
  71. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
  72. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +2 -0
  73. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +2 -0
  74. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +2 -0
  75. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +2 -0
  76. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +2 -0
  77. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +2 -0
  78. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +2 -0
  79. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +2 -0
  80. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +2 -0
  81. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +2 -0
  82. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +2 -0
  83. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +2 -0
  84. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
  85. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  86. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  87. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  88. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  89. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  90. package/dist/arcgis-coding-components/index.esm.js +2 -2
  91. package/dist/arcgis-coding-components/{p-ee8182a0.js → p-26bd6f29.js} +2 -2
  92. package/dist/arcgis-coding-components/{p-f6ac0a47.js → p-560553f8.js} +3 -3
  93. package/dist/arcgis-coding-components/{p-acf1a47b.js → p-79a7c8f6.js} +2 -2
  94. package/dist/arcgis-coding-components/{p-24963fee.js → p-8ab17e08.js} +3 -3
  95. package/dist/arcgis-coding-components/{p-22acdf9e.js → p-9a8d10a0.js} +1 -1
  96. package/dist/arcgis-coding-components/p-a907183e.js +68 -0
  97. package/dist/arcgis-coding-components/{p-07a4996f.js → p-c1812436.js} +2 -2
  98. package/dist/arcgis-coding-components/p-c8fbc152.entry.js +6 -0
  99. package/dist/arcgis-coding-components/{p-5bb0cc6f.js → p-c96c1f63.js} +2 -2
  100. package/dist/arcgis-coding-components/p-cbbf8c28.js +7 -0
  101. package/dist/arcgis-coding-components/{p-e8d8cb26.js → p-da9568f1.js} +2 -2
  102. package/dist/arcgis-coding-components/{p-3861533c.js → p-e6b496fb.js} +3 -3
  103. package/dist/cjs/{arcade-defaults-9a205209.js → arcade-defaults-4f585faa.js} +625 -248
  104. package/dist/cjs/{arcade-mode-b45aee7d.js → arcade-mode-07b44b47.js} +45 -51
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1652 -290
  106. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  107. package/dist/cjs/{css-19232df4.js → css-c33e390e.js} +1 -1
  108. package/dist/cjs/{cssMode-4f290a37.js → cssMode-db89e9b2.js} +3 -3
  109. package/dist/cjs/{html-8e42ebe7.js → html-a924e3d5.js} +3 -3
  110. package/dist/cjs/{htmlMode-062349b7.js → htmlMode-9caeb45e.js} +3 -3
  111. package/dist/cjs/{index-f8b11b82.js → index-9d3cd341.js} +40 -4
  112. package/dist/cjs/index.cjs.js +3 -3
  113. package/dist/cjs/{javascript-337ae21a.js → javascript-f4f032c8.js} +4 -4
  114. package/dist/cjs/{jsonMode-247b2a02.js → jsonMode-61d579b5.js} +3 -3
  115. package/dist/cjs/loader.cjs.js +3 -3
  116. package/dist/cjs/{tsMode-a95a4dea.js → tsMode-7584a323.js} +3 -3
  117. package/dist/cjs/{typescript-78dffda3.js → typescript-42c3d4ff.js} +3 -3
  118. package/dist/components/arcade-api.js +23 -33
  119. package/dist/components/arcade-contribution.js +72 -13
  120. package/dist/components/arcade-defaults.js +131 -149
  121. package/dist/components/arcade-mode.js +44 -50
  122. package/dist/components/arcade-results.js +47 -60
  123. package/dist/components/arcade-suggestions.js +23 -33
  124. package/dist/components/arcade-variables.js +22 -36
  125. package/dist/components/arcgis-arcade-api.js +1 -1
  126. package/dist/components/arcgis-arcade-editor.js +60 -150
  127. package/dist/components/arcgis-arcade-results.js +1 -1
  128. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  129. package/dist/components/arcgis-arcade-variables.js +1 -1
  130. package/dist/components/arcgis-assets.d.ts +1 -1
  131. package/dist/components/arcgis-assets.js +1 -1
  132. package/dist/components/arcgis-code-editor.js +1 -1
  133. package/dist/components/chunk-IHYYRFLQ.js +1363 -0
  134. package/dist/components/code-editor.js +70 -78
  135. package/dist/components/fields.js +45 -45
  136. package/dist/components/index.js +1 -1
  137. package/dist/components/index2.js +394 -3
  138. package/dist/components/markdown.js +9 -11
  139. package/dist/components/useT9n.js +37 -0
  140. package/dist/components/utilities.js +3 -3
  141. package/dist/esm/{arcade-defaults-2280f825.js → arcade-defaults-82b8fd29.js} +608 -235
  142. package/dist/esm/{arcade-mode-85d869d0.js → arcade-mode-3f43d922.js} +45 -51
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1652 -290
  144. package/dist/esm/arcgis-coding-components.js +4 -4
  145. package/dist/esm/{css-da967c43.js → css-1dbe6092.js} +1 -1
  146. package/dist/esm/{cssMode-b235d424.js → cssMode-d60fa4bd.js} +3 -3
  147. package/dist/esm/{html-4b5f94a0.js → html-13ac939a.js} +3 -3
  148. package/dist/esm/{htmlMode-c9b00fcc.js → htmlMode-83b26098.js} +3 -3
  149. package/dist/esm/{index-f5eb0427.js → index-b792d4a8.js} +40 -4
  150. package/dist/esm/index.js +3 -3
  151. package/dist/esm/{javascript-42627a0e.js → javascript-263a46b1.js} +4 -4
  152. package/dist/esm/{jsonMode-7dce6c2d.js → jsonMode-e06b248a.js} +3 -3
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{tsMode-85663f7f.js → tsMode-69a014ca.js} +3 -3
  155. package/dist/esm/{typescript-911c34c6.js → typescript-c26d15e4.js} +3 -3
  156. package/dist/loader/cdn.js +1 -1
  157. package/dist/loader/index.cjs.js +1 -1
  158. package/dist/loader/index.es2017.js +1 -1
  159. package/dist/loader/index.js +1 -1
  160. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  161. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  162. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  163. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  164. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  165. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  166. package/dist/types/components.d.ts +57 -35
  167. package/dist/types/controllers/useT9n.d.ts +1 -0
  168. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  169. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  170. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  171. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  172. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  173. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  174. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  175. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  176. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  177. package/dist/types/utils/profile/types.d.ts +15 -13
  178. package/dist/types/utils/profile/utils.d.ts +1 -3
  179. package/package.json +23 -23
  180. package/dist/arcgis-coding-components/p-8f70519f.js +0 -7
  181. package/dist/arcgis-coding-components/p-9d23e7cc.entry.js +0 -6
  182. package/dist/arcgis-coding-components/p-e9157a8c.js +0 -68
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
4
+ * v4.30.0-next.90
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-f8b11b82.js');
8
+ const index = require('./index-9d3cd341.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -20641,7 +20641,7 @@ class DragAndDropObserver extends Disposable {
20641
20641
  }
20642
20642
  }
20643
20643
  const H_REGEX = /(?<tag>[\w\-]+)?(?:#(?<id>[\w\-]+))?(?<class>(?:\.(?:[\w\-]+))*)(?:@(?<name>(?:[\w\_])+))?/;
20644
- function h$1(tag, ...args) {
20644
+ function h(tag, ...args) {
20645
20645
  let attributes;
20646
20646
  let children;
20647
20647
  if (Array.isArray(args[0])) {
@@ -113897,15 +113897,15 @@ class LinesLayout {
113897
113897
  }
113898
113898
  class MovedBlockOverlayWidget extends ViewZoneOverlayWidget {
113899
113899
  constructor(_editor, _viewZone, _move, _kind, _diffModel) {
113900
- const root = h$1('div.diff-hidden-lines-widget');
113900
+ const root = h('div.diff-hidden-lines-widget');
113901
113901
  super(_editor, _viewZone, root.root);
113902
113902
  this._editor = _editor;
113903
113903
  this._move = _move;
113904
113904
  this._kind = _kind;
113905
113905
  this._diffModel = _diffModel;
113906
- this._nodes = h$1('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113907
- h$1('div.text-content@textContent'),
113908
- h$1('div.action-bar@actionBar'),
113906
+ this._nodes = h('div.diff-moved-code-block', { style: { marginRight: '4px' } }, [
113907
+ h('div.text-content@textContent'),
113908
+ h('div.action-bar@actionBar'),
113909
113909
  ]);
113910
113910
  root.root.appendChild(this._nodes.root);
113911
113911
  const editorLayout = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114104,7 +114104,7 @@ class RevertButton {
114104
114104
  this._diffs = _diffs;
114105
114105
  this._selection = _selection;
114106
114106
  this._id = `revertButton${RevertButton.counter++}`;
114107
- this._domNode = h$1('div.revertButton', {
114107
+ this._domNode = h('div.revertButton', {
114108
114108
  title: this._selection
114109
114109
  ? localize('revertSelectedChanges', 'Revert Selected Changes')
114110
114110
  : localize('revertChange', 'Revert Change')
@@ -114577,7 +114577,7 @@ HideUnchangedRegionsFeature = __decorate$1B([
114577
114577
  ], HideUnchangedRegionsFeature);
114578
114578
  class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114579
114579
  constructor(_editor, _viewZone, _unchangedRegion, _unchangedRegionRange, _hide, _modifiedOutlineSource, _revealModifiedHiddenLine, _options) {
114580
- const root = h$1('div.diff-hidden-lines-widget');
114580
+ const root = h('div.diff-hidden-lines-widget');
114581
114581
  super(_editor, _viewZone, root.root);
114582
114582
  this._editor = _editor;
114583
114583
  this._unchangedRegion = _unchangedRegion;
@@ -114586,13 +114586,13 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114586
114586
  this._modifiedOutlineSource = _modifiedOutlineSource;
114587
114587
  this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
114588
114588
  this._options = _options;
114589
- this._nodes = h$1('div.diff-hidden-lines', [
114590
- h$1('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114591
- h$1('div.center@content', { style: { display: 'flex' } }, [
114592
- h$1('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114593
- h$1('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114589
+ this._nodes = h('div.diff-hidden-lines', [
114590
+ h('div.top@top', { title: localize('diff.hiddenLines.top', 'Click or drag to show more above') }),
114591
+ h('div.center@content', { style: { display: 'flex' } }, [
114592
+ h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$$d('a', { title: localize('showUnchangedRegion', 'Show Unchanged Region'), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
114593
+ h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
114594
114594
  ]),
114595
- h$1('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114595
+ h('div.bottom@bottom', { title: localize('diff.bottom', 'Click or drag to show more below'), role: 'button' }),
114596
114596
  ]);
114597
114597
  root.root.appendChild(this._nodes.root);
114598
114598
  const layoutInfo = observableFromEvent(this._editor.onDidLayoutChange, () => this._editor.getLayoutInfo());
@@ -114717,7 +114717,7 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
114717
114717
  for (let i = 0; i < items.length; i++) {
114718
114718
  const item = items[i];
114719
114719
  const icon = SymbolKinds.toIcon(item.kind);
114720
- const divItem = h$1('div.breadcrumb-item', {
114720
+ const divItem = h('div.breadcrumb-item', {
114721
114721
  style: { display: 'flex', alignItems: 'center' },
114722
114722
  }, [
114723
114723
  renderIcon(icon),
@@ -116134,7 +116134,7 @@ let OverviewRulerPart = OverviewRulerPart_1 = class OverviewRulerPart extends Di
116134
116134
  const viewportDomElement = createFastDomNode(document.createElement('div'));
116135
116135
  viewportDomElement.setClassName('diffViewport');
116136
116136
  viewportDomElement.setPosition('absolute');
116137
- const diffOverviewRoot = h$1('div.diffOverview', {
116137
+ const diffOverviewRoot = h('div.diffOverview', {
116138
116138
  style: { position: 'absolute', top: '0px', width: OverviewRulerPart_1.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px' }
116139
116139
  }).root;
116140
116140
  this._register(appendRemoveOnDispose(diffOverviewRoot, viewportDomElement.domNode));
@@ -116614,11 +116614,11 @@ let DiffEditorWidget = class DiffEditorWidget extends DelegatingEditor {
116614
116614
  this._parentInstantiationService = _parentInstantiationService;
116615
116615
  this._audioCueService = _audioCueService;
116616
116616
  this._editorProgressService = _editorProgressService;
116617
- this.elements = h$1('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116618
- h$1('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116619
- h$1('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116620
- h$1('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116621
- h$1('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116617
+ this.elements = h('div.monaco-diff-editor.side-by-side', { style: { position: 'relative', height: '100%' } }, [
116618
+ h('div.noModificationsOverlay@overlay', { style: { position: 'absolute', height: '100%', visibility: 'hidden', } }, [$$d('span', {}, 'No Changes')]),
116619
+ h('div.editor.original@original', { style: { position: 'absolute', height: '100%' } }),
116620
+ h('div.editor.modified@modified', { style: { position: 'absolute', height: '100%' } }),
116621
+ h('div.accessibleDiffViewer@accessibleDiffViewer', { style: { position: 'absolute', height: '100%' } }),
116622
116622
  ]);
116623
116623
  this._diffModel = observableValue(this, undefined);
116624
116624
  this._shouldDisposeDiffModel = false;
@@ -117752,8 +117752,8 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117752
117752
  return { maxScroll: scroll2, width: this._originalWidth.read(reader) };
117753
117753
  }
117754
117754
  });
117755
- this._elements = h$1('div.multiDiffEntry', [
117756
- h$1('div.content', {
117755
+ this._elements = h('div.multiDiffEntry', [
117756
+ h('div.content', {
117757
117757
  style: {
117758
117758
  display: 'flex',
117759
117759
  flexDirection: 'column',
@@ -117761,19 +117761,19 @@ let DiffEditorItemTemplate = class DiffEditorItemTemplate extends Disposable {
117761
117761
  overflow: 'hidden',
117762
117762
  }
117763
117763
  }, [
117764
- h$1('div.header@header', [
117765
- h$1('div.collapse-button@collapseButton'),
117766
- h$1('div.title.show-file-icons@title', []),
117767
- h$1('div.actions@actions'),
117764
+ h('div.header@header', [
117765
+ h('div.collapse-button@collapseButton'),
117766
+ h('div.title.show-file-icons@title', []),
117767
+ h('div.actions@actions'),
117768
117768
  ]),
117769
- h$1('div.editorParent', {
117769
+ h('div.editorParent', {
117770
117770
  style: {
117771
117771
  flex: '1',
117772
117772
  display: 'flex',
117773
117773
  flexDirection: 'column',
117774
117774
  }
117775
117775
  }, [
117776
- h$1('div.editorContainer@editor', { style: { flex: '1' } }),
117776
+ h('div.editorContainer@editor', { style: { flex: '1' } }),
117777
117777
  ])
117778
117778
  ])
117779
117779
  ]);
@@ -117974,17 +117974,17 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
117974
117974
  this._workbenchUIElementFactory = _workbenchUIElementFactory;
117975
117975
  this._parentContextKeyService = _parentContextKeyService;
117976
117976
  this._parentInstantiationService = _parentInstantiationService;
117977
- this._elements = h$1('div', {
117977
+ this._elements = h('div', {
117978
117978
  style: {
117979
117979
  overflowY: 'hidden',
117980
117980
  }
117981
117981
  }, [
117982
- h$1('div@content', {
117982
+ h('div@content', {
117983
117983
  style: {
117984
117984
  overflow: 'hidden',
117985
117985
  }
117986
117986
  }),
117987
- h$1('div.monaco-editor@overflowWidgetsDomNode', {}),
117987
+ h('div.monaco-editor@overflowWidgetsDomNode', {}),
117988
117988
  ]);
117989
117989
  this._sizeObserver = this._register(new ObservableElementSizeObserver(this._element, undefined));
117990
117990
  this._objectPool = this._register(new ObjectPool((data) => {
@@ -120544,7 +120544,7 @@ registerLanguage({
120544
120544
  mimetypes: ["text/css"],
120545
120545
  loader: () => {
120546
120546
  {
120547
- return Promise.resolve().then(function () { return require('./css-19232df4.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-c33e390e.js'); });
120548
120548
  }
120549
120549
  }
120550
120550
  });
@@ -120562,7 +120562,7 @@ registerLanguage({
120562
120562
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120563
120563
  loader: () => {
120564
120564
  {
120565
- return Promise.resolve().then(function () { return require('./html-8e42ebe7.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-a924e3d5.js'); });
120566
120566
  }
120567
120567
  }
120568
120568
  });
@@ -120582,7 +120582,7 @@ registerLanguage({
120582
120582
  mimetypes: ["text/javascript"],
120583
120583
  loader: () => {
120584
120584
  {
120585
- return Promise.resolve().then(function () { return require('./javascript-337ae21a.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-f4f032c8.js'); });
120586
120586
  }
120587
120587
  }
120588
120588
  });
@@ -120600,7 +120600,7 @@ registerLanguage({
120600
120600
  mimetypes: ["text/typescript"],
120601
120601
  loader: () => {
120602
120602
  {
120603
- return Promise.resolve().then(function () { return require('./typescript-78dffda3.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-42c3d4ff.js'); });
120604
120604
  }
120605
120605
  }
120606
120606
  });
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120721
120721
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120722
120722
  function getMode$3() {
120723
120723
  {
120724
- return Promise.resolve().then(function () { return require('./cssMode-4f290a37.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-db89e9b2.js'); });
120725
120725
  }
120726
120726
  }
120727
120727
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
120846
120846
  };
120847
120847
  function getMode$2() {
120848
120848
  {
120849
- return Promise.resolve().then(function () { return require('./htmlMode-062349b7.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-9caeb45e.js'); });
120850
120850
  }
120851
120851
  }
120852
120852
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120948
120948
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120949
120949
  function getMode$1() {
120950
120950
  {
120951
- return Promise.resolve().then(function () { return require('./jsonMode-247b2a02.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-61d579b5.js'); });
120952
120952
  }
120953
120953
  }
120954
120954
  monaco_editor_core_exports$1.languages.register({
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
121217
121217
  };
121218
121218
  function getMode() {
121219
121219
  {
121220
- return Promise.resolve().then(function () { return require('./tsMode-a95a4dea.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-7584a323.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -132875,8 +132875,8 @@ let InlineSuggestionHintsContentWidget = InlineSuggestionHintsContentWidget_1 =
132875
132875
  this.id = `InlineSuggestionHintsContentWidget${InlineSuggestionHintsContentWidget_1.id++}`;
132876
132876
  this.allowEditorOverflow = true;
132877
132877
  this.suppressMouseDown = false;
132878
- this.nodes = h$1('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132879
- h$1('div@toolBar'),
132878
+ this.nodes = h('div.inlineSuggestionsHints', { className: this.withBorder ? '.withBorder' : '' }, [
132879
+ h('div@toolBar'),
132880
132880
  ]);
132881
132881
  this.previousAction = this.createCommandAction(showPreviousInlineSuggestionActionId, localize('previous', 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon));
132882
132882
  this.availableSuggestionCountAction = new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false);
@@ -133012,7 +133012,7 @@ class StatusBarViewItem$1 extends MenuEntryActionViewItem {
133012
133012
  return super.updateLabel();
133013
133013
  }
133014
133014
  if (this.label) {
133015
- const div = h$1('div.keybinding').root;
133015
+ const div = h('div.keybinding').root;
133016
133016
  const k = new KeybindingLabel(div, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions });
133017
133017
  k.set(kb);
133018
133018
  this.label.textContent = this._action.label;
@@ -168947,92 +168947,71 @@ var main = createCommonjsModule(function (module, exports) {
168947
168947
  });
168948
168948
  });
168949
168949
 
168950
- const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
168950
+ // src/index.ts
168951
+ var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
168951
168952
  function isDefaultModule(module) {
168952
- return module.default !== undefined;
168953
- }
168954
- async function requireModule(modulePath) {
168955
- return await new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
168956
- resolve(moduleDefault);
168957
- }));
168953
+ return module.default !== void 0;
168958
168954
  }
168959
168955
  async function importLayersFeatureLayer() {
168960
- if (isAMD) {
168961
- return await requireModule("esri/layers/FeatureLayer");
168962
- }
168963
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
168964
- return isDefaultModule(module) ? module.default : module;
168956
+ if (isAMD) {
168957
+ return await window.$arcgis.import("esri/layers/FeatureLayer");
168958
+ }
168959
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/layers/FeatureLayer.js')); });
168960
+ return isDefaultModule(module) ? module.default : module;
168961
+ }
168962
+ async function newLayersFeatureLayer(properties) {
168963
+ const ModConstructor = await importLayersFeatureLayer();
168964
+ return new ModConstructor(properties);
168965
168965
  }
168966
168966
  async function importPortalPortalItem() {
168967
- if (isAMD) {
168968
- return await requireModule("esri/portal/PortalItem");
168969
- }
168970
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
168971
- return isDefaultModule(module) ? module.default : module;
168967
+ if (isAMD) {
168968
+ return await window.$arcgis.import("esri/portal/PortalItem");
168969
+ }
168970
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/portal/PortalItem.js')); });
168971
+ return isDefaultModule(module) ? module.default : module;
168972
168972
  }
168973
168973
  async function newPortalPortalItem(properties) {
168974
- const ModConstructor = await importPortalPortalItem();
168975
- return new ModConstructor(properties);
168974
+ const ModConstructor = await importPortalPortalItem();
168975
+ return new ModConstructor(properties);
168976
168976
  }
168977
168977
  async function importWebMap() {
168978
- if (isAMD) {
168979
- return await requireModule("esri/WebMap");
168980
- }
168981
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
168982
- return isDefaultModule(module) ? module.default : module;
168978
+ if (isAMD) {
168979
+ return await window.$arcgis.import("esri/WebMap");
168980
+ }
168981
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebMap.js')); });
168982
+ return isDefaultModule(module) ? module.default : module;
168983
168983
  }
168984
168984
  async function newWebMap(properties) {
168985
- const ModConstructor = await importWebMap();
168986
- return new ModConstructor(properties);
168985
+ const ModConstructor = await importWebMap();
168986
+ return new ModConstructor(properties);
168987
168987
  }
168988
168988
  async function importWebScene() {
168989
- if (isAMD) {
168990
- return await requireModule("esri/WebScene");
168991
- }
168992
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
168993
- return isDefaultModule(module) ? module.default : module;
168989
+ if (isAMD) {
168990
+ return await window.$arcgis.import("esri/WebScene");
168991
+ }
168992
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/WebScene.js')); });
168993
+ return isDefaultModule(module) ? module.default : module;
168994
168994
  }
168995
168995
  async function newWebScene(properties) {
168996
- const ModConstructor = await importWebScene();
168997
- return new ModConstructor(properties);
168996
+ const ModConstructor = await importWebScene();
168997
+ return new ModConstructor(properties);
168998
168998
  }
168999
168999
  async function importArcade() {
169000
- if (isAMD) {
169001
- return await requireModule("esri/arcade");
169002
- }
169003
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
169004
- return isDefaultModule(module) ? module.default : module;
169000
+ if (isAMD) {
169001
+ return await window.$arcgis.import("esri/arcade");
169002
+ }
169003
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/arcade.js')); });
169004
+ return isDefaultModule(module) ? module.default : module;
169005
169005
  }
169006
169006
  async function importRequest() {
169007
- if (isAMD) {
169008
- return await requireModule("esri/request");
169009
- }
169010
- const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
169011
- return isDefaultModule(module) ? module.default : module;
169007
+ if (isAMD) {
169008
+ return await window.$arcgis.import("esri/request");
169009
+ }
169010
+ const module = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@arcgis/core/request.js')); });
169011
+ return isDefaultModule(module) ? module.default : module;
169012
169012
  }
169013
169013
 
169014
- //#region core adapter fix
169015
- async function newFeatureLayer(definition) {
169016
- const FeatureLayer = await importLayersFeatureLayer();
169017
- // Fix title for the layer. Instead of defaulting to the map viewer style.
169018
- return new FeatureLayer({ ...definition, sublayerTitleMode: "service-name" });
169019
- }
169020
- //#endregion
169021
169014
  //#region Type Guards
169022
- function isSupportedLayerInstance(item) {
169023
- return (!!item &&
169024
- typeof item === "object" &&
169025
- "declaredClass" in item &&
169026
- typeof item.declaredClass === "string" &&
169027
- item.declaredClass.startsWith("esri.layers."));
169028
- }
169029
- function isFeatureSetInstance(item) {
169030
- return (!!item &&
169031
- typeof item === "object" &&
169032
- "declaredClass" in item &&
169033
- typeof item.declaredClass === "string" &&
169034
- item.declaredClass === "esri.rest.support.FeatureSet");
169035
- }
169036
169015
  function isQueryableLayerInstance(item) {
169037
169016
  return (!!item &&
169038
169017
  typeof item === "object" &&
@@ -169082,10 +169061,13 @@ function isFeatureLayerItemDefinition(item) {
169082
169061
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
169083
169062
  }
169084
169063
  function isFieldsDefinition(item) {
169085
- return (!!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields) && !("declaredClass" in item));
169064
+ return !!item && typeof item === "object" && "fields" in item && Array.isArray(item.fields);
169086
169065
  }
169087
169066
  function isUrlDefinition(item) {
169088
- return (!!item && typeof item === "object" && "url" in item && typeof item.url === "string" && !("declaredClass" in item));
169067
+ return !!item && typeof item === "object" && "url" in item && typeof item.url === "string";
169068
+ }
169069
+ function isSupportedServiceUrlDefinition(item) {
169070
+ return isUrlDefinition(item) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(item.url);
169089
169071
  }
169090
169072
  function isSubtypeInstance(item) {
169091
169073
  return (!!item &&
@@ -169155,11 +169137,11 @@ async function supportedSourceFromDefinition(definition) {
169155
169137
  return null;
169156
169138
  }
169157
169139
  let source = null;
169158
- if (isSupportedLayerInstance(definition) || isFeatureSetInstance(definition) || isFieldsDefinition(definition)) {
169140
+ if (isFieldsDefinition(definition)) {
169159
169141
  source = definition;
169160
169142
  }
169161
169143
  else {
169162
- source = await newFeatureLayer(definition);
169144
+ source = await newLayersFeatureLayer(definition);
169163
169145
  }
169164
169146
  if (isLoadableSource(source)) {
169165
169147
  await source.load();
@@ -169170,32 +169152,428 @@ async function serviceMetaData(url) {
169170
169152
  url += "/layers";
169171
169153
  const request = await importRequest();
169172
169154
  const response = await request(url, { responseType: "json", query: { f: "json" } });
169173
- const data = {
169174
- layers: response.data?.layers ?? [],
169175
- tables: response.data?.tables ?? []
169176
- };
169177
169155
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169178
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169179
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169156
+ const layers = getSupportedLayerInfos(response.data?.layers, queryCapability);
169157
+ const tables = getSupportedLayerInfos(response.data?.tables, queryCapability);
169180
169158
  return { layers, tables };
169181
169159
  }
169182
- function filterFeatureLayerInfos(layers, queryCapability) {
169160
+ function getSupportedLayerInfos(layers, queryCapability) {
169161
+ if (!layers) {
169162
+ return [];
169163
+ }
169183
169164
  return layers.filter((layer) => {
169184
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169185
- return false;
169165
+ switch (layer.type) {
169166
+ case "Feature Layer":
169167
+ case "Oriented Imagery Layer":
169168
+ case "Catalog Layer":
169169
+ case "Table": {
169170
+ const capabilities = layer.capabilities
169171
+ ? layer.capabilities
169172
+ .toLowerCase()
169173
+ .split(",")
169174
+ .map((value) => value.trim())
169175
+ : [];
169176
+ return capabilities.includes(queryCapability);
169177
+ }
169178
+ default:
169179
+ return false;
169186
169180
  }
169187
- const capabilities = layer.capabilities
169188
- ? layer.capabilities
169189
- .toLowerCase()
169190
- .split(",")
169191
- .map((value) => value.trim())
169192
- : [];
169193
- return capabilities.includes(queryCapability);
169194
169181
  });
169195
169182
  }
169196
169183
  //#endregion
169197
169184
 
169198
- var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function v(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function ie(e){try{return new URL(e),!0}catch{return !1}}
169185
+ // src/array-utils.ts
169186
+
169187
+ // src/deferred.ts
169188
+ var Deferred = class {
169189
+ /**
169190
+ * Resolves the promise.
169191
+ * @param value The value to resolve the promise with.
169192
+ */
169193
+ resolve(_value) {
169194
+ }
169195
+ /**
169196
+ * Rejects the promise.
169197
+ */
169198
+ reject(_error) {
169199
+ }
169200
+ /**
169201
+ * Creates a new deferred promise.
169202
+ */
169203
+ constructor() {
169204
+ this.promise = new Promise((resolve, reject) => {
169205
+ this.resolve = resolve;
169206
+ this.reject = reject;
169207
+ });
169208
+ }
169209
+ };
169210
+
169211
+ // src/dom.ts
169212
+ function inTargetElement(element, targetElement) {
169213
+ let currentElement = element;
169214
+ while (currentElement) {
169215
+ if (currentElement === targetElement) {
169216
+ return true;
169217
+ }
169218
+ if (!currentElement.parentNode) {
169219
+ return false;
169220
+ }
169221
+ if (currentElement.parentNode instanceof ShadowRoot) {
169222
+ currentElement = currentElement.parentNode.host;
169223
+ } else {
169224
+ currentElement = currentElement.parentNode;
169225
+ }
169226
+ }
169227
+ return false;
169228
+ }
169229
+ function observeAncestorsMutation(element, attributeFilter, callback) {
169230
+ const { subscribe } = observe(attributeFilter);
169231
+ return subscribe((mutations) => {
169232
+ const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
169233
+ if (matched) {
169234
+ callback();
169235
+ }
169236
+ });
169237
+ }
169238
+ var observers = {};
169239
+ function observe(attributeFilter) {
169240
+ const attributes = attributeFilter.join(",");
169241
+ const previousObserver = observers[attributes];
169242
+ if (previousObserver !== void 0) {
169243
+ return previousObserver;
169244
+ }
169245
+ const subscribers = /* @__PURE__ */ new Set();
169246
+ const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
169247
+ mutationObserver.observe(document.documentElement, {
169248
+ attributes: true,
169249
+ attributeFilter,
169250
+ subtree: true
169251
+ });
169252
+ const observer = {
169253
+ subscribe(callback) {
169254
+ subscribers.add(callback);
169255
+ return {
169256
+ remove: () => {
169257
+ subscribers.delete(callback);
169258
+ if (subscribers.size === 0) {
169259
+ mutationObserver.disconnect();
169260
+ observers[attributes] = void 0;
169261
+ }
169262
+ }
169263
+ };
169264
+ }
169265
+ };
169266
+ observers[attributes] = observer;
169267
+ return observer;
169268
+ }
169269
+ function closestElement(base, selector) {
169270
+ let currentElement = base;
169271
+ while (currentElement) {
169272
+ const element = currentElement.closest(selector);
169273
+ if (element) {
169274
+ return element;
169275
+ }
169276
+ const rootElement = currentElement.getRootNode();
169277
+ if (rootElement === document) {
169278
+ return null;
169279
+ }
169280
+ currentElement = rootElement.host;
169281
+ }
169282
+ return null;
169283
+ }
169284
+ function getElementTheme(base) {
169285
+ const themeElt = closestElement(base, ":is(.calcite-mode-light, .calcite-mode-dark)");
169286
+ return themeElt && themeElt.classList.contains("calcite-mode-dark") ? "dark" : "light";
169287
+ }
169288
+ function getElementAttribute(el, prop, fallbackValue) {
169289
+ const closest = closestElement(el, `[${prop}]`);
169290
+ return closest?.getAttribute(prop) ?? fallbackValue;
169291
+ }
169292
+ function isElement(ref) {
169293
+ return ref.nodeType === Node.ELEMENT_NODE;
169294
+ }
169295
+ function isHTMLWithSetFocus(ref) {
169296
+ return "setFocus" in ref && typeof ref.setFocus === "function";
169297
+ }
169298
+ function setFocus(ref, selector = "") {
169299
+ if (!isElement(ref)) {
169300
+ return false;
169301
+ }
169302
+ if (ref.matches(selector)) {
169303
+ if (isHTMLWithSetFocus(ref)) {
169304
+ setTimeout(() => ref.setFocus(), 0);
169305
+ }
169306
+ return true;
169307
+ }
169308
+ for (const child of ref.children) {
169309
+ if (setFocus(child, selector)) {
169310
+ return true;
169311
+ }
169312
+ }
169313
+ const shadowRoot = ref.shadowRoot;
169314
+ if (shadowRoot) {
169315
+ for (const child of shadowRoot.children) {
169316
+ if (setFocus(child, selector)) {
169317
+ return true;
169318
+ }
169319
+ }
169320
+ }
169321
+ return false;
169322
+ }
169323
+ function setFocusOnElement(ref, selector) {
169324
+ if (!ref?.shadowRoot) {
169325
+ return;
169326
+ }
169327
+ if (ref.hasAttribute("hydrated") || ref.hasAttribute("calcite-hydrated")) {
169328
+ setFocus(ref, selector);
169329
+ return;
169330
+ }
169331
+ const mutationObserver = new MutationObserver(() => {
169332
+ mutationObserver.disconnect();
169333
+ setFocus(ref, selector);
169334
+ });
169335
+ mutationObserver.observe(ref, {
169336
+ attributes: true,
169337
+ attributeFilter: ["hydrated", "calcite-hydrated"]
169338
+ });
169339
+ }
169340
+
169341
+ // src/errors.ts
169342
+ function safeCall(callback, thisContext, ...rest) {
169343
+ try {
169344
+ return callback?.call(thisContext, ...rest);
169345
+ } catch (error) {
169346
+ console.error(error, callback);
169347
+ }
169348
+ return void 0;
169349
+ }
169350
+ async function safeAsyncCall(callback, thisContext, ...rest) {
169351
+ try {
169352
+ const result = callback?.call(thisContext, ...rest);
169353
+ return result instanceof Promise ? await result : result;
169354
+ } catch (error) {
169355
+ console.error(error, callback);
169356
+ }
169357
+ return void 0;
169358
+ }
169359
+
169360
+ // src/guid.ts
169361
+ function gen(count) {
169362
+ let out = "";
169363
+ for (let i = 0; i < count; i++) {
169364
+ out += ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
169365
+ }
169366
+ return out;
169367
+ }
169368
+ function generateGuid() {
169369
+ return [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
169370
+ }
169371
+ var camelToKebab = (string) => string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : "-"}${upper.toLowerCase()}`);
169372
+ var upperBeforeLower = /[A-Z]+(?![a-z])|[A-Z]/gu;
169373
+ var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
169374
+ var camelToHuman = (string) => capitalize(string.replace(upperBeforeLower, (upper, remainder) => `${remainder === 0 ? "" : " "}${upper}`));
169375
+
169376
+ // src/intl.ts
169377
+ var supportedLocales = /* @__PURE__ */ new Set([
169378
+ "ar",
169379
+ "bg",
169380
+ "bs",
169381
+ "ca",
169382
+ "cs",
169383
+ "da",
169384
+ "de",
169385
+ "el",
169386
+ "en",
169387
+ "es",
169388
+ "et",
169389
+ "fi",
169390
+ "fr",
169391
+ "he",
169392
+ "hr",
169393
+ "hu",
169394
+ "id",
169395
+ "it",
169396
+ "ja",
169397
+ "ko",
169398
+ "lt",
169399
+ "lv",
169400
+ "nl",
169401
+ "nb",
169402
+ "pl",
169403
+ "pt-BR",
169404
+ "pt-PT",
169405
+ "ro",
169406
+ "ru",
169407
+ "sk",
169408
+ "sl",
169409
+ "sr",
169410
+ "sv",
169411
+ "th",
169412
+ "tr",
169413
+ "uk",
169414
+ "vi",
169415
+ "zh-CN",
169416
+ "zh-HK",
169417
+ "zh-TW"
169418
+ ]);
169419
+ var defaultLocale = "en";
169420
+ async function fetchT9NStringsBundle(locale, assetsPath, prefix = "") {
169421
+ const path = `${assetsPath}/${prefix}`;
169422
+ const filePath = `${path}${locale}.json`;
169423
+ t9nStringsCache[filePath] ?? (t9nStringsCache[filePath] = fetchBundle(locale, path));
169424
+ return await t9nStringsCache[filePath];
169425
+ }
169426
+ var t9nStringsCache = {};
169427
+ async function fetchBundle(locale, path) {
169428
+ const filePath = `${path}${locale}.json`;
169429
+ try {
169430
+ const response = await fetch(filePath);
169431
+ if (response.ok) {
169432
+ return await response.json();
169433
+ }
169434
+ } catch (error) {
169435
+ console.error(error);
169436
+ return fallbackBundle;
169437
+ }
169438
+ if (locale === defaultLocale) {
169439
+ return fallbackBundle;
169440
+ }
169441
+ return await fetchBundle(defaultLocale, path);
169442
+ }
169443
+ var fallbackBundle = new Proxy(
169444
+ {},
169445
+ {
169446
+ get: (_target, property) => camelToHuman(property.toString())
169447
+ }
169448
+ );
169449
+ function getElementLocales(element) {
169450
+ const lang = getElementAttribute(element, "lang", navigator.language || defaultLocale);
169451
+ if (supportedLocales.has(lang)) {
169452
+ return { lang, t9nLocale: lang };
169453
+ }
169454
+ const rootCode = lang.slice(0, 2);
169455
+ return { lang, t9nLocale: supportedLocales.has(rootCode) ? rootCode : defaultLocale };
169456
+ }
169457
+ function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
169458
+ let result = void 0;
169459
+ const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
169460
+ if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
169461
+ onUpdated(newResult);
169462
+ }
169463
+ result = newResult;
169464
+ }).catch(console.error);
169465
+ callback();
169466
+ return observeAncestorsMutation(element, ["lang"], callback);
169467
+ }
169468
+ async function updateComponentLocateState(element, assetsPath, assetName = element.tagName.toLowerCase().replace("arcgis-", "")) {
169469
+ const { lang, t9nLocale } = getElementLocales(element);
169470
+ const t9nAssetsPath = `${assetsPath}/${assetName}/t9n`;
169471
+ const prefix = `${assetName}.t9n.`;
169472
+ const t9nStrings = await fetchT9NStringsBundle(t9nLocale, t9nAssetsPath, prefix);
169473
+ return { lang, t9nLocale, t9nStrings };
169474
+ }
169475
+
169476
+ // src/strings.ts
169477
+ var doubleQuote = '"';
169478
+ var singleQuote = "'";
169479
+ function repeatString(value, n) {
169480
+ return new Array(n + 1).join(value);
169481
+ }
169482
+ function quoteString(value) {
169483
+ let quote = doubleQuote;
169484
+ let alternateQuote = singleQuote;
169485
+ const avoidEscape = value.includes(quote) && !value.includes(alternateQuote);
169486
+ if (avoidEscape) {
169487
+ alternateQuote = doubleQuote;
169488
+ quote = singleQuote;
169489
+ }
169490
+ const alternateEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${alternateQuote})+)`, "gu");
169491
+ value = value.replace(
169492
+ alternateEscape,
169493
+ (_, boundaryChar, leadingEscapedSlashes, escapedQuoteChars) => (
169494
+ // We divide the escapedQuoteChars by 2 since there are 2 characters in each escaped part ('\\"'.length === 2)
169495
+ boundaryChar + leadingEscapedSlashes + repeatString(alternateQuote, escapedQuoteChars.length / 2)
169496
+ )
169497
+ );
169498
+ const quoteEscape = new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${quote}+)`, "gu");
169499
+ value = value.replace(
169500
+ quoteEscape,
169501
+ (_, boundaryChar, leadingEscapedSlashes, quoteChars) => boundaryChar + leadingEscapedSlashes + repeatString(`\\${quote}`, quoteChars.length)
169502
+ );
169503
+ return quote + value + quote;
169504
+ }
169505
+ function createFilterExpression(filterWord) {
169506
+ const sanitizedWord = filterWord ? filterWord.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu, "\\$&") : "^.*$";
169507
+ return new RegExp(sanitizedWord, "i");
169508
+ }
169509
+ function setValuesInString(message, values = {}) {
169510
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169511
+ }
169512
+ function addLTRMark(value) {
169513
+ return `\u200E${value ?? ""}\u200E`;
169514
+ }
169515
+
169516
+ // src/timeouts.ts
169517
+ function devToolsAwareTimeout(callback, timeout) {
169518
+ const interval = timeout > longTimeoutThreshold ? longTimeoutInterval : timeout / shortTimeoutIntervals;
169519
+ let elapsed = 0;
169520
+ const reference = setInterval(() => {
169521
+ elapsed += interval;
169522
+ if (elapsed >= timeout) {
169523
+ clearInterval(reference);
169524
+ callback();
169525
+ }
169526
+ }, interval);
169527
+ return reference;
169528
+ }
169529
+ var longTimeoutThreshold = 4e3;
169530
+ var longTimeoutInterval = 2e3;
169531
+ var shortTimeoutIntervals = 4;
169532
+
169533
+ // src/type-guards.ts
169534
+ function isNotNull(item) {
169535
+ return item !== null;
169536
+ }
169537
+ function isNotUndefined(item) {
169538
+ return item !== void 0;
169539
+ }
169540
+
169541
+ // src/ui.ts
169542
+ function debounce(func, waitFor = 100) {
169543
+ let timeout;
169544
+ return (...args) => {
169545
+ const later = () => {
169546
+ clearTimeout(timeout);
169547
+ func(...args);
169548
+ };
169549
+ clearTimeout(timeout);
169550
+ timeout = setTimeout(later, waitFor);
169551
+ };
169552
+ }
169553
+
169554
+ // src/url.ts
169555
+ function hasSameOrigin(url1, url2, ignoreProtocol = false) {
169556
+ if (!url1 || !url2) {
169557
+ return false;
169558
+ }
169559
+ const url1Obj = new URL(url1);
169560
+ const url2Obj = new URL(url2);
169561
+ if (!ignoreProtocol && url1Obj.protocol !== url2Obj.protocol) {
169562
+ return false;
169563
+ }
169564
+ if (url1Obj.host == null || url2Obj.host == null) {
169565
+ return false;
169566
+ }
169567
+ return url1Obj.host.toLowerCase() === url2Obj.host.toLowerCase() && url1Obj.port === url2Obj.port;
169568
+ }
169569
+ function isURL(url) {
169570
+ try {
169571
+ new URL(url);
169572
+ return true;
169573
+ } catch (e) {
169574
+ return false;
169575
+ }
169576
+ }
169199
169577
 
169200
169578
  /**
169201
169579
  * Filters a collection of items by the given keys and filter word.
@@ -169208,7 +169586,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169208
169586
  if (!_keys.length) {
169209
169587
  return [];
169210
169588
  }
169211
- const filterExpression = K(filterWord);
169589
+ const filterExpression = createFilterExpression(filterWord);
169212
169590
  return collection.filter((item) => {
169213
169591
  if (beforeFilteringFn) {
169214
169592
  const res = beforeFilteringFn(item);
@@ -169318,7 +169696,7 @@ function fieldAlias(field) {
169318
169696
  //#endregion
169319
169697
  //#region Support functions
169320
169698
  async function getRelatedFeatureLayer(layer, relationship) {
169321
- const relatedFeatureLayer = await newFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169699
+ const relatedFeatureLayer = await newLayersFeatureLayer({ url: `${layer.url}/${relationship.relatedTableId}` });
169322
169700
  await relatedFeatureLayer.load();
169323
169701
  return relatedFeatureLayer;
169324
169702
  }
@@ -169408,8 +169786,8 @@ function variableToLSVariable(editorVariable, kind) {
169408
169786
  insertTextMode: main.InsertTextMode.asIs,
169409
169787
  insertTextFormat: main.InsertTextFormat.PlainText,
169410
169788
  kind,
169411
- documentation: { kind: "markdown", value: description }
169412
- }
169789
+ documentation: { kind: "markdown", value: description },
169790
+ },
169413
169791
  };
169414
169792
  }
169415
169793
  async function featureToLSFeature(editorFeature, kind) {
@@ -169423,14 +169801,14 @@ async function featureToLSFeature(editorFeature, kind) {
169423
169801
  insertText: name,
169424
169802
  insertTextMode: main.InsertTextMode.asIs,
169425
169803
  insertTextFormat: main.InsertTextFormat.PlainText,
169426
- kind
169804
+ kind,
169427
169805
  };
169428
169806
  const result = {
169429
169807
  name,
169430
169808
  description,
169431
169809
  type: "dictionary",
169432
169810
  properties: [],
169433
- completion: resultCompletion
169811
+ completion: resultCompletion,
169434
169812
  };
169435
169813
  // No source definition, then it will be a feature without any known fields
169436
169814
  if (!source) {
@@ -169468,8 +169846,8 @@ async function featureToLSFeature(editorFeature, kind) {
169468
169846
  insertTextMode: main.InsertTextMode.asIs,
169469
169847
  insertTextFormat: main.InsertTextFormat.PlainText,
169470
169848
  kind: main.CompletionItemKind.Field,
169471
- documentation: { kind: "markdown", value: fieldCompletionDescription }
169472
- }
169849
+ documentation: { kind: "markdown", value: fieldCompletionDescription },
169850
+ },
169473
169851
  });
169474
169852
  if (!field.alias || field.alias.toLowerCase() === field.name.toLowerCase()) {
169475
169853
  return;
@@ -169490,8 +169868,8 @@ async function featureToLSFeature(editorFeature, kind) {
169490
169868
  insertTextMode: main.InsertTextMode.asIs,
169491
169869
  insertTextFormat: main.InsertTextFormat.PlainText,
169492
169870
  kind: main.CompletionItemKind.Field,
169493
- documentation: { kind: "markdown", value: aliasCompletionDescription }
169494
- }
169871
+ documentation: { kind: "markdown", value: aliasCompletionDescription },
169872
+ },
169495
169873
  });
169496
169874
  });
169497
169875
  result.properties = [...fieldProfileValues, ...aliasProfileValues];
@@ -169524,8 +169902,8 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
169524
169902
  insertTextMode: main.InsertTextMode.asIs,
169525
169903
  insertTextFormat: main.InsertTextFormat.PlainText,
169526
169904
  kind,
169527
- documentation: { kind: "markdown", value: completionDescription }
169528
- }
169905
+ documentation: { kind: "markdown", value: completionDescription },
169906
+ },
169529
169907
  };
169530
169908
  }
169531
169909
  /**
@@ -169552,9 +169930,9 @@ class ProfileItemBase {
169552
169930
  // If the component is under RTL, the string is messed up.
169553
169931
  // It is converted from $feature to feature$, This is not acceptable since the label
169554
169932
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
169555
- return G(this._label);
169933
+ return addLTRMark(this._label);
169556
169934
  }
169557
- return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169935
+ return setValuesInString(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169558
169936
  }
169559
169937
  /**
169560
169938
  * Returns the description string.
@@ -169566,7 +169944,7 @@ class ProfileItemBase {
169566
169944
  if (typeof this.description === "string") {
169567
169945
  return this.description;
169568
169946
  }
169569
- return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169947
+ return setValuesInString(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169570
169948
  }
169571
169949
  /**
169572
169950
  * Returns true if the item pass the filter test
@@ -169743,28 +170121,28 @@ class DictionaryVariable extends CollectionBasedVariable {
169743
170121
  return new FeatureVariable(this, { profile: this._profile, declaration, label: snippet, snippet });
169744
170122
  case "featureSet":
169745
170123
  return new FeatureSetVariable(this, { profile: this._profile, declaration, label: snippet, snippet }, [
169746
- new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })
170124
+ new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet }),
169747
170125
  ]);
169748
170126
  case "featureSetCollection":
169749
170127
  return new FeatureSetCollectionVariable(this, {
169750
170128
  profile: this._profile,
169751
170129
  declaration,
169752
170130
  label: snippet,
169753
- snippet
170131
+ snippet,
169754
170132
  });
169755
170133
  case "dictionary":
169756
170134
  return new DictionaryVariable(this, {
169757
170135
  profile: this._profile,
169758
170136
  declaration,
169759
170137
  label: snippet,
169760
- snippet
170138
+ snippet,
169761
170139
  });
169762
170140
  case "array":
169763
170141
  return new ArrayVariable({
169764
170142
  profile: this._profile,
169765
170143
  declaration,
169766
170144
  label: snippet,
169767
- snippet
170145
+ snippet,
169768
170146
  });
169769
170147
  default:
169770
170148
  console.error("Editor profile: Invalid profile variable", declaration);
@@ -169776,7 +170154,7 @@ class DictionaryVariable extends CollectionBasedVariable {
169776
170154
  type: this.type,
169777
170155
  name: "",
169778
170156
  ...this.declaration,
169779
- properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170157
+ properties: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
169780
170158
  };
169781
170159
  }
169782
170160
  }
@@ -169807,7 +170185,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169807
170185
  return this._profile?.intlStrings.layer ?? "layer";
169808
170186
  }
169809
170187
  async loadSource() {
169810
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170188
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
169811
170189
  return await this._loadPromise;
169812
170190
  }
169813
170191
  this._loadPromise = this._loadSource();
@@ -169842,7 +170220,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169842
170220
  description: fieldAlias(field),
169843
170221
  snippet: valueSnippet,
169844
170222
  icon: fieldTypeToIconName(field),
169845
- filterDescription: true
170223
+ filterDescription: true,
169846
170224
  });
169847
170225
  }
169848
170226
  _getDomainDictionary(field) {
@@ -169881,6 +170259,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169881
170259
  // Sepcial case for the subtype field
169882
170260
  if (field.name === this._source.subtypeField) {
169883
170261
  const domainDictionary = this._createDomainDictionary(field);
170262
+ domainDictionary.icon = "subtype";
169884
170263
  domainDictionary.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.subtypes, field));
169885
170264
  return domainDictionary;
169886
170265
  }
@@ -169935,7 +170314,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169935
170314
  return null;
169936
170315
  }
169937
170316
  const domainValuesGroup = this._getCodedValueDomainGroup(fieldDomain, {
169938
- code: "domainvalues"
170317
+ code: "domainvalues",
169939
170318
  });
169940
170319
  const domainDictionary = this._createDomainDictionary(field);
169941
170320
  domainDictionary.variables.push(domainValuesGroup);
@@ -169953,7 +170332,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169953
170332
  profile: this._profile,
169954
170333
  label: `${label}`,
169955
170334
  description: t.name,
169956
- snippet: `"${label}"`
170335
+ snippet: `"${label}"`,
169957
170336
  });
169958
170337
  }) ?? [];
169959
170338
  return new GroupOfVariables(this._profile, { code: "subtypes" }, values);
@@ -169964,7 +170343,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169964
170343
  label: `${v.code}`,
169965
170344
  description: v.name,
169966
170345
  snippet: `"${v.code}"`,
169967
- filterDescription: true
170346
+ filterDescription: true,
169968
170347
  }));
169969
170348
  return new GroupOfVariables(this._profile, label, values);
169970
170349
  }
@@ -169990,8 +170369,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
169990
170369
  code: "domainvaluesfortypeformat",
169991
170370
  formatValues: {
169992
170371
  fieldName: alias,
169993
- typeName: type.name
169994
- }
170372
+ typeName: type.name,
170373
+ },
169995
170374
  });
169996
170375
  const id = isSubtypeInstance(type) ? type.code : type.id;
169997
170376
  const label = `${id}`;
@@ -170001,7 +170380,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170001
170380
  label,
170002
170381
  snippet,
170003
170382
  description: type.name,
170004
- declaration: { name: alias }
170383
+ declaration: { name: alias },
170005
170384
  });
170006
170385
  subtypeDictionary.variables = [domainValuesGroup];
170007
170386
  variables.push(subtypeDictionary);
@@ -170023,7 +170402,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170023
170402
  description: alias,
170024
170403
  snippet: valueSnippet,
170025
170404
  icon: "form-dropdown",
170026
- declaration: { name: field.name }
170405
+ declaration: { name: field.name },
170027
170406
  });
170028
170407
  // Add the header group
170029
170408
  const headerGroup = new GroupOfVariables(this._profile, alias, [
@@ -170031,8 +170410,8 @@ class SourceBasedVariable extends CollectionBasedVariable {
170031
170410
  profile: this._profile,
170032
170411
  label: valueSnippet,
170033
170412
  description: "",
170034
- snippet: valueSnippet
170035
- })
170413
+ snippet: valueSnippet,
170414
+ }),
170036
170415
  ]);
170037
170416
  domainDictionary.variables = [headerGroup];
170038
170417
  // Add the SubtypeName or DomainName snippet if available
@@ -170042,7 +170421,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170042
170421
  profile: this._profile,
170043
170422
  label: subtypeOrDomainNameSnippet,
170044
170423
  description: "",
170045
- snippet: subtypeOrDomainNameSnippet
170424
+ snippet: subtypeOrDomainNameSnippet,
170046
170425
  }));
170047
170426
  }
170048
170427
  return domainDictionary;
@@ -170072,10 +170451,10 @@ class SourceBasedVariable extends CollectionBasedVariable {
170072
170451
  declaration: { definition: relatedLayer },
170073
170452
  label: relatedLayer.title,
170074
170453
  description: "",
170075
- nonInteractive: true
170454
+ nonInteractive: true,
170076
170455
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
170077
170456
  }));
170078
- relationshipsGroup.variables = relationshipItems.filter(ee);
170457
+ relationshipsGroup.variables = relationshipItems.filter(isNotNull);
170079
170458
  if (!relationshipsGroup.variables.length) {
170080
170459
  return null;
170081
170460
  }
@@ -170088,8 +170467,8 @@ class FeatureVariable extends SourceBasedVariable {
170088
170467
  this.type = "feature";
170089
170468
  }
170090
170469
  get title() {
170091
- if (isSupportedLayerInstance(this._source)) {
170092
- return this._source.title;
170470
+ if (isTitleCapableSource(this._source)) {
170471
+ return this._source.title ?? "";
170093
170472
  }
170094
170473
  return { code: "feature" };
170095
170474
  }
@@ -170103,14 +170482,14 @@ class FeatureVariable extends SourceBasedVariable {
170103
170482
  throw new Error("Invalid definition");
170104
170483
  }
170105
170484
  // The title group and snippet
170106
- const title = isSupportedLayerInstance(this._source) ? this._source.title : "";
170485
+ const title = isTitleCapableSource(this._source) ? this._source.title ?? "" : "";
170107
170486
  this.variables.push(new GroupOfVariables(this._profile, title, [
170108
170487
  new ValueVariable({
170109
170488
  profile: this._profile,
170110
170489
  label: this.snippet,
170111
170490
  description: "",
170112
- snippet: this.snippet
170113
- })
170491
+ snippet: this.snippet,
170492
+ }),
170114
170493
  ]));
170115
170494
  // The collection of feature attribute values
170116
170495
  const valuesGroup = new GroupOfVariables(this._profile, { code: "values" });
@@ -170125,7 +170504,7 @@ class FeatureVariable extends SourceBasedVariable {
170125
170504
  description: "Geometry",
170126
170505
  snippet,
170127
170506
  icon: "shapes",
170128
- filterDescription: true
170507
+ filterDescription: true,
170129
170508
  });
170130
170509
  valuesGroup.variables.push(geometryProperty);
170131
170510
  }
@@ -170138,8 +170517,8 @@ class FeatureVariable extends SourceBasedVariable {
170138
170517
  this.variables.push(relationshipsGroup);
170139
170518
  }
170140
170519
  }
170141
- catch (e) {
170142
- console.error("Loading issue", e, this);
170520
+ catch (error) {
170521
+ console.error("Error with definition", error, this._definition);
170143
170522
  this._source = null;
170144
170523
  }
170145
170524
  finally {
@@ -170161,8 +170540,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170161
170540
  this.type = "featureSet";
170162
170541
  }
170163
170542
  get title() {
170164
- if (isSupportedLayerInstance(this._source)) {
170165
- return this._source.title;
170543
+ if (isTitleCapableSource(this._source)) {
170544
+ return this._source.title ?? "";
170166
170545
  }
170167
170546
  return { code: "featureset" };
170168
170547
  }
@@ -170189,8 +170568,8 @@ class FeatureSetVariable extends SourceBasedVariable {
170189
170568
  this.variables.push(relationshipsGroup);
170190
170569
  }
170191
170570
  }
170192
- catch (e) {
170193
- console.error("Loading issue", e, this);
170571
+ catch (error) {
170572
+ console.error("Error with definition", error, this._definition);
170194
170573
  this._source = null;
170195
170574
  }
170196
170575
  finally {
@@ -170239,7 +170618,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170239
170618
  return this._profile?.intlStrings.map ?? "map";
170240
170619
  }
170241
170620
  async loadSource() {
170242
- if (ee(this._loadPromise) && te(this._loadPromise)) {
170621
+ if (isNotNull(this._loadPromise) && isNotUndefined(this._loadPromise)) {
170243
170622
  return await this._loadPromise;
170244
170623
  }
170245
170624
  this._loadPromise = this._loadSource();
@@ -170260,24 +170639,24 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170260
170639
  : {
170261
170640
  code: "webmapformat",
170262
170641
  formatValues: {
170263
- webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
170264
- }
170642
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map",
170643
+ },
170265
170644
  };
170266
170645
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
170267
170646
  new ValueVariable({
170268
170647
  profile: this._profile,
170269
170648
  label: this.snippet,
170270
170649
  description: "",
170271
- snippet: this.snippet
170272
- })
170650
+ snippet: this.snippet,
170651
+ }),
170273
170652
  ]);
170274
170653
  // Creates the groups for the layer and tables
170275
170654
  const layersGroup = new GroupOfVariables(this._profile, { code: "layers" }, this._featureSetCollections.layers);
170276
170655
  const tablesGroup = new GroupOfVariables(this._profile, { code: "tables" }, this._featureSetCollections.tables);
170277
170656
  this.variables.push(headerGroup, layersGroup, tablesGroup);
170278
170657
  }
170279
- catch (e) {
170280
- console.error("Loading issue", e, this);
170658
+ catch (error) {
170659
+ console.error("Error with definition", error, this._definition);
170281
170660
  this._featureSetCollections = null;
170282
170661
  }
170283
170662
  finally {
@@ -170292,7 +170671,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170292
170671
  if (isMapInstance(this._definition)) {
170293
170672
  return await this._featureSetCollectionFromMap(this._definition);
170294
170673
  }
170295
- if (isSupportedLayerInstance(this._definition)) {
170674
+ if (isUrlDefinition(this._definition)) {
170296
170675
  return await this._featureSetCollectionFromUrl(this._definition.url);
170297
170676
  }
170298
170677
  if (isPortalItemDefinition(this._definition)) {
@@ -170300,10 +170679,6 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170300
170679
  // or Feature Service
170301
170680
  return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
170302
170681
  }
170303
- if (isUrlDefinition(this._definition)) {
170304
- // Assume that the url is pointing to a feature server
170305
- return await this._featureSetCollectionFromUrl(this._definition.url);
170306
- }
170307
170682
  return null;
170308
170683
  }
170309
170684
  async _featureSetCollectionFromMap(map) {
@@ -170316,7 +170691,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170316
170691
  return {
170317
170692
  layers: this._convertWebMapLayersToVariables(map.layers),
170318
170693
  tables: this._convertWebMapLayersToVariables(map.tables, true),
170319
- source: map
170694
+ source: map,
170320
170695
  };
170321
170696
  }
170322
170697
  async _featureSetCollectionFromPortalItem(definition) {
@@ -170347,12 +170722,12 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170347
170722
  }
170348
170723
  const metadata = await serviceMetaData(processedUrl);
170349
170724
  const layersPromise = Promise.all(metadata.layers.map(async (layerInfo) => {
170350
- const featureLayer = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170725
+ const featureLayer = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170351
170726
  await featureLayer.load();
170352
170727
  return this._createFeatureSetVariable(featureLayer);
170353
170728
  }));
170354
170729
  const tablesPromise = Promise.all(metadata.tables.map(async (layerInfo) => {
170355
- const table = await newFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170730
+ const table = await newLayersFeatureLayer({ url: `${processedUrl}/${layerInfo.id}` });
170356
170731
  await table.load();
170357
170732
  return this._createFeatureSetVariable(table);
170358
170733
  }));
@@ -170382,9 +170757,11 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170382
170757
  return new FeatureSetVariable(this, {
170383
170758
  profile: this._profile,
170384
170759
  declaration: { name: featureLayer.title, definition: featureLayer },
170385
- label: featureLayer.title,
170760
+ label: isFromWebMap
170761
+ ? featureLayer.title
170762
+ : featureLayer.sourceJSON.name ?? featureLayer.title,
170386
170763
  description: "",
170387
- nonInteractive: true
170764
+ nonInteractive: true,
170388
170765
  }, this._makeFeatureSetSnippets(featureLayer, isFromWebMap));
170389
170766
  }
170390
170767
  _makeFeatureSetSnippets(featureLayer, isFromWebMap = false) {
@@ -170396,7 +170773,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170396
170773
  const snippetByName = `FeatureSetByName(${this.snippet}, "${featureLayer.title}")`;
170397
170774
  return [
170398
170775
  new ValueVariable({ profile: this._profile, label: snippetById, description: "", snippet: snippetById }),
170399
- new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName })
170776
+ new ValueVariable({ profile: this._profile, label: snippetByName, description: "", snippet: snippetByName }),
170400
170777
  ];
170401
170778
  }
170402
170779
  else {
@@ -170421,7 +170798,7 @@ class EditorProfile extends DictionaryVariable {
170421
170798
  // Delay the load of the variable declarations so we have a `this`
170422
170799
  super(undefined, {
170423
170800
  profile: null,
170424
- declaration: { properties: [] }
170801
+ declaration: { properties: [] },
170425
170802
  });
170426
170803
  this.definition = definition;
170427
170804
  this.intlStrings = intlStrings;
@@ -170453,28 +170830,20 @@ class EditorProfile extends DictionaryVariable {
170453
170830
  toEditorProfileDefinition() {
170454
170831
  return {
170455
170832
  ...this.definition,
170456
- variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition())
170833
+ variables: this.dictionaryVariables.map((variable) => variable.toProfileVariableDefinition()),
170457
170834
  };
170458
170835
  }
170459
170836
  }
170460
170837
  //#endregion
170461
170838
 
170462
170839
  function isFeatureDefinition(item) {
170463
- return (isSupportedLayerInstance(item) ||
170464
- isFeatureSetInstance(item) ||
170465
- isUrlDefinition(item) ||
170466
- isFieldsDefinition(item) ||
170467
- isFeatureLayerItemDefinition(item));
170840
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170468
170841
  }
170469
170842
  function isFeatureSetDefinition(item) {
170470
- return (isQueryableLayerInstance(item) ||
170471
- isFeatureSetInstance(item) ||
170472
- isUrlDefinition(item) ||
170473
- isFieldsDefinition(item) ||
170474
- isFeatureLayerItemDefinition(item));
170843
+ return isUrlDefinition(item) || isFieldsDefinition(item) || isFeatureLayerItemDefinition(item);
170475
170844
  }
170476
170845
  function isFeatureSetCollectionDefinition(item) {
170477
- return isPortalItemDefinition(item) || isMapInstance(item) || isFeatureSetDefinition(item);
170846
+ return isPortalItemDefinition(item) || isMapInstance(item) || isSupportedServiceUrlDefinition(item);
170478
170847
  }
170479
170848
  /**
170480
170849
  * Get a PredefinedProfile for a locale. If not already loaded then fetch it.
@@ -170486,7 +170855,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
170486
170855
  if (profiles) {
170487
170856
  return profiles;
170488
170857
  }
170489
- if (!E.has(locale)) {
170858
+ if (!supportedLocales.has(locale)) {
170490
170859
  return await getSdkPredefinedProfiles("en");
170491
170860
  }
170492
170861
  try {
@@ -170524,7 +170893,7 @@ function isExtendedPredefinedProfileDefinition(item) {
170524
170893
  return !!item && typeof item === "object" && "additionalVariables" in item && Array.isArray(item.additionalVariables);
170525
170894
  }
170526
170895
  function convertApiVariables(variables) {
170527
- return variables.map(convertApiVariable);
170896
+ return variables?.map(convertApiVariable);
170528
170897
  }
170529
170898
  function convertApiVariable(variable) {
170530
170899
  switch (variable.type) {
@@ -170532,13 +170901,13 @@ function convertApiVariable(variable) {
170532
170901
  return {
170533
170902
  ...variable,
170534
170903
  type: variable.type,
170535
- properties: convertApiVariables(variable.properties)
170904
+ properties: convertApiVariables(variable.properties),
170536
170905
  };
170537
170906
  case "array": {
170538
170907
  return {
170539
170908
  ...variable,
170540
170909
  type: variable.type,
170541
- elementType: { type: "number", name: "number" }
170910
+ elementType: { type: "number", name: "number" },
170542
170911
  };
170543
170912
  }
170544
170913
  default:
@@ -170556,43 +170925,47 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170556
170925
  const editorProfile = {
170557
170926
  bundles: [...sdkPredefinedProfile.bundles],
170558
170927
  variables: [],
170559
- hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase())
170928
+ hiddenApiItems: predefinedProfile.hiddenApiItems?.map((s) => s.toLowerCase()),
170560
170929
  };
170561
170930
  // Merge the SDK variables' definitions/properties with the predefined profile definitions.
170562
- sdkPredefinedProfile.variables.forEach((sdkVariable) => {
170931
+ sdkPredefinedProfile.variables.forEach((predefinedVariable) => {
170563
170932
  // Don't include disabled variables
170564
- if (predefinedProfile.disabledVariables?.includes(sdkVariable.name)) {
170933
+ if (predefinedProfile.disabledVariables?.includes(predefinedVariable.name)) {
170565
170934
  return;
170566
170935
  }
170567
- // Try to get a definition from the predefined profile.
170568
- const definition = predefinedProfile.definitions[sdkVariable.name];
170936
+ // Try to get a definition from the predefined profile, for the variable that needs one.
170937
+ const definition = predefinedProfile.definitions[predefinedVariable.name];
170569
170938
  // Note: Something is weird with TS. The sdkVariables are being casted to the wrong type
170570
170939
  // despite the type checking from the switch statement.
170571
- switch (sdkVariable.type) {
170572
- case "dictionary":
170940
+ switch (predefinedVariable.type) {
170941
+ case "dictionary": {
170573
170942
  // For dictionary, we support properties overrride
170574
170943
  return editorProfile.variables.push(convertApiVariable({
170575
- ...sdkVariable,
170576
- type: sdkVariable.type,
170577
- properties: Array.isArray(definition) ? [...definition] : sdkVariable.properties
170944
+ ...predefinedVariable,
170945
+ type: predefinedVariable.type,
170946
+ properties: Array.isArray(definition) ? [...definition] : predefinedVariable.properties,
170578
170947
  }));
170948
+ }
170579
170949
  case "feature":
170580
- if (isFeatureDefinition(definition)) {
170581
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170950
+ // If the definition is not valid, then we don't include it.
170951
+ if (!isFeatureDefinition(definition)) {
170952
+ return;
170582
170953
  }
170583
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170954
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170584
170955
  case "featureSet":
170585
- if (isFeatureSetDefinition(definition)) {
170586
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170956
+ // If the definition is not valid, then we don't include it.
170957
+ if (!isFeatureSetDefinition(definition)) {
170958
+ return;
170587
170959
  }
170588
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170960
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170589
170961
  case "featureSetCollection":
170590
- if (isFeatureSetCollectionDefinition(definition)) {
170591
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type, definition });
170962
+ // If the definition is not valid, then we don't include it.
170963
+ if (!isFeatureSetCollectionDefinition(definition)) {
170964
+ return;
170592
170965
  }
170593
- return editorProfile.variables.push({ ...sdkVariable, type: sdkVariable.type });
170966
+ return editorProfile.variables.push({ ...predefinedVariable, type: predefinedVariable.type, definition });
170594
170967
  default:
170595
- return editorProfile.variables.push(convertApiVariable(sdkVariable));
170968
+ return editorProfile.variables.push(convertApiVariable(predefinedVariable));
170596
170969
  }
170597
170970
  });
170598
170971
  if (isExtendedPredefinedProfileDefinition(predefinedProfile)) {
@@ -170603,7 +170976,7 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
170603
170976
 
170604
170977
  const arcadeLanguageId = "arcade";
170605
170978
  const defaultContext = {
170606
- locale: "en"
170979
+ locale: "en",
170607
170980
  };
170608
170981
  class ArcadeLanguageServiceDefaults {
170609
170982
  constructor() {
@@ -170657,7 +171030,7 @@ class ArcadeLanguageServiceDefaults {
170657
171030
  if (isPredefinedProfile(definition)) {
170658
171031
  definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
170659
171032
  }
170660
- const intlStrings = await v(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
171033
+ const intlStrings = await fetchT9NStringsBundle(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170661
171034
  if (!intlStrings) {
170662
171035
  throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
170663
171036
  }
@@ -170669,7 +171042,7 @@ class ArcadeLanguageServiceDefaults {
170669
171042
  this.updateApiContextForModel(modelId, {
170670
171043
  locale: apiContext.locale,
170671
171044
  profile: apiProfile,
170672
- snippets: apiContext.snippets
171045
+ snippets: apiContext.snippets,
170673
171046
  });
170674
171047
  }
170675
171048
  /**
@@ -170736,41 +171109,45 @@ class ArcadeLanguageServiceDefaults {
170736
171109
  }
170737
171110
  const arcadeDefaults = new ArcadeLanguageServiceDefaults();
170738
171111
  const arcade = {
170739
- setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
171112
+ setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
170740
171113
  };
170741
171114
 
170742
- exports.B = B;
170743
- exports.D = D;
171115
+ exports.Deferred = Deferred;
170744
171116
  exports.Emitter = Emitter;
170745
- exports.G = G;
170746
171117
  exports.IStandaloneThemeService = IStandaloneThemeService;
170747
- exports.K = K;
170748
171118
  exports.KeyCode = KeyCode;
170749
171119
  exports.KeyMod = KeyMod;
170750
171120
  exports.MarkerSeverity = MarkerSeverity;
170751
171121
  exports.Range = Range;
170752
- exports.U = U;
170753
171122
  exports.Uri = Uri;
170754
- exports.W = W;
170755
- exports.Z = Z;
171123
+ exports.addLTRMark = addLTRMark;
170756
171124
  exports.arcade = arcade;
170757
171125
  exports.arcadeDefaults = arcadeDefaults;
171126
+ exports.camelToKebab = camelToKebab;
170758
171127
  exports.commonjsGlobal = commonjsGlobal;
170759
171128
  exports.createCommonjsModule = createCommonjsModule;
171129
+ exports.createFilterExpression = createFilterExpression;
171130
+ exports.debounce = debounce;
171131
+ exports.devToolsAwareTimeout = devToolsAwareTimeout;
170760
171132
  exports.editor = editor;
170761
171133
  exports.filterCollection = filterCollection;
171134
+ exports.generateGuid = generateGuid;
170762
171135
  exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
170763
- exports.h = h;
170764
- exports.ie = ie;
171136
+ exports.getElementLocales = getElementLocales;
171137
+ exports.getElementTheme = getElementTheme;
171138
+ exports.hasSameOrigin = hasSameOrigin;
170765
171139
  exports.importArcade = importArcade;
170766
171140
  exports.importRequest = importRequest;
170767
- exports.k = k;
171141
+ exports.isURL = isURL;
170768
171142
  exports.languages = languages;
170769
171143
  exports.main = main;
170770
171144
  exports.monaco_editor_core_star = monaco_editor_core_star;
170771
- exports.q = q;
170772
- exports.re = re;
170773
- exports.se = se;
171145
+ exports.observeAncestorsMutation = observeAncestorsMutation;
171146
+ exports.quoteString = quoteString;
171147
+ exports.safeAsyncCall = safeAsyncCall;
171148
+ exports.safeCall = safeCall;
171149
+ exports.setFocusOnElement = setFocusOnElement;
171150
+ exports.setValuesInString = setValuesInString;
171151
+ exports.startLocaleObserver = startLocaleObserver;
170774
171152
  exports.supportedFields = supportedFields;
170775
171153
  exports.typescriptDefaults = typescriptDefaults;
170776
- exports.x = x;