@arcgis/core 4.28.0-next.20230830 → 4.28.0-next.20230901

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 (673) hide show
  1. package/Basemap.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{78b2be56b39cf0fc069d.js → 0c0e850722cb163f0705.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0c7740ffa0b908579d3e.js +1 -0
  5. package/assets/esri/core/workers/chunks/0ee90a0b4d09a56c0d48.js +1 -0
  6. package/assets/esri/core/workers/chunks/{0116b784b578e90215e5.js → 0f06e01b3ce468a3d730.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{b5c2d58f084b6c9c03e9.js → 15a39b23e472e391a690.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{1502297ffc13d579385d.js → 1c4de3b8b0fe02e2c37b.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{135e2afc775512dbfc03.js → 271ec1d1666bf6dc3dda.js} +1 -1
  10. package/assets/esri/core/workers/chunks/2a42fd284ea65868f8e8.js +1 -0
  11. package/assets/esri/core/workers/chunks/2daa9888b0320bac9bac.js +1 -0
  12. package/assets/esri/core/workers/chunks/{337a4ab13ed01b6f0753.js → 3cdb36fde0cf19575d7d.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{e05b54a0b834b4e4268e.js → 4108445c4a653772c5ee.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{2e23b9438d4f23aaa1c9.js → 43dc31cd2d28d98cffee.js} +1 -1
  15. package/assets/esri/core/workers/chunks/461eace1f3365f7227fa.js +1 -0
  16. package/assets/esri/core/workers/chunks/{7c3d2a8ce19abe8542da.js → 46d2c14fcae460a3299e.js} +3 -3
  17. package/assets/esri/core/workers/chunks/49254b4082c6bee3df3c.js +1 -0
  18. package/assets/esri/core/workers/chunks/{d9fe6cfbc9ad2920ca9c.js → 50ee15d94473c57de685.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{9a2e6e7711100ab582b4.js → 558049fcac3a82a093fc.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{f4135fc4866b50564343.js → 55d71985040002202305.js} +1 -1
  21. package/assets/esri/core/workers/chunks/566413780783b253e33f.js +1 -0
  22. package/assets/esri/core/workers/chunks/{bcbaa8f8d7fa420463e3.js → 56ed099745360888604e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{740dc67038f554431f1b.js → 5baae5acd184e87d5dc4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/5fe7b5665710ec6d3046.js +1 -0
  25. package/assets/esri/core/workers/chunks/{aabb276cdf8e41a0818d.js → 610d4a5d2511fa81460e.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{42a4d2b6aeadd15a2d49.js → 6151e861c9a07bff40fc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/6c94b5709eda7dd5bb44.js +1 -0
  28. package/assets/esri/core/workers/chunks/{ef9da99a6e3a3f1099f6.js → 6cbe3b9597f359ef9d1c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{3b4825924a9fcbaf5e18.js → 7085ada90022b53b44c0.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{ed48b165ec0e84c0b2e4.js → 75fd9f63112b6d2452d0.js} +1 -1
  31. package/assets/esri/core/workers/chunks/7f3a204ed9492449c867.js +1 -0
  32. package/assets/esri/core/workers/chunks/857d669dc4c857d9575d.js +1 -0
  33. package/assets/esri/core/workers/chunks/{479cc17ccc0a85c7c7a0.js → 865d3751607669613807.js} +1 -1
  34. package/assets/esri/core/workers/chunks/94ec83a6508e5cb9192c.js +1 -0
  35. package/assets/esri/core/workers/chunks/9800e8dad6fb2e1e7cb0.js +1 -0
  36. package/assets/esri/core/workers/chunks/{808117c380ddd7285b90.js → 9d056680d6498e8cffd5.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{e8922e006d1305d97aaf.js → 9f2e3f4f92cd2991e972.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{9287ee68edd097845205.js → 9fc824a8964f6f2a58df.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{a9e9297267614c4c4f3b.js → 9ff6ce486898713af7e2.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{0133ae1379a9e3bcd2d7.js → a07dc782e69111e2eeaf.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{5b13d28cf5efc312a21c.js → a1283987bf6446953d56.js} +1 -1
  42. package/assets/esri/core/workers/chunks/a39006656cbc937ec515.js +1 -0
  43. package/assets/esri/core/workers/chunks/{4eb05150b019f8353276.js → a43e0fddb179bfcc15f9.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{7714c16f9c8860efd461.js → a610f7d7ef9f68862413.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{fedb8182e9cd17248ae9.js → a645edc2f2ddfe539477.js} +1 -1
  46. package/assets/esri/core/workers/chunks/a7e77507edbd601ff72d.js +1 -0
  47. package/assets/esri/core/workers/chunks/{14b28195246cf8bcdf17.js → a9e1d0e495412e3926b5.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{a77efd5fd00a5ea57039.js → aebdf896f29d3699011c.js} +1 -1
  49. package/assets/esri/core/workers/chunks/b034697b760fa0c6e17e.js +1 -0
  50. package/assets/esri/core/workers/chunks/{07bfe99f2d20b73494e1.js → b1691a648582ccda8343.js} +1 -1
  51. package/assets/esri/core/workers/chunks/b19d85f3eb8e1620f5d5.js +1 -0
  52. package/assets/esri/core/workers/chunks/{c4e7204972a919acb626.js → b2b21143a971be4c1249.js} +1 -1
  53. package/assets/esri/core/workers/chunks/b9bf2d71359a9d86b98e.js +1 -0
  54. package/assets/esri/core/workers/chunks/{a470f9a37f93b61c7810.js → c0c81c6ed96e3f185338.js} +1 -1
  55. package/assets/esri/core/workers/chunks/c4c060d145a1d88d3872.js +1 -0
  56. package/assets/esri/core/workers/chunks/{7e290b2cc18fb9ac040e.js → c60cf62f374e71e562fc.js} +1 -1
  57. package/assets/esri/core/workers/chunks/d481a30c68563364cc3a.js +1 -0
  58. package/assets/esri/core/workers/chunks/d71c6c39bd63c0e7b0e7.js +1 -0
  59. package/assets/esri/core/workers/chunks/{d183144fa504064d23d3.js → d79f77aa96880312a44f.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{1a7189f202d557b7c5e2.js → d81059968d1b3b2c52c5.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{fc732dc56ca677764a54.js → d89414cd5187121dac1a.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{f510d2df0bcf754ba532.js → de1913c0aaa42d86eefe.js} +1 -1
  63. package/assets/esri/core/workers/chunks/{7e570e3eb086df4aa5a2.js → de20ffb693c7d51d8055.js} +1 -1
  64. package/assets/esri/core/workers/chunks/{10d5a488e8241ffead5b.js → e21407f3271c6b9b8c11.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{4162ba091e709efaeb2a.js → e269db8a4c443e0628d5.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{e7a879f71f70fefa822b.js → e486681559ddb97bb82b.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{d20860829d3f41735fcc.js → e977e721f6f50e3c5f13.js} +1 -1
  68. package/assets/esri/core/workers/chunks/e9a3ddb5e1f27eb22c61.js +1 -0
  69. package/assets/esri/core/workers/chunks/{ccb76c44744b218306d0.js → e9fb3b6898a7168f5fd0.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f145912072d41327cf9b.js +1 -0
  71. package/assets/esri/core/workers/chunks/fd38526ca64a60ce0e10.js +1 -0
  72. package/assets/esri/core/workers/chunks/{48382cffb3588c55207b.js → ff48d6f29a199d5def54.js} +1 -1
  73. package/assets/esri/t9n/common.json +1 -1
  74. package/assets/esri/t9n/common_ar.json +1 -1
  75. package/assets/esri/t9n/common_bg.json +1 -1
  76. package/assets/esri/t9n/common_bs.json +1 -1
  77. package/assets/esri/t9n/common_ca.json +1 -1
  78. package/assets/esri/t9n/common_cs.json +1 -1
  79. package/assets/esri/t9n/common_da.json +1 -1
  80. package/assets/esri/t9n/common_de.json +1 -1
  81. package/assets/esri/t9n/common_el.json +1 -1
  82. package/assets/esri/t9n/common_en.json +1 -1
  83. package/assets/esri/t9n/common_es.json +1 -1
  84. package/assets/esri/t9n/common_et.json +1 -1
  85. package/assets/esri/t9n/common_fi.json +1 -1
  86. package/assets/esri/t9n/common_fr.json +1 -1
  87. package/assets/esri/t9n/common_he.json +1 -1
  88. package/assets/esri/t9n/common_hr.json +1 -1
  89. package/assets/esri/t9n/common_hu.json +1 -1
  90. package/assets/esri/t9n/common_id.json +1 -1
  91. package/assets/esri/t9n/common_it.json +1 -1
  92. package/assets/esri/t9n/common_ja.json +1 -1
  93. package/assets/esri/t9n/common_ko.json +1 -1
  94. package/assets/esri/t9n/common_lt.json +1 -1
  95. package/assets/esri/t9n/common_lv.json +1 -1
  96. package/assets/esri/t9n/common_nb.json +1 -1
  97. package/assets/esri/t9n/common_nl.json +1 -1
  98. package/assets/esri/t9n/common_pl.json +1 -1
  99. package/assets/esri/t9n/common_pt-BR.json +1 -1
  100. package/assets/esri/t9n/common_pt-PT.json +1 -1
  101. package/assets/esri/t9n/common_ro.json +1 -1
  102. package/assets/esri/t9n/common_ru.json +1 -1
  103. package/assets/esri/t9n/common_sk.json +1 -1
  104. package/assets/esri/t9n/common_sl.json +1 -1
  105. package/assets/esri/t9n/common_sr.json +1 -1
  106. package/assets/esri/t9n/common_sv.json +1 -1
  107. package/assets/esri/t9n/common_th.json +1 -1
  108. package/assets/esri/t9n/common_tr.json +1 -1
  109. package/assets/esri/t9n/common_uk.json +1 -1
  110. package/assets/esri/t9n/common_vi.json +1 -1
  111. package/assets/esri/t9n/common_zh-CN.json +1 -1
  112. package/assets/esri/t9n/common_zh-HK.json +1 -1
  113. package/assets/esri/t9n/common_zh-TW.json +1 -1
  114. package/assets/esri/themes/base/_core.scss +2 -0
  115. package/assets/esri/themes/base/widgets/_FeatureForm.scss +15 -2
  116. package/assets/esri/themes/base/widgets/_LabeledSwitch.scss +22 -0
  117. package/assets/esri/themes/base/widgets/_Sketch.scss +1 -3
  118. package/assets/esri/themes/base/widgets/_SketchTooltipControls.scss +10 -6
  119. package/assets/esri/themes/base/widgets/_SnappingControls.scss +4 -1
  120. package/assets/esri/themes/dark/main.css +1 -1
  121. package/assets/esri/themes/light/main.css +1 -1
  122. package/assets/esri/themes/light/view.css +1 -1
  123. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm.json +1 -1
  124. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ar.json +1 -1
  125. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bg.json +1 -1
  126. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_bs.json +1 -1
  127. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ca.json +1 -1
  128. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_cs.json +1 -1
  129. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_da.json +1 -1
  130. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_de.json +1 -1
  131. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_el.json +1 -1
  132. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_en.json +1 -1
  133. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_es.json +1 -1
  134. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_et.json +1 -1
  135. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fi.json +1 -1
  136. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_fr.json +1 -1
  137. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_he.json +1 -1
  138. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hr.json +1 -1
  139. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_hu.json +1 -1
  140. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_id.json +1 -1
  141. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_it.json +1 -1
  142. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ja.json +1 -1
  143. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ko.json +1 -1
  144. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lt.json +1 -1
  145. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_lv.json +1 -1
  146. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nb.json +1 -1
  147. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_nl.json +1 -1
  148. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pl.json +1 -1
  149. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-BR.json +1 -1
  150. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_pt-PT.json +1 -1
  151. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ro.json +1 -1
  152. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_ru.json +1 -1
  153. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sk.json +1 -1
  154. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sl.json +1 -1
  155. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sr.json +1 -1
  156. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_sv.json +1 -1
  157. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_th.json +1 -1
  158. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_tr.json +1 -1
  159. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_uk.json +1 -1
  160. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_vi.json +1 -1
  161. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-CN.json +1 -1
  162. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-HK.json +1 -1
  163. package/assets/esri/widgets/FeatureForm/t9n/FeatureForm_zh-TW.json +1 -1
  164. package/chunks/Clouds.glsl.js +1 -1
  165. package/chunks/HighlightDownsample.glsl.js +5 -5
  166. package/chunks/LineMarker.glsl.js +1 -1
  167. package/chunks/NoiseTextureAtlas.glsl.js +1 -1
  168. package/chunks/PointRenderer.glsl.js +1 -1
  169. package/chunks/RibbonLine.glsl.js +44 -44
  170. package/chunks/boundedPlane.js +1 -1
  171. package/chunks/constants.js +1 -1
  172. package/chunks/terrainUtilsPlanar.js +1 -1
  173. package/core/Accessor.js +1 -1
  174. package/core/BidiEngine.js +1 -1
  175. package/core/MemCache.js +1 -1
  176. package/core/MemCachePool.js +1 -1
  177. package/core/accessorSupport/beforeDestroy.js +1 -1
  178. package/core/accessorSupport/decorators/subclass.js +1 -1
  179. package/core/bidiEngineTables.js +1 -1
  180. package/core/fontUtils.js +1 -1
  181. package/core/has.js +1 -1
  182. package/core/mathUtils.js +1 -1
  183. package/core/typedArrayUtil.js +1 -1
  184. package/core/workers/loaderConfig.js +1 -1
  185. package/geometry/support/DoubleArray.js +1 -1
  186. package/geometry/support/FloatArray.js +1 -1
  187. package/geometry/support/Indices.js +1 -1
  188. package/geometry/support/MeshTransform.js +1 -1
  189. package/geometry/support/UByteArray.js +1 -1
  190. package/geometry/support/UintArray.js +1 -1
  191. package/geometry/support/aaBoundingBox.js +1 -1
  192. package/geometry/support/aaBoundingRect.js +1 -1
  193. package/geometry/support/axisAngle.js +1 -1
  194. package/geometry/support/axisAngleDegrees.js +1 -1
  195. package/geometry/support/boundedPlane.js +1 -1
  196. package/geometry/support/frustum.js +1 -1
  197. package/geometry/support/geodesicConstants.js +1 -1
  198. package/geometry/support/geodesicUtils.js +1 -1
  199. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  200. package/geometry/support/meshUtils/exporters/gltf/gltfexport.js +1 -1
  201. package/geometry/support/meshUtils/exporters/gltf/index.js +1 -1
  202. package/geometry/support/meshUtils/georeference.js +1 -1
  203. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  204. package/geometry/support/plane.js +1 -1
  205. package/interfaces.d.ts +184 -7
  206. package/intl/date.js +1 -1
  207. package/intl.js +1 -1
  208. package/layers/BaseElevationLayer.js +1 -1
  209. package/layers/LinkChartLayer.js +1 -1
  210. package/layers/MapNotesLayer.js +1 -1
  211. package/layers/SubtypeGroupLayer.js +1 -1
  212. package/layers/VectorTileLayer.js +1 -1
  213. package/layers/VoxelWasmPerSceneView.js +1 -1
  214. package/layers/WFSLayer.js +1 -1
  215. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  216. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  217. package/layers/graphics/data/QueryEngine.js +1 -1
  218. package/layers/graphics/data/StreamFeatureManager.js +1 -1
  219. package/layers/graphics/data/utils.js +1 -1
  220. package/layers/graphics/sources/support/uploadAssets.js +1 -1
  221. package/layers/graphics/sources/support/uploadProgressWeights.js +1 -1
  222. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  223. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  224. package/layers/mixins/FeatureLayerBase.js +1 -1
  225. package/layers/mixins/SceneService.js +1 -1
  226. package/layers/ogc/wfsUtils.js +1 -1
  227. package/layers/orientedImagery/constants/utils.js +1 -1
  228. package/layers/orientedImagery/constants/wkid.js +1 -1
  229. package/layers/support/kmlUtils.js +1 -1
  230. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  231. package/layers/support/rasterDatasets/TIFFRaster.js +1 -1
  232. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  233. package/layers/support/rasterFormats/TiffTags.js +1 -1
  234. package/layers/support/rasterFunctionUtils.js +1 -1
  235. package/layers/support/rasterFunctions/CurvatureFunction.js +1 -1
  236. package/layers/support/rasterFunctions/MaskFunction.js +1 -1
  237. package/layers/support/rasterFunctions/RemapFunction.js +1 -1
  238. package/layers/support/rasterFunctions/SlopeFunction.js +1 -1
  239. package/layers/support/rasterFunctions/pixelUtils.js +1 -1
  240. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  241. package/layers/support/rasterFunctions/surfaceUtils.js +1 -1
  242. package/package.json +1 -1
  243. package/renderers/HeatmapRenderer.js +1 -1
  244. package/renderers/support/colorRampUtils.js +1 -1
  245. package/renderers/support/heatmapUtils.js +1 -1
  246. package/renderers/support/rasterRendererHelper.js +1 -1
  247. package/rest/query/operations/pbfFeatureServiceParser.js +1 -1
  248. package/rest/query/operations/pbfOptimizedFeatureSet.js +1 -1
  249. package/smartMapping/renderers/type.js +1 -1
  250. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  251. package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
  252. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  253. package/smartMapping/support/adapters/OGCFeatureLayerAdapter.js +1 -1
  254. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  255. package/smartMapping/support/utils.js +1 -1
  256. package/smartMapping/symbology/heatmap.js +1 -1
  257. package/smartMapping/symbology/support/colors.js +1 -1
  258. package/support/popupUtils.js +1 -1
  259. package/support/revision.js +1 -1
  260. package/symbols/ObjectSymbol3DLayer.js +1 -1
  261. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  262. package/symbols/cim/CIMSymbolHelper.js +1 -1
  263. package/symbols/cim/CurveHelper.js +1 -1
  264. package/symbols/cim/GeometryWalker.js +1 -1
  265. package/symbols/cim/SDFHelper.js +1 -1
  266. package/symbols/cim/TextRasterizer.js +1 -1
  267. package/symbols/cim/cimAnalyzer.js +1 -1
  268. package/symbols/cim/effects/EffectArrow.js +1 -1
  269. package/symbols/cim/effects/EffectBuffer.js +1 -1
  270. package/symbols/cim/effects/EffectOffset.js +1 -1
  271. package/symbols/support/previewSymbol2D.js +1 -1
  272. package/symbols/support/symbolLayerUtils3D.js +1 -1
  273. package/symbols/support/textUtils.js +1 -1
  274. package/time/timeZoneUtils.js +5 -0
  275. package/views/2d/engine/Stage.js +1 -1
  276. package/views/2d/engine/imagery/BrushRasterBitmap.js +1 -1
  277. package/views/2d/engine/vectorTiles/GeometryUtils.js +1 -1
  278. package/views/2d/engine/vectorTiles/Placement.js +1 -1
  279. package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
  280. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  281. package/views/2d/engine/vectorTiles/VectorTile.js +1 -1
  282. package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
  283. package/views/2d/engine/vectorTiles/decluttering/SymbolDeclutterer.js +1 -1
  284. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  285. package/views/2d/engine/vectorTiles/decluttering/config.js +1 -1
  286. package/views/2d/engine/vectorTiles/decluttering/jobs.js +1 -1
  287. package/views/2d/engine/vectorTiles/style/StyleLayer.js +1 -1
  288. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  289. package/views/2d/engine/webgl/DisplayId.js +1 -1
  290. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  291. package/views/2d/engine/webgl/TextureManager.js +1 -1
  292. package/views/2d/engine/webgl/TextureUploadManager.js +1 -1
  293. package/views/2d/engine/webgl/TurboLine.js +1 -1
  294. package/views/2d/engine/webgl/Utils.js +1 -1
  295. package/views/2d/engine/webgl/WGLBuffers.js +1 -1
  296. package/views/2d/engine/webgl/WGLTile.js +1 -1
  297. package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +1 -1
  298. package/views/2d/engine/webgl/brushes/BrushBitmap.js +1 -1
  299. package/views/2d/engine/webgl/brushes/BrushOverlay.js +1 -1
  300. package/views/2d/engine/webgl/brushes/WGLBrushDotDensity.js +1 -1
  301. package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
  302. package/views/2d/engine/webgl/brushes/WGLBrushVTLFill.js +1 -1
  303. package/views/2d/engine/webgl/brushes/WGLBrushVTLLine.js +1 -1
  304. package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
  305. package/views/2d/engine/webgl/brushes/WGLGeometryBrush.js +1 -1
  306. package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
  307. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  308. package/views/2d/engine/webgl/collisions/CollisionGrid.js +1 -1
  309. package/views/2d/engine/webgl/cpuMapped/DisplayRecordReader.js +1 -1
  310. package/views/2d/engine/webgl/definitions.js +1 -1
  311. package/views/2d/engine/webgl/effects/AnimationEffect.js +1 -1
  312. package/views/2d/engine/webgl/effects/HittestEffect.js +1 -1
  313. package/views/2d/engine/webgl/effects/HittestEffectVTL.js +1 -1
  314. package/views/2d/engine/webgl/effects/highlight/HighlightGradient.js +1 -1
  315. package/views/2d/engine/webgl/effects/highlight/HighlightRenderer.js +1 -1
  316. package/views/2d/engine/webgl/effects/highlight/parameters.js +1 -1
  317. package/views/2d/engine/webgl/mesh/MeshData.js +1 -1
  318. package/views/2d/engine/webgl/mesh/VertexDataWriter.js +1 -1
  319. package/views/2d/engine/webgl/mesh/heuristics.js +1 -1
  320. package/views/2d/engine/webgl/mesh/templates/WGLBaseLineTemplate.js +1 -1
  321. package/views/2d/engine/webgl/mesh/templates/WGLBaseMarkerTemplate.js +1 -1
  322. package/views/2d/engine/webgl/mesh/templates/WGLBaseTextTemplate.js +1 -1
  323. package/views/2d/engine/webgl/mesh/templates/WGLDynamicFillTemplate.js +1 -1
  324. package/views/2d/engine/webgl/mesh/templates/WGLDynamicLineTemplate.js +1 -1
  325. package/views/2d/engine/webgl/mesh/templates/WGLDynamicMarkerTemplate.js +1 -1
  326. package/views/2d/engine/webgl/mesh/templates/WGLDynamicTextTemplate.js +1 -1
  327. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  328. package/views/2d/engine/webgl/mesh/templates/WGLLabelTemplate.js +1 -1
  329. package/views/2d/engine/webgl/mesh/templates/WGLLineTemplate.js +1 -1
  330. package/views/2d/engine/webgl/mesh/templates/WGLMarkerTemplate.js +1 -1
  331. package/views/2d/engine/webgl/mesh/templates/WGLTextTemplate.js +1 -1
  332. package/views/2d/engine/webgl/mesh/templates/templateUtils.js +1 -1
  333. package/views/2d/engine/webgl/mesh/templates/util.js +1 -1
  334. package/views/2d/engine/webgl/techniques/dotDensity/TechniqueDotDensity.js +1 -1
  335. package/views/2d/engine/webgl/techniques/pieChart/TechniquePieChart.js +1 -1
  336. package/views/2d/engine/webgl/util/debug.js +1 -1
  337. package/views/2d/interactive/editingTools/ControlPointsTransformTool.js +1 -1
  338. package/views/2d/interactive/editingTools/MediaTransformToolsWrapper.js +1 -1
  339. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  340. package/views/2d/layers/BaseLayerViewGL2D.js +1 -1
  341. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  342. package/views/2d/layers/features/processors/HeatmapProcessor.js +1 -1
  343. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  344. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  345. package/views/2d/layers/features/support/ClusterStore.js +1 -1
  346. package/views/2d/layers/features/support/ComputedAttributeStorage.js +1 -1
  347. package/views/2d/layers/features/support/pixelBuffering.js +1 -1
  348. package/views/2d/layers/features/tileRenderers/support/visualVariablesUtils.js +1 -1
  349. package/views/2d/layers/graphics/GraphicStore.js +1 -1
  350. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  351. package/views/2d/layers/graphics/graphicsUtils.js +1 -1
  352. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  353. package/views/2d/support/engineHelpers.js +1 -1
  354. package/views/3d/analysis/Dimension/DimensionController.js +1 -1
  355. package/views/3d/analysis/Dimension/DimensionTool.js +1 -1
  356. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  357. package/views/3d/analysis/Dimension/lengthDimensionUtils.js +1 -1
  358. package/views/3d/analysis/Slice/ResizeManipulator.js +1 -1
  359. package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
  360. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  361. package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
  362. package/views/3d/analysis/Slice/sliceToolConfig.js +1 -1
  363. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  364. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  365. package/views/3d/environment/NoiseTextureAtlas.js +1 -1
  366. package/views/3d/environment/NoiseTextureAtlasDimensions.js +1 -1
  367. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  368. package/views/3d/glTF/internal/Resource.js +1 -1
  369. package/views/3d/interactive/editingTools/dragEventPipeline3D.js +1 -1
  370. package/views/3d/interactive/editingTools/manipulations/MoveManipulation.js +1 -1
  371. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  372. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  373. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  374. package/views/3d/interactive/editingTools/manipulations/config.js +1 -1
  375. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  376. package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
  377. package/views/3d/interactive/editingTools/transformGraphic/ExtentScale.js +1 -1
  378. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  379. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  380. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  381. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  382. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  383. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  384. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  385. package/views/3d/layers/I3SMeshView3D.js +1 -1
  386. package/views/3d/layers/I3SMeshViewLabeler.js +1 -1
  387. package/views/3d/layers/MediaLayerView3D.js +1 -1
  388. package/views/3d/layers/graphics/DisplayFeatureLimit.js +5 -0
  389. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  390. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  391. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  392. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  393. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  394. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  395. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  396. package/views/3d/layers/graphics/Graphics3DPathSymbolLayerConstants.js +1 -1
  397. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  398. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  399. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  400. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  401. package/views/3d/layers/graphics/SymbolComplexityNew.js +5 -0
  402. package/views/3d/layers/graphics/constants.js +1 -1
  403. package/views/3d/layers/graphics/defaultSymbolComplexity.js +5 -0
  404. package/views/3d/layers/graphics/labelPlacement.js +1 -1
  405. package/views/3d/layers/graphics/lodResourceUtils.js +1 -1
  406. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  407. package/views/3d/layers/graphics/placementUtils.js +1 -1
  408. package/views/3d/layers/graphics/primitiveObjectSymbolUtils.js +1 -1
  409. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  410. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  411. package/views/3d/layers/i3s/I3SGeometryUtil.js +1 -1
  412. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  413. package/views/3d/layers/support/FeatureTile.js +1 -1
  414. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  415. package/views/3d/layers/support/FeatureTileTree3D.js +1 -1
  416. package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
  417. package/views/3d/state/ViewStateManager.js +1 -1
  418. package/views/3d/state/controllers/InteractiveController.js +1 -1
  419. package/views/3d/state/controllers/RotateController.js +1 -1
  420. package/views/3d/state/controllers/global/PinchAndPanController.js +1 -1
  421. package/views/3d/state/controllers/global/ZoomController.js +1 -1
  422. package/views/3d/state/controllers/global/ZoomStepController.js +1 -1
  423. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  424. package/views/3d/state/controllers/local/ZoomController.js +1 -1
  425. package/views/3d/state/controllers/local/ZoomStepController.js +1 -1
  426. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  427. package/views/3d/state/utils/navigationUtils.js +1 -1
  428. package/views/3d/support/DisplayQualityProfile.js +1 -1
  429. package/views/3d/support/LaserLineRenderer.js +1 -1
  430. package/views/3d/support/MemoryController.js +1 -1
  431. package/views/3d/support/PBFDecoder.js +1 -1
  432. package/views/3d/support/QualitySettings.js +1 -1
  433. package/views/3d/support/StreamDataLoader.js +1 -1
  434. package/views/3d/support/engineContent/marker.js +1 -1
  435. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  436. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  437. package/views/3d/support/renderInfoUtils/line.js +1 -1
  438. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  439. package/views/3d/terrain/ElevationData.js +1 -1
  440. package/views/3d/terrain/ExtentHelper.js +1 -1
  441. package/views/3d/terrain/MapTileAgent.js +1 -1
  442. package/views/3d/terrain/OverlayRenderer.js +1 -1
  443. package/views/3d/terrain/PatchGeometry.js +1 -1
  444. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  445. package/views/3d/terrain/PatchGeometryLUT.js +1 -1
  446. package/views/3d/terrain/PatchRenderData.js +1 -1
  447. package/views/3d/terrain/PlanarPatch.js +1 -1
  448. package/views/3d/terrain/SphericalPatch.js +1 -1
  449. package/views/3d/terrain/TerrainAttributes.js +5 -0
  450. package/views/3d/terrain/TerrainAttributesCache.js +5 -0
  451. package/views/3d/terrain/TerrainConst.js +1 -1
  452. package/views/3d/terrain/TerrainRenderer.js +1 -1
  453. package/views/3d/terrain/TerrainSurface.js +1 -1
  454. package/views/3d/terrain/Tile.js +1 -1
  455. package/views/3d/terrain/TileAgent.js +1 -1
  456. package/views/3d/terrain/TileRenderer.js +1 -1
  457. package/views/3d/terrain/terrainUtils.js +1 -1
  458. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +1 -1
  459. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  460. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -3
  461. package/views/3d/webgl-engine/core/shaderLibrary/shading/MarkerSizing.glsl.js +1 -1
  462. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  463. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  464. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  465. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  466. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  467. package/views/3d/webgl-engine/lib/AttributeArray.js +1 -1
  468. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  469. package/views/3d/webgl-engine/lib/PathProfile.js +1 -1
  470. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  471. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  472. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  473. package/views/3d/webgl-engine/lib/TextureBackedBuffer/BufferManager.js +1 -1
  474. package/views/3d/webgl-engine/lib/TextureBackedBuffer/ManagedTextureBackedBuffer.js +1 -1
  475. package/views/3d/webgl-engine/lib/depthRange.js +1 -1
  476. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  477. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  478. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  479. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  480. package/views/3d/webgl-engine/lib/lodRendering/LodResources.js +1 -1
  481. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  482. package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
  483. package/views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js +1 -1
  484. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  485. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  486. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  487. package/views/3d/webgl-engine/materials/renderers/VaoCache.js +1 -1
  488. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  489. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  490. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  491. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +1 -1
  492. package/views/SceneView.js +1 -1
  493. package/views/ToolViewManager.js +1 -1
  494. package/views/View.js +1 -1
  495. package/views/draw/MultipointDrawAction.js +1 -1
  496. package/views/draw/PointDrawAction.js +1 -1
  497. package/views/draw/PolygonDrawAction.js +1 -1
  498. package/views/draw/PolylineDrawAction.js +1 -1
  499. package/views/draw/SegmentDrawAction.js +1 -1
  500. package/views/draw/support/Reshape.js +1 -1
  501. package/views/interactive/keybindings.js +1 -1
  502. package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorker.js +1 -1
  503. package/views/interactive/snapping/featureSources/sceneLayerSource/sceneLayerSnappingUtils.js +1 -1
  504. package/views/interactive/snapping/snappingUtils.js +1 -1
  505. package/views/interactive/tooltip/Tooltip.js +1 -1
  506. package/views/interactive/tooltip/TooltipContentWithHelpMessage.js +1 -1
  507. package/views/interactive/tooltip/TooltipEditableField.js +1 -1
  508. package/views/interactive/tooltip/TooltipField.js +1 -1
  509. package/views/interactive/tooltip/ValueByValue.js +1 -1
  510. package/views/interactive/tooltip/content/TooltipContent.js +1 -1
  511. package/views/interactive/tooltip/content/TooltipContentDrawCircle.js +1 -1
  512. package/views/interactive/tooltip/content/TooltipContentDrawMesh.js +1 -1
  513. package/views/interactive/tooltip/content/TooltipContentDrawPoint.js +1 -1
  514. package/views/interactive/tooltip/content/TooltipContentDrawPolygon.js +1 -1
  515. package/views/interactive/tooltip/content/TooltipContentDrawPolyline.js +1 -1
  516. package/views/interactive/tooltip/content/TooltipContentDrawRectangle.js +1 -1
  517. package/views/interactive/tooltip/content/TooltipContentExtentRotate.js +1 -1
  518. package/views/interactive/tooltip/content/TooltipContentExtentScale.js +1 -1
  519. package/views/interactive/tooltip/content/TooltipContentReshapeEdgeOffset.js +1 -1
  520. package/views/interactive/tooltip/content/TooltipContentTransformAbsolute.js +1 -1
  521. package/views/interactive/tooltip/content/TooltipContentTransformRotate.js +1 -1
  522. package/views/interactive/tooltip/content/TooltipContentTransformScale.js +1 -1
  523. package/views/interactive/tooltip/content/TooltipContentTranslateGraphic.js +1 -1
  524. package/views/interactive/tooltip/content/TooltipContentTranslateGraphicXY.js +1 -1
  525. package/views/interactive/tooltip/content/TooltipContentTranslateGraphicZ.js +1 -1
  526. package/views/interactive/tooltip/content/TooltipContentTranslateVertex.js +1 -1
  527. package/views/interactive/tooltip/content/TooltipContentTranslateVertexXY.js +1 -1
  528. package/views/interactive/tooltip/content/TooltipContentTranslateVertexZ.js +1 -1
  529. package/views/interactive/tooltip/css.js +1 -1
  530. package/views/support/GroundViewElevationSampler.js +1 -1
  531. package/views/webgl/RenderingContext.js +1 -1
  532. package/views/webgl/enums.js +1 -1
  533. package/widgets/BasemapGallery/css.js +1 -1
  534. package/widgets/BasemapGallery.js +1 -1
  535. package/widgets/BasemapToggle/css.js +1 -1
  536. package/widgets/BasemapToggle.js +1 -1
  537. package/widgets/Bookmarks/css.js +1 -1
  538. package/widgets/Bookmarks.js +1 -1
  539. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesNode.js +1 -1
  540. package/widgets/BuildingExplorer/BuildingDisciplinesTree/BuildingDisciplinesTree.js +1 -1
  541. package/widgets/BuildingExplorer/BuildingLevelPicker/BuildingLevelPicker.js +1 -1
  542. package/widgets/BuildingExplorer/BuildingLevelPicker/Label.js +1 -1
  543. package/widgets/BuildingExplorer/BuildingLevelPicker/constants.js +1 -1
  544. package/widgets/BuildingExplorer/BuildingLevelPicker/css.js +1 -1
  545. package/widgets/BuildingExplorer/css.js +1 -1
  546. package/widgets/BuildingExplorer.js +1 -1
  547. package/widgets/Compass/css.js +1 -1
  548. package/widgets/Compass.js +1 -1
  549. package/widgets/Daylight/css.js +1 -1
  550. package/widgets/Daylight/support/daylightUtils.js +1 -1
  551. package/widgets/Daylight.js +1 -1
  552. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  553. package/widgets/DirectionalPad/constants.js +1 -1
  554. package/widgets/DirectionalPad/css.js +1 -1
  555. package/widgets/DirectionalPad/utils.js +1 -1
  556. package/widgets/DirectionalPad.js +1 -1
  557. package/widgets/Directions/support/resources.js +1 -1
  558. package/widgets/Directions.js +1 -1
  559. package/widgets/Editor/EditorViewModel.js +1 -1
  560. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  561. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  562. package/widgets/Editor/Upload.js +1 -1
  563. package/widgets/Editor/components/FooterActions.js +1 -1
  564. package/widgets/Editor/components/Notices.js +1 -1
  565. package/widgets/Editor/components/PanelContent.js +1 -1
  566. package/widgets/Editor/components/PanelToolbar.js +1 -1
  567. package/widgets/Editor/components/Prompt.js +1 -1
  568. package/widgets/Editor/components/Settings.js +1 -1
  569. package/widgets/Editor/components/UploadDetails.js +1 -1
  570. package/widgets/Editor/css.js +1 -1
  571. package/widgets/Editor/icons.js +1 -1
  572. package/widgets/Editor.js +1 -1
  573. package/widgets/ElevationProfile/components/Legend.js +1 -1
  574. package/widgets/ElevationProfile/components/LegendItem.js +1 -1
  575. package/widgets/ElevationProfile/components/SettingsButton.js +1 -1
  576. package/widgets/ElevationProfile/components/Statistics.js +1 -1
  577. package/widgets/ElevationProfile/css.js +1 -1
  578. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  579. package/widgets/ElevationProfile/support/constants.js +1 -1
  580. package/widgets/ElevationProfile/support/profileUtils.js +1 -1
  581. package/widgets/ElevationProfile.js +1 -1
  582. package/widgets/Feature/FeatureMedia/chartCommon.js +1 -1
  583. package/widgets/Feature/resources.js +1 -1
  584. package/widgets/Feature/support/FeatureContentMixin.js +1 -1
  585. package/widgets/Feature.js +1 -1
  586. package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
  587. package/widgets/FeatureForm/css.js +1 -1
  588. package/widgets/FeatureForm.js +1 -1
  589. package/widgets/FeatureTable/FieldColumn.js +1 -1
  590. package/widgets/Features/FeaturesRelatedRecords.js +1 -1
  591. package/widgets/Features/css.js +1 -1
  592. package/widgets/Features.js +1 -1
  593. package/widgets/FloorFilter/css.js +1 -1
  594. package/widgets/FloorFilter.js +1 -1
  595. package/widgets/Legend/styles/Card.js +1 -1
  596. package/widgets/Legend/styles/CardCSS.js +1 -1
  597. package/widgets/Legend/styles/Classic.js +1 -1
  598. package/widgets/Legend/styles/ClassicCSS.js +1 -1
  599. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  600. package/widgets/Legend/support/sizeRampUtils.js +1 -1
  601. package/widgets/Legend/support/utils.js +1 -1
  602. package/widgets/NavigationToggle/css.js +1 -1
  603. package/widgets/NavigationToggle.js +1 -1
  604. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  605. package/widgets/OrientedImageryViewer/constants.js +1 -1
  606. package/widgets/OrientedImageryViewer.js +1 -1
  607. package/widgets/Popup/css.js +1 -1
  608. package/widgets/Popup.js +1 -1
  609. package/widgets/ScaleBar/css.js +1 -1
  610. package/widgets/ScaleBar.js +1 -1
  611. package/widgets/ScaleRangeSlider/css.js +1 -1
  612. package/widgets/ScaleRangeSlider.js +1 -1
  613. package/widgets/Search/SearchResultRenderer.js +1 -1
  614. package/widgets/Search/css.js +1 -1
  615. package/widgets/Search/searchResultRendererCSS.js +1 -1
  616. package/widgets/Search.js +1 -1
  617. package/widgets/ShadowCast/ShadowVisualizationType.js +1 -1
  618. package/widgets/ShadowCast/components/DiscreteConfigurator.js +1 -1
  619. package/widgets/ShadowCast/components/DurationConfigurator.js +1 -1
  620. package/widgets/ShadowCast/components/Label.js +1 -1
  621. package/widgets/ShadowCast/components/ShadowTooltipContent.js +1 -1
  622. package/widgets/ShadowCast/components/ThresholdConfigurator.js +1 -1
  623. package/widgets/ShadowCast/css.js +1 -1
  624. package/widgets/ShadowCast.js +1 -1
  625. package/widgets/Sketch/SketchViewModel.js +1 -1
  626. package/widgets/Sketch.js +1 -1
  627. package/widgets/Slider/css.js +1 -1
  628. package/widgets/Slider.js +1 -1
  629. package/widgets/TimeSlider/css.js +1 -1
  630. package/widgets/TimeSlider.js +1 -1
  631. package/widgets/UtilityNetworkTrace/support/GraphicHandler.js +1 -1
  632. package/widgets/UtilityNetworkTrace.js +1 -1
  633. package/widgets/Weather/LabeledSlider.js +1 -1
  634. package/widgets/Weather/css.js +1 -1
  635. package/widgets/Weather.js +1 -1
  636. package/widgets/Widget.js +1 -1
  637. package/widgets/support/Heading.js +1 -1
  638. package/widgets/support/LabeledSwitch.js +5 -0
  639. package/widgets/support/SketchTooltipControls/SketchTooltipControlsViewModel.d.ts +4 -0
  640. package/widgets/support/SketchTooltipControls/SketchTooltipControlsViewModel.js +5 -0
  641. package/widgets/support/SketchTooltipControls/VisibleElements.js +1 -1
  642. package/widgets/support/SketchTooltipControls.d.ts +4 -0
  643. package/widgets/support/SketchTooltipControls.js +1 -1
  644. package/widgets/support/SnappingControls.js +1 -1
  645. package/widgets/support/TimezonePicker.js +1 -1
  646. package/widgets/support/dateUtils.js +1 -1
  647. package/widgets/support/jsxWidgetSupport.js +1 -1
  648. package/widgets/support/symbols.js +1 -1
  649. package/assets/esri/core/workers/chunks/0fd5fba4b9413f1d1b6e.js +0 -1
  650. package/assets/esri/core/workers/chunks/10b0c4bf2b94ddf130ea.js +0 -1
  651. package/assets/esri/core/workers/chunks/190b199406878e9491e9.js +0 -1
  652. package/assets/esri/core/workers/chunks/238966b2fc6cc3dfcc05.js +0 -1
  653. package/assets/esri/core/workers/chunks/257d5b08146aa813d302.js +0 -1
  654. package/assets/esri/core/workers/chunks/380dca364634cab5616c.js +0 -1
  655. package/assets/esri/core/workers/chunks/421f55959041ea1ab4d0.js +0 -1
  656. package/assets/esri/core/workers/chunks/49a1330e12c8a3919604.js +0 -1
  657. package/assets/esri/core/workers/chunks/65a787bb450b8cb5c2a7.js +0 -1
  658. package/assets/esri/core/workers/chunks/872d0d4bf364be43a92e.js +0 -1
  659. package/assets/esri/core/workers/chunks/87e443de25c7e3935079.js +0 -1
  660. package/assets/esri/core/workers/chunks/8a784ddd5607f1ddbb5b.js +0 -1
  661. package/assets/esri/core/workers/chunks/8c5c31a9a93b77fb70f8.js +0 -1
  662. package/assets/esri/core/workers/chunks/98f4b1771dc08d272d94.js +0 -1
  663. package/assets/esri/core/workers/chunks/9a462cd6fddcaf8b2336.js +0 -1
  664. package/assets/esri/core/workers/chunks/a47aff9c97c5ce52d0dc.js +0 -1
  665. package/assets/esri/core/workers/chunks/b5de6e05dd69f52e0330.js +0 -1
  666. package/assets/esri/core/workers/chunks/b9445d3dbcb766ae795f.js +0 -1
  667. package/assets/esri/core/workers/chunks/c6b060706ef870fbba54.js +0 -1
  668. package/assets/esri/core/workers/chunks/c86ad15c5c260f169e2c.js +0 -1
  669. package/assets/esri/core/workers/chunks/ca2a7008a750c050677e.js +0 -1
  670. package/assets/esri/core/workers/chunks/da1329dbd81ec2011233.js +0 -1
  671. package/assets/esri/core/workers/chunks/e24d4aba7a0f0ae9b525.js +0 -1
  672. package/assets/esri/core/workers/chunks/f3ec53ee9567bb7e4d2f.js +0 -1
  673. package/views/3d/layers/graphics/symbolComplexity.js +0 -5
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5876,5935],{84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(2368),s=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let c=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(p.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.j)("esri.TimeInterval")],c);const d=c},12653:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var i=r(43697),n=(r(66577),r(51773)),s=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),o=r(16453),a=r(78286),l=r(17452),u=r(5600),p=r(75215),c=(r(67676),r(80442)),d=r(52011),y=r(30556),f=r(86973),m=r(87085),h=r(20102),g=r(83379),w=r(95330),b=r(56569),v=r(25278),S=r(51432),C=r(74889),F=r(6570);let x=class extends g.Z{constructor(){super(...arguments),this._connection=null,this.capabilities=(0,v.MS)(!1,!1),this.type="wfs",this.refresh=(0,w.Ds)((async e=>{await this.load();const{extent:t}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return C.Z.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:F.Z.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:i,namespaceUri:n,spatialReference:s,fields:o,geometryType:a,swapXY:l}=this.layer;if(!t)throw new h.Z("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,S.FU)(t,{customParameters:r,...e}));const u=["fields","geometryType","name","namespaceUri","spatialReference","swapXY"].some((e=>null==this.layer[e])),p=u?await(0,S.be)(this.wfsCapabilities,i,n,{spatialReference:s,customParameters:r,signal:e?.signal}):{...(0,S.eB)(o??[]),geometryType:a,name:i,namespaceUri:n,spatialReference:s,swapXY:l},c=(0,S.ft)(this.wfsCapabilities.readFeatureTypes(),p.name,p.namespaceUri),d=f.M.toJSON(p.geometryType);return{customParameters:r,featureType:c,fields:p.fields?.map((e=>e.toJSON()))??[],geometryField:p.geometryField,geometryType:d,getFeatureUrl:this.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:this.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:p.objectIdField,spatialReference:p.spatialReference.toJSON(),swapXY:!!p.swapXY}}async _startWorker(e){const[t,r]=await(0,w.as)([this._createLoadOptions(e),(0,b.bA)("WFSSourceWorker",{...e,strategy:(0,c.Z)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),i=t.error||r.error||null,n=r.value||null;if(i)throw n&&n.close(),i;const s=t.value;this._connection=r.value;const o=(await this._connection.invoke("load",s,e)).extent;this.sourceJSON={extent:o,fields:s.fields,geometryType:s.geometryType,objectIdField:s.objectIdField,geometryField:s.geometryField,drawingInfo:(0,v.bU)(s.geometryType),name:s.featureType.title,wfsInfo:{name:s.featureType.name,featureUrl:s.getFeatureUrl,maxFeatures:3e3,swapXY:s.swapXY,supportedSpatialReferences:s.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:s.featureType.namespaceUri}}}};(0,i._)([(0,u.Cb)()],x.prototype,"capabilities",void 0),(0,i._)([(0,u.Cb)({constructOnly:!0})],x.prototype,"layer",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"type",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"wfsCapabilities",void 0),x=(0,i._)([(0,d.j)("esri.layers.graphics.sources.WFSSource")],x);var _,I=r(71612),T=r(17017),P=r(69637),j=r(6404),E=r(38009),R=r(68825),O=r(16859),Z=r(34760),N=r(72965),U=r(28294),q=r(21506),M=r(1231),G=r(53518),A=r(35671),D=r(54306),L=r(30707),k=r(14165),J=r(32163),$=r(82971);const H=(0,G.v)();let B=_=class extends((0,R.c)((0,T.N)((0,j.M)((0,P.b)((0,I.h)((0,U.n)((0,Z.Q)((0,N.M)((0,E.q)((0,O.I)((0,o.R)(m.Z)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:i,geometryType:n,name:s,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c}=e;return new _({customParameters:t,fields:r,geometryField:i,geometryType:n,name:s,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new x({layer:this}),this.spatialReference=$.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,A.YN)(this.renderer,this.fieldsIndex),(0,A.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const i=e.filter((e=>e.name!==S.M8));this.geometryField&&i.unshift(new M.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,a.RB)(r,i.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,l.mN)(this.url)}set renderer(e){(0,A.YN)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,J.eZ)(this,e)}createQuery(){const e=new k.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(k.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(k.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(k.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(k.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"capabilities",null),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"createQueryVersion",null),(0,i._)([(0,u.Cb)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],B.prototype,"customParameters",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,i._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"displayField",void 0),(0,i._)([(0,u.Cb)(q.PV)],B.prototype,"elevationInfo",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"featureUrl",void 0),(0,i._)([(0,u.Cb)({type:[M.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],B.prototype,"fields",void 0),(0,i._)([(0,y.c)("fields")],B.prototype,"writeFields",null),(0,i._)([(0,u.Cb)(H.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,i._)([(0,u.Cb)({type:F.Z,json:{name:"extent"}})],B.prototype,"fullExtent",void 0),(0,i._)([(0,u.Cb)()],B.prototype,"geometryField",void 0),(0,i._)([(0,u.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:f.M.read},write:{target:"layerDefinition.geometryType",writer:f.M.write,ignoreOrigin:!0},origins:{service:{read:f.M.read}}}})],B.prototype,"geometryType",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"id",void 0),(0,i._)([(0,u.Cb)(q.iR)],B.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:L.r},write:!0}})],B.prototype,"labelingInfo",void 0),(0,i._)([(0,u.Cb)(q.rn)],B.prototype,"legendEnabled",void 0),(0,i._)([(0,u.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"objectIdField",void 0),(0,i._)([(0,u.Cb)({type:["WFS"]})],B.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({type:p.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"maxFeatures",void 0),(0,i._)([(0,u.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],B.prototype,"mode",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"name",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"namespaceUri",void 0),(0,i._)([(0,u.Cb)(q.bT)],B.prototype,"opacity",void 0),(0,i._)([(0,u.Cb)(H.outFields)],B.prototype,"outFields",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"parsedUrl",null),(0,i._)([(0,u.Cb)(q.C_)],B.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,i._)([(0,u.Cb)({types:s.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:s.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],B.prototype,"renderer",null),(0,i._)([(0,u.Cb)(q.YI)],B.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"source",void 0),(0,i._)([(0,u.Cb)({type:$.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],B.prototype,"spatialReference",void 0),(0,i._)([(0,u.Cb)({readOnly:!0,type:[p.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"spatialReferences",void 0),(0,i._)([(0,u.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"swapXY",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],B.prototype,"title",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],B.prototype,"type",void 0),(0,i._)([(0,u.Cb)(q.HQ)],B.prototype,"url",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"version",void 0),(0,i._)([(0,u.Cb)()],B.prototype,"wfsCapabilities",null),B=_=(0,i._)([(0,d.j)("esri.layers.WFSLayer")],B);const V=B},61159:(e,t,r)=>{r.d(t,{g:()=>i});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>S,lG:()=>F,my:()=>C,q9:()=>l});var i=r(20102),n=r(70272),s=r(5428),o=r(35671);const a={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return a[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function c(e){for(const t of e)if(t.length>2)return!0;return!1}function d(e){let t=0;for(let r=0;r<e.length;r++){const i=e[r],n=e[(r+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function y(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function f(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return g(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const i of t.coordinates)g(e,i,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const i of t.coordinates){m(e,i[0],r);for(let t=1;t<i.length;t++)h(e,i[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return b(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const i=t.coordinates;m(e,i[0],r);for(let t=1;t<i.length;t++)h(e,i[t],r);return e}(e,t,r)}}function m(e,t,r){const i=y(t);!function(e){return!d(e)}(i)?g(e,i,r):w(e,i,r)}function h(e,t,r){const i=y(t);!function(e){return d(e)}(i)?g(e,i,r):w(e,i,r)}function g(e,t,r){for(const i of t)b(e,i,r);e.lengths.push(t.length)}function w(e,t,r){for(let i=t.length-1;i>=0;i--)b(e,t[i],r);e.lengths.push(t.length)}function b(e,t,r){const[i,n,s]=t;e.coords.push(i,n),r.hasZ&&e.coords.push(s||0)}function v(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const r="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,n=new RegExp(".*(CRS84H?|4326)$","i");if(!r||!n.test(r))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function C(e,t={}){const r=[],i=new Set,n=new Set;let s,a=!1,d=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:u,id:h}=t;if((!e||(f||(f=l(e.type)),l(e.type)===f))&&(a||(a=c(p(e))),y||(y=null!=h,y&&(s=typeof h,u&&(d=Object.keys(u).filter((e=>u[e]===h))))),u&&d&&y&&null!=h&&(d.length>1?d=d.filter((e=>u[e]===h)):1===d.length&&(d=u[d[0]]===h?d:[])),!m&&u)){let e=!0;for(const t in u){if(i.has(t))continue;const s=u[t];if(null==s){e=!1,n.add(t);continue}const a=v(s);if("unknown"===a){n.add(t);continue}n.delete(t),i.add(t);const l=(0,o.q6)(t);l&&r.push({name:l,alias:t,type:a})}m=e}}const h=(0,o.q6)(1===d?.length&&d[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,o.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:a,objectIdFieldName:h,objectIdFieldType:s,unknownFields:Array.from(n)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:i}=t;for(const o of e){const{geometry:e,properties:a,id:u}=o;if(e&&l(e.type)!==r)continue;const p=a||{};let c;i&&(c=p[i],null==u||c||(p[i]=c=u));const d=new n.u_(e?f(new s.Z,e,t):null,p,null,c??void 0);yield d}}(u(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>p,Hq:()=>c,MS:()=>d,bU:()=>a});var i=r(80442),n=r(22974),s=r(61159),o=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},17017:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(43697),n=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,r)=>{r.d(t,{b:()=>T});var i,n=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),a=r(20102),l=r(96674),u=r(78286),p=r(67760),c=r(66577),d=r(92835),y=r(35454),f=r(22974),m=r(14165);const h=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=i=class extends l.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new m.Z({geometry:(0,f.d9)(r),objectIds:(0,f.d9)(s),spatialRelationship:i,timeExtent:(0,f.d9)(n),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new i({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(s),spatialRelationship:r,timeExtent:(0,f.d9)(n),where:e,units:o,distance:a})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,n._)([(0,s.Cb)({types:c.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,n._)([(0,s.Cb)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,n._)([(0,s.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,n._)([(0,s.Cb)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,n._)([(0,s.Cb)({type:d.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureFilter")],w);const b=w;var v;const S={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},F={name:"showExcludedLabels",default:!0};let x=v=class extends l.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,s.Cb)({type:b,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,u.RB)(r,n,t):(0,u.RB)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],x.prototype,"includedEffect",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":F,"portal-item":F}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n._)([(0,o.j)("esri.layers.support.FeatureEffect")],x);const _=x,I={write:{allowNull:!0}},T=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,s.Cb)({type:_,json:{origins:{"web-map":I,"portal-item":I}}})],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(43697),s=r(78286),o=r(5600),a=(r(75215),r(67676),r(80442),r(52011)),l=r(35454),u=r(96674);const p=new l.X({asc:"ascending",desc:"descending"});let c=i=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,n._)([(0,o.Cb)({type:p.apiValues,json:{read:p.read,write:p.write}})],c.prototype,"order",void 0),c=i=(0,n._)([(0,a.j)("esri.layers.support.OrderByInfo")],c);const d=c;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const n=new d;return n.read(i,r),[n]}function f(e,t,r,i){const n=e.find((e=>!!e.field));n&&(0,s.RB)(r,[n.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,o.Cb)({type:[d],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>C});var i=r(43697),n=r(68773),s=r(40330),o=r(3172),a=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(17452),y=r(5600),f=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),h=r(30556),g=r(84230),w=r(48522),b=r(15235),v=r(86082),S=r(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,S.Ss)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!n||!(0,d.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,S.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=F.credential===t?F.user:await this._fetchEditingUser(e);return F.credential=t,F.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=w.Z.getDefault();if(n&&n.loaded&&(0,d.Fv)(n.restUrl)===(0,d.Fv)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?v.Z.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||w.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},F={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),n=r(92835),s=r(84552),o=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),p=r(76259),c=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.v.fromJSON(r.timeOffsetUnits);return i&&n?new s.Z({value:i,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},51432:(e,t,r)=>{r.d(t,{M8:()=>b,ft:()=>Z,FU:()=>E,Bm:()=>A,be:()=>N,eB:()=>U}),r(66577);var i=r(3172),n=r(20102),s=r(66374),o=r(17452),a=r(73615),l=r(8744),u=r(86973),p=r(92722);function c(e){return function(e){const t=d.exec(e);if(!t?.groups)return null;const r=t.groups,i=+r.year,n=+r.month-1,s=+r.day,o=+(r.hours??"0"),a=+(r.minutes??"0"),l=+(r.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const u=r.ms??"0",p=u?+u.padEnd(3,"0").substring(0,3):0;let c;if(r.isUTC)c=Date.UTC(i,n,s,o,a,l,p);else if(r.offsetSign){const e=+r.offsetHours,t=+r.offsetMinutes;c=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,s,o,a,l,p)}else c=new Date(i,n,s,o,a,l,p).getTime();return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e).getTime();return Number.isNaN(t)?null:t}(e)}const d=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/;var y=r(88724),f=r(1231),m=r(82971),h=r(6570);const g="xlink:href",w="2.0.0",b="__esri_wfs_id__",v="wfs-layer:getWFSLayerTypeInfo-error",S="wfs-layer:empty-service",C="wfs-layer:feature-type-not-found",F="wfs-layer:geojson-not-supported",x="wfs-layer:kvp-encoding-not-supported",_="wfs-layer:malformed-json",I="wfs-layer:unknown-geometry-type",T="wfs-layer:unknown-field-type",P="wfs-layer:unsupported-spatial-reference",j="wfs-layer:unsupported-wfs-version";async function E(e,t){const r=function(e){const t=L(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new n.Z(j,`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),J(t);const r=t.firstElementChild,i=(0,s.Fs)(function(e){return(0,y.H)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",supportedSpatialReferences:[]},r=new Set([4326]),i=e=>{const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);Number.isNaN(t)||r.add(t)};return(0,y.h)(e,{Name:e=>{const{name:r,prefix:i}=k(e.textContent);t.typeName=`${i}:${r}`,t.name=r,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=function(e){let t,r,i,n;for(const s of e.children)switch(s.localName){case"LowerCorner":[t,r]=s.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[i,n]=s.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:l.Zn}}(e)},DefaultSRS:i,DefaultCRS:i,OtherSRS:i,OtherCRS:i}),t.title||(t.title=t.name),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:O(r),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.$U)(e)&&((0,o.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.hO)(t.operations.DescribeFeatureType.url)),(0,o.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.hO)(t.operations.GetFeature.url)))}(e,r),r}const R=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function O(e){let t=!1;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,y.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;t&&R.has(t.toLowerCase())&&(r.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new n.Z(x,"WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new n.Z(F,"WFS service doesn't support GeoJSON output format");return r}function Z(e,t,r){return(0,s.sE)(e,(e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t))}async function N(e,t,r,i={}){const{featureType:s,extent:o}=await async function(e,t,r,i={}){const{spatialReference:s=m.Z.WGS84}=i,o=e.readFeatureTypes(),u=t?Z(o,t,r):o.next().value;if(null==u)throw t?new n.Z(C,`The type '${t}' could not be found in the service`):new n.Z(S,"The service is empty");let p=new h.Z({...u.extent,spatialReference:s});if(!(0,l.fS)(s,l.Zn))try{await(0,a.initializeProjection)(l.Zn,s,void 0,i),p=(0,a.project)(p,l.Zn)}catch{throw new n.Z(P,"Projection not supported")}return{extent:p,spatialReference:s,featureType:u}}(e,t,r,i),{fields:u,geometryType:p,swapXY:c,objectIdField:d,geometryField:y}=await async function(e,t,r={}){const[i,s]=await Promise.allSettled([M(e.operations.DescribeFeatureType.url,t,r),q(e,t,r)]),o=e=>new n.Z(v,`An error occurred while getting info about the feature type '${t}'`,{error:e});if("rejected"===i.status)throw o(i.reason);if("rejected"===s.status)throw o(s.reason);const{fields:a,errors:l}=i.value??{},u=i.value?.geometryType||s.value?.geometryType,p=s.value?.swapXY??!1;if(null==u)throw new n.Z(I,`The geometry type could not be determined for type '${t}`,{typeName:t,geometryType:u,fields:a,errors:l});return{...U(a??[]),geometryType:u,swapXY:p}}(e,s.typeName,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:u,geometryField:y,geometryType:p,objectIdField:d,spatialReference:i.spatialReference??m.Z.WGS84,extent:o,swapXY:c,wfsCapabilities:e,customParameters:i.customParameters}}function U(e){const t=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new f.Z({name:b,type:"oid",alias:b}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function q(e,t,r={}){let n,s=!1;const[o,a]=await Promise.all([A(e.operations.GetFeature.url,t,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,i.Z)(e.operations.GetFeature.url,{responseType:"text",query:D(t,void 0,{...r,count:1}),signal:r?.signal})]),l="FeatureCollection"===o.type&&o.features[0]?.geometry;if(l){let e;switch(n=u.M.fromJSON((0,p.q9)(l.type)),l.type){case"Point":e=l.coordinates;break;case"LineString":case"MultiPoint":e=l.coordinates[0];break;case"MultiLineString":case"Polygon":e=l.coordinates[0][0];break;case"MultiPolygon":e=l.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(a.data);if(t){const r=e[0].toFixed(3),i=e[1].toFixed(3),n=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&i===n&&(s=!0)}}return{geometryType:n,swapXY:s}}async function M(e,t,r){return function(e,t){const{name:r}=k(e),i=L(t);J(i);const o=(0,s.sE)((0,y.H)(i.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:k(e.getAttribute("type")).name})}),(({name:e})=>e===r));if(null!=o){const e=(0,s.sE)((0,y.H)(i.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===o.typeName));if(null!=e)return function(e){const t=[],r=[];let i;const s=(0,y.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of s){const s=o.getAttribute("name");if(!s)continue;let a,l;if(o.hasAttribute("type")?a=k(o.getAttribute("type")).name:(0,y.h)(o,{simpleType:{restriction:e=>(a=k(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let p=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new f.Z({name:s,alias:s,type:"integer",nullable:u}));break;case"float":case"double":case"decimal":r.push(new f.Z({name:s,alias:s,type:"double",nullable:u}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new f.Z({name:s,alias:s,type:"string",nullable:u,length:l??255}));break;case"datetime":case"date":r.push(new f.Z({name:s,alias:s,type:"date",nullable:u,length:l??36}));break;case"pointpropertytype":i="point",p=!0;break;case"multipointpropertytype":i="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,t.push(new n.Z(I,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new n.Z(T,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new f.Z({name:s,alias:s,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&G.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:r,errors:t}}(e)}throw new n.Z(C,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,...r?.customParameters},signal:r?.signal})).data)}const G=new Set(["objectid","fid"]);async function A(e,t,r,s){let{data:o}=await(0,i.Z)(e,{responseType:"text",query:D(t,r,s),signal:s?.signal});o=o.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{if(s?.dateFields?.length){const e=new Set(s.dateFields);return JSON.parse(o,((t,r)=>e.has(t)?c(r):r))}return JSON.parse(o)}catch(e){throw new n.Z(_,"Error while parsing the response",{response:o,error:e})}}function D(e,t,r){return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:t,SRSNAME:"EPSG:4326",STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}function L(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function k(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function J(e){let t="",r="";if((0,y.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new n.Z(`wfs-layer:${t}`,r)}},88724:(e,t,r)=>{function i(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&i(r,t)}else i(r,e)}}function*n(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*n(r,e)}}r.d(t,{H:()=>n,h:()=>i})},76259:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),n=r(92835),s=r(84552),o=r(2368),a=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),c=r(30556),d=r(80216);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let f=class extends((0,o.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.c)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,i._)([(0,c.c)("interval")],f.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,i._)([(0,l.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),f=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],f);const m=f},50957:(e,t,r)=>{r.d(t,{C9:()=>P,Ci:()=>C,FV:()=>S,Fr:()=>m,JD:()=>h,JY:()=>Z,Jj:()=>b,KE:()=>I,Ob:()=>G,SU:()=>F,VG:()=>_,Y5:()=>w,gG:()=>j,kZ:()=>O,kp:()=>T,nU:()=>U,rP:()=>E,rk:()=>R,sX:()=>q,tD:()=>x,uA:()=>A,uj:()=>v});var i=r(40330),n=r(9790),s=r(20102),o=r(35454),a=r(42033),l=r(63213),u=r(84230),p=r(84382),c=r(81571),d=r(56545),y=r(14165),f=r(75935);const m=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function h(e,t,r,i){const n=await N(e);if(await g(e,t,i),!n.addAttachment)throw new s.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function g(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new s.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new s.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new s.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new s.Z(r,"this layer doesn't support attachments"))}async function w(e,t,r,i,n){const o=await N(e);if(await g(e,t,n),!o.updateAttachment)throw new s.Z(n,"Layer source does not support updateAttachment capability");return o.updateAttachment(t,r,i)}async function b(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function v(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function S(e,t,r,i){const n=await N(e);if(await g(e,t,i),!n.deleteAttachments)throw new s.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function C(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new s.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function F(e,t,r,i){t=d.Z.from(t),await e.load();const n=e.source,o=e.capabilities;if(!o?.data?.supportsAttachment)throw new s.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:p,size:c,start:y,where:f}=t;if(!o?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||p||y||f))throw new s.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||f))throw new s.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new s.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function x(e,t,r,i){const n=await N(e);if(!n.queryObjectIds)throw new s.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(y.Z.from(t)??e.createQuery(),r)}async function _(e,t,r,i){const n=await N(e);if(!n.queryFeatureCount)throw new s.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(y.Z.from(t)??e.createQuery(),r)}async function I(e,t,r,i){const n=await N(e);if(!n.queryExtent)throw new s.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(y.Z.from(t)??e.createQuery(),r)}async function T(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeatures)throw new s.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(f.default.from(t),r)}async function P(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeaturesCount)throw new s.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(f.default.from(t),r)}async function j(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function E(e){const t=new y.Z,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function R(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function O(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function Z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function N(e){return(await e.load()).source}async function U(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,u.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function q(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const M=(0,l.d)({types:n.QT});function G(e,t){if(e.defaultSymbol)return e.types&&e.types.length?new c.Z({defaultSymbol:M(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:M(e.symbol,e,t)})))}):new p.Z({symbol:M(e.defaultSymbol,e,t)})}function A(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(92604),n=r(1231),s=r(99514),o=r(35671);function a(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new s.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.Q0)(this.fieldsIndex,e)}}}}},30707:(e,t,r)=>{r.d(t,{a:()=>c,r:()=>u});var i=r(20102),n=r(22974),s=r(92604),o=r(54306);const a=s.Z.getLogger("esri.layers.support.labelingInfo"),l=/\[([^\[\]]+)\]/gi;function u(e,t,r){return e?e.map((e=>{const i=new o.Z;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`))}return i})):null}const p={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function c(e,t){const r=(0,n.d9)(e);return r.some((e=>function(e,t){const r=e.labelPlacement,n=p[t];if(!e.symbol)return a.warn("No ILabelClass symbol specified."),!0;if(!n)return a.error(new i.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!n.includes(r)){const i=n[0];r&&a.warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${i}`),e.labelPlacement=i}return!1}(e,t)))?[]:r}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74889:(e,t,r)=>{r.d(t,{Z:()=>b});var i,n=r(43697),s=r(66577),o=r(38171),a=r(35454),l=r(96674),u=r(22974),p=r(5600),c=(r(75215),r(71715)),d=r(52011),y=r(30556),f=r(82971),m=r(33955),h=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.Z.fromJSON(n),a=n.geometry&&n.geometry.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=n.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=f.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*s+i),(e=>n-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.oU)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,m.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.oU)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.Cb)({type:[o.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,n._)([(0,c.r)("features")],w.prototype,"readFeatures",null),(0,n._)([(0,p.Cb)({type:[h.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,n._)([(0,y.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n._)([(0,p.Cb)({types:s.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n._)([(0,c.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n._)([(0,y.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n._)([(0,p.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n._)([(0,d.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var i,n=r(43697),s=(r(66577),r(96674)),o=r(22974),a=r(5600),l=r(75215),u=r(52011),p=r(30556),c=r(10158),d=r(82971);let y=i=class extends s.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:c.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,n._)([(0,p.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:d.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,n._)([(0,p.c)("start"),(0,p.c)("num")],y.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.se)(y);const f=y},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>n,eG:()=>l,lF:()=>o,lj:()=>p,qP:()=>a,wW:()=>u});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5876,5935],{84552:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(2368),s=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),p=r(78981);let c=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(p.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.j)("esri.TimeInterval")],c);const d=c},12653:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var i=r(43697),n=(r(66577),r(51773)),s=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),o=r(16453),a=r(78286),l=r(17452),u=r(5600),p=r(75215),c=(r(67676),r(80442)),d=r(52011),y=r(30556),f=r(86973),m=r(87085),h=r(20102),g=r(83379),w=r(95330),b=r(56569),v=r(25278),S=r(51432),C=r(74889),F=r(6570);let x=class extends g.Z{constructor(){super(...arguments),this._connection=null,this.capabilities=(0,v.MS)(!1,!1),this.type="wfs",this.refresh=(0,w.Ds)((async e=>{await this.load();const{extent:t}=await this._connection.invoke("refresh",e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}}))}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return C.Z.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._connection.invoke("queryFeatures",e?e.toJSON():null,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)}async queryObjectIds(e,t={}){return await this.load(t),this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._connection.invoke("queryExtent",e?e.toJSON():null,t);return{count:r.count,extent:F.Z.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._connection.invoke("querySnapping",e,t)}async _createLoadOptions(e){const{url:t,customParameters:r,name:i,namespaceUri:n,spatialReference:s,fields:o,geometryType:a,swapXY:l}=this.layer;if(!t)throw new h.Z("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,S.FU)(t,{customParameters:r,...e}));const u=["fields","geometryType","name","namespaceUri","spatialReference","swapXY"].some((e=>null==this.layer[e])),p=u?await(0,S.be)(this.wfsCapabilities,i,n,{spatialReference:s,customParameters:r,signal:e?.signal}):{...(0,S.eB)(o??[]),geometryType:a,name:i,namespaceUri:n,spatialReference:s,swapXY:l},c=(0,S.ft)(this.wfsCapabilities.readFeatureTypes(),p.name,p.namespaceUri),d=f.M.toJSON(p.geometryType);return{customParameters:r,featureType:c,fields:p.fields?.map((e=>e.toJSON()))??[],geometryField:p.geometryField,geometryType:d,getFeatureUrl:this.wfsCapabilities.operations.GetFeature.url,getFeatureOutputFormat:this.wfsCapabilities.operations.GetFeature.outputFormat,objectIdField:p.objectIdField,spatialReference:p.spatialReference.toJSON(),swapXY:!!p.swapXY}}async _startWorker(e){const[t,r]=await(0,w.as)([this._createLoadOptions(e),(0,b.bA)("WFSSourceWorker",{...e,strategy:(0,c.Z)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),i=t.error||r.error||null,n=r.value||null;if(i)throw n&&n.close(),i;const s=t.value;this._connection=r.value;const o=(await this._connection.invoke("load",s,e)).extent;this.sourceJSON={extent:o,fields:s.fields,geometryType:s.geometryType,objectIdField:s.objectIdField,geometryField:s.geometryField,drawingInfo:(0,v.bU)(s.geometryType),name:s.featureType.title,wfsInfo:{name:s.featureType.name,featureUrl:s.getFeatureUrl,maxFeatures:3e3,swapXY:s.swapXY,supportedSpatialReferences:s.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:s.featureType.namespaceUri}}}};(0,i._)([(0,u.Cb)()],x.prototype,"capabilities",void 0),(0,i._)([(0,u.Cb)({constructOnly:!0})],x.prototype,"layer",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"sourceJSON",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"type",void 0),(0,i._)([(0,u.Cb)()],x.prototype,"wfsCapabilities",void 0),x=(0,i._)([(0,d.j)("esri.layers.graphics.sources.WFSSource")],x);var _,I=r(71612),T=r(17017),P=r(69637),j=r(6404),E=r(38009),R=r(68825),O=r(16859),Z=r(34760),N=r(72965),U=r(28294),q=r(21506),M=r(1231),G=r(53518),A=r(35671),D=r(54306),L=r(30707),k=r(14165),J=r(32163),$=r(82971);const H=(0,G.v)();let B=_=class extends((0,R.c)((0,T.N)((0,j.M)((0,P.b)((0,I.h)((0,U.n)((0,Z.Q)((0,N.M)((0,E.q)((0,O.I)((0,o.R)(m.Z)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:i,geometryType:n,name:s,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c}=e;return new _({customParameters:t,fields:r,geometryField:i,geometryType:n,name:s,namespaceUri:o,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxFeatures=3e3,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new x({layer:this}),this.spatialReference=$.Z.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then((()=>this.source.load(e))).then((()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),this.revert(["objectIdField","fields","timeInfo","spatialReference","name","namespaceUri"],"service"),(0,A.YN)(this.renderer,this.fieldsIndex),(0,A.UF)(this.timeInfo,this.fieldsIndex)}))),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const i=e.filter((e=>e.name!==S.u2));this.geometryField&&i.unshift(new M.Z({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,a.RB)(r,i.map((e=>e.toJSON())),t)}get parsedUrl(){return(0,l.mN)(this.url)}set renderer(e){(0,A.YN)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,J.eZ)(this,e)}createQuery(){const e=new k.Z;e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:t,timeExtent:r}=this;return e.timeExtent=null!=t&&null!=r?r.offset(-t.value,t.unit):r||null,e}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(k.Z.from(e)||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>this.source.queryObjectIds(k.Z.from(e)||this.createQuery(),t)))}queryFeatureCount(e,t){return this.load().then((()=>this.source.queryFeatureCount(k.Z.from(e)||this.createQuery(),t)))}queryExtent(e,t){return this.load().then((()=>this.source.queryExtent(k.Z.from(e)||this.createQuery(),t)))}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh(this.customParameters);return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"capabilities",null),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"createQueryVersion",null),(0,i._)([(0,u.Cb)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],B.prototype,"customParameters",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"defaultPopupTemplate",null),(0,i._)([(0,u.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],B.prototype,"definitionExpression",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"displayField",void 0),(0,i._)([(0,u.Cb)(q.PV)],B.prototype,"elevationInfo",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"featureUrl",void 0),(0,i._)([(0,u.Cb)({type:[M.Z],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],B.prototype,"fields",void 0),(0,i._)([(0,y.c)("fields")],B.prototype,"writeFields",null),(0,i._)([(0,u.Cb)(H.fieldsIndex)],B.prototype,"fieldsIndex",void 0),(0,i._)([(0,u.Cb)({type:F.Z,json:{name:"extent"}})],B.prototype,"fullExtent",void 0),(0,i._)([(0,u.Cb)()],B.prototype,"geometryField",void 0),(0,i._)([(0,u.Cb)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:f.M.read},write:{target:"layerDefinition.geometryType",writer:f.M.write,ignoreOrigin:!0},origins:{service:{read:f.M.read}}}})],B.prototype,"geometryType",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"id",void 0),(0,i._)([(0,u.Cb)(q.iR)],B.prototype,"labelsVisible",void 0),(0,i._)([(0,u.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:L.r},write:!0}})],B.prototype,"labelingInfo",void 0),(0,i._)([(0,u.Cb)(q.rn)],B.prototype,"legendEnabled",void 0),(0,i._)([(0,u.Cb)({type:["show","hide"]})],B.prototype,"listMode",void 0),(0,i._)([(0,u.Cb)({type:String})],B.prototype,"objectIdField",void 0),(0,i._)([(0,u.Cb)({type:["WFS"]})],B.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.Cb)({type:p.z8,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"maxFeatures",void 0),(0,i._)([(0,u.Cb)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],B.prototype,"mode",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"name",void 0),(0,i._)([(0,u.Cb)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"namespaceUri",void 0),(0,i._)([(0,u.Cb)(q.bT)],B.prototype,"opacity",void 0),(0,i._)([(0,u.Cb)(H.outFields)],B.prototype,"outFields",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"parsedUrl",null),(0,i._)([(0,u.Cb)(q.C_)],B.prototype,"popupEnabled",void 0),(0,i._)([(0,u.Cb)({type:n.Z,json:{name:"popupInfo",write:!0}})],B.prototype,"popupTemplate",void 0),(0,i._)([(0,u.Cb)({types:s.A,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:s.o,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],B.prototype,"renderer",null),(0,i._)([(0,u.Cb)(q.YI)],B.prototype,"screenSizePerspectiveEnabled",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],B.prototype,"source",void 0),(0,i._)([(0,u.Cb)({type:$.Z,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],B.prototype,"spatialReference",void 0),(0,i._)([(0,u.Cb)({readOnly:!0,type:[p.z8],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"spatialReferences",void 0),(0,i._)([(0,u.Cb)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"swapXY",void 0),(0,i._)([(0,u.Cb)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],B.prototype,"title",void 0),(0,i._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],B.prototype,"type",void 0),(0,i._)([(0,u.Cb)(q.HQ)],B.prototype,"url",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],B.prototype,"version",void 0),(0,i._)([(0,u.Cb)()],B.prototype,"wfsCapabilities",null),B=_=(0,i._)([(0,d.j)("esri.layers.WFSLayer")],B);const V=B},61159:(e,t,r)=>{r.d(t,{g:()=>i});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCacheHint:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0}},92722:(e,t,r)=>{r.d(t,{O3:()=>S,lG:()=>F,my:()=>C,q9:()=>l});var i=r(20102),n=r(70272),s=r(5428),o=r(35671);const a={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function l(e){return a[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function c(e){for(const t of e)if(t.length>2)return!0;return!1}function d(e){let t=0;for(let r=0;r<e.length;r++){const i=e[r],n=e[(r+1)%e.length];t+=i[0]*n[1]-n[0]*i[1]}return t<=0}function y(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function f(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return g(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const i of t.coordinates)g(e,i,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const i of t.coordinates){m(e,i[0],r);for(let t=1;t<i.length;t++)h(e,i[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return b(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const i=t.coordinates;m(e,i[0],r);for(let t=1;t<i.length;t++)h(e,i[t],r);return e}(e,t,r)}}function m(e,t,r){const i=y(t);!function(e){return!d(e)}(i)?g(e,i,r):w(e,i,r)}function h(e,t,r){const i=y(t);!function(e){return d(e)}(i)?g(e,i,r):w(e,i,r)}function g(e,t,r){for(const i of t)b(e,i,r);e.lengths.push(t.length)}function w(e,t,r){for(let i=t.length-1;i>=0;i--)b(e,t[i],r);e.lengths.push(t.length)}function b(e,t,r){const[i,n,s]=t;e.coords.push(i,n),r.hasZ&&e.coords.push(s||0)}function v(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function S(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const r="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,n=new RegExp(".*(CRS84H?|4326)$","i");if(!r||!n.test(r))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function C(e,t={}){const r=[],i=new Set,n=new Set;let s,a=!1,d=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:u,id:h}=t;if((!e||(f||(f=l(e.type)),l(e.type)===f))&&(a||(a=c(p(e))),y||(y=null!=h,y&&(s=typeof h,u&&(d=Object.keys(u).filter((e=>u[e]===h))))),u&&d&&y&&null!=h&&(d.length>1?d=d.filter((e=>u[e]===h)):1===d.length&&(d=u[d[0]]===h?d:[])),!m&&u)){let e=!0;for(const t in u){if(i.has(t))continue;const s=u[t];if(null==s){e=!1,n.add(t);continue}const a=v(s);if("unknown"===a){n.add(t);continue}n.delete(t),i.add(t);const l=(0,o.q6)(t);l&&r.push({name:l,alias:t,type:a})}m=e}}const h=(0,o.q6)(1===d?.length&&d[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,o.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:a,objectIdFieldName:h,objectIdFieldType:s,unknownFields:Array.from(n)}}function F(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:i}=t;for(const o of e){const{geometry:e,properties:a,id:u}=o;if(e&&l(e.type)!==r)continue;const p=a||{};let c;i&&(c=p[i],null==u||c||(p[i]=c=u));const d=new n.u_(e?f(new s.Z,e,t):null,p,null,c??void 0);yield d}}(u(e),t))}},25278:(e,t,r)=>{r.d(t,{Dm:()=>p,Hq:()=>c,MS:()=>d,bU:()=>a});var i=r(80442),n=r(22974),s=r(61159),o=r(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this.${t} = null;`;for(const t in e)r+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const i=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new i}catch(r){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1}}}},17017:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(43697),n=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,r)=>{r.d(t,{b:()=>T});var i,n=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),a=r(20102),l=r(96674),u=r(78286),p=r(67760),c=r(66577),d=r(92835),y=r(35454),f=r(22974),m=r(14165);const h=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=i=class extends l.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new m.Z({geometry:(0,f.d9)(r),objectIds:(0,f.d9)(s),spatialRelationship:i,timeExtent:(0,f.d9)(n),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new i({geometry:(0,f.d9)(t),objectIds:(0,f.d9)(s),spatialRelationship:r,timeExtent:(0,f.d9)(n),where:e,units:o,distance:a})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,n._)([(0,s.Cb)({types:c.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,n._)([(0,s.Cb)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,n._)([(0,s.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,n._)([(0,s.Cb)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,n._)([(0,s.Cb)({type:d.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureFilter")],w);const b=w;var v;const S={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:p.ij},write:{writer:p.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},F={name:"showExcludedLabels",default:!0};let x=v=class extends l.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,s.Cb)({type:b,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,u.RB)(r,n,t):(0,u.RB)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],x.prototype,"includedEffect",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":F,"portal-item":F}}})],x.prototype,"excludedLabelsVisible",void 0),x=v=(0,n._)([(0,o.j)("esri.layers.support.FeatureEffect")],x);const _=x,I={write:{allowNull:!0}},T=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,s.Cb)({type:_,json:{origins:{"web-map":I,"portal-item":I}}})],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,n=r(43697),s=r(78286),o=r(5600),a=(r(75215),r(67676),r(80442),r(52011)),l=r(35454),u=r(96674);const p=new l.X({asc:"ascending",desc:"descending"});let c=i=class extends u.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"valueExpression",void 0),(0,n._)([(0,o.Cb)({type:p.apiValues,json:{read:p.read,write:p.write}})],c.prototype,"order",void 0),c=i=(0,n._)([(0,a.j)("esri.layers.support.OrderByInfo")],c);const d=c;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const n=new d;return n.read(i,r),[n]}function f(e,t,r,i){const n=e.find((e=>!!e.field));n&&(0,s.RB)(r,[n.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,n._)([(0,o.Cb)({type:[d],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:f}}})],t.prototype,"orderBy",void 0),t=(0,n._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>C});var i=r(43697),n=r(68773),s=r(40330),o=r(3172),a=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(17452),y=r(5600),f=(r(75215),r(67676),r(80442),r(71715)),m=r(52011),h=r(30556),g=r(84230),w=r(48522),b=r(15235),v=r(86082),S=r(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,S.Ss)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!n||!(0,d.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,S.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=F.credential===t?F.user:await this._fetchEditingUser(e);return F.credential=t,F.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=w.Z.getDefault();if(n&&n.loaded&&(0,d.Fv)(n.restUrl)===(0,d.Fv)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?v.Z.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||w.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,y.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,h.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.j)("esri.layers.mixins.PortalLayer")],t),t},F={credential:null,user:null}},28294:(e,t,r)=>{r.d(t,{n:()=>d});var i=r(43697),n=r(92835),s=r(84552),o=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),p=r(76259),c=r(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.v.fromJSON(r.timeOffsetUnits);return i&&n?new s.Z({value:i,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.Cb)({value:null,type:p.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},51432:(e,t,r)=>{r.d(t,{ft:()=>Z,FU:()=>E,Bm:()=>A,be:()=>N,eB:()=>U,u2:()=>b}),r(66577);var i=r(3172),n=r(20102),s=r(66374),o=r(17452),a=r(73615),l=r(8744),u=r(86973),p=r(92722);function c(e){return function(e){const t=d.exec(e);if(!t?.groups)return null;const r=t.groups,i=+r.year,n=+r.month-1,s=+r.day,o=+(r.hours??"0"),a=+(r.minutes??"0"),l=+(r.seconds??"0");if(o>23)return null;if(a>59)return null;if(l>59)return null;const u=r.ms??"0",p=u?+u.padEnd(3,"0").substring(0,3):0;let c;if(r.isUTC)c=Date.UTC(i,n,s,o,a,l,p);else if(r.offsetSign){const e=+r.offsetHours,t=+r.offsetMinutes;c=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,s,o,a,l,p)}else c=new Date(i,n,s,o,a,l,p).getTime();return Number.isNaN(c)?null:c}(e)??function(e){const t=new Date(e).getTime();return Number.isNaN(t)?null:t}(e)}const d=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/;var y=r(88724),f=r(1231),m=r(82971),h=r(6570);const g="xlink:href",w="2.0.0",b="__esri_wfs_id__",v="wfs-layer:getWFSLayerTypeInfo-error",S="wfs-layer:empty-service",C="wfs-layer:feature-type-not-found",F="wfs-layer:geojson-not-supported",x="wfs-layer:kvp-encoding-not-supported",_="wfs-layer:malformed-json",I="wfs-layer:unknown-geometry-type",T="wfs-layer:unknown-field-type",P="wfs-layer:unsupported-spatial-reference",j="wfs-layer:unsupported-wfs-version";async function E(e,t){const r=function(e){const t=L(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new n.Z(j,`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),J(t);const r=t.firstElementChild,i=(0,s.Fs)(function(e){return(0,y.H)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",supportedSpatialReferences:[]},r=new Set([4326]),i=e=>{const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);Number.isNaN(t)||r.add(t)};return(0,y.h)(e,{Name:e=>{const{name:r,prefix:i}=k(e.textContent);t.typeName=`${i}:${r}`,t.name=r,t.namespacePrefix=i,t.namespaceUri=e.lookupNamespaceURI(i)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=function(e){let t,r,i,n;for(const s of e.children)switch(s.localName){case"LowerCorner":[t,r]=s.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[i,n]=s.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:r,xmax:i,ymax:n,spatialReference:l.Zn}}(e)},DefaultSRS:i,DefaultCRS:i,OtherSRS:i,OtherCRS:i}),t.title||(t.title=t.name),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:O(r),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.$U)(e)&&((0,o.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.hO)(t.operations.DescribeFeatureType.url)),(0,o.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.hO)(t.operations.GetFeature.url)))}(e,r),r}const R=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function O(e){let t=!1;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,y.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;t&&R.has(t.toLowerCase())&&(r.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new n.Z(x,"WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new n.Z(F,"WFS service doesn't support GeoJSON output format");return r}function Z(e,t,r){return(0,s.sE)(e,(e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t))}async function N(e,t,r,i={}){const{featureType:s,extent:o}=await async function(e,t,r,i={}){const{spatialReference:s=m.Z.WGS84}=i,o=e.readFeatureTypes(),u=t?Z(o,t,r):o.next().value;if(null==u)throw t?new n.Z(C,`The type '${t}' could not be found in the service`):new n.Z(S,"The service is empty");let p=new h.Z({...u.extent,spatialReference:s});if(!(0,l.fS)(s,l.Zn))try{await(0,a.initializeProjection)(l.Zn,s,void 0,i),p=(0,a.project)(p,l.Zn)}catch{throw new n.Z(P,"Projection not supported")}return{extent:p,spatialReference:s,featureType:u}}(e,t,r,i),{fields:u,geometryType:p,swapXY:c,objectIdField:d,geometryField:y}=await async function(e,t,r={}){const[i,s]=await Promise.allSettled([M(e.operations.DescribeFeatureType.url,t,r),q(e,t,r)]),o=e=>new n.Z(v,`An error occurred while getting info about the feature type '${t}'`,{error:e});if("rejected"===i.status)throw o(i.reason);if("rejected"===s.status)throw o(s.reason);const{fields:a,errors:l}=i.value??{},u=i.value?.geometryType||s.value?.geometryType,p=s.value?.swapXY??!1;if(null==u)throw new n.Z(I,`The geometry type could not be determined for type '${t}`,{typeName:t,geometryType:u,fields:a,errors:l});return{...U(a??[]),geometryType:u,swapXY:p}}(e,s.typeName,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:u,geometryField:y,geometryType:p,objectIdField:d,spatialReference:i.spatialReference??m.Z.WGS84,extent:o,swapXY:c,wfsCapabilities:e,customParameters:i.customParameters}}function U(e){const t=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new f.Z({name:b,type:"oid",alias:b}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function q(e,t,r={}){let n,s=!1;const[o,a]=await Promise.all([A(e.operations.GetFeature.url,t,e.operations.GetFeature.outputFormat,{...r,count:1}),(0,i.Z)(e.operations.GetFeature.url,{responseType:"text",query:D(t,void 0,{...r,count:1}),signal:r?.signal})]),l="FeatureCollection"===o.type&&o.features[0]?.geometry;if(l){let e;switch(n=u.M.fromJSON((0,p.q9)(l.type)),l.type){case"Point":e=l.coordinates;break;case"LineString":case"MultiPoint":e=l.coordinates[0];break;case"MultiLineString":case"Polygon":e=l.coordinates[0][0];break;case"MultiPolygon":e=l.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(a.data);if(t){const r=e[0].toFixed(3),i=e[1].toFixed(3),n=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&i===n&&(s=!0)}}return{geometryType:n,swapXY:s}}async function M(e,t,r){return function(e,t){const{name:r}=k(e),i=L(t);J(i);const o=(0,s.sE)((0,y.H)(i.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:k(e.getAttribute("type")).name})}),(({name:e})=>e===r));if(null!=o){const e=(0,s.sE)((0,y.H)(i.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===o.typeName));if(null!=e)return function(e){const t=[],r=[];let i;const s=(0,y.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const o of s){const s=o.getAttribute("name");if(!s)continue;let a,l;if(o.hasAttribute("type")?a=k(o.getAttribute("type")).name:(0,y.h)(o,{simpleType:{restriction:e=>(a=k(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===o.getAttribute("nillable");let p=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new f.Z({name:s,alias:s,type:"integer",nullable:u}));break;case"float":case"double":case"decimal":r.push(new f.Z({name:s,alias:s,type:"double",nullable:u}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new f.Z({name:s,alias:s,type:"string",nullable:u,length:l??255}));break;case"datetime":case"date":r.push(new f.Z({name:s,alias:s,type:"date",nullable:u,length:l??36}));break;case"pointpropertytype":i="point",p=!0;break;case"multipointpropertytype":i="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":i="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":i="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,t.push(new n.Z(I,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new n.Z(T,`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new f.Z({name:s,alias:s,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&G.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:r,errors:t}}(e)}throw new n.Z(C,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,...r?.customParameters},signal:r?.signal})).data)}const G=new Set(["objectid","fid"]);async function A(e,t,r,s){let{data:o}=await(0,i.Z)(e,{responseType:"text",query:D(t,r,s),signal:s?.signal});o=o.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{if(s?.dateFields?.length){const e=new Set(s.dateFields);return JSON.parse(o,((t,r)=>e.has(t)?c(r):r))}return JSON.parse(o)}catch(e){throw new n.Z(_,"Error while parsing the response",{response:o,error:e})}}function D(e,t,r){return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:t,SRSNAME:"EPSG:4326",STARTINDEX:r?.startIndex,COUNT:r?.count,...r?.customParameters}}function L(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function k(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function J(e){let t="",r="";if((0,y.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new n.Z(`wfs-layer:${t}`,r)}},88724:(e,t,r)=>{function i(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&i(r,t)}else i(r,e)}}function*n(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*n(r,e)}}r.d(t,{H:()=>n,h:()=>i})},76259:(e,t,r)=>{r.d(t,{Z:()=>m});var i=r(43697),n=r(92835),s=r(84552),o=r(2368),a=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),c=r(30556),d=r(80216);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let f=class extends((0,o.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.Z({start:r,end:i})}writeFullTimeExtent(e,t){e&&null!=e.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],f.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],f.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.c)("fullTimeExtent")],f.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],f.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],f.prototype,"readInterval",null),(0,i._)([(0,c.c)("interval")],f.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],f.prototype,"startField",void 0),(0,i._)([(0,l.Cb)({type:d.Z,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"timeReference",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],f.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],f.prototype,"useTime",void 0),f=(0,i._)([(0,p.j)("esri.layers.support.TimeInfo")],f);const m=f},50957:(e,t,r)=>{r.d(t,{C9:()=>P,Ci:()=>C,FV:()=>S,Fr:()=>m,JD:()=>h,JY:()=>Z,Jj:()=>b,KE:()=>I,Ob:()=>G,SU:()=>F,VG:()=>_,Y5:()=>w,gG:()=>j,kZ:()=>O,kp:()=>T,nU:()=>U,rP:()=>E,rk:()=>R,sX:()=>q,tD:()=>x,uA:()=>A,uj:()=>v});var i=r(40330),n=r(9790),s=r(20102),o=r(35454),a=r(42033),l=r(63213),u=r(84230),p=r(84382),c=r(81571),d=r(56545),y=r(14165),f=r(75935);const m=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function h(e,t,r,i){const n=await N(e);if(await g(e,t,i),!n.addAttachment)throw new s.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function g(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new s.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new s.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new s.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new s.Z(r,"this layer doesn't support attachments"))}async function w(e,t,r,i,n){const o=await N(e);if(await g(e,t,n),!o.updateAttachment)throw new s.Z(n,"Layer source does not support updateAttachment capability");return o.updateAttachment(t,r,i)}async function b(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function v(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function S(e,t,r,i){const n=await N(e);if(await g(e,t,i),!n.deleteAttachments)throw new s.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function C(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new s.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function F(e,t,r,i){t=d.Z.from(t),await e.load();const n=e.source,o=e.capabilities;if(!o?.data?.supportsAttachment)throw new s.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:p,size:c,start:y,where:f}=t;if(!o?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||c?.length>0||p||y||f))throw new s.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||f))throw new s.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new s.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function x(e,t,r,i){const n=await N(e);if(!n.queryObjectIds)throw new s.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(y.Z.from(t)??e.createQuery(),r)}async function _(e,t,r,i){const n=await N(e);if(!n.queryFeatureCount)throw new s.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(y.Z.from(t)??e.createQuery(),r)}async function I(e,t,r,i){const n=await N(e);if(!n.queryExtent)throw new s.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(y.Z.from(t)??e.createQuery(),r)}async function T(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeatures)throw new s.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(f.default.from(t),r)}async function P(e,t,r,i){const n=await N(e);if(!n.queryRelatedFeaturesCount)throw new s.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(f.default.from(t),r)}async function j(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function E(e){const t=new y.Z,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function R(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function O(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function Z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function N(e){return(await e.load()).source}async function U(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,u.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function q(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const M=(0,l.d)({types:n.QT});function G(e,t){if(e.defaultSymbol)return e.types&&e.types.length?new c.Z({defaultSymbol:M(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:M(e.symbol,e,t)})))}):new p.Z({symbol:M(e.defaultSymbol,e,t)})}function A(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}},53518:(e,t,r)=>{r.d(t,{v:()=>a});var i=r(92604),n=r(1231),s=r(99514),o=r(35671);function a(){return{fields:{type:[n.Z],value:null},fieldsIndex:{readOnly:!0,get(){return new s.Z(this.fields||[])}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e||!e.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||i.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,o.Q0)(this.fieldsIndex,e)}}}}},30707:(e,t,r)=>{r.d(t,{a:()=>c,r:()=>u});var i=r(20102),n=r(22974),s=r(92604),o=r(54306);const a=s.Z.getLogger("esri.layers.support.labelingInfo"),l=/\[([^\[\]]+)\]/gi;function u(e,t,r){return e?e.map((e=>{const i=new o.Z;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`))}return i})):null}const p={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function c(e,t){const r=(0,n.d9)(e);return r.some((e=>function(e,t){const r=e.labelPlacement,n=p[t];if(!e.symbol)return a.warn("No ILabelClass symbol specified."),!0;if(!n)return a.error(new i.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!n.includes(r)){const i=n[0];r&&a.warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${i}`),e.labelPlacement=i}return!1}(e,t)))?[]:r}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},74889:(e,t,r)=>{r.d(t,{Z:()=>b});var i,n=r(43697),s=r(66577),o=r(38171),a=r(35454),l=r(96674),u=r(22974),p=r(5600),c=(r(75215),r(71715)),d=r(52011),y=r(30556),f=r(82971),m=r(33955),h=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=f.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.Z.fromJSON(n),a=n.geometry&&n.geometry.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=n.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.im)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=f.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*s+i),(e=>n-e*o),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,m.oU)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,m.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,m.oU)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.Cb)({type:[o.Z],json:{write:!0}})],w.prototype,"features",void 0),(0,n._)([(0,c.r)("features")],w.prototype,"readFeatures",null),(0,n._)([(0,p.Cb)({type:[h.Z],json:{write:!0}})],w.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,n._)([(0,y.c)("geometryType")],w.prototype,"writeGeometryType",null),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n._)([(0,p.Cb)({types:s.qM,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n._)([(0,c.r)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n._)([(0,y.c)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n._)([(0,p.Cb)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n._)([(0,d.j)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0;const b=w},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>f});var i,n=r(43697),s=(r(66577),r(96674)),o=r(22974),a=r(5600),l=r(75215),u=r(52011),p=r(30556),c=r(10158),d=r(82971);let y=i=class extends s.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:c.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,n._)([(0,p.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:d.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,n._)([(0,p.c)("start"),(0,p.c)("num")],y.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.se)(y);const f=y},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>n,eG:()=>l,lF:()=>o,lj:()=>p,qP:()=>a,wW:()=>u});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9327],{92835:(e,t,r)=>{r.d(t,{Z:()=>y});var o,n=r(43697),i=r(96674),s=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),c=r(30556);let p=o=class extends i.wq{static get allTime(){return d}static get empty(){return h}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(o.allTime)}get isEmpty(){return this.equals(o.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new o({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,o=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===o&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.JE)(r,e,t));let n=this.end;if(n){const r=(0,s.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.Nm)(r,1,e,t)}return new o({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return o.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let s,a;if(n>=t&&n<=r?s=n:t>=n&&t<=i&&(s=t),r>=n&&r<=i?a=r:i>=t&&i<=r&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const e=new o;return e.start=s===-1/0?null:new Date(s),e.end=a===1/0?null:new Date(a),e}return o.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const n=new o,{start:i,end:a}=this;return null!=i&&(n.start=(0,s.Nm)(i,e,t,r)),null!=a&&(n.end=(0,s.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new o({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],p.prototype,"readEnd",null),(0,n._)([(0,c.c)("end")],p.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],p.prototype,"readStart",null),(0,n._)([(0,c.c)("start")],p.prototype,"writeStart",null),p=o=(0,n._)([(0,u.j)("esri.TimeExtent")],p);const d=new p,h=new p({start:void 0,end:void 0}),y=p},46521:(e,t,r)=>{function o(){return[1,0,0,0,1,0,0,0,1]}function n(e,t,r,o,n,i,s,a,l){return[e,t,r,o,n,i,s,a,l]}function i(e,t){return new Float64Array(e,t,9)}r.d(t,{a:()=>o,c:()=>i,f:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:o,createView:i,fromValues:n},Symbol.toStringTag,{value:"Module"}))},25929:(e,t,r)=>{r.d(t,{M:()=>y,a:()=>g,e:()=>d,f:()=>n,i:()=>c,p:()=>p,r:()=>s,t:()=>i,w:()=>a});var o=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,o.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.PF)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return h(e,t&&t.portal)}function i(e,t,r=y.YES){if(null==e)return e;!(0,o.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const i=h(r,t.portal),s=h(n,t.portal);n=(0,o.PF)(s,i,i),null!=n&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=d(n,t?.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),t?.resources&&t?.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&r===y.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function s(e,t,r){return n(e,r)}function a(e,t,r,o){const n=i(e,o);void 0!==n&&(t[r]=n)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(e){const t=e?.match(l)??null;return t?.[1]??null}function p(e){const t=e?.match(l)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.fZ)(r);return{prefix:null,filename:e,extension:t}}const{path:i,extension:s}=(0,o.fZ)(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:s}}function d(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function h(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.TI)();return(0,o.D6)(n,`${n.scheme}://${r}`)?(0,o.Ie)(e,t.portalHostname,r):(0,o.Ie)(e,r,t.portalHostname)}var y,m;(m=y||(y={}))[m.YES=0]="YES",m[m.NO=1]="NO";const g=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return y},ensureMainOnlineDomain:d,fromJSON:n,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:p,read:s,toJSON:i,write:a},Symbol.toStringTag,{value:"Module"}))},51305:(e,t,r)=>{r.d(t,{a:()=>h,c:()=>g,g:()=>c,j:()=>T,k:()=>m,m:()=>p,s:()=>u});var o=r(46521),n=r(94961),i=r(65617),s=r(46851),a=r(17896),l=r(98766);function u(e,t,r){r*=.5;const o=Math.sin(r);return e[0]=o*t[0],e[1]=o*t[1],e[2]=o*t[2],e[3]=Math.cos(r),e}function c(e,t){const r=2*Math.acos(t[3]),o=Math.sin(r/2);return o>(0,s.g)()?(e[0]=t[0]/o,e[1]=t[1]/o,e[2]=t[2]/o):(e[0]=1,e[1]=0,e[2]=0),r}function p(e,t,r){const o=t[0],n=t[1],i=t[2],s=t[3],a=r[0],l=r[1],u=r[2],c=r[3];return e[0]=o*c+s*a+n*u-i*l,e[1]=n*c+s*l+i*a-o*u,e[2]=i*c+s*u+o*l-n*a,e[3]=s*c-o*a-n*l-i*u,e}function d(e,t,r,o){const n=t[0],i=t[1],a=t[2],l=t[3];let u,c,p,d,h,y=r[0],m=r[1],g=r[2],f=r[3];return c=n*y+i*m+a*g+l*f,c<0&&(c=-c,y=-y,m=-m,g=-g,f=-f),1-c>(0,s.g)()?(u=Math.acos(c),p=Math.sin(u),d=Math.sin((1-o)*u)/p,h=Math.sin(o*u)/p):(d=1-o,h=o),e[0]=d*n+h*y,e[1]=d*i+h*m,e[2]=d*a+h*g,e[3]=d*l+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let o;if(r>0)o=Math.sqrt(r+1),e[3]=.5*o,o=.5/o,e[0]=(t[5]-t[7])*o,e[1]=(t[6]-t[2])*o,e[2]=(t[1]-t[3])*o;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const n=(r+1)%3,i=(r+2)%3;o=Math.sqrt(t[3*r+r]-t[3*n+n]-t[3*i+i]+1),e[r]=.5*o,o=.5/o,e[3]=(t[3*n+i]-t[3*i+n])*o,e[n]=(t[3*n+r]+t[3*r+n])*o,e[i]=(t[3*i+r]+t[3*r+i])*o}return e}function m(e,t,r,o){const n=.5*Math.PI/180;t*=n,r*=n,o*=n;const i=Math.sin(t),s=Math.cos(t),a=Math.sin(r),l=Math.cos(r),u=Math.sin(o),c=Math.cos(o);return e[0]=i*l*c-s*a*u,e[1]=s*a*c+i*l*u,e[2]=s*l*u-i*a*c,e[3]=s*l*c+i*a*u,e}const g=l.c,f=l.s,b=l.a,v=p,S=l.b,w=l.d,x=l.l,_=l.f,j=_,C=l.g,V=C,M=l.n,T=l.h,I=l.e,R=(0,i.c)(),z=(0,i.f)(1,0,0),N=(0,i.f)(0,1,0),q=(0,n.a)(),D=(0,n.a)(),Z=(0,o.a)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(e,t){const r=t[0],o=t[1],n=t[2];return e[0]=r,e[1]=o,e[2]=n,e[3]=Math.sqrt(Math.abs(1-r*r-o*o-n*n)),e},conjugate:h,copy:g,dot:w,equals:I,exactEquals:T,fromEuler:m,fromMat3:y,getAxisAngle:c,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],o=t[1],n=t[2],i=t[3],s=r*r+o*o+n*n+i*i,a=s?1/s:0;return e[0]=-r*a,e[1]=-o*a,e[2]=-n*a,e[3]=i*a,e},len:j,length:_,lerp:x,mul:v,multiply:p,normalize:M,random:function(e){const t=s.R,r=t(),o=t(),n=t(),i=Math.sqrt(1-r),a=Math.sqrt(r);return e[0]=i*Math.sin(2*Math.PI*o),e[1]=i*Math.cos(2*Math.PI*o),e[2]=a*Math.sin(2*Math.PI*n),e[3]=a*Math.cos(2*Math.PI*n),e},rotateX:function(e,t,r){r*=.5;const o=t[0],n=t[1],i=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=o*l+s*a,e[1]=n*l+i*a,e[2]=i*l-n*a,e[3]=s*l-o*a,e},rotateY:function(e,t,r){r*=.5;const o=t[0],n=t[1],i=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=o*l-i*a,e[1]=n*l+s*a,e[2]=i*l+o*a,e[3]=s*l-n*a,e},rotateZ:function(e,t,r){r*=.5;const o=t[0],n=t[1],i=t[2],s=t[3],a=Math.sin(r),l=Math.cos(r);return e[0]=o*l+n*a,e[1]=n*l-o*a,e[2]=i*l+s*a,e[3]=s*l-i*a,e},rotationTo:function(e,t,r){const o=(0,a.j)(t,r);return o<-.999999?((0,a.b)(R,z,t),(0,a.k)(R)<1e-6&&(0,a.b)(R,N,t),(0,a.n)(R,R),u(e,R,Math.PI),e):o>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,a.b)(R,t,r),e[0]=R[0],e[1]=R[1],e[2]=R[2],e[3]=1+o,M(e,e))},scale:S,set:f,setAxes:function(e,t,r,o){const n=Z;return n[0]=r[0],n[3]=r[1],n[6]=r[2],n[1]=o[0],n[4]=o[1],n[7]=o[2],n[2]=-t[0],n[5]=-t[1],n[8]=-t[2],M(e,y(e,n))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,o,n,i){return d(q,t,n,i),d(D,r,o,i),d(e,q,D,2*i*(1-i)),e},sqrLen:V,squaredLength:C,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},94961:(e,t,r)=>{function o(){return[0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3]]}function i(e,t){return new Float64Array(e,t,4)}r.d(t,{I:()=>s,a:()=>o,b:()=>n,c:()=>i});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:n,create:o,createView:i,fromValues:function(e,t,r,o){return[e,t,r,o]}},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>n,VL:()=>s,h$:()=>i,rW:()=>u});const o={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!o[e]||!!o[e.toLowerCase()]}function i(e){return o[e]??o[e.toLowerCase()]}function s(e){return[...i(e)]}function a(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,o=1){const n=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,s=2*r-i;return[Math.round(255*a(s,i,n+1/3)),Math.round(255*a(s,i,n)),Math.round(255*a(s,i,n-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,n=t?1:17,i=t?9===e.length:5===e.length;let s=Number("0x"+e.substr(1));if(isNaN(s))return null;const a=[0,0,0,1];let l;return i&&(l=s&o,s>>=r,a[3]=n*l/255),l=s&o,s>>=r,a[2]=n*l,l=s&o,s>>=r,a[1]=n*l,l=s&o,s>>=r,a[0]=n*l,a}},68251:(e,t,r)=>{r.d(t,{BV:()=>s});var o=r(22021);class n{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,r,o=0,n=!1){return(r-=o)<e?r+=this.ndiff(e-r):r>t&&(r-=this.ndiff(r-t)),n&&r===t&&(r=e),r+o}normalize(e,t=0,r=!1){return this._normalize(this.min,this.max,e,t,r)}clamp(e,t=0){return(0,o.uZ)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+this.ndiff(e-t,r)}minimalMonotonic(e,t,r){return this._normalize(e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,o=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(o)?r:o}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function i(e){for(const t in e){const r=e[t];r instanceof Function&&(e[t]=r.bind(e))}return e}i(new n(0,2*Math.PI)),i(new n(-Math.PI,Math.PI));const s=i(new n(0,360))},44543:(e,t,r)=>{r.d(t,{F:()=>m,M:()=>o});const o={Base64:0,Hex:1,String:2,Raw:3},n=8,i=(1<<n)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e){const t=[];for(let r=0,o=e.length*n;r<o;r+=n)t[r>>5]|=(e.charCodeAt(r/n)&i)<<r%32;return t}function l(e){const t=[];for(let r=0,o=32*e.length;r<o;r+=n)t.push(String.fromCharCode(e[r>>5]>>>r%32&i));return t.join("")}function u(e,t,r,o,n,i){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(o,i)),n),r)}function c(e,t,r,o,n,i,s){return u(t&r|~t&o,e,t,n,i,s)}function p(e,t,r,o,n,i,s){return u(t&o|r&~o,e,t,n,i,s)}function d(e,t,r,o,n,i,s){return u(t^r^o,e,t,n,i,s)}function h(e,t,r,o,n,i,s){return u(r^(t|~o),e,t,n,i,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,o=-271733879,n=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=r,l=o,u=n,y=i;r=c(r,o,n,i,e[t],7,-680876936),i=c(i,r,o,n,e[t+1],12,-389564586),n=c(n,i,r,o,e[t+2],17,606105819),o=c(o,n,i,r,e[t+3],22,-1044525330),r=c(r,o,n,i,e[t+4],7,-176418897),i=c(i,r,o,n,e[t+5],12,1200080426),n=c(n,i,r,o,e[t+6],17,-1473231341),o=c(o,n,i,r,e[t+7],22,-45705983),r=c(r,o,n,i,e[t+8],7,1770035416),i=c(i,r,o,n,e[t+9],12,-1958414417),n=c(n,i,r,o,e[t+10],17,-42063),o=c(o,n,i,r,e[t+11],22,-1990404162),r=c(r,o,n,i,e[t+12],7,1804603682),i=c(i,r,o,n,e[t+13],12,-40341101),n=c(n,i,r,o,e[t+14],17,-1502002290),o=c(o,n,i,r,e[t+15],22,1236535329),r=p(r,o,n,i,e[t+1],5,-165796510),i=p(i,r,o,n,e[t+6],9,-1069501632),n=p(n,i,r,o,e[t+11],14,643717713),o=p(o,n,i,r,e[t],20,-373897302),r=p(r,o,n,i,e[t+5],5,-701558691),i=p(i,r,o,n,e[t+10],9,38016083),n=p(n,i,r,o,e[t+15],14,-660478335),o=p(o,n,i,r,e[t+4],20,-405537848),r=p(r,o,n,i,e[t+9],5,568446438),i=p(i,r,o,n,e[t+14],9,-1019803690),n=p(n,i,r,o,e[t+3],14,-187363961),o=p(o,n,i,r,e[t+8],20,1163531501),r=p(r,o,n,i,e[t+13],5,-1444681467),i=p(i,r,o,n,e[t+2],9,-51403784),n=p(n,i,r,o,e[t+7],14,1735328473),o=p(o,n,i,r,e[t+12],20,-1926607734),r=d(r,o,n,i,e[t+5],4,-378558),i=d(i,r,o,n,e[t+8],11,-2022574463),n=d(n,i,r,o,e[t+11],16,1839030562),o=d(o,n,i,r,e[t+14],23,-35309556),r=d(r,o,n,i,e[t+1],4,-1530992060),i=d(i,r,o,n,e[t+4],11,1272893353),n=d(n,i,r,o,e[t+7],16,-155497632),o=d(o,n,i,r,e[t+10],23,-1094730640),r=d(r,o,n,i,e[t+13],4,681279174),i=d(i,r,o,n,e[t],11,-358537222),n=d(n,i,r,o,e[t+3],16,-722521979),o=d(o,n,i,r,e[t+6],23,76029189),r=d(r,o,n,i,e[t+9],4,-640364487),i=d(i,r,o,n,e[t+12],11,-421815835),n=d(n,i,r,o,e[t+15],16,530742520),o=d(o,n,i,r,e[t+2],23,-995338651),r=h(r,o,n,i,e[t],6,-198630844),i=h(i,r,o,n,e[t+7],10,1126891415),n=h(n,i,r,o,e[t+14],15,-1416354905),o=h(o,n,i,r,e[t+5],21,-57434055),r=h(r,o,n,i,e[t+12],6,1700485571),i=h(i,r,o,n,e[t+3],10,-1894986606),n=h(n,i,r,o,e[t+10],15,-1051523),o=h(o,n,i,r,e[t+1],21,-2054922799),r=h(r,o,n,i,e[t+8],6,1873313359),i=h(i,r,o,n,e[t+15],10,-30611744),n=h(n,i,r,o,e[t+6],15,-1560198380),o=h(o,n,i,r,e[t+13],21,1309151649),r=h(r,o,n,i,e[t+4],6,-145523070),i=h(i,r,o,n,e[t+11],10,-1120210379),n=h(n,i,r,o,e[t+2],15,718787259),o=h(o,n,i,r,e[t+9],21,-343485551),r=s(r,a),o=s(o,l),n=s(n,u),i=s(i,y)}return[r,o,n,i]}function m(e,t=o.Hex){const r=t||o.Base64,i=y(a(e),e.length*n);switch(r){case o.Raw:return i;case o.Hex:return function(e){const t="0123456789abcdef",r=[];for(let o=0,n=4*e.length;o<n;o++)r.push(t.charAt(e[o>>2]>>o%4*8+4&15)+t.charAt(e[o>>2]>>o%4*8&15));return r.join("")}(i);case o.String:return l(i);case o.Base64:return function(e){const t=[];for(let r=0,o=4*e.length;r<o;r+=3){const o=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let n=0;n<4;n++)8*r+6*n>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>6*(3-n)&63))}return t.join("")}(i)}}},28576:(e,t,r)=>{r.d(t,{B:()=>h});var o=r(20102),n=r(44543),i=r(81153),s=r(17452),a=r(41123),l=r(7628),u=r(31263),c=r(5600),p=r(66094),d=r(25929);function h(e){const t=e?.origins??[void 0];return(r,o)=>{const n=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const o=(0,l.Oe)(t,r);return{type:String,read:(e,t,r)=>{const n=(0,d.r)(e,t,r);return o.type===String?n:"function"==typeof o.type?new o.type({url:n}):void 0},write:{writer(t,n,a,l){if(!l||!l.resources)return"string"==typeof t?void(n[a]=(0,d.t)(t,l)):void(n[a]=t.write({},l));const c=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(c,{...l,verifyItemRelativeUrls:l&&l.verifyItemRelativeUrls?{writtenUrls:l.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),f=o.type!==String&&(!(0,i.l)(this)||l&&l.origin&&this.originIdOf(r)>(0,u.M9)(l.origin)),b={object:this,propertyName:r,value:t,targetUrl:h,dest:n,targetPropertyName:a,context:l,params:e};l&&l.portalItem&&h&&!(0,s.YP)(h)?f&&e?.contentAddressed?y(b):f?function(e){const{context:t,targetUrl:r,params:o,value:n,dest:i,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),u=g(n,r,t),c=(0,p.B)(u),d=(0,s.Ml)(l.path),h=o?.compress??!1;c===d?(t.resources&&m({...e,resource:l,content:u,compress:h,updates:t.resources.toUpdate}),i[a]=r):y(e)}(b):function({context:e,targetUrl:t,dest:r,targetPropertyName:o}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[o]=t)}(b):l&&l.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.jc)(h)||f)?y(b):n[a]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.a;return{read:e,write:t}}}}(e,r,o);for(const e of t){const t=(0,c.CJ)(r,e,o);for(const e in n)t[e]=n[e]}}}function y(e){const{targetUrl:t,params:r,value:i,context:l,dest:u,targetPropertyName:c}=e;if(!l.portalItem)return;const h=(0,d.p)(t),y=g(i,t,l);if(r?.contentAddressed&&"json"!==y.type)return void l.messages?.push(new o.Z("persistable:contentAddressingUnsupported",`Property "${c}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const f=r?.contentAddressed&&"json"===y.type?(0,n.F)(y.jsonString):h?.filename??(0,a.D)(),b=(0,s.v_)(r?.prefix??h?.prefix,f),v=`${b}.${(0,p.B)(y)}`;if(r?.contentAddressed&&l.resources&&"json"===y.type){const e=l.resources.toKeep.find((e=>e.resource.path===v))??l.resources.toAdd.find((e=>e.resource.path===v));if(e)return void(u[c]=e.resource.itemRelativeUrl)}const S=l.portalItem.resourceFromPath(v);(0,s.jc)(t)&&l.resources&&l.resources.pendingOperations.push((0,s.gi)(t).then((e=>{S.path=`${b}.${(0,p.B)({type:"blob",blob:e})}`,u[c]=S.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;l.resources&&m({...e,resource:S,content:y,compress:w,updates:l.resources.toAdd}),u[c]=S.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:o,content:n,compress:i}){r.push({resource:o,content:n,compress:i,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},70921:(e,t,r)=>{r.d(t,{R:()=>i,Z:()=>n});var o=r(46791);function n(e,t,r=o.Z){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},35463:(e,t,r)=>{r.d(t,{JE:()=>a,Nm:()=>s,rJ:()=>l});var o=r(23756),n=r(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,i="system"){const s=new n.vF((0,o.f1)(i)),a=n.ou.fromJSDate(e,{zone:s}),l="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function a(e,t,r="system"){const i=new n.vF((0,o.f1)(r)),s=n.ou.fromJSDate(e,{zone:i});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,o=r-r%("decades"===t?10:100);return e.set({year:o}).toJSDate()}const a=u(t);return s.startOf(a).toJSDate()}function l(e,t,r){return 0===e?0:e*i[t]/i[r]}function u(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(e,t,r)=>{r.d(t,{D:()=>n,z:()=>i});const o="randomUUID"in crypto;function n(){if(o)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${n()}}`}},79235:(e,t,r)=>{r.d(t,{Z:()=>v});var o,n=r(43697),i=r(67676),s=r(35454),a=r(96674),l=r(67900),u=r(20941),c=r(5600),p=(r(75215),r(80442),r(71715)),d=r(52011),h=r(30556);const y=(0,s.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,i.e$)(m,"orthometric");const g=(0,s.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=o=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new u.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r&&r.messages&&r.messages.push(b(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new o({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new o;return t.read(e,{origin:"web-scene"}),t}};function b(e,t){return new u.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,n._)([(0,c.Cb)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,n._)([(0,h.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,n._)([(0,p.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,n._)([(0,c.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,n._)([(0,p.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,n._)([(0,p.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,n._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,n._)([(0,p.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=o=(0,n._)([(0,d.j)("esri.geometry.HeightModelInfo")],f);const v=f},23756:(e,t,r)=>{r.d(t,{Ze:()=>M,Xr:()=>x,p6:()=>T,o8:()=>I,LJ:()=>R,i$:()=>z,f1:()=>q});var o=r(35454),n=r(70171);const i="system",s="unknown",a="UTC";var l=r(17126);const u={year:void 0,month:void 0,day:void 0,weekday:void 0},c={hour:void 0,minute:void 0,second:void 0},p={timeZone:void 0},d=Intl.DateTimeFormat().resolvedOptions().timeZone,h={timeZoneName:"shortOffset"},y={timeZone:a},m={year:"numeric",month:"numeric",day:"numeric"},g={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},b={year:"numeric",month:"long",weekday:"long",day:"numeric"},v={hour:"numeric",minute:"numeric"},S={...v,second:"numeric"},w={"short-date":m,"short-date-short-time":{...m,...v},"short-date-short-time-24":{...m,...v,hour12:!1},"short-date-long-time":{...m,...S},"short-date-long-time-24":{...m,...S,hour12:!1},"short-date-le":m,"short-date-le-short-time":{...m,...v},"short-date-le-short-time-24":{...m,...v,hour12:!1},"short-date-le-long-time":{...m,...S},"short-date-le-long-time-24":{...m,...S,hour12:!1},"long-month-day-year":g,"long-month-day-year-short-time":{...g,...v},"long-month-day-year-short-time-24":{...g,...v,hour12:!1},"long-month-day-year-long-time":{...g,...S},"long-month-day-year-long-time-24":{...g,...S,hour12:!1},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...v},"day-short-month-year-short-time-24":{...f,...v,hour12:!1},"day-short-month-year-long-time":{...f,...S},"day-short-month-year-long-time-24":{...f,...S,hour12:!1},"long-date":b,"long-date-short-time":{...b,...v},"long-date-short-time-24":{...b,...v,hour12:!1},"long-date-long-time":{...b,...S},"long-date-long-time-24":{...b,...S,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":v,"long-time":S},x=(0,o.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory"};let j=new WeakMap;const C=w["short-date-short-time"];function V(e){let t=j.get(e);if(!t){const r=(0,n.Kd)(),o=_[r]||r,i=N(e);t=new Intl.DateTimeFormat(o,i),j.set(e,t)}return t}function M(e){return w[e]}function T(e,t=C){return V(t).format(e)}function I(e,t=C){return T(new Date(e),{...t,...y,...c})}function R(e,t=C){return T(new Date(`1970-01-01T${e}Z`),{...t,...y,...u})}function z(e,t=C){const r=l.ou.fromISO(e,{setZone:!0}),o=(0,n.Kd)(),i=_[o]??o,s=t.timeStyle||t.hour;return r.toLocaleString({...s&&h,...t,...p},{locale:i})}function N(e){const t=q(e.timeZone??i);return{...e,timeZone:t}}function q(e){switch(e){case i:return d;case s:return a;default:return e}}(0,n.Ze)((()=>{j=new WeakMap}))},28865:(e,t,r)=>{r.r(t),r.d(t,{default:()=>He});var o=r(43697),n=r(51773),i=r(46791),s=r(20102),a=r(92604),l=r(16453),u=r(95330),c=r(5600),p=r(75215),d=(r(67676),r(80442),r(71715)),h=r(52011),y=r(17896),m=r(65617),g=r(6570),f=r(87085),b=r(54295),v=r(17287),S=r(38009),w=r(16859),x=r(72965),_=r(20559),j=r(66677),C=r(21506),V=r(1231),M=r(2368),T=r(68251),I=r(96674),R=r(28576),z=r(51305),N=r(94961),q=r(46851);const D=(0,m.c)(),Z=(0,N.a)(),F=(0,N.a)(),A=(0,N.a)(),k=(0,m.f)(0,0,1),P=(0,m.f)(0,1,0),L=(0,m.f)(1,0,0);function U(e){(0,y.c)(D,e),(0,y.n)(D,D);const t=Math.atan2(D[1],D[0]),r=(0,z.s)((0,N.a)(),k,-t);(0,y.u)(D,D,r);const o=-1*Math.atan2(D[2],D[0]);return[(0,q.a)(t)+270,(0,q.a)(o)+90]}function O(e,t){return(0,z.s)(F,k,(0,q.t)(e-270)),(0,z.s)(A,P,(0,q.t)(t-90)),(0,z.m)(Z,F,A),(0,y.c)(D,L),(0,y.u)(D,D,Z),(0,y.n)(D,D),[D[0],D[1],D[2]]}var B=r(90578);let E=class extends((0,M.J)(I.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=O(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=O(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],E.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],E.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,p.q9)(e),0,!0)))],E.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,p.q9)(e),0,!0)))],E.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],E.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],E.prototype,"point",void 0),E=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSlice")],E);const J=E;var $=r(25929);let Y=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(t),0,!0)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],Y.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{origins:{service:{read:$.r}},write:{enabled:!0,isRequired:!0}}}),(0,R.B)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],Y.prototype,"href",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Y.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],Y.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"point",void 0),(0,o._)([(0,c.Cb)({type:[p.z8],json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"sizeInPixel",void 0),(0,o._)([(0,c.Cb)({type:[J],json:{write:!0}})],Y.prototype,"slices",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{default:0,write:!0}})],Y.prototype,"timeId",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],Y.prototype,"variableId",void 0),Y=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSection")],Y);const H=Y;let K=class extends I.wq{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],K.prototype,"diffuseFactor",void 0),(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],K.prototype,"specularFactor",void 0),K=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelSimpleShading")],K);const W=K;let X=class extends I.wq{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,o._)([(0,c.Cb)({type:["discrete","continuous"],json:{write:!0}})],X.prototype,"continuity",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],X.prototype,"hasNoData",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"noData",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"offset",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],X.prototype,"scale",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],X.prototype,"type",void 0),X=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelFormat")],X);const G=X;let Q=class extends I.wq{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"description",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"name",void 0),(0,o._)([(0,c.Cb)({type:G,json:{write:!0}})],Q.prototype,"originalFormat",void 0),(0,o._)([(0,c.Cb)({type:G,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"renderingFormat",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Q.prototype,"unit",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Q.prototype,"volumeId",void 0),(0,o._)([(0,c.Cb)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],Q.prototype,"type",void 0),Q=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVariable")],Q);const ee=Q;var te=r(22974),re=r(22303);let oe=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.color=re.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,o._)([(0,c.Cb)({type:re.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelIsosurface")],oe);const ne=oe;var ie=r(70921),se=r(22021);let ae=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,o._)([(0,c.Cb)({type:re.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],ae.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelColorStop")],ae);const le=ae;let ue=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,o._)([(0,c.Cb)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],ue.prototype,"opacity",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ue.prototype,"position",void 0),ue=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelOpacityStop")],ue);const ce=ue;let pe=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!1,write:!0}})],pe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],pe.prototype,"range",void 0),pe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelRangeFilter")],pe);const de=pe;var he,ye;(ye=he||(he={}))[ye.Color=1]="Color",ye[ye.Alpha=2]="Alpha",ye[ye.Both=3]="Both";let me=class extends((0,M.J)(I.wq)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(i.Z.ofType(le)),this.opacityStops=new(i.Z.ofType(ce))}set colorStops(e){this._set("colorStops",(0,ie.Z)(e,this._get("colorStops"),i.Z.ofType(le)))}set opacityStops(e){this._set("opacityStops",(0,ie.Z)(e,this._get("opacityStops"),i.Z.ofType(ce)))}getPreviousNext(e,t,r){let o=e;for(;--o>0&&t[o].type!==r&&t[o].type!==he.Both;);let n=e;const i=t.length;for(;++n<i&&t[n].type!==r&&t[n].type!==he.Both;);return[o,n]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:he.Color})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,se.uZ)(e.position,0,1),o=Math.round(255*(0,se.uZ)(1-e.opacity,0,1));let n=!1;for(const e of r)if(e.type===he.Color&&Math.abs(e.position-t)<1e-5){e.color.a=o,e.type=he.Both,n=!0;break}n||r.push({color:{r:0,g:0,b:0,a:o},position:e.position,type:he.Alpha})}r.sort(((e,t)=>e.position<t.position?-1:1));const e=r.length;for(let t=0;t<e;++t){const o=r[t];if(o.type!==he.Both)if(o.type===he.Color){const[n,i]=this.getPreviousNext(t,r,he.Alpha);if(-1!==n&&i!==e){const e=(o.position-r[n].position)/(r[i].position-r[n].position);o.color.a=Math.round((0,se.t7)(r[n].color.a,r[i].color.a,e))}else o.color.a=-1!==n?r[n].color.a:r[i].color.a}else{const[n,i]=this.getPreviousNext(t,r,he.Color);if(-1!==n&&i!==e){const e=(o.position-r[n].position)/(r[i].position-r[n].position),t=r[n].color,s=r[i].color;fe.forEach((r=>{o.color[r]=Math.round((0,se.t7)(t[r],s[r],e))}))}else-1!==n?fe.forEach((e=>{o.color[e]=r[n].color[e]})):fe.forEach((e=>{o.color[e]=r[i].color[e]}))}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let o=0,n=1;for(let r=0;r<this._colorMapSize;++r){const i=r/this._colorMapSize;for(;i>t[n].position;)o=n++;const s=(i-t[o].position)/(t[n].position-t[o].position),a=t[o].color,l=t[n].color,u=new re.Z;fe.forEach((e=>{u[e]=Math.round((0,se.t7)(a[e],l[e],s))})),u.a=(0,se.uZ)(1-(0,se.t7)(a.a,l.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let o=this.stretchRange[0],n=this.stretchRange[1];if(o>n){const e=o;o=n,n=e}e=(0,se.uZ)(e,o,n);const i=r[Math.round((e-o)/(n-o)*(this._colorMapSize-1))].clone();return t||(i.a=1),i}};(0,o._)([(0,c.Cb)({type:["linear","nearest"],json:{write:!0}})],me.prototype,"interpolation",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],me.prototype,"stretchRange",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],me.prototype,"colorStops",null),(0,o._)([(0,c.Cb)({type:i.Z.ofType(ce),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],me.prototype,"opacityStops",null),(0,o._)([(0,c.Cb)({type:de,json:{write:!0}})],me.prototype,"rangeFilter",void 0),(0,o._)([(0,c.Cb)({type:[re.Z],clonable:!1,json:{read:!1}})],me.prototype,"rasterizedTransferFunction",null),me=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelTransferFunctionStyle")],me);const ge=me,fe=["r","g","b"];let be=class extends((0,M.J)(I.wq)){constructor(){super(...arguments),this.color=re.Z.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,o._)([(0,c.Cb)({type:re.Z,json:{type:[p.z8],write:{enabled:!0,isRequired:!0}}})],be.prototype,"color",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"value",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],be.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],be.prototype,"label",void 0),be=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelUniqueValue")],be);const ve=be;var Se;let we=Se=class extends I.wq{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(i.Z.ofType(ve)),this.isosurfaces=new(i.Z.ofType(ne))}clone(){return new Se({variableId:this.variableId,label:this.label,transferFunction:(0,te.d9)(this.transferFunction),uniqueValues:(0,te.d9)(this.uniqueValues),isosurfaces:(0,te.d9)(this.isosurfaces)})}};(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],we.prototype,"variableId",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],we.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:ge,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],we.prototype,"transferFunction",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(ve),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],we.prototype,"uniqueValues",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(ne),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],we.prototype,"isosurfaces",void 0),we=Se=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVariableStyle")],we);const xe=we;var _e=r(94139),je=r(82971),Ce=r(8744);let Ve=class extends I.wq{constructor(){super(...arguments),this.values=null}};(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const Me=Ve;let Te=class extends I.wq{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Te.prototype,"scale",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Te.prototype,"offset",void 0),Te=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelRegularSpacing")],Te);const Ie=Te;let Re=class extends I.wq{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,o._)([(0,c.Cb)({type:Me,json:{write:!0}})],Re.prototype,"irregularSpacing",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isPositiveUp",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],Re.prototype,"isWrappedDateLine",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"name",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"quantity",void 0),(0,o._)([(0,c.Cb)({type:Ie,json:{write:!0}})],Re.prototype,"regularSpacing",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:!0}})],Re.prototype,"size",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Re.prototype,"unit",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{read:!1}})],Re.prototype,"isRegular",null),Re=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelDimension")],Re);const ze=Re,Ne="esri.layers.voxel.VoxelVolume",qe=a.Z.getLogger(Ne);let De=class extends I.wq{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=je.Z.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],o=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],o[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],o=r.isRegular?r.getRange():[0,r.size],n=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)n[e]<2?n[e]=1:n[e]-=1;return r.isRegular&&!r.isPositiveUp&&(n[2]*=-1),[(e[1]-e[0])/n[0],(t[1]-t[0])/n[1],(o[1]-o[0])/n[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return qe.error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,Ce.fS)(this.spatialReference,e.spatialReference))return qe.error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.f)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const o=e.z??0,n=r.irregularSpacing.values,i=r.isPositiveUp?1:-1,s=n.reduce(((e,t)=>Math.abs(i*t-o)<Math.abs(i*e-o)?t:e));for(let e=0;e<n.length;++e)if(n[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new _e.Z({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.e)(e);if((0,y.A)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new _e.Z({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new _e.Z({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"id",void 0),(0,o._)([(0,c.Cb)({type:[ze],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"dimensions",void 0),(0,o._)([(0,c.Cb)({type:je.Z,json:{read:{enabled:!1}}})],De.prototype,"spatialReference",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1}})],De.prototype,"zDimension",null),(0,o._)([(0,c.Cb)({type:[Boolean],json:{read:!1}})],De.prototype,"isValid",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],De.prototype,"originInLayerSpace3D",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],De.prototype,"voxelSizeInLayerSpaceSigned",null),(0,o._)([(0,c.Cb)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],De.prototype,"volumeType",null),(0,o._)([(0,c.Cb)({type:[Number],json:{read:!1}})],De.prototype,"sizeInVoxels",null),De=(0,o._)([(0,h.j)(Ne)],De);const Ze=De;var Fe;let Ae=Fe=class extends I.wq{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"apronWidth",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"brickSize",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"maxLodLevel",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],Ae.prototype,"nodeSize",void 0),Ae=Fe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVolumeIndex")],Ae);const ke=Ae;let Pe=class extends((0,M.J)(I.wq)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(e),0,!0)}set orientation(e){const t=O(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=U(this.normal);return T.BV.normalize((0,p.q9)(t),0,!0)}set tilt(e){const t=O(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,o._)([(0,c.Cb)({type:Boolean,json:{default:!0,write:!0}})],Pe.prototype,"enabled",void 0),(0,o._)([(0,c.Cb)({type:String,json:{write:!0}})],Pe.prototype,"label",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,p.q9)(e),0,!0)))],Pe.prototype,"orientation",null),(0,o._)([(0,c.Cb)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.p)((e=>T.BV.normalize((0,p.q9)(e),0,!0)))],Pe.prototype,"tilt",null),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Pe.prototype,"normal",void 0),(0,o._)([(0,c.Cb)({type:[Number],json:{write:!0}})],Pe.prototype,"point",void 0),Pe=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelDynamicSection")],Pe);const Le=Pe;var Ue;let Oe=Ue=class extends I.wq{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(i.Z.ofType(J)),this.dynamicSections=new(i.Z.ofType(Le))}set slices(e){this._set("slices",(0,ie.Z)(e,this._get("slices"),i.Z.ofType(J)))}set dynamicSections(e){this._set("dynamicSections",(0,ie.Z)(e,this._get("dynamicSections"),i.Z.ofType(Le)))}clone(){return new Ue({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,te.d9)(this.slices),dynamicSections:(0,te.d9)(this.dynamicSections)})}};(0,o._)([(0,c.Cb)({type:p.z8,json:{write:{enabled:!0,isRequired:!0}}})],Oe.prototype,"volumeId",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{default:1,write:!0}})],Oe.prototype,"verticalExaggeration",void 0),(0,o._)([(0,c.Cb)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],Oe.prototype,"exaggerationMode",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{default:0,write:!0}})],Oe.prototype,"verticalOffset",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(J),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],Oe.prototype,"slices",null),(0,o._)([(0,c.Cb)({type:i.Z.ofType(Le),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],Oe.prototype,"dynamicSections",null),Oe=Ue=(0,o._)([(0,h.j)("esri.layers.voxel.VoxelVolumeStyle")],Oe);const Be=Oe;var Ee=r(32163);const Je="esri.layers.VoxelLayer",$e=a.Z.getLogger(Je);let Ye=class extends((0,_.Vt)((0,v.Y)((0,S.q)((0,w.I)((0,x.M)((0,l.R)((0,b.V)(f.Z)))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new W,this.opacity=1,this.variables=new i.Z,this.volumes=new i.Z,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(i.Z.ofType(Be)),this.variableStyles=new(i.Z.ofType(xe)),this.sections=new(i.Z.ofType(H))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,j.Nm)(e,$e))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.r9).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.Z("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const o=g.Z.fromJSON(e,r);if(0===o.zmin&&0===o.zmax&&Array.isArray(t.volumes)){const e=Ze.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}o.zmin=e,o.zmax=r}}}return o}return null}get voxelFields(){const e=[new V.Z({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new V.Z({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new V.Z({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const r=new V.Z({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new V.Z({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,r=this.title;return(0,Ee.eZ)({fields:t,title:r},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,r){const o=this.getVariable(e);if(null==o||"continuous"!==o.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const n=this.variableStyles.findIndex((t=>t.variableId===e));if(n<0)return null;const i=this.variableStyles.at(n);return i?.transferFunction?i.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new H({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const o=t.clone();o.isosurfaces.length>4&&(o.isosurfaces=o.isosurfaces.slice(0,3),$e.error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of o.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(o.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===o.transferFunction||o.transferFunction.colorStops.length<2)&&$e.error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==o.transferFunction&&(Array.isArray(o.transferFunction.stretchRange)&&2===o.transferFunction.stretchRange.length||($e.error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),o.transferFunction.stretchRange=[0,1],o.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)$e.error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(o)}else $e.error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const o=t.clone();for(const e of o.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of o.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(o)}else $e.error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const o=(0,m.f)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(o,o),!(Math.abs(o[0])+Math.abs(o[1])+Math.abs(o[2])<1e-6||(e.normal[0]=o[0],e.normal[1]=o[1],e.normal[2]=o[2],0))}};(0,o._)([(0,c.Cb)({type:["Voxel"]})],Ye.prototype,"operationalLayerType",void 0),(0,o._)([(0,c.Cb)(C.rn)],Ye.prototype,"legendEnabled",void 0),(0,o._)([(0,c.Cb)({json:{write:!0}})],Ye.prototype,"title",void 0),(0,o._)([(0,c.Cb)(C.HQ)],Ye.prototype,"url",null),(0,o._)([(0,c.Cb)({type:i.Z.ofType(H),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],Ye.prototype,"sections",void 0),(0,o._)([(0,c.Cb)({type:p.z8,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],Ye.prototype,"currentVariableId",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(Be),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],Ye.prototype,"volumeStyles",void 0),(0,o._)([(0,c.Cb)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],Ye.prototype,"renderMode",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(xe),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],Ye.prototype,"variableStyles",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],Ye.prototype,"enableSlices",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],Ye.prototype,"enableSections",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],Ye.prototype,"enableDynamicSections",void 0),(0,o._)([(0,c.Cb)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],Ye.prototype,"enableIsosurfaces",void 0),(0,o._)([(0,c.Cb)({type:W,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],Ye.prototype,"shading",void 0),(0,o._)([(0,c.Cb)({type:["show","hide"]})],Ye.prototype,"listMode",void 0),(0,o._)([(0,c.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],Ye.prototype,"opacity",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(ee)})],Ye.prototype,"variables",void 0),(0,o._)([(0,c.Cb)({type:i.Z.ofType(Ze)})],Ye.prototype,"volumes",void 0),(0,o._)([(0,c.Cb)({type:ke})],Ye.prototype,"index",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.minScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Ye.prototype,"minScale",void 0),(0,o._)([(0,c.Cb)({type:Number,json:{name:"layerDefinition.maxScale",read:!1,write:!1,origins:{service:{read:!1,write:!1}}}})],Ye.prototype,"maxScale",void 0),(0,o._)([(0,c.Cb)({json:{read:!1},readOnly:!0})],Ye.prototype,"type",void 0),(0,o._)([(0,c.Cb)({readOnly:!0,json:{name:"serviceVersion"}})],Ye.prototype,"version",void 0),(0,o._)([(0,d.r)("service","version")],Ye.prototype,"readVersion",null),(0,o._)([(0,c.Cb)({type:g.Z})],Ye.prototype,"fullExtent",void 0),(0,o._)([(0,d.r)("service","fullExtent",["fullExtent"])],Ye.prototype,"readFullExtent",null),(0,o._)([(0,c.Cb)({readOnly:!0,clonable:!1,json:{read:!1}})],Ye.prototype,"voxelFields",null),(0,o._)([(0,c.Cb)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],Ye.prototype,"popupEnabled",void 0),(0,o._)([(0,c.Cb)({type:n.Z,json:{read:!1}})],Ye.prototype,"popupTemplate",null),(0,o._)([(0,c.Cb)({readOnly:!0})],Ye.prototype,"defaultPopupTemplate",null),Ye=(0,o._)([(0,h.j)(Je)],Ye);const He=Ye},72965:(e,t,r)=>{r.d(t,{M:()=>s});var o=r(43697),n=r(5600),i=(r(75215),r(67676),r(80442),r(52011));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,o._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,o._)([(0,n.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,o._)([(0,n.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,o._)([(0,i.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},66094:(e,t,r)=>{r.d(t,{B:()=>n});var o=r(17452);function n(e){return i[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,o.Ml)(e);return l[t]||s}(e.url)}(e)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)i[l[e]]=e},32163:(e,t,r)=>{r.d(t,{eZ:()=>u});var o=r(51773),n=r(35671),i=r(84649),s=(r(63801),r(48074),r(38745),r(9190)),a=(r(10214),r(71423),r(44951),r(422)),l=r(29986);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(p),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new a.Z({fieldName:t.name,isEditable:(0,n.Hp)(t,e),label:t.alias,format:d(t),visible:c(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:l},h);if(!m.length)return null;const g=function(e){const t=(0,n.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),f=[new s.Z,new i.Z];return new o.Z({title:g,content:f,fieldInfos:m})}const c=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Fv)(e,t);function p(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new l.Z({digitSeparator:!0,places:0});case"double":return new l.Z({digitSeparator:!0,places:2});case"string":return(0,n.Ec)(e.name)?new l.Z({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,r)=>{r.d(n,{a:()=>u,d:()=>s,f:()=>o,i:()=>h,m:()=>c,n:()=>l,s:()=>a,t:()=>i});var e=r(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,i,s,u,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=u,t[8]=c,t}function i(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u;let M=r*f+e*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*e+o*c)*M,t[2]=(s*e-o*i)*M,t[3]=h*M,t[4]=(l*r-o*u)*M,t[5]=(-s*r+o*a)*M,t[6]=p*M,t[7]=(-c*r+e*u)*M,t[8]=(i*r-e*a)*M,t):null}function u(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8];return t[0]=i*l-s*c,t[1]=o*c-e*l,t[2]=e*s-o*i,t[3]=s*u-a*l,t[4]=r*l-o*u,t[5]=o*a-r*s,t[6]=a*c-i*u,t[7]=e*u-r*c,t[8]=r*i-e*a,t}function c(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=r[0],p=r[1],M=r[2],g=r[3],m=r[4],y=r[5],b=r[6],A=r[7],P=r[8];return t[0]=h*e+p*i+M*c,t[1]=h*o+p*s+M*l,t[2]=h*a+p*u+M*f,t[3]=g*e+m*i+y*c,t[4]=g*o+m*s+y*l,t[5]=g*a+m*u+y*f,t[6]=b*e+A*i+P*c,t[7]=b*o+A*s+P*l,t[8]=b*a+A*u+P*f,t}function l(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],u=n[6],c=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],b=r*s-e*i,A=r*u-o*i,P=r*c-a*i,d=e*u-o*s,E=e*c-a*s,C=o*c-a*u,T=l*g-f*M,_=l*m-h*M,F=l*y-p*M,x=f*m-h*g,R=f*y-p*g,v=h*y-p*m;let j=b*v-A*R+P*x+d*F-E*_+C*T;return j?(j=1/j,t[0]=(s*v-u*R+c*x)*j,t[1]=(u*F-i*v-c*_)*j,t[2]=(i*R-s*F+c*T)*j,t[3]=(o*R-e*v-a*x)*j,t[4]=(r*v-o*F+a*_)*j,t[5]=(e*F-r*R-a*T)*j,t[6]=(g*C-m*E+y*d)*j,t[7]=(m*P-M*C-y*A)*j,t[8]=(M*E-g*P+y*b)*j,t):null}function f(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}function h(t){const n=(0,e.g)(),r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+i*i+c*c))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+u*u+f*f))<=n}const p=c,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],i=t[5],s=t[6],u=t[7],c=t[8];return n*(c*a-i*u)+r*(-c*o+i*s)+e*(u*o-a*s)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],b=n[6],A=n[7],P=n[8],d=(0,e.g)();return Math.abs(r-h)<=d*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-p)<=d*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=d*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=d*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-m)<=d*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(u-y)<=d*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-b)<=d*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(l-A)<=d*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-P)<=d*Math.max(1,Math.abs(f),Math.abs(P))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r+r,s=e+e,u=o+o,c=r*i,l=e*i,f=e*s,h=o*i,p=o*s,M=o*u,g=a*i,m=a*s,y=a*u;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-c-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-c-f,t},fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:h,mul:p,multiply:c,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],i=n[5],s=n[6],u=n[8],c=n[9],l=n[10],f=l*i-s*c,h=-l*a+s*u,p=c*a-i*u,M=r*f+e*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*e+o*c)*g,t[2]=(s*e-o*i)*g,t[3]=h*g,t[4]=(l*r-o*u)*g,t[5]=(-s*r+o*a)*g,t[6]=p*g,t[7]=(-c*r+e*u)*g,t[8]=(i*r-e*a)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(r),p=Math.cos(r);return t[0]=p*e+h*i,t[1]=p*o+h*s,t[2]=p*a+h*u,t[3]=p*i-h*e,t[4]=p*s-h*o,t[5]=p*u-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:function(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],u=n[5],c=n[6],l=n[7],f=n[8],h=r[0],p=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=u,t[6]=h*e+p*i+c,t[7]=h*o+p*s+l,t[8]=h*a+p*u+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,r)=>{r.d(n,{a:()=>p,c:()=>m,g:()=>l,j:()=>R,k:()=>g,m:()=>f,s:()=>c});var e=r(46521),o=r(94961),a=r(65617),i=r(46851),s=r(17896),u=r(98766);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,i.g)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=r[0],u=r[1],c=r[2],l=r[3];return t[0]=e*l+i*s+o*c-a*u,t[1]=o*l+i*u+a*s-e*c,t[2]=a*l+i*c+e*u-o*s,t[3]=i*l-e*s-o*u-a*c,t}function h(t,n,r,e){const o=n[0],a=n[1],s=n[2],u=n[3];let c,l,f,h,p,M=r[0],g=r[1],m=r[2],y=r[3];return l=o*M+a*g+s*m+u*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-e)*c)/f,p=Math.sin(e*c)/f):(h=1-e,p=e),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*s+p*m,t[3]=h*u+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),i=Math.cos(n),s=Math.sin(r),u=Math.cos(r),c=Math.sin(e),l=Math.cos(e);return t[0]=a*u*l-i*s*c,t[1]=i*s*l+a*u*c,t[2]=i*u*c-a*s*l,t[3]=i*u*l+a*s*c,t}const m=u.c,y=u.s,b=u.a,A=f,P=u.b,d=u.d,E=u.l,C=u.f,T=C,_=u.g,F=_,x=u.n,R=u.h,v=u.e,j=(0,a.c)(),w=(0,a.f)(1,0,0),S=(0,a.f)(0,1,0),O=(0,o.a)(),L=(0,o.a)(),Z=(0,e.a)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:p,copy:m,dot:d,equals:v,exactEquals:R,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r*r+e*e+o*o+a*a,s=i?1/i:0;return t[0]=-r*s,t[1]=-e*s,t[2]=-o*s,t[3]=a*s,t},len:T,length:C,lerp:E,mul:A,multiply:f,normalize:x,random:function(t){const n=i.R,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),u=Math.cos(r);return t[0]=e*u+i*s,t[1]=o*u+a*s,t[2]=a*u-o*s,t[3]=i*u-e*s,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),u=Math.cos(r);return t[0]=e*u-a*s,t[1]=o*u+i*s,t[2]=a*u+e*s,t[3]=i*u-o*s,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),u=Math.cos(r);return t[0]=e*u+o*s,t[1]=o*u-e*s,t[2]=a*u+i*s,t[3]=i*u-a*s,t},rotationTo:function(t,n,r){const e=(0,s.j)(n,r);return e<-.999999?((0,s.b)(j,w,n),(0,s.k)(j)<1e-6&&(0,s.b)(j,S,n),(0,s.n)(j,j),c(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,x(t,t))},scale:P,set:y,setAxes:function(t,n,r,e){const o=Z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],x(t,M(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(O,n,o,a),h(L,r,e,a),h(t,O,L,2*a*(1-a)),t},sqrLen:F,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},83932:(t,n,r)=>{r.d(n,{B:()=>c});var e=r(22021),o=r(52138),a=r(65617);function i(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),i=Math.cos(n),s=r;return s[0]=-e,s[4]=-a*o,s[8]=i*o,s[12]=0,s[1]=o,s[5]=-a*e,s[9]=i*e,s[13]=0,s[2]=0,s[6]=i,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=r(29166),u=r(8744);function c(t,n,r,e){if(null==t||null==e)return!1;const a=(0,s.eT)(t,s.Jz),c=(0,s.eT)(e,s.sp);if(a===c&&!l(c)&&(a!==s.Ej.UNKNOWN||(0,u.fS)(t,e)))return(0,o.d)(r,n),!0;if(l(c)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][c];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),i(f*h[0],f*h[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}if((c===s.Ej.WEB_MERCATOR||c===s.Ej.PLATE_CARREE)&&(a===s.Ej.WGS84||a===s.Ej.CGCS2000&&c===s.Ej.PLATE_CARREE||a===s.Ej.SPHERICAL_ECEF||a===s.Ej.WEB_MERCATOR)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][c];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),a===s.Ej.SPHERICAL_ECEF?function(t,n,r){i(t,n,r),(0,o.t)(r,r)}(f*h[0],f*h[1],r):(0,o.g)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return t===s.Ej.SPHERICAL_ECEF||t===s.Ej.SPHERICAL_MARS_PCPF||t===s.Ej.SPHERICAL_MOON_PCPF}const f=(0,e.Vl)(1),h=(0,a.c)(),p=(0,a.c)()},58995:(t,n,r)=>{r.d(n,{rS:()=>c});var e=r(2109),o=r(82971),a=r(8744);const i=new o.Z(e.kU),s=new o.Z(e.JL),u=new o.Z(e.mM);function c(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,s))?s:t&&((0,a.V2)(t)||(0,a.fS)(t,u))?u:i}new o.Z(e.pn)},2674:(t,n,r)=>{r.d(n,{Z:()=>y});var e,o=r(43697),a=r(96674),i=r(5600),s=(r(75215),r(67676),r(80442),r(52011)),u=r(52138),c=r(13598),l=r(51305),f=r(94961),h=r(17896),p=r(65617),M=r(3709);let g=e=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.e)(M.up),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.g)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,c.a)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,u.f)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.i)((0,c.a)(),this.localMatrix)}applyLocal(t,n){return(0,h.e)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.e)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.e)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.g)(this.translation),rotationAxis:(0,p.g)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.g)(this.scale)};return new e(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=e=(0,o._)([(0,s.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.a)(),y=g},3709:(t,n,r)=>{r.d(n,{EU:()=>p,Ue:()=>u,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>c,up:()=>g});var e=r(22021),o=r(51305),a=r(94961),i=r(17896),s=r(65617);function u(t=g){return[t[0],t[1],t[2],t[3]]}function c(t,n,r=u()){return(0,i.c)(r,t),r[3]=n,r}function l(t,n,r=u()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(r,(0,e.BV)((0,o.g)(r,m)))}function f(t,n,r,e=u()){return c(s.U,t,b),c(s.b,n,A),c(s.d,r,P),l(b,A,b),l(b,P,e),e}function h(t){return t}function p(t){return t[3]}function M(t){return(0,e.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.a)(),y=(0,a.a)(),b=(u(),u()),A=u(),P=u()},13442:(t,n,r)=>{r.d(n,{A:()=>a,h:()=>o});var e=r(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,r){const o=!t.isGeoreferenced;null!=r?.geographic&&r.geographic!==o&&e.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${r.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,r)=>{r.d(n,{FF:()=>F,I5:()=>T,Ne:()=>C,Yq:()=>x,iv:()=>E,project:()=>R,w1:()=>_});var e=r(67900),o=r(46521),a=r(52138),i=r(13598),s=r(17896),u=r(65617),c=r(21787),l=r(73615),f=r(58995),h=r(83932),p=r(87360),M=r(83025),g=r(85872),m=r(50567),y=r(84555),b=r(2674),A=r(20773),P=r(13442),d=r(56493);function E(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference,o=S(n,r,I),a=new Float64Array(t.position.length),i=function(t,n,r,e){(0,A.t)(e,t,n);const o=new Float64Array(t.length);return(0,d.To)(e,o,r)}(t.position,o,e,a),s=(0,c.n)(N,o);return{position:i,normal:v(i,a,t.normal,s,e),tangent:j(i,a,t.tangent,s,e)}}(t,n,r):function(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=o[t]*u+a,e[t+1]=o[t+1]*u+i,e[t+2]=o[t+2]*u+s;return{position:e,normal:t.normal,tangent:t.tangent}}(t,n,r)}function C(t,n=i.I){const{position:r,normal:e,tangent:o}=t;return{position:(0,A.t)(new Float64Array(r.length),r,n),normal:null!=e?(0,d.w9)(e,new Float32Array(e.length),n):null,tangent:null!=o?(0,d.VS)(o,new Float32Array(o.length),n):null}}function T(t,n,r,e){const{position:o,normal:a,tangent:i}=t;return n.isRelative?E(C(t,r?.localMatrix),n.getOriginPoint(e),{geographic:!n.isGeoreferenced}):{position:o,normal:a,tangent:i}}function _(t,n,r){if(r?.useTransform){const{position:e,normal:o,tangent:a}=t,{x:i,y:s,z:c}=n,l=(0,u.f)(i,s,c??0);return{vertexAttributes:{position:e,normal:o,tangent:a},vertexSpace:r.geographic??1?new y.Z({origin:l}):new g.Z({origin:l}),transform:new b.Z}}return{vertexAttributes:E(t,n,r),vertexSpace:new m.Z,transform:null}}function F(t,n,r){return(0,P.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference;S(n,r,I);const o=(0,a.i)(q,I),i=new Float64Array(t.position.length),s=function(t,n,r,e){const o=(0,d.XO)(t,n,e),a=new Float64Array(o.length);return(0,A.t)(a,o,r),a}(t.position,e,o,i),u=(0,c.n)(N,o);return{position:s,normal:O(t.normal,t.position,i,e,u),tangent:L(t.tangent,t.position,i,e,u)}}(t,n,r):w(t,n,r)}function x(t,n,r,e,o){if(!n.isRelative)return F(t,e,o);const{spatialReference:a}=e,i=T(t,n,r,a);return e.equals(n.getOriginPoint(a))?w(i,e,o):F(i,e,o)}function R({positions:t,transform:n,vertexSpace:r,inSpatialReference:e,outSpatialReference:o,outPositions:c,local:g}){const m=r.isRelative?r.origin:u.Z,y=r.isRelative?n?.localMatrix??i.I:i.I;if(r.isGeoreferenced){const n=c??(0,M.bg)(t.length);if((0,a.a)(y,i.I)?(0,M.JK)(n,t):(0,A.t)(n,t,y),!(0,s.h)(m,u.Z)){const[t,r,e]=m;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=r,n[o+2]+=e}return(0,p.projectBuffer)(n,e,0,n,o,0,n.length/3),n}const b=(0,f.rS)(e),P=!g&&(0,l.canProjectWithoutEngine)(e,b)?b:e;(0,h.B)(e,m,I,P),(0,a.m)(I,I,y);const d=c??(0,M.bg)(t.length);return(0,A.t)(d,t,I),(0,p.projectBuffer)(d,P,0,d,o,0,d.length/3),d}function v(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);return(0,A.a)(a,r,e),(0,d.Yk)(a,t,n,o,a),a}function j(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);(0,A.a)(a,r,e,4);for(let t=3;t<a.length;t+=4)a[t]=r[t];return(0,d.M2)(a,t,n,o,a),a}function w(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,u=Z(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=(o[t]-a)/u,e[t+1]=(o[t+1]-i)/u,e[t+2]=(o[t+2]-s)/u;return{position:e,normal:t.normal,tangent:t.tangent}}function S(t,n,r){(0,h.B)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,f.rS)(t.spatialReference));const e=Z(n?n.unit:null,t.spatialReference);return(0,a.b)(r,r,[e,e,e]),r}function O(t,n,r,e,o){if(null==t)return null;const a=(0,d.Iz)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o),a}function L(t,n,r,e,o){if(null==t)return null;const a=(0,d.wi)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o,4),a}function Z(t,n){if(null==t)return 1;const r=(0,e.r6)(n);return 1/(0,e.En)(r,"meters",t)}const I=(0,i.a)(),q=(0,i.a)(),N=(0,o.a)()},56493:(t,n,r)=>{r.d(n,{Iz:()=>y,M2:()=>T,To:()=>P,VS:()=>E,XO:()=>A,Yk:()=>b,w9:()=>d,wi:()=>C});var e=r(92604),o=r(21787),a=r(46521),i=r(13598),s=r(17896),u=r(65617),c=r(58995),l=r(83932),f=r(87360),h=r(8744),p=r(40488),M=r(56481),g=r(20773);const m=e.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function y(t,n,r,e,o){return F(e)?(_(R.TO_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert spatial reference to PCPF"),o)}function b(t,n,r,e,o){return F(e)?(_(R.FROM_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert to spatial reference from PCPF"),o)}function A(t,n,r){return(0,f.projectBuffer)(t,n,0,r,(0,c.rS)(n),0,t.length/3),r}function P(t,n,r){return(0,f.projectBuffer)(t,(0,c.rS)(r),0,n,r,0,t.length/3),n}function d(t,n,r){return(0,o.n)(O,r),(0,g.a)(n,t,O),(0,o.i)(O)||(0,g.n)(n,n),n}function E(t,n,r){if((0,o.n)(O,r),(0,g.a)(n,t,O,4),(0,o.i)(O)||(0,g.n)(n,n,4),t!==n)for(let r=3;r<t.length;r+=4)n[r]=t[r];return n}function C(t,n,r,e,o){if(!F(e))return m.error("Cannot convert spatial reference to PCPF"),o;_(R.TO_PCPF,M.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function T(t,n,r,e,o){if(!F(e))return m.error("Cannot convert to spatial reference from PCPF"),o;_(R.FROM_PCPF,M.ct.fromTypedArray(t,16),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function _(t,n,r,e,a,i){if(!n)return;const u=r.count,f=(0,c.rS)(a);if(x(a))for(let r=0;r<u;r++)e.getVec(r,j),n.getVec(r,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S),t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),i.setVec(r,w);else for(let a=0;a<u;a++){e.getVec(a,j),n.getVec(a,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S);const u=(0,p.mZ)(r.get(a,1));let c=Math.cos(u);t===R.TO_PCPF&&(c=1/c),O[0]*=c,O[1]*=c,O[2]*=c,O[3]*=c,O[4]*=c,O[5]*=c,t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),(0,s.n)(w,w),i.setVec(a,w)}return i}function F(t){return x(t)||function(t){return t.isWebMercator}(t)}function x(t){return t.isWGS84||(0,h.yW)(t)||(0,h.BZ)(t)||(0,h.V2)(t)}var R,v;(v=R||(R={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const j=(0,u.c)(),w=(0,u.c)(),S=(0,i.a)(),O=(0,a.a)()}}]);