@arcgis/core 5.0.0-next.65 → 5.0.0-next.67

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 (315) hide show
  1. package/Ground.d.ts +4 -4
  2. package/Map.d.ts +1 -1
  3. package/WebDocument2D.d.ts +2 -3
  4. package/WebScene.d.ts +2 -3
  5. package/applications/Components/QuantityFormatter.d.ts +14 -1
  6. package/applications/Components/SelectionOperation.d.ts +45 -9
  7. package/applications/Components/SketchTooltipControls.d.ts +31 -6
  8. package/applications/Components/actionUtils.d.ts +1 -0
  9. package/applications/Components/analysisUtils.d.ts +98 -26
  10. package/applications/Components/arcadeEditorUtils.d.ts +3 -0
  11. package/applications/Components/arcadeFeatureUtils.d.ts +34 -6
  12. package/applications/Components/baUtils.d.ts +8 -8
  13. package/applications/Components/basemapUtils.d.ts +2 -0
  14. package/applications/Components/drawUtils.d.ts +6 -1
  15. package/applications/Components/featureUtils.d.ts +9 -0
  16. package/applications/Components/fontUtils.d.ts +2 -0
  17. package/applications/Components/formatUtils.d.ts +2 -0
  18. package/applications/Components/getDefaultUnits.d.ts +2 -0
  19. package/applications/Components/imageryUtils.d.ts +135 -27
  20. package/applications/Components/layerOriginUtils.d.ts +5 -0
  21. package/applications/Components/layersEffectsJsonUtils.d.ts +2 -0
  22. package/applications/Components/previewSymbol2D.d.ts +2 -0
  23. package/applications/Components/reactiveUtils.d.ts +13 -9
  24. package/applications/Components/sanitizerUtils.d.ts +2 -0
  25. package/applications/Components/stringUtils.d.ts +5 -0
  26. package/applications/Components/styleUtils.d.ts +2 -0
  27. package/applications/Components/svgUtils.d.ts +4 -0
  28. package/applications/Components/testUtils.d.ts +3 -0
  29. package/applications/Components/viewUtils.d.ts +2 -0
  30. package/applications/Components/webStyleSymbolUtils.d.ts +2 -0
  31. package/applications/Excalibur/videoViewUtils.d.ts +19 -3
  32. package/applications/ExperienceBuilder/sketchUtils.d.ts +10 -1
  33. package/applications/KnowledgeStudio/dataModelVisualization.d.ts +2 -0
  34. package/applications/KnowledgeStudio/generalSdkInternalAccess.d.ts +33 -4
  35. package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +73 -10
  36. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +12 -1
  37. package/applications/KnowledgeStudio/reshape.d.ts +144 -28
  38. package/applications/KnowledgeStudio/resourceSerializationUtils.d.ts +17 -3
  39. package/applications/MapViewer/layerUtils.d.ts +2 -0
  40. package/applications/MapViewer/mediaUtils.d.ts +42 -8
  41. package/applications/MapViewer/templateUtils.d.ts +78 -16
  42. package/applications/PortalApp/layerUtils.d.ts +2 -0
  43. package/applications/SceneViewer/colorUtils.d.ts +2 -0
  44. package/applications/SceneViewer/devEnvironmentUtils.d.ts +3 -0
  45. package/applications/SceneViewer/layerUtils.d.ts +5 -3
  46. package/applications/SceneViewer/sceneViewerUtils.d.ts +52 -5
  47. package/applications/SceneViewer/symbolUtils.d.ts +2 -0
  48. package/applications/Urban/LineImagePattern3D.d.ts +8 -2
  49. package/applications/Urban/imagePatternUtils.d.ts +10 -2
  50. package/applications/Urban/meshUtils.d.ts +2 -0
  51. package/applications/WebEditor/sketchUtils.d.ts +24 -4
  52. package/assets/components/assets/icon/fileEsl16.json +1 -0
  53. package/assets/components/assets/icon/fileEsl24.json +1 -0
  54. package/assets/components/assets/icon/fileEsl32.json +1 -0
  55. package/assets/esri/core/workers/RemoteClient.js +1 -1
  56. package/assets/esri/core/workers/chunks/04958494022f82dca473.js +1 -0
  57. package/assets/esri/core/workers/chunks/{22dd5cecc7e2d4d0baf8.js → 055fdc5134d54174444d.js} +2 -2
  58. package/assets/esri/core/workers/chunks/0629087bd5bb8048493e.js +1 -0
  59. package/assets/esri/core/workers/chunks/{ee186ddbb1eb5144a790.js → 08359ae020238a565955.js} +1 -1
  60. package/assets/esri/core/workers/chunks/0b7bbdc0d71ee6721751.js +2 -0
  61. package/assets/esri/core/workers/chunks/{5909a0e763fddc3542e7.js.LICENSE.txt → 0b7bbdc0d71ee6721751.js.LICENSE.txt} +1 -1
  62. package/assets/esri/core/workers/chunks/0cd3acfbf9ee991bdab4.js +1 -0
  63. package/assets/esri/core/workers/chunks/0f8149fdcf0adeca268e.js +1 -0
  64. package/assets/esri/core/workers/chunks/{aa7a1705266eec353cb6.js → 0fc22ad791d3ec0a9c5e.js} +1 -1
  65. package/assets/esri/core/workers/chunks/119822a646834c1cebc0.js +1 -0
  66. package/assets/esri/core/workers/chunks/1a6d2f525dd30d08cf9b.js +1 -0
  67. package/assets/esri/core/workers/chunks/204d738c8b651314ae64.js +1 -0
  68. package/assets/esri/core/workers/chunks/{e95821a199e10b389e29.js → 25f3ee666f545a7a7993.js} +2 -2
  69. package/assets/esri/core/workers/chunks/{e95821a199e10b389e29.js.LICENSE.txt → 25f3ee666f545a7a7993.js.LICENSE.txt} +1 -1
  70. package/assets/esri/core/workers/chunks/36ecf951c0c7dad84b69.js +1 -0
  71. package/assets/esri/core/workers/chunks/37002a46f03a9fc5f644.js.LICENSE.txt +1 -1
  72. package/assets/esri/core/workers/chunks/43e2c1d72cd9c8beed2f.js.LICENSE.txt +1 -1
  73. package/assets/esri/core/workers/chunks/45a9cd722e98dd1548ae.js +1 -0
  74. package/assets/esri/core/workers/chunks/4773a358832f87963766.js +1 -0
  75. package/assets/esri/core/workers/chunks/492515860198f38dd698.js +1 -0
  76. package/assets/esri/core/workers/chunks/4f6f181ee83b4d484518.js +1 -0
  77. package/assets/esri/core/workers/chunks/59a45533e96cedf1c480.js +1 -0
  78. package/assets/esri/core/workers/chunks/{c2aeecd27e004c6cd7e1.js → 5b9f2aa3ba1bf12c3240.js} +2 -2
  79. package/assets/esri/core/workers/chunks/{c2aeecd27e004c6cd7e1.js.LICENSE.txt → 5b9f2aa3ba1bf12c3240.js.LICENSE.txt} +1 -1
  80. package/assets/esri/core/workers/chunks/679cd6424e0e2d7f372b.js +1 -0
  81. package/assets/esri/core/workers/chunks/6be530ab81291745485b.js.LICENSE.txt +1 -1
  82. package/assets/esri/core/workers/chunks/73c416ae0ec5a1815591.js.LICENSE.txt +1 -1
  83. package/assets/esri/core/workers/chunks/{23b623637126f8411a30.js → 7aec07f2482934259d12.js} +1 -1
  84. package/assets/esri/core/workers/chunks/7bed14d9bcd7fc5e2eec.js +1 -0
  85. package/assets/esri/core/workers/chunks/{741d170187e58e81584d.js → 7d744554d14057d9b2b1.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{e85da52d9cc7d9396872.js → 942fad4ec96295672ce8.js} +1 -1
  87. package/assets/esri/core/workers/chunks/9ccabf8142fb5de4d3e2.js.LICENSE.txt +1 -1
  88. package/assets/esri/core/workers/chunks/aeb524eded012217a865.js +1 -0
  89. package/assets/esri/core/workers/chunks/{ac6f002cfad42e60de8f.js → b48033645091c91e0d88.js} +1 -1
  90. package/assets/esri/core/workers/chunks/b7960ab9a9da7f88184c.js +1 -0
  91. package/assets/esri/core/workers/chunks/b8988771bfa4e785ebd6.js +1 -0
  92. package/assets/esri/core/workers/chunks/{ac83c2999a3d2ffb4356.js → c7838ac0db8570a2d2c1.js} +1 -1
  93. package/assets/esri/core/workers/chunks/c91ef3814e7f024043cf.js +1 -0
  94. package/assets/esri/core/workers/chunks/{310f3268582e61cd86da.js → d21480925a8bc9c7de96.js} +1 -1
  95. package/assets/esri/core/workers/chunks/d75adfd4acb3c92accc9.js +1 -0
  96. package/assets/esri/core/workers/chunks/d9ca754f51b9812bb179.js +1 -0
  97. package/assets/esri/core/workers/chunks/d9ef0b3341e2744d8f2f.js +1 -0
  98. package/assets/esri/core/workers/chunks/e4ba850e8344ac2c5fc0.js +1 -0
  99. package/assets/esri/core/workers/chunks/e5aac523c37d906eece6.js +1 -0
  100. package/assets/esri/core/workers/chunks/{f351007cdcd0938d3b6c.js → eeb24a4ab4993f1f4e8e.js} +1 -1
  101. package/assets/esri/core/workers/chunks/f25bebd2b6eb0d0f6626.js.LICENSE.txt +1 -1
  102. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  103. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  104. package/assets/esri/libs/text/pkg/bundle_bg.wasm +0 -0
  105. package/chunks/bundle2.js +5 -0
  106. package/config.js +1 -1
  107. package/copyright.txt +70 -1
  108. package/core/BidiText.js +1 -1
  109. package/geometry/support/FloatArray.js +1 -1
  110. package/geometry/support/Indices.js +1 -1
  111. package/interfaces.d.ts +24 -24
  112. package/kernel.js +1 -1
  113. package/layers/BingMapsLayer.d.ts +2 -3
  114. package/layers/BuildingSceneLayer.d.ts +2 -4
  115. package/layers/CatalogLayer.d.ts +2 -4
  116. package/layers/DimensionLayer.d.ts +2 -3
  117. package/layers/ElevationLayer.d.ts +2 -4
  118. package/layers/FeatureLayer.d.ts +2 -4
  119. package/layers/GaussianSplatLayer.d.ts +1 -3
  120. package/layers/GeoJSONLayer.d.ts +2 -3
  121. package/layers/GeoRSSLayer.d.ts +2 -3
  122. package/layers/GroupLayer.d.ts +2 -3
  123. package/layers/ImageryLayer.d.ts +2 -5
  124. package/layers/ImageryTileLayer.d.ts +3 -7
  125. package/layers/IntegratedMesh3DTilesLayer.d.ts +2 -4
  126. package/layers/IntegratedMeshLayer.d.ts +2 -4
  127. package/layers/KMLLayer.d.ts +2 -3
  128. package/layers/KnowledgeGraphLayer.d.ts +2 -4
  129. package/layers/LineOfSightLayer.d.ts +2 -3
  130. package/layers/LinkChartLayer.d.ts +2 -3
  131. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  132. package/layers/MapImageLayer.d.ts +2 -4
  133. package/layers/MapNotesLayer.d.ts +2 -3
  134. package/layers/MediaLayer.d.ts +3 -4
  135. package/layers/OGCFeatureLayer.d.ts +2 -3
  136. package/layers/ParquetLayer.d.ts +2 -3
  137. package/layers/PointCloudLayer.d.ts +2 -4
  138. package/layers/RouteLayer.d.ts +2 -3
  139. package/layers/SceneLayer.d.ts +2 -4
  140. package/layers/StreamLayer.d.ts +2 -4
  141. package/layers/SubtypeGroupLayer.d.ts +2 -4
  142. package/layers/TileLayer.d.ts +2 -4
  143. package/layers/UnknownLayer.d.ts +2 -3
  144. package/layers/UnsupportedLayer.d.ts +2 -3
  145. package/layers/VectorTileLayer.d.ts +2 -4
  146. package/layers/VideoLayer.d.ts +8 -9
  147. package/layers/ViewshedLayer.d.ts +2 -3
  148. package/layers/VoxelLayer.d.ts +2 -4
  149. package/layers/WCSLayer.d.ts +2 -4
  150. package/layers/WFSLayer.d.ts +2 -3
  151. package/layers/WMSLayer.d.ts +5 -6
  152. package/layers/WMTSLayer.d.ts +4 -5
  153. package/layers/WebTileLayer.d.ts +2 -3
  154. package/layers/buildingSublayers/BuildingSublayer.d.ts +3 -3
  155. package/layers/buildingSublayers/BuildingSublayer.js +1 -1
  156. package/layers/catalog/CatalogDynamicGroupLayer.d.ts +2 -3
  157. package/layers/catalog/CatalogFootprintLayer.d.ts +2 -3
  158. package/layers/graphics/data/QueryEngineResult.js +1 -1
  159. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +4 -6
  160. package/layers/{support/media.d.ts → media/types.d.ts} +9 -9
  161. package/layers/mixins/ArcGISImageService.d.ts +1 -1
  162. package/layers/mixins/ImageryTileMixin.d.ts +1 -1
  163. package/layers/raster/datasets/wcsCoverageParser.d.ts +1 -1
  164. package/layers/raster/functions/creators/createLocalFunctions.d.ts +1 -1
  165. package/layers/raster/functions/types.d.ts +1 -1
  166. package/layers/{support/RasterTypes.d.ts → raster/types.d.ts} +2 -2
  167. package/layers/support/ElevationQuery.d.ts +2 -2
  168. package/layers/support/FeatureType.d.ts +2 -2
  169. package/layers/support/Field.d.ts +2 -3
  170. package/layers/support/FieldConfiguration.d.ts +1 -1
  171. package/layers/support/ImageElement.d.ts +3 -3
  172. package/layers/support/LocalMediaElementSource.d.ts +1 -1
  173. package/layers/support/MediaElementBase.d.ts +4 -7
  174. package/layers/support/PixelBlock.d.ts +1 -1
  175. package/layers/support/RasterFunction.d.ts +1 -1
  176. package/layers/support/RasterInfo.d.ts +1 -1
  177. package/layers/support/Sublayer.d.ts +2 -3
  178. package/layers/support/Subtype.d.ts +2 -2
  179. package/layers/support/SubtypeSublayer.d.ts +2 -3
  180. package/layers/support/VideoElement.d.ts +2 -2
  181. package/layers/support/WMSSublayer.d.ts +6 -6
  182. package/layers/support/WMSSublayer.js +1 -1
  183. package/layers/support/domains.js +1 -1
  184. package/layers/support/rasterFunctionUtils.d.ts +1 -1
  185. package/layers/support/tiles3DUtils.js +1 -1
  186. package/layers/support/types.d.ts +33 -1
  187. package/layers/types.d.ts +17 -2
  188. package/layers/wmts/types.d.ts +2 -0
  189. package/libs/text/loadTextModule.js +5 -0
  190. package/linkChart/LinkChartProperties.d.ts +4 -6
  191. package/linkChart/LinkChartProperties.js +1 -1
  192. package/networks/Network.d.ts +2 -4
  193. package/networks/support/NamedTraceConfiguration.d.ts +3 -3
  194. package/networks/support/NamedTraceConfiguration.js +1 -1
  195. package/package.json +2 -2
  196. package/popup/FieldInfo.d.ts +1 -1
  197. package/request/process.js +1 -1
  198. package/rest/geometryService/types.d.ts +59 -0
  199. package/rest/geometryService.d.ts +3 -5
  200. package/rest/query/operations/query.js +1 -1
  201. package/rest/query/support/AttachmentInfo.d.ts +2 -2
  202. package/rest/support/AlgorithmicColorRamp.d.ts +2 -2
  203. package/rest/support/BinParametersBase.d.ts +2 -2
  204. package/rest/support/BinParametersBase.js +1 -1
  205. package/rest/support/DateBinTimeInterval.d.ts +1 -1
  206. package/rest/support/GeneralizeParameters.d.ts +1 -1
  207. package/rest/support/ImageSampleParameters.d.ts +1 -1
  208. package/rest/support/PrintTemplate.d.ts +4 -6
  209. package/rest/support/types.d.ts +17 -1
  210. package/smartMapping/support/adapters/support/utils.js +1 -1
  211. package/support/revision.js +1 -1
  212. package/symbols/WebStyleSymbol.d.ts +0 -24
  213. package/symbols/WebStyleSymbol.js +1 -1
  214. package/views/2d/engine/webgl/GlyphMosaic.js +1 -1
  215. package/views/2d/engine/webgl/GlyphSDFCreator.js +5 -0
  216. package/views/2d/engine/webgl/GlyphSource.js +1 -1
  217. package/views/2d/engine/webgl/TextureManager.js +1 -1
  218. package/views/2d/engine/webgl/definitions.js +1 -1
  219. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  220. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  221. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  222. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  223. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  224. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  225. package/views/2d/layers/BaseLayerView2D.d.ts +3 -6
  226. package/views/2d/layers/BaseLayerViewGL2D.d.ts +3 -6
  227. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  228. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  229. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillController.js +1 -1
  230. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  231. package/views/3d/layers/I3SMeshView3D.js +1 -1
  232. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  233. package/views/3d/layers/PointCloudLayerView3D.js +1 -1
  234. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  235. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  236. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  237. package/views/3d/webgl-engine/lib/edgeRendering/EdgeProcessingWorker.js +1 -1
  238. package/views/3d/webgl-engine/lib/edgeRendering/EdgeWorkerHandle.js +1 -1
  239. package/views/VideoView.d.ts +2 -3
  240. package/views/View2D.d.ts +2 -3
  241. package/views/layers/MediaLayerViewMixin.d.ts +1 -1
  242. package/views/types.d.ts +1 -1
  243. package/webdoc/applicationProperties/SearchLayerField.d.ts +1 -1
  244. package/webdoc/applicationProperties/SearchTableField.d.ts +1 -1
  245. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +1 -1
  246. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  247. package/widgets/Editor/components/PendingFeatureList.js +1 -1
  248. package/widgets/Editor/components/workflowAdapters/pendingFeatureList/{CreateFeaturesWorkflowPendingFeatureListAdapter.ts.js → CreateFeaturesWorkflowPendingFeatureListAdapter.js} +1 -1
  249. package/widgets/Editor/types.d.ts +1 -1
  250. package/widgets/Feature.d.ts +3 -5
  251. package/widgets/FeatureForm/FieldInput.d.ts +2 -2
  252. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +1 -1
  253. package/widgets/FeatureTemplates/TemplateItem.d.ts +1 -1
  254. package/widgets/FeatureTemplates/types.d.ts +1 -1
  255. package/widgets/Features.d.ts +3 -5
  256. package/widgets/Print/CustomTemplate.d.ts +3 -4
  257. package/widgets/Print/TemplateOptions.d.ts +3 -4
  258. package/widgets/Print/types.d.ts +3 -4
  259. package/widgets/VideoPlayer/VideoPlayerViewModel.d.ts +1 -1
  260. package/assets/esri/core/workers/chunks/0099f4729c94c779ba35.js +0 -1
  261. package/assets/esri/core/workers/chunks/1ab98591d2f2bc604505.js +0 -1
  262. package/assets/esri/core/workers/chunks/1b838638e66e82d76cf3.js +0 -1
  263. package/assets/esri/core/workers/chunks/2a6231db5ee6cbfd59a5.js +0 -1
  264. package/assets/esri/core/workers/chunks/45b898367b6224dda46f.js +0 -1
  265. package/assets/esri/core/workers/chunks/4785cd108e2dec6e1697.js +0 -1
  266. package/assets/esri/core/workers/chunks/4d6d962d25aa836f53ee.js +0 -1
  267. package/assets/esri/core/workers/chunks/5909a0e763fddc3542e7.js +0 -2
  268. package/assets/esri/core/workers/chunks/5cee6c3ff23fb93f857a.js +0 -1
  269. package/assets/esri/core/workers/chunks/6035daa65fc3ebf86515.js +0 -1
  270. package/assets/esri/core/workers/chunks/7033fa18b7dd7bd3e49c.js +0 -1
  271. package/assets/esri/core/workers/chunks/7306b5b66e738a281d83.js +0 -1
  272. package/assets/esri/core/workers/chunks/7694abe44d55dae8872d.js +0 -1
  273. package/assets/esri/core/workers/chunks/964de713042f52d71e42.js +0 -1
  274. package/assets/esri/core/workers/chunks/ad92427bf597a6e0a299.js +0 -1
  275. package/assets/esri/core/workers/chunks/b285de471ca90f38ec25.js +0 -1
  276. package/assets/esri/core/workers/chunks/b8f83a272fc41765031d.js +0 -1
  277. package/assets/esri/core/workers/chunks/bcf612eabe7577540953.js +0 -1
  278. package/assets/esri/core/workers/chunks/c02b09f16241db233103.js +0 -1
  279. package/assets/esri/core/workers/chunks/c3007b916ba933137709.js +0 -1
  280. package/assets/esri/core/workers/chunks/cc5c1887e6d7079e5fe3.js +0 -1
  281. package/assets/esri/core/workers/chunks/ce8f075c814a8378c00c.js +0 -1
  282. package/assets/esri/core/workers/chunks/cfe1506a443fc84a0b91.js +0 -1
  283. package/assets/esri/core/workers/chunks/d723619579cc8f5ef2cd.js +0 -1
  284. package/assets/esri/core/workers/chunks/e69255e38ff200dda14b.js +0 -1
  285. package/core/MultiOriginJSONSupport.d.ts +0 -13
  286. package/core/NumericIdentifiable.d.ts +0 -6
  287. package/core/ReadOnlyMultiOriginJSONSupport.d.ts +0 -6
  288. package/core/WriteableMultiOriginJSONMixin.d.ts +0 -6
  289. package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.d.ts +0 -6
  290. package/layers/mixins/ArcGISService.d.ts +0 -6
  291. package/layers/mixins/RasterJobHandlerMixin.d.ts +0 -6
  292. package/layers/support/RasterFunctionProperties.d.ts +0 -2
  293. package/layers/support/domains.d.ts +0 -5
  294. package/layers/support/editableLayers.d.ts +0 -11
  295. package/layers/support/exifUtils.d.ts +0 -21
  296. package/layers/support/fieldFormatUtils.d.ts +0 -4
  297. package/layers/support/fieldType.d.ts +0 -2
  298. package/layers/support/layerUtils.d.ts +0 -4
  299. package/layers/support/wmtsUtils.d.ts +0 -2
  300. package/layers/video/videoUtils.d.ts +0 -5
  301. package/rest/geometryService/cut.d.ts +0 -7
  302. package/rest/geometryService/fromGeoCoordinateString.d.ts +0 -28
  303. package/rest/geometryService/toGeoCoordinateString.d.ts +0 -25
  304. package/rest/operations/generalize.d.ts +0 -3
  305. package/rest/support/DateBinUtils.d.ts +0 -2
  306. package/rest/support/colorRamps.d.ts +0 -6
  307. package/rest/support/fileFormat.d.ts +0 -4
  308. package/rest/support/layoutTemplate.d.ts +0 -2
  309. package/rest/support/reportTemplate.d.ts +0 -2
  310. package/views/2d/layers/LayerView2D.d.ts +0 -6
  311. package/views/Viewport2DBaseMixin.d.ts +0 -6
  312. package/views/layers/RefreshableLayerView.d.ts +0 -6
  313. package/widgets/Feature/support/FeatureContentMixin.d.ts +0 -6
  314. /package/layers/video/{IVideoController.d.ts → types.d.ts} +0 -0
  315. /package/layers/{support/wmsUtils.d.ts → wms/types.d.ts} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3367],{2272:(e,t,n)=>{n.d(t,{Dl:()=>u,gf:()=>f,jV:()=>l,lF:()=>c});var r=n(92602),i=n(70333),s=n(4718),o=n(84952),a=n(926);function l(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,s.o8)(e)}function c(e,t,n){const r={};for(const i in e){if("declaredClass"===i)continue;const s=e[i];if(null!=s&&"function"!=typeof s)if(Array.isArray(s))r[i]=s.map(e=>c(e));else if("object"==typeof s)if(s.toJSON){const e=s.toJSON(n?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?s:JSON.stringify(s);else r[i]=s}return r}async function f(e,t,s){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([n.e(7330),n.e(168),n.e(148)]).then(n.bind(n,50148));const l=await i.id.getCredential(e,s);return l?.token}},3367:(e,t,n)=>{n.d(t,{A:()=>w,B:()=>v,P:()=>g,g:()=>b,r:()=>A});var r=n(48938),i=n(66395),s=n(85935),o=n(78878),a=n(49186),l=n(53966),u=n(91869),c=n(20655),f=n(45475),p=n(67090),d=n(62791),h=n(14942),y=n(54218);class g{constructor(e,t){this.portal=e,this._debugLog=t}async translate(e){this.portal.loaded||await this.portal.load();const t=this.portal.helperServices?.aiUtilityServices;if(null==t)return{success:!1};const n=t.url+t.translateUtility;try{return e.requestSource??="arcade",{success:!0,results:(await(0,f.T)(n,e,{authMode:"no-prompt"})).map(e=>e.toJSON())}}catch(e){return null!=this._debugLog&&(e instanceof Error||e instanceof a.A)&&this._debugLog(`TranslateText error: ${e.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(e),{success:!1}}}}class m{constructor(e,t,n){this._parameters=e,this._maxTotalContentSize=t,this._maxContentsLength=n,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(e){const t=new Set(e.filter(e=>!this._normalizedContents.has(e.text)).map(e=>e.text));if(this._requests.length+t.size>this._maxContentsLength)return null;let n=0;for(const e of t)n+=e.length;if((n+this._contentsTotalSize)*(this._parameters.to.length??1)>this._maxTotalContentSize)return null;const r=this._requests.length;for(const{key:t,text:n}of e)(0,u.tE)(this._normalizedContents,n,()=>[]).push({batchIdx:r,key:t});return this._requests.push(e),this._contentsTotalSize+=n,r}async send(e){const t=[],n=[];let r=0;for(const[e,i]of this._normalizedContents)t.push(new p.A({key:String(r++),text:e})),n.push(i);const i=new d.A(this._parameters);i.contents=t;const s=await e.translate(i);if(!s.success)return Array.from(this._requests,()=>s);const o=Array.from(this._requests,()=>({success:!0,results:[]}));for(const e of s.results){const t=Number(e.key);for(const r of n[t])o[r.batchIdx].results.push({...e,key:r.key})}return o}}function b(e){const t=[...new Set(e.to)].sort(),n=e.from??null,r=e.portalUrl,i=e.translator,s=e.apiKey??null;return JSON.stringify([t,n,r,i,s])}async function S(e,t,n){try{return(await e.yieldFor(n))[t]}catch{return{success:!1}}}class v{constructor(e,t,{maxTotalContentSize:n=5e4,maxContentsLength:r=1e3}={}){this._executor=e,this._service=t,this._openBatches=new Map,this._maxTotalContentSize=n,this._maxContentsLength=r}create(e){return{translate:async t=>{const n=b(t),{contents:r,to:i,from:s,translator:o,portalUrl:a,apiKey:l}=t;if(null==i)return{success:!1};if(null==r||r.every(e=>0===e.text.length))return{success:!1};const u=this._openBatches.get(n);if(null!=u){const t=u.data.tryAdd(r);if(null!=t)return await S(e,t,u);u.send()}const c=new m({to:i,from:s,translator:o,portalUrl:a,apiKey:l},this._maxTotalContentSize,this._maxContentsLength),f=c.tryAdd(r);if(null!=f){const t=this._executor.openBatch(c,{open:e=>{this._openBatches.set(n,e)},execute:e=>e.send(this._service),close:e=>{this._openBatches.get(n)===e&&this._openBatches.delete(n)}});return await S(e,f,t)}return await this._service.translate(t)}}}}function A(e){"async"===e.mode&&(e.functions[(0,r.X)("TranslateText")]=function(t,n){return e.standardFunctionAsync(t,n,async(e,t,n)=>{if((0,o.B)(n,2,3,e,t),!(0,y.Kg)(n[0])&&!(0,y.cy)(n[0])&&!(0,o.j)(n[0]))throw new s.D$(e,"InvalidParameter",t);const r=(0,o.N)(n[0]);if(!(0,y.Kg)(n[1])&&!(0,y.cy)(n[1])&&!(0,o.j)(n[1]))throw new s.D$(e,"InvalidParameter",t);const a=(0,o.N)(n[1]);let l=null;if(n.length>=3){if(!(0,y.Kg)(n[2]))throw new s.D$(e,"InvalidParameter",t);l=n[2]}const u=r.map((e,t)=>new p.A({key:String(t),text:e})),f=e.services?.portal??c.A.getDefault(),m=new d.A({to:a,contents:u,from:l,portalUrl:f.restUrl.replace(/\/sharing\/rest$/,"")}),S=new Map;let v=null;if(null!=e.lrucache){const t=e.lrucache;v??=b(m),m.contents=m.contents?.filter(e=>{const n=t.getCachedTranslation(v,e.text);return null==n||(S.set(e.key,{...n,key:e.key,text:e.text}),!1)})}if(m.contents?.length){const t=e.services?.translation??new g(f,e.console),n=await t.translate(m);if(!n.success)return new i.A({__proto__:null,success:!1});for(const t of n.results){const n=m.contents?.find(e=>e.key===t.key)?.text;if(null==n)throw new s.D$(null,"NeverReach",null);S.set(t.key,t),null!=e.lrucache&&(v??=b(m),e.lrucache.setCachedTranslation(v,n,{detectedLanguage:t.detectedLanguage,translation:t.translation}))}}const A=Array.from(u,t=>{const n=h.A.fromJSON(S.get(t.key));if(null==n)throw new s.D$(null,"NeverReach",null);return n.text=t.text,i.A.convertJsonToArcade(n.toJSON(),e.timeZone??"system",!0)});return new i.A({__proto__:null,success:!0,results:A})})})}const w=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:v,PortalTranslationService:g,getTranslateParametersKey:b,registerFunctions:A},Symbol.toStringTag,{value:"Module"}))},6800:(e,t,n)=>{n.d(t,{G:()=>l,y:()=>o});var r=n(99719),i=n(78878),s=n(54218);function o(e){a=e}let a;function l(e){return null===e?null:(0,i.e)(e)?e.clone():(0,i.d)(e)?e:(0,i.h)(e)?e.clone():(0,i.j)(e)?e.toArray().map(e=>l(e)):(0,s.cy)(e)?e.map(e=>l(e)):(0,i.k)(e)?a.createFromArcadeFeature(e):(0,i.l)(e)||(0,i.m)(e)?e:(0,i.n)(e)||"esri.arcade.Attachment"===e?.declaredClass?e.deepClone():("esri.arcade.Portal"===e?.declaredClass||(0,i.o)(e)||e instanceof r.x||(0,i.i)(e),e)}},7320:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(86738);class s extends r.A{constructor(e,t,n,r,i,s){super(e),this._lazyPt=[],this._hasZ=!1,this._hasM=!1,this._spRef=t,this._hasZ=n,this._hasM=r,this._cacheId=i,this._partId=s}get(e){if(void 0===this._lazyPt[e]){const t=this._elements[e];if(void 0===t)return;const n=new i.A(t[0],t[1],this._spRef);this._hasZ&&(n.z=t[2]),this._hasM&&(n.m=this._hasZ?t[3]:t[2]),n.cache._arcadeCacheId=this._cacheId.toString()+"-"+this._partId.toString()+"-"+e.toString(),this._lazyPt[e]=n}return this._lazyPt[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()+"-"+this._partId.toString()}}},7335:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(93818),i=n(7320);class s extends r.A{constructor(e,t,n,r,i){super(e),this._lazyPath=[],this._hasZ=!1,this._hasM=!1,this._hasZ=n,this._hasM=r,this._spRef=t,this._cacheId=i}get(e){if(void 0===this._lazyPath[e]){const t=this._elements[e];if(void 0===t)return;this._lazyPath[e]=new i.A(t,this._spRef,this._hasZ,this._hasM,this._cacheId,e)}return this._lazyPath[e]}equalityTest(e){return e===this||null!==e&&e instanceof s!=0&&e.getUniqueHash()===this.getUniqueHash()}getUniqueHash(){return this._cacheId.toString()}}},8631:(e,t,n)=>{n.d(t,{rS:()=>p,gK:()=>f}),n(44208);var r,i=n(53177),s=n(76357),o=n(31635),a=n(91429),l=n(93223);let u=class extends s.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var c=n(41628);const f={key:"type",base:s.A,typeMap:{range:c.A,"coded-value":i.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return c.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>c});var r=n(799),i=n(73444);const s={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,i.JK)()){let t=(e=e.toLowerCase())in s;if(!t){const n=e.split("-");n.length>1&&n[0]in s&&(e=n[0],t=!0),t||(e="en")}const[n,r,o="#,##0.###"]=s[e];return{decimal:n,group:r,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const r=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const r=(n=n||{}).customs.group,i=n.customs.decimal,s=t.split(";"),o=s[0];if((t=s[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const r=t.split("."),i="string"==typeof n.places&&n.places.indexOf(",");let s=n.places;i?s=n.places.slice(i+1):+s>=0||(s=(r[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(s))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(r[1]||n.places){i&&(n.places=n.places.slice(0,Math.max(0,i)));const e=void 0!==n.places?n.places:r[1]&&r[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+s<a.length&&(o[1]=a.slice(0,Math.max(0,Number(s))))}else o[1]&&o.pop();const l=r[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let c,f,p=r[0].lastIndexOf(",");if(-1!==p){c=r[0].length-p-1;const e=r[0].slice(0,p);p=e.lastIndexOf(","),-1!==p&&(f=e.length-p-1)}const d=[];for(let e=o[0];e;){const t=e.length-c;d.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",f&&(c=f,f=void 0)}return o[0]=d.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:i,group:r,places:n.places,round:n.round}))}(e,r,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,i=t.group,s=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const c=p(u,t=>(t="(?:"+(0,r.Cj)(t,".")+")").replace(l,t=>{const n={signed:!1,separator:e.strict?i:[i,""],fractional:e.fractional,decimal:s,exponent:!1},r=t.split(".");let o=e.places;1===r.length&&1!==a&&(r[1]="###"),1===r.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?r[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<r[1].length&&(o+=","+r[1].length),n.places=o);const l=r[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=f(e),n=p(e.fractional,t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n},!0);let r=t+n;return n&&(r="(?:(?:"+r+")|(?:"+n+"))"),r+p(e.exponent,t=>t?"([eE]"+f({signed:e.eSigned})+")":"")}(n)+")"}),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:i,decimal:s,factor:a}}function c(e,t){const n=u(t),r=new RegExp("^"+n.regexp+"$").exec(e);if(!r)return NaN;let i=r[1];if(!r[1]){if(!r[2])return NaN;i=r[2],n.factor*=-1}return i=i.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(i)*n.factor}function f(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",p(e.signed,e=>e?"[-+]":"",!0)+p(e.separator,t=>{if(!t)return"(?:\\d+)";" "===(t=(0,r.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,i=e.groupSize2;if(i){const e="(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*["+t+"]\\d{"+n+"})";return n-i>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"},!0)}const p=(e,t,n)=>{if(!Array.isArray(e))return t(e);const r=[];for(let n=0;n<e.length;n++)r.push(t(e[n]));return d(r.join("|"),Boolean(n))},d=(e,t)=>"("+(t?"?:":"")+e+")"},14942:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(31635),i=n(25482),s=n(10107),o=n(64108);let a=class extends i.o{constructor(e){super(e),this.text=null,this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],a.prototype,"detectedLanguage",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],a.prototype,"detectedLanguageScore",void 0),(0,r.Cg)([(0,s.MZ)({type:Object,json:{write:!0}})],a.prototype,"translation",void 0),a=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateResult")],a)},20437:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(8631),c=n(98453),f=n(36005),p=n(93223);const d=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=class extends o.o{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?.value??null}readValueType(e,{description:t}){let n=null;try{n=t?JSON.parse(t):null}catch(e){}return n?d.fromJSON(n.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"description",void 0),(0,i.Cg)([(0,f.w)("description")],h.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.gK,json:{read:{reader:u.rS},write:!0}})],h.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,i.Cg)([(0,p.e)(c.m)],h.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],h.prototype,"valueType",void 0),(0,i.Cg)([(0,f.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],h)},24097:(e,t,n)=>{n.d(t,{K:()=>r});const r={type:String,json:{read:{source:"token"},write:{target:"token"}}}},33325:(e,t,n)=>{n.d(t,{$P:()=>c,At:()=>b,JB:()=>v,Lk:()=>f,Qi:()=>S,eB:()=>A,eg:()=>h,f0:()=>d,gO:()=>y,ik:()=>g,ke:()=>l,nE:()=>u,rX:()=>p,yT:()=>m});var r=n(66131),i=n(44729),s=n(15032),o=n(20437),a=n(28097);function l(e){return o.A.fromJSON(e.toJSON())}function u(e){return e.toJSON?e.toJSON():e}function c(e){return e instanceof Date}function f(e){return e instanceof a.c9}function p(e){return e instanceof r.lY}function d(e){return e instanceof i.n}function h(e){return e instanceof s.k}const y=1e3,g={point:"point",polygon:"polygon",polyline:"polyline",multipoint:"multipoint",extent:"extent",esriGeometryPoint:"point",esriGeometryPolygon:"polygon",esriGeometryPolyline:"polyline",esriGeometryMultipoint:"multipoint",esriGeometryEnvelope:"extent",envelope:"extent"},m={point:"esriGeometryPoint",polygon:"esriGeometryPolygon",polyline:"esriGeometryPolyline",multipoint:"esriGeometryMultipoint",extent:"esriGeometryEnvelope",esriGeometryPoint:"esriGeometryPoint",esriGeometryPolygon:"esriGeometryPolygon",esriGeometryPolyline:"esriGeometryPolyline",esriGeometryMultipoint:"esriGeometryMultipoint",esriGeometryEnvelope:"esriGeometryEnvelope",envelope:"esriGeometryEnvelope"},b={"small-integer":"esriFieldTypeSmallInteger",integer:"esriFieldTypeInteger",long:"esriFieldTypeLong",single:"esriFieldTypeSingle",double:"esriFieldTypeDouble",string:"esriFieldTypeString",date:"esriFieldTypeDate","date-only":"esriFieldTypeDateOnly","time-only":"esriFieldTypeTimeOnly","timestamp-offset":"esriFieldTypeTimestampOffset",oid:"esriFieldTypeOID",geometry:"esriFieldTypeGeometry",blob:"esriFieldTypeBlob",raster:"esriFieldTypeRaster",guid:"esriFieldTypeGUID","global-id":"esriFieldTypeGlobalID",xml:"esriFieldTypeXML","big-integer":"esriFieldTypeBigInteger",esriFieldTypeSmallInteger:"esriFieldTypeSmallInteger",esriFieldTypeInteger:"esriFieldTypeInteger",esriFieldTypeLong:"esriFieldTypeLong",esriFieldTypeSingle:"esriFieldTypeSingle",esriFieldTypeDouble:"esriFieldTypeDouble",esriFieldTypeString:"esriFieldTypeString",esriFieldTypeDate:"esriFieldTypeDate",esriFieldTypeDateOnly:"esriFieldTypeDateOnly",esriFieldTypeTimeOnly:"esriFieldTypeTimeOnly",esriFieldTypeTimestampOffset:"esriFieldTypeTimestampOffset",esriFieldTypeOID:"esriFieldTypeOID",esriFieldTypeGeometry:"esriFieldTypeGeometry",esriFieldTypeBlob:"esriFieldTypeBlob",esriFieldTypeRaster:"esriFieldTypeRaster",esriFieldTypeGUID:"esriFieldTypeGUID",esriFieldTypeGlobalID:"esriFieldTypeGlobalID",esriFieldTypeXML:"esriFieldTypeXML",esriFieldTypeBigInteger:"esriFieldTypeBigInteger"};function S(e){return void 0===e?"":e=(e=(e=e.replace(/\/featureserver\/[0-9]*/i,"/FeatureServer")).replace(/\/mapserver\/[0-9]*/i,"/MapServer")).split("?")[0]}function v(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function A(e){switch(e.type){case"catalog-footprint":case"catalog":case"csv":case"feature":case"geojson":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}},39357:(e,t,n)=>{n.d(t,{A:()=>a});var r,i=n(31635),s=n(25482),o=n(91429);let a=r=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},41628:(e,t,n)=>{n.d(t,{A:()=>l});var r,i=n(31635),s=n(91429),o=n(76357),a=n(93223);let l=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],l.prototype,"type",void 0),l=r=(0,i.Cg)([(0,s.$K)("esri.layers.support.RangeDomain")],l)},45475:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(11254),i=n(2272),s=n(14942);async function o(e,t,n){const o=t.toJSON();o.contents=JSON.stringify(o.contents),o.token=await(0,i.gf)(t.portalUrl,t.apiKey,{signal:n?.signal,prompt:"no-prompt"!==n?.authMode});const a=(0,i.Dl)(e),l=(0,i.jV)(a.query,{...n,query:o,method:"post",authMode:"anonymous"});return(await(0,r.A)(a.path,l)).data.results.map(e=>s.A.fromJSON(e))}},48526:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,f.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,s.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:n,hasZ:i}=this;return new r({points:(0,s.o8)(e),spatialReference:t.clone(),hasM:n,hasZ:i})}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],n={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=t[2],r=3),this.hasM&&(n.m=t[r]),new u.A(n)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],h.prototype,"points",void 0),(0,i.Cg)([(0,d.K)("points")],h.prototype,"writePoints",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],h),h.prototype.toJSON.isDefaultToJSON=!0},48938:(e,t,n)=>{n.d(t,{X:()=>i,_:()=>s});var r=n(85935);function i(e){if("string"==typeof e)return e.toLowerCase();if("name"in e)return e.name.toLowerCase();if("string"!=typeof e.value)throw new r.D$(null,"InvalidIdentifier",null);return e.value.toLowerCase()}const s=Object.freeze({aborted:!1})},53177:(e,t,n)=>{n.d(t,{A:()=>c});var r,i=n(31635),s=n(4718),o=n(91429),a=n(39357),l=n(76357),u=n(93223);let c=class extends l.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some(e=>(String(e.code)===n&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],c)},60408:(e,t,n)=>{function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function s(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?s(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function c(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function f(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}n.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>c,Rg:()=>o,U9:()=>i,W0:()=>f,ZC:()=>r,fT:()=>s,uW:()=>l})},62791:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(25482),s=n(10107),o=n(64108),a=n(24097),l=n(67090);let u=class extends i.o{constructor(e){super(e),this.to=null,this.contents=null,this.portalUrl="https://www.arcgis.com",this.translator="esri",this.from=null,this.apiKey=null,this.requestSource=null}};(0,r.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],u.prototype,"to",void 0),(0,r.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],u.prototype,"contents",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"portalUrl",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0,default:"esri"}})],u.prototype,"translator",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"from",void 0),(0,r.Cg)([(0,s.MZ)(a.K)],u.prototype,"apiKey",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"x-esri-request-source"}})],u.prototype,"requestSource",void 0),u=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateParameters")],u)},65864:(e,t,n)=>{n.d(t,{rS:()=>c,xD:()=>p});var r=n(5443),i=n(91075),s=n(48526),o=n(86738),a=n(39829),l=n(82799),u=n(60408);function c(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?l.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?s.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const f={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:s.A,esriGeometryMultiPatch:a.A};function p(e){return e&&f[e]||null}},66395:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(66131),i=n(6800),s=n(85935),o=n(78878),a=n(91075),l=n(54218);function u(e,t,n=!1,r=!1){if(null==e)return null;if((0,l.Et)(e)||(0,l.Lm)(e)||(0,l.Kg)(e)||(0,o.e)(e)||(0,o.f)(e)||(0,o.g)(e))return e;if((0,l.cy)(e)){const i=[];for(const s of e)i.push(u(s,t,n,r));return i}if(r&&(0,o.h)(e))return e;const i=new c;i.immutable=!1;for(const[s,o]of Object.entries(e))void 0!==o&&i.setField(s,u(o,t,n,r));return i.immutable=n,i}class c{constructor(e){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,e instanceof c?this.attributes=e.attributes:null==e?this.attributes=Object.create(null):null!=Object.getPrototypeOf(e)?this.attributes={__proto__:null,...e}:this.attributes=e}static containerEntry(e,t){return new c({__proto__:null,key:e,value:t})}static textFormatting(){const e=new c({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"});return e.immutable=!1,e}field(e){const t=e.toLowerCase(),n=this.attributes[e];if(void 0!==n)return n;for(const e in this.attributes)if(e.toLowerCase()===t)return this.attributes[e];throw new s.D$(null,"FieldNotFound",null,{key:e})}setField(e,t){if(this.immutable)throw new s.D$(null,"Immutable",null);if((0,o.i)(t))throw new s.D$(null,"NoFunctionInDictionary",null);const n=e.toLowerCase();if(t instanceof Date&&(t=r.lY.dateJSToArcadeDate(t)),void 0===this.attributes[e]){for(const e in this.attributes)if(e.toLowerCase()===n)return void(this.attributes[e]=t);this.attributes[e]=t}else this.attributes[e]=t}eraseField(e){if(this.immutable)throw new s.D$(null,"Immutable",null);if(e in this.attributes)return void delete this.attributes[e];const t=e.toLowerCase();for(const e in this.attributes)if(e.toLowerCase()===t)return void delete this.attributes[e]}hasField(e){const t=e.toLowerCase();if(void 0!==this.attributes[e])return!0;for(const e in this.attributes)if(e.toLowerCase()===t)return!0;return!1}keys(){let e=[];for(const t in this.attributes)e.push(t);return e=e.sort(),e}values(){return this.keys().map(e=>this.attributes[e])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(e=!1){return(0,o.c)(this.attributes,{useNumbersForDates:e})}static convertObjectToArcadeDictionary(e,t,n=!0,r=!1){const i=new c;i.immutable=!1;for(const s in e){const o=e[s];void 0!==o&&i.setField(s.toString(),u(o,t,n,r))}return i.immutable=n,i}static convertJsonToArcade(e,t,n=!1,r=!1){return u(e,t,n,r)}castAsJson(e=null){const t=Object.create(null);for(let n in this.attributes){const r=this.attributes[n];void 0!==r&&(e?.keyTranslate&&(n=e.keyTranslate(n)),t[n]=(0,o.a)(r,e))}return t}async castDictionaryValueAsJsonAsync(e,t,n,r=null,i){const s=await(0,o.b)(n,r,i);return e[t]=s,s}async castAsJsonAsync(e=null,t=null){const n=Object.create(null),i=[];for(let s in this.attributes){const l=this.attributes[s];t?.keyTranslate&&(s=t.keyTranslate(s)),void 0!==l&&((0,o.d)(l)||l instanceof a.A||l instanceof r.lY?n[s]=(0,o.a)(l,t):i.push(this.castDictionaryValueAsJsonAsync(n,s,l,e,t)))}return i.length>0&&await Promise.all(i),n}deepClone(){const e=new c;e.immutable=!1;for(const t of this.keys())e.setField(t,(0,i.G)(this.field(t)));return e}}},67090:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(31635),i=n(25482),s=n(10107),o=n(64108);let a=class extends i.o{constructor(e){super(e)}};(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,r.Cg)([(0,o.$)("esri.rest.support.TranslateContent")],a)},76357:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(31635),i=n(66552),s=n(25482),o=n(91429),a=n(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(l),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},78878:(e,t,n)=>{n.d(t,{$:()=>P,A:()=>D,B:()=>ee,C:()=>Ce,D:()=>me,E:()=>xe,F:()=>_e,G:()=>Fe,H:()=>ge,I:()=>O,J:()=>I,K:()=>Ke,L:()=>te,M:()=>J,N:()=>Oe,O:()=>j,P:()=>ye,Q:()=>se,R:()=>F,S:()=>ne,T:()=>je,U:()=>Ee,V:()=>Ge,W:()=>Ve,X:()=>Le,Y:()=>be,Z:()=>K,_:()=>V,a:()=>Pe,a0:()=>ze,a1:()=>fe,a2:()=>Ie,a3:()=>Me,a4:()=>Ae,a5:()=>Se,a6:()=>ve,b:()=>Je,c:()=>ue,d:()=>R,e:()=>H,f:()=>W,g:()=>X,h:()=>G,i:()=>k,j:()=>U,k:()=>E,l:()=>Y,m:()=>z,n:()=>q,o:()=>B,p:()=>$e,q:()=>L,r:()=>he,s:()=>ce,t:()=>pe,u:()=>ae,v:()=>Z,w:()=>le,x:()=>De,y:()=>$,z:()=>M});var r=n(92602),i=n(70333),s=n(66131),o=n(99719),a=n(85935),l=n(92400),u=n(93818),c=n(7335),f=n(7320),p=n(33325),d=n(14607),h=n(44729),y=n(15032),g=n(5443),m=n(91075),b=n(48526),S=n(86738),v=n(39829),A=n(82799),w=n(16930),T=n(95108),C=n(65864),N=n(73444),x=n(54218),_=n(28097);class F{constructor(e){this.value=e}}class O{constructor(e){this.value=e}}const Z={type:"VOID"},M=Symbol("BREAK"),D=Symbol("CONTINUE");function P(e,t,n){return""===t||null==t||t===n||t===n?e:e=e.split(t).join(n)}function k(e){return e instanceof l.fF}function J(e){return e instanceof o.x}function R(e){return!!((0,x.Kg)(e)||(0,x.Et)(e)||H(e)||W(e)||X(e)||(0,x.Lm)(e)||null===e||e===Z)}function I(e,t){return void 0===e?t:e}function j(e){return null==e?"":(0,x.cy)(e)||U(e)?"Array":H(e)?"Date":X(e)?"Time":W(e)?"DateOnly":(0,x.Kg)(e)?"String":(0,x.Lm)(e)?"Boolean":(0,x.Et)(e)?"Number":"esri.arcade.Attachment"===e?.declaredClass?"Attachment":"esri.arcade.Portal"===e?.declaredClass?"Portal":"esri.arcade.Dictionary"===e?.declaredClass?"Dictionary":B(e)?"KnowledgeGraph":e instanceof o.x?"Module":E(e)?"Feature":e instanceof S.A?"Point":e instanceof v.A?"Polygon":e instanceof A.A?"Polyline":e instanceof b.A?"Multipoint":e instanceof g.A?"Extent":k(e)?"Function":z(e)?"FeatureSet":Y(e)?"FeatureSetCollection":K(e)?"Voxel":V(e)?"Pixel":e===Z?"":"number"==typeof e&&isNaN(e)?"Number":"Unrecognized Type"}function L(e){return e===Z}function G(e){return e instanceof m.A}function E(e){return"esri.arcade.Feature"===e?.arcadeDeclaredClass}function K(e){return"esri.arcade.Voxel"===e?.arcadeDeclaredClass}function V(e){return"esri.arcade.Pixel"===e?.arcadeDeclaredClass}function z(e){return"esri.arcade.featureset.support.FeatureSet"===e?.declaredRootClass}function q(e){return"esri.arcade.Dictionary"===e?.declaredClass}function $(e){return q(e)||E(e)||K(e)||V(e)}function Y(e){return"esri.arcade.featureSetCollection"===e?.declaredRootClass}function B(e){return"esri.rest.knowledgeGraph.KnowledgeGraph"===e?.declaredClass}function U(e){return e instanceof u.A}function H(e){return e instanceof s.lY}function W(e){return e instanceof h.n}function X(e){return e instanceof y.k}function Q(e){return null!=e&&"object"==typeof e}function ee(e,t,n,r,i){if(e.length<t||e.length>n)throw new a.D$(r,"WrongNumberOfParameters",i)}function te(e){return null==e||L(e)||""===e}function ne(e){return e<0?-Math.round(-e):Math.round(e)}function re(e,t){return isNaN(e)||null==t||""===t?e.toString():(t=P(t,"‰",""),t=P(t,"¤",""),(0,d.GP)(e,{pattern:t}))}function ie(e,t){return null==t||""===t?e.toISOString(!0):e.toFormat(se(t),{locale:(0,N.JK)(),numberingSystem:"latn"})}function se(e,t=!1){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let n="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|Z{1,5}|.)/g;for(const i of e.match(r)||[])switch(i){case"D":n+="d";break;case"DD":n+="dd";break;case"DDD":n+="o";break;case"d":n+="c";break;case"ddd":n+="ccc";break;case"dddd":n+="cccc";break;case"M":n+="L";break;case"MM":n+="LL";break;case"MMM":n+="LLL";break;case"MMMM":n+="LLLL";break;case"YY":n+="yy";break;case"Y":case"YYYY":n+="yyyy";break;case"Q":n+="q";break;case"Z":n+="Z";break;case"ZZ":n+="ZZ";break;case"ZZZ":n+="ZZZ";break;case"ZZZZ":n+=t?"[ZZZZ]":"ZZZZ";break;case"ZZZZZ":n+=t?"[ZZZZZ]":"ZZZZZ";break;case"S":n+="'S'";break;case"SS":n+="'SS'";break;case"SSS":n+="u";break;case"A":case"a":n+="a";break;case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":case"X":case"x":n+=i;break;default:i.length>=2&&i.startsWith("[")&&i.endsWith("]")?n+=`'${i.slice(1,-1)}'`:n+=`'${i}'`}return n}function oe(e,t,n){switch(n){case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}return!1}function ae(e,t,n){if(null===e){if(null===t||t===Z)return oe(null,null,n);if((0,x.Et)(t))return oe(0,t,n);if((0,x.Kg)(t))return oe(0,he(t),n);if((0,x.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}if(e===Z){if(null===t||t===Z)return oe(null,null,n);if((0,x.Et)(t))return oe(0,t,n);if((0,x.Kg)(t))return oe(0,he(t),n);if((0,x.Lm)(t))return oe(0,he(t),n);if(H(t))return oe(0,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,x.Et)(e)){if((0,x.Et)(t))return oe(e,t,n);if((0,x.Lm)(t))return oe(e,he(t),n);if(null===t||t===Z)return oe(e,0,n);if((0,x.Kg)(t))return oe(e,he(t),n);if(H(t))return oe(e,t.toNumber(),n);if(X(t))return oe(e,t.toNumber(),n);if(W(t))return oe(e,t.toNumber(),n)}else if((0,x.Kg)(e)){if((0,x.Kg)(t))return oe(ce(e),ce(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if((0,x.Et)(t))return oe(he(e),t,n);if(null===t||t===Z)return oe(he(e),0,n);if((0,x.Lm)(t))return oe(he(e),he(t),n)}else if(H(e)){if(H(t))return e.timeZone!==t.timeZone&&(e.isUnknownTimeZone?e=s.lY.arcadeDateAndZoneToArcadeDate(e,t.timeZone):t.isUnknownTimeZone&&(t=s.lY.arcadeDateAndZoneToArcadeDate(t,e.timeZone))),oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if((0,x.Lm)(e)){if((0,x.Lm)(t))return oe(e,t,n);if((0,x.Et)(t))return oe(he(e),he(t),n);if(H(t))return oe(he(e),t.toNumber(),n);if(X(t))return oe(he(e),t.toNumber(),n);if(W(t))return oe(he(e),t.toNumber(),n);if(null===t||t===Z)return oe(he(e),0,n);if((0,x.Kg)(t))return oe(he(e),he(t),n)}else if(W(e)){if(H(t))return oe(e.toNumber(),t.toNumber(),n);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(W(t))return oe(e.toNumber(),t.toNumber(),n)}else if(X(e)){if(H(t))throw new a.D$(null,"CannotCompareDateAndTime",null);if(null===t||t===Z)return oe(e.toNumber(),0,n);if((0,x.Et)(t))return oe(e.toNumber(),t,n);if((0,x.Lm)(t))return oe(e.toNumber(),he(t),n);if((0,x.Kg)(t))return oe(e.toNumber(),he(t),n);if(X(t))return oe(e.toNumber(),t.toNumber(),n);if(W(t))throw new a.D$(null,"CannotCompareDateAndTime",null)}return!!le(e,t)&&("<="===n||">="===n)}function le(e,t){if(e===t)return!0;if(null===e&&t===Z||null===t&&e===Z)return!0;if(H(e)&&H(t))return e.equals(t);if(X(e)&&X(t))return e.equals(t);if(W(e)&&W(t))return e.equals(t);if(e instanceof c.A)return e.equalityTest(t);if(e instanceof f.A)return e.equalityTest(t);if(e instanceof S.A&&t instanceof S.A){const n=e.cache._arcadeCacheId,r=t.cache._arcadeCacheId;if(null!=n)return n===r}if(Q(e)&&Q(t)){if(e._arcadeCacheId===t._arcadeCacheId&&void 0!==e._arcadeCacheId&&null!==e._arcadeCacheId)return!0;if(e._underlyingGraphic===t._underlyingGraphic&&void 0!==e._underlyingGraphic&&null!==e._underlyingGraphic)return!0}return!1}function ue(e,{useNumbersForDates:t}){let n="";for(const r in e){""!==n&&(n+=",");const i=e[r];null==i?n+=JSON.stringify(r)+":null":(0,x.Lm)(i)||(0,x.Et)(i)||(0,x.Kg)(i)?n+=JSON.stringify(r)+":"+JSON.stringify(i):G(i)?n+=JSON.stringify(r)+":"+pe(i):X(i)||W(i)?n+=`${JSON.stringify(r)}:${JSON.stringify(i.toString())}`:U(i)||Array.isArray(i)?n+=JSON.stringify(r)+":"+pe(i,null,t):H(i)?n+=t?JSON.stringify(r)+":"+JSON.stringify(i.getTime()):JSON.stringify(r)+":"+i.stringify():null!==i&&"object"==typeof i&&"castToText"in i&&(n+=JSON.stringify(r)+":"+i.castToText(t))}return"{"+n+"}"}function ce(e,t){if((0,x.Kg)(e))return e;if(null===e)return"";if((0,x.Et)(e))return re(e,t);if((0,x.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof m.A)return JSON.stringify(e.toJSON());if((0,x.cy)(e)){const t=[];for(let n=0;n<e.length;n++)t[n]=de(e[n]);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let n=0;n<e.length();n++)t[n]=de(e.get(n));return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText():k(e)?"object, Function":e===Z?"":J(e)?"object, Module":""}function fe(e){const t=[];if(e instanceof u.A){for(let n=0;n<e.length();n++)t[n]=he(e.get(n));return t}if(!(0,x.cy)(e))return null;for(let n=0;n<e.length;n++)t[n]=he(e[n]);return t}function pe(e,t,n=!1){if((0,x.Kg)(e))return e;if(null===e)return"";if((0,x.Et)(e))return re(e,t);if((0,x.Lm)(e))return e.toString();if(H(e))return ie(e,t);if(X(e))return e.toFormat(t);if(W(e))return e.toFormat(t);if(e instanceof m.A)return e instanceof g.A?'{"xmin":'+e.xmin.toString()+',"ymin":'+e.ymin.toString()+","+(e.hasZ?'"zmin":'+e.zmin.toString()+",":"")+(e.hasM?'"mmin":'+e.mmin.toString()+",":"")+'"xmax":'+e.xmax.toString()+',"ymax":'+e.ymax.toString()+","+(e.hasZ?'"zmax":'+e.zmax.toString()+",":"")+(e.hasM?'"mmax":'+e.mmax.toString()+",":"")+'"spatialReference":'+Te(e.spatialReference)+"}":Te(e.toJSON(),(e,t)=>e.key===t.key?0:"spatialReference"===e.key?1:"spatialReference"===t.key||e.key<t.key?-1:e.key>t.key?1:0);if((0,x.cy)(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=de(e[r],n);return"["+t.join(",")+"]"}if(e instanceof u.A){const t=[];for(let r=0;r<e.length();r++)t[r]=de(e.get(r),n);return"["+t.join(",")+"]"}return null!==e&&"object"==typeof e&&"castToText"in e?e.castToText(n):k(e)?"object, Function":e===Z?"":J(e)?"object, Module":""}function de(e,t=!1){if(null===e)return"null";if((0,x.Lm)(e)||(0,x.Kg)(e))return JSON.stringify(e);if((0,x.Et)(e))return e.toString();if(e instanceof m.A)return pe(e,null,t);if(e instanceof u.A)return pe(e,null,t);if(Array.isArray(e))return pe(e,null,t);if(H(e))return t?JSON.stringify(e.getTime()):JSON.stringify(ie(e,""));if(X(e))return JSON.stringify(e.toString());if(W(e))return JSON.stringify(e.toString());if(null!==e&&"object"==typeof e){if("castToText"in e)return e.castToText(t)}else if(e===Z)return"null";return"null"}function he(e,t){return(0,x.Et)(e)?e:null===e||""===e?0:H(e)||W(e)||X(e)?NaN:(0,x.Lm)(e)?e?1:0:(0,x.cy)(e)||""===e||void 0===e?NaN:void 0!==t&&(0,x.Kg)(e)?(t=P(t,"‰",""),t=P(t,"¤",""),(0,d.qg)(e,{pattern:t})):e===Z?0:Number(e)}function ye(e,t){if(H(e))return e;if((0,x.Kg)(e)){const n=function(e,t){const n=/ (\d\d)/,r=(0,s.mT)(t);let i=_.c9.fromISO(e,{zone:r});return i.isValid||n.test(e)&&(e=e.replace(n,"T$1"),i=_.c9.fromISO(e,{zone:t}),i.isValid)?i:null}(e,t);if(n)return s.lY.dateTimeToArcadeDate(n)}return null}function ge(e){return(0,x.Lm)(e)?e:(0,x.Kg)(e)?"true"===(e=e.toLowerCase()):!!(0,x.Et)(e)&&0!==e&&!isNaN(e)}function me(e,t){return null==e?null:(null!==e.spatialReference&&void 0!==e.spatialReference||(e.spatialReference=t),e)}function be(e){if(null===e)return null;if(e instanceof S.A)return"NaN"===e.x||null===e.x||isNaN(e.x)?null:e;if(e instanceof v.A){if(0===(e.curveRings??e.rings).length)return null;for(const t of e.curveRings??e.rings)if(t.length>0)return e;return null}if(e instanceof A.A){if(0===(e.curvePaths??e.paths).length)return null;for(const t of e.curvePaths??e.paths)if(t.length>0)return e;return null}return e instanceof b.A?0===e.points.length?null:e:e instanceof g.A?"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)?null:e:null}function Se(e,t){if(!e)return t;if(!e.domain)return t;let n=null,r=null;if(H(t))n=t.toNumber();else if(W(t))n=t.toString();else if(X(t))n=t.toStorageString();else if("string"===e.field.type||"esriFieldTypeString"===e.field.type)n=ce(t);else{if(null==t)return null;if(""===t)return t;n=he(t)}for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.code===n&&(r=i)}return null===r?ce(t):r.name}function ve(e,t){if(!e)return t;if(!e.domain)return t;let n=null;const r=ce(t);for(let t=0;t<e.domain.codedValues.length;t++){const i=e.domain.codedValues[t];i.name===r&&(n=i)}return null===n?t:n.code}function Ae(e,t,n=null,r=null){if(!t)return null;if(!t.fields)return null;let i,s,o=null;for(let n=0;n<t.fields.length;n++){const r=t.fields[n];r.name.toLowerCase()===e.toString().toLowerCase()&&(o=r)}if(null===o)throw new a.D$(null,"FieldNotFound",null,{key:e});let l=t.typeIdField,u="id",c=t.types;if(t.subtypeField&&(l=t.subtypeField,u="code",c=t.subtypes??[]),null===r&&n&&l)r=n.hasField(l)?n.field(l):null;else if(l&&null!==r){let e=!1;for(const t of c||[])if(r===t[u]){e=!0;break}if(!e)for(const t of c||[])if(r===t.name){r=t[u],e=!0;break}e||(r=null,n&&l&&(r=n.hasField(l)?n.field(l):null))}return null!=r&&c.some(e=>e[u]===r&&(i=e.domains?.[o.name],i&&"inherited"===i.type&&(i=we(o.name,t),s=!0),!0)),s||i||(i=we(e,t)),{field:o,domain:i}}function we(e,t){let n;return t.fields.some(t=>(t.name.toLowerCase()===e.toLowerCase()&&(n=t.domain),!!n)),n}function Te(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});const n="boolean"==typeof t.cycles&&t.cycles,r=t.cmp&&(i=t.cmp,function(e){return function(t,n){const r={key:t,value:e[t]},s={key:n,value:e[n]};return i(r,s)}});var i;const s=[];return function e(t){if(t?.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0===t)return;if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);let i,o;if(Array.isArray(t)){for(o="[",i=0;i<t.length;i++)i&&(o+=","),o+=e(t[i])||"null";return o+"]"}if(null===t)return"null";if(s.includes(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}const a=s.push(t)-1,l=Object.keys(t).sort(r?.(t));for(o="",i=0;i<l.length;i++){const n=l[i],r=e(t[n]);r&&(o&&(o+=","),o+=JSON.stringify(n)+":"+r)}return s.splice(a,1),"{"+o+"}"}(e)}function Ce(e){if(null===e)return null;const t=[];for(const n of e)E(n)?t.push(n.geometry()):t.push(n);return t}function Ne(e,t){if(!(t instanceof S.A))throw new a.D$(null,"InvalidParameter",null);e.push(t.hasZ?t.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y])}function xe(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=e[0].hasZ,r=e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else{if(!U(e))throw new a.D$(null,"InvalidParameter",null);for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:((0,T.$3)(i)||(i=i.slice().reverse()),new v.A({rings:[i],spatialReference:s,hasZ:n,hasM:r}))}return e}function _e(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new A.A({paths:[i],spatialReference:s,hasZ:n,hasM:r})}return e}function Fe(e,t){if((0,x.cy)(e)||U(e)){let n=!1,r=!1,i=[],s=t;if((0,x.cy)(e)){for(const t of e)Ne(i,t);i.length>0&&(s=e[0].spatialReference,n=!0===e[0].hasZ,r=!0===e[0].hasM)}else if(e instanceof f.A)i=e._elements,i.length>0&&(n=e._hasZ,r=e._hasM,s=e.get(0).spatialReference);else if(U(e)){for(const t of e.toArray())Ne(i,t);i.length>0&&(s=e.get(0).spatialReference,n=!0===e.get(0).hasZ,r=!0===e.get(0).hasM)}return 0===i.length?null:new b.A({points:i,spatialReference:s,hasZ:n,hasM:r})}return e}function Oe(e,t=!0){if(null==e)return[];if((0,x.cy)(e)){const n=[];for(const r of e){const e=ce(r);(t||""!==e)&&n.push(e)}return n}if(U(e)){const n=[];for(let r=0;r<e.length();r++){const i=ce(e.get(r));(t||""!==i)&&n.push(i)}return n}if(R(e)){const n=ce(e);if(t||""!==n)return[n]}return[]}let Ze=0;function Me(){return Ze++,Ze%100==0?(Ze=0,new Promise(e=>{setTimeout(()=>{e()},0)})):Promise.resolve()}function De(e,t,n){switch(n){case"&":return e&t;case"|":return e|t;case"^":return e^t;case"<<":return e<<t;case">>":return e>>t;case">>>":return e>>>t}}function Pe(e,t=null){return null==e?null:(0,x.Lm)(e)||(0,x.Et)(e)||(0,x.Kg)(e)?e:e instanceof m.A?!0===t?.keepGeometryType?e:e.toJSON():e instanceof u.A?e.toArray().map(e=>Pe(e,t)):Array.isArray(e)?e.map(e=>Pe(e,t)):(0,x.$P)(e)?e:H(e)?e.toJSDate():X(e)?e.toString():W(e)?e.toJSDate():null!==e&&"object"==typeof e&&void 0!==e.castAsJson?e.castAsJson(t):null}async function ke(e,t,n,r,i){const s=await Je(e,t,n);i[r]=s}async function Je(e,t=null,n=null){if(e instanceof u.A&&(e=e.toArray()),null==e)return null;if(R(e)||e instanceof m.A||(0,x.$P)(e)||H(e))return Pe(e,n);if(Array.isArray(e)){const r=[],i=[];for(const s of e)null===s||R(s)||s instanceof m.A||(0,x.$P)(s)||H(s)?i.push(Pe(s,n)):(i.push(null),r.push(ke(s,t,n,i.length-1,i)));return r.length>0&&await Promise.all(r),i}return null!==e&&"object"==typeof e&&void 0!==e.castAsJsonAsync?e.castAsJsonAsync(t,n):null}function Re(e){return Ie(e)?e.parent:e}function Ie(e){return e&&"declaredClass"in e&&"esri.layers.support.SubtypeSublayer"===e.declaredClass}function je(e,t,n){const r=Re(e.fullSchema());return null===r?null:r.fields?Ae(t,r,e,n):null}function Le(e){const t=Re(e.fullSchema());return null===t?null:t.fields?t.subtypeField?{subtypeField:t.subtypeField,subtypes:t.subtypes?t.subtypes.map(e=>({name:e.name,code:e.code})):[]}:t.typeIdField?{subtypeField:t.typeIdField,subtypes:t.types?t.types.map(e=>({name:e.name,code:e.id})):[]}:null:null}function Ge(e,t,n,r){const i=Re(e.fullSchema());if(null===i)return null;if(!i.fields)return null;const s=Ae(t,i,e,r);if(void 0===n)try{n=e.field(t)}catch(e){return null}return Se(s,n)}function Ee(e,t,n,r){const i=Re(e.fullSchema());if(null===i)return null;if(!i.fields)return null;if(void 0===n){try{n=e.field(t)}catch(e){return null}return n}return ve(Ae(t,i,e,r),n)}function Ke(e){return e?.timeZone??"system"}function Ve(e){const t=Re(e.fullSchema());if(null===t)return null;if(!t.fields)return null;const n=[];for(const e of t.fields)n.push((0,p.nE)(e));return{objectIdField:t.objectIdField,globalIdField:t.globalIdField??"",geometryType:void 0===p.yT[t.geometryType]?"":p.yT[t.geometryType],fields:n}}function ze(e,t){const n=s.lY.systemTimeZoneCanonicalName;return"system"===e&&(e=n),{version:qe,engineVersion:i.rE,timeZone:e,userTimeZone:n,spatialReference:t instanceof w.A?t.toJSON():t,application:r.A.applicationName??"",engine:"web",locale:(0,N.JK)()}}const qe="1.34",$e=Object.freeze(Object.defineProperty({__proto__:null,ImplicitResult:O,ReturnResult:F,absRound:ne,arcadeVersion:qe,autoCastArrayOfPointsToMultiPoint:Fe,autoCastArrayOfPointsToPolygon:xe,autoCastArrayOfPointsToPolyline:_e,autoCastFeatureToGeometry:Ce,binaryOperator:De,breakResult:M,castAsJson:Pe,castAsJsonAsync:Je,castRecordToText:ue,continueResult:D,defaultExecutingContext:ze,defaultTimeZone:Ke,defaultUndefined:I,equalityTest:le,featureDomainCodeLookup:Ee,featureDomainValueLookup:Ge,featureFullDomain:je,featureSchema:Ve,featureSubtypes:Le,fixNullGeometry:be,fixSpatialReference:me,formatDate:ie,formatNumber:re,getDomain:Ae,getDomainCode:ve,getDomainValue:Se,getType:j,greaterThanLessThan:ae,isArray:x.cy,isBoolean:x.Lm,isDate:H,isDateOnly:W,isDictionary:q,isDictionaryLike:$,isEmpty:te,isFeature:E,isFeatureSet:z,isFeatureSetCollection:Y,isFunctionParameter:k,isGeometry:G,isGraphic:x.DU,isImmutableArray:U,isInteger:x.Fq,isJsDate:x.$P,isKnowledgeGraph:B,isModule:J,isNumber:x.Et,isObject:Q,isPixel:V,isSimpleType:R,isString:x.Kg,isSubtypeGrouplayer:function(e){return e&&"declaredClass"in e&&"esri.layers.SubtypeGroupLayer"===e.declaredClass},isSubtypeSublayer:Ie,isTime:X,isVoid:L,isVoxel:K,multiReplace:P,parseGeometryFromJson:function(e,t){const n=JSON.parse(e);return n&&!n.spatialReference&&(n.spatialReference=t),(0,C.rS)(n)},pcCheck:ee,stableStringify:Te,standardiseDateFormat:se,tick:Me,toBoolean:ge,toDate:ye,toNumber:he,toNumberArray:fe,toString:ce,toStringArray:Oe,toStringExplicit:pe,voidOperation:Z},Symbol.toStringTag,{value:"Module"}))},82799:(e,t,n)=>{n.d(t,{A:()=>h});var r,i=n(31635),s=n(4718),o=n(91429),a=n(5443),l=n(91075),u=n(86738),c=n(16930),f=n(90634),p=n(56993),d=n(43937);let h=r=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:n,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return i??=c.A.WGS84,{...e,hasM:n,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,s.o8)(e)}get extent(){const e=(0,f.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,s.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,n=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,n=e.length;t<n;t++)r[t]=e[t].toArray();t[n]=r}else t[n]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,s.o8)(this.paths),e.curvePaths=(0,s.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const n=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(n[0],n[1],n[2],void 0,this.spatialReference):i&&!r?new u.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&i?new u.A(n[0],n[1],n[2],n[3],this.spatialReference):new u.A(n[0],n[1],this.spatialReference)}insertPoint(e,t,n){return this._validateInputs(e,t,!0)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e].splice(t,0,n),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],n=this.spatialReference,r=t.map(e=>new u.A(e,n));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const n=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(e,t,n){return this._validateInputs(e,t)?((0,p.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[e][t]=n,this.notifyChange("paths"),this):this}_validateInputs(e,t,n=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(n&&(t<0||t>r.length))return!1;if(!n&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],h.prototype,"curvePaths",void 0),(0,i.Cg)([(0,d.K)("curvePaths")],h.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],h.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],h.prototype,"paths",void 0),(0,i.Cg)([(0,d.K)("paths")],h.prototype,"writePaths",null),h=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],h),h.prototype.toJSON.isDefaultToJSON=!0},92400:(e,t,n)=>{n.d(t,{CU:()=>a,UQ:()=>o,fF:()=>i,o6:()=>s});var r=n(74887);class i{constructor(){}}function s(e,t,n){if(e instanceof i&&!(e instanceof a)){const r=new a;return r.fn=e,r.parameterEvaluator=n,r.context=t,r}return e}class o extends i{constructor(e){super(),this.fn=e}createFunction(e){return(...t)=>this.fn(e,{preparsed:!0,arguments:t})}call(e,t){return this.fn(e,t)}marshalledCall(e,t,n,o){return o(e,t,(t,l,u)=>{u=u.map(t=>t instanceof i&&!(t instanceof a)?s(t,e,o):t);const c=this.call(n,{args:u});return(0,r.$X)(c)?c.then(e=>s(e,n,o)):c})}}class a extends i{constructor(){super(...arguments),this.fn=null,this.context=null}createFunction(e){return this.fn.createFunction(this.context)}call(e,t){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}marshalledCall(e,t,n){return this.fn.marshalledCall(e,t,this.context,this.parameterEvaluator)}}},93818:(e,t,n)=>{n.d(t,{A:()=>r});class r{constructor(e=[]){this._elements=e}length(){return this._elements.length}get(e){return this._elements[e]}toArray(){return this.slice()}slice(e=0,t=this.length()){const n=[];for(let r=e;r<t;r++)n.push(this.get(r));return n}}},98453:(e,t,n)=>{n.d(t,{m:()=>r});const r=new(n(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99719:(e,t,n)=>{n.d(t,{x:()=>r});class r{}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4680],{563:(e,t,s)=>{s.d(t,{QueueProcessor:()=>u,SharedConcurrency:()=>d});var r=s(97768),i=s(74887),n=s(9775),o=s(32587),a=s(76030),h=s(44794);class u{constructor(e){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,h.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??c,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,r.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){const t=this._controllers.get(e);t?.abort()}clear(){this._queue.clear();const e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,s)=>e(s))}_get(e){const t=this._deferreds.get(e);return t?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){const s=this._get(e);if(s)return s;const r=new AbortController,n=(0,i.Tw)(),o=t?(0,i.u7)(t,()=>r.abort()):null,a=(0,i.NY)(r.signal,()=>{const t=this._processingItems.get(e);t&&t.controller.abort(),h(),n.reject((0,i.NK)())}),h=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,r),n.promise.then(h,h),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){const e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(const t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),this.sharedConcurrency.current.value-=1)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(null==e)return;let t;const s=new AbortController,r=new l(e,s);this._processingItems.set(e,r),this.sharedConcurrency.current.value+=1;try{t=this.process(e,s.signal)}catch(e){this._processError(r,e)}(0,i.$X)(t)?(r.promise=t,t.then(e=>this._processResult(r,e),e=>this._processError(r,e))):this._processResult(r,t)}}class l{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class d{constructor(e){this.limit=e,this.current=(0,h.v)(0)}get full(){return this.current.value>=this.limit}}const c=new d(1/0)},2272:(e,t,s)=>{s.d(t,{Dl:()=>u,gf:()=>d,jV:()=>h,lF:()=>l});var r=s(92602),i=s(70333),n=s(4718),o=s(84952),a=s(926);function h(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function u(e){return"string"==typeof e?(0,o.An)(e):(0,n.o8)(e)}function l(e,t,s){const r={};for(const i in e){if("declaredClass"===i)continue;const n=e[i];if(null!=n&&"function"!=typeof n)if(Array.isArray(n))r[i]=n.map(e=>l(e));else if("object"==typeof n)if(n.toJSON){const e=n.toJSON(s?.[i]);r[i]=t?e:JSON.stringify(e)}else r[i]=t?n:JSON.stringify(n);else r[i]=n}return r}async function d(e,t,n){const o=function(e,t){return e?t&&(0,a.Qc)(e)?t:(0,a.CG)(e)??i.id?.findCredential(e)?.token:null}(e,t);if(o)return o;!i.id&&r.A.request.useIdentity&&await Promise.all([s.e(7330),s.e(168),s.e(148)]).then(s.bind(s,50148));const h=await i.id.getCredential(e,n);return h?.token}},5162:(e,t,s)=>{s.d(t,{HJ:()=>o,Im:()=>l,KN:()=>h});var r=s(39516),i=s(70300),n=s(8446);class o{static async create(e){const{metadata:t,definitionExpression:s}=e,i=s?await(0,r.GP)(s,t.fieldsIndex):null;return new o(t,i,s)}constructor(e,t,s){this.metadata=e,this._clause=t,this._definitionExpression=s}get hash(){return this._definitionExpression}testFeature(e){return null==this._clause||this._clause.testFeature(e)}}class a{constructor(){this.modified=new Map,this.removed=new Set}modify(e){this.modified.set(e.objectId,e),this.removed.has(e.objectId)&&this.removed.delete(e.objectId)}remove(e){this.modified.delete(e),this.removed.add(e)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(e){const t=new a;for(const[s,r]of this.modified)e.testFeature(r)?t.modified.set(s,r):t.removed.add(r.objectId);for(const e of this.removed)t.removed.add(e);return t}}class h extends i.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){const s=n.K.fromOptimizedFeatures(e,t);return new h(s)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(e){if(!this._reader.getSize())return null;const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class u{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class l{constructor(e){this._parameters=e,this._overrides=new Map,this._update=new a,this._lastCleanup=0}update(e){this._parameters=e}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){const t=e.reader.getCursor();for(;t.next();){const e=t.getObjectId(),s=this._overrides.get(e);if(s?.lastWeak&&(s.lastWeak=null),s?.isWeak){const e=t.readOptimizedFeatureWorldSpace(),r=s.inner?.attributes??{};e.attributes={...r,...e.attributes},s.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){const{updateWeak:s,removeWeak:r,update:i,remove:n,release:o}=e.commands;this.invalidate();for(const e of s){const t=new u(e,!0),s=this._overrides.get(e.objectId);s?.isStrong?s.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(const e of i){const t=new u(e,!1),s=this._overrides.get(e.objectId);t.lastWeak=s?.isWeak?s:s?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(const e of r){const t=new u(null,!0),s=this._overrides.get(e);s?.isStrong?s.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(const e of n){const t=new u(null,!1),s=this._overrides.get(e);t.lastWeak=s?.isWeak?s:s?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(o.length){const e=new Set;for(const t of o){const s=this._overrides.get(t);s?.lastWeak?(this._overrides.set(t,s.lastWeak),null==s.lastWeak.inner?this._update.remove(t):this._update.modify(s.lastWeak.inner)):s&&!s.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{const s=t.getObjectId();e.has(s)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(s))});for(const t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(const[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;const t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;const s=this._getWeakDeletions();if(!(s.size<1e4)){for(const t of e){const e=t.reader.withoutOverrides().getCursor();for(;e.next();){const t=e.getObjectId();s.delete(t)}}for(const e of s)this._overrides.delete(e);s.size&&this.invalidate()}}takeOverrideUpdate(){const e=this._update;return e.isEmpty?null:(this._update=new a,e.applyWhereClause(this._parameters))}asChunk(){const e=this._parameters;if(this._lastOverrideParametersHash!==e.hash&&(this._lastOverrideParametersHash=e.hash,this._chunk=null),!this._chunk){const t=[];for(const s of this._overrides.values())null!=s.inner&&e.testFeature(s.inner)&&t.push(s.inner);this._chunk=h.fromFeatures(t,e.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,s){for(const[r,i]of this._overrides.entries()){if(i.isWeak&&null!=i.inner){const n=i.inner.attributes[s];n&&t.has(n)&&!e.has(n)&&e.set(n,r);continue}if(null!=i.lastWeak&&null!=i.lastWeak.inner){const n=i.lastWeak.inner.attributes[s];n&&t.has(n)&&!e.has(n)&&e.set(n,r)}}}_getWeakDeletions(){const e=new Set;for(const[t,s]of this._overrides.entries())s.isWeak&&null==s.inner&&e.add(t);return e}}},8446:(e,t,s)=>{s.d(t,{K:()=>a});var r=s(90708),i=s(43334),n=s(95466),o=s(99996);class a extends o.Y{static fromFeatures(e,t){const{geometryType:s}=t,i=(0,r.Di)([],e,s,!1,!1,t.featureIdInfo);for(let t=0;t<i.length;t++)i[t].displayId=e[t].displayId;return a.fromOptimizedFeatures(i,t)}static fromFeatureSet(e,t){const s=(0,r.q3)(e,t.featureIdInfo);return a.fromOptimizedFeatureSet(s,t)}static fromOptimizedFeatureSet(e,t){const s=a.fromOptimizedFeatures(e.features,t);return s._exceededTransferLimit=e.exceededTransferLimit,s._transform=e.transform,s._fieldsIndex=new n.A(e.fields),s}static fromOptimizedFeatures(e,t,s){const r=new a(e,t);return r._fieldsIndex=t.fieldsIndex,r._transform=s,r}static empty(e){return new a([],e)}constructor(e,t){super(t),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=t.geometryType,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(const t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}copy(){const e=new a(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,i.N3)(this._current)?(0,r.Rk)(this._current.geometry,2):0}_readX(){return(0,i.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,i.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,i.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){const t=this._current.attributes[e];if(void 0!==t)return t;const s=e.toLowerCase();for(const e in this._current.attributes)if(e.toLowerCase()===s)return this._current.attributes[e];return}const s=this._fieldsIndex.get(e);if(!s)return;const r=this._current.attributes[s.name];return null==r?r:t&&this.fields.isDateField(e)?new Date(r):r}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex}}},8631:(e,t,s)=>{s.d(t,{rS:()=>c,gK:()=>d}),s(44208);var r,i=s(53177),n=s(76357),o=s(31635),a=s(91429),h=s(93223);let u=class extends n.A{static{r=this}constructor(e){super(e),this.type="inherited"}clone(){return new r}};(0,o.Cg)([(0,h.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=r=(0,o.Cg)([(0,a.$K)("esri.layers.support.InheritedDomain")],u);var l=s(41628);const d={key:"type",base:n.A,typeMap:{range:l.A,"coded-value":i.A,inherited:u}};function c(e){if(!e?.type)return null;switch(e.type){case"range":return l.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},9012:(e,t,s)=>{function r(e,{timeZone:t,timeExtent:s}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:s?.start,currentEnd:s?.end}}}}s.d(t,{N:()=>r})},9775:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(62788),i=s(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new i.I,this._items=new Set}get length(){return(0,r.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,r.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){const t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,r.gc)(this._observable),yield*this._items}}},16630:(e,t,s)=>{s.d(t,{s:()=>u}),s(44208);var r=s(69397),i=s(92722),n=s(57733),o=s(99996);let a;const h=new TextDecoder;class u extends o.Y{constructor(e,t,s,i,n=new Uint32Array(s.size())){super(e),this._fields=t,this._inner=s,this._fileIndex=i,this._displayIds=n,this._index=-1,this.usedMemory=r.qK,this._size=this._inner.size(),e.featureIdInfo.type}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(const t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){return this._fileIndex<<24|this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const e=new u(this.metadata,this._fields,this._inner,this._fileIndex,this._displayIds);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}readGeometryForDisplayTransformed(e){const[t,s]=e.translate,[r,o]=e.scale;return a||(a=n.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,t,s,r,o,this._index)?new i.A(a.readLengthsUnsafe(),a.readCoordsUnsafe(),this.hasZ,this.hasM):null}_readGeometry(e){const t=this._inner.readCoordsUnsafe(this._index),s=this._inner.readLengthsUnsafe(this._index);return t&&s?new i.A(s,t,this.hasZ,this.hasM):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(e,t){const s=this.fields.get(e);if(!s)return;if(null==s.column)return this.getObjectId();const r=this._inner.readAttribute(this._index,s.column);if(null==r)return r;if("esriFieldTypeString"===s.type){const e=this._inner.readAttribute(this._index,s.column);return h.decode(e)}const i=this.fields.isDateField(s.name);return t?null==r?r:i?new Date(r):r:r}_readAttributes(){const e={};for(const t of this._fields.fields)if(null!=t.column&&null!=t.column){const s=this._readAttribute(t.name,!1);void 0!==s&&(e[t.name]=s)}return e.__OBJECTID=this.getObjectId(),e}}},20437:(e,t,s)=>{s.d(t,{A:()=>_});var r,i=s(31635),n=s(66552),o=s(25482),a=s(91429),h=s(56507),u=s(8631),l=s(98453),d=s(36005),c=s(93223);const p=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let _=class extends o.o{static{r=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?.value??null}readValueType(e,{description:t}){let s=null;try{s=t?JSON.parse(t):null}catch(e){}return s?p.fromJSON(s.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],_.prototype,"defaultValue",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"description",void 0),(0,i.Cg)([(0,d.w)("description")],_.prototype,"readDescription",null),(0,i.Cg)([(0,a.MZ)({types:u.gK,json:{read:{reader:u.rS},write:!0}})],_.prototype,"domain",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"editable",void 0),(0,i.Cg)([(0,a.MZ)({type:h.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],_.prototype,"length",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],_.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(l.m)],_.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)()],_.prototype,"valueType",void 0),(0,i.Cg)([(0,d.w)("valueType",["description"])],_.prototype,"readValueType",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{read:!1}})],_.prototype,"visible",void 0),_=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.Field")],_)},28923:(e,t,s)=>{s.d(t,{j:()=>i});var r=s(70300);class i extends r.K{constructor(e,t,s,r,i=0){super(),this._reader=e,this._queryJSON=t,this._page=s,this._end=r,this.fileIndex=i,this.chunkId=`${this.fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(e){const t=this.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},30661:(e,t,s)=>{s.d(t,{Z:()=>n});var r=s(43334),i=s(8446);class n{static{this.Shared=new n}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t,s){const n=e.readAttributes(),o=new r.Om(t,n,null,e.getObjectId(),e.getDisplayId()),a=i.K.fromOptimizedFeatures([o],e.metadata);return a.setIndex(0),a}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},32011:(e,t,s)=>{s.d(t,{d:()=>u});var r=s(19419),i=s(537),n=s(12359),o=s(95108),a=s(12176);const h=222045e-19;function u(e){if(0===e.totalSize)return null;const t=(0,i.z8)(e);if(!t)return null;const s=4*(Math.abs(t[0])+Math.abs(t[2])+Math.abs(t[1])+Math.abs(t[3])+1)*h;let o=0,a=0;e.reset();for(let t=0;e.nextPath();t++){const s=e.getCurrentRingArea();s>a&&(a=s,o=t)}if(e.seekPath(o),0===e.pathSize)return null;e.seekPathStart();const u=(0,i.B$)(e);if(Math.abs(a)<=2*s*s)return[(u[0]+u[2])/2,(u[1]+u[3])/2];e.seekPathStart();const p=(0,n.w2)(e,(0,r.vt)());if(null===p)return null;if(e.totalPoints<4)return p;const _=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],f=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN];let y=!1,g=d(p,e,!0);0===g.distance&&(y=!0,_[0][0]=p[0],_[0][1]=p[1],g=d(p,e,!1)),f[0]=g.distance,m[0]=0;const x=[NaN,NaN];let w=!1,M=.25,T=-1,A=NaN;do{if(A=NaN,_[1]=c(e,v(u[0],u[2],M),0,t),isNaN(_[1][0])||isNaN(_[1][1])||(g=d(_[1],e,!1),A=g.distance),!isNaN(A)&&A>s&&l(_[1],e))w=!0,f[1]=A,m[1]=b(_[1],p);else if(!isNaN(A)&&A>T&&(T=A,x[0]=_[1][0],x[1]=_[1][1]),M-=.01,M<.1){if(!(T>=0))break;w=!0,f[1]=T,_[1][0]=x[0],_[1][1]=x[1],m[1]=b(_[1],p)}}while(!w);w=!1,M=.5,T=-1;let S=.01,C=1;do{if(A=NaN,_[2]=c(e,v(u[0],u[2],M),0,t),isNaN(_[2][0])||isNaN(_[2][1])||(g=d(_[2],e,!1),A=g.distance),!isNaN(A)&&A>s&&l(_[2],e))w=!0,f[2]=A,m[2]=b(_[2],p);else if(!isNaN(A)&&A>T)T=A,x[0]=_[2][0],x[1]=_[2][1];else if(A>T&&(T=A,x[0]=_[2][0],x[1]=_[2][1]),M=.5+S*C,S+=.01,C*=-1,M<.3||M>.7){if(!(T>=0))break;w=!0,f[2]=T,_[2][0]=x[0],_[2][1]=x[1],m[2]=b(_[2],p)}}while(!w);w=!1,M=.75,T=-1;do{if(A=NaN,_[3]=c(e,v(u[0],u[2],M),0,t),isNaN(_[3][0])||isNaN(_[3][1])||(g=d(_[3],e,!1),A=g.distance),!isNaN(A)&&A>s&&l(_[3],e))w=!0,f[3]=A,m[3]=b(_[3],p);else if(A>T&&(T=A,x[0]=_[3][0],x[1]=_[3][1]),M+=.01,M>.9){if(!(T>=0))break;w=!0,f[3]=T,_[3][0]=x[0],_[3][1]=x[1],m[3]=b(_[3],p)}}while(!w);const P=[0,1,2,3],F=y?0:1;let O;for(let e=F;e<4;e++)for(let e=F;e<3;e++){const t=m[e],s=m[e+1];I(t,s)>0&&(O=P[e],P[e]=P[e+1],P[e+1]=O,m[e]=s,m[e+1]=t)}let N=F,k=0,z=0;for(let e=F;e<4;e++){switch(e){case 0:z=2*f[P[e]];break;case 1:z=1.66666666*f[P[e]];break;case 2:z=1.33333333*f[P[e]];break;case 3:z=f[P[e]]}z>k&&(k=z,N=P[e])}return _[N]}function l(e,t){let s,r,i,n,o=0;for(t.reset();t.nextPath()&&t.nextPoint();)for(s=t.x,r=t.y;t.nextPoint();s=i,r=n)i=t.x,n=t.y,r>e[1]!=n>e[1]&&((i-s)*(e[1]-r)-(n-r)*(e[0]-s)>0?o++:o--);return 0!==o}function d(e,t,s){if(s&&l(e,t))return{coord:e,distance:0};let r=1/0,i=0,n=0,a=[0,0],h=[0,0];const u=[0,0];for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(a[0]=t.x,a[1]=t.y;t.nextPoint();a=h){h=[t.x,t.y],(0,o.gR)(u,e,a,h);const s=b(e,u);s<r&&(r=s,i=u[0],n=u[1])}return{coord:[i,n],distance:Math.sqrt(r)}}function c(e,t,s,i){const n=[t,0];let o=1/0,h=1/0,u=!1,l=!1;const d=[[t,i[1]-1],[t,i[3]+1]],c=[0,0],_=[0,0],f=[0,0],m=[[0,0],[0,0]],y=(0,r.vt)();for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(m[0][0]=e.x,m[0][1]=e.y;e.nextPoint();m[0][0]=m[1][0],m[0][1]=m[1][1]){if(m[1][0]=e.x,m[1][1]=e.y,null===p(y,m))continue;if(_[0]=d[0][0],_[1]=d[0][1],f[0]=d[1][0],f[1]=d[1][1],0===g(y,_,f))continue;if(!(0,a.Ql)(d[0],d[1],m[0],m[1],c))continue;const t=c[1];o>h?t<o&&(o=t,u=!0):t<h&&(h=t,l=!0)}return u&&l?n[1]=(o+h)/2:n[0]=n[1]=NaN,n}function p(e,t){if(t.length<2)return null;e||(e=(0,r.vt)());const[s,i]=t[0],[n,o]=t[1];return e[0]=Math.min(s,n),e[1]=Math.min(i,o),e[2]=Math.max(s,n),e[3]=Math.max(i,o),e}const _=1,f=4,m=3,y=12;function g(e,t,s){let r=x(t,e),i=x(s,e);const n=e[0],o=e[1],a=e[2],h=e[3];if(r&i)return 0;if(!(r|i))return 4;const u=(r?1:0)|(i?2:0);do{const u=s[0]-t[0],l=s[1]-t[1];if(u>l)r&m?(r&_?(t[1]+=l*(n-t[0])/u,t[0]=n):(t[1]+=l*(a-t[0])/u,t[0]=a),r=x(t,e)):i&m?(i&_?(s[1]+=l*(n-s[0])/u,s[0]=n):(s[1]+=l*(a-s[0])/u,s[0]=a),i=x(s,e)):r?(r&f?(t[0]+=u*(o-t[1])/l,t[1]=o):(t[0]+=u*(h-t[1])/l,t[1]=h),r=x(t,e)):(i&f?(s[0]+=u*(o-s[1])/l,s[1]=o):(s[0]+=u*(h-s[1])/l,s[1]=h),i=x(s,e));else if(r&y?(r&f?(t[0]+=u*(o-t[1])/l,t[1]=o):(t[0]+=u*(h-t[1])/l,t[1]=h),r=x(t,e)):i&y?(i&f?(s[0]+=u*(o-s[1])/l,s[1]=o):(s[0]+=u*(h-s[1])/l,s[1]=h),i=x(s,e)):r?(r&_?(t[1]+=l*(n-t[0])/u,t[0]=n):(t[1]+=l*(a-t[0])/u,t[0]=a),r=x(t,e)):(i&_?(s[1]+=l*(n-s[0])/u,s[0]=n):(s[1]+=l*(a-s[0])/u,s[0]=a),i=x(s,e)),r&i)return 0}while(r|i);return u}function x(e,t){return(e[0]<t[0]?1:0)|(e[0]>t[2]?1:0)<<1|(e[1]<t[1]?1:0)<<2|(e[1]>t[3]?1:0)<<3}function v(e,t,s){return e+(t-e)*s}function b(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function I(e,t){if(e<t)return-1;if(e>t)return 1;if(e===t)return 0;const s=isNaN(e),r=isNaN(t);return s<r?-1:s>r?1:0}},32587:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(62788),i=s(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,r.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){const t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach((s,r)=>e.call(t,s,r,this),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(const s of t){if(!this._map.has(s))continue;const t=this._map.get(s),r=e(t,s);r!==t&&this.set(s,r)}})}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},35258:(e,t,s)=>{s.d(t,{i:()=>n});var r=s(16930),i=s(95466);class n{static minimal(e,t,s=[]){return new n({geometryType:e,fieldsIndex:new i.A(s).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=i.A.fromJSON(e.fieldsIndex),e.spatialReference&&(e.spatialReference instanceof r.A?this._spatialReference=e.spatialReference:this._spatialReference=r.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(e.outSpatialReference instanceof r.A?this._outSpatialReference=e.outSpatialReference:this._outSpatialReference=r.A.fromJSON(e.outSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(e){return new n({fieldsIndex:{fields:[...this._fieldsIndex.fields,...e],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(e,t,s)=>{s.d(t,{C_:()=>c,OH:()=>f,Vh:()=>m,on:()=>d,pc:()=>y,wB:()=>h,z7:()=>u});var r=s(37955),i=s(36563),n=s(97768),o=s(74887),a=s(14012);function h(e,t,s={}){return l(e,t,s,p)}function u(e,t,s={}){return l(e,t,s,_)}function l(e,t,s={},r){let i=null;const o=s.once?(e,s)=>{r(e)&&((0,n.xt)(i),t(e,s))}:(e,s)=>{r(e)&&t(e,s)};if(i=(0,a.Cn)(e,o,s.sync,s.equals),s.initial){const t=e();o(t,t)}return i}function d(e,t,s,o={}){let a=null,u=null,l=null;function d(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function c(e){o.once&&o.once&&(0,n.xt)(l),s(e)}const p=h(e,(e,s)=>{d(),(0,r.wb)(e)&&(a=e,u=(0,r.on)(e,t,c),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return l=(0,i.hA)(()=>{p.remove(),d()}),l}function c(e,t){return function(e,t,s){if((0,o.G4)(s))return Promise.reject((0,o.NK)());const r=e();if(t?.(r))return Promise.resolve(r);let a=null;function h(){a=(0,n.xt)(a)}return new Promise((r,n)=>{a=(0,i.vE)([(0,o.u7)(s,()=>{h(),n((0,o.NK)())}),l(e,e=>{h(),r(e)},{sync:!1,once:!0},t??p)])})}(e,_,t)}function p(e){return!0}function _(e){return!!e}s(80559);const f={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},36745:(e,t,s)=>{s.d(t,{z:()=>a});var r=s(4718),i=s(51118),n=s(60408),o=s(92722);class a{static fromOptimized(e,t,s=1){return(new h).initialize(e,t,s)}static fromJSON(e){const[t,s]=l(e),r=(0,n.Pv)(e),i=(0,n.W0)(e);return(new d).initialize(t,s,r,i,1)}static fromOptimizedCIM(e,t,s=1){return(new c).initialize(e,t,s)}static fromJSONCIM(e,t=1){const[s,r]=l(e),i=(0,n.Pv)(e),o=(0,n.W0)(e);return(new p).initialize(s,r,i,o,t)}static fromFeatureSetReader(e){const t=e.readGeometryForDisplay(),s=e.geometryType;return t&&s?this.fromOptimized(t,s):null}static fromFeatureSetReaderCIM(e){const t=e.readGeometryForDisplay(),s=e.geometryType;return t&&s?this.fromOptimizedCIM(t,s):null}static createEmptyOptimized(e,t=!1,s=!1,r=1){return(new c).initialize(new o.A([],[],t,s),e,r)}static createEmptyJSON(e,t=!1,s=!1){return(new d).initialize([],e,t,s,1)}static createEmptyOptimizedCIM(e,t=!1,s=!1,r=1){return(new c).initialize(new o.A([],[],t,s),e,r)}static createEmptyJSONCIM(e,t=!1,s=!1,r=1){return(new p).initialize([],e,t,s,r)}asJSON(){const e=(0,i.x)(this),{hasZ:t,hasM:s}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:e[0][0][0],ymin:e[0][0][1],xmax:e[0][2][0],ymax:e[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:e.flat(),hasZ:t,hasM:s}:"esriGeometryPoint"===this.geometryType?{x:e[0][0][0],y:e[0][0][1],z:t?e[0][0][2]:void 0,m:s?e[0][0][t?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:e,hasZ:t,hasM:s}:{paths:e,hasZ:t,hasM:s}}getCurrentRingArea(){if(this.pathSize<3)return 0;let e,t,s=0;if(this.seekPathStart(),!this.nextPoint())return 0;e=this.x,t=this.y;const r=e,i=t;for(;this.nextPoint();)s+=(e-this.x)*(t+this.y),e=this.x,t=this.y;return s+=(e-r)*(t+i),-.5*s}invertY(){this.yFactor*=-1}}class h extends a{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(e,t,s){return this.geometryType=t,this._stride=e.stride,this._geometry=e,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(e){if(e>=0&&e<this.totalSize){if(this._pathIndex<e)for(;this._pathIndex<e&&this.nextPath(););else if(this._pathIndex>e)for(;this._pathIndex>e&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(e){const t=this._pathOffset+e*this._stride;return t>=0&&t<this._end&&(this._pointOffset=t,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const e=this._end,t=this._geometry.coords,s=this._pathOffset;return(new h).initialize(new o.A([this.pathSize],t.slice(s,e),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){const e=this._end,t=this._stride,s=this._geometry.coords;let r=0;for(let i=this._pathOffset+t;i<e;i+=t){const e=s[i-t],n=s[i-t+1],o=s[i]-e,a=s[i+1]-n;r+=Math.sqrt(o*o+a*a)}return r}startPath(){this._geometry.lengths.push(0)}pushPath(e){this.startPath(),this.pushPoints(e)}pushPoint(e){for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]++}pushXY(e,t){this._geometry.coords.push(e,t),this._geometry.lengths[this.totalSize-1]++}pushPoints(e){for(const t of e)for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]+=e.length}pushCursor(e){const t=e.asOptimized();this._geometry.coords.push(...t.coords),this._geometry.lengths.push(...t.lengths)}asOptimized(){const e=this._geometry.clone();if(1!==this.yFactor)for(let t=1;t<e.coords.length;t+=this._stride)e.coords[t]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(e.lengths.length=0),e}isClosed(){const e=this._geometry.coords,t=this._pathOffset,s=this._end-this._stride;for(let r=0;r<this._stride;r++)if(e[t+r]!==e[s+r])return!1;return!0}clone(){return(new h).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((e,t)=>e+t)}get pathSize(){const{lengths:e}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>e.length-1?0:e[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(e){this._geometry.coords[this._pointOffset]=e}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(e){this._geometry.coords[this._pointOffset+1]=this.yFactor*e}get z(){return this._geometry.coords[this._pointOffset+2]}set z(e){this._geometry.coords[this._pointOffset+2]=e}get m(){const e=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+e]}set m(e){this._geometry.coords[this._pointOffset+3]=e}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function u(e){const t=[e.x,e.y];return e.z&&t.push(e.z),e.m&&t.push(e.m),t}function l(e){return(0,n.Bi)(e)?[e.rings,"esriGeometryPolygon"]:(0,n.Rg)(e)?[e.paths,"esriGeometryPolyline"]:(0,n.U9)(e)?[[e.points],"esriGeometryMultipoint"]:(0,n.ZC)(e)?[[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(e)?[[[u(e)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class d extends a{initialize(e,t,s,r,i){return this._paths=e,this.geometryType=t,this.hasZ=s,this.hasM=r,this._pathIndex=this._pointIndex=-1,this.yFactor=i,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(e){return this._pathIndex=e,this._pointIndex=-1,e>=0&&e<this.totalSize&&(this._currentPath=this._paths[e],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(e){return e>=0&&e<this._currentPath.length&&(this._pointIndex=e,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const e=this._currentPath.length,t=this._currentPath;let s=0;for(let r=1;r<e;r++){const e=t[r-1],i=t[r],n=e[0],o=e[1],a=i[0]-n,h=i[1]-o;s+=Math.sqrt(a*a+h*h)}return s}startPath(){this._paths.push([])}getCurrentPath(){return(new d).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(e){this._paths.push(e)}pushPoint(e){this._paths[this.totalSize-1].push(e)}pushXY(e,t){this._paths[this.totalSize-1].push([e,t])}pushPoints(e){this._paths[this.totalSize-1].push(...e)}pushCursor(e){const t=(0,i.x)(e);for(const e of t)this.pushPath(e)}asOptimized(){const{hasZ:e,hasM:t}=this,s=new o.A([],[],e,t),{coords:r,lengths:i}=s;if("esriGeometryPoint"===this.geometryType)r.push(...this._paths[0][0]),i.length=0;else for(const s of this._paths){for(const i of s)r.push(i[0]),r.push(i[1]*this.yFactor),e&&r.push(i[2]),t&&r.push(i[this._mIndex]);i.push(s.length)}return s}isClosed(){const e=this._currentPath[0],t=this._currentPath[this._currentPath.length-1];for(let s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}clone(){return(new d).initialize((0,r.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(e=>e.length).reduce((e,t)=>e+t)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(e){this._currentPoint[0]=e}get y(){return this.yFactor*this._currentPoint[1]}set y(e){this._currentPoint[1]=this.yFactor*e}get z(){return this._currentPoint[2]}set z(e){this._currentPoint[2]=e}get m(){return this._currentPoint[this._mIndex]}set m(e){this._currentPoint[this._mIndex]=e}get pathIndex(){return this._pathIndex}}class c extends h{initialize(e,t,s){return super.initialize(e,t,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(e=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const e=(new c).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return e._controlPoints=this._controlPoints,e}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(e){this._controlPoints[this.pathIndex].add(e)}getControlPointAt(e){return this._controlPoints[this.pathIndex].has(e)}}class p extends d{initialize(e,t,s,r,i){return super.initialize(e,t,s,r,i)}clone(){return(new p).initialize((0,r.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(e){this._paths[this.pathIndex][e][4]=1}getControlPointAt(e){return 1===this._paths[this.pathIndex][e][4]}}},38976:(e,t,s)=>{s.d(t,{n:()=>n});var r=s(76213),i=s(9012);class n{constructor(e){this._options=e}insert(e,t){const s=e.getCursor(),{arcadeContextInfo:r,scale:n}=this._options,o=(0,i.N)(n,r);for(;s.next();)this._insertFeature(s,o,this._options.sqlOptions,t)}_insertFeature(e,t,s,i){const{featureFilter:n}=this._options;if(null!==n&&!n.check(e,s))return;let o=0,a=0;if("esriGeometryPoint"===e.geometryType)o=e.readXWorldSpace(),a=e.readYWorldSpace();else{if(i){const t=e.readCentroidForDisplay();if(null==t)return;const[s,i]=t.coords;if(s<0||s>r.CQ||i<0||i>r.CQ)return}const t=e.readCentroidWorldSpace();if(null==t)return;o=t.coords[0],a=t.coords[1]}this._insert(e,o,a,t)}}},39357:(e,t,s)=>{s.d(t,{A:()=>a});var r,i=s(31635),n=s(25482),o=s(91429);let a=r=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValue")],a)},39412:(e,t,s)=>{s.d(t,{N:()=>n});var r=s(2741);let i=null;async function n(){return i||(i=async function(){const e=await s.e(7733).then(s.bind(s,57733));return await e.default({module_or_path:(0,r.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),e}()),i}},41628:(e,t,s)=>{s.d(t,{A:()=>h});var r,i=s(31635),n=s(91429),o=s(76357),a=s(93223);let h=class extends o.A{static{r=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new r({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,s){t[s]=[this.minValue||0,e]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,s){t[s]=[e,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,i.Cg)([(0,a.e)({range:"range"})],h.prototype,"type",void 0),h=r=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],h)},44320:(e,t,s)=>{s.d(t,{I:()=>h});var r=s(65529),i=s(44208),n=s(70328),o=s(30661),a=s(5162);class h{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new r.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let e=0;for(const t of this._chunks.values())e+=t.usedMemory;return e}async update(e){if(this._overrides){const t=await a.HJ.create(e);this._overrides.update(t)}this._schema=e}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insert(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(e),this._chunks.set(e.chunkId,e),this.events.emit("changed")}remove(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);const t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){const e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),e}async applyOverride(e){if(null==this._overrides){const e=await a.HJ.create(this._schema);this._overrides=new a.Im(e);for(const e of this._chunks.values())this._overrides.onChunkInsert(e)}this._overrides.apply(e,this),this.events.emit("changed");for(const e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){const t=new Set;for(const s of this.chunks()){const r=s.reader.getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r.copy()),t.add(s))}}}forEachUnsafe(e){const t=new Set;for(const s of this.chunks()){const r=s.reader.getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r),t.add(s))}}}mapObjectIdsFromGlobalIds(e,t){const s=new Map,r=new Set(e);return this._overrides?.putWeakObjectIdsFromGlobalIds(s,r,t),this._forEachUnsafeIgnoreOverrides(e=>{const i=e.readAttribute(t);if(i&&r.has(i)&&!s.has(i)){const t=e.getObjectId();s.set(i,t)}}),s}forEachInBounds(e,t){const s=new Set;for(const r of this.chunks()){const i=r.queryFeaturesInBounds(e);for(;i.next();){const e=i.getObjectId();s.has(e)||(t(i.copy()),s.add(e))}}}forEachBounds(e,t){const s=(0,n.vt)();for(const r of e)r.getBounds(s)&&t(s)}_forEachUnsafeIgnoreOverrides(e){const t=new Set;for(const s of this._chunks.values()){const r=s.reader.withoutOverrides().getCursor();for(;r.next();){const s=r.getObjectId();t.has(s)||(e(r),t.add(s))}}}}},48163:(e,t,s)=>{function r(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function o(){return n(1,1)}function a(){return n(1,0)}function h(){return n(0,1)}s.d(t,{Un:()=>u,fA:()=>n,o8:()=>i,vt:()=>r});const u=o(),l=a(),d=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:d,ZEROS:[0,0],clone:i,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){const s=Math.min(2,e.length);for(let r=0;r<s;++r)t[r]=e[r];return t},fromValues:n,ones:o,unitX:a,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48526:(e,t,s)=>{s.d(t,{A:()=>_});var r,i=s(31635),n=s(4718),o=s(91429),a=s(5443),h=s(91075),u=s(86738),l=s(16930),d=s(90634),c=s(56993),p=s(43937);let _=r=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:s,hasZ:r,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:r??=!0,s??=!0;break;case 3:r??=!0!==s,s??=!r;break;default:r??=!1,s??=!1}return i??=l.A.WGS84,{...e,hasM:s,hasZ:r,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const e=(0,d.ge)(this);return e?new a.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,n.o8)(this.points)}clone(){const{points:e,spatialReference:t,hasM:s,hasZ:i}=this;return new r({points:(0,n.o8)(e),spatialReference:t.clone(),hasM:s,hasZ:i})}addPoint(e){return(0,c.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;const t=this.points[e],s={x:t[0],y:t[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(s.z=t[2],r=3),this.hasM&&(s.m=t[r]),new u.A(s)}removePoint(e){if(!this._validateInputs(e))return null;const t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?((0,c.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],_.prototype,"points",void 0),(0,i.Cg)([(0,p.K)("points")],_.prototype,"writePoints",null),_=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],_),_.prototype.toJSON.isDefaultToJSON=!0},50115:(e,t,s)=>{s.d(t,{OP:()=>o,V4:()=>i,rZ:()=>n}),s(44208);var r=s(53966);function i(e,t,s){if(null==e)return null;const i=t.readArcadeFeature();t.contextTimeZone=s.$view?.timeZone;try{return e.evaluate(i,s)}catch(e){return r.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function o(e,t,s,r){if(null==e)return null!=r?r:null;const i=t.readArcadeFeature();t.contextTimeZone=s.$view?.timeZone;const o=e.evaluate(i,s);return n(o)?null!=r?r:null:o}},52350:(e,t,s)=>{s.d(t,{e:()=>a});var r=s(69397),i=s(62577),n=s(90708),o=s(99996);class a extends o.Y{static from(e,t){if(e instanceof this){const s=new Set(t),r=e._indices.filter(e=>s.has(e));return new a(e._reader,r)}return new a(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){const t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,i.Q1)(e));const s=(0,i.Q1)(t),r=(0,i.Q1)(e),[n,o]=s.scale,[a,h]=s.translate,[u,l]=r.scale,[d,c]=r.translate,p=n/u,_=o/l,f=(a-d)/u,m=(h-c)/l;this._displayTransform={originPosition:"lowerLeft",scale:[1/p,1/_,1,1],translate:[-f/p,-m/_,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const e=new a(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return r.qK+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,i.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,i.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const e=this._reader.readCentroidForDisplay()?.clone();if(e){const[t,s]=e.coords;this._displayTransform&&(e.coords[0]=(0,i.IE)(this._displayTransform,t),e.coords[1]=(0,i.B2)(this._displayTransform,s))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){const s=this._reader.readAttribute(e,t);return null==s&&this._processorAttributes?this._processorAttributes[e]:s}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,n.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(e,t){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},53177:(e,t,s)=>{s.d(t,{A:()=>l});var r,i=s(31635),n=s(4718),o=s(91429),a=s(39357),h=s(76357),u=s(93223);let l=class extends h.A{static{r=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const s=String(e);this.codedValues.some(e=>(String(e.code)===s&&(t=e.name),!!t))}return t}clone(){return new r({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,o.MZ)({type:[a.A],json:{write:{isRequired:!0}}})],l.prototype,"codedValues",void 0),(0,i.Cg)([(0,u.e)({codedValue:"coded-value"})],l.prototype,"type",void 0),l=r=(0,i.Cg)([(0,o.$K)("esri.layers.support.CodedValueDomain")],l)},60408:(e,t,s)=>{function r(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function o(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function h(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?n(e)?"esriGeometryPoint":o(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":r(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function l(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}s.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>l,Rg:()=>o,U9:()=>i,W0:()=>d,ZC:()=>r,fT:()=>n,uW:()=>h})},63664:(e,t,s)=>{s.d(t,{B:()=>r});class r{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},63892:(e,t,s)=>{s.d(t,{DV:()=>p,Xj:()=>f,hD:()=>_});var r=s(11254),i=s(49186),n=(s(44208),s(563)),o=s(84952),a=s(39412);const h=new n.QueueProcessor({concurrency:8,process:async e=>{const{data:t}=await(0,r.A)(e.url,e.options);return t}}),u=e=>async function(t,s,r,i){const n=e?.(),o=n??{};return await h.push({url:t,options:{responseType:"array-buffer",query:o,headers:{range:`bytes=${s}-${r}`}}})},l=e=>async function(t){if((0,o.w8)(t)){const{data:e}=await(0,r.A)(t,{responseType:"blob"});return e.size}const{data:s}=await(0,r.A)(t,{responseType:"native",method:"head",query:e?.()}),i=s.headers.get("Content-Length");if(null==i)throw new Error("Unable to parse content length");return parseInt(i,10)};function d(e,t){switch(t){case"esriGeometryPoint":return e.GeometryType.Point;case"esriGeometryPolygon":case"polygon":return e.GeometryType.Polygon;case"esriGeometryPolyline":case"polyline":return e.GeometryType.Polyline;case"esriGeometryMultipoint":case"multipoint":return e.GeometryType.Multipoint;default:throw new i.A("parquet",`Found unexpected GeometryType: ${t}`)}}function c(e,t){const s=e.GeometryInfo.new();t.geometry&&s.setGeometry(function(e,t){const s=t.encoding,r=d(e,t.geometryType),i=t.spatialReference.wkid;if(null==i)throw new Error("InternalError: Wkid must be defined.");switch(s.type){case"wkb":return e.GeometryField.fromWkb(s.field,i,r);case"location":{const{yField:t,xField:n}=s;return e.GeometryField.fromLocation(t,n,i,r)}}}(e,t.geometry));const r=t.displayOptimization;if(r){const{index:t,parentColumn:i}=r,n=e=>null!=i?[i,e].join("."):e;if("z"===t.type){const r=e.DisplayOptimizationZBuilder.new();r.setCodeField(n(t.code)),r.setXColumn(n(t.xColumn)),r.setYColumn(n(t.yColumn)),r.setCooordinatePrecision(t.coordinatePrecision),r.setFullExtent(t.fullExtent),r.setSpatialReference(t.wkid,t.wkt),r.setHasZ(!!t.zColumn),r.setHasM(!!t.mColumn),s.setOptmizationZ(r)}if("xz"===t.type){const r=d(e,t.geometryType),i=e.DisplayOptimizationXZBuilder.new();i.setCodeField(n(t.code)),i.setEncoding(t.encoding),i.setFullExtent(t.fullExtent),i.setGeometryType(r),i.setSpatialReference(t.wkid,t.wkt),i.setMaxLevel(t.maxLevel),i.setHasZ(t.hasZ??!1),i.setHasM(t.hasM??!1);for(const s of t.levels??[]){const[t,r]=s.transform.translate,[o,a]=s.transform.scale,h=new Float64Array([t,r]),u=new Float64Array([o,a]),l=n(s.column);i.addLevel(e.MultiscaleGeometryField.new(s.level,s.scale,l,h,u))}s.setOptmizationXZ(i)}}return s}async function p(e,t={}){const s=await(0,a.N)(),r=u(t.getCustomParameters),n=l(t.getCustomParameters),o=t.geometryInfo?c(s,t.geometryInfo):null;try{return await s.ParquetFile.fromUrl(e,r,n,o)}catch(e){throw new i.A("parquet","Failed to parse file",{error:e})}}function _(e){const t=e.keyValueMetadata("geo");return null!=t?JSON.parse(t):null}function f(e){if(e.keyValueMetadata("esri"))throw new i.A("parquet:unsupported","File was created using an unsupported experimental display index. Please regenerate the file.");const t=e.keyValueMetadata("geodisplay");if(null!=t)return JSON.parse(t);const s=e.keyValueMetadata("org.apache.spark.sql.parquet.row.metadata");if(null!=s){const e=JSON.parse(s);for(const t of e.fields)if(null!=t.metadata&&"type"in t.metadata&&("xz"===t.metadata.type||"z"===t.metadata.type)){const e={parentColumn:t.name,index:t.metadata};if("xz"===e.index.type&&(e.index.geometryType=e.index.geometryType.toLowerCase(),"esri-pbf"===e.index.encoding&&(e.index.encoding="esriPBF"),"esriPBF"!==e.index.encoding))throw new i.A("parquet:unsupported",`Encoding for display index must be of type esriPBF, but found ${e.index.encoding}`);return e}}return null}},64714:(e,t,s)=>{s.d(t,{F0:()=>a,Vx:()=>l,e2:()=>c,f:()=>p});var r=s(44208),i=s(4718),n=s(99352),o=s(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const h=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function l(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let s=`this${d(t)} = null;`;for(const t in e)s+=`this${d(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${s};\n }\n }\n `)();return()=>new r}catch(s){return()=>({[t]:null,...e})}}function d(e){return h.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function p(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},65864:(e,t,s)=>{s.d(t,{rS:()=>l,xD:()=>c});var r=s(5443),i=s(91075),n=s(48526),o=s(86738),a=s(39829),h=s(82799),u=s(60408);function l(e){return null==e?null:e instanceof i.A?e:(0,u.fT)(e)?o.A.fromJSON(e):(0,u.Rg)(e)?h.A.fromJSON(e):(0,u.Bi)(e)?a.A.fromJSON(e):(0,u.U9)(e)?n.A.fromJSON(e):(0,u.ZC)(e)?r.A.fromJSON(e):null}const d={esriGeometryPoint:o.A,esriGeometryPolyline:h.A,esriGeometryPolygon:a.A,esriGeometryEnvelope:r.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:a.A};function c(e){return e&&d[e]||null}},68974:(e,t,s)=>{s.d(t,{H:()=>u,p:()=>h});var r=s(69397),i=s(86211),n=s(38976),o=s(75538);const a=96;function h(e,t){return(0,i.GA)(e)*i.dy*a/t}class u extends n.n{constructor(e){super(e),this._cells=new Map,this._pixelsPerMapUnit=h(e.spatialReference,e.scale)}get usedMemory(){const e=this._cells.values().next().value;return e?(r.RS+e.usedMemory)*this._cells.size:0}put(e){for(const t of this._cells.values()){const s=e.get(t.id);s?s.merge(t):e.set(t.id,t.clone())}}putBounded(e,t,s){const r=[t.xmin,t.ymin,t.xmax,t.ymax],[i,n,o,a]=r,h=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),u=Math.floor(n*this._pixelsPerMapUnit/this._options.cellSize),l=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),d=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let t=u;t<=d;t++)for(let s=h;s<=l;s++){const r=`${s}.${t}`,i=this._cells.get(r);if(!i)continue;const n=e.get(i.id);n?i&&!e.has(i.id)&&n.merge(i):e.set(i.id,i.clone())}}_insert(e,t,s,r){const i=t*this._pixelsPerMapUnit,n=s*this._pixelsPerMapUnit,o=Math.floor(i/this._options.cellSize),a=Math.floor(n/this._options.cellSize);this._getCellOrCreate(o,a).insert(e,r,t,s)}_getCellOrCreate(e,t){const s=o.L.createId(e,t);let r=this._cells.get(s);if(!r){const i=1*this._options.cellSize/this._pixelsPerMapUnit;r=o.L.create(e,t,this._options.fields,i),this._cells.set(s,r)}return r}}},70300:(e,t,s)=>{s.d(t,{K:()=>j});var r=s(69397),i=s(11006);function n(e,t){if(!(this instanceof n))return new n(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function o(e,t,s){if(!s)return t.indexOf(e);for(var r=0;r<t.length;r++)if(s(e,t[r]))return r;return-1}function a(e,t){h(e,0,e.children.length,t,e)}function h(e,t,s,r,i){i||(i=g(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,o=t;o<s;o++)n=e.children[o],u(i,e.leaf?r(n):n);return i}function u(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function l(e,t){return e.minX-t.minX}function d(e,t){return e.minY-t.minY}function c(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function p(e){return e.maxX-e.minX+(e.maxY-e.minY)}function _(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function f(e,t){var s=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,i-s)*Math.max(0,n-r)}function m(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function y(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function g(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(e,t,s,r,n){for(var o,a=[t,s];a.length;)(s=a.pop())-(t=a.pop())<=r||(o=t+Math.ceil((s-t)/r/2)*r,(0,i.q)(e,o,t,s,n),a.push(t,o,o,s))}n.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,s=[],r=this.toBBox;if(!y(e,t))return s;for(var i,n,o,a,h=[];t;){for(i=0,n=t.children.length;i<n;i++)o=t.children[i],y(e,a=t.leaf?r(o):o)&&(t.leaf?s.push(o):m(e,a)?this._all(o,s):h.push(o));t=h.pop()}return s},collides:function(e){var t=this.data,s=this.toBBox;if(!y(e,t))return!1;for(var r,i,n,o,a=[];t;){for(r=0,i=t.children.length;r<i;r++)if(n=t.children[r],y(e,o=t.leaf?s(n):n)){if(t.leaf||m(e,o))return!0;a.push(n)}t=a.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,s=e.length;t<s;t++)this.insert(e[t]);return this}var r=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===r.height)this._splitRoot(this.data,r);else{if(this.data.height<r.height){var i=this.data;this.data=r,r=i}this._insert(r,this.data.height-r.height-1,!0)}else this.data=r;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=g([]),this},remove:function(e,t){if(null==e)return this;for(var s,r,i,n,a=this.data,h=this.toBBox(e),u=[],l=[];a||u.length;){if(a||(a=u.pop(),r=u[u.length-1],s=l.pop(),n=!0),a.leaf&&-1!==(i=o(e,a.children,t)))return a.children.splice(i,1),u.push(a),this._condense(u),this;n||a.leaf||!m(a,h)?r?(s++,a=r.children[s],n=!1):a=null:(u.push(a),l.push(s),s=0,r=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:l,compareMinY:d,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var s=[];e;)e.leaf?t.push.apply(t,e.children):s.push.apply(s,e.children),e=s.pop();return t},_build:function(e,t,s,r){var i,n=s-t+1,o=this._maxEntries;if(n<=o)return a(i=g(e.slice(t,s+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(n)/Math.log(o)),o=Math.ceil(n/Math.pow(o,r-1))),(i=g([])).leaf=!1,i.height=r;var h,u,l,d,c=Math.ceil(n/o),p=c*Math.ceil(Math.sqrt(o));for(x(e,t,s,p,this.compareMinX),h=t;h<=s;h+=p)for(x(e,h,l=Math.min(h+p-1,s),c,this.compareMinY),u=h;u<=l;u+=c)d=Math.min(u+c-1,l),i.children.push(this._build(e,u,d,r-1));return a(i,this.toBBox),i},_chooseSubtree:function(e,t,s,r){for(var i,n,o,a,h,u,l,d;r.push(t),!t.leaf&&r.length-1!==s;){for(l=d=1/0,i=0,n=t.children.length;i<n;i++)h=c(o=t.children[i]),(u=_(e,o)-h)<d?(d=u,l=h<l?h:l,a=o):u===d&&h<l&&(l=h,a=o);t=a||t.children[0]}return t},_insert:function(e,t,s){var r=this.toBBox,i=s?e:r(e),n=[],o=this._chooseSubtree(i,this.data,t,n);for(o.children.push(e),u(o,i);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)},_split:function(e,t){var s=e[t],r=s.children.length,i=this._minEntries;this._chooseSplitAxis(s,i,r);var n=this._chooseSplitIndex(s,i,r),o=g(s.children.splice(n,s.children.length-n));o.height=s.height,o.leaf=s.leaf,a(s,this.toBBox),a(o,this.toBBox),t?e[t-1].children.push(o):this._splitRoot(s,o)},_splitRoot:function(e,t){this.data=g([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,s){var r,i,n,o,a,u,l,d;for(u=l=1/0,r=t;r<=s-t;r++)o=f(i=h(e,0,r,this.toBBox),n=h(e,r,s,this.toBBox)),a=c(i)+c(n),o<u?(u=o,d=r,l=a<l?a:l):o===u&&a<l&&(l=a,d=r);return d},_chooseSplitAxis:function(e,t,s){var r=e.leaf?this.compareMinX:l,i=e.leaf?this.compareMinY:d;this._allDistMargin(e,t,s,r)<this._allDistMargin(e,t,s,i)&&e.children.sort(r)},_allDistMargin:function(e,t,s,r){e.children.sort(r);var i,n,o=this.toBBox,a=h(e,0,t,o),l=h(e,s-t,s,o),d=p(a)+p(l);for(i=t;i<s-t;i++)n=e.children[i],u(a,e.leaf?o(n):n),d+=p(a);for(i=s-t-1;i>=t;i--)n=e.children[i],u(l,e.leaf?o(n):n),d+=p(l);return d},_adjustParentBBoxes:function(e,t,s){for(var r=s;r>=0;r--)u(t[r],e)},_condense:function(e){for(var t,s=e.length-1;s>=0;s--)0===e[s].children.length?s>0?(t=e[s-1].children).splice(t.indexOf(e[s]),1):this.clear():a(e[s],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this.toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var v=s(70328);class b{static fromReader(e){const t=[],s=e.copy(),r=(0,v.vt)();for(;s.next();)s.getBounds(r)&&t.push(s.getIndex());const i=n(9,e=>(s.setIndex(e),{minX:s.getBoundsXMin(),minY:s.getBoundsYMin(),maxX:s.getBoundsXMax(),maxY:s.getBoundsYMax()}));return i.load(t),new b(i,t.length)}constructor(e,t){this._index=e,this._size=t}get usedMemory(){return this._size*r.RS}search(e){const t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return this._index.search(t)}}s(44208);var I=s(34727),w=(s(37585),s(48163)),M=s(39829),T=s(16930),A=s(19419),S=s(79258),C=s(90708),P=s(31464);function F(e,t,s,r){if(r.isWebMercator){const r=(0,I.KJ)(e/S.$O.radius),i=r-360*Math.floor((r+180)/360),n=[0,0];return O(n,0,(0,I.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/S.$O.radius))),i,s),n}const i=(0,P.Cv)({x:e,y:t},r,T.A.WGS84);if(!i)return null;const n=[0,0];return O(n,0,i.y,i.x,s),n}function O(e,t,s,r,i){i%2&&(i+=1);let n=0,o=0,a=-90,h=90,u=-180,l=180;for(let e=0;e<i/2;e++){for(let t=0;t<5;t++){const s=(u+l)/2,i=r>s?1:0;n|=i<<29-(t+5*e),u=(1-i)*u+i*s,l=(1-i)*s+i*l}for(let t=0;t<5;t++){const r=(a+h)/2,i=s>r?1:0;o|=i<<29-(t+5*e),a=(1-i)*a+i*r,h=(1-i)*r+i*h}}e[2*t]=n,e[2*t+1]=o}(0,w.vt)(),(0,w.vt)();var N=s(63664),k=s(92029);class z extends N.B{static create(e,t,s,r){const i=k.o.create(e),n=new Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new z(i,t,s,r,n)}constructor(e,t,s,r,i){super(e),this.xNode=t,this.yNode=s,this.depth=r,this.children=i,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=2*r.qK,e+=32*r.RS,e+=k.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const e=new z(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=new Set(this._objectIds),e}insert(e,t,s,r,i,n){this._count+=1,this._xWorldTotal+=t,this._yWorldTotal+=s,this._xGeohashTotal+=r,this._yGeohashTotal+=i,this._statistics.insert(e,n),this._objectIds.add(e.getObjectId())}merge(e){if(0!==e._count){this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroid(e){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){const s=this._getLngLatBounds(),[r,i,n,o]=s,a=(0,P.Cv)({rings:[[[r,i],[r,o],[n,o],[n,i],[r,i]]]},T.A.WGS84,e),h=(0,C.Ye)(a);return null!=t?(0,C.Nl)(h,"esriGeometryPolygon",t,!1,!1):h}getGeometricCentroid(e,t){const s=this._getLngLatBounds(),[r,i,n,o]=s,a=(0,P.Cv)({x:(r+n)/2,y:(i+o)/2},T.A.WGS84,e),h=(0,C.qN)(a);return null!=t?(0,C.Nl)(h,"esriGeometryPoint",t,!1,!1):h}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,s,r,i,n){if(r>=s)return this;const o=1-r%2,a=3*o+2*(1-o),h=2*o+3*(1-o),u=30-i-a,l=30-n-h,d=((e&7*o+3*(1-o)<<u)>>u)+((t&3*o+7*(1-o)<<l)>>l)*(8*o+4*(1-o)),c=this.children[d];return null==c?null:c.find(e,t,s,r+1,i+a,n+h)}_getLngLatBounds(){const e=this.depth,t=Math.ceil(e/2),s=Math.floor(e/2),r=30-(3*t+2*s),i=30-(2*t+3*s);return function(e,t){let s=-90,r=90,i=-180,n=180;for(let o=0;o<t;o++){const t=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),h=1-o%2,u=30-(3*t+2*a),l=30-(2*t+3*a),d=2*h+3*(1-h),c=(7*h+3*(1-h)<<u&e.geohashX)>>u,p=(3*h+7*(1-h)<<l&e.geohashY)>>l;for(let e=3*h+2*(1-h)-1;e>=0;e--){const t=(i+n)/2,s=c&1<<e?1:0;i=(1-s)*i+s*t,n=(1-s)*t+s*n}for(let e=d-1;e>=0;e--){const t=(s+r)/2,i=p&1<<e?1:0;s=(1-i)*s+i*t,r=(1-i)*t+i*r}}return[i,s,n,r]}({geohashX:this.xNode<<r,geohashY:this.yNode<<i},this.depth)}}class G{constructor(e){this._fields=e,this._size=0,this._depth=0,this._root=z.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*z.estimatedMemory}find(e,t,s){return this._root.find(e,t,s,0,0,0)}insert(e,t,s,r,i,n,o){let a=this._root,h=0,u=0,l=0;for(;null!==a;){if(a.insert(e,t,s,r,i,o),h>=n)return;const d=Math.ceil((h+1)/2),c=Math.floor((h+1)/2),p=1-h%2,_=30-(3*d+2*c),f=30-(2*d+3*c),m=(r&7*p+3*(1-p)<<_)>>_,y=(i&3*p+7*(1-p)<<f)>>f,g=m+y*(8*p+4*(1-p));u=u<<3*p+2*(1-p)|m,l=l<<2*p+3*(1-p)|y,null==a.children[g]&&(a.children[g]=z.create(this._fields,u,l,h+1),this._depth=Math.max(this._depth,h+1),this._size+=1),h+=1,a=a.children[g]}}putBins(e,t){for(const s of this.getNodes(t)){const t=e.get(s.id);t?t.merge(s):e.set(s.id,s.clone())}}getNodes(e){const t=[],{geohashBounds:s,level:r}=e;let i=this._root;for(;null!==i;){const e=i.depth,n=i.xNode,o=i.yNode;if(e>=r){t.push(i),i=i.next;continue}const a=Math.ceil((e+1)/2),h=Math.floor((e+1)/2),u=1-e%2,l=30-(3*a+2*h),d=30-(2*a+3*h),c=~((1<<l)-1),p=~((1<<d)-1),_=(s.xLL&c)>>l,f=(s.yLL&p)>>d,m=(s.xTR&c)>>l,y=(s.yTR&p)>>d,g=n<<3*u+2*(1-u),x=o<<2*u+3*(1-u),v=g+8*u+4*(1-u),b=x+4*u+8*(1-u),I=Math.max(g,_),w=Math.max(x,f),M=Math.min(v,m),T=Math.min(b,y);let A=null,S=null;for(let e=w;e<=T;e++)for(let t=I;t<=M;t++){const s=t-g+(e-x)*(8*u+4*(1-u)),r=i.children[s];r&&(A||(A=r,A.next=i.next),S&&(S.next=r),S=r,r.next=i.next)}i=A||i.next}return t}}var B=s(38976);class D extends B.n{constructor(e){super(e),this._tree=new G(this._options.fields)}get usedMemory(){return this._tree.usedMemory}put(e){throw new Error("Geohash tree does not support put")}putBounded(e,t,s){const{geohashLevel:r,spatialReference:i}=this._options,n=function(e,t,s,r){const i=[e.xmin,e.ymin,e.xmax,e.ymax],n=M.A.fromExtent((0,A.w1)(i,r)),o=(0,P.Cv)(n,r,T.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!o)return null;const a=(0,C.Ye)(o,!1,!1),h=a.coords.filter((e,t)=>!(t%2)),u=a.coords.filter((e,t)=>t%2),l=Math.min(...h),d=Math.min(...u),c=Math.max(...h),p=Math.max(...u),_=F(l,d,s,T.A.WGS84),f=F(c,p,s,T.A.WGS84);return _&&f?{bounds:i,geohashBounds:{xLL:_[0],yLL:_[1],xTR:f[0],yTR:f[1]},level:s}:null}(t,s,r,i);null!=n&&this._tree.putBins(e,n)}_insert(e,t,s,r){const{geohashLevel:i,spatialReference:n}=this._options,o=F(t,s,i,n);o&&this._tree.insert(e,t,s,o[0],o[1],i,r)}}var R=s(68974),W=s(52350);class j{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}get usedMemory(){let e=0;return e+=this.reader.underlyingMemory,this._aggregateIndex&&(e+=this._aggregateIndex.usedMemory),this._spatialIndex&&(e+=this._spatialIndex.usedMemory),e}getObjectIds(){const e=this.reader.getCursor(),t=[];for(;e.next();)t.push(e.getObjectId());return t}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}queryFeaturesInBounds(e){const t=this._getSpatialIndex().search(e);return W.e.from(this.reader,t)}getAggregateIndex(e){const t=JSON.stringify(e);if(t!==this._aggregateIndexHash){switch(this._aggregateIndexHash=t,e.type){case"grid":this._aggregateIndex=new R.H(e);break;case"geohash":this._aggregateIndex=new D(e)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=b.fromReader(this.reader)),this._spatialIndex}}},73250:(e,t,s)=>{s.d(t,{y:()=>i});var r=s(69397);class i{static fromBuffer(e,t){return new i(e,t)}static create(e,t=4294967295){const s=new Uint32Array(Math.ceil(e/32));return new i(s,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,r.Qf)(this._buf)}has(e){const t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let s=e,r=t;for(;s%32&&s!==r;){if(this.has(s))return!0;s++}for(;r%32&&s!==r;){if(this.has(s))return!0;r--}if(s===r)return!1;for(let e=s/32;e!==r/32;e++)if(this._buf[e])return!0;return!1}set(e){const t=this._mask&e,s=this._getIndex(t),r=1<<t%32;this._buf[s]|=r}setRange(e,t){let s=e,r=t;for(;s%32&&s!==r;)this.set(s++);for(;r%32&&s!==r;)this.set(r--);if(s!==r)for(let e=s/32;e!==r/32;e++)this._buf[e]=4294967295}unset(e){const t=this._mask&e,s=this._getIndex(t),r=1<<t%32;this._buf[s]&=4294967295^r}resize(e){const t=this._buf,s=new Uint32Array(Math.ceil(e/32));s.set(t),this._buf=s}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let s=this._buf[t],r=32*t;if(s)for(;s;)1&s&&e(r),s>>>=1,r++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},75538:(e,t,s)=>{s.d(t,{L:()=>a});var r=s(90708),i=s(92722),n=s(63664),o=s(92029);class a extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,s,r){return new a(e,t,o.o.create(s),r)}constructor(e,t,s,r){super(s),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=r,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){const e=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=new Set(this._objectIds),e}insert(e,t,s,r){0===this._count?this._firstFeatureAttributes=e.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=s,this._yWorldTotal+=r,this._statistics.insert(e,t),this._objectIds.add(e.getObjectId())}merge(e){if(0!==e._count){this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics);for(const t of e._objectIds.values())this._objectIds.add(t)}}getCentroidX(e){return null==e?this.centroidXWorld:(0,r.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,r.B2)(e,this.centroidYWorld)}getGeometry(e,t){const s=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,o=new i.A([4],[s,n,s+this._worldUnitsPerCell,n,s+this._worldUnitsPerCell,n+this._worldUnitsPerCell,s,n+this._worldUnitsPerCell]);return null!=t?(0,r.Nl)(o,"esriGeometryPolygon",t):o}getCentroid(e){const t=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null!=e?(0,r.Nl)(t,"esriGeometryPoint",e):t}getGeometricCentroid(e,t){const s=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new i.A([],[s,n]);return null!=t?(0,r.Nl)(o,"esriGeometryPoint",t):o}getAttributes(){const e={aggregateId:this.id};for(const t of this._statistics.values())e[t.field.name]=t.value;return null!=this._firstFeatureAttributes?{...e,...this._firstFeatureAttributes}:e}}},76213:(e,t,s)=>{s.d(t,{C2:()=>o,CQ:()=>r,DY:()=>i,GR:()=>f,Gh:()=>h,MZ:()=>c,TB:()=>_,U5:()=>a,_M:()=>u,cp:()=>m,eG:()=>n,fq:()=>p,hM:()=>d,ie:()=>l});const r=512,i=29,n=24,o=4,a=6,h=1.05,u=3,l=3,d=4,c=1,p=10,_=256,f=32,m=512},76357:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(31635),i=s(66552),n=s(25482),o=s(91429),a=s(93223);const h=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,r.Cg)([(0,a.e)(h),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,o.$K)("esri.layers.support.Domain")],u)},82799:(e,t,s)=>{s.d(t,{A:()=>_});var r,i=s(31635),n=s(4718),o=s(91429),a=s(5443),h=s(91075),u=s(86738),l=s(16930),d=s(90634),c=s(56993),p=s(43937);let _=r=class extends h.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:s,hasZ:r,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:r??=!0,s??=!0;break;case 3:r??=!0!==s,s??=!r;break;default:r??=!1,s??=!1}return i??=l.A.WGS84,{...e,hasM:s,hasZ:r,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){const e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new a.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;const t=this.paths,s=t.length;if(function(e){return!Array.isArray(e[0])}(e)){const r=[];for(let t=0,s=e.length;t<s;t++)r[t]=e[t].toArray();t[s]=r}else t[s]=e.slice();return this.notifyChange("paths"),this}clone(){const e=new r;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;const s=this.paths[e][t],r=this.hasZ,i=this.hasM;return r&&!i?new u.A(s[0],s[1],s[2],void 0,this.spatialReference):i&&!r?new u.A(s[0],s[1],void 0,s[2],this.spatialReference):r&&i?new u.A(s[0],s[1],s[2],s[3],this.spatialReference):new u.A(s[0],s[1],this.spatialReference)}insertPoint(e,t,s){return this._validateInputs(e,t,!0)?((0,c.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[e].splice(t,0,s),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;const t=this.paths.splice(e,1)[0],s=this.spatialReference,r=t.map(e=>new u.A(e,s));return this.notifyChange("paths"),r}removePoint(e,t){if(!this._validateInputs(e,t))return null;const s=new u.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),s}setPoint(e,t,s){return this._validateInputs(e,t)?((0,c.h)(this,s),Array.isArray(s)||(s=s.toArray()),this.paths[e][t]=s,this.notifyChange("paths"),this):this}_validateInputs(e,t,s=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){const r=this.paths[e];if(s&&(t<0||t>r.length))return!1;if(!s&&(t<0||t>=r.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],_.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],_.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],_.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],_.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],_.prototype,"writePaths",null),_=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],_),_.prototype.toJSON.isDefaultToJSON=!0},92029:(e,t,s)=>{s.d(t,{o:()=>o});var r=s(69397),i=s(50115);const n=Math.PI/180;class o{static create(e){return new o(e.map(e=>function(e){switch(e.statisticType){case"min":return new h(e);case"max":return new u(e);case"avg":return new d(e);case"avg_angle":return new c(e);case"sum":case"count":return new l(e);case"mode":return new p(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return r.qK+4*r.qK}values(){return this._statistics.values()}insert(e,t){for(const s of this._statistics)s.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){const s=this._statistics[t],r=e._statistics[t];if(s.field.name!==r.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");s.merge(r)}}clone(){return new o(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;const s=this.field.computed.read(e,t);(0,i.rZ)(s)||this._insertValue(s)}}class h extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){const e=new h(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){const e=new u(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){const e=new l(this.field);return e.value=this.value,e}}class d extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){const e=new d(this.field);return e._total=this._total,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const e=this._x/this._count,t=this._y/this._count,s=180/Math.PI;return Math.atan2(t,e)*s}_insertValue(e){this._x=this._x+Math.cos(e*n),this._y=this._y+Math.sin(e*n),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){const e=new c(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class p extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(const[s,r]of this._frequencies.entries())r>t&&(t=r,e=s);return e}_insertValue(e){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+1):this._frequencies.set(e,1)}merge(e){for(const[t,s]of e._frequencies.entries()){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+s):this._frequencies.set(t,s)}}clone(){const e=new p(this.field);return e._frequencies=new Map(this._frequencies),e}}},97633:(e,t,s)=>{s.d(t,{P:()=>n});var r=s(69397),i=s(73250);class n{constructor(e){this._valid=i.y.create(e),this._data=new Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){const t="string"==typeof this._data[0]?64:r.RS;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},98453:(e,t,s)=>{s.d(t,{m:()=>r});const r=new(s(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99996:(e,t,s)=>{s.d(t,{Y:()=>O});var r=s(66131),i=s(44208),n=s(69397),o=s(44729),a=s(15032),h=s(36745),u=s(70328),l=s(65864),d=s(32011),c=s(62577),p=s(27647),_=s(90708),f=s(43334),m=s(92722),y=s(98623),g=s(97633);const x=(0,i.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],v=x[0],b=x[1],I=x[2],w=x[3],M=(0,i.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],T=M[0],A=M[1],S=M[2],C=(0,i.A)("featurelayer-simplify-mobile-factor")??2,P=(0,i.A)("esri-mobile"),F=4294967295;class O{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(e,t){let s=1;const r=P?C:1;t>4e6?s=S*r:t>1e6?s=A*r:t>5e5?s=T*r:t>1e5&&(s=r);let i=0;return e>4e3?i=w*s:e>2e3?i=I*s:e>100?i=b:e>15&&(i=v),i}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const t=this.getBoundsXMin();if(t===F||!isFinite(t))return!1;if(0===this.getBoundsXMin()){const t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,u.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(F),!1;let s=1/0,r=1/0,i=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{s=Math.min(s,e),r=Math.min(r,t),i=Math.max(i,e),n=Math.max(n,t)}),this.setBoundsXMin(s),this.setBoundsYMin(r),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,u.BI)(e,s,r,i,n),!0}const s=this.getBoundsXMin(),r=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,u.BI)(e,s,r,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){const t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){const s=this._readAttribute(e,t);if(void 0!==s)return s;for(const s of this._joined){s.setIndex(this.getIndex());const r=s._readAttribute(e,t);if(void 0!==r)return r}}readAttributes(){const e=this._readAttributes();for(const t of this._joined){t.setIndex(this.getIndex());const s=t._readAttributes();for(const t of Object.keys(s))e[t]=s[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){const e=this.copy();return e._overrides=null,e}readOptimizedFeatureWorldSpace(){const e=this.readGeometryWorldSpace(),t=this.readAttributes(),s=this.readCentroidWorldSpace();return new f.Om(e,t,s,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){const e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){const e=this.readGeometryForDisplay();return(0,_.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){const e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){const e=this._readGeometryDeltaDecoded(!0);if(!e){const e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,_.kz)(t,this.metadata.geometryType,e.scale[0])),t&&(t=(0,_.hK)(t,e,this.metadata.geometryType)),!t){const t=this.readCentroidForDisplay();if(!t)return null;const s=(0,c.IE)(e,t.coords[0]),r=(0,c.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(s,r).deltaDecode()}return t}readGeometryWorldSpace(){let e=this._readGeometry();if(e||(e=this._createDeltaQuantizedGeometryFromServerCentroid()),!e)return null;const t=e.clone(),s=this.getInTransform();return null!=s&&(0,_.aQ)(t,s),t}readCentroidForDisplay(){const e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){const e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();if(!t)return null;const s=t.clone(),r=this.getInTransform();return null!=r&&(0,_.aQ)(s,r),s}setCache(e){let t=this._caches.get(e);null==t&&(t=new g.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}get underlyingMemory(){let e=0;e+=(0,n.Qf)(this._boundsBuffer);for(const t of this._caches.values())e+=t.usedMemory;return e}_readGeometryDeltaDecoded(e){const t=this._readGeometry(e);return"esriGeometryPoint"!==this.geometryType&&t&&this.getInTransform()?t.deltaDecode():t}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){const e=this.readGeometryWorldSpace(),t=(0,_.zv)(e,this.geometryType,this.hasZ,this.hasM),s=(0,l.rS)(t);if(s){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");s.spatialReference=this.metadata.outSpatialReference}return s}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?r.lY.unknownDateJSToArcadeDate(t):r.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??y.qU):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===y.L5}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(const s of this._joined)if(s.setIndex(this.getIndex()),t=s.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(s._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return a.k.fromReader(s._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(s._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,s._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw new Error(`Field ${e} does not exist`)}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());const t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);const s={geometry:t.geometry,attributes:{...t.attributes}};for(const e in s.attributes){const t=s.attributes[e];t instanceof Date&&(s.attributes[e]=t.getTime())}return JSON.stringify(s)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(e=null){return{attributes:this._readAttributes(),geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}_getExists(){if(this._overrides){const e=this.getObjectId();return!this._overrides.hasOverride(e)}return!0}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,p.Q)(e);const t=h.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;const s=(0,d.d)(t);return s?(s[1]*=-1,new m.A([],s)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const e=this.readGeometryWorldSpace();return(0,_.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const e=this._readServerCentroid();if(!e)return null;const[t,s]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,s)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new m.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new m.A([2],[e-1,t+1,1,-1])}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575],{5834:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(31635),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,r.sM)(i,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],y.prototype,"numBins",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,p.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],y),y.from=(0,o.dp)(y)},11440:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(31635),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(93223);let p=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,r.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],p.prototype,"boundaries",void 0),(0,n.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],p.prototype,"type",void 0),p=(0,n.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],p),p.from=(0,o.dp)(p)},14575:(e,t,i)=>{i.d(t,{default:()=>T});var n=i(31635),r=i(69540),s=i(66552),o=i(25482),a=i(53966),l=i(91429),p=i(56507),u=i(16930),y=i(65864),d=i(50498),m=i(58727),c=i(5834),g=i(41266),f=i(59977),h=i(11440),v=i(60909),w=i(77696),C=i(58174),x=i(7562),S=i(79677),B=i(56400),M=i(93223);const Z=new s.J({asc:"ascending",desc:"descending"}),j={base:g.A,key:"type",typeMap:{"auto-interval":c.A,date:f.A,"fixed-boundaries":h.A,"fixed-interval":v.A}};let T=class extends((0,w.y)((0,r.OU)(o.o))){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,B.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,n.Cg)([(0,l.MZ)({types:j,json:{name:"bin",write:!0}})],T.prototype,"binParameters",void 0),(0,n.Cg)([(0,M.e)(Z)],T.prototype,"binOrder",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"cacheHint",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],T.prototype,"datumTransformation",void 0),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{name:"defaultSR",write:!0}})],T.prototype,"defaultSpatialReference",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],T.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({types:d.yR,json:{read:y.rS,write:!0}})],T.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"lowerBoundaryAlias",void 0),(0,n.Cg)([(0,l.MZ)({type:u.A,json:{name:"outSR",write:!0}})],T.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,l.MZ)({type:[x.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],T.prototype,"outStatistics",void 0),(0,n.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,i)=>{e&&(t[i]={ianaTimeZone:e})}}}})],T.prototype,"outTimeZone",null),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],T.prototype,"returnDistinctValues",void 0),(0,n.Cg)([(0,M.e)(C.x,{name:"spatialRel"})],T.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:S.A,json:{write:!0}})],T.prototype,"timeExtent",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"upperBoundaryAlias",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],T.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],T.prototype,"where",void 0),T=(0,n.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],T),T.from=(0,p.dp)(T)},31464:(e,t,i)=>{i.d(t,{Cv:()=>g,Nk:()=>d,lK:()=>h});var n=i(4576),r=i(74887),s=i(91218),o=i(21325),a=i(28735);const l=[0,0];function p(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,l),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,l),[i.xmax,i.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:u(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:u(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:y(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function u(e,t){const i=[];for(const n of e)i.push(y(n,t));return i}function y(e,t){const i=[];for(const n of e){const e=t(n[0],n[1],[0,0]);i.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return i}async function d(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(n.Ru):[e];await(0,s.initializeProjection)(i.map(e=>({source:e,dest:t})))}const m=p.bind(null,a.je),c=p.bind(null,a.tD);function g(e,t,i,n){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(i)||(0,o.aI)(t,i))return e;if((0,a.y7)(t,i)){const t=(0,o.K8)(i)?m(e):c(e);return t.spatialReference=i,t}return(0,s.projectMany)([e],t,i,n)[0]}const f=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,n){if(!e?.length||!t||!i||(0,o.aI)(t,i))return e;const s={geometries:e,inSpatialReference:t,outSpatialReference:i,options:n,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:n,resolve:r,options:l}=e;(0,a.y7)(i,n)&&null==l?.extendedParams?(0,o.K8)(n)?r(t.map(m)):r(t.map(c)):r((0,s.projectMany)(t,i,n,l)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function h(e,t,i,n){return f.push(e,t,i,n)}},41266:(e,t,i)=>{i.d(t,{A:()=>g});var n=i(31635),r=i(69540),s=i(66552),o=i(25482),a=i(91429),l=i(56507),p=i(93223);const u=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let y=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],y.prototype,"alias",void 0),(0,n.Cg)([(0,a.MZ)({type:String})],y.prototype,"responseType",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"type",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"value",void 0),(0,n.Cg)([(0,p.e)(u)],y.prototype,"valueType",void 0),y=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],y);const d=y;y.from=(0,l.dp)(y);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),c=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let g=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],g.prototype,"expression",void 0),(0,n.Cg)([(0,p.e)(m,{name:"onExpression.valueType"})],g.prototype,"expressionValueType",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],g.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"firstDayOfWeek",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"hideUpperBound",void 0),(0,n.Cg)([(0,a.MZ)({type:d,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],g.prototype,"splitBy",void 0),(0,n.Cg)([(0,a.MZ)({type:d,json:{write:{target:{stackBy:{type:d},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>d.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],g.prototype,"stackBy",void 0),(0,n.Cg)([(0,p.e)(c)],g.prototype,"transformation",void 0),g=(0,n.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],g)},57231:(e,t,i)=>{i.d(t,{g:()=>n});const n=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},58727:(e,t,i)=>{i.d(t,{GC:()=>h,T2:()=>v,VY:()=>m,dO:()=>C,iJ:()=>f,v8:()=>c});var n=i(49186),r=i(66552),s=i(86211),o=i(91218),a=i(90634),l=i(60408),p=i(65864),u=i(17136),y=i(21325),d=i(31464);const m=new r.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),c=Object.freeze({}),g="frequency";async function f(e,t,i){const n=e.bin;return n.onField&&(n.onField=n.onField.trim()),n.onExpression?.value&&(n.onExpression.value=n.onExpression.value.trim()),n.splitBy&&(n.splitBy.value&&(n.splitBy.value=n.splitBy.value.trim()),n.splitBy.outAlias&&(n.splitBy.outAlias=n.splitBy.outAlias.trim())),n.stackBy&&(n.stackBy.value&&(n.stackBy.value=n.stackBy.value.trim()),n.stackBy.outAlias&&(n.stackBy.outAlias=n.stackBy.outAlias.trim())),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:g}]),h(e,t,i)}async function h(e,t,i){const{outFields:n,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=e;if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),v(e,t,i)}async function v(e,t,r){if(!e)return null;let{where:o}=e;if(e.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||t&&t===o)&&(e.where=null),!e.geometry)return e;let g=await async function(e){const{distance:t,units:r}=e,o=e.geometry;if(null==t||"vertexAttributes"in o)return o;const a=o.spatialReference,p=r?m.fromJSON(r):(0,s.Ij)(a),u=a&&((0,y.EA)(a)||(0,y.K8)(a))?o:await(0,d.Nk)(a,y.KK).then(()=>(0,d.Cv)(o,y.KK)),c=await i.e(9159).then(i.bind(i,49159));await c.load();const g=c.execute(u,t||1,{unit:p})??void 0;if(!g||!(0,l.Bi)(g)||0===g.rings.length)throw new n.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return g}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;g=(0,a.HA)(g),g.spatialReference=t}if(g){await(0,d.Nk)(g.spatialReference,r),g=function(e,t){const i=e.spatialReference;return w(e,t)&&(0,l.ZC)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(g,r);const t=(await(0,u.el)((0,p.rS)(g)))[0];if(null==t)throw c;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&w(g,r)?{extendedParams:{densificationStep:8*i}}:void 0,s=t.toJSON(),o=(0,d.Cv)(s,s.spatialReference,r,n);if(!o)throw c;o.spatialReference=r,e.geometry=o}return e}function w(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,y.aI)(i,t)&&!(0,o.canProjectWithoutEngine)(i,t)}function C(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},59977:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(31635),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(69540),p=i(25482),u=i(57231),y=i(93223);let d=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],d.prototype,"value",void 0),(0,n.Cg)([(0,y.e)(u.g)],d.prototype,"unit",void 0),d=(0,n.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],d);const m=d;function c(e,t,i){(0,r.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function g(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}d.from=(0,o.dp)(d);let f=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,n.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>g(t,"end")},write:{writer:c}}})],f.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],f.prototype,"interval",void 0),(0,n.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],f.prototype,"offset",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],f.prototype,"returnFullIntervalBin",void 0),(0,n.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>g(t,"start")},write:{writer:c}}})],f.prototype,"start",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],f.prototype,"snapToData",void 0),(0,n.Cg)([(0,y.e)({dateBin:"date"},{readOnly:!0})],f.prototype,"type",void 0),f=(0,n.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],f),f.from=(0,o.dp)(f)},60909:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(31635),r=i(93637),s=i(91429),o=i(56507),a=i(41266),l=i(41366),p=i(93223);function u(e,t,i){(0,r.sM)(i,e instanceof Date?e.getTime():e,t)}let y=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:u}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:u}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,p.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],y),y.from=(0,o.dp)(y)}}]);