@arcgis/coding-components 4.32.0-next.18 → 4.32.0-next.19

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 (65) hide show
  1. package/dist/arcgis-coding-components/{O7OB3GYC.js → 3L4RY47I.js} +2 -2
  2. package/dist/arcgis-coding-components/{K7L3EMJ6.js → 3WAL6VTQ.js} +2 -2
  3. package/dist/arcgis-coding-components/{UXWVBMFI.js → 4NW6ASPU.js} +2 -2
  4. package/dist/arcgis-coding-components/{FATVJRS7.js → BG6T7AY3.js} +2 -2
  5. package/dist/arcgis-coding-components/{GTVPCYZF.js → BSECA2RU.js} +2 -2
  6. package/dist/arcgis-coding-components/{UOXQBEMM.js → DZ2N5TAI.js} +2 -2
  7. package/dist/arcgis-coding-components/{5OCBQ7TV.js → ETKZJLUJ.js} +1 -1
  8. package/dist/arcgis-coding-components/{TO5LRO5X.js → FLQRTGRO.js} +2 -2
  9. package/dist/arcgis-coding-components/{6MK6VELR.js → GOEY6DHU.js} +1 -1
  10. package/dist/arcgis-coding-components/{HZTGUNMQ.js → GW4QIVKG.js} +2 -2
  11. package/dist/arcgis-coding-components/{QKPFU3ZV.js → ILD5GAZP.js} +2 -2
  12. package/dist/arcgis-coding-components/{Z43GJCS2.js → IYYILYHU.js} +3 -3
  13. package/dist/arcgis-coding-components/{7JCTSL3Z.js → JFN5WQCV.js} +2 -2
  14. package/dist/arcgis-coding-components/{WTAJP554.js → LIZ57PRQ.js} +2 -2
  15. package/dist/arcgis-coding-components/{QVHV4FSD.js → LJAXVC46.js} +2 -2
  16. package/dist/arcgis-coding-components/{LKHNTR7E.js → LKU4PQIS.js} +2 -2
  17. package/dist/arcgis-coding-components/{OJVUE4MZ.js → LP55G6VH.js} +2 -2
  18. package/dist/arcgis-coding-components/{AB2PKCCQ.js → LVXPIL5J.js} +2 -2
  19. package/dist/arcgis-coding-components/{5ZYS5UWV.js → LYMIMUDX.js} +2 -2
  20. package/dist/arcgis-coding-components/{H255YC6B.js → MBQDBZ5Q.js} +2 -2
  21. package/dist/arcgis-coding-components/{W3LBBVTD.js → MIMRYQDK.js} +2 -2
  22. package/dist/arcgis-coding-components/{USVYK2M4.js → MPQONZKK.js} +2 -2
  23. package/dist/arcgis-coding-components/{MSYDM4SH.js → MQPGUAKU.js} +2 -2
  24. package/dist/arcgis-coding-components/{UFJ2LWQM.js → MT6E7WAE.js} +2 -2
  25. package/dist/arcgis-coding-components/{HRFIK3AM.js → OKZIDXTH.js} +2 -2
  26. package/dist/arcgis-coding-components/OOTSJLE7.js +8 -0
  27. package/dist/arcgis-coding-components/{ZAS5ISNB.js → PPHYUAQB.js} +1 -1
  28. package/dist/arcgis-coding-components/{LKY23AWI.js → Q3MEWLG6.js} +2 -2
  29. package/dist/arcgis-coding-components/{FOB7VO6V.js → QSD2HIV4.js} +2 -2
  30. package/dist/arcgis-coding-components/{UMIMLRYU.js → RM3PUYKP.js} +2 -2
  31. package/dist/arcgis-coding-components/{DPDCKWCI.js → TDQSMBML.js} +2 -2
  32. package/dist/arcgis-coding-components/WQIYCHVV.js +6 -0
  33. package/dist/arcgis-coding-components/{ZJSFEFSE.js → YDXZPRQS.js} +2 -2
  34. package/dist/arcgis-coding-components/{QFQFQJTI.js → YIY2X63A.js} +1 -1
  35. package/dist/arcgis-coding-components/{ZQDKL5JS.js → YZN6YOSZ.js} +2 -2
  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 +1 -1
  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 +7 -453
  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 +12 -11
  51. package/dist/components/arcgis-arcade-results/customElement.js +5 -4
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +7 -6
  53. package/dist/components/arcgis-code-editor/customElement.js +11 -10
  54. package/dist/components/arcgis-editor-variables/customElement.js +12 -11
  55. package/dist/components/arcgis-language-api-panel/customElement.js +13 -12
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +7 -6
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +10 -9
  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 +5 -4
  63. package/package.json +7 -6
  64. package/dist/arcgis-coding-components/3YAKJWJ6.js +0 -6
  65. package/dist/arcgis-coding-components/MXXCNG6Z.js +0 -8
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{b,d,e as g,f as F,g as M}from"./LKY23AWI.js";import{c as m,d as y,e as h}from"./6MK6VELR.js";import{x as f}from"./MXXCNG6Z.js";import{i as u}from"./5OCBQ7TV.js";var A=a=>{let e=a.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:o,hiddenApiItems:r}=a.toEditorProfileDefinition();return{apiVersion:t,bundles:o,variables:i?[i]:[],hiddenApiItems:r?.map(s=>s.toLowerCase())}};function w(a){let{name:e}=a,i=a.getDescription(),{definition:t}=a.toProfileVariableDefinition(),o={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},r={name:e,description:i,type:"dictionary",properties:[],completion:o};if(!t||!("fields"in t))return r;let[s,l]=g(t.fields,i);return r.properties=s,o.documentation={kind:"markdown",value:l},r}var P={id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]};function T(){return P}function I(a){if(!d(a))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:a.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(a.disabledVariables?.includes(t.name))return;let o=a.definitions[t.name];switch(t.type){case"featureSet":return b(o)?i.variables.push({...t,type:t.type,definition:o}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.type}`)}}),i}var x="arcgis-sql-expression",p=class extends M{constructor(){super(x,{apiPath:"./assets/sql-language/api",apiPrefix:"sql-api.t9n."}),this._languageId=x,this._layerMap=new Map}updateFeatureLayerForModel(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let o=await u(t.locale,f("./assets/arcade-language/t9n"),"profile.t9n.");if(!o)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let r=this._getApiKey(e),s=new F(i,o);this._modelToProfileMap.set(r,s);let l=A(s);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};export{n as a};
6
+ import{b,d,e as g,f as F,g as M}from"./Q3MEWLG6.js";import{c as m,d as y,e as h}from"./GOEY6DHU.js";import{x as f}from"./OOTSJLE7.js";import{i as u}from"./ETKZJLUJ.js";var A=a=>{let e=a.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:o,hiddenApiItems:r}=a.toEditorProfileDefinition();return{apiVersion:t,bundles:o,variables:i?[i]:[],hiddenApiItems:r?.map(s=>s.toLowerCase())}};function w(a){let{name:e}=a,i=a.getDescription(),{definition:t}=a.toProfileVariableDefinition(),o={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},r={name:e,description:i,type:"dictionary",properties:[],completion:o};if(!t||!("fields"in t))return r;let[s,l]=g(t.fields,i);return r.properties=s,o.documentation={kind:"markdown",value:l},r}var P={id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]};function T(){return P}function I(a){if(!d(a))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:a.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(a.disabledVariables?.includes(t.name))return;let o=a.definitions[t.name];switch(t.type){case"featureSet":return b(o)?i.variables.push({...t,type:t.type,definition:o}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.type}`)}}),i}var x="arcgis-sql-expression",p=class extends M{constructor(){super(x,{apiPath:"./assets/sql-language/api",apiPrefix:"sql-api.t9n."}),this._languageId=x,this._layerMap=new Map}updateFeatureLayerForModel(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let o=await u(t.locale,f("./assets/arcade-language/t9n"),"profile.t9n.");if(!o)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let r=this._getApiKey(e),s=new F(i,o);this._modelToProfileMap.set(r,s);let l=A(s);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};export{n as a};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{rk as se}from"./USVYK2M4.js";import"./ZAS5ISNB.js";var Ge=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,Ke=Object.prototype.hasOwnProperty,oe=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ze(n))!Ke.call(e,r)&&r!==i&&Ge(e,r,{get:()=>n[r],enumerable:!(t=Qe(n,r))||t.enumerable});return e},er=(e,n,i)=>(oe(e,n,"default"),i&&oe(i,n,"default")),l={};er(l,se);var rr=2*60*1e3,tr=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>rr&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},ue;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ue||(ue={}));var J;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(J||(J={}));var I;(function(e){function n(t,r){return t===Number.MAX_VALUE&&(t=J.MAX_VALUE),r===Number.MAX_VALUE&&(r=J.MAX_VALUE),{line:t,character:r}}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&o.uinteger(r.line)&&o.uinteger(r.character)}e.is=i})(I||(I={}));var _;(function(e){function n(t,r,a,s){if(o.uinteger(t)&&o.uinteger(r)&&o.uinteger(a)&&o.uinteger(s))return{start:I.create(t,r),end:I.create(a,s)};if(I.is(t)&&I.is(r))return{start:t,end:r};throw new Error("Range#create called with invalid arguments["+t+", "+r+", "+a+", "+s+"]")}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&I.is(r.start)&&I.is(r.end)}e.is=i})(_||(_={}));var ee;(function(e){function n(t,r){return{uri:t,range:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.string(r.uri)||o.undefined(r.uri))}e.is=i})(ee||(ee={}));var ce;(function(e){function n(t,r,a,s){return{targetUri:t,targetRange:r,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.targetRange)&&o.string(r.targetUri)&&(_.is(r.targetSelectionRange)||o.undefined(r.targetSelectionRange))&&(_.is(r.originSelectionRange)||o.undefined(r.originSelectionRange))}e.is=i})(ce||(ce={}));var re;(function(e){function n(t,r,a,s){return{red:t,green:r,blue:a,alpha:s}}e.create=n;function i(t){var r=t;return o.numberRange(r.red,0,1)&&o.numberRange(r.green,0,1)&&o.numberRange(r.blue,0,1)&&o.numberRange(r.alpha,0,1)}e.is=i})(re||(re={}));var de;(function(e){function n(t,r){return{range:t,color:r}}e.create=n;function i(t){var r=t;return _.is(r.range)&&re.is(r.color)}e.is=i})(de||(de={}));var fe;(function(e){function n(t,r,a){return{label:t,textEdit:r,additionalTextEdits:a}}e.create=n;function i(t){var r=t;return o.string(r.label)&&(o.undefined(r.textEdit)||P.is(r))&&(o.undefined(r.additionalTextEdits)||o.typedArray(r.additionalTextEdits,P.is))}e.is=i})(fe||(fe={}));var F;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(F||(F={}));var le;(function(e){function n(t,r,a,s,u){var c={startLine:t,endLine:r};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(t){var r=t;return o.uinteger(r.startLine)&&o.uinteger(r.startLine)&&(o.undefined(r.startCharacter)||o.uinteger(r.startCharacter))&&(o.undefined(r.endCharacter)||o.uinteger(r.endCharacter))&&(o.undefined(r.kind)||o.string(r.kind))}e.is=i})(le||(le={}));var te;(function(e){function n(t,r){return{location:t,message:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&ee.is(r.location)&&o.string(r.message)}e.is=i})(te||(te={}));var D;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(D||(D={}));var ge;(function(e){e.Unnecessary=1,e.Deprecated=2})(ge||(ge={}));var he;(function(e){function n(i){var t=i;return t!=null&&o.string(t.href)}e.is=n})(he||(he={}));var Y;(function(e){function n(t,r,a,s,u,c){var d={range:t,message:r};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(t){var r,a=t;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((r=a.codeDescription)===null||r===void 0?void 0:r.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,te.is))}e.is=i})(Y||(Y={}));var U;(function(e){function n(t,r){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var u={title:t,command:r};return o.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.title)&&o.string(r.command)}e.is=i})(U||(U={}));var P;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function t(a){return{range:a,newText:""}}e.del=t;function r(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=r})(P||(P={}));var O;(function(e){function n(t,r,a){var s={label:t};return r!==void 0&&(s.needsConfirmation=r),a!==void 0&&(s.description=a),s}e.create=n;function i(t){var r=t;return r!==void 0&&o.objectLiteral(r)&&o.string(r.label)&&(o.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(o.string(r.description)||r.description===void 0)}e.is=i})(O||(O={}));var w;(function(e){function n(i){var t=i;return typeof t=="string"}e.is=n})(w||(w={}));var T;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function t(a,s){return{range:a,newText:"",annotationId:s}}e.del=t;function r(a){var s=a;return P.is(s)&&(O.is(s.annotationId)||w.is(s.annotationId))}e.is=r})(T||(T={}));var $;(function(e){function n(t,r){return{textDocument:t,edits:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&G.is(r.textDocument)&&Array.isArray(r.edits)}e.is=i})($||($={}));var V;(function(e){function n(t,r,a){var s={kind:"create",uri:t};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="create"&&o.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(V||(V={}));var H;(function(e){function n(t,r,a,s){var u={kind:"rename",oldUri:t,newUri:r};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(t){var r=t;return r&&r.kind==="rename"&&o.string(r.oldUri)&&o.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(t,r,a){var s={kind:"delete",uri:t};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="delete"&&o.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||o.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||o.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(z||(z={}));var ne;(function(e){function n(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(r){return o.string(r.kind)?V.is(r)||H.is(r)||z.is(r):$.is(r)}))}e.is=n})(ne||(ne={}));var X=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,t){var r,a;if(t===void 0?r=P.insert(n,i):w.is(t)?(a=t,r=T.insert(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=T.insert(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.replace=function(n,i,t){var r,a;if(t===void 0?r=P.replace(n,i):w.is(t)?(a=t,r=T.replace(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=T.replace(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.delete=function(n,i){var t,r;if(i===void 0?t=P.del(n):w.is(i)?(r=i,t=T.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),t=T.del(n,r)),this.edits.push(t),r!==void 0)return r},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ve=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var t;if(w.is(n)?t=n:(t=this.nextId(),i=n),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Wr=function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ve(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(t){if($.is(t)){var r=new X(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=r}})):n.changes&&Object.keys(n.changes).forEach(function(t){var r=new X(n.changes[t]);i._textEditChanges[t]=r})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(G.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},t=this._textEditChanges[i.uri];if(!t){var r=[],a={textDocument:i,edits:r};this._workspaceEdit.documentChanges.push(a),t=new X(r,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[n];if(!t){var r=[];this._workspaceEdit.changes[n]=r,t=new X(r),this._textEditChanges[n]=t}return t}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ve,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;O.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=V.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=V.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;O.is(t)||w.is(t)?a=t:r=t;var s,u;if(a===void 0?s=H.create(n,i,r):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=H.create(n,i,r,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;O.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=z.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=z.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e}(),pe;(function(e){function n(t){return{uri:t}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)}e.is=i})(pe||(pe={}));var me;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.integer(r.version)}e.is=i})(me||(me={}));var G;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&(r.version===null||o.integer(r.version))}e.is=i})(G||(G={}));var _e;(function(e){function n(t,r,a,s){return{uri:t,languageId:r,version:a,text:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.string(r.languageId)&&o.integer(r.version)&&o.string(r.text)}e.is=i})(_e||(_e={}));var B;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(B||(B={}));(function(e){function n(i){var t=i;return t===e.PlainText||t===e.Markdown}e.is=n})(B||(B={}));var ie;(function(e){function n(i){var t=i;return o.objectLiteral(i)&&B.is(t.kind)&&o.string(t.value)}e.is=n})(ie||(ie={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var ae;(function(e){e.PlainText=1,e.Snippet=2})(ae||(ae={}));var ke;(function(e){e.Deprecated=1})(ke||(ke={}));var we;(function(e){function n(t,r,a){return{newText:t,insert:r,replace:a}}e.create=n;function i(t){var r=t;return r&&o.string(r.newText)&&_.is(r.insert)&&_.is(r.replace)}e.is=i})(we||(we={}));var be;(function(e){e.asIs=1,e.adjustIndentation=2})(be||(be={}));var Ce;(function(e){function n(i){return{label:i}}e.create=n})(Ce||(Ce={}));var Ee;(function(e){function n(i,t){return{items:i||[],isIncomplete:!!t}}e.create=n})(Ee||(Ee={}));var Q;(function(e){function n(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(t){var r=t;return o.string(r)||o.objectLiteral(r)&&o.string(r.language)&&o.string(r.value)}e.is=i})(Q||(Q={}));var Ae;(function(e){function n(i){var t=i;return!!t&&o.objectLiteral(t)&&(ie.is(t.contents)||Q.is(t.contents)||o.typedArray(t.contents,Q.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ae||(Ae={}));var ye;(function(e){function n(i,t){return t?{label:i,documentation:t}:{label:i}}e.create=n})(ye||(ye={}));var Se;(function(e){function n(i,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s={label:i};return o.defined(t)&&(s.documentation=t),o.defined(r)?s.parameters=r:s.parameters=[],s}e.create=n})(Se||(Se={}));var W;(function(e){e.Text=1,e.Read=2,e.Write=3})(W||(W={}));var Ie;(function(e){function n(i,t){var r={range:i};return o.number(t)&&(r.kind=t),r}e.create=n})(Ie||(Ie={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var Te;(function(e){e.Deprecated=1})(Te||(Te={}));var Pe;(function(e){function n(i,t,r,a,s){var u={name:i,kind:t,location:{uri:a,range:r}};return s&&(u.containerName=s),u}e.create=n})(Pe||(Pe={}));var Me;(function(e){function n(t,r,a,s,u,c){var d={name:t,detail:r,kind:a,range:s,selectionRange:u};return c!==void 0&&(d.children=c),d}e.create=n;function i(t){var r=t;return r&&o.string(r.name)&&o.number(r.kind)&&_.is(r.range)&&_.is(r.selectionRange)&&(r.detail===void 0||o.string(r.detail))&&(r.deprecated===void 0||o.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=i})(Me||(Me={}));var Le;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Le||(Le={}));var Re;(function(e){function n(t,r){var a={diagnostics:t};return r!=null&&(a.only=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&o.typedArray(r.diagnostics,Y.is)&&(r.only===void 0||o.typedArray(r.only,o.string))}e.is=i})(Re||(Re={}));var De;(function(e){function n(t,r,a){var s={title:t},u=!0;return typeof r=="string"?(u=!1,s.kind=r):U.is(r)?s.command=r:s.edit=r,u&&a!==void 0&&(s.kind=a),s}e.create=n;function i(t){var r=t;return r&&o.string(r.title)&&(r.diagnostics===void 0||o.typedArray(r.diagnostics,Y.is))&&(r.kind===void 0||o.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||U.is(r.command))&&(r.isPreferred===void 0||o.boolean(r.isPreferred))&&(r.edit===void 0||ne.is(r.edit))}e.is=i})(De||(De={}));var Ne;(function(e){function n(t,r){var a={range:t};return o.defined(r)&&(a.data=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.command)||U.is(r.command))}e.is=i})(Ne||(Ne={}));var Oe;(function(e){function n(t,r){return{tabSize:t,insertSpaces:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.uinteger(r.tabSize)&&o.boolean(r.insertSpaces)}e.is=i})(Oe||(Oe={}));var xe;(function(e){function n(t,r,a){return{range:t,target:r,data:a}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.target)||o.string(r.target))}e.is=i})(xe||(xe={}));var je;(function(e){function n(t,r){return{range:t,parent:r}}e.create=n;function i(t){var r=t;return r!==void 0&&_.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=i})(je||(je={}));var Fe;(function(e){function n(a,s,u,c){return new nr(a,s,u,c)}e.create=n;function i(a){var s=a;return!!(o.defined(s)&&o.string(s.uri)&&(o.undefined(s.languageId)||o.string(s.languageId))&&o.uinteger(s.lineCount)&&o.func(s.getText)&&o.func(s.positionAt)&&o.func(s.offsetAt))}e.is=i;function t(a,s){for(var u=a.getText(),c=r(s,function(S,L){var x=S.range.start.line-L.range.start.line;return x===0?S.range.start.character-L.range.start.character:x}),d=u.length,v=c.length-1;v>=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=t;function r(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);r(c,s),r(d,s);for(var v=0,g=0,b=0;v<c.length&&g<d.length;){var h=s(c[v],d[g]);h<=0?a[b++]=c[v++]:a[b++]=d[g++]}for(;v<c.length;)a[b++]=c[v++];for(;g<d.length;)a[b++]=d[g++];return a}})(Fe||(Fe={}));var nr=function(){function e(n,i,t,r){this._uri=n,this._languageId=i,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),t=this.offsetAt(n.end);return this._content.substring(i,t)}return this._content},e.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,t=!0,r=0;r<i.length;r++){t&&(n.push(r),t=!1);var a=i.charAt(r);t=a==="\r"||a===`
6
+ import{rk as se}from"./MPQONZKK.js";import"./PPHYUAQB.js";var Ge=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,Ke=Object.prototype.hasOwnProperty,oe=(e,n,i,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Ze(n))!Ke.call(e,r)&&r!==i&&Ge(e,r,{get:()=>n[r],enumerable:!(t=Qe(n,r))||t.enumerable});return e},er=(e,n,i)=>(oe(e,n,"default"),i&&oe(i,n,"default")),l={};er(l,se);var rr=2*60*1e3,tr=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>rr&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let n;return this._getClient().then(i=>{n=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>n)}},ue;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ue||(ue={}));var J;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(J||(J={}));var I;(function(e){function n(t,r){return t===Number.MAX_VALUE&&(t=J.MAX_VALUE),r===Number.MAX_VALUE&&(r=J.MAX_VALUE),{line:t,character:r}}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&o.uinteger(r.line)&&o.uinteger(r.character)}e.is=i})(I||(I={}));var _;(function(e){function n(t,r,a,s){if(o.uinteger(t)&&o.uinteger(r)&&o.uinteger(a)&&o.uinteger(s))return{start:I.create(t,r),end:I.create(a,s)};if(I.is(t)&&I.is(r))return{start:t,end:r};throw new Error("Range#create called with invalid arguments["+t+", "+r+", "+a+", "+s+"]")}e.create=n;function i(t){var r=t;return o.objectLiteral(r)&&I.is(r.start)&&I.is(r.end)}e.is=i})(_||(_={}));var ee;(function(e){function n(t,r){return{uri:t,range:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.string(r.uri)||o.undefined(r.uri))}e.is=i})(ee||(ee={}));var ce;(function(e){function n(t,r,a,s){return{targetUri:t,targetRange:r,targetSelectionRange:a,originSelectionRange:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.targetRange)&&o.string(r.targetUri)&&(_.is(r.targetSelectionRange)||o.undefined(r.targetSelectionRange))&&(_.is(r.originSelectionRange)||o.undefined(r.originSelectionRange))}e.is=i})(ce||(ce={}));var re;(function(e){function n(t,r,a,s){return{red:t,green:r,blue:a,alpha:s}}e.create=n;function i(t){var r=t;return o.numberRange(r.red,0,1)&&o.numberRange(r.green,0,1)&&o.numberRange(r.blue,0,1)&&o.numberRange(r.alpha,0,1)}e.is=i})(re||(re={}));var de;(function(e){function n(t,r){return{range:t,color:r}}e.create=n;function i(t){var r=t;return _.is(r.range)&&re.is(r.color)}e.is=i})(de||(de={}));var fe;(function(e){function n(t,r,a){return{label:t,textEdit:r,additionalTextEdits:a}}e.create=n;function i(t){var r=t;return o.string(r.label)&&(o.undefined(r.textEdit)||P.is(r))&&(o.undefined(r.additionalTextEdits)||o.typedArray(r.additionalTextEdits,P.is))}e.is=i})(fe||(fe={}));var F;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(F||(F={}));var le;(function(e){function n(t,r,a,s,u){var c={startLine:t,endLine:r};return o.defined(a)&&(c.startCharacter=a),o.defined(s)&&(c.endCharacter=s),o.defined(u)&&(c.kind=u),c}e.create=n;function i(t){var r=t;return o.uinteger(r.startLine)&&o.uinteger(r.startLine)&&(o.undefined(r.startCharacter)||o.uinteger(r.startCharacter))&&(o.undefined(r.endCharacter)||o.uinteger(r.endCharacter))&&(o.undefined(r.kind)||o.string(r.kind))}e.is=i})(le||(le={}));var te;(function(e){function n(t,r){return{location:t,message:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&ee.is(r.location)&&o.string(r.message)}e.is=i})(te||(te={}));var D;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(D||(D={}));var ge;(function(e){e.Unnecessary=1,e.Deprecated=2})(ge||(ge={}));var he;(function(e){function n(i){var t=i;return t!=null&&o.string(t.href)}e.is=n})(he||(he={}));var Y;(function(e){function n(t,r,a,s,u,c){var d={range:t,message:r};return o.defined(a)&&(d.severity=a),o.defined(s)&&(d.code=s),o.defined(u)&&(d.source=u),o.defined(c)&&(d.relatedInformation=c),d}e.create=n;function i(t){var r,a=t;return o.defined(a)&&_.is(a.range)&&o.string(a.message)&&(o.number(a.severity)||o.undefined(a.severity))&&(o.integer(a.code)||o.string(a.code)||o.undefined(a.code))&&(o.undefined(a.codeDescription)||o.string((r=a.codeDescription)===null||r===void 0?void 0:r.href))&&(o.string(a.source)||o.undefined(a.source))&&(o.undefined(a.relatedInformation)||o.typedArray(a.relatedInformation,te.is))}e.is=i})(Y||(Y={}));var U;(function(e){function n(t,r){for(var a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];var u={title:t,command:r};return o.defined(a)&&a.length>0&&(u.arguments=a),u}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.title)&&o.string(r.command)}e.is=i})(U||(U={}));var P;(function(e){function n(a,s){return{range:a,newText:s}}e.replace=n;function i(a,s){return{range:{start:a,end:a},newText:s}}e.insert=i;function t(a){return{range:a,newText:""}}e.del=t;function r(a){var s=a;return o.objectLiteral(s)&&o.string(s.newText)&&_.is(s.range)}e.is=r})(P||(P={}));var O;(function(e){function n(t,r,a){var s={label:t};return r!==void 0&&(s.needsConfirmation=r),a!==void 0&&(s.description=a),s}e.create=n;function i(t){var r=t;return r!==void 0&&o.objectLiteral(r)&&o.string(r.label)&&(o.boolean(r.needsConfirmation)||r.needsConfirmation===void 0)&&(o.string(r.description)||r.description===void 0)}e.is=i})(O||(O={}));var w;(function(e){function n(i){var t=i;return typeof t=="string"}e.is=n})(w||(w={}));var T;(function(e){function n(a,s,u){return{range:a,newText:s,annotationId:u}}e.replace=n;function i(a,s,u){return{range:{start:a,end:a},newText:s,annotationId:u}}e.insert=i;function t(a,s){return{range:a,newText:"",annotationId:s}}e.del=t;function r(a){var s=a;return P.is(s)&&(O.is(s.annotationId)||w.is(s.annotationId))}e.is=r})(T||(T={}));var $;(function(e){function n(t,r){return{textDocument:t,edits:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&G.is(r.textDocument)&&Array.isArray(r.edits)}e.is=i})($||($={}));var V;(function(e){function n(t,r,a){var s={kind:"create",uri:t};return r!==void 0&&(r.overwrite!==void 0||r.ignoreIfExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="create"&&o.string(r.uri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(V||(V={}));var H;(function(e){function n(t,r,a,s){var u={kind:"rename",oldUri:t,newUri:r};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(u.options=a),s!==void 0&&(u.annotationId=s),u}e.create=n;function i(t){var r=t;return r&&r.kind==="rename"&&o.string(r.oldUri)&&o.string(r.newUri)&&(r.options===void 0||(r.options.overwrite===void 0||o.boolean(r.options.overwrite))&&(r.options.ignoreIfExists===void 0||o.boolean(r.options.ignoreIfExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(H||(H={}));var z;(function(e){function n(t,r,a){var s={kind:"delete",uri:t};return r!==void 0&&(r.recursive!==void 0||r.ignoreIfNotExists!==void 0)&&(s.options=r),a!==void 0&&(s.annotationId=a),s}e.create=n;function i(t){var r=t;return r&&r.kind==="delete"&&o.string(r.uri)&&(r.options===void 0||(r.options.recursive===void 0||o.boolean(r.options.recursive))&&(r.options.ignoreIfNotExists===void 0||o.boolean(r.options.ignoreIfNotExists)))&&(r.annotationId===void 0||w.is(r.annotationId))}e.is=i})(z||(z={}));var ne;(function(e){function n(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(r){return o.string(r.kind)?V.is(r)||H.is(r)||z.is(r):$.is(r)}))}e.is=n})(ne||(ne={}));var X=function(){function e(n,i){this.edits=n,this.changeAnnotations=i}return e.prototype.insert=function(n,i,t){var r,a;if(t===void 0?r=P.insert(n,i):w.is(t)?(a=t,r=T.insert(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=T.insert(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.replace=function(n,i,t){var r,a;if(t===void 0?r=P.replace(n,i):w.is(t)?(a=t,r=T.replace(n,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(t),r=T.replace(n,i,a)),this.edits.push(r),a!==void 0)return a},e.prototype.delete=function(n,i){var t,r;if(i===void 0?t=P.del(n):w.is(i)?(r=i,t=T.del(n,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),t=T.del(n,r)),this.edits.push(t),r!==void 0)return r},e.prototype.add=function(n){this.edits.push(n)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(n){if(n===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ve=function(){function e(n){this._annotations=n===void 0?Object.create(null):n,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(n,i){var t;if(w.is(n)?t=n:(t=this.nextId(),i=n),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Wr=function(){function e(n){var i=this;this._textEditChanges=Object.create(null),n!==void 0?(this._workspaceEdit=n,n.documentChanges?(this._changeAnnotations=new ve(n.changeAnnotations),n.changeAnnotations=this._changeAnnotations.all(),n.documentChanges.forEach(function(t){if($.is(t)){var r=new X(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=r}})):n.changes&&Object.keys(n.changes).forEach(function(t){var r=new X(n.changes[t]);i._textEditChanges[t]=r})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(n){if(G.is(n)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:n.uri,version:n.version},t=this._textEditChanges[i.uri];if(!t){var r=[],a={textDocument:i,edits:r};this._workspaceEdit.documentChanges.push(a),t=new X(r,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[n];if(!t){var r=[];this._workspaceEdit.changes[n]=r,t=new X(r),this._textEditChanges[n]=t}return t}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ve,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;O.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=V.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=V.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e.prototype.renameFile=function(n,i,t,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var a;O.is(t)||w.is(t)?a=t:r=t;var s,u;if(a===void 0?s=H.create(n,i,r):(u=w.is(a)?a:this._changeAnnotations.manage(a),s=H.create(n,i,r,u)),this._workspaceEdit.documentChanges.push(s),u!==void 0)return u},e.prototype.deleteFile=function(n,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r;O.is(i)||w.is(i)?r=i:t=i;var a,s;if(r===void 0?a=z.create(n,t):(s=w.is(r)?r:this._changeAnnotations.manage(r),a=z.create(n,t,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},e}(),pe;(function(e){function n(t){return{uri:t}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)}e.is=i})(pe||(pe={}));var me;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.integer(r.version)}e.is=i})(me||(me={}));var G;(function(e){function n(t,r){return{uri:t,version:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&(r.version===null||o.integer(r.version))}e.is=i})(G||(G={}));var _e;(function(e){function n(t,r,a,s){return{uri:t,languageId:r,version:a,text:s}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.string(r.uri)&&o.string(r.languageId)&&o.integer(r.version)&&o.string(r.text)}e.is=i})(_e||(_e={}));var B;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(B||(B={}));(function(e){function n(i){var t=i;return t===e.PlainText||t===e.Markdown}e.is=n})(B||(B={}));var ie;(function(e){function n(i){var t=i;return o.objectLiteral(i)&&B.is(t.kind)&&o.string(t.value)}e.is=n})(ie||(ie={}));var p;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(p||(p={}));var ae;(function(e){e.PlainText=1,e.Snippet=2})(ae||(ae={}));var ke;(function(e){e.Deprecated=1})(ke||(ke={}));var we;(function(e){function n(t,r,a){return{newText:t,insert:r,replace:a}}e.create=n;function i(t){var r=t;return r&&o.string(r.newText)&&_.is(r.insert)&&_.is(r.replace)}e.is=i})(we||(we={}));var be;(function(e){e.asIs=1,e.adjustIndentation=2})(be||(be={}));var Ce;(function(e){function n(i){return{label:i}}e.create=n})(Ce||(Ce={}));var Ee;(function(e){function n(i,t){return{items:i||[],isIncomplete:!!t}}e.create=n})(Ee||(Ee={}));var Q;(function(e){function n(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=n;function i(t){var r=t;return o.string(r)||o.objectLiteral(r)&&o.string(r.language)&&o.string(r.value)}e.is=i})(Q||(Q={}));var Ae;(function(e){function n(i){var t=i;return!!t&&o.objectLiteral(t)&&(ie.is(t.contents)||Q.is(t.contents)||o.typedArray(t.contents,Q.is))&&(i.range===void 0||_.is(i.range))}e.is=n})(Ae||(Ae={}));var ye;(function(e){function n(i,t){return t?{label:i,documentation:t}:{label:i}}e.create=n})(ye||(ye={}));var Se;(function(e){function n(i,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s={label:i};return o.defined(t)&&(s.documentation=t),o.defined(r)?s.parameters=r:s.parameters=[],s}e.create=n})(Se||(Se={}));var W;(function(e){e.Text=1,e.Read=2,e.Write=3})(W||(W={}));var Ie;(function(e){function n(i,t){var r={range:i};return o.number(t)&&(r.kind=t),r}e.create=n})(Ie||(Ie={}));var m;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(m||(m={}));var Te;(function(e){e.Deprecated=1})(Te||(Te={}));var Pe;(function(e){function n(i,t,r,a,s){var u={name:i,kind:t,location:{uri:a,range:r}};return s&&(u.containerName=s),u}e.create=n})(Pe||(Pe={}));var Me;(function(e){function n(t,r,a,s,u,c){var d={name:t,detail:r,kind:a,range:s,selectionRange:u};return c!==void 0&&(d.children=c),d}e.create=n;function i(t){var r=t;return r&&o.string(r.name)&&o.number(r.kind)&&_.is(r.range)&&_.is(r.selectionRange)&&(r.detail===void 0||o.string(r.detail))&&(r.deprecated===void 0||o.boolean(r.deprecated))&&(r.children===void 0||Array.isArray(r.children))&&(r.tags===void 0||Array.isArray(r.tags))}e.is=i})(Me||(Me={}));var Le;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Le||(Le={}));var Re;(function(e){function n(t,r){var a={diagnostics:t};return r!=null&&(a.only=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&o.typedArray(r.diagnostics,Y.is)&&(r.only===void 0||o.typedArray(r.only,o.string))}e.is=i})(Re||(Re={}));var De;(function(e){function n(t,r,a){var s={title:t},u=!0;return typeof r=="string"?(u=!1,s.kind=r):U.is(r)?s.command=r:s.edit=r,u&&a!==void 0&&(s.kind=a),s}e.create=n;function i(t){var r=t;return r&&o.string(r.title)&&(r.diagnostics===void 0||o.typedArray(r.diagnostics,Y.is))&&(r.kind===void 0||o.string(r.kind))&&(r.edit!==void 0||r.command!==void 0)&&(r.command===void 0||U.is(r.command))&&(r.isPreferred===void 0||o.boolean(r.isPreferred))&&(r.edit===void 0||ne.is(r.edit))}e.is=i})(De||(De={}));var Ne;(function(e){function n(t,r){var a={range:t};return o.defined(r)&&(a.data=r),a}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.command)||U.is(r.command))}e.is=i})(Ne||(Ne={}));var Oe;(function(e){function n(t,r){return{tabSize:t,insertSpaces:r}}e.create=n;function i(t){var r=t;return o.defined(r)&&o.uinteger(r.tabSize)&&o.boolean(r.insertSpaces)}e.is=i})(Oe||(Oe={}));var xe;(function(e){function n(t,r,a){return{range:t,target:r,data:a}}e.create=n;function i(t){var r=t;return o.defined(r)&&_.is(r.range)&&(o.undefined(r.target)||o.string(r.target))}e.is=i})(xe||(xe={}));var je;(function(e){function n(t,r){return{range:t,parent:r}}e.create=n;function i(t){var r=t;return r!==void 0&&_.is(r.range)&&(r.parent===void 0||e.is(r.parent))}e.is=i})(je||(je={}));var Fe;(function(e){function n(a,s,u,c){return new nr(a,s,u,c)}e.create=n;function i(a){var s=a;return!!(o.defined(s)&&o.string(s.uri)&&(o.undefined(s.languageId)||o.string(s.languageId))&&o.uinteger(s.lineCount)&&o.func(s.getText)&&o.func(s.positionAt)&&o.func(s.offsetAt))}e.is=i;function t(a,s){for(var u=a.getText(),c=r(s,function(S,L){var x=S.range.start.line-L.range.start.line;return x===0?S.range.start.character-L.range.start.character:x}),d=u.length,v=c.length-1;v>=0;v--){var g=c[v],b=a.offsetAt(g.range.start),h=a.offsetAt(g.range.end);if(h<=d)u=u.substring(0,b)+g.newText+u.substring(h,u.length);else throw new Error("Overlapping edit");d=b}return u}e.applyEdits=t;function r(a,s){if(a.length<=1)return a;var u=a.length/2|0,c=a.slice(0,u),d=a.slice(u);r(c,s),r(d,s);for(var v=0,g=0,b=0;v<c.length&&g<d.length;){var h=s(c[v],d[g]);h<=0?a[b++]=c[v++]:a[b++]=d[g++]}for(;v<c.length;)a[b++]=c[v++];for(;g<d.length;)a[b++]=d[g++];return a}})(Fe||(Fe={}));var nr=function(){function e(n,i,t,r){this._uri=n,this._languageId=i,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(n){if(n){var i=this.offsetAt(n.start),t=this.offsetAt(n.end);return this._content.substring(i,t)}return this._content},e.prototype.update=function(n,i){this._content=n.text,this._version=i,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var n=[],i=this._content,t=!0,r=0;r<i.length;r++){t&&(n.push(r),t=!1);var a=i.charAt(r);t=a==="\r"||a===`
7
7
  `,a==="\r"&&r+1<i.length&&i.charAt(r+1)===`
8
8
  `&&r++}t&&i.length>0&&n.push(i.length),this._lineOffsets=n}return this._lineOffsets},e.prototype.positionAt=function(n){n=Math.max(Math.min(n,this._content.length),0);var i=this.getLineOffsets(),t=0,r=i.length;if(r===0)return I.create(0,n);for(;t<r;){var a=Math.floor((t+r)/2);i[a]>n?r=a:t=a+1}var s=t-1;return I.create(s,n-i[s])},e.prototype.offsetAt=function(n){var i=this.getLineOffsets();if(n.line>=i.length)return this._content.length;if(n.line<0)return 0;var t=i[n.line],r=n.line+1<i.length?i[n.line+1]:this._content.length;return Math.max(Math.min(t+n.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),o;(function(e){var n=Object.prototype.toString;function i(h){return typeof h<"u"}e.defined=i;function t(h){return typeof h>"u"}e.undefined=t;function r(h){return h===!0||h===!1}e.boolean=r;function a(h){return n.call(h)==="[object String]"}e.string=a;function s(h){return n.call(h)==="[object Number]"}e.number=s;function u(h,S,L){return n.call(h)==="[object Number]"&&S<=h&&h<=L}e.numberRange=u;function c(h){return n.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}e.integer=c;function d(h){return n.call(h)==="[object Number]"&&0<=h&&h<=2147483647}e.uinteger=d;function v(h){return n.call(h)==="[object Function]"}e.func=v;function g(h){return h!==null&&typeof h=="object"}e.objectLiteral=g;function b(h,S){return Array.isArray(h)&&h.every(S)}e.typedArray=b})(o||(o={}));var ir=class{constructor(e,n,i){this._languageId=e,this._worker=n;let t=a=>{let s=a.getLanguageId();if(s!==this._languageId)return;let u;this._listener[a.uri.toString()]=a.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(a.uri,s),500)}),this._doValidate(a.uri,s)},r=a=>{l.editor.setModelMarkers(a,this._languageId,[]);let s=a.uri.toString(),u=this._listener[s];u&&(u.dispose(),delete this._listener[s])};this._disposables.push(l.editor.onDidCreateModel(t)),this._disposables.push(l.editor.onWillDisposeModel(r)),this._disposables.push(l.editor.onDidChangeModelLanguage(a=>{r(a.model),t(a.model)})),this._disposables.push(i(a=>{l.editor.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&(r(s),t(s))})})),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(r);for(let a in this._listener)this._listener[a].dispose()}}),l.editor.getModels().forEach(t)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,n){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{let t=i.map(a=>sr(e,a)),r=l.editor.getModel(e);r&&r.getLanguageId()===n&&l.editor.setModelMarkers(r,n,t)}).then(void 0,i=>{console.error(i)})}};function ar(e){switch(e){case D.Error:return l.MarkerSeverity.Error;case D.Warning:return l.MarkerSeverity.Warning;case D.Information:return l.MarkerSeverity.Info;case D.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}function sr(e,n){let i=typeof n.code=="number"?String(n.code):n.code;return{severity:ar(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:i,source:n.source}}var or=class{constructor(e,n){this._worker=e,this._triggerCharacters=n}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,n,i,t){let r=e.uri;return this._worker(r).then(a=>a.doComplete(r.toString(),M(n))).then(a=>{if(!a)return;let s=e.getWordUntilPosition(n),u=new l.Range(n.lineNumber,s.startColumn,n.lineNumber,s.endColumn),c=a.items.map(d=>{let v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:dr(d.command),range:u,kind:cr(d.kind)};return d.textEdit&&(ur(d.textEdit)?v.range={insert:A(d.textEdit.insert),replace:A(d.textEdit.replace)}:v.range=A(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(q)),d.insertTextFormat===ae.Snippet&&(v.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:a.isIncomplete,suggestions:c}})}};function M(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Be(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function A(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function ur(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function cr(e){let n=l.languages.CompletionItemKind;switch(e){case p.Text:return n.Text;case p.Method:return n.Method;case p.Function:return n.Function;case p.Constructor:return n.Constructor;case p.Field:return n.Field;case p.Variable:return n.Variable;case p.Class:return n.Class;case p.Interface:return n.Interface;case p.Module:return n.Module;case p.Property:return n.Property;case p.Unit:return n.Unit;case p.Value:return n.Value;case p.Enum:return n.Enum;case p.Keyword:return n.Keyword;case p.Snippet:return n.Snippet;case p.Color:return n.Color;case p.File:return n.File;case p.Reference:return n.Reference}return n.Property}function q(e){if(e)return{range:A(e.range),text:e.newText}}function dr(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var fr=class{constructor(e){this._worker=e}provideHover(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.doHover(t.toString(),M(n))).then(r=>{if(r)return{range:A(r.range),contents:gr(r.contents)}})}};function lr(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function We(e){return typeof e=="string"?{value:e}:lr(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+`
9
9
  `+e.value+"\n```\n"}}function gr(e){if(e)return Array.isArray(e)?e.map(We):[We(e)]}var Ur=class{constructor(e){this._worker=e}provideDocumentHighlights(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.findDocumentHighlights(t.toString(),M(n))).then(r=>{if(r)return r.map(a=>({range:A(a.range),kind:hr(a.kind)}))})}};function hr(e){switch(e){case W.Read:return l.languages.DocumentHighlightKind.Read;case W.Write:return l.languages.DocumentHighlightKind.Write;case W.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var Vr=class{constructor(e){this._worker=e}provideDefinition(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.findDefinition(t.toString(),M(n))).then(r=>{if(r)return[qe(r)]})}};function qe(e){return{uri:l.Uri.parse(e.uri),range:A(e.range)}}var Hr=class{constructor(e){this._worker=e}provideReferences(e,n,i,t){let r=e.uri;return this._worker(r).then(a=>a.findReferences(r.toString(),M(n))).then(a=>{if(a)return a.map(qe)})}},zr=class{constructor(e){this._worker=e}provideRenameEdits(e,n,i,t){let r=e.uri;return this._worker(r).then(a=>a.doRename(r.toString(),M(n),i)).then(a=>vr(a))}};function vr(e){if(!e||!e.changes)return;let n=[];for(let i in e.changes){let t=l.Uri.parse(i);for(let r of e.changes[i])n.push({resource:t,versionId:void 0,textEdit:{range:A(r.range),text:r.newText}})}return{edits:n}}var pr=class{constructor(e){this._worker=e}provideDocumentSymbols(e,n){let i=e.uri;return this._worker(i).then(t=>t.findDocumentSymbols(i.toString())).then(t=>{if(t)return t.map(r=>({name:r.name,detail:"",containerName:r.containerName,kind:mr(r.kind),range:A(r.location.range),selectionRange:A(r.location.range),tags:[]}))})}};function mr(e){let n=l.languages.SymbolKind;switch(e){case m.File:return n.Array;case m.Module:return n.Module;case m.Namespace:return n.Namespace;case m.Package:return n.Package;case m.Class:return n.Class;case m.Method:return n.Method;case m.Property:return n.Property;case m.Field:return n.Field;case m.Constructor:return n.Constructor;case m.Enum:return n.Enum;case m.Interface:return n.Interface;case m.Function:return n.Function;case m.Variable:return n.Variable;case m.Constant:return n.Constant;case m.String:return n.String;case m.Number:return n.Number;case m.Boolean:return n.Boolean;case m.Array:return n.Array}return n.Function}var Br=class{constructor(e){this._worker=e}provideLinks(e,n){let i=e.uri;return this._worker(i).then(t=>t.findDocumentLinks(i.toString())).then(t=>{if(t)return{links:t.map(r=>({range:A(r.range),url:r.target}))}})}},_r=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.format(t.toString(),null,Xe(n)).then(a=>{if(!(!a||a.length===0))return a.map(q)}))}},kr=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,n,i,t){let r=e.uri;return this._worker(r).then(a=>a.format(r.toString(),Be(n),Xe(i)).then(s=>{if(!(!s||s.length===0))return s.map(q)}))}};function Xe(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var wr=class{constructor(e){this._worker=e}provideDocumentColors(e,n){let i=e.uri;return this._worker(i).then(t=>t.findDocumentColors(i.toString())).then(t=>{if(t)return t.map(r=>({color:r.color,range:A(r.range)}))})}provideColorPresentations(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.getColorPresentations(t.toString(),n.color,Be(n.range))).then(r=>{if(r)return r.map(a=>{let s={label:a.label};return a.textEdit&&(s.textEdit=q(a.textEdit)),a.additionalTextEdits&&(s.additionalTextEdits=a.additionalTextEdits.map(q)),s})})}},br=class{constructor(e){this._worker=e}provideFoldingRanges(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.getFoldingRanges(t.toString(),n)).then(r=>{if(r)return r.map(a=>{let s={start:a.startLine+1,end:a.endLine+1};return typeof a.kind<"u"&&(s.kind=Cr(a.kind)),s})})}};function Cr(e){switch(e){case F.Comment:return l.languages.FoldingRangeKind.Comment;case F.Imports:return l.languages.FoldingRangeKind.Imports;case F.Region:return l.languages.FoldingRangeKind.Region}}var Er=class{constructor(e){this._worker=e}provideSelectionRanges(e,n,i){let t=e.uri;return this._worker(t).then(r=>r.getSelectionRanges(t.toString(),n.map(M))).then(r=>{if(r)return r.map(a=>{let s=[];for(;a;)s.push({range:A(a.range)}),a=a.parent;return s})})}};function Ar(e,n){n===void 0&&(n=!1);var i=e.length,t=0,r="",a=0,s=16,u=0,c=0,d=0,v=0,g=0;function b(f,C){for(var y=0,E=0;y<f||!C;){var k=e.charCodeAt(t);if(k>=48&&k<=57)E=E*16+k-48;else if(k>=65&&k<=70)E=E*16+k-65+10;else if(k>=97&&k<=102)E=E*16+k-97+10;else break;t++,y++}return y<f&&(E=-1),E}function h(f){t=f,r="",a=0,s=16,g=0}function S(){var f=t;if(e.charCodeAt(t)===48)t++;else for(t++;t<e.length&&R(e.charCodeAt(t));)t++;if(t<e.length&&e.charCodeAt(t)===46)if(t++,t<e.length&&R(e.charCodeAt(t)))for(t++;t<e.length&&R(e.charCodeAt(t));)t++;else return g=3,e.substring(f,t);var C=t;if(t<e.length&&(e.charCodeAt(t)===69||e.charCodeAt(t)===101))if(t++,(t<e.length&&e.charCodeAt(t)===43||e.charCodeAt(t)===45)&&t++,t<e.length&&R(e.charCodeAt(t))){for(t++;t<e.length&&R(e.charCodeAt(t));)t++;C=t}else g=3;return e.substring(f,C)}function L(){for(var f="",C=t;;){if(t>=i){f+=e.substring(C,t),g=2;break}var y=e.charCodeAt(t);if(y===34){f+=e.substring(C,t),t++;break}if(y===92){if(f+=e.substring(C,t),t++,t>=i){g=2;break}var E=e.charCodeAt(t++);switch(E){case 34:f+='"';break;case 92:f+="\\";break;case 47:f+="/";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+=`
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{a as b,c as r,d as _,e as n}from"./HZTGUNMQ.js";import{b as l}from"./UOXQBEMM.js";import{a as g}from"./TO5LRO5X.js";import{a as f}from"./Z43GJCS2.js";import"./DPDCKWCI.js";import{c as h,d as s,p as a,s as p,w as u}from"./MXXCNG6Z.js";import{d,p as o}from"./5OCBQ7TV.js";import"./USVYK2M4.js";import"./ZAS5ISNB.js";var v=h`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,m=class extends p{constructor(){super(...arguments),this.messages=g(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._colorizeStyle="",this._filterValue="",this.hideDocumentationActions=!1,this.loading=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedApiItem:16,apiLibrary:0,hideDocumentationActions:5,loading:5}}static{this.styles=v}load(){this._colorizeStyle=r(),this._themeChangedListener=_(()=>this._colorizeStyle=r())}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let t of this.apiLibrary??[])for(let i of t.items)if(i.name===this._selectedApiItem.name){this._selectedApiItem=i;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{d(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,t){if(!t)return;let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_selectItem(e,t){e.stopPropagation(),this._selectedApiItem=t}_updateFilterValue(e){this._filterValue=e.target?.value??""}renderApiCategory(e){let t=f(e.items,"name",this._filterValue);return t.length?s`<calcite-list-item-group .heading=${e.title}>${t.map(i=>s`<calcite-list-item .label=${o(i.completion.detail)} @calciteListItemSelect=${c=>this._emitItemSelected(c,i)} @keydown=${c=>this._emitItemSelected(c,i)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${c=>this._selectItem(c,i)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose}>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelectedAndClose(t,e)} ${l(t=>{t?.setFocus&&t.setFocus()})}>${this.messages.insert}</calcite-button><calcite-block open .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${l(t=>{t&&(t.innerHTML=n(e.examples),b(t).catch(console.error))})}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){let e=(this.apiLibrary??[]).map(i=>this.renderApiCategory(i)),t=e.every(i=>!i);return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list>${t?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};u("arcgis-language-api-panel",m);export{m as ArcgisLanguageApiPanel};
6
+ import{a as b,c as r,d as _,e as n}from"./GW4QIVKG.js";import{b as l}from"./DZ2N5TAI.js";import{a as g}from"./FLQRTGRO.js";import{a as f}from"./IYYILYHU.js";import"./TDQSMBML.js";import{c as h,d as s,p as a,s as p,w as u}from"./OOTSJLE7.js";import{d,p as o}from"./ETKZJLUJ.js";import"./MPQONZKK.js";import"./PPHYUAQB.js";var v=h`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,m=class extends p{constructor(){super(...arguments),this.messages=g(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._colorizeStyle="",this._filterValue="",this.hideDocumentationActions=!1,this.loading=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedApiItem:16,apiLibrary:0,hideDocumentationActions:5,loading:5}}static{this.styles=v}load(){this._colorizeStyle=r(),this._themeChangedListener=_(()=>this._colorizeStyle=r())}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let t of this.apiLibrary??[])for(let i of t.items)if(i.name===this._selectedApiItem.name){this._selectedApiItem=i;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{d(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,t){if(!t)return;let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_selectItem(e,t){e.stopPropagation(),this._selectedApiItem=t}_updateFilterValue(e){this._filterValue=e.target?.value??""}renderApiCategory(e){let t=f(e.items,"name",this._filterValue);return t.length?s`<calcite-list-item-group .heading=${e.title}>${t.map(i=>s`<calcite-list-item .label=${o(i.completion.detail)} @calciteListItemSelect=${c=>this._emitItemSelected(c,i)} @keydown=${c=>this._emitItemSelected(c,i)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${c=>this._selectItem(c,i)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose}>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelectedAndClose(t,e)} ${l(t=>{t?.setFocus&&t.setFocus()})}>${this.messages.insert}</calcite-button><calcite-block open .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${l(t=>{t&&(t.innerHTML=n(e.examples),b(t).catch(console.error))})}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){let e=(this.apiLibrary??[]).map(i=>this.renderApiCategory(i)),t=e.every(i=>!i);return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list>${t?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};u("arcgis-language-api-panel",m);export{m as ArcgisLanguageApiPanel};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{b as f}from"./UOXQBEMM.js";import{a as u}from"./TO5LRO5X.js";import{c as d,d as i,p as l,s as h,w as m}from"./MXXCNG6Z.js";import{d as c,n}from"./5OCBQ7TV.js";import"./ZAS5ISNB.js";var g=d`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;function b(a){a.key==="Enter"&&a.stopPropagation()}var o=class extends h{constructor(){super(...arguments),this._beforeBack=async()=>{this.removeLastPanelRenderer(),this._filterValue=""},this.messages=u(),this._filterValue="",this._flowItemRenderers=[],this._mode="profile",this._mutationCounter=1,this.loading=!1,this.arcgisClose=l({bubbles:!1}),this.arcgisItemSelected=l({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mode:16,_mutationCounter:16,loading:5,modelId:1,variable:0}}static{this.styles=g}load(){this._variableChanged()}willUpdate(e){e.has("modelId")&&(this._flowItemRenderers=[]),e.has("variable")&&this._variableChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_variableChanged(){this._mode=this.variable?.type==="featureSet"?"featureSet":"profile"}addPanelRenderer(e){this._flowItemRenderers=[...this._flowItemRenderers,e]}removeLastPanelRenderer(){this._flowItemRenderers=this._flowItemRenderers.slice(0,-1)}_isMode(e){return this._mode===e}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{c(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.target.value}_emitClose(){this.arcgisClose.emit()}_backToTop(){this._flowItemRenderers=[]}_emitItemSelected(e,t){if(t.nonInteractive)return;let s=e;(!s.key||s.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.snippet))}_showCollectionPanel(e,t){e.stopPropagation(),this.addPanelRenderer(this.collectionBasedVariableRenderer(t))}_getHeadingForCollection(e){if(!e)return"";switch(this._mode){case"profile":return this.messages.profilevariables??"";case"featureSet":return this.messages.fields??""}}_getDescriptionForCollection(e){if(!e)return"";switch(this._mode){case"profile":return e.breadcrumb;case"featureSet":return e.variables[0]?.getLabel()??""}}collectionBasedVariableRenderer(e,t=!1){return()=>{if(!e)return null;let s=this.loading;return!s&&!e.loaded&&(e.loadSource().then(()=>setTimeout(()=>{this._mutationCounter+=1})).catch(()=>{console.error("Error loading collection"),s=!1}),s=!0),i`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose}><calcite-action slot=header-actions-end .text=${this.messages.backtotop??""} scale=m .hidden=${t||this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${s?i`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??""}></calcite-loader>`:i`<calcite-list>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`}}renderEditorVariables(e){let t=n(this._filterValue),s=e.variables.filter(r=>r.passFilter(t));return s.length?s.map(r=>this.renderEditorVariable(r)):i`<div class="notice-container">${this.messages.noitems}</div>`}renderEditorVariable(e){switch(e.type){case"group":return this._isMode("featureSet")&&e.isHeader?i`<calcite-list-item-group .heading=${e.getLabel()}></calcite-list-item-group>`:this._isMode("featureSet")&&e._label?.code==="fields"?this.renderEditorVariables(e):i`<calcite-list-item-group .heading=${e.getLabel()}>${this.renderEditorVariables(e)}</calcite-list-item-group>`;default:return i`<calcite-list-item .label=${e.getLabel()} .description=${e.getDescription()} @calciteListItemSelect=${t=>this._emitItemSelected(t,e)} @keydown=${t=>this._emitItemSelected(t,e)}>${e.isCollection?i`<calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${t=>this._showCollectionPanel(t,e)} @keydown=${b}></calcite-action>`:null}${e.icon?i`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>`:null}</calcite-list-item>`}}render(){return!this.loading&&this.variable?.loaded&&!this.variable?.variables.length?i`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>`:i`<calcite-flow ${f(this.flowFocusHandler)}>${this.collectionBasedVariableRenderer(this.variable,!0)()}${this._flowItemRenderers.map(e=>e())}</calcite-flow>`}};m("arcgis-editor-variables",o);export{o as ArcgisEditorVariables};
6
+ import{b as f}from"./DZ2N5TAI.js";import{a as u}from"./FLQRTGRO.js";import{c as d,d as i,p as l,s as h,w as m}from"./OOTSJLE7.js";import{d as c,n}from"./ETKZJLUJ.js";import"./PPHYUAQB.js";var g=d`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;function b(r){r.key==="Enter"&&r.stopPropagation()}var o=class extends h{constructor(){super(...arguments),this._beforeBack=async()=>{this.removeLastPanelRenderer(),this._filterValue=""},this.messages=u(),this._filterValue="",this._flowItemRenderers=[],this._mode="profile",this._mutationCounter=1,this.loading=!1,this.arcgisClose=l({bubbles:!1}),this.arcgisItemSelected=l({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mode:16,_mutationCounter:16,loading:5,modelId:1,variable:0}}static{this.styles=g}load(){this._variableChanged()}willUpdate(e){e.has("modelId")&&(this._flowItemRenderers=[]),e.has("variable")&&this._variableChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_variableChanged(){this._mode=this.variable?.type==="featureSet"?"featureSet":"profile"}addPanelRenderer(e){this._flowItemRenderers=[...this._flowItemRenderers,e]}removeLastPanelRenderer(){this._flowItemRenderers=this._flowItemRenderers.slice(0,-1)}_isMode(e){return this._mode===e}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{c(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.target.value}_emitClose(){this.arcgisClose.emit()}_backToTop(){this._flowItemRenderers=[]}_emitItemSelected(e,t){if(t.nonInteractive)return;let s=e;(!s.key||s.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.snippet))}_showCollectionPanel(e,t){e.stopPropagation(),this.addPanelRenderer(this.collectionBasedVariableRenderer(t))}_getHeadingForCollection(e){if(!e)return"";switch(this._mode){case"profile":return this.messages.profilevariables??"";case"featureSet":return this.messages.fields??""}}_getDescriptionForCollection(e){if(!e)return"";switch(this._mode){case"profile":return e.breadcrumb;case"featureSet":return e.variables[0]?.getLabel()??""}}collectionBasedVariableRenderer(e,t=!1){return()=>{if(!e)return null;let s=this.loading;return!s&&!e.loaded&&(e.loadSource().then(()=>setTimeout(()=>{this._mutationCounter+=1})).catch(()=>{console.error("Error loading collection"),s=!1}),s=!0),i`<calcite-flow-item .heading=${this._getHeadingForCollection(e)} .description=${this._getDescriptionForCollection(e)} .beforeBack=${this._beforeBack} closable @calciteFlowItemClose=${this._emitClose}><calcite-action slot=header-actions-end .text=${this.messages.backtotop??""} scale=m .hidden=${t||this._isMode("featureSet")} icon=chevrons-left icon-flip-rtl @click=${this._backToTop}></calcite-action><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${s?i`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??""}></calcite-loader>`:i`<calcite-list>${this.renderEditorVariables(e)}</calcite-list>`}</calcite-flow-item>`}}renderEditorVariables(e){let t=n(this._filterValue),s=e.variables.filter(a=>a.passFilter(t));return s.length?s.map(a=>this.renderEditorVariable(a)):i`<div class="notice-container">${this.messages.noitems}</div>`}renderEditorVariable(e){switch(e.type){case"group":return this._isMode("featureSet")&&e.isHeader?i`<calcite-list-item-group .heading=${e.getLabel()}></calcite-list-item-group>`:this._isMode("featureSet")&&e._label?.code==="fields"?this.renderEditorVariables(e):i`<calcite-list-item-group .heading=${e.getLabel()}>${this.renderEditorVariables(e)}</calcite-list-item-group>`;default:return i`<calcite-list-item .label=${e.getLabel()} .description=${e.getDescription()} @calciteListItemSelect=${t=>this._emitItemSelected(t,e)} @keydown=${t=>this._emitItemSelected(t,e)}>${e.isCollection?i`<calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${t=>this._showCollectionPanel(t,e)} @keydown=${b}></calcite-action>`:null}${e.icon?i`<calcite-icon .icon=${e.icon} scale=s slot=content-start></calcite-icon>`:null}</calcite-list-item>`}}render(){return!this.loading&&this.variable?.loaded&&!this.variable?.variables.length?i`<calcite-flow><calcite-flow-item .heading=${this.messages.profilevariables} closable @calciteFlowItemClose=${this._emitClose}><div class="notice-container">${this.messages.noprofilevariablesmessage}</div></calcite-flow-item></calcite-flow>`:i`<calcite-flow ${f(this.flowFocusHandler)}>${this.collectionBasedVariableRenderer(this.variable,!0)()}${this._flowItemRenderers.map(e=>e())}</calcite-flow>`}};m("arcgis-editor-variables",o);export{o as ArcgisEditorVariables};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{a as b,h as c}from"./ZQDKL5JS.js";import{a as E,b as A}from"./UOXQBEMM.js";import{a as P}from"./TO5LRO5X.js";import{a as f,b as v,d as s}from"./MSYDM4SH.js";import"./LKY23AWI.js";import"./6MK6VELR.js";import"./QFQFQJTI.js";import"./Z43GJCS2.js";import"./DPDCKWCI.js";import{c as h,d as t,f as n,p as r,q as g,s as u,w as _,x as m}from"./MXXCNG6Z.js";import{a as d,g as p}from"./5OCBQ7TV.js";import{fk as x,uj as y}from"./USVYK2M4.js";import"./ZAS5ISNB.js";y();var D=h`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 u{constructor(){super(...arguments),this._codeEditorElt=E(),this._componentReadyDefer=new d,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=P(),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:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0}}static{this.shadowRootOptions=g}static{this.styles=D}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=m("./assets");f(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 v();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._codeEditorElt.value?.insertText(e.detail).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:[x.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} ${A(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:S,iconFlipRtl:w=!1,onClick:$=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${$} data-panel-name=${S??n} .iconFlipRtl=${w}></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.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>`;default: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>`}};_("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};
6
+ import{a as b,h as c}from"./YZN6YOSZ.js";import{a as P,b as A}from"./DZ2N5TAI.js";import{a as E}from"./FLQRTGRO.js";import{a as f,b as v,d as s}from"./MQPGUAKU.js";import"./Q3MEWLG6.js";import"./GOEY6DHU.js";import"./YIY2X63A.js";import"./IYYILYHU.js";import"./TDQSMBML.js";import{c as h,d as t,f as n,p as r,q as g,s as u,w as _,x as m}from"./OOTSJLE7.js";import{a as d,g as p}from"./ETKZJLUJ.js";import{fk as x,uj as y}from"./MPQONZKK.js";import"./PPHYUAQB.js";y();var D=h`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 u{constructor(){super(...arguments),this._codeEditorElt=P(),this._componentReadyDefer=new d,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=E(),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:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0}}static{this.shadowRootOptions=g}static{this.styles=D}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=m("./assets");f(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 v();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._codeEditorElt.value?.insertText(e.detail).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:[x.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} ${A(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:S,iconFlipRtl:w=!1,onClick:$=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${$} data-panel-name=${S??n} .iconFlipRtl=${w}></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.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>`;default: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>`}};_("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{f as c,g as A,h as d,i as _,j as v}from"./MXXCNG6Z.js";var o=(t,s)=>{let e=t._$AN;if(e===void 0)return!1;for(let i of e)i._$AO?.(s,!1),o(i,s);return!0},n=t=>{let s,e;do{if((s=t._$AM)===void 0)break;e=s._$AN,e.delete(t),t=s}while(e?.size===0)},$=t=>{for(let s;s=t._$AM;t=s){let e=s._$AN;if(e===void 0)s._$AN=e=new Set;else if(e.has(t))break;e.add(t),m(s)}};function p(t){this._$AN!==void 0?(n(this),this._$AM=t,$(this)):this._$AM=t}function u(t,s=!1,e=0){let i=this._$AH,f=this._$AN;if(f!==void 0&&f.size!==0)if(s)if(Array.isArray(i))for(let h=e;h<i.length;h++)o(i[h],!1),n(i[h]);else i!=null&&(o(i,!1),n(i));else o(this,t)}var m=t=>{t.type==A.CHILD&&(t._$AP??=u,t._$AQ??=p)},r=class extends _{constructor(){super(...arguments),this._$AN=void 0}_$AT(s,e,i){super._$AT(s,e,i),$(this),this.isConnected=s._$AU}_$AO(s,e=!0){s!==this.isConnected&&(this.isConnected=s,s?this.reconnected?.():this.disconnected?.()),e&&(o(this,s),n(this))}setValue(s){if(v(this.t))this.t._$AI(s,this);else{let e=[...this.t._$AH];e[this.i]=s,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var M=()=>new l,l=class{},a=new WeakMap,T=d(class extends r{render(t){return c}update(t,[s]){let e=s!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=s,this.ht=t.options?.host,this.rt(this.ct=t.element)),c}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let s=this.ht??globalThis,e=a.get(s);e===void 0&&(e=new WeakMap,a.set(s,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?a.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});export{M as a,T as b};
6
+ import{f as c,g as A,h as d,i as _,j as v}from"./OOTSJLE7.js";var o=(t,s)=>{let e=t._$AN;if(e===void 0)return!1;for(let i of e)i._$AO?.(s,!1),o(i,s);return!0},n=t=>{let s,e;do{if((s=t._$AM)===void 0)break;e=s._$AN,e.delete(t),t=s}while(e?.size===0)},$=t=>{for(let s;s=t._$AM;t=s){let e=s._$AN;if(e===void 0)s._$AN=e=new Set;else if(e.has(t))break;e.add(t),m(s)}};function p(t){this._$AN!==void 0?(n(this),this._$AM=t,$(this)):this._$AM=t}function u(t,s=!1,e=0){let i=this._$AH,f=this._$AN;if(f!==void 0&&f.size!==0)if(s)if(Array.isArray(i))for(let h=e;h<i.length;h++)o(i[h],!1),n(i[h]);else i!=null&&(o(i,!1),n(i));else o(this,t)}var m=t=>{t.type==A.CHILD&&(t._$AP??=u,t._$AQ??=p)},r=class extends _{constructor(){super(...arguments),this._$AN=void 0}_$AT(s,e,i){super._$AT(s,e,i),$(this),this.isConnected=s._$AU}_$AO(s,e=!0){s!==this.isConnected&&(this.isConnected=s,s?this.reconnected?.():this.disconnected?.()),e&&(o(this,s),n(this))}setValue(s){if(v(this.t))this.t._$AI(s,this);else{let e=[...this.t._$AH];e[this.i]=s,this.t._$AI(e,this,0)}}disconnected(){}reconnected(){}};var M=()=>new l,l=class{},a=new WeakMap,T=d(class extends r{render(t){return c}update(t,[s]){let e=s!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=s,this.ht=t.options?.host,this.rt(this.ct=t.element)),c}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let s=this.ht??globalThis,e=a.get(s);e===void 0&&(e=new WeakMap,a.set(s,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?a.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});export{M as a,T as b};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
6
  var k=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function L(e,t){let n=e;for(;n;){if(n===t)return!0;if(!n.parentNode)return!1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode}return!1}function T(e,t,n){let{subscribe:r}=$(t);return r(o=>{o.some(i=>L(e,i.target))&&n()})}var h={};function $(e){let t=e.join(","),n=h[t];if(n!==void 0)return n;let r=new Set,o=new MutationObserver(i=>r.forEach(a=>a(i)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let s={subscribe(i){return r.add(i),{remove:()=>{r.delete(i),r.size===0&&(o.disconnect(),h[t]=void 0)}}}};return h[t]=s,s}function b(e,t){let n=e;for(;n;){let r=n.closest?.(t);if(r)return r;let o=n.getRootNode?.();if(o===globalThis.document)return null;n=o.host}return null}function U(e){return b(e,":is(.calcite-mode-light, .calcite-mode-dark)")?.classList.contains("calcite-mode-dark")?"dark":"light"}function y(e,t,n){return b(e,`[${t}]`)?.getAttribute(t)??n}function A(e){return e.nodeType===Node.ELEMENT_NODE}function C(e){return"setFocus"in e&&typeof e.setFocus=="function"}function l(e,t=""){if(!A(e))return!1;if(e.matches(t))return C(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(l(r,t))return!0;let n=e.shadowRoot;if(n){for(let r of n.children)if(l(r,t))return!0}return!1}function I(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){l(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),l(e,t)});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]})}function _(e,t,...n){try{return e?.call(t,...n)}catch(r){console.error(r,e)}}async function q(e,t,...n){try{let r=e?.call(t,...n);return r instanceof Promise?await r:r}catch(r){console.error(r,e)}}function u(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function B(){return[u(2),u(1),u(1),u(1),u(3)].join("-")}var j=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","no","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],S=new Set(j),f="en",N={pt:"pt-PT",no:"nb",zh:"zh-CN"};async function z(e,t,n=""){let r=`${t}/${n}`,o=`${r}${e}.json`;return p[o]??(p[o]=E(e,r)),await p[o]}var p={};async function E(e,t){let n=`${t}${e}.json`;try{let r=await fetch(n);if(r.ok)return await r.json()}catch(r){return console.error(r),{}}return e===f?{}:await E(f,t)}function R(e,t){let n=y(e,"lang",globalThis.navigator?.language||f);return{lang:n,t9nLocale:w(n,t)}}function w(e,t){let[n,r]=e.split("-"),o=n.toLowerCase(),s=o;return r&&(s=`${o}-${r.toUpperCase()}`),s=N[s]??s,t&&s==="nb"?"no":S.has(s)?s:r?w(o):f}function V(e,t,n,r,o){let s,i=()=>void O(e,t,r,o).then(a=>{(s?.lang!==a.lang||s.t9nLocale!==a.t9nLocale||s.t9nStrings!==a.t9nStrings)&&n(a),s=a}).catch(console.error);return i(),T(e,["lang"],i)}async function O(e,t,n=e.tagName.toLowerCase().split("-").slice(1).join("-"),r){let{lang:o,t9nLocale:s}=R(e,r),i=`${t}/${n}/t9n`,a=`${n}.t9n.`,c=n===null?{}:await z(s,i,a);return{lang:o,t9nLocale:s,t9nStrings:c}}var g='"',v="'";function m(e,t){return new Array(t+1).join(e)}function D(e){let t=g,n=v;e.includes(t)&&!e.includes(n)&&(n=g,t=v);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,a,c,d)=>a+c+m(n,d.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,a,c,d)=>a+c+m(`\\${t}`,d.length)),t+e+t}function H(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Q(e,t={}){return(e??"").replace(/\{(?<valueName>.*?)\}/gu,(n,r)=>t[r]??n)}function K(e){return`\u200E${e??""}\u200E`}var W=e=>e.replace(P,(t,n)=>`${n===0?"":"-"}${t.toLowerCase()}`),P=/[A-Z]+(?![a-z])|[A-Z]/gu;function Z(e,t){let n=t>x?F:t/M,r=0,o=setInterval(()=>{r+=n,r>=t&&(clearInterval(o),e())},n);return o}var x=4e3,F=2e3,M=4;function G(e){return e!==null}function J(e){return e!==void 0}function X(e,t=100){let n;return(...r)=>{let o=()=>{clearTimeout(n),e(...r)};clearTimeout(n),n=setTimeout(o,t)}}function Y(e,t,n=!1){if(!e||!t)return!1;let r=new URL(e),o=new URL(t);return!n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function ee(e){try{return new URL(e),!0}catch{return!1}}export{k as a,T as b,U as c,I as d,_ as e,q as f,B as g,S as h,z as i,R as j,w as k,V as l,D as m,H as n,Q as o,K as p,W as q,Z as r,G as s,J as t,X as u,Y as v,ee as w};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{b as o,x as r}from"./MXXCNG6Z.js";var s=o(r);export{s as a};
6
+ import{b as o,x as r}from"./OOTSJLE7.js";var s=o(r);export{s as a};
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
6
  var X;(function(t){function i(r){return typeof r=="string"}t.is=i})(X||(X={}));var C;(function(t){function i(r){return typeof r=="string"}t.is=i})(C||(C={}));var $;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})($||($={}));var A;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647;function i(r){return typeof r=="number"&&t.MIN_VALUE<=r&&r<=t.MAX_VALUE}t.is=i})(A||(A={}));var x;(function(t){function i(n,e){return n===Number.MAX_VALUE&&(n=A.MAX_VALUE),e===Number.MAX_VALUE&&(e=A.MAX_VALUE),{line:n,character:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.line)&&a.uinteger(e.character)}t.is=r})(x||(x={}));var l;(function(t){function i(n,e,s,c){if(a.uinteger(n)&&a.uinteger(e)&&a.uinteger(s)&&a.uinteger(c))return{start:x.create(n,e),end:x.create(s,c)};if(x.is(n)&&x.is(e))return{start:n,end:e};throw new Error(`Range#create called with invalid arguments[${n}, ${e}, ${s}, ${c}]`)}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&x.is(e.start)&&x.is(e.end)}t.is=r})(l||(l={}));var m;(function(t){function i(n,e){return{uri:n,range:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&(a.string(e.uri)||a.undefined(e.uri))}t.is=r})(m||(m={}));var q;(function(t){function i(n,e,s,c){return{targetUri:n,targetRange:e,targetSelectionRange:s,originSelectionRange:c}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.targetRange)&&a.string(e.targetUri)&&l.is(e.targetSelectionRange)&&(l.is(e.originSelectionRange)||a.undefined(e.originSelectionRange))}t.is=r})(q||(q={}));var y;(function(t){function i(n,e,s,c){return{red:n,green:e,blue:s,alpha:c}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.numberRange(e.red,0,1)&&a.numberRange(e.green,0,1)&&a.numberRange(e.blue,0,1)&&a.numberRange(e.alpha,0,1)}t.is=r})(y||(y={}));var B;(function(t){function i(n,e){return{range:n,color:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&y.is(e.color)}t.is=r})(B||(B={}));var H;(function(t){function i(n,e,s){return{label:n,textEdit:e,additionalTextEdits:s}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.undefined(e.textEdit)||_.is(e))&&(a.undefined(e.additionalTextEdits)||a.typedArray(e.additionalTextEdits,_.is))}t.is=r})(H||(H={}));var Q;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Q||(Q={}));var G;(function(t){function i(n,e,s,c,u,f){let d={startLine:n,endLine:e};return a.defined(s)&&(d.startCharacter=s),a.defined(c)&&(d.endCharacter=c),a.defined(u)&&(d.kind=u),a.defined(f)&&(d.collapsedText=f),d}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.uinteger(e.startLine)&&a.uinteger(e.startLine)&&(a.undefined(e.startCharacter)||a.uinteger(e.startCharacter))&&(a.undefined(e.endCharacter)||a.uinteger(e.endCharacter))&&(a.undefined(e.kind)||a.string(e.kind))}t.is=r})(G||(G={}));var R;(function(t){function i(n,e){return{location:n,message:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&m.is(e.location)&&a.string(e.message)}t.is=r})(R||(R={}));var J;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(J||(J={}));var Y;(function(t){t.Unnecessary=1,t.Deprecated=2})(Y||(Y={}));var Z;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&a.string(n.href)}t.is=i})(Z||(Z={}));var w;(function(t){function i(n,e,s,c,u,f){let d={range:n,message:e};return a.defined(s)&&(d.severity=s),a.defined(c)&&(d.code=c),a.defined(u)&&(d.source=u),a.defined(f)&&(d.relatedInformation=f),d}t.create=i;function r(n){var e;let s=n;return a.defined(s)&&l.is(s.range)&&a.string(s.message)&&(a.number(s.severity)||a.undefined(s.severity))&&(a.integer(s.code)||a.string(s.code)||a.undefined(s.code))&&(a.undefined(s.codeDescription)||a.string((e=s.codeDescription)===null||e===void 0?void 0:e.href))&&(a.string(s.source)||a.undefined(s.source))&&(a.undefined(s.relatedInformation)||a.typedArray(s.relatedInformation,R.is))}t.is=r})(w||(w={}));var v;(function(t){function i(n,e,...s){let c={title:n,command:e};return a.defined(s)&&s.length>0&&(c.arguments=s),c}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.title)&&a.string(e.command)}t.is=r})(v||(v={}));var _;(function(t){function i(s,c){return{range:s,newText:c}}t.replace=i;function r(s,c){return{range:{start:s,end:s},newText:c}}t.insert=r;function n(s){return{range:s,newText:""}}t.del=n;function e(s){let c=s;return a.objectLiteral(c)&&a.string(c.newText)&&l.is(c.range)}t.is=e})(_||(_={}));var N;(function(t){function i(n,e,s){let c={label:n};return e!==void 0&&(c.needsConfirmation=e),s!==void 0&&(c.description=s),c}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&a.string(e.label)&&(a.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(a.string(e.description)||e.description===void 0)}t.is=r})(N||(N={}));var b;(function(t){function i(r){let n=r;return a.string(n)}t.is=i})(b||(b={}));var S;(function(t){function i(s,c,u){return{range:s,newText:c,annotationId:u}}t.replace=i;function r(s,c,u){return{range:{start:s,end:s},newText:c,annotationId:u}}t.insert=r;function n(s,c){return{range:s,newText:"",annotationId:c}}t.del=n;function e(s){let c=s;return _.is(c)&&(N.is(c.annotationId)||b.is(c.annotationId))}t.is=e})(S||(S={}));var M;(function(t){function i(n,e){return{textDocument:n,edits:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&F.is(e.textDocument)&&Array.isArray(e.edits)}t.is=r})(M||(M={}));var U;(function(t){function i(n,e,s){let c={kind:"create",uri:n};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(c.options=e),s!==void 0&&(c.annotationId=s),c}t.create=i;function r(n){let e=n;return e&&e.kind==="create"&&a.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})(U||(U={}));var P;(function(t){function i(n,e,s,c){let u={kind:"rename",oldUri:n,newUri:e};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(u.options=s),c!==void 0&&(u.annotationId=c),u}t.create=i;function r(n){let e=n;return e&&e.kind==="rename"&&a.string(e.oldUri)&&a.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||a.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||a.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})(P||(P={}));var V;(function(t){function i(n,e,s){let c={kind:"delete",uri:n};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(c.options=e),s!==void 0&&(c.annotationId=s),c}t.create=i;function r(n){let e=n;return e&&e.kind==="delete"&&a.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||a.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||a.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||b.is(e.annotationId))}t.is=r})(V||(V={}));var D;(function(t){function i(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(e=>a.string(e.kind)?U.is(e)||P.is(e)||V.is(e):M.is(e)))}t.is=i})(D||(D={}));var T;(function(t){function i(n){return{uri:n}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)}t.is=r})(T||(T={}));var K;(function(t){function i(n,e){return{uri:n,version:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.integer(e.version)}t.is=r})(K||(K={}));var F;(function(t){function i(n,e){return{uri:n,version:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&(e.version===null||a.integer(e.version))}t.is=r})(F||(F={}));var ee;(function(t){function i(n,e,s,c){return{uri:n,languageId:e,version:s,text:c}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.string(e.uri)&&a.string(e.languageId)&&a.integer(e.version)&&a.string(e.text)}t.is=r})(ee||(ee={}));var k;(function(t){t.PlainText="plaintext",t.Markdown="markdown";function i(r){let n=r;return n===t.PlainText||n===t.Markdown}t.is=i})(k||(k={}));var E;(function(t){function i(r){let n=r;return a.objectLiteral(r)&&k.is(n.kind)&&a.string(n.value)}t.is=i})(E||(E={}));var te;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(te||(te={}));var ne;(function(t){t.PlainText=1,t.Snippet=2})(ne||(ne={}));var re;(function(t){t.Deprecated=1})(re||(re={}));var ie;(function(t){function i(n,e,s){return{newText:n,insert:e,replace:s}}t.create=i;function r(n){let e=n;return e&&a.string(e.newText)&&l.is(e.insert)&&l.is(e.replace)}t.is=r})(ie||(ie={}));var ae;(function(t){t.asIs=1,t.adjustIndentation=2})(ae||(ae={}));var se;(function(t){function i(r){let n=r;return n&&(a.string(n.detail)||n.detail===void 0)&&(a.string(n.description)||n.description===void 0)}t.is=i})(se||(se={}));var ce;(function(t){function i(r){return{label:r}}t.create=i})(ce||(ce={}));var ue;(function(t){function i(r,n){return{items:r||[],isIncomplete:!!n}}t.create=i})(ue||(ue={}));var L;(function(t){function i(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=i;function r(n){let e=n;return a.string(e)||a.objectLiteral(e)&&a.string(e.language)&&a.string(e.value)}t.is=r})(L||(L={}));var oe;(function(t){function i(r){let n=r;return!!n&&a.objectLiteral(n)&&(E.is(n.contents)||L.is(n.contents)||a.typedArray(n.contents,L.is))&&(r.range===void 0||l.is(r.range))}t.is=i})(oe||(oe={}));var de;(function(t){function i(r,n){return n?{label:r,documentation:n}:{label:r}}t.create=i})(de||(de={}));var fe;(function(t){function i(r,n,...e){let s={label:r};return a.defined(n)&&(s.documentation=n),a.defined(e)?s.parameters=e:s.parameters=[],s}t.create=i})(fe||(fe={}));var le;(function(t){t.Text=1,t.Read=2,t.Write=3})(le||(le={}));var ge;(function(t){function i(r,n){let e={range:r};return a.number(n)&&(e.kind=n),e}t.create=i})(ge||(ge={}));var he;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(he||(he={}));var pe;(function(t){t.Deprecated=1})(pe||(pe={}));var xe;(function(t){function i(r,n,e,s,c){let u={name:r,kind:n,location:{uri:s,range:e}};return c&&(u.containerName=c),u}t.create=i})(xe||(xe={}));var ve;(function(t){function i(r,n,e,s){return s!==void 0?{name:r,kind:n,location:{uri:e,range:s}}:{name:r,kind:n,location:{uri:e}}}t.create=i})(ve||(ve={}));var _e;(function(t){function i(n,e,s,c,u,f){let d={name:n,detail:e,kind:s,range:c,selectionRange:u};return f!==void 0&&(d.children=f),d}t.create=i;function r(n){let e=n;return e&&a.string(e.name)&&a.number(e.kind)&&l.is(e.range)&&l.is(e.selectionRange)&&(e.detail===void 0||a.string(e.detail))&&(e.deprecated===void 0||a.boolean(e.deprecated))&&(e.children===void 0||Array.isArray(e.children))&&(e.tags===void 0||Array.isArray(e.tags))}t.is=r})(_e||(_e={}));var be;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(be||(be={}));var j;(function(t){t.Invoked=1,t.Automatic=2})(j||(j={}));var Ee;(function(t){function i(n,e,s){let c={diagnostics:n};return e!=null&&(c.only=e),s!=null&&(c.triggerKind=s),c}t.create=i;function r(n){let e=n;return a.defined(e)&&a.typedArray(e.diagnostics,w.is)&&(e.only===void 0||a.typedArray(e.only,a.string))&&(e.triggerKind===void 0||e.triggerKind===j.Invoked||e.triggerKind===j.Automatic)}t.is=r})(Ee||(Ee={}));var Ae;(function(t){function i(n,e,s){let c={title:n},u=!0;return typeof e=="string"?(u=!1,c.kind=e):v.is(e)?c.command=e:c.edit=e,u&&s!==void 0&&(c.kind=s),c}t.create=i;function r(n){let e=n;return e&&a.string(e.title)&&(e.diagnostics===void 0||a.typedArray(e.diagnostics,w.is))&&(e.kind===void 0||a.string(e.kind))&&(e.edit!==void 0||e.command!==void 0)&&(e.command===void 0||v.is(e.command))&&(e.isPreferred===void 0||a.boolean(e.isPreferred))&&(e.edit===void 0||D.is(e.edit))}t.is=r})(Ae||(Ae={}));var me;(function(t){function i(n,e){let s={range:n};return a.defined(e)&&(s.data=e),s}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(e.range)&&(a.undefined(e.command)||v.is(e.command))}t.is=r})(me||(me={}));var we;(function(t){function i(n,e){return{tabSize:n,insertSpaces:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&a.uinteger(e.tabSize)&&a.boolean(e.insertSpaces)}t.is=r})(we||(we={}));var Le;(function(t){function i(n,e,s){return{range:n,target:e,data:s}}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(e.range)&&(a.undefined(e.target)||a.string(e.target))}t.is=r})(Le||(Le={}));var je;(function(t){function i(n,e){return{range:n,parent:e}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&l.is(e.range)&&(e.parent===void 0||t.is(e.parent))}t.is=r})(je||(je={}));var Ie;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator",t.decorator="decorator"})(Ie||(Ie={}));var Ce;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Ce||(Ce={}));var ye;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=i})(ye||(ye={}));var Re;(function(t){function i(n,e){return{range:n,text:e}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&a.string(e.text)}t.is=r})(Re||(Re={}));var Ne;(function(t){function i(n,e,s){return{range:n,variableName:e,caseSensitiveLookup:s}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&a.boolean(e.caseSensitiveLookup)&&(a.string(e.variableName)||e.variableName===void 0)}t.is=r})(Ne||(Ne={}));var Me;(function(t){function i(n,e){return{range:n,expression:e}}t.create=i;function r(n){let e=n;return e!=null&&l.is(e.range)&&(a.string(e.expression)||e.expression===void 0)}t.is=r})(Me||(Me={}));var Ue;(function(t){function i(n,e){return{frameId:n,stoppedLocation:e}}t.create=i;function r(n){let e=n;return a.defined(e)&&l.is(n.stoppedLocation)}t.is=r})(Ue||(Ue={}));var O;(function(t){t.Type=1,t.Parameter=2;function i(r){return r===1||r===2}t.is=i})(O||(O={}));var W;(function(t){function i(n){return{value:n}}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&(e.tooltip===void 0||a.string(e.tooltip)||E.is(e.tooltip))&&(e.location===void 0||m.is(e.location))&&(e.command===void 0||v.is(e.command))}t.is=r})(W||(W={}));var Pe;(function(t){function i(n,e,s){let c={position:n,label:e};return s!==void 0&&(c.kind=s),c}t.create=i;function r(n){let e=n;return a.objectLiteral(e)&&x.is(e.position)&&(a.string(e.label)||a.typedArray(e.label,W.is))&&(e.kind===void 0||O.is(e.kind))&&e.textEdits===void 0||a.typedArray(e.textEdits,_.is)&&(e.tooltip===void 0||a.string(e.tooltip)||E.is(e.tooltip))&&(e.paddingLeft===void 0||a.boolean(e.paddingLeft))&&(e.paddingRight===void 0||a.boolean(e.paddingRight))}t.is=r})(Pe||(Pe={}));var Ve;(function(t){function i(r){return{kind:"snippet",value:r}}t.createSnippet=i})(Ve||(Ve={}));var De;(function(t){function i(r,n,e,s){return{insertText:r,filterText:n,range:e,command:s}}t.create=i})(De||(De={}));var Fe;(function(t){function i(r){return{items:r}}t.create=i})(Fe||(Fe={}));var ke;(function(t){t.Invoked=0,t.Automatic=1})(ke||(ke={}));var Oe;(function(t){function i(r,n){return{range:r,text:n}}t.create=i})(Oe||(Oe={}));var We;(function(t){function i(r,n){return{triggerKind:r,selectedCompletionInfo:n}}t.create=i})(We||(We={}));var ze;(function(t){function i(r){let n=r;return a.objectLiteral(n)&&C.is(n.uri)&&a.string(n.name)}t.is=i})(ze||(ze={}));var Xe;(function(t){function i(s,c,u,f){return new z(s,c,u,f)}t.create=i;function r(s){let c=s;return!!(a.defined(c)&&a.string(c.uri)&&(a.undefined(c.languageId)||a.string(c.languageId))&&a.uinteger(c.lineCount)&&a.func(c.getText)&&a.func(c.positionAt)&&a.func(c.offsetAt))}t.is=r;function n(s,c){let u=s.getText(),f=e(c,(g,h)=>{let p=g.range.start.line-h.range.start.line;return p===0?g.range.start.character-h.range.start.character:p}),d=u.length;for(let g=f.length-1;g>=0;g--){let h=f[g],p=s.offsetAt(h.range.start),o=s.offsetAt(h.range.end);if(o<=d)u=u.substring(0,p)+h.newText+u.substring(o,u.length);else throw new Error("Overlapping edit");d=p}return u}t.applyEdits=n;function e(s,c){if(s.length<=1)return s;let u=s.length/2|0,f=s.slice(0,u),d=s.slice(u);e(f,c),e(d,c);let g=0,h=0,p=0;for(;g<f.length&&h<d.length;)c(f[g],d[h])<=0?s[p++]=f[g++]:s[p++]=d[h++];for(;g<f.length;)s[p++]=f[g++];for(;h<d.length;)s[p++]=d[h++];return s}})(Xe||(Xe={}));var z=class{constructor(i,r,n,e){this._uri=i,this._languageId=r,this._version=n,this._content=e,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let r=this.offsetAt(i.start),n=this.offsetAt(i.end);return this._content.substring(r,n)}return this._content}update(i,r){this._content=i.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],r=this._content,n=!0;for(let e=0;e<r.length;e++){n&&(i.push(e),n=!1);let s=r.charAt(e);n=s==="\r"||s===`
7
7
  `,s==="\r"&&e+1<r.length&&r.charAt(e+1)===`
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{c as X}from"./Z43GJCS2.js";import{mj as F,tj as Q,uj as se,zj as B}from"./USVYK2M4.js";se();async function re(i){return await(await X()).colorize(i,"arcade",{tabSize:2})}async function Se(i){if(!i)return;let t=[...i.querySelectorAll("code.language-arcade")];await Promise.all(t.map(async n=>await ie(n,n.textContent)))}async function ie(i,t){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??""))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
6
+ import{c as X}from"./IYYILYHU.js";import{mj as F,tj as Q,uj as se,zj as B}from"./MPQONZKK.js";se();async function re(i){return await(await X()).colorize(i,"arcade",{tabSize:2})}async function Se(i){if(!i)return;let t=[...i.querySelectorAll("code.language-arcade")];await Promise.all(t.map(async n=>await ie(n,n.textContent)))}async function ie(i,t){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??""))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
7
7
  `).map(s=>{let r=s.match(/^\s+/);if(r===null)return s;let[l]=r;return l.length>=e.length?s.slice(e.length):s}).join(`
8
8
  `)}var C=class{constructor(t){this.options=t||I}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:U(e,`
9
9
  `)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],s=be(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){let s=U(e,"#");(this.options.pedantic||!s||/ $/.test(s))&&(e=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,s,r,l,a,c,u,g,k,d,h,y,_=n[1].trim(),A=_.length>1,x={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");let b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(y=!1,!(!(n=b.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),g=n[2].split(`
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.18
4
+ * v4.32.0-next.19
5
5
  */
6
- import{dk as a,ek as b,fk as c,gk as d,hk as e,ik as f,jk as g,kk as h,lk as i,mk as j,nk as k,ok as l,pk as m,qk as n}from"./USVYK2M4.js";import"./ZAS5ISNB.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};
6
+ import{dk as a,ek as b,fk as c,gk as d,hk as e,ik as f,jk as g,kk as h,lk as i,mk as j,nk as k,ok as l,pk as m,qk as n}from"./MPQONZKK.js";import"./PPHYUAQB.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};