@arcgis/coding-components 4.31.0-next.29 → 4.31.0-next.30

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 (100) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-8b3c8de7.js → p-1cec2132.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-17ee9455.entry.js → p-2186676a.entry.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-c856d0f0.js → p-26f5a06d.js} +1 -1
  7. package/dist/arcgis-coding-components/{p-9bae795e.entry.js → p-3645c71d.entry.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-36259a05.js → p-4ce2a213.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-2d872daf.js → p-57bde3ee.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-7b0675d5.js → p-57dbf777.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-5995f361.entry.js → p-639adfca.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-03e23465.js → p-71d639a6.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-90dd34ba.js → p-72266079.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-970decab.js → p-7e2ae261.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-8b9c6d8f.js → p-8897f806.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-318786d0.js → p-91bb956b.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-f89507bd.js → p-9b2002c3.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-d7ae76a1.js → p-9c411f13.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-40641865.js → p-bd309794.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-903e573b.js → p-cc0edd81.js} +2 -2
  21. package/dist/arcgis-coding-components/{p-9aad716f.js → p-e295aee1.js} +9 -9
  22. package/dist/arcgis-coding-components/{p-96c3e933.js → p-fe4ee070.js} +2 -2
  23. package/dist/cjs/{app-globals-f7496a6b.js → app-globals-e98febdb.js} +1 -1
  24. package/dist/cjs/{arcade-defaults-bf521b48.js → arcade-defaults-c6ecbcbe.js} +4 -4
  25. package/dist/cjs/{arcade-language-features-68f7ad08.js → arcade-language-features-eeb1f261.js} +2 -2
  26. package/dist/cjs/{arcade-mode-173cdde0.js → arcade-mode-a2d05415.js} +3 -3
  27. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  28. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  29. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  30. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  31. package/dist/cjs/{css-24c29d10.js → css-1b37a5a3.js} +1 -1
  32. package/dist/cjs/{cssMode-612cbf96.js → cssMode-e08a9e80.js} +2 -2
  33. package/dist/cjs/{html-b05d9ca2.js → html-b55754c8.js} +2 -2
  34. package/dist/cjs/{htmlMode-d354b389.js → htmlMode-e335e2e0.js} +2 -2
  35. package/dist/cjs/{index-54e43131.js → index-1e6c6daf.js} +1 -1
  36. package/dist/cjs/index.cjs.js +4 -4
  37. package/dist/cjs/{javascript-1cb8029a.js → javascript-5d6e0e2f.js} +3 -3
  38. package/dist/cjs/{jsonMode-cbacaab0.js → jsonMode-5aeae11c.js} +2 -2
  39. package/dist/cjs/{language-defaults-base-b34341f6.js → language-defaults-base-b33c98c5.js} +11 -11
  40. package/dist/cjs/loader.cjs.js +3 -3
  41. package/dist/cjs/{sql-expr-defaults-4399724d.js → sql-expr-defaults-2fcbfae4.js} +4 -4
  42. package/dist/cjs/{sql-expr-mode-a77daf8f.js → sql-expr-mode-72880fff.js} +5 -5
  43. package/dist/cjs/{tsMode-b7b31f9b.js → tsMode-5559948f.js} +2 -2
  44. package/dist/cjs/{typescript-c8f52887.js → typescript-6dfdd308.js} +2 -2
  45. package/dist/components/arcade-defaults.js +1 -1
  46. package/dist/components/arcade-language-features.js +1 -1
  47. package/dist/components/arcade-mode.js +1 -1
  48. package/dist/components/arcade-results.js +2 -2
  49. package/dist/components/arcade-suggestions.js +2 -2
  50. package/dist/components/arcade-variables.js +2 -2
  51. package/dist/components/arcgis-arcade-editor.js +2 -2
  52. package/dist/components/arcgis-arcade-results.js +1 -1
  53. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  54. package/dist/components/arcgis-arcade-variables.js +1 -1
  55. package/dist/components/arcgis-assets.d.ts +1 -1
  56. package/dist/components/arcgis-assets.js +1 -1
  57. package/dist/components/arcgis-code-editor.js +1 -1
  58. package/dist/components/arcgis-language-api-panel.js +1 -1
  59. package/dist/components/arcgis-sql-expression-editor.js +2 -2
  60. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  61. package/dist/components/{chunk-2JTWBRMN.js → chunk-EOMOY2EF.js} +1 -1
  62. package/dist/components/code-editor.js +2 -2
  63. package/dist/components/fields.js +1 -1
  64. package/dist/components/index.js +1 -1
  65. package/dist/components/index2.js +1 -1
  66. package/dist/components/language-api-panel.js +2 -2
  67. package/dist/components/language-defaults-base.js +3 -3
  68. package/dist/components/markdown.js +1 -1
  69. package/dist/components/sql-expr-defaults.js +1 -1
  70. package/dist/components/sql-expr-mode.js +1 -1
  71. package/dist/components/sql-expression-fields.js +2 -2
  72. package/dist/components/useT9n.js +2 -2
  73. package/dist/components/utilities.js +1 -1
  74. package/dist/esm/{app-globals-605208b9.js → app-globals-906d2920.js} +1 -1
  75. package/dist/esm/{arcade-defaults-90952535.js → arcade-defaults-01c1778e.js} +4 -4
  76. package/dist/esm/{arcade-language-features-5c9a4a9f.js → arcade-language-features-5d86df55.js} +2 -2
  77. package/dist/esm/{arcade-mode-934a9c70.js → arcade-mode-ffa50b73.js} +3 -3
  78. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  79. package/dist/esm/arcgis-coding-components.js +4 -4
  80. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  81. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  82. package/dist/esm/{css-c7a2bff9.js → css-e6d12b19.js} +1 -1
  83. package/dist/esm/{cssMode-2c5cb4fa.js → cssMode-eda5bf61.js} +2 -2
  84. package/dist/esm/{html-2204b7c7.js → html-b5f697d7.js} +2 -2
  85. package/dist/esm/{htmlMode-8479270b.js → htmlMode-1b54015e.js} +2 -2
  86. package/dist/esm/{index-88cafd2c.js → index-0ec9c3f1.js} +1 -1
  87. package/dist/esm/index.js +4 -4
  88. package/dist/esm/{javascript-fe41c623.js → javascript-f1c7843a.js} +3 -3
  89. package/dist/esm/{jsonMode-eefe3ceb.js → jsonMode-2277640b.js} +2 -2
  90. package/dist/esm/{language-defaults-base-541250a7.js → language-defaults-base-b508c08f.js} +11 -11
  91. package/dist/esm/loader.js +4 -4
  92. package/dist/esm/{sql-expr-defaults-e8a6a0f4.js → sql-expr-defaults-715f6bad.js} +4 -4
  93. package/dist/esm/{sql-expr-mode-6c234a7f.js → sql-expr-mode-3cd5df90.js} +5 -5
  94. package/dist/esm/{tsMode-1469af85.js → tsMode-075abf4a.js} +2 -2
  95. package/dist/esm/{typescript-08f0cfe9.js → typescript-22cfacaa.js} +2 -2
  96. package/dist/loader/cdn.js +1 -1
  97. package/dist/loader/index.cjs.js +1 -1
  98. package/dist/loader/index.es2017.js +1 -1
  99. package/dist/loader/index.js +1 -1
  100. package/package.json +12 -12
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{N as t,M as e}from"./p-9aad716f.js";
6
+ import{N as t,M as e}from"./p-e295aee1.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{M as e}from"./p-9aad716f.js";
6
+ import{M as e}from"./p-e295aee1.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
6
  var e=Object.defineProperty,n=e=>{const n=new URL(e,pe.t);return n.origin!==he.location.origin?n.href:n.pathname},t={},l=e=>"object"==(e=typeof e)||"function"===e;function o(e){var n,t,l;return null!=(l=null==(t=null==(n=e.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:t.getAttribute("content"))?l:void 0}((n,t)=>{for(var l in t)e(n,l,{get:t[l],enumerable:!0})})({},{err:()=>s,map:()=>i,ok:()=>r,unwrap:()=>a,unwrapErr:()=>f});var r=e=>({isOk:!0,isErr:!1,value:e}),s=e=>({isOk:!1,isErr:!0,value:e});function i(e,n){if(e.isOk){const t=n(e.value);return t instanceof Promise?t.then((e=>r(e))):r(t)}if(e.isErr)return s(e.value);throw"should never get here"}var c,u,a=e=>{if(e.isOk)return e.value;throw e.value},f=e=>{if(e.isErr)return e.value;throw e.value},d="slot-fb{display:contents}slot-fb[hidden]{display:none}",h="http://www.w3.org/1999/xlink",m=(e,n,...t)=>{let o=null,r=null,s=!1,i=!1;const c=[],u=n=>{for(let t=0;t<n.length;t++)o=n[t],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!l(o))&&(o+=""),s&&i?c[c.length-1].l+=o:c.push(s?p(null,o):o),i=s)};if(u(t),n){n.key&&(r=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,y);const a=p(e,null);return a.o=n,c.length>0&&(a.i=c),a.u=r,a},p=(e,n)=>({h:0,m:e,l:n,p:null,i:null,o:null,u:null}),v={},y={forEach:(e,n)=>e.map(w).forEach(n),map:(e,n)=>e.map(w).map(n).map($)},w=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.v,vtag:e.m,vtext:e.l}),$=e=>{if("function"==typeof e.vtag){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),m(e.vtag,n,...e.vchildren||[])}const n=p(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.v=e.vname,n},b=e=>re(e).$hostElement$,g=(e,n,t)=>{const l=b(e);return{emit:e=>k(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},k=(e,n,t)=>{const l=pe.ce(n,t);return e.dispatchEvent(l),l},S=new WeakMap,j=e=>"sc-"+e.$,O=(e,n,t,o,r,s)=>{if(t!==o){let i=ce(e,n),c=n.toLowerCase();if("class"===n){const n=e.classList,l=E(t),r=E(o);n.remove(...l.filter((e=>e&&!r.includes(e)))),n.add(...r.filter((e=>e&&!l.includes(e))))}else if("style"===n){for(const n in t)o&&null!=o[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in o)t&&o[n]===t[n]||(n.includes("-")?e.style.setProperty(n,o[n]):e.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&o(e);else if(i||"o"!==n[0]||"n"!==n[1]){const u=l(o);if((i||u&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[n]=o;else{const l=null==o?"":o;"list"===n?i=!1:null!=t&&e[n]==l||(e[n]=l)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,a=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(n)||(a?e.removeAttributeNS(h,n):e.removeAttribute(n)):(!i||4&s||r)&&!u&&(o=!0===o?"":o,a?e.setAttributeNS(h,n,o):e.setAttribute(n,o))}else if(n="-"===n[2]?n.slice(3):ce(he,c)?c.slice(2):c[2]+n.slice(3),t||o){const l=n.endsWith(x);n=n.replace(M,""),t&&pe.rel(e,n,t,l),o&&pe.ael(e,n,o,l)}}},C=/\s/,E=e=>e?e.split(C):[],x="Capture",M=RegExp(x+"$"),P=(e,n,l)=>{const o=11===n.p.nodeType&&n.p.host?n.p.host:n.p,r=e&&e.o||t,s=n.o||t;for(const e of L(Object.keys(r)))e in s||O(o,e,r[e],void 0,l,n.h);for(const e of L(Object.keys(s)))O(o,e,r[e],s[e],l,n.h)};function L(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var R=!1,U=(e,n,t)=>{const l=n.i[t];let o,r,s=0;if(null!==l.l)o=l.p=me.createTextNode(l.l);else if(o=l.p=me.createElement(l.m),P(null,l,R),null!=c&&o["s-si"]!==c&&o.classList.add(o["s-si"]=c),l.i)for(s=0;s<l.i.length;++s)r=U(e,l,s),r&&o.appendChild(r);return o["s-hn"]=u,o},T=(e,n,t,l,o,r)=>{let s,i=e;for(i.shadowRoot&&i.tagName===u&&(i=i.shadowRoot);o<=r;++o)l[o]&&(s=U(null,t,o),s&&(l[o].p=s,H(i,s,n)))},W=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.p;F(n),e&&e.remove()}}},A=(e,n,t=!1)=>e.m===n.m&&(!!t||e.u===n.u),D=(e,n,t=!1)=>{const l=n.p=e.p,o=e.i,r=n.i,s=n.l;null===s?(P(e,n,R),null!==o&&null!==r?((e,n,t,l,o=!1)=>{let r,s,i=0,c=0,u=0,a=0,f=n.length-1,d=n[0],h=n[f],m=l.length-1,p=l[0],v=l[m];for(;i<=f&&c<=m;)if(null==d)d=n[++i];else if(null==h)h=n[--f];else if(null==p)p=l[++c];else if(null==v)v=l[--m];else if(A(d,p,o))D(d,p,o),d=n[++i],p=l[++c];else if(A(h,v,o))D(h,v,o),h=n[--f],v=l[--m];else if(A(d,v,o))D(d,v,o),H(e,d.p,h.p.nextSibling),d=n[++i],v=l[--m];else if(A(h,p,o))D(h,p,o),H(e,h.p,d.p),h=n[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(n[a]&&null!==n[a].u&&n[a].u===p.u){u=a;break}u>=0?(s=n[u],s.m!==p.m?r=U(n&&n[c],t,u):(D(s,p,o),n[u]=void 0,r=s.p),p=l[++c]):(r=U(n&&n[c],t,c),p=l[++c]),r&&H(d.p.parentNode,r,d.p)}i>f?T(e,null==l[m+1]?null:l[m+1].p,t,l,c,m):c>m&&W(n,i,f)})(l,o,n,r,t):null!==r?(null!==e.l&&(l.textContent=""),T(l,null,n,r,0,r.length-1)):null!==o&&W(o,0,o.length-1)):e.l!==s&&(l.data=s)},F=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(F)},H=(e,n,t)=>null==e?void 0:e.insertBefore(n,t),N=(e,n)=>{n&&!e.k&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.k=n)))},q=(e,n)=>{if(e.h|=16,!(4&e.h))return N(e,e.S),Oe((()=>G(e,n)));e.h|=512},G=(e,n)=>{const t=e.j;if(!t)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=Q(t,n?"componentWillLoad":"componentWillUpdate"),V(l,(()=>z(e,t,n)))},V=(e,n)=>_(e)?e.then(n):n(),_=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,z=async(e,n,t)=>{var l;const r=e.$hostElement$,s=r["s-rc"];t&&(e=>{const n=e.O,t=e.$hostElement$,l=n.h,r=((e,n)=>{var t;const l=j(n),r=de.get(l);if(e=11===e.nodeType?e:me,r)if("string"==typeof r){let s,i=S.get(e=e.head||e);if(i||S.set(e,i=new Set),!i.has(l)){{s=me.createElement("style"),s.innerHTML=r;const n=null!=(t=pe.C)?t:o(me);null!=n&&s.setAttribute("nonce",n),e.insertBefore(s,e.querySelector("link"))}4&n.h&&(s.innerHTML+=d),i&&i.add(l)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=r,t.classList.add(r+"-h"))})(e);B(e,n,r,t),s&&(s.map((e=>e())),r["s-rc"]=void 0);{const n=null!=(l=r["s-p"])?l:[],t=()=>I(e);0===n.length?t():(Promise.all(n).then(t),e.h|=4,n.length=0)}},B=(e,n,t,l)=>{try{n=n.render(),e.h&=-17,e.h|=2,((e,n,t=!1)=>{const l=e.$hostElement$,o=e.O,r=e.M||p(null,null),s=(e=>e&&e.m===v)(n)?n:m(null,null,n);if(u=l.tagName,o.P&&(s.o=s.o||{},o.P.map((([e,n])=>s.o[n]=l[e]))),t&&s.o)for(const e of Object.keys(s.o))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(s.o[e]=l[e]);s.m=null,s.h|=4,e.M=s,s.p=r.p=l.shadowRoot||l,c=l["s-sc"],D(r,s,t)})(e,n,l)}catch(n){ue(n,e.$hostElement$)}return null},I=e=>{const n=e.$hostElement$,t=e.j,l=e.S;64&e.h?Q(t,"componentDidUpdate"):(e.h|=64,X(n),Q(t,"componentDidLoad"),e.L(n),l||K()),e.R(n),e.k&&(e.k(),e.k=void 0),512&e.h&&je((()=>q(e,!1))),e.h&=-517},J=e=>{{const n=re(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.h)&&q(n,!1),t}},K=()=>{X(me.documentElement),je((()=>k(he,"appload",{detail:{namespace:"arcgis-coding-components"}})))},Q=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){ue(e)}},X=e=>e.setAttribute(("hydrated","hydrated"),""),Y=(e,n,t)=>{var o;const r=e.prototype;if(n.U){e.watchers&&(n.T=e.watchers);const s=Object.entries(n.U);if(s.map((([e,[o]])=>{31&o||2&t&&32&o?Object.defineProperty(r,e,{get(){return((e,n)=>re(this).W.get(n))(0,e)},set(t){((e,n,t,o)=>{const r=re(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" 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 s=r.$hostElement$,i=r.W.get(n),c=r.h,u=r.j;if(t=((e,n)=>null==e||l(e)?e:4&n?"false"!==e&&(""===e||!!e):1&n?e+"":e)(t,o.U[n][0]),(!(8&c)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(r.W.set(n,t),u)){if(o.T&&128&c){const e=o.T[n];e&&e.map((e=>{try{u[e](t,i,n)}catch(e){ue(e,s)}}))}if(2==(18&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(t,i,n))return;q(r,!1)}}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&o&&Object.defineProperty(r,e,{value(...n){var t;const l=re(this);return null==(t=null==l?void 0:l.A)?void 0:t.then((()=>{var t;return null==(t=l.j)?void 0:t[e](...n)}))}})})),1&t){const t=new Map;r.attributeChangedCallback=function(e,l,o){pe.jmp((()=>{var s;const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(r.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=re(this),r=null==t?void 0:t.h;if(r&&!(8&r)&&128&r&&o!==l){const r=t.j,i=null==(s=n.T)?void 0:s[e];null==i||i.forEach((n=>{null!=r[n]&&r[n].call(r,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=n.T)?o:{}),...s.filter((([e,n])=>15&n[0])).map((([e,l])=>{var o;const r=l[1]||e;return t.set(r,e),512&l[0]&&(null==(o=n.P)||o.push([e,r])),r}))]))}}return e},Z=e=>{Q(e,"connectedCallback")},ee=e=>{Q(e,"disconnectedCallback")},ne=(e,n={})=>{var t;const l=[],r=n.exclude||[],s=he.customElements,i=me.head,c=i.querySelector("meta[charset]"),u=me.createElement("style"),a=[];let f,h=!0;Object.assign(pe,n),pe.t=new URL(n.resourcesUrl||"./",me.baseURI).href;let m=!1;if(e.map((e=>{e[1].map((n=>{var t;const o={h:n[0],$:n[1],U:n[2],D:n[3]};4&o.h&&(m=!0),o.U=n[2],o.P=[],o.T=null!=(t=n[4])?t:{};const i=o.$,c=class extends HTMLElement{constructor(e){super(e),ie(e=this,o),1&o.h&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),h?a.push(this):pe.jmp((()=>(e=>{if(!(1&pe.h)){const n=re(e),t=n.O,l=()=>{};if(1&n.h)(null==n?void 0:n.j)?Z(n.j):(null==n?void 0:n.F)&&n.F.then((()=>Z(n.j)));else{n.h|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){N(n,n.S=t);break}}t.U&&Object.entries(t.U).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(!(32&n.h)){if(n.h|=32,t.H){const e=fe(t);if(e&&"then"in e){const n=()=>{};l=await e,n()}else l=e;if(!l)throw Error(`Constructor for "${t.$}#${n.N}" was not found`);l.isProxied||(t.T=l.watchers,Y(l,t,2),l.isProxied=!0);const o=()=>{};n.h|=8;try{l.__forceUpdate=J,l.__registerControllers=e=>(se(e,n),n.O.U??{}),new l(n),l.__registerControllers=void 0}catch(e){ue(e)}n.h&=-9,n.h|=128,o(),Z(n.j)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>n.h|=128));if(l&&l.style){let e=l.style;const n=j(t);if(!de.has(n)){const l=()=>{};((e,n,t)=>{let l=de.get(e);ye&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,de.set(e,l)})(n,e,!!(1&t.h)),l()}}}const o=n.S,r=()=>q(n,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(e,n,t)}l()}})(this)))}disconnectedCallback(){pe.jmp((()=>(async()=>{if(!(1&pe.h)){const e=re(this);(null==e?void 0:e.j)?ee(e.j):(null==e?void 0:e.F)&&e.F.then((()=>ee(e.j)))}})()))}componentOnReady(){return re(this).F}};o.H=e[0],r.includes(i)||s.get(i)||(l.push(i),s.define(i,Y(c,o,1)))}))})),l.length>0&&(m&&(u.textContent+=d),u.textContent+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const e=null!=(t=pe.C)?t:o(me);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}h=!1,a.length?a.map((e=>e.connectedCallback())):pe.jmp((()=>f=setTimeout(K,30)))},te=(e,n)=>n,le=e=>pe.C=e,oe=new WeakMap,re=e=>oe.get(e),se=(e,n)=>oe.set(n.j=e,n),ie=(e,n)=>{const t={h:0,$hostElement$:e,O:n,W:new Map};return t.A=new Promise((e=>t.R=e)),t.F=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],oe.set(e,t)},ce=(e,n)=>n in e,ue=(e,n)=>(0,console.error)(e,n),ae=new Map,fe=e=>{const n=e.$.replace(/-/g,"_"),t=e.H;if(!t)return;const l=ae.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(ae.set(t,e),e[n])),ue)
7
7
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},de=new Map,he="undefined"!=typeof window?window:{},me=he.document||{head:{}},pe={h:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},ve=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),we=!1,$e=[],be=[],ge=(e,n)=>t=>{e.push(t),we||(we=!0,n&&4&pe.h?je(Se):pe.raf(Se))},ke=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){ue(e)}e.length=0},Se=()=>{ke($e),ke(be),(we=$e.length>0)&&pe.raf(Se)},je=e=>ve().then(e),Oe=ge(be,!0);export{te as F,v as H,b as a,ne as b,g as c,n as g,m as h,ve as p,se as r,le as s}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{r as e,h as i,H as s,a}from"./p-7b0675d5.js";import{u as o,s as t}from"./p-970decab.js";import{o as r}from"./p-9aad716f.js";const l=class{constructor(i){e(this,i),this.manager=o(this),this._modelId=r(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.profile=void 0}_profileChanged(){this._updateSqlExprDefaults().catch(console.error)}async _updateSqlExprDefaults(){this._preparing=!0;try{await t.setProfileForModel(this._modelId,this.profile),this._apiLibrary=await t.getApiLibrary(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=e}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}async componentWillLoad(){await this._updateSqlExprDefaults().catch(console.error)}disconnectedCallback(){t.disposeForModel(this._modelId)}render(){return i(s,{key:"67f7ebf7a28a8ffc3fe967721389d45c4e2003a1"},i("div",{key:"b3bf4ec2a8d04105e97489593ccec95cd33237f0",class:"flex-row flex-adjustable"},i("div",{key:"fdac47e22baf64c72f786f9e09b637050f417f94",class:"flex-column flex-adjustable"},i("arcgis-code-editor",{key:"f4151dd39ec3523907cd907ebb7558e05bca9cc1",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e})),"fields"===this._activeAction&&i("arcgis-sql-expression-fields",{key:"aa0e5d88429d4bf865b9adc506028efefec1a73a",class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,"data-panel-name":"none",onArcgisFieldSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0)}),"functions"===this._activeAction&&i("arcgis-language-api-panel",{key:"7826dbb1b08894c6c6385806a3aef6cff77395d0",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none"}),i("calcite-action-bar",{key:"ee618d666b70405495627a9d15238e8723c6f961",class:"side-action-bar border-inline-start",expanded:!1,position:"end"},i("calcite-action",{key:"2c828df5dded6347e13e59ba9e313824baa606ff",id:"fields-action",text:"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),i("calcite-action",{key:"eab785c5b14cadeb5047db1957134f5accfedc76",id:"functions-action",text:"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{profile:["_profileChanged"]}}};l.style="arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";export{l as arcgis_sql_expression_editor}
6
+ import{r as e,h as i,H as s,a}from"./p-57dbf777.js";import{u as o,s as t}from"./p-7e2ae261.js";import{o as r}from"./p-e295aee1.js";const l=class{constructor(i){e(this,i),this.manager=o(this),this._modelId=r(),this._insertAsSnippet=e=>{this._codeEditorElt?.insertSnippet(e.detail).catch(console.error)},this._preparing=!1,this._editorProfile=void 0,this._activeAction=void 0,this._apiLibrary=void 0,this.profile=void 0}_profileChanged(){this._updateSqlExprDefaults().catch(console.error)}async _updateSqlExprDefaults(){this._preparing=!0;try{await t.setProfileForModel(this._modelId,this.profile),this._apiLibrary=await t.getApiLibrary(this._modelId)}catch{this._editorProfile=void 0}finally{this._preparing=!1}}_setActiveAction(e){this._activeAction=e}_handleActionClick(e){this._setActiveAction(e.target.dataset.panelName)}async componentWillLoad(){await this._updateSqlExprDefaults().catch(console.error)}disconnectedCallback(){t.disposeForModel(this._modelId)}render(){return i(s,{key:"67f7ebf7a28a8ffc3fe967721389d45c4e2003a1"},i("div",{key:"b3bf4ec2a8d04105e97489593ccec95cd33237f0",class:"flex-row flex-adjustable"},i("div",{key:"fdac47e22baf64c72f786f9e09b637050f417f94",class:"flex-column flex-adjustable"},i("arcgis-code-editor",{key:"f4151dd39ec3523907cd907ebb7558e05bca9cc1",language:"arcgis-sql-expression",modelId:this._modelId,ref:e=>this._codeEditorElt=e})),"fields"===this._activeAction&&i("arcgis-sql-expression-fields",{key:"aa0e5d88429d4bf865b9adc506028efefec1a73a",class:"side-panel flex-panel border-inline-start",loading:this._preparing,modelId:this._modelId,"data-panel-name":"none",onArcgisFieldSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0)}),"functions"===this._activeAction&&i("arcgis-language-api-panel",{key:"7826dbb1b08894c6c6385806a3aef6cff77395d0",class:"side-panel flex-panel border-inline-start",onArcgisItemSelected:this._insertAsSnippet,onArcgisClose:()=>this._setActiveAction(void 0),loading:this._preparing,apiLibrary:this._apiLibrary,"data-panel-name":"none"}),i("calcite-action-bar",{key:"ee618d666b70405495627a9d15238e8723c6f961",class:"side-action-bar border-inline-start",expanded:!1,position:"end"},i("calcite-action",{key:"2c828df5dded6347e13e59ba9e313824baa606ff",id:"fields-action",text:"Fields",icon:"profile-variables",active:"fields"===this._activeAction,"data-panel-name":"fields",onClick:e=>this._handleActionClick(e)}),i("calcite-action",{key:"eab785c5b14cadeb5047db1957134f5accfedc76",id:"functions-action",text:"Functions",icon:"function",active:"functions"===this._activeAction,"data-panel-name":"functions",onClick:e=>this._handleActionClick(e)}))))}static get assetsDirs(){return["assets"]}get el(){return a(this)}static get watchers(){return{profile:["_profileChanged"]}}};l.style="arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";export{l as arcgis_sql_expression_editor}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{m as e,g as t,z as n,O as s}from"./p-9aad716f.js";import{C as r,F as i,D as o}from"./p-96c3e933.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.exports.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.exports.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},g={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class l{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:n}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:n}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let p;async function d(...e){return await new Promise(((t,n)=>{p?t(p(...e)):n(new Error("TypeScript not registered!"))}))}const m=new class{constructor(){this._onDiagnosticsChange=new s}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function x(){return m}function k(e){const t=new l(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);p=s,n.setMonarchTokensProvider(e.languageId,g),n.setLanguageConfiguration(e.languageId,u),n.registerCompletionItemProvider(e.languageId,new r(s,e)),n.registerDocumentFormattingEditProvider(e.languageId,new i(s,e)),new o(e.languageId,s,{defaults:e,diagnosticsService:m})}export{x as getArcadeDiagnosticService,d as getArcadeWorker,k as setupMode}
6
+ import{m as e,g as t,z as n,O as s}from"./p-e295aee1.js";import{C as r,F as i,D as o}from"./p-fe4ee070.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.exports.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.exports.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},g={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class l{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:n}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:n}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let p;async function d(...e){return await new Promise(((t,n)=>{p?t(p(...e)):n(new Error("TypeScript not registered!"))}))}const m=new class{constructor(){this._onDiagnosticsChange=new s}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function x(){return m}function k(e){const t=new l(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);p=s,n.setMonarchTokensProvider(e.languageId,g),n.setLanguageConfiguration(e.languageId,u),n.registerCompletionItemProvider(e.languageId,new r(s,e)),n.registerDocumentFormattingEditProvider(e.languageId,new i(s,e)),new o(e.languageId,s,{defaults:e,diagnosticsService:m})}export{x as getArcadeDiagnosticService,d as getArcadeWorker,k as setupMode}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{F as t,D as i,G as s,H as e,J as o,f as n,i as r,b as c,m as h,L as a,d,E as u,U as f}from"./p-9aad716f.js";import{g as l}from"./p-7b0675d5.js";var p,y=(t,i)=>t.manager.internals.members?.[i]?.[0],v=Symbol.for("controller");function g(t){p!==t&&(p=t,queueMicrotask((()=>{p===t&&(p=void 0)})))}function w(){return p}var b,m=[];function k(t){if(void 0===t)return void(m=[]);const i=m.indexOf(t);m=-1===i?[...m,t]:m.slice(0,i+1),queueMicrotask((()=>{m=[]}))}var L,j=async(t,i)=>{const s=M(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},x=async t=>{const i=M(t);return await i.ready,i},M=t=>{const i=function(){const t=b;return b=void 0,t}();if(void 0!==i)return i;const s=w().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(v in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},U={setter:!1,getter:!1,readOnly:!1},D=new WeakMap;L=v;var S=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this.willLoadCalled=!1,this.didLoadCalled=!1,this[L]=!0,this.ready=this._ready.promise,this._exports=E(this),this._exportWatchers=new Set;const s=t??w();this.component=s,this.component.addController(this),k(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.willLoadCalled||this.triggerLoad().then((()=>{!t.didLoadCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(o),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=E(t),this._exportWatchers.forEach(o)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return g(this.component),j}get useRef(){return g(this.component),x}get useRefSync(){return g(this.component),M}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&o(t.hostConnected,t),this._callbacks.hostConnected.forEach(o),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&o(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(o),this._lifecycleCleanups.forEach(o),this._lifecycleCleanups=[]}async triggerLoad(){if(this.willLoadCalled)return;this.willLoadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.didLoadCalled)return;const t=this;t.hostLoaded&&o(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(o),this.didLoadCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&o(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(C,t)}triggerUpdated(t){const i=this;i.hostUpdated&&o(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(C,t)}triggerDestroy(){const t=this;t.hostDestroy&&o(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(o)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){g(this.component);const i=o(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function C(t){o(t,void 0,this)}var O=S;function E(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,e){if(!P.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,e):void 0},set:(t,i,s,e)=>Reflect.set(t,i,s,e)});return i}var P=new Set(["exports","_exports"]),_=void 0;function A(){Array.from(_?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),_=void 0}function T(t,i,s){var e;const n=i,r=t.manager.internals;(e=r.allWatchers)[n]??(e[n]=[]);const c=r.allWatchers[n],h=s,a=(t,i,s)=>o(h,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var $=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var e;2048&s&&((e=t.setters)[i]??(e[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=R,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(U.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=R,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const e=i.el.constructor.prototype;s!==e&&this._getSetProxy(e,t,"html")}_getSetProxy(t,i,s){const e=y(this.component,i),o=Object.getOwnPropertyDescriptor(t,i);if(!o)return;const n=o.get,r=o.set,c=!(F in n),h=!(F in r);if(!c&&!h)return;const a=c?function(){let t=n.call(this);const s=D.get(this);if(void 0===s)return t;const e=s.manager.internals;t=e.accessorGetter[i](t,i);const o=e.getters[i]??q;for(let s=0;s<o.length;s++)t=o[s](t,i);return t}:n,d=h?function(t){const s=n.call(this),o=D.get(this);if(void 0===o)return void r.call(this,t);let c=o.manager.isLit?t:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,e);const h=o.manager.internals;if(c===s)r.call(this,t);else{const t=U.setter?q:h.setters[i]??q;for(let e=0;e<t.length&&(c=t[e](c,s,i),c!==s);e++);c=h.accessorSetter[i](c,s,i),r.call(this,c),c!==s&&h.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}h.keyTrackers.length>0&&h?.firePropTrackers(i,t)}:r;c&&(a[F]=!0),h&&(d[F]=!0),Object.defineProperty(t,i,{...o,get:a,set:d})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},q=[],F=Symbol(),R=Symbol(),I=(t,i)=>new W(t,i),W=class extends O{constructor(s,e){const o="addController"in s,n=new Set,r=s;if(r.addController=function(t){n.add(t),o&&!(v in t)&&s.el.isConnected&&t.hostConnected?.()},r.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!o){const t=e??s.constructor.__forceUpdate;r.requestUpdate=()=>t(s)}super(s),this.internals=new $(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=o,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:i.type===Number?2:i.type===Boolean?4:1)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,o),this._controllers=n,this.exports=void 0,this.hasDestroy=N in this.component&&"function"==typeof this.component.destroy,this.hasDestroy&&T(s,N,(()=>this._setAutoDestroyTimeout())),this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=B,c.accessorSetter[t]=B,c.getSetProxy(t)})),o||Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),k(void 0),g(s),D.set(s.el,s),D.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={connectedCallback:i||s?void 0:t.connectedCallback,disconnectedCallback:i||s?void 0:t.disconnectedCallback,componentWillLoad:i?void 0:t.componentWillLoad,componentDidLoad:i?void 0:t.componentDidLoad,componentWillUpdate:i?void 0:t.componentWillUpdate,componentDidUpdate:i?void 0:t.componentDidUpdate,destroy:t.destroy};const e=this._connectedCallback.bind(this),o=this._disconnectedCallback.bind(this),n=this._update.bind(this),r=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:e,hostDisconnected:o,hostUpdate:n,hostUpdated:r}):(t.connectedCallback=e,t.disconnectedCallback=o,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=r),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${N} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,A(),t.enableReadonly?.(),this._controllers.forEach(G),this._originalLifecycles.connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(H),this._originalLifecycles.disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,J,t)),await(this._originalLifecycles.componentWillLoad?.call(this.component))}_loaded(){this._controllers.forEach(z),this._originalLifecycles.componentDidLoad?.call(this.component)}_update(){this._controllers.forEach(K,this.component.changedProperties),this._originalLifecycles.componentWillUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(Q,t.changedProperties),this._originalLifecycles.componentDidUpdate?.call(this.component),this.isLit)t.changedProperties=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(X),this._controllers.clear(),await(this._originalLifecycles.destroy?.call(this.component))}}_setAutoDestroyTimeout(){this.component.el.isConnected||this.component.autoDestroyDisabled||(void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this._autoDestroyTimeout=e((()=>{this.destroy().catch(console.error)}),V))}},N="autoDestroyDisabled",V=1e3,B=t=>t;function G(t){"triggerConnected"in t?t.triggerConnected():o(t.hostConnected,t)}function H(t){"triggerDisconnected"in t?t.triggerDisconnected():o(t.hostDisconnected,t)}async function J(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function z(t){"triggerLoaded"in t?t.triggerLoaded():o(t.hostLoaded,t)}function K(t){"triggerUpdate"in t?t.triggerUpdate(this):o(t.hostUpdate,t,this)}function Q(t){"triggerUpdated"in t?t.triggerUpdated(this):o(t.hostUpdated,t,this)}function X(t){"triggerDestroy"in t?t.triggerDestroy():o(t.hostDestroy,t)}function Y(t,i,s){const e=t.manager.internals;return e.trackedValue!==R&&e.trackedValue!==s&&e.firePropTrackers(void 0,void 0),0===e.keyTrackers.length&&queueMicrotask((()=>e.firePropTrackers(void 0,void 0))),e.trackedValue=s,e.keyTrackers.push(((t,e)=>o(i,void 0,s===e?t:void 0))),s}function Z(t,i){const s=w();return Y(s,(e=>{const o=e,n=s.manager,r=s,c=r[o];if(null!=c&&c!==t&&"function"==typeof i.set&&(i.initialSet??1)){const s=i.set(c,t,o);if(s!==c)if(n.isLit)r[o]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){U.setter=!0;try{return void(r[o]=s)}finally{U.setter=!1}}())}))}}!function(t,i,s){var e,o;const n=s,r=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((e=r.getters)[i]??(e[i]=[]),r.getters[i].unshift(c));const h="ignore"===n.set?it:n.set;h&&((o=r.setters)[i]??(o[i]=[]),r.setters[i].unshift(h))}(s,o,i)}),t)}var tt,it=(t,i)=>i,st=t=>et(void 0,t),et=(tt=class extends S{constructor(t,i){super(t);const s=this.exports;try{g(this.component);const t=i(this.component,this),e=this.exports!==s;if(t instanceof Promise){e||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else e&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=m,s=new tt(...t),e=s.exports;k(i.at(-1));const n=s.component.manager.internals;var r;return n.markExports(s,e),s.watchExports((t=>n.markExports(s,t))),b!==(r=s)&&(b=r,queueMicrotask((()=>{b===r&&(b=void 0)}))),function(t,i,s){const e=Array.isArray(t)?t:[t];let n=e.length+1;const r=t=>{n-=1,void 0!==t&&(n=0),0===n&&i(t)};e.forEach((t=>function(t,i,s){const e=Object.keys(t),n=e.length;void 0===_&&queueMicrotask(A),_??(_=new Map);let r=_.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},_.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach((t=>t(e))),r.callbacks=[],r.keyCount=n),r.callbacks.push((e=>{const r=e[n];o(i,null,void 0===r?void 0:t[r]===s?r:void 0)})),s}(t,(i=>r(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=e.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&Y(c,(t=>r(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==y(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:e},o){const n=i,r=n[s]!==o;n[s]!==t.exports&&!r&&o!==t.exports&&(n[s]=t.exports);if(i===t.component){if(e){const i=t.component.manager.internals;r&&i.markExports(t,n[s]),T(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=e?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,e=i.internals.setters[s]?.includes(i.internals.readonlySetter);e?function(){U.readOnly=!0;try{return void(n[s]=t.exports)}finally{U.readOnly=!1}}():n[s]=t.exports}))}(s,t,e)),e)});const ot={en:{id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]}};const nt=t=>t.variables?t.variables.find((t=>"$layer"===t.name&&"dictionary"===t.type)).properties??[]:[];async function rt(){return await import("./p-f89507bd.js")}const ct=new class extends a{constructor(){super(...arguments),this._languageId="arcgis-sql-expression",this._languageOptions={},this._layerMap=new Map}updateFeatureLayerForModel(t,i){const s=this._getApiKey(t);this._layerMap.set(s,i)}setLanguageOptions(t){this._languageOptions=t}getFeatureLayerForModel(t){const i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,s={locale:"en"}){r(i)&&(i=await async function(t,i="en"){if(!r(t))return;const s=await async function(t="en"){return await Promise.resolve(ot[t])}(i);if(!s)return;const e={variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};return s.variables.forEach((i=>{if(t.disabledVariables?.includes(i.name))return;const s=t.definitions[i.name];if("featureSet"===i.type)return c(s)?e.variables.push({...i,type:i.type,definition:s}):void 0;throw Error(`sdkVariable type not supported (yet) type: ${i.type}`)})),e}(i,s.locale));const e=await d(s.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!e)throw new Error(`Failed to load the language bundle for ${s.locale}`);this.disposeForModel(t);const o=this._getApiKey(t),a=new u(i,e);this._profileMap.set(o,a);const f=(t=>{const{apiVersion:i,bundles:s,hiddenApiItems:e}=t.toEditorProfileDefinition(),o=t.variables[0];if(!o||"featureSet"!==o.type)throw Error("No variable found in the editor profile");const r=function(t){const{name:i}=t,s=t.getDescription(),{definition:e}=t.toProfileVariableDefinition(),o={label:i,detail:i,insertText:i,insertTextMode:h.exports.InsertTextMode.asIs,insertTextFormat:h.exports.InsertTextFormat.PlainText,kind:h.exports.CompletionItemKind.Field},r={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!e||!("fields"in e))return r;const[c,a]=n(e.fields,s);return r.properties=c,o.documentation={kind:"markdown",value:a},r}(o);return{apiVersion:i,bundles:s,variables:[r],hiddenApiItems:e?.map((t=>t.toLowerCase()))}})(a);this.updateApiContextForModel(t,{locale:s.locale,profile:f});const p=i?.variables?.find((t=>"$layer"===t.name));p&&this.updateFeatureLayerForModel(t,p.definition)}async getApiLibrary(t){const i=f.parse(t),s=await async function(t){const i=await rt();return await i.getSqlExprWorker(t)}(i);return await s.getApiLibrary(this.getApiContextForModel(i))}};export{rt as a,nt as b,Z as g,st as m,ct as s,I as u,T as w}
6
+ import{F as t,D as i,G as s,H as e,J as o,f as n,i as r,b as c,m as h,L as a,d,E as u,U as f}from"./p-e295aee1.js";import{g as l}from"./p-57dbf777.js";var p,y=(t,i)=>t.manager.internals.members?.[i]?.[0],v=Symbol.for("controller");function g(t){p!==t&&(p=t,queueMicrotask((()=>{p===t&&(p=void 0)})))}function w(){return p}var b,m=[];function k(t){if(void 0===t)return void(m=[]);const i=m.indexOf(t);m=-1===i?[...m,t]:m.slice(0,i+1),queueMicrotask((()=>{m=[]}))}var L,j=async(t,i)=>{const s=M(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},x=async t=>{const i=M(t);return await i.ready,i},M=t=>{const i=function(){const t=b;return b=void 0,t}();if(void 0!==i)return i;const s=w().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(v in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},U={setter:!1,getter:!1,readOnly:!1},D=new WeakMap;L=v;var S=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this.willLoadCalled=!1,this.didLoadCalled=!1,this[L]=!0,this.ready=this._ready.promise,this._exports=E(this),this._exportWatchers=new Set;const s=t??w();this.component=s,this.component.addController(this),k(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.willLoadCalled||this.triggerLoad().then((()=>{!t.didLoadCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(o),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=E(t),this._exportWatchers.forEach(o)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return g(this.component),j}get useRef(){return g(this.component),x}get useRefSync(){return g(this.component),M}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&o(t.hostConnected,t),this._callbacks.hostConnected.forEach(o),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&o(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(o),this._lifecycleCleanups.forEach(o),this._lifecycleCleanups=[]}async triggerLoad(){if(this.willLoadCalled)return;this.willLoadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.didLoadCalled)return;const t=this;t.hostLoaded&&o(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(o),this.didLoadCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&o(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(C,t)}triggerUpdated(t){const i=this;i.hostUpdated&&o(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(C,t)}triggerDestroy(){const t=this;t.hostDestroy&&o(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(o)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){g(this.component);const i=o(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function C(t){o(t,void 0,this)}var O=S;function E(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,e){if(!P.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,e):void 0},set:(t,i,s,e)=>Reflect.set(t,i,s,e)});return i}var P=new Set(["exports","_exports"]),_=void 0;function A(){Array.from(_?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),_=void 0}function T(t,i,s){var e;const n=i,r=t.manager.internals;(e=r.allWatchers)[n]??(e[n]=[]);const c=r.allWatchers[n],h=s,a=(t,i,s)=>o(h,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var $=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var e;2048&s&&((e=t.setters)[i]??(e[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=R,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(U.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=R,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const e=i.el.constructor.prototype;s!==e&&this._getSetProxy(e,t,"html")}_getSetProxy(t,i,s){const e=y(this.component,i),o=Object.getOwnPropertyDescriptor(t,i);if(!o)return;const n=o.get,r=o.set,c=!(F in n),h=!(F in r);if(!c&&!h)return;const a=c?function(){let t=n.call(this);const s=D.get(this);if(void 0===s)return t;const e=s.manager.internals;t=e.accessorGetter[i](t,i);const o=e.getters[i]??q;for(let s=0;s<o.length;s++)t=o[s](t,i);return t}:n,d=h?function(t){const s=n.call(this),o=D.get(this);if(void 0===o)return void r.call(this,t);let c=o.manager.isLit?t:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,e);const h=o.manager.internals;if(c===s)r.call(this,t);else{const t=U.setter?q:h.setters[i]??q;for(let e=0;e<t.length&&(c=t[e](c,s,i),c!==s);e++);c=h.accessorSetter[i](c,s,i),r.call(this,c),c!==s&&h.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}h.keyTrackers.length>0&&h?.firePropTrackers(i,t)}:r;c&&(a[F]=!0),h&&(d[F]=!0),Object.defineProperty(t,i,{...o,get:a,set:d})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},q=[],F=Symbol(),R=Symbol(),I=(t,i)=>new W(t,i),W=class extends O{constructor(s,e){const o="addController"in s,n=new Set,r=s;if(r.addController=function(t){n.add(t),o&&!(v in t)&&s.el.isConnected&&t.hostConnected?.()},r.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!o){const t=e??s.constructor.__forceUpdate;r.requestUpdate=()=>t(s)}super(s),this.internals=new $(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=o,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:i.type===Number?2:i.type===Boolean?4:1)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,o),this._controllers=n,this.exports=void 0,this.hasDestroy=N in this.component&&"function"==typeof this.component.destroy,this.hasDestroy&&T(s,N,(()=>this._setAutoDestroyTimeout())),this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=B,c.accessorSetter[t]=B,c.getSetProxy(t)})),o||Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),k(void 0),g(s),D.set(s.el,s),D.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={connectedCallback:i||s?void 0:t.connectedCallback,disconnectedCallback:i||s?void 0:t.disconnectedCallback,componentWillLoad:i?void 0:t.componentWillLoad,componentDidLoad:i?void 0:t.componentDidLoad,componentWillUpdate:i?void 0:t.componentWillUpdate,componentDidUpdate:i?void 0:t.componentDidUpdate,destroy:t.destroy};const e=this._connectedCallback.bind(this),o=this._disconnectedCallback.bind(this),n=this._update.bind(this),r=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:e,hostDisconnected:o,hostUpdate:n,hostUpdated:r}):(t.connectedCallback=e,t.disconnectedCallback=o,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=r),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${N} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,A(),t.enableReadonly?.(),this._controllers.forEach(G),this._originalLifecycles.connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(H),this._originalLifecycles.disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,J,t)),await(this._originalLifecycles.componentWillLoad?.call(this.component))}_loaded(){this._controllers.forEach(z),this._originalLifecycles.componentDidLoad?.call(this.component)}_update(){this._controllers.forEach(K,this.component.changedProperties),this._originalLifecycles.componentWillUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(Q,t.changedProperties),this._originalLifecycles.componentDidUpdate?.call(this.component),this.isLit)t.changedProperties=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(X),this._controllers.clear(),await(this._originalLifecycles.destroy?.call(this.component))}}_setAutoDestroyTimeout(){this.component.el.isConnected||this.component.autoDestroyDisabled||(void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this._autoDestroyTimeout=e((()=>{this.destroy().catch(console.error)}),V))}},N="autoDestroyDisabled",V=1e3,B=t=>t;function G(t){"triggerConnected"in t?t.triggerConnected():o(t.hostConnected,t)}function H(t){"triggerDisconnected"in t?t.triggerDisconnected():o(t.hostDisconnected,t)}async function J(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function z(t){"triggerLoaded"in t?t.triggerLoaded():o(t.hostLoaded,t)}function K(t){"triggerUpdate"in t?t.triggerUpdate(this):o(t.hostUpdate,t,this)}function Q(t){"triggerUpdated"in t?t.triggerUpdated(this):o(t.hostUpdated,t,this)}function X(t){"triggerDestroy"in t?t.triggerDestroy():o(t.hostDestroy,t)}function Y(t,i,s){const e=t.manager.internals;return e.trackedValue!==R&&e.trackedValue!==s&&e.firePropTrackers(void 0,void 0),0===e.keyTrackers.length&&queueMicrotask((()=>e.firePropTrackers(void 0,void 0))),e.trackedValue=s,e.keyTrackers.push(((t,e)=>o(i,void 0,s===e?t:void 0))),s}function Z(t,i){const s=w();return Y(s,(e=>{const o=e,n=s.manager,r=s,c=r[o];if(null!=c&&c!==t&&"function"==typeof i.set&&(i.initialSet??1)){const s=i.set(c,t,o);if(s!==c)if(n.isLit)r[o]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){U.setter=!0;try{return void(r[o]=s)}finally{U.setter=!1}}())}))}}!function(t,i,s){var e,o;const n=s,r=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((e=r.getters)[i]??(e[i]=[]),r.getters[i].unshift(c));const h="ignore"===n.set?it:n.set;h&&((o=r.setters)[i]??(o[i]=[]),r.setters[i].unshift(h))}(s,o,i)}),t)}var tt,it=(t,i)=>i,st=t=>et(void 0,t),et=(tt=class extends S{constructor(t,i){super(t);const s=this.exports;try{g(this.component);const t=i(this.component,this),e=this.exports!==s;if(t instanceof Promise){e||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else e&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=m,s=new tt(...t),e=s.exports;k(i.at(-1));const n=s.component.manager.internals;var r;return n.markExports(s,e),s.watchExports((t=>n.markExports(s,t))),b!==(r=s)&&(b=r,queueMicrotask((()=>{b===r&&(b=void 0)}))),function(t,i,s){const e=Array.isArray(t)?t:[t];let n=e.length+1;const r=t=>{n-=1,void 0!==t&&(n=0),0===n&&i(t)};e.forEach((t=>function(t,i,s){const e=Object.keys(t),n=e.length;void 0===_&&queueMicrotask(A),_??(_=new Map);let r=_.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},_.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach((t=>t(e))),r.callbacks=[],r.keyCount=n),r.callbacks.push((e=>{const r=e[n];o(i,null,void 0===r?void 0:t[r]===s?r:void 0)})),s}(t,(i=>r(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=e.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&Y(c,(t=>r(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==y(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:e},o){const n=i,r=n[s]!==o;n[s]!==t.exports&&!r&&o!==t.exports&&(n[s]=t.exports);if(i===t.component){if(e){const i=t.component.manager.internals;r&&i.markExports(t,n[s]),T(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=e?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,e=i.internals.setters[s]?.includes(i.internals.readonlySetter);e?function(){U.readOnly=!0;try{return void(n[s]=t.exports)}finally{U.readOnly=!1}}():n[s]=t.exports}))}(s,t,e)),e)});const ot={en:{id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]}};const nt=t=>t.variables?t.variables.find((t=>"$layer"===t.name&&"dictionary"===t.type)).properties??[]:[];async function rt(){return await import("./p-9b2002c3.js")}const ct=new class extends a{constructor(){super(...arguments),this._languageId="arcgis-sql-expression",this._languageOptions={},this._layerMap=new Map}updateFeatureLayerForModel(t,i){const s=this._getApiKey(t);this._layerMap.set(s,i)}setLanguageOptions(t){this._languageOptions=t}getFeatureLayerForModel(t){const i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,s={locale:"en"}){r(i)&&(i=await async function(t,i="en"){if(!r(t))return;const s=await async function(t="en"){return await Promise.resolve(ot[t])}(i);if(!s)return;const e={variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};return s.variables.forEach((i=>{if(t.disabledVariables?.includes(i.name))return;const s=t.definitions[i.name];if("featureSet"===i.type)return c(s)?e.variables.push({...i,type:i.type,definition:s}):void 0;throw Error(`sdkVariable type not supported (yet) type: ${i.type}`)})),e}(i,s.locale));const e=await d(s.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!e)throw new Error(`Failed to load the language bundle for ${s.locale}`);this.disposeForModel(t);const o=this._getApiKey(t),a=new u(i,e);this._profileMap.set(o,a);const f=(t=>{const{apiVersion:i,bundles:s,hiddenApiItems:e}=t.toEditorProfileDefinition(),o=t.variables[0];if(!o||"featureSet"!==o.type)throw Error("No variable found in the editor profile");const r=function(t){const{name:i}=t,s=t.getDescription(),{definition:e}=t.toProfileVariableDefinition(),o={label:i,detail:i,insertText:i,insertTextMode:h.exports.InsertTextMode.asIs,insertTextFormat:h.exports.InsertTextFormat.PlainText,kind:h.exports.CompletionItemKind.Field},r={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!e||!("fields"in e))return r;const[c,a]=n(e.fields,s);return r.properties=c,o.documentation={kind:"markdown",value:a},r}(o);return{apiVersion:i,bundles:s,variables:[r],hiddenApiItems:e?.map((t=>t.toLowerCase()))}})(a);this.updateApiContextForModel(t,{locale:s.locale,profile:f});const p=i?.variables?.find((t=>"$layer"===t.name));p&&this.updateFeatureLayerForModel(t,p.definition)}async getApiLibrary(t){const i=f.parse(t),s=await async function(t){const i=await rt();return await i.getSqlExprWorker(t)}(i);return await s.getApiLibrary(this.getApiContextForModel(i))}};export{rt as a,nt as b,Z as g,st as m,ct as s,I as u,T as w}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{conf as e,language as t}from"./p-2d872daf.js";import"./p-9aad716f.js";
6
+ import{conf as e,language as t}from"./p-57bde3ee.js";import"./p-e295aee1.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.29
4
+ * v4.31.0-next.30
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-9aad716f.js";import{g as l}from"./p-7b0675d5.js";async function p(){return(await f()).getArcadeDiagnosticService()}async function f(){return await import("./p-03e23465.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)};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-e295aee1.js";import{g as l}from"./p-57dbf777.js";async function p(){return(await f()).getArcadeDiagnosticService()}async function f(){return await import("./p-71d639a6.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)};export{x as a,g as b,f as c,p as g}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{g as e,T as t,V as n,z as s,m as i,Q as o,O as r}from"./p-9aad716f.js";import{b as a,s as c}from"./p-970decab.js";import{t as l}from"./p-96c3e933.js";import"./p-7b0675d5.js";class u{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:t,languageOptions:n}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t,languageOptions:n}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}const d={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},m={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","EXTRACT","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","DATE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DAY","MONTH","YEAR","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","CONCAT","LOWER","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},E=({model:e,node:t,position:n,context:s,sdkFunctions:i,delimiterPos:o})=>{switch(t.type){case"interval":{if(!o)return void T(s,"INTERVAL",!1);const i=e.findNextMatch(/\)|,/u,{lineNumber:t.location.end.line,column:t.location.end.column},!0,!0,null,!0).range,[r,a]=k(n,o,i);return void((r??a)&&T(s,"INTERVAL",!1))}case"case-expression":{const e={startColumn:t.location.start.column,endColumn:t.location.start.column+4,startLineNumber:t.location.start.line,endLineNumber:t.location.start.line},i={startColumn:t.location.end.column-3,endColumn:t.location.end.column,startLineNumber:t.location.end.line,endLineNumber:t.location.end.line},[o,r]=k(n,e,i);return void((o??r)&&T(s,"CASE",!1))}case"expression-list":{const o=t.value;let r;return void o.forEach(((a,c)=>{if(0===c){const n=e.findMatches("(",{startLineNumber:1,endLineNumber:t.location.start.line,startColumn:1,endColumn:t.location.start.column},!1,!0,null,!0);r=n[n.length-1].range}E({model:e,node:a,position:n,context:s,sdkFunctions:i,delimiterPos:r}),r=L(c+1,a,e,o.length)}))}case"unary-expression":return void E({model:e,node:t.expr,position:n,context:s,sdkFunctions:i});case"binary-expression":return E({model:e,node:t.left,position:n,context:s,sdkFunctions:i}),void E({model:e,node:t.right,position:n,context:s,sdkFunctions:i});case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":case"data-type":case"parameter":case"when-clause":case"interval-period":case"interval-qualifier":return;case"column-reference":{const i=t.column,r=R(i);if(!o)return void(r&&T(s,i,!1));const a=e.getValueInRange(o),c=e.findNextMatch(/\)|,/u,{column:t.location.start.column,lineNumber:t.location.start.line},!0,!0,null,!0).range,[l,u]=k(n,o,c);return void((l??u)&&r&&T(s,i,"("===a))}case"function":{const o=t.name,r=t.args.value,a={startLineNumber:t.location.start.line,endLineNumber:t.location.start.line,startColumn:t.location.start.column,endColumn:t.location.start.column+o.length},c={startLineNumber:t.location.end.line,endLineNumber:t.location.end.line,startColumn:t.location.end.column,endColumn:t.location.end.column},[l,u]=k(n,a,c);let d;return(l??u)&&T(s,o,!1),void r.forEach(((o,a)=>{let c=!1;switch(o.type){case"function":case"column-reference":case"interval":case"case-expression":c=!0}0===a&&(d=e.findNextMatch("(",{column:t.location.start.column,lineNumber:t.location.start.line},!1,!0,null,!0).range),!c&&"string"===o.type&&"BOTH"===o.value||(E({model:e,node:o,position:n,context:s,sdkFunctions:i,delimiterPos:d}),d=L(a+1,o,e,r.length))}))}default:throw new Error("Invalid syntax.")}},N=(e,t,n)=>{const i=O(e),o=i?.map((e=>{const i=g.includes(e.toUpperCase())?s.CompletionItemKind.TypeParameter:s.CompletionItemKind.Keyword;return{label:e,kind:i,insertText:e,range:t,sortText:String.fromCharCode(121-n)}}));return o??[]},T=(e,t,n)=>{n?e.additionalContext=t:e.contextString=t},p=["AND","OR","IS","ISNOT","IN","NOT IN","BETWEEN","NOTBETWEEN","LIKE","NOT LIKE"];var h,I;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(h||(h={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(I||(I={}));const C={CAST:["DATE","FLOAT","INTEGER","REAL","SMALLINT","TIME","TIMESTAMP","VARCHAR"],EXTRACT:["YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],TRIM:["LEADING","TRAILING","BOTH"]};function A(e){return e.flatMap((e=>e.items)).reduce(((e,t)=>({...e,[t.name]:t})),{})}class b{constructor(e){this._defaults=e,this._sdkFunctions=A([])}async provideCompletionItems(e,o){const r=e.getWordUntilPosition(o),c={startLineNumber:o.lineNumber,endLineNumber:o.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn},u=this._defaults.getApiContextForModel(e.uri),d=u.profile?a(u.profile):[],m=await this._defaults.getApiLibrary(e.uri.toString());this._sdkFunctions=A(m);const T=await async function(e,s,i,o){try{const r=s.getValue(),a=await t(),c=await n([]),{parseTree:l}=await a.parseWhereClause(r,c);return((e,t,n,s,i)=>{const o={contextString:"NONE",additionalContext:"NONE"};E({model:e,node:t,position:s,context:o,sdkFunctions:i});const{contextString:r,additionalContext:a}=o;return[...N(r,n,0),...N(a,n,1)]})(s,l,e,i,o)}catch{const t=/(?:\(|\)|\s|,)/u,n=e=>{const t=void 0!==o[e],n=R(e),s=""!==e&&"'"!==e,i=["(",")",",","END"].includes(e);return s&&(t||n||i)},r=s.getValueInRange({startColumn:1,endColumn:i.column,startLineNumber:1,endLineNumber:i.lineNumber}).toUpperCase().split(t).map((e=>e.trim())).filter((e=>n(e))),a=[];for(let e=0;e<r.length;e++){const t=r[e],n=a.length>0;if(!(e<r.length-1&&o[t]&&"("!==r[e+1]))if("("!==t&&","!==t)if(")"!==t&&"END"!==t){if(e!==r.length-1||!o[t])if(e>0){const n=R(r[e-1]);R(t)&&n||a.push(t)}else 0===e&&a.push(t)}else n&&a.pop();else n&&R(a[a.length-1])&&a.pop()}let c=[];return[...new Set(a)].forEach(((t,n)=>{const s=N(t,e,n);c=[...c,...s]})),c}}(c,e,o,this._sdkFunctions),{sqlKeywordsCompletion:h,sqlBinOpsCompletion:I,sqlFunctionCompletion:C,fieldsCompletion:b,sqlDataTypeCompletion:f}=function(e,t,n){const o=e.map((e=>({label:e.completion?.label??e.name,insertText:e.completion?.insertText??e.name,sortText:"zaa",detail:e.completion?.detail,range:t,kind:s.CompletionItemKind.Variable,documentation:e.completion?.documentation}))),r=p.map((e=>{const n=e=>"ISNOT"===e?"IS NOT":"NOTBETWEEN"===e?"NOT BETWEEN":e;return{label:n(e),kind:s.CompletionItemKind.Keyword,insertText:n(e),range:t,sortText:"zc"}})),a=x.map((e=>"CASE"===e?{label:e,kind:s.CompletionItemKind.Snippet,insertText:"CASE\n\tWHEN condition1 THEN result1 \n\tELSE result\nEND",range:t,sortText:"zb"}:{label:e,kind:s.CompletionItemKind.Keyword,insertText:e,range:t,sortText:"zc"})),c=g.map((e=>({label:e,kind:s.CompletionItemKind.TypeParameter,insertText:e,range:t,sortText:"zd"})));return{fieldsCompletion:o,sqlFunctionCompletion:Object.values(n).map((e=>{const n=e.completion,o={label:n.label,insertText:n.insertText||n.label,sortText:"zac",filterText:n.filterText,detail:n.detail,range:t,kind:l(n.kind)};return n.insertTextFormat===i.exports.InsertTextFormat.Snippet&&(o.insertTextRules=s.CompletionItemInsertTextRule.InsertAsSnippet),n.documentation&&(o.documentation="string"==typeof n.documentation?n.documentation:{supportThemeIcons:!1,value:n.documentation.value,supportHtml:!0}),o})),sqlBinOpsCompletion:r,sqlKeywordsCompletion:a,sqlDataTypeCompletion:c}}(d,c,this._sdkFunctions),O=new Map;return[...h,...I,...f,...C,...b,...T].forEach((e=>{const{sortText:t}=e,n=e.label;O.get(n)||O.set(n,e),t.charCodeAt(0)<O.get(n).sortText.charCodeAt(0)&&O.set(n,e)})),{suggestions:Array.from(O.entries()).map((([,e])=>e))}}}class f{constructor(t,n,{defaults:s,diagnosticService:i}){this._languageId=t,this._worker=n,this._disposables=[],this._listener=new Map,this._diagnosticsService=i,this._defaults=s;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const n=o((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(n)),this._doValidate(e,t).catch(console.error)},a=t=>{const n=t.uri.toString();e.setModelMarkers(t,this._languageId,[]);const s=this._listener.get(n);s&&(s.dispose(),this._listener.delete(n))};this._disposables.push(e.onDidCreateModel(r)),this._disposables.push(e.onWillDisposeModel((e=>a(e)))),this._disposables.push(e.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(s.onDidChange((()=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(s.onModelContextDidChange((t=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&e.uri.toString()===t&&this._doValidate(e,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),e.getModels().forEach(r)}async _doValidate(t,n){if(t.isAttachedToEditor())try{const s=await this._worker(t.uri),i=this._defaults.getApiContextForModel(t.uri),o=await s.doValidation(t.uri.toString(),i);this._diagnosticsService.fireDiagnosticsChange(t.uri,o),e.setModelMarkers(t,n,o)}catch(e){console.error(e)}}}const x=["INTERVAL","CASE"],g=C.CAST,O=e=>{switch(e.toLowerCase()){case"extract":return C.EXTRACT;case"position":return["IN"];case"trim":return C.TRIM;case"cast":return["AS",...C.CAST];case"interval":return[...C.EXTRACT];case"case":return["WHEN","THEN","ELSE","END"];default:return[]}},L=(e,t,n,s)=>{let i;const o=t.location.start,r=t.location.end;return i=0===e?n.findNextMatch("(",{lineNumber:o.line,column:o.column},!1,!0,null,!0).range:e===s?{startLineNumber:r.line,endLineNumber:r.line,startColumn:r.column,endColumn:r.column}:n.findNextMatch(",",{lineNumber:o.line,column:o.column},!1,!0,null,!0).range,i},R=e=>{const t=e.toUpperCase();return x.includes(t)},k=(e,t,n)=>{let s=!1,i=!1;const o=e.column,r=e.lineNumber;return t.startLineNumber===n.startLineNumber&&t.startLineNumber===r&&o>t.startColumn&&o<n.endColumn&&(s=!0),t.startLineNumber!==n.startLineNumber&&(r===t.startLineNumber&&o>t.startColumn||r===n.startLineNumber&&o<n.endColumn||r>t.startLineNumber&&r<n.endLineNumber)&&(i=!0),[s,i]};let S;async function w(...e){return await new Promise(((t,n)=>{S?t(S(...e)):n(new Error("sql expression worker not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new r}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function M(){return y}function D(e){const t=new u(e),n=async(...e)=>await t.getLanguageServiceWorker(...e);S=n,s.setMonarchTokensProvider(c.languageId,m),s.setLanguageConfiguration(c.languageId,d);const i=new b(c);s.registerCompletionItemProvider(c.languageId,i),new f(e.languageId,n,{defaults:e,diagnosticService:y})}export{M as getSqlExprDiagnosticService,w as getSqlExprWorker,D as setupMode}
6
+ import{g as e,T as t,V as n,z as s,m as i,Q as o,O as r}from"./p-e295aee1.js";import{b as a,s as c}from"./p-7e2ae261.js";import{t as l}from"./p-fe4ee070.js";import"./p-57dbf777.js";class u{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:t,languageOptions:n}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t,languageOptions:n}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}const d={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},m={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","EXTRACT","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","DATE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DAY","MONTH","YEAR","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","CONCAT","LOWER","TRIM","UPPER"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},E=({model:e,node:t,position:n,context:s,sdkFunctions:i,delimiterPos:o})=>{switch(t.type){case"interval":{if(!o)return void T(s,"INTERVAL",!1);const i=e.findNextMatch(/\)|,/u,{lineNumber:t.location.end.line,column:t.location.end.column},!0,!0,null,!0).range,[r,a]=k(n,o,i);return void((r??a)&&T(s,"INTERVAL",!1))}case"case-expression":{const e={startColumn:t.location.start.column,endColumn:t.location.start.column+4,startLineNumber:t.location.start.line,endLineNumber:t.location.start.line},i={startColumn:t.location.end.column-3,endColumn:t.location.end.column,startLineNumber:t.location.end.line,endLineNumber:t.location.end.line},[o,r]=k(n,e,i);return void((o??r)&&T(s,"CASE",!1))}case"expression-list":{const o=t.value;let r;return void o.forEach(((a,c)=>{if(0===c){const n=e.findMatches("(",{startLineNumber:1,endLineNumber:t.location.start.line,startColumn:1,endColumn:t.location.start.column},!1,!0,null,!0);r=n[n.length-1].range}E({model:e,node:a,position:n,context:s,sdkFunctions:i,delimiterPos:r}),r=L(c+1,a,e,o.length)}))}case"unary-expression":return void E({model:e,node:t.expr,position:n,context:s,sdkFunctions:i});case"binary-expression":return E({model:e,node:t.left,position:n,context:s,sdkFunctions:i}),void E({model:e,node:t.right,position:n,context:s,sdkFunctions:i});case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":case"data-type":case"parameter":case"when-clause":case"interval-period":case"interval-qualifier":return;case"column-reference":{const i=t.column,r=R(i);if(!o)return void(r&&T(s,i,!1));const a=e.getValueInRange(o),c=e.findNextMatch(/\)|,/u,{column:t.location.start.column,lineNumber:t.location.start.line},!0,!0,null,!0).range,[l,u]=k(n,o,c);return void((l??u)&&r&&T(s,i,"("===a))}case"function":{const o=t.name,r=t.args.value,a={startLineNumber:t.location.start.line,endLineNumber:t.location.start.line,startColumn:t.location.start.column,endColumn:t.location.start.column+o.length},c={startLineNumber:t.location.end.line,endLineNumber:t.location.end.line,startColumn:t.location.end.column,endColumn:t.location.end.column},[l,u]=k(n,a,c);let d;return(l??u)&&T(s,o,!1),void r.forEach(((o,a)=>{let c=!1;switch(o.type){case"function":case"column-reference":case"interval":case"case-expression":c=!0}0===a&&(d=e.findNextMatch("(",{column:t.location.start.column,lineNumber:t.location.start.line},!1,!0,null,!0).range),!c&&"string"===o.type&&"BOTH"===o.value||(E({model:e,node:o,position:n,context:s,sdkFunctions:i,delimiterPos:d}),d=L(a+1,o,e,r.length))}))}default:throw new Error("Invalid syntax.")}},N=(e,t,n)=>{const i=O(e),o=i?.map((e=>{const i=g.includes(e.toUpperCase())?s.CompletionItemKind.TypeParameter:s.CompletionItemKind.Keyword;return{label:e,kind:i,insertText:e,range:t,sortText:String.fromCharCode(121-n)}}));return o??[]},T=(e,t,n)=>{n?e.additionalContext=t:e.contextString=t},p=["AND","OR","IS","ISNOT","IN","NOT IN","BETWEEN","NOTBETWEEN","LIKE","NOT LIKE"];var h,I;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(h||(h={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(I||(I={}));const C={CAST:["DATE","FLOAT","INTEGER","REAL","SMALLINT","TIME","TIMESTAMP","VARCHAR"],EXTRACT:["YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],TRIM:["LEADING","TRAILING","BOTH"]};function A(e){return e.flatMap((e=>e.items)).reduce(((e,t)=>({...e,[t.name]:t})),{})}class b{constructor(e){this._defaults=e,this._sdkFunctions=A([])}async provideCompletionItems(e,o){const r=e.getWordUntilPosition(o),c={startLineNumber:o.lineNumber,endLineNumber:o.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn},u=this._defaults.getApiContextForModel(e.uri),d=u.profile?a(u.profile):[],m=await this._defaults.getApiLibrary(e.uri.toString());this._sdkFunctions=A(m);const T=await async function(e,s,i,o){try{const r=s.getValue(),a=await t(),c=await n([]),{parseTree:l}=await a.parseWhereClause(r,c);return((e,t,n,s,i)=>{const o={contextString:"NONE",additionalContext:"NONE"};E({model:e,node:t,position:s,context:o,sdkFunctions:i});const{contextString:r,additionalContext:a}=o;return[...N(r,n,0),...N(a,n,1)]})(s,l,e,i,o)}catch{const t=/(?:\(|\)|\s|,)/u,n=e=>{const t=void 0!==o[e],n=R(e),s=""!==e&&"'"!==e,i=["(",")",",","END"].includes(e);return s&&(t||n||i)},r=s.getValueInRange({startColumn:1,endColumn:i.column,startLineNumber:1,endLineNumber:i.lineNumber}).toUpperCase().split(t).map((e=>e.trim())).filter((e=>n(e))),a=[];for(let e=0;e<r.length;e++){const t=r[e],n=a.length>0;if(!(e<r.length-1&&o[t]&&"("!==r[e+1]))if("("!==t&&","!==t)if(")"!==t&&"END"!==t){if(e!==r.length-1||!o[t])if(e>0){const n=R(r[e-1]);R(t)&&n||a.push(t)}else 0===e&&a.push(t)}else n&&a.pop();else n&&R(a[a.length-1])&&a.pop()}let c=[];return[...new Set(a)].forEach(((t,n)=>{const s=N(t,e,n);c=[...c,...s]})),c}}(c,e,o,this._sdkFunctions),{sqlKeywordsCompletion:h,sqlBinOpsCompletion:I,sqlFunctionCompletion:C,fieldsCompletion:b,sqlDataTypeCompletion:f}=function(e,t,n){const o=e.map((e=>({label:e.completion?.label??e.name,insertText:e.completion?.insertText??e.name,sortText:"zaa",detail:e.completion?.detail,range:t,kind:s.CompletionItemKind.Variable,documentation:e.completion?.documentation}))),r=p.map((e=>{const n=e=>"ISNOT"===e?"IS NOT":"NOTBETWEEN"===e?"NOT BETWEEN":e;return{label:n(e),kind:s.CompletionItemKind.Keyword,insertText:n(e),range:t,sortText:"zc"}})),a=x.map((e=>"CASE"===e?{label:e,kind:s.CompletionItemKind.Snippet,insertText:"CASE\n\tWHEN condition1 THEN result1 \n\tELSE result\nEND",range:t,sortText:"zb"}:{label:e,kind:s.CompletionItemKind.Keyword,insertText:e,range:t,sortText:"zc"})),c=g.map((e=>({label:e,kind:s.CompletionItemKind.TypeParameter,insertText:e,range:t,sortText:"zd"})));return{fieldsCompletion:o,sqlFunctionCompletion:Object.values(n).map((e=>{const n=e.completion,o={label:n.label,insertText:n.insertText||n.label,sortText:"zac",filterText:n.filterText,detail:n.detail,range:t,kind:l(n.kind)};return n.insertTextFormat===i.exports.InsertTextFormat.Snippet&&(o.insertTextRules=s.CompletionItemInsertTextRule.InsertAsSnippet),n.documentation&&(o.documentation="string"==typeof n.documentation?n.documentation:{supportThemeIcons:!1,value:n.documentation.value,supportHtml:!0}),o})),sqlBinOpsCompletion:r,sqlKeywordsCompletion:a,sqlDataTypeCompletion:c}}(d,c,this._sdkFunctions),O=new Map;return[...h,...I,...f,...C,...b,...T].forEach((e=>{const{sortText:t}=e,n=e.label;O.get(n)||O.set(n,e),t.charCodeAt(0)<O.get(n).sortText.charCodeAt(0)&&O.set(n,e)})),{suggestions:Array.from(O.entries()).map((([,e])=>e))}}}class f{constructor(t,n,{defaults:s,diagnosticService:i}){this._languageId=t,this._worker=n,this._disposables=[],this._listener=new Map,this._diagnosticsService=i,this._defaults=s;const r=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const n=o((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(n)),this._doValidate(e,t).catch(console.error)},a=t=>{const n=t.uri.toString();e.setModelMarkers(t,this._languageId,[]);const s=this._listener.get(n);s&&(s.dispose(),this._listener.delete(n))};this._disposables.push(e.onDidCreateModel(r)),this._disposables.push(e.onWillDisposeModel((e=>a(e)))),this._disposables.push(e.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(s.onDidChange((()=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(s.onModelContextDidChange((t=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&e.uri.toString()===t&&this._doValidate(e,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),e.getModels().forEach(r)}async _doValidate(t,n){if(t.isAttachedToEditor())try{const s=await this._worker(t.uri),i=this._defaults.getApiContextForModel(t.uri),o=await s.doValidation(t.uri.toString(),i);this._diagnosticsService.fireDiagnosticsChange(t.uri,o),e.setModelMarkers(t,n,o)}catch(e){console.error(e)}}}const x=["INTERVAL","CASE"],g=C.CAST,O=e=>{switch(e.toLowerCase()){case"extract":return C.EXTRACT;case"position":return["IN"];case"trim":return C.TRIM;case"cast":return["AS",...C.CAST];case"interval":return[...C.EXTRACT];case"case":return["WHEN","THEN","ELSE","END"];default:return[]}},L=(e,t,n,s)=>{let i;const o=t.location.start,r=t.location.end;return i=0===e?n.findNextMatch("(",{lineNumber:o.line,column:o.column},!1,!0,null,!0).range:e===s?{startLineNumber:r.line,endLineNumber:r.line,startColumn:r.column,endColumn:r.column}:n.findNextMatch(",",{lineNumber:o.line,column:o.column},!1,!0,null,!0).range,i},R=e=>{const t=e.toUpperCase();return x.includes(t)},k=(e,t,n)=>{let s=!1,i=!1;const o=e.column,r=e.lineNumber;return t.startLineNumber===n.startLineNumber&&t.startLineNumber===r&&o>t.startColumn&&o<n.endColumn&&(s=!0),t.startLineNumber!==n.startLineNumber&&(r===t.startLineNumber&&o>t.startColumn||r===n.startLineNumber&&o<n.endColumn||r>t.startLineNumber&&r<n.endLineNumber)&&(i=!0),[s,i]};let S;async function w(...e){return await new Promise(((t,n)=>{S?t(S(...e)):n(new Error("sql expression worker not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new r}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function M(){return y}function D(e){const t=new u(e),n=async(...e)=>await t.getLanguageServiceWorker(...e);S=n,s.setMonarchTokensProvider(c.languageId,m),s.setLanguageConfiguration(c.languageId,d);const i=new b(c);s.registerCompletionItemProvider(c.languageId,i),new f(e.languageId,n,{defaults:e,diagnosticService:y})}export{M as getSqlExprDiagnosticService,w as getSqlExprWorker,D as setupMode}
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{M as e}from"./p-9aad716f.js";
6
+ import{M as e}from"./p-e295aee1.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{M as t}from"./p-9aad716f.js";
6
+ import{M as t}from"./p-e295aee1.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.29
4
+ * v4.31.0-next.30
5
5
  */
6
- import{M as t}from"./p-9aad716f.js";
6
+ import{M as t}from"./p-e295aee1.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)