@arcgis/core 5.2.0-next.93 → 5.2.0-next.95

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 (190) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  8. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
  9. package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
  10. package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
  12. package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
  14. package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
  15. package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
  24. package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
  27. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
  28. package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
  39. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  40. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
  44. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  45. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  48. package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
  51. package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  60. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  61. package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
  62. package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
  63. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
  67. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  68. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  69. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  70. package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
  71. package/chunks/EmissionComposite.glsl.js +3 -3
  72. package/chunks/Fog.glsl.js +8 -6
  73. package/chunks/RibbonLine.glsl.js +52 -52
  74. package/chunks/bundle.js +1 -1
  75. package/chunks/portal.js +2 -0
  76. package/config.js +1 -1
  77. package/core/timeUtils.d.ts +62 -0
  78. package/core/timeUtils.js +1 -1
  79. package/kernel.js +1 -1
  80. package/layers/AnnotationFeatureLayer.d.ts +0 -1
  81. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  82. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  83. package/libs/parquet/parquet.js +1 -1
  84. package/package.json +3 -3
  85. package/rest/imageService/fetchRasterInfo.js +1 -1
  86. package/support/revision.js +1 -1
  87. package/symbols/cim/types.d.ts +2 -1
  88. package/views/2d/engine/Stage.js +1 -1
  89. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  90. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  91. package/views/2d/engine/webgl/Painter.js +1 -1
  92. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  98. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  99. package/views/2d/layers/features/FeatureContainer.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  103. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  104. package/views/3d/environment/CloudyWeather.js +1 -1
  105. package/views/3d/environment/SunnyWeather.js +1 -1
  106. package/views/3d/layers/I3SMeshView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/terrain/TileCompositor.js +1 -1
  113. package/views/3d/webgl/RenderCamera.js +1 -1
  114. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  115. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
  116. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  117. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  118. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  119. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  120. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  121. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  122. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  123. package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
  124. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
  125. package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
  126. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
  127. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  128. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  129. package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
  130. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  131. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  132. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  133. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  134. package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  137. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  138. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  139. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  140. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  141. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  142. package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
  143. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  144. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  145. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  146. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  147. package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
  148. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  149. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  151. package/views/SceneView.d.ts +1 -0
  152. package/views/SceneView.js +1 -1
  153. package/views/popupAdapter.js +1 -1
  154. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  155. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
  157. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
  158. package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
  159. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  160. package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
  161. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  162. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  163. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  164. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
  165. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  166. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
  167. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
  168. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  169. package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
  170. package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  172. package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
  173. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
  174. package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
  175. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
  176. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
  177. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  178. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  179. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  180. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
  181. package/chunks/GlowComposite.glsl.js +0 -37
  182. package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
  183. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
  184. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
  185. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
  186. /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
  187. /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
  188. /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
  189. /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
  190. /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3543,7367],{93543(e,n,t){t.r(n),t.d(n,{executeScript:()=>he,extend:()=>pe,prepareScript:()=>me});var r=t(48938),a=t(99719),o=t(72888),i=t(17433),s=t(67862),c=t(11484),l=t(66395),u=t(85935),f=t(93833),d=t(92400),w=t(78878),p=t(19157),y=t(3367),m=t(63680),h=t(81113),g=t(32091),b=t(87367),v=t(21593),D=t(36770),R=t(78767),$=t(47346),x=t(29304),S=t(4730),I=t(53966),C=t(16930),F=t(94128),A=t(54218);const k=()=>I.A.getLogger("esri.arcade.arcadeAsyncRuntime"),G=Symbol("debugInfo"),N=Symbol("uninitialized");function E(e){if(e===N)throw new u.D$("InvalidIdentifier",null)}function J(e){return E(e),e}function P(e,n){const t=(0,r.X)(n);if(null!==e.localScope){const n=e.localScope[t];if(void 0!==n)return{scope:e.localScope,id:t,var:n}}const a=e.globalScope[t];if(void 0!==a)return{scope:e.globalScope,id:t,var:a};throw new u.D$("InvalidIdentifier",n)}function O(e,n,t="InvalidIdentifier"){const a=(0,r.X)(n);if(null!==e.localScope){const n=e.localScope[a];if(void 0!==n)return E(n),n.value}const o=e.globalScope[a];if(void 0!==o)return E(o),o.value;throw new u.D$(t,n)}const L=function(){};async function M(e,n){const t=[];for(let r=0;r<n.arguments.length;r++)t.push(await K(e,n.arguments[r]));return t}async function H(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await M(e,n))}L.prototype=Object.freeze(Object.create(null));class U extends d.fF{constructor(e,n,t,r,a){super(),this.definition=e,this.context=n,this._params=t,this._locals=r,this._debugInfo=a}get debugName(){return this.definition.id.name}createFunction(e){return(...n)=>{const t=new L;t[G]=this._debugInfo;const r={spatialReference:this.context.spatialReference,console:this.context.console,lrucache:this.context.lrucache,timeZone:this.context.timeZone??null,exports:this.context.exports,libraryResolver:this.context.libraryResolver,interceptor:this.context.interceptor,services:this.context.services,abortSignal:this.context.abortSignal,localScope:t,depthCounter:{depth:e.depthCounter.depth+1},globalScope:this.context.globalScope,contextScopeDebugInfo:this.context.contextScopeDebugInfo,track:this.context.track};if(r.depthCounter.depth>64)throw new u.D$("MaximumCallDepth",null);return j(r,this.definition.body,this._params,this._locals,n,null)}}call(e,n){return _(e,n,(t,r,a)=>{const o=new L;o[G]=this._debugInfo;const i={spatialReference:e.spatialReference,services:e.services,console:e.console,libraryResolver:e.libraryResolver,exports:e.exports,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:o,abortSignal:e.abortSignal,globalScope:e.globalScope,contextScopeDebugInfo:e.contextScopeDebugInfo,depthCounter:{depth:e.depthCounter.depth+1},track:e.track};if(i.depthCounter.depth>64)throw new u.D$("MaximumCallDepth",n);return j(i,this.definition.body,this._params,this._locals,a,n)})}marshalledCall(e,n,t,r){return r(e,n,async(a,o,i)=>{const s=new L;s[G]=this._debugInfo;const c={spatialReference:e.spatialReference,services:e.services,globalScope:t.globalScope,contextScopeDebugInfo:t.contextScopeDebugInfo,depthCounter:{depth:e.depthCounter.depth+1},libraryResolver:e.libraryResolver,exports:e.exports,console:e.console,abortSignal:e.abortSignal,lrucache:e.lrucache,timeZone:e.timeZone??null,interceptor:e.interceptor,localScope:s,track:e.track};return i=i.map(n=>!(0,w.i)(n)||n instanceof d.CU?n:(0,d.o6)(n,e,r)),(0,d.o6)(await j(c,this.definition.body,this._params,this._locals,i,n),t,r)})}}async function j(e,n,t,r,a,o){if(t.length!==a.length)throw new u.D$("WrongNumberOfParameters",o);if(null!=e.localScope){for(let n=0;n<t.length;n++)e.localScope[t[n]]={value:a[n]};for(const n of r)e.localScope[n]=N}const i=await X(e,n);if(i instanceof w.R)return i.value;if(i===w.C)throw new u.D$("UnexpectedToken",o);if(i===w.D)throw new u.D$("UnexpectedToken",o);return i instanceof w.I?i.value:i}class B extends a.x{constructor(e){super(),this.moduleGlobalContext=e}global(e){const n=(0,r.X)(e);if(!this.moduleGlobalContext.exports.has(n))throw new u.D$("ModuleExportNotFound",null);const t=this.moduleGlobalContext.globalScope[n];if(E(t),(0,w.i)(t.value)&&!(t.value instanceof d.CU)){const e=new d.CU;return e.fn=t.value,e.parameterEvaluator=H,e.context=this.moduleGlobalContext,this.moduleGlobalContext.globalScope[n]={value:e},e}return t.value}setGlobal(e,n){if((0,w.i)(n))throw new u.D$("AssignModuleFunction",null);const t=(0,r.X)(e);if(!this.moduleGlobalContext.exports.has(t))throw new u.D$("ModuleExportNotFound",null);this.moduleGlobalContext.globalScope[t]={value:n}}hasGlobal(e){return this.moduleGlobalContext.exports.has((0,r.X)(e))}static async load(e,n){const{globals:t,exports:a}=(0,i.aU)(n),s=new we;null!=e.contextScopeDebugInfo&&(s[G]={declaredNames:t});for(const e of t.keys())e in s||(s[e]=N);const c=e.spatialReference??C.A.WebMercator,l={lrucache:e.lrucache,interceptor:e.interceptor,services:e.services,console:e.console??ye,abortSignal:e.abortSignal??r._,timeZone:e.timeZone??null,spatialReference:c,track:null,depthCounter:{depth:1},libraryResolver:new o.a(e.libraryResolver._moduleSingletons,n.loadedModules),exports:a,localScope:null,globalScope:s,contextScopeDebugInfo:null!=e.contextScopeDebugInfo?{declaredNames:new Map}:null};return await Y(l,n),new B(l)}}async function _(e,n,t){return!0===n.preparsed?t(e,null,n.arguments):t(e,n,await M(e,n))}function Z(e,n,t){const r=new Map;if(n)for(const[a,o]of n.declaredNames){const n=e[a];r.set(o,null==n||n===N?null:(0,c.R)(n.value,t))}else for(const n of Object.getOwnPropertyNames(e)){const a=e[n];r.set(n,a===N?null:(0,c.R)(a.value,t))}return r}function z(e){return e instanceof U?`ƒ ${e.debugName}(${e.definition.params.map(e=>e.name).join(", ")})`:(0,c.h)(e)}function q(e,n){const t=e.services?.debugger;if(null==t)return;const r={renderFunction:z,defaultTimeZone:e.timeZone??"system"};return t.pause(n,{profile:null!=e.contextScopeDebugInfo?Z(e.globalScope,e.contextScopeDebugInfo,r):new Map,globals:Z(e.globalScope,e.globalScope[G],r),locals:null==e.localScope?null:Z(e.localScope,e.localScope[G],r)})}async function K(e,n){n.breakpoint&&await q(e,n.breakpoint);try{switch(n.type){case"UpdateExpression":return await async function(e,n){const t=n.argument;if("CallExpression"===t.type)throw new u.D$("NeverReach",n);if("MemberExpression"===t.type){const r=await K(e,t.object);let a,o;if(!0===t.computed)a=await K(e,t.property);else{if("Identifier"!==t.property.type)throw new u.D$("Unrecognized",n);a=t.property.name}if((0,A.cy)(r)){if(!(0,A.Et)(a))throw new u.D$("ArrayAccessMustBeNumber",n);if(a<0&&(a=r.length+a),a<0||a>=r.length)throw new u.D$("OutOfBounds",n);o=(0,w.v)(r[a]),r[a]="++"===n.operator?o+1:o-1}else if(r instanceof l.A){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasField(a))throw new u.D$("FieldNotFound",n,{key:a});o=(0,w.v)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}else if(r instanceof B){if(!1===(0,A.Kg)(a))throw new u.D$("ModuleAccessorMustBeString",n);if(!0!==r.hasGlobal(a))throw new u.D$("ModuleExportNotFound",n);o=(0,w.v)(r.global(a)),r.setGlobal(a,"++"===n.operator?o+1:o-1)}else{if(!(0,w.h)(r))throw(0,w.g)(r)?new u.D$("Immutable",n):new u.D$("InvalidParameter",n);if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasField(a))throw new u.D$("FieldNotFound",n,{key:a});o=(0,w.v)(r.field(a)),r.setField(a,"++"===n.operator?o+1:o-1)}return!1===n.prefix?o:"++"===n.operator?o+1:o-1}const r=P(e,t),a=(0,w.v)(J(r.var).value),o="++"===n.operator?a+1:a-1;return r.scope[r.id]={value:o},!1===n.prefix?a:"++"===n.operator?a+1:a-1}(e,n);case"AssignmentExpression":return await async function(e,n){const t=n.left;if("MemberExpression"===t.type){const r=await K(e,t.object);let a;if(!0===t.computed)a=await K(e,t.property);else{if("Identifier"!==t.property.type)throw new u.D$("InvalidIdentifier",n);a=t.property.name}const o=await K(e,n.right);if((0,A.cy)(r)){if(!(0,A.Et)(a))throw new u.D$("ArrayAccessMustBeNumber",n);if(a<0&&(a=r.length+a),a<0||a>r.length)throw new u.D$("OutOfBounds",n);if(a===r.length){if("="!==n.operator)throw new u.D$("OutOfBounds",n);r[a]=Q(o,n.operator,r[a],n)}else r[a]=Q(o,n.operator,r[a],n)}else if(r instanceof l.A){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0===r.hasField(a))r.setField(a,Q(o,n.operator,r.field(a),n));else{if("="!==n.operator)throw new u.D$("FieldNotFound",n,{key:a});r.setField(a,Q(o,n.operator,null,n))}}else if(r instanceof B){if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0!==r.hasGlobal(a))throw new u.D$("ModuleExportNotFound",n);r.setGlobal(a,Q(o,n.operator,r.global(a),n))}else{if(!(0,w.h)(r))throw(0,w.g)(r)?new u.D$("Immutable",n):new u.D$("InvalidParameter",n);if(!1===(0,A.Kg)(a))throw new u.D$("KeyAccessorMustBeString",n);if(!0===r.hasField(a))r.setField(a,Q(o,n.operator,r.field(a),n));else{if("="!==n.operator)throw new u.D$("FieldNotFound",n,{key:a});r.setField(a,Q(o,n.operator,null,n))}}return w.x}const r=P(e,t),a=await K(e,n.right);return r.scope[r.id]={value:Q(a,n.operator,"="!==n.operator?J(r.var).value:null,n)},w.x}(e,n);case"TemplateLiteral":return await async function(e,n){let t="",r=0;for(const a of n.quasis)if(t+=a.value?a.value.cooked:"",!1===a.tail){if(n.expressions[r]){const a=await K(e,n.expressions[r]);if((0,w.i)(a))throw new u.D$("NoFunctionInTemplateLiteral",n);t+=(0,w.w)(a)}r++}return t}(e,n);case"Identifier":return oe(e,n);case"MemberExpression":return await async function(e,n){return te(e,await K(e,n.object),n)}(e,n);case"Literal":return n.value;case"CallExpression":return await async function(e,n){let t;if("Identifier"===n.callee.type){const r=n.callee;r.breakpoint&&await q(e,r.breakpoint),t=O(e,n.callee,"FunctionNotFound")}else t=await K(e,n.callee);return ie(e,t,n)}(e,n);case"UnaryExpression":return await async function(e,n){const t=await K(e,n.argument);if((0,A.Lm)(t)){if("!"===n.operator)return!t;if("-"===n.operator)return-1*(0,w.v)(t);if("+"===n.operator)return 1*(0,w.v)(t);if("~"===n.operator)return~(0,w.v)(t);throw new u.D$("UnsupportUnaryOperator",n)}if("-"===n.operator)return-1*(0,w.v)(t);if("+"===n.operator)return 1*(0,w.v)(t);if("~"===n.operator)return~(0,w.v)(t);throw new u.D$("UnsupportUnaryOperator",n)}(e,n);case"BinaryExpression":return await async function(e,n){const t=await K(e,n.left),r=await K(e,n.right);switch(n.operator){case"|":case"<<":case">>":case">>>":case"^":case"&":return(0,w.A)((0,w.v)(t),(0,w.v)(r),n.operator);case"==":return(0,w.z)(t,r);case"!=":return!(0,w.z)(t,r);case"<":case">":case"<=":case">=":return(0,w.y)(t,r,n.operator);case"+":return(0,A.Kg)(t)||(0,A.Kg)(r)?(0,w.w)(t)+(0,w.w)(r):(0,w.v)(t)+(0,w.v)(r);case"-":return(0,w.v)(t)-(0,w.v)(r);case"*":return(0,w.v)(t)*(0,w.v)(r);case"/":return(0,w.v)(t)/(0,w.v)(r);case"%":return(0,w.v)(t)%(0,w.v)(r);default:throw n.operator,new u.D$("UnsupportedOperator",n)}}(e,n);case"LogicalExpression":return await async function(e,n){const t=await K(e,n.left);if(!(0,A.Lm)(t))throw new u.D$("LogicalExpressionOnlyBoolean",n);switch(n.operator){case"||":{if(!0===t)return t;const r=await K(e,n.right);if((0,A.Lm)(r))return r;throw new u.D$("LogicExpressionOrAnd",n)}case"&&":{if(!1===t)return t;const r=await K(e,n.right);if((0,A.Lm)(r))return r;throw new u.D$("LogicExpressionOrAnd",n)}default:throw n.operator,new u.D$("LogicExpressionOrAnd",n)}}(e,n);case"ArrayExpression":return await async function(e,n){const t=[];for(let r=0;r<n.elements.length;r++)t.push(await K(e,n.elements[r]));for(let e=0;e<t.length;e++){if((0,w.i)(t[e]))throw new u.D$("NoFunctionInArray",n);t[e]===w.x&&(t[e]=null)}return t}(e,n);case"ObjectExpression":return await async function(e,n){const t=[];for(let r=0;r<n.properties.length;r++){const a=n.properties[r],o=await K(e,a.value),i="Identifier"===a.key.type?a.key.name:await K(e,a.key);t[r]={key:i,value:o}}const r=Object.create(null),a=new Map;for(let e=0;e<t.length;e++){const o=t[e];if((0,w.i)(o.value))throw new u.D$("NoFunctionInDictionary",n);if(!1===(0,A.Kg)(o.key))throw new u.D$("KeyMustBeString",n);let i=o.key.toString();const s=i.toLowerCase();a.has(s)?i=a.get(s):a.set(s,i),o.value===w.x?r[i]=null:r[i]=o.value}const o=new l.A(r);return o.immutable=!1,o}(e,n);case"MemberAccessChainExpression":return await async function(e,n){const t=(0,i.YZ)(n);let r=await K(e,t.root);for(const n of t.sections){const t=await ae(e,r,n.checked);if(null==t)return null;r=await re(e,t,n.unchecked)}return r}(e,n);case"SafeMemberExpression":throw k().error("SafeMemberExpression outside of MemberAccessChainExpression"),new u.D$("Unrecognized",n);default:throw new u.D$("Unrecognized",n)}}catch(e){throw(0,u.i2)(e,n)}}async function X(e,n){n.breakpoint&&await q(e,n.breakpoint);try{switch(n.type){case"ImportDeclaration":return await async function(e,n){const t=P(e,n.specifiers[0].local),r=e.libraryResolver;if(null==r)throw k().error("Internal error: module loader not initialized"),new u.D$("NeverReach",n);const a=r.loadLibrary(t.id);let o;return r._moduleSingletons?.has(a.uri)?o=r._moduleSingletons.get(a.uri):(o=await B.load(e,a.syntax),r._moduleSingletons?.set(a.uri,o)),t.scope[t.id]={value:o},w.x}(e,n);case"ExportNamedDeclaration":return await async function(e,n){return await X(e,n.declaration),w.x}(e,n);case"VariableDeclaration":return await async function(e,n){for(const t of n.declarations)await ne(e,t);return w.x}(e,n);case"BlockStatement":return await Y(e,n);case"FunctionDeclaration":return await async function(e,n){if(null!=e.localScope)throw k().error("Function declarations are only valid in global scope."),new u.D$("NeverReach",n);const t=(0,r.X)(n.id);if(!(t in e.globalScope))throw k().error(`Function "${t}" not declared.`),new u.D$("NeverReach",n);const a=(0,i.SV)(n),o=n.params.map(e=>(0,r.X)(e)),s=Array.from(a.keys()).filter(e=>!o.includes(e));let c=null;return null!=e.contextScopeDebugInfo&&(c={declaredNames:new Map([...n.params.map(e=>[(0,r.X)(e),e.name]),...a])}),e.globalScope[t]={value:new U(n,e,o,s,c)},w.x}(e,n);case"ReturnStatement":return await async function(e,n){if(null===n.argument)return new w.R(w.x);const t=await K(e,n.argument);return new w.R(t)}(e,n);case"IfStatement":return await async function(e,n){const t=await K(e,n.test);if(!0===t)return X(e,n.consequent);if(!1===t)return null!==n.alternate?X(e,n.alternate):w.x;throw new u.D$("BooleanConditionRequired",n)}(e,n);case"ExpressionStatement":return await async function(e,n){const t=await K(e,n.expression);return t===w.x?w.x:new w.I(t)}(e,n);case"ForStatement":return await async function(e,n){try{for(null!==n.init&&("VariableDeclaration"===n.init.type?await X(e,n.init):await K(e,n.init));;){if(null!==n.test){const t=await K(e,n.test);if(!0===e.abortSignal?.aborted)throw new u.D$("Cancelled",n);if(!1===t)break;if(!0!==t)throw new u.D$("BooleanConditionRequired",n)}const t=await X(e,n.body);if(t===w.C)break;if(t instanceof w.R)return t;null!==n.update&&await K(e,n.update)}return w.x}catch(e){throw e}}(e,n);case"WhileStatement":return await async function(e,n){let t=await K(e,n.test);if(!1===t)return w.x;if(!0!==t)throw new u.D$("BooleanConditionRequired",n);for(;!0===t;){const r=await X(e,n.body);if(r===w.C)break;if(r instanceof w.R)return r;if(t=await K(e,n.test),!0!==t&&!1!==t)throw new u.D$("BooleanConditionRequired",n)}return w.x}(e,n);case"ForInStatement":return await async function(e,n){const t=await K(e,n.right);"VariableDeclaration"===n.left.type&&await X(e,n.left);const r=P(e,"VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);return(0,A.cy)(t)||(0,A.Kg)(t)?await T(e,n,t,r):(0,w.g)(t)?await W(e,n,t,r):t instanceof l.A||(0,w.B)(t)?await T(e,n,t.keys(),r,"k"):(0,w.k)(t)?await V(e,n,t,r):(0,w.d)(t)?await T(e,n,(0,s.T)(t),r,"k"):w.x}(e,n);case"ForOfStatement":return await async function(e,n){const t=await K(e,n.right);"VariableDeclaration"===n.left.type&&await X(e,n.left);const r=P(e,"VariableDeclaration"===n.left.type?n.left.declarations[0].id:n.left);return(0,A.cy)(t)||(0,A.Kg)(t)?await T(e,n,t,r,"k"):(0,w.g)(t)?await W(e,n,t,r,"k"):t instanceof l.A||(0,w.B)(t)?await async function(e,n,t,r){for(const a of t.keys()){const o=t.field(a);r.scope[r.id]={value:l.A.containerEntry(a,o)};const i=await X(e,n.body);if(i===w.C)break;if(i instanceof w.R)return i}return w.x}(e,n,t,r):(0,w.k)(t)?await V(e,n,t,r):(0,w.d)(t)?await async function(e,n,t,r){for(const a of(0,s.T)(t)){const o=(0,s.Ny)(t,a);r.scope[r.id]={value:l.A.containerEntry(a,o)};const i=await X(e,n.body);if(i===w.C)break;if(i instanceof w.R)return i}return w.x}(e,n,t,r):w.x}(e,n);case"BreakStatement":return w.C;case"EmptyStatement":return w.x;case"ContinueStatement":return w.D;default:throw new u.D$("Unrecognized",n)}}catch(e){throw(0,u.i2)(e,n)}}async function T(e,n,t,r,a="i"){const o=t.length;for(let i=0;i<o;i++){if("k"===a){if(i>=t.length)throw new u.D$("OutOfBounds",n);r.scope[r.id]={value:t[i]}}else r.scope[r.id]={value:i};const o=await X(e,n.body);if(o===w.C)break;if(o instanceof w.R)return o}return w.x}async function W(e,n,t,r,a="i"){const o=t.length();for(let i=0;i<o;i++){r.scope[r.id]="k"===a?{value:t.get(i)}:{value:i};const o=await X(e,n.body);if(o===w.C)break;if(o instanceof w.R)return o}return w.x}async function V(e,n,t,r){e:for await(const a of await t.queryAll(e.abortSignal))for(const o of a){r.scope[r.id]={value:f.Xj.createFromGraphicLikeObject(o.geometry,o.attributes,t,e.timeZone)};const a=await X(e,n.body);if(a===w.C)break e;if(a instanceof w.R)return a}return w.x}function Q(e,n,t,r){switch(n){case"=":return e===w.x?null:e;case"/=":return(0,w.v)(t)/(0,w.v)(e);case"*=":return(0,w.v)(t)*(0,w.v)(e);case"-=":return(0,w.v)(t)-(0,w.v)(e);case"+=":return(0,A.Kg)(t)||(0,A.Kg)(e)?(0,w.w)(t)+(0,w.w)(e):(0,w.v)(t)+(0,w.v)(e);case"%=":return(0,w.v)(t)%(0,w.v)(e);default:throw new u.D$("UnsupportedOperator",r)}}async function Y(e,n){return ee(e,n,0)}async function ee(e,n,t){if(t>=n.body.length)return w.x;const r=await X(e,n.body[t]);return r instanceof w.R||r===w.C||r===w.D||t===n.body.length-1?r:ee(e,n,t+1)}async function ne(e,n){n.breakpoint&&await q(e,n.breakpoint);let t=null;t=null===n.init?null:await K(e,n.init),t===w.x&&(t=null);const r=P(e,n.id);r.scope[r.id]={value:t}}async function te(e,n,t){const r=t.computed?await K(e,t.property):t.property.name;return(0,s.Xf)(n,r)}async function re(e,n,t){for(const r of t)switch(r.type){case"MemberExpression":n=await te(e,n,r);break;case"CallExpression":n=await ie(e,n,r);break;default:throw new u.D$("Unrecognized",r)}return n}async function ae(e,n,t){const r=t.computed?await K(e,t.property):t.property.name;return(0,s.c$)(n,r)}function oe(e,n){return O(e,n)}async function ie(e,n,t){if((0,w.i)(n))return n.call(e,t);throw new u.D$("CallNonFunction",t)}async function se(e,n){(0,w.E)(null===n.arguments?[]:n.arguments,3,3,n);const t=await K(e,n.arguments[0]);if(!1===(0,A.Lm)(t))throw new u.D$("BooleanConditionRequired",n);return K(e,t?n.arguments[1]:n.arguments[2])}async function ce(e,n){(0,w.E)(null===n.arguments?[]:n.arguments,2,3,n);const t=await K(e,n.arguments[0]);if(3===n.arguments.length){const r=await K(e,n.arguments[1]),a=(0,s.jd)(t,r);return null!=a&&""!==a?a:K(e,n.arguments[2])}return null==t||""===t?K(e,n.arguments[1]):t}async function le(e,n){if(n.arguments.length<2)throw new u.D$("WrongNumberOfParameters",n);if(2===n.arguments.length)return K(e,n.arguments[1]);if((n.arguments.length-1)%2==0)throw new u.D$("WrongNumberOfParameters",n);return ue(e,n,1,await K(e,n.arguments[0]))}async function ue(e,n,t,r){const a=await K(e,n.arguments[t]);if((0,w.z)(a,r))return K(e,n.arguments[t+1]);const o=n.arguments.length-t;return 1===o?K(e,n.arguments[t]):2===o?null:3===o?K(e,n.arguments[t+2]):ue(e,n,t+2,r)}async function fe(e,n){if(n.arguments.length<3)throw new u.D$("WrongNumberOfParameters",n);if(n.arguments.length%2==0)throw new u.D$("WrongNumberOfParameters",n);const t=await K(e,n.arguments[0]);if(!1===(0,A.Lm)(t))throw new u.D$("BooleanConditionRequired",n.arguments[0]);return de(e,n,0,t)}async function de(e,n,t,r){if(!0===r)return K(e,n.arguments[t+1]);if(3===n.arguments.length-t)return K(e,n.arguments[t+2]);const a=await K(e,n.arguments[t+2]);if(!1===(0,A.Lm)(a))throw new u.D$("ModuleExportNotFound",n.arguments[t+2]);return de(e,n,t+2,a)}const we=function(){const e=Object.create(null);(0,h.d)(e,H),(0,x.d)(e,H),(0,g.d)(e,H,oe),(0,D.d)(e,H),(0,v.d)(e,H),(0,$.d)(e,H),(0,S.dW)(e,H),(0,b.registerFunctions)({functions:e,compiled:!1,signatures:null,evaluateIdentifier:null,mode:"async",standardFunction:H,standardFunctionAsync:_}),e.iif=se,e.defaultvalue=ce,e.decode=le,e.when=fe;const n=function(){this.textformatting={value:l.A.textFormatting()}};(n.prototype=Object.create(null)).infinity=Object.freeze({value:Number.POSITIVE_INFINITY}),n.prototype.nan=Object.freeze({value:Number.NaN}),n.prototype.pi=Object.freeze({value:Math.PI});for(const[t,r]of Object.entries(e))n.prototype[t]=Object.freeze({value:new d.UQ(r,t)});return n}();function pe(e){const n={mode:"async",compiled:!1,functions:Object.create(null),signatures:[],standardFunction:H,standardFunctionAsync:_,evaluateIdentifier:oe};for(let t=0;t<e.length;t++)e[t].registerFunctions(n);for(const[e,t]of Object.entries(n.functions))we.prototype[e]=Object.freeze({value:new d.UQ(t,e)});for(let e=0;e<n.signatures.length;e++)(0,p.WC)(n.signatures[e],"async")}function ye(e){console.log(e)}function me(e,n){const t=new Set(Object.keys(n?.vars||{}).map(e=>(0,r.X)(e))),a=new Set(Object.keys(n?.customfunctions||{}).map(e=>(0,r.X)(e))),{globals:s,exports:c}=(0,i.aU)(e);let l=null;if(n?.breakpoints){for(const[t,r]of(0,i.ti)(n.breakpoints,e))t.breakpoint=r;l={declaredNames:new Map(Object.keys(n?.vars||{}).map(e=>[(0,r.X)(e),e]).filter(([e])=>!s.has(e)))}}return async n=>{const i=n.spatialReference??C.A.WebMercator;let p=null;e.usesModules&&(p=new o.a(new Map,e.loadedModules));const y=new we;null!=l&&(y[G]={declaredNames:s});for(const e of a)null!=n.customfunctions&&e in n.customfunctions?y[e]={value:new d.UQ(n.customfunctions[e],e)}:y[e]=N;for(const e of t){if(null==n.vars||!(e in n.vars)){e in y||(y[e]=N);continue}const t=n.vars[e]??null;(0,F.D)(t)?y[e]={value:f.Xj.createFromGraphic(t,n.timeZone??null)}:y[e]={value:t}}for(const e of s.keys())e in y||(y[e]=N);const m={lrucache:n.lrucache,interceptor:n.interceptor,services:n.services,console:n.console??ye,abortSignal:n.abortSignal??r._,timeZone:n.timeZone??null,spatialReference:i,track:n.track,depthCounter:{depth:1},libraryResolver:p,exports:c,localScope:null,globalScope:y,contextScopeDebugInfo:l},h=await Y(m,e);if(h instanceof w.R||h instanceof w.I){const e=h.value;if((0,w.u)(e))return null;if((0,w.i)(e))throw new u.D$("IllegalResult",null);return e}if((0,w.u)(h))return null;if(h===w.C)throw new u.D$("IllegalResult",null);if(h===w.D)throw new u.D$("IllegalResult",null);throw new u.D$("NeverReach",null)}}function he(e,n){return me(e,n)(n)}pe([m.A]),pe([y.A]),pe([R.P])},87367(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>b});var r=t(47609),a=t(67862),o=t(66395),i=t(85935),s=t(54639),c=t(78878),l=t(80672),u=t(38222),f=t(98919),d=t(71163),w=t(36983),p=t(70333),y=t(11254);async function m(e,n,t){const r=p.id?.findCredential(e.restUrl);if(!r)return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;const a={responseType:"json",query:{f:"json"}};if(t&&(a.query.returnUserLicenseTypeExtensions=!0),""===n){const n=await(0,y.A)(e.restUrl+"/community/self",a);if(n.data){const e=n.data;if(e?.username)return e}return null}const o=await(0,y.A)(e.restUrl+"/community/users/"+n,a);if(o.data){const e=o.data;return e.error?null:e}return null}var h=t(54218);function g(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new i.D$("InvalidParameter",null)}}function b(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]||(0,d.C)("disjoint",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("intersects",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("touches",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("crosses",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("within",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("contains",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("overlaps",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>((0,c.E)(r,2,2,t),r[0]===r[1]||((0,c.d)(r[0])&&(0,c.d)(r[1])?(0,d.C)("equals",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]):((0,c.f)(r[0])&&(0,c.f)(r[1])||!!((0,c.r)(r[0])&&(0,c.r)(r[1])||(0,c.q)(r[0])&&(0,c.q)(r[1])))&&r[0].equals(r[1]))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,3,3,t),(0,c.d)(r[0])&&(0,c.d)(r[1]))return(0,d.C)("relate",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference),(0,c.w)(r[2])]);if((0,c.d)(r[0])&&null===r[1])return!1;if((0,c.d)(r[1])&&null===r[0])return!1;if(null===r[0]&&null===r[1])return!1;throw new i.D$("InvalidParameter",t)})},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]?null:(0,w.R)(await(0,d.C)("intersection",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(0===(r=(0,c.H)(r)).length)throw new i.D$("WrongNumberOfParameters",t);const a=[];if(1===r.length)if((0,h.cy)(r[0])){for(const e of(0,c.H)(r[0]))if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else{if(!(0,c.g)(r[0])){if((0,c.d)(r[0]))return r[0].clone();if(null===r[0])return null;throw new i.D$("InvalidParameter",t)}for(const e of(0,c.H)(r[0].toArray()))if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else for(const e of r)if(null!==e){if(!(0,c.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}if(0===a.length)return null;const o=a[0].spatialReference;return(0,w.R)(await(0,d.C)("union",[a.map(e=>e.asJsonGeometry()),(0,s.b)(o)]),o)})},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]?null:null===r[1]?r[0].clone():(0,w.R)(await(0,d.C)("difference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,c.H)(r),(0,f.ZL)(r,t),null===r[0]&&null===r[1]?null:null===r[0]?r[1]?.clone()??null:null===r[1]?r[0]?.clone()??null:(0,w.R)(await(0,d.C)("symmetricDifference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),!(0,c.J)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return null===r[1]?null:(0,w.R)(await(0,d.C)("clip",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),!(0,c.K)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return[];if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(null===r[1])return[r[0].clone()];const a=r[0].spatialReference;return(await(0,d.C)("cut",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])).map(e=>(0,w.R)(e,a)).filter(e=>null!=e)})},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,c.E)(a,1,2,t),a=(0,c.H)(a),(0,c.k)(a[0])){const e=await a[0].sumArea(g(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,h.cy)(o)||(0,c.g)(o))&&(o=(0,u.zt)(a[0],n.spatialReference)),null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("area",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[1])])})},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,c.E)(a,1,3,t);let o=(a=(0,c.H)(a))[0];((0,h.cy)(o)||(0,c.g)(o))&&(o=(0,u.zt)(o,n.spatialReference));const l=g(a[1]),w=(0,f.qr)(a[2]);if((0,c.k)(o)){const e=await o.sumArea(l,w,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null==o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticArea",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),l,w])})},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,c.E)(a,1,2,t),a=(0,c.H)(a),(0,c.k)(a[0])){const e=await a[0].sumLength(g(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.X1)(a[0],n.spatialReference)),null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("length",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[1])])})},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,async(e,a,o)=>{if((0,c.E)(o,1,2,r),null===(o=(0,c.H)(o))[0])return 0;let l=o[0];if(((0,h.cy)(o[0])||(0,c.g)(o[0]))&&(l=(0,u.X1)(o[0],n.spatialReference)),null===l)return 0;if(!(0,c.d)(l))throw new i.D$("InvalidParameter",r);if(!0===l.hasZ){const{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(t.bind(t,40547)),r=(0,f.UI)(l);return e(l.spatialReference,n(o[1]),r)}return(0,d.C)("length",[l.asJsonGeometry(),(0,s.b)(l.spatialReference),g(o[1])])})},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,c.E)(a,1,3,t);let o=(a=(0,c.H)(a))[0];((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.X1)(a[0],n.spatialReference));const l=g(a[1]),w=(0,f.qr)(a[2]);if((0,c.k)(o)){const e=await o.sumLength(l,w,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null===o)return 0;if(!(0,c.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticLength",[o.asJsonGeometry(),(0,s.b)(o.spatialReference),l,w])})},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{a=(0,c.H)(a),(0,c.E)(a,2,3,t);let o=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(o=(0,u.yg)(a[0],n.spatialReference)),!(0,c.d)(o))throw new i.D$("InvalidParameter",t);let l=a[1];if(((0,h.cy)(a[1])||(0,c.g)(a[1]))&&(l=(0,u.yg)(a[1],n.spatialReference)),!(0,c.d)(l))throw new i.D$("InvalidParameter",t);return(0,d.C)("distance",[o.asJsonGeometry(),l.asJsonGeometry(),(0,s.b)(o.spatialReference),g(a[2])])})},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(!(0,c.L)(a))throw new i.D$("InvalidParameter",t);const o=r[1];if(!(0,c.L)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticDistance",[a.asJsonGeometry(),o.asJsonGeometry(),(0,s.b)(a.spatialReference),g(r[2]),(0,f.qr)(r[3])])})},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);if(a<=0)throw new i.D$("InvalidParameter",t);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,w.R)(await(0,d.C)("densify",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[2])]),r[0].spatialReference);default:return r[0]}})},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(o<=0)throw new i.D$("InvalidParameter",t);const l=g(r[2]),u=(0,f.qr)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,w.R)(await(0,d.C)("geodeticDensify",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,l,u]),a.spatialReference);default:return a}})},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,4,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);const o=(0,c.M)((0,c.N)(r[2],!0));return(0,w.R)(await(0,d.C)("generalize",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[3]),o]),r[0].spatialReference)})},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,3,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=(0,c.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);return 0===a?r[0].clone():(0,w.R)(await(0,d.C)("buffer",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference),a,g(r[2])]),r[0].spatialReference)})},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,4,t);const a=r[0];if(null==a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(0===o)return a.clone();const l=g(r[2]),u=(0,f.qr)(r[3]);return(0,w.R)(await(0,d.C)("geodesicBuffer",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,l,u]),a.spatialReference)})},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,6,t);const a=r[0];if(null===a)return null;if(!(0,c.d)(a)||"polygon"!==a.type&&"polyline"!==a.type)throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);const l=r[2],u=(0,f.ug)(r[3]),p=(0,c.v)((0,c.N)(r[4],10));if(isNaN(p))throw new i.D$("InvalidParameter",t);const y=(0,c.v)((0,c.N)(r[5],0));if(isNaN(y))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("offset",[a.asJsonGeometry(),(0,s.b)(a.spatialReference),o,g(l),u,p,y]),a.spatialReference)})},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,c.H)(r),(0,c.E)(r,2,3,t);const a=r[0];if(null===a)return null;if(!(0,c.d)(a))throw new i.D$("InvalidParameter",t);const o=(0,c.v)(r[1]);if(!Number.isFinite(o))throw new i.D$("InvalidParameter",t);const s=r[2];if(null!=s&&!(0,c.L)(s))throw new i.D$("InvalidParameter",t);const l=s?.asJsonLikeGeometry();return(0,w.R)(await(0,d.C)("rotate",[a.asJsonGeometry(),o,l?.x,l?.y]),a.spatialReference)})},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if(a=(0,c.H)(a),(0,c.E)(a,1,2,t),null===a[0])return null;const o=(0,f.Hz)(a[1]);let s=a[0];if(((0,h.cy)(a[0])||(0,c.g)(a[0]))&&(s="geometric"===o?(0,u.yg)(a[0],n.spatialReference):(0,u.zt)(a[0],n.spatialReference),null===s))return null;if(!(0,c.d)(s))throw new i.D$("InvalidParameter",t);return(0,w.p)("point","geometric"===o?await(0,d.C)("centroid",[s.asJsonGeometry()]):await(0,d.C)("labelPoint",[s.asJsonGeometry()]),s.spatialReference)})},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);const a=r[0].spatialReference;return(await(0,d.C)("multiPartToSinglePart",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])).map(e=>(0,w.R)(e,a)).filter(e=>null!=e)})},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,t)=>{(0,c.E)(t,1,1,n);let r=(t=(0,c.H)(t))[0];return((0,h.cy)(t[0])||(0,c.g)(t[0]))&&(r=(0,u.X1)(t[0],e.spatialReference)),!!(0,c.d)(r)&&await(0,d.C)("isSelfIntersecting",[r.asJsonGeometry(),(0,s.b)(r.spatialReference)])})},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return!0;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,d.C)("isSimple",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)])})},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("simplify",[r[0].asJsonGeometry(),(0,s.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,1,1,t),null===r[0])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,w.R)(await(0,d.C)("convexHull",[r[0].asJsonGeometry()]),r[0].spatialReference)})},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,async(e,o,s)=>{(0,c.E)(s,0,2,t);let u=(0,c.N)(s[1],""),f=!0===u;if(u=!0===u||!1===u?"":(0,c.w)(u),0===s.length||s[0]instanceof r.A){const e=(0,l.RI)(n,s.length>0?s[0]:null),t=await m(e,u,f);return null!=t?(0,a.Tg)(JSON.parse(JSON.stringify(t))):null}let d=null;if((0,c.k)(s[0])&&(d=s[0]),d){if(f=!1,u)return null;await d.load();const e=await d.getOwningSystemUrl();if(!e){if(!u){const e=await d.getIdentityUser();return null!=e?(0,a.Tg)({username:e}):null}return null}const t=(0,l.RI)(n,new r.A(e)),o=await m(t,u,f);return null!=o?(0,a.Tg)(JSON.parse(JSON.stringify(o))):null}throw new i.D$("InvalidParameter",t)})},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(!(0,c.L)(r[1]))throw new i.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestCoordinate",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,w.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,c.H)(r),(0,c.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,c.d)(r[0]))throw new i.D$("InvalidParameter",t);if(!(0,c.L)(r[1]))throw new i.D$("InvalidParameter",t);const a=await(0,d.C)("getNearestVertex",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,w.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})})}},71163(e,n,t){t.d(n,{C:()=>c});var r=t(29953);let a,o,i=!1;function s(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{o=e,i=!0,a=void 0})}async function c(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await s(),c(e,n))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5051],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r))throw new n.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!a.test(o))throw new n.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const s=parseInt(r,10),c=parseInt(o,10);return new i(s,c,t)}}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function s(){return i(0,1,0,0)}function c(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}r.d(t,{_Y:()=>l,fA:()=>i,vt:()=>n});const u=[0,0,0,0],f=o(),d=a(),m=s(),h=c(),M=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:M,UNIT_X:d,UNIT_Y:m,UNIT_Z:h,ZEROS:u,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:function(e,t,r,n){return[e,t,r,n]},fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitW:l,unitX:a,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,u,"v7",0,M])},78955(e,t,r){r.d(t,{Bw:()=>p,C:()=>i,Cc:()=>C,LI:()=>d,Om:()=>g,S8:()=>b,T9:()=>f,WQ:()=>a,Z0:()=>I,aI:()=>w,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>u,m3:()=>y,t2:()=>S});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function a(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function s(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function u(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function M(e,t){const r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function p(e){const t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function y(e){const t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function b(e,t){const r=t[0],n=t[1],i=t[2],o=t[3];let a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=r*a,e[1]=n*a,e[2]=i*a,e[3]=o*a),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function C(e,t,r,n){const i=t[0],o=t[1],a=t[2],s=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=a+n*(r[2]-a),e[3]=s+n*(r[3]-s),e}function I(e,t,r){const n=t[0],i=t[1],o=t[2],a=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function w(e,t){const r=e[0],i=e[1],o=e[2],a=e[3],s=t[0],c=t[1],l=t[2],u=t[3],f=(0,n.FD)();return Math.abs(r-s)<=f*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-u)<=f*Math.max(1,Math.abs(a),Math.abs(u))}const _=s,k=c,v=l,x=h,T=M,A=p,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:x,distance:h,div:v,divide:l,dot:g,equals:w,exactEquals:S,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:p,lerp:C,max:f,min:u,mul:k,multiply:c,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){const r=n.Ov;let i,o,a,s,c,l;do{i=2*r()-1,o=2*r()-1,c=i*i+o*o}while(c>=1);do{a=2*r()-1,s=2*r()-1,l=a*a+s*s}while(l>=1);const u=Math.sqrt((1-c)/l);return e[0]=t*i,e[1]=t*o,e[2]=t*a*u,e[3]=t*s*u,e},round:d,scale:m,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:T,sqrLen:P,squaredDistance:M,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:_,subtract:s,transformMat4:I,transformQuat:function(e,t,r){const n=t[0],i=t[1],o=t[2],a=r[0],s=r[1],c=r[2],l=r[3],u=l*n+s*o-c*i,f=l*i+c*n-a*o,d=l*o+a*i-s*n,m=-a*n-s*i-c*o;return e[0]=u*l+m*-a+f*-c-d*-s,e[1]=f*l+m*-s+d*-a-u*-c,e[2]=d*l+m*-c+u*-s-f*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},73681(e,t,r){r.d(t,{n:()=>c});var n=r(49186),i=r(53966),o=r(46140),a=r(95466),s=r(55674);class c{static async from(e,t,r){const a=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),f={};if(t)for(const e in t)f[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)f.hasOwnProperty(t.name)||(f[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const m=await(0,s.xR)(e.expression,null,f);if(!m)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!a||!a.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:a});const M=new l(r,h);return new c(h,u,m,M)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new a.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new a.A(t)}}class l extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},55674(e,t,r){r.d(t,{Ad:()=>h,Gj:()=>y,QY:()=>m,lL:()=>b,xR:()=>M});var n=r(66131),i=r(19334),o=r(36983),a=r(49186),s=(r(44208),r(44729)),c=r(15032),l=r(95466),u=r(43668),f=r(98623);const d=["geometry","scale","timeProperties"];function m(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return p.create(e,t,null,["$feature","$view"])}function M(e,t,r){return p.create(e,t,r,["$feature","$view","$config"])}class p{static async create(e,t,r,n){const{arcade:i,Dictionary:o}=await(0,u.l)();let s;try{s=i.parseScript(e)}catch(t){throw new a.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const c=i.scriptUsesGeometryEngine(s);c&&await i.enableGeometrySupport(),await i.loadDependentModules(new Set,s,null,!1,c);const l={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},f=i.compileScript(s,l);let d=null;null!=r&&(d=new o(r),d.immutable=!0);const m=new o;return m.immutable=!1,m.setField("scale",0),new p(e,i,s,f,t,m,d,o)}constructor(e,t,r,n,i,o,a,s){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=a,this._dictionaryCtor=s,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null!=i?null!=r?n.lY.epochToArcadeDate(i,r):n.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=o?null!=r?n.lY.epochToArcadeDate(o,r):n.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const n=t??new l.A(b(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){const e=this._boundTarget.geometry;if(null==e)return null;if("fromJSON"in e)return(0,i.e)(e);if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");return(0,o.R)(e,this._boundSchema.spatialReference)}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===f.L}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return c.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??"system");default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function b(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},28076(e,t,r){var n=r(13337);const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,i])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>w,DW:()=>g,FH:()=>T,FM:()=>s,Kn:()=>y,Kq:()=>$,MM:()=>f,Nl:()=>_,O2:()=>k,YC:()=>P,YF:()=>v,_1:()=>I,_d:()=>b,_h:()=>a,bs:()=>A,e6:()=>l,gQ:()=>o,jn:()=>m,lW:()=>u,ll:()=>D,mA:()=>d,oI:()=>N,pM:()=>C,pV:()=>p,pk:()=>F,rB:()=>G,xo:()=>S,yX:()=>j,zb:()=>x,zr:()=>h});var n=r(28076);function i(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){const r=[];let n=0,o=-1;do{if(o=e.indexOf("[",n),o>=n){if(o>n){const t=e.slice(n,o);r.push([t,null,i(t)])}if(n=o+1,o=e.indexOf("]",n),o>=n){if(o>n){const i=t[e.slice(n,o)];i&&r.push([null,i,!1])}n=o+1}}}while(-1!==o);if(n<e.length){const t=e.slice(n);r.push([t,null,i(t)])}return r}function a(e,t,r){let n="",i=null;for(const r of t){const[t,o,a]=r;if(null!=t&&""!==t)a?i=t:(null!=i&&(n+=i,i=null),n+=t);else{const t=e.readAttribute(o);null!=t&&""!==t&&(null!==i&&(n+=i,i=null),n+=t)}}return c(n,r)}function s(e,t,r,n){let i="",o=null;for(const n of t){const[t,a,s]=n;if(null!=t&&""!==t)s?o=t:(null!=o&&(i+=o,o=null),i+=t);else{let t=a;null!=r&&(t=E(a,r));const n=e.attributes[t];null!=n&&""!==n&&(null!=o&&(i+=o,o=null),i+=n)}}return c(i,n)}function c(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function l(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function u(e){return e.data?.symbol??null}function f(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function d(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function m(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const M=(e,t=0)=>null==e||isNaN(e)?t:e;function p(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function y(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function b(e){let t="normal",r="normal";if(e){const n=e.toLowerCase();n.includes("italic")?t="italic":n.includes("oblique")&&(t="oblique"),n.includes("bold")?r="bold":n.includes("light")&&(r="lighter")}return{style:t,weight:r}}function g(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function C(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=C(t);if(null!=e)return e}break;case"CIMTextSymbol":return C(e.symbol);case"CIMSolidFill":return e.color}return null}function I(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const t=e.symbolLayers;if(t)for(const e of t){const t=I(e);if(null!=t)return t}break}case"CIMTextSymbol":return I(e.symbol);case"CIMSolidStroke":return e.color}}function S(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(const t of e.symbolLayers){const e=S(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return S(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function w(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function _(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function k(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function v(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function x(e,t,r,n,i,o,a=!0){const{infos:s}=o;let c=1,l=0,u=0,f=0,d=1;for(const{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:n,size:i,frameHeight:o,rotateClockWise:m,scaleSymbolsProportionally:h}of s)d=e?1:c,u=O(t,r,l,d,u),f=R(t,r,l,d,f),o&&(h||a)&&(c*=i/o),l=z(n,m,l);const m=O(n,i,l,d,u),h=R(n,i,l,d,f);return{size:e*c,rotation:z(t,r,l),offsetX:m,offsetY:h}}function T(e){return e?.dashTemplate&&(e.dashTemplate=function(e){return"string"==typeof e?function(e){return e.split(" ").map(e=>Number(e))}(e):e}(e.dashTemplate)),e}function A(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{const t=e.symbolLayers;if(!t)return"Normal";for(const e of t)if("CIMVectorMarker"===e.type)return A(e)}break;case"CIMVectorMarker":{const t=e.markerGraphics;if(!t)return"Normal";for(const e of t)if(e.symbol)return A(e.symbol)}}return"Normal"}function P(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(const r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{const e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){const e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{const e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function E(e,t){if(null!==t){const r=t.get(e);return r?r.name:e}return e}function F(e){return e.map(e=>({...e,propertyName:v(e.propertyName)}))}function G(e){const t={};for(const r in e){const n=e[r];t[v(r)]=n}return t}function D(e){if(!e)return 0;let t=0;for(const r of e)t+=L(r);return t}function L(e){if(!e)return 0;if($(e))return e.inflateSize??256;switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(M(e.offsetX)),Math.abs(M(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function R(e,t,r,n,i){const o=r*Math.PI/180;if(o){const r=Math.cos(o);return(Math.sin(o)*e+r*t)*n+i}return t*n+i}function O(e,t,r,n,i){const o=r*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*n+i:e*n+i}function z(e,t,r){return t?r-e:r+e}function j(e,t){return Math.max(Math.min((e??t)/100,1),0)}function $(e){return e.type.startsWith("Private")}function N(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,M,"UE",0,e=>e.includes("data:image/svg+xml")])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224,7843,8955],{20774(e,t,n){n.d(t,{a:()=>k});var a=n(77843),s=n(31257);const o=(0,a.aK)((e,t)=>{t.onConnected(()=>{m(e)}),t.onDisconnected(()=>{!function(e){if(!e)return;if(p.delete(e),document.removeEventListener(i,u.get(e)),document.removeEventListener(c,b.get(e)),u.delete(e),b.delete(e),!e.labelEl)return;const t=d.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(l,h.get(e.labelEl)),h.delete(e.labelEl)),d.set(e.labelEl,t.filter(t=>t!==e).sort(g)),e.labelEl=void 0}(e)})}),l="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",r="calcite-label",d=new WeakMap,h=new WeakMap,u=new WeakMap,b=new WeakMap,p=new Set;function m(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,s.t)(e,{selector:`${r}[for="${t}"]`});if(n)return n;const a=(0,s.c)(e,r);return!a||function(e,t){let n;const a="custom-element-ancestor-check",s=a=>{a.stopImmediatePropagation();const s=a.composedPath();n=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(a,s,{once:!0}),t.dispatchEvent(new CustomEvent(a,{composed:!0,bubbles:!0})),e.removeEventListener(a,s),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(t&&h.has(t)&&t===e.labelEl||!t&&p.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const a=d.get(t)||[];a.push(e),d.set(t,a.sort(g)),h.has(e.labelEl)||(h.set(e.labelEl,f),e.labelEl.addEventListener(l,f)),p.delete(e),document.removeEventListener(i,u.get(e)),b.set(e,n),document.addEventListener(c,n)}else p.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function g(e,t){return(0,s.u)(e.el,t.el)?-1:1}function f(e){const t=e.detail.sourceEvent.target,n=d.get(this),a=n.find(e=>e.el===t);if(a&&n.includes(a))return;const s=n[0];s.disabled||s.onLabelClick(e)}function v(){p.has(this)&&m(this)}function y(){p.add(this);const e=u.get(this)||v.bind(this);u.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),d.has(e))return;const t=e.for&&e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of p)if(e.el===t){m(e);break}})}n.d(t,["b",0,c,"l",0,i,"u",0,o])},68955(e,t,n){n.r(t),n.d(t,{Label:()=>r});var a=n(57805),s=n(58933),o=n(47061),l=n(90824),i=n(20774);const c=s.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends o.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,l.b)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=c}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(i.l))}willUpdate(e){e.has("for")&&(0,i.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(i.b))}labelClickHandler(e){"Range"===window.getSelection()?.type||e.defaultPrevented||this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return s.qy`<div class=${(0,o.CP)("container")}><slot></slot></div>`}}(0,a.c)("calcite-label",r)},77843(e,t,n){n.d(t,{Dk:()=>v,aK:()=>y,yr:()=>$,jH:()=>C,oW:()=>w});var a=n(90824),s=n(40523);var o=n(58933),l=n(39061),i=n(44613);const c=e=>{const t=(0,l.g)(e,"lang",globalThis.navigator?.language||u);return{lang:t,t9nLocale:f(t)}},r=async(e,t,n=e.localName.split("-").slice(1).join("-"))=>{const{lang:a,t9nLocale:s}=c(e),o=`${t}/${n}/t9n`;return{lang:a,t9nLocale:s,t9nStrings:null===n?{}:await p(s,o,"messages.")}},d="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".split(","),h=new Set(d),u="en",b={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},p=async(e,t,n="")=>{const a=`${t}/${n}`,s=`${a}${e}.json`;return m[s]??=g(e,a),await m[s]},m={},g=async(e,t)=>{const n=`${t}${e}.json`;try{const e=await fetch(n);if(e.ok)return await e.json()}catch(e){return(0,i.Rm)("error","intl",`An unknown error occurred while fetching localization strings at ${n}`,{detail:{error:e}}),{}}return e===u?{}:await g(u,t)},f=e=>{const[t,n]=e.split("-"),a=t.toLowerCase();let s=a;return n&&(s=`${a}-${n.toUpperCase()}`),s=b[s]??s,h.has(s)?s:n?f(a):u},v=e=>x(void 0,e),y=e=>t=>x(t,e);class k extends a.C{constructor(e,t){super(e);const n=this.exports;try{(0,s.s)(this.component);const e=t(this.component,this),a=this.exports!==n;if((0,s.i)(e)){a||this.setProvisionalExports(e);const t=e.then(e=>{this.exports=e,super.catchUpLifecycle()}).catch(e=>{this.P.reject(e)});this.onLoad(async()=>await t)}else a&&void 0===e||(this.exports=e),queueMicrotask(()=>super.catchUpLifecycle())}catch(e){this.P.reject(e)}}catchUpLifecycle(){}}const x=(E=k,(...e)=>{const t=(0,s.b)(),n=new E(...e),o=n.exports;(0,s.a)(t.at(-1));const l=n.component.manager;l.W(n,o),n.watchExports(l.W.bind(l,n)),(0,s.f)(n);const i=[n.component,...t].reverse();return(0,a.a)(i,e=>void 0===e?void 0:((e,{host:t,key:n,isReactive:a},o)=>{const l=t,i=l[n]!==e.exports,c=l[n]!==o,r=o!==e.exports;if(i&&!c&&r&&(l[n]=e.exports),t===e.component){if(a){const t=e.component.manager;c&&t.W(e,l[n]),e.onUpdate(a=>{if(a.has(n)){const a=l[n];a!==e.exports&&t.W(e,a)}})}e.O=a?void 0:n}const d=e.component.constructor.elementProperties.get(n)?.readOnly;e.watchExports(()=>{l[n]!==e.exports&&(d?(0,s.c)(()=>{l[n]=e.exports}):l[n]=e.exports)})})(n,e,o),o)});var E;const w=(e,t)=>new L(e,t);class L extends a.C{#e;#t;#n;constructor(e,t){super(),o.S$||(this.#t=e,this.#n=t,this.#e=new MutationObserver(n=>{n.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})}))}hostConnected(){this.#t.forEach(e=>{this.component.el.hasAttribute(e)&&this.#n.call(this.component,this.component.el.getAttribute(e),null,e)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}}const C=()=>v((e,t)=>{t.exports="ltr",t.onLifecycle(()=>{const n=()=>{const n=(0,l.g)(e.el,"dir","ltr");t.exports="rtl"===n?"rtl":"ltr"};return n(),(0,l.o)(e.el,["dir"],n)})}),$=e=>(t={})=>v((n,a)=>{const s=c(n.el),o={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},d=n;a.onLifecycle(()=>((e,t,n,a)=>{let s;const o=()=>r(e,t(),a).then(e=>{s?.lang===e.lang&&s.t9nLocale===e.t9nLocale&&s.t9nStrings===e.t9nStrings||n(e),s=e}).catch(e=>{(0,i.Rm)("error","intl","Error updating component locale state",{detail:{error:e}})});return queueMicrotask(o),(0,l.o)(e,["lang"],o)})(n.el,()=>e("./assets"),({t9nLocale:e,t9nStrings:t,lang:s})=>{const o={...t,_lang:s,_t9nLocale:e,_loading:!1};a.exports=o;const l=t.componentLabel;"string"==typeof l&&"label"in n&&null==n.label&&(n.label??=l),h(d.messageOverrides)},t.name));const h=e=>{const t=a.exports,n=t._original??t,s=z(n,e);e&&(s._original=n),a.exports=s};return"messageOverrides"in d&&a.onUpdate(e=>{e.has("messageOverrides")&&h(d.messageOverrides)}),t.blocking?(a.setProvisionalExports(o,!1),a.ready):o}),z=(e,t)=>{if(!t)return e;const n={...e};return Object.entries(t).forEach(([t,a])=>{void 0!==e[t]&&(n[t]="object"==typeof a?z(e[t],a):a??e[t])}),n}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224,7843,8955],{20774(e,t,n){n.d(t,{a:()=>k});var a=n(77843),s=n(31257);const o=(0,a.aK)((e,t)=>{t.onConnected(()=>{m(e)}),t.onDisconnected(()=>{!function(e){if(!e)return;if(p.delete(e),document.removeEventListener(i,u.get(e)),document.removeEventListener(c,b.get(e)),u.delete(e),b.delete(e),!e.labelEl)return;const t=d.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(l,h.get(e.labelEl)),h.delete(e.labelEl)),d.set(e.labelEl,t.filter(t=>t!==e).sort(g)),e.labelEl=void 0}(e)})}),l="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",r="calcite-label",d=new WeakMap,h=new WeakMap,u=new WeakMap,b=new WeakMap,p=new Set;function m(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,s.t)(e,{selector:`${r}[for="${t}"]`});if(n)return n;const a=(0,s.c)(e,r);return!a||function(e,t){let n;const a="custom-element-ancestor-check",s=a=>{a.stopImmediatePropagation();const s=a.composedPath();n=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(a,s,{once:!0}),t.dispatchEvent(new CustomEvent(a,{composed:!0,bubbles:!0})),e.removeEventListener(a,s),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(t&&h.has(t)&&t===e.labelEl||!t&&p.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const a=d.get(t)||[];a.push(e),d.set(t,a.sort(g)),h.has(e.labelEl)||(h.set(e.labelEl,f),e.labelEl.addEventListener(l,f)),p.delete(e),document.removeEventListener(i,u.get(e)),b.set(e,n),document.addEventListener(c,n)}else p.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function g(e,t){return(0,s.u)(e.el,t.el)?-1:1}function f(e){const t=e.detail.sourceEvent.target,n=d.get(this),a=n.find(e=>e.el===t);if(a&&n.includes(a))return;const s=n[0];s.disabled||s.onLabelClick(e)}function v(){p.has(this)&&m(this)}function y(){p.add(this);const e=u.get(this)||v.bind(this);u.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),d.has(e))return;const t=e.for&&e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of p)if(e.el===t){m(e);break}})}n.d(t,["b",0,c,"l",0,i,"u",0,o])},68955(e,t,n){n.r(t),n.d(t,{Label:()=>r});var a=n(57805),s=n(58933),o=n(42054),l=n(90824),i=n(20774);const c=s.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends o.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,l.b)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=c}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(i.l))}willUpdate(e){e.has("for")&&(0,i.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(i.b))}labelClickHandler(e){"Range"===window.getSelection()?.type||e.defaultPrevented||this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return s.qy`<div class=${(0,o.CP)("container")}><slot></slot></div>`}}(0,a.c)("calcite-label",r)},77843(e,t,n){n.d(t,{Dk:()=>v,aK:()=>y,yr:()=>$,jH:()=>C,oW:()=>w});var a=n(90824),s=n(40523);var o=n(58933),l=n(39061),i=n(44613);const c=e=>{const t=(0,l.g)(e,"lang",globalThis.navigator?.language||u);return{lang:t,t9nLocale:f(t)}},r=async(e,t,n=e.localName.split("-").slice(1).join("-"))=>{const{lang:a,t9nLocale:s}=c(e),o=`${t}/${n}/t9n`;return{lang:a,t9nLocale:s,t9nStrings:null===n?{}:await p(s,o,"messages.")}},d="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".split(","),h=new Set(d),u="en",b={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},p=async(e,t,n="")=>{const a=`${t}/${n}`,s=`${a}${e}.json`;return m[s]??=g(e,a),await m[s]},m={},g=async(e,t)=>{const n=`${t}${e}.json`;try{const e=await fetch(n);if(e.ok)return await e.json()}catch(e){return(0,i.Rm)("error","intl",`An unknown error occurred while fetching localization strings at ${n}`,{detail:{error:e}}),{}}return e===u?{}:await g(u,t)},f=e=>{const[t,n]=e.split("-"),a=t.toLowerCase();let s=a;return n&&(s=`${a}-${n.toUpperCase()}`),s=b[s]??s,h.has(s)?s:n?f(a):u},v=e=>x(void 0,e),y=e=>t=>x(t,e);class k extends a.C{constructor(e,t){super(e);const n=this.exports;try{(0,s.s)(this.component);const e=t(this.component,this),a=this.exports!==n;if((0,s.i)(e)){a||this.setProvisionalExports(e);const t=e.then(e=>{this.exports=e,super.catchUpLifecycle()}).catch(e=>{this.P.reject(e)});this.onLoad(async()=>await t)}else a&&void 0===e||(this.exports=e),queueMicrotask(()=>super.catchUpLifecycle())}catch(e){this.P.reject(e)}}catchUpLifecycle(){}}const x=(E=k,(...e)=>{const t=(0,s.b)(),n=new E(...e),o=n.exports;(0,s.a)(t.at(-1));const l=n.component.manager;l.W(n,o),n.watchExports(l.W.bind(l,n)),(0,s.f)(n);const i=[n.component,...t].reverse();return(0,a.a)(i,e=>void 0===e?void 0:((e,{host:t,key:n,isReactive:a},o)=>{const l=t,i=l[n]!==e.exports,c=l[n]!==o,r=o!==e.exports;if(i&&!c&&r&&(l[n]=e.exports),t===e.component){if(a){const t=e.component.manager;c&&t.W(e,l[n]),e.onUpdate(a=>{if(a.has(n)){const a=l[n];a!==e.exports&&t.W(e,a)}})}e.O=a?void 0:n}const d=e.component.constructor.elementProperties.get(n)?.readOnly;e.watchExports(()=>{l[n]!==e.exports&&(d?(0,s.c)(()=>{l[n]=e.exports}):l[n]=e.exports)})})(n,e,o),o)});var E;const w=(e,t)=>new L(e,t);class L extends a.C{#e;#t;#n;constructor(e,t){super(),o.S$||(this.#t=e,this.#n=t,this.#e=new MutationObserver(n=>{n.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})}))}hostConnected(){this.#t.forEach(e=>{this.component.el.hasAttribute(e)&&this.#n.call(this.component,this.component.el.getAttribute(e),null,e)}),this.#e.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#t})}hostDisconnected(){this.#e.disconnect()}}const C=()=>v((e,t)=>{t.exports="ltr",t.onLifecycle(()=>{const n=()=>{const n=(0,l.g)(e.el,"dir","ltr");t.exports="rtl"===n?"rtl":"ltr"};return n(),(0,l.o)(e.el,["dir"],n)})}),$=e=>(t={})=>v((n,a)=>{const s=c(n.el),o={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},d=n;a.onLifecycle(()=>((e,t,n,a)=>{let s;const o=()=>r(e,t(),a).then(e=>{s?.lang===e.lang&&s.t9nLocale===e.t9nLocale&&s.t9nStrings===e.t9nStrings||n(e),s=e}).catch(e=>{(0,i.Rm)("error","intl","Error updating component locale state",{detail:{error:e}})});return queueMicrotask(o),(0,l.o)(e,["lang"],o)})(n.el,()=>e("./assets"),({t9nLocale:e,t9nStrings:t,lang:s})=>{const o={...t,_lang:s,_t9nLocale:e,_loading:!1};a.exports=o;const l=t.componentLabel;"string"==typeof l&&"label"in n&&null==n.label&&(n.label??=l),h(d.messageOverrides)},t.name));const h=e=>{const t=a.exports,n=t._original??t,s=z(n,e);e&&(s._original=n),a.exports=s};return"messageOverrides"in d&&a.onUpdate(e=>{e.has("messageOverrides")&&h(d.messageOverrides)}),t.blocking?(a.setProvisionalExports(o,!1),a.ready):o}),z=(e,t)=>{if(!t)return e;const n={...e};return Object.entries(t).forEach(([t,a])=>{void 0!==e[t]&&(n[t]="object"==typeof a?z(e[t],a):a??e[t])}),n}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1474],{52106(e,t,r){r.d(t,{A:()=>C});var i,n,s=r(32198),o=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),y=r(24326),h=r(91429),m=r(12195),d=r(65864),f=r(50498),g=r(55156),v=r(60950),b=r(54339),x=r(94128),M=r(33910);const w=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{i=x.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(w);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],w)}};(0,s.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,d.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,h.MZ)({value:null})],C.prototype,"attributes",null),(0,s.Cg)([(0,h.MZ)({value:null,types:f.yR,json:{read:d.rS}})],C.prototype,"geometry",null),(0,s.Cg)([(0,h.MZ)()],C.prototype,"distance",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,s.Cg)([(0,h.MZ)({type:o.A,value:null})],C.prototype,"popupTemplate",null),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,h.MZ)({value:null,types:M.Es})],C.prototype,"symbol",null),(0,s.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=n=(0,s.Cg)([(0,h.$K)("esri.Graphic")],C)},19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),n=r(14112);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),n=r(14112),s=r(16930),o=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new s.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,o.fT)(e)?p("point",e,r):(0,o.Rg)(e)?p("polyline",e,r):(0,o.Bi)(e)?p("polygon",e,r):(0,o.U9)(e)?p("multipoint",e,r):(0,o.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let s=!1,o=!1;switch(e){case"point":if((0,n.e6)(t))return null;s=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;s=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,s,o,new l(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function s(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>o,IY:()=>s,Wq:()=>n,e6:()=>i})},69052(e,t,r){r.d(t,{hr:()=>n});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,n=0,s=!1){return(i-=n)<t?i+=o(e,t-i):i>r&&(i-=o(e,i-r)),s&&i===r&&(i=t),i+n}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360));r.d(t,["ie",0,l,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>n});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function n(e){return new i(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>c,el:()=>l});var i=r(69052),n=(r(49186),r(17676)),s=(r(5443),r(39829),r(82799),r(16930)),o=r(93146),a=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let i=null;for(const t of e)i??=t?.spatialReference;if(!i)return e;const s=(0,a.Vp)(i);if(!s)return e;const[o,l]=s.valid;let c=!1;for(const t of e){if(!t)continue;if("point"===t.type){c||=t.x>=l,c||=t.x<=o;continue}const{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=l,c||=e.xmin<=o,c||=e.xmax>=l,c||=e.xmax<=o}if(!c)return e;const[{foldInto360Range:y},h]=await(0,n.qr)(Promise.all([u.getImportPromise(),p.getImportPromise()]),r),m=h.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=h.fromGeometry(e),r=h.toGeometry(y(t,m),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const u=(0,o.z)(()=>r.e(4144).then(r.bind(r,4144))),p=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function c(e,t,r){const i=(0,a.Vp)(r);if(null==i)return e;const[n,s]=i.valid,o=2*s;let l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<n&&(l=-Math.ceil(Math.abs(t-n)/o)),e>s?u=Math.ceil(Math.abs(e-s)/o):e<n&&(u=-Math.ceil(Math.abs(e-n)/o));let p=e+(l-u)*o;const c=p-t;return c>s?p-=o:c<n&&(p+=o),p}function y(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new i.hr(r,n)}const h=y(s.A.WGS84);y(s.A.WebMercator),r.d(t,["Y_",0,h])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>l});var i=r(82799),n=r(16930),s=r(60408),o=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,o.aO)(e)){const[r,i]=e.c;r[0]+=t,i[0]+=t;continue}if((0,o.FG)(e)){const[r,i]=e.a;r[0]+=t,i[0]+=t;continue}if((0,o.n1)(e)){const[r,i,n]=e.b;r[0]+=t,i[0]+=t,n[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},7656(e,t,r){r.r(t),r.d(t,{default:()=>U});var i=r(32198),n=r(11254),s=r(7762),o=r(49186),a=r(81583),l=r(34727),u=r(25728),p=r(17676),c=r(91429),y=r(56507),h=r(35666),m=r(5443),d=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),x=r(18768),M=r(63074),w=r(69208),S=r(34287),C=r(8303),I=r(54310),A=r(25036),T=r(91921),Z=r(82935),O=r(10873),_=r(69622),N=r(39516);function P(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var L=r(63389);const R={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let j=class extends _.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=P(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,L.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(R[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=P(this.floors,t),i=(0,N.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,d.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"dynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"floors",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"layer",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layers",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layerDefs",null),(0,i.Cg)([(0,c.MZ)({type:Number})],j.prototype,"scale",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"version",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"visibleSublayers",null),j=(0,i.Cg)([(0,c.$K)("esri.layers.support.ExportImageParameters")],j);var F=r(33446),G=r(15775),J=r(91908),E=r(88625),z=r(79677),k=r(56400),D=r(36005),q=r(43937);let V=class extends((0,M.dM)((0,Z.e)((0,A.j)((0,T.I)((0,b.V)((0,x.b)((0,S.q)((0,C.A)((0,u.M)((0,I.J)((0,v.p)((0,w.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new j({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new E.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const o=(0,h.aB)(i.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===o){const e=this.createSublayersForOrigin("service").sublayers;s=(0,L.Zx)(n,e,2)}else if(o>3){const e=this.createSublayersForOrigin("portal-item");s=(0,L.Zx)(n,e.sublayers,(0,h.aB)(e.origin)),a=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:a};let p=s||this.hasVisibleLayersForOrigin(o);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,d.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),o=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},a=e?.spatialReference,u=(0,f.YX)(a);let p=this._exportImageParameters.scale/(0,d.X_)({extent:e,width:t});p=(0,l.Sp)(p,n)?n:p,s.dpi*=p;const c={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();c.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(c.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...o,...c}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.mn)(n,s,i)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:o}=r,a=i||s;return{fullExtent:a&&m.A.fromJSON(a),timeExtent:o&&z.A.fromJSON({start:o[0],end:o[1]})}}loadAll(){return(0,a.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,J.D)(this,e)}async _fetchImage(e,t,r,i,s){const a={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new o.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,n.A)(l,a);return{data:e,url:l}}catch(e){if((0,p.zf)(e))throw e;throw new o.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,c.MZ)((0,k.P6)("dateFieldsTimeReference"))],V.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"dpi",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageFormat",void 0),(0,i.Cg)([(0,D.w)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)((0,k.P6)("preferredTimeReference"))],V.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,c.MZ)({type:s.A.ofType(G.A),json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,q.K)("sublayers",{layers:{type:[G.A]},visibleLayers:{type:[y.jz]}})],V.prototype,"writeSublayers",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],V.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(O.OZ)],V.prototype,"url",void 0),V=(0,i.Cg)([(0,c.$K)("esri.layers.MapImageLayer")],V);const U=V},82935(e,t,r){var i=r(32198),n=r(91429),s=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),p=r(10184),c=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,y,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>n});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||o(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),y=r(65864),h=r(50498),m=r(20437),d=r(36005),f=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,c.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>p});var i=r(92602),n=r(70333),s=r(4718),o=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function p(e,t,r){const i={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[n]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?s:JSON.stringify(s);else i[n]=s}return i}async function c(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(9530)]).then(r.bind(r,50148));const l=await n.id.getCredential(e,s);return l?.token}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1474],{52106(e,t,r){r.d(t,{A:()=>C});var i,n,s=r(32198),o=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),y=r(24326),h=r(91429),m=r(12195),d=r(65864),f=r(50498),g=r(55156),v=r(60950),b=r(54339),x=r(94128),M=r(33910);const w=Symbol("meshGeometryHandles");function S(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let C=class extends((0,a.OU)(u.o)){static{i=x.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:S(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(w);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],w)}};(0,s.Cg)([(0,h.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,d.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],C.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,h.MZ)({value:null})],C.prototype,"attributes",null),(0,s.Cg)([(0,h.MZ)({value:null,types:f.yR,json:{read:d.rS}})],C.prototype,"geometry",null),(0,s.Cg)([(0,h.MZ)()],C.prototype,"distance",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean})],C.prototype,"isAggregate",void 0),(0,s.Cg)([(0,h.MZ)({clonable:!1})],C.prototype,"layer",void 0),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"origin",void 0),(0,s.Cg)([(0,h.MZ)({type:o.A,value:null})],C.prototype,"popupTemplate",null),(0,s.Cg)([(0,h.MZ)({clonable:"reference"})],C.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,h.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],C.prototype,"statisticsAggregatedIds",void 0),(0,s.Cg)([(0,h.MZ)({value:null,types:M.Es})],C.prototype,"symbol",null),(0,s.Cg)([(0,h.MZ)({clonable:!1,json:{read:!1,write:!1}})],C.prototype,"_version",void 0),(0,s.Cg)([(0,h.MZ)({type:Boolean,value:!0})],C.prototype,"visible",null),C=n=(0,s.Cg)([(0,h.$K)("esri.Graphic")],C)},19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),n=r(14112);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new s(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),n=r(14112),s=r(16930),o=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof s.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new s.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,o.fT)(e)?p("point",e,r):(0,o.Rg)(e)?p("polyline",e,r):(0,o.Bi)(e)?p("polygon",e,r):(0,o.U9)(e)?p("multipoint",e,r):(0,o.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let s=!1,o=!1;switch(e){case"point":if((0,n.e6)(t))return null;s=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;s=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;s=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,s,o,new l(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function s(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>o,IY:()=>s,Wq:()=>n,e6:()=>i})},69052(e,t,r){r.d(t,{hr:()=>n});var i=r(34727);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,i,n=0,s=!1){return(i-=n)<t?i+=o(e,t-i):i>r&&(i-=o(e,i-r)),s&&i===r&&(i=t),i+n}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new n(0,2*Math.PI),l=(new n(-Math.PI,Math.PI),new n(0,360));r.d(t,["ie",0,l,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>n});class i{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function n(e){return new i(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>c,el:()=>l});var i=r(69052),n=(r(49186),r(17676)),s=(r(5443),r(39829),r(82799),r(16930)),o=r(93146),a=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let i=null;for(const t of e)i??=t?.spatialReference;if(!i)return e;const s=(0,a.Vp)(i);if(!s)return e;const[o,l]=s.valid;let c=!1;for(const t of e){if(!t)continue;if("point"===t.type){c||=t.x>=l,c||=t.x<=o;continue}const{extent:e}=t;if(null==e){c=!0;break}c||=e.xmin>=l,c||=e.xmin<=o,c||=e.xmax>=l,c||=e.xmax<=o}if(!c)return e;const[{foldInto360Range:y},h]=await(0,n.qr)(Promise.all([u.getImportPromise(),p.getImportPromise()]),r),m=h.fromSpatialReference(i);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=h.fromGeometry(e),r=h.toGeometry(y(t,m),i);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const u=(0,o.z)(()=>r.e(4144).then(r.bind(r,4144))),p=(0,o.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function c(e,t,r){const i=(0,a.Vp)(r);if(null==i)return e;const[n,s]=i.valid,o=2*s;let l=0,u=0;t>s?l=Math.ceil(Math.abs(t-s)/o):t<n&&(l=-Math.ceil(Math.abs(t-n)/o)),e>s?u=Math.ceil(Math.abs(e-s)/o):e<n&&(u=-Math.ceil(Math.abs(e-n)/o));let p=e+(l-u)*o;const c=p-t;return c>s?p-=o:c<n&&(p+=o),p}function y(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,n]=t.valid;return new i.hr(r,n)}const h=y(s.A.WGS84);y(s.A.WebMercator),r.d(t,["Y_",0,h])},80754(e,t,r){r.d(t,{kS:()=>u,kd:()=>l});var i=r(82799),n=r(16930),s=r(60408),o=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,o.Ed)(e))for(const r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,o.aO)(e)){const[r,i]=e.c;r[0]+=t,i[0]+=t;continue}if((0,o.FG)(e)){const[r,i]=e.a;r[0]+=t,i[0]+=t;continue}if((0,o.n1)(e)){const[r,i,n]=e.b;r[0]+=t,i[0]+=t,n[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},7656(e,t,r){r.r(t),r.d(t,{default:()=>U});var i=r(32198),n=r(11254),s=r(7762),o=r(49186),a=r(81583),l=r(34727),u=r(25728),p=r(17676),c=r(91429),y=r(56507),h=r(35666),m=r(5443),d=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),x=r(18768),M=r(63074),w=r(69208),S=r(34287),C=r(8303),I=r(54310),A=r(25036),T=r(91921),Z=r(82935),O=r(10873),_=r(69622),N=r(39516);function P(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var L=r(63389);const R={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let j=class extends _.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=P(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,L.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(R[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=P(this.floors,t),i=(0,N.mA)(r,t.definitionExpression);return null!=i&&(e[t.id]=i),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,i=t=>{t.visible&&(0===r||(0,d.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(i):e.unshift(t))};t?.forEach(i);const n=this._get("visibleSublayers");return!n||n.length!==e.length||n.some((t,r)=>e[r]!==t)?e:n}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"dynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"floors",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"hasDynamicLayers",null),(0,i.Cg)([(0,c.MZ)()],j.prototype,"layer",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layers",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"layerDefs",null),(0,i.Cg)([(0,c.MZ)({type:Number})],j.prototype,"scale",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"version",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],j.prototype,"visibleSublayers",null),j=(0,i.Cg)([(0,c.$K)("esri.layers.support.ExportImageParameters")],j);var F=r(33446),G=r(15775),J=r(91908),E=r(88625),z=r(79677),k=r(56400),D=r(36005),q=r(43937);let V=class extends((0,M.dM)((0,Z.e)((0,A.j)((0,T.I)((0,b.V)((0,x.b)((0,S.q)((0,C.A)((0,u.M)((0,I.J)((0,v.p)((0,w.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new j({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new E.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,p.sg)(async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return n(this,t);case 1:return s(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(p.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,i){if(!this.loaded||!e)return;const n=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const o=(0,h.aB)(i.origin);let a;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===o){const e=this.createSublayersForOrigin("service").sublayers;s=(0,L.Zx)(n,e,2)}else if(o>3){const e=this.createSublayersForOrigin("portal-item");s=(0,L.Zx)(n,e.sublayers,(0,h.aB)(e.origin)),a=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...i,minimumWritableOrigin:a};let p=s||this.hasVisibleLayersForOrigin(o);n.forEach(e=>{const t=e.write({},u);l.push(t),p=p||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),p&&(t.visibleLayers=n.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=i?.floors??null,this._exportImageParameters.scale=i?.scale??(0,d.X_)({extent:e,width:t})*n;const s=this._exportImageParameters.toJSON(),o=!i?.rotation||this.version<10.3?{}:{rotation:-i.rotation},a=e?.spatialReference,u=(0,f.YX)(a);let p=this._exportImageParameters.scale/(0,d.X_)({extent:e,width:t});p=(0,l.Sp)(p,n)?n:p,s.dpi*=p;const c={};if(i?.timeExtent){const{start:e,end:t}=i.timeExtent.toJSON();c.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(c.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...o,...c}}async fetchImage(e,t,r,i){const{data:n}=await this._fetchImage("image",e,t,r,i);return n}async fetchImageBitmap(e,t,r,i){const{data:n,url:s}=await this._fetchImage("blob",e,t,r,i);return(0,F.mn)(n,s,i)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,n.A)(this.url,t),{extent:i,fullExtent:s,timeExtent:o}=r,a=i||s;return{fullExtent:a&&m.A.fromJSON(a),timeExtent:o&&z.A.fromJSON({start:o[0],end:o[1]})}}loadAll(){return(0,a.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,J.D)(this,e)}async _fetchImage(e,t,r,i,s){const a={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,i,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=a.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new o.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:a.query});try{const{data:e}=await(0,n.A)(l,a);return{data:e,url:l}}catch(e){if((0,p.zf)(e))throw e;throw new o.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,n.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,i.Cg)([(0,c.MZ)((0,k.P6)("dateFieldsTimeReference"))],V.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],V.prototype,"datesInUnknownTimezone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"dpi",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageFormat",void 0),(0,i.Cg)([(0,D.w)("imageFormat",["supportedImageFormatTypes"])],V.prototype,"readImageFormat",null),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],V.prototype,"imageMaxHeight",void 0),(0,i.Cg)([(0,c.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],V.prototype,"imageMaxWidth",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"imageTransparency",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],V.prototype,"isReference",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISMapServiceLayer"]})],V.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1,write:!1}})],V.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)((0,k.P6)("preferredTimeReference"))],V.prototype,"preferredTimeZone",void 0),(0,i.Cg)([(0,c.MZ)()],V.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,c.MZ)({type:s.A.ofType(G.A),json:{write:{ignoreOrigin:!0}}})],V.prototype,"sublayers",void 0),(0,i.Cg)([(0,q.K)("sublayers",{layers:{type:[G.A]},visibleLayers:{type:[y.jz]}})],V.prototype,"writeSublayers",null),(0,i.Cg)([(0,c.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],V.prototype,"listMode",void 0),(0,i.Cg)([(0,c.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],V.prototype,"type",void 0),(0,i.Cg)([(0,c.MZ)(O.OZ)],V.prototype,"url",void 0),V=(0,i.Cg)([(0,c.$K)("esri.layers.MapImageLayer")],V);const U=V},82935(e,t,r){var i=r(32198),n=r(91429),s=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),p=r(10184),c=r(36005);const y={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,y,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(y)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>h});var i=r(32198),n=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function y(e,t){return l.A.fromJSON({value:e,unit:t})}let h=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],h)},91908(e,t,r){r.d(t,{D:()=>s});var i=r(60694);const n=[];function s(e,t){if((0,i.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of n){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}n.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),n.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),n.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),n.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),n.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>n});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const r=t||o(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),y=r(65864),h=r(50498),m=r(20437),d=r(36005),f=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,c.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,d.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,f.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,d.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,f.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},2272(e,t,r){r.d(t,{Dl:()=>u,gf:()=>c,jV:()=>l,lF:()=>p});var i=r(92602),n=r(70333),s=r(4718),o=r(84952),a=r(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function p(e,t,r){const i={};for(const n in e){if("declaredClass"===n)continue;const s=e[n];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))i[n]=s.map(e=>p(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(r?.[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?s:JSON.stringify(s);else i[n]=s}return i}async function c(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.getApiKey)(e)??n.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!n.id&&i.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(8837)]).then(r.bind(r,50148));const l=await n.id.getCredential(e,s);return l?.token}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see 24c44541046576fee7e0.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4372],{57805(t,e,s){s.d(e,{b:()=>f}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(47061),n=s(58933);const r="calcite-mode-auto",o="calcite-mode-dark",h={autoMode:r,darkMode:o,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",screenReaderText:"screen-reader-text"};function a(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(o)||t.contains(r)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),n=t=>{h!==t&&i(t),h=t};let h=s();i(h),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>n(t.matches?"dark":"light")),new MutationObserver(()=>n(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const c=new Set,l={trace:0,debug:1,info:2,warn:4,error:8,off:10};function d(t,...e){(function(t){return"off"!==t&&l[t]>=l[f().logLevel]})(t)&&console[t]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let u;const p={debug:(t,...e)=>d("debug",t,...e),info:(t,...e)=>d("info",t,...e),warn:(t,...e)=>d("warn",t,...e),error:(t,...e)=>d("error",t,...e),trace:(t,...e)=>d("trace",t,...e),deprecated:function(t,{component:e,name:s,suggested:i,removalVersion:n}){const r=`${t}:${"component"===t?"":e}${s}`,o="future"===n?"a future version":`v${n}`;if(c.has(r))return;c.add(r);let h="";h="component"===t?`This component is deprecated and will be removed in ${o}.`:`The [${s}] ${t} is deprecated and will be removed in ${o}.`,i&&(u=new Intl.ListFormat("en",{style:"long",type:"disjunction"}),h+=` Use ${u.format([i].flat().map(t=>`"${t}"`))} instead.`),d("warn",`[${e.el.tagName.toLocaleLowerCase().slice(8)}] - ${h}`)}};let $;const _={focusTrapStack:[],logLevel:"info"};function f(){return $||($={..._,...globalThis.calciteConfig??{}}),$}const A="5.2.0-next.53";n.S$||("interactive"===document.readyState?a():document.addEventListener("DOMContentLoaded",a,{once:!0})),queueMicrotask(function(){const t=f();t&&t.version||(p.info(`Using Calcite Components ${A} [Date: 2026-08-20, Revision: 290ed5936]`),Object.defineProperty(t,"version",{value:A,writable:!1}),globalThis.calciteConfig=t)});const m=(0,i.le)({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.53/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),{customElement:g,getAssetPath:v,setAssetPath:y}=m;s.d(e,["C",0,h,"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,g,"g",0,v,"l",0,p,"s",0,y])},84210(t,e,s){s.d(e,{qu:()=>n});var i=s(57805);let n=!1;s.d(e,["Qu",0,t=>{n=!0,(0,i.s)(t)}])},16823(t,e,s){s(39043)},39043(t,e,s){s.d(e,{mN:()=>S,AH:()=>a,Ec:()=>b});const i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class h{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&o.set(e,t))}return t}toString(){return this.cssText}}const a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new h(s,t,r)},c=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),n=i.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,t.appendChild(e)}},l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,m=A.trustedTypes,g=m?m.emptyScript:"",v=A.reactiveElementPolyfillSupport,y=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),w={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(void 0!==t){const r=this.constructor;if(!1===i&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??b)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,v?.({ReactiveElement:S}),(A.reactiveElementVersions??=[]).push("2.1.2")},58887(t,e,s){var i=s(7261);const{I:n}=i.ge,r={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=r)=>t._$AH=e])},66567(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},7261(t,e,s){const i=globalThis,n=t=>t,r=i.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,l=`<${c}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,_=t=>$(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,E=/"/g,b=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),S=w(1),C=w(2),T=w(3),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),U=new WeakMap,x=d.createTreeWalker(d,129);function M(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const R=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=A;for(let e=0;e<s;e++){const s=t[e];let c,d,u=-1,p=0;for(;p<s.length&&(o.lastIndex=p,d=o.exec(s),null!==d);)p=o.lastIndex,o===A?"!--"===d[1]?o=m:void 0!==d[1]?o=g:void 0!==d[2]?(b.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=v):void 0!==d[3]&&(o=v):o===v?">"===d[0]?(o=n??A,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=void 0===d[3]?v:'"'===d[3]?E:y):o===E||o===y?o=v:o===m||o===g?o=A:(o=v,n=void 0);const $=o===v&&t[e+1].startsWith("/>")?" ":"";r+=o===A?s+l:u>=0?(i.push(c),s.slice(0,u)+h+s.slice(u)+a+$):s+a+(-2===u?e:$)}return[M(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const l=t.length-1,d=this.parts,[p,$]=R(t,e);if(this.el=N.createElement(p,s),x.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=x.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=$[o++],s=i.getAttribute(t).split(a),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?D:"?"===r[1]?j:"@"===r[1]?B:I}),i.removeAttribute(t)}else t.startsWith(a)&&(d.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),x.nextNode(),d.push({type:2,index:++n});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)d.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function H(t,e,s=t,i){if(e===O)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=H(t,n._$AS(t,e.values),n,i)),e}class k{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);x.currentNode=i;let n=x.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new L(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new W(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=x.nextNode(),r++)}return x.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),p(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(M(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new k(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=H(this,i[s+o],e,o),h===O&&(h=this._$AH[o]),r||=!p(h)||h!==this._$AH[o],h===P?t=P:t!==P&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class j extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class B extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??P)===O)return;const s=this._$AH,i=t===P&&s!==P||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==P&&(s===P||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const z={M:h,P:a,A:c,C:1,L:R,R:k,D:_,V:H,I:L,H:I,N:j,U:B,B:D,F:W},G=i.litHtmlPolyfillSupport;G?.(N,L),(i.litHtmlVersions??=[]).push("3.3.2"),s.d(e,["JW",0,C,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new L(e.insertBefore(u(),t),t,void 0,s??{})}return n._$AI(t),n},"c0",0,O,"ej",0,T,"ge",0,z,"qy",0,S,"s6",0,P])},66047(t,e,s){s(16823)},25856(t,e,s){s(16823)},10845(t,e,s){s.d(e,{H:()=>r});var i=s(7261),n=s(66567);const r=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return i.c0}})},98171(t,e,s){s.d(e,{V:()=>o});var i=s(7261),n=s(66567),r=s(58887);const o=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.PROPERTY&&t.type!==n.OA.ATTRIBUTE&&t.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,r.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,o=t.name;if(t.type===n.OA.PROPERTY){if(e===s[o])return i.c0}else if(t.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(o))return i.c0}else if(t.type===n.OA.ATTRIBUTE&&s.getAttribute(o)===e+"")return i.c0;return(0,r.mY)(t),e}})},83435(t,e,s){s.d(e,{_:()=>p,K:()=>f});var i=s(7261),n=s(58887),r=s(66567);const o=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),o(t,e);return!0},h=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},a=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function c(t){void 0!==this._$AN?(h(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)o(i[t],!1),h(i[t]);else null!=i&&(o(i,!1),h(i));else o(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=l,t._$AQ??=c)};class u extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),h(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new $;class ${}const _=new WeakMap,f=(0,r.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=_.get(e);void 0===s&&(s=new WeakMap,_.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?_.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},84(t,e,s){s.d(e,{W:()=>h});var i=s(7261),n=s(66567);const r="important",o=" !"+r,h=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(o);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?r:""):s[t]=i}}return i.c0}})},58933(t,e,s){s.d(e,{WF:()=>o,AH:()=>i.AH,qy:()=>n.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>n.s6,JW:()=>n.JW});var i=s(39043),n=s(7261);const r=globalThis;class o extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const h=r.litElementPolyfillSupport;h?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")}}]);
1
+ /*! For license information please see 87094044458b0ea5cb0f.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4372],{57805(t,e,s){s.d(e,{b:()=>f}),Object(function(){const t=new Error("Cannot find module '../cdn/main.css'");throw t.code="MODULE_NOT_FOUND",t}());var i=s(42054),n=s(58933);const r="calcite-mode-auto",o="calcite-mode-dark",h={autoMode:r,darkMode:o,lightMode:"calcite-mode-light",rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",screenReaderText:"screen-reader-text"};function a(){const{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,s=()=>t.contains(o)||t.contains(r)&&e?"dark":"light",i=t=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:t}})),n=t=>{h!==t&&i(t),h=t};let h=s();i(h),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t=>n(t.matches?"dark":"light")),new MutationObserver(()=>n(s())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}const c=new Set,l={trace:0,debug:1,info:2,warn:4,error:8,off:10};function d(t,...e){(function(t){return"off"!==t&&l[t]>=l[f().logLevel]})(t)&&console[t]("%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let u;const p={debug:(t,...e)=>d("debug",t,...e),info:(t,...e)=>d("info",t,...e),warn:(t,...e)=>d("warn",t,...e),error:(t,...e)=>d("error",t,...e),trace:(t,...e)=>d("trace",t,...e),deprecated:function(t,{component:e,name:s,suggested:i,removalVersion:n}){const r=`${t}:${"component"===t?"":e}${s}`,o="future"===n?"a future version":`v${n}`;if(c.has(r))return;c.add(r);let h="";h="component"===t?`This component is deprecated and will be removed in ${o}.`:`The [${s}] ${t} is deprecated and will be removed in ${o}.`,i&&(u=new Intl.ListFormat("en",{style:"long",type:"disjunction"}),h+=` Use ${u.format([i].flat().map(t=>`"${t}"`))} instead.`),d("warn",`[${e.el.tagName.toLocaleLowerCase().slice(8)}] - ${h}`)}};let $;const _={focusTrapStack:[],logLevel:"info"};function f(){return $||($={..._,...globalThis.calciteConfig??{}}),$}const A="5.2.0-next.53";n.S$||("interactive"===document.readyState?a():document.addEventListener("DOMContentLoaded",a,{once:!0})),queueMicrotask(function(){const t=f();t&&t.version||(p.info(`Using Calcite Components ${A} [Date: 2026-08-20, Revision: 290ed5936]`),Object.defineProperty(t,"version",{value:A,writable:!1}),globalThis.calciteConfig=t)});const m=(0,i.le)({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.53/dist/cdn/",hydratedAttribute:"calcite-hydrated"}),{customElement:g,getAssetPath:v,setAssetPath:y}=m;s.d(e,["C",0,h,"D",0,{filter:250,nextTick:0,resize:150,reposition:100},"c",0,g,"g",0,v,"l",0,p,"s",0,y])},84210(t,e,s){s.d(e,{qu:()=>n});var i=s(57805);let n=!1;s.d(e,["Qu",0,t=>{n=!0,(0,i.s)(t)}])},16823(t,e,s){s(39043)},39043(t,e,s){s.d(e,{mN:()=>S,AH:()=>a,Ec:()=>b});const i=globalThis,n=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;class h{constructor(t,e,s){if(this._$cssResult$=!0,s!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=o.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&o.set(e,t))}return t}toString(){return this.cssText}}const a=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1],t[0]);return new h(s,t,r)},c=(t,e)=>{if(n)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of e){const e=document.createElement("style"),n=i.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=s.cssText,t.appendChild(e)}},l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new h("string"==typeof t?t:t+"",void 0,r))(e)})(t):t,{is:d,defineProperty:u,getOwnPropertyDescriptor:p,getOwnPropertyNames:$,getOwnPropertySymbols:_,getPrototypeOf:f}=Object,A=globalThis,m=A.trustedTypes,g=m?m.emptyScript:"",v=A.reactiveElementPolyfillSupport,y=(t,e)=>t,E={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},b=(t,e)=>!d(t,e),w={attribute:!0,type:String,converter:E,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),A.litPropertyMetadata??=new WeakMap;class S extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&u(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);n?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(y("elementProperties")))return;const t=f(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(y("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(y("properties"))){const t=this.properties,e=[...$(t),..._(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return c(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const n=(void 0!==s.converter?.toAttribute?s.converter:E).toAttribute(e,s.type);this._$Em=t,null==n?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:E;this._$Em=i;const r=n.fromAttribute(e,t.type);this[i]=r??this._$Ej?.get(i)??r,this._$Em=null}}requestUpdate(t,e,s,i=!1,n){if(void 0!==t){const r=this.constructor;if(!1===i&&(n=this[t]),s??=r.getPropertyOptions(t),!((s.hasChanged??b)(n,e)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:n},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[y("elementProperties")]=new Map,S[y("finalized")]=new Map,v?.({ReactiveElement:S}),(A.reactiveElementVersions??=[]).push("2.1.2")},58887(t,e,s){var i=s(7261);const{I:n}=i.ge,r={};s.d(e,["Rt",0,t=>void 0===t.strings,"mY",0,(t,e=r)=>t._$AH=e])},66567(t,e,s){s.d(e,{WL:()=>i});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}s.d(e,["OA",0,{ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},"u$",0,t=>(...e)=>({_$litDirective$:t,values:e})])},7261(t,e,s){const i=globalThis,n=t=>t,r=i.trustedTypes,o=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,c="?"+a,l=`<${c}>`,d=document,u=()=>d.createComment(""),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,$=Array.isArray,_=t=>$(t)||"function"==typeof t?.[Symbol.iterator],f="[ \t\n\f\r]",A=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,g=/>/g,v=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),y=/'/g,E=/"/g,b=/^(?:script|style|textarea|title)$/i,w=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),S=w(1),C=w(2),T=w(3),O=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),U=new WeakMap,x=d.createTreeWalker(d,129);function M(t,e){if(!$(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(e):e}const R=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":3===e?"<math>":"",o=A;for(let e=0;e<s;e++){const s=t[e];let c,d,u=-1,p=0;for(;p<s.length&&(o.lastIndex=p,d=o.exec(s),null!==d);)p=o.lastIndex,o===A?"!--"===d[1]?o=m:void 0!==d[1]?o=g:void 0!==d[2]?(b.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=v):void 0!==d[3]&&(o=v):o===v?">"===d[0]?(o=n??A,u=-1):void 0===d[1]?u=-2:(u=o.lastIndex-d[2].length,c=d[1],o=void 0===d[3]?v:'"'===d[3]?E:y):o===E||o===y?o=v:o===m||o===g?o=A:(o=v,n=void 0);const $=o===v&&t[e+1].startsWith("/>")?" ":"";r+=o===A?s+l:u>=0?(i.push(c),s.slice(0,u)+h+s.slice(u)+a+$):s+a+(-2===u?e:$)}return[M(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,o=0;const l=t.length-1,d=this.parts,[p,$]=R(t,e);if(this.el=N.createElement(p,s),x.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=x.nextNode())&&d.length<l;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(h)){const e=$[o++],s=i.getAttribute(t).split(a),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:n,name:r[2],strings:s,ctor:"."===r[1]?D:"?"===r[1]?j:"@"===r[1]?B:I}),i.removeAttribute(t)}else t.startsWith(a)&&(d.push({type:6,index:n}),i.removeAttribute(t));if(b.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=r?r.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],u()),x.nextNode(),d.push({type:2,index:++n});i.append(t[e],u())}}}else if(8===i.nodeType)if(i.data===c)d.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)d.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,e){const s=d.createElement("template");return s.innerHTML=t,s}}function H(t,e,s=t,i){if(e===O)return e;let n=void 0!==i?s._$Co?.[i]:s._$Cl;const r=p(e)?void 0:e._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=n:s._$Cl=n),void 0!==n&&(e=H(t,n._$AS(t,e.values),n,i)),e}class k{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??d).importNode(e,!0);x.currentNode=i;let n=x.nextNode(),r=0,o=0,h=s[0];for(;void 0!==h;){if(r===h.index){let e;2===h.type?e=new L(n,n.nextSibling,this,t):1===h.type?e=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(e=new W(n,this,t)),this._$AV.push(e),h=s[++o]}r!==h?.index&&(n=x.nextNode(),r++)}return x.currentNode=d,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),p(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==O&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==P&&p(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(M(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new k(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=U.get(t.strings);return void 0===e&&U.set(t.strings,e=new N(t)),e}k(t){$(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new L(this.O(u()),this.O(u()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=n(t).nextSibling;n(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class I{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,e,0),r=!p(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const i=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=H(this,i[s+o],e,o),h===O&&(h=this._$AH[o]),r||=!p(h)||h!==this._$AH[o],h===P?t=P:t!==P&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!i&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class D extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}class j extends I{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==P)}}class B extends I{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??P)===O)return;const s=this._$AH,i=t===P&&s!==P||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==P&&(s===P||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class W{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const z={M:h,P:a,A:c,C:1,L:R,R:k,D:_,V:H,I:L,H:I,N:j,U:B,B:D,F:W},G=i.litHtmlPolyfillSupport;G?.(N,L),(i.litHtmlVersions??=[]).push("3.3.2"),s.d(e,["JW",0,C,"XX",0,(t,e,s)=>{const i=s?.renderBefore??e;let n=i._$litPart$;if(void 0===n){const t=s?.renderBefore??null;i._$litPart$=n=new L(e.insertBefore(u(),t),t,void 0,s??{})}return n._$AI(t),n},"c0",0,O,"ej",0,T,"ge",0,z,"qy",0,S,"s6",0,P])},66047(t,e,s){s(16823)},25856(t,e,s){s(16823)},10845(t,e,s){s.d(e,{H:()=>r});var i=s(7261),n=s(66567);const r=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(t=>""!==t)));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return i.c0}})},98171(t,e,s){s.d(e,{V:()=>o});var i=s(7261),n=s(66567),r=s(58887);const o=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.PROPERTY&&t.type!==n.OA.ATTRIBUTE&&t.type!==n.OA.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!(0,r.Rt)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===i.c0||e===i.s6)return e;const s=t.element,o=t.name;if(t.type===n.OA.PROPERTY){if(e===s[o])return i.c0}else if(t.type===n.OA.BOOLEAN_ATTRIBUTE){if(!!e===s.hasAttribute(o))return i.c0}else if(t.type===n.OA.ATTRIBUTE&&s.getAttribute(o)===e+"")return i.c0;return(0,r.mY)(t),e}})},83435(t,e,s){s.d(e,{_:()=>p,K:()=>f});var i=s(7261),n=s(58887),r=s(66567);const o=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),o(t,e);return!0},h=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},a=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),d(e)}};function c(t){void 0!==this._$AN?(h(this),this._$AM=t,a(this)):this._$AM=t}function l(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)o(i[t],!1),h(i[t]);else null!=i&&(o(i,!1),h(i));else o(this,t)}const d=t=>{t.type==r.OA.CHILD&&(t._$AP??=l,t._$AQ??=c)};class u extends r.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(o(this,t),h(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const p=()=>new $;class ${}const _=new WeakMap,f=(0,r.u$)(class extends u{render(t){return i.s6}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=_.get(e);void 0===s&&(s=new WeakMap,_.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?_.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},84(t,e,s){s.d(e,{W:()=>h});var i=s(7261),n=s(66567);const r="important",o=" !"+r,h=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(o);t.includes("-")||e?s.setProperty(t,e?i.slice(0,-11):i,e?r:""):s[t]=i}}return i.c0}})},58933(t,e,s){s.d(e,{WF:()=>o,AH:()=>i.AH,qy:()=>n.qy,S$:()=>!1,Ec:()=>i.Ec,s6:()=>n.s6,JW:()=>n.JW});var i=s(39043),n=s(7261);const r=globalThis;class o extends i.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}}o._$litElement$=!0,o.finalized=!0,r.litElementHydrateSupport?.({LitElement:o});const h=r.litElementPolyfillSupport;h?.({LitElement:o}),(r.litElementVersions??=[]).push("4.2.2")}}]);