@arcgis/coding-components 4.31.0-next.59 → 4.31.0-next.60

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 (104) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-d4e363df.js → p-0dfb0b51.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-80c9ba2b.entry.js → p-15ab1669.entry.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-408da3c0.js → p-2ce01944.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-ae596382.js → p-324d3441.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-637d78e5.js → p-32f69143.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-445c8bf7.js → p-48a82879.js} +1 -1
  9. package/dist/arcgis-coding-components/{p-c817c81c.js → p-49d247b3.js} +9 -9
  10. package/dist/arcgis-coding-components/{p-7aec584c.js → p-4aacb744.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-1e675e67.entry.js → p-65666d7d.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-37ecf3a3.js → p-b67f1c54.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-2dfc71ce.js → p-bd510fac.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-9ab9975c.js → p-c02b5cb7.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-9d798469.js → p-c79a1a66.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-2639446f.js → p-d339d7c5.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-ef67da54.entry.js → p-d39b4fa7.entry.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-2f96a22b.js → p-d3e821fe.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-6bf13882.js → p-ee4ad3e1.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-e74d3ae7.js → p-f8728f4d.js} +2 -2
  21. package/dist/cjs/{app-globals-89b2f480.js → app-globals-2c78c6b1.js} +1 -1
  22. package/dist/cjs/{arcade-defaults-12892684.js → arcade-defaults-8f210819.js} +4 -4
  23. package/dist/cjs/{arcade-mode-12d9d77e.js → arcade-mode-ba7da99f.js} +2 -2
  24. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  25. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  26. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  27. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  28. package/dist/cjs/{css-91e901af.js → css-7588aae5.js} +1 -1
  29. package/dist/cjs/{cssMode-9f737acb.js → cssMode-0be00954.js} +2 -2
  30. package/dist/cjs/{html-a98ed0fd.js → html-310c2662.js} +2 -2
  31. package/dist/cjs/{htmlMode-b01b9482.js → htmlMode-30d8e99b.js} +2 -2
  32. package/dist/cjs/{index-706035f1.js → index-cba76501.js} +1 -1
  33. package/dist/cjs/index.cjs.js +4 -4
  34. package/dist/cjs/{javascript-92976925.js → javascript-2094999f.js} +3 -3
  35. package/dist/cjs/{jsonMode-0e94e6c9.js → jsonMode-389bdf05.js} +2 -2
  36. package/dist/cjs/{language-defaults-base-fb2ecc81.js → language-defaults-base-7cb3bee2.js} +9 -9
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/cjs/{sql-expr-defaults-380da546.js → sql-expr-defaults-50a75e9d.js} +4 -4
  39. package/dist/cjs/{sql-expr-mode-a79ea0de.js → sql-expr-mode-0b3d7972.js} +4 -4
  40. package/dist/cjs/{tsMode-d9508f43.js → tsMode-1ef47d68.js} +2 -2
  41. package/dist/cjs/{typescript-eb9433ac.js → typescript-e19c8c21.js} +2 -2
  42. package/dist/components/arcade-defaults.js +1 -1
  43. package/dist/components/arcade-mode.js +1 -1
  44. package/dist/components/arcade-results.js +1 -1
  45. package/dist/components/arcade-suggestions.js +1 -1
  46. package/dist/components/arcade-variables.js +1 -1
  47. package/dist/components/arcgis-arcade-editor.js +1 -1
  48. package/dist/components/arcgis-arcade-results.js +1 -1
  49. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  50. package/dist/components/arcgis-arcade-variables.js +1 -1
  51. package/dist/components/arcgis-assets.d.ts +1 -1
  52. package/dist/components/arcgis-assets.js +1 -1
  53. package/dist/components/arcgis-code-editor.js +1 -1
  54. package/dist/components/arcgis-language-api-panel.js +1 -1
  55. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  56. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  57. package/dist/components/chunk-WEX2VUZV.js +1 -1
  58. package/dist/components/code-editor.js +1 -1
  59. package/dist/components/fields.js +1 -1
  60. package/dist/components/index.js +1 -1
  61. package/dist/components/index2.js +1 -1
  62. package/dist/components/language-api-panel.js +1 -1
  63. package/dist/components/language-defaults-base.js +1 -1
  64. package/dist/components/markdown.js +1 -1
  65. package/dist/components/sql-expr-defaults.js +1 -1
  66. package/dist/components/sql-expr-mode.js +1 -1
  67. package/dist/components/sql-expression-fields.js +1 -1
  68. package/dist/components/useT9n.js +1 -1
  69. package/dist/components/utilities.js +1 -1
  70. package/dist/esm/{app-globals-b5176f7f.js → app-globals-ad05b915.js} +1 -1
  71. package/dist/esm/{arcade-defaults-48ca9db7.js → arcade-defaults-84c53fa5.js} +4 -4
  72. package/dist/esm/{arcade-mode-11b3368e.js → arcade-mode-6fbd4168.js} +2 -2
  73. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  74. package/dist/esm/arcgis-coding-components.js +4 -4
  75. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  76. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  77. package/dist/esm/{css-90b67a3d.js → css-9731ed75.js} +1 -1
  78. package/dist/esm/{cssMode-39fa57ee.js → cssMode-6a20bb2b.js} +2 -2
  79. package/dist/esm/{html-ab077a68.js → html-b32a642f.js} +2 -2
  80. package/dist/esm/{htmlMode-3d6fa50e.js → htmlMode-e39916d3.js} +2 -2
  81. package/dist/esm/{index-c4810bff.js → index-3c00d77e.js} +1 -1
  82. package/dist/esm/index.js +4 -4
  83. package/dist/esm/{javascript-aa1ff618.js → javascript-e3306e60.js} +3 -3
  84. package/dist/esm/{jsonMode-de550a5a.js → jsonMode-2ba190f8.js} +2 -2
  85. package/dist/esm/{language-defaults-base-bf2cf878.js → language-defaults-base-9d97d855.js} +9 -9
  86. package/dist/esm/loader.js +4 -4
  87. package/dist/esm/{sql-expr-defaults-3e9c4836.js → sql-expr-defaults-49ca931c.js} +4 -4
  88. package/dist/esm/{sql-expr-mode-d15705ac.js → sql-expr-mode-b1ab06a1.js} +4 -4
  89. package/dist/esm/{tsMode-d5eb1d88.js → tsMode-6fe69b0a.js} +2 -2
  90. package/dist/esm/{typescript-4f65f4e2.js → typescript-d757eb0b.js} +2 -2
  91. package/dist/loader/cdn.js +1 -1
  92. package/dist/loader/index.cjs.js +1 -1
  93. package/dist/loader/index.es2017.js +1 -1
  94. package/dist/loader/index.js +1 -1
  95. package/package.json +11 -11
  96. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -0
  97. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/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 +0 -0
  98. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +0 -0
  99. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/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 +0 -0
  100. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +0 -0
  101. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
  102. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
  103. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
  104. /package/dist/types/data/{awc/runner1 → arcgis-web-compoments/actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{M as t}from"./p-c817c81c.js";
6
+ import{M as t}from"./p-49d247b3.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
- import{m as t,f as e,i as n,a,b as r,c as i,s,L as o,d as c,E as u,U as d}from"./p-c817c81c.js";import{g as l}from"./p-445c8bf7.js";async function p(){return(await f()).getArcadeDiagnosticService()}async function f(){return await import("./p-d4e363df.js")}async function y(n,a=t.exports.CompletionItemKind.Variable){return await Promise.all(n.map((async n=>{switch(n.type){case"dictionary":return await async function(e,n){const{name:a,dictionaryVariables:r}=e,i=e.getDescription(),s=r.reduce(((t,e)=>{""!==t&&(t+=" \n \n"),t+=`**${e.name}** \n${e.type}`;const n=e.getDescription();return n&&(t+=` \n${n}`),t}),i);return{name:a,description:i,type:"dictionary",properties:await y(r,t.exports.CompletionItemKind.Field),completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:s}}}}(n,a);case"feature":return await async function(n,a){const r=await n.loadSource(),{name:i}=n,s=n.getDescription(),o={label:i,detail:i,insertText:i,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:a},c={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!r)return c;const[u,d]=e(r.fields,s,!0);return c.properties=u,o.documentation={kind:"markdown",value:d},c}(n,a);default:return function(e,n){const{name:a,type:r}=e,i=e.getDescription();return{name:a,description:i,type:r,completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:i}}}}(n,a)}})))}async function w(t="en"){const e=m.get(t);if(e)return e;if(!s.has(t))return await w("en");try{const e=await fetch(l(`./assets/arcade-language/profiles/arcade-profiles.t9n.${t}.json`));return e.ok?function(t,e){const n=new Map;return e.forEach((t=>{n.set(t.id,t)})),m.set(t,n),n}(t,await e.json()):"en"===t?null:await w("en")}catch{return null}}const m=new Map;function h(t){switch(t.type){case"dictionary":return{...t,type:t.type,properties:(e=t.properties,e?.map(h))};case"array":return{...t,type:t.type,elementType:{type:"number",name:"number"}};default:return{...t,type:t.type}}var e}async function b(t,e="en"){if(!n(t))return;const s=await async function(t,e="en"){const n=await w(e);return n?.get(t)??null}(t.id,e);if(!s)return;const o={bundles:[...s.bundles],variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};var c;return s.variables.forEach((e=>{if(t.disabledVariables?.includes(e.name))return;const n=t.definitions[e.name];switch(e.type){case"dictionary":return o.variables.push(h({...e,type:e.type,properties:Array.isArray(n)?[...n]:e.properties}));case"feature":if(!i(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSet":if(!r(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSetCollection":if(!a(n))return;return o.variables.push({...e,type:e.type,definition:n});default:return o.variables.push(h(e))}})),(c=t)&&"object"==typeof c&&"additionalVariables"in c&&Array.isArray(c.additionalVariables)&&o.variables.push(...t.additionalVariables??[]),o}const g=new class extends o{constructor(){super(...arguments),this._languageId="arcade",this._languageOptions={}}async setProfileForModel(t,e,a={locale:"en"}){n(e)&&(e=await b(e,a.locale));const r=await c(a.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(t);const i=this._getApiKey(t),s=new u(e,r);this._profileMap.set(i,s);const o=await async function(t){const{apiVersion:e,bundles:n,hiddenApiItems:a}=t.toEditorProfileDefinition();return{apiVersion:e,bundles:n,variables:await y(t.dictionaryVariables),hiddenApiItems:a?.map((t=>t.toLowerCase()))}}(s);this.updateApiContextForModel(t,{locale:a.locale,profile:o,snippets:a.snippets})}setLanguageOptions(t={}){this._languageOptions.assetsPath!==t.assetsPath&&(this._languageOptions={...this._languageOptions,...t},this._onDidChange.fire(this))}async getApiLibrary(t){const e=d.parse(t),n=await async function(t){const e=await f();return await e.getArcadeWorker(t)}(e);return await n.getApiLibrary(this.getApiContextForModel(e))}},x={setProfileForModel:g.setProfileForModel.bind(g),getApiLibrary:g.getApiLibrary.bind(g)};export{x as a,g as b,f as c,p as g}
6
+ import{m as t,f as e,i as n,a,b as r,c as i,s,L as o,d as c,E as u,U as d}from"./p-49d247b3.js";import{g as l}from"./p-48a82879.js";async function p(){return(await f()).getArcadeDiagnosticService()}async function f(){return await import("./p-0dfb0b51.js")}async function y(n,a=t.exports.CompletionItemKind.Variable){return await Promise.all(n.map((async n=>{switch(n.type){case"dictionary":return await async function(e,n){const{name:a,dictionaryVariables:r}=e,i=e.getDescription(),s=r.reduce(((t,e)=>{""!==t&&(t+=" \n \n"),t+=`**${e.name}** \n${e.type}`;const n=e.getDescription();return n&&(t+=` \n${n}`),t}),i);return{name:a,description:i,type:"dictionary",properties:await y(r,t.exports.CompletionItemKind.Field),completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:s}}}}(n,a);case"feature":return await async function(n,a){const r=await n.loadSource(),{name:i}=n,s=n.getDescription(),o={label:i,detail:i,insertText:i,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:a},c={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!r)return c;const[u,d]=e(r.fields,s,!0);return c.properties=u,o.documentation={kind:"markdown",value:d},c}(n,a);default:return function(e,n){const{name:a,type:r}=e,i=e.getDescription();return{name:a,description:i,type:r,completion:{label:a,detail:a,insertText:a,insertTextMode:t.exports.InsertTextMode.asIs,insertTextFormat:t.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:i}}}}(n,a)}})))}async function w(t="en"){const e=m.get(t);if(e)return e;if(!s.has(t))return await w("en");try{const e=await fetch(l(`./assets/arcade-language/profiles/arcade-profiles.t9n.${t}.json`));return e.ok?function(t,e){const n=new Map;return e.forEach((t=>{n.set(t.id,t)})),m.set(t,n),n}(t,await e.json()):"en"===t?null:await w("en")}catch{return null}}const m=new Map;function h(t){switch(t.type){case"dictionary":return{...t,type:t.type,properties:(e=t.properties,e?.map(h))};case"array":return{...t,type:t.type,elementType:{type:"number",name:"number"}};default:return{...t,type:t.type}}var e}async function b(t,e="en"){if(!n(t))return;const s=await async function(t,e="en"){const n=await w(e);return n?.get(t)??null}(t.id,e);if(!s)return;const o={bundles:[...s.bundles],variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};var c;return s.variables.forEach((e=>{if(t.disabledVariables?.includes(e.name))return;const n=t.definitions[e.name];switch(e.type){case"dictionary":return o.variables.push(h({...e,type:e.type,properties:Array.isArray(n)?[...n]:e.properties}));case"feature":if(!i(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSet":if(!r(n))return;return o.variables.push({...e,type:e.type,definition:n});case"featureSetCollection":if(!a(n))return;return o.variables.push({...e,type:e.type,definition:n});default:return o.variables.push(h(e))}})),(c=t)&&"object"==typeof c&&"additionalVariables"in c&&Array.isArray(c.additionalVariables)&&o.variables.push(...t.additionalVariables??[]),o}const g=new class extends o{constructor(){super(...arguments),this._languageId="arcade",this._languageOptions={}}async setProfileForModel(t,e,a={locale:"en"}){n(e)&&(e=await b(e,a.locale));const r=await c(a.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(t);const i=this._getApiKey(t),s=new u(e,r);this._profileMap.set(i,s);const o=await async function(t){const{apiVersion:e,bundles:n,hiddenApiItems:a}=t.toEditorProfileDefinition();return{apiVersion:e,bundles:n,variables:await y(t.dictionaryVariables),hiddenApiItems:a?.map((t=>t.toLowerCase()))}}(s);this.updateApiContextForModel(t,{locale:a.locale,profile:o,snippets:a.snippets})}setLanguageOptions(t={}){this._languageOptions.assetsPath!==t.assetsPath&&(this._languageOptions={...this._languageOptions,...t},this._onDidChange.fire(this))}async getApiLibrary(t){const e=d.parse(t),n=await async function(t){const e=await f();return await e.getArcadeWorker(t)}(e);return await n.getApiLibrary(this.getApiContextForModel(e))}},x={setProfileForModel:g.setProfileForModel.bind(g),getApiLibrary:g.getApiLibrary.bind(g)};export{x as a,g as b,f as c,p as g}
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.59
4
+ * v4.31.0-next.60
5
5
  */
6
6
  var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,r=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},h={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],v=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.l?g(b):h.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){r(e)}e.length=0},b=()=>{$(y),$(v),(m=y.length>0)&&h.raf(b)},g=e=>d().then(e),S=w(v,!0),k=e=>{const t=new URL(e,h.o);return t.origin!==a.location.origin?t.href:t.pathname},j={},O=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>x,map:()=>M,ok:()=>C,unwrap:()=>L,unwrapErr:()=>R});var C=e=>({isOk:!0,isErr:!1,value:e}),x=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return x(e.value);throw"should never get here"}var P,U,L=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t,...n)=>{let l=null,o=null,r=!1,s=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((r="function"!=typeof e&&!O(l))&&(l+=""),r&&s?i[i.length-1].i+=l:i.push(r?W(null,l):l),s=r)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,D);const u=W(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},W=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},D={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),T(e.vtag,t,...e.vchildren||[])}const t=W(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},N=e=>n(e).$hostElement$,q=(e,t,n)=>{const l=N(e);return{emit:e=>G(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const l=h.ce(t,n);return e.dispatchEvent(l),l},V=new WeakMap,_=e=>"sc-"+e.S,z=(e,t,n,l,r,s)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=I(n),r=I(l);t.remove(...o.filter((e=>e&&!r.includes(e)))),t.add(...r.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=O(l);if((i||o&&null!==l)&&!r)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!i||4&s||r)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(J);t=t.replace(K,""),n&&h.rel(e,t,n,o),l&&h.ael(e,t,l,o)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||j,r=t.u||j;for(const e of X(Object.keys(o)))e in r||z(l,e,o[e],void 0,n,t.l);for(const e of X(Object.keys(r)))z(l,e,o[e],r[e],n,t.l)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=(e,t,n)=>{const l=t.h[n];let o,r,s=0;if(null!==l.i)o=l.v=f.createTextNode(l.i);else if(o=l.v=f.createElement(l.m),Q(null,l,Y),null!=P&&o["s-si"]!==P&&o.classList.add(o["s-si"]=P),l.h)for(s=0;s<l.h.length;++s)r=Z(e,l,s),r&&o.appendChild(r);return o["s-hn"]=U,o},ee=(e,t,n,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===U&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=Z(null,n,o),s&&(l[o].v=s,re(i,s,t)))},te=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;oe(t),e&&e.remove()}}},ne=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),le=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,r=t.h,s=t.i;null===s?(Q(e,t,Y),null!==o&&null!==r?((e,t,n,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(ne(h,m,o))le(h,m,o),h=t[++i],m=l[++c];else if(ne(d,y,o))le(d,y,o),d=t[--f],y=l[--p];else if(ne(h,y,o))le(h,y,o),re(e,h.v,d.v.nextSibling),h=t[++i],y=l[--p];else if(ne(d,m,o))le(d,m,o),re(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(s=t[u],s.m!==m.m?r=Z(t&&t[c],n,u):(le(s,m,o),t[u]=void 0,r=s.v),m=l[++c]):(r=Z(t&&t[c],n,c),m=l[++c]),r&&re(h.v.parentNode,r,h.v)}i>f?ee(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&te(t,i,f)})(l,o,t,r,n):null!==r?(null!==e.i&&(l.textContent=""),ee(l,null,t,r,0,r.length-1)):null!==o&&te(o,0,o.length-1)):e.i!==s&&(l.data=s)},oe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(oe)},re=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),se=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},ie=(e,t)=>{if(e.l|=16,!(4&e.l))return se(e,e.j),S((()=>ce(e,t)));e.l|=512},ce=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=ye(n,t?"componentWillLoad":"componentWillUpdate"),ue(l,(()=>fe(e,n,t)))},ue=(e,t)=>ae(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ae=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,fe=async(e,t,n)=>{var l;const o=e.$hostElement$,r=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=_(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let r,s=V.get(e=e.head||e);if(s||V.set(e,s=new Set),!s.has(l)){{r=f.createElement("style"),r.innerHTML=o;const t=null!=(n=h.C)?n:E(f);null!=t&&r.setAttribute("nonce",t),e.insertBefore(r,e.querySelector("link"))}4&t.l&&(r.innerHTML+=c),s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);he(e,t,o,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},he=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||W(null,null),s=(e=>e&&e.m===A)(t)?t:T(null,null,t);if(U=l.tagName,o.P&&(s.u=s.u||{},o.P.map((([e,t])=>s.u[t]=l[e]))),n&&s.u)for(const e of Object.keys(s.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.u[e]=l[e]);s.m=null,s.l|=4,e.M=s,s.v=r.v=l.shadowRoot||l,P=l["s-sc"],le(r,s,n)})(e,t,l)}catch(t){r(t,e.$hostElement$)}return null},de=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l?ye(n,"componentDidUpdate"):(e.l|=64,ve(t),ye(n,"componentDidLoad"),e.U(t),l||me()),e.L(t),e.k&&(e.k(),e.k=void 0),512&e.l&&g((()=>ie(e,!1))),e.l&=-517},pe=e=>{{const t=n(e),l=t.$hostElement$.isConnected;return l&&2==(18&t.l)&&ie(t,!1),l}},me=()=>{ve(f.documentElement),g((()=>G(a,"appload",{detail:{namespace:"arcgis-coding-components"}})))},ye=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){r(e)}},ve=e=>e.setAttribute("hydrated",""),we=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).W.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.$hostElement$,c=s.W.get(t),u=s.l,a=s.t;if(l=((e,t)=>null==e||O(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(s.W.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){r(e,i)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(l,c,t))return;ie(s,!1)}}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.A)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,r){h.jmp((()=>{var s;const c=l.get(e);if(this.hasOwnProperty(c))r=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==r)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&r!==o){const n=l.t,i=null==(s=t.T)?void 0:s[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,r,o,e)}))}return}}this[c]=(null!==r||"boolean"!=typeof this[c])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const r=n[1]||e;return l.set(r,e),512&n[0]&&(null==(o=t.P)||o.push([e,r])),r}))]))}}return e},$e=e=>{ye(e,"connectedCallback")},be=e=>{ye(e,"disconnectedCallback")},ge=(e,o={})=>{var u;const d=[],m=o.exclude||[],y=a.customElements,v=f.head,w=v.querySelector("meta[charset]"),$=f.createElement("style"),b=[];let g,S=!0;Object.assign(h,o),h.o=new URL(o.resourcesUrl||"./",f.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((o=>{var c;const u={l:o[0],S:o[1],R:o[2],D:o[3]};4&u.l&&(k=!0),u.R=o[2],u.P=[],u.T=null!=(c=o[4])?c:{};const a=u.S,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,W:new Map};l.A=new Promise((e=>l.L=e)),l.F=new Promise((e=>l.U=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,u),1&u.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${u.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),g&&(clearTimeout(g),g=null),S?b.push(this):h.jmp((()=>(e=>{if(!(1&h.l)){const t=n(e),o=t.O,c=()=>{};if(1&t.l)(null==t?void 0:t.t)?$e(t.t):(null==t?void 0:t.F)&&t.F.then((()=>$e(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){se(t,t.j=n);break}}o.R&&Object.entries(o.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.l)){if(t.l|=32,n.H){const e=(e=>{const t=e.S.replace(/-/g,"_"),n=e.H;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),r)
7
7
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.S}#${t.N}" was not found`);o.isProxied||(n.T=o.watchers,we(o,n,2),o.isProxied=!0);const i=()=>{};t.l|=8;try{o.__forceUpdate=pe,o.__registerControllers=e=>(l(e,t),t.O.R??{}),new o(t),o.__registerControllers=void 0}catch(e){r(e)}t.l&=-9,t.l|=128,i(),$e(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=_(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const c=t.j,u=()=>ie(t,!0);c&&c["s-rc"]?c["s-rc"].push(u):u()})(e,t,o)}c()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.l)){const e=n(this);(null==e?void 0:e.t)?be(e.t):(null==e?void 0:e.F)&&e.F.then((()=>be(e.t)))}})()))}componentOnReady(){return n(this).F}};u.H=e[0],m.includes(a)||y.get(a)||(d.push(a),y.define(a,we(f,u,1)))}))})),d.length>0&&(k&&($.textContent+=c),$.textContent+=d.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(u=h.C)?u:E(f);null!=e&&$.setAttribute("nonce",e),v.insertBefore($,w?w.nextSibling:v.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):h.jmp((()=>g=setTimeout(me,30)))},Se=(e,t)=>t,ke=e=>h.C=e;export{Se as F,A as H,N as a,ge as b,q as c,k as g,T as h,d as p,l as r,ke as s}