@arcgis/core 5.1.0-next.18 → 5.1.0-next.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (662) hide show
  1. package/Camera.d.ts +1 -1
  2. package/Ground.d.ts +7 -7
  3. package/PopupTemplate.d.ts +6 -6
  4. package/WebScene.d.ts +1 -1
  5. package/analysis/AreaMeasurementAnalysis.d.ts +1 -1
  6. package/analysis/DirectLineMeasurementAnalysis.d.ts +1 -1
  7. package/analysis/LengthDimension.d.ts +4 -4
  8. package/analysis/ShadowCastAnalysis.d.ts +3 -3
  9. package/analysis/SliceAnalysis.d.ts +1 -1
  10. package/analysis/SlicePlane.d.ts +1 -1
  11. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +1 -1
  12. package/analysis/VolumeMeasurementAnalysis.d.ts +1 -1
  13. package/applications/Components/applySetUtils.d.ts +1 -1
  14. package/applications/WebEditor/geometryUtils.d.ts +26 -0
  15. package/applications/WebEditor/geometryUtils.js +2 -0
  16. package/assets/esri/core/workers/RemoteClient.js +1 -1
  17. package/assets/esri/core/workers/chunks/045e4e520d6dffe06ba7.js +1 -0
  18. package/assets/esri/core/workers/chunks/05d6cd51ca970705e46a.js +1 -0
  19. package/assets/esri/core/workers/chunks/{fd125618f513bc2f5206.js → 08d73543c713984f6ecf.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{982e709d2cef971ecd82.js → 0d9d33f29124d464a4cb.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{07317f6b57c1314db442.js → 0e1d559d05229ef92e35.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{2762149a922275136171.js → 112227b862b935123ddf.js} +2 -2
  23. package/assets/esri/core/workers/chunks/128cdb4a02549abc68b5.js +1 -0
  24. package/assets/esri/core/workers/chunks/1336f685bae5f1251558.js +1 -0
  25. package/assets/esri/core/workers/chunks/{b71e4f48377fefe2537d.js → 15d46482ec096e3ce161.js} +1 -1
  26. package/assets/esri/core/workers/chunks/1794db88a2006711eff3.js +1 -0
  27. package/assets/esri/core/workers/chunks/{a327f36561f093dc0fab.js → 19fcc74d34cbbaa56a41.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{d0d1378e714ff0e43e26.js → 1cfa8d404d42b9eccf78.js} +1 -1
  29. package/assets/esri/core/workers/chunks/1e916e552ce7d53692d2.js +1 -0
  30. package/assets/esri/core/workers/chunks/2011da6dfc4bb89829c6.js +1 -0
  31. package/assets/esri/core/workers/chunks/{1e29a114c1cfe21121c4.js → 203ef5459fc5dde12851.js} +1 -1
  32. package/assets/esri/core/workers/chunks/215c54520d0da638fe57.js +1 -0
  33. package/assets/esri/core/workers/chunks/22045f85e503ae0ec8f4.js +1 -0
  34. package/assets/esri/core/workers/chunks/{78fc7ef00cc4931ef47d.js → 2351b713ba3d05de0728.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{0a4ebb5dca630a4ab0dd.js → 236f8137ae505c8f0764.js} +1 -1
  36. package/assets/esri/core/workers/chunks/249630af2fb01257eb75.js +1 -0
  37. package/assets/esri/core/workers/chunks/{1f30558e3ad6ac68bdb8.js → 25d34552bfb255af9467.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{7cd4280d24b24045bd7e.js → 27e14277128446e76b45.js} +1 -1
  39. package/assets/esri/core/workers/chunks/3214763f268622f09986.js +1 -0
  40. package/assets/esri/core/workers/chunks/32a1ccc145c9f6091e13.js +1 -0
  41. package/assets/esri/core/workers/chunks/34691b147318b2cfdd45.js +1 -0
  42. package/assets/esri/core/workers/chunks/{18c05353d6d8950d1491.js → 36215b2c0b1020743458.js} +1 -1
  43. package/assets/esri/core/workers/chunks/3d3b1ce112be6ea31d93.js +1 -0
  44. package/assets/esri/core/workers/chunks/{2badadf8032e166b34ec.js → 3f3c63420644f9522ab1.js} +1 -1
  45. package/assets/esri/core/workers/chunks/41108f58f0f439ebba3f.js +1 -0
  46. package/assets/esri/core/workers/chunks/{bc9997d15ec0a86793c6.js → 415957a42e45eb21aa84.js} +1 -1
  47. package/assets/esri/core/workers/chunks/43c797bfc2191b51875b.js +1 -0
  48. package/assets/esri/core/workers/chunks/460a82f3e4838b13e3b4.js +1 -0
  49. package/assets/esri/core/workers/chunks/4ad6f80488aa218b95e3.js +1 -0
  50. package/assets/esri/core/workers/chunks/4e9863a11d09900baf30.js +1 -0
  51. package/assets/esri/core/workers/chunks/4fe210314813ea1f7a26.js +1 -0
  52. package/assets/esri/core/workers/chunks/5028de543cc1b8e60e65.js +1 -0
  53. package/assets/esri/core/workers/chunks/52705ccbb452a3edb064.js +1 -0
  54. package/assets/esri/core/workers/chunks/{17b39b88547968048113.js → 531c55f3b8e708ccf767.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{72acfb74fd9ab9bae923.js → 53e348f5585fa8c53fe8.js} +2 -2
  56. package/assets/esri/core/workers/chunks/54c545f44b7ce21fb604.js +1 -0
  57. package/assets/esri/core/workers/chunks/558e9fed2e58cbbf9947.js +1 -0
  58. package/assets/esri/core/workers/chunks/{b50d2d3379654de1f2f3.js → 58134617fb7530836b81.js} +1 -1
  59. package/assets/esri/core/workers/chunks/58c4be467a922fe37f01.js +1 -0
  60. package/assets/esri/core/workers/chunks/{ec4e2f18453e1cb68fed.js → 5f10f39835cb40179000.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{7b1964255722e756eba3.js → 5f9eeab833a6c08c76c4.js} +1 -1
  62. package/assets/esri/core/workers/chunks/651b46aeabf22ff53a38.js +1 -0
  63. package/assets/esri/core/workers/chunks/65f86594c42ff82095fe.js +1 -0
  64. package/assets/esri/core/workers/chunks/{90316fb569389d48920f.js → 666f201d222c50ab8428.js} +1 -1
  65. package/assets/esri/core/workers/chunks/677f5e444ff588ab670f.js +1 -0
  66. package/assets/esri/core/workers/chunks/{323f6077a659416c4cee.js → 6a9a96aa811c1d3b6edb.js} +1 -1
  67. package/assets/esri/core/workers/chunks/6bf7d8de86b9eb76f920.js +1 -0
  68. package/assets/esri/core/workers/chunks/6c0b7890c8eec7febe28.js +1 -0
  69. package/assets/esri/core/workers/chunks/{25c189e894927099c239.js → 6c85396c90941a042c33.js} +1 -1
  70. package/assets/esri/core/workers/chunks/{18b0776aef1536867ab8.js → 6f337c3ccd84d90a35e5.js} +1 -1
  71. package/assets/esri/core/workers/chunks/711bec78dc00fad0f78d.js +1 -0
  72. package/assets/esri/core/workers/chunks/7382c9882525101eddad.js +1 -0
  73. package/assets/esri/core/workers/chunks/778ab9e4c3928b0d7d74.js +1 -0
  74. package/assets/esri/core/workers/chunks/{a3e8b7185d63a0f85931.js → 79c69ae86a1f4a56f7c7.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{0420fb4b3592f8a26b1f.js → 7d2b1e5402a88b6bee85.js} +1 -1
  76. package/assets/esri/core/workers/chunks/7ec83fc059325e207825.js +1 -0
  77. package/assets/esri/core/workers/chunks/7f385e9c88df3395e678.js +1 -0
  78. package/assets/esri/core/workers/chunks/{66ed527cd8ad11d008be.js → 80d51d58db09b9f96cb5.js} +1 -1
  79. package/assets/esri/core/workers/chunks/81a45d7e9dadf678b584.js +1 -0
  80. package/assets/esri/core/workers/chunks/81c758bdc07ed9d9a132.js +1 -0
  81. package/assets/esri/core/workers/chunks/{8670d9d11950f3c61b79.js → 83711695e16912e9b9c5.js} +1 -1
  82. package/assets/esri/core/workers/chunks/8c3bf66f8543cedc72ef.js +1 -0
  83. package/assets/esri/core/workers/chunks/8cade3af17a8bb6d4e37.js +1 -0
  84. package/assets/esri/core/workers/chunks/920d6330df72e2f01d19.js +1 -0
  85. package/assets/esri/core/workers/chunks/9dc7abca1d1eb9ba5b58.js +1 -0
  86. package/assets/esri/core/workers/chunks/9e054c264b17f04b7efa.js +1 -0
  87. package/assets/esri/core/workers/chunks/a143a6f8e2f21548b244.js +1 -0
  88. package/assets/esri/core/workers/chunks/a48a6232fa33084cb686.js +1 -0
  89. package/assets/esri/core/workers/chunks/a4947d5d2fa6b7bd399b.js +1 -0
  90. package/assets/esri/core/workers/chunks/a49f1172b17c14527acf.js +1 -0
  91. package/assets/esri/core/workers/chunks/{6af14a0217077d9ab47f.js → aaf3ed508d30ed583915.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{ab9156be67332338bbe4.js → aceec85ce64a3e6d8761.js} +1 -1
  93. package/assets/esri/core/workers/chunks/b10b3eb8c2ed9be14ab2.js +1 -0
  94. package/assets/esri/core/workers/chunks/b315b3771d0d19681aa5.js +1 -0
  95. package/assets/esri/core/workers/chunks/{91858b02da40ff251ab2.js → b397a9f87082705301a4.js} +2 -2
  96. package/assets/esri/core/workers/chunks/b40e4ed067da65c3d7ce.js +1 -0
  97. package/assets/esri/core/workers/chunks/b4b16914950792c46bd3.js +1 -0
  98. package/assets/esri/core/workers/chunks/{360b3499e2a671c309ce.js → b6969a42602517a6ef1c.js} +1 -1
  99. package/assets/esri/core/workers/chunks/baad696d84ab78b3d00e.js +2 -0
  100. package/assets/esri/core/workers/chunks/{2e7d4a437717606bc39c.js → bc2dcbdc414d157ab727.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{1aa2187597f7c4adb67f.js → bcb254cb7297fec88679.js} +1 -1
  102. package/assets/esri/core/workers/chunks/{2d1a772abd730b61854f.js → bd2125e0a68378533641.js} +1 -1
  103. package/assets/esri/core/workers/chunks/{6bd910e0480451a8d6aa.js → bde2c3199f667b63dbe8.js} +1 -1
  104. package/assets/esri/core/workers/chunks/bf595eb10f99b8a96baa.js +1 -0
  105. package/assets/esri/core/workers/chunks/c0b6706f86665cec85f8.js +1 -0
  106. package/assets/esri/core/workers/chunks/{12fd2e26e949d90abfbd.js → c3c6d337ff53e5d921e8.js} +1 -1
  107. package/assets/esri/core/workers/chunks/c461c19e4fdbdd2e94d4.js +1 -0
  108. package/assets/esri/core/workers/chunks/{4214f46bee613dea72f3.js → c66aa57b6360963bd938.js} +1 -1
  109. package/assets/esri/core/workers/chunks/c873ac660e7d5dc88781.js +1 -0
  110. package/assets/esri/core/workers/chunks/c99f36159b5ed6f9267e.js +1 -0
  111. package/assets/esri/core/workers/chunks/cb5f4820277f3fc7ff2f.js +1 -0
  112. package/assets/esri/core/workers/chunks/cbcb3530375e280bfeac.js +1 -0
  113. package/assets/esri/core/workers/chunks/cf4202ad468501ef24cf.js +1 -0
  114. package/assets/esri/core/workers/chunks/d03d50f3247327257d8b.js +1 -0
  115. package/assets/esri/core/workers/chunks/{a5af20f3d484d2d3bafe.js → d2017b0b27b9e4ada922.js} +1 -1
  116. package/assets/esri/core/workers/chunks/d2d9c1f32a75befe168b.js +1 -0
  117. package/assets/esri/core/workers/chunks/{5c12a9b0db317620dce2.js → d39f5d57f7e35c00ca16.js} +1 -1
  118. package/assets/esri/core/workers/chunks/d5b4487a983921572e58.js +1 -0
  119. package/assets/esri/core/workers/chunks/d78b2f85ec9212a973e8.js +1 -0
  120. package/assets/esri/core/workers/chunks/d9dc8d9fc8ab2706f96b.js +1 -0
  121. package/assets/esri/core/workers/chunks/{09cf8aed89a1ea1f8b28.js → da42da04a9df651b06cc.js} +1 -1
  122. package/assets/esri/core/workers/chunks/{a82587f69c4bbcac7e0b.js → dc7df2072c0ebed5602c.js} +1 -1
  123. package/assets/esri/core/workers/chunks/dd24cddc406f610d2483.js +1 -0
  124. package/assets/esri/core/workers/chunks/dd3789e71270a4640551.js +1 -0
  125. package/assets/esri/core/workers/chunks/de5719ef663224860af5.js +1 -0
  126. package/assets/esri/core/workers/chunks/de6438fdbe38d32c4ad5.js +1 -0
  127. package/assets/esri/core/workers/chunks/ded71a656e2626a411f9.js +1 -0
  128. package/assets/esri/core/workers/chunks/df1fa0f7e8f7e2bcc2e6.js +1 -0
  129. package/assets/esri/core/workers/chunks/{b705f837caa76cee81fc.js → e09722903e63f6cc2540.js} +1 -1
  130. package/assets/esri/core/workers/chunks/e2e03622936d2b35afc0.js +1 -0
  131. package/assets/esri/core/workers/chunks/e33f5780fb45ac7ca889.js +1 -0
  132. package/assets/esri/core/workers/chunks/{eb9e913fe0dfcc71cf92.js → e4611ebd7dba7692a914.js} +1 -1
  133. package/assets/esri/core/workers/chunks/e52793690dff1a199647.js +1 -0
  134. package/assets/esri/core/workers/chunks/{c13efb74aa4602f6a1ee.js → e56a10a475ce128b5fce.js} +1 -1
  135. package/assets/esri/core/workers/chunks/{9531f17cecd50431cce2.js → e8ae71e482b8d5f54a72.js} +1 -1
  136. package/assets/esri/core/workers/chunks/ea633a6a3b9ea8ce965d.js +1 -0
  137. package/assets/esri/core/workers/chunks/eae1c098c16e2faaf90d.js +1 -0
  138. package/assets/esri/core/workers/chunks/{f7e25a85a79c4e3c1c9f.js → ec63c0fa21cd3c872633.js} +1 -1
  139. package/assets/esri/core/workers/chunks/ece363681bb09072f379.js +1 -0
  140. package/assets/esri/core/workers/chunks/edaae0fc63d16b0f675d.js +2 -0
  141. package/assets/esri/core/workers/chunks/{8650fbe1db55b7280c00.js → ef4237dc7b67c9039826.js} +1 -1
  142. package/assets/esri/core/workers/chunks/ef9106ee818ec732b670.js +1 -0
  143. package/assets/esri/core/workers/chunks/f121a0bf33c03abfa0b6.js +1 -0
  144. package/assets/esri/core/workers/chunks/{a2f38e86acf45272dbc2.js → f7506c9d57b2ae0c5fd3.js} +1 -1
  145. package/assets/esri/core/workers/chunks/fab7e3e07d700d7bb651.js +1 -0
  146. package/assets/esri/core/workers/chunks/fcc8d0b60f7c2397e550.js +1 -0
  147. package/assets/esri/core/workers/chunks/fe5aec7e2da4465422b4.js +1 -0
  148. package/assets/esri/themes/base/widgets/_BasemapGallery.scss +1 -0
  149. package/assets/esri/themes/base/widgets/_Editor.scss +1 -0
  150. package/assets/esri/themes/dark/main.css +1 -1
  151. package/assets/esri/themes/light/main.css +1 -1
  152. package/assets/esri/themes/light/view.css +1 -1
  153. package/chunks/Envelope.js +1 -1
  154. package/chunks/GeodeticDistanceCalculator-Ce-woMPw.js +1 -1
  155. package/chunks/GeodeticUtils.js +1 -1
  156. package/chunks/Geometry.js +1 -1
  157. package/chunks/MultiPathImpl.js +1 -1
  158. package/chunks/OperatorGeodesicBuffer.js +1 -1
  159. package/chunks/OperatorGeodeticArea.js +1 -1
  160. package/chunks/OperatorGeodeticDensifyByLength.js +1 -1
  161. package/chunks/OperatorGeodeticLength.js +1 -1
  162. package/chunks/OperatorIntegrate.js +2 -0
  163. package/chunks/OperatorMultiPartToSinglePart.js +1 -1
  164. package/chunks/OperatorProximityGeodesic.js +1 -1
  165. package/chunks/OperatorShapePreservingLength.js +1 -1
  166. package/chunks/OperatorShapePreservingProject.js +1 -1
  167. package/chunks/Point2D.js +1 -1
  168. package/chunks/SpatialReference.js +1 -1
  169. package/chunks/containsOperator.js +1 -1
  170. package/chunks/disjointOperator.js +1 -1
  171. package/chunks/relateOperator.js +1 -1
  172. package/config.js +1 -1
  173. package/core/has.js +1 -1
  174. package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +0 -31
  175. package/{layers/graphics/editingSupport.d.ts → editing/types.d.ts} +8 -8
  176. package/editing/types.js +2 -0
  177. package/effects/FocusAreas.d.ts +1 -1
  178. package/form/elements/FieldElement.d.ts +1 -1
  179. package/form/elements/GroupElement.d.ts +1 -1
  180. package/form/elements/TextElement.d.ts +1 -1
  181. package/form/elements/inputs/ComboBoxInput.d.ts +1 -1
  182. package/form/elements/inputs/RadioButtonsInput.d.ts +1 -1
  183. package/form/elements/inputs/SwitchInput.d.ts +1 -1
  184. package/geometry/Mesh.d.ts +7 -7
  185. package/geometry/operators/alphaShapeOperator.d.ts +1 -1
  186. package/geometry/operators/areaOperator.d.ts +1 -1
  187. package/geometry/operators/bufferOperator.d.ts +1 -1
  188. package/geometry/operators/centroidOperator.d.ts +1 -1
  189. package/geometry/operators/clipOperator.d.ts +1 -1
  190. package/geometry/operators/containsOperator.d.ts +1 -1
  191. package/geometry/operators/convexHullOperator.d.ts +1 -1
  192. package/geometry/operators/crossesOperator.d.ts +1 -1
  193. package/geometry/operators/cutOperator.d.ts +1 -1
  194. package/geometry/operators/densifyOperator.d.ts +1 -1
  195. package/geometry/operators/differenceOperator.d.ts +1 -1
  196. package/geometry/operators/disjointOperator.d.ts +1 -1
  197. package/geometry/operators/distanceOperator.d.ts +1 -1
  198. package/geometry/operators/extendOperator.js +1 -1
  199. package/geometry/operators/generalizeOperator.d.ts +1 -1
  200. package/geometry/operators/geodesicProximityOperator.d.ts +1 -1
  201. package/geometry/operators/geodeticDistanceOperator.d.ts +1 -1
  202. package/geometry/operators/geodeticUtilsOperator.d.ts +2 -2
  203. package/geometry/operators/graphicBufferOperator.d.ts +1 -1
  204. package/geometry/operators/gx/operatorAlphaShape.js +1 -1
  205. package/geometry/operators/gx/operatorAutoComplete.js +1 -1
  206. package/geometry/operators/gx/operatorConvexHull.js +1 -1
  207. package/geometry/operators/gx/operatorIntegrate.js +1 -1
  208. package/geometry/operators/gx/operatorIntersection.js +1 -1
  209. package/geometry/operators/gx/operatorLabelPoint.js +1 -1
  210. package/geometry/operators/gx/operatorMinimumBoundingCircle.js +1 -1
  211. package/geometry/operators/gx/operatorPolygonOverlay.js +1 -1
  212. package/geometry/operators/gx/operatorSymmetricDifference.js +1 -1
  213. package/geometry/operators/intersectionOperator.d.ts +1 -1
  214. package/geometry/operators/intersectsOperator.d.ts +1 -1
  215. package/geometry/operators/isNearOperator.d.ts +1 -1
  216. package/geometry/operators/json/containsOperator.js +1 -1
  217. package/geometry/operators/json/disjointOperator.js +1 -1
  218. package/geometry/operators/lengthOperator.d.ts +1 -1
  219. package/geometry/operators/locateBetweenOperator.d.ts +1 -1
  220. package/geometry/operators/multiPartToSinglePartOperator.d.ts +1 -1
  221. package/geometry/operators/offsetOperator.d.ts +5 -5
  222. package/geometry/operators/overlapsOperator.d.ts +1 -1
  223. package/geometry/operators/proximityOperator.d.ts +1 -1
  224. package/geometry/operators/reshapeOperator.js +1 -1
  225. package/geometry/operators/simplifyOGCOperator.d.ts +1 -1
  226. package/geometry/operators/simplifyOperator.d.ts +1 -1
  227. package/geometry/operators/support/GeographicTransformation.d.ts +6 -4
  228. package/geometry/operators/support/GeographicTransformation.js +1 -1
  229. package/geometry/operators/support/GeographicTransformationStep.d.ts +5 -3
  230. package/geometry/operators/support/GeographicTransformationStep.js +1 -1
  231. package/geometry/operators/support/Transformation.d.ts +6 -6
  232. package/geometry/operators/support/jsonConverter.js +1 -1
  233. package/geometry/operators/support/projectionTransformation.js +1 -1
  234. package/geometry/operators/symmetricDifferenceOperator.d.ts +1 -1
  235. package/geometry/operators/touchesOperator.d.ts +1 -1
  236. package/geometry/operators/unionOperator.d.ts +1 -1
  237. package/geometry/operators/withinOperator.d.ts +1 -1
  238. package/geometry/support/MeshMaterialMetallicRoughness.d.ts +1 -1
  239. package/geometry/support/zscale.js +1 -1
  240. package/graphic/KnowledgeGraphGraphicOrigin.d.ts +0 -1
  241. package/graphic/LinkChartGraphicOrigin.js +1 -1
  242. package/interfaces.d.ts +60 -60
  243. package/kernel.js +1 -1
  244. package/layers/BuildingSceneLayer.d.ts +4 -4
  245. package/layers/CSVLayer.d.ts +319 -542
  246. package/layers/CSVLayer.js +1 -1
  247. package/layers/CatalogLayer.d.ts +2 -2
  248. package/layers/ElevationLayer.d.ts +1 -1
  249. package/layers/FeatureLayer.d.ts +15 -15
  250. package/layers/FeatureLayer.js +1 -1
  251. package/layers/GeoJSONLayer.d.ts +6 -6
  252. package/layers/GeoRSSLayer.d.ts +1 -1
  253. package/layers/GraphicsLayer.d.ts +2 -2
  254. package/layers/ImageryLayer.d.ts +3 -3
  255. package/layers/ImageryTileLayer.d.ts +2 -2
  256. package/layers/IntegratedMesh3DTilesLayer.d.ts +6 -6
  257. package/layers/IntegratedMeshLayer.d.ts +7 -7
  258. package/layers/MapImageLayer.d.ts +1 -1
  259. package/layers/MediaLayer.d.ts +1 -1
  260. package/layers/OGCFeatureLayer.d.ts +2 -2
  261. package/layers/OrientedImageryLayer.d.ts +6 -6
  262. package/layers/OrientedImageryLayer.js +1 -1
  263. package/layers/PointCloudLayer.d.ts +1 -1
  264. package/layers/SceneLayer.d.ts +7 -7
  265. package/layers/StreamLayer.d.ts +2 -2
  266. package/layers/SubtypeGroupLayer.d.ts +5 -5
  267. package/layers/VectorTileLayer.d.ts +2 -2
  268. package/layers/VideoLayer.d.ts +1 -1
  269. package/layers/VoxelLayer.d.ts +8 -8
  270. package/layers/WFSLayer.d.ts +6 -6
  271. package/layers/catalog/CatalogFootprintLayer.d.ts +1 -1
  272. package/layers/graphics/applyEditsUtils.js +1 -1
  273. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  274. package/layers/graphics/data/QueryEngineResult.js +1 -1
  275. package/layers/graphics/editingSupport.js +1 -1
  276. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  277. package/layers/graphics/sources/OGCFeatureSource.js +1 -1
  278. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  279. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  280. package/layers/graphics/sources/support/QueryTask.js +1 -1
  281. package/layers/mixins/ArcGISImageService.js +1 -1
  282. package/layers/mixins/BlendLayer.d.ts +6 -6
  283. package/layers/mixins/EditBusLayer.d.ts +1 -1
  284. package/layers/orientedImagery/core/ExposurePoint.js +1 -1
  285. package/layers/orientedImagery/transformations/utils.js +1 -1
  286. package/layers/pointCloudFilters/PointCloudReturnFilter.d.ts +1 -1
  287. package/layers/pointCloudFilters/PointCloudValueFilter.d.ts +1 -1
  288. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  289. package/layers/raster/functions/ExtractBandFunction.js +1 -1
  290. package/layers/support/DimensionalDefinition.d.ts +2 -2
  291. package/layers/support/FeatureEffect.d.ts +4 -4
  292. package/layers/support/FeatureFilter.d.ts +17 -17
  293. package/layers/support/FeatureReductionBinning.d.ts +1 -1
  294. package/layers/support/FeatureReductionCluster.d.ts +9 -9
  295. package/layers/support/LabelClass.d.ts +2 -2
  296. package/layers/support/RasterFunction.d.ts +1 -1
  297. package/layers/support/SceneFilter.d.ts +2 -2
  298. package/layers/support/SceneModification.d.ts +3 -3
  299. package/layers/support/SubtypeSublayer.d.ts +5 -5
  300. package/layers/support/arcgisLayerUrl.js +1 -1
  301. package/layers/support/capabilities.js +1 -1
  302. package/layers/support/featurePopupQueryUtils.js +1 -1
  303. package/layers/support/serviceCapabilitiesUtils.js +1 -1
  304. package/networks/support/Circuit.d.ts +11 -2
  305. package/networks/support/CircuitSection.d.ts +3 -2
  306. package/networks/support/TraceConfiguration.d.ts +5 -4
  307. package/networks/support/UNTraceConfiguration.d.ts +6 -5
  308. package/networks/support/jsonTypes.d.ts +305 -0
  309. package/package.json +3 -3
  310. package/popup/content/AttachmentsContent.d.ts +1 -1
  311. package/popup/content/BarChartMediaInfo.d.ts +1 -1
  312. package/popup/content/ColumnChartMediaInfo.d.ts +1 -1
  313. package/popup/content/FieldsContent.d.ts +1 -1
  314. package/popup/content/ImageMediaInfo.d.ts +1 -1
  315. package/popup/content/LineChartMediaInfo.d.ts +1 -1
  316. package/popup/content/MediaContent.d.ts +1 -1
  317. package/popup/content/PieChartMediaInfo.d.ts +1 -1
  318. package/popup/content/RelationshipContent.d.ts +1 -1
  319. package/popup/content/TextContent.d.ts +1 -1
  320. package/portal/schemas/definitions.js +1 -1
  321. package/portal/support/urlUtils.js +1 -1
  322. package/renderers/DotDensityRenderer.d.ts +3 -3
  323. package/renderers/FlowRenderer.d.ts +6 -6
  324. package/renderers/HeatmapRenderer.d.ts +3 -3
  325. package/renderers/PieChartRenderer.d.ts +1 -1
  326. package/renderers/RasterShadedReliefRenderer.d.ts +1 -1
  327. package/renderers/Renderer.d.ts +2 -2
  328. package/renderers/SimpleRenderer.d.ts +1 -1
  329. package/renderers/VectorFieldRenderer.d.ts +1 -1
  330. package/renderers/mixins/VisualVariablesMixin.d.ts +8 -8
  331. package/rest/featureService/FeatureService.js +1 -1
  332. package/rest/featureService/types.d.ts +7 -1
  333. package/rest/query/operations/editsZScale.js +1 -1
  334. package/rest/query/operations/pbfFlatFeatureSet.js +1 -1
  335. package/rest/query/support/AttachmentInfo.d.ts +1 -1
  336. package/rest/support/AutoIntervalBinParameters.d.ts +1 -1
  337. package/rest/support/DateBinParameters.d.ts +1 -1
  338. package/rest/support/FixedBoundariesBinParameters.d.ts +1 -1
  339. package/rest/support/FixedIntervalBinParameters.d.ts +1 -1
  340. package/rest/support/Query.d.ts +3 -2
  341. package/rest/types.d.ts +1 -3
  342. package/smartMapping/labels/clusters.d.ts +1 -1
  343. package/smartMapping/popup/clusters.d.ts +2 -2
  344. package/smartMapping/popup/templates.d.ts +1 -1
  345. package/smartMapping/raster/renderers/flow.d.ts +2 -2
  346. package/smartMapping/renderers/color.d.ts +12 -12
  347. package/smartMapping/renderers/predominance.d.ts +3 -3
  348. package/smartMapping/renderers/relationship.d.ts +15 -15
  349. package/smartMapping/renderers/univariateColorSize.d.ts +4 -4
  350. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  351. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  352. package/smartMapping/support/utils.js +1 -1
  353. package/smartMapping/symbology/color.d.ts +4 -4
  354. package/smartMapping/symbology/flow.d.ts +2 -2
  355. package/smartMapping/symbology/types.d.ts +18 -18
  356. package/support/revision.js +1 -1
  357. package/symbols/CIMSymbol.d.ts +1 -1
  358. package/symbols/FillSymbol3DLayer.d.ts +3 -3
  359. package/symbols/IconSymbol3DLayer.d.ts +1 -1
  360. package/symbols/LabelSymbol3D.d.ts +2 -2
  361. package/symbols/LineStyleMarker3D.d.ts +7 -7
  362. package/symbols/LineSymbol3D.d.ts +2 -2
  363. package/symbols/LineSymbol3DLayer.d.ts +7 -7
  364. package/symbols/LineSymbolMarker.d.ts +6 -6
  365. package/symbols/MarkerSymbol.d.ts +1 -1
  366. package/symbols/MeshSymbol3D.d.ts +2 -2
  367. package/symbols/ObjectSymbol3DLayer.d.ts +1 -1
  368. package/symbols/PathSymbol3DLayer.d.ts +14 -14
  369. package/symbols/PictureFillSymbol.d.ts +1 -1
  370. package/symbols/PictureMarkerSymbol.d.ts +1 -1
  371. package/symbols/PointSymbol3D.d.ts +3 -3
  372. package/symbols/PolygonSymbol3D.d.ts +8 -26
  373. package/symbols/PolygonSymbol3D.js +1 -1
  374. package/symbols/SimpleFillSymbol.d.ts +8 -8
  375. package/symbols/SimpleLineSymbol.d.ts +20 -20
  376. package/symbols/SimpleMarkerSymbol.d.ts +7 -7
  377. package/symbols/Symbol3DLayer.d.ts +16 -16
  378. package/symbols/TextSymbol.d.ts +1 -1
  379. package/symbols/TextSymbol3DLayer.d.ts +1 -1
  380. package/symbols/WaterSymbol3DLayer.d.ts +3 -3
  381. package/symbols/WebStyleSymbol.d.ts +1 -1
  382. package/symbols/callouts/Callout3D.d.ts +1 -1
  383. package/symbols/callouts/LineCallout3D.d.ts +3 -3
  384. package/symbols/cim/CIMCursor.js +1 -1
  385. package/symbols/cim/CIMSymbolHelper.js +1 -1
  386. package/symbols/cim/cimAnalyzer.js +1 -1
  387. package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
  388. package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
  389. package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
  390. package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
  391. package/symbols/cim/placements/PlacementOnLine.js +1 -1
  392. package/symbols/cim/placements/PlacementOnVertices.js +1 -1
  393. package/symbols/cim/types.d.ts +30 -23
  394. package/symbols/edges/Edges3D.d.ts +1 -1
  395. package/symbols/edges/SolidEdges3D.d.ts +1 -1
  396. package/symbols/patterns/LineStylePattern3D.d.ts +11 -11
  397. package/symbols/patterns/StylePattern3D.d.ts +8 -8
  398. package/symbols/support/ElevationInfo.d.ts +2 -2
  399. package/symbols/support/IconSymbol3DLayerResource.d.ts +6 -6
  400. package/symbols/support/ObjectSymbol3DLayerResource.d.ts +7 -7
  401. package/symbols/support/Symbol3DEmissive.d.ts +24 -13
  402. package/symbols/support/Symbol3DVerticalOffset.d.ts +2 -2
  403. package/symbols/support/previewSymbol3D.js +1 -1
  404. package/versionManagement/VersionManagementService.d.ts +3 -2
  405. package/views/2d/analysis/DistanceMeasurement/utils.js +1 -1
  406. package/views/2d/engine/webgl/shaderGraph/techniques/GraphicInstanceStore.js +1 -1
  407. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AAnimatedPolyShader.js +1 -1
  408. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedFillShader.js +1 -1
  409. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedPolyMeshWriters.js +1 -1
  410. package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
  411. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  412. package/views/2d/layers/BaseLayerViewGL2D.d.ts +1 -1
  413. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  414. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  415. package/views/2d/types.d.ts +3 -3
  416. package/views/3d/environment/CloudyWeather.d.ts +1 -1
  417. package/views/3d/environment/Environment.d.ts +4 -4
  418. package/views/3d/environment/FoggyWeather.d.ts +1 -1
  419. package/views/3d/environment/RainyWeather.d.ts +1 -1
  420. package/views/3d/environment/SnowyWeather.d.ts +1 -1
  421. package/views/3d/environment/SunLighting.d.ts +1 -1
  422. package/views/3d/environment/SunnyWeather.d.ts +1 -1
  423. package/views/3d/environment/VirtualLighting.d.ts +1 -1
  424. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  425. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  426. package/views/3d/support/MemoryController.js +1 -1
  427. package/views/3d/support/orientedBoundingBox.js +1 -1
  428. package/views/3d/webgl/RenderNode.d.ts +46 -57
  429. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  430. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  431. package/views/3d/webgl.d.ts +8 -5
  432. package/views/DOMContainer.js +1 -1
  433. package/views/Magnifier.d.ts +3 -3
  434. package/views/MapView.d.ts +7 -7
  435. package/views/SceneView.d.ts +34 -37
  436. package/views/View.d.ts +2 -2
  437. package/views/analysis/ElevationProfile/ElevationProfileChart.js +1 -1
  438. package/views/draw/DrawOperation.js +1 -1
  439. package/views/draw/DrawTool.js +1 -1
  440. package/views/draw/plugins/BezierSegmentPlugin.js +1 -1
  441. package/views/draw/plugins/CircularArcSegmentPlugin.js +1 -1
  442. package/views/draw/plugins/FreehandSegmentPlugin.js +1 -1
  443. package/views/draw/plugins/MultipointPlugin.js +1 -1
  444. package/views/draw/plugins/PointPlugin.js +1 -1
  445. package/views/draw/plugins/PolygonPlugin.js +1 -1
  446. package/views/draw/plugins/PolylinePlugin.js +1 -1
  447. package/views/draw/plugins/ShapePlugin.js +1 -1
  448. package/views/draw/support/managers/TooltipManager.js +1 -1
  449. package/views/interactive/sketch/SketchLabelOptions.d.ts +1 -1
  450. package/views/interactive/sketch/SketchTooltipOptions.d.ts +1 -1
  451. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  452. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  453. package/views/interactive/snapping/SnappingOptions.d.ts +7 -7
  454. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
  455. package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
  456. package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
  457. package/views/layers/FeatureLikeLayerView.js +1 -1
  458. package/views/support/HighlightOptions.d.ts +1 -1
  459. package/views/support/flow/dataUtils.js +1 -1
  460. package/views/ui/DefaultUI.d.ts +2 -2
  461. package/webscene/Environment.d.ts +10 -10
  462. package/webscene/Glow.d.ts +13 -2
  463. package/webscene/background/ColorBackground.d.ts +1 -1
  464. package/webscene/spec-certification/spec.js +1 -1
  465. package/widgets/AreaMeasurement2D.d.ts +1 -1
  466. package/widgets/AreaMeasurement3D.d.ts +2 -2
  467. package/widgets/Attachments.d.ts +1 -1
  468. package/widgets/Attribution.d.ts +1 -1
  469. package/widgets/BasemapGallery.d.ts +1 -1
  470. package/widgets/BasemapLayerList.d.ts +3 -3
  471. package/widgets/BasemapToggle.d.ts +1 -1
  472. package/widgets/Bookmarks/BookmarksVisibleElements.d.ts +1 -1
  473. package/widgets/Bookmarks.d.ts +2 -2
  474. package/widgets/BuildingExplorer.d.ts +1 -1
  475. package/widgets/CatalogLayerList.d.ts +3 -3
  476. package/widgets/Compass.d.ts +2 -2
  477. package/widgets/CoordinateConversion.d.ts +1 -1
  478. package/widgets/Daylight.d.ts +5 -5
  479. package/widgets/DirectLineMeasurement3D.d.ts +2 -2
  480. package/widgets/Directions/DirectionsViewModel.d.ts +12 -0
  481. package/widgets/Directions/DirectionsViewModel.js +1 -1
  482. package/widgets/Directions.d.ts +4 -4
  483. package/widgets/Directions.js +1 -1
  484. package/widgets/DistanceMeasurement2D.d.ts +1 -1
  485. package/widgets/Editor/CreateFeaturesWorkflow.d.ts +1 -1
  486. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  487. package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
  488. package/widgets/Editor.d.ts +2 -2
  489. package/widgets/ElevationProfile/ElevationProfileLineGround.d.ts +1 -1
  490. package/widgets/ElevationProfile/ElevationProfileLineInput.d.ts +1 -1
  491. package/widgets/ElevationProfile/ElevationProfileLineView.d.ts +1 -1
  492. package/widgets/ElevationProfile.d.ts +3 -3
  493. package/widgets/Expand.d.ts +1 -1
  494. package/widgets/FeatureForm.d.ts +1 -1
  495. package/widgets/FeatureTable/ActionColumn.d.ts +1 -1
  496. package/widgets/FeatureTable/AttachmentsColumn.d.ts +1 -1
  497. package/widgets/FeatureTable/FeatureTableViewModel.d.ts +3 -3
  498. package/widgets/FeatureTable/Grid/GroupColumn.d.ts +1 -1
  499. package/widgets/FeatureTable/RelationshipColumn.d.ts +1 -1
  500. package/widgets/FeatureTable/VisibleElements.d.ts +1 -1
  501. package/widgets/FeatureTable.d.ts +9 -9
  502. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.d.ts +5 -5
  503. package/widgets/FeatureTemplates.d.ts +8 -8
  504. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  505. package/widgets/Features/FeaturesVisibleElements.d.ts +2 -2
  506. package/widgets/Features.d.ts +1 -1
  507. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  508. package/widgets/Histogram.d.ts +2 -2
  509. package/widgets/HistogramRangeSlider.d.ts +1 -1
  510. package/widgets/Home/HomeViewModel.d.ts +2 -1
  511. package/widgets/Home/HomeViewModel.js +1 -1
  512. package/widgets/Home.d.ts +1 -1
  513. package/widgets/Home.js +1 -1
  514. package/widgets/LayerList.d.ts +4 -4
  515. package/widgets/Legend.d.ts +8 -8
  516. package/widgets/LineOfSight.d.ts +1 -1
  517. package/widgets/Locate.d.ts +2 -2
  518. package/widgets/Measurement.d.ts +1 -1
  519. package/widgets/NavigationToggle/NavigationToggleViewModel.d.ts +1 -1
  520. package/widgets/NavigationToggle.d.ts +3 -3
  521. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  522. package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
  523. package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
  524. package/widgets/OrientedImageryViewer/components/ImageLocationViewModel.js +1 -1
  525. package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
  526. package/widgets/OrientedImageryViewer/constants.js +1 -1
  527. package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
  528. package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
  529. package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
  530. package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
  531. package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
  532. package/widgets/OrientedImageryViewer/services/TransformationService.js +1 -1
  533. package/widgets/OrientedImageryViewer/types.js +1 -1
  534. package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
  535. package/widgets/OrientedImageryViewer.js +1 -1
  536. package/widgets/Popup/PopupVisibleElements.d.ts +2 -2
  537. package/widgets/Popup.d.ts +5 -5
  538. package/widgets/Print/CustomTemplate.d.ts +1 -1
  539. package/widgets/Print/TemplateOptions.d.ts +4 -4
  540. package/widgets/ScaleRangeSlider.d.ts +1 -1
  541. package/widgets/Search/SearchViewModel.d.ts +4 -4
  542. package/widgets/Search.d.ts +5 -5
  543. package/widgets/ShadowCast.d.ts +3 -3
  544. package/widgets/Sketch/SketchViewModel.d.ts +39 -39
  545. package/widgets/Sketch/SketchViewModel.js +1 -1
  546. package/widgets/Sketch/support/PluginManager.js +1 -1
  547. package/widgets/Sketch.d.ts +43 -43
  548. package/widgets/Slice.d.ts +2 -2
  549. package/widgets/Slider/SliderViewModel.d.ts +2 -2
  550. package/widgets/Slider.d.ts +9 -9
  551. package/widgets/Swipe/SwipeViewModel.d.ts +1 -1
  552. package/widgets/Swipe.d.ts +2 -2
  553. package/widgets/TableList.d.ts +1 -1
  554. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +8 -8
  555. package/widgets/TimeSlider/types.d.ts +1 -1
  556. package/widgets/TimeSlider.d.ts +11 -11
  557. package/widgets/Track.d.ts +2 -2
  558. package/widgets/UtilityNetworkAssociations.d.ts +3 -3
  559. package/widgets/UtilityNetworkTrace.d.ts +4 -4
  560. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  561. package/widgets/ValuePicker.d.ts +5 -5
  562. package/widgets/VideoPlayer.d.ts +1 -1
  563. package/widgets/smartMapping/ClassedColorSlider.d.ts +1 -1
  564. package/widgets/smartMapping/ClassedSizeSlider.d.ts +1 -1
  565. package/widgets/smartMapping/ColorSizeSlider.d.ts +2 -2
  566. package/widgets/smartMapping/ColorSlider.d.ts +1 -1
  567. package/widgets/smartMapping/HeatmapSlider.d.ts +1 -1
  568. package/widgets/smartMapping/OpacitySlider.d.ts +1 -1
  569. package/widgets/smartMapping/SizeSlider.d.ts +1 -1
  570. package/widgets/smartMapping/SmartMappingSliderBase.d.ts +4 -4
  571. package/widgets/smartMapping/SmartMappingSliderViewModel.d.ts +6 -6
  572. package/widgets/support/GridControls.d.ts +1 -1
  573. package/widgets/support/SnappingControls/VisibleElements.d.ts +1 -1
  574. package/widgets/support/SnappingControls.d.ts +6 -6
  575. package/assets/esri/core/workers/chunks/0184b4c0c92c76c60ab2.js +0 -1
  576. package/assets/esri/core/workers/chunks/08616877b58b518e7461.js +0 -1
  577. package/assets/esri/core/workers/chunks/089cef7124173a5cd5f9.js +0 -1
  578. package/assets/esri/core/workers/chunks/0baa0d66003d23cc76a7.js +0 -1
  579. package/assets/esri/core/workers/chunks/0baf2cf9d8998045a605.js +0 -1
  580. package/assets/esri/core/workers/chunks/0bf742d48f434c4c575f.js +0 -1
  581. package/assets/esri/core/workers/chunks/0cc68540194bd9f7aa3c.js +0 -1
  582. package/assets/esri/core/workers/chunks/0e216f0075fd531c3a2b.js +0 -1
  583. package/assets/esri/core/workers/chunks/1219b588f983b4f35033.js +0 -1
  584. package/assets/esri/core/workers/chunks/13e913aa5f5113fceb16.js +0 -1
  585. package/assets/esri/core/workers/chunks/15ba0296403dd4152b88.js +0 -1
  586. package/assets/esri/core/workers/chunks/15e5471277a48f482383.js +0 -1
  587. package/assets/esri/core/workers/chunks/16abc548724e428c325a.js +0 -1
  588. package/assets/esri/core/workers/chunks/1d124a55f6804be19e09.js +0 -1
  589. package/assets/esri/core/workers/chunks/1ede5fa7a16839ed9444.js +0 -1
  590. package/assets/esri/core/workers/chunks/25267253ba578eba38cf.js +0 -1
  591. package/assets/esri/core/workers/chunks/27aa21da934ecaca381a.js +0 -1
  592. package/assets/esri/core/workers/chunks/27d1f8279df34d8b15b5.js +0 -1
  593. package/assets/esri/core/workers/chunks/2907e9a7216b5a29729b.js +0 -1
  594. package/assets/esri/core/workers/chunks/2b0891ba57ba66b913ce.js +0 -1
  595. package/assets/esri/core/workers/chunks/2bb7bb7901bd343201fc.js +0 -1
  596. package/assets/esri/core/workers/chunks/2c7e5b78d94e5850537b.js +0 -1
  597. package/assets/esri/core/workers/chunks/2d52b137ee64469a46b2.js +0 -1
  598. package/assets/esri/core/workers/chunks/2eb7df99170b7bb2a914.js +0 -1
  599. package/assets/esri/core/workers/chunks/36b8dd092697ef544f40.js +0 -1
  600. package/assets/esri/core/workers/chunks/395ee51a863757ea8124.js +0 -1
  601. package/assets/esri/core/workers/chunks/3b0cfe3db8d90e02d6c6.js +0 -1
  602. package/assets/esri/core/workers/chunks/454150571b5b664b576a.js +0 -1
  603. package/assets/esri/core/workers/chunks/4740d319f233b7f528fe.js +0 -1
  604. package/assets/esri/core/workers/chunks/4742a8c19b86a5f859f0.js +0 -1
  605. package/assets/esri/core/workers/chunks/49d58bacb5b397246978.js +0 -1
  606. package/assets/esri/core/workers/chunks/4ba4aa6c75e3f8950e65.js +0 -1
  607. package/assets/esri/core/workers/chunks/59f955c7d6b0589e7cc6.js +0 -1
  608. package/assets/esri/core/workers/chunks/5a347b1d87eb6f710136.js +0 -1
  609. package/assets/esri/core/workers/chunks/5b97cdeb5949822fbef3.js +0 -1
  610. package/assets/esri/core/workers/chunks/5cd614f50e8925eeeaf4.js +0 -1
  611. package/assets/esri/core/workers/chunks/620d7cd0b0885122aa0f.js +0 -1
  612. package/assets/esri/core/workers/chunks/6321680c8070dffa3b6c.js +0 -1
  613. package/assets/esri/core/workers/chunks/7017c2e621236c7a7da4.js +0 -1
  614. package/assets/esri/core/workers/chunks/731e6eaad319865fb780.js +0 -1
  615. package/assets/esri/core/workers/chunks/7407a1e0cef508116a0b.js +0 -1
  616. package/assets/esri/core/workers/chunks/752c43cdd38dfde912d2.js +0 -1
  617. package/assets/esri/core/workers/chunks/78936c591fd49ff955a9.js +0 -1
  618. package/assets/esri/core/workers/chunks/796f5265747ce8be910e.js +0 -1
  619. package/assets/esri/core/workers/chunks/7b7288c431933a75daca.js +0 -1
  620. package/assets/esri/core/workers/chunks/7e6309bfed6692e8d2d7.js +0 -2
  621. package/assets/esri/core/workers/chunks/7f60309d211c49721265.js +0 -1
  622. package/assets/esri/core/workers/chunks/7f9b0ef7f9b3f3fd3df9.js +0 -1
  623. package/assets/esri/core/workers/chunks/8177e95596b71bf020aa.js +0 -1
  624. package/assets/esri/core/workers/chunks/9bb04d5f2e6f6e4585a0.js +0 -1
  625. package/assets/esri/core/workers/chunks/a03196e6579d738251fc.js +0 -1
  626. package/assets/esri/core/workers/chunks/a0b715cf03895082b773.js +0 -1
  627. package/assets/esri/core/workers/chunks/a115984b794a7f90b2c0.js +0 -1
  628. package/assets/esri/core/workers/chunks/a5e91cf150f6cf6a5d2a.js +0 -1
  629. package/assets/esri/core/workers/chunks/a60a84c8c45f6d03443f.js +0 -1
  630. package/assets/esri/core/workers/chunks/aec827b50df6edc54808.js +0 -1
  631. package/assets/esri/core/workers/chunks/aef2832902b270f1a594.js +0 -1
  632. package/assets/esri/core/workers/chunks/b0b24fb60a21b995b348.js +0 -1
  633. package/assets/esri/core/workers/chunks/bb830d93e97dceac350f.js +0 -1
  634. package/assets/esri/core/workers/chunks/bd05e68b00b9878d0266.js +0 -1
  635. package/assets/esri/core/workers/chunks/bd12ca39198e6efbefbb.js +0 -1
  636. package/assets/esri/core/workers/chunks/bdd246cc50ccd5c10987.js +0 -1
  637. package/assets/esri/core/workers/chunks/c080e189764d8bb9cf25.js +0 -1
  638. package/assets/esri/core/workers/chunks/c15f0769a64863cccef0.js +0 -1
  639. package/assets/esri/core/workers/chunks/c516b185b099bf69c0ed.js +0 -1
  640. package/assets/esri/core/workers/chunks/c53048b0f153b251d792.js +0 -1
  641. package/assets/esri/core/workers/chunks/c693e8eb96ab8a4b9cbe.js +0 -1
  642. package/assets/esri/core/workers/chunks/c9babe86c00ae69e63ee.js +0 -2
  643. package/assets/esri/core/workers/chunks/cf09408cb7729126caae.js +0 -1
  644. package/assets/esri/core/workers/chunks/d9c1e1ec5c56f09fb82f.js +0 -1
  645. package/assets/esri/core/workers/chunks/e0565849281ffbe8269e.js +0 -1
  646. package/assets/esri/core/workers/chunks/e1ba6f857ca12f154e77.js +0 -1
  647. package/assets/esri/core/workers/chunks/e4f1e584f89ffb86206b.js +0 -1
  648. package/assets/esri/core/workers/chunks/e60684918100666bb892.js +0 -1
  649. package/assets/esri/core/workers/chunks/e94448b371cd17d7a472.js +0 -1
  650. package/assets/esri/core/workers/chunks/ed78e19b1e400c0db309.js +0 -1
  651. package/assets/esri/core/workers/chunks/ede1d1cc2f315a34f4ca.js +0 -1
  652. package/assets/esri/core/workers/chunks/f17a301516f008abef3a.js +0 -1
  653. package/assets/esri/core/workers/chunks/fc98b8351be567d3eb62.js +0 -1
  654. package/assets/esri/core/workers/chunks/fd5a5b05a1551cdb8c87.js +0 -1
  655. package/assets/esri/core/workers/chunks/fda0f4469d9cda637af4.js +0 -1
  656. package/assets/esri/core/workers/chunks/fe52117fe6982046c9e3.js +0 -1
  657. package/assets/esri/core/workers/chunks/ff961bb6d29ab3fe129d.js +0 -1
  658. /package/assets/esri/core/workers/chunks/{2762149a922275136171.js.LICENSE.txt → 112227b862b935123ddf.js.LICENSE.txt} +0 -0
  659. /package/assets/esri/core/workers/chunks/{72acfb74fd9ab9bae923.js.LICENSE.txt → 53e348f5585fa8c53fe8.js.LICENSE.txt} +0 -0
  660. /package/assets/esri/core/workers/chunks/{7e6309bfed6692e8d2d7.js.LICENSE.txt → b397a9f87082705301a4.js.LICENSE.txt} +0 -0
  661. /package/assets/esri/core/workers/chunks/{91858b02da40ff251ab2.js.LICENSE.txt → baad696d84ab78b3d00e.js.LICENSE.txt} +0 -0
  662. /package/assets/esri/core/workers/chunks/{c9babe86c00ae69e63ee.js.LICENSE.txt → edaae0fc63d16b0f675d.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{7861(e,t,r){r.d(t,{L:()=>n});var a=r(11254);async function n(e,t){return(await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}})).data}},23154(e,t,r){r.d(t,{K:()=>p,Q:()=>s});var a=r(77548),n=r(7861);const o=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,t){const{loadContext:r,...o}=t||{},s=r?await r.fetchServiceMetadata(e,o):await(0,n.L)(e,o),i=(0,a.G$)();f(s),c(s);const l={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return l;const u=`${(0,a.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,o):await(0,n.L)(u,o);return f(y),c(y),l.layersJSON={layers:y.layers,tables:y.tables},l}function i(e){const{type:t}=e;return!!t&&o.has(t)}function l(e){return"Table"===e.type}function c(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function f(e){e.layers?.forEach(u),e.tables?.forEach(y)}function p(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},26121(e,t,r){r.d(t,{ci:()=>s,dL:()=>o});var a=r(49186),n=(r(77548),r(59923));async function o(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function s(e,t,r){let o=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(o=o.concat(e.blockedRelativeUrls.map(e=>(0,n.GL)("url",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(o=o.filter(({name:e})=>!(n.MG.has(e)||t.includes(e)))),a&&(o=o.filter(e=>"web-document-write:property-required"!==e.name))}if(o.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:o})}},33359(e,t,r){r.d(t,{save:()=>N,saveAs:()=>R});var a=r(4576),n=(r(49186),r(71530)),o=r(60694),s=r(23154),i=r(77548),l=r(88788),c=r(10407);const u="Feature Service",y="feature-layer-utils",f=`${y}-save`,p=`${y}-save-as`;function d(e){return{isValid:(0,i.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e,t){const r=(0,l.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function h(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)w(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function w(e,t){return e.isTable}function b(e){return h([e])}async function v(e,t){return/\/\d+\/?$/.test(e.url)?b(t[0]):async function(e,t){if(e.reverse(),!t)return h(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a)&&!(0,c.Y)(e,c.mm.HOSTED_SERVICE))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:i}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:i}=t,{serviceJSON:l,layersJSON:c}=await(0,s.Q)(n,{customParameters:o,apiKey:i}),u=L(e.layers,l.layers,a),y=L(e.tables,l.tables,a);e.layers=u.itemResources,e.tables=y.itemResources;const f=[...u.added,...y.added],p=c?[...c.layers,...c.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach(({type:e})=>{switch((0,s.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(1214),r.e(893),r.e(3636),r.e(1072)]).then(r.bind(r,83508)).then(e=>e.default));break;case"FeatureLayer":t.push(Promise.all([r.e(9953),r.e(1214),r.e(1017),r.e(9784),r.e(3447)]).then(r.bind(r,29784)).then(e=>e.default));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(9953),r.e(1214),r.e(1017),r.e(9784),r.e(8599)]).then(r.bind(r,16852)).then(e=>e.default))}});const a=await Promise.all(t),n=new Map;return e.forEach(({type:e},t)=>{n.set(e,a[t])}),n}(t),i=t.map(({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}));await Promise.allSettled(i.map(e=>e.load())),i.forEach(t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};I(t,"ArcGISFeatureLayer"===t.operationalLayerType?o:{...o,layerType:t.operationalLayerType},e)})}(e,f,n,p)}(a,{url:n??"",customParameters:o,apiKey:i},t.map(e=>e.layer.layerId)),a}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(g),t.slice().sort(g))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function g(e,t){return e<t?-1:e>t?1:0}function L(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;return o.forEach(({id:t})=>{e.push({id:t})}),{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function I(e,t,r){e.isTable?P(r.tables,t):P(r.layers,t)}function P(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function T(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length);case"CatalogLayer":return!!e.footprintLayer?.charts?.length}}function O(e,t){let r=0,a=0,n=0,o=0;for(const e of[...t.layers,...t.tables])if(T(e)&&o++,"layerType"in e)switch(e.layerType){case"OrientedImageryLayer":r++;break;case"SubtypeGroupLayer":a++;break;case"SubtypeGroupTable":n++}(0,c.Sm)(e,c.mm.ORIENTED_IMAGERY_LAYER,r>0),(0,c.Sm)(e,c.mm.SUBTYPE_GROUP_LAYER,a>0),(0,c.Sm)(e,c.mm.SUBTYPE_GROUP_TABLE,n>0),(0,c.Sm)(e,c.mm.CHARTS,o>0)}async function A(e,t,r){O(t,r)}async function E(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:l}=e,u=(0,o.qg)(a);t.url=("FeatureServer"===u?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,l||null==i||(t.extent=await(0,c.sQ)(i)),function(e,t,r){(0,c.OM)(t,c.mm.METADATA),(0,c.Sm)(t,c.mm.MULTI_LAYER,e.length>1),(0,c.Sm)(t,c.mm.SINGLE_LAYER,1===e.length),(0,c.Sm)(t,c.mm.TABLE,r.tables.length>0&&0===r.layers.length),O(t,r)}([e],t,r)}async function N(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:d,createJSONContext:t=>m(t,e),createItemData:(e,t)=>v(t,[e]),errorNamePrefix:f,setItemProperties:A},t)}async function R(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:d,createJSONContext:t=>m(t,e),createItemData:(e,t)=>Promise.resolve(b(e)),errorNamePrefix:p,newItem:t,setItemProperties:E},r)}},46130(e,t,r){r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},71530(e,t,r){r.d(t,{UN:()=>b,Uh:()=>v});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),c=r(26121);async function u(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function f(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function p(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));f({...e,item:n})}function d(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),f({...e,item:a}),a}function m(e){return(0,i.m)(e,"portal-item")}async function h(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,c.ci)(t,{errorName:"layer-write:unsupported"},r),a}function w(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await u(e),p(e);const c=r.portalItem,y=o?o(c):m(c),f=await h(r,y,{...t,supplementalUnsupportedErrors:l}),d=await a({layer:r,layerJSON:f},c);return await(s?.(r,c,d)),w(c),await c.update({data:d}),(0,n.v)(y),await(i?.(c,y)),c}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await u(e);const c=d(e),y=o?o(c):m(c),f=await h(r,y,{...t,supplementalUnsupportedErrors:l}),p=await a({layer:r,layerJSON:f},c);return await s(r,c,p),w(c),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(c,p,t),r.portalItem=c,(0,n.v)(y),await(i?.(c,y)),c}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},88788(e,t,r){r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3212],{60999(t,e,r){r.d(e,{DZ:()=>y,Ke:()=>f,Tj:()=>c,UT:()=>S,aD:()=>m,jJ:()=>u});var n=r(5482),a=r(69622),s=r(97768),i=r(74887),l=r(10107),o=r(64108);function u(t,e,r){return(0,i.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function c(t,e,r){return(await(0,i.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function h(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function f(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return h(await t)}catch(t){return p(t)}}async function y(t){try{return h(await t)}catch(t){return(0,i.QP)(t),p(t)}}function S(t,e){return new d(t,e)}let d=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,s.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=h(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,i.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,s.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,l.MZ)()],d.prototype,"value",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"error",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"finished",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"promise",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"_result",void 0),d=(0,n.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],d);class m{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}}},69540(t,e,r){r.d(e,{OU:()=>c,Pw:()=>h});var n=r(5482),a=r(69622),s=(r(44208),r(4718)),i=(r(53966),r(97768)),l=r(88620),o=r(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const r=t;let a=class extends r{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,l.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const r=e.metadata,n=e.store,a={},o=new Map;for(const e in r){const i=r[e],l=n?.originOf(e),u=i.clonable;if(i.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[e];let h=null;if("function"==typeof u)h=u(c,t);else if("reference"===u)h=c;else if(h=(0,s.TU)(c,t),null!=c&&null==h)continue;0===l?o.set(e,h):a[e]=h}const u=new(0,Object.getPrototypeOf(this).constructor)(a);if(o.size){const t=(0,l.oY)(u)?.store;if(t)for(const[e,r]of o)t.set(e,r,0)}return u}};return a=(0,n.Cg)([(0,o.$)("esri.core.Clonable")],a),a},h=c(a.A)},85978(t,e,r){r.d(e,{A:()=>i});var n=r(87449),a=r(11221),s=r(33325);class i extends a.t1{constructor(t){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=t.parentfeatureset,this._databaseType=0}async _queryAll(){return a.An.features}async query(t){return a.An}async queryStat(t){return await this._manualStat(t.stat,t.field,t.limit??s.gO,t.abortSignal)}async canQueryAggregate(t){return!1}async queryAggregate(t){throw new n.dr("NeverReach")}async queryAttachments(){return[]}}},87817(t,e,r){r.r(e),r.d(e,{registerFunctions:()=>S});var n=r(85935),a=r(78502),s=r(78878),i=r(48938),l=r(87449),o=r(11221),u=r(33325),c=r(71163),h=r(90634);class p extends o.t1{constructor(t){super(),this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._maxProcessing=40,this._parent=t.parentfeatureset,this._relation=t.relation,this._relationString=t.relationString??"",this._relationGeom=t.relationGeom}get _spatialFilter(){return{relation:"esriSpatialRelRelation"!==this._relation?this._relation:`esriSpatialRelRelation:${this._relationString}`,geometry:this._relationGeom}}async _queryAll(){return(await this.query({abortSignal:i._})).features}async query(t){await this._ensureLoaded();const e=await this._parent.query({...t,spatialFilter:this._spatialFilter});return(0,l.dZ)(t.abortSignal),{...e,spatialFilterApplied:null==t.spatialFilter,features:e.spatialFilterApplied?e.features:this._applySpatialFilter(e.features,t.abortSignal)}}async*_applySpatialFilter(t,e){for await(const r of t){(0,l.dZ)(e);const t=[];for(const e of r)await this._executeSpatialRelationTest(e)&&t.push(e);t.length>0&&(yield t)}}async queryStat(t){if(null!=t.spatialFilter)return{calculated:!1};const e=await this._parent.queryStat({...t,spatialFilter:this._spatialFilter});return e.calculated?e:null==t.where&&null==t.spatialFilter?this._manualStat(t.stat,t.field,t.limit??u.gO,t.abortSignal):{calculated:!1}}async canQueryAggregate(t){return null==t.spatialFilter&&this._parent.canQueryAggregate({...t,spatialFilter:this._spatialFilter})}async queryAggregate(t){if(null!=t.spatialFilter)throw new l.dr("NeverReach");return this._parent.queryAggregate({...t,spatialFilter:this._spatialFilter})}async _executeSpatialRelationTest(t){if(null==t.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const e=(0,a.Yc)(this._relationGeom),r=(0,h.HA)(t.geometry);return null!=e&&null!=r&&(0,c.C)("intersects",[e.toJSON(),r])}case"esriSpatialRelIntersects":return(0,c.C)("intersects",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelContains":return(0,c.C)("contains",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelOverlaps":return(0,c.C)("overlaps",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelWithin":return(0,c.C)("within",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelTouches":return(0,c.C)("touches",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelCrosses":return(0,c.C)("crosses",[this._relationGeom.toJSON(),t.geometry]);case"esriSpatialRelRelation":return(0,c.C)("relate",[this._relationGeom.toJSON(),t.geometry,this._relationString]);default:return this._relation,!1}}getFieldsIndex(){return this._parent.getFieldsIndex()}}var f=r(85978);function y(t){return async(e,r,i)=>{if((0,s.B)(i,2,2,e,r),null===(i=(0,s.C)(i))[0]&&null===i[1])return!1;if((0,s.m)(i[0])){if((0,s.h)(i[1]))return new p({parentfeatureset:i[0],relation:t,relationGeom:i[1]});if(null===i[1])return new f.A({parentfeatureset:i[0]});throw new n.D$(e,"InvalidParameter",r)}if((0,s.h)(i[0])){if((0,s.h)(i[1])){switch(t){case"esriSpatialRelEnvelopeIntersects":{const t=(0,a.Yc)(i[0]),e=(0,a.Yc)(i[1]);return null!=t&&null!=e&&(0,c.C)("intersects",[t.toJSON(),e.toJSON()])}case"esriSpatialRelIntersects":return(0,c.C)("intersects",[i[0].toJSON(),i[1].toJSON()]);case"esriSpatialRelContains":return(0,c.C)("contains",[i[0].toJSON(),i[1].toJSON()]);case"esriSpatialRelOverlaps":return(0,c.C)("overlaps",[i[0].toJSON(),i[1].toJSON()]);case"esriSpatialRelWithin":return(0,c.C)("within",[i[0].toJSON(),i[1].toJSON()]);case"esriSpatialRelTouches":return(0,c.C)("touches",[i[0].toJSON(),i[1].toJSON()]);case"esriSpatialRelCrosses":return(0,c.C)("crosses",[i[0].toJSON(),i[1].toJSON()])}throw new n.D$(e,"InvalidParameter",r)}if((0,s.m)(i[1]))return new p({parentfeatureset:i[1],relation:t,relationGeom:i[0]});if(null===i[1])return!1;throw new n.D$(e,"InvalidParameter",r)}if(null===i[0]){if((0,s.m)(i[1]))return new f.A({parentfeatureset:i[1]});if((0,s.h)(i[1])||null===i[1])return!1}throw new n.D$(e,"InvalidParameter",r)}}function S(t){"async"===t.mode&&(t.functions.intersects=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelIntersects"))},t.functions.envelopeintersects=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelEnvelopeIntersects"))},t.signatures.push({name:"envelopeintersects",min:2,max:2}),t.functions.contains=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelContains"))},t.functions.overlaps=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelOverlaps"))},t.functions.within=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelWithin"))},t.functions.touches=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelTouches"))},t.functions.crosses=function(e,r){return t.standardFunctionAsync(e,r,y("esriSpatialRelCrosses"))},t.functions.relate=function(e,r){return t.standardFunctionAsync(e,r,async(t,a,i)=>{if(i=(0,s.C)(i),(0,s.B)(i,3,3,e,r),(0,s.h)(i[0])&&(0,s.h)(i[1]))return(0,c.C)("relate",[i[0].toJSON(),i[1].toJSON(),(0,s.s)(i[2])]);if((0,s.h)(i[0])&&null===i[1])return!1;if((0,s.h)(i[1])&&null===i[0])return!1;if((0,s.m)(i[0])&&null===i[1])return new f.A({parentfeatureset:i[0]});if((0,s.m)(i[1])&&null===i[0])return new f.A({parentfeatureset:i[1]});if((0,s.m)(i[0])&&(0,s.h)(i[1]))return new p({parentfeatureset:i[0],relation:"esriSpatialRelRelation",relationGeom:i[1],relationString:(0,s.s)(i[2])});if((0,s.m)(i[1])&&(0,s.h)(i[0]))return new p({parentfeatureset:i[1],relation:"esriSpatialRelRelation",relationGeom:i[0],relationString:(0,s.s)(i[2])});if(null===i[0]&&null===i[1])return!1;throw new n.D$(e,"InvalidParameter",r)})})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6320,7548],{4146(e,t,r){r.d(t,{A:()=>w});var i=r(5482),n=r(11254),o=r(49186),s=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(74887),d=r(84952),p=r(91429),f=r(5443),h=r(16930),y=r(92602),m=r(79677);let g=0,w=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(812),r.e(5613),r.e(5710)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,p.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i.Cg)([(0,p.MZ)({type:f.A})],w.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i.Cg)([(0,p.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:h.A})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],w.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],w.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({type:m.A})],w.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i.Cg)([(0,p.$K)("esri.layers.Layer")],w)},6797(e,t,r){r.d(t,{Ui:()=>p});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),p=i.filter(e=>!n.includes(e)),f=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,p).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=a(e)&&a(t);for(const i of f){const n=u(e,i),o=u(t,i);let s;if((m||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&c(n)===c(o)?d(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=y?y.diff[i]=s:y={type:"partial",diff:{[i]:s}})}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},16215(e,t,r){r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},16494(e,t,r){r.d(t,{Nd:()=>a,W5:()=>s});var i=r(17632);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17311(e,t,r){r.d(t,{A:()=>f});var i=r(5482),n=r(69622),o=r(4576),s=r(60999),a=r(7762),l=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let f=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9926)]).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,n=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:a}=this,u=a&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:a}):"";r?.removeHTML&&(d=l.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const n=await e.queryFeatures(i);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},28032(e,t,r){r.d(t,{A:()=>l});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),a=r(56400);let l=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],l.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],l.prototype,"timeZone",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],l)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(5482),n=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>d,XJ:()=>p,lc:()=>c,mX:()=>y,rU:()=>h,tH:()=>b});var i=r(799);const n="__begin__",o="__end__",s=new RegExp(n,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+n,"i"),u=new RegExp(o+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,i.HC)(e,e=>n+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var i=r(5482),n=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143(e,t,r){r.d(t,{A:()=>d});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),a=r(8631),l=r(29005),u=r(36005),c=r(43937);let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(7762),s=r(25482),a=r(91429);let l=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},41366(e,t,r){r.d(t,{K:()=>d,Q:()=>l});var i=r(5482),n=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const n=c(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(c(n.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)l(i.minScale,i.maxScale,t,r)&&(yield i)}}function l(e,t,r,n){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45067(e,t,r){r.d(t,{A:()=>c});var i=r(5482),n=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],c)},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},52136(e,t,r){r.d(t,{p:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>h});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),c=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,c);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new y(e,o,a,d,t,f,p,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501(e,t,r){r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},61760(e,t,r){r.d(t,{PU:()=>s,YW:()=>l,ex:()=>n,hv:()=>a,zp:()=>o}),r(34727);var i=r(90629);r(78955),r(91829);const n=2.4;function o(e){return(0,i.PN)(e*n)}function s(e){return(0,i.Lz)(e)/n}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},62815(e,t,r){r.d(t,{N:()=>s,d:()=>a});var i=r(86211),n=r(73941),o=r(21325);function s(e,t,r){const i=a(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function a(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const y=new u(r,h);return new l(h,c,f,y)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},77548(e,t,r){r.d(t,{Gh:()=>v,tk:()=>y,BR:()=>h,p2:()=>p,wI:()=>f,G$:()=>g,$x:()=>m,Ov:()=>l,UC:()=>o,W_:()=>u,OP:()=>w,TU:()=>a,XX:()=>s,jy:()=>c});var i=r(70333),n=r(11254);function o(e){return null!=e&&"object"==typeof e&&"type"in e&&"knowledge-graph-sublayer"===e.type}r(7762),r(84952),r(36563),r(36708),r(4146),new WeakMap,r(16215);const s={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function a(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function l(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function u(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function c(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"feature"===e.type}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function d(e){const t=e?.type;return"binning"===t||"cluster"===t}function p(e,t){if(!c(e))return;const r=t?.graphic,i=e.featureReduction;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?d(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?d(i)?i:null:e}async function f(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,n.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function h(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function y(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function m(e,t){return null}function g(e){return null}function w(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function v(e,t){if(!t||!w(e))return;const r=(e.url,null);r&&(e.url=r)}},79677(e,t,r){r.d(t,{A:()=>d});var i,n=r(5482),o=r(25482),s=r(88930),a=r(91429),l=r(98623),u=r(36005),c=r(43937);let d=class extends o.o{static{i=this}static get allTime(){return p}static get empty(){return f}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}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(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({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,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let n=this.end;if(n){const r=(0,s.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.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,o=e.end?.getTime()??1/0;let s,a;return n>=t&&n<=r?s=n:t>=n&&t<=o&&(s=t),r>=n&&r<=o?a=r:o>=t&&o<=r&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?i.empty:new i({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new i,{start:o,end:a}=this;return null!=o&&(n.start=(0,s.S1)(o,e,t,r)),null!=a&&(n.end=(0,s.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.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 i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],d.prototype,"writeStart",null),d=i=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],d);const p=new d,f=new d({start:void 0,end:void 0})},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}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.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6320,7548],{4146(e,t,r){r.d(t,{A:()=>w});var i=r(5482),n=r(11254),o=r(49186),s=r(65529),a=r(4902),l=r(92474),u=r(53966),c=r(74887),d=r(84952),p=r(91429),f=r(5443),h=r(16930),y=r(92602),m=r(79677);let g=0,w=class extends((0,s.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,h.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=h.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(1218),r.e(812),r.e(5613)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",n=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,d.An)(this.url)}createLayerView(e,t){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,p.MZ)({type:String})],w.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"effectiveVisible",null),(0,i.Cg)([(0,p.MZ)({type:f.A})],w.prototype,"fullExtent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"hasAttributionData",null),(0,i.Cg)([(0,p.MZ)({type:String,clonable:!1})],w.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],w.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],w.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],w.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],w.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean})],w.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,p.MZ)({type:h.A})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],w.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],w.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)()],w.prototype,"url",void 0),(0,i.Cg)([(0,p.MZ)({type:m.A})],w.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],w.prototype,"visible",void 0),w=(0,i.Cg)([(0,p.$K)("esri.layers.Layer")],w)},6797(e,t,r){r.d(t,{Ui:()=>p});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),p=i.filter(e=>!n.includes(e)),f=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,p).sort(),h=c(e);if(h&&s.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y;const m=a(e)&&a(t);for(const i of f){const n=u(e,i),o=u(t,i);let s;if((m||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&c(n)===c(o)?d(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=y?y.diff[i]=s:y={type:"partial",diff:{[i]:s}})}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},16215(e,t,r){r.d(t,{S:()=>n,Y:()=>i});const i=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}},16494(e,t,r){r.d(t,{Nd:()=>a,W5:()=>s});var i=r(17632);const n=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new i.I({whiteList:n,onTagAttr:(e,t,r)=>{const i=`${t}="${r}"`;if(o.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1)},17311(e,t,r){r.d(t,{A:()=>f});var i=r(5482),n=r(69622),o=r(4576),s=r(60999),a=r(7762),l=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let f=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,s.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(4560),r.e(9926)]).then(r.bind(r,29926)).then(e=>this._featureUtils=e)}get calculatedExpressions(){const e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of r){const r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const r of t){const t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){const i=t.getObjectId()??t.attributes[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){const i=new Map,n=r?.timeZone??"system";try{const[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));const{fieldInfoMap:s,workingTitle:a}=this,u=a&&s;t.forEach(t=>{const c=t.getObjectId()??t.attributes[e.objectIdField];let d=u?o({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:s,globalAttributes:this._createFormattedAttributes(e,t,n).global,layer:e,text:a}):"";r?.removeHTML&&(d=l.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){const r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(o.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){const i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;const n=await e.queryFeatures(i);if(n?.features.length===t.length)return n.features}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const r of e){if(!r.fieldName)continue;const e=this.fieldsIndex.get(r.fieldName),i=e?.name??r.fieldName;r.fieldName=i,t.set(i.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){const i=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}const o={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:o,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},28032(e,t,r){r.d(t,{A:()=>l});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),a=r(56400);let l=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],l.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],l.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],l.prototype,"timeZone",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],l)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(5482),n=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},32730(e,t,r){r.d(t,{BI:()=>f,D3:()=>d,XJ:()=>p,lc:()=>c,mX:()=>y,rU:()=>h,tH:()=>b});var i=r(799);const n="__begin__",o="__end__",s=new RegExp(n,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+n,"i"),u=new RegExp(o+"$","i");function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function p(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(m);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,i.HC)(e,e=>n+'$feature["'+e+'"]'+o),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(s,'" + ').replaceAll(a,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var i=r(5482),n=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new s.A;return n.read(i,r),[n]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r}},33143(e,t,r){r.d(t,{A:()=>d});var i=r(5482),n=r(69540),o=r(25482),s=r(91429),a=r(8631),l=r(29005),u=r(36005),c=r(43937);let d=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],d.prototype,"readDomains",null),(0,i.Cg)([(0,c.K)("domains")],d.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[l.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],d)},37352(e,t,r){r.d(t,{A:()=>l});var i,n=r(5482),o=r(7762),s=r(25482),a=r(91429);let l=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"floorField",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],l.prototype,"viewAllLevelIds",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],l)},41366(e,t,r){r.d(t,{K:()=>d,Q:()=>l});var i=r(5482),n=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const n=c(e.at(0)?.minScale),o=d(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(c(n.minScale),d(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)l(i.minScale,i.maxScale,t,r)&&(yield i)}}function l(e,t,r,n){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},45067(e,t,r){r.d(t,{A:()=>c});var i=r(5482),n=r(69540),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:l.read,write:l.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],c)},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,o]=e.split("."),s=/^\s*\d+\s*$/;if(!r?.match||!s.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!o?.match||!s.test(o))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(o,10);return new n(a,l,t)}}},52136(e,t,r){r.d(t,{p:()=>o});var i=r(5482),n=r(91429);const o=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}},55674(e,t,r){r.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>p,lL:()=>g,xR:()=>h});var i=r(66131),n=r(49186),o=(r(44208),r(44729)),s=r(15032),a=r(65864),l=r(95466),u=r(43668),c=r(98623);const d=["geometry","scale","timeProperties"];function p(e,t){if(null!=t)for(const r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function f(e,t){return y.create(e,t,null,["$feature","$view"])}function h(e,t,r){return y.create(e,t,r,["$feature","$view","$config"])}class y{static async create(e,t,r,i){const{arcade:o,Dictionary:s}=await(0,u.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const c={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=o.compileScript(a,c);let p=null;null!=r&&(p=new s(r),p.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new y(e,o,a,d,t,f,p,s)}constructor(e,t,r,i,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=r?i.lY.epochToArcadeDate(o,r):i.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501(e,t,r){r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(n)for(const e of r.features)n(e.geometry)}},61760(e,t,r){r.d(t,{PU:()=>s,YW:()=>l,ex:()=>n,hv:()=>a,zp:()=>o}),r(34727);var i=r(90629);r(78955),r(91829);const n=2.4;function o(e){return(0,i.PN)(e*n)}function s(e){return(0,i.Lz)(e)/n}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},62815(e,t,r){r.d(t,{N:()=>a,d:()=>l});var i=r(86211),n=r(73941),o=r(21325),s=r(52006);function a(e,t,r){const i=l(t,r);if(1!==i)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,i);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(const r of e.curvePaths)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(const r of e.curveRings)for(const e of r){const r=(0,s.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}}(e,i);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,i);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,i);default:return}}function l(e,t){return null==e||null==t||t.vcsWkid||(0,o.aI)(e,t)||(0,n.xP)(e)||(0,n.xP)(t)?1:(0,i.G9)(e)/(0,i.G9)(t)}},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),o=r(46140),s=r(95466),a=r(55674);class l{static async from(e,t,r){const s=e.dictionary_version?o.A.parse(e.dictionary_version):null,c=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const p=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))p.delete(e);p.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:p});const f=await(0,a.xR)(e.expression,null,d);if(!f)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!s||!s.greaterEqual(4,0);h&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const y=new u(r,h);return new l(h,c,f,y)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new s.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},77548(e,t,r){r.d(t,{Gh:()=>v,tk:()=>y,BR:()=>h,p2:()=>p,wI:()=>f,G$:()=>g,$x:()=>m,Ov:()=>l,UC:()=>o,W_:()=>u,OP:()=>w,TU:()=>a,XX:()=>s,jy:()=>c});var i=r(70333),n=r(11254);function o(e){return null!=e&&"object"==typeof e&&"type"in e&&"knowledge-graph-sublayer"===e.type}r(7762),r(84952),r(36563),r(36708),r(4146),new WeakMap,r(16215);const s={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function a(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function l(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function u(e){const t=e?.type;return("feature"===t||"subtype-group"===t||"oriented-imagery"===t)&&"feature-layer"===e?.source?.type}function c(e){return function(e){return null!=e&&"object"==typeof e&&"type"in e&&"feature"===e.type}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)}function d(e){const t=e?.type;return"binning"===t||"cluster"===t}function p(e,t){if(!c(e))return;const r=t?.graphic,i=e.featureReduction;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?d(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?d(i)?i:null:e}async function f(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const o=e.toLowerCase().indexOf("/rest/services");if(-1===o)return null;const s=`${e.slice(0,o)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,n.A)(s,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function h(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function y(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function m(e,t){return null}function g(e){return null}function w(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function v(e,t){if(!t||!w(e))return;const r=(e.url,null);r&&(e.url=r)}},79677(e,t,r){r.d(t,{A:()=>d});var i,n=r(5482),o=r(25482),s=r(88930),a=r(91429),l=r(98623),u=r(36005),c=r(43937);let d=class extends o.o{static{i=this}static get allTime(){return p}static get empty(){return f}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}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(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({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,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let n=this.end;if(n){const r=(0,s.lL)(n,e,t);n=n.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.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,o=e.end?.getTime()??1/0;let s,a;return n>=t&&n<=r?s=n:t>=n&&t<=o&&(s=t),r>=n&&r<=o?a=r:o>=t&&o<=r&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?i.empty:new i({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(e,t,r=l.qU){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new i,{start:o,end:a}=this;return null!=o&&(n.start=(0,s.S1)(o,e,t,r)),null!=a&&(n.end=(0,s.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.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 i({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,u.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],d.prototype,"writeStart",null),d=i=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],d);const p=new d,f=new d({start:void 0,end:void 0})},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{i=this}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.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813],{62885(t,e,i){i.d(e,{H:()=>r,V:()=>s});var n=i(7762);function s(t,e,i=n.A){return e||(e=new i),e===t||e.destroyed||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function r(t){return t}},68197(t,e,i){i.d(e,{A:()=>u});var n=i(40876),s=i(4576),r=i(34727),o=i(56507);function l(t){return(0,r.qE)((0,o.Vr)(t),0,255)}function a(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class u{static blendColors(t,e,i,n=new u){return n.r=Math.round(t.r+(e.r-t.r)*i),n.g=Math.round(t.g+(e.g-t.g)*i),n.b=Math.round(t.b+(e.b-t.b)*i),n.a=t.a+(e.a-t.a)*i,n._sanitize()}static fromRgb(t,e){const i=(0,n.lT)(t);return i?u.fromArray(i,e):null}static fromHex(t,e=new u){const i=(0,n.oW)(t);return i?u.fromArray(i,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,n.Eq)(t);return i?u.fromArray(i,e):null}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null!=this.a?this.a:1,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,s.yc)(t))u.fromArray(t,this);else{const e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,n=3===i||4===i,s=4===i||8===i,r=`#${a(this.r,n)}${a(this.g,n)}${a(this.b,n)}${s?a(Math.round(255*this.a),n):""}`;return e?r.toUpperCase():r}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=l(this.r),i=l(this.g),n=l(this.b);return 0===t||1!==this.a?[e,i,n,l(255*this.a)]:[e,i,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,n.c1)(this.r),this.g=(0,n.c1)(this.g),this.b=(0,n.c1)(this.b),this.a=(0,n.G1)(this.a),this}_set(t,e,i,n){this.r=t,this.g=e,this.b=i,this.a=n}}u.prototype.declaredClass="esri.Color"},69052(t,e,i){i.d(e,{hr:()=>s,ie:()=>a,uC:()=>l});var n=i(34727);class s{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return r(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,n.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return r(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(n)?i:n}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function r(t,e,i,n,s=0,r=!1){return(n-=s)<e?n+=o(t,e-n):n>i&&(n-=o(t,n-i)),r&&n===i&&(n=e),n+s}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}const l=new s(0,2*Math.PI),a=(new s(-Math.PI,Math.PI),new s(0,360))},71493(t,e,i){i.r(e),i.d(e,{default:()=>R});var n=i(5482),s=i(79608),r=i(68197),o=i(69540),l=i(25482),a=i(90629),u=i(91429),h=i(56507);let p=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="simple",this.color=new r.A("black"),this.textColor=new r.A("black"),this.textBackgroundColor=new r.A([255,255,255,.6])}get lineSize(){return this._get("lineSize")??2}set lineSize(t){this._set("lineSize",t)}get fontSize(){return this._get("fontSize")??10}set fontSize(t){this._set("fontSize",t)}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};(0,n.Cg)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:r.A,nonNullable:!0,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"color",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],p.prototype,"lineSize",null),(0,n.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],p.prototype,"fontSize",null),(0,n.Cg)([(0,u.MZ)({type:r.A,nonNullable:!0,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"textColor",void 0),(0,n.Cg)([(0,u.MZ)({type:r.A,nonNullable:!0,json:{type:[h.jz],write:{isRequired:!0}}})],p.prototype,"textBackgroundColor",void 0),p=(0,n.Cg)([(0,u.$K)("esri.analysis.DimensionSimpleStyle")],p);var c=i(69052),y=i(97768),d=i(86738);let g=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType="direct",this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,y.CM)(this.startPoint,t.startPoint)&&(0,y.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,n.Cg)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],g.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:{isRequired:!0}}})],g.prototype,"startPoint",void 0),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:{isRequired:!0}}})],g.prototype,"endPoint",void 0),(0,n.Cg)([(0,u.MZ)({type:["horizontal","vertical","direct"],nonNullable:!0,json:{write:{isRequired:!0}}})],g.prototype,"measureType",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],g.prototype,"offset",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,u.wg)(t=>c.ie.normalize((0,h.GB)(t),0,!0))],g.prototype,"orientation",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],g.prototype,"valid",null),g=(0,n.Cg)([(0,u.$K)("esri.analysis.LengthDimension")],g);var m=i(4576),f=i(7762),b=i(62885),C=i(36708),M=i(5443),w=i(91218);const v=f.A.ofType(g);let A=class extends s.A{constructor(t){super(t),this.type="dimension",this.style=new p,this.extent=null}initialize(){this.addHandles((0,C.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},C.pc))}get dimensions(){return this._get("dimensions")||new v}set dimensions(t){this._set("dimensions",(0,b.V)(t,this.dimensions,v))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const i=(0,w.projectOrLoadMany)(e,t);if(null!=i.pending)return{pending:i.pending,extent:null};let n=null;return null!=i.geometries&&(n=i.geometries.reduce((t,e)=>null==t?null!=e?M.A.fromPoint(e):null:null!=e?t.union(M.A.fromPoint(e)):t,null)),{pending:null,extent:n}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,m.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,e)=>t.equals(e))}};(0,n.Cg)([(0,u.MZ)({type:["dimension"]})],A.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({cast:b.H,type:v,nonNullable:!0})],A.prototype,"dimensions",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:p}},nonNullable:!0})],A.prototype,"style",void 0),(0,n.Cg)([(0,u.MZ)({value:null,readOnly:!0})],A.prototype,"extent",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"valid",null),A=(0,n.Cg)([(0,u.$K)("esri.analysis.DimensionAnalysis")],A);var x=i(25728),Z=i(4146),P=i(16131),z=i(43937);let S=class extends((0,P.q)((0,x.M)(Z.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new A,this.opacity=1,t){const{source:e,style:i}=t;e&&i&&(e.style=i)}}initialize(){this.addHandles([(0,C.wB)(()=>this.source,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},C.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new A)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,i,n){e.dimensions=t.filter(({startPoint:t,endPoint:e})=>null!=t&&null!=e).toJSON(n)}};(0,n.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,n.Cg)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],S.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,u.MZ)({nonNullable:!0})],S.prototype,"source",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,n.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:p}},json:{write:{ignoreOrigin:!0}}})],S.prototype,"style",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,n.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),(0,n.Cg)([(0,u.MZ)({type:f.A.ofType(g),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],S.prototype,"dimensions",null),(0,n.Cg)([(0,z.K)("web-scene","dimensions")],S.prototype,"writeDimensions",null),S=(0,n.Cg)([(0,u.$K)("esri.layers.DimensionLayer")],S);const R=S},78553(t,e,i){i.d(e,{D:()=>r,p:()=>s});var n=i(56507);function s(t){const e=(0,n.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function r(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608(t,e,i){i.d(e,{A:()=>c});var n=i(5482),s=i(69540),r=i(91429);let o=class extends s.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,n.Cg)([(0,r.MZ)()],o.prototype,"type",void 0),o=(0,n.Cg)([(0,r.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const l=o;var a=i(69622),u=i(4902),h=i(25482);let p=0,c=class extends((0,h.T)((0,s.OU)((0,u.s)(a.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${p++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,n.Cg)([(0,r.MZ)({type:String,constructOnly:!0,clonable:!1})],c.prototype,"id",void 0),(0,n.Cg)([(0,r.MZ)({clonable:!1,value:null})],c.prototype,"parent",null),(0,n.Cg)([(0,r.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":l}}})],c.prototype,"origin",void 0),c=(0,n.Cg)([(0,r.$K)("esri.analysis.Analysis")],c)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3757],{3757(e,t,n){n.r(t),n.d(t,{Label:()=>r});var l=n(7667),a=n(34857),i=n(57814),c=n(53660),s=n(62769);const o=a.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,c.c)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s.l))}willUpdate(e){e.has("for")&&(0,s.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(s.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",r)},62769(e,t,n){n.d(t,{a:()=>y,b:()=>c,c:()=>u,d:()=>m,g:()=>g,l:()=>i});var l=n(54667);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",s="calcite-label",o=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set;function u(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${s}[for="${t}"]`});if(n)return n;const a=(0,l.c)(e,s);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=E.bind(e);if(t){e.labelEl=t;const l=o.get(t)||[];l.push(e),o.set(t,l.sort(f)),r.has(e.labelEl)||(r.set(e.labelEl,p),e.labelEl.addEventListener(a,p)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(c,n)}else h.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function m(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(c,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),o.set(e.labelEl,t.filter(t=>t!==e).sort(f)),e.labelEl=null}function f(e,t){return(0,l.r)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function p(e){const t=e.detail.sourceEvent.target,n=o.get(this),l=n.find(e=>e.el===t);if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function v(){h.has(this)&&u(this)}function E(){h.add(this);const e=d.get(this)||v.bind(this);d.set(this,e),document.addEventListener(i,e)}async function y(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of h)if(e.el===t){u(e);break}})}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3757],{3757(e,t,n){n.r(t),n.d(t,{Label:()=>r});var l=n(7667),a=n(34857),i=n(59954),c=n(53660),s=n(62769);const o=a.AH`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class r extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,c.c)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s.l))}willUpdate(e){e.has("for")&&(0,s.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(s.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",r)},62769(e,t,n){n.d(t,{a:()=>y,b:()=>c,c:()=>u,d:()=>m,g:()=>g,l:()=>i});var l=n(54667);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",s="calcite-label",o=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set;function u(e){if(!e)return;const t=(e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${s}[for="${t}"]`});if(n)return n;const a=(0,l.c)(e,s);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};return e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a),n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a})(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=E.bind(e);if(t){e.labelEl=t;const l=o.get(t)||[];l.push(e),o.set(t,l.sort(f)),r.has(e.labelEl)||(r.set(e.labelEl,p),e.labelEl.addEventListener(a,p)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(c,n)}else h.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function m(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(c,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=o.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),o.set(e.labelEl,t.filter(t=>t!==e).sort(f)),e.labelEl=null}function f(e,t){return(0,l.r)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function p(e){const t=e.detail.sourceEvent.target,n=o.get(this),l=n.find(e=>e.el===t);if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function v(){h.has(this)&&u(this)}function E(){h.add(this);const e=d.get(this)||v.bind(this);d.set(this,e),document.addEventListener(i,e)}async function y(e){if(await e.componentOnReady(),o.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of h)if(e.el===t){u(e);break}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9790],{4197(t,n,e){e.d(n,{Vj:()=>c,cj:()=>u,jh:()=>a,l5:()=>o,xm:()=>s});var r=e(34275),i=e(9093);function a(t){return t<=r.y9?new Array(t).fill(0):new Float64Array(t)}function s(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=r.y9?Array.from(t):new Float64Array(t)}function o(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t){return[...t]}function c(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*a);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,a));t++)this._items.push(this._allocator())}}const a=1024},6867(t,n,e){e.d(n,{i:()=>h});var r=e(58083),i=e(9093),a=e(35522),s=e(51850),o=e(78955),u=e(91829),c=e(71351);class h{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,a.hs)(f,this.ray.direction,this.distance),(0,a.Bw)(f))}withinDistance(t){return!!l(this)&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!l(this)&&((0,a.hs)(f,this.ray.direction,this.distance),(0,a.WQ)(t,this.ray.origin,f),!0)}getTransformedNormal(t){return(0,a.C)(m,this.normal),m[3]=0,(0,o.Z0)(m,m,this.transformation),(0,a.C)(t,m),(0,a.S8)(t,t)}constructor(t){this.intersector=4,this.normal=(0,s.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){this.distance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4,(0,c.C)(t,this._ray)}set(t,n,e,o,u,c,h){this.intersector=t,this.distance=e,(0,a.C)(this.normal,o??s.Cb),(0,r.C)(this.transformation,u??i.zK),this.target=n,this.drapedLayerOrder=c,this.renderPriority=h}copy(t){(0,c.C)(t.ray,this._ray),this.intersector=t.intersector,this.distance=t.distance,this.target=t.target,this.drapedLayerOrder=t.drapedLayerOrder,this.renderPriority=t.renderPriority,(0,a.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function l(t){return null!=t?.distance}const f=(0,s.vt)(),m=(0,u.vt)()},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:r,fromValues:function(t,n,e,r,i,a,s,o,u,c,h,l,f,m,d,M){return[t,n,e,r,i,a,s,o,u,c,h,l,f,m,d,M]}},Symbol.toStringTag,{value:"Module"}))},32114(t,n,e){e.d(n,{Rc:()=>m,J8:()=>d,rq:()=>l,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),a=e(9093),s=e(82534),o=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(o.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(a.vt)}static createQuatf64(){return new h(s.vt)}get test(){}}h.createVec2f64();const l=h.createVec3f64(),f=h.createVec4f64(),m=(h.createMat3f64(),h.createMat4f64()),d=h.createQuatf64()},35522(t,n,e){e.d(n,{$A:()=>j,Bw:()=>a,C:()=>s,Cc:()=>A,DI:()=>I,Il:()=>L,Io:()=>b,Ln:()=>g,Om:()=>w,Qr:()=>l,Re:()=>c,S8:()=>x,T9:()=>M,WQ:()=>u,Z0:()=>C,_S:()=>m,aI:()=>q,ei:()=>P,gL:()=>N,hG:()=>_,hZ:()=>o,hs:()=>y,jb:()=>F,jk:()=>d,lo:()=>D,lw:()=>h,m3:()=>v,oW:()=>V,t2:()=>T,tn:()=>f,uE:()=>Y,xg:()=>R,ze:()=>p});var r=e(51850),i=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function o(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function m(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function M(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function y(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function _(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let a=e*e+r*r+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function j(t,n,e){const r=n[0],i=n[1],a=n[2],s=e[0],o=e[1],u=e[2];return t[0]=i*u-a*o,t[1]=a*s-r*u,t[2]=r*o-i*s,t}function A(t,n,e,r){const i=n[0],a=n[1],s=n[2];return t[0]=i+r*(e[0]-i),t[1]=a+r*(e[1]-a),t[2]=s+r*(e[2]-s),t}function C(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*a+e[12],t[1]=e[1]*r+e[5]*i+e[9]*a+e[13],t[2]=e[2]*r+e[6]*i+e[10]*a+e[14],t}function P(t,n,e){const r=n[0],i=n[1],a=n[2];return t[0]=r*e[0]+i*e[3]+a*e[6],t[1]=r*e[1]+i*e[4]+a*e[7],t[2]=r*e[2]+i*e[5]+a*e[8],t}function N(t,n,e){const r=e[0],i=e[1],a=e[2],s=e[3],o=n[0],u=n[1],c=n[2],h=i*c-a*u,l=a*o-r*c,f=r*u-i*o,m=i*f-a*l,d=a*h-r*f,M=r*l-i*h,y=2*s;return t[0]=o+h*y+2*m,t[1]=u+l*y+2*d,t[2]=c+f*y+2*M,t}const O=(0,r.vt)(),S=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],s=n[0],o=n[1],u=n[2],c=(0,i.FD)();return Math.abs(e-s)<=c*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-u)<=c*Math.max(1,Math.abs(a),Math.abs(u))}function V(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],a=e[2]-n[2];let s=r*r+i*i+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=c,z=h,E=l,R=b,D=_,L=a,Y=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(O,t),x(S,n);const e=w(O,S);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,a){const s=1-a,o=s*s,u=a*a,c=o*s,h=3*a*o,l=3*u*s,f=u*a;return t[0]=n[0]*c+e[0]*h+r[0]*l+i[0]*f,t[1]=n[1]*c+e[1]*h+r[1]*l+i[1]*f,t[2]=n[2]*c+e[2]*h+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:s,cross:j,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],a=n[2],s=e[0],o=e[1],u=e[2],c=i*u-a*o,h=a*s-r*u,l=r*o-i*s,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:V,dist:R,distance:b,div:E,divide:l,dot:w,equals:q,exactEquals:T,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,a){const s=a*a,o=s*(2*a-3)+1,u=s*(a-2)+a,c=s*(a-1),h=s*(3-2*a);return t[0]=n[0]*o+e[0]*u+r[0]*c+i[0]*h,t[1]=n[1]*o+e[1]*u+r[1]*c+i[1]*h,t[2]=n[2]*o+e[2]*u+r[2]*c+i[2]*h,t},inverse:I,len:L,length:a,lerp:A,max:M,min:d,mul:z,multiply:h,negate:p,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,a=2*e()-1,s=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=a*n,t},rotateX:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],a=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:y,scaleAndAdd:g,set:o,sign:m,sqrDist:D,sqrLen:Y,squaredDistance:_,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:c,transformMat3:P,transformMat4:C,transformQuat:N},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function s(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function o(){return a(1,1)}function u(){return a(1,0)}function c(){return a(0,1)}e.d(n,{Un:()=>h,ci:()=>s,fA:()=>a,o8:()=>i,vt:()=>r});const h=o(),l=u(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:s,fromValues:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},49718(t,n,e){e(51850),e(6867).i},62885(t,n,e){e.d(n,{H:()=>a,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function a(t){return t}},70328(t,n,e){e.d(n,{BI:()=>_,DC:()=>l,Ej:()=>m,Ie:()=>g,Jt:()=>b,Ne:()=>d,RF:()=>h,aI:()=>p,fA:()=>s,gE:()=>u,hZ:()=>y,iT:()=>f,is:()=>v,qv:()=>I,vI:()=>M,vY:()=>o,v_:()=>x,vt:()=>a,w1:()=>c});var r=e(5443),i=(e(19419),e(4197));function a(t=x){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function s(t,n,e,r,i,s,o=a()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o[4]=i,o[5]=s,o}function o(t,n=a()){return function(t,n,e,r=a()){return y(r,I),function(t,n,e=0,r=n.length/3){let i=t[0],a=t[1],s=t[2],o=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),a=Math.min(a,n[e+3*t+1]),s=Math.min(s,n[e+3*t+2]),o=Math.max(o,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=a,t[2]=s,t[3]=o,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function u(t,n=(0,i.jh)(24)){const[e,r,a,s,o,u]=t;return n[0]=e,n[1]=r,n[2]=a,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=o,n[8]=a,n[9]=e,n[10]=o,n[11]=u,n[12]=s,n[13]=r,n[14]=a,n[15]=s,n[16]=r,n[17]=u,n[18]=s,n[19]=o,n[20]=a,n[21]=s,n[22]=o,n[23]=u,n}function c(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function h(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[3]),t[4]=Math.max(t[4],n[4]),t[5]=Math.max(t[5],n[5])}function l(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.min(t[2],n[2]),t[3]=Math.max(t[3],n[0]),t[4]=Math.max(t[4],n[1]),t[5]=Math.max(t[5],n[2])}function m(t,n=[0,0,0]){return n[0]=function(t){return t[0]>=t[3]?0:t[3]-t[0]}(t),n[1]=function(t){return t[1]>=t[4]?0:t[4]-t[1]}(t),n[2]=function(t){return t[2]>=t[5]?0:t[5]-t[2]}(t),n}function d(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function M(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function y(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}function g(t){return t?y(t,I):a(I)}function b(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function _(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function v(t){return 6===t.length}function p(t,n,e){if(null==t||null==n)return t===n;if(!v(t)||!v(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const I=[1/0,1/0,1/0,-1/0,-1/0,-1/0],x=[0,0,0,0,0,0];a()},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>l,LV:()=>c,fA:()=>f,oC:()=>m,vt:()=>o}),e(4576);var r=e(4341),i=(e(77690),e(29242)),a=e(35522),s=e(51850);function o(t){return t?u((0,s.o8)(t.origin),(0,s.o8)(t.direction)):u((0,s.vt)(),(0,s.vt)())}function u(t,n){return{origin:t,direction:n}}function c(t,n){const e=d.get();return e.origin=t,e.direction=n,e}function h(t,n=o()){return f(t.origin,t.direction,n)}function l(t,n,e=o()){return(0,a.C)(e.origin,t),(0,a.Re)(e.direction,n,t),e}function f(t,n,e=o()){return(0,a.C)(e.origin,t),(0,a.C)(e.direction,n),e}function m(t,n,e){const r=(0,a.Om)(t.direction,(0,a.Re)(e,n,t.origin));return(0,a.WQ)(e,t.origin,(0,a.hs)(e,t.direction,r)),e}e(32114);const d=new r.I(()=>o());(0,s.vt)(),(0,s.vt)(),(0,s.vt)(),(0,i.vt)()},78553(t,n,e){e.d(n,{D:()=>a,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function a(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}},79608(t,n,e){e.d(n,{A:()=>f});var r=e(5482),i=e(69540),a=e(91429);let s=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,a.MZ)()],s.prototype,"type",void 0),s=(0,r.Cg)([(0,a.$K)("esri.analysis.support.AnalysisOriginWebScene")],s);const o=s;var u=e(69622),c=e(4902),h=e(25482);let l=0,f=class extends((0,h.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${l++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,a.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,a.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,a.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":o}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,a.$K)("esri.analysis.Analysis")],f)},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},91715(t,n,e){e.d(n,{xH:()=>a,N1:()=>o}),e(35522);var r=e(51850),i=e(71351);function a(t,n){return s(t)===s(n)}function s(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}e(58083),e(70328),e(6867),e(49718),(0,r.vt)();const o={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3202],{6455(e,t,r){r.d(t,{FJ:()=>h,Dp:()=>w,KV:()=>v});var i=r(5482),n=r(93637),s=r(91429),o=r(89317),a=r(69540),l=r(7762),u=r(25482),p=r(83960),c=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:d})],y.prototype,"maxScale",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:d})],y.prototype,"minScale",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,i.Cg)([(0,s.$K)("esri.layers.support.DisplayFilter")],y);var f=r(41560),m=r(43937);let g=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,i){const n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{const r=(0,p.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=n.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A.ofType(y),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,i.Cg)([(0,m.K)("filters")],g.prototype,"writeFilters",null),(0,i.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,i.Cg)([(0,s.$K)("esri.layers.support.DisplayFilterInfo")],g);const h=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,s.MZ)(w)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,s.MZ)(v)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:o.K,writer(e,t,r){(0,n.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},v={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:o.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),s=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function l(e){return e instanceof n.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=l(e),n=l(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(s,d).sort(),f=p(e);if(f&&o.has(f)&&y.length)return{type:"complete",oldValue:e,newValue:t};let m;const g=a(e)&&a(t);for(const i of y){const n=u(e,i),s=u(t,i);let o;if((g||"function"!=typeof n&&"function"!=typeof s)&&n!==s&&(null!=n||null!=s)){if(r&&r[i]&&"function"==typeof r[i])o=r[i]?.(n,s);else if(n instanceof Date&&s instanceof Date){if(n.getTime()===s.getTime())continue;o={type:"complete",oldValue:n,newValue:s}}else o="object"==typeof n&&"object"==typeof s&&p(n)===p(s)?c(n,s):{type:"complete",oldValue:n,newValue:s};null!=o&&(null!=m?m.diff[i]=o:m={type:"partial",diff:{[i]:o}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},8303(e,t,r){r.d(t,{A:()=>T});var i=r(5482),n=r(92602),s=r(70333),o=r(11254),a=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(74887),d=r(84952),y=r(91429),f=r(77548),m=r(20655),g=r(80812),h=r(41318),w=r(10407),v=r(36005),b=r(43937);const T=e=>{const t=e;let T=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,c.zf)(e)||u.A.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.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.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.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!s.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let o,a;if(n)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(n?await r.reload():(r=new g.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,c.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(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=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=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=m.A.getDefault();if(n&&n.loaded&&(0,d.S8)(n.restUrl)===(0,d.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?h.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("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.Cg)([(0,y.MZ)({type:g.default})],T.prototype,"portalItem",null),(0,i.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],T.prototype,"readPortalItem",null),(0,i.Cg)([(0,b.K)("web-document","portalItem",{itemId:{type:String}})],T.prototype,"writePortalItem",null),(0,i.Cg)([(0,y.MZ)({clonable:!1})],T.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],T.prototype,"userHasUpdateItemPrivileges",void 0),T=(0,i.Cg)([(0,y.$K)("esri.layers.mixins.PortalLayer")],T),T},C={credential:null,user:null}},10184(e,t,r){r.d(t,{A:()=>p});var i=r(5482),n=r(69540),s=r(25482),o=r(88930),a=r(91429),l=r(73133),u=r(93223);let p=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i.Cg)([(0,u.e)(l.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i.Cg)([(0,a.$K)("esri.time.TimeInterval")],p)},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>o,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>c});var i=r(91218),n=r(16930),s=r(28735);function o(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?o(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let s=!n||n.includes("features:user:edit"),o=!!r&&!!n?.includes("features:user:fullEdit");const a="update"===i||"admin"===i;return a?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:a}}}},13043(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,{i:()=>n,p:()=>i})},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>n,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036(e,t,r){r.d(t,{p:()=>l});var i=r(44208),n=r(53966),s=r(20437),o=r(95466),a=r(30524);function l(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},21901(e,t,r){r.r(t),r.d(t,{default:()=>se});var i=r(5482),n=r(37838),s=r(25728),o=r(93637),a=r(84952),l=r(91429),u=r(56507),p=r(5443),c=r(16930),d=r(50498),y=r(55156),f=r(60950),m=r(89808),g=r(99959);const h=Symbol("isWFSGraphicOrigin");var w;class v extends g.A{get[(w=h,f.ym)](){return this.layer}get[y.e](){return this.layer}get[m.Q](){return this.layer}constructor(e){super(),this[w]=!0,this.type="wfs",this.layer=e}get id(){return this.layer.id}}var b=r(4146),T=r(49186),C=r(44208),S=r(92474),x=r(53966),F=r(74887),A=r(83027),I=r(64714),M=r(34322),_=r(37745),P=r(22671),E=r(98623);let O=class extends S.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null,this.capabilities=(0,I.f)(!1,!1),this.type="wfs",this.refresh=(0,F.sg)(async()=>{await this.load();const e={customParameters:this.layer.customParameters,maxRecordCount:this.layer.maxRecordCount,maxTotalRecordCount:this.layer.maxTotalRecordCount,maxPageCount:this.layer.maxPageCount},{extent:t}=await this._workerHandler.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,this._workerHandler=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,t);return P.A.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._workerHandler.queryFeatures(e?e.toJSON():void 0,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._workerHandler.queryFeatureCount(e?e.toJSON():void 0,t)}async queryObjectIds(e,t={}){return await this.load(t),this._workerHandler.queryObjectIds(e?e.toJSON():void 0,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._workerHandler.queryExtent(e?e.toJSON():void 0,t);return{count:r.count,extent:p.A.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._workerHandler.querySnapping(e,t)}async queryAttributeBins(e,t={}){await this.load(t);const r=await this._workerHandler.queryAttributeBins(e?.toJSON(),t);return _.A.fromJSON(r)}async _createLoadOptions(e){const{url:t,customParameters:r,name:i,namespaceUri:n,fields:s,geometryType:o,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,swapXY:p}=this.layer,c="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new T.A("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,M.Fu)(t,{customParameters:r,...e}));const y=["fields","geometryType","name","namespaceUri","swapXY"].some(e=>null==this.layer[e]),f=y?await(0,M.O8)(this.wfsCapabilities,i,n,{spatialReference:c,customParameters:r,signal:e?.signal}):{...(0,M.YW)(s??[]),geometryType:o,name:i,namespaceUri:n,spatialReference:c,swapXY:p},m=(0,M.mG)(this.wfsCapabilities.readFeatureTypes(),f.name,f.namespaceUri),g=d.gy.toJSON(f.geometryType),{operations:h}=this.wfsCapabilities,w=h.GetFeature.url,v=h.GetFeature.outputFormat;return{customParameters:r,featureType:m,fields:f.fields?.map(e=>e.toJSON())??[],geometryField:f.geometryField,geometryType:g,getFeatureUrl:w,getFeatureOutputFormat:v,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,objectIdField:f.objectIdField,spatialReference:f.spatialReference?.toJSON(),swapXY:!!f.swapXY}}async _startWorker(e){const[t,r]=await(0,F.Lx)([this._createLoadOptions(e),(0,A.h)("WFSSourceWorker",{...e,strategy:(0,C.A)("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,this._workerHandler=this._connection.createInvokeProxy();const o=await this._workerHandler.load(s,e);for(const e of o.warnings)x.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:E.n$},extent:o.extent,fields:s.fields,geometryType:s.geometryType,objectIdField:s.objectIdField,geometryField:s.geometryField,drawingInfo:(0,I.F0)(s.geometryType),name:s.featureType.title,wfsInfo:{name:s.featureType.name,featureUrl:s.getFeatureUrl,maxFeatures:s.maxRecordCount,swapXY:s.swapXY,supportedSpatialReferences:s.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:s.featureType.namespaceUri}}}};(0,i.Cg)([(0,l.MZ)()],O.prototype,"capabilities",void 0),(0,i.Cg)([(0,l.MZ)({constructOnly:!0})],O.prototype,"layer",void 0),(0,i.Cg)([(0,l.MZ)()],O.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,l.MZ)()],O.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)()],O.prototype,"wfsCapabilities",void 0),O=(0,i.Cg)([(0,l.$K)("esri.layers.graphics.sources.WFSSource")],O);var R,j=r(63074),N=r(69208),Z=r(6455),U=r(87718),D=r(56658),G=r(16131),k=r(32756),$=r(8303),L=r(54310),q=r(25036),z=r(82935),J=r(10873),V=r(15426),B=r(20437),Y=r(17036),H=r(30524),W=r(46499),Q=r(39383),K=r(41214),X=r(61956),ee=r(30291),te=r(56400),re=r(43937);const ie=(0,Y.p)();let ne=R=class extends((0,k.fY)((0,Z.FJ)((0,N.d)((0,D.J)((0,U.F)((0,j.dM)((0,L.J)((0,q.j)((0,G.q)((0,$.A)((0,s.M)(b.A)))))))))))){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 R({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.dateFieldsTimeZone=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.graphicOrigin=new v(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxRecordCount=3e3,this.maxPageCount=10,this.maxTotalRecordCount=2e5,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new O({layer:this}),this.spatialReference=c.A.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.useViewTime=!0,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}),["objectIdField","fields","spatialReference","name","namespaceUri"].forEach(e=>this.revertToOrigin(e,"service")),(0,H.yp)(this.renderer,this.fieldsIndex)})),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),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!==M.i5);this.geometryField&&i.unshift(new B.A({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,o.sM)(r,i.map(e=>e.toJSON()),t)}get parsedUrl(){return(0,a.An)(this.url)}set renderer(e){(0,H.yp)(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,ee.tn)(this,e)}createQuery(){return new X.A({returnGeometry:!0,outFields:["*"],where:this.definitionExpression||"1=1"})}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(X.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(X.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(X.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(X.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){const{source:i,capabilities:n}=await this.load();(0,V.ZJ)(e,n,"WFSLayer");const s=await r.e(4575).then(r.bind(r,14575)),o=await i.queryAttributeBins(s.default.from(e),t);if(o.features)for(const e of o.features)e.layer=e.sourceLayer=this;return o}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh();return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,i.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"capabilities",null),(0,i.Cg)([(0,l.MZ)({type:String})],ne.prototype,"copyright",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"createQueryVersion",null),(0,i.Cg)([(0,l.MZ)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],ne.prototype,"customParameters",void 0),(0,i.Cg)([(0,l.MZ)((0,te.P6)("dateFieldsTimeReference"))],ne.prototype,"dateFieldsTimeZone",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ne.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],ne.prototype,"displayField",void 0),(0,i.Cg)([(0,l.MZ)(J.Yj)],ne.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"featureUrl",void 0),(0,i.Cg)([(0,l.MZ)({type:[B.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ne.prototype,"fields",void 0),(0,i.Cg)([(0,re.K)("fields")],ne.prototype,"writeFields",null),(0,i.Cg)([(0,l.MZ)(ie.fieldsIndex)],ne.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"extent"}})],ne.prototype,"fullExtent",void 0),(0,i.Cg)([(0,l.MZ)()],ne.prototype,"geometryField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:d.gy.read},write:{target:"layerDefinition.geometryType",writer:d.gy.write,ignoreOrigin:!0},origins:{service:{read:d.gy.read}}}})],ne.prototype,"geometryType",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],ne.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],ne.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)(J.kF)],ne.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,l.MZ)({type:[W.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:Q.w},write:!0}})],ne.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,l.MZ)(J.fV)],ne.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,l.MZ)({type:["show","hide"]})],ne.prototype,"listMode",void 0),(0,i.Cg)([(0,l.MZ)({type:String})],ne.prototype,"objectIdField",void 0),(0,i.Cg)([(0,l.MZ)({type:["WFS"]})],ne.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,l.MZ)({type:u.jz,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:u.jz})],ne.prototype,"maxPageCount",void 0),(0,i.Cg)([(0,l.MZ)({type:u.jz})],ne.prototype,"maxTotalRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],ne.prototype,"mode",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"namespaceUri",void 0),(0,i.Cg)([(0,l.MZ)(J.Ih)],ne.prototype,"opacity",void 0),(0,i.Cg)([(0,l.MZ)(ie.outFields)],ne.prototype,"outFields",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"parsedUrl",null),(0,i.Cg)([(0,l.MZ)(J.M6)],ne.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,l.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],ne.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,l.MZ)({types:K.Hg,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:K.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],ne.prototype,"renderer",null),(0,i.Cg)([(0,l.MZ)(J.PY)],ne.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"source",void 0),(0,i.Cg)([(0,l.MZ)({type:c.A,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],ne.prototype,"spatialReference",void 0),(0,i.Cg)([(0,l.MZ)({readOnly:!0,type:[u.jz],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"spatialReferences",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"swapXY",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],ne.prototype,"title",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!1},readOnly:!0})],ne.prototype,"type",void 0),(0,i.Cg)([(0,l.MZ)(J.OZ)],ne.prototype,"url",void 0),(0,i.Cg)([(0,l.MZ)(z.B)],ne.prototype,"useViewTime",void 0),(0,i.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"version",void 0),(0,i.Cg)([(0,l.MZ)()],ne.prototype,"wfsCapabilities",null),ne=R=(0,i.Cg)([(0,l.$K)("esri.layers.WFSLayer")],ne);const se=ne},22671(e,t,r){r.d(t,{A:()=>w});var i,n=r(5482),s=r(52106),o=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),y=r(50498),f=r(20437),m=r(36005),g=r(43937);const h=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,s.A)}writeGeometryType(e,t,r,i){if(e)return void h.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*s+i,e=>n-e*o,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const s=e[t],o=r.fromJSON(s),a=s.geometry?.spatialReference;null==o.geometry||a||(o.geometry.spatialReference=i);const l=s.aggregateGeometries,u=o.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],n=r?.spatialReference;null==t||n||(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,a=e.length;o<a;o++){const a=e[o];if(o>0){const e=t(a[0]),o=r(a[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),s.push([i,n])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const s=(0,c.Bi)(e)?e.rings:e.paths;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],a+=n[1]):(o=n[0],a=n[1]),n[0]=t(o),n[1]=r(a)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const s=e.points;let o,a;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],a+=i[1]):(o=i[0],a=i[1]),i[0]=t(o),i[1]=r(a)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[s.A],json:{write:!0}})],w.prototype,"features",void 0),(0,n.Cg)([(0,m.w)("features")],w.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],w.prototype,"geometryType",void 0),(0,n.Cg)([(0,g.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,m.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,n.Cg)([(0,g.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},32730(e,t,r){r.d(t,{BI:()=>y,D3:()=>c,XJ:()=>d,lc:()=>p,mX:()=>m,rU:()=>f,tH:()=>b});var i=r(799);const n="__begin__",s="__end__",o=new RegExp(n,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+n,"i"),u=new RegExp(s+"$","i");function p(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function c(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function d(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=p(e.labelExpression),t.type="conventional"),t}function y(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function f(e){const t=d(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(g);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function m(e){let t;return e?(t=(0,i.HC)(e,e=>n+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=h.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}},32756(e,t,r){r.d(t,{Rr:()=>a,fY:()=>u,ne:()=>l});var i=r(5482),n=r(93637),s=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const n=new o.A;return n.read(i,r),[n]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){const s=e.find(e=>!!e.field);s&&(0,n.sM)(r,[s.toJSON()],t)}}}},u=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,s.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],r),r}},34322(e,t,r){r.d(t,{E:()=>N,Fu:()=>C,O8:()=>M,UH:()=>G,YW:()=>_,i5:()=>v,mG:()=>I,x$:()=>R});var i=r(11254),n=r(49186),s=r(5479),o=r(84952),a=r(5443),l=r(91218),u=r(16930),p=r(21325),c=r(50498),d=r(85113),y=r(13043),f=r(60694),m=r(20437),g=r(30524);const h="xlink:href",w="2.0.0",v="__esri_wfs_id__",b="wfs-layer:feature-type-not-found",T="wfs-layer:unknown-geometry-type";async function C(e,t){const r=function(e){const t=Z(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new n.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),D(t);const r=t.firstElementChild,i=(0,s.PP)(function(e){return(0,y.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,y.p)(e,{Name:e=>{const{name:r,prefix:i}=U(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=a.A.fromJSON(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:p.KK}}(e))},DefaultCRS:e=>{const i=A(e);i&&(t.defaultSpatialReference=i,r.add(i))},OtherCRS:e=>{const t=A(e);t&&r.add(t)}}),t.title||(t.title=t.name),r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:F(r),get featureTypes(){return Array.from(i())},readFeatureTypes:i}}((await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,o.m3)(e)&&((0,o.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,o.lM)(t.operations.DescribeFeatureType.url)),(0,o.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,o.lM)(t.operations.GetFeature.url)))}(e,r),r}const S=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function x(e){for(const t of S){const r=e.findIndex(e=>e.toLowerCase()===t);if(r>=0)return e[r]}return null}function F(e){let t=!0;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},i=[],s=[];if((0,y.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&i.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(h)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(h)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(h)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&s.push(e)}}}}}}},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()}}}}}}),r.GetFeature.outputFormat=x(s)??x(i),!t)throw new n.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new n.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function A(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function I(e,t,r){return(0,s.I6)(e,e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t)}async function M(e,t,r,i={}){const{featureType:s,extent:o}=await async function(e,t,r,i={}){const s=e.readFeatureTypes(),o=t?I(s,t,r):s.next().value,{spatialReference:a=new u.A({wkid:o?.defaultSpatialReference})}=i;if(null==o)throw t?new n.A(b,`The type '${t}' could not be found in the service`):new n.A("wfs-layer:empty-service","The service is empty");let c=o.extent;if(c&&!(0,p.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,i),c=(0,l.project)(c,a)}catch{throw new n.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:o}}(e,t,r,i),{spatialReference:a}=G(e.operations.GetFeature.url,s,i.spatialReference),{fields:c,geometryType:d,swapXY:y,objectIdField:f,geometryField:m}=await async function(e,t,r,i={}){const{typeName:s}=t,[o,a]=await Promise.allSettled([E(e.operations.DescribeFeatureType.url,s,i),P(e,s,r,i)]),l=e=>new n.A("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${s}'`,{error:e});if("rejected"===o.status)throw l(o.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:p}=o.value??{},c=o.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new n.A(T,`The geometry type could not be determined for type '${s}`,{typeName:s,geometryType:c,fields:u,errors:p});return{..._(u??[]),geometryType:c,swapXY:d}}(e,s,a,i);return{url:e.operations.GetCapabilities.url,name:s.name,namespaceUri:s.namespaceUri,fields:c,geometryField:m,geometryType:d,objectIdField:f,spatialReference:i.spatialReference??new u.A({wkid:s.defaultSpatialReference}),extent:o,swapXY:y,wfsCapabilities:e,customParameters:i.customParameters}}function _(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 m.A({name:v,type:"oid",alias:v}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function P(e,t,r,n={}){let s,o=!1;const[a,l]=await Promise.all([R(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...n,count:1}),(0,i.A)(e.operations.GetFeature.url,{responseType:"text",query:j(t,r,void 0,{...n,count:1}),signal:n?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(s=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.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&&(o=!0)}}return{geometryType:s,swapXY:o}}async function E(e,t,r){return function(e,t){const{name:r}=U(e),i=Z(t);D(i);const o=(0,s.I6)((0,y.i)(i.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===r);if(null!=o){const e=o.getAttribute("type"),t=e?(0,s.I6)((0,y.i)(i.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===U(e).name):(0,s.I6)((0,y.i)(o,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],r=[];let i;const s=(0,y.i)(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=U(o.getAttribute("type")).name:(0,y.p)(o,{simpleType:{restriction:e=>(a=U(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 m.A({name:s,alias:s,type:"integer",nullable:u,length:(0,g._b)("integer")}));break;case"float":case"double":case"decimal":r.push(new m.A({name:s,alias:s,type:"double",nullable:u,length:(0,g._b)("double")}));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 m.A({name:s,alias:s,type:"string",nullable:u,length:l??(0,g._b)("string")}));break;case"datetime":case"date":r.push(new m.A({name:s,alias:s,type:"date",nullable:u,length:l??(0,g._b)("date")}));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.A(T,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new n.A("wfs-layer:unknown-field-type",`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new m.A({name:s,alias:s,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&O.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:i,fields:r,errors:t}}(t)}throw new n.A(b,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(i)})}(t,(await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,TYPENAMES:t,...r?.customParameters},signal:r?.signal})).data)}const O=new Set(["objectid","fid"]);async function R(e,t,r,s,o){let{data:a}=await(0,i.A)(e,{responseType:"text",query:j(t,r,s,o),signal:o?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new n.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function j(e,t,r,i){const n="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+n,STARTINDEX:i?.startIndex,COUNT:i?.count,...i?.customParameters}}async function N(e,t,r){const n=await(0,i.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:t,RESULTTYPE:"hits",...r?.customParameters},signal:r?.signal}),s=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(n.data);if(s?.groups)return+s.groups.numberMatched}function Z(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function U(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function D(e){let t="",r="";if((0,y.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new n.A(`wfs-layer:${t}`,r)}function G(e,t,r){const i={wkid:t.defaultSpatialReference},n=null!=r?.wkid?{wkid:r.wkid}:i;return{spatialReference:n,getFeatureSpatialReference:(0,f.Fi)(e)||n.wkid&&t.supportedSpatialReferences.includes(n.wkid)?{wkid:n.wkid}:{wkid:t.defaultSpatialReference}}}},37745(e,t,r){r.d(t,{A:()=>d});var i,n=r(5482),s=r(52106),o=r(4718),a=r(91429);let l=class extends s.A{static{i=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new i(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,o.o8)(this.stackedAttributes)}}};(0,n.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=i=(0,n.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),c=r(36005);let d=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,n.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],d.prototype,"features",void 0),(0,n.Cg)([(0,c.w)("features")],d.prototype,"readFeatures",null),d=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],d)},41366(e,t,r){r.d(t,{K:()=>c,Q:()=>l});var i=r(5482),n=r(66552),s=r(53966),o=r(91429),a=r(93223);const l=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field",c=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r}},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>s});var i=r(34727),n=r(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(s&&((0,i.gg)(t,s[0])||(0,i.ZH)(r,s[1])))return"";const o=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const n=p(e.at(0)?.minScale),s=c(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(s,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(p(n.minScale),c(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)l(i.minScale,i.maxScale,t,r)&&(yield i)}}function l(e,t,r,n){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new i.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new i.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),l=parseInt(s,10);return new n(a,l,t)}}},52106(e,t,r){r.d(t,{A:()=>S});var i,n,s=r(5482),o=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),y=r(91429),f=r(12195),m=r(65864),g=r(50498),h=r(55156),w=r(60950),v=r(54339),b=r(94128),T=r(33910);function C(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,a.OU)(u.o)){static{i=b.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,w.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,h.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,h.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:C(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,f.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,s.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,s.Cg)([(0,y.MZ)({value:null})],S.prototype,"attributes",null),(0,s.Cg)([(0,y.MZ)({value:null,types:g.yR,json:{read:m.rS}})],S.prototype,"geometry",null),(0,s.Cg)([(0,y.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,s.Cg)([(0,y.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,s.Cg)([(0,y.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,s.Cg)([(0,y.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,s.Cg)([(0,y.MZ)({value:null,types:T.Es})],S.prototype,"symbol",null),(0,s.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,s.Cg)([(0,y.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=n=(0,s.Cg)([(0,y.$K)("esri.Graphic")],S)},55156(e,t,r){r.d(t,{I:()=>n,e:()=>i});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}},55674(e,t,r){r.d(t,{Ad:()=>y,Gj:()=>g,QY:()=>d,lL:()=>h,xR:()=>f});var i=r(66131),n=r(49186),s=(r(44208),r(44729)),o=r(15032),a=r(65864),l=r(95466),u=r(43668),p=r(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const r of c)t.hasArcadeDependency(r)&&e.add(r);return e}function y(e,t){return m.create(e,t,null,["$feature","$view"])}function f(e,t,r){return m.create(e,t,r,["$feature","$view","$config"])}class m{static async create(e,t,r,i){const{arcade:s,Dictionary:o}=await(0,u.l)();let a;try{a=s.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const p={vars:i.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},c=s.compileScript(a,p);let d=null;null!=r&&(d=new o(r),d.immutable=!0);const y=new o;return y.immutable=!1,y.setField("scale",0),new m(e,s,a,c,t,y,d,o)}constructor(e,t,r,i,n,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=i,this._spatialReference=n,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new g,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=r?i.lY.epochToArcadeDate(n,r):i.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=s?null!=r?i.lY.epochToArcadeDate(s,r):i.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class g{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){const i=t??new l.A(h(e.attributes));this._boundTarget=e,this._boundSchema.fields=i.fields,this._boundSchema.fieldsIndex=i,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===p.L5}field(e,t=!0){const r=this._getField(e);if(r){const t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return i.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?i.lY.unknownEpochToArcadeDate(t):i.lY.epochToArcadeDate(t,this.contextTimeZone??p.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function h(e){const t=[];for(const r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},61760(e,t,r){r.d(t,{PU:()=>o,YW:()=>l,ex:()=>n,hv:()=>a,zp:()=>s}),r(34727);var i=r(90629);r(78955),r(91829);const n=2.4;function s(e){return(0,i.PN)(e*n)}function o(e){return(0,i.Lz)(e)/n}function a(e,t,r){const i=Math.sqrt(e**2+t**2)/r;return i>1?0:3/(Math.PI*r**2)*(1-i**2)**2}function l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},64714(e,t,r){r.d(t,{F0:()=>a,Vx:()=>p,e2:()=>d,f:()=>y});var i=r(44208),n=r(4718),s=r(99352),o=r(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.Cb:"esriGeometryPolyline"===e?o.yM:o.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,i.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let r=`this${c(t)} = null;`;for(const t in e)r+=`this${c(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 l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},67482(e,t,r){function i(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function s(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let r=!0;if(p&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,i=0;for(;!t&&i<=e.length;)t=!u.test(e[i]),i++;r=!t}}return r}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.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"),u=+(r.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const p=r.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(r.isUTC||!r.offsetSign)d=Date.UTC(i,n,s,o,a,u,c);else{const e=+r.offsetHours,t=+r.offsetMinutes;d=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(i,n,s,o,a,u,c)}return Number.isNaN(d)?null:d}r.d(t,{Br:()=>n,Cq:()=>i,_U:()=>s});const l=/^(?:(?<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})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,p=!Number.isNaN(new Date("technology 10").getTime())},69208(e,t,r){r.d(t,{d:()=>s});var i=r(5482),n=r(91429);const s=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}},73133(e,t,r){r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"})},73681(e,t,r){r.d(t,{n:()=>l});var i=r(49186),n=r(53966),s=r(46140),o=r(95466),a=r(55674);class l{static async from(e,t,r){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const y=await(0,a.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const f=!o||!o.greaterEqual(4,0);f&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new u(r,f);return new l(f,p,y,m)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},82935(e,t,r){r.d(t,{B:()=>d,e:()=>y});var i=r(5482),n=r(91429),s=r(89317),o=r(30524),a=r(96184),l=r(73133),u=r(79677),p=r(10184),c=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}},y=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=l.j.fromJSON(r.timeOffsetUnits);return i&&n?new p.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,o.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}},83027(e,t,r){r.d(t,{h:()=>i});const i=r(29953).ho},83960(e,t,r){r.d(t,{X_:()=>s,oW:()=>a,zx:()=>o});var i=r(34727),n=r(86211);function s(e,t){const r=t||e.extent,i=e.width,s=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*s*n.dy*96:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}function a(e,t){return(0,i.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},85113(e,t,r){r.d(t,{BM:()=>F,bd:()=>A,sO:()=>x,xD:()=>c});var i=r(67482),n=r(49186),s=r(21325),o=r(90708),a=r(43334),l=r(92722),u=r(30524);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return p[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*y(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 f(e){for(const t of e)if(t.length>2)return!0;return!1}function m(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 g(e){const t=e[0],r=e[e.length-1];t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t)}function h(e,t){const{coordinates:r,type:i}=e,n=t.hasZ??!1,s=!0;switch(i){case"Point":return new l.A([],[...r],n,!1);case"LineString":return(0,o.Ap)({paths:[r],hasZ:s},n,!1);case"MultiLineString":return(0,o.Ap)({paths:r,hasZ:s},n,!1);case"MultiPoint":return(0,o.PR)({points:r,hasZ:s},n,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],n,!1);for(const t of"Polygon"===i?[r]:r){w(e,t[0],n);for(let r=1;r<t.length;r++)v(e,t[r],n)}return e}}}function w(e,t,r){g(t),function(e){return!m(e)}(t)?T(e,t,r):b(e,t,r)}function v(e,t,r){g(t),function(e){return m(e)}(t)?T(e,t,r):b(e,t,r)}function b(e,t,r){for(const i of t)C(e,i,r);e.lengths.push(t.length)}function T(e,t,r){for(let i=t.length-1;i>=0;i--)C(e,t[i],r);e.lengths.push(t.length)}function C(e,[t,r,i],n){e.coords.push(t,r),n&&e.coords.push(i||0)}function S(e){switch(typeof e){case"string":return(0,i.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function x(e,t=4326){if(!e)throw new n.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new n.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:r}=e;if(!r)return;const i="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,o=(0,s.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!i||!o.test(i))throw new n.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function F(e,t={}){const r=[],i=new Set,n=new Set;let s,o=!1,a=null,l=!1,{geometryType:p=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:m}=t;if((!e||(p||(p=c(e.type)),c(e.type)===p))&&(o||(o=f(y(e))),l||(l=null!=m,l&&(s=typeof m,d&&(a=Object.keys(d).filter(e=>d[e]===m)))),d&&a&&l&&null!=m&&(a.length>1?a=a.filter(e=>d[e]===m):1===a.length&&(a=d[a[0]]===m?a:[])),d))for(const e in d){if(i.has(e))continue;const t=S(d[e]);if("unknown"===t){n.add(e);continue}n.delete(e),i.add(e);const s=(0,u.rS)(e);s&&r.push({name:s,alias:e,type:t})}}const m=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(m)for(const e of r)if(e.name===m&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:p,hasZ:o,objectIdFieldName:m,objectIdFieldType:s,unknownFields:Array.from(n)}}function A(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:i}=t;for(const n of e){const{geometry:e,properties:s,id:o}=n;if(e&&c(e.type)!==r)continue;const l=s||{};let u;i&&(u=l[i],null==o||u||(l[i]=u=o)),yield new a.Om(e&&h(e,t),l,null,u)}}(d(e),t))}},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(5482),s=r(66552),o=r(25482),a=r(91429);const l=new s.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}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.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},96184(e,t,r){r.d(t,{A:()=>y});var i=r(5482),n=r(69540),s=r(25482),o=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,n.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?a.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,o.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],y.prototype,"writeInterval",null),(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i.Cg)([(0,o.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i.Cg)([(0,o.$K)("esri.layers.support.TimeInfo")],y)},99352(e,t,r){r.d(t,{F:()=>i,P:()=>n});const i={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},n={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}}}]);