@arcgis/coding-components 4.33.0-next.7 → 4.33.0-next.9

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 (66) hide show
  1. package/dist/arcgis-coding-components/{LK34UWXG.js → 27XZTUCS.js} +2 -2
  2. package/dist/arcgis-coding-components/{6ZTMB4FH.js → 2SPL6IJU.js} +1 -1
  3. package/dist/arcgis-coding-components/{SBJKWEEG.js → 3WYOZF2B.js} +2 -2
  4. package/dist/arcgis-coding-components/{I3HFJH7G.js → 3YBHPEVW.js} +2 -2
  5. package/dist/arcgis-coding-components/{CJ7YDPYF.js → 4S4IT6SJ.js} +2 -2
  6. package/dist/arcgis-coding-components/{WCAWO6E3.js → 5ILAKWC4.js} +2 -2
  7. package/dist/arcgis-coding-components/{WI363EO4.js → 5YFELFRQ.js} +2 -2
  8. package/dist/arcgis-coding-components/{T3GND6PM.js → 7OUR75ZF.js} +1 -1
  9. package/dist/arcgis-coding-components/{JWLC7S4N.js → AXPJ2Y25.js} +2 -2
  10. package/dist/arcgis-coding-components/{XEAD7QT4.js → AZEVMKOL.js} +2 -2
  11. package/dist/arcgis-coding-components/{ADXVVZ26.js → B3OUJHOS.js} +2 -2
  12. package/dist/arcgis-coding-components/{2I74QHO5.js → BGR5GZWV.js} +2 -2
  13. package/dist/arcgis-coding-components/BIHPEQV3.js +4 -0
  14. package/dist/arcgis-coding-components/{WCVA7KK7.js → BTKF4DO3.js} +2 -2
  15. package/dist/arcgis-coding-components/{GFFTZDOC.js → DKJJH2YO.js} +3 -3
  16. package/dist/arcgis-coding-components/{FEMWKOBY.js → EB3SL4FA.js} +2 -2
  17. package/dist/arcgis-coding-components/EOJQ5KTM.js +4 -0
  18. package/dist/arcgis-coding-components/{KTXOMAMJ.js → HLAH3PPK.js} +3 -3
  19. package/dist/arcgis-coding-components/{HS7ZIGLB.js → HNTEZ745.js} +2 -2
  20. package/dist/arcgis-coding-components/HTWIPGSL.js +6 -0
  21. package/dist/arcgis-coding-components/{LJ7OJW2B.js → KNKNPQAL.js} +1 -1
  22. package/dist/arcgis-coding-components/{JOHHPXKG.js → KPLD4IBE.js} +2 -2
  23. package/dist/arcgis-coding-components/{HIAWA73I.js → LOXD2TQY.js} +2 -2
  24. package/dist/arcgis-coding-components/{K5OSQBZ3.js → MKIBJBLW.js} +2 -2
  25. package/dist/arcgis-coding-components/{WD5A4OLG.js → MRTAPSL6.js} +2 -2
  26. package/dist/arcgis-coding-components/{S3N427CF.js → QF3BCOZ6.js} +2 -2
  27. package/dist/arcgis-coding-components/{YNT3SATY.js → QNHVIC5P.js} +2 -2
  28. package/dist/arcgis-coding-components/{ZXQZZBQT.js → QQBCWS6N.js} +2 -2
  29. package/dist/arcgis-coding-components/{PLH3MCSG.js → SHGANYQ4.js} +2 -2
  30. package/dist/arcgis-coding-components/{T7VSAUA2.js → UPNODJS2.js} +1 -1
  31. package/dist/arcgis-coding-components/{6UEK7J2A.js → VP2EHHNC.js} +2 -2
  32. package/dist/arcgis-coding-components/{OVXALCES.js → WESBCVZE.js} +2 -2
  33. package/dist/arcgis-coding-components/{IN5QOICN.js → XALSNLFJ.js} +2 -2
  34. package/dist/arcgis-coding-components/{DBRCPP2I.js → ZSRDAFXU.js} +2 -2
  35. package/dist/arcgis-coding-components/{GGTHGISJ.js → ZUT526VD.js} +1 -1
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +328 -328
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +3 -3
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +6 -6
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/package.json +7 -7
  64. package/dist/arcgis-coding-components/4PZIF3L7.js +0 -6
  65. package/dist/arcgis-coding-components/FI544GJZ.js +0 -4
  66. package/dist/arcgis-coding-components/T2XMM55G.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
- v4.33.0-next.7 */
4
- import{a as t9,b as $,d as CK}from"./GGTHGISJ.js";function ps(n,e=0){return n[n.length-(1+e)]}function o9(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function xt(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function s9(n,e){let t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function r9(n,e,t){return yK(n.length,i=>t(n[i],e))}function yK(n,e){let t=0,i=n-1;for(;t<=i;){let o=(t+i)/2|0,s=e(o);if(s<0)t=o+1;else if(s>0)i=o-1;else return o}return-(t+1)}function i9(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],o=[],s=[],r=[];for(let a of e){let l=t(a,i);l<0?o.push(a):l>0?s.push(a):r.push(a)}return n<o.length?i9(n,o,t):n<o.length+r.length?r[0]:i9(n-(o.length+r.length),s,t)}function Gne(n,e){let t=[],i;for(let o of n.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],t.push(i)):i.push(o);return t}function*Pf(n,e){let t,i;for(let o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function u0(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function a9(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function Of(n){return n.filter(e=>!!e)}function O2(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function l9(n){return!Array.isArray(n)||n.length===0}function Nh(n){return Array.isArray(n)&&n.length>0}function dr(n,e=t=>t){let t=new Set;return n.filter(i=>{let o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function Ff(n,e){return n.length>0?n[0]:e}function An(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);let i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function Yc(n,e,t){let i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function f0(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function o_(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function s_(n,e){for(let t of e)n.push(t)}function c9(n){return Array.isArray(n)?n:[n]}function SK(n,e,t){let i=d9(n,e),o=n.length,s=t.length;n.length=o+s;for(let r=o-1;r>=i;r--)n[r+s]=n[r];for(let r=0;r<s;r++)n[r+i]=t[r]}function F2(n,e,t,i){let o=d9(n,e),s=n.splice(o,t);return s===void 0&&(s=[]),SK(n,o,i),s}function d9(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}function mo(n,e){return(t,i)=>e(n(t),n(i))}function h9(...n){return(e,t)=>{for(let i of n){let o=i(e,t);if(!n_.isNeitherLessOrGreaterThan(o))return o}return n_.neitherLessOrGreaterThan}}function f9(n){return(e,t)=>-n(e,t)}var n_,$r,u9,io,Yl,n9,tt=$(()=>{(function(n){function e(s){return s<0}n.isLessThan=e;function t(s){return s<=0}n.isLessThanOrEqual=t;function i(s){return s>0}n.isGreaterThan=i;function o(s){return s===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(n_||(n_={}));$r=(n,e)=>n-e,u9=(n,e)=>$r(n?1:0,e?1:0);io=class{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},Yl=class n{static{this.empty=new n(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new n(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new n(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||n_.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}},n9=class n{constructor(e){this._indexMap=e}static createSortPermutation(e,t){let i=Array.from(e.keys()).sort((o,s)=>t(e[o],e[s]));return new n(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){let e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new n(e)}}});function mn(n){return typeof n=="string"}function wi(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function g9(n){let e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function qr(n){return typeof n=="number"&&!isNaN(n)}function B2(n){return!!n&&typeof n[Symbol.iterator]=="function"}function g0(n){return n===!0||n===!1}function po(n){return typeof n>"u"}function Ql(n){return!Un(n)}function Un(n){return po(n)||n===null}function _s(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function m0(n){if(Un(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function Bf(n){return typeof n=="function"}function m9(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++)xK(n[i],e[i])}function xK(n,e){if(mn(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Bf(e)){try{if(n instanceof e)return}catch{}if(!Un(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var pi=$(()=>{});function Wa(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Wa(i):i}),e}function p9(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(_9.call(t,i)){let o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!g9(o)&&e.push(o)}}return n}function p0(n,e){return W2(n,e,new Set)}function W2(n,e,t){if(Un(n))return n;let i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){let o=[];for(let s of n)o.push(W2(s,e,t));return o}if(wi(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);let o={};for(let s in n)_9.call(n,s)&&(o[s]=W2(n[s],e,t));return t.delete(n),o}return n}function LK(n,e,t=!0){return wi(n)?(wi(e)&&Object.keys(e).forEach(i=>{i in n?t&&(wi(n[i])&&wi(e[i])?LK(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Gi(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Gi(n[t],e[t]))return!1}else{let o=[];for(i in n)o.push(i);o.sort();let s=[];for(i in e)s.push(i);if(s.sort(),!Gi(o,s))return!1;for(t=0;t<o.length;t++)if(!Gi(n[o[t]],e[o[t]]))return!1}return!0}function kK(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function r_(n){let e=[];for(let t of kK(n))typeof n[t]=="function"&&e.push(t);return e}function b9(n,e){let t=o=>function(){let s=Array.prototype.slice.call(arguments,0);return e(o,s)},i={};for(let o of n)i[o]=t(o);return i}var _9,bs=$(()=>{pi();_9=Object.prototype.hasOwnProperty});function a_(){return globalThis._VSCODE_NLS_MESSAGES}function Mh(){return globalThis._VSCODE_NLS_LANGUAGE}var z2=$(()=>{});function b0(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{let s=o[0],r=e[s],a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),DK&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return b0(typeof n=="number"?v9(n,e):e,t)}function v9(n,e){let t=a_()?.[n];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${n} !!!`)}return t}function Xne(n,e,...t){let i;typeof n=="number"?i=v9(n,e):i=e;let o=b0(i,t);return{value:o,original:e===i?o:b0(e,t)}}var DK,De=$(()=>{z2();z2();DK=Mh()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function D9(){if(!y9){y9=!0;let n=new Uint8Array(2);n[0]=1,n[1]=2,C9=new Uint16Array(n.buffer)[0]===513}return C9}var Wf,c_,d_,l_,EK,S9,H2,IK,U2,TK,x9,v0,w0,w9,NK,Xl,Jl,Fs,L9,MK,V2,_i,Ee,oi,Xc,Va,AK,k9,vs,C0,za,eoe,RK,y0,no,C9,y9,$2,E9,I9,T9,N9,dt=$(()=>{De();Wf="en",c_=!1,d_=!1,l_=!1,EK=!1,S9=!1,H2=!1,IK=!1,U2=!1,TK=!1,x9=!1,w0=Wf,w9=Wf,Jl=globalThis;typeof Jl.vscode<"u"&&typeof Jl.vscode.process<"u"?Fs=Jl.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Fs=process);L9=typeof Fs?.versions?.electron=="string",MK=L9&&Fs?.type==="renderer";if(typeof Fs=="object"){c_=Fs.platform==="win32",d_=Fs.platform==="darwin",l_=Fs.platform==="linux",EK=l_&&!!Fs.env.SNAP&&!!Fs.env.SNAP_REVISION,IK=L9,TK=!!Fs.env.CI||!!Fs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,v0=Wf,w0=Wf;let n=Fs.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n);v0=e.userLocale,w9=e.osLocale,w0=e.resolvedLanguage||Wf,NK=e.languagePack?.translationsConfigFile}catch{}S9=!0}else typeof navigator=="object"&&!MK?(Xl=navigator.userAgent,c_=Xl.indexOf("Windows")>=0,d_=Xl.indexOf("Macintosh")>=0,U2=(Xl.indexOf("Macintosh")>=0||Xl.indexOf("iPad")>=0||Xl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l_=Xl.indexOf("Linux")>=0,x9=Xl?.indexOf("Mobi")>=0,H2=!0,w0=Mh()||Wf,v0=navigator.language.toLowerCase(),w9=v0):console.error("Unable to resolve platform.");V2=0;d_?V2=1:c_?V2=3:l_&&(V2=2);_i=c_,Ee=d_,oi=l_,Xc=S9,Va=H2,AK=H2&&typeof Jl.importScripts=="function",k9=AK?Jl.origin:void 0,vs=U2,C0=x9,za=Xl,eoe=w0,RK=typeof Jl.postMessage=="function"&&!Jl.importScripts,y0=(()=>{if(RK){let n=[];Jl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){let s=n[i];if(s.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),s.callback();return}}});let e=0;return t=>{let i=++e;n.push({id:i,callback:t}),Jl.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),no=d_||U2?2:c_?1:3,C9=!0,y9=!1;$2=!!(za&&za.indexOf("Chrome")>=0),E9=!!(za&&za.indexOf("Firefox")>=0),I9=!!(!$2&&za&&za.indexOf("Safari")>=0),T9=!!(za&&za.indexOf("Edg/")>=0),N9=!!(za&&za.indexOf("Android")>=0)});var Zi,h_=$(()=>{Zi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var Qe,Bs=$(()=>{(function(n){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}n.is=e;let t=Object.freeze([]);function i(){return t}n.empty=i;function*o(w){yield w}n.single=o;function s(w){return e(w)?w:o(w)}n.wrap=s;function r(w){return w||t}n.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}n.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}n.first=c;function d(w,S){let L=0;for(let x of w)if(S(x,L++))return!0;return!1}n.some=d;function h(w,S){for(let L of w)if(S(L))return L}n.find=h;function*u(w,S){for(let L of w)S(L)&&(yield L)}n.filter=u;function*f(w,S){let L=0;for(let x of w)yield S(x,L++)}n.map=f;function*g(w,S){let L=0;for(let x of w)yield*S(x,L++)}n.flatMap=g;function*m(...w){for(let S of w)yield*S}n.concat=m;function _(w,S,L){let x=L;for(let D of w)x=S(x,D);return x}n.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S<L;S++)yield w[S]}n.slice=b;function v(w,S=Number.POSITIVE_INFINITY){let L=[];if(S===0)return[L,w];let x=w[Symbol.iterator]();for(let D=0;D<S;D++){let E=x.next();if(E.done)return[L,n.empty()];L.push(E.value)}return[L,{[Symbol.iterator](){return x}}]}n.consume=v;async function C(w){let S=[];for await(let L of w)S.push(L);return Promise.resolve(S)}n.asyncToArray=C})(Qe||(Qe={}))});var Oi,Ci,ur=$(()=>{Oi=class n{static{this.Undefined=new n(void 0)}constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}},Ci=class{constructor(){this._first=Oi.Undefined,this._last=Oi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Oi.Undefined}clear(){let e=this._first;for(;e!==Oi.Undefined;){let t=e.next;e.prev=Oi.Undefined,e.next=Oi.Undefined,e=t}this._first=Oi.Undefined,this._last=Oi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new Oi(e);if(this._first===Oi.Undefined)this._first=i,this._last=i;else if(t){let s=this._last;this._last=i,i.prev=s,s.next=i}else{let s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Oi.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Oi.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Oi.Undefined&&e.next!==Oi.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Oi.Undefined&&e.next===Oi.Undefined?(this._first=Oi.Undefined,this._last=Oi.Undefined):e.next===Oi.Undefined?(this._last=this._last.prev,this._last.next=Oi.Undefined):e.prev===Oi.Undefined&&(this._first=this._first.next,this._first.prev=Oi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Oi.Undefined;)yield e.element,e=e.next}}});function PK(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let t of q2)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}function f_(n){let e=u_;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function Jc(n,e,t,i,o){if(e=f_(e),o||(o=Qe.first(M9)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),Jc(n,e,t,i,o)}let s=Date.now(),r=n-1-i,a=-1,l=null;for(let c=1;!(Date.now()-s>=o.timeBudget);c++){let d=r-o.windowSize*c;e.lastIndex=Math.max(0,d);let h=OK(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function OK(n,e,t,i){let o;for(;o=n.exec(e);){let s=o.index||0;if(s<=t&&n.lastIndex>=t)return o;if(i>0&&s>i)return null}return null}var q2,u_,M9,zf=$(()=>{Bs();ur();q2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";u_=PK();M9=new Ci;M9.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function $e(n){od(n)||P9.onUnexpectedError(n)}function k0(n){od(n)||P9.onUnexpectedExternalError(n)}function NT(n){if(n instanceof Error){let{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:p_.isErrorNoTelemetry(n)}}return n}function od(n){return n instanceof fr?!0:n instanceof Error&&n.name===x0&&n.message===x0}function O9(){let n=new Error(x0);return n.name=n.message,n}function sd(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function qf(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}var TT,P9,x0,fr,L0,p_,Ge,ht=$(()=>{TT=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?p_.isErrorNoTelemetry(e)?new p_(e.message+`
3
+ v4.33.0-next.9 */
4
+ import{a as t9,b as $,d as CK}from"./ZUT526VD.js";function ps(n,e=0){return n[n.length-(1+e)]}function o9(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function xt(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function s9(n,e){let t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function r9(n,e,t){return yK(n.length,i=>t(n[i],e))}function yK(n,e){let t=0,i=n-1;for(;t<=i;){let o=(t+i)/2|0,s=e(o);if(s<0)t=o+1;else if(s>0)i=o-1;else return o}return-(t+1)}function i9(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],o=[],s=[],r=[];for(let a of e){let l=t(a,i);l<0?o.push(a):l>0?s.push(a):r.push(a)}return n<o.length?i9(n,o,t):n<o.length+r.length?r[0]:i9(n-(o.length+r.length),s,t)}function Gne(n,e){let t=[],i;for(let o of n.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],t.push(i)):i.push(o);return t}function*Pf(n,e){let t,i;for(let o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function u0(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function a9(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function Of(n){return n.filter(e=>!!e)}function O2(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function l9(n){return!Array.isArray(n)||n.length===0}function Nh(n){return Array.isArray(n)&&n.length>0}function dr(n,e=t=>t){let t=new Set;return n.filter(i=>{let o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function Ff(n,e){return n.length>0?n[0]:e}function An(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);let i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function Yc(n,e,t){let i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function f0(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function o_(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function s_(n,e){for(let t of e)n.push(t)}function c9(n){return Array.isArray(n)?n:[n]}function SK(n,e,t){let i=d9(n,e),o=n.length,s=t.length;n.length=o+s;for(let r=o-1;r>=i;r--)n[r+s]=n[r];for(let r=0;r<s;r++)n[r+i]=t[r]}function F2(n,e,t,i){let o=d9(n,e),s=n.splice(o,t);return s===void 0&&(s=[]),SK(n,o,i),s}function d9(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}function mo(n,e){return(t,i)=>e(n(t),n(i))}function h9(...n){return(e,t)=>{for(let i of n){let o=i(e,t);if(!n_.isNeitherLessOrGreaterThan(o))return o}return n_.neitherLessOrGreaterThan}}function f9(n){return(e,t)=>-n(e,t)}var n_,$r,u9,io,Yl,n9,tt=$(()=>{(function(n){function e(s){return s<0}n.isLessThan=e;function t(s){return s<=0}n.isLessThanOrEqual=t;function i(s){return s>0}n.isGreaterThan=i;function o(s){return s===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(n_||(n_={}));$r=(n,e)=>n-e,u9=(n,e)=>$r(n?1:0,e?1:0);io=class{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},Yl=class n{static{this.empty=new n(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new n(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new n(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||n_.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}},n9=class n{constructor(e){this._indexMap=e}static createSortPermutation(e,t){let i=Array.from(e.keys()).sort((o,s)=>t(e[o],e[s]));return new n(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){let e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new n(e)}}});function mn(n){return typeof n=="string"}function wi(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function g9(n){let e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function qr(n){return typeof n=="number"&&!isNaN(n)}function B2(n){return!!n&&typeof n[Symbol.iterator]=="function"}function g0(n){return n===!0||n===!1}function po(n){return typeof n>"u"}function Ql(n){return!Un(n)}function Un(n){return po(n)||n===null}function _s(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function m0(n){if(Un(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function Bf(n){return typeof n=="function"}function m9(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++)xK(n[i],e[i])}function xK(n,e){if(mn(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Bf(e)){try{if(n instanceof e)return}catch{}if(!Un(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var pi=$(()=>{});function Wa(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?Wa(i):i}),e}function p9(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(_9.call(t,i)){let o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!g9(o)&&e.push(o)}}return n}function p0(n,e){return W2(n,e,new Set)}function W2(n,e,t){if(Un(n))return n;let i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){let o=[];for(let s of n)o.push(W2(s,e,t));return o}if(wi(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);let o={};for(let s in n)_9.call(n,s)&&(o[s]=W2(n[s],e,t));return t.delete(n),o}return n}function LK(n,e,t=!0){return wi(n)?(wi(e)&&Object.keys(e).forEach(i=>{i in n?t&&(wi(n[i])&&wi(e[i])?LK(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Gi(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!Gi(n[t],e[t]))return!1}else{let o=[];for(i in n)o.push(i);o.sort();let s=[];for(i in e)s.push(i);if(s.sort(),!Gi(o,s))return!1;for(t=0;t<o.length;t++)if(!Gi(n[o[t]],e[o[t]]))return!1}return!0}function kK(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function r_(n){let e=[];for(let t of kK(n))typeof n[t]=="function"&&e.push(t);return e}function b9(n,e){let t=o=>function(){let s=Array.prototype.slice.call(arguments,0);return e(o,s)},i={};for(let o of n)i[o]=t(o);return i}var _9,bs=$(()=>{pi();_9=Object.prototype.hasOwnProperty});function a_(){return globalThis._VSCODE_NLS_MESSAGES}function Mh(){return globalThis._VSCODE_NLS_LANGUAGE}var z2=$(()=>{});function b0(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{let s=o[0],r=e[s],a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),DK&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return b0(typeof n=="number"?v9(n,e):e,t)}function v9(n,e){let t=a_()?.[n];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${n} !!!`)}return t}function Xne(n,e,...t){let i;typeof n=="number"?i=v9(n,e):i=e;let o=b0(i,t);return{value:o,original:e===i?o:b0(e,t)}}var DK,De=$(()=>{z2();z2();DK=Mh()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function D9(){if(!y9){y9=!0;let n=new Uint8Array(2);n[0]=1,n[1]=2,C9=new Uint16Array(n.buffer)[0]===513}return C9}var Wf,c_,d_,l_,EK,S9,H2,IK,U2,TK,x9,v0,w0,w9,NK,Xl,Jl,Fs,L9,MK,V2,_i,Ee,oi,Xc,Va,AK,k9,vs,C0,za,eoe,RK,y0,no,C9,y9,$2,E9,I9,T9,N9,dt=$(()=>{De();Wf="en",c_=!1,d_=!1,l_=!1,EK=!1,S9=!1,H2=!1,IK=!1,U2=!1,TK=!1,x9=!1,w0=Wf,w9=Wf,Jl=globalThis;typeof Jl.vscode<"u"&&typeof Jl.vscode.process<"u"?Fs=Jl.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Fs=process);L9=typeof Fs?.versions?.electron=="string",MK=L9&&Fs?.type==="renderer";if(typeof Fs=="object"){c_=Fs.platform==="win32",d_=Fs.platform==="darwin",l_=Fs.platform==="linux",EK=l_&&!!Fs.env.SNAP&&!!Fs.env.SNAP_REVISION,IK=L9,TK=!!Fs.env.CI||!!Fs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,v0=Wf,w0=Wf;let n=Fs.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n);v0=e.userLocale,w9=e.osLocale,w0=e.resolvedLanguage||Wf,NK=e.languagePack?.translationsConfigFile}catch{}S9=!0}else typeof navigator=="object"&&!MK?(Xl=navigator.userAgent,c_=Xl.indexOf("Windows")>=0,d_=Xl.indexOf("Macintosh")>=0,U2=(Xl.indexOf("Macintosh")>=0||Xl.indexOf("iPad")>=0||Xl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l_=Xl.indexOf("Linux")>=0,x9=Xl?.indexOf("Mobi")>=0,H2=!0,w0=Mh()||Wf,v0=navigator.language.toLowerCase(),w9=v0):console.error("Unable to resolve platform.");V2=0;d_?V2=1:c_?V2=3:l_&&(V2=2);_i=c_,Ee=d_,oi=l_,Xc=S9,Va=H2,AK=H2&&typeof Jl.importScripts=="function",k9=AK?Jl.origin:void 0,vs=U2,C0=x9,za=Xl,eoe=w0,RK=typeof Jl.postMessage=="function"&&!Jl.importScripts,y0=(()=>{if(RK){let n=[];Jl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){let s=n[i];if(s.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),s.callback();return}}});let e=0;return t=>{let i=++e;n.push({id:i,callback:t}),Jl.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),no=d_||U2?2:c_?1:3,C9=!0,y9=!1;$2=!!(za&&za.indexOf("Chrome")>=0),E9=!!(za&&za.indexOf("Firefox")>=0),I9=!!(!$2&&za&&za.indexOf("Safari")>=0),T9=!!(za&&za.indexOf("Edg/")>=0),N9=!!(za&&za.indexOf("Android")>=0)});var Zi,h_=$(()=>{Zi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var Qe,Bs=$(()=>{(function(n){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}n.is=e;let t=Object.freeze([]);function i(){return t}n.empty=i;function*o(w){yield w}n.single=o;function s(w){return e(w)?w:o(w)}n.wrap=s;function r(w){return w||t}n.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}n.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}n.first=c;function d(w,S){let L=0;for(let x of w)if(S(x,L++))return!0;return!1}n.some=d;function h(w,S){for(let L of w)if(S(L))return L}n.find=h;function*u(w,S){for(let L of w)S(L)&&(yield L)}n.filter=u;function*f(w,S){let L=0;for(let x of w)yield S(x,L++)}n.map=f;function*g(w,S){let L=0;for(let x of w)yield*S(x,L++)}n.flatMap=g;function*m(...w){for(let S of w)yield*S}n.concat=m;function _(w,S,L){let x=L;for(let D of w)x=S(x,D);return x}n.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S<L;S++)yield w[S]}n.slice=b;function v(w,S=Number.POSITIVE_INFINITY){let L=[];if(S===0)return[L,w];let x=w[Symbol.iterator]();for(let D=0;D<S;D++){let E=x.next();if(E.done)return[L,n.empty()];L.push(E.value)}return[L,{[Symbol.iterator](){return x}}]}n.consume=v;async function C(w){let S=[];for await(let L of w)S.push(L);return Promise.resolve(S)}n.asyncToArray=C})(Qe||(Qe={}))});var Oi,Ci,ur=$(()=>{Oi=class n{static{this.Undefined=new n(void 0)}constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}},Ci=class{constructor(){this._first=Oi.Undefined,this._last=Oi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Oi.Undefined}clear(){let e=this._first;for(;e!==Oi.Undefined;){let t=e.next;e.prev=Oi.Undefined,e.next=Oi.Undefined,e=t}this._first=Oi.Undefined,this._last=Oi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new Oi(e);if(this._first===Oi.Undefined)this._first=i,this._last=i;else if(t){let s=this._last;this._last=i,i.prev=s,s.next=i}else{let s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==Oi.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Oi.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Oi.Undefined&&e.next!==Oi.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Oi.Undefined&&e.next===Oi.Undefined?(this._first=Oi.Undefined,this._last=Oi.Undefined):e.next===Oi.Undefined?(this._last=this._last.prev,this._last.next=Oi.Undefined):e.prev===Oi.Undefined&&(this._first=this._first.next,this._first.prev=Oi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Oi.Undefined;)yield e.element,e=e.next}}});function PK(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let t of q2)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}function f_(n){let e=u_;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function Jc(n,e,t,i,o){if(e=f_(e),o||(o=Qe.first(M9)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),Jc(n,e,t,i,o)}let s=Date.now(),r=n-1-i,a=-1,l=null;for(let c=1;!(Date.now()-s>=o.timeBudget);c++){let d=r-o.windowSize*c;e.lastIndex=Math.max(0,d);let h=OK(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function OK(n,e,t,i){let o;for(;o=n.exec(e);){let s=o.index||0;if(s<=t&&n.lastIndex>=t)return o;if(i>0&&s>i)return null}return null}var q2,u_,M9,zf=$(()=>{Bs();ur();q2="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";u_=PK();M9=new Ci;M9.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function $e(n){od(n)||P9.onUnexpectedError(n)}function k0(n){od(n)||P9.onUnexpectedExternalError(n)}function NT(n){if(n instanceof Error){let{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:p_.isErrorNoTelemetry(n)}}return n}function od(n){return n instanceof fr?!0:n instanceof Error&&n.name===x0&&n.message===x0}function O9(){let n=new Error(x0);return n.name=n.message,n}function sd(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function qf(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}var TT,P9,x0,fr,L0,p_,Ge,ht=$(()=>{TT=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?p_.isErrorNoTelemetry(e)?new p_(e.message+`
5
5
 
6
6
  `+e.stack):new Error(e.message+`
7
7
 
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/4.33/esri/copyright.txt for details.
3
+ v4.33.0-next.9 */
4
+ import{a as b,h as c}from"./2SPL6IJU.js";import{a as E,b as S}from"./3YBHPEVW.js";import{a as w}from"./HNTEZ745.js";import{a as v,b as P,d as s}from"./BTKF4DO3.js";import"./LOXD2TQY.js";import"./KNKNPQAL.js";import"./7OUR75ZF.js";import"./HLAH3PPK.js";import"./B3OUJHOS.js";import{b as g,e as u,f as t,h as n,r,s as _,w as m,x}from"./HTWIPGSL.js";import{a as h,h as p}from"./UPNODJS2.js";import{Hl as f,kk as D}from"./EB3SL4FA.js";import"./ZUT526VD.js";D();var C=d=>{if(!d.toString().includes("calcite-flow-item"))throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");return!0},R=u`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}}`,l=class extends _{constructor(){super(...arguments),this._codeEditorElt=E(),this._componentReadyDefer=new h,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=w(),this._modelId=p(),this._openArcadeHelp=()=>void window.open(b,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=r({bubbles:!1}),this.arcgisScriptChange=r({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:2,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0,customPanels:0}}static{this.shadowRootOptions=g}static{this.styles=R}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await c(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=x("./assets");v(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await P();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let a=this._codeEditorElt.value?.value;this._executionResult=await c(i.definition,a,e,o=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,o],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._insertText(e.detail)}_insertText(e){this._codeEditorElt.value?.insertText(e).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[f.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${S(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:$,iconFlipRtl:A=!1,onClick:y=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${y} data-panel-name=${$??n} .iconFlipRtl=${A}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.customPanels?.map(e=>this.renderAction({id:e.id,label:e.name,icon:e.icon,active:this.openedSidePanel===e.id,panelName:e.id}))}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;switch(this.openedSidePanel){case"api":return t`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-language-api-panel>`;case"variables":return t`<arcgis-editor-variables class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile}></arcgis-editor-variables>`;case"suggestions":return t`<arcgis-arcade-suggestions class="side-panel flex-panel border-inline-start" .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`;case"none":return null}let e=this.customPanels?.find(i=>i.id===this.openedSidePanel);if(e){let i=!!e?.useFlows;return t`<calcite-flow class="side-panel flex-panel border-inline-start">${i&&C(e.renderer)?e.renderer({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this)}):t`<calcite-flow-item .heading=${e.name} closable @calciteFlowItemClose=${this._toggleSidePanel} .description=${e.description}>${e.renderer({closePanel:this._toggleSidePanel,insertText:this._insertText.bind(this)})}</calcite-flow-item>`}</calcite-flow>`}return null}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};m("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};