@arcgis/core 4.34.0-next.62 → 4.34.0-next.64

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 (227) hide show
  1. package/AggregateGraphic.js +1 -1
  2. package/Graphic.js +1 -1
  3. package/TrackGraphic.js +1 -1
  4. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.js +1 -1
  5. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{5de7c2a80bd9c81cefe2.js → 070b29cba896f46537f9.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{8c0e11f781607239749d.js → 0a36df6fdab95785d1ce.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0b01c87db77246632ad9.js +1 -0
  10. package/assets/esri/core/workers/chunks/0b24a6c06d1becbb6815.js +1 -0
  11. package/assets/esri/core/workers/chunks/0cdf6b51f2a63f348530.js +1 -0
  12. package/assets/esri/core/workers/chunks/10ec10ca361842efce92.js +1 -0
  13. package/assets/esri/core/workers/chunks/{bdc18ef9cdc8242f014e.js → 1143313f2f6f34deaad7.js} +1 -1
  14. package/assets/esri/core/workers/chunks/2394ac65d64e50399d76.js +1 -0
  15. package/assets/esri/core/workers/chunks/{69fbe363bb130fdd8146.js → 3d6f07e04f77cc0a7506.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{db7678104b18534482e3.js → 426232091caf8608e5f1.js} +1 -1
  17. package/assets/esri/core/workers/chunks/47febd4de836a33b51b1.js +1 -0
  18. package/assets/esri/core/workers/chunks/487afbf352d12c745430.js +1 -0
  19. package/assets/esri/core/workers/chunks/{3fd09a7c05583a57a317.js → 5d12862042b6bf9f9d54.js} +1 -1
  20. package/assets/esri/core/workers/chunks/5d65987f2c1b5c56a799.js +1 -0
  21. package/assets/esri/core/workers/chunks/5de07f7a09eb9f3ab666.js +1 -0
  22. package/assets/esri/core/workers/chunks/{ba0c7339fa19cc7cbde7.js → 5e1d6704ee0aa41b1d06.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{4ac127cefa3aa5e93e78.js → 657b01a6df8dc46c5209.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{71b222089f5e9dcee474.js → 6a1b652ccbf58ac44658.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{4050ddb580d364d9e205.js → 6ab435423acb0ed0b1c7.js} +1 -1
  26. package/assets/esri/core/workers/chunks/7b7f5028a488bb9c10f4.js +1 -0
  27. package/assets/esri/core/workers/chunks/{d83bdc13c3cad3eee7be.js → 7c3a1958990de095d3a1.js} +1 -1
  28. package/assets/esri/core/workers/chunks/808cfed7022e3846d5b2.js +1 -0
  29. package/assets/esri/core/workers/chunks/{b68b54be3d67595a9446.js → 861a6d6fe7958df36aa1.js} +35 -34
  30. package/assets/esri/core/workers/chunks/8bd5a0ff7dcf1067bf53.js +1 -0
  31. package/assets/esri/core/workers/chunks/{f462a138912e5379b6a7.js → 904c116c6b093e0e970c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/99b20eef2893047fac10.js +1 -0
  33. package/assets/esri/core/workers/chunks/a16b471c3706ee37f9b6.js +1 -0
  34. package/assets/esri/core/workers/chunks/{bb2ab663e3e5597f2104.js → a1bd4eecca1e3272bffb.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{8005ae652361f506bc5f.js → a29fb90226bd08157bd1.js} +1 -1
  36. package/assets/esri/core/workers/chunks/a596d6ccb6103e594031.js +1 -0
  37. package/assets/esri/core/workers/chunks/a5e6359fadbd699b1c8e.js +1 -0
  38. package/assets/esri/core/workers/chunks/a7f3cdd9a249ef4572ce.js +1 -0
  39. package/assets/esri/core/workers/chunks/{d2bdd52d2291306a4e47.js → a80d769b0ed025f0df64.js} +1 -1
  40. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +1 -0
  41. package/assets/esri/core/workers/chunks/af83dddddbfe25194527.js +1 -0
  42. package/assets/esri/core/workers/chunks/{4d8d942fbd6750bb7567.js → b057e6d593c1607cae61.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{d707538b150d79050336.js → b1f1a26e7a2ef5b783ee.js} +1 -1
  44. package/assets/esri/core/workers/chunks/c337c1a2dbc452780dd7.js +1 -0
  45. package/assets/esri/core/workers/chunks/{a35a439f053d1fe0541b.js → c601bbdafdee5074b04f.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{d7ce68667bb355ef8e5d.js → c7a386ac90e58eb71935.js} +1 -1
  47. package/assets/esri/core/workers/chunks/c8694a27e2cf28b010e8.js +1 -0
  48. package/assets/esri/core/workers/chunks/cf69f6afeaf1229e032c.js +1 -0
  49. package/assets/esri/core/workers/chunks/d1e8220dcae1d01d3c35.js +1 -0
  50. package/assets/esri/core/workers/chunks/e12e8d69c05c182b6a69.js +1 -0
  51. package/assets/esri/core/workers/chunks/{220c8d6338f236298720.js → e6457ac25c0829ee039c.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{c77a97c723b8c17df186.js → e72aee3f857aa473822c.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{8374d87176486c1fc90e.js → eadac757f74470b89a36.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{7c23be93d394f1bee941.js → f6107f844f4feed42828.js} +1 -1
  55. package/assets/esri/core/workers/chunks/f76774781865cb1411b0.js +1 -0
  56. package/assets/esri/core/workers/chunks/fd04df45cdcc6ff52554.js +1 -0
  57. package/assets/esri/layers/support/rasterFormats/qb3-wasm.wasm +0 -0
  58. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  59. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  60. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  61. package/chunks/GaussianSplat.glsl.js +7 -0
  62. package/chunks/GaussianSplatComposition.glsl.js +7 -0
  63. package/chunks/GaussianSplatDepthComposition.glsl.js +11 -0
  64. package/chunks/RealisticTree.glsl.js +29 -28
  65. package/chunks/lyr3DMain.js +1 -1
  66. package/chunks/lyr3DWorker.js +1 -1
  67. package/chunks/qb3-wasm.js +5 -0
  68. package/chunks/vxlLayer.js +1 -1
  69. package/config.js +1 -1
  70. package/geometry/ellipsoidUtils.js +1 -1
  71. package/geometry/operators/geodeticUtilsOperator.d.ts +6 -0
  72. package/geometry/support/heightModelInfoUtils.js +1 -1
  73. package/graphic/AggregateGraphicOrigin.js +5 -0
  74. package/graphic/CSVGraphicOrigin.js +1 -1
  75. package/graphic/CatalogGraphicOrigin.js +1 -1
  76. package/graphic/FeatureGraphicOrigin.js +1 -1
  77. package/graphic/GeoJSONGraphicOrigin.js +1 -1
  78. package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
  79. package/graphic/OGCFeatureGraphicOrigin.js +1 -1
  80. package/graphic/OrientedImageryGraphicOrigin.js +1 -1
  81. package/graphic/ParquetGraphicOrigin.js +1 -1
  82. package/graphic/StreamGraphicOrigin.js +1 -1
  83. package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
  84. package/graphic/TrackGraphicOrigin.js +5 -0
  85. package/graphic/WFSGraphicOrigin.js +1 -1
  86. package/graphic/getPopupProvider.js +5 -0
  87. package/interfaces.d.ts +769 -30
  88. package/kernel.js +1 -1
  89. package/layers/GaussianSplatLayer.js +1 -1
  90. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  91. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  92. package/layers/VoxelWasmPerSceneView.js +1 -1
  93. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  94. package/layers/mixins/FeatureReductionLayer.js +1 -1
  95. package/layers/mixins/TrackableLayer.js +1 -1
  96. package/layers/support/GaussianSplatAtlasPageAllocator.js +5 -0
  97. package/layers/support/gaussianSplatUtils.js +5 -0
  98. package/layers/support/rasterDatasets/MRFRaster.js +1 -1
  99. package/layers/support/rasterFormats/Qb3.js +5 -0
  100. package/layers/support/rasterFormats/RasterCodec.js +1 -1
  101. package/layers/support/tiles3DUtils.js +5 -0
  102. package/package.json +1 -1
  103. package/rest/knowledgeGraph/GraphApplyEditsResult.js +1 -1
  104. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  105. package/rest/knowledgeGraphService.js +1 -1
  106. package/rest/lastMileDelivery/enums.js +5 -0
  107. package/rest/lastMileDelivery.d.ts +10 -0
  108. package/rest/lastMileDelivery.js +5 -0
  109. package/rest/route/utils.js +1 -1
  110. package/rest/support/JobInfo.js +1 -1
  111. package/rest/support/LastMileDeliveryParameters.d.ts +4 -0
  112. package/rest/support/LastMileDeliveryParameters.js +5 -0
  113. package/support/revision.js +1 -1
  114. package/symbols/patterns/StylePattern3D.js +1 -1
  115. package/symbols/patterns/styles.js +1 -1
  116. package/unionTypes.d.ts +3 -0
  117. package/views/2d/analysis/AnalysisView2D.js +5 -0
  118. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +4 -0
  119. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +5 -0
  120. package/views/2d/analysis/analysisViewModuleImportUtils.js +5 -0
  121. package/views/2d/engine/webgl/Painter.js +1 -1
  122. package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
  123. package/views/2d/engine/webgl/shaderGraph/techniques/TextureStatisticsTechnique.js +5 -0
  124. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsDiffShader.js +5 -0
  125. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsMinMaxSumShader.js +5 -0
  126. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsStdDevShader.js +5 -0
  127. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TextureStatisticsSumOfSquaredDiffShader.js +5 -0
  128. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
  129. package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
  130. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  131. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  132. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  133. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  134. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  135. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  136. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  137. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  138. package/views/3d/analysis/AnalysisView3D.js +1 -1
  139. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  140. package/views/3d/analysis/DimensionAnalysisView3D.js +1 -1
  141. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  142. package/views/3d/analysis/ElevationProfile/ElevationProfileHoveredPointsVisualization.js +1 -1
  143. package/views/3d/analysis/ElevationProfile/ElevationProfileLineVisualization.js +5 -0
  144. package/views/3d/analysis/ElevationProfile/ElevationProfileSceneLineComputation.js +1 -1
  145. package/views/3d/analysis/ElevationProfile/ElevationProfileVisualization.js +1 -1
  146. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  147. package/views/3d/analysis/LineOfSightAnalysisView3D.js +1 -1
  148. package/views/3d/analysis/SliceAnalysisView3D.js +1 -1
  149. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  150. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  151. package/views/3d/analysis/analysisViewModuleImportUtils.js +5 -0
  152. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  153. package/views/3d/environment/Precipitation.js +1 -1
  154. package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
  155. package/views/3d/layers/GraphicsView3D.js +1 -1
  156. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  157. package/views/3d/layers/{IntegratedMesh3DTilesViewPerformanceInfo.js → Lyr3DViewPerformanceInfo.js} +1 -1
  158. package/views/3d/layers/Lyr3DWasm.js +1 -1
  159. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  160. package/views/3d/layers/graphics/Labeler.js +1 -1
  161. package/views/3d/layers/support/LayerViewAnalysisViewManager.js +1 -1
  162. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  163. package/views/3d/support/GaussianSplatWorkerHandle.js +1 -1
  164. package/views/3d/support/QualitySettings.js +1 -1
  165. package/views/3d/support/pointsOfInterest/ContentGeometryUpdates.js +1 -1
  166. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  167. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  168. package/views/3d/webgl-engine/core/shaderLibrary/util/ComputeCovariance.glsl.js +40 -0
  169. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatUnpacking.glsl.js +59 -0
  170. package/views/3d/webgl-engine/core/shaderLibrary/util/QuaternionToRotationMatrix.glsl.js +23 -0
  171. package/views/3d/webgl-engine/effects/bloom/BloomRenderNode.js +1 -1
  172. package/views/3d/webgl-engine/effects/weather/SnowCover.glsl.js +4 -4
  173. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  174. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +5 -0
  175. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  176. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  177. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  178. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  179. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +5 -0
  180. package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +5 -0
  181. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechnique.js +5 -0
  182. package/views/3d/webgl-engine/shaders/GaussianSplatCompositionTechniqueConfiguration.js +5 -0
  183. package/views/3d/webgl-engine/shaders/GaussianSplatDepthComposition.glsl.js +5 -0
  184. package/views/3d/webgl-engine/shaders/GaussianSplatDepthCompositionTechnique.js +5 -0
  185. package/views/3d/webgl-engine/shaders/GaussianSplatDepthTechnique.js +5 -0
  186. package/views/3d/webgl-engine/shaders/GaussianSplatTechnique.js +5 -0
  187. package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +5 -0
  188. package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
  189. package/views/SceneView.js +1 -1
  190. package/views/VideoView.js +1 -1
  191. package/views/View2D.js +1 -1
  192. package/views/analysis/AnalysisView.js +5 -0
  193. package/views/analysis/ElevationProfile/ElevationProfileResult.js +1 -1
  194. package/views/layers/FeatureLayerView.js +1 -1
  195. package/views/support/AnalysisViewManager.js +1 -1
  196. package/views/webgl/FramebufferObject.js +1 -1
  197. package/widgets/Locate/LocateViewModel.js +1 -1
  198. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  199. package/assets/esri/core/workers/chunks/08d420cd7cfa19a10fa4.js +0 -1
  200. package/assets/esri/core/workers/chunks/17abab49db1813d3e192.js +0 -1
  201. package/assets/esri/core/workers/chunks/182383fd00008606bfaa.js +0 -1
  202. package/assets/esri/core/workers/chunks/188feb2bcbf8e48e3163.js +0 -1
  203. package/assets/esri/core/workers/chunks/3124a8516e815efec973.js +0 -1
  204. package/assets/esri/core/workers/chunks/3461701a15be46603c56.js +0 -1
  205. package/assets/esri/core/workers/chunks/36acf191a2d48560c796.js +0 -1
  206. package/assets/esri/core/workers/chunks/40e1fbfbf3f3979b3713.js +0 -1
  207. package/assets/esri/core/workers/chunks/4b1daffa97fd90a554a0.js +0 -1
  208. package/assets/esri/core/workers/chunks/4b68783e8d1415d0a171.js +0 -1
  209. package/assets/esri/core/workers/chunks/5915f5ba9064097aee79.js +0 -1
  210. package/assets/esri/core/workers/chunks/5ed7e139c72cd2b3ddba.js +0 -1
  211. package/assets/esri/core/workers/chunks/702d2c668dedf83421ca.js +0 -1
  212. package/assets/esri/core/workers/chunks/7b2ec80dca0fdb0442cf.js +0 -1
  213. package/assets/esri/core/workers/chunks/7b9178c3826f9ef52a00.js +0 -1
  214. package/assets/esri/core/workers/chunks/9a20390602126995f831.js +0 -1
  215. package/assets/esri/core/workers/chunks/a2150baf0661e2f28011.js +0 -1
  216. package/assets/esri/core/workers/chunks/a532614aa65fb52dee7b.js +0 -1
  217. package/assets/esri/core/workers/chunks/abededd48e0ea6cfec01.js +0 -1
  218. package/assets/esri/core/workers/chunks/ae1cb4c65d72217ae4d4.js +0 -1
  219. package/assets/esri/core/workers/chunks/c1c6202f7bef24b5db26.js +0 -1
  220. package/assets/esri/core/workers/chunks/c75b0243e5bb84738419.js +0 -1
  221. package/assets/esri/core/workers/chunks/d47c3431c501d77b1779.js +0 -1
  222. package/assets/esri/core/workers/chunks/f6d91256c4e5f8a0d5c0.js +0 -1
  223. package/assets/esri/core/workers/chunks/f711aeba1a2c184ddb43.js +0 -1
  224. package/graphic/isPopupProviderGraphicOrigin.js +0 -5
  225. package/views/2d/analysisViewModuleImportUtils.js +0 -5
  226. package/views/3d/analysis/ElevationProfile/ElevationProfileLinesVisualization.js +0 -5
  227. package/views/3d/analysisViewModuleImportUtils.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[624,7136],{10536:(e,t,r)=>{function s(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=s(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{z:()=>s})},17136:(e,t,r)=>{r.d(t,{O7:()=>I,el:()=>S});var s=r(92602),n=r(49186),i=r(53966),o=r(39829),a=r(82799),c=r(80754),u=r(21325),l=r(28735),h=r(78888),d=r(65864),f=r(2272),g=r(84952),p=r(92300);const y=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new n.A("internal:geometry",e)}const r=(0,c.r8)(e),s=[];for(const e of r){const r=[];s.push(r),r.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],c=Math.sqrt((o-n)*(o-n)+(a-i)*(a-i)),u=(a-i)/c,l=(o-n)/c,h=c/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=l*s+n,a=u*s+i;r.push([o,a])}const e=(c+Math.floor(h-1)*t)/2,s=l*e+n,o=u*e+i;r.push([s,o])}r.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:s,spatialReference:e.spatialReference}):new a.A({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,l.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function w(e,t,r){if(Array.isArray(e)){const s=e[0];if(s>t){const r=(0,c.kd)(s,t);e[0]=s+r*(-2*t)}else if(s<r){const t=(0,c.kd)(s,r);e[0]=s+t*(-2*r)}}else{const s=e.x;if(s>t){const r=(0,c.kd)(s,t);e=e.clone().offset(r*(-2*t),0)}else if(s<r){const t=(0,c.kd)(s,r);e=e.clone().offset(t*(-2*r),0)}}return e}function k(e,t){let r=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],i=t.geometries[s],o=(0,c.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const s=t[e][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=i.getPoint(e,r);i.setPoint(e,r,t.clone().offset(s,0))}return!0}})}if(n===r){if(m(e))for(const t of(0,c.r8)(i))e[n]=e[n].addRing(t);else if(_(e))for(const t of(0,c.r8)(i))e[n]=e[n].addPath(t)}else r=n,e[n]=i}return e}async function S(e,t,r){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,m,_,I,F,T,A,x,N=0;const q=[],R=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,m=(0,u.Vp)(i),_=i.isWebMercator,T=_?102100:4326,I=c.j7[T].maxX,F=c.j7[T].minX,A=c.j7[T].plus180Line,x=c.j7[T].minus180Line),m)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(w(t.clone(),I,F));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>w(e,I,F)),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,m);R.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,F)*(2*I);let s=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:i}=e;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(A)&&i!==I?(N=i>N?i:N,s=b(s,_),q.push(s),R.push("cut")):e.intersects(x)&&n!==F?(N=i*(2*I)>N?i*(2*I):N,s=b(s,_,360),q.push(s),R.push("cut")):R.push(s)}else R.push(t.clone());else R.push(t);else R.push(t);let v=(0,c.kd)(N,I),M=-90;const O=v,E=new a.A;for(;v>0;){const e=360*v-180;E.addPath([[e,M],[e,-1*M]]),M*=-1,v--}if(q.length>0&&O>0){const t=k(q,await async function(e,t,r,s){const n=(0,f.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(i),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,h.A)(n.path+"/cut",o),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(e=>{const t=(0,d.rS)(e);return t.spatialReference=i,t})}}(n,q,E,r)),s=[],i=[];for(let r=0;r<R.length;r++){const n=R[r];if("cut"!==n)i.push(n);else{const n=t.shift(),o=e[r];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),i.push("simplify")):i.push(_?(0,l.Gh)(n):n)}}if(!s.length)return i;const o=await async function(e,t,r){const s="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,i=(0,d.$B)(t[0]),o={...r,query:{...s.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,p.X)(t))}},{data:a}=await(0,h.A)(s.path+"/simplify",o);return(0,p.V)(a.geometries,i,n)}(n,s,r),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(_?(0,l.Gh)(o.shift()):o.shift())}return a}const C=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)C.push(t);else{const e=q.shift();C.push(!0===_?(0,l.Gh)(e):e)}}return C}function I(e,t,r){const s=(0,u.Vp)(r);if(null==s)return e;const[n,i]=s.valid,o=2*i;let a=0,c=0;t>i?a=Math.ceil(Math.abs(t-i)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o)),e>i?c=Math.ceil(Math.abs(e-i)/o):e<n&&(c=-Math.ceil(Math.abs(e-n)/o));let l=e+(a-c)*o;const h=l-t;return h>i?l-=o:h<n&&(l+=o),l}},27647:(e,t,r)=>{function s(e,t){return e?t?4:3:t?3:2}function n(e,t,r,n){if(!t?.lengths.length)return null;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const a=e.coords,c=[],u=r?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:l,coords:h}=t,d=s(r,n);let f=0;for(const e of l){const t=i(u,h,f,e,r,n);t&&c.push(t),f+=e*d}if(c.sort((e,t)=>{let s=e[2]-t[2];return 0===s&&r&&(s=e[4]-t[4]),s}),c.length){let e=6*c[0][2];a[0]=c[0][0]/e,a[1]=c[0][1]/e,r&&(e=6*c[0][4],a[2]=0!==e?c[0][3]/e:0),(a[0]<u[0]||a[0]>u[1]||a[1]<u[2]||a[1]>u[3]||r&&(a[2]<u[4]||a[2]>u[5]))&&(a.length=0)}if(!a.length){const e=t.lengths[0]?o(h,0,l[0],r,n):null;if(!e)return null;a[0]=e[0],a[1]=e[1],r&&e.length>2&&(a[2]=e[2])}return e}function i(e,t,r,n,i,o){const a=s(i,o);let c=r,u=r+a,l=0,h=0,d=0,f=0,g=0;for(let r=0,s=n-1;r<s;r++,c+=a,u+=a){const r=t[c],s=t[c+1],n=t[c+2],o=t[u],a=t[u+1],p=t[u+2];let y=r*a-o*s;f+=y,l+=(r+o)*y,h+=(s+a)*y,i&&(y=r*p-o*n,d+=(n+p)*y,g+=y),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),s<e[2]&&(e[2]=s),s>e[3]&&(e[3]=s),i&&(n<e[4]&&(e[4]=n),n>e[5]&&(e[5]=n))}if(f>0&&(f*=-1),g>0&&(g*=-1),!f)return null;const p=[l,h,.5*f];return i&&(p[3]=d,p[4]=.5*g),p}function o(e,t,r,n,i){const o=s(n,i);let h=t,d=t+o,f=0,g=0,p=0,y=0;for(let t=0,s=r-1;t<s;t++,h+=o,d+=o){const t=e[h],r=e[h+1],s=e[h+2],i=e[d],o=e[d+1],m=e[d+2],_=n?c(t,r,s,i,o,m):a(t,r,i,o);if(_)if(f+=_,n){const e=l(t,r,s,i,o,m);g+=_*e[0],p+=_*e[1],y+=_*e[2]}else{const e=u(t,r,i,o);g+=_*e[0],p+=_*e[1]}}return f>0?n?[g/f,p/f,y/f]:[g/f,p/f]:r>0?n?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function a(e,t,r,s){const n=r-e,i=s-t;return Math.sqrt(n*n+i*i)}function c(e,t,r,s,n,i){const o=s-e,a=n-t,c=i-r;return Math.sqrt(o*o+a*a+c*c)}function u(e,t,r,s){return[e+.5*(r-e),t+.5*(s-t)]}function l(e,t,r,s,n,i){return[e+.5*(s-e),t+.5*(n-t),r+.5*(i-r)]}r.d(t,{Q:()=>n})},30624:(e,t,r)=>{r.r(t),r.d(t,{createConnection:()=>I});var s=r(31635),n=r(78888),i=r(49186),o=r(53966),a=r(74887),c=r(84952),u=(r(44208),r(87811),r(40608)),l=r(16930),h=r(65864),d=r(10107),f=r(62815),g=r(65529);let p=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new i.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,s.Cg)([(0,d.MZ)({readOnly:!0})],p.prototype,"connectionError",null),p=(0,s.Cg)([(0,u.$)("esri.layers.support.StreamConnection")],p);let y=class extends p{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._config=e,this._featureZScaler=(0,f.N)(t,s,r),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,r=0){try{if(this.destroyed)return;const t=(0,c.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(s){const n=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(o.A.getLogger(this).error(new i.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(o.A.getLogger(this).error(new i.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${n}s`,s)),await(0,a.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void o.A.getLogger(this).error(new i.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,r)=>{const s=new WebSocket(e);s.onopen=()=>{if(s.onopen=null,this.destroyed)return s.onclose=null,void s.close();s.onclose=e=>this._onClose(e),s.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(s),t(s)},s.onclose=e=>{s.onopen=s.onclose=null,r(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const r=(0,a.Tw)(),s=t.onmessage,{filter:n,outFields:c,spatialReference:u}=this._config;return r.timeout(e),t.onmessage=e=>{let a=null;try{a=JSON.parse(e.data)}catch(e){}a&&"object"==typeof a||(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),r.reject(),this.destroy()),a.spatialReference?.wkid!==u?.wkid&&(o.A.getLogger(this).error(new i.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),r.reject(),this.destroy()),"json"!==a.format&&(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),r.reject(),this.destroy()),n&&a.filter!==n&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set filter, but server doesn't support it")),c&&a.outFields!==c&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=s;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],r.resolve()},t.send(JSON.stringify({filter:n,outFields:c,format:"json",spatialReference:{wkid:u.wkid}})),r.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),o.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&o.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,s.Cg)([(0,d.MZ)()],y.prototype,"connectionStatus",null),(0,s.Cg)([(0,d.MZ)()],y.prototype,"errorString",void 0),y=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.WebSocketConnection")],y);var m=r(80893),_=r(61956);const b={maxQueryDepth:5,maxRecordCountFactor:3};let w=class extends y{constructor(e){super({...b,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||o.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:r,outFields:s}=this._config;this.destroyed||this._setFilter(r,s)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},r=(0,n.A)(e.path,{query:t,responseType:"json"}),s=(await r).data;return this._serviceDefinition=s,s}_fetchWebSocketUrl(e,t){const r=e[0],{urls:s,token:n}=r,i=this._inferWebSocketBaseUrl(s);return(0,c.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return o.A.getLogger(this).error(new i.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const r=this._websocket;if(null==r||null==e&&null==t)return;const s=JSON.stringify({filter:this._serializeFilter(e,t)});let n=!1;const c=(0,a.Tw)();return r.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),c.reject(t.error)),this._setWebSocketJSONParseHandler(r),n=!0,c.resolve())},r.send(s),setTimeout(()=>{n||(this.destroyed||this._websocket!==r||o.A.getLogger(this).error(new i.A("geoevent-connection","Server timed out when setting filter")),c.reject())},1e4),c.promise}_serializeFilter(e,t){const r={};if(null==e&&null==t)return r;if(e?.geometry)try{const t=(0,h.rS)(e.geometry);if("extent"!==t.type)throw new i.A("geoevent-connection",`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(r.where=e.where),null!=t&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],s=this._relatedFeatures.get(r);if(!s)return o.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:n,geometry:a}=s;for(const t in n)e.attributes[t]=n[t];return a&&(e.geometry=a),e.geometry||e.centroid||o.A.getLogger(this).error(new i.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),s=this._queryArchive(t);await r;const n=await s;if(!n)return;for(const e of n.features)this.onFeature(this._enrich(e))}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([r.e(6131),r.e(8219),r.e(8948),r.e(3910),r.e(13),r.e(1214),r.e(9953),r.e(3926),r.e(3029),r.e(4111),r.e(4897),r.e(9784),r.e(812),r.e(655),r.e(6719)]).then(r.bind(r,29784))).default)({url:e}),{capabilities:s}=await t.load(),n=s.query.supportsMaxRecordCountFactor,i=s.query.supportsPagination,o=s.query.supportsCentroid,a=this._config.maxRecordCountFactor,c=t.capabilities.query.maxRecordCount,u=n?c*a:c,h=new _.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=l.A.fromJSON(this._config.spatialReference),o&&(h.returnCentroid=!0),n&&(h.maxRecordCountFactor=a),i)return h.num=u,t.destroy(),this._queryPages(e,h);const d=await(0,m.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),d.data}async _queryPages(e,t,r=[],s=0){t.start=null!=t.num?s*t.num:null;const{data:n}=await(0,m.eW)(e,t,this._config.sourceSpatialReference);return n.exceededTransferLimit&&s<(this._config.maxQueryDepth??0)?(n.features.forEach(e=>r.push(e)),this._queryPages(e,t,r,s+1)):(r.forEach(e=>n.features.push(e)),n)}_addRelatedFeatures(e){const t=new Map,r=e.features,s=this._serviceDefinition.relatedFeatures.joinField;for(const e of r){const r=e.attributes[s];t.set(r,e)}this._relatedFeatures=t}};w=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.GeoEventConnection")],w);let k=class extends p{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._featureZScaler=(0,f.N)(t,s,r)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function S(e,t){if(null==e&&null==t)return null;const r={};return null!=t&&(r.geometry=t),null!=e&&(r.where=e),r}function I(e,t,r,s,n,i,o,a,c){const u={source:e,sourceSpatialReference:t,spatialReference:r,geometryType:s,filter:S(n,i),maxReconnectionAttempts:o,maxReconnectionInterval:a,customParameters:c};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new y(u):new w(u):new k(u)}(0,s.Cg)([(0,d.MZ)()],k.prototype,"connectionStatus",void 0),(0,s.Cg)([(0,d.MZ)()],k.prototype,"errorString",void 0),k=(0,s.Cg)([(0,u.$)("esri.layers.support.ClientSideConnection")],k)},43334:(e,t,r)=>{r.d(t,{N3:()=>a,Om:()=>o});var s=r(69397),n=r(27647),i=r(92722);class o{constructor(e=null,t={},r,s,n=0){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=n}static fromJSON(e){const t=e.geometry?i.A.fromJSON(e.geometry):null,r=e.centroid?i.A.fromJSON(e.centroid):null,s=e.objectId;return new o(t,e.attributes,r,s)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,n.Q)(new i.A,this.geometry,e.hasZ,e.hasM),this.centroid}get usedMemory(){return 128+(0,s.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},51624:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(44208),n=r(69397),i=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),c=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class u{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,r,s)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,!(128&s))break;if(s=e[t++],r|=(127&s)<<7,!(128&s))break;if(s=e[t++],r|=(127&s)<<14,!(128&s))break;if(s=e[t++],r|=(127&s)<<21,!(128&s))break;if(s=e[t++],r+=268435456*(127&s),!(128&s))break;if(s=e[t++],r+=34359738368*(127&s),!(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],128&s);)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,s=0;const n=1&e[this._pos];if(s=e[this._pos++],r|=127&s,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<7,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<14,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<21,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=268435456*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=34359738368*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=4398046511104*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(t=BigInt(r),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>c){const s=e.subarray(t,r);return a.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53655:(e,t,r)=>{r.d(t,{SH:()=>N,ae:()=>I,cn:()=>_});var s=r(49186),n=r(51624),i=r(92722),o=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function l(e){return e>=a.length?null:a[e]}function h(e){return e>=c.length?null:c[e]}function d(e){return e>=u.length?null:u[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function p(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function y(e){const t=e.asUnsafe(),r=new i.A;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:l(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=l(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(p,t,r);break;case 4:n.centroid=e.processMessageWithArgs(g,t,r);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function S(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(S);break;default:r.skip()}return t}function F(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function T(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function A(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=f(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(F);break;case 7:r.geometryType=f(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(T,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(I);break;case 9:r.exceededTransferLimit=s.getBool();break;case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function x(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(A,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function N(e,t){try{const r=2,s=new n.A(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(x,t):s.skip();return i}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var s=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,s.N)(r.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of r.features)n(e.geometry)}},58512:(e,t,r)=>{r.d(t,{A:()=>s});class s{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new s;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},66208:(e,t,r)=>{r.d(t,{m:()=>n});var s=r(53655);function n(e,t){const r=(0,s.SH)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},69397:(e,t,r)=>{r.d(t,{$B:()=>n,Qf:()=>u,Qh:()=>a,RS:()=>i,ez:()=>d,lM:()=>o,qK:()=>h});var s=r(34275);function n(e){return 32+e.length}const i=16;function o(e){if(!e)return 0;let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=d;for(let s=0;s<t;s++)r+=c(e[s]);return r}(e);let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return n(e);case"number":return i;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,i):0:0),0)}function l(e,t){return d+e.length*t}const h=32,d=16,f=145},69418:(e,t,r)=>{r.d(t,{S:()=>u,z:()=>c});var s=r(83047),n=r(21325),i=r(43334),o=r(58512),a=r(92722);const c=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=c,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s.G9)(this._options.sourceSpatialReference)/(0,s.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce((e,t)=>e+t,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},80754:(e,t,r)=>{r.d(t,{j7:()=>o,kS:()=>c,kd:()=>a,r8:()=>u});var s=r(82799),n=r(16930),i=r(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},80893:(e,t,r)=>{r.d(t,{IJ:()=>g,Jf:()=>_,Pk:()=>y,eW:()=>f,gW:()=>m,kS:()=>p});var s=r(78888),n=r(84952),i=r(65864),o=r(17136),a=r(21325),c=r(10536),u=r(66208),l=r(58501);const h="Layer does not support extent calculation.";function d(e,t,r){const s=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const o=n;let c,u,l;if(s&&(u=s.spatialReference,l=(0,a.YX)(u),o.geometryType=(0,i.$B)(s),o.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(s,e.compactGeometryEnabled),o.inSR=l),n.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds)switch(r?.uniqueIdFields?.length){case void 0:o.objectIds=n.objectIds.join(",");break;case 1:o.uniqueIds=JSON.stringify(n.objectIds),delete o.objectIds;break;default:o.uniqueIds=JSON.stringify(n.objectIds.map(e=>JSON.parse(e))),delete o.objectIds}if(n.orderByFields&&(o.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete o.outFields:n.outFields.includes("*")?o.outFields="*":o.outFields=n.outFields.join(","),n.outSR?(o.outSR=(0,a.YX)(n.outSR),c=e.outSpatialReference):s&&(n.returnGeometry||n.returnCentroid)&&(o.outSR=o.inSR,c=u),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(o.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(o.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(o.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(o.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(o.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(o.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:r}=e;null==t&&null==r||(o.time=t===r?t:`${t??"null"},${r??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=c&&u.equals(c)&&(o.defaultSR=o.inSR,delete o.inSR,delete o.outSR),o}async function f(e,t,r,s,n){const i=t.timeExtent?.isEmpty?{data:{features:[]}}:await w(e,t,"json",s,void 0,n);return(0,l.q)(t,r,i.data),i}async function g(e,t,r,s,n){if(t.timeExtent?.isEmpty)return{data:r.createFeatureResult()};const i=await p(e,t,s,n),o=i;return o.data=(0,u.m)(i.data,r),o}function p(e,t,r,s){return w(e,t,"pbf",r,void 0,s)}function y(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):w(e,t,"json",r,{returnIdsOnly:!0},s)}function m(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):w(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0},s)}async function _(e,t,r){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const s=await w(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}),n=s.data;if(n.hasOwnProperty("extent"))return s;if(n.features)throw new Error(h);if(n.hasOwnProperty("count"))throw new Error(h);return s}function b(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const r={...e,returnUniqueIdsOnly:!0};return delete r.returnIdsOnly,r}async function w(e,t,r,i={},a={},u={}){const l="string"==typeof e?(0,n.An)(e):e,h=t.geometry?[t.geometry]:[],f=await(0,o.el)(h,null,{signal:i.signal}),g=f?.[0];null!=g&&((t=t.clone()).geometry=g);const p=(0,c.z)({...l.query,f:r,...b(a,u),...d(t,a,u)});return(0,s.A)((0,n.fj)(l.path,(y=a,null==t.formatOf3DObjects||y.returnCountOnly||y.returnExtentOnly||y.returnIdsOnly?"query":"query3d")),{...i,responseType:"pbf"===r?"array-buffer":"json",query:{...p,...i.query}});var y}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>n});var s=r(65864);function n(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,r){const n=(0,s.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=r,t})}},92722:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new n(e.lengths,e.coords)}static fromRect(e){const[t,r,s,i]=e,o=s-t,a=i-r;return new n([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((e,t)=>e+t)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}area(){let e=0,t=0;if(!this.lengths.length)return 0;for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];if(s<3)continue;let n=this.coords[2*t],i=this.coords[2*t+1];for(let r=1;r<s;r+=1){const s=this.coords[2*(r+t)],o=this.coords[2*(r+t)+1];e+=-.5*(s-n)*(o+i),n=s,i=o}t+=s}return e}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;for(const e of r){for(let r=1;r<e;r++)t[2*(s+r)]+=t[2*(s+r)-2],t[2*(s+r)+1]+=t[2*(s+r)-1];s+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce((e,t)=>e+t)),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e)):new n(Array.from(this.lengths),Array.from(r))}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[624,7136],{10536:(e,t,r)=>{function s(e){const t={};for(const r in e){if("declaredClass"===r)continue;const n=e[r];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[r]=[];for(let e=0;e<n.length;e++)t[r][e]=s(n[e])}else"object"==typeof n?n.toJSON&&(t[r]=JSON.stringify(n)):t[r]=n}return t}r.d(t,{z:()=>s})},17136:(e,t,r)=>{r.d(t,{O7:()=>I,el:()=>S});var s=r(92602),n=r(49186),i=r(53966),o=r(39829),a=r(82799),c=r(80754),u=r(21325),l=r(28735),h=r(78888),d=r(65864),f=r(2272),g=r(84952),p=r(92300);const y=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function m(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function b(e,t,r){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw y().error(e),new n.A("internal:geometry",e)}const r=(0,c.r8)(e),s=[];for(const e of r){const r=[];s.push(r),r.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],c=Math.sqrt((o-n)*(o-n)+(a-i)*(a-i)),u=(a-i)/c,l=(o-n)/c,h=c/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=l*s+n,a=u*s+i;r.push([o,a])}const e=(c+Math.floor(h-1)*t)/2,s=l*e+n,o=u*e+i;r.push([s,o])}r.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:s,spatialReference:e.spatialReference}):new a.A({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,l.ci)(t,!0)}return r&&(e=(0,c.kS)(e,r)),e}function w(e,t,r){if(Array.isArray(e)){const s=e[0];if(s>t){const r=(0,c.kd)(s,t);e[0]=s+r*(-2*t)}else if(s<r){const t=(0,c.kd)(s,r);e[0]=s+t*(-2*r)}}else{const s=e.x;if(s>t){const r=(0,c.kd)(s,t);e=e.clone().offset(r*(-2*t),0)}else if(s<r){const t=(0,c.kd)(s,r);e=e.clone().offset(t*(-2*r),0)}}return e}function k(e,t){let r=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],i=t.geometries[s],o=(0,c.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some(r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const s=t[e][0];r=s>r?s:r}r=Number(r.toFixed(9));const s=-360*(0,c.kd)(r,180);for(let r=0;r<t.length;r++){const t=i.getPoint(e,r);i.setPoint(e,r,t.clone().offset(s,0))}return!0}})}if(n===r){if(m(e))for(const t of(0,c.r8)(i))e[n]=e[n].addRing(t);else if(_(e))for(const t of(0,c.r8)(i))e[n]=e[n].addPath(t)}else r=n,e[n]=i}return e}async function S(e,t,r){if(!Array.isArray(e))return S([e],t);t&&"string"!=typeof t&&y().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,m,_,I,F,T,A,x,N=0;const q=[],R=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,m=(0,u.Vp)(i),_=i.isWebMercator,T=_?102100:4326,I=c.j7[T].maxX,F=c.j7[T].minX,A=c.j7[T].plus180Line,x=c.j7[T].minus180Line),m)if("mesh"===t.type)R.push(t);else if("point"===t.type)R.push(w(t.clone(),I,F));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>w(e,I,F)),R.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,m);R.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,r=(0,c.kd)(e.xmin,F)*(2*I);let s=0===r?t.clone():(0,c.kS)(t.clone(),r);e.offset(r,0);let{xmin:n,xmax:i}=e;n=Number(n.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(A)&&i!==I?(N=i>N?i:N,s=b(s,_),q.push(s),R.push("cut")):e.intersects(x)&&n!==F?(N=i*(2*I)>N?i*(2*I):N,s=b(s,_,360),q.push(s),R.push("cut")):R.push(s)}else R.push(t.clone());else R.push(t);else R.push(t);let v=(0,c.kd)(N,I),M=-90;const O=v,E=new a.A;for(;v>0;){const e=360*v-180;E.addPath([[e,M],[e,-1*M]]),M*=-1,v--}if(q.length>0&&O>0){const t=k(q,await async function(e,t,r,s){const n=(0,f.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,u.YX)(i),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},a=await(0,h.A)(n.path+"/cut",o),{cutIndexes:c,geometries:l=[]}=a.data;return{cutIndexes:c,geometries:l.map(e=>{const t=(0,d.rS)(e);return t.spatialReference=i,t})}}(n,q,E,r)),s=[],i=[];for(let r=0;r<R.length;r++){const n=R[r];if("cut"!==n)i.push(n);else{const n=t.shift(),o=e[r];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),i.push("simplify")):i.push(_?(0,l.Gh)(n):n)}}if(!s.length)return i;const o=await async function(e,t,r){const s="string"==typeof e?(0,g.An)(e):e,n=t[0].spatialReference,i=(0,d.$B)(t[0]),o={...r,query:{...s.query,f:"json",sr:(0,u.YX)(n),geometries:JSON.stringify((0,p.X)(t))}},{data:a}=await(0,h.A)(s.path+"/simplify",o);return(0,p.V)(a.geometries,i,n)}(n,s,r),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(_?(0,l.Gh)(o.shift()):o.shift())}return a}const C=[];for(let e=0;e<R.length;e++){const t=R[e];if("cut"!==t)C.push(t);else{const e=q.shift();C.push(!0===_?(0,l.Gh)(e):e)}}return C}function I(e,t,r){const s=(0,u.Vp)(r);if(null==s)return e;const[n,i]=s.valid,o=2*i;let a=0,c=0;t>i?a=Math.ceil(Math.abs(t-i)/o):t<n&&(a=-Math.ceil(Math.abs(t-n)/o)),e>i?c=Math.ceil(Math.abs(e-i)/o):e<n&&(c=-Math.ceil(Math.abs(e-n)/o));let l=e+(a-c)*o;const h=l-t;return h>i?l-=o:h<n&&(l+=o),l}},27647:(e,t,r)=>{function s(e,t){return e?t?4:3:t?3:2}function n(e,t,r,n){if(!t?.lengths.length)return null;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const a=e.coords,c=[],u=r?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:l,coords:h}=t,d=s(r,n);let f=0;for(const e of l){const t=i(u,h,f,e,r,n);t&&c.push(t),f+=e*d}if(c.sort((e,t)=>{let s=e[2]-t[2];return 0===s&&r&&(s=e[4]-t[4]),s}),c.length){let e=6*c[0][2];a[0]=c[0][0]/e,a[1]=c[0][1]/e,r&&(e=6*c[0][4],a[2]=0!==e?c[0][3]/e:0),(a[0]<u[0]||a[0]>u[1]||a[1]<u[2]||a[1]>u[3]||r&&(a[2]<u[4]||a[2]>u[5]))&&(a.length=0)}if(!a.length){const e=t.lengths[0]?o(h,0,l[0],r,n):null;if(!e)return null;a[0]=e[0],a[1]=e[1],r&&e.length>2&&(a[2]=e[2])}return e}function i(e,t,r,n,i,o){const a=s(i,o);let c=r,u=r+a,l=0,h=0,d=0,f=0,g=0;for(let r=0,s=n-1;r<s;r++,c+=a,u+=a){const r=t[c],s=t[c+1],n=t[c+2],o=t[u],a=t[u+1],p=t[u+2];let y=r*a-o*s;f+=y,l+=(r+o)*y,h+=(s+a)*y,i&&(y=r*p-o*n,d+=(n+p)*y,g+=y),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),s<e[2]&&(e[2]=s),s>e[3]&&(e[3]=s),i&&(n<e[4]&&(e[4]=n),n>e[5]&&(e[5]=n))}if(f>0&&(f*=-1),g>0&&(g*=-1),!f)return null;const p=[l,h,.5*f];return i&&(p[3]=d,p[4]=.5*g),p}function o(e,t,r,n,i){const o=s(n,i);let h=t,d=t+o,f=0,g=0,p=0,y=0;for(let t=0,s=r-1;t<s;t++,h+=o,d+=o){const t=e[h],r=e[h+1],s=e[h+2],i=e[d],o=e[d+1],m=e[d+2],_=n?c(t,r,s,i,o,m):a(t,r,i,o);if(_)if(f+=_,n){const e=l(t,r,s,i,o,m);g+=_*e[0],p+=_*e[1],y+=_*e[2]}else{const e=u(t,r,i,o);g+=_*e[0],p+=_*e[1]}}return f>0?n?[g/f,p/f,y/f]:[g/f,p/f]:r>0?n?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function a(e,t,r,s){const n=r-e,i=s-t;return Math.sqrt(n*n+i*i)}function c(e,t,r,s,n,i){const o=s-e,a=n-t,c=i-r;return Math.sqrt(o*o+a*a+c*c)}function u(e,t,r,s){return[e+.5*(r-e),t+.5*(s-t)]}function l(e,t,r,s,n,i){return[e+.5*(s-e),t+.5*(n-t),r+.5*(i-r)]}r.d(t,{Q:()=>n})},30624:(e,t,r)=>{r.r(t),r.d(t,{createConnection:()=>I});var s=r(31635),n=r(78888),i=r(49186),o=r(53966),a=r(74887),c=r(84952),u=(r(44208),r(87811),r(40608)),l=r(16930),h=r(65864),d=r(10107),f=r(62815),g=r(65529);let p=class extends g.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new i.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,s.Cg)([(0,d.MZ)({readOnly:!0})],p.prototype,"connectionError",null),p=(0,s.Cg)([(0,u.$)("esri.layers.support.StreamConnection")],p);let y=class extends p{constructor(e){super({}),this._outstandingMessages=[],this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._config=e,this._featureZScaler=(0,f.N)(t,s,r),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null!=this._websocket?this._websocket.send(JSON.stringify(e)):this._outstandingMessages.push(e)}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.source.path,t=1e3,r=0){try{if(this.destroyed)return;const t=(0,c.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(s){const n=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(o.A.getLogger(this).error(new i.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(o.A.getLogger(this).error(new i.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${n}s`,s)),await(0,a.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{const t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void o.A.getLogger(this).error(new i.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,r)=>{const s=new WebSocket(e);s.onopen=()=>{if(s.onopen=null,this.destroyed)return s.onclose=null,void s.close();s.onclose=e=>this._onClose(e),s.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(s),t(s)},s.onclose=e=>{s.onopen=s.onclose=null,r(e)}})}async _handshake(e=1e4){const t=this._websocket;if(null==t)return;const r=(0,a.Tw)(),s=t.onmessage,{filter:n,outFields:c,spatialReference:u}=this._config;return r.timeout(e),t.onmessage=e=>{let a=null;try{a=JSON.parse(e.data)}catch(e){}a&&"object"==typeof a||(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),r.reject(),this.destroy()),a.spatialReference?.wkid!==u?.wkid&&(o.A.getLogger(this).error(new i.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${u.wkid}`,e.data)),r.reject(),this.destroy()),"json"!==a.format&&(o.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),r.reject(),this.destroy()),n&&a.filter!==n&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set filter, but server doesn't support it")),c&&a.outFields!==c&&o.A.getLogger(this).error(new i.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=s;for(const e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],r.resolve()},t.send(JSON.stringify({filter:n,outFields:c,format:"json",spatialReference:{wkid:u.wkid}})),r.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){const t="Encountered an error over WebSocket connection";this._set("errorString",t),o.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&o.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,s.Cg)([(0,d.MZ)()],y.prototype,"connectionStatus",null),(0,s.Cg)([(0,d.MZ)()],y.prototype,"errorString",void 0),y=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.WebSocketConnection")],y);var m=r(80893),_=r(61956);const b={maxQueryDepth:5,maxRecordCountFactor:3};let w=class extends y{constructor(e){super({...b,...e}),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){const e=await this._fetchServiceDefinition(this._config.source);e.timeInfo.trackIdField||o.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");const t=this._fetchWebSocketUrl(e.streamUrls,this._config.spatialReference);this._buddyServicesQuery||(this._buddyServicesQuery=this._queryBuddyServices()),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);const{filter:r,outFields:s}=this._config;this.destroyed||this._setFilter(r,s)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){const t={f:"json",...this._config.customParameters},r=(0,n.A)(e.path,{query:t,responseType:"json"}),s=(await r).data;return this._serviceDefinition=s,s}_fetchWebSocketUrl(e,t){const r=e[0],{urls:s,token:n}=r,i=this._inferWebSocketBaseUrl(s);return(0,c.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(const t of e)if(t.includes("wss"))return t;return o.A.getLogger(this).error(new i.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){const r=this._websocket;if(null==r||null==e&&null==t)return;const s=JSON.stringify({filter:this._serializeFilter(e,t)});let n=!1;const c=(0,a.Tw)();return r.onmessage=e=>{const t=JSON.parse(e.data);t.filter&&(t.error&&(o.A.getLogger(this).error(new i.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),c.reject(t.error)),this._setWebSocketJSONParseHandler(r),n=!0,c.resolve())},r.send(s),setTimeout(()=>{n||(this.destroyed||this._websocket!==r||o.A.getLogger(this).error(new i.A("geoevent-connection","Server timed out when setting filter")),c.reject())},1e4),c.promise}_serializeFilter(e,t){const r={};if(null==e&&null==t)return r;if(e?.geometry)try{const t=(0,h.rS)(e.geometry);if("extent"!==t.type)throw new i.A("geoevent-connection",`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(r.where=e.where),null!=t&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;const t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],s=this._relatedFeatures.get(r);if(!s)return o.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;const{attributes:n,geometry:a}=s;for(const t in n)e.attributes[t]=n[t];return a&&(e.geometry=a),e.geometry||e.centroid||o.A.getLogger(this).error(new i.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{const{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),s=this._queryArchive(t);await r;const n=await s;if(!n)return;for(const e of n.features)this.onFeature(this._enrich(e))}catch(e){o.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;const t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){const t=new((await Promise.all([r.e(6131),r.e(8219),r.e(8948),r.e(3910),r.e(13),r.e(1214),r.e(9953),r.e(3926),r.e(1017),r.e(4111),r.e(8506),r.e(9784),r.e(812),r.e(655),r.e(6719)]).then(r.bind(r,29784))).default)({url:e}),{capabilities:s}=await t.load(),n=s.query.supportsMaxRecordCountFactor,i=s.query.supportsPagination,o=s.query.supportsCentroid,a=this._config.maxRecordCountFactor,c=t.capabilities.query.maxRecordCount,u=n?c*a:c,h=new _.A;if(h.outFields=this._config.outFields??["*"],h.where=this._config.filter?.where??"1=1",h.returnGeometry=!0,h.returnExceededLimitFeatures=!0,h.outSpatialReference=l.A.fromJSON(this._config.spatialReference),o&&(h.returnCentroid=!0),n&&(h.maxRecordCountFactor=a),i)return h.num=u,t.destroy(),this._queryPages(e,h);const d=await(0,m.eW)(e,h,this._config.sourceSpatialReference);return t.destroy(),d.data}async _queryPages(e,t,r=[],s=0){t.start=null!=t.num?s*t.num:null;const{data:n}=await(0,m.eW)(e,t,this._config.sourceSpatialReference);return n.exceededTransferLimit&&s<(this._config.maxQueryDepth??0)?(n.features.forEach(e=>r.push(e)),this._queryPages(e,t,r,s+1)):(r.forEach(e=>n.features.push(e)),n)}_addRelatedFeatures(e){const t=new Map,r=e.features,s=this._serviceDefinition.relatedFeatures.joinField;for(const e of r){const r=e.attributes[s];t.set(r,e)}this._relatedFeatures=t}};w=(0,s.Cg)([(0,u.$)("esri.layers.graphics.sources.connections.GeoEventConnection")],w);let k=class extends p{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._featureZScaler=(0,f.N)(t,s,r)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function S(e,t){if(null==e&&null==t)return null;const r={};return null!=t&&(r.geometry=t),null!=e&&(r.where=e),r}function I(e,t,r,s,n,i,o,a,c){const u={source:e,sourceSpatialReference:t,spatialReference:r,geometryType:s,filter:S(n,i),maxReconnectionAttempts:o,maxReconnectionInterval:a,customParameters:c};return e?e.path.startsWith("wss://")||e.path.startsWith("ws://")?new y(u):new w(u):new k(u)}(0,s.Cg)([(0,d.MZ)()],k.prototype,"connectionStatus",void 0),(0,s.Cg)([(0,d.MZ)()],k.prototype,"errorString",void 0),k=(0,s.Cg)([(0,u.$)("esri.layers.support.ClientSideConnection")],k)},43334:(e,t,r)=>{r.d(t,{N3:()=>a,Om:()=>o});var s=r(69397),n=r(27647),i=r(92722);class o{constructor(e=null,t={},r,s,n=0){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=s,this.displayId=n}static fromJSON(e){const t=e.geometry?i.A.fromJSON(e.geometry):null,r=e.centroid?i.A.fromJSON(e.centroid):null,s=e.objectId;return new o(t,e.attributes,r,s)}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e}clone(){const e=this.geometry?.clone(),t=new o(e,{...this.attributes},this.centroid?.clone(),this.objectId);return t.displayId=this.displayId,t}ensureCentroid(e){return this.centroid??=(0,n.Q)(new i.A,this.geometry,e.hasZ,e.hasM),this.centroid}get usedMemory(){return 128+(0,s.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},51624:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(44208),n=r(69397),i=r(93687);const o=4294967296,a=new TextDecoder("utf-8"),c=(0,s.A)("safari")||(0,s.A)("ios")?6:(0,s.A)("ff")?12:32;class u{constructor(e,t,r=0,s=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,r,s)}_init(e,t,r,s){this._data=e,this._dataView=t,this._pos=r,this._end=s}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),r}getSFixed64(){const e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),r}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){const e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,s){const n=this.getMessage(),i=e(n,t,r,s);return n.release(),i}processMessage(e){const t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,r=0,s=0;if(this._end-t>=10)do{if(s=e[t++],r|=127&s,!(128&s))break;if(s=e[t++],r|=(127&s)<<7,!(128&s))break;if(s=e[t++],r|=(127&s)<<14,!(128&s))break;if(s=e[t++],r|=(127&s)<<21,!(128&s))break;if(s=e[t++],r+=268435456*(127&s),!(128&s))break;if(s=e[t++],r+=34359738368*(127&s),!(128&s))break;if(s=e[t++],r+=4398046511104*(127&s),!(128&s))break;if(s=e[t++],r+=562949953421312*(127&s),!(128&s))break;if(s=e[t++],r+=72057594037927940*(127&s),!(128&s))break;if(s=e[t++],r+=0x8000000000000000*(127&s),!(128&s))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(s=e[t],128&s);)++t,r+=(127&s)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,r+=s*n}return this._pos=t,r}_decodeSVarint(){const e=this._data;let t,r=0,s=0;const n=1&e[this._pos];if(s=e[this._pos++],r|=127&s,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<7,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<14,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r|=(127&s)<<21,!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=268435456*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=34359738368*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(s=e[this._pos++],r+=4398046511104*(127&s),!(128&s))return n?-(r+1)/2:r/2;if(t=BigInt(r),s=e[this._pos++],t+=0x2000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x100000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);if(s=e[this._pos++],t+=0x8000000000000000n*BigInt(127&s),!(128&s))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>c){const s=e.subarray(t,r);return a.decode(s)}let s="",n="";for(let i=t;i<r;++i){const t=e[i];128&t?n+="%"+t.toString(16):(s+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(s+=decodeURIComponent(n)),s}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53655:(e,t,r)=>{r.d(t,{SH:()=>N,ae:()=>I,cn:()=>_});var s=r(49186),n=r(51624),i=r(92722),o=r(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],c=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function l(e){return e>=a.length?null:a[e]}function h(e){return e>=c.length?null:c[e]}function d(e){return e>=u.length?null:u[e]}function f(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,r){const s=e.asUnsafe(),n=t.createPointGeometry(r);for(;s.next();)switch(s.tag()){case 3:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addCoordinatePoint(n,s.getSInt64(),i++);break}default:s.skip()}return n}function p(e,t,r){const s=e.asUnsafe(),n=t.createGeometry(r),i=2+(r.hasZ?1:0)+(r.hasM?1:0);for(;s.next();)switch(s.tag()){case 2:{const e=s.getUInt32(),r=s.pos()+e;let i=0;for(;s.pos()<r;)t.addLength(n,s.getUInt32(),i++);break}case 3:{const e=s.getUInt32(),r=s.pos()+e;let o=0;for(t.allocateCoordinates(n);s.pos()<r;)t.addCoordinate(n,s.getSInt64(),o),o++,o===i&&(o=0);break}default:s.skip()}return n}function y(e){const t=e.asUnsafe(),r=new i.A;let s="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),s=t.pos()+e;for(;t.pos()<s;)r.coords.push(t.getSInt64());break}case 1:s=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:r,queryGeometryType:s}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),r={type:l(0)};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=l(t.getEnum());break;case 3:r.alias=t.getString();break;case 4:r.sqlType=h(t.getEnum());break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function b(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}function w(e,t,r,s){const n=t.createFeature(r);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=s[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(p,t,r);break;case 4:n.centroid=e.processMessageWithArgs(g,t,r);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function S(e){const t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function I(e){const t={originPosition:d(0)},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=d(r.getEnum());break;case 2:t.scale=r.processMessage(k);break;case 3:t.translate=r.processMessage(S);break;default:r.skip()}return t}function F(e){const t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function T(e,t){const r=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:r.wkid=e.getUInt32();break;case 5:r.wkt=e.getString();break;case 2:r.latestWkid=e.getUInt32();break;case 3:r.vcsWkid=e.getUInt32();break;case 4:r.latestVcsWkid=e.getUInt32();break;default:e.skip()}return r}function A(e,t){const r=t.createFeatureResult(),s=e.asUnsafe();r.geometryType=f(t,0);let n=!1;for(;s.next();)switch(s.tag()){case 1:r.objectIdFieldName=s.getString();break;case 3:r.globalIdFieldName=s.getString();break;case 4:r.geohashFieldName=s.getString();break;case 5:r.geometryProperties=s.processMessage(F);break;case 7:r.geometryType=f(t,s.getEnum());break;case 8:r.spatialReference=s.processMessageWithArgs(T,t);break;case 10:r.hasZ=s.getBool();break;case 11:r.hasM=s.getBool();break;case 12:r.transform=s.processMessage(I);break;case 9:r.exceededTransferLimit=s.getBool();break;case 13:t.addField(r,s.processMessage(_));break;case 15:n||(t.prepareFeatures(r),n=!0),t.addFeature(r,s.processMessageWithArgs(w,t,r,r.fields));break;case 2:r.uniqueIdField=s.processMessage(b);break;default:s.skip()}return t.finishFeatureResult(r),r}function x(e,t){const r={};let s=null;for(;e.next();)switch(e.tag()){case 4:s=e.processMessageWithArgs(y);break;case 1:r.featureResult=e.processMessageWithArgs(A,t);break;default:e.skip()}return null!=s&&r.featureResult&&t.addQueryGeometry(r,s),r}function N(e,t){try{const r=2,s=new n.A(new Uint8Array(e),new DataView(e)),i={};for(;s.next();)s.tag()===r?i.queryResult=s.processMessageWithArgs(x,t):s.skip();return i}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var s=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,s.N)(r.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of r.features)n(e.geometry)}},58512:(e,t,r)=>{r.d(t,{A:()=>s});class s{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new s;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},66208:(e,t,r)=>{r.d(t,{m:()=>n});var s=r(53655);function n(e,t){const r=(0,s.SH)(e,t),n=r.queryResult.featureResult,i=r.queryResult.queryGeometry,o=r.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},69397:(e,t,r)=>{r.d(t,{$B:()=>n,Qf:()=>u,Qh:()=>a,RS:()=>i,ez:()=>d,lM:()=>o,qK:()=>h});var s=r(34275);function n(e){return 32+e.length}const i=16;function o(e){if(!e)return 0;let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=d;for(let s=0;s<t;s++)r+=c(e[s]);return r}(e);let t=h;for(const r in e)e.hasOwnProperty(r)&&(t+=c(e[r]));return t}function c(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return n(e);case"number":return i;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,i):0:0),0)}function l(e,t){return d+e.length*t}const h=32,d=16,f=145},69418:(e,t,r)=>{r.d(t,{S:()=>u,z:()=>c});var s=r(83047),n=r(21325),i=r(43334),o=r(58512),a=r(92722);const c=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=c,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,s.G9)(this._options.sourceSpatialReference)/(0,s.G9)(e.spatialReference);if(1!==t)for(const r of e.features){if(!(0,i.N3)(r))continue;const e=r.geometry.coords;for(let r=2;r<e.length;r+=3)e[r]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce((e,t)=>e+t,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},80754:(e,t,r)=>{r.d(t,{j7:()=>o,kS:()=>c,kd:()=>a,r8:()=>u});var s=r(82799),n=r(16930),i=r(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:n.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:n.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){const r=u(e);for(const e of r)for(const r of e)r[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},80893:(e,t,r)=>{r.d(t,{IJ:()=>g,Jf:()=>_,Pk:()=>y,eW:()=>f,gW:()=>m,kS:()=>p});var s=r(78888),n=r(84952),i=r(65864),o=r(17136),a=r(21325),c=r(10536),u=r(66208),l=r(58501);const h="Layer does not support extent calculation.";function d(e,t,r){const s=e.geometry,n=e.toJSON();delete n.compactGeometryEnabled,delete n.defaultSpatialReferenceEnabled;const o=n;let c,u,l;if(s&&(u=s.spatialReference,l=(0,a.YX)(u),o.geometryType=(0,i.$B)(s),o.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(s,e.compactGeometryEnabled),o.inSR=l),n.groupByFieldsForStatistics&&(o.groupByFieldsForStatistics=n.groupByFieldsForStatistics.join(",")),n.objectIds)switch(r?.uniqueIdFields?.length){case void 0:o.objectIds=n.objectIds.join(",");break;case 1:o.uniqueIds=JSON.stringify(n.objectIds),delete o.objectIds;break;default:o.uniqueIds=JSON.stringify(n.objectIds.map(e=>JSON.parse(e))),delete o.objectIds}if(n.orderByFields&&(o.orderByFields=n.orderByFields.join(",")),!n.outFields||!n.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete o.outFields:n.outFields.includes("*")?o.outFields="*":o.outFields=n.outFields.join(","),n.outSR?(o.outSR=(0,a.YX)(n.outSR),c=e.outSpatialReference):s&&(n.returnGeometry||n.returnCentroid)&&(o.outSR=o.inSR,c=u),n.returnGeometry&&delete n.returnGeometry,n.outStatistics&&(o.outStatistics=JSON.stringify(n.outStatistics)),n.fullText&&(o.fullText=JSON.stringify(n.fullText)),n.pixelSize&&(o.pixelSize=JSON.stringify(n.pixelSize)),n.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete n.quantizationParameters.extent.spatialReference,o.quantizationParameters=JSON.stringify(n.quantizationParameters)),n.parameterValues&&(o.parameterValues=JSON.stringify(n.parameterValues)),n.rangeValues&&(o.rangeValues=JSON.stringify(n.rangeValues)),n.dynamicDataSource&&(o.layer=JSON.stringify({source:n.dynamicDataSource}),delete n.dynamicDataSource),n.timeExtent){const e=n.timeExtent,{start:t,end:r}=e;null==t&&null==r||(o.time=t===r?t:`${t??"null"},${r??"null"}`),delete n.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=c&&u.equals(c)&&(o.defaultSR=o.inSR,delete o.inSR,delete o.outSR),o}async function f(e,t,r,s,n){const i=t.timeExtent?.isEmpty?{data:{features:[]}}:await w(e,t,"json",s,void 0,n);return(0,l.q)(t,r,i.data),i}async function g(e,t,r,s,n){if(t.timeExtent?.isEmpty)return{data:r.createFeatureResult()};const i=await p(e,t,s,n),o=i;return o.data=(0,u.m)(i.data,r),o}function p(e,t,r,s){return w(e,t,"pbf",r,void 0,s)}function y(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):w(e,t,"json",r,{returnIdsOnly:!0},s)}function m(e,t,r,s){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):w(e,t,"json",r,{returnIdsOnly:!0,returnCountOnly:!0},s)}async function _(e,t,r){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const s=await w(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}),n=s.data;if(n.hasOwnProperty("extent"))return s;if(n.features)throw new Error(h);if(n.hasOwnProperty("count"))throw new Error(h);return s}function b(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const r={...e,returnUniqueIdsOnly:!0};return delete r.returnIdsOnly,r}async function w(e,t,r,i={},a={},u={}){const l="string"==typeof e?(0,n.An)(e):e,h=t.geometry?[t.geometry]:[],f=await(0,o.el)(h,null,{signal:i.signal}),g=f?.[0];null!=g&&((t=t.clone()).geometry=g);const p=(0,c.z)({...l.query,f:r,...b(a,u),...d(t,a,u)});return(0,s.A)((0,n.fj)(l.path,(y=a,null==t.formatOf3DObjects||y.returnCountOnly||y.returnExtentOnly||y.returnIdsOnly?"query":"query3d")),{...i,responseType:"pbf"===r?"array-buffer":"json",query:{...p,...i.query}});var y}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>n});var s=r(65864);function n(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function i(e,t,r){const n=(0,s.xD)(t);return e.map(e=>{const t=n.fromJSON(e);return t.spatialReference=r,t})}},92722:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[]){this.lengths=e??[],this.coords=t??[]}static fromJSON(e){return new n(e.lengths,e.coords)}static fromRect(e){const[t,r,s,i]=e,o=s-t,a=i-r;return new n([5],[t,r,o,0,0,a,-o,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce((e,t)=>e+t)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}area(){let e=0,t=0;if(!this.lengths.length)return 0;for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];if(s<3)continue;let n=this.coords[2*t],i=this.coords[2*t+1];for(let r=1;r<s;r+=1){const s=this.coords[2*(r+t)],o=this.coords[2*(r+t)+1];e+=-.5*(s-n)*(o+i),n=s,i=o}t+=s}return e}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let r=0;r<this.lengths.length;r++){const s=this.lengths[r];for(let r=0;r<s;r++)e(this.coords[2*(r+t)],this.coords[2*(r+t)+1]);t+=s}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let s=0;for(const e of r){for(let r=1;r<e;r++)t[2*(s+r)]+=t[2*(s+r)-2],t[2*(s+r)+1]+=t[2*(s+r)-1];s+=e}return e}clone(e){if(0===this.lengths.length)return new n([],[this.coords[0],this.coords[1]]);const t=2*(0===this.lengths.length?1:this.lengths.reduce((e,t)=>e+t)),r=this.coords.slice(0,t);return e?(e.set(r),new n(this.lengths,e)):new n(Array.from(this.lengths),Array.from(r))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9784],{8947:(e,t,r)=>{r.d(t,{L:()=>n});var i=r(60999),s=r(74887),o=r(67076);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,i.Ke)(n.populateFromStyle());if((0,s.Te)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},29784:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Re});var i=r(31635),s=r(13874),o=r(78888),n=r(69540),a=r(7762),l=r(49186),u=r(4718),p=r(53966),d=r(97768),y=r(92071),c=r(93637),h=r(74887),g=r(39516),f=r(10107),m=r(79901),b=r(36005),w=r(40608),v=r(43937),C=r(89317),T=r(38141),F=r(16930),M=r(60950),I=r(99959);const S=Symbol("isFeatureGraphicOrigin");var _;class E extends I.A{constructor(e){super(),this[_]=!0,this.type="feature",this.layer=e}get[(_=S,M.ym)](){return this.layer}}var O=r(4146),A=r(52106),Z=r(44208),j=r(92474),D=r(61893),q=r(29953),P=r(56507),x=(r(87811),r(7695)),L=r(5443),R=r(39829),G=r(50498),k=r(96520),J=r(58501),N=r(22671);let $=0,V=class extends((0,j.WV)((0,D.g)(a.A))){constructor(e){super(e),this._idToClientGeometry=null,this.type="memory"}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}get _workerGeometryType(){const e=this.layer?.geometryType;return e?this._geometryTypeRequiresClientGraphicMapping(e)?"polygon":e:null}applyEdits(e){return this.load().then(()=>this._applyEdits(e))}openPorts(){return this.load().then(()=>this._connection.openPorts())}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,J.q)(e,this.layer.spatialReference,r);const i=N.A.fromJSON(r);if(!this._requiresClientGraphicMapping()||!this._idToClientGeometry)return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGeometry.get(t);void 0!==r&&(e.geometry=r)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new l.A("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,J.q)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t))}queryObjectIds(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t))}queryExtent(e,t={}){return this.load(t).then(()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t)).then(e=>({count:e.count,extent:L.A.fromJSON(e.extent)}))}querySnapping(e,t={}){return this.load(t).then(()=>this._connection.invoke("querySnapping",e,t))}async queryAttributeBins(e,t={}){return await this.load(),this._connection.invoke("queryAttributeBins",e?.toJSON(),t)}async _applyEdits(e){if(!this._connection)throw new l.A("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&i.push(e)}const n=e.updateFeatures&&this._idToClientGeometry?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n&&null!=t.geometry){const e=o(t);null!=e&&n.set(e,t)}(0,k.u)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:u}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(u.uidToObjectId),this._updateIdToClientGeometries(n,u),this._createEditsResult(u)}async _prepareClientMapping(e,t){if("mesh"!==this._layerOrSourceGeometryType||null==e)return;const r=[];for(const{geometry:i}of e)null==i||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateIdToClientGeometries(e,t){if(this._idToClientGeometry){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGeometry(t)}for(const e of t.deleteResults)e.success&&this._idToClientGeometry.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:""};return{objectId:e.objectId,globalId:e.globalId,error:t?new l.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);i||null==o.geometry||(i=o.geometry.type),r[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const o=e[i],n=t.get(i);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[r]:n.attributes[r]=o,s._addIdToClientGeometry(n))}}}}_addIdToClientGeometry(e){if(!this._idToClientGeometry)return;const t=this.sourceJSON.objectIdField,r=e.attributes?.[t];null!=r&&this._idToClientGeometry.set(r,e.geometry??null)}get _layerOrSourceGeometryType(){return this.layer?.geometryType??this.sourceJSON?.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this._layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=($++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return null==t?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?R.A.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,q.ho)("MemorySourceWorker",{strategy:(0,Z.A)("feature-layers-workers")?"dedicated":"local",signal:e,registryTarget:this});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:o,timeInfo:n,dateFieldsTimeZone:a}=this.layer,l="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const u=this._prepareAddFeatures(this.items);this.addHandles(this.on("before-changes",e=>{p.A.getLogger(this).error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()}));const d={features:u.features,fields:t?.map(e=>e.toJSON()),geometryType:G.Ye.toJSON(this._workerGeometryType),hasM:"mesh"!==this._layerOrSourceGeometryType&&s,hasZ:"mesh"===this._layerOrSourceGeometryType||o,objectIdField:i,spatialReference:l?null:r&&r.toJSON(),timeInfo:n?.toJSON()??null,dateFieldsTimeZone:a},y=await this._connection.invoke("load",d,{signal:e});for(const e of y.warnings)p.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});y.featureErrors.length&&p.A.getLogger(this.layer).warn("#load()",`Encountered ${y.featureErrors.length} validation errors while loading features. (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{errors:y.featureErrors});const c=y.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(u.inferredGeometryType)&&(c.geometryType=G.Ye.toJSON(u.inferredGeometryType)),this.sourceJSON=c,this._requiresClientGraphicMapping()&&(this._idToClientGeometry=new Map),u.finish(y.assignedObjectIds)}};(0,i.Cg)([(0,x.u)({Type:A.A,ensureType:(0,P.dp)(A.A)})],V.prototype,"itemType",void 0),(0,i.Cg)([(0,f.MZ)()],V.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({constructOnly:!0})],V.prototype,"layer",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],V.prototype,"_workerGeometryType",null),(0,i.Cg)([(0,f.MZ)()],V.prototype,"sourceJSON",void 0),V=(0,i.Cg)([(0,w.$)("esri.layers.graphics.sources.MemorySource")],V);var K=r(52136),Q=r(18768),W=r(63074),z=r(69208),B=r(6455),H=r(47685),U=r(87718),Y=r(87796),X=r(56658),ee=r(16131),te=r(32756),re=r(8303),ie=r(65008);let se=class extends ie.A{constructor(){super(...arguments),this.updating=!1,this.status="unknown"}};(0,i.Cg)([(0,f.MZ)()],se.prototype,"updating",void 0),(0,i.Cg)([(0,f.MZ)()],se.prototype,"status",void 0),se=(0,i.Cg)([(0,w.$)("esri.layers.support.PublishingInfo")],se);const oe=Symbol(),ne=e=>{var t;const r=e;let s=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=oe}get publishingInfo(){if(this.destroyed)return null;const e=this._get("publishingInfo");if(e)return e;const t=new se;return this._checkPublishingStatus(t),t}_checkPublishingStatus(e){let t=0;const r=async s=>{let o;e.updating=!0;try{o=await this.fetchPublishingStatus()}catch(e){o="unavailable"}"published"!==o&&"unavailable"!==o||("publishing"===e.status&&this.refresh(),i.remove()),e.status=o,e.updating=!1,i.removed||(t=setTimeout(r,s,s+125))},i={removed:!1,remove(){this.removed=!0,clearTimeout(t)}};this.when().catch(()=>i.remove()),r(250),this.addHandles(i)}};return(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],s.prototype,"publishingInfo",null),s=(0,i.Cg)([(0,w.$)("esri.layers.mixins.PublishableLayer")],s),s};var ae=r(54310),le=r(25036),ue=r(82935),pe=r(63396),de=r(60694),ye=r(10873),ce=r(15426),he=r(29005),ge=r(33143),fe=r(17036),me=r(30524),be=r(46499),we=r(39383),ve=r(22453),Ce=r(96184),Te=r(17311),Fe=r(91908),Me=r(27733),Ie=r(65494),Se=r(8947),_e=r(41214),Ee=r(61956),Oe=r(54218),Ae=r(30291),Ze=r(33910),je=r(78553);const De="FeatureLayer";function qe(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}function Pe(e){return e&&e instanceof a.A}const xe=(0,fe.p)();function Le(e,t,r){const i=!!r?.writeLayerSchema;return{enabled:i,ignoreOrigin:i}}let Re=class extends((0,Y.j)((0,X.J)((0,U.F)(ne((0,H.w6)((0,B.FJ)((0,W.dM)((0,te.fY)((0,ue.e)((0,pe.d)((0,le.j)((0,ae.J)((0,Q.b)((0,ee.q)((0,re.A)((0,y.P)((0,z.d)((0,K.p)((0,n.OU)(O.A)))))))))))))))))))){constructor(...e){super(...e),this.attributeTableTemplate=null,this.charts=null,this.copyright=null,this.displayField=null,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.formTemplate=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new E(this),this.hasM=void 0,this.hasZ=void 0,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="ArcGISFeatureLayer",this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.resourceInfo=null,this.screenSizePerspectiveEnabled=!0,this.spatialReference=F.A.WGS84,this.subtypeCode=null,this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer"]),this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.type="feature",this.typeIdField=null,this.types=null,this.visible=!0,this._debouncedSaveOperations=(0,h.sg)(async(e,t,i)=>{const{save:s,saveAs:o}=await r.e(3359).then(r.bind(r,33359));switch(e){case 0:return s(this,t);case 1:return o(this,i,t)}})}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;if(this.portalItem?.loaded&&this.source)return this.addResolvingPromise(this.createGraphicsSource(t).then(e=>this.initLayerProperties(e))),Promise.resolve(this);const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"]},e).catch(h.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new l.A("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this.initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,ce.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get _titleCreator(){const e=this._get("_titleCreator");return(0,d.pR)(e),new Te.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,fields:this.fields,displayField:this.displayField,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}readCapabilities(e,t){return t=t.layerDefinition||t,(0,ve.S)(t,this.url)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities?.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}get effectiveEditingEnabled(){return(0,ce.C$)(this)}get featureTitleFields(){return[...this._titleCreator.requiredFields]}readIsTable(e,t){return"Table"===(t=t?.layerDefinition??t).type||!t.geometryType}writeIsTable(e,t,r,i){i?.writeLayerSchema&&(0,c.sM)(r,e?"Table":"Feature Layer",t)}readGlobalIdField(e,t){return(0,ce.jD)(t.layerDefinition||t)}readObjectIdField(e,t){return(0,ce.Zm)(t.layerDefinition||t)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,me.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,Ie.L)(i,t,r)??void 0;return e||p.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,ce.PD)(t,r)}set source(e){const t=this._get("source");t!==e&&(Pe(t)&&this._resetMemorySource(t),Pe(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof a.A?new V({layer:this,items:e}):e:null}readSource(e,t){const r=N.A.fromJSON(t.featureSet);return new V({layer:this,items:r?.features??[]})}readTemplates(e,t){const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e=e?.map(e=>he.A.fromJSON(e)),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition?.name??t.name,i=t.title||t.layerDefinition?.title;if(r){const e=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,de.yG)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,de.qg)(this.url);null!=e&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,de.cr)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition?.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find(e=>e.name.toLowerCase()===r);e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r?.creatorField,s=r?.editorField;return e?.map(e=>(e=ge.A.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e))}readVisible(e,t){return null!=t.layerDefinition?.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}async addAttachment(e,t){const r=await(0,ce.Xl)(this,e,t,De);return this.lastEditsEventDate=new Date,r}async updateAttachment(e,t,r){const i=await(0,ce.bt)(this,e,t,r,De);return this.lastEditsEventDate=new Date,i}async applyEdits(e,t){return(0,ce.ct)(this,e,t)}async uploadAssets(e,t){return(0,ce.rn)(this,e,t)}createPopupTemplate(e){return(0,Ae.tn)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource()&&this.source)return this.source.load({signal:e});const{default:t}=await(0,h.qr)(Promise.all([r.e(708),r.e(364),r.e(8628),r.e(2593)]).then(r.bind(r,72593)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){const e=(0,ce.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;const t=null!=this.subtypeCode?`${this.subtypeField} = ${this.subtypeCode}`:null,r=(0,g.mA)(this.definitionExpression,t);return e.where=r||"1=1",e}async deleteAttachments(e,t){const r=await(0,ce.mm)(this,e,t,De);return this.lastEditsEventDate=new Date,r}async fetchRecomputedExtents(e){return(0,ce.WP)(this,e,De)}async getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}async getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getFeatureType(e){return(0,ce.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){return(0,ce.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryAttachments(e,t){return(0,ce.lV)(this,e,t,De)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Ee.A.from(e)??r.createQuery(),t),s=this.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r,e.origin=s;return i}async queryObjectIds(e,t){return await(0,ce.sg)(this,e,t,De)}async queryFeatureCount(e,t){return(0,ce.Ye)(this,e,t,De)}async queryExtent(e,t){return(0,ce.B5)(this,e,t,De)}async queryRelatedFeatures(e,t){return(0,ce.hM)(this,e,t,De)}async queryRelatedFeaturesCount(e,t){return(0,ce.S2)(this,e,t,De)}async queryTopFeatures(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopFeatures||!s?.query?.supportsTopFeaturesQuery)throw new l.A(De,"Layer source does not support queryTopFeatures capability");const o=await r.e(7561).then(r.bind(r,57561)),n=await i.queryTopFeatures(o.default.from(e),t);if(n?.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryAttributeBins(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryAttributeBins)throw new l.A(De,"Layer source does not support queryAttributeBins capability");(0,ce.ZJ)(e,s,De);const o=await Promise.all([r.e(4575),r.e(7136)]).then(r.bind(r,14575)),n=await i.queryAttributeBins(o.default.from(e),t);if(n.features)for(const e of n.features)e.layer=e.sourceLayer=this;return n}async queryTopObjectIds(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopObjectIds||!s?.query.supportsTopFeaturesQuery)throw new l.A(De,"Layer source does not support queryTopObjectIds capability");const o=await r.e(7561).then(r.bind(r,57561));return(await i.queryTopObjectIds(o.default.from(e),t)).filter(Oe.Et)}async queryTopFeaturesExtent(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopExtents||!s?.query?.supportsTopFeaturesQuery)throw new l.A(De,"Layer source does not support queryTopExtents capability");const o=await r.e(7561).then(r.bind(r,57561));return i.queryTopExtents(o.default.from(e),t)}async queryTopFeatureCount(e,t){const{source:i,capabilities:s}=await this.load();if(!i.queryTopCount||!s?.query?.supportsTopFeaturesQuery)throw new l.A(De,"Layer source does not support queryFeatureCount capability");const o=await r.e(7561).then(r.bind(r,57561));return i.queryTopCount(o.default.from(e),t)}read(e,t){const r=e.featureCollection;if((r||"Feature Collection"===e.type)&&(this.resourceInfo=e),r){const{layers:e,showLegend:i}=r;1===e?.length&&(super.read(e[0],t),null!=i&&super.read({showLegend:i},t))}super.read(e,t),t&&"service"===t.origin&&(this.revert(["objectIdField","fields","timeInfo","dateFieldsTimeZone"],"service"),this.spatialReference||this.revert(["spatialReference"],"service"))}write(e,t){t={...t,origin:t?.origin??void 0,writeLayerSchema:t?.writeLayerSchema??this._hasMemorySource()};const{origin:r,layerContainerType:i,messages:s}=t;if(this.dynamicDataSource)return s?.push(qe(this,"using a dynamic data source cannot be written to web scenes, web maps and feature service items")),null;if(this.isTable){if(("web-map"===r||"web-scene"===r)&&"tables"!==i)return s?.push(qe(this,`a table source can only be written to tables, not ${i}`)),null;if(this._hasMemorySource())return s?.push(qe(this,"using an in-memory table source cannot be written to web scenes and web maps")),null}else if(this.loaded&&("web-map"===r||"web-scene"===r)&&"tables"===i)return s?.push(qe(this,"using a non-table source cannot be written to tables in web maps or web scenes")),null;return super.write(e,t)}clone(){if(this._hasMemorySource())throw new l.A(De,`FeatureLayer (title: ${this.title}, id: ${this.id}) created using in-memory source cannot be cloned`);return super.clone()}serviceSupportsSpatialReference(e){return!!this.loaded&&("memory"===this.source?.type||(0,Fe.D)(this,e))}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}_readEditingEnabled(e,t,r){let i=e.layerDefinition?.capabilities;return i?this._hasEditingCapability(i):(i=e.capabilities,t&&"web-map"===r?.origin&&!this._hasMemorySource()&&i?this._hasEditingCapability(i):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map(e=>e.trim()).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){const e=this.capabilities?.operations?.supportsSync?"Query,Sync":"Query";(0,c.sM)("layerDefinition.capabilities",e,t),r&&!i?.writeLayerSchema&&(t.capabilities=e)}}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(t)return this.applyPreferredHost(t),this.findFirstValidLayerId(t)})}async initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,me.yp)(this.renderer,this.fieldsIndex),(0,me.sv)(this.timeInfo,this.fieldsIndex),this._hasMemorySource()&&"mesh"===this.geometryType&&(this.capabilities.query.supportsReturnMesh=!0),(0,Se.L)(this,{origin:"service"})}async hasDataChanged(){return(0,ce.jp)(this)}async fetchPublishingStatus(){const e=this.source;return e?.fetchPublishingStatus?e.fetchPublishingStatus():"unavailable"}_verifyFields(){const e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields?.some(e=>"geometry"===e.type)||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach(e=>{const r=e.prototype?.attributes;r&&t&&delete r[t]})}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new l.A("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new l.A("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach(e=>{e.layer=this,e.sourceLayer=this}),this.addHandles([e.on("after-add",e=>{e.item.layer=this,e.item.sourceLayer=this}),e.on("after-remove",e=>{e.item.layer=null,e.item.sourceLayer=null})],"fl-source")}_resetMemorySource(e){e.forEach(e=>{e.layer=null,e.sourceLayer=null}),this.removeHandles("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}findFirstValidLayerId(e){return Array.isArray(e.layers)&&e.layers.length>0?e.layers[0].id:Array.isArray(e.tables)&&e.tables.length>0?e.tables[0].id:void 0}};(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Re.prototype,"_titleCreator",null),(0,i.Cg)([(0,f.MZ)(ye.zQ)],Re.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,b.w)("service","capabilities")],Re.prototype,"readCapabilities",null),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],Re.prototype,"charts",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Re.prototype,"createQueryVersion",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.copyrightText"}}})],Re.prototype,"copyright",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.displayField"}}})],Re.prototype,"displayField",void 0),(0,i.Cg)([(0,f.MZ)({types:Ze.Es,readOnly:!0})],Re.prototype,"defaultSymbol",void 0),(0,i.Cg)([(0,f.MZ)({type:Me.L})],Re.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean})],Re.prototype,"editingEnabled",null),(0,i.Cg)([(0,b.w)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Re.prototype,"readEditingEnabled",null),(0,i.Cg)([(0,b.w)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Re.prototype,"readEditingEnabledFromWebMap",null),(0,i.Cg)([(0,v.K)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Re.prototype,"writeEditingEnabled",null),(0,i.Cg)([(0,v.K)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Re.prototype,"writeEditingEnabledToWebMap",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Re.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Re.prototype,"featureTitleFields",null),(0,i.Cg)([(0,f.MZ)({...xe.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Le}}}}})],Re.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(xe.fieldsIndex)],Re.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({type:T.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Re.prototype,"formTemplate",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.extent"}}})],Re.prototype,"fullExtent",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Le,writer(e,t,r){const i=e?ce.iX.toJSON(e):null;i&&(0,c.sM)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:ce.iX.read}}})],Re.prototype,"geometryType",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Re.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.hasM"}}})],Re.prototype,"hasM",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.hasZ"}}})],Re.prototype,"hasZ",void 0),(0,i.Cg)([(0,f.MZ)(ye.id)],Re.prototype,"id",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Re.prototype,"infoFor3D",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Re.prototype,"isTable",void 0),(0,i.Cg)([(0,b.w)("service","isTable",["type","geometryType"]),(0,b.w)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Re.prototype,"readIsTable",null),(0,i.Cg)([(0,v.K)("web-map","isTable")],Re.prototype,"writeIsTable",null),(0,i.Cg)([(0,f.MZ)(ye.kF)],Re.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[be.A],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:we.w,write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:we.w,write:{layerContainerTypes:C.K}}})],Re.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)(ye.Ih);return e.json.origins["portal-item"]={write:{target:"layerDefinition.drawingInfo.transparency",writer(e,t,r){(0,c.sM)(r,(0,je.p)(e),t)}}},e})())],Re.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)(ye.fV)],Re.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"],json:(()=>{const e=(0,u.o8)(ye.C1.json);return e.origins["portal-item"]={read:!1,write:!1},e})()})],Re.prototype,"listMode",void 0),(0,i.Cg)([(0,b.w)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"])],Re.prototype,"readGlobalIdField",null),(0,i.Cg)([(0,f.MZ)({json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Le}}}}})],Re.prototype,"objectIdField",void 0),(0,i.Cg)([(0,b.w)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"])],Re.prototype,"readObjectIdField",null),(0,i.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],json:{write:{target:"layerType",ignoreOrigin:!0,layerContainerTypes:C.K}}})],Re.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,f.MZ)(xe.outFields)],Re.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Re.prototype,"path",void 0),(0,i.Cg)([(0,f.MZ)(ye.M6)],Re.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],Re.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Re.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({types:_e.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:_e.XJ,name:"layerDefinition.drawingInfo.renderer",write:{layerContainerTypes:C.K,overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema,layerContainerTypes:C.K})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:r?.writeLayerSchema,layerContainerTypes:C.K})}}})],Re.prototype,"renderer",null),(0,i.Cg)([(0,b.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,b.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Re.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)()],Re.prototype,"resourceInfo",void 0),(0,i.Cg)([(0,f.MZ)((()=>{const e=(0,u.o8)(ye.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Re.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],Re.prototype,"source",null),(0,i.Cg)([(0,m.w)("source")],Re.prototype,"castSource",null),(0,i.Cg)([(0,b.w)("portal-item","source",["featureSet"]),(0,b.w)("web-map","source",["featureSet"])],Re.prototype,"readSource",null),(0,i.Cg)([(0,f.MZ)({json:{read:{source:"layerDefinition.extent.spatialReference"}}})],Re.prototype,"spatialReference",void 0),(0,i.Cg)([(0,f.MZ)({type:Number})],Re.prototype,"subtypeCode",void 0),(0,i.Cg)([(0,f.MZ)({type:[he.A]})],Re.prototype,"templates",void 0),(0,i.Cg)([(0,b.w)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Re.prototype,"readTemplates",null),(0,i.Cg)([(0,f.MZ)({type:Ce.A})],Re.prototype,"timeInfo",void 0),(0,i.Cg)([(0,f.MZ)()],Re.prototype,"title",void 0),(0,i.Cg)([(0,b.w)("service","title",["name"]),(0,b.w)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Re.prototype,"readTitle",null),(0,i.Cg)([(0,b.w)("web-map","title",["layerDefinition.name","title"])],Re.prototype,"readTitleFromWebMap",null),(0,i.Cg)([(0,f.MZ)({type:String})],Re.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Re.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({type:String})],Re.prototype,"typeIdField",void 0),(0,i.Cg)([(0,b.w)("service","typeIdField"),(0,b.w)("typeIdField",["layerDefinition.typeIdField"])],Re.prototype,"readTypeIdField",null),(0,i.Cg)([(0,f.MZ)({type:[ge.A]})],Re.prototype,"types",void 0),(0,i.Cg)([(0,b.w)("service","types",["types"]),(0,b.w)("types",["layerDefinition.types"])],Re.prototype,"readTypes",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility",layerContainerTypes:C.K}}}}})],Re.prototype,"visible",void 0),(0,i.Cg)([(0,b.w)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Re.prototype,"readVisible",null),Re=(0,i.Cg)([(0,w.$)("esri.layers.FeatureLayer")],Re)},63396:(e,t,r)=>{r.d(t,{d:()=>F});var i=r(31635),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),n=r(60950),a=r(99959);class l extends a.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get[n.ym](){return this.trackInfoProvider.trackInfo}}var u=r(13874),p=r(69540),d=r(25482),y=r(93637),c=r(43937),h=r(50820),g=r(10873),f=r(46499),m=r(41214);let b=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,s.MZ)({type:[f.A],json:{write:!0}})],b.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,s.MZ)(g.kF)],b.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,s.MZ)({types:m.Hg,json:{write:!0}})],b.prototype,"renderer",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,o.$)("esri.layers.support.TrackPartInfo")],b);var w=r(96576),v=r(59868),C=r(26253);let T=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new b({renderer:new w.A({symbol:v.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new b({renderer:new w.A({symbol:v.UK.clone()})}),this.trackLines=new b({renderer:new w.A({symbol:v.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,y.sM)(r,i,t)}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"enabled",void 0),(0,i.Cg)([(0,s.MZ)({type:[h.A],json:{write:!0}})],T.prototype,"fields",void 0),(0,i.Cg)([(0,c.K)("fields")],T.prototype,"writeFields",null),(0,i.Cg)([(0,s.MZ)({type:b,json:{write:!0}})],T.prototype,"latestObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:C.T,json:{write:!0}})],T.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,s.MZ)(g.M6)],T.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,s.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],T.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,s.MZ)({type:b,json:{write:!0}})],T.prototype,"previousObservations",void 0),(0,i.Cg)([(0,s.MZ)({type:b,json:{write:!0}})],T.prototype,"trackLines",void 0),(0,i.Cg)([(0,s.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],T.prototype,"timeField",void 0),T=(0,i.Cg)([(0,o.$)("esri.layers.support.TrackInfo")],T);const F=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,i.Cg)([(0,s.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,s.MZ)({type:T})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,o.$)("esri.layers.mixins.TrackableLayer")],r),r}},96520:(e,t,r)=>{r.d(t,{u:()=>n});var i=r(83047),s=r(21325);function o(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function n(e,t,r){if(!e&&!t||!r)return;const s=(0,i.G9)(r);a(e,r,s),a(t,r,s)}function a(e,t,r){if(e)for(const i of e)l(i.geometry,t,r)}function l(e,t,r){if(!e?.spatialReference||(0,s.aI)(e.spatialReference,t))return;const n=(0,i.G9)(e.spatialReference)/r;if(1!==n)if("x"in e)null!=e.z&&(e.z*=n);else if("rings"in e)o(e,e.rings,n);else if("paths"in e)o(e,e.paths,n);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=n)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8506],{6455:(e,t,i)=>{i.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>C});var r=i(31635),o=i(93637),n=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),l=i(89317),p=i(69540),a=i(7762),d=i(25482),u=i(43937),y=i(83960),c=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let m=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"maxScale",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:h})],m.prototype,"minScale",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],m.prototype,"where",void 0),m=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilter")],m);var g=i(41560);let f=class extends((0,p.OU)(d.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(m)),this.mode="manual"}writeFilters(e,t,i,r){const o=e.toArray();"scale"===this.mode&&o.sort((e,t)=>{const i=(0,y.oW)(t.minScale,e.minScale),r=e.maxScale-t.maxScale;return 0===i?r:i}),t[i]=o.map(e=>e.toJSON(r))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],f.prototype,"activeFilterId",void 0),(0,r.Cg)([(0,n.MZ)({type:a.A.ofType(m),nonNullable:!0,json:{write:!0}})],f.prototype,"filters",void 0),(0,r.Cg)([(0,u.K)("filters")],f.prototype,"writeFilters",null),(0,r.Cg)([(0,n.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],f.prototype,"mode",void 0),f=(0,r.Cg)([(0,s.$)("esri.layers.support.DisplayFilterInfo")],f);const v=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,r.Cg)([(0,n.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,r.Cg)([(0,n.MZ)(C)],i.prototype,"displayFilterInfo",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,o.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},C={type:f,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},17036:(e,t,i)=>{i.d(t,{p:()=>p});var r=i(44208),o=i(53966),n=i(20437),s=i(95466),l=i(30524);function p(){return{fields:{type:[n.A],value:null,set:function(e){if(e&&(0,r.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");o.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||o.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},20816:(e,t,i)=>{i.d(t,{TA:()=>o,We:()=>l,Z3:()=>n,ZJ:()=>p,w5:()=>a});var r=i(78888);const o=(0,i(13069).vD)(),n=new Map,s=new Map;async function l(e,t,i){if(!e||!i)return!1;if(!t)return!0;const o=new URL(e).host;let s=n.get(o);if(!s){const t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");s=(await(0,r.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return s===t}async function p(e,t,r=!1){if(!e||!t)return!0;const n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),l=s.get(n)?.entries();if(l)for(const[e,s]of l)if(s.name===t){const t=!s.stack?.hasForwardEdits();if(!t&&r){const[{deleteForwardEdits:t},{default:r}]=await Promise.all([i.e(2186).then(i.bind(i,32186)),i.e(2558).then(i.bind(i,32558))]),l=await t(n,e,new r({sessionId:o,moment:s.moment}));return l.success&&s.stack?.clearForwardEdits(),l.success}return t}return!0}function a(e,t){if(!e)return!1;const i=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),r=s.get(i)?.entries();if(r)for(const[e,i]of r)if(i.name===t)return"edit"===i.lockType;return!1}new Map},26253:(e,t,i)=>{i.d(t,{T:()=>u});var r=i(31635),o=i(69540),n=i(25482),s=i(88930),l=i(10107),p=(i(44208),i(53966),i(87811),i(93223)),a=i(40608),d=i(73133);let u=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,s.t)(this.value,this.unit,"milliseconds")}};(0,r.Cg)([(0,p.e)(d.j,{nonNullable:!0})],u.prototype,"unit",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],u.prototype,"value",void 0),u=(0,r.Cg)([(0,a.$)("esri.time.TimeInterval")],u)},38141:(e,t,i)=>{i.d(t,{A:()=>nt});var r,o=i(31635),n=i(25482),s=i(4718),l=i(3483),p=i(10107),a=i(79901),d=i(36005),u=i(40608),y=i(43937);i(44208),i(53966),i(87811);let c=r=class extends n.o{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new r({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"expression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:["boolean","date","number","string"],json:{write:!0}})],c.prototype,"returnType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=r=(0,o.Cg)([(0,u.$)("esri.form.ExpressionInfo")],c);const h=c;let m=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,o.Cg)([(0,p.MZ)()],m.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],m.prototype,"visibilityExpression",void 0),m=(0,o.Cg)([(0,u.$)("esri.form.elements.Element")],m);const g=m;var f=i(56507),v=i(69540);let w=class extends((0,v.OU)(n.o)){constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],w.prototype,"type",void 0),w=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.Input")],w);const C=w,M=["any","capture","upload"];let x=class extends C{constructor(e){super(e),this.type="audio",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["audio"],readOnly:!0,json:{write:!0}})],x.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],x.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxDuration",void 0),x=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AudioInput")],x);const b=x;let Z=class extends C{constructor(e){super(e),this.type="document",this.maxFileSize=null}};(0,o.Cg)([(0,p.MZ)({type:["document"],readOnly:!0,json:{write:!0}})],Z.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Z.prototype,"maxFileSize",void 0),Z=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.DocumentInput")],Z);const I=Z;let j=class extends C{constructor(e){super(e),this.type="image",this.inputMethod="any",this.maxImageSize=null}};(0,o.Cg)([(0,p.MZ)({type:["image"],readOnly:!0,json:{write:!0}})],j.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],j.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxImageSize",void 0),j=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.ImageInput")],j);const F=j;let S=class extends C{constructor(e){super(e),this.type="signature",this.inputMethod="any"}};(0,o.Cg)([(0,p.MZ)({type:["signature"],readOnly:!0,json:{write:!0}})],S.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],S.prototype,"inputMethod",void 0),S=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.SignatureInput")],S);const E=S;let T=class extends C{constructor(e){super(e),this.type="video",this.inputMethod="any",this.maxDuration=null}};(0,o.Cg)([(0,p.MZ)({type:["video"],readOnly:!0,json:{write:!0}})],T.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:M,json:{write:!0}})],T.prototype,"inputMethod",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],T.prototype,"maxDuration",void 0),T=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.VideoInput")],T);const O=T;function U(e){return{nestableTypes:{base:C,key:"type",typeMap:{audio:b,document:I,image:F,signature:E,video:O}},allTypes:{base:C,key:"type",typeMap:{attachment:e,audio:b,document:I,image:F,signature:E,video:O}}}}let A=class extends C{constructor(e){super(e),this.type="attachment",this.attachmentAssociationType="exact",this.inputTypes=null}castInputs(e){return function(e,t){return e?e.map(e=>(0,f.aq)(t.nestableTypes,e)):null}(e,R)}readInputs(e,t){return function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>i[e.type].fromJSON(e))}(t.inputTypes,R)}writeInputs(e,t){t.inputTypes=function(e,t){if(!e)return null;const i=t.nestableTypes.typeMap;return e.filter(e=>i[e.type]).map(e=>e.toJSON())}(e,R)}};(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{write:!0}})],A.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:["any","exact","exactOrNone"],json:{write:!0}})],A.prototype,"attachmentAssociationType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"inputTypes",void 0),(0,o.Cg)([(0,a.w)("inputTypes")],A.prototype,"castInputs",null),(0,o.Cg)([(0,d.w)("inputTypes")],A.prototype,"readInputs",null),(0,o.Cg)([(0,y.K)("inputTypes")],A.prototype,"writeInputs",null),A=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.attachments.AttachmentInput")],A);const R=U(A);var N;const k=U(A);let D=N=class extends g{constructor(e){super(e),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new N({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"allowUserRename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],D.prototype,"attachmentKeyword",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"displayFilename",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],D.prototype,"filenameExpression",void 0),(0,o.Cg)([(0,p.MZ)({types:k.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],D.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"maxAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],D.prototype,"minAttachmentCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],D.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],D.prototype,"useOriginalFilename",void 0),D=N=(0,o.Cg)([(0,u.$)("esri.form.elements.AttachmentElement")],D);const V=D;let $=class extends n.o{constructor(e){super(e),this.type=null}};(0,o.Cg)([(0,p.MZ)()],$.prototype,"type",void 0),$=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.Input")],$);const L=$;let B=class extends L{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"maxLength",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],B.prototype,"minLength",void 0),B=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextInput")],B);const H=B;var _;let q=_=class extends H{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new _({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["barcode-scanner"],json:{read:!1,write:!0}})],q.prototype,"type",void 0),q=_=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.BarcodeScannerInput")],q);const P=q;var K;let G=K=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="combo-box"}clone(){return new K({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],G.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["combo-box"],json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=K=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.ComboBoxInput")],G);const W=G;var Q;function J(e){return null!=e?e:null}function z(e){return null!=e?e:null}let X=Q=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.type="date-picker"}readMax(e,t){return J(t.max)}writeMax(e,t){t.max=z(e)}readMin(e,t){return J(t.min)}writeMin(e,t){t.min=z(e)}clone(){return new Q({max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],X.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],X.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],X.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],X.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],X.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["date-picker"],json:{read:!1,write:!0}})],X.prototype,"type",void 0),X=Q=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DatePickerInput")],X);const Y=X;var ee;function te(e){return null!=e?e:null}function ie(e){return null!=e?e:null}let re=ee=class extends L{constructor(e){super(e),this.includeTimeOffset=!0,this.max=null,this.min=null,this.timeResolution="minutes",this.type="datetimeoffset-picker"}readMax(e,t){return te(t.max)}writeMax(e,t){t.max=ie(e)}readMin(e,t){return te(t.min)}writeMin(e,t){t.min=ie(e)}readTimeResolution(e,t){return te(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=ie(e)}clone(){return new ee({includeTimeOffset:this.includeTimeOffset,max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],re.prototype,"includeTimeOffset",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],re.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],re.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],re.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],re.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],re.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],re.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],re.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["datetimeoffset-picker"],json:{read:!1,write:!0}})],re.prototype,"type",void 0),re=ee=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimeOffsetPickerInput")],re);const oe=re;var ne;function se(e){return null!=e?new Date(e):null}function le(e){return e?e.getTime():null}let pe=ne=class extends L{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return se(t.max)}writeMax(e,t){t.max=le(e)}readMin(e,t){return se(t.min)}writeMin(e,t){t.min=le(e)}clone(){return new ne({includeTime:this.includeTime,max:this.max,min:this.min})}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],pe.prototype,"includeTime",void 0),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],pe.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],pe.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:Date,json:{type:Number,write:!0}})],pe.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],pe.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],pe.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:["datetime-picker"],json:{read:!1,write:!0}})],pe.prototype,"type",void 0),pe=ne=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.DateTimePickerInput")],pe);const ae=pe;var de;let ue=de=class extends L{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!0,this.type="radio-buttons"}clone(){return new de({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ue.prototype,"noValueOptionLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],ue.prototype,"showNoValueOption",void 0),(0,o.Cg)([(0,p.MZ)({type:["radio-buttons"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=de=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.RadioButtonsInput")],ue);const ye=ue;var ce;let he=ce=class extends L{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ce({offValue:this.offValue,onValue:this.onValue})}};(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"offValue",void 0),(0,o.Cg)([(0,p.MZ)({type:[String,Number],json:{write:!0}})],he.prototype,"onValue",void 0),(0,o.Cg)([(0,p.MZ)({type:["switch"],json:{read:!1,write:!0}})],he.prototype,"type",void 0),he=ce=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.SwitchInput")],he);const me=he;var ge;let fe=ge=class extends H{constructor(e){super(e),this.type="text-area"}clone(){return new ge({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-area"],json:{read:!1,write:!0}})],fe.prototype,"type",void 0),fe=ge=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextAreaInput")],fe);const ve=fe;var we;let Ce=we=class extends H{constructor(e){super(e),this.type="text-box"}clone(){return new we({maxLength:this.maxLength,minLength:this.minLength})}};(0,o.Cg)([(0,p.MZ)({type:["text-box"],json:{read:!1,write:!0}})],Ce.prototype,"type",void 0),Ce=we=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TextBoxInput")],Ce);const Me=Ce;var xe;function be(e){return null!=e?e:null}function Ze(e){return null!=e?e:null}let Ie=xe=class extends L{constructor(e){super(e),this.max=null,this.min=null,this.timeResolution="minutes",this.type="time-picker"}readMax(e,t){return be(t.max)}writeMax(e,t){t.max=Ze(e)}readMin(e,t){return be(t.min)}writeMin(e,t){t.min=Ze(e)}readTimeResolution(e,t){return be(t.timeResolution)}writeTimeResolution(e,t){t.timeResolution=Ze(e)}clone(){return new xe({max:this.max,min:this.min,timeResolution:this.timeResolution})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"max",void 0),(0,o.Cg)([(0,d.w)("max")],Ie.prototype,"readMax",null),(0,o.Cg)([(0,y.K)("max")],Ie.prototype,"writeMax",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"min",void 0),(0,o.Cg)([(0,d.w)("min")],Ie.prototype,"readMin",null),(0,o.Cg)([(0,y.K)("min")],Ie.prototype,"writeMin",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{type:String,write:!0}})],Ie.prototype,"timeResolution",void 0),(0,o.Cg)([(0,d.w)("timeResolution")],Ie.prototype,"readTimeResolution",null),(0,o.Cg)([(0,y.K)("timeResolution")],Ie.prototype,"writeTimeResolution",null),(0,o.Cg)([(0,p.MZ)({type:["time-picker"],json:{read:!1,write:!0}})],Ie.prototype,"type",void 0),Ie=xe=(0,o.Cg)([(0,u.$)("esri.form.elements.inputs.TimePickerInput")],Ie);const je={base:L,key:"type",typeMap:{"barcode-scanner":P,"combo-box":W,"date-picker":Y,"datetime-picker":ae,"datetimeoffset-picker":oe,"radio-buttons":ye,switch:me,"text-area":ve,"text-box":Me,"time-picker":Ie}};var Fe,Se=i(80451);let Ee=Fe=class extends g{constructor(e){super(e),this.domain=null,this.editable=null,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new Fe({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({types:Se.gK,json:{read:{reader:Se.rS},write:!0}})],Ee.prototype,"domain",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ee.prototype,"editable",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"fieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"hint",void 0),(0,o.Cg)([(0,p.MZ)({types:je,json:{read:{source:"inputType"},write:{target:"inputType"}}})],Ee.prototype,"input",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"requiredExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Ee.prototype,"type",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ee.prototype,"valueExpression",void 0),Ee=Fe=(0,o.Cg)([(0,u.$)("esri.form.elements.FieldElement")],Ee);const Te=Ee;var Oe,Ue=i(49852);let Ae=Oe=class extends g{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editableExpression=null,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new Oe({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editableExpression:this.editableExpression,label:this.label,orderByFields:(0,s.o8)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"displayCount",void 0),(0,o.Cg)([(0,p.MZ)({type:["list"],json:{write:!0}})],Ae.prototype,"displayType",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],Ae.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:[Ue.A],json:{write:!0}})],Ae.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],Ae.prototype,"relationshipId",void 0),(0,o.Cg)([(0,p.MZ)({type:["relationship"],json:{read:!1,write:!0}})],Ae.prototype,"type",void 0),Ae=Oe=(0,o.Cg)([(0,u.$)("esri.form.elements.RelationshipElement")],Ae);const Re=Ae;var Ne;let ke=Ne=class extends g{constructor(e){super(e),this.text=null,this.textFormat="plain-text",this.type="text"}clone(){return new Ne({text:this.text,textFormat:this.textFormat,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"text",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],ke.prototype,"textFormat",void 0),(0,o.Cg)([(0,p.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],ke.prototype,"type",void 0),ke=Ne=(0,o.Cg)([(0,u.$)("esri.form.elements.TextElement")],ke);const De=ke;var Ve=i(83342);let $e=class extends((0,v.OU)(g)){constructor(e){super(e),this.associationTypes=null,this.editableExpression=null,this.type="utilityNetworkAssociations"}};(0,o.Cg)([(0,p.MZ)({type:[Ve.A],json:{write:{isRequired:!0}}})],$e.prototype,"associationTypes",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],$e.prototype,"editableExpression",void 0),(0,o.Cg)([(0,p.MZ)({type:["utilityNetworkAssociations"],json:{read:!1,write:!0}})],$e.prototype,"type",void 0),$e=(0,o.Cg)([(0,u.$)("esri.form.elements.UtilityNetworkAssociationsElement")],$e);const Le=$e,Be=e=>"field"===e.type,He=e=>"group"===e.type,_e=e=>"text"===e.type;function qe(e){return{typesWithGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,group:e,relationship:Re,text:De,utilityNetworkAssociations:Le}},typesWithoutGroup:{base:g,key:"type",typeMap:{attachment:V,field:Te,relationship:Re,text:De,utilityNetworkAssociations:Le}}}}function Pe(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>r[e.type].fromJSON(e))}function Ke(e,t,i=!0){if(!e)return null;const r=i?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter(e=>r[e.type]).map(e=>e.toJSON())}function Ge(e,t,i=!0){return e?e.map(e=>(0,f.aq)(i?t.typesWithGroup:t.typesWithoutGroup,e)):null}var We;let Qe=We=class extends g{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Ge(e,Je,!1)}readElements(e,t){return Pe(t.formElements,Je,!1)}writeElements(e,t){t.formElements=Ke(e,Je,!1)}clone(){return new We({description:this.description,elements:(0,s.o8)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],Qe.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],Qe.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],Qe.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],Qe.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:["collapsed","expanded"],json:{write:!0}})],Qe.prototype,"initialState",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:!1,write:!0}})],Qe.prototype,"type",void 0),Qe=We=(0,o.Cg)([(0,u.$)("esri.form.elements.GroupElement")],Qe);const Je=qe(Qe),ze=Qe;var Xe,Ye=i(30524);const et=qe(ze);let tt=Xe=class extends n.o{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.preserveFieldValuesWhenHidden=!1,this.title=null}castElements(e){return Ge(e,et)}readElements(e,t){return Pe(t.formElements,et)}writeElements(e,t){t.formElements=Ke(e,et)}clone(){return new Xe({description:this.description,expressionInfos:(0,s.o8)(this.expressionInfos),elements:(0,s.o8)(this.elements),title:this.title,preserveFieldValuesWhenHidden:this.preserveFieldValuesWhenHidden})}async getFieldsUsed(e,t){const i=new Set,{description:r,elements:o,expressionInfos:n,title:s}=this;if(ot(i,e,r),ot(i,e,s),!o)return[];const l=function(e,t){if(!t||0===t.length)return[];const i=rt(e),r=[];for(const e of t)i.has(e.name)&&r.push(e.expression);return r}(o,n).map(t=>(0,Ye.Dx)(i,e,t));await Promise.all(l);for(const r of o)it(i,{fieldsIndex:e,relationships:t},r);return Array.from(i).sort()}};function it(e,t,i){const{fieldsIndex:r}=t;if(!r||r.fields.length!==e.size)switch(ot(e,r,i.label),ot(e,r,i.description),i.type){case"field":(0,Ye.rq)(e,r,i.fieldName);break;case"group":i.elements.forEach(i=>it(e,t,i));break;case"relationship":if(t.relationships){const o=t.relationships.find(e=>e.id===i.relationshipId);o&&(0,Ye.rq)(e,r,o.keyField)}(0,Ye._w)(e,r,i.orderByFields?.map(e=>e.field));break;case"text":ot(e,r,i.text)}}function rt(e){const t=new Set;for(const i of e)if((0,l.kb)(t,i.visibilityExpression),!_e(i))if(He(i))(0,l.FB)(t,rt(i.elements));else if((0,l.kb)(t,i.editableExpression),Be(i)){const{requiredExpression:e,valueExpression:r}=i;(0,l.FB)(t,[e,r])}return t}function ot(e,t,i){(0,Ye._w)(e,t,(0,Ye.nw)(i))}(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"description",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],tt.prototype,"elements",void 0),(0,o.Cg)([(0,a.w)("elements")],tt.prototype,"castElements",null),(0,o.Cg)([(0,d.w)("elements",["formElements"])],tt.prototype,"readElements",null),(0,o.Cg)([(0,y.K)("elements")],tt.prototype,"writeElements",null),(0,o.Cg)([(0,p.MZ)({type:[h],json:{write:!0}})],tt.prototype,"expressionInfos",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],tt.prototype,"preserveFieldValuesWhenHidden",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],tt.prototype,"title",void 0),tt=Xe=(0,o.Cg)([(0,u.$)("esri.form.FormTemplate")],tt);const nt=tt},47685:(e,t,i)=>{i.d(t,{Mk:()=>m,Zk:()=>c,w6:()=>v});var r=i(31635),o=i(65529),n=i(4718),s=i(74887),l=i(10107),p=(i(44208),i(53966),i(40608)),a=i(20816);const d=new o.bk;function u(e){return d.on("apply-edits",new WeakRef(e))}function y(e){return d.on("update-moment",new WeakRef(e))}function c(e,t,i=null,r=!1){const o=(0,s.Tw)();return r=null==t||r,d.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:i,mayReceiveServiceEdits:r,result:o.promise}),o}const h=Symbol();function m(e){return null!=e&&"object"==typeof e&&h in e}function g(e){return null!=e&&"object"==typeof e&&"gdbVersion"in e}function f(e,t,i){const r=new URL(e).host,o=a.Z3.get(r),n=e=>!e||e===o;return n(t)&&n(i)||t===i}const v=e=>{var t;const i=e;let o=class extends i{static{t=h}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{const{serviceUrl:t,layerId:i,gdbVersion:r,mayReceiveServiceEdits:o,result:s}=e,l=t===this.url,p=null!=i&&null!=this.layerId&&i===this.layerId,a=g(this),d=g(this)&&f(t,r,this.gdbVersion);if(!l||a&&!d||!p&&!o)return;const u=s.then(e=>{if(this.lastEditsEventDate=new Date,p&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;const i=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(i){const{adds:t,updates:r,deletes:o}=i.editedFeatures,s={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:o?o.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:r?r.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",s),s}const o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,o.historicMoment)&&this.emit("edits",o),o}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,r,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));this.emit("apply-edits",{result:u})},this._updateMomentHandler=e=>{const{serviceUrl:t,gdbVersion:i,moment:r}=e,o=t===this.url,n=g(this),s=g(this)&&f(t,i,this.gdbVersion),l=g(this)&&!f(t,this.gdbVersion,null);o&&n&&s&&l&&"historicMoment"in this&&this.historicMoment!==r&&(this.historicMoment=r)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(y(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,i){return"historicMoment"in this&&this.historicMoment!==i&&(0,a.w5)(e,t)}};return(0,r.Cg)([(0,l.MZ)()],o.prototype,"lastEditsEventDate",void 0),o=(0,r.Cg)([(0,p.$)("esri.layers.mixins.EditBusLayer")],o),o}},54239:(e,t,i)=>{i.d(t,{A:()=>f});var r,o=i(31635),n=i(4576),s=i(66552),l=i(25482),p=i(83047),a=i(67076),d=i(10107),u=(i(44208),i(53966),i(36005)),y=i(40608),c=i(43937);const h=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,n.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=r=class extends l.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return h.write(e,t,i)}readHeightModel(e,t,i){return h.read(e)||(i?.messages&&i.messages.push(function(e,t){return new a.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,p.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(v(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,p.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new a.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o.Cg)([(0,d.MZ)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal",write:{isRequired:!0}}}}})],f.prototype,"heightModel",void 0),(0,o.Cg)([(0,c.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o.Cg)([(0,u.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o.Cg)([(0,d.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],f.prototype,"heightUnit",void 0),(0,o.Cg)([(0,u.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o.Cg)([(0,u.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o.Cg)([(0,d.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o.Cg)([(0,u.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=r=(0,o.Cg)([(0,y.$)("esri.geometry.HeightModelInfo")],f)},73133:(e,t,i)=>{i.d(t,{j:()=>r});const r=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73179:(e,t,i)=>{i.d(t,{b:()=>p,h:()=>a});var r=i(4718),o=i(53966),n=i(84952),s=i(60694),l=i(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},n=(0,r.o8)(l.OZ),p=n.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,r,o){(0,s.LS)(this,e,i,t,o)}),{...n,set:function(e){if(null==e)return void this._set("url",e);const i=(0,s.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:o.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function a(e,t){const{separator:i}=t??{},r=(0,n.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,n.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,n.fj)(r.path,i??"",e.layerId.toString()))),r}},82935:(e,t,i)=>{i.d(t,{B:()=>c,e:()=>h});var r=i(31635),o=i(10107),n=(i(44208),i(53966),i(87811),i(36005)),s=i(40608),l=i(89317),p=i(30524),a=i(96184),d=i(73133),u=i(64272),y=i(26253);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,o=d.j.fromJSON(i.timeOffsetUnits);return r&&o?new y.T({value:r,unit:o}):null}set timeInfo(e){(0,p.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r.Cg)([(0,o.MZ)({type:u.T,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,r.Cg)([(0,o.MZ)({type:y.T})],i.prototype,"timeOffset",void 0),(0,r.Cg)([(0,n.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,r.Cg)([(0,o.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,r.Cg)([(0,o.MZ)(c)],i.prototype,"useViewTime",void 0),i=(0,r.Cg)([(0,s.$)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>s,oW:()=>p,zx:()=>l});var r=i(34727),o=i(83047);const n=96;function s(e,t){const i=t||e.extent,r=e.width,s=(0,o.GA)(i?.spatialReference);return i&&r?i.width/r*s*o.dy*n:0}function l(e,t,i){return function(e,t){return 0===t||(0,r.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,r.Sp)(e,t)||e>t}(e,i)}function p(e,t){return(0,r.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},87796:(e,t,i)=>{i.d(t,{j:()=>A});var r=i(31635),o=i(7762),n=i(4718),s=i(84952),l=i(10107),p=(i(44208),i(53966),i(36005)),a=i(40608),d=i(89317),u=i(35666),y=i(5443),c=i(54239),h=i(16930),m=i(10873),g=i(69540),f=i(25482),v=(i(87811),i(56400));let w=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,l.MZ)()],w.prototype,"creatorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"creationDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editorField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"editDateField",void 0),(0,r.Cg)([(0,l.MZ)()],w.prototype,"realm",void 0),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference",!0))],w.prototype,"timeZone",void 0),w=(0,r.Cg)([(0,a.$)("esri.layers.support.EditFieldsInfo")],w);let C=class extends((0,g.OU)(f.o)){constructor(e){super(e)}};(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"fields",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isAscending",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"indexType",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"isUnique",void 0),(0,r.Cg)([(0,l.MZ)({constructOnly:!0,json:{write:!0}})],C.prototype,"description",void 0),C=(0,r.Cg)([(0,a.$)("esri.layers.support.FeatureIndex")],C);var M=i(15426),x=i(83047);let b=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],b.prototype,"shapeAreaField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],b.prototype,"shapeLengthField",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:e=>x.dk.read(e)||x.Sk.read(e)}})],b.prototype,"units",void 0),b=(0,r.Cg)([(0,a.$)("esri.layers.support.GeometryFieldsInfo")],b);var Z=i(37352),I=i(77548),j=i(73179),F=i(45067),S=i(22453),E=i(43937),T=i(80451);let O=class extends((0,g.OU)(f.o)){constructor(e){super(e),this.code=null,this.defaultValues={},this.domains=null,this.name=null}readDomains(e){if(!e)return null;const t={};for(const i of Object.keys(e))t[i]=(0,T.rS)(e[i]);return t}writeDomains(e,t){if(!e)return;const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],O.prototype,"code",void 0),(0,r.Cg)([(0,l.MZ)({type:Object,json:{write:!0}})],O.prototype,"defaultValues",void 0),(0,r.Cg)([(0,l.MZ)({json:{write:!0}})],O.prototype,"domains",void 0),(0,r.Cg)([(0,p.w)("domains")],O.prototype,"readDomains",null),(0,r.Cg)([(0,E.K)("domains")],O.prototype,"writeDomains",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],O.prototype,"name",void 0),O=(0,r.Cg)([(0,a.$)("esri.layers.support.Subtype")],O);var U=i(10407);const A=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.copyright=null,this.capabilities=null,this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.definitionExpression=null,this.displayField=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.fieldsIndex=null,this.floorInfo=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.globalIdField=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.indexes=new(o.A.ofType(C)),this.isTable=!1,this.layerId=void 0,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.preferredTimeZone=null,this.relationships=null,this.returnM=void 0,this.returnZ=void 0,this.serviceDefinitionExpression=null,this.serviceItemId=null,this.sourceJSON=null,this.spatialReference=h.A.WGS84,this.subtypeField=null,this.subtypes=null,this.trackIdField=null,this.uniqueIdFields=null,this.url=null,this.version=void 0,this._isUrlHostModified=!1,this._isUrlHostModificationEnabled=!1}getFieldDomain(e,t){throw new Error("Not implemented")}getField(e){return this.fieldsIndex.get(e)}get authenticationTriggerEvent(){if(!this.url)return null;const{capabilities:e}=this;if(e){const{query:t,operations:i,editing:r}=e;if(!t.supportsQueryByOthers||!t.supportsQueryByAnonymous)return"load";if(i.supportsEditing&&!(r.supportsUpdateByOthers&&r.supportsUpdateByAnonymous&&r.supportsDeleteByOthers&&r.supportsDeleteByAnonymous))return"load"}if((0,M.rQ)(this.serviceDefinitionExpression)||(0,M.rQ)(this.definitionExpression))return"load";if(this.userHasUpdateItemPrivileges){if((0,M.tG)(this))return"load";if(this.hasUpdateItemRestrictions)return e.operations.supportsQuery?"editing":"load"}if(this.userHasFullEditingPrivileges&&this.hasFullEditingRestrictions)return"editing";const t=this.editFieldsInfo;return(t?.creatorField||t?.editorField)&&e?.operations.supportsEditing?"editing":null}readCapabilitiesFromService(e,t){return(0,S.S)(t,this.url)}readEditingInfo(e,t){const{editingInfo:i}=t;return i?{lastEditDate:null!=i.lastEditDate?new Date(i.lastEditDate):null}:null}get effectiveCapabilities(){const e=this.capabilities;if(!e)return null;const t=(0,n.o8)(e),{operations:i,editing:r}=t;return(0,M.Pt)(this)?(this.userHasUpdateItemPrivileges&&(i.supportsQuery=!0),t):this.userHasUpdateItemPrivileges?(i.supportsAdd=i.supportsDelete=i.supportsEditing=i.supportsQuery=i.supportsUpdate=r.supportsDeleteByOthers=r.supportsGeometryUpdate=r.supportsUpdateByOthers=!0,t):(this.userHasFullEditingPrivileges&&i.supportsEditing&&(i.supportsAdd=i.supportsDelete=i.supportsUpdate=r.supportsGeometryUpdate=!0),t)}get effectiveEditingEnabled(){return!1}readGlobalIdFieldFromService(e,t){return(0,M.jD)(t)}get hasFullEditingRestrictions(){const e=this.capabilities;if(!e||(0,M.Pt)(this))return!1;const{operations:t,editing:i}=e;return t.supportsEditing&&!(t.supportsAdd&&t.supportsDelete&&t.supportsUpdate&&i.supportsGeometryUpdate)}get hasUpdateItemRestrictions(){const e=this.capabilities;if(!e)return!1;const{operations:t,editing:i}=e;return(0,M.Pt)(this)?!t.supportsQuery:!(t.supportsAdd&&t.supportsDelete&&t.supportsEditing&&t.supportsQuery&&t.supportsUpdate&&i.supportsDeleteByOthers&&i.supportsGeometryUpdate&&i.supportsUpdateByOthers)}readIsTableFromService(e,t){return"Table"===t.type}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readMinScale(e,t){return t.effectiveMinScale||e||0}readObjectIdFieldFromService(e,t){return(0,M.Zm)(t)}get parsedUrl(){return(0,j.h)(this)}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readUniqueIdFields(e,t){return t.uniqueIdInfo?.OIDFieldContainsHashValue?t.uniqueIdInfo.fields:null}readVersion(e,t){return(0,M.$4)(t)}get isUrlHostModified(){const{loaded:e,url:t,_isUrlHostModified:i}=this;if(i)return!0;if(!e||!t)return!1;if(this.originIdOf("url")<7)return!1;const r=this.sourceJSON?.preferredHost;if(!r)return!1;if(!(0,s.FX)(t,`https://${r}`,!0))return!1;for(let e=6;e>=3;e--){const i=this.getAtOrigin("url",(0,u.OL)(e));if(i)return!(0,s.FX)(t,i,!0)}return!1}applyPreferredHost(e){const{url:t,portalItem:i}=this;if(!t||!(0,I.OP)(i))return;const r=(0,I.$x)();r&&this._isUrlHostModificationEnabled&&(this._set("url",r),this._isUrlHostModified=!0,i&&(0,I.Gh)(i,(0,I.G$)()))}applyHostFromPortalItem(){const{url:e,portalItem:t}=this;if(!e||7===this.originIdOf("url")||!t?.url||!(0,I.OP)(t)||!(0,U.Y)(t,U.mm.HOSTED_SERVICE)||(0,s.FX)(e,t.url,!0)||!this._isUrlHostModificationEnabled)return;const i=(0,s.Ln)(t.url);this._set("url",(0,s.hf)(e,i)),this._isUrlHostModified=!0}};return(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"authenticationTriggerEvent",null),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"copyrightText"}}}}})],i.prototype,"copyright",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1,origins:{service:{read:{source:["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","isDataBranchVersioned","isDataVersioned","maxRecordCount","maxRecordCountFactor","maxUniqueIDCount","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"]}}}}})],i.prototype,"capabilities",void 0),(0,r.Cg)([(0,p.w)("service","capabilities")],i.prototype,"readCapabilitiesFromService",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("dateFieldsTimeReference"))],i.prototype,"dateFieldsTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"datesInUnknownTimezone",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],i.prototype,"definitionExpression",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{origins:{service:{read:{source:"displayField"}}}}})],i.prototype,"displayField",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:w})],i.prototype,"editFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"editingInfo",void 0),(0,r.Cg)([(0,p.w)("editingInfo")],i.prototype,"readEditingInfo",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"effectiveCapabilities",null),(0,r.Cg)([(0,l.MZ)()],i.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,l.MZ)((()=>{const e=(0,n.o8)(m.Yj),t=e.json.origins;return t["web-map"]={read:!1,write:!1},t["portal-item"]={read:!1,write:!1},e})())],i.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,l.MZ)({type:Z.A,json:{name:"layerDefinition.floorInfo",write:{layerContainerTypes:d.K}}})],i.prototype,"floorInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:y.A,json:{origins:{service:{read:{source:"extent"}}}}})],i.prototype,"fullExtent",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"gdbVersion",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:b,json:{read:{source:"geometryProperties"}}})],i.prototype,"geometryFieldsInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:M.iX.read}}}})],i.prototype,"geometryType",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"globalIdField",void 0),(0,r.Cg)([(0,p.w)("service","globalIdField",["globalIdField","fields"])],i.prototype,"readGlobalIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasFullEditingRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasM",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"hasUpdateItemRestrictions",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{origins:{service:{read:!0}}}})],i.prototype,"hasZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,type:c.A})],i.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,l.MZ)({type:Date})],i.prototype,"historicMoment",void 0),(0,r.Cg)([(0,l.MZ)({type:o.A.ofType(C),readOnly:!0})],i.prototype,"indexes",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isTable",void 0),(0,r.Cg)([(0,p.w)("service","isTable",["type"])],i.prototype,"readIsTableFromService",null),(0,r.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{read:!1,write:{target:"id"}}},read:!1}})],i.prototype,"layerId",void 0),(0,r.Cg)([(0,l.MZ)(m.hG)],i.prototype,"maxScale",void 0),(0,r.Cg)([(0,p.w)("service","maxScale",["maxScale","effectiveMaxScale"])],i.prototype,"readMaxScale",null),(0,r.Cg)([(0,l.MZ)(m.hn)],i.prototype,"minScale",void 0),(0,r.Cg)([(0,p.w)("service","minScale",["minScale","effectiveMinScale"])],i.prototype,"readMinScale",null),(0,r.Cg)([(0,l.MZ)({type:String})],i.prototype,"objectIdField",void 0),(0,r.Cg)([(0,p.w)("service","objectIdField",["objectIdField","fields"])],i.prototype,"readObjectIdFieldFromService",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"parsedUrl",null),(0,r.Cg)([(0,l.MZ)((0,v.P6)("preferredTimeReference"))],i.prototype,"preferredTimeZone",void 0),(0,r.Cg)([(0,l.MZ)({type:[F.A],readOnly:!0})],i.prototype,"relationships",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnM",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean})],i.prototype,"returnZ",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0,json:{write:!1}})],i.prototype,"serverGens",void 0),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"serviceDefinitionExpression",void 0),(0,r.Cg)([(0,p.w)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],i.prototype,"readServiceDefinitionExpression",null),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"serviceItemId",void 0),(0,r.Cg)([(0,l.MZ)()],i.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,l.MZ)({type:h.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}}}})],i.prototype,"spatialReference",void 0),(0,r.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{origins:{service:{read:!0}}}})],i.prototype,"subtypeField",void 0),(0,r.Cg)([(0,l.MZ)({type:[O],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],i.prototype,"subtypes",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],i.prototype,"trackIdField",void 0),(0,r.Cg)([(0,l.MZ)({type:[String],readOnly:!0})],i.prototype,"uniqueIdFields",void 0),(0,r.Cg)([(0,p.w)("service","uniqueIdFields",["uniqueIdInfo.OIDFieldContainsHashValue","uniqueIdInfo.fields"])],i.prototype,"readUniqueIdFields",null),(0,r.Cg)([(0,l.MZ)((0,j.b)({nonStandardUrlAllowed:!0}))],i.prototype,"url",void 0),(0,r.Cg)([(0,l.MZ)({json:{origins:{service:{read:!0}},read:!1}})],i.prototype,"version",void 0),(0,r.Cg)([(0,p.w)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],i.prototype,"readVersion",null),(0,r.Cg)([(0,l.MZ)({readOnly:!0})],i.prototype,"isUrlHostModified",null),i=(0,r.Cg)([(0,a.$)("esri.layers.mixins.FeatureLayerBase")],i),i}},91908:(e,t,i)=>{i.d(t,{D:()=>n});var r=i(60694);const o=[];function n(e,t){if((0,r.Wo)(e.url??""))return!0;const{wkid:i}=t;for(const t of o){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(i))return!1}return!0}o.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}]),o.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}]),o.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}]),o.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}]),o.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}])},96184:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(31635),o=i(69540),n=i(25482),s=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),p=i(40608),a=i(43937),d=i(64272),u=i(26253),y=i(56400);function c(e,t){return u.T.fromJSON({value:e,unit:t})}let h=class extends((0,o.OU)(n.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?d.T.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?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r.Cg)([(0,s.MZ)({type:d.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r.Cg)([(0,a.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r.Cg)([(0,s.MZ)({type:u.T,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r.Cg)([(0,a.K)("interval")],h.prototype,"writeInterval",null),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r.Cg)([(0,s.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,r.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,r.Cg)([(0,p.$)("esri.layers.support.TimeInfo")],h)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3549,5549,7694],{4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=i(34275),r=i(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},6797:(e,t,i)=>{i.d(t,{Mj:()=>f,Ui:()=>m,w2:()=>d});var n=i(65008),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=a(e),r=a(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),f=n.filter(e=>!r.includes(e)),d=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,f).sort(),m=c(e);if(m&&o.has(m)&&d.length)return{type:"complete",oldValue:e,newValue:t};let h;const y=l(e)&&l(t);for(const n of d){const r=u(e,n),s=u(t,n);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=h?h.diff[n]=o:h={type:"partial",diff:{[n]:o}})}}return h}function f(e,t){return function(e,t){if(null==e)return!1;const i=t.split(".");let n=e;for(const e of i){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const t=n.diff[e];if(!t)return!1;n=t}}return!0}(e,t)}function d(e,t){if(!e)return!1;if("partial"===e.type){const i=Object.keys(e.diff);return 1===i.length&&i[0]===t}return!1}function m(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093:(e,t,i)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,l,a,u,c,p,f,d,m,h){return[e,t,i,n,r,s,o,l,a,u,c,p,f,d,m,h]}},Symbol.toStringTag,{value:"Module"}))},13069:(e,t,i)=>{i.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17311:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(31635),r=i(65008),s=i(4576),o=i(60999),l=i(7762),a=i(10107),u=(i(44208),i(53966),i(40608)),c=i(30524),p=i(43668);let f=class extends r.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),n=this.fieldsIndex.get(i.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const n=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],i)).get(n)??""}async getTitles(e,t,i){const n=new Map,r=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:s}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:l}=this,a=l&&o;t.forEach(t=>{const i=t.getObjectId()??t.attributes[e.objectIdField],u=a?s({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,r).global,layer:e,text:l}):"";n.set(i,u)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(s.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=i;const r=await e.queryFeatures(n);if(r?.features.length===t.length)return r.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),n=e?.name??i.fieldName;i.fieldName=n,t.set(n.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],r={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{r[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const s={...t.attributes,...r};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:s,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"displayField",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fields",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"objectIdField",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"requiredFields",null),f=(0,n.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],f)},32730:(e,t,i)=>{i.d(t,{BI:()=>y,D3:()=>m,XJ:()=>h,lc:()=>d,mX:()=>b,rU:()=>g,tH:()=>_});var n=i(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",f=" + "+c;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function h(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function y(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(T);return t?.[1].trim()||null}(t.expression);case"arcade":return _(t.expression)}return null}function b(e){let t;return e?(t=(0,n.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,f)):t='""',t}const T=/^\s*\{([^}]+)\}\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,F=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function _(e){if(!e)return null;let t=x.exec(e)||F.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},41366:(e,t,i)=>{i.d(t,{K:()=>f,Q:()=>u});var n=i(31635),r=i(66552),s=i(53966),o=i(10107),l=(i(44208),i(87811),i(93223)),a=i(40608);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",f=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&c||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},41560:(e,t,i)=>{i.d(t,{Ch:()=>o,mW:()=>s});var n=i(34727),r=i(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,i){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(i)),t[1]=Math.min(t[1],p(n));return t}(e);if(s&&((0,n.gg)(t,s[0])||(0,n.ZH)(i,s[1])))return"";const o=Array.from(l(e,t,i)),a=function(e,t,i){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,n.ZH)(r,t)||(0,n.gg)(s,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],r=e[t+1];if((0,n.ZH)(c(r.minScale),p(i.maxScale)))return!0}return!1}(o,t,i)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,i){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)a(n.minScale,n.maxScale,t,i)&&(yield n)}}function a(e,t,i,r){return e=c(e),i=c(i),t=p(t),!(!(0,n.Sp)(i,e)&&(r??i)>e||(0,n.Hx)(t,i)||void 0!==r&&(0,n.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},50498:(e,t,i)=>{i.d(t,{Ye:()=>p,gy:()=>c,yR:()=>f});var n=i(66552),r=i(5443),s=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>x});var n,r=i(31635),s=i(13874),o=i(69540),l=i(51447),a=i(25482),u=i(53966),c=i(36708),p=i(24326),f=i(10107),d=(i(44208),i(87811),i(40608)),m=i(12195),h=i(65864),y=i(50498),g=i(54339),b=i(33910);function T(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let x=class extends((0,o.OU)(a.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}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),"mesh"!==e?.type&&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,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=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i&&"object"==typeof i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,g.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:T(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,h.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],x.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,f.MZ)({value:null})],x.prototype,"attributes",null),(0,r.Cg)([(0,f.MZ)({value:null,types:y.yR,json:{read:h.rS}})],x.prototype,"geometry",null),(0,r.Cg)([(0,f.MZ)({type:Boolean})],x.prototype,"isAggregate",void 0),(0,r.Cg)([(0,f.MZ)({clonable:!1})],x.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"origin",void 0),(0,r.Cg)([(0,f.MZ)({type:s.A,value:null})],x.prototype,"popupTemplate",null),(0,r.Cg)([(0,f.MZ)({clonable:"reference"})],x.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,f.MZ)({value:null,types:b.Es})],x.prototype,"symbol",null),(0,r.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],x.prototype,"_version",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,value:!0})],x.prototype,"visible",null),x=n=(0,r.Cg)([(0,d.$)("esri.Graphic")],x)},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},70328:(e,t,i)=>{i.d(t,{BI:()=>T,DC:()=>p,Ej:()=>d,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>c,aI:()=>F,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>f,is:()=>x,qv:()=>M,vI:()=>h,vY:()=>l,v_:()=>_,vt:()=>s,w1:()=>u});var n=i(5443),r=(i(19419),i(4197));function s(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,i,n=s()){return y(n,M),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[i,n,s,o,l,a]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=a,t[6]=i,t[7]=l,t[8]=s,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function h(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,M):s(M)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function F(e,t,i){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];s()},95466:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(49186),r=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const f=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],g(e))}static fromLayerJSON(e){return new d(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=h(t);if(t&&n){const r=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(m(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(f,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function m(e){return e.trim().toLowerCase()}function h(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,c.ZS)(n.timeReference):l:null,f=new Map([[m(r?.creationDateField??""),a],[m(r?.editDateField??""),a],[m(s),p],[m(o),p]]);for(const{name:n,type:r}of e.fields)if(y.has(r))t.set(n,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,u.L5);else{const e=f.get(m(n??""))??l;t.set(n,e)}return t}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3549,5549,7694],{4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=i(34275),r=i(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},6797:(e,t,i)=>{i.d(t,{Mj:()=>f,Ui:()=>m,w2:()=>d});var n=i(65008),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=a(e),r=a(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),f=n.filter(e=>!r.includes(e)),d=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,f).sort(),m=c(e);if(m&&o.has(m)&&d.length)return{type:"complete",oldValue:e,newValue:t};let h;const y=l(e)&&l(t);for(const n of d){const r=u(e,n),s=u(t,n);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=h?h.diff[n]=o:h={type:"partial",diff:{[n]:o}})}}return h}function f(e,t){return function(e,t){if(null==e)return!1;const i=t.split(".");let n=e;for(const e of i){if("complete"===n.type)return!0;if("partial"!==n.type)return!1;{const t=n.diff[e];if(!t)return!1;n=t}}return!0}(e,t)}function d(e,t){if(!e)return!1;if("partial"===e.type){const i=Object.keys(e.diff);return 1===i.length&&i[0]===t}return!1}function m(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},9093:(e,t,i)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,l,a,u,c,p,f,d,m,h){return[e,t,i,n,r,s,o,l,a,u,c,p,f,d,m,h]}},Symbol.toStringTag,{value:"Module"}))},13069:(e,t,i)=>{i.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17311:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(31635),r=i(65008),s=i(4576),o=i(60999),l=i(7762),a=i(10107),u=(i(44208),i(53966),i(40608)),c=i(30524),p=i(43668);let f=class extends r.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,p.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new l.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),n=this.fieldsIndex.get(i.at(-1)??"");n&&e.add(n.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){const n=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],i)).get(n)??""}async getTitles(e,t,i){const n=new Map,r=i?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:s}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);i?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:o,workingTitle:l}=this,a=l&&o;t.forEach(t=>{const i=t.getObjectId()??t.attributes[e.objectIdField],u=a?s({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,r).global,layer:e,text:l}):"";n.set(i,u)})}catch{}return n}async _checkAndReQueryGraphics(e,t){const i=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(s.Ru);if(i.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const n=e.createQuery();n.where="1=1",n.outFields=[...this.requiredFields],n.objectIds=i;const r=await e.queryFeatures(n);if(r?.features.length===t.length)return r.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),n=e?.name??i.fieldName;i.fieldName=n,t.set(n.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const n=this.effectivePopupTemplate?.fieldInfos??[],r={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{r[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const s={...t.attributes,...r};return{global:this._featureUtils.formatAttributes({fieldInfos:n,attributes:s,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"_featureUtils",void 0),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"displayField",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fieldInfoMap",null),(0,n.Cg)([(0,a.MZ)()],f.prototype,"fields",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"objectIdField",void 0),(0,n.Cg)([(0,a.MZ)()],f.prototype,"requiredFields",null),f=(0,n.Cg)([(0,u.$)("esri.layers.support.TitleCreator")],f)},32730:(e,t,i)=>{i.d(t,{BI:()=>y,D3:()=>m,XJ:()=>h,lc:()=>d,mX:()=>b,rU:()=>g,tH:()=>M});var n=i(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",f=" + "+c;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function h(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function y(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return b(t.expression);case"arcade":return t.expression}return null}function g(e){const t=h(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(T);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function b(e){let t;return e?(t=(0,n.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,f)):t='""',t}const T=/^\s*\{([^}]+)\}\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,F=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=x.exec(e)||F.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}},41366:(e,t,i)=>{i.d(t,{K:()=>f,Q:()=>u});var n=i(31635),r=i(66552),s=i(53966),o=i(10107),l=(i(44208),i(87811),i(93223)),a=i(40608);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",f=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&c||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},41560:(e,t,i)=>{i.d(t,{Ch:()=>o,mW:()=>s});var n=i(34727),r=i(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,i){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(i)),t[1]=Math.min(t[1],p(n));return t}(e);if(s&&((0,n.gg)(t,s[0])||(0,n.ZH)(i,s[1])))return"";const o=Array.from(l(e,t,i)),a=function(e,t,i){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,n.ZH)(r,t)||(0,n.gg)(s,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],r=e[t+1];if((0,n.ZH)(c(r.minScale),p(i.maxScale)))return!0}return!1}(o,t,i)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,i){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)a(n.minScale,n.maxScale,t,i)&&(yield n)}}function a(e,t,i,r){return e=c(e),i=c(i),t=p(t),!(!(0,n.Sp)(i,e)&&(r??i)>e||(0,n.Hx)(t,i)||void 0!==r&&(0,n.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},50498:(e,t,i)=>{i.d(t,{Ye:()=>p,gy:()=>c,yR:()=>f});var n=i(66552),r=i(5443),s=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),f={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>F});var n,r=i(31635),s=i(13874),o=i(69540),l=i(51447),a=i(25482),u=i(53966),c=i(36708),p=i(24326),f=i(10107),d=(i(44208),i(87811),i(40608)),m=i(12195),h=i(65864),y=i(50498),g=i(60950),b=i(54339),T=i(33910);function x(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let F=class extends((0,o.OU)(a.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}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),"mesh"!==e?.type&&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,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,g.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,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 i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=this.sourceLayer??this.layer;return e?(0,b.r)(this,e):null}getGlobalId(){const e=this.sourceLayer??this.layer;return e&&"globalIdField"in e&&e.globalIdField?this.getAttribute(e.globalIdField):null}toJSON(){return{aggregateGeometries:x(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,m.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.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)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&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",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,h.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],F.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,f.MZ)({value:null})],F.prototype,"attributes",null),(0,r.Cg)([(0,f.MZ)({value:null,types:y.yR,json:{read:h.rS}})],F.prototype,"geometry",null),(0,r.Cg)([(0,f.MZ)({type:Boolean})],F.prototype,"isAggregate",void 0),(0,r.Cg)([(0,f.MZ)({clonable:!1})],F.prototype,"layer",void 0),(0,r.Cg)([(0,f.MZ)({clonable:"reference"})],F.prototype,"origin",void 0),(0,r.Cg)([(0,f.MZ)({type:s.A,value:null})],F.prototype,"popupTemplate",null),(0,r.Cg)([(0,f.MZ)({clonable:"reference"})],F.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,f.MZ)({value:null,types:T.Es})],F.prototype,"symbol",null),(0,r.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],F.prototype,"_version",void 0),(0,r.Cg)([(0,f.MZ)({type:Boolean,value:!0})],F.prototype,"visible",null),F=n=(0,r.Cg)([(0,d.$)("esri.Graphic")],F)},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},60950:(e,t,i)=>{i.d(t,{E_:()=>r,ym:()=>n});const n=Symbol("popupProvider");function r(e){return function(e){return!!e&&n in e}(e)?e[n]:null}},70328:(e,t,i)=>{i.d(t,{BI:()=>T,DC:()=>p,Ej:()=>d,Ie:()=>g,Jt:()=>b,Ne:()=>m,RF:()=>c,aI:()=>F,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>f,is:()=>x,qv:()=>_,vI:()=>h,vY:()=>l,v_:()=>M,vt:()=>s,w1:()=>u});var n=i(5443),r=(i(19419),i(4197));function s(e=M){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,i,n=s()){return y(n,_),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[i,n,s,o,l,a]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=a,t[6]=i,t[7]=l,t[8]=s,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function f(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function h(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,_):s(_)}function b(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function T(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function x(e){return 6===e.length}function F(e,t,i){if(null==e||null==t)return e===t;if(!x(e)||!x(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const _=[1/0,1/0,1/0,-1/0,-1/0,-1/0],M=[0,0,0,0,0,0];s()},95466:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(49186),r=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(96285);const f=new Map;class d{static fromJSON(e){return new d(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new d(e.fields??[],g(e))}static fromLayerJSON(e){return new d(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=h(t);if(t&&n){const r=m(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(m(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(f,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function m(e){return e.trim().toLowerCase()}function h(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,c.ZS)(n.timeReference):l:null,f=new Map([[m(r?.creationDateField??""),a],[m(r?.editDateField??""),a],[m(s),p],[m(o),p]]);for(const{name:n,type:r}of e.fields)if(y.has(r))t.set(n,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,u.L5);else{const e=f.get(m(n??""))??l;t.set(n,e)}return t}}}]);